@botiverse/oar 0.95.1 → 0.97.0

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.
Files changed (118) hide show
  1. package/README.md +64 -44
  2. package/dist/contracts/context-usage.d.ts +7 -0
  3. package/dist/contracts/context-usage.d.ts.map +1 -0
  4. package/dist/contracts/context-usage.js +2 -0
  5. package/dist/contracts/context-usage.js.map +1 -0
  6. package/dist/contracts/control.d.ts +4 -1
  7. package/dist/contracts/control.d.ts.map +1 -1
  8. package/dist/contracts/deliver.d.ts +3 -1
  9. package/dist/contracts/deliver.d.ts.map +1 -1
  10. package/dist/contracts/index.d.ts +1 -1
  11. package/dist/contracts/index.d.ts.map +1 -1
  12. package/dist/contracts/index.js.map +1 -1
  13. package/dist/contracts/records.d.ts +8 -9
  14. package/dist/contracts/records.d.ts.map +1 -1
  15. package/dist/contracts/runtime-failure-error.d.ts +9 -3
  16. package/dist/contracts/runtime-failure-error.d.ts.map +1 -1
  17. package/dist/contracts/runtime-failure-error.js +0 -9
  18. package/dist/contracts/runtime-failure-error.js.map +1 -1
  19. package/dist/contracts/session.d.ts +3 -1
  20. package/dist/contracts/session.d.ts.map +1 -1
  21. package/dist/runtimes/antigravity/auth.d.ts +11 -0
  22. package/dist/runtimes/antigravity/auth.d.ts.map +1 -0
  23. package/dist/runtimes/antigravity/auth.js +207 -0
  24. package/dist/runtimes/antigravity/auth.js.map +1 -0
  25. package/dist/runtimes/antigravity/index.d.ts +3 -0
  26. package/dist/runtimes/antigravity/index.d.ts.map +1 -1
  27. package/dist/runtimes/antigravity/index.js +4 -0
  28. package/dist/runtimes/antigravity/index.js.map +1 -1
  29. package/dist/runtimes/antigravity/login-browser.d.ts +14 -0
  30. package/dist/runtimes/antigravity/login-browser.d.ts.map +1 -0
  31. package/dist/runtimes/antigravity/login-browser.js +30 -0
  32. package/dist/runtimes/antigravity/login-browser.js.map +1 -0
  33. package/dist/runtimes/codex/installation.d.ts +8 -0
  34. package/dist/runtimes/codex/installation.d.ts.map +1 -1
  35. package/dist/runtimes/codex/installation.js +22 -1
  36. package/dist/runtimes/codex/installation.js.map +1 -1
  37. package/dist/runtimes/codex/refusal.d.ts +33 -0
  38. package/dist/runtimes/codex/refusal.d.ts.map +1 -0
  39. package/dist/runtimes/codex/refusal.js +90 -0
  40. package/dist/runtimes/codex/refusal.js.map +1 -0
  41. package/dist/runtimes/codex/rpc-control.d.ts +13 -1
  42. package/dist/runtimes/codex/rpc-control.d.ts.map +1 -1
  43. package/dist/runtimes/codex/rpc-control.js +23 -2
  44. package/dist/runtimes/codex/rpc-control.js.map +1 -1
  45. package/dist/runtimes/codex/session.d.ts.map +1 -1
  46. package/dist/runtimes/codex/session.js +19 -13
  47. package/dist/runtimes/codex/session.js.map +1 -1
  48. package/dist/runtimes/cursor/auth-status.d.ts +1 -1
  49. package/dist/runtimes/cursor/auth-status.js +2 -2
  50. package/dist/runtimes/cursor/index.d.ts +1 -1
  51. package/dist/runtimes/cursor/login.js +1 -1
  52. package/dist/runtimes/cursor/logout.js +1 -1
  53. package/dist/runtimes/grok/failure.d.ts.map +1 -1
  54. package/dist/runtimes/grok/failure.js +35 -6
  55. package/dist/runtimes/grok/failure.js.map +1 -1
  56. package/dist/runtimes/grok/native-turns.d.ts +13 -0
  57. package/dist/runtimes/grok/native-turns.d.ts.map +1 -0
  58. package/dist/runtimes/grok/native-turns.js +49 -0
  59. package/dist/runtimes/grok/native-turns.js.map +1 -0
  60. package/dist/runtimes/grok/session.d.ts.map +1 -1
  61. package/dist/runtimes/grok/session.js +12 -6
  62. package/dist/runtimes/grok/session.js.map +1 -1
  63. package/dist/runtimes/grok/spontaneous-usage.d.ts +6 -5
  64. package/dist/runtimes/grok/spontaneous-usage.d.ts.map +1 -1
  65. package/dist/runtimes/grok/spontaneous-usage.js +7 -6
  66. package/dist/runtimes/grok/spontaneous-usage.js.map +1 -1
  67. package/dist/runtimes/opencode/failure.d.ts +3 -0
  68. package/dist/runtimes/opencode/failure.d.ts.map +1 -0
  69. package/dist/runtimes/opencode/failure.js +29 -0
  70. package/dist/runtimes/opencode/failure.js.map +1 -0
  71. package/dist/runtimes/opencode/session.d.ts.map +1 -1
  72. package/dist/runtimes/opencode/session.js +2 -0
  73. package/dist/runtimes/opencode/session.js.map +1 -1
  74. package/dist/shared/acp/native-turns.d.ts +37 -0
  75. package/dist/shared/acp/native-turns.d.ts.map +1 -0
  76. package/dist/shared/acp/native-turns.js +107 -0
  77. package/dist/shared/acp/native-turns.js.map +1 -0
  78. package/dist/shared/acp/profile.d.ts +44 -2
  79. package/dist/shared/acp/profile.d.ts.map +1 -1
  80. package/dist/shared/acp/profile.js.map +1 -1
  81. package/dist/shared/acp/records.d.ts +4 -1
  82. package/dist/shared/acp/records.d.ts.map +1 -1
  83. package/dist/shared/acp/records.js +2 -2
  84. package/dist/shared/acp/records.js.map +1 -1
  85. package/dist/shared/acp/session-state.d.ts +22 -0
  86. package/dist/shared/acp/session-state.d.ts.map +1 -0
  87. package/dist/shared/acp/session-state.js +39 -0
  88. package/dist/shared/acp/session-state.js.map +1 -0
  89. package/dist/shared/acp/session.d.ts +3 -17
  90. package/dist/shared/acp/session.d.ts.map +1 -1
  91. package/dist/shared/acp/session.js +25 -43
  92. package/dist/shared/acp/session.js.map +1 -1
  93. package/dist/shared/acp/steer-request.d.ts +12 -0
  94. package/dist/shared/acp/steer-request.d.ts.map +1 -0
  95. package/dist/shared/acp/steer-request.js +56 -0
  96. package/dist/shared/acp/steer-request.js.map +1 -0
  97. package/dist/shared/acp/token-usage.d.ts +1 -1
  98. package/dist/shared/acp/token-usage.d.ts.map +1 -1
  99. package/dist/shared/acp/token-usage.js +2 -2
  100. package/dist/shared/acp/token-usage.js.map +1 -1
  101. package/dist/shared/acp/turns.d.ts +6 -2
  102. package/dist/shared/acp/turns.d.ts.map +1 -1
  103. package/dist/shared/acp/turns.js +4 -3
  104. package/dist/shared/acp/turns.js.map +1 -1
  105. package/dist/shared/deliver-interrupt.d.ts.map +1 -1
  106. package/dist/shared/deliver-interrupt.js +2 -1
  107. package/dist/shared/deliver-interrupt.js.map +1 -1
  108. package/dist/shared/deliver.d.ts +5 -1
  109. package/dist/shared/deliver.d.ts.map +1 -1
  110. package/dist/shared/deliver.js +5 -1
  111. package/dist/shared/deliver.js.map +1 -1
  112. package/dist/shared/record-retention.d.ts.map +1 -1
  113. package/dist/shared/record-retention.js +3 -1
  114. package/dist/shared/record-retention.js.map +1 -1
  115. package/dist/shared/seal-session.d.ts.map +1 -1
  116. package/dist/shared/seal-session.js +3 -2
  117. package/dist/shared/seal-session.js.map +1 -1
  118. package/package.json +3 -3
