@gencode/console 0.3.10 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @gencode/console
|
|
2
2
|
|
|
3
|
+
## 0.3.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 275442d: Run logs are now isolated by message ID. When `aimax run`, `resume`, `cancel`, or `summarize` receives `--message-id <id>`, CLI and agent logs are written to `<dataDir>/.aimax/logs/<id>/app.log` and `<dataDir>/.aimax/logs/<id>/errors.log` instead of the shared `<dataDir>/.aimax/app.log` files. Runs without a message ID use `<dataDir>/.aimax/logs/no-message-<pid>/`, so parallel containers no longer share the same default log file.
|
|
8
|
+
- c102527: Plugin startup diagnostics now include per-plugin load duration. During `aimax run`, each enabled plugin's `plugin_loaded` progress diagnostic reports `details.durationMs`, while the existing `plugin_system_initialized.details.durationMs` continues to report total plugin system initialization time.
|
|
9
|
+
- Updated dependencies [275442d]
|
|
10
|
+
- Updated dependencies [c102527]
|
|
11
|
+
- @gencode/cli@0.8.12
|
|
12
|
+
|
|
13
|
+
## 0.3.11
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 825ae82: 提升 exec 命令执行的稳定性,修复进程异常和卡死导致 agent 无法继续的问题
|
|
18
|
+
|
|
19
|
+
- **命令不再因子进程异常而中断 agent**:子进程输出流发生底层错误(如管道断开 EPIPE)时,错误会被记录到命令输出而不再让整个进程崩溃。
|
|
20
|
+
- **读取标准输入的命令不再卡死**:`cat`、交互式提示等会读取 stdin 的命令现在会立即收到 EOF 并正常结束,而不是一直等待直到超时。
|
|
21
|
+
- **长命令默认自动转后台**:前台执行的命令默认最多等待 60 秒(可用 `yieldMs` 调整等待窗口),超过后返回 running 状态,再用 `process` 工具轮询,避免真正卡死的命令长时间阻塞。常见的安装、构建、测试命令一般能在该窗口内直接跑完。`timeout` 参数现在表示命令的最大总运行时长(默认 1800 秒),到时强制结束。
|
|
22
|
+
- **批量长跑不再残留孤儿进程**:在 Linux/macOS 上,命令被超时或取消时会终止整个进程组,连同管道、`&&`、后台任务派生的子进程一并清理,避免长时间批量执行累积僵尸/孤儿进程耗尽系统资源。
|
|
23
|
+
- **进程级兜底保护**:CLI 入口新增未捕获异常和未处理 Promise 拒绝的兜底处理,发生此类故障时会先记录诊断日志并刷新日志文件,再以退出码 1 受控退出,便于外层容器或调度器干净地重启单次任务。
|
|
24
|
+
- **后台进程随任务结束自动清理**:任务执行期间通过 `background:true` 启动的进程(如 dev server)若在任务结束时仍未停止,会被自动终止(连同其进程组),不会残留到任务之外。工具说明也更新了长驻进程的正确用法:用 `background:true` 启动、用一条会自行结束的命令探测就绪、用完再 `process` kill,而不是用 poll 等它结束。
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [825ae82]
|
|
27
|
+
- @gencode/cli@0.8.11
|
|
28
|
+
|
|
3
29
|
## 0.3.10
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gencode/console",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"aimax-console": "./dist/server/index.js"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react": "^18.3.1",
|
|
27
27
|
"react-dom": "^18.3.1",
|
|
28
28
|
"ws": "^8.18.0",
|
|
29
|
-
"@gencode/cli": "0.8.
|
|
29
|
+
"@gencode/cli": "0.8.12",
|
|
30
30
|
"@gencode/shared": "0.2.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|