aiterm-mcp 0.70.14 → 0.70.15

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,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.70.15] - 2026-11-11
11
+
12
+ - 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.
13
+
10
14
  ## [0.70.14] - 2026-11-11
11
15
 
12
16
  - 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 +3255,8 @@ prototype (preserved under `prototype/python/` as the porting source and referen
3251
3255
  `ubuntu-latest` for Node 18/20/22, publishing to npm on `v*` tags with
3252
3256
  provenance.
3253
3257
 
3254
- [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.14...HEAD
3258
+ [Unreleased]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.15...HEAD
3259
+ [0.70.15]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.14...v0.70.15
3255
3260
  [0.70.14]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.13...v0.70.14
3256
3261
  [0.70.13]: https://github.com/kitepon/aiterm-mcp/compare/v0.70.12...v0.70.13
3257
3262
  [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.14** · 動作対象は Linux · WSL2 · macOS · Windows ネイティブ · MIT · [変更履歴](CHANGELOG.md)。
218
+ **状態:** 開発継続中 · 現行公開版 **v0.70.15** · 動作対象は 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.14** · 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.15** · 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
 
@@ -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), at: new Date().toISOString() };
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
@@ -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";
@@ -3476,6 +3476,7 @@ function parseAgentDoneEvent(line, meta) {
3476
3476
  stop_hook_active: !!ev.stop_hook_active,
3477
3477
  result_digest: typeof ev.result_digest === "string" && /^[0-9a-f]{64}$/.test(ev.result_digest) ? ev.result_digest : undefined,
3478
3478
  result_bytes: Number.isInteger(ev.result_bytes) && ev.result_bytes >= 0 ? ev.result_bytes : undefined,
3479
+ ...(typeof ev.error === "string" && ev.error ? { error: ev.error.slice(0, 2000) } : {}),
3479
3480
  at: typeof ev.at === "string" ? ev.at : new Date().toISOString(),
3480
3481
  },
3481
3482
  malformed: false,
@@ -4296,10 +4297,17 @@ async function observeAgentDoneInternal(name, o = {}) {
4296
4297
  const ended = scanned.event && meta.kind === "claude" ? claudeApiErrorEndingTurn(meta, scanned.event.at) : null;
4297
4298
  if (ended)
4298
4299
  return observation("error", null, null, ended);
4300
+ if (scanned.event?.done_status === "turn_error") {
4301
+ // agy ends a quota-stopped turn with ERROR; its Stop error names the limit (RESOURCE_EXHAUSTED, code 429).
4302
+ const limited = antigravityQuotaLimit(scanned.event.error);
4303
+ if (limited)
4304
+ return { ...observation("rate_limited", scanned.event, limited), failure: { category: "rate_limited", execution: "unknown",
4305
+ boundary: null, terminal: true, future_effects: "unknown" } };
4306
+ return { ...observation("error", scanned.event), error: `Antigravity execution ended: ${scanned.event.reason}${scanned.event.error ? `: ${scanned.event.error}` : ""}`,
4307
+ error_kind: scanned.event.reason };
4308
+ }
4299
4309
  if (scanned.event)
4300
- return scanned.event.done_status === "turn_error"
4301
- ? { ...observation("error", scanned.event), error: `Antigravity execution ended: ${scanned.event.reason}`, error_kind: scanned.event.reason }
4302
- : observation("done", scanned.event);
4310
+ return observation("done", scanned.event);
4303
4311
  }
4304
4312
  if (o.input_id) {
4305
4313
  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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiterm-mcp",
3
- "version": "0.70.14",
3
+ "version": "0.70.15",
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": [