aiterm-mcp 0.70.59 → 0.70.61
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 +11 -1
- package/README.ja.md +1 -1
- package/README.md +1 -1
- package/dist/core.js +2 -2
- package/dist/execution-native-setup.js +1 -54
- package/package.json +1 -2
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.61] - 2026-11-14
|
|
11
|
+
|
|
12
|
+
- `pty_list` no longer fails for every seat when one saved seat's record is unreadable or was removed by a close between the directory read and the record read (BugHub d90f8b67: BellTeam's Bot list answered 500). That seat is left out; the rows of the others are unchanged.
|
|
13
|
+
|
|
14
|
+
## [0.70.60] - 2026-11-14
|
|
15
|
+
|
|
16
|
+
- Removed `configureNativeExecutionHooks` and the `aiterm-mcp/execution-native-setup` entry point (bd14). BellTeam writes the CLI files itself from `aiterm-setup harness-entries --json` since body 2c948242, and no branch calls the old writer (Molly 2026-11-14). An older body keeps working: it uses the Aiterm installed in its own image. `setup-integrations` stays for BellTeam's fallback branch. The standalone `aiterm-setup` is unchanged.
|
|
17
|
+
|
|
10
18
|
## [0.70.59] - 2026-11-14
|
|
11
19
|
|
|
12
20
|
- A fresh launch on a loaded Mac no longer fails with `native_condition_refused` while the seat is fine (Lapi's seat, macbook 19:47). tmux 3.7+ blanks a format that runs past its 100 ms budget, so the identity check took the refusal branch. A refusal is now classified from `has-session` plus one pane read: `native_pane_gone`, `native_identity_changed` (with the field), `native_pane_exited`, `native_creation_marker_changed`, or unevaluated. Only an unevaluated condition re-issues the same command, at most 4 tries, then `native_condition_unevaluated`.
|
|
@@ -3486,7 +3494,9 @@ prototype (preserved under `prototype/python/` as the porting source and referen
|
|
|
3486
3494
|
`ubuntu-latest` for Node 18/20/22, publishing to npm on `v*` tags with
|
|
3487
3495
|
provenance.
|
|
3488
3496
|
|
|
3489
|
-
[Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.
|
|
3497
|
+
[Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.61...HEAD
|
|
3498
|
+
[0.70.61]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.60...v0.70.61
|
|
3499
|
+
[0.70.60]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.59...v0.70.60
|
|
3490
3500
|
[0.70.59]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.58...v0.70.59
|
|
3491
3501
|
[0.70.58]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.57...v0.70.58
|
|
3492
3502
|
[0.70.57]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.56...v0.70.57
|
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.61** · 動作対象は 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.
|
|
230
|
+
**Status:** actively maintained · current public release **v0.70.61** · 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
|
@@ -2494,8 +2494,8 @@ export function listSessionsResult(envKeys = [], runTmux = tmux, o = {}) {
|
|
|
2494
2494
|
const result = listNativeSessionsResult(envKeys, runTmux);
|
|
2495
2495
|
const present = new Set(result.sessions.map(row => row.session_id));
|
|
2496
2496
|
for (const name of savedAgentSessionNames()) {
|
|
2497
|
-
//
|
|
2498
|
-
const meta =
|
|
2497
|
+
// An unreadable record, or one a close removed after the readdir, drops only that seat; the list still answers (BugHub d90f8b67).
|
|
2498
|
+
const meta = tryLoadAgentMetadata(name);
|
|
2499
2499
|
if (!meta)
|
|
2500
2500
|
continue;
|
|
2501
2501
|
const state = agentDormantState(meta);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
// Native
|
|
2
|
-
// callers retain approval/deployment responsibility. No Bot/member API exists here.
|
|
1
|
+
// Native hook entries, owned by Aiterm. The caller writes the CLI files (bd14); this writes only Aiterm's own codex config.
|
|
3
2
|
import fs from "node:fs";
|
|
4
3
|
import os from "node:os";
|
|
5
4
|
import path from "node:path";
|
|
@@ -7,59 +6,7 @@ import { fileURLToPath, pathToFileURL } from "node:url";
|
|
|
7
6
|
import { parseNativeExecutionArguments } from "./execution-native-server.js";
|
|
8
7
|
import { AITERM_PROFILE } from "./steer-profile.js";
|
|
9
8
|
import { ExecutionError } from "./execution-wire.js";
|
|
10
|
-
import { codexHookCommand } from "./setup-codex-hooks.js";
|
|
11
9
|
import { setupNodeExecutable } from "./setup-node.js";
|
|
12
|
-
export async function configureNativeExecutionHooks(home, options) {
|
|
13
|
-
if (process.platform === "win32" || !path.isAbsolute(home) || !path.isAbsolute(options.registration.command)
|
|
14
|
-
|| !path.isAbsolute(options.registration.args[0] ?? "") || path.basename(options.registration.args[0]) !== "execution-native-server.js")
|
|
15
|
-
throw new ExecutionError("EXECUTION_INVALID");
|
|
16
|
-
const previousRegistration = structuredClone(options.registration), scope = structuredClone(options.expectedScope);
|
|
17
|
-
const parsed = parseNativeExecutionArguments(previousRegistration.args.slice(1));
|
|
18
|
-
if (parsed.mode !== "mcp" || JSON.stringify(parsed.expectedScope) !== JSON.stringify(scope)
|
|
19
|
-
|| path.resolve(parsed.providerFile) !== path.resolve(options.providerFile))
|
|
20
|
-
throw new ExecutionError("EXECUTION_CONFLICT");
|
|
21
|
-
const provider = options.provider ?? await import(pathToFileURL(options.providerFile).href);
|
|
22
|
-
const clients = [...new Set(options.clients ?? ["claude", "cursor", "codex"])];
|
|
23
|
-
if (clients.some(client => !["claude", "cursor", "codex"].includes(client))
|
|
24
|
-
|| (clients.includes("codex") && (!options.codexBinary || !path.isAbsolute(options.codexBinary))))
|
|
25
|
-
throw new ExecutionError("EXECUTION_INVALID");
|
|
26
|
-
const dist = path.dirname(previousRegistration.args[0]);
|
|
27
|
-
const registration = { command: previousRegistration.command, args: [path.join(dist, "index.js")] };
|
|
28
|
-
const profile = { ...AITERM_PROFILE, state_root: () => scope.state_root,
|
|
29
|
-
config_root: () => path.join(home, ".config", "aiterm-mcp") };
|
|
30
|
-
const previousProfile = { ...profile, hooks: {
|
|
31
|
-
claude: path.basename(previousRegistration.args[0]), cursor: path.basename(previousRegistration.args[0]), codex: path.basename(previousRegistration.args[0]),
|
|
32
|
-
} };
|
|
33
|
-
const hook = (file) => ({ command: registration.command, script: path.join(dist, file) });
|
|
34
|
-
const quote = (word) => "'" + word.replace(/'/g, "'\"'\"'") + "'";
|
|
35
|
-
const command = (file) => [registration.command, path.join(dist, file)].map(quote).join(" ");
|
|
36
|
-
const result = {}, commands = {};
|
|
37
|
-
if (clients.includes("claude")) {
|
|
38
|
-
const file = path.join(home, ".claude", "settings.json");
|
|
39
|
-
const removed = provider.removeClaudeParentHooks(previousProfile, file);
|
|
40
|
-
result.claude = provider.mergeClaudeParentHooks(profile, file, hook(profile.hooks.claude));
|
|
41
|
-
if (removed === "removed" && result.claude === "unchanged")
|
|
42
|
-
result.claude = "configured";
|
|
43
|
-
commands.claude = "exec " + command(profile.hooks.claude);
|
|
44
|
-
}
|
|
45
|
-
if (clients.includes("cursor")) {
|
|
46
|
-
const file = path.join(home, ".cursor", "hooks.json");
|
|
47
|
-
const removed = provider.removeCursorParentHooks(previousProfile, file);
|
|
48
|
-
result.cursor = provider.mergeCursorParentHooks(profile, file, hook(profile.hooks.cursor));
|
|
49
|
-
if (removed === "removed" && result.cursor === "unchanged")
|
|
50
|
-
result.cursor = "configured";
|
|
51
|
-
commands.cursor = command(profile.hooks.cursor);
|
|
52
|
-
}
|
|
53
|
-
if (clients.includes("codex")) {
|
|
54
|
-
const directory = path.join(home, ".config", "aiterm-mcp", "codex-parent-hooks"), codexHome = path.join(home, ".codex");
|
|
55
|
-
const hookFile = path.join(dist, profile.hooks.codex);
|
|
56
|
-
const runtime = { ...options.codexRuntime, directory, codex_home: codexHome, node: registration.command,
|
|
57
|
-
hook: hookFile, findBinary: () => options.codexBinary };
|
|
58
|
-
result.codex = await provider.configureCodexSteer(profile, "enable", runtime);
|
|
59
|
-
commands.codex = codexHookCommand(registration.command, hookFile, directory);
|
|
60
|
-
}
|
|
61
|
-
return { results: result, commands, registration, relation_scope: "untracked" };
|
|
62
|
-
}
|
|
63
10
|
/**
|
|
64
11
|
* bd14 (setup-update.md "CLIのhookの項目を返す"): the hooks Aiterm needs, as bellteam.harness-entries.v1, for a caller that is
|
|
65
12
|
* the one writer of the CLI files. The entries are what Steer's own writers put into an empty file (no copy of their shapes);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aiterm-mcp",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.61",
|
|
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": [
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
"./setup-node": "./dist/setup-node.js",
|
|
59
59
|
"./setup-integrations": "./dist/setup-integrations.js",
|
|
60
60
|
"./execution-parent-worker": "./dist/execution-parent-worker.js",
|
|
61
|
-
"./execution-native-setup": "./dist/execution-native-setup.js",
|
|
62
61
|
"./execution-native-server": "./dist/execution-native-server.js",
|
|
63
62
|
"./child-result": "./dist/parent-delivery-record.js",
|
|
64
63
|
"./resume-state-cli": "./dist/resume-state-cli.js"
|