package/README.md CHANGED
@@ -18,7 +18,7 @@ if (installation?.kind === "available") {
18
18
  }
19
19
  }, { coalesceText: true });
20
20
  const run = await promptAndWait(session, "Inspect this repository");
21
- console.log(run.kind === "rejected" ? run.reason : run.outcome);
21
+ console.log("outcome" in run ? run.outcome : run.kind);
22
22
  console.log(session.usage(), await runtime.accountUsage?.(installation));
23
23
  await session.dispose();
24
24
  }
@@ -32,25 +32,33 @@ request-based fallback. For a lower-level wait, pass the inputId to
32
32
  root turn end after that cursor. `session.prompt()` already generates an id
33
33
  when omitted; it is recorded on the returned prompt request. A native
34
34
  before-start cancellation resolves an input-scoped wait as `aborted`, even
35
- without a turn-end event. `awaitIdle` waits through an intervening notification
36
- while a host prompt remains pending.
35
+ without a turn-end event. When the runtime handles the input natively without
36
+ a model turn (Pi, for an extension command), `promptAndWait` returns
37
+ `kind: "handled"` with the `input_handled` disposition; that is not success.
38
+ `awaitIdle` waits through an intervening notification while a host prompt
39
+ remains pending.
37
40
 
38
41
  `session.events()` delivers flat, attributed `Event`s (native user message
39
42
  echoes, text, reasoning, tool call start / later input / progress / end, turn
40
43
  start and end, usage, model, effort, compaction start / end, retry, background
41
44
  tasks and subagents started, updated and ended, runtime→app requests and oar's
42
- answers, control rejections, withdrawn inputs, the process exit), each carrying
43
- the `seq` and `agentPath` of the record it was read from. Kinds a runtime never
44
- says (claude has no compaction start, ACP runtimes and cursor no compaction,
45
- pi and pi-durable report retry) never appear; the runtime pages say which. It is a
45
+ answers, control rejections, withdrawn and natively handled inputs, the process
46
+ exit), each carrying the `seq` and `agentPath` of the record it was read from.
47
+ Kinds a runtime never says never appear (claude has no compaction start;
48
+ kimi, codebuddy and antigravity no compaction; of the core runtimes only
49
+ codex, pi and pi-durable report retry); the runtime pages say which. It is a
46
50
  projection over the record stream, which `session.rawEvents()` and
47
51
  `session.records()` expose (`RawEvent`: `Frame` with the native payload
48
52
  verbatim, `RequestRecord`, `ResponseRecord`) for consumers who need the
