@botiverse/oar 0.109.0 → 0.111.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.
- package/README.md +69 -39
- package/dist/contracts/account-usage.d.ts +10 -5
- package/dist/contracts/account-usage.d.ts.map +1 -1
- package/dist/contracts/installation.d.ts +3 -0
- package/dist/contracts/installation.d.ts.map +1 -1
- package/dist/contracts/inventory.d.ts +3 -1
- package/dist/contracts/inventory.d.ts.map +1 -1
- package/dist/contracts/list-models.d.ts +10 -0
- package/dist/contracts/list-models.d.ts.map +1 -1
- package/dist/contracts/login.d.ts +4 -0
- package/dist/contracts/login.d.ts.map +1 -1
- package/dist/contracts/runtime.d.ts +2 -0
- package/dist/contracts/runtime.d.ts.map +1 -1
- package/dist/contracts/runtime.js.map +1 -1
- package/dist/contracts/session-options.d.ts +3 -3
- package/dist/contracts/session-options.d.ts.map +1 -1
- package/dist/observe/agent-status.d.ts.map +1 -1
- package/dist/observe/agent-status.js +4 -3
- package/dist/observe/agent-status.js.map +1 -1
- package/dist/observe/input-admission.js +2 -2
- package/dist/observe/input-admission.js.map +1 -1
- package/dist/runtimes/antigravity/account-usage.d.ts.map +1 -1
- package/dist/runtimes/antigravity/account-usage.js +5 -0
- package/dist/runtimes/antigravity/account-usage.js.map +1 -1
- package/dist/runtimes/antigravity/auth.d.ts.map +1 -1
- package/dist/runtimes/antigravity/auth.js +18 -6
- package/dist/runtimes/antigravity/auth.js.map +1 -1
- package/dist/runtimes/antigravity/index.d.ts +1 -0
- package/dist/runtimes/antigravity/index.d.ts.map +1 -1
- package/dist/runtimes/antigravity/index.js +2 -0
- package/dist/runtimes/antigravity/index.js.map +1 -1
- package/dist/runtimes/antigravity/installation.d.ts +1 -2
- package/dist/runtimes/antigravity/installation.d.ts.map +1 -1
- package/dist/runtimes/antigravity/installation.js +6 -12
- package/dist/runtimes/antigravity/installation.js.map +1 -1
- package/dist/runtimes/antigravity/list-models.d.ts +2 -1
- package/dist/runtimes/antigravity/list-models.d.ts.map +1 -1
- package/dist/runtimes/antigravity/list-models.js +55 -4
- package/dist/runtimes/antigravity/list-models.js.map +1 -1
- package/dist/runtimes/antigravity/logout.d.ts +1 -1
- package/dist/runtimes/antigravity/logout.js +1 -1
- package/dist/runtimes/antigravity/model-selection.d.ts +5 -0
- package/dist/runtimes/antigravity/model-selection.d.ts.map +1 -0
- package/dist/runtimes/antigravity/model-selection.js +58 -0
- package/dist/runtimes/antigravity/model-selection.js.map +1 -0
- package/dist/runtimes/antigravity/session.d.ts.map +1 -1
- package/dist/runtimes/antigravity/session.js +2 -0
- package/dist/runtimes/antigravity/session.js.map +1 -1
- package/dist/runtimes/antigravity/version.d.ts +19 -0
- package/dist/runtimes/antigravity/version.d.ts.map +1 -0
- package/dist/runtimes/antigravity/version.js +32 -0
- package/dist/runtimes/antigravity/version.js.map +1 -0
- package/dist/runtimes/codex/account-usage.d.ts.map +1 -1
- package/dist/runtimes/codex/account-usage.js +20 -2
- package/dist/runtimes/codex/account-usage.js.map +1 -1
- package/dist/runtimes/codex/input-delivery.d.ts +8 -1
- package/dist/runtimes/codex/input-delivery.d.ts.map +1 -1
- package/dist/runtimes/codex/input-delivery.js +13 -0
- package/dist/runtimes/codex/input-delivery.js.map +1 -1
- package/dist/runtimes/codex/session.d.ts.map +1 -1
- package/dist/runtimes/codex/session.js +5 -3
- package/dist/runtimes/codex/session.js.map +1 -1
- package/dist/runtimes/cursor/auth-status.d.ts.map +1 -1
- package/dist/runtimes/cursor/auth-status.js +2 -1
- package/dist/runtimes/cursor/auth-status.js.map +1 -1
- package/dist/runtimes/cursor/index.d.ts +2 -2
- package/dist/runtimes/cursor/login.d.ts.map +1 -1
- package/dist/runtimes/cursor/login.js +2 -1
- package/dist/runtimes/cursor/login.js.map +1 -1
- package/dist/runtimes/cursor/logout.d.ts.map +1 -1
- package/dist/runtimes/cursor/logout.js +2 -1
- package/dist/runtimes/cursor/logout.js.map +1 -1
- package/dist/runtimes/cursor/run.d.ts.map +1 -1
- package/dist/runtimes/cursor/run.js +9 -2
- package/dist/runtimes/cursor/run.js.map +1 -1
- package/dist/runtimes/cursor/sdk-version.d.ts +3 -0
- package/dist/runtimes/cursor/sdk-version.d.ts.map +1 -0
- package/dist/runtimes/cursor/sdk-version.js +3 -0
- package/dist/runtimes/cursor/sdk-version.js.map +1 -0
- package/dist/runtimes/cursor/sdk.d.ts +4 -1
- package/dist/runtimes/cursor/sdk.d.ts.map +1 -1
- package/dist/runtimes/cursor/subprocess/child-script.d.ts.map +1 -1
- package/dist/runtimes/cursor/subprocess/child-script.js +5 -1
- package/dist/runtimes/cursor/subprocess/child-script.js.map +1 -1
- package/dist/runtimes/cursor/subprocess/proxy.d.ts.map +1 -1
- package/dist/runtimes/cursor/subprocess/proxy.js +2 -1
- package/dist/runtimes/cursor/subprocess/proxy.js.map +1 -1
- package/dist/runtimes/dsh/bridge.d.ts.map +1 -1
- package/dist/runtimes/dsh/bridge.js +32 -2
- package/dist/runtimes/dsh/bridge.js.map +1 -1
- package/dist/runtimes/dsh/index.d.ts +1 -0
- package/dist/runtimes/dsh/index.d.ts.map +1 -1
- package/dist/runtimes/dsh/index.js +2 -0
- package/dist/runtimes/dsh/index.js.map +1 -1
- package/dist/runtimes/dsh/installation.d.ts.map +1 -1
- package/dist/runtimes/dsh/installation.js +2 -3
- package/dist/runtimes/dsh/installation.js.map +1 -1
- package/dist/runtimes/dsh/list-models.d.ts.map +1 -1
- package/dist/runtimes/dsh/list-models.js +6 -3
- package/dist/runtimes/dsh/list-models.js.map +1 -1
- package/dist/runtimes/dsh/options.d.ts.map +1 -1
- package/dist/runtimes/dsh/options.js +0 -2
- package/dist/runtimes/dsh/options.js.map +1 -1
- package/dist/runtimes/dsh/session.d.ts.map +1 -1
- package/dist/runtimes/dsh/session.js +14 -7
- package/dist/runtimes/dsh/session.js.map +1 -1
- package/dist/runtimes/dsh/version.d.ts +5 -0
- package/dist/runtimes/dsh/version.d.ts.map +1 -1
- package/dist/runtimes/dsh/version.js +6 -0
- package/dist/runtimes/dsh/version.js.map +1 -1
- package/dist/runtimes/pi/index.d.ts.map +1 -1
- package/dist/runtimes/pi/index.js +2 -0
- package/dist/runtimes/pi/index.js.map +1 -1
- package/dist/runtimes/pi/open.d.ts +3 -2
- package/dist/runtimes/pi/open.d.ts.map +1 -1
- package/dist/runtimes/pi/open.js +3 -6
- package/dist/runtimes/pi/open.js.map +1 -1
- package/dist/runtimes/pi/projection.d.ts.map +1 -1
- package/dist/runtimes/pi/projection.js +3 -2
- package/dist/runtimes/pi/projection.js.map +1 -1
- package/dist/runtimes/pi/rpc/readers.d.ts.map +1 -1
- package/dist/runtimes/pi/rpc/readers.js +7 -0
- package/dist/runtimes/pi/rpc/readers.js.map +1 -1
- package/dist/runtimes/pi/rpc/version.d.ts +12 -0
- package/dist/runtimes/pi/rpc/version.d.ts.map +1 -1
- package/dist/runtimes/pi/rpc/version.js +17 -3
- package/dist/runtimes/pi/rpc/version.js.map +1 -1
- package/dist/runtimes/pi/session.d.ts.map +1 -1
- package/dist/runtimes/pi/session.js +14 -13
- package/dist/runtimes/pi/session.js.map +1 -1
- package/dist/runtimes/pi/static-modules.d.ts +1 -1
- package/dist/runtimes/pi/static-modules.d.ts.map +1 -1
- package/dist/runtimes/pi/static-modules.js +12 -21
- package/dist/runtimes/pi/static-modules.js.map +1 -1
- package/dist/runtimes/pi-durable/messages.d.ts +0 -5
- package/dist/runtimes/pi-durable/messages.d.ts.map +1 -1
- package/dist/runtimes/pi-durable/messages.js +1 -28
- package/dist/runtimes/pi-durable/messages.js.map +1 -1
- package/dist/runtimes/pi-durable/projection.d.ts +16 -7
- package/dist/runtimes/pi-durable/projection.d.ts.map +1 -1
- package/dist/runtimes/pi-durable/projection.js +167 -115
- package/dist/runtimes/pi-durable/projection.js.map +1 -1
- package/dist/runtimes/pi-durable/session.d.ts.map +1 -1
- package/dist/runtimes/pi-durable/session.js +122 -44
- package/dist/runtimes/pi-durable/session.js.map +1 -1
- package/dist/shared/acp/config-updates.d.ts.map +1 -1
- package/dist/shared/acp/config-updates.js +3 -1
- package/dist/shared/acp/config-updates.js.map +1 -1
- package/dist/shared/acp/effort.d.ts +1 -1
- package/dist/shared/acp/effort.d.ts.map +1 -1
- package/dist/shared/acp/effort.js +1 -0
- package/dist/shared/acp/effort.js.map +1 -1
- package/dist/shared/acp/initialize.js +1 -1
- package/dist/shared/acp/initialize.js.map +1 -1
- package/dist/shared/acp/model-configuration.d.ts +15 -0
- package/dist/shared/acp/model-configuration.d.ts.map +1 -0
- package/dist/shared/acp/model-configuration.js +27 -0
- package/dist/shared/acp/model-configuration.js.map +1 -0
- package/dist/shared/acp/profile.d.ts +6 -0
- package/dist/shared/acp/profile.d.ts.map +1 -1
- package/dist/shared/acp/profile.js +2 -21
- package/dist/shared/acp/profile.js.map +1 -1
- package/dist/shared/executable/process-cancellation.d.ts +1 -1
- package/dist/shared/executable/process-cancellation.d.ts.map +1 -1
- package/dist/shared/executable/process-cancellation.js +3 -2
- package/dist/shared/executable/process-cancellation.js.map +1 -1
- package/dist/shared/executable/process-shutdown.d.ts.map +1 -1
- package/dist/shared/executable/process-shutdown.js +17 -2
- package/dist/shared/executable/process-shutdown.js.map +1 -1
- package/dist/shared/executable/process-table-async.d.ts.map +1 -1
- package/dist/shared/executable/process-table-async.js +21 -2
- package/dist/shared/executable/process-table-async.js.map +1 -1
- package/dist/shared/executable/process-table-budget.d.ts.map +1 -1
- package/dist/shared/executable/process-table-budget.js +10 -3
- package/dist/shared/executable/process-table-budget.js.map +1 -1
- package/dist/shared/executable/process-table-command.d.ts +2 -0
- package/dist/shared/executable/process-table-command.d.ts.map +1 -1
- package/dist/shared/executable/process-table-command.js.map +1 -1
- package/dist/shared/executable/process-timing.d.ts +50 -0
- package/dist/shared/executable/process-timing.d.ts.map +1 -0
- package/dist/shared/executable/process-timing.js +21 -0
- package/dist/shared/executable/process-timing.js.map +1 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -44,9 +44,10 @@ start and end, usage, model, effort, compaction start / end, retry, background
|
|
|
44
44
|
tasks and subagents started, updated and ended, runtime→app requests and oar's
|
|
45
45
|
answers, control rejections, withdrawn and natively handled inputs, the process
|
|
46
46
|
exit), each carrying the `seq` and `agentPath` of the record it was read from.
|
|
47
|
-
Kinds a runtime never says never appear (claude
|
|
48
|
-
kimi, codebuddy and
|
|
49
|
-
codex, pi and pi-durable report retry); the
|
|
47
|
+
Kinds a runtime never says never appear (claude and factory have no
|
|
48
|
+
compaction start; kimi, codebuddy, antigravity and devin no compaction; of the
|
|
49
|
+
core runtimes only codex, factory, pi and pi-durable report retry); the
|
|
50
|
+
runtime pages say which. It is a
|
|
50
51
|
projection over the record stream, which `session.rawEvents()` and
|
|
51
52
|
`session.records()` expose (`RawEvent`: `Frame` with the native payload
|
|
52
53
|
verbatim, `RequestRecord`, `ResponseRecord`) for consumers who need the
|
|
@@ -80,14 +81,15 @@ root tools, withdraws the held inputs, aborts the turn and, after the
|
|
|
80
81
|
runtime's own turn end, sends them as one merged prompt
|
|
81
82
|
([interrupting](https://github.com/botiverse/oar/blob/main/docs/spec/conversation.md#interrupting-and-merging-held-inputs)).
|
|
82
83
|
`session.steer` exists only on a session whose runtime can steer (qwen,
|
|
83
|
-
codebuddy, devin
|
|
84
|
+
codebuddy, devin and kimi sessions have none, nor opencode v2 sessions whose
|
|
85
|
+
`initialize` does not advertise steering; see
|
|
84
86
|
[session controls](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#session-controls)),
|
|
85
87
|
so a host offers a steer control by reading the member, never a runtime
|
|
86
88
|
name; `deliver` and `steerOrQueue` queue where it is absent. `session.withdraw(inputId)` takes a queued input back before it is
|
|
87
89
|
sent (`accepted`), or answers `not_queued` once it went; with it a UI offers
|
|
88
90
|
withdraw, edit (withdraw, then `queue` again) and send now (withdraw, then
|
|
89
|
-
`deliver`). It exists where OAR holds the queue itself (claude, pi, qwen, qoder, cursor
|
|
90
|
-
and the ACP runtimes), on pi-durable through native submission cancellation and on
|
|
91
|
+
`deliver`). It exists where OAR holds the queue itself (claude, pi, qwen, qoder, cursor,
|
|
92
|
+
factory and the ACP runtimes), on pi-durable through native submission cancellation and on
|
|
91
93
|
dsh through native inbox removal where its method inventory advertises it, not on codex.
|
|
92
94
|
`session.stopTask(taskId)` stops one native task without aborting its parent
|
|
93
95
|
(claude, codex, qoder); acceptance is the native acknowledgement, never a task
|
|
@@ -107,8 +109,8 @@ marking a merged native turn's inputs complete; neither field is inferred.
|
|
|
107
109
|
`session.resources()` reads the memory a runtime takes on the host: resident
|
|
108
110
|
bytes and a process count over the runtime process, its group and its
|
|
109
111
|
descendants, `null` once it has exited (and on Windows). It is a reading only,
|
|
110
|
-
never a handle: no pid leaves OAR.
|
|
111
|
-
|
|
112
|
+
never a handle: no pid leaves OAR. Pi's default SDK mode, pi-durable and
|
|
113
|
+
cursor (in either execution mode) have none.
|
|
112
114
|
|
|
113
115
|
For conversation UIs, use the browser-safe `reduceConversation` projection
|
|
114
116
|
over `session.rawEvents()`. It joins input requests, responses and native
|
|
@@ -143,10 +145,10 @@ See [dropped input](https://github.com/botiverse/oar/blob/main/docs/spec/convers
|
|
|
143
145
|
|
|
144
146
|
The package has these public entry points, plus `@botiverse/oar/pi-durable` ([below](#host-owned-durable-sessions)) and `@botiverse/oar/community` for community runtimes (below):
|
|
145
147
|
|
|
146
|
-
- `@botiverse/oar`: the runtime registry and adapters, bounded `orient` snapshots, `defineRuntime`, `UnsupportedOptionError`, `RuntimeFailureError`, `SessionNotFoundError`, `SessionUnavailableError`, `serveMcpTools`, `userShellEnvironment` and `writeShellEnvironmentCapture`, the `oar-voyage/3` recorder (`openVoyage`), and everything the brands and observe entry points below export. Node-only (adapters import `node:child_process` and runtime SDKs).
|
|
148
|
+
- `@botiverse/oar`: the runtime registry and adapters, bounded `orient` snapshots, `defineRuntime`, `UnsupportedOptionError` (and its `ResumeCwdError` subclass), `ModelConfirmationError`, `RuntimeFailureError`, `SessionNotFoundError`, `SessionUnavailableError`, `serveMcpTools`, `userShellEnvironment` and `writeShellEnvironmentCapture`, the `oar-voyage/3` recorder (`openVoyage`), and everything the brands and observe entry points below export. Node-only (adapters import `node:child_process` and runtime SDKs).
|
|
147
149
|
- `@botiverse/oar/browser`: portable contracts, registry, session kernel, observe helpers, agent report formatting, and branding. No Node adapters, process helpers or local image-file loaders.
|
|
148
150
|
- `@botiverse/oar/brands`: browser-safe runtime names and SVG icons.
|
|
149
|
-
- `@botiverse/oar/runtimes/<id>` (`claude`, `codex`, `codebuddy`, `devin`, `dsh`, `factory`, `pi`, `cursor`, `opencode`, `kimi`, `grok`, `antigravity`, `qwen`, `qoder`): one built-in runtime (`claudeRuntime`, …; cursor's is `createCursorRuntime`) without the others, for a host that needs only some of them. Each entry stays at about 1 to 2.5 MB of heap where the root entry takes about 50 MB (Node 26, [#405](https://github.com/botiverse/oar/pull/405)): the ACP SDK (about 20 MB) loads only
|
|
151
|
+
- `@botiverse/oar/runtimes/<id>` (`claude`, `codex`, `codebuddy`, `devin`, `dsh`, `factory`, `pi`, `cursor`, `opencode`, `kimi`, `grok`, `antigravity`, `qwen`, `qoder`): one built-in runtime (`claudeRuntime`, …; cursor's is `createCursorRuntime`) without the others, for a host that needs only some of them. Each entry stays at about 1 to 2.5 MB of heap where the root entry takes about 50 MB (Node 26, [#405](https://github.com/botiverse/oar/pull/405)): the ACP SDK (about 20 MB) loads only on the first call that speaks ACP (a session, a model list, a usage, sign-in or status read on an ACP entry, the Qwen provider facade), and the pi and cursor SDKs when theirs first run. Node-only.
|
|
150
152
|
- `@botiverse/oar/observe`: the browser-safe pure derivations over `RawEvent`s and `Event`s (`eventsOf`, `graphOf`, `usageOf`, `coalesceText`, `observeAgent`, `reduceStatus`, `tasksOf`, `observeStalls`, `classifyTool`, `reduceConversation`, `viewOf`, …) with no Node or adapter imports, so a browser or Electron-renderer bundle can import it directly. The root export re-exports all of them.
|
|
151
153
|
It also supplies `failureAdvice` (recovery timing per `FailureClass`) and `noticeText`, `noticeTone`, `phaseLabel`, `failureText` and `taskStatusLabel`, alongside `toolActionLabel` and `toolGroupSummary`: English display wording for OAR types, usable in JavaScriptCore too. Wording may change in a minor release; hosts must use the typed values for decisions, not parse the text ([display wording](https://github.com/botiverse/oar/blob/main/docs/spec/conversation.md#display-wording)).
|
|
152
154
|
- `@botiverse/oar/kernel`: the runtime-author SPI. `createSessionKernel` is the record stream every built-in adapter is built on (dense `seq`, cursor replay, control recording, the reachability rule) and `sealSession` derives the `Session` API face over an adapter. Pair with `defineRuntime` to ship a custom runtime (a scripted runtime for a host's tests, an in-process agent) without re-implementing the stream contract. `inputImagesRefusal` and `withInputImages` are the image rules every built-in runtime keeps, so a custom runtime refuses the inputs they refuse. `withdrawHeld` is the decision behind `withdraw` for a runtime that holds its own queue.
|
|
@@ -157,7 +159,7 @@ The package has these public entry points, plus `@botiverse/oar/pi-durable` ([be
|
|
|
157
159
|
|
|
158
160
|
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.
|
|
159
161
|
|
|
160
|
-
Antigravity, CodeBuddy, Devin, 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.
|
|
162
|
+
Antigravity, CodeBuddy, Devin, 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.4.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()`. `createCursorRuntime({ execution: "subprocess", sdkModule: import.meta.resolve("@cursor/sdk") })` instead runs the SDK in a Node child per session, which takes `SessionOptions.env` and whose crash is recorded as `exited` ([execution modes](https://github.com/botiverse/oar/blob/main/docs/runtimes/cursor.md#execution-modes)).
|
|
161
163
|
|
|
162
164
|
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.
|
|
163
165
|
|
|
@@ -166,7 +168,7 @@ Community runtimes are contributed and maintained outside the core team (each ma
|
|
|
166
168
|
`SessionOptions.model`. When resuming an old Azure session, pass
|
|
167
169
|
`model: "azure/<model>"` explicitly; without it, Pi can retain the
|
|
168
170
|
conversation while selecting a different default model. The opening `model`
|
|
169
|
-
event and `Session.model()` report the effective selection. OAR's `^1.5.
|
|
171
|
+
event and `Session.model()` report the effective selection. OAR's `^1.5.2`
|
|
170
172
|
dependency range includes this change
|
|
171
173
|
([migration evidence and limits](https://github.com/botiverse/oar/blob/main/experiments/runtime-version-checks/2026-10-05.md)).
|
|
172
174
|
|
|
@@ -192,7 +194,7 @@ and [CodeBuddy](https://github.com/botiverse/oar/blob/main/docs/runtimes/codebud
|
|
|
192
194
|
`dshRuntime` (DeepSeek Harness through a private plugin on its native services, one
|
|
193
195
|
process per session, `DSH_MINIMUM_VERSION` `0.2.1-rc.5` or later) is too; it selects
|
|
194
196
|
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)).
|
|
197
|
+
options stay refused until probed; native session names and tool denial are supported ([mapping](https://github.com/botiverse/oar/blob/main/docs/runtimes/dsh.md)).
|
|
196
198
|
`devinRuntime` (Devin CLI's `devin acp`, isolated process per session) is in
|
|
197
199
|
`defaultRuntimes` too; it reads `authStatus` and `distribution` update markers,
|
|
198
200
|
attaches stdio/HTTP session MCP entries, switches model and effort synchronously
|
|
@@ -239,11 +241,21 @@ back on it. `runtime.refusedSessionOptions` names the options a runtime
|
|
|
239
241
|
refuses at open, each with the reason, so a host can leave them out before
|
|
240
242
|
opening. One key names a value rather than an option: `mcpServerCredentials`,
|
|
241
243
|
an `mcpServers` entry carrying `env` or `headers` (below). Some refusals
|
|
242
|
-
depend on the value or operation: Kimi
|
|
243
|
-
refuse a `resume` in another directory than the session's own
|
|
244
|
-
|
|
244
|
+
depend on the value or operation: Kimi, OpenCode, Antigravity, Devin,
|
|
245
|
+
Factory and DSH refuse a `resume` in another directory than the session's own
|
|
246
|
+
(the first four also one whose directory `session/list` cannot confirm)
|
|
247
|
+
with `ResumeCwdError` (an `UnsupportedOptionError` with `option: "cwd"`, whose
|
|
248
|
+
`name` stays `"UnsupportedOptionError"`), carrying `sessionId`,
|
|
249
|
+
`requestedCwd`, a typed `reason` and, for `other_cwd`, `savedCwd`
|
|
250
|
+
([resume in another directory](https://github.com/botiverse/oar/blob/main/docs/runtimes/resume-cwd.md)). See
|
|
245
251
|
[refused session options](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#refused-session-options).
|
|
246
252
|
|
|
253
|
+
Where an adapter confirms the requested `model` from native readback, an
|
|
254
|
+
open (or resume) it cannot confirm rejects with `ModelConfirmationError` (`requested`, `reported`,
|
|
255
|
+
and `catalogSelectorIds` when a catalog was read); it is not a
|
|
256
|
+
`FailureClass` and not evidence that the model is unavailable. See
|
|
257
|
+
[model confirmation failures](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#model-confirmation-failures).
|
|
258
|
+
|
|
247
259
|
`runtime.resumedSessionOptions` declares measured behavior for accepted
|
|
248
260
|
options on resume: when a different supplied value takes effect, and whether
|
|
249
261
|
omission uses saved or default settings. Missing entries mean untested.
|
|
@@ -283,14 +295,19 @@ project configuration stays runtime-specific. Claude and Cursor support it;
|
|
|
283
295
|
other runtimes refuse it. Give it again on resume. See
|
|
284
296
|
[user configuration](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#user-configuration).
|
|
285
297
|
|
|
286
|
-
`SessionOptions.endTurnProcessesOnAbort: true` (Codex
|
|
287
|
-
and
|
|
288
|
-
processes that turn started, where
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
298
|
+
`SessionOptions.endTurnProcessesOnAbort: true` (Codex in an isolated
|
|
299
|
+
app-server, and Grok; other runtimes and Codex in shared placement refuse it)
|
|
300
|
+
makes an accepted `abort()` also end the processes that turn started, where
|
|
301
|
+
the native interrupt leaves them running. Codex compares process-table reads;
|
|
302
|
+
Grok stops the terminals OAR hosted for that turn. MCP servers and earlier
|
|
303
|
+
background commands are kept with what they start, and the session stays
|
|
304
|
+
usable. A `cleanup` response on the abort request says what happened. On
|
|
305
|
+
Codex a failed or unfinished process-table read ends nothing, and so does
|
|
306
|
+
Windows, which has no process groups to tell them apart; Grok uses a
|
|
307
|
+
process-tree kill there, not yet run. See
|
|
308
|
+
[ending a turn's processes](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#ending-a-turns-processes-on-abort),
|
|
309
|
+
[Codex](https://github.com/botiverse/oar/blob/main/docs/runtimes/codex.md#ending-a-turns-processes-on-abort)
|
|
310
|
+
and [Grok](https://github.com/botiverse/oar/blob/main/docs/runtimes/grok.md#ending-a-turns-processes-on-abort).
|
|
294
311
|
|
|
295
312
|
`SessionOptions.outputSchema` supplies a JSON Schema object for final output.
|
|
296
313
|
Claude and Grok report their native validated value on a completed
|
|
@@ -328,7 +345,7 @@ fails: [structured output](https://github.com/botiverse/oar/blob/main/docs/spec/
|
|
|
328
345
|
args?, env?}` or streamable HTTP `{name, type: "http", url, headers?}`) to
|
|
329
346
|
one session, on top of the runtime's own, through each runtime's own channel
|
|
330
347
|
(claude reads them from a 0600 FIFO that never puts them on a disk, a
|
|
331
|
-
temporary file on Windows);
|
|
348
|
+
temporary file on Windows); pi-durable refuses them, and dsh takes
|
|
332
349
|
stdio `command` and `args` only. Give them again on `resume`. Their `env` and
|
|
333
350
|
`headers` values never appear in a record or an error; antigravity, which would
|
|
334
351
|
store them in its conversation database, and dsh refuse an entry carrying them
|
|
@@ -342,7 +359,7 @@ and each runtime page's "Session MCP servers".
|
|
|
342
359
|
Tools the host implements itself go through the same option. `serveMcpTools`
|
|
343
360
|
serves them from an MCP server inside the host process and returns the
|
|
344
361
|
`mcpServers` entry to pass, so one implementation reaches every runtime that
|
|
345
|
-
takes an http entry with `headers` (all but
|
|
362
|
+
takes an http entry with `headers` (all but pi-durable, antigravity and dsh):
|
|
346
363
|
|
|
347
364
|
```ts
|
|
348
365
|
import { serveMcpTools } from "@botiverse/oar";
|
|
@@ -381,9 +398,21 @@ session. The declaration covers any MCP server that announces a change, so
|
|
|
381
398
|
antigravity declares `none`, though a served entry never attaches there. See
|
|
382
399
|
[host-served tools](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#host-served-tools).
|
|
383
400
|
|
|
401
|
+
`runtime.minVersion`, when present, declares the adapter's minimum native
|
|
402
|
+
version; it never installs or upgrades anything. Readers independently enforce
|
|
403
|
+
their path's requirement, even when called without `installation()` first.
|
|
404
|
+
A version refusal carries optional `installedVersion` and `requiredVersion`:
|
|
405
|
+
model listing, installation and inventory use `unsupported.code:
|
|
406
|
+
"version_unsupported"`; account usage uses that `reason`; authentication status
|
|
407
|
+
uses `unknown` with that `code`. Pi's custom-command floor applies to RPC,
|
|
408
|
+
not reads through its bundled SDK. See
|
|
409
|
+
[version requirements](https://github.com/botiverse/oar/blob/main/docs/spec/orientation.md#adapter-version-requirements).
|
|
410
|
+
|
|
384
411
|
`runtime.listModels(installation, options?)` lists the models an installation
|
|
385
412
|
can run now (`ok`, `unauthenticated` or `unsupported`); every built-in runtime
|
|
386
413
|
has it. Entries include native `effortLevels` and `serviceTiers` where supported.
|
|
414
|
+
`effortUnavailableReason` distinguishes a menu that could not be determined from
|
|
415
|
+
a runtime that has no effort menu; it does not mean the model is disabled.
|
|
387
416
|
`default: true` marks the model a session uses when no `model` is set, where
|
|
388
417
|
the runtime says so (codex's configured model, else its catalog default; a new
|
|
389
418
|
session's current model on grok, kimi, antigravity, codebuddy and devin; the native
|
|
@@ -497,18 +526,19 @@ TypeScript hosts: keep `skipLibCheck` on. With `skipLibCheck: false` and `module
|
|
|
497
526
|
|
|
498
527
|
## Host-owned durable sessions
|
|
499
528
|
|
|
500
|
-
Install the optional native peers in the host: `npm install @earendil-works/pi-durable@~1.
|
|
501
|
-
|
|
502
|
-
|
|
529
|
+
Install the optional native peers in the host: `npm install @earendil-works/pi-durable@~1.5.2 @earendil-works/chord@~1.5.2`.
|
|
530
|
+
Resolve Durable and Chord to exactly the same version.
|
|
531
|
+
For the host catalog, keep `@earendil-works/pi-ai@1.5.2` under its normal
|
|
532
|
+
name and add `@earendil-works/pi-ai-durable` as an npm alias of Pi AI 1.5.2;
|
|
503
533
|
import Durable models/providers from that alias. See the
|
|
504
534
|
[copyable host configuration](https://github.com/botiverse/oar/blob/main/docs/runtimes/pi-durable.md#native-objects-and-calling-interface).
|
|
505
|
-
|
|
506
|
-
registration instances and break OAuth loading in single-file hosts.
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
535
|
+
Using a different Pi AI version under its normal name can split the coding
|
|
536
|
+
SDK's registration instances and break OAuth loading in single-file hosts.
|
|
537
|
+
The native peers support `pi.live` document version 3 and the group-commit
|
|
538
|
+
Storage interface. Back up storage before upgrading from 1.4: once new work
|
|
539
|
+
is committed under 1.5, that storage cannot be reopened by 1.4. Rollback
|
|
540
|
+
requires restoring the pre-upgrade backup. The host owns storage compatibility; see the
|
|
541
|
+
[host requirements](https://github.com/botiverse/oar/blob/main/docs/runtimes/pi-durable.md#native-objects-and-calling-interface).
|
|
512
542
|
The factory lives only in `@botiverse/oar/pi-durable`, usable in Node and browsers.
|
|
513
543
|
The root and browser core entries load without these peers.
|
|
514
544
|
|
|
@@ -525,7 +555,7 @@ session.rawEvents(() => render(viewOf(session.records())));
|
|
|
525
555
|
await session.prompt("Hello", { inputId: crypto.randomUUID() });
|
|
526
556
|
```
|
|
527
557
|
|
|
528
|
-
The host owns its Pi Durable 1.
|
|
558
|
+
The host owns its Pi Durable 1.5.2 Harness, providers, credentials, extensions
|
|
529
559
|
and storage. `resume: session.id` attaches to that storage's conversation and
|
|
530
560
|
resumes unfinished work. Queue and input-id deduplication are native and
|
|
531
561
|
durable. `dispose()` detaches the observer; it does not stop work or close the
|
|
@@ -553,8 +583,8 @@ exposes independent skills and MCP configuration discovery; Pi exposes skills
|
|
|
553
583
|
and registered tools with active membership. Pi commands include extension
|
|
554
584
|
commands and prompt templates; Claude commands come from native initialize.
|
|
555
585
|
Other core runtimes return unsupported for independent command discovery.
|
|
556
|
-
Antigravity, CodeBuddy, Cursor, Devin, DSH, Kimi, OpenCode, Qoder and Qwen
|
|
557
|
-
queries are unsupported.
|
|
586
|
+
Antigravity, CodeBuddy, Cursor, Devin, DSH, Factory, Kimi, OpenCode, Qoder and Qwen
|
|
587
|
+
inventory queries are unsupported.
|
|
558
588
|
|
|
559
589
|
```ts
|
|
560
590
|
const catalog = await runtime.commands(installation, { cwd: "/my/project" });
|
|
@@ -68,7 +68,7 @@ export interface AccountLimitResets {
|
|
|
68
68
|
readonly resets?: readonly AccountLimitReset[];
|
|
69
69
|
}
|
|
70
70
|
/** Stable reason codes; no credentials or provider response bodies are included. */
|
|
71
|
-
export type AccountUsageUnsupportedReason = "capability_unavailable" | "unsupported_installation" | "unsupported_auth_mode" | "unsupported_auth_storage" | "auth_configuration_unavailable" | "endpoint_unavailable" | "quota_unavailable";
|
|
71
|
+
export type AccountUsageUnsupportedReason = "version_unsupported" | "capability_unavailable" | "unsupported_installation" | "unsupported_auth_mode" | "unsupported_auth_storage" | "auth_configuration_unavailable" | "endpoint_unavailable" | "quota_unavailable";
|
|
72
72
|
export type AccountUsageReauthReason = "not_authenticated" | "credentials_missing" | "scope_missing" | "credentials_rejected";
|
|
73
73
|
export type AccountUsageSnapshot = {
|
|
74
74
|
readonly kind: "available";
|
|
@@ -76,13 +76,16 @@ export type AccountUsageSnapshot = {
|
|
|
76
76
|
readonly plan?: string;
|
|
77
77
|
/** Signed-in account email; omitted when the runtime does not expose one. */
|
|
78
78
|
readonly email?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Runtime-reported account display name (for example a profile nickname);
|
|
81
|
-
* omitted when not exposed. Lets callers identify accounts that have no email.
|
|
82
|
-
*/
|
|
79
|
+
/** Runtime-reported account display name (for example a profile nickname); omitted when not exposed. Identifies accounts that have no email. */
|
|
83
80
|
readonly displayName?: string;
|
|
84
81
|
readonly rateLimited: boolean;
|
|
85
82
|
readonly windows: readonly AccountUsageWindow[];
|
|
83
|
+
/** Extra usage credits; absent means unknown. `balance` is the runtime's string, with no unit conversion or inferred currency. */
|
|
84
|
+
readonly credits?: {
|
|
85
|
+
readonly available: boolean;
|
|
86
|
+
readonly unlimited?: boolean;
|
|
87
|
+
readonly balance?: string;
|
|
88
|
+
};
|
|
86
89
|
/** The account's limit resets, when the runtime reports them (codex); see `Runtime.redeemLimitReset`. */
|
|
87
90
|
readonly limitResets?: AccountLimitResets;
|
|
88
91
|
} | {
|
|
@@ -93,6 +96,8 @@ export type AccountUsageSnapshot = {
|
|
|
93
96
|
readonly kind: "unsupported";
|
|
94
97
|
/** Unsupported for this installation/account does not imply missing capability. */
|
|
95
98
|
readonly reason?: AccountUsageUnsupportedReason;
|
|
99
|
+
readonly installedVersion?: string;
|
|
100
|
+
readonly requiredVersion?: string;
|
|
96
101
|
};
|
|
97
102
|
export interface AccountUsageReadOptions {
|
|
98
103
|
/** Same overlay as sessions: strings override, null removes, and the host is untouched. */
|
|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I,EAAE,SAAS,CAAA;CAAE,CAAC;AAEjC;;;;;;;;GAQG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,YAAY,EAAE,qBAAqB,EACnC,OAAO,CAAC,EAAE,wBAAwB,KAC/B,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAC/B,YAAY,EAAE,qBAAqB,EACnC,OAAO,EAAE,iBAAiB,KACvB,OAAO,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -35,6 +35,9 @@ export type InstallationSnapshot = AvailableInstallation | {
|
|
|
35
35
|
} | {
|
|
36
36
|
readonly kind: "unsupported";
|
|
37
37
|
readonly reason: string;
|
|
38
|
+
readonly code?: "version_unsupported";
|
|
39
|
+
readonly installedVersion?: string;
|
|
40
|
+
readonly requiredVersion?: string;
|
|
38
41
|
};
|
|
39
42
|
export interface InstallationProbeOptions {
|
|
40
43
|
/** Same overlay as sessions: strings override, null removes, and the host is untouched. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installation.d.ts","sources":["../../src/contracts/installation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,4FAA4F;AAC5F,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAE,YAAY,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACvC;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC;CACzB;AA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ACnC,CAAC;AAEN,MAAM,WAAW,wBAAwB;IACvC,2FAA2F;IAC3F,QAAQ,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;CACtC;AAED,oGAAoG;AACpG,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,CAAC,EAAE,wBAAwB,KAAK,OAAO,CAAC,oBAAoB,CAAC,CAAC"}
|
|
@@ -62,8 +62,10 @@ export type InventoryResult<T> = {
|
|
|
62
62
|
readonly partial: boolean;
|
|
63
63
|
} | {
|
|
64
64
|
readonly kind: "unsupported";
|
|
65
|
-
readonly code: "native_query_unavailable" | "transport_unavailable" | "scope_unavailable" | "installation_unsupported";
|
|
65
|
+
readonly code: "native_query_unavailable" | "transport_unavailable" | "scope_unavailable" | "installation_unsupported" | "version_unsupported";
|
|
66
66
|
readonly reason: string;
|
|
67
|
+
readonly installedVersion?: string;
|
|
68
|
+
readonly requiredVersion?: string;
|
|
67
69
|
} | {
|
|
68
70
|
readonly kind: "unavailable";
|
|
69
71
|
readonly code: "timeout" | "query_failed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.d.ts","sources":["../../src/contracts/inventory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,2DAA2D;AAC3D,MAAM,WAAW,cAAc;IAAG,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAAE;AAEpF,MAAM,WAAW,gBAAgB;IAC/B,2FAA2F;IAC3F,QAAQ,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IACrC,uFAAuF;IACvF,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;C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E,aAAa,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,cAAc,CAAC;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC;AAEN,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,YAAY,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAClI,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IAC7C,uEAAuE;IACvE,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IACjD,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;IACrD,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;CAC5C"}
|
|
@@ -16,6 +16,12 @@ export interface ModelEntry {
|
|
|
16
16
|
/** Runtime-enumerated reasoning effort menu; omitted when not exposed. */
|
|
17
17
|
readonly effortLevels?: readonly string[];
|
|
18
18
|
readonly defaultEffort?: string;
|
|
19
|
+
/**
|
|
20
|
+
* This query could not determine the model's effort menu. A short explanation,
|
|
21
|
+
* never a raw native error. Omitted when a menu is available or the runtime
|
|
22
|
+
* does not expose effort at all; does not mean the model is disabled.
|
|
23
|
+
*/
|
|
24
|
+
readonly effortUnavailableReason?: string;
|
|
19
25
|
/** Native service-tier menu; the explicit opt-out `default` is not a tier. */
|
|
20
26
|
readonly serviceTiers?: readonly string[];
|
|
21
27
|
/** Native catalog default, when the runtime reports one. */
|
|
@@ -60,6 +66,10 @@ export type ListModelsResult = {
|
|
|
60
66
|
} | {
|
|
61
67
|
readonly kind: "unsupported";
|
|
62
68
|
readonly reason: string;
|
|
69
|
+
readonly code?: "version_unsupported";
|
|
70
|
+
/** Reported native version, omitted when it could not be read. */
|
|
71
|
+
readonly installedVersion?: string;
|
|
72
|
+
readonly requiredVersion?: string;
|
|
63
73
|
};
|
|
64
74
|
export interface ListModelsOptions {
|
|
65
75
|
/** Same overlay as sessions: strings override, null removes, and the host is untouched. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-models.d.ts","sources":["../../src/contracts/list-models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,0EAA0E;IAC1E,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,8EAA8E;IAC9E,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,4DAA4D;IAC5D,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5E;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GACxB;IAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IAAC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AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GACxB;IAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAA;CAAE,GAC/D;IAAE,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9D;IACE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,qBAAqB,CAAC;IACtC,kEAAkE;IAClE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CACnC,CAAC;AAEN,MAAM,WAAW,iBAAiB;IAChC,2FAA2F;IAC3F,QAAQ,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IACrC;;;;;;;;OAQG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,MAAM,WAAW,GAAG,CACxB,YAAY,EAAE,qBAAqB,EACnC,OAAO,CAAC,EAAE,iBAAiB,KACxB,OAAO,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -160,6 +160,10 @@ export type AuthStatus = {
|
|
|
160
160
|
/** The status query failed, was unreadable, or local configuration cannot establish a login. */
|
|
161
161
|
| {
|
|
162
162
|
readonly kind: "unknown";
|
|
163
|
+
/** Version refusal says nothing about whether the account is signed in. */
|
|
164
|
+
readonly code?: "version_unsupported";
|
|
165
|
+
readonly installedVersion?: string;
|
|
166
|
+
readonly requiredVersion?: string;
|
|
163
167
|
readonly detail?: string;
|
|
164
168
|
readonly source?: string;
|
|
165
169
|
/** Nonempty source labels for observed, unvalidated local configuration. No values. Omitted on query failure; absence does not mean no configuration. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sources":["../../src/contracts/login.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,oIAAoI;AACpI,MAAM,WAAW,YAAY;IAC3B,mFAAmF;IACnF,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAC5C,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,oEAAoE;IACpE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,0FAA0F;IAC1F,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC;CACjC;AAED,qDAAqD;AACrD,MAAM,MAAM,kBAAkB,GAC1B,WAAW,GACX,UAAU,GACV,eAAe,GACf,oBAAoB,GACpB,gBAAgB,CAAC;AAErB,iDAAiD;AACjD,MAAM,MAAM,sBAAsB,GAC9B,iCAAiC,GACjC,0BAA0B,GAC1B,qBAAqB,CAAC;AAE1B;;;;GAIG;AACH,MAAM,MAAM,WAAW;AACrB,mHAAmH;AACjH;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;CAAE,GAC/D;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,C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yGAAyG;IACzG,QAAQ,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IACrC,8IAA8I;IAC9I,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAC9B,YAAY,EAAE,qBAAqB,EACnC,OAAO,CAAC,EAAE,iBAAiB,KACxB,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC"}
|
|
@@ -64,6 +64,8 @@ export interface Runtime extends RuntimeInventories {
|
|
|
64
64
|
/** A new runtime instance, with its own pool. Refusals are checked at session open. */
|
|
65
65
|
withPlacement(placement: PlacementRequest): Runtime;
|
|
66
66
|
readonly id: string;
|
|
67
|
+
/** Minimum native version required by this adapter, when it has a numeric floor. Individual capabilities may require newer versions. Absence means no declared floor, not support for every version. */
|
|
68
|
+
readonly minVersion?: string;
|
|
67
69
|
readonly brand: RuntimeBrand;
|
|
68
70
|
readonly session: StartSession;
|
|
69
71
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sources":["../../src/contracts/runtime.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACtG,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,KAAK,EAAmB,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAE1E,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,uBAAuB,EAAoB,MAAM,gBAAgB,CAAC;AACvG,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,E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time.js","sources":["../../src/contracts/runtime.ts"],"names":[],"mappings":"AAKA,yIAAyI;AACzI,OAAO,EAAuD,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAuJvG,KAAK,UAAU,WAAW;IACxB,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;IACxB,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,uBAAuB;QAC7B,MAAM,EAAE,+DAA+D;KACxE,CAAC;AACJ,CAAC;AAKD,MAAM,UAAU,aAAa,CAAoC,OAAU,EAAE,OAAO,GAA4B,EAAE;IAChH,2HAA2H;IAC3H,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;QAAC,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;IAAC,CAAC;IACzI,MAAM,MAAM,GAAG,CAAC,SAA2B,EAAqB,EAAE,CAAC,CACjE;QACE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW;QACvF,GAAG,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,SAAS;QAC1F,SAAS,EAAE,OAAO,CAAC,SAAS,IAAI,IAAI;QACpC,aAAa,EAAE,MAAM;QACrB,OAAO,EAAE,gBAAgB,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC;KAC/D,CACF,CAAC;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC"}
|
|
@@ -66,7 +66,7 @@ export interface SessionOptions {
|
|
|
66
66
|
* Supply again on resume. This launch choice is not recorded.
|
|
67
67
|
*/
|
|
68
68
|
readonly endTurnProcessesOnAbort?: boolean;
|
|
69
|
-
/** Working directory the runtime operates in. With `resume`, a directory other than the session's own is refused where the runtime would run in its own instead (kimi, opencode: `UnsupportedOptionError` on `cwd`); pi and grok can report SessionNotFoundError for that cwd; Cursor reports what its SDK can find with this configuration (docs/runtimes/resume-cwd.md). */
|
|
69
|
+
/** Working directory the runtime operates in. With `resume`, a directory other than the session's own is refused where the runtime would run in its own instead (kimi, opencode, antigravity, devin, factory, dsh: `ResumeCwdError`, an `UnsupportedOptionError` on `cwd`); pi and grok can report SessionNotFoundError for that cwd; Cursor reports what its SDK can find with this configuration (docs/runtimes/resume-cwd.md). */
|
|
70
70
|
readonly cwd: string;
|
|
71
71
|
/**
|
|
72
72
|
* Additional workspace directories, resolved relative to cwd. Uses the
|
|
@@ -134,10 +134,10 @@ export interface SessionOptions {
|
|
|
134
134
|
readonly outputSchema?: Readonly<Record<string, unknown>>;
|
|
135
135
|
/**
|
|
136
136
|
* The session's display name in the runtime's own UI and session list
|
|
137
|
-
* (claude `--name`, codex `thread/name/set`, pi's session name), so a user
|
|
137
|
+
* (claude `--name`, codex `thread/name/set`, pi's session name, DSH's native title), so a user
|
|
138
138
|
* can tell a host's sessions apart from their own. A new session gets it.
|
|
139
139
|
* On resume it is set only where the runtime reports the current name and
|
|
140
|
-
* there is none (codex, pi), so a name the user gave is never replaced;
|
|
140
|
+
* there is none (codex, pi, dsh), so a name the user gave is never replaced;
|
|
141
141
|
* claude keeps whatever name it has. A blank name, or one with a NUL
|
|
142
142
|
* character, is refused (`UnsupportedOptionError`) before anything starts.
|
|
143
143
|
* Other runtimes refuse this option.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-options.d.ts","sources":["../../src/contracts/session-options.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,SAAS,GACjB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,C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AC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;IAC3C;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7C;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-status.d.ts","sources":["../../src/observe/agent-status.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAkC,MAAM,yBAAyB,CAAC;AAIlH,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACjF,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AA+CzE,8HAA8H;AAC9H,wBAAgB,QAAQ,CAAC,OAAO,EAAE,SAAS,QAAQ,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,WAAW,CAAC,CAQnG;AAmBD,6FAA6F;AAC7F,wBAAgB,YAAY,CAAC,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,WAAW,CAgBrG;
|
|
1
|
+
{"version":3,"file":"agent-status.d.ts","sources":["../../src/observe/agent-status.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAkC,MAAM,yBAAyB,CAAC;AAIlH,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACjF,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AA+CzE,8HAA8H;AAC9H,wBAAgB,QAAQ,CAAC,OAAO,EAAE,SAAS,QAAQ,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,WAAW,CAAC,CAQnG;AAmBD,6FAA6F;AAC7F,wBAAgB,YAAY,CAAC,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,WAAW,CAgBrG;AA2LD,iGAAiG;AACjG,wBAAgB,OAAO,CACrB,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,GAClB;IAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAMpE"}
|
|
@@ -26,7 +26,7 @@ export { initialStatus, statusValue } from "./status-state.js";
|
|
|
26
26
|
* event reasoning → running/thinking
|
|
27
27
|
* event text_delta → running/responding
|
|
28
28
|
* event tool_call_started → running/{tool, callId}
|
|
29
|
-
* event tool_call_ended → running/waiting_model (the model consumes the result next)
|
|
29
|
+
* event tool_call_ended → running/waiting_model (the model consumes the result next); idle stays idle
|
|
30
30
|
* event tool_call_progress → running, phase unchanged (the clock moves)
|
|
31
31
|
* event tool_call_input_delta → running/{tool, callId, writing} for that call's tool phase
|
|
32
32
|
* event tool_call_input → running/{tool, callId} (arguments complete; the clock moves)
|
|
@@ -39,7 +39,7 @@ export { initialStatus, statusValue } from "./status-state.js";
|
|
|
39
39
|
* → idle{failed runtime_exited} otherwise
|
|
40
40
|
* response released → idle/released, retaining the stop-based outcome
|
|
41
41
|
* later facts after release → retain idle/released; native facts remain in the log
|
|
42
|
-
* The fold is total: a
|
|
42
|
+
* The fold is total: a turn start or turn content while idle adopts that turn (a consumer
|
|
43
43
|
* may subscribe mid-turn, and a queued input runs as a turn with no request).
|
|
44
44
|
*/
|
|
45
45
|
function compactionIdle(previous) {
|
|
@@ -202,7 +202,8 @@ function reduceEvent(previous, record, event) {
|
|
|
202
202
|
return running(previous, record, "responding");
|
|
203
203
|
case "tool_call_started":
|
|
204
204
|
return running(previous, record, { tool: event.tool, callId: event.callId });
|
|
205
|
-
case "tool_call_ended":
|
|
205
|
+
case "tool_call_ended": // can arrive after its turn ended (codex background terminals): no turn to adopt
|
|
206
|
+
return previous.kind === "running" ? running(previous, record, "waiting_model") : previous;
|
|
206
207
|
case "retry":
|
|
207
208
|
return running(previous, record, "waiting_model");
|
|
208
209
|
case "compaction_ended":
|