aiterm-mcp 0.70.45 → 0.70.46

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 CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.70.46] - 2026-11-13
11
+
12
+ - A Codex seat's own work (seat-turns `own_work.processes`, `pty_observe` `activity.post_startup_process_count`) now counts a lone command such as `sleep 300`. bash and zsh `-c` replace themselves with a single simple command, so the exec shell's shape was gone and the command was missed on Linux and macOS (a seat with one background command read 0 and could hibernate). Codex starts each exec in a new session, so a Codex child that is a session leader is now counted; MCP servers, hooks and the code-mode host stay in the seat's session and are still not counted (ADR 0141).
13
+
10
14
  ## [0.70.45] - 2026-11-13
11
15
 
12
16
  - A Claude seat now reads `idle` in seat-turns right after `agent_configure`. The `/model`, `/effort` or `/fast` it types is a local command that runs no turn and prints no "for Ns" completion line, so the reader kept such a seat `null` (unknown) on every read until the next delivered turn. The command's own `⎿` result line now counts as the finished-state cue; any other screen without a completion line is still unknown.
@@ -3405,7 +3409,8 @@ prototype (preserved under `prototype/python/` as the porting source and referen
3405
3409
  `ubuntu-latest` for Node 18/20/22, publishing to npm on `v*` tags with
3406
3410
  provenance.
3407
3411
 
3408
- [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.45...HEAD
3412
+ [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.46...HEAD
3413
+ [0.70.46]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.45...v0.70.46
3409
3414
  [0.70.45]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.44...v0.70.45
3410
3415
  [0.70.44]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.43...v0.70.44
3411
3416
  [0.70.43]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.42...v0.70.43
package/README.ja.md CHANGED
@@ -215,7 +215,7 @@ runtime-error store は canonical dotagents config の `collection.enabled: true
215
215
  場合だけ収集し、既定OFF、network送信は行いません。tag起点CIのnpm provenance(OIDC Trusted
216
216
  Publishing)で公開し、GitHub Release が Official MCP Registry を再登録します。
217
217
 
218
- **状態:** 開発継続中 · 現行公開版 **v0.70.45** · 動作対象は Linux · WSL2 · macOS · Windows ネイティブ · MIT · [変更履歴](CHANGELOG.md)。
218
+ **状態:** 開発継続中 · 現行公開版 **v0.70.46** · 動作対象は Linux · WSL2 · macOS · Windows ネイティブ · MIT · [変更履歴](CHANGELOG.md)。
219
219
 
220
220
  ### 更新と巻き戻し
221
221
 
package/README.md CHANGED
@@ -227,7 +227,7 @@ collection is off by default and performs no network I/O. It ships via
227
227
  tag-triggered CI with npm provenance (OIDC Trusted Publishing); the GitHub
228
228
  Release re-registers the Official MCP Registry entry.
229
229
 
230
- **Status:** actively maintained · current public release **v0.70.45** · runs on Linux · WSL2 · macOS · native Windows (tmux on POSIX, the tmux-CLI-compatible [psmux](https://github.com/psmux/psmux) on native Windows — no WSL required) · MIT · see the [CHANGELOG](CHANGELOG.md).
230
+ **Status:** actively maintained · current public release **v0.70.46** · runs on Linux · WSL2 · macOS · native Windows (tmux on POSIX, the tmux-CLI-compatible [psmux](https://github.com/psmux/psmux) on native Windows — no WSL required) · MIT · see the [CHANGELOG](CHANGELOG.md).
231
231
 
232
232
  ### Update and rollback
233
233
 
package/dist/core.js CHANGED
@@ -1660,6 +1660,9 @@ export function ownExecProcesses(meta, agent, rows) {
1660
1660
  else if (SANDBOX_WRAPPERS.has(executable) || AGENT_COMMAND_PATTERNS[kind].test(executable)
1661
1661
  || (!EXEC_SHELL_NAMES.has(executable) && child.command.includes(meta.launch_id)))
1662
1662
  walk(child, false);
1663
+ // A lone command its `-c` shell replaced itself with: Codex starts each exec with setsid, its servers and hooks stay in the seat's session.
1664
+ else if (kind === "codex" && child.session_leader)
1665
+ roots.push(child);
1663
1666
  }
1664
1667
  };
1665
1668
  walk(agent, false);
@@ -62,7 +62,7 @@ export function parsePosixProcessTable(text, includeSession = false, platform =
62
62
  leaders.add(Number(match[1]));
63
63
  return {
64
64
  pid: Number(match[1]), parent_pid: Number(match[2]), process_group_id: Number(match[3]),
65
- stopped: match[4 + offset].includes("T"), zombie: match[4 + offset].includes("Z"),
65
+ stopped: match[4 + offset].includes("T"), zombie: match[4 + offset].includes("Z"), session_leader: match[4 + offset].includes("s"),
66
66
  ...(includeSession ? { session_identity: match[4] } : {}),
67
67
  started_identity: match[5 + offset].trim(), cpu_seconds: parseCpuTime(match[6 + offset]), command,
68
68
  argv_digest: createHash("sha256").update(command).digest("hex"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiterm-mcp",
3
- "version": "0.70.45",
3
+ "version": "0.70.46",
4
4
  "mcpName": "io.github.kitepon/aiterm-mcp",
5
5
  "description": "Persistent terminal MCP with one harness-based launcher for Claude Code, Codex CLI, Grok CLI, Cursor Agent CLI, and Antigravity CLI, plus durable PTYs for SSH, containers, and REPLs.",
6
6
  "keywords": [