49
- runtime's own frames. `tool_call_ended.exitCode` is the exit status a runtime
53
+ runtime's own frames. `SessionOptions.retainedBytes` bounds what the process
54
+ retains: past it the oldest frames lose `native` and tool input and output and
55
+ carry `elided: true`, while live observers still receive every record complete
56
+ ([bounding retained records](https://github.com/botiverse/oar/blob/main/docs/spec/record-stream.md#bounding-retained-records)).
57
+ `tool_call_ended.exitCode` is the exit status a runtime
50
58
  reports for a command it ran, absent where it reports none (claude); see
51
59
  [tool outcomes](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#tool-outcomes).
52
60
  In `session.usage()`, `TokenTotals.reasoning` is the part of `output` the
53
- runtime reports as reasoning (codex, grok, pi, pi-durable, cursor; absent
61
+ runtime reports as reasoning (codex, grok, pi, pi-durable, cursor, dsh; absent
54
62
  elsewhere): never add it to `output` again
55
63
  ([reasoning tokens](https://github.com/botiverse/oar/blob/main/docs/spec/attribution.md#reasoning-tokens)).
56
64
 
@@ -79,7 +87,11 @@ name; `deliver` and `steerOrQueue` queue where it is absent. `session.withdraw(i
79
87
  sent (`accepted`), or answers `not_queued` once it went; with it a UI offers
80
88
  withdraw, edit (withdraw, then `queue` again) and send now (withdraw, then
81
89
  `deliver`). It exists where OAR holds the queue itself (claude, pi, qwen, qoder, cursor
82
- and the ACP runtimes), and on pi-durable through native submission cancellation, not on codex.
90
+ and the ACP runtimes), on pi-durable through native submission cancellation and on
91
+ dsh through native inbox removal where its method inventory advertises it, not on codex.
92
+ `session.stopTask(taskId)` stops one native task without aborting its parent
93
+ (claude, codex, qoder); acceptance is the native acknowledgement, never a task
94
+ end ([single-task stop](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#native-tasks-and-single-task-stop)).
83
95
  `session.compact()` is optional on Claude, Codex, Pi SDK/RPC, Grok, Qoder,
84
96
  Cursor and OpenCode v2 sessions. OpenCode v1 omits it.
85
97
  `runtime.manualCompaction` describes support and active-turn policy; these
@@ -145,18 +157,18 @@ The package has these public entry points, plus `@botiverse/oar/pi-durable` ([be
145
157
 
146
158
  Brand SVG files are exported at `@botiverse/oar/assets/brands/<runtime-id>.svg`. Any other deep import (`@botiverse/oar/dist/...`, source paths) is internal and may break without notice.
147
159
 
148
- Antigravity, CodeBuddy, Grok, Kimi, and OpenCode share an internal ACP v1 transport and session kernel, but only their concrete runtime identities are public. The registry deliberately does not expose a generic `acp` runtime. Cursor runs in the host process through its SDK; Pi does too by default, or in its own RPC process with `createPiRuntime({ execution: "subprocess" })`. The pi SDK (`@earendil-works/pi-coding-agent`) is a dependency of this package. `@cursor/sdk` is an optional peer dependency, and cursor is not in `defaultRuntimes`: install the SDK (`npm install @cursor/sdk@1.2.0`) and hand it over, `createRuntimeRegistry([...defaultRuntimes.list(), createCursorRuntime({ sdk: () => import("@cursor/sdk") })])`. Written in your code, that import fails your compile if the package is missing. It is Cursor's own package under Cursor's terms, and it signs in with `CURSOR_API_KEY` or its own `Cursor.auth.login()`.
160
+ Antigravity, CodeBuddy, Grok, Kimi, and OpenCode share an internal ACP v1 transport and session kernel, but only their concrete runtime identities are public. The registry deliberately does not expose a generic `acp` runtime. The pi SDK (`@earendil-works/pi-coding-agent`) is a dependency of this package. `@cursor/sdk` is an optional peer dependency, and cursor is not in `defaultRuntimes`: install the SDK (`npm install @cursor/sdk@1.3.1`) and hand it over, `createRuntimeRegistry([...defaultRuntimes.list(), createCursorRuntime({ sdk: () => import("@cursor/sdk") })])`. Written in your code, that import fails your compile if the package is missing. It is Cursor's own package under Cursor's terms, and it signs in with `CURSOR_API_KEY` or its own `Cursor.auth.login()`.
149
161
 
150
162
  Community runtimes are contributed and maintained outside the core team (each maintainer is named on its runtime page). They ship in this package from a separate entry point, `@botiverse/oar/community`, and are not in `defaultRuntimes`: `createRuntimeRegistry([...defaultRuntimes.list(), createMorphRuntime()])` adds [Mister Morph](https://github.com/botiverse/oar/blob/main/docs/runtimes/morph.md), driven through its Console Runtime API. The `oar` CLI includes them.
151
163
 
152
- **Pi 1.0.3 Azure migration:** Pi renamed its provider from
153
- `azure-openai-responses` to `azure`. Update that prefix in native provider
154
- configuration and `SessionOptions.model`. When resuming an old Azure session,
155
- explicitly pass `model: "azure/<model>"`; without it, Pi can retain the
164
+ **Pi Azure provider (since Pi 1.0.3):** the provider is `azure`, not
165
+ `azure-openai-responses`; use that prefix in native provider configuration and
166
+ `SessionOptions.model`. When resuming an old Azure session, pass
167
+ `model: "azure/<model>"` explicitly; without it, Pi can retain the
156
168
  conversation while selecting a different default model. The opening `model`
157
169
  event and `Session.model()` report the effective selection. OAR's `^1.5.0`
158
- dependency range includes this upstream update. See the
159
- [migration evidence and limits](https://github.com/botiverse/oar/blob/main/experiments/runtime-version-checks/2026-10-05.md).
170
+ dependency range includes this change
171
+ ([migration evidence and limits](https://github.com/botiverse/oar/blob/main/experiments/runtime-version-checks/2026-10-05.md)).
160
172
 
161
173
  **Pi 1.5.0 default prompt:** the bundled native default system prompt has
162
174
  changed. Hosts that need stable wording should pass their own `systemPrompt`.
@@ -178,8 +190,9 @@ and `codebuddyRuntime` (CodeBuddy Code's ACP server) are in `defaultRuntimes`
178
190
  too; see the [Qoder](https://github.com/botiverse/oar/blob/main/docs/runtimes/qoder.md)
179
191
  and [CodeBuddy](https://github.com/botiverse/oar/blob/main/docs/runtimes/codebuddy.md) mappings.
180
192
  `dshRuntime` (DeepSeek Harness through a private plugin on its native services, one
181
- process per session, `0.2.1-rc.5` or later) is too; most session options stay refused
182
- until probed ([mapping](https://github.com/botiverse/oar/blob/main/docs/runtimes/dsh.md)).
193
+ process per session, `DSH_MINIMUM_VERSION` `0.2.1-rc.5` or later) is too; it selects
194
+ models as `provider/model`, takes stdio session MCP servers only, and most session
195
+ options stay refused until probed ([mapping](https://github.com/botiverse/oar/blob/main/docs/runtimes/dsh.md)).
183
196
 
184
197
  The command-line interface is a separate package: `@botiverse/oar-cli`.
185
198
 
@@ -290,7 +303,7 @@ const session = await runtime.session(installation, {
290
303
  });
291
304
  try {
292
305
  const run = await promptAndWait(session, "What is 2 + 2?");
293
- if (run.kind !== "rejected" && run.outcome.kind === "completed" && "structuredOutput" in run.outcome) {
306
+ if ("outcome" in run && run.outcome.kind === "completed" && "structuredOutput" in run.outcome) {
294
307
  console.log(run.outcome.structuredOutput);
295
308
  }
296
309
  } finally { await session.dispose(); }
@@ -305,11 +318,11 @@ fails: [structured output](https://github.com/botiverse/oar/blob/main/docs/spec/
305
318
  args?, env?}` or streamable HTTP `{name, type: "http", url, headers?}`) to
306
319
  one session, on top of the runtime's own, through each runtime's own channel
307
320
  (claude reads them from a 0600 FIFO that never puts them on a disk, a
308
- temporary file on Windows); cursor and pi-durable refuse them. Give them
309
- again on `resume`. Their `env` and `headers` values never
310
- appear in a record or an error; antigravity, which would store them in its
311
- conversation database, refuses an entry carrying them (declared as
312
- `mcpServerCredentials`; leave such entries out). Every runtime refuses the
321
+ temporary file on Windows); cursor and pi-durable refuse them, and dsh takes
322
+ stdio `command` and `args` only. Give them again on `resume`. Their `env` and
323
+ `headers` values never appear in a record or an error; antigravity, which would
324
+ store them in its conversation database, and dsh refuse an entry carrying them
325
+ (declared as `mcpServerCredentials`; leave such entries out). Every runtime refuses the
313
326
  names `__proto__`, `__defineGetter__`, `__defineSetter__`, `__lookupGetter__`
314
327
  and `__lookupSetter__` (`option: "mcpServers"`), which some runtimes drop
315
328
  without a word. See the
@@ -319,7 +332,7 @@ and each runtime page's "Session MCP servers".
319
332
  Tools the host implements itself go through the same option. `serveMcpTools`
320
333
  serves them from an MCP server inside the host process and returns the
321
334
  `mcpServers` entry to pass, so one implementation reaches every runtime that
322
- takes an http entry with `headers` (all but cursor, pi-durable and antigravity):
335
+ takes an http entry with `headers` (all but cursor, pi-durable, antigravity and dsh):
323
336
 
324
337
  ```ts
325
338
  import { serveMcpTools } from "@botiverse/oar";
@@ -343,15 +356,17 @@ It listens on 127.0.0.1 behind a random bearer token (in the entry's
343
356
  machine, as OAR's runtimes do. A handler returns text, or MCP content with
344
357
  `isError` for a failed call; a thrown error becomes an `isError` result with
345
358
  its message. Its `signal` aborts when the runtime cancels the call or the
346
- server closes. One served set can back several sessions. `instructions` (guidance
359
+ server closes. A tool's MCP `annotations` (`readOnlyHint`, `destructiveHint`,
360
+ ...) go out unchanged in `tools/list`; runtimes may use them (for approval, for
361
+ example); OAR neither validates nor acts on them. One served set can back several sessions. `instructions` (guidance
347
362
  across the tools) goes out as the MCP server instructions; claude, codex,
348
363
  opencode and grok show them to the model, pi and kimi do not.
349
364
  `served.setTools(tools)` replaces the tools while sessions run and sends MCP's
350
365
  `notifications/tools/list_changed`. Whether a running session's model sees
351
366
  the change is the runtime's choice, declared before opening as
352
367
  `runtime.mcpToolsListChanged`: `full` (pi, opencode), `additions` (claude:
353
- new tools appear, removed ones stay offered) or `none` (codex, kimi, grok, antigravity); a
354
- session that does not take it gets the new tools when the host opens its next
368
+ new tools appear, removed ones stay offered) or `none` (codex, kimi, grok, antigravity),
369
+ absent where unmeasured; a session that does not take it gets the new tools when the host opens its next
355
370
  session. The declaration covers any MCP server that announces a change, so
356
371
  antigravity declares `none`, though a served entry never attaches there. See
357
372
  [host-served tools](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#host-served-tools).
@@ -361,9 +376,10 @@ can run now (`ok`, `unauthenticated` or `unsupported`); every built-in runtime
361
376
  has it. Entries include native `effortLevels` and `serviceTiers` where supported.
362
377
  `default: true` marks the model a session uses when no `model` is set, where
363
378
  the runtime says so (codex's configured model, else its catalog default; a new
364
- session's current model on grok, kimi and antigravity; the default saved in
365
- pi's settings). claude, cursor and opencode mark none: OAR never picks one.
366
- Where several providers serve models (pi, opencode), `provider: { id,
379
+ session's current model on grok, kimi, antigravity and codebuddy; the native
380
+ default on qoder and dsh; the default saved in pi's settings). claude, cursor,
381
+ opencode and qwen mark none: OAR never picks one.
382
+ Where several providers serve models (pi, opencode, dsh), `provider: { id,
367
383
  displayName? }` says which, so a host never parses `id`. A project's own
368
384
  configuration can change the list and its default, so pass `options.cwd`, the
369
385
  directory a session would run in (the host's cwd by default). Like the
@@ -387,8 +403,8 @@ updater would install and where that answer came from;
387
403
  `runtime.upgrade(installation)` runs that updater without a terminal and
388
404
  judges the result by the version the same executable reports afterwards,
389
405
  never by its exit code. oar never upgrades on its own. Claude, Codex, Grok
390
- and Kimi have both; Antigravity has only the check; CodeBuddy, OpenCode, Qwen and Qoder have neither
391
- yet; Pi and Cursor have neither, their SDK versions following oar's (Pi's
406
+ and Kimi have both; Antigravity has only the check; CodeBuddy, DSH, OpenCode, Qwen and Qoder
407
+ have neither yet; Pi and Cursor have neither, their SDK versions following oar's (Pi's
392
408
  SDK is a dependency, Cursor's an exact peer dependency).
393
409
  See [runtime updates](https://github.com/botiverse/oar/blob/main/docs/spec/update.md).
394
410
 
@@ -403,8 +419,9 @@ it, without a terminal and never with sudo, when `installation()` finds no
403
419
  copy, and judges the result by `installation()` afterwards, never by the
404
420
  installer's exit code. oar never installs on its own. Claude, Codex, Grok,
405
421
  Kimi, OpenCode, Qwen, Qoder and Antigravity install through their vendors' macOS and Linux scripts;
406
- CodeBuddy uses its official npm package on Linux, macOS and Windows, checks
407
- the configured global prefix, and discovers its launcher even off PATH.
422
+ CodeBuddy and DSH use their official npm packages on Linux, macOS and Windows
423
+ and check the configured global prefix; CodeBuddy's launcher is discovered even
424
+ off PATH.
408
425
  Planning may run bounded local read-only queries with private temporary files
409
426
  removed afterwards; it never installs, downloads packages or changes user files.
410
427
  An unreadable prefix returns `location_unknown` with the failure category in
@@ -425,17 +442,20 @@ arrives as a `ProviderLoginInteraction` event, and a code the person pastes
425
442
  back is answered through its `manual_code` prompt and written to the
426
443
  runtime's stdin only. It never logs the current account out first, and
427
444
  `interaction.signal` cancels it. `runtime.authStatus(installation)` reads the
428
- runtime's own status, never a secret, and never starts a login. Claude,
445
+ runtime's own status, never a secret, and never starts a login; a status read
446
+ past its `timeoutMs` returns `unknown` without waiting for process cleanup. Claude,
429
447
  Codex, Cursor (through its SDK's own `Cursor.auth`), Qoder and Kimi (`kimi
430
448
  login`, with `KimiLoginOptions.region`) have both. Qwen has only
431
449
  `authStatus`, a local check of whether a provider credential is configured;
432
- its provider settings are on `createQwenProviderAuth`. Grok, OpenCode and Pi
450
+ its provider settings are on `createQwenProviderAuth`. Grok, OpenCode, DSH and Pi
433
451
  have neither yet (Pi's provider logins are on `createPiProviderAuth`).
434
452
  CodeBuddy supports login and a private native account-state read, but no logout
435
453
  ([mapping](https://github.com/botiverse/oar/blob/main/docs/runtimes/codebuddy.md#international-login)).
436
- Antigravity consumer login is deliberately absent: its vendor warns against
437
- third-party access with that login. Use provider API keys; see the
438
- [account policy and FAQ](https://github.com/botiverse/oar/blob/main/docs/runtimes/antigravity.md#process-ownership-installation-and-account-usage).
454
+ Antigravity supports login (its own `agy acp --login`, with the person
455
+ pasting the code back) and status (`agy models`), but no logout, which the CLI
456
+ allows only in its interactive UI. Its vendor warns that third-party access
457
+ with a consumer login may break its terms; see
458
+ [login](https://github.com/botiverse/oar/blob/main/docs/runtimes/antigravity.md#login).
439
459
  `runtime.logout(installation)` signs Claude, Codex, Cursor
440
460
  and Kimi out through their own logout (`claude auth logout`, `codex logout`,
441
461
  `Cursor.auth.logout`, Kimi's ACP `logout`) and resolves `logged_out` when
@@ -502,8 +522,8 @@ in the default registry or CLI.
502
522
 
503
523
  Every runtime exposes `skills(installation, options?)`,
504
524
  `commands(installation, options?)`, `mcpServers(installation, options?)`, and `tools(installation, options?)`.
505
- Options are `{ cwd?: string, timeoutMs?: number }`; cwd defaults to
506
- `process.cwd()`. Queries discover native information independently: they do
525
+ Options are `{ cwd?: string, timeoutMs?: number, env? }` (`env` is the
526
+ `SessionOptions.env` overlay); cwd defaults to `process.cwd()`. Queries discover native information independently: they do
507
527
  not inspect an existing Session or submit a model prompt, though native
508
528
  startup can load extensions and connect configured MCP servers.
509
529
 
@@ -517,7 +537,7 @@ exposes independent skills and MCP configuration discovery; Pi exposes skills
517
537
  and registered tools with active membership. Pi commands include extension
518
538
  commands and prompt templates; Claude commands come from native initialize.
519
539
  Other core runtimes return unsupported for independent command discovery.
520
- Antigravity, CodeBuddy, Cursor, Kimi, OpenCode, Qoder and Qwen inventory
540
+ Antigravity, CodeBuddy, Cursor, DSH, Kimi, OpenCode, Qoder and Qwen inventory
521
541
  queries are unsupported.
522
542
 
523
543
  ```ts
@@ -0,0 +1,7 @@
1
+ /** Current context fullness, borrowed from pi's shape because it already models the hard case: `tokens` is null when unknown (right after compaction, before the next model response), and `percent` follows. */
2
+ export interface ContextUsage {
3
+ readonly tokens: number | null;
4
+ readonly contextWindow: number | null;
5
+ readonly percent: number | null;
6
+ }
7
+ //# sourceMappingURL=context-usage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-usage.d.ts","sources":["../../src/contracts/context-usage.ts"],"names":[],"mappings":"AACA,iNAAiN;AACjN,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=context-usage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-usage.js","sources":["../../src/contracts/context-usage.ts"],"names":[],"mappings":""}
@@ -1,4 +1,5 @@
1
1
  import type { RejectionCode, RequestRecord, ResponseRecord } from "./records.js";
2
+ import type { FailureClass } from "./failure.js";
2
3
  /** Both records a control call produced: the request (its `seq` is where the action sits in the stream) and the accept/reject response. What an adapter returns (the SPI face). */
3
4
  export interface ControlResult {
4
5
  readonly request: RequestRecord;
@@ -8,7 +9,8 @@ export interface ControlResult {
8
9
  * What `Session.prompt / steer / queue / withdraw / abort` return (the API face): the
9
10
  * answer read off the two records, with the records still underneath. A
10
11
  * consumer branches on `kind` (two cases, not the four a response body can
11
- * carry) and on the typed `code`; `seq` is the request's position in the
12
+ * carry) and on the typed `code` (and `failure`, the runtime's class for a
13
+ * `runtime_refused` where its code says one); `seq` is the request's position in the
12
14
  * stream, what `awaitTurnEnd` takes. `request` / `response` remain for
13
15
  * consumers who want the stream's own word (`native`, the exact records).
14
16
  */
@@ -22,5 +24,6 @@ export type ControlOutcome = (ControlResult & {
22
24
  readonly requestId: string;
23
25
  readonly code: RejectionCode;
24
26
  readonly reason: string;
27
+ readonly failure?: FailureClass;
25
28
  });
26
29
  //# sourceMappingURL=control.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"control.d.ts","sources":["../../src/contracts/control.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEjF,mLAAmL;AACnL,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;CACnC;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GACtB,CAAC,aAAa,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,GACjG,CAAC,aAAa,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"control.d.ts","sources":["../../src/contracts/control.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACjF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,mLAAmL;AACnL,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;CACnC;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GACtB,CAAC,aAAa,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,GACjG,CAAC,aAAa,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;CAAE,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type { ControlOutcome, InputOptions } from "./session.js";
2
+ import type { FailureClass } from "./failure.js";
2
3
  import type { RejectionCode } from "./records.js";
3
4
  /**
4
5
  * When a delivered input should reach the agent.
@@ -43,12 +44,13 @@ export type DeliverResult = {
43
44
  readonly mergedInputIds?: readonly string[];
44
45
  readonly undeliveredInputIds?: readonly string[];
45
46
  }
46
- /** `result` is the last refused control; absent when the session changed state on every attempt and none was made to stick. */
47
+ /** `result` is the last refused control; absent when the session changed state on every attempt and none was made to stick. `failure` is that control's (`ControlOutcome`). */
47
48
  | {
48
49
  readonly landed: "rejected";
49
50
  readonly inputId: string;
50
51
  readonly code: RejectionCode;
51
52
  readonly reason: string;
53
+ readonly failure?: FailureClass;
52
54
  readonly result?: ControlOutcome;
53
55
  readonly undeliveredInputIds?: readonly string[];
54
56
  };
@@ -1 +1 @@
1
- {"version":3,"file":"deliver.d.ts","sources":["../../src/contracts/deliver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,CAAC;AAE3E,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;CAC1C;AACD,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,CACxC;IAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GACzG;IACE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,sFAAsF;IACtF,QAAQ,CAAC,SAAS,EAAE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IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC"}
@@ -16,7 +16,7 @@ export { defineRuntime } from "./runtime.js";
16
16
  export { UnsupportedOptionError } from "./errors.js";
17
17
  export { SessionNotFoundError } from "./session-not-found-error.js";
18
18
  export { SessionUnavailableError, type SessionUnavailableReason } from "./session-unavailable-error.js";
19
- export { RuntimeFailureError } from "./runtime-failure-error.js";
19
+ export { RuntimeFailureError, type RuntimeFailureCode } from "./runtime-failure-error.js";
20
20
  export { UserShellEnvironmentError } from "./shell-environment.js";
21
21
  export type { UserShellEnvironment, UserShellEnvironmentOptions, UserShellEnvironmentFailure } from "./shell-environment.js";
22
22
  export type { PlacementRequest, SessionPlacement, SessionOpenContext, SessionCleanup, SessionRelease, RuntimePlacementOptions } from "./placement.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC9F,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC5H,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAClL,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAE,kBAAkB,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEnL,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,E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WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,QAAQ,EACR,WAAW,EACX,cAAc,EACd,WAAW,EACX,WAAW,EACX,WAAW,GACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,KAAK,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACxG,OAAO,EAAE,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,YAAY,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAE7H,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,cAAc,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAyJA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAiC,MAAM,gCAAgC,CAAC;AACxG,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAyJA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAiC,MAAM,gCAAgC,CAAC;AACxG,OAAO,EAAE,mBAAmB,EAA2B,MAAM,4BAA4B,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -2,6 +2,7 @@ import type { GoalSetOptions, GoalSnapshot } from "./goal.js";
2
2
  import type { InputImage, InputOrigin, InputReference, UserMessage } from "./input.js";
3
3
  import type { PlacementRequest, SessionCleanup, SessionPlacement, SessionRelease } from "./placement.js";
4
4
  import type { ToolCallProgress, ToolOutputPart } from "./tool-output.js";
5
+ import type { ContextUsage } from "./context-usage.js";
5
6
  import type { FailureClass } from "./failure.js";
6
7
  import type { TaskEventBody } from "./tasks.js";
7
8
  import type { TurnOutcome } from "./turn-outcome.js";
@@ -233,7 +234,7 @@ export type RuntimeEventBody = {
233
234
  readonly reason?: string;
234
235
  readonly requestId?: string;
235
236
  }
236
- /** The runtime announced it will retry a failed provider call (pi `auto_retry_start`, `summarization_retry_scheduled`; codex `error` with `willRetry`). Other shipped runtimes retry silently or not at all. */
237
+ /** The runtime announced it will retry a failed provider call (pi and pi-durable `auto_retry_start`, pi `summarization_retry_scheduled`; codex `error` with `willRetry`; community morph). Other shipped runtimes retry silently or not at all. */
237
238
  | {
238
239
  readonly kind: "retry";
239
240
  readonly attempt: number;
@@ -259,7 +260,7 @@ export type RuntimeEventBody = {
259
260
  readonly kind: "service_tier";
260
261
  readonly serviceTier: string;
261
262
  }
262
- /** The runtime withdrew a `toApp` request it had sent (`app_request` with this `requestId`) and no longer waits on an answer: claude `control_cancel_request`, codex `serverRequest/resolved` (oar answers no codex request, so a resolved one was cleared by codex itself). Never inferred from a turn ending. */
263
+ /** The runtime withdrew a `toApp` request it had sent (`app_request` with this `requestId`) and no longer waits on an answer: claude `control_cancel_request`. Codex `serverRequest/resolved` produces none: oar answers every codex request as it arrives, so the resolution follows that answer. Never inferred from a turn ending. */
263
264
  | {
264
265
  readonly kind: "app_request_cancelled";
265
266
  readonly requestId: string;
@@ -404,8 +405,10 @@ export type RejectionCode =
404
405
  | "session_released"
405
406
  /** The stream already holds this session's dispose request. */
406
407
  | "disposed"
407
- /** The runtime answered no (its typed refusal, an RPC error); `reason` is its message. */
408
+ /** The runtime answered no (its typed refusal, an RPC error); `reason` is its message, and `failure` its class where the runtime's code says one. */
408
409
  | "runtime_refused"
410
+ /** The runtime no longer has this session (codex: `thread not found`): no later control on this Session can succeed. Its native conversation may still be resumable: open a new Session with `resume` set to its id. */
411
+ | "session_not_found"
409
412
  /** The adapter could not deliver (a thrown transport error); `reason` is the exception message. */
410
413
  | "error";
411
414
  /** Control acceptance is distinct from lifecycle observations: opening, cleanup, release and process exit. */
@@ -428,6 +431,7 @@ export type ResponseBody = {
428
431
  readonly code: RejectionCode;
429
432
  readonly reason: string;
430
433
  readonly native?: unknown;
434
+ readonly failure?: FailureClass;
431
435
  }
432
436
  /** oar's reply to a `toApp` request (e.g. the automatic permission grant), verbatim. */
433
437
  | {
@@ -440,11 +444,6 @@ export type ResponseBody = {
440
444
  readonly code: number | null;
441
445
  readonly reason?: string;
442
446
  };
443
- /** Current context fullness, borrowed from pi's shape because it already models the hard case: `tokens` is null when unknown (right after compaction, before the next model response), and `percent` follows. */
444
- export interface ContextUsage {
445
- readonly tokens: number | null;
446
- readonly contextWindow: number | null;
447
- readonly percent: number | null;
448
- }
447
+ export type { ContextUsage } from "./context-usage.js";
449
448
  export type { Cursor, SessionEdge, SessionGraph, SessionNode } from "./graph.js";
450
449
  //# sourceMappingURL=records.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"records.d.ts","sources":["../../src/contracts/records.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MA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;AACzD,sQAAsQ;GACpQ;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACxF,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
@@ -8,15 +8,21 @@ import type { CredentialProblem, FailureClass } from "./session.js";
8
8
  * runtime's own words, or OAR's policy explanation when `code` is present.
9
9
  * Other open failures keep their own errors.
10
10
  */
11
+ /**
12
+ * - `project_packages_blocked`: OAR's policy refused to install or replace Pi packages.
13
+ * - `runtime_outdated`: the selected runtime is too old for what OAR needs; the reason names it and the first release that has it.
14
+ * - `runtime_config_invalid`: the runtime could not read its own configuration; the reason is its words (for codex, the file, line and column).
15
+ */
16
+ export type RuntimeFailureCode = "project_packages_blocked" | "runtime_outdated" | "runtime_config_invalid";
11
17
  export declare class RuntimeFailureError extends Error {
12
18
  readonly name = "RuntimeFailureError";
13
19
  readonly failure: FailureClass;
14
- /** Stable OAR policy refusal, separate from a missing session or cwd. */
15
- readonly code?: "project_packages_blocked";
20
+ /** Stable reason a host can branch on, separate from a missing session or cwd (`RuntimeFailureCode`). */
21
+ readonly code?: RuntimeFailureCode;
16
22
  readonly credential?: CredentialProblem;
17
23
  readonly status?: number;
18
24
  constructor(failure: FailureClass, reason: string, details?: {
19
- readonly code?: "project_packages_blocked";
25
+ readonly code?: RuntimeFailureCode;
20
26
  readonly credential?: CredentialProblem;
21
27
  readonly status?: number;
22
28
  readonly cause?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-failure-error.d.ts","sources":["../../src/contracts/runtime-failure-error.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,c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,QAAQ,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC;QAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,iBAAiB,CAAC;QAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAO,EAMnM;IAED,kFAAkF;IAClF,IAAI,MAAM,IAAI,MAAM,CAEnB;CACF"}
@@ -1,12 +1,3 @@
1
- /**
2
- * What `session()` rejects with when the open fails for a cause a failed turn
3
- * would carry as `failure` (docs/spec/runtime-matrix.md#failure-evidence):
4
- * the runtime refused the login or the model before any turn. The same
5
- * `failure`, `credential` and `status` a failed turn has, so a host handles
6
- * both the same way (`failureAdvice`); `reason` (and `message`) is the
7
- * runtime's own words, or OAR's policy explanation when `code` is present.
8
- * Other open failures keep their own errors.
9
- */
10
1
  export class RuntimeFailureError extends Error {
11
2
  name = "RuntimeFailureError";
12
3
  failure;
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-failure-error.js","sources":["../../src/contracts/runtime-failure-error.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAC1B,IAAI,GAAG,qBAAqB,CAAC;IACtC,OAAO,CAAe;IAO/B,YAAY,OAAqB,EAAE,MAAc,EAAE,OAAO,GAAgJ,EAAE;QAC1M,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;QAClF,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAAC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QAAC,CAAC;QAC7D,IAAI,OAAO,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;YAAC,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QAAC,CAAC;QAC/E,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YAAC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAAC,CAAC;IACrE,CAAC;IAED,kFAAkF;IAClF,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF"}
1
+ {"version":3,"file":"runtime-failure-error.js","sources":["../../src/contracts/runtime-failure-error.ts"],"names":[],"mappings":"AAmBA,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAC1B,IAAI,GAAG,qBAAqB,CAAC;IACtC,OAAO,CAAe;IAO/B,YAAY,OAAqB,EAAE,MAAc,EAAE,OAAO,GAAwI,EAAE;QAClM,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;QAClF,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAAC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QAAC,CAAC;QAC7D,IAAI,OAAO,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;YAAC,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QAAC,CAAC;QAC/E,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YAAC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAAC,CAAC;IACrE,CAAC;IAED,kFAAkF;IAClF,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF"}
@@ -8,6 +8,7 @@ import type { SessionOpenContext, SessionPlacement } from "./placement.js";
8
8
  import type { AgentStatus } from "./status.js";
9
9
  import type { AvailableInstallation } from "./installation.js";
10
10
  import type { ContextBreakdown } from "./context-breakdown.js";
11
+ import type { FailureClass } from "./failure.js";
11
12
  import type { SessionOptions } from "./session-options.js";
12
13
  export type { GoalControl, AdapterGoalControl, GoalSnapshot, GoalStatus, KnownGoalStatus, GoalSetOptions } from "./goal.js";
13
14
  export type { CompactionOptions, CompactionOutcome, ManualCompaction } from "./compaction.js";
@@ -257,11 +258,12 @@ export type SteerOrQueueResult = {
257
258
  readonly landed: "queued";
258
259
  readonly result: ControlOutcome;
259
260
  }
260
- /** `result` is the last attempt, the queue; `code` / `reason` are its. */
261
+ /** `result` is the last attempt, the queue; `code` / `reason` / `failure` are its. */
261
262
  | {
262
263
  readonly landed: "rejected";
263
264
  readonly code: RejectionCode;
264
265
  readonly reason: string;
266
+ readonly failure?: FailureClass;
265
267
  readonly result: ControlOutcome;
266
268
  };
267
269
  //# sourceMappingURL=session.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sources":["../../src/contracts/session.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,KAAK,EACV,YAAY,EACZ,MAAM,EACN,KAAK,EACL,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,WAAW,EACZ,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,KAAK,EAAE,WA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ACrC;AAED,MAAM,MAAM,kBAAkB,GAC1B;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAA;CAAE,GAC/D;IAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAA;CAAE;AAChE,sFAAsF;GACpF;IAAE,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAA;CAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { AvailableInstallation } from "../../contracts/installation.js";
2
+ import type { AuthStatus, AuthStatusOptions, LoginOptions, LoginResult } from "../../contracts/login.js";
3
+ import type { ProviderLoginInteraction } from "../../contracts/provider-auth.js";
4
+ export declare function readAntigravityAuthStatus(installation: AvailableInstallation, options?: AuthStatusOptions & {
5
+ readonly signal?: AbortSignal;
6
+ }): Promise<AuthStatus>;
7
+ /** Whether Antigravity is signed in, by its own model listing (a remote call: not localOnly). */
8
+ export declare function antigravityAuthStatus(installation: AvailableInstallation, options?: AuthStatusOptions): Promise<AuthStatus>;
9
+ /** Signs Antigravity in with its own `agy acp --login`, relaying the Google URL and writing the pasted code to its stdin. */
10
+ export declare function antigravityLogin(installation: AvailableInstallation, interaction: ProviderLoginInteraction, options?: LoginOptions): Promise<LoginResult>;
11
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sources":["../../../src/runtimes/antigravity/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACzG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AA8BjF,wBAAsB,yBAAyB,CAAC,YAAY,EAAE,qBAAqB,EAAE,OAAO,GAAE,iBAAiB,GAAG;IAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAS7K;AAED,iGAAiG;AACjG,wBAAsB,qBAAqB,CAAC,YAAY,EAAE,qBAAqB,EAAE,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC,CAMrI;AAoGD,6HAA6H;AAC7H,wBAAsB,gBAAgB,CAAC,YAAY,EAAE,qBAAqB,EAAE,WAAW,EAAE,wBAAwB,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,WAAW,CAAC,CAanK"}