aiterm-mcp 0.70.37 → 0.70.39

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.39] - 2026-11-12
11
+
12
+ - A Codex goal read or Codex parent delivery no longer times out while the App Server's answer is already waiting. When Aiterm's event loop was blocked past the request deadline (15 s by default), the timer fired before the answer was read and the read failed (`native_goal_connection_unavailable`; Kiro, 2026-11-12, body Aiterm blocked ~16 s by Claude goal reads, which 0.70.34 removed). The timer now waits one turn of the loop and fails only if the request is still pending. Same change in the bundled Steer 0.5.3.
13
+
14
+ ## [0.70.38] - 2026-11-12
15
+
16
+ - A Claude Code 2.1.322 seat on its first run (no `hasCompletedOnboarding`) is no longer reported `startup.ready` on the theme screen. 2.1.322 draws the theme choices without numbers (`❯ ✔ Dark mode`), and Aiterm read that row as the composer, so `agent_launch` returned ready within seconds and the prompt was never typed (BellTeam lab, Centi, 2026-11-12; 0.70.36 still did this). The theme screen is recognized again and answered with Enter as before; the next first-run screen (Security notes) then ends the launch with `AGENT_STARTUP_BLOCKED` (0.70.36). Measured on real Claude Code 2.1.322 with a fresh HOME.
17
+
10
18
  ## [0.70.37] - 2026-11-12
11
19
 
12
20
  - `agent_goal` `inspect` on a Grok seat no longer types into the seat. It used to paste `/goal status` (or click the Goal header and press `g`) under the send lock. It now reads the session's saved `goal/state.json`: no file is no goal, otherwise `goal = {kind: "grok-cli", native}` without `current_status`. No send lock, no composer or TTY dependence. With this, no harness types on `inspect` (Claude 0.70.34; Codex reads its App Server; Cursor and Antigravity are unsupported before any connection).
@@ -3364,7 +3372,9 @@ prototype (preserved under `prototype/python/` as the porting source and referen
3364
3372
  `ubuntu-latest` for Node 18/20/22, publishing to npm on `v*` tags with
3365
3373
  provenance.
3366
3374
 
3367
- [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.37...HEAD
3375
+ [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.39...HEAD
3376
+ [0.70.39]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.38...v0.70.39
3377
+ [0.70.38]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.37...v0.70.38
3368
3378
  [0.70.37]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.36...v0.70.37
3369
3379
  [0.70.36]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.35...v0.70.36
3370
3380
  [0.70.35]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.34...v0.70.35
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.37** · 動作対象は Linux · WSL2 · macOS · Windows ネイティブ · MIT · [変更履歴](CHANGELOG.md)。
218
+ **状態:** 開発継続中 · 現行公開版 **v0.70.39** · 動作対象は 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.37** · 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.39** · 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
 
@@ -67,10 +67,13 @@ export async function withCodexRelay(socketPath, action, timeout = 15_000, optio
67
67
  }
68
68
  const id = ++sequence;
69
69
  const writing = method === "turn/start";
70
- const timer = setTimeout(() => {
70
+ // A loop blocked past the deadline fires this timer before reading an answer already received (Steer 0.5.3 does the same).
71
+ const timer = setTimeout(() => setImmediate(() => {
72
+ if (!pending.has(id))
73
+ return;
71
74
  pending.delete(id);
72
75
  reject(new CodexDeliveryError("CODEX_RECEIVER_TIMEOUT", `${method}の応答を確認できません`, writing));
73
- }, timeout);
76
+ }), timeout);
74
77
  pending.set(id, { resolve, reject, timer, writing });
75
78
  socket.send(JSON.stringify({ id, method, params }), error => { if (error)
76
79
  fail("公式App Serverへの送信に失敗しました"); });
@@ -396,7 +396,8 @@ export function claudeTuiReady(screen) {
396
396
  // 最後のmarker行だけを見ることで、古いtrust表示がscrollbackに残っていても
397
397
  // その下に描画された現在のcomposerを優先する。
398
398
  // A dialog draws its choices with the same ❯ (the Bypass Permissions warning's "❯ Yes, I accept" has no index).
399
- return !/^❯\s*(?:\d+\.|\[|Enable selected\b|No,\s*exit\b|Yes,\s*I trust this folder\b|Yes,\s*I accept\b)/iu.test(lastMarker);
399
+ return !/^❯\s*(?:\d+\.|\[|Enable selected\b|No,\s*exit\b|Yes,\s*I trust this folder\b|Yes,\s*I accept\b)/iu.test(lastMarker)
400
+ && !CLAUDE_THEME_CHOICE_RE.test(lastMarker);
400
401
  }
401
402
  // Claude Codeは動いている間、入力欄の上へ進行行を出し続ける(2.1.291の実画面 2026-10-06)。
402
403
  // ✻ Swirling… (running UserPromptSubmit hook · 0s)
@@ -632,11 +633,13 @@ export function claudeLoginMethodMenu(screen) {
632
633
  return tail.includes("Select login method:")
633
634
  && /^❯\s*(?:\d+\.\s*)?(?:Claude account with subscription|Anthropic Console account|3rd-party platform)/u.test(lastMarker ?? "");
634
635
  }
636
+ // First-run theme choices. 2.1.282 numbered them ("❯ 2. Dark mode ✔"); 2.1.322 does not ("❯ ✔ Dark mode").
637
+ const CLAUDE_THEME_CHOICE_RE = /^❯\s*(?:[1-7]\.\s*)?(?:✔\s*)?(?:Auto \(match terminal\)|(?:Dark|Light) mode(?: \((?:colorblind-friendly|ANSI colors only)\))?)(?:\s*✔)?\s*$/u;
635
638
  export function claudeStartupAction(screen, trustProject) {
636
639
  const tail = screen.split("\n").slice(-32).join("\n");
637
640
  const lastMarker = tail.split(/\r?\n/u).filter(line => /^\s*❯/u.test(line)).at(-1)?.trim();
638
641
  if (tail.includes("Choose the text style that looks best with your terminal")
639
- && /^❯\s*[1-7]\.\s*(?:Auto \(match terminal\)|Dark mode|Light mode)/u.test(lastMarker ?? ""))
642
+ && CLAUDE_THEME_CHOICE_RE.test(lastMarker ?? ""))
640
643
  return { kind: "initial_theme_selected", keys: ["Enter"] };
641
644
  // 既存launcherで扱っていた2確認は従来の起動契約を維持する。
642
645
  if (screen.includes("Is this a project you created or one you trust")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiterm-mcp",
3
- "version": "0.70.37",
3
+ "version": "0.70.39",
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": [
@@ -89,7 +89,7 @@
89
89
  },
90
90
  "dependencies": {
91
91
  "@modelcontextprotocol/sdk": "^1.29.0",
92
- "aiterm-steer-delivery": "^0.5.0",
92
+ "aiterm-steer-delivery": "^0.5.3",
93
93
  "string-width": "7.2.0",
94
94
  "ws": "8.21.3",
95
95
  "zod": "^4.4.3"