aiterm-mcp 0.70.45 → 0.70.47

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,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.70.47] - 2026-11-13
11
+
12
+ - An Antigravity seat's background command is now counted as own work (seat-turns `own_work.processes`, `pty_observe` `activity.post_startup_process_count`). agy runs each command on its own pty as a session leader (macOS, Linux) or in `pwsh -Command "try { $OutputEncoding = …"` (Windows); its MCP servers and hooks are still not counted (ADR 0141).
13
+ - While an Antigravity background task runs, the seat's turn reads running instead of unknown. agy keeps the turn open until the task ends and the model reports it; the footer's `N task(s)` count is that state.
14
+
15
+ ## [0.70.46] - 2026-11-13
16
+
17
+ - 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).
18
+
10
19
  ## [0.70.45] - 2026-11-13
11
20
 
12
21
  - 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 +3414,9 @@ prototype (preserved under `prototype/python/` as the porting source and referen
3405
3414
  `ubuntu-latest` for Node 18/20/22, publishing to npm on `v*` tags with
3406
3415
  provenance.
3407
3416
 
3408
- [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.45...HEAD
3417
+ [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.47...HEAD
3418
+ [0.70.47]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.46...v0.70.47
3419
+ [0.70.46]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.45...v0.70.46
3409
3420
  [0.70.45]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.44...v0.70.45
3410
3421
  [0.70.44]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.43...v0.70.44
3411
3422
  [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.47** · 動作対象は 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.47** · 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
 
@@ -340,6 +340,9 @@ export function parentPaneEvidence(kind, screen) {
340
340
  start--;
341
341
  }
342
342
  const current = lines.slice(Math.max(0, start)).join("\n");
343
+ // Antigravity keeps the turn open while a background task runs: it reruns the model when the task ends, then sends Stop.
344
+ if (kind === "antigravity" && /·\s*[1-9]\d*\s+task\(s\)/u.test(lines.slice(marker + 1).join("\n")))
345
+ return "busy";
343
346
  if (kind === "grok" && grokPromptAwaitingAccept(current))
344
347
  return "unknown";
345
348
  if (kind === "cursor" && cursorPromptHooksRunning(screen))
package/dist/core.js CHANGED
@@ -167,8 +167,9 @@ const AGENT_EXEC_SHELLS = {
167
167
  // shortcut: a command run with the write-to-stdin tool also gets stdin and is not counted; read the script if that matters.
168
168
  cursor: command => /builtin eval "\$1"(?: 3<&- 4>&-)? < \/dev\/null/.test(command)
169
169
  || /-NonInteractive -File \S*ps-script-[0-9a-f-]+\.ps1/i.test(command),
170
- // shortcut: Antigravity's exec shape is not captured yet (quota), so its commands are not counted; add it from a real run.
171
- antigravity: () => false,
170
+ // POSIX: no shell marker; agy runs each command in its own pty session (session-leader rule in ownExecProcesses).
171
+ // Windows: pwsh -Command starting with its UTF-8 $OutputEncoding line; hooks are cmd /c "pwsh … -EncodedCommand".
172
+ antigravity: command => command.includes(" -Command \"try { $OutputEncoding = [System.Text.UTF8Encoding]::new($false);"),
172
173
  };
173
174
  const EXEC_SHELL_NAMES = new Set([...SHELLS, "pwsh", "powershell", "cmd"]);
174
175
  // Sandboxes a harness puts between itself and its exec shell.
@@ -1660,6 +1661,10 @@ export function ownExecProcesses(meta, agent, rows) {
1660
1661
  else if (SANDBOX_WRAPPERS.has(executable) || AGENT_COMMAND_PATTERNS[kind].test(executable)
1661
1662
  || (!EXEC_SHELL_NAMES.has(executable) && child.command.includes(meta.launch_id)))
1662
1663
  walk(child, false);
1664
+ // Codex (setsid) and Antigravity (a pty per command) start each exec in a new session; their servers and hooks stay in
1665
+ // the seat's session. This also catches a lone command its `-c` shell replaced itself with.
1666
+ else if ((kind === "codex" || kind === "antigravity") && child.session_leader)
1667
+ roots.push(child);
1663
1668
  }
1664
1669
  };
1665
1670
  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.47",
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": [