@botiverse/oar 0.46.0 → 0.48.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 +48 -5
- package/assets/brands/NOTICE.md +2 -0
- package/assets/brands/pi-durable-on-dark.svg +6 -0
- package/assets/brands/pi-durable-on-light.svg +6 -0
- package/assets/brands/pi-durable.svg +6 -0
- package/dist/brands.d.ts +8 -0
- package/dist/brands.d.ts.map +1 -1
- package/dist/brands.js +2 -1
- package/dist/brands.js.map +1 -1
- package/dist/browser.d.ts +12 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +10 -0
- package/dist/browser.js.map +1 -0
- package/dist/contracts/index.d.ts +15 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +4 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/contracts/install.d.ts +96 -0
- package/dist/contracts/install.d.ts.map +1 -0
- package/dist/contracts/install.js +2 -0
- package/dist/contracts/install.js.map +1 -0
- package/dist/contracts/records.d.ts +9 -11
- package/dist/contracts/records.d.ts.map +1 -1
- package/dist/contracts/runtime.d.ts +16 -0
- package/dist/contracts/runtime.d.ts.map +1 -1
- package/dist/contracts/runtime.js.map +1 -1
- package/dist/contracts/tool-output.d.ts +9 -0
- package/dist/contracts/tool-output.d.ts.map +1 -1
- package/dist/index.d.ts +1 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/observe/agent-status.d.ts +1 -0
- package/dist/observe/agent-status.d.ts.map +1 -1
- package/dist/observe/agent-status.js +3 -0
- package/dist/observe/agent-status.js.map +1 -1
- package/dist/observe/conversation.d.ts +2 -2
- package/dist/observe/conversation.d.ts.map +1 -1
- package/dist/observe/input-delivery.d.ts +1 -1
- package/dist/observe/input-delivery.d.ts.map +1 -1
- package/dist/observe/session-view-events.d.ts.map +1 -1
- package/dist/observe/session-view-events.js +7 -2
- package/dist/observe/session-view-events.js.map +1 -1
- package/dist/observe/session-view-tools.d.ts +6 -0
- package/dist/observe/session-view-tools.d.ts.map +1 -1
- package/dist/observe/session-view-tools.js +7 -1
- package/dist/observe/session-view-tools.js.map +1 -1
- package/dist/observe/session-view.d.ts +1 -1
- package/dist/observe/session-view.d.ts.map +1 -1
- package/dist/observe/tool-activity.d.ts.map +1 -1
- package/dist/observe/tool-activity.js +4 -1
- package/dist/observe/tool-activity.js.map +1 -1
- package/dist/pi-durable.d.ts +3 -0
- package/dist/pi-durable.d.ts.map +1 -0
- package/dist/pi-durable.js +3 -0
- package/dist/pi-durable.js.map +1 -0
- package/dist/runtimes/antigravity/index.d.ts +7 -5
- package/dist/runtimes/antigravity/index.d.ts.map +1 -1
- package/dist/runtimes/antigravity/index.js +3 -0
- package/dist/runtimes/antigravity/index.js.map +1 -1
- package/dist/runtimes/antigravity/install.d.ts +10 -0
- package/dist/runtimes/antigravity/install.d.ts.map +1 -0
- package/dist/runtimes/antigravity/install.js +16 -0
- package/dist/runtimes/antigravity/install.js.map +1 -0
- package/dist/runtimes/antigravity/installation.d.ts +1 -1
- package/dist/runtimes/antigravity/installation.d.ts.map +1 -1
- package/dist/runtimes/claude/index.d.ts +11 -9
- package/dist/runtimes/claude/index.d.ts.map +1 -1
- package/dist/runtimes/claude/index.js +4 -0
- package/dist/runtimes/claude/index.js.map +1 -1
- package/dist/runtimes/claude/install.d.ts +17 -0
- package/dist/runtimes/claude/install.d.ts.map +1 -0
- package/dist/runtimes/claude/install.js +29 -0
- package/dist/runtimes/claude/install.js.map +1 -0
- package/dist/runtimes/claude/installation.d.ts +10 -1
- package/dist/runtimes/claude/installation.d.ts.map +1 -1
- package/dist/runtimes/claude/installation.js +15 -1
- package/dist/runtimes/claude/installation.js.map +1 -1
- package/dist/runtimes/codex/index.d.ts +10 -8
- package/dist/runtimes/codex/index.d.ts.map +1 -1
- package/dist/runtimes/codex/index.js +4 -0
- package/dist/runtimes/codex/index.js.map +1 -1
- package/dist/runtimes/codex/install.d.ts +18 -0
- package/dist/runtimes/codex/install.d.ts.map +1 -0
- package/dist/runtimes/codex/install.js +30 -0
- package/dist/runtimes/codex/install.js.map +1 -0
- package/dist/runtimes/codex/installation.d.ts +12 -1
- package/dist/runtimes/codex/installation.d.ts.map +1 -1
- package/dist/runtimes/codex/installation.js +28 -13
- package/dist/runtimes/codex/installation.js.map +1 -1
- package/dist/runtimes/codex/projection.d.ts.map +1 -1
- package/dist/runtimes/codex/projection.js +3 -1
- package/dist/runtimes/codex/projection.js.map +1 -1
- package/dist/runtimes/grok/index.d.ts +9 -7
- package/dist/runtimes/grok/index.d.ts.map +1 -1
- package/dist/runtimes/grok/index.js +3 -0
- package/dist/runtimes/grok/index.js.map +1 -1
- package/dist/runtimes/grok/install.d.ts +13 -0
- package/dist/runtimes/grok/install.d.ts.map +1 -0
- package/dist/runtimes/grok/install.js +25 -0
- package/dist/runtimes/grok/install.js.map +1 -0
- package/dist/runtimes/grok/installation.d.ts +1 -1
- package/dist/runtimes/grok/installation.d.ts.map +1 -1
- package/dist/runtimes/grok/session.d.ts.map +1 -1
- package/dist/runtimes/grok/session.js +1 -0
- package/dist/runtimes/grok/session.js.map +1 -1
- package/dist/runtimes/kimi/index.d.ts +9 -7
- package/dist/runtimes/kimi/index.d.ts.map +1 -1
- package/dist/runtimes/kimi/index.js +3 -0
- package/dist/runtimes/kimi/index.js.map +1 -1
- package/dist/runtimes/kimi/install.d.ts +16 -0
- package/dist/runtimes/kimi/install.d.ts.map +1 -0
- package/dist/runtimes/kimi/install.js +28 -0
- package/dist/runtimes/kimi/install.js.map +1 -0
- package/dist/runtimes/kimi/installation.d.ts +1 -1
- package/dist/runtimes/kimi/installation.d.ts.map +1 -1
- package/dist/runtimes/kimi/session.d.ts +1 -1
- package/dist/runtimes/kimi/session.d.ts.map +1 -1
- package/dist/runtimes/opencode/attribution.d.ts +4 -0
- package/dist/runtimes/opencode/attribution.d.ts.map +1 -0
- package/dist/runtimes/opencode/attribution.js +13 -0
- package/dist/runtimes/opencode/attribution.js.map +1 -0
- package/dist/runtimes/opencode/index.d.ts +7 -4
- package/dist/runtimes/opencode/index.d.ts.map +1 -1
- package/dist/runtimes/opencode/index.js +4 -0
- package/dist/runtimes/opencode/index.js.map +1 -1
- package/dist/runtimes/opencode/install.d.ts +30 -0
- package/dist/runtimes/opencode/install.d.ts.map +1 -0
- package/dist/runtimes/opencode/install.js +55 -0
- package/dist/runtimes/opencode/install.js.map +1 -0
- package/dist/runtimes/opencode/installation.d.ts +2 -2
- package/dist/runtimes/opencode/installation.d.ts.map +1 -1
- package/dist/runtimes/opencode/installation.js +1 -1
- package/dist/runtimes/opencode/list-models.d.ts.map +1 -1
- package/dist/runtimes/opencode/list-models.js +15 -2
- package/dist/runtimes/opencode/list-models.js.map +1 -1
- package/dist/runtimes/opencode/session.d.ts +2 -0
- package/dist/runtimes/opencode/session.d.ts.map +1 -1
- package/dist/runtimes/opencode/session.js +24 -6
- package/dist/runtimes/opencode/session.js.map +1 -1
- package/dist/runtimes/opencode/version.d.ts +5 -0
- package/dist/runtimes/opencode/version.d.ts.map +1 -0
- package/dist/runtimes/opencode/version.js +23 -0
- package/dist/runtimes/opencode/version.js.map +1 -0
- package/dist/runtimes/pi/index.d.ts +6 -6
- package/dist/runtimes/pi/list-models.d.ts +3 -35
- package/dist/runtimes/pi/list-models.d.ts.map +1 -1
- package/dist/runtimes/pi/list-models.js +2 -22
- package/dist/runtimes/pi/list-models.js.map +1 -1
- package/dist/runtimes/pi/model-projection.d.ts +36 -0
- package/dist/runtimes/pi/model-projection.d.ts.map +1 -0
- package/dist/runtimes/pi/model-projection.js +23 -0
- package/dist/runtimes/pi/model-projection.js.map +1 -0
- package/dist/runtimes/pi/projection.d.ts.map +1 -1
- package/dist/runtimes/pi/projection.js +1 -0
- package/dist/runtimes/pi/projection.js.map +1 -1
- package/dist/runtimes/pi-durable/index.d.ts +12 -0
- package/dist/runtimes/pi-durable/index.d.ts.map +1 -0
- package/dist/runtimes/pi-durable/index.js +25 -0
- package/dist/runtimes/pi-durable/index.js.map +1 -0
- package/dist/runtimes/pi-durable/messages.d.ts +20 -0
- package/dist/runtimes/pi-durable/messages.d.ts.map +1 -0
- package/dist/runtimes/pi-durable/messages.js +57 -0
- package/dist/runtimes/pi-durable/messages.js.map +1 -0
- package/dist/runtimes/pi-durable/options.d.ts +7 -0
- package/dist/runtimes/pi-durable/options.d.ts.map +1 -0
- package/dist/runtimes/pi-durable/options.js +90 -0
- package/dist/runtimes/pi-durable/options.js.map +1 -0
- package/dist/runtimes/pi-durable/projection.d.ts +19 -0
- package/dist/runtimes/pi-durable/projection.d.ts.map +1 -0
- package/dist/runtimes/pi-durable/projection.js +140 -0
- package/dist/runtimes/pi-durable/projection.js.map +1 -0
- package/dist/runtimes/pi-durable/session.d.ts +5 -0
- package/dist/runtimes/pi-durable/session.d.ts.map +1 -0
- package/dist/runtimes/pi-durable/session.js +137 -0
- package/dist/runtimes/pi-durable/session.js.map +1 -0
- package/dist/shared/acp/profile.d.ts +9 -4
- package/dist/shared/acp/profile.d.ts.map +1 -1
- package/dist/shared/acp/profile.js.map +1 -1
- package/dist/shared/acp/records.d.ts +2 -1
- package/dist/shared/acp/records.d.ts.map +1 -1
- package/dist/shared/acp/records.js +6 -2
- package/dist/shared/acp/records.js.map +1 -1
- package/dist/shared/acp/session.js +2 -2
- package/dist/shared/acp/session.js.map +1 -1
- package/dist/shared/acp/turns.d.ts +6 -5
- package/dist/shared/acp/turns.d.ts.map +1 -1
- package/dist/shared/acp/turns.js +21 -10
- package/dist/shared/acp/turns.js.map +1 -1
- package/dist/shared/executable/index.d.ts +1 -1
- package/dist/shared/executable/index.d.ts.map +1 -1
- package/dist/shared/executable/index.js +1 -1
- package/dist/shared/executable/index.js.map +1 -1
- package/dist/shared/executable/isolated.d.ts +5 -0
- package/dist/shared/executable/isolated.d.ts.map +1 -1
- package/dist/shared/executable/isolated.js +8 -0
- package/dist/shared/executable/isolated.js.map +1 -1
- package/dist/shared/install.d.ts +70 -0
- package/dist/shared/install.d.ts.map +1 -0
- package/dist/shared/install.js +176 -0
- package/dist/shared/install.js.map +1 -0
- package/dist/shared/seal-session.d.ts.map +1 -1
- package/dist/shared/seal-session.js +1 -2
- package/dist/shared/seal-session.js.map +1 -1
- package/dist/shared/session-kernel.d.ts.map +1 -1
- package/dist/shared/session-kernel.js +2 -3
- package/dist/shared/session-kernel.js.map +1 -1
- package/dist/shared/update.d.ts +1 -1
- package/dist/shared/update.d.ts.map +1 -1
- package/dist/shared/update.js +4 -8
- package/dist/shared/update.js.map +1 -1
- package/package.json +22 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @botiverse/oar
|
|
2
2
|
|
|
3
|
-
Provider-independent TypeScript contracts and built-in implementations for controlling and observing Antigravity, Claude, Codex, Cursor, Grok, Kimi, OpenCode, and Pi.
|
|
3
|
+
Provider-independent TypeScript contracts and built-in implementations for controlling and observing Antigravity, Claude, Codex, Cursor, Grok, Kimi, OpenCode, Pi, and Pi Durable.
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
import { defaultRuntimes, promptAndWait } from "@botiverse/oar";
|
|
@@ -31,7 +31,7 @@ tasks and subagents started, updated and ended, runtime→app requests and oar's
|
|
|
31
31
|
answers, control rejections, withdrawn inputs, the process exit), each carrying
|
|
32
32
|
the `seq` and `agentPath` of the record it was read from. Kinds a runtime never
|
|
33
33
|
says (claude has no compaction start, ACP runtimes and cursor no compaction,
|
|
34
|
-
|
|
34
|
+
pi and pi-durable report retry) never appear; the runtime pages say which. It is a
|
|
35
35
|
projection over the record stream, which `session.rawEvents()` and
|
|
36
36
|
`session.records()` expose (`RawEvent`: `Frame` with the native payload
|
|
37
37
|
verbatim, `RequestRecord`, `ResponseRecord`) for consumers who need the
|
|
@@ -48,12 +48,12 @@ is absent. `session.withdraw(inputId)` takes a queued input back before it is
|
|
|
48
48
|
sent (`accepted`), or answers `not_queued` once it went; with it a UI offers
|
|
49
49
|
withdraw, edit (withdraw, then `queue` again) and send now (withdraw, then
|
|
50
50
|
`deliver`). It exists where OAR holds the queue itself (claude, pi, cursor
|
|
51
|
-
and the ACP runtimes),
|
|
51
|
+
and the ACP runtimes), and on pi-durable through native submission cancellation, not on codex.
|
|
52
52
|
`session.resources()` reads the memory a runtime takes on the host: resident
|
|
53
53
|
bytes and a process count over the runtime process, its group and its
|
|
54
54
|
descendants, `null` once it has exited (and on Windows). It is a reading only,
|
|
55
55
|
never a handle: no pid leaves OAR. Sessions whose runtime runs in the host
|
|
56
|
-
process (pi, cursor) have none.
|
|
56
|
+
process (pi, pi-durable, cursor) have none.
|
|
57
57
|
|
|
58
58
|
For conversation UIs, use the browser-safe `reduceConversation` projection
|
|
59
59
|
over `session.rawEvents()`. It joins input requests, responses and native
|
|
@@ -65,6 +65,7 @@ echoes by identity, including steer → queue fallback. See the
|
|
|
65
65
|
The package has these public entry points, plus `@botiverse/oar/community` for community runtimes (below):
|
|
66
66
|
|
|
67
67
|
- `@botiverse/oar`: the runtime registry and adapters, `defineRuntime`, `UnsupportedOptionError`, `RuntimeFailureError`, 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).
|
|
68
|
+
- `@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.
|
|
68
69
|
- `@botiverse/oar/brands`: browser-safe runtime names and SVG icons.
|
|
69
70
|
- `@botiverse/oar/observe`: the browser-safe pure derivations over `RawEvent`s and `Event`s (`eventsOf`, `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.
|
|
70
71
|
It also supplies `failureAdvice` (one retry policy 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)).
|
|
@@ -107,7 +108,7 @@ one session, on top of the runtime's own: claude reads them from a 0600
|
|
|
107
108
|
FIFO that never puts them on a disk (a temporary file on Windows), codex
|
|
108
109
|
from its thread config overrides, grok, kimi, opencode and antigravity from
|
|
109
110
|
ACP `session/new` / `session/resume`, pi from an extension that registers
|
|
110
|
-
them; cursor
|
|
111
|
+
them; cursor and pi-durable refuse them. Give them again on `resume`. Their `env` and `headers` values never
|
|
111
112
|
appear in a record or an error; antigravity, which would store them in its
|
|
112
113
|
conversation database, refuses an entry carrying them. See the
|
|
113
114
|
[channels](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#refused-session-options)
|
|
@@ -134,6 +135,20 @@ yet; Pi and Cursor have neither, their SDK versions following oar's (Pi's
|
|
|
134
135
|
SDK is a dependency, Cursor's an exact peer dependency).
|
|
135
136
|
See [runtime updates](https://github.com/botiverse/oar/blob/main/docs/spec/update.md).
|
|
136
137
|
|
|
138
|
+
`runtime.installPlan()` reports what installing a runtime would run on this
|
|
139
|
+
machine (the vendor's documented installer and the page that documents it)
|
|
140
|
+
or why it would run nothing (`platform`, `requires_privileges`,
|
|
141
|
+
`requires_gui`, `missing_tool`); `runtime.install()` runs it, without a
|
|
142
|
+
terminal and never with sudo, when `installation()` finds no copy, and
|
|
143
|
+
judges the result by `installation()` afterwards, never by the installer's
|
|
144
|
+
exit code. oar never installs on its own. Claude, Codex, Grok, Kimi and
|
|
145
|
+
OpenCode install through their vendors' macOS and Linux scripts; OpenCode
|
|
146
|
+
declares two release lines in `runtime.installLines` (`v1`, `v2`) and takes
|
|
147
|
+
the host's choice as `line` (oar picks none), and a copy of either line is
|
|
148
|
+
`already_installed`, never replaced. Antigravity's plan is `requires_gui`;
|
|
149
|
+
Pi and Cursor have neither member.
|
|
150
|
+
See [runtime install](https://github.com/botiverse/oar/blob/main/docs/spec/install.md).
|
|
151
|
+
|
|
137
152
|
`runtime.login(installation, interaction)` logs an installation in through
|
|
138
153
|
the runtime's own login, without a terminal: the sign-in URL or device code
|
|
139
154
|
arrives as a `ProviderLoginInteraction` event, and a code the person pastes
|
|
@@ -159,6 +174,34 @@ the runtime takes them; an input it cannot deliver is rejected whole. See
|
|
|
159
174
|
|
|
160
175
|
TypeScript hosts: keep `skipLibCheck` on. With `skipLibCheck: false` and `module: nodenext`, importing `@botiverse/oar` alone reports errors inside the pi SDK's own declarations (`@earendil-works/pi-ai` imports JSON without an import attribute, TS1543); OAR's own declarations check clean. A host that installs `@cursor/sdk` and checks library files also needs the DOM lib for its `@connectrpc/connect` dependency (`HeadersInit`).
|
|
161
176
|
|
|
177
|
+
## Host-owned durable sessions
|
|
178
|
+
|
|
179
|
+
Install the optional native peers in the host: `npm install @earendil-works/pi-durable@~1.1.0 @earendil-works/chord@~1.1.0`.
|
|
180
|
+
The factory lives only in `@botiverse/oar/pi-durable`, usable in Node and browsers.
|
|
181
|
+
The root and browser core entries load without these peers.
|
|
182
|
+
|
|
183
|
+
```ts
|
|
184
|
+
import { viewOf } from "@botiverse/oar/browser";
|
|
185
|
+
import { createPiDurableRuntime } from "@botiverse/oar/pi-durable";
|
|
186
|
+
|
|
187
|
+
// Use the same Models instance that the host passed to Harness.open.
|
|
188
|
+
const runtime = createPiDurableRuntime({ harness, models });
|
|
189
|
+
const session = await runtime.session({ kind: "available", via: "bundled" }, {
|
|
190
|
+
cwd: "/workspace", model: "provider/model",
|
|
191
|
+
});
|
|
192
|
+
session.rawEvents(() => render(viewOf(session.records())));
|
|
193
|
+
await session.prompt("Hello", { inputId: crypto.randomUUID() });
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
The host owns its Pi Durable 1.1.0 Harness, providers, credentials, extensions
|
|
197
|
+
and storage. `resume: session.id` attaches to that storage's conversation and
|
|
198
|
+
resumes unfinished work. Queue and input-id deduplication are native and
|
|
199
|
+
durable. `dispose()` detaches the observer; it does not stop work or close the
|
|
200
|
+
Harness. Use `abort()` to stop a run. The portable entry needs Web Crypto.
|
|
201
|
+
See [Pi Durable](https://github.com/botiverse/oar/blob/main/docs/runtimes/pi-durable.md)
|
|
202
|
+
for configuration, snapshot and recovery semantics. This constructor is not
|
|
203
|
+
in the default registry or CLI.
|
|
204
|
+
|
|
162
205
|
## Native inventories
|
|
163
206
|
|
|
164
207
|
Every runtime exposes `skills(installation, options?)`,
|
package/assets/brands/NOTICE.md
CHANGED
|
@@ -47,3 +47,5 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
47
47
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
48
48
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
49
49
|
SOFTWARE.
|
|
50
|
+
|
|
51
|
+
`pi-durable.svg` uses the same Pi artwork and attribution as `pi.svg`.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800">
|
|
3
|
+
<path fill="#F09082" d="M165.29 165.29H517.36V400H400V282.65H165.29Z"/>
|
|
4
|
+
<path fill="#4D9ABF" d="M165.29 282.65H282.65V400H400V517.36H282.65V634.72H165.29Z"/>
|
|
5
|
+
<path fill="#F1BE58" d="M517.36 400H634.72V634.72H517.36Z"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800">
|
|
3
|
+
<path fill="#F09082" d="M165.29 165.29H517.36V400H400V282.65H165.29Z"/>
|
|
4
|
+
<path fill="#4D9ABF" d="M165.29 282.65H282.65V400H400V517.36H282.65V634.72H165.29Z"/>
|
|
5
|
+
<path fill="#F1BE58" d="M517.36 400H634.72V634.72H517.36Z"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800">
|
|
3
|
+
<path fill="#F09082" d="M165.29 165.29H517.36V400H400V282.65H165.29Z"/>
|
|
4
|
+
<path fill="#4D9ABF" d="M165.29 282.65H282.65V400H400V517.36H282.65V634.72H165.29Z"/>
|
|
5
|
+
<path fill="#F1BE58" d="M517.36 400H634.72V634.72H517.36Z"/>
|
|
6
|
+
</svg>
|
package/dist/brands.d.ts
CHANGED
|
@@ -4,6 +4,14 @@ export type { RuntimeBrand } from "./contracts/brand.js";
|
|
|
4
4
|
/** Select for the actual host background; the host owns theme detection. */
|
|
5
5
|
export declare function runtimeBrandIcon(brand: RuntimeBrand, theme: "light" | "dark"): string | null;
|
|
6
6
|
export declare const runtimeBrands: {
|
|
7
|
+
readonly "pi-durable": {
|
|
8
|
+
readonly name: "Pi Durable";
|
|
9
|
+
readonly icon: `data:image/svg+xml,${string}`;
|
|
10
|
+
readonly icons: {
|
|
11
|
+
readonly light: `data:image/svg+xml,${string}`;
|
|
12
|
+
readonly dark: `data:image/svg+xml,${string}`;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
7
15
|
readonly claude: {
|
|
8
16
|
readonly name: "Claude Code";
|
|
9
17
|
readonly icon: `data:image/svg+xml,${string}`;
|
package/dist/brands.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.d.ts","sourceRoot":"","sources":["../src/brands.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAE5F;
|
|
1
|
+
{"version":3,"file":"brands.d.ts","sourceRoot":"","sources":["../src/brands.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAE5F;AA6DD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6E,CAAC"}
|
package/dist/brands.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export function runtimeBrandIcon(brand, theme) {
|
|
3
3
|
return brand.icons?.[theme] ?? brand.icon;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
const brands = {
|
|
6
6
|
claude: {
|
|
7
7
|
name: "Claude Code",
|
|
8
8
|
icon: `data:image/svg+xml,${encodeURIComponent("<svg height=\"1em\" style=\"flex:none;line-height:1\" viewBox=\"0 0 24 24\" width=\"1em\" xmlns=\"http://www.w3.org/2000/svg\"><title>Claude Code</title><path clip-rule=\"evenodd\" d=\"M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z\" fill=\"#D97757\" fill-rule=\"evenodd\"></path></svg>")}`,
|
|
@@ -60,4 +60,5 @@ export const runtimeBrands = {
|
|
|
60
60
|
icon: `data:image/svg+xml,${encodeURIComponent("<svg height=\"1em\" style=\"flex:none;line-height:1\" viewBox=\"0 0 24 24\" width=\"1em\" xmlns=\"http://www.w3.org/2000/svg\"><title>Antigravity</title><mask height=\"23\" id=\"lobe-icons-antigravity-0-_R_0_\" maskUnits=\"userSpaceOnUse\" width=\"24\" x=\"0\" y=\"1\"><path d=\"M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z\" fill=\"#fff\"></path></mask><g mask=\"url(#lobe-icons-antigravity-0-_R_0_)\"><g filter=\"url(#lobe-icons-antigravity-1-_R_0_)\"><path d=\"M-1.018-3.992c-.408 3.591 2.686 6.89 6.91 7.37 4.225.48 7.98-2.043 8.387-5.633.408-3.59-2.686-6.89-6.91-7.37-4.225-.479-7.98 2.043-8.387 5.633z\" fill=\"#FFE432\"></path></g><g filter=\"url(#lobe-icons-antigravity-2-_R_0_)\"><path d=\"M15.269 7.747c1.058 4.557 5.691 7.374 10.348 6.293 4.657-1.082 7.575-5.653 6.516-10.21-1.058-4.556-5.691-7.374-10.348-6.292-4.657 1.082-7.575 5.653-6.516 10.21z\" fill=\"#FC413D\"></path></g><g filter=\"url(#lobe-icons-antigravity-3-_R_0_)\"><path d=\"M-12.443 10.804c1.338 4.703 7.36 7.11 13.453 5.378 6.092-1.733 9.947-6.95 8.61-11.652C8.282-.173 2.26-2.58-3.833-.848-9.925.884-13.78 6.1-12.443 10.804z\" fill=\"#00B95C\"></path></g><g filter=\"url(#lobe-icons-antigravity-4-_R_0_)\"><path d=\"M-12.443 10.804c1.338 4.703 7.36 7.11 13.453 5.378 6.092-1.733 9.947-6.95 8.61-11.652C8.282-.173 2.26-2.58-3.833-.848-9.925.884-13.78 6.1-12.443 10.804z\" fill=\"#00B95C\"></path></g><g filter=\"url(#lobe-icons-antigravity-5-_R_0_)\"><path d=\"M-7.608 14.703c3.352 3.424 9.126 3.208 12.896-.483 3.77-3.69 4.108-9.459.756-12.883C2.69-2.087-3.083-1.871-6.853 1.82c-3.77 3.69-4.108 9.458-.755 12.883z\" fill=\"#00B95C\"></path></g><g filter=\"url(#lobe-icons-antigravity-6-_R_0_)\"><path d=\"M9.932 27.617c1.04 4.482 5.384 7.303 9.7 6.3 4.316-1.002 6.971-5.448 5.93-9.93-1.04-4.483-5.384-7.304-9.7-6.301-4.316 1.002-6.971 5.448-5.93 9.93z\" fill=\"#3186FF\"></path></g><g filter=\"url(#lobe-icons-antigravity-7-_R_0_)\"><path d=\"M2.572-8.185C.392-3.329 2.778 2.472 7.9 4.771c5.122 2.3 11.042.227 13.222-4.63 2.18-4.855-.205-10.656-5.327-12.955-5.122-2.3-11.042-.227-13.222 4.63z\" fill=\"#FBBC04\"></path></g><g filter=\"url(#lobe-icons-antigravity-8-_R_0_)\"><path d=\"M-3.267 38.686c-5.277-2.072 3.742-19.117 5.984-24.83 2.243-5.712 8.34-8.664 13.616-6.592 5.278 2.071 11.533 13.482 9.29 19.195-2.242 5.713-23.613 14.298-28.89 12.227z\" fill=\"#3186FF\"></path></g><g filter=\"url(#lobe-icons-antigravity-9-_R_0_)\"><path d=\"M28.71 17.471c-1.413 1.649-5.1.808-8.236-1.878-3.135-2.687-4.531-6.201-3.118-7.85 1.412-1.649 5.1-.808 8.235 1.878s4.532 6.2 3.119 7.85z\" fill=\"#749BFF\"></path></g><g filter=\"url(#lobe-icons-antigravity-10-_R_0_)\"><path d=\"M18.163 9.077c5.81 3.93 12.502 4.19 14.946.577 2.443-3.612-.287-9.727-6.098-13.658-5.81-3.931-12.502-4.19-14.946-.577-2.443 3.612.287 9.727 6.098 13.658z\" fill=\"#FC413D\"></path></g><g filter=\"url(#lobe-icons-antigravity-11-_R_0_)\"><path d=\"M-.915 2.684c-1.44 3.473-.97 6.967 1.05 7.804 2.02.837 4.824-1.3 6.264-4.772 1.44-3.473.97-6.967-1.05-7.804-2.02-.837-4.824 1.3-6.264 4.772z\" fill=\"#FFEE48\"></path></g></g><defs><filter color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\" height=\"17.587\" id=\"lobe-icons-antigravity-1-_R_0_\" width=\"19.838\" x=\"-3.288\" y=\"-11.917\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur result=\"effect1_foregroundBlur_977_115\" stdDeviation=\"1.117\"></feGaussianBlur></filter><filter color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\" height=\"38.565\" id=\"lobe-icons-antigravity-2-_R_0_\" width=\"38.9\" x=\"4.251\" y=\"-13.493\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur result=\"effect1_foregroundBlur_977_115\" stdDeviation=\"5.4\"></feGaussianBlur></filter><filter color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\" height=\"36.517\" id=\"lobe-icons-antigravity-3-_R_0_\" width=\"40.955\" x=\"-21.889\" y=\"-10.592\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur result=\"effect1_foregroundBlur_977_115\" stdDeviation=\"4.591\"></feGaussianBlur></filter><filter color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\" height=\"36.517\" id=\"lobe-icons-antigravity-4-_R_0_\" width=\"40.955\" x=\"-21.889\" y=\"-10.592\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur result=\"effect1_foregroundBlur_977_115\" stdDeviation=\"4.591\"></feGaussianBlur></filter><filter color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\" height=\"36.595\" id=\"lobe-icons-antigravity-5-_R_0_\" width=\"36.632\" x=\"-19.099\" y=\"-10.278\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur result=\"effect1_foregroundBlur_977_115\" stdDeviation=\"4.591\"></feGaussianBlur></filter><filter color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\" height=\"34.087\" id=\"lobe-icons-antigravity-6-_R_0_\" width=\"33.533\" x=\".981\" y=\"8.758\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur result=\"effect1_foregroundBlur_977_115\" stdDeviation=\"4.363\"></feGaussianBlur></filter><filter color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\" height=\"35.276\" id=\"lobe-icons-antigravity-7-_R_0_\" width=\"35.978\" x=\"-6.143\" y=\"-21.659\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur result=\"effect1_foregroundBlur_977_115\" stdDeviation=\"3.954\"></feGaussianBlur></filter><filter color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\" height=\"46.523\" id=\"lobe-icons-antigravity-8-_R_0_\" width=\"45.114\" x=\"-11.96\" y=\"-.46\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur result=\"effect1_foregroundBlur_977_115\" stdDeviation=\"3.531\"></feGaussianBlur></filter><filter color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\" height=\"24.054\" id=\"lobe-icons-antigravity-9-_R_0_\" width=\"25.094\" x=\"10.485\" y=\".58\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur result=\"effect1_foregroundBlur_977_115\" stdDeviation=\"3.159\"></feGaussianBlur></filter><filter color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\" height=\"30.007\" id=\"lobe-icons-antigravity-10-_R_0_\" width=\"33.508\" x=\"5.833\" y=\"-12.467\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur result=\"effect1_foregroundBlur_977_115\" stdDeviation=\"2.669\"></feGaussianBlur></filter><filter color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\" height=\"26.151\" id=\"lobe-icons-antigravity-11-_R_0_\" width=\"22.194\" x=\"-8.355\" y=\"-8.876\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur result=\"effect1_foregroundBlur_977_115\" stdDeviation=\"3.303\"></feGaussianBlur></filter></defs></svg>")}`,
|
|
61
61
|
},
|
|
62
62
|
};
|
|
63
|
+
export const runtimeBrands = { ...brands, "pi-durable": { ...brands.pi, name: "Pi Durable" } };
|
|
63
64
|
//# sourceMappingURL=brands.js.map
|
package/dist/brands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.js","sourceRoot":"","sources":["../src/brands.ts"],"names":[],"mappings":"AAKA,4EAA4E;AAC5E,MAAM,UAAU,gBAAgB,CAAC,KAAmB,EAAE,KAAuB;IAC3E,OAAO,KAAK,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC;AAC5C,CAAC;AAED,MAAM,
|
|
1
|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AAC,EAAE;QACxzB,KAAK,EAAE;YACL,KAAK,EAAE,sBAAsB,kBAAkB,CAAC,8vBAA8vB,CAAC,EAAE;YACjzB,IAAI,EAAE,sBAAsB,kBAAkB,CAAC,8vBAA8vB,CAAC,EAAE;SACjzB;KACF;IACD,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,sBAAsB,kBAAkB,CAAC,qjBAAqjB,CAAC,EAAE;QACvmB,KAAK,EAAE;YACL,KAAK,EAAE,sBAAsB,kBAAkB,CAAC,6iBAA6iB,CAAC,EAAE;YAChmB,IAAI,EAAE,sBAAsB,kBAAkB,CAAC,6iBAA6iB,CAAC,EAAE;SAChmB;KACF;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,sBAAsB,kBAAkB,CAAC,6PAA6P,CAAC,EAAE;QAC/S,KAAK,EAAE;YACL,KAAK,EAAE,sBAAsB,kBAAkB,CAAC,qPAAqP,CAAC,EAAE;YACxS,IAAI,EAAE,sBAAsB,kBAAkB,CAAC,qPAAqP,CAAC,EAAE;SACxS;KACF;IACD,WAAW,EAAE;QACX,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,sBAAsB,kBAAkB,CAAC,s2PAAs2P,CAAC,EAAE;KACz5P;CACwD,CAAC;AAE5D,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,GAAG,MAAM,EAAE,YAAY,EAAE,EAAE,GAAG,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,EAAW,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Portable contracts, observations and session core. No Node-only image-file helpers. */
|
|
2
|
+
export * from "./contracts/index.js";
|
|
3
|
+
export { createRuntimeRegistry, RuntimeRegistry } from "./registry.js";
|
|
4
|
+
export { createSessionKernel } from "./shared/session-kernel.js";
|
|
5
|
+
export type { SessionKernel, RecordAt } from "./shared/session-kernel.js";
|
|
6
|
+
export { controlOutcomeOf, sealSession } from "./shared/seal-session.js";
|
|
7
|
+
export { withdrawHeld } from "./shared/held-input.js";
|
|
8
|
+
export type { HeldInput } from "./shared/held-input.js";
|
|
9
|
+
export * from "./observe/index.js";
|
|
10
|
+
export * from "./agents/report.js";
|
|
11
|
+
export { runtimeBrands, runtimeBrandIcon, type RuntimeBrand } from "./brands.js";
|
|
12
|
+
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/browser.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Portable contracts, observations and session core. No Node-only image-file helpers. */
|
|
2
|
+
export * from "./contracts/index.js";
|
|
3
|
+
export { createRuntimeRegistry, RuntimeRegistry } from "./registry.js";
|
|
4
|
+
export { createSessionKernel } from "./shared/session-kernel.js";
|
|
5
|
+
export { controlOutcomeOf, sealSession } from "./shared/seal-session.js";
|
|
6
|
+
export { withdrawHeld } from "./shared/held-input.js";
|
|
7
|
+
export * from "./observe/index.js";
|
|
8
|
+
export * from "./agents/report.js";
|
|
9
|
+
export { runtimeBrands, runtimeBrandIcon } from "./brands.js";
|
|
10
|
+
//# sourceMappingURL=browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAqB,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type { InventoryScope, InventoryOptions, SkillEntry, McpServerEntry, ToolEntry, InventoryResult, InventoryReader, RuntimeInventories } from "./inventory.js";
|
|
2
|
+
export type { AccountUsageUnsupportedReason, AccountUsageReauthReason, AccountUsageReader, AccountUsageReadOptions, AccountUsageSnapshot, AccountUsageWindow, UtcInstant, } from "./account-usage.js";
|
|
3
|
+
export type { AvailableInstallation, BundledInstallation, ExecutableInstallation, InstallationProbe, InstallationSnapshot, } from "./installation.js";
|
|
4
|
+
export type { ProviderAuthFacade, ProviderAuthStatus, ProviderLoginEvent, ProviderLoginInteraction, ProviderLoginMethod, ProviderLoginPrompt, } from "./provider-auth.js";
|
|
5
|
+
export type { CatalogModel, CatalogProvider, CatalogRefreshOptions, CatalogRefreshResult, ModelCatalogFacade, } from "./model-catalog.js";
|
|
6
|
+
export type { ListModelsOptions, ListModelsResult, ModelEntry, ModelLister, } from "./list-models.js";
|
|
7
|
+
export type { InstallLine, InstallOptions, InstallPlan, InstallPlanner, InstallResult, InstallStep, InstallUnsupported, InstallUnsupportedReason, Installer, } from "./install.js";
|
|
8
|
+
export type { UpdateCheck, UpdateChecker, UpdateCheckOptions, UpdateCheckUnavailableReason, Upgrader, UpgradeOptions, UpgradeResult, } from "./update.js";
|
|
9
|
+
export type { AuthStatus, AuthStatusOptions, AuthStatusReader, LoginAccount, LoginFailureReason, LoginOptions, LoginResult, LoginUnsupportedReason, LogoutFailureReason, LogoutOptions, LogoutResult, RuntimeLogin, RuntimeLogout, } from "./login.js";
|
|
10
|
+
export type { RefusableSessionOption, RefusedSessionOptions, Runtime } from "./runtime.js";
|
|
11
|
+
export type { AdapterSession, AttributionTier, ContextBreakdown, ContextCategory, ContextItem, ContextUsage, ControlAction, ControlEventBody, ControlOutcome, ControlResult, Cursor, Event, EventBody, EventObserver, EventsOptions, CredentialProblem, FailureClass, Frame, FrameBody, DeliverOptions, DeliverResult, DeliverWhen, InputImage, InputOptions, InputOrigin, QueryResult, ReasoningContent, RecordEnvelope, RecordKind, RejectionCode, RequestBody, RequestDirection, RequestRecord, ResponseBody, ResponseRecord, RuntimeEventBody, UserMessage, Session, SessionCapabilities, SessionEdge, SessionGraph, SessionNode, RawEventObserver, McpServer, SessionOptions, RawEvent, SessionResources, SessionUsage, StartSession, SteerOrQueueResult, TaskEventBody, TaskStatus, TaskType, TokenTotals, ToolOutputPart, TurnOutcome, Unsubscribe, UsageReport, } from "./session.js";
|
|
12
|
+
export { defineRuntime } from "./runtime.js";
|
|
13
|
+
export { UnsupportedOptionError } from "./errors.js";
|
|
14
|
+
export { RuntimeFailureError } from "./runtime-failure-error.js";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAkB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BAAgB,EAChB,cAAc,EACd,aAAa,EACb,MAAM,EACN,KAAK,EACL,SAAS,EACT,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,KAAK,EACL,SAAS,EACT,cAAc,EACd,aAAa,EACb,WAAW,EACX,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,OAAO,EACP,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,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,mBAAmB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAuIA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { AvailableInstallation } from "./installation.js";
|
|
2
|
+
/**
|
|
3
|
+
* Why oar will not run a runtime's installer on this machine. The same
|
|
4
|
+
* answer comes from `installPlan()` and from `install()`, which then runs
|
|
5
|
+
* nothing.
|
|
6
|
+
*/
|
|
7
|
+
export type InstallUnsupportedReason = "platform" | "requires_privileges" | "requires_gui" | "missing_tool" | "bundled" | "line_required" | "unknown_line";
|
|
8
|
+
export interface InstallUnsupported {
|
|
9
|
+
readonly kind: "unsupported";
|
|
10
|
+
readonly reason: InstallUnsupportedReason;
|
|
11
|
+
/** Plain words for a person: what is missing, or how the vendor installs it instead. */
|
|
12
|
+
readonly detail?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* One of a runtime's parallel release lines: major versions its vendor ships
|
|
16
|
+
* side by side as the same command, each with its own installer (opencode:
|
|
17
|
+
* `v1` and `v2`). A copy of one line can replace a copy of the other.
|
|
18
|
+
*/
|
|
19
|
+
export interface InstallLine {
|
|
20
|
+
/** The value for `InstallOptions.line`. */
|
|
21
|
+
readonly line: string;
|
|
22
|
+
/** What the line is, for a person choosing one. */
|
|
23
|
+
readonly description: string;
|
|
24
|
+
}
|
|
25
|
+
/** One command the installer runs, spawned without a terminal and with stdin closed. */
|
|
26
|
+
export interface InstallStep {
|
|
27
|
+
/** The program, then its arguments: exactly what `install()` spawns. */
|
|
28
|
+
readonly command: readonly string[];
|
|
29
|
+
/**
|
|
30
|
+
* The step as the vendor documents it, plus the installer's own declared
|
|
31
|
+
* non-interactive switch where it has one (codex: `CODEX_NON_INTERACTIVE=1`,
|
|
32
|
+
* from install.sh's usage text), for a person to read before pressing Install.
|
|
33
|
+
*/
|
|
34
|
+
readonly display: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* What `install()` would run on this machine, read without running or
|
|
38
|
+
* downloading anything. `source` is the vendor's page that documents the
|
|
39
|
+
* method. Every plan downloads (`network`) and none needs elevated rights
|
|
40
|
+
* (`privileges`): an installer that would is `requires_privileges` instead.
|
|
41
|
+
*/
|
|
42
|
+
export type InstallPlan = {
|
|
43
|
+
readonly kind: "plan";
|
|
44
|
+
readonly steps: readonly InstallStep[];
|
|
45
|
+
readonly source: string;
|
|
46
|
+
readonly network: true;
|
|
47
|
+
readonly privileges: false;
|
|
48
|
+
} | InstallUnsupported;
|
|
49
|
+
/**
|
|
50
|
+
* The outcome of running the runtime's own installer, judged by the
|
|
51
|
+
* runtime's installation probe afterwards (the discovery sessions use),
|
|
52
|
+
* never by the installer's exit code. `output` is the installer's stdout
|
|
53
|
+
* and stderr verbatim.
|
|
54
|
+
*/
|
|
55
|
+
export type InstallResult =
|
|
56
|
+
/** The probe now finds an available installation. `line`: its release line, for a runtime with `installLines`, when its version tells. */
|
|
57
|
+
{
|
|
58
|
+
readonly kind: "installed";
|
|
59
|
+
readonly installation: AvailableInstallation;
|
|
60
|
+
readonly line?: string;
|
|
61
|
+
readonly output: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The probe found one before anything ran, so no installer ran, whichever
|
|
65
|
+
* `line` was asked for: an install never replaces a copy of another line.
|
|
66
|
+
*/
|
|
67
|
+
| {
|
|
68
|
+
readonly kind: "already_installed";
|
|
69
|
+
readonly installation: AvailableInstallation;
|
|
70
|
+
readonly line?: string;
|
|
71
|
+
}
|
|
72
|
+
/** The probe after the installer still finds nothing; `exitCode` is the installer's (0 included), null when the timeout stopped it. */
|
|
73
|
+
| {
|
|
74
|
+
readonly kind: "failed";
|
|
75
|
+
readonly exitCode: number | null;
|
|
76
|
+
readonly output: string;
|
|
77
|
+
} | InstallUnsupported;
|
|
78
|
+
export interface InstallOptions {
|
|
79
|
+
/** Bound for the installer run; downloads can take minutes. */
|
|
80
|
+
readonly timeoutMs?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Which of the runtime's `installLines` to install. Required by a runtime
|
|
83
|
+
* that declares lines (`line_required` without it: oar never chooses for
|
|
84
|
+
* the person) and refused by one that does not (`unknown_line`).
|
|
85
|
+
*/
|
|
86
|
+
readonly line?: string;
|
|
87
|
+
}
|
|
88
|
+
/** Read only: never runs, downloads or writes anything. */
|
|
89
|
+
export type InstallPlanner = (options?: InstallOptions) => Promise<InstallPlan>;
|
|
90
|
+
/**
|
|
91
|
+
* Runs the runtime's own installer, non-interactively, when the runtime's
|
|
92
|
+
* installation probe finds no available installation. Changes the machine:
|
|
93
|
+
* oar never calls it on its own.
|
|
94
|
+
*/
|
|
95
|
+
export type Installer = (options?: InstallOptions) => Promise<InstallResult>;
|
|
96
|
+
//# sourceMappingURL=install.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/contracts/install.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAChC,UAAU,GACV,qBAAqB,GACrB,cAAc,GACd,cAAc,GACd,SAAS,GACT,eAAe,GACf,cAAc,CAAC;AAEnB,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAC1C,wFAAwF;IACxF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,2CAA2C;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,wFAAwF;AACxF,MAAM,WAAW,WAAW;IAC1B,wEAAwE;IACxE,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GACnB;IACE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC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ure.js";
|
|
2
2
|
import type { InputImage, InputOrigin } from "./input.js";
|
|
3
|
+
import type { ToolCallProgress, ToolOutputPart } from "./tool-output.js";
|
|
3
4
|
import type { TaskEventBody } from "./tasks.js";
|
|
4
|
-
import type { ToolOutputPart } from "./tool-output.js";
|
|
5
5
|
/**
|
|
6
6
|
* The record stream and the events read off it. Three words, three layers:
|
|
7
7
|
*
|
|
@@ -123,11 +123,15 @@ export interface UserMessage {
|
|
|
123
123
|
* merges consecutive pieces for consumers who want blocks.
|
|
124
124
|
*/
|
|
125
125
|
export type RuntimeEventBody = UserMessage
|
|
126
|
-
/** The runtime
|
|
126
|
+
/** The runtime reports an active turn, including one adopted without a prompt request. Not a second turn when `turn_started` already opened it. */
|
|
127
|
+
| {
|
|
128
|
+
readonly kind: "turn_active";
|
|
129
|
+
}
|
|
130
|
+
/** The runtime discarded or refused an accepted input, established by native evidence. runtime_refused covers a later refused steering RPC. Returns ownership to the caller for resend; never inferred by a view from turn completion. */
|
|
127
131
|
| {
|
|
128
132
|
readonly kind: "input_dropped";
|
|
129
133
|
readonly inputId: string;
|
|
130
|
-
readonly reason: "turn_interrupted";
|
|
134
|
+
readonly reason: "turn_interrupted" | "runtime_refused";
|
|
131
135
|
}
|
|
132
136
|
/** `messageId`: the runtime's id of the assistant message the text is part of (codex `agentMessage` item, claude API message), so two messages of one turn stay apart; absent when it names none (pi, cursor, ACP) and in older records. */
|
|
133
137
|
| {
|
|
@@ -161,14 +165,8 @@ export type RuntimeEventBody = UserMessage
|
|
|
161
165
|
readonly result?: "ok" | "failed";
|
|
162
166
|
/** The process exit status the runtime reported for a command it ran (codex `commandExecution.exitCode`, grok and antigravity `rawOutput.exit_code`, a cursor shell result's `exitCode`); `null` when the runtime says it ended without one (a signal). Absent when the runtime reports none (claude, pi), never derived from `result` or output. */
|
|
163
167
|
readonly exitCode?: number | null;
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
| {
|
|
167
|
-
readonly kind: "tool_call_progress";
|
|
168
|
-
readonly callId: string;
|
|
169
|
-
readonly output?: string;
|
|
170
|
-
}
|
|
171
|
-
/** The runtime's OWN completion report for a turn (claude `result`, codex `turn/completed`, pi `agent_end`, an ACP prompt answer). The turn's start is the prompt request record itself; if a runtime reports no end, none appears. */
|
|
168
|
+
} | ToolCallProgress
|
|
169
|
+
/** The runtime's OWN completion report for a turn (claude `result`, codex `turn/completed`, pi `agent_settled`, an ACP prompt answer). A prompt request produces `turn_started`; a native active-run report produces `turn_active`. Neither implies an outcome: if a runtime reports no end, none appears. */
|
|
172
170
|
| {
|
|
173
171
|
readonly kind: "turn_ended";
|
|
174
172
|
readonly outcome: TurnOutcome;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../src/contracts/records.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../src/contracts/records.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;;;;;;;;;;;;;GAcG;AAEH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,mRAAmR;IACnR,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,6KAA6K;IAC7K,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,2IAA2I;IAC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;CAC1B,CAAC;AAEJ,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;AAED,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AuthStatusReader, RuntimeLogin, RuntimeLogout } from "./login.js";
|
|
2
|
+
import type { InstallLine, InstallPlanner, Installer } from "./install.js";
|
|
2
3
|
import type { RuntimeInventories } from "./inventory.js";
|
|
3
4
|
import type { UpdateChecker, Upgrader } from "./update.js";
|
|
4
5
|
import type { AccountUsageReader } from "./account-usage.js";
|
|
@@ -30,6 +31,21 @@ export interface Runtime extends RuntimeInventories {
|
|
|
30
31
|
*/
|
|
31
32
|
readonly refusedSessionOptions?: RefusedSessionOptions;
|
|
32
33
|
readonly installation?: InstallationProbe;
|
|
34
|
+
/** Read only: what `install` would run here, or why it would run nothing. Present exactly when `install` is. */
|
|
35
|
+
readonly installPlan?: InstallPlanner;
|
|
36
|
+
/**
|
|
37
|
+
* Runs the runtime's own installer when `installation` finds none, judged by
|
|
38
|
+
* `installation` afterwards; changes the machine, so only on the host's
|
|
39
|
+
* explicit call. Absent when there is nothing to install (a bundled SDK).
|
|
40
|
+
*/
|
|
41
|
+
readonly install?: Installer;
|
|
42
|
+
/**
|
|
43
|
+
* Declared by a runtime whose vendor ships parallel release lines of one
|
|
44
|
+
* command (opencode: `v1`, `v2`), so a host offers the choice before
|
|
45
|
+
* planning: `installPlan` and `install` take one as `options.line` and
|
|
46
|
+
* answer `line_required` without it. Absent for a runtime with one line.
|
|
47
|
+
*/
|
|
48
|
+
readonly installLines?: readonly InstallLine[];
|
|
33
49
|
readonly accountUsage?: AccountUsageReader;
|
|
34
50
|
readonly listModels?: ModelLister;
|
|
35
51
|
/** Read only: the version the runtime's own updater would install. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/contracts/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChF,OAAO,KAAK,EAAmB,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,yDAAyD;AACzD,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG,oBAAoB,GAAG,KAAK,GAAG,YAAY,GAAG,iBAAiB,GAAG,YAAY,GAAG,aAAa,CAAC;AAErJ;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;AAE9F,sDAAsD;AACtD,MAAM,WAAW,OAAQ,SAAQ,kBAAkB;IACjD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B;;;;;;;OAOG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IACvD,QAAQ,CAAC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;IAC5B,0HAA0H;IAC1H,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC;IAC9B,2JAA2J;IAC3J,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC;IAChC,gFAAgF;IAChF,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACxC;AAWD,wBAAgB,aAAa,CAAC,KAAK,CAAC,CAAC,SAAS,IAAI,CAAC,OAAO,EAAE,MAAM,kBAAkB,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,GAAG;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAA;CAAE,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,GAAG,kBAAkB,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAA;CAAE,CAExO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/contracts/runtime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/contracts/runtime.ts"],"names":[],"mappings":"AAiEA,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;AAED,MAAM,UAAU,aAAa,CAAsI,OAAU;IAC3K,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC;AACpJ,CAAC"}
|
|
@@ -10,4 +10,13 @@ export type ToolOutputPart = {
|
|
|
10
10
|
readonly type: "other";
|
|
11
11
|
readonly value: unknown;
|
|
12
12
|
};
|
|
13
|
+
/** Partial output reported by the runtime for this call. Snapshots replace; deltas append. Claude streams none; Cursor's independent shell output has no call id and stays in native frames. */
|
|
14
|
+
export interface ToolCallProgress {
|
|
15
|
+
readonly kind: "tool_call_progress";
|
|
16
|
+
readonly callId: string;
|
|
17
|
+
/** The whole current preview, replacing earlier output (Pi, ACP and Pi Durable's retained window). An empty string clears it. */
|
|
18
|
+
readonly output?: string;
|
|
19
|
+
/** Append this chunk to the preview (Codex `item/commandExecution/outputDelta`). If both fields are present, replace with `output` first, then append this. */
|
|
20
|
+
readonly outputDelta?: string;
|
|
21
|
+
}
|
|
13
22
|
//# sourceMappingURL=tool-output.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-output.d.ts","sourceRoot":"","sources":["../../src/contracts/tool-output.ts"],"names":[],"mappings":"AAAA,mIAAmI;AACnI,MAAM,MAAM,cAAc,GACtB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC7E;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"tool-output.d.ts","sourceRoot":"","sources":["../../src/contracts/tool-output.ts"],"names":[],"mappings":"AAAA,mIAAmI;AACnI,MAAM,MAAM,cAAc,GACtB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC7E;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;AAExD,gMAAgM;AAChM,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,iIAAiI;IACjI,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,+JAA+J;IAC/J,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import { RuntimeRegistry } from "./registry.js";
|
|
2
|
-
export
|
|
3
|
-
export type { AccountUsageUnsupportedReason, AccountUsageReauthReason, AccountUsageReader, AccountUsageReadOptions, AccountUsageSnapshot, AccountUsageWindow, UtcInstant, } from "./contracts/account-usage.js";
|
|
4
|
-
export type { AvailableInstallation, BundledInstallation, ExecutableInstallation, InstallationProbe, InstallationSnapshot, } from "./contracts/installation.js";
|
|
5
|
-
export type { ProviderAuthFacade, ProviderAuthStatus, ProviderLoginEvent, ProviderLoginInteraction, ProviderLoginMethod, ProviderLoginPrompt, } from "./contracts/provider-auth.js";
|
|
6
|
-
export type { CatalogModel, CatalogProvider, CatalogRefreshOptions, CatalogRefreshResult, ModelCatalogFacade, } from "./contracts/model-catalog.js";
|
|
7
|
-
export type { ListModelsOptions, ListModelsResult, ModelEntry, ModelLister, } from "./contracts/list-models.js";
|
|
8
|
-
export type { UpdateCheck, UpdateChecker, UpdateCheckOptions, UpdateCheckUnavailableReason, Upgrader, UpgradeOptions, UpgradeResult, } from "./contracts/update.js";
|
|
9
|
-
export type { AuthStatus, AuthStatusOptions, AuthStatusReader, LoginAccount, LoginFailureReason, LoginOptions, LoginResult, LoginUnsupportedReason, LogoutFailureReason, LogoutOptions, LogoutResult, RuntimeLogin, RuntimeLogout, } from "./contracts/login.js";
|
|
10
|
-
export type { RefusableSessionOption, RefusedSessionOptions, Runtime } from "./contracts/runtime.js";
|
|
11
|
-
export type { AdapterSession, AttributionTier, ContextBreakdown, ContextCategory, ContextItem, ContextUsage, ControlAction, ControlEventBody, ControlOutcome, ControlResult, Cursor, Event, EventBody, EventObserver, EventsOptions, CredentialProblem, FailureClass, Frame, FrameBody, DeliverOptions, DeliverResult, DeliverWhen, InputImage, InputOptions, InputOrigin, QueryResult, ReasoningContent, RecordEnvelope, RecordKind, RejectionCode, RequestBody, RequestDirection, RequestRecord, ResponseBody, ResponseRecord, RuntimeEventBody, UserMessage, Session, SessionCapabilities, SessionEdge, SessionGraph, SessionNode, RawEventObserver, McpServer, SessionOptions, RawEvent, SessionResources, SessionUsage, StartSession, SteerOrQueueResult, TaskEventBody, TaskStatus, TaskType, TokenTotals, ToolOutputPart, TurnOutcome, Unsubscribe, UsageReport, } from "./contracts/session.js";
|
|
12
|
-
export { defineRuntime } from "./contracts/runtime.js";
|
|
13
|
-
export { UnsupportedOptionError } from "./contracts/errors.js";
|
|
14
|
-
export { RuntimeFailureError } from "./contracts/runtime-failure-error.js";
|
|
2
|
+
export * from "./contracts/index.js";
|
|
15
3
|
export { utcInstantFromDate } from "./shared/instant.js";
|
|
16
4
|
export { RuntimeRegistry, createRuntimeRegistry } from "./registry.js";
|
|
17
5
|
export { VOYAGE_FORMAT, endLine, headerLine, openVoyage, recordLine, } from "./voyage.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAShD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,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a,CAAC;AAC9D,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -6,9 +6,7 @@ import { grokRuntime } from "./runtimes/grok/index.js";
|
|
|
6
6
|
import { kimiRuntime } from "./runtimes/kimi/index.js";
|
|
7
7
|
import { opencodeRuntime } from "./runtimes/opencode/index.js";
|
|
8
8
|
import { piRuntime } from "./runtimes/pi/index.js";
|
|
9
|
-
export
|
|
10
|
-
export { UnsupportedOptionError } from "./contracts/errors.js";
|
|
11
|
-
export { RuntimeFailureError } from "./contracts/runtime-failure-error.js";
|
|
9
|
+
export * from "./contracts/index.js";
|
|
12
10
|
export { utcInstantFromDate } from "./shared/instant.js";
|
|
13
11
|
export { RuntimeRegistry, createRuntimeRegistry } from "./registry.js";
|
|
14
12
|
export { VOYAGE_FORMAT, endLine, headerLine, openVoyage, recordLine, } from "./voyage.js";
|