aiterm-mcp 0.70.14 → 0.70.16
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 +13 -1
- package/README.ja.md +1 -1
- package/README.md +1 -1
- package/dist/agent-idle-clock.js +24 -7
- package/dist/antigravity-hook.js +2 -1
- package/dist/core.js +45 -8
- package/dist/harnesses/antigravity.js +8 -0
- package/dist/index.js +2 -0
- package/dist/steer-follow.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.70.16] - 2026-11-11
|
|
11
|
+
|
|
12
|
+
- `pty_list` no longer starts an idle-clock checker process for every hibernated, closed or dead seat on every call. A seat without a live session retires its clock at once, so each list re-spawned a checker for it (about 30 per call on a BellTeam host with 50 saved seats and 18 live). The sweep now covers only seats with a live terminal session, and confirms all clock owners with one process read instead of one per seat. On that host this load kept the serving process busy 95 % of the time, with stretches up to 7 s, so a terminal relay's answer often arrived after the 4 s budget and the terminal's seats came back `unread`.
|
|
13
|
+
- The terminal relays of `pty_list` seat turns now really start before the local read. `callRemoteTool` spawns its ssh only after an `await`, so every relay used to start after the synchronous local read.
|
|
14
|
+
- A freshly launched Codex seat that has taken no input reads `idle` in seat turns, instead of `null` until its first turn. Codex writes no rollout before the first input. Aiterm now answers idle when it recorded no input for the launch and the pane is a ready composer.
|
|
15
|
+
|
|
16
|
+
## [0.70.15] - 2026-11-11
|
|
17
|
+
|
|
18
|
+
- An antigravity-cli turn stopped by the account quota now ends as `rate_limited` with the limit line in `rate_limit` (for example "Individual quota reached. ... Resets in 73h4m30s."), as Claude Code, Codex, Grok and Cursor already did. agy ends such a turn with `terminationReason: ERROR` and names the limit only in its Stop hook `error` (`RESOURCE_EXHAUSTED (code 429)`). Aiterm's hook now keeps that text in the turn's record. Before, the caller saw a generic turn error ("Antigravity execution ended: ERROR") and the reason was on the pane only. Other agy turn errors now carry agy's error text after the reason.
|
|
19
|
+
|
|
10
20
|
## [0.70.14] - 2026-11-11
|
|
11
21
|
|
|
12
22
|
- An antigravity-cli seat can start without a prompt while `append_system_prompt` is set, as a wake-first caller (BellTeam) launches every seat. Aiterm keeps the text with the seat and puts it, exactly once, in front of the first input sent to the seat before agy binds a conversation, the same rule Cursor uses for a promptless seat. A restart is a new launch and its own first input carries the text again. Before, such a launch was refused (`AGENT_LAUNCH_NOT_STARTED: append_system_prompt needs a prompt for antigravity-cli`), so a remote agy seat could never start.
|
|
@@ -3251,7 +3261,9 @@ prototype (preserved under `prototype/python/` as the porting source and referen
|
|
|
3251
3261
|
`ubuntu-latest` for Node 18/20/22, publishing to npm on `v*` tags with
|
|
3252
3262
|
provenance.
|
|
3253
3263
|
|
|
3254
|
-
[Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.
|
|
3264
|
+
[Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.16...HEAD
|
|
3265
|
+
[0.70.16]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.15...v0.70.16
|
|
3266
|
+
[0.70.15]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.14...v0.70.15
|
|
3255
3267
|
[0.70.14]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.13...v0.70.14
|
|
3256
3268
|
[0.70.13]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.12...v0.70.13
|
|
3257
3269
|
[0.70.12]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.11...v0.70.12
|
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.16** · 動作対象は 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.16** · 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/agent-idle-clock.js
CHANGED
|
@@ -82,19 +82,36 @@ export async function armAgentIdleClock(meta, anchor, wakeAt, replaceToken) {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
export function requestAgentIdleClock(session, launchId) {
|
|
85
|
+
requestAgentIdleClocks([{ session, launchId }]);
|
|
86
|
+
}
|
|
87
|
+
/** Starts a checker for each seat whose clock owner is gone; every owner is confirmed with one process read. */
|
|
88
|
+
export function requestAgentIdleClocks(seats) {
|
|
85
89
|
if (!AGENT_IDLE_ENABLED)
|
|
86
90
|
return;
|
|
91
|
+
const wanted = [];
|
|
92
|
+
for (const { session, launchId } of seats) {
|
|
93
|
+
try {
|
|
94
|
+
if (!readAgentResumeNative({ aiterm_session: session, launch_id: launchId }))
|
|
95
|
+
continue;
|
|
96
|
+
wanted.push({ session, launchId, clock: readAgentIdleClock({ aiterm_session: session, launch_id: launchId }) });
|
|
97
|
+
}
|
|
98
|
+
catch {
|
|
99
|
+
process.stderr.write("aiterm: idle_clock_state_unconfirmed\n");
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
const owners = wanted.flatMap(seat => seat.clock ? [seat.clock.owner.pid] : []);
|
|
103
|
+
let alive;
|
|
87
104
|
try {
|
|
88
|
-
|
|
89
|
-
return;
|
|
90
|
-
const clock = readAgentIdleClock({ aiterm_session: session, launch_id: launchId });
|
|
91
|
-
if (clock && readProcessIdentities([clock.owner.pid]).some(row => row.started_identity === clock.owner.started_identity))
|
|
92
|
-
return;
|
|
105
|
+
alive = new Set(owners.length ? readProcessIdentities(owners).map(row => `${row.pid}:${row.started_identity}`) : []);
|
|
93
106
|
}
|
|
94
107
|
catch {
|
|
95
108
|
process.stderr.write("aiterm: idle_clock_state_unconfirmed\n");
|
|
96
109
|
return;
|
|
97
110
|
}
|
|
98
|
-
|
|
99
|
-
|
|
111
|
+
for (const { session, launchId, clock } of wanted) {
|
|
112
|
+
if (clock && alive.has(`${clock.owner.pid}:${clock.owner.started_identity}`))
|
|
113
|
+
continue;
|
|
114
|
+
void detached(idleClockCommand(0, liveNodeExecutable(), [CLI, "--session", session, "--launch", launchId]))
|
|
115
|
+
.catch(() => { process.stderr.write("aiterm: idle_clock_start_failed\n"); });
|
|
116
|
+
}
|
|
100
117
|
}
|
package/dist/antigravity-hook.js
CHANGED
|
@@ -52,7 +52,8 @@ async function main() {
|
|
|
52
52
|
const record = { type: "agent_done", vendor: "antigravity", aiterm_session: name, launch_id: launch,
|
|
53
53
|
vendor_session_id: payload.conversationId, turn_id: turn, operation_id: null,
|
|
54
54
|
reason: payload.terminationReason, done_status: success ? "turn_done" : "turn_error",
|
|
55
|
-
result_digest: createHash("sha256").update(text).digest("hex"), result_bytes: Buffer.byteLength(text),
|
|
55
|
+
result_digest: createHash("sha256").update(text).digest("hex"), result_bytes: Buffer.byteLength(text),
|
|
56
|
+
...(payload.error ? { error: payload.error.slice(0, 2000) } : {}), at: new Date().toISOString() };
|
|
56
57
|
fs.appendFileSync(meta.event_file, JSON.stringify(record) + "\n", { mode: 0o600 });
|
|
57
58
|
return {};
|
|
58
59
|
}
|
package/dist/core.js
CHANGED
|
@@ -38,7 +38,7 @@ import { withCodexGoal } from "./harnesses/codex-goal.js";
|
|
|
38
38
|
import { configureWithPausedGoal } from "./configure-goal.js";
|
|
39
39
|
import { initializeAgentActivity, recordAgentInput, recordAgentTurnEnd, readAgentActivity } from "./agent-activity.js";
|
|
40
40
|
import { checkIdleSeat, decideIdleSeat, idleMinutes } from "./agent-idle.js";
|
|
41
|
-
import { AGENT_IDLE_ENABLED, armAgentIdleClock, idleClockDeadline, isAgentIdleClockOwner, requestAgentIdleClock } from "./agent-idle-clock.js";
|
|
41
|
+
import { AGENT_IDLE_ENABLED, armAgentIdleClock, idleClockDeadline, isAgentIdleClockOwner, requestAgentIdleClock, requestAgentIdleClocks } from "./agent-idle-clock.js";
|
|
42
42
|
import { stopProcessTree } from "./process-tree-stop.js";
|
|
43
43
|
import { writeAgentResumeRecoveryOrigin, confirmedAgentResumeRecoveryOrigin, readAgentResumeResolution, writeAgentResumeResolution, agentResumeRecordDigest, captureAgentResumeTemplate, readAgentResumeTemplate, writeAgentResumeTemplate, finishAgentResumeConfiguration, refreshAgentResumeRecipe, readAgentIdleClock, retireAgentIdleClock, readAgentResumeRecipe, writeAgentResumeRecipe, agentResumeRecipeDigest, readAgentLifecycle, writeAgentLifecycle, cancelAgentStopping, readAgentResumeAttempt, writeAgentResumeAttempt, readAgentResumeNative, writeAgentResumeNative } from "./agent-lifecycle.js";
|
|
44
44
|
import { createCodexGoalObjective, editCodexGoalObjective, submitCodexGoalCommand } from "./harnesses/codex-goal-editor.js";
|
|
@@ -48,7 +48,7 @@ import { withExecutionInterruptEffectScope, bindExecutionNativeTarget, beforeExe
|
|
|
48
48
|
import { ExecutionError } from "./execution-wire.js";
|
|
49
49
|
import { readExecutionParentProcess } from "./execution-parent-process.js";
|
|
50
50
|
import { isCursorMcpClient } from "aiterm-steer-delivery";
|
|
51
|
-
import { antigravityBinding, antigravityAuthChoiceKey, antigravityCurrentModel, antigravityStartupAction, antigravityAgentArgv, writeAntigravityCallerFiles, checkAntigravityCallerInput, antigravityPromptWithCaller, antigravityModelChoices, antigravityAuthStatus, antigravityAuthPane, antigravityTranscriptText, bindAntigravitySession, createAntigravityAgentMetadata, mergeAntigravityHooks } from "./harnesses/antigravity.js";
|
|
51
|
+
import { antigravityBinding, antigravityAuthChoiceKey, antigravityCurrentModel, antigravityStartupAction, antigravityAgentArgv, writeAntigravityCallerFiles, checkAntigravityCallerInput, antigravityPromptWithCaller, antigravityQuotaLimit, antigravityModelChoices, antigravityAuthStatus, antigravityAuthPane, antigravityTranscriptText, bindAntigravitySession, createAntigravityAgentMetadata, mergeAntigravityHooks } from "./harnesses/antigravity.js";
|
|
52
52
|
import { paneTokenHint } from "./harnesses/pane-tokens.js";
|
|
53
53
|
import { unfinishedDeliveriesOwnedBy } from "./parent-delivery-owners.js";
|
|
54
54
|
import { readLinuxProcessRegistrationIdentity, readRuntimeProcesses, readProcessIdentities, processSubtree, parentProcess, processIdentity, signalRuntimeProcess, backgroundProcesses, lazyRelayProcess, aitermProcessProbe, windowsConsoleHost, macKeepAwakeProcess, processElapsedSeconds } from "./process-runtime.js";
|
|
@@ -70,7 +70,7 @@ import { codexAuthPlan, codexAuthStatus, codexAuthPane, realCodexHome, readCodex
|
|
|
70
70
|
import { claudeAuthPlan, claudeAuthStatus, claudeAuthPane, OPERATION_ID_RE, CLAUDE_RESULT_MAX_BYTES, CLAUDE_EFFORTS, agentClaudeOperationPath, agentClaudeApprovalReceiptPath, agentClaudeDispatchReceiptPath, validateOperationId, readClaudeResultText, assertClaudeAuthenticationReady, claudeModelChoices, claudeConfigDir, claudeProjectSlug, claudeFastIndicatorShown, claudeFastResult, buildClaudeAgentCmd, claudeAgentArgv, claudeResumeArgv, claudeLaunchNote, claudePaneObservation, CLAUDE_INTERRUPT_KEY, claudeUsageLimit, claudeLiveSelectMenu, claudeStartupAction, createClaudeAgentMetadata, writeClaudeCallerFiles, claudeSessionTranscriptPath, claudeApiErrorFromLine, claudeApiErrorAfter, claudeApiErrorEndingTurn, claudeFailureCategory, } from "./harnesses/claude.js";
|
|
71
71
|
import { cursorAuthPlan, cursorAuthStatus, cursorAuthPane, bindCursorTranscriptSession, cursorTurnBoundary, latestCursorCompletion, cursorTranscript, cursorTranscriptSessionId, observeCursorDone, cursorTranscriptText, assertCursorAuthenticationReady, assertCursorModelAvailable, cursorModelChoices, cursorModelIsFastVariant, cursorFastParameter, cursorHeaderShowsFast, cursorPickerView, cursorEffortSelected, cursorParameterRows, cursorUserConfigPath, CURSOR_DEFAULT_MODEL_KEYS, realCursorHome, buildCursorAgentCmd, cursorAgentArgv, cursorPromptWithLineage, cursorLineagePreface, writeCursorCallerFiles, checkCursorCallerInput, createCursorAgentMetadata, cursorLaunchNote, cursorEffortNavigation, cursorTuiReady, cursorPaneObservation, CURSOR_INTERRUPT_KEY, cursorPromptHooksRunning, cursorUsageLimit, CURSOR_SUBMIT_SEQUENCE, validateCursorModelEffort, } from "./harnesses/cursor.js";
|
|
72
72
|
import { interimFromNow, interimFromToken, readInterimWords, recordInterimBoundary } from "./interim-words.js";
|
|
73
|
-
import { codexSeatTurn, grokSteerAcceptance, observeSteerDone, readSteerEntry, recordSteer } from "./steer-follow.js";
|
|
73
|
+
import { codexSeatAwaitingRollout, codexSeatTurn, grokSteerAcceptance, observeSteerDone, readSteerEntry, recordSteer } from "./steer-follow.js";
|
|
74
74
|
import { resolveAgentBin, resolveThroughlineBin, runThroughlineHandoffContext, isWindowsNativeExecutable, isUsableAgentExecutableFile, agentBinForPaneShell, resolveWinPaneShell, windowsAgentArgv, windowsAgentLaunchLine, windowsLaunchIndirection } from "./agent-resolver.js";
|
|
75
75
|
export { AitermError } from "./errors.js";
|
|
76
76
|
export { tmuxSpawnEnv } from "./tmux-runtime.js";
|
|
@@ -2031,16 +2031,32 @@ export async function serviceAgentIdleClock(expectedInput, token) {
|
|
|
2031
2031
|
export async function maintainAgentIdleClocks() {
|
|
2032
2032
|
if (!AGENT_IDLE_ENABLED)
|
|
2033
2033
|
return;
|
|
2034
|
+
// Only seats with a live terminal session: a hibernated, closed or dead seat retires its clock at once, so requesting
|
|
2035
|
+
// one on every list started a checker process per such seat per call (2026-11-11: ~30 per pty_list on the BellTeam host).
|
|
2036
|
+
let live;
|
|
2037
|
+
try {
|
|
2038
|
+
const listed = tmux("list-sessions", "-F", "#{session_name}");
|
|
2039
|
+
if (listed.code !== 0)
|
|
2040
|
+
return;
|
|
2041
|
+
live = new Set(listed.stdout.split(/\r?\n/).filter(Boolean));
|
|
2042
|
+
}
|
|
2043
|
+
catch {
|
|
2044
|
+
return;
|
|
2045
|
+
} // no usable tmux here: no live seat to time, and the list call itself must not fail
|
|
2046
|
+
const seats = [];
|
|
2034
2047
|
for (const name of savedAgentSessionNames()) {
|
|
2048
|
+
if (!live.has(name))
|
|
2049
|
+
continue;
|
|
2035
2050
|
try {
|
|
2036
2051
|
const meta = loadAgentMetadata(name);
|
|
2037
2052
|
if (["claude", "codex"].includes(meta.kind))
|
|
2038
|
-
|
|
2053
|
+
seats.push({ session: name, launchId: meta.launch_id });
|
|
2039
2054
|
}
|
|
2040
2055
|
catch {
|
|
2041
2056
|
process.stderr.write("aiterm: idle_clock_sweep_unconfirmed\n");
|
|
2042
2057
|
}
|
|
2043
2058
|
}
|
|
2059
|
+
requestAgentIdleClocks(seats);
|
|
2044
2060
|
}
|
|
2045
2061
|
/** Private guarded-runtime read. Legacy metadata without an original native
|
|
2046
2062
|
* creator stamp remains a present but unverified generation, never enrolled
|
|
@@ -3476,6 +3492,7 @@ function parseAgentDoneEvent(line, meta) {
|
|
|
3476
3492
|
stop_hook_active: !!ev.stop_hook_active,
|
|
3477
3493
|
result_digest: typeof ev.result_digest === "string" && /^[0-9a-f]{64}$/.test(ev.result_digest) ? ev.result_digest : undefined,
|
|
3478
3494
|
result_bytes: Number.isInteger(ev.result_bytes) && ev.result_bytes >= 0 ? ev.result_bytes : undefined,
|
|
3495
|
+
...(typeof ev.error === "string" && ev.error ? { error: ev.error.slice(0, 2000) } : {}),
|
|
3479
3496
|
at: typeof ev.at === "string" ? ev.at : new Date().toISOString(),
|
|
3480
3497
|
},
|
|
3481
3498
|
malformed: false,
|
|
@@ -3761,7 +3778,7 @@ export function readSeatTurns(sessionIds) {
|
|
|
3761
3778
|
try {
|
|
3762
3779
|
const state = agentDormantState(meta);
|
|
3763
3780
|
turn = state ? (state === "hibernated" && observeSession(name).state === "hibernated" ? { state: "idle" } : null)
|
|
3764
|
-
: meta.kind === "codex" ? codexSeatTurn(meta) : readManagedSeatTurn(meta);
|
|
3781
|
+
: meta.kind === "codex" ? codexSeatTurn(meta) ?? freshCodexSeatTurn(meta) : readManagedSeatTurn(meta);
|
|
3765
3782
|
}
|
|
3766
3783
|
catch { /* 読めない席は、分からないまま返す */ }
|
|
3767
3784
|
if (turn === SPAN_HELD) {
|
|
@@ -3780,6 +3797,19 @@ export function readSeatTurns(sessionIds) {
|
|
|
3780
3797
|
seat.turn = null;
|
|
3781
3798
|
return { schema: "aiterm.seat-turns.v1", seats, unread };
|
|
3782
3799
|
}
|
|
3800
|
+
/**
|
|
3801
|
+
* Codex writes no rollout before its first input, so codexSeatTurn has nothing to read for a fresh launch. A launch that
|
|
3802
|
+
* never took input (Aiterm records every input it types) and whose pane is a ready composer has no turn to hide: idle,
|
|
3803
|
+
* the rule the other harnesses got in 0.64.1 / 0.68.1. Any recorded input keeps the rollout as the only source.
|
|
3804
|
+
*/
|
|
3805
|
+
export function freshCodexSeatTurn(meta, paneState = () => observeSession(meta.aiterm_session).state) {
|
|
3806
|
+
if (!codexSeatAwaitingRollout(meta))
|
|
3807
|
+
return null;
|
|
3808
|
+
const activity = readAgentActivity(meta);
|
|
3809
|
+
if (!activity.tracked || activity.last_input_at !== null)
|
|
3810
|
+
return null;
|
|
3811
|
+
return paneState() === "idle" ? { state: "idle" } : null;
|
|
3812
|
+
}
|
|
3783
3813
|
function managedSeatConversation(meta) {
|
|
3784
3814
|
if (meta.kind === "antigravity") {
|
|
3785
3815
|
const bound = antigravityBinding(meta);
|
|
@@ -4296,10 +4326,17 @@ async function observeAgentDoneInternal(name, o = {}) {
|
|
|
4296
4326
|
const ended = scanned.event && meta.kind === "claude" ? claudeApiErrorEndingTurn(meta, scanned.event.at) : null;
|
|
4297
4327
|
if (ended)
|
|
4298
4328
|
return observation("error", null, null, ended);
|
|
4329
|
+
if (scanned.event?.done_status === "turn_error") {
|
|
4330
|
+
// agy ends a quota-stopped turn with ERROR; its Stop error names the limit (RESOURCE_EXHAUSTED, code 429).
|
|
4331
|
+
const limited = antigravityQuotaLimit(scanned.event.error);
|
|
4332
|
+
if (limited)
|
|
4333
|
+
return { ...observation("rate_limited", scanned.event, limited), failure: { category: "rate_limited", execution: "unknown",
|
|
4334
|
+
boundary: null, terminal: true, future_effects: "unknown" } };
|
|
4335
|
+
return { ...observation("error", scanned.event), error: `Antigravity execution ended: ${scanned.event.reason}${scanned.event.error ? `: ${scanned.event.error}` : ""}`,
|
|
4336
|
+
error_kind: scanned.event.reason };
|
|
4337
|
+
}
|
|
4299
4338
|
if (scanned.event)
|
|
4300
|
-
return scanned.event
|
|
4301
|
-
? { ...observation("error", scanned.event), error: `Antigravity execution ended: ${scanned.event.reason}`, error_kind: scanned.event.reason }
|
|
4302
|
-
: observation("done", scanned.event);
|
|
4339
|
+
return observation("done", scanned.event);
|
|
4303
4340
|
}
|
|
4304
4341
|
if (o.input_id) {
|
|
4305
4342
|
const current = readClaudeOperationMarker(meta);
|
|
@@ -226,6 +226,14 @@ export function writeAntigravityCallerFiles(meta, prompt, mcp, valueOf) {
|
|
|
226
226
|
meta.antigravity_caller_mcp_dir = dir;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
+
/**
|
|
230
|
+
* The limit line of a quota-stopped turn, from agy's Stop `error` (agy 1.5.5:
|
|
231
|
+
* "generating and executing: RESOURCE_EXHAUSTED (code 429): Individual quota reached. ... Resets in 73h4m30s.").
|
|
232
|
+
*/
|
|
233
|
+
export function antigravityQuotaLimit(error) {
|
|
234
|
+
const m = error ? /\bRESOURCE_EXHAUSTED\b[^:]*:\s*([\s\S]+)|\(code 429\):\s*([\s\S]+)/.exec(error) : null;
|
|
235
|
+
return m ? (m[1] ?? m[2]).trim() : null;
|
|
236
|
+
}
|
|
229
237
|
/** The first prompt with the caller's text in front (the seat's only instruction channel here). */
|
|
230
238
|
export function antigravityPromptWithCaller(meta, prompt) {
|
|
231
239
|
const caller = readCallerText(meta.antigravity_caller_prompt_file);
|
package/dist/index.js
CHANGED
|
@@ -867,6 +867,8 @@ export function createAitermServer(options = {}) {
|
|
|
867
867
|
loopDeadline(4_000, { seats: [], unread: bound }),
|
|
868
868
|
]);
|
|
869
869
|
}));
|
|
870
|
+
// callRemoteTool spawns its ssh only after an await: let the relays start before this process blocks on the local read.
|
|
871
|
+
await new Promise(resolve => setImmediate(resolve));
|
|
870
872
|
const local = core.readSeatTurns(sessions.filter(session => session.harness !== null).map(session => session.session_id));
|
|
871
873
|
const remote = await relays;
|
|
872
874
|
return { _meta: { [SEAT_TURNS_RESULT_META_KEY]: { ...local, seats: [...local.seats, ...remote.flatMap(r => r.seats)], unread: [...local.unread, ...remote.flatMap(r => r.unread)] } } };
|
package/dist/steer-follow.js
CHANGED
|
@@ -611,6 +611,10 @@ function codexSeatTranscript(meta) {
|
|
|
611
611
|
* (実物 2026-10-13: 最初の番の間も、終わった後も、会話のIDは席の登録に入っていなかった)。
|
|
612
612
|
* harnessが落ちた席は、終わりの印が書かれないので、動いていると読んだままになる(呼び手は、席が閉じた事を待ちのclosedで知る)。
|
|
613
613
|
*/
|
|
614
|
+
/** codexSeatTurn's last look found no rollout for this unbound launch (Codex writes none before the first input). */
|
|
615
|
+
export function codexSeatAwaitingRollout(meta) {
|
|
616
|
+
return meta.kind === "codex" && !meta.vendor_session_id && codexSeatUnresolved.get(meta.aiterm_session)?.key === `${meta.launch_id}:`;
|
|
617
|
+
}
|
|
614
618
|
export function codexSeatTurn(meta, now = performance.now()) {
|
|
615
619
|
if (meta.kind !== "codex")
|
|
616
620
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aiterm-mcp",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.16",
|
|
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": [
|