aiterm-mcp 0.70.44 → 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,14 @@ 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
+
14
+ ## [0.70.45] - 2026-11-13
15
+
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.
17
+
10
18
  ## [0.70.44] - 2026-11-13
11
19
 
12
20
  - A seat's own work (`pty_observe` `activity.post_startup_process_count` and seat-turns `own_work.processes`) now counts only what runs under the harness's own command-execution shell: Claude's Bash (incl. `run_in_background`), Codex exec, and the Grok and Cursor tool shells, recognised per OS by their wrapper shapes (ADR 0141). MCP servers, hooks, relays, helpers and Aiterm's own process-table reads are never counted, so an idle seat with a waiting hook or a restarted MCP server reads 0 and can hibernate. No startup snapshot is used any more, so seats launched by older versions are counted too (0 instead of null). Antigravity commands are not counted yet (exec shape not captured).
@@ -3401,7 +3409,9 @@ prototype (preserved under `prototype/python/` as the porting source and referen
3401
3409
  `ubuntu-latest` for Node 18/20/22, publishing to npm on `v*` tags with
3402
3410
  provenance.
3403
3411
 
3404
- [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.44...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
3414
+ [0.70.45]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.44...v0.70.45
3405
3415
  [0.70.44]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.43...v0.70.44
3406
3416
  [0.70.43]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.42...v0.70.43
3407
3417
  [0.70.42]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.41...v0.70.42
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.44** · 動作対象は 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.44** · 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
 
@@ -351,7 +351,8 @@ export function parentPaneEvidence(kind, screen) {
351
351
  return "unknown";
352
352
  if (kind === "claude" && observed.state === "idle" && /^⏺ Compacted while idle\b/u.test(current))
353
353
  return "ready_compacted";
354
- if (kind === "claude" && observed.state === "idle"
354
+ // Aiterm's configure commands are local and run no turn: their own ⎿ result line, not a completed-progress line, ends them.
355
+ if (kind === "claude" && observed.state === "idle" && !/^\s*❯ \/(?:model|effort|fast)\b[^\n]*\n\s*⎿\s+\S/u.test(current)
355
356
  && !/^[·✢✳✶✻✽*∗] [^…\n]+ for \d[^…\n]*$/mu.test(current))
356
357
  return "ready_no_completion";
357
358
  if (kind === "cursor") {
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.44",
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": [