aiterm-mcp 0.70.0 → 0.70.1
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 +7 -1
- package/README.ja.md +2 -2
- package/README.md +2 -2
- package/dist/core.js +3 -2
- package/dist/harnesses/claude.js +13 -2
- package/dist/setup.js +6 -3
- package/docs/DESIGN.md +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.70.1] - 2026-11-10
|
|
11
|
+
|
|
12
|
+
- Claude Code's "Updates to Consumer Terms and Policies" screen (2.1.318, grove) is classified as `blocked` / `vendor_onboarding_required` instead of `unrecognized_screen`, so a launch stops with the plain hint instead of waiting it out. Aiterm never answers it: the terms and the model-training choice belong to the account holder.
|
|
13
|
+
- The setup and runtime probe (`aiterm setup`, `aiterm-remote-terminal runtime-smoke`) starts its `aiterm-mcp` with the caller's whole environment, so it opens its terminal in the same `TMPDIR` socket directory as the caller's seats, and a failed probe keeps the tool's own error text. Without `TMPDIR` the probe used `/tmp/claude-tmux-sockets`, which another user of the same Mac may own.
|
|
14
|
+
- A Claude `auth status --json` preflight that does not finish in 5 seconds no longer refuses the launch (`CLAUDE_AUTH_STATUS_TIMEOUT`): the launch goes on, and a logged-out Claude stops at its login screen as `vendor_onboarding_required` (ADR 0020 addendum). A Mac seat failed this way 22 s after Claude Code updated itself to 2.1.322, under load average ~700, while `auth status` answered `loggedIn: true` in 0.75 s afterwards. `loggedIn: false`, malformed output and a failed exit still refuse before any session exists. The terminal needs this release.
|
|
10
15
|
## [0.70.0] - 2026-11-10
|
|
11
16
|
|
|
12
17
|
- `remote_terminal_command` takes `list_dirs` with an optional absolute `path` for a folder picker (BellTeam PR 887 S6; docs/architecture/remote-terminal.md R15). Without `path` it lists the SSH user's home. Result `{op, home, path, exists, directory, entries: [{name}] | null, truncated}`: subfolders only (a symlink to a folder counts), no names starting with `.`, ordered by name, at most 500 then `truncated: true`, read only. A missing folder or a file answers `exists`/`directory` false with `entries: null`, never an empty list; permission refusals (macOS privacy consent included) answer `FOLDER_NOT_PERMITTED` as for `path_status`. Needs this release on the terminal (`REMOTE_AITERM_TOO_OLD` otherwise).
|
|
@@ -3158,7 +3163,8 @@ prototype (preserved under `prototype/python/` as the porting source and referen
|
|
|
3158
3163
|
`ubuntu-latest` for Node 18/20/22, publishing to npm on `v*` tags with
|
|
3159
3164
|
provenance.
|
|
3160
3165
|
|
|
3161
|
-
[Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.
|
|
3166
|
+
[Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.1...HEAD
|
|
3167
|
+
[0.70.1]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.0...v0.70.1
|
|
3162
3168
|
[0.70.0]: https://github.com/kitepon/aiterm-mcp/compare/v0.69.0...v0.70.0
|
|
3163
3169
|
[0.69.0]: https://github.com/kitepon/aiterm-mcp/compare/v0.68.1...v0.69.0
|
|
3164
3170
|
[0.68.1]: https://github.com/kitepon/aiterm-mcp/compare/v0.68.0...v0.68.1
|
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.
|
|
218
|
+
**状態:** 開発継続中 · 現行公開版 **v0.70.1** · 動作対象は Linux · WSL2 · macOS · Windows ネイティブ · MIT · [変更履歴](CHANGELOG.md)。
|
|
219
219
|
|
|
220
220
|
### 更新と巻き戻し
|
|
221
221
|
|
|
@@ -760,7 +760,7 @@ Cursor親(`clientInfo.name`が`cursor-vscode`)も同じ完了観測と本文
|
|
|
760
760
|
Claudeをリンク経由の`cwd`から起動した場合も、実体パスに対応する会話記録を参照する。
|
|
761
761
|
|
|
762
762
|
|
|
763
|
-
Claudeの認証事前確認による起動拒否は従来のエラー文を保ち、`structuredContent`へ`schema:"aiterm.agent-launch-error.v1"`、`harness:"claude-code"`、`phase:"authentication_preflight"`、`effect:"not_issued"`、`session_created:false`を返す。`code`は`CLAUDE_AUTH_NOT_AUTHENTICATED`(公式statusが未認証)、`CLAUDE_AUTH_STATUS_UNCONFIRMED
|
|
763
|
+
Claudeの認証事前確認による起動拒否は従来のエラー文を保ち、`structuredContent`へ`schema:"aiterm.agent-launch-error.v1"`、`harness:"claude-code"`、`phase:"authentication_preflight"`、`effect:"not_issued"`、`session_created:false`を返す。`code`は`CLAUDE_AUTH_NOT_AUTHENTICATED`(公式statusが未認証)、`CLAUDE_AUTH_STATUS_UNCONFIRMED`(確認不能)を区別する。確認が5秒で終わらない時は拒否せず起動へ進み、未ログインならlogin画面で`vendor_onboarding_required`として止まる。`CLAUDE_AUTH_STATUS_TIMEOUT`は0.70.1より前の端末だけが返す。資格情報の故障原因やログイン期限切れは断定せず、公式status本文・stderrは返さない。
|
|
764
764
|
|
|
765
765
|
### 別端末のagentを1回で起動する(`remote`)
|
|
766
766
|
|
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.
|
|
230
|
+
**Status:** actively maintained · current public release **v0.70.1** · 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
|
|
|
@@ -770,7 +770,7 @@ The result (`aiterm.agent-models.v1`) is `{ harness, source, harness_version, de
|
|
|
770
770
|
|
|
771
771
|
The selected harness CLI must be installed and authenticated. Use each product owner's official installer and updater; Aiterm does not distribute alternate CLI tarballs. For Cursor Agent CLI, use `curl https://cursor.com/install -fsS | bash` on macOS/Linux/WSL or `irm 'https://cursor.com/install?win32=true' | iex` on native Windows, authenticate once with `agent login`, and update with `agent update`; Aiterm invokes the unambiguous `cursor-agent` binary. Missing binaries, invalid model/effort values, unavailable Grok catalog models, and nonexistent `cwd` fail before a session exists.
|
|
772
772
|
|
|
773
|
-
Claude authentication preflight refusals retain the existing error text and add `structuredContent` with schema `aiterm.agent-launch-error.v1`, `harness:"claude-code"`, `phase:"authentication_preflight"`, `effect:"not_issued"`, and `session_created:false`. `code` distinguishes `CLAUDE_AUTH_NOT_AUTHENTICATED
|
|
773
|
+
Claude authentication preflight refusals retain the existing error text and add `structuredContent` with schema `aiterm.agent-launch-error.v1`, `harness:"claude-code"`, `phase:"authentication_preflight"`, `effect:"not_issued"`, and `session_created:false`. `code` distinguishes `CLAUDE_AUTH_NOT_AUTHENTICATED` and `CLAUDE_AUTH_STATUS_UNCONFIRMED`. A status check that does not finish in 5 seconds no longer refuses: the launch goes on, and a logged-out Claude stops at its login screen as `vendor_onboarding_required`. `CLAUDE_AUTH_STATUS_TIMEOUT` comes only from terminals older than 0.70.1. These describe the official status check, not the cause of a credential failure or a confirmed login expiry. Native status bodies and stderr are omitted.
|
|
774
774
|
|
|
775
775
|
Set `throughline_source_session` together with a non-empty mission in `prompt` to prepend
|
|
776
776
|
Throughline's read-only handoff context. This optional route requires `throughline >= 0.9.0`,
|
package/dist/core.js
CHANGED
|
@@ -4529,8 +4529,9 @@ async function sendAgentPromptText(name, text, kind, inputMeta) {
|
|
|
4529
4529
|
// 利用者が端末で済ませるしかない起動前の状態。reasonだけでは直し方が分からないので案内を添える。
|
|
4530
4530
|
function startupBlockedHint(reason) {
|
|
4531
4531
|
if (reason === "vendor_onboarding_required") {
|
|
4532
|
-
return "\nClaude Code
|
|
4533
|
-
"
|
|
4532
|
+
return "\nClaude Codeの初回案内(テーマ・ログイン方法の選択)か、利用規約の更新への回答が済んでいません。`claude auth status` がログイン済みでも、" +
|
|
4533
|
+
"済むまでは起動のたびにこの画面で止まります。規約への回答はアカウントの持ち主が選ぶもので、Aitermは答えません。" +
|
|
4534
|
+
"対象端末で一度 `claude` を起動し、画面の案内を最後まで進めてください。";
|
|
4534
4535
|
}
|
|
4535
4536
|
return "";
|
|
4536
4537
|
}
|
package/dist/harnesses/claude.js
CHANGED
|
@@ -344,8 +344,10 @@ export function assertClaudeAuthenticationReady(bin, env = process.env) {
|
|
|
344
344
|
"通常端末で `claude doctor` を実行し、Keychain/credential storeを直してから一度だけ `claude auth login` を実行してください。" +
|
|
345
345
|
"aiterm相関付きClaude session内で /login を繰り返さないでください。");
|
|
346
346
|
}
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
// A slow check is not a refusal (ADR 0020, 2026-11-10): launch on; a logged-out Claude stops at its login screen.
|
|
348
|
+
if (result.error && result.error.code === "ETIMEDOUT")
|
|
349
|
+
return;
|
|
350
|
+
throw new AgentAuthenticationPreflightError("CLAUDE_AUTH_STATUS_UNCONFIRMED", "Claude Codeの認証状態を起動前に確認できません。sessionは作成していません。" +
|
|
349
351
|
"`claude auth status --json` と `claude doctor` が成功することを通常端末で確認してください。");
|
|
350
352
|
}
|
|
351
353
|
/**
|
|
@@ -408,6 +410,11 @@ function claudeSecurityNotes(screen) {
|
|
|
408
410
|
return lines.slice(lastMarker + 1).some(line => /^\s*Security notes:\s*$/.test(line))
|
|
409
411
|
&& /Press (?:Enter|Return) to continue/u.test(lines.slice(lastMarker + 1).join("\n"));
|
|
410
412
|
}
|
|
413
|
+
// Claude Code 2.1.318 (grove): "Updates to Consumer Terms and Policies" with "Accept terms · Help improve our AI models: ON/OFF".
|
|
414
|
+
export function claudeConsumerTermsUpdate(screen) {
|
|
415
|
+
const tail = screen.split("\n").slice(-32).join("\n");
|
|
416
|
+
return tail.includes("Updates to Consumer Terms and Policies") && /^\s*[❯>]?\s*(?:\d+\.\s*)?Accept terms\b/mu.test(tail);
|
|
417
|
+
}
|
|
411
418
|
export function claudeTuiReady(screen) {
|
|
412
419
|
if (!screen.includes("Claude Code") && !claudeComposerBox(screen))
|
|
413
420
|
return false;
|
|
@@ -483,6 +490,10 @@ export function claudePaneObservation(screen) {
|
|
|
483
490
|
return { state: "busy", reason: "turn_running" };
|
|
484
491
|
if (claudeTuiReady(screen))
|
|
485
492
|
return { state: "idle", reason: "composer_ready" };
|
|
493
|
+
// The account holder's own choice (terms and model-training data); never answered by Aiterm. After ready, so a seat
|
|
494
|
+
// that merely talks about this screen stays idle.
|
|
495
|
+
if (claudeConsumerTermsUpdate(screen))
|
|
496
|
+
return { state: "blocked", reason: "vendor_onboarding_required" };
|
|
486
497
|
if (/new MCP servers? found in this project/i.test(tail))
|
|
487
498
|
return { state: "blocked", reason: "project_mcp_consent" };
|
|
488
499
|
if (claudeStartupAction(screen, false))
|
package/dist/setup.js
CHANGED
|
@@ -41,13 +41,16 @@ export function globalRegistration(run = runSetupCommand, options = {}) {
|
|
|
41
41
|
}
|
|
42
42
|
export async function verifySetupRuntime(registration) {
|
|
43
43
|
const client = new Client({ name: "aiterm-setup", version: "1.0.0" });
|
|
44
|
-
|
|
44
|
+
// The SDK default passes only HOME/PATH/SHELL/TERM/USER/LOGNAME; without TMPDIR the probe would use another socket directory.
|
|
45
|
+
const transport = new StdioClientTransport({ ...registration, env: process.env, stderr: "pipe" });
|
|
45
46
|
transport.stderr?.on("data", (chunk) => process.stderr.write(chunk));
|
|
46
47
|
const name = `setup-${randomUUID().slice(0, 12)}`;
|
|
47
48
|
const call = async (tool, args) => {
|
|
48
49
|
const result = await client.request({ method: "tools/call", params: { name: tool, arguments: args } }, CallToolResultSchema, { timeout: 25_000 });
|
|
49
|
-
if (result.isError)
|
|
50
|
-
|
|
50
|
+
if (result.isError) {
|
|
51
|
+
const detail = result.content.filter((item) => item.type === "text").map((item) => item.text).join(" ").slice(0, 300);
|
|
52
|
+
throw new SetupError("runtime_probe_failed", `${tool}が失敗しました${detail ? `: ${detail}` : ""}`);
|
|
53
|
+
}
|
|
51
54
|
return result;
|
|
52
55
|
};
|
|
53
56
|
await client.connect(transport);
|
package/docs/DESIGN.md
CHANGED
|
@@ -366,6 +366,7 @@ hookを外す時は`aiterm-setup --remove-cursor-parent-hooks`で専用entryだ
|
|
|
366
366
|
`trust_project:true`は対象projectの既知のworkspace、hooks、MCP初期同意を起動準備として進める意図である。
|
|
367
367
|
Claude Codeの初回テーマ選択は選択済みの項目を確定し、後続の起動準備へ進める。
|
|
368
368
|
ログイン方式の選択はユーザーのアカウント設定として扱い、composerと誤認せず`vendor_onboarding_required`で止める。
|
|
369
|
+
利用規約の更新の画面(「Updates to Consumer Terms and Policies」、`Accept terms`の選択肢)も、規約への同意と学習へのデータ利用の選択はアカウントの持ち主が決めるので、Aitermは答えず`vendor_onboarding_required`で止める(Mac 2026-11-10、`unrecognized_screen`で166秒待っていた)。
|
|
369
370
|
promptなしでも入力受付とharness生存を確認して`startup.ready`を返す。指定なしのpromptなし起動は
|
|
370
371
|
従来どおり`startup.not_checked`で返す。初手receiptは未要求・未送信・送信済み未確認・開始確認を分ける。
|
|
371
372
|
入力受付の待ちは30秒。画面が起動コマンドの表示のまま(agentがまだ何も描いていない)で切れた時だけ、
|
|
@@ -538,7 +539,7 @@ Claude authentication URL receipts recognize the official claude.com/cai/oauth/a
|
|
|
538
539
|
|
|
539
540
|
### 認証画面と専用応答
|
|
540
541
|
|
|
541
|
-
Claude起動前の公式auth status拒否はharnessが`AgentAuthenticationPreflightError`として所有し、通常MCPのfailが`aiterm.agent-launch-error.v1`へ投影する。既存数値exit code
|
|
542
|
+
Claude起動前の公式auth status拒否はharnessが`AgentAuthenticationPreflightError`として所有し、通常MCPのfailが`aiterm.agent-launch-error.v1`へ投影する。既存数値exit codeと文言を維持し、未認証・確認不能の機械code(timeoutは拒否せず起動へ進み、未認証なら起動後のlogin画面判定が止める。`CLAUDE_AUTH_STATUS_TIMEOUT`は旧版の端末だけが返す。ADR 0020追補)、authentication_preflight/not_issued/session_created:falseだけを追加する。CLI status本文・stderr・資格・推定したexpiry原因は持ち出さず、この拒否は認証PTYの入力や起動後turnの終端とは分ける。
|
|
542
543
|
|
|
543
544
|
`agent-auth-ui.ts`が既v1 receiptに追加する`auth_ui`とrespondの型を所有する。Native harnessが公式URL・device code・空code欄・現在のラベル付き選択肢を識別し、Rootはキー列を作らない。不明な入力段階はunavailable。coreが既auth metadataのdev/ino/作成・更新時刻、native session/pane/server/PID開始識別を照合する。legacyのlaunch UUID欠測はnullのまま扱い、無関係なflowをadoptしない。新startは既launch_id欄を必ず設定する。
|
|
544
545
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aiterm-mcp",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.1",
|
|
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": [
|