aiterm-mcp 0.70.10 → 0.70.11
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 +1 -1
- package/README.md +1 -1
- package/dist/index.js +9 -5
- package/dist/remote.js +16 -0
- package/dist/tmux-runtime.js +3 -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.11] - 2026-11-10
|
|
11
|
+
|
|
12
|
+
- macOS: a Codex seat with `mcp_config` no longer stops at `reason=unrecognized_screen` with Codex's "unexpected argument '<cwd>'". The pane's bash 3.2 brace-expanded the typed launch line when it held a `"` (the `-c mcp_servers.<name>={...}` value). The one-line launch now sends every quote and expanding character (single and double quotes, backquote, `$`, `!`, `{`, `}`) as a `printf %b` octal escape. Linux, zsh and dash read the same line.
|
|
13
|
+
- `pty_list` seat turns (caller opt-in): terminal relays start before the local read, and their 4 s budget counts only time the event loop was free. Before, a synchronous local read in another overlapping `pty_list` used up the budget while the terminal's answer waited, so most overlapping calls listed every terminal seat in `unread`. Measured with three overlapping calls against the macbook terminal: 0.70.9 left 2 of 3 unread and dropped a row from the third; 0.70.11 returned both rows in all three.
|
|
14
|
+
|
|
10
15
|
## [0.70.10] - 2026-11-10
|
|
11
16
|
|
|
12
17
|
- Claude seats that compacted while idle no longer read as `turn: null` until their next turn. Claude's idle compaction shows a busy spinner and sends no Stop; the `⏺ Compacted while idle` notice above the composer now ends the span that spinner opened, and the row settles to `{state: "idle"}`.
|
|
@@ -3234,7 +3239,8 @@ prototype (preserved under `prototype/python/` as the porting source and referen
|
|
|
3234
3239
|
`ubuntu-latest` for Node 18/20/22, publishing to npm on `v*` tags with
|
|
3235
3240
|
provenance.
|
|
3236
3241
|
|
|
3237
|
-
[Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.
|
|
3242
|
+
[Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.11...HEAD
|
|
3243
|
+
[0.70.11]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.10...v0.70.11
|
|
3238
3244
|
[0.70.10]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.9...v0.70.10
|
|
3239
3245
|
[0.70.9]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.8...v0.70.9
|
|
3240
3246
|
[0.70.8]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.7...v0.70.8
|
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.11** · 動作対象は 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.11** · 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/index.js
CHANGED
|
@@ -37,7 +37,7 @@ import { ExecutionError, executionErrorResult } from "./execution-wire.js";
|
|
|
37
37
|
import { attachExecutionControlRegistrar } from "./execution-tools.js";
|
|
38
38
|
import { ParentDeliveryManager, deliveryKey } from "./parent-delivery.js";
|
|
39
39
|
import { failureObservationSchema } from "./parent-delivery-record.js";
|
|
40
|
-
import { acceptRemote, callRemoteTool, observeRemoteAgentDone, remoteLabel, remoteWaitProcess } from "./remote.js";
|
|
40
|
+
import { acceptRemote, callRemoteTool, loopDeadline, observeRemoteAgentDone, remoteLabel, remoteWaitProcess } from "./remote.js";
|
|
41
41
|
import { codexParentFromRequest } from "./codex-parent-receiver.js";
|
|
42
42
|
import { claudeParentFromRequest, discardClaudeHookRequest } from "./claude-parent-receiver.js";
|
|
43
43
|
import { parentDeliveryDiagnostic } from "./parent-hook-diagnostic.js";
|
|
@@ -842,17 +842,19 @@ export function createAitermServer(options = {}) {
|
|
|
842
842
|
if (!interimCallerFromMeta(requestMeta, server.server.getClientVersion()?.name, server.server.getClientCapabilities()))
|
|
843
843
|
return {};
|
|
844
844
|
try {
|
|
845
|
-
const local = core.readSeatTurns(sessions.filter(session => session.harness !== null).map(session => session.session_id));
|
|
846
845
|
// Terminal seats: the same call relayed with the same _meta; each terminal answers only for its own bound sessions.
|
|
847
846
|
// Inside the caller's 5 s pty_list budget (tool catalog timeout_ms): a terminal that fails or is slow contributes
|
|
848
847
|
// no rows, and its sessions are listed in `unread` so the caller keeps their last state instead of reading them as gone.
|
|
849
848
|
// Overlapping callers share one in-flight relay per terminal: each relay starts its own reader on the terminal, and
|
|
850
849
|
// two readers of one seat at once leave one of them without the span lock (that seat comes back in its `unread`).
|
|
851
|
-
|
|
850
|
+
// Relays start before the synchronous local read so the terminal works meanwhile; their 4 s counts only time this
|
|
851
|
+
// process's event loop was free (loopDeadline), since a blocked loop cannot take the answer however soon it came.
|
|
852
|
+
const relays = Promise.all(terminalSeatGroups().map(({ target, sessions: bound }) => {
|
|
852
853
|
const key = JSON.stringify([target, requestMeta]);
|
|
853
854
|
let call = remoteSeatTurnsInFlight.get(key);
|
|
854
855
|
if (!call) {
|
|
855
|
-
|
|
856
|
+
// The request's own timeout is wall-clock: keep it well above the loop-time budget below.
|
|
857
|
+
call = callRemoteTool(target, "pty_list", {}, 15_000, undefined, requestMeta)
|
|
856
858
|
.then(result => result._meta?.[SEAT_TURNS_RESULT_META_KEY] ?? null, () => null)
|
|
857
859
|
.finally(() => remoteSeatTurnsInFlight.delete(key));
|
|
858
860
|
remoteSeatTurnsInFlight.set(key, call);
|
|
@@ -862,9 +864,11 @@ export function createAitermServer(options = {}) {
|
|
|
862
864
|
? { seats: answer.seats.filter((seat) => bound.includes(seat?.session_id)),
|
|
863
865
|
unread: Array.isArray(answer.unread) ? answer.unread.filter((name) => bound.includes(name)) : [] }
|
|
864
866
|
: { seats: [], unread: bound }),
|
|
865
|
-
|
|
867
|
+
loopDeadline(4_000, { seats: [], unread: bound }),
|
|
866
868
|
]);
|
|
867
869
|
}));
|
|
870
|
+
const local = core.readSeatTurns(sessions.filter(session => session.harness !== null).map(session => session.session_id));
|
|
871
|
+
const remote = await relays;
|
|
868
872
|
return { _meta: { [SEAT_TURNS_RESULT_META_KEY]: { ...local, seats: [...local.seats, ...remote.flatMap(r => r.seats)], unread: [...local.unread, ...remote.flatMap(r => r.unread)] } } };
|
|
869
873
|
}
|
|
870
874
|
catch (e) {
|
package/dist/remote.js
CHANGED
|
@@ -373,3 +373,19 @@ export async function answerAnywhere(session, options) {
|
|
|
373
373
|
const { remote, ...rest } = options ?? {};
|
|
374
374
|
return remote ? readRemoteAgentAnswer(remote, session, rest) : readAgentTranscriptResult(session, rest);
|
|
375
375
|
}
|
|
376
|
+
/** Resolves with `value` after `ms` of event-loop time: a stretch the loop spent blocked counts at most 150 ms. */
|
|
377
|
+
export function loopDeadline(ms, value) {
|
|
378
|
+
return new Promise(resolve => {
|
|
379
|
+
let left = ms, last = performance.now();
|
|
380
|
+
const step = () => {
|
|
381
|
+
const now = performance.now();
|
|
382
|
+
left -= Math.min(now - last, 150);
|
|
383
|
+
last = now;
|
|
384
|
+
if (left <= 0)
|
|
385
|
+
resolve(value);
|
|
386
|
+
else
|
|
387
|
+
setTimeout(step, 100).unref();
|
|
388
|
+
};
|
|
389
|
+
setTimeout(step, 100).unref();
|
|
390
|
+
});
|
|
391
|
+
}
|
package/dist/tmux-runtime.js
CHANGED
|
@@ -894,8 +894,10 @@ export function atomicShellMultiline(text, foreground) {
|
|
|
894
894
|
return text;
|
|
895
895
|
if (!POSIX_ATOMIC_SHELLS.has(foreground))
|
|
896
896
|
return text;
|
|
897
|
+
// Quote-like and expanding bytes travel as %b octal: bash 3.2 (macOS) brace-expands a `{a,b}` in this word when the
|
|
898
|
+
// payload holds a `"` (the old `'"'"'` quote included), and an interactive shell would history-expand a `!`.
|
|
897
899
|
const quoted = text.replace(/\\/g, "\\\\").replace(/\n/g, "\\n")
|
|
898
|
-
.replace(/\r/g, "\\r").replace(/\t/g, "\\t").replace(/'/g,
|
|
900
|
+
.replace(/\r/g, "\\r").replace(/\t/g, "\\t").replace(/['"`$!{}]/g, c => `\\0${c.charCodeAt(0).toString(8).padStart(3, "0")}`);
|
|
899
901
|
// printf %bで本文を復元する。末尾LFの除去はpty_sendのsubmit Enterと同値。
|
|
900
902
|
return `eval "$(command printf '%b' '${quoted}')"`;
|
|
901
903
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aiterm-mcp",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.11",
|
|
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": [
|