feat(electron-shell): 1.11.0 新增设置中心与执行超时/内存分层,组件运行状态与运行历史峰值内存

This commit is contained in:
2026-11-13 13:53:20 +08:00
parent 89a7ad966a
commit e055adade5
29 changed files with 2200 additions and 572 deletions
@@ -110,7 +110,7 @@ powershell -NoProfile -ExecutionPolicy Bypass -File scripts\build-python-env.ps1
| `SHELL_PYTHON_ENV_ROOT` | 环境包根目录覆盖(默认:打包态 `%LOCALAPPDATA%\37duAutomation\python-env`,dev `electron-shell/python-env`) |
| `SHELL_PLUGIN_ROOT` | 插件根覆盖(默认:打包态 `%LOCALAPPDATA%\37duAutomation\plugins`,dev 仓库根 `plugins/`) |
| `RUN_TIMEOUT` | 插件执行超时秒数(默认 21600,`0`=不限时;插件 `plugin.json.runTimeoutSeconds` 可覆盖) |
| `RUN_MAX_MEM_MB` | 插件进程内存上限(默认 2048,环境包模式经 `job_guard` 生效) |
| `RUN_MAX_MEM_MB` | 插件进程内存上限(默认按物理内存 70%,下限 4096、上限 16384;`0`=不限;环境包模式经 `job_guard` 生效) |
| `DEBUG=1` | 输出完整 JSON 调试日志 |
* 开发态读 `electron-shell/.env`;打包态额外读 asar 解包出的 `resources/.env`(源 `.env.packaged`)。