@b3os/sdk 0.2.3 → 0.2.4

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.
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "0.2.3";
1
+ export declare const SDK_VERSION = "0.2.4";
2
2
  /** An environment variable, or undefined where there is no process environment (Workers, browsers). */
3
3
  export declare function env(name: string): string | undefined;
4
4
  /**
@@ -19,7 +19,7 @@ exports.isObject = isObject;
19
19
  exports.concatBytes = concatBytes;
20
20
  exports.camel = camel;
21
21
  exports.describeErr = describeErr;
22
- exports.SDK_VERSION = "0.2.3";
22
+ exports.SDK_VERSION = "0.2.4";
23
23
  function proc() {
24
24
  const p = globalThis.process;
25
25
  return p && typeof p === "object" ? p : undefined;
@@ -538,8 +538,16 @@ export declare class AgentsAPI extends Namespace {
538
538
  * Opens the harness's terminal over a WebSocket: the harness's own TUI in `terminal` mode, a shell in the
539
539
  * workspace in `api` mode (the live view shows the events beside it). tmux in the instance holds the terminal,
540
540
  * so it outlives every socket and a restart of the harness's shim. The node reaches it through the instance's
541
- * port proxy: opening it wakes a sleeping instance, and an open socket keeps the instance awake. When the last
542
- * socket closes and the harness is idle, the instance sleeps on its timers with the terminal paused in memory.
541
+ * port proxy. A socket opened with `role=control` wakes a sleeping instance and keeps it awake while it is open;
542
+ * when the last one closes and the harness is idle, the instance sleeps on its timers with the terminal paused in
543
+ * memory.
544
+ *
545
+ * A viewer's socket (`role=view`) never wakes the instance and never counts as activity, so an open viewer does
546
+ * not keep an instance running: it sleeps on its timers with viewers attached, and the node drops their sockets
547
+ * as it does. A viewer that opens while the instance sleeps gets `{"type": "sleeping", "status": "paused"}` (the
548
+ * instance's `status`), and the socket closes with code 1000 and reason `sleeping`. To watch again, open it once
549
+ * the instance is awake: its next turn's events show in the event stream (`agentsStreamInstance`), which neither
550
+ * wakes the instance nor keeps it awake.
543
551
  *
544
552
  * The wire is the sandbox terminal's (`sandboxesOpenPty`) with a cursor added. Binary frames carry terminal
545
553
  * bytes both ways; input counts only from the controller. Text frames carry JSON. The server's first frame is
@@ -547,14 +555,17 @@ export declare class AgentsAPI extends Namespace {
547
555
  * 40}`, then one binary frame with what the socket missed, then live output. The client sends `{"type":
548
556
  * "resize", "cols", "rows"}` (controller only), `{"type": "control"}` to ask for control, `{"type": "release"}`,
549
557
  * and `{"type": "end"}` (controller only: ends the terminal, and the TUI with it). The server sends `{"type":
550
- * "role", "role", "reason"}` when this socket's role changes, `{"type": "error", "code": "controller_active"}`
551
- * when another socket holds control, and `{"type": "exit", "code"}` before it closes.
558
+ * "role", "role", "reason"}` when this socket's role changes, `{"type": "size", "cols", "rows"}` to every viewer
559
+ * when the controller resizes the terminal (a viewer draws the controller's grid, which tmux draws for),
560
+ * `{"type": "error", "code": "controller_active"}` when another socket holds control, and `{"type": "exit",
561
+ * "code"}` before it closes.
552
562
  *
553
563
  * One controller, any number of viewers. `role=control` takes control when nobody holds it, and needs
554
564
  * `agents:run` besides this operation's `agents:read`; when another socket holds it, this one opens as `view`
555
- * (its first frame says so). Only the agent's owners take control from the holder, with `{"type": "control",
556
- * "takeover": true}`: a credential that holds `agents:write`, never a grant. The holder stays as a viewer and
557
- * gets `{"type": "role", "role": "view", "reason": "taken over"}`.
565
+ * (its first frame says so) and may ask for control later. A socket opened with `role=view` never takes control:
566
+ * it gets `{"type": "error", "code": "forbidden"}` when it asks. Only the agent's owners take control from the
567
+ * holder, with `{"type": "control", "takeover": true}`: a credential that holds `agents:write`, never a grant.
568
+ * The holder stays as a viewer and gets `{"type": "role", "role": "view", "reason": "taken over"}`.
558
569
  *
559
570
  * Reconnect where you left off: the terminal's output is kept in a 1 MiB ring indexed by byte offset. Send the
560
571
  * `session` and the `cursor` (the session frame's `cursor` plus the bytes received since), and the socket
@@ -858,8 +858,16 @@ class AgentsAPI extends namespace_ts_1.Namespace {
858
858
  * Opens the harness's terminal over a WebSocket: the harness's own TUI in `terminal` mode, a shell in the
859
859
  * workspace in `api` mode (the live view shows the events beside it). tmux in the instance holds the terminal,
860
860
  * so it outlives every socket and a restart of the harness's shim. The node reaches it through the instance's
861
- * port proxy: opening it wakes a sleeping instance, and an open socket keeps the instance awake. When the last
862
- * socket closes and the harness is idle, the instance sleeps on its timers with the terminal paused in memory.
861
+ * port proxy. A socket opened with `role=control` wakes a sleeping instance and keeps it awake while it is open;
862
+ * when the last one closes and the harness is idle, the instance sleeps on its timers with the terminal paused in
863
+ * memory.
864
+ *
865
+ * A viewer's socket (`role=view`) never wakes the instance and never counts as activity, so an open viewer does
866
+ * not keep an instance running: it sleeps on its timers with viewers attached, and the node drops their sockets
867
+ * as it does. A viewer that opens while the instance sleeps gets `{"type": "sleeping", "status": "paused"}` (the
868
+ * instance's `status`), and the socket closes with code 1000 and reason `sleeping`. To watch again, open it once
869
+ * the instance is awake: its next turn's events show in the event stream (`agentsStreamInstance`), which neither
870
+ * wakes the instance nor keeps it awake.
863
871
  *
864
872
  * The wire is the sandbox terminal's (`sandboxesOpenPty`) with a cursor added. Binary frames carry terminal
865
873
  * bytes both ways; input counts only from the controller. Text frames carry JSON. The server's first frame is
@@ -867,14 +875,17 @@ class AgentsAPI extends namespace_ts_1.Namespace {
867
875
  * 40}`, then one binary frame with what the socket missed, then live output. The client sends `{"type":
868
876
  * "resize", "cols", "rows"}` (controller only), `{"type": "control"}` to ask for control, `{"type": "release"}`,
869
877
  * and `{"type": "end"}` (controller only: ends the terminal, and the TUI with it). The server sends `{"type":
870
- * "role", "role", "reason"}` when this socket's role changes, `{"type": "error", "code": "controller_active"}`
871
- * when another socket holds control, and `{"type": "exit", "code"}` before it closes.
878
+ * "role", "role", "reason"}` when this socket's role changes, `{"type": "size", "cols", "rows"}` to every viewer
879
+ * when the controller resizes the terminal (a viewer draws the controller's grid, which tmux draws for),
880
+ * `{"type": "error", "code": "controller_active"}` when another socket holds control, and `{"type": "exit",
881
+ * "code"}` before it closes.
872
882
  *
873
883
  * One controller, any number of viewers. `role=control` takes control when nobody holds it, and needs
874
884
  * `agents:run` besides this operation's `agents:read`; when another socket holds it, this one opens as `view`
875
- * (its first frame says so). Only the agent's owners take control from the holder, with `{"type": "control",
876
- * "takeover": true}`: a credential that holds `agents:write`, never a grant. The holder stays as a viewer and
877
- * gets `{"type": "role", "role": "view", "reason": "taken over"}`.
885
+ * (its first frame says so) and may ask for control later. A socket opened with `role=view` never takes control:
886
+ * it gets `{"type": "error", "code": "forbidden"}` when it asks. Only the agent's owners take control from the
887
+ * holder, with `{"type": "control", "takeover": true}`: a credential that holds `agents:write`, never a grant.
888
+ * The holder stays as a viewer and gets `{"type": "role", "role": "view", "reason": "taken over"}`.
878
889
  *
879
890
  * Reconnect where you left off: the terminal's output is kept in a 1 MiB ring indexed by byte offset. Send the
880
891
  * `session` and the `cursor` (the session frame's `cursor` plus the bytes received since), and the socket
@@ -1 +1 @@
1
- {"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../../src/generated/ns/agents.ts"],"names":[],"mappings":";AAAA,4GAA4G;;;AAG5G,gDAAwD;AACxD,0DAAoD;AAIpD,4CAAuE;AAGvE,MAAM,YAAY,GAAO;IACvB,EAAE,EAAE,kBAAkB;IACtB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,YAAY;IAClB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,aAAa;CACrB,CAAC;AACF,MAAM,aAAa,GAAO;IACxB,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,cAAc;CACtB,CAAC;AACF,MAAM,eAAe,GAAO;IAC1B,EAAE,EAAE,qBAAqB;IACzB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,sBAAsB;IAC5B,SAAS,EAAE,KAAK;IAChB,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,aAAa;CACrB,CAAC;AACF,MAAM,qBAAqB,GAA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,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,cAAc,CACZ,KAAa,EACb,GAAW,EACX,MAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,gBAAgB,EAChB,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EACrC,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,KAAa,EAAE,GAAW,EAAE,WAAmB,EAAE,OAAwB;QACpF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAa,cAAc,EAAE,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACtH,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,YAAY,CAAC,KAAa,EAAE,GAAW,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAiB,cAAc,EAAE,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;OAQG;IACH,YAAY,CACV,KAAa,EACb,MAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,cAAc,EACd,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAChC,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AA5xBD,8BA4xBC"}
@@ -28,8 +28,15 @@ export declare class KeysAPI extends Namespace {
28
28
  * Create an API key
29
29
  *
30
30
  * Creates a key in your project (or `project`, in the same organization). `scopes` and `spend_cap_usd` may not
31
- * exceed the caller's own, and when the caller expires, `expires_at` must be set and no later than the caller's
32
- * expiry (`forbidden`, reason `scope_escalation`). The response is the only time `secret` is returned. An
31
+ * exceed the caller's own (`forbidden`, reason `scope_escalation`). The key's expiry is its own, whatever happens
32
+ * to the credential that made it later, and depends on that credential:
33
+ * - a CLI token (`b3os login`): `expires_at` defaults to 90 days from now and may be at most 365 days away, never
34
+ * `null`, so a key made from a 30-day login can outlive it;
35
+ * - an API key that expires: `expires_at` must be set and no later than that key's expiry;
36
+ * - a dashboard session or an API key that does not expire: any `expires_at`; left out or `null`, the key never
37
+ * expires.
38
+ *
39
+ * Past these, `forbidden`, reason `scope_escalation`. The response is the only time `secret` is returned. An
33
40
  * organization holds at most `platform.keys.max` active API keys (1,000 in the beta; revoked and expired ones are
34
41
  * not counted, nor CLI tokens); a create past it is 422 `limit_exceeded`.
35
42
  *
@@ -82,8 +89,9 @@ export declare class KeysAPI extends Namespace {
82
89
  * Update an API key
83
90
  *
84
91
  * Renames a key or changes its spend cap, expiry or metadata. Scopes cannot change; create a new key instead.
85
- * A caller with a spend cap or an expiry cannot set a larger cap or a later (or no) expiry than its own
86
- * (`forbidden`, reason `scope_escalation`).
92
+ * A caller with a spend cap cannot set a larger cap than its own. A CLI token may set an expiry up to 365 days
93
+ * from now, never `null`; an API key that expires cannot set a later (or no) expiry than its own (`forbidden`,
94
+ * reason `scope_escalation`).
87
95
  *
88
96
  * `PATCH /v1/keys/{key_id}` · scope `platform:write` · served by beta-api.b3os.org
89
97
  */
@@ -92,8 +92,15 @@ class KeysAPI extends namespace_ts_1.Namespace {
92
92
  * Create an API key
93
93
  *
94
94
  * Creates a key in your project (or `project`, in the same organization). `scopes` and `spend_cap_usd` may not
95
- * exceed the caller's own, and when the caller expires, `expires_at` must be set and no later than the caller's
96
- * expiry (`forbidden`, reason `scope_escalation`). The response is the only time `secret` is returned. An
95
+ * exceed the caller's own (`forbidden`, reason `scope_escalation`). The key's expiry is its own, whatever happens
96
+ * to the credential that made it later, and depends on that credential:
97
+ * - a CLI token (`b3os login`): `expires_at` defaults to 90 days from now and may be at most 365 days away, never
98
+ * `null`, so a key made from a 30-day login can outlive it;
99
+ * - an API key that expires: `expires_at` must be set and no later than that key's expiry;
100
+ * - a dashboard session or an API key that does not expire: any `expires_at`; left out or `null`, the key never
101
+ * expires.
102
+ *
103
+ * Past these, `forbidden`, reason `scope_escalation`. The response is the only time `secret` is returned. An
97
104
  * organization holds at most `platform.keys.max` active API keys (1,000 in the beta; revoked and expired ones are
98
105
  * not counted, nor CLI tokens); a create past it is 422 `limit_exceeded`.
99
106
  *
@@ -156,8 +163,9 @@ class KeysAPI extends namespace_ts_1.Namespace {
156
163
  * Update an API key
157
164
  *
158
165
  * Renames a key or changes its spend cap, expiry or metadata. Scopes cannot change; create a new key instead.
159
- * A caller with a spend cap or an expiry cannot set a larger cap or a later (or no) expiry than its own
160
- * (`forbidden`, reason `scope_escalation`).
166
+ * A caller with a spend cap cannot set a larger cap than its own. A CLI token may set an expiry up to 365 days
167
+ * from now, never `null`; an API key that expires cannot set a later (or no) expiry than its own (`forbidden`,
168
+ * reason `scope_escalation`).
161
169
  *
162
170
  * `PATCH /v1/keys/{key_id}` · scope `platform:write` · served by beta-api.b3os.org
163
171
  */
@@ -1 +1 @@
1
- {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../src/generated/ns/keys.ts"],"names":[],"mappings":";AAAA,4GAA4G;;;AAG5G,0DAAoD;AAKpD,MAAM,UAAU,GAAO;IACrB,EAAE,EAAE,kBAAkB;IACtB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,eAAe;CACvB,CAAC;AACF,MAAM,WAAW,GAAO;IACtB,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,gBAAgB;CACxB,C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,CAAC,OAAO,CAAC,KAAK,CAAW,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;OAQG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAqB,eAAe,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,KAAa,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAW,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAW,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;OASG;IACH,SAAS,CAAC,KAAa,EAAE,IAA2B,EAAE,OAAwB;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAW,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;CACF;AAtGD,0BAsGC"}
@@ -160,6 +160,14 @@ export interface Problem {
160
160
  * Why the egress guard refused the address of a hosted tool's `$url` file value (`action_input_invalid` with `reason: url_denied`): one of `egress_denied`'s reasons.
161
161
  */
162
162
  egress_reason?: string;
163
+ /**
164
+ * How far the node is with importing a hosted tool's image (`tool_unavailable` with `reason: image`): an image status, such as `pulling` or `warming`.
165
+ */
166
+ image_status?: string;
167
+ /**
168
+ * Why a hosted tool's image did not import (`tool_failed` with `reason: image`): `stage` (where it stopped, an image error stage) and `detail`.
169
+ */
170
+ image_error?: Record<string, unknown>;
163
171
  /** The part of the answer that was filled (`extract_fields_missing`), without the missing fields. */
164
172
  partial_data?: unknown;
165
173
  /** The job's pages and how each was read (vision extract errors), as in the job's `result.pages`. */
@@ -1059,7 +1067,7 @@ export type StealthOption = boolean | {
1059
1067
  */
1060
1068
  region?: string;
1061
1069
  /**
1062
- * Act steps (click, hover, type, key, and scroll without a target) send their input through the browser's own screen, shaped like a person's: pointer paths, key presses with their timing, wheel scrolling. Slower: a click takes hundreds of milliseconds. `false`: the default session's input.
1070
+ * Act steps (click, hover, type, key and scroll) send their input through the browser's own screen, shaped like a person's: pointer paths, key presses with their timing, wheel scrolling. A target out of view is reached with the wheel, never scrolled to by script while the wheel can reach it. Slower: a click takes hundreds of milliseconds. `false`: the default session's input.
1063
1071
  * @default true
1064
1072
  */
1065
1073
  humanize?: boolean;
@@ -1075,6 +1083,10 @@ export interface SessionStealth {
1075
1083
  screen: string;
1076
1084
  locale: string;
1077
1085
  timezone: string;
1086
+ /**
1087
+ * The GPU its browser reports (WebGL's unmasked renderer names it), for an identity of persona catalog 2 or later. Absent: an earlier identity, whose browser keeps a software renderer.
1088
+ */
1089
+ gpu?: string;
1078
1090
  };
1079
1091
  exit: {
1080
1092
  /** `byo`: your proxy. `direct`: the node's address. */
@@ -1126,6 +1138,20 @@ export interface StealthIdentity {
1126
1138
  };
1127
1139
  /** The font families its browser sees. */
1128
1140
  fonts: string[];
1141
+ /**
1142
+ * The GPU its browser reports (WebGL's unmasked renderer names it), from persona catalog 2 on: an Intel integrated GPU named as Linux's Mesa driver names it. Absent for a catalog 1 identity, whose browser keeps a software renderer.
1143
+ */
1144
+ gpu?: string;
1145
+ /**
1146
+ * How its desktop renders text, from persona catalog 3 on: fontconfig's hinting style, whether the autohinter is on, and the families the CSS generic families resolve to. Canvas text follows them. Absent for an earlier identity, whose desktop keeps the image's defaults.
1147
+ */
1148
+ font_rendering?: {
1149
+ hinting: "hintslight" | "hintfull" | "hintnone";
1150
+ autohint: boolean;
1151
+ sans_serif: string;
1152
+ serif: string;
1153
+ monospace: string;
1154
+ };
1129
1155
  };
1130
1156
  /** `us` or `us-ny`; `null` until a session names one or its first exit sets it. */
1131
1157
  home_region: string | null;
@@ -1338,7 +1364,9 @@ export interface ActKey {
1338
1364
  modifiers?: KeyModifiers;
1339
1365
  settle?: ActSettle;
1340
1366
  }
1341
- /** Scroll to an offset (`to`), by a delta (`by`), or until `target` is in view. */
1367
+ /**
1368
+ * Scroll to an offset (`to`), by a delta (`by`), or until `target` is in view. In a stealth session with `humanize`, the wheel turns until `target` is in view, and `by` or `to` with a target then turn the wheel at it: what a wheel there scrolls (the target when it scrolls, else its nearest scroll container, else the page) moves by `by`, or to `to` in its own offsets.
1369
+ */
1342
1370
  export interface ActScroll {
1343
1371
  kind: "scroll";
1344
1372
  target?: ActTarget;
@@ -8615,7 +8643,7 @@ export interface B3PackHttpResponse {
8615
8643
  }[];
8616
8644
  }
8617
8645
  /**
8618
- * How the action runs. http = T0, declarative HTTP inside b3osd. js = T1, a first-party ES module run by the actions-js sidecar (packages/spec/sidecars/actions-js.md). vm = a hosted tool: each call runs cmd in a fresh microVM of tool.base with the tool's archive unpacked at /tool, the request as one JSON object on stdin and one JSON object as the last line of stdout (protocol json-stdio, README 'Hosted tools').
8646
+ * How the action runs. http = T0, declarative HTTP inside b3osd. js = T1, a first-party ES module run by the actions-js sidecar (packages/spec/sidecars/actions-js.md). vm = a hosted tool: each call runs cmd in a fresh microVM of tool.base with the tool's archive unpacked at /tool (or of the tool's image, tool.image), the request as one JSON object on stdin and one JSON object as the last line of stdout (protocol json-stdio, README 'Hosted tools'); or, for an image tool, the argv template filled from the call's input (protocol argv).
8619
8647
  */
8620
8648
  export type B3PackImpl = {
8621
8649
  kind: "http";
@@ -8639,9 +8667,19 @@ export type B3PackImpl = {
8639
8667
  */
8640
8668
  protocol: "json-stdio";
8641
8669
  /**
8642
- * The command and its arguments, run with no shell, working directory /work, as the guest's user. Fixed text: no caller value ever enters it. cmd[0] is a path under /tool/ (publish check 18).
8670
+ * The command and its arguments, run with no shell, working directory /work, as the guest's user (an image tool: the image's USER). Fixed text: no caller value ever enters it. cmd[0] is a path under /tool/, or for an image tool an absolute path in the image (publish check 18).
8643
8671
  */
8644
8672
  cmd: string[];
8673
+ } | {
8674
+ kind: "vm";
8675
+ /**
8676
+ * Image tools only (publish check 18). The node fills argv from the call's input and runs it with no shell, stdin empty, in /work, as the image's USER; the output is the files the {out:<file>} tokens name, or stdout as the output stdout (README 'Hosted tools: the argv call').
8677
+ */
8678
+ protocol: "argv";
8679
+ /**
8680
+ * The command line as words. argv[0] names the program (a name the image's PATH finds, or an absolute path) and holds no token. In the other words: {x} the string input x, {x:int} the integer input x, {x:file} and {x:file=<media type>} the path of the input file x, {out:<file>} the path /out/<file> of an output file the program writes (the output field is the file name before its first dot), {{ and }} a literal brace. A value is always one argument, never split or expanded (publish check 18).
8681
+ */
8682
+ argv: string[];
8645
8683
  };
8646
8684
  export type B3PackExample = {
8647
8685
  fixture: B3PackFixturePath;
@@ -8864,21 +8902,23 @@ export type B3PackTrigger = {
8864
8902
  aliases?: B3PackSearchPhrases;
8865
8903
  };
8866
8904
  /**
8867
- * A hosted tool: the software a pack's vm actions run, and what it needs to run. Required when any action is vm and refused otherwise (publish checks 13 to 23). The schema admits the values of later versions (mcp, the other bases, session, hosts, caller, any size) and the reserved keys (setup, image, formats, bundle.files, base.range), so that what this version refuses is refused with a plain sentence of the publish checks rather than a schema error.
8905
+ * A hosted tool: the software a pack's vm actions run, and what it needs to run. Required when any action is vm and refused otherwise (publish checks 13 to 23). The schema admits the values of later versions (mcp, the other bases, session, hosts, caller, any size) and the reserved keys (setup, formats, bundle.files, base.range, image.build, image.auth), so that what this version refuses is refused with a plain sentence of the publish checks rather than a schema error. A tool names tool.base (with tool.bundle) or tool.image, never both (publish check 14).
8868
8906
  */
8869
8907
  export interface B3PackTool {
8870
8908
  /**
8871
8909
  * cli: a command that reads a request on stdin and writes an answer on stdout. mcp (later, not in this version): an MCP server. Shown on the listing.
8872
8910
  */
8873
8911
  kind: "cli" | "mcp";
8874
- /** The shared template the tool runs on. Bases have no versions yet. */
8875
- base: {
8912
+ /**
8913
+ * The shared template the tool runs on, with its archive (tool.bundle). Bases have no versions yet. Absent when tool.image names an image.
8914
+ */
8915
+ base?: {
8876
8916
  name: "base" | "files" | "browser" | "code-interpreter";
8877
8917
  /** Reserved: not read, because bases have no versions yet. Refused in this version. */
8878
8918
  range?: string;
8879
8919
  };
8880
8920
  /**
8881
- * The tool VM's size, one of the base's size classes. Absent: 1 vCPU and 512 MiB, the only size of this version.
8921
+ * The tool VM's size, one of the base's size classes. Absent: 1 vCPU and 512 MiB, the only size of a tool on base in this version; an image tool takes 1x512, 1x1024 or 2x2048 (publish check 14).
8882
8922
  */
8883
8923
  size?: {
8884
8924
  vcpu: number;
@@ -8937,8 +8977,21 @@ export interface B3PackTool {
8937
8977
  * Reserved: a command run once when the node prepares the tool's snapshot (later). Refused in this version.
8938
8978
  */
8939
8979
  setup?: unknown;
8940
- /** Reserved: an imported image's artifact (later). Refused in this version. */
8941
- image?: unknown;
8980
+ /**
8981
+ * The OCI image the tool runs (slice C), in place of tool.base and tool.bundle: each call restores a fresh microVM from the image's template on the node, with no network. Org-private tools only in this version (publish check 14).
8982
+ */
8983
+ image?: {
8984
+ /**
8985
+ * The image, pinned by digest: [<registry>/]<name>[:<tag>]@sha256:<64 hex>, from a public registry, for linux/amd64. b3os tool init --from-image resolves a tag to its digest.
8986
+ */
8987
+ ref?: string;
8988
+ /**
8989
+ * Reserved: an image built from a Dockerfile and a context the registry stores (later). Refused in this version.
8990
+ */
8991
+ build?: unknown;
8992
+ /** Reserved: a vault connection for a private registry (later). Refused in this version. */
8993
+ auth?: unknown;
8994
+ };
8942
8995
  /** Reserved: output formats a takedown can turn off by name (later). Refused in this version. */
8943
8996
  formats?: unknown;
8944
8997
  /**
@@ -9232,8 +9285,14 @@ export interface ToolAllIn {
9232
9285
  */
9233
9286
  export interface ActionTool {
9234
9287
  kind: "cli";
9235
- /** The template its VM is made from. */
9288
+ /** The template its VM is made from; empty for a tool built from an image (`image`). */
9236
9289
  base: string;
9290
+ /**
9291
+ * A tool built from an image (slice C, behind the preview flag `actions.tools_image`): the image, pinned by
9292
+ * digest (`tool.image.ref`). Each node imports it at the version's first call, and each call restores a fresh
9293
+ * VM from its template with no network. Absent for a tool on a base.
9294
+ */
9295
+ image?: string;
9237
9296
  network: "none";
9238
9297
  price: ToolPrice;
9239
9298
  /** `execution.maxInputMb`: the most input file data one call may carry, in MiB. */
@@ -9251,7 +9310,8 @@ export interface ActionTool {
9251
9310
  /**
9252
9311
  * The node's estimate of the time from claim to the tool's command starting, in milliseconds, for this
9253
9312
  * version's archive: a warm-pool claim plus the copy and the unpack for its size and format, from the
9254
- * table measured on 2026-11-13 (warm pool, 1 vCPU and 512 MiB).
9313
+ * table measured on 2026-11-13 (warm pool, 1 vCPU and 512 MiB). For a tool built from an image, the
9314
+ * warm-pool claim alone: nothing is copied or unpacked.
9255
9315
  */
9256
9316
  start_estimate_ms: number;
9257
9317
  /** What one call costs all in, or `null` before this version's first call on this node. */
@@ -10301,6 +10361,10 @@ export interface ApiKeyCreateRequest {
10301
10361
  /** Defaults to the caller's project. */
10302
10362
  project_id?: string;
10303
10363
  spend_cap_usd?: number | null;
10364
+ /**
10365
+ * When the key stops working. Left out: 90 days from now for a key made with a CLI token, never for one made
10366
+ * with a dashboard session or an API key that does not expire; an API key that expires must set it.
10367
+ */
10304
10368
  expires_at?: string | null;
10305
10369
  metadata?: Metadata;
10306
10370
  }
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "0.2.3";
1
+ export declare const SDK_VERSION = "0.2.4";
2
2
  /** An environment variable, or undefined where there is no process environment (Workers, browsers). */
3
3
  export declare function env(name: string): string | undefined;
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  // Small runtime helpers shared by the core. Nothing here imports a Node module statically, so the package loads
2
2
  // unchanged on Node, Bun, Deno, Cloudflare Workers and browsers.
3
- export const SDK_VERSION = "0.2.3";
3
+ export const SDK_VERSION = "0.2.4";
4
4
  function proc() {
5
5
  const p = globalThis.process;
6
6
  return p && typeof p === "object" ? p : undefined;
@@ -538,8 +538,16 @@ export declare class AgentsAPI extends Namespace {
538
538
  * Opens the harness's terminal over a WebSocket: the harness's own TUI in `terminal` mode, a shell in the
539
539
  * workspace in `api` mode (the live view shows the events beside it). tmux in the instance holds the terminal,
540
540
  * so it outlives every socket and a restart of the harness's shim. The node reaches it through the instance's
541
- * port proxy: opening it wakes a sleeping instance, and an open socket keeps the instance awake. When the last
542
- * socket closes and the harness is idle, the instance sleeps on its timers with the terminal paused in memory.
541
+ * port proxy. A socket opened with `role=control` wakes a sleeping instance and keeps it awake while it is open;
542
+ * when the last one closes and the harness is idle, the instance sleeps on its timers with the terminal paused in
543
+ * memory.
544
+ *
545
+ * A viewer's socket (`role=view`) never wakes the instance and never counts as activity, so an open viewer does
546
+ * not keep an instance running: it sleeps on its timers with viewers attached, and the node drops their sockets
547
+ * as it does. A viewer that opens while the instance sleeps gets `{"type": "sleeping", "status": "paused"}` (the
548
+ * instance's `status`), and the socket closes with code 1000 and reason `sleeping`. To watch again, open it once
549
+ * the instance is awake: its next turn's events show in the event stream (`agentsStreamInstance`), which neither
550
+ * wakes the instance nor keeps it awake.
543
551
  *
544
552
  * The wire is the sandbox terminal's (`sandboxesOpenPty`) with a cursor added. Binary frames carry terminal
545
553
  * bytes both ways; input counts only from the controller. Text frames carry JSON. The server's first frame is
@@ -547,14 +555,17 @@ export declare class AgentsAPI extends Namespace {
547
555
  * 40}`, then one binary frame with what the socket missed, then live output. The client sends `{"type":
548
556
  * "resize", "cols", "rows"}` (controller only), `{"type": "control"}` to ask for control, `{"type": "release"}`,
549
557
  * and `{"type": "end"}` (controller only: ends the terminal, and the TUI with it). The server sends `{"type":
550
- * "role", "role", "reason"}` when this socket's role changes, `{"type": "error", "code": "controller_active"}`
551
- * when another socket holds control, and `{"type": "exit", "code"}` before it closes.
558
+ * "role", "role", "reason"}` when this socket's role changes, `{"type": "size", "cols", "rows"}` to every viewer
559
+ * when the controller resizes the terminal (a viewer draws the controller's grid, which tmux draws for),
560
+ * `{"type": "error", "code": "controller_active"}` when another socket holds control, and `{"type": "exit",
561
+ * "code"}` before it closes.
552
562
  *
553
563
  * One controller, any number of viewers. `role=control` takes control when nobody holds it, and needs
554
564
  * `agents:run` besides this operation's `agents:read`; when another socket holds it, this one opens as `view`
555
- * (its first frame says so). Only the agent's owners take control from the holder, with `{"type": "control",
556
- * "takeover": true}`: a credential that holds `agents:write`, never a grant. The holder stays as a viewer and
557
- * gets `{"type": "role", "role": "view", "reason": "taken over"}`.
565
+ * (its first frame says so) and may ask for control later. A socket opened with `role=view` never takes control:
566
+ * it gets `{"type": "error", "code": "forbidden"}` when it asks. Only the agent's owners take control from the
567
+ * holder, with `{"type": "control", "takeover": true}`: a credential that holds `agents:write`, never a grant.
568
+ * The holder stays as a viewer and gets `{"type": "role", "role": "view", "reason": "taken over"}`.
558
569
  *
559
570
  * Reconnect where you left off: the terminal's output is kept in a 1 MiB ring indexed by byte offset. Send the
560
571
  * `session` and the `cursor` (the session frame's `cursor` plus the bytes received since), and the socket
@@ -855,8 +855,16 @@ export class AgentsAPI extends Namespace {
855
855
  * Opens the harness's terminal over a WebSocket: the harness's own TUI in `terminal` mode, a shell in the
856
856
  * workspace in `api` mode (the live view shows the events beside it). tmux in the instance holds the terminal,
857
857
  * so it outlives every socket and a restart of the harness's shim. The node reaches it through the instance's
858
- * port proxy: opening it wakes a sleeping instance, and an open socket keeps the instance awake. When the last
859
- * socket closes and the harness is idle, the instance sleeps on its timers with the terminal paused in memory.
858
+ * port proxy. A socket opened with `role=control` wakes a sleeping instance and keeps it awake while it is open;
859
+ * when the last one closes and the harness is idle, the instance sleeps on its timers with the terminal paused in
860
+ * memory.
861
+ *
862
+ * A viewer's socket (`role=view`) never wakes the instance and never counts as activity, so an open viewer does
863
+ * not keep an instance running: it sleeps on its timers with viewers attached, and the node drops their sockets
864
+ * as it does. A viewer that opens while the instance sleeps gets `{"type": "sleeping", "status": "paused"}` (the
865
+ * instance's `status`), and the socket closes with code 1000 and reason `sleeping`. To watch again, open it once
866
+ * the instance is awake: its next turn's events show in the event stream (`agentsStreamInstance`), which neither
867
+ * wakes the instance nor keeps it awake.
860
868
  *
861
869
  * The wire is the sandbox terminal's (`sandboxesOpenPty`) with a cursor added. Binary frames carry terminal
862
870
  * bytes both ways; input counts only from the controller. Text frames carry JSON. The server's first frame is
@@ -864,14 +872,17 @@ export class AgentsAPI extends Namespace {
864
872
  * 40}`, then one binary frame with what the socket missed, then live output. The client sends `{"type":
865
873
  * "resize", "cols", "rows"}` (controller only), `{"type": "control"}` to ask for control, `{"type": "release"}`,
866
874
  * and `{"type": "end"}` (controller only: ends the terminal, and the TUI with it). The server sends `{"type":
867
- * "role", "role", "reason"}` when this socket's role changes, `{"type": "error", "code": "controller_active"}`
868
- * when another socket holds control, and `{"type": "exit", "code"}` before it closes.
875
+ * "role", "role", "reason"}` when this socket's role changes, `{"type": "size", "cols", "rows"}` to every viewer
876
+ * when the controller resizes the terminal (a viewer draws the controller's grid, which tmux draws for),
877
+ * `{"type": "error", "code": "controller_active"}` when another socket holds control, and `{"type": "exit",
878
+ * "code"}` before it closes.
869
879
  *
870
880
  * One controller, any number of viewers. `role=control` takes control when nobody holds it, and needs
871
881
  * `agents:run` besides this operation's `agents:read`; when another socket holds it, this one opens as `view`
872
- * (its first frame says so). Only the agent's owners take control from the holder, with `{"type": "control",
873
- * "takeover": true}`: a credential that holds `agents:write`, never a grant. The holder stays as a viewer and
874
- * gets `{"type": "role", "role": "view", "reason": "taken over"}`.
882
+ * (its first frame says so) and may ask for control later. A socket opened with `role=view` never takes control:
883
+ * it gets `{"type": "error", "code": "forbidden"}` when it asks. Only the agent's owners take control from the
884
+ * holder, with `{"type": "control", "takeover": true}`: a credential that holds `agents:write`, never a grant.
885
+ * The holder stays as a viewer and gets `{"type": "role", "role": "view", "reason": "taken over"}`.
875
886
  *
876
887
  * Reconnect where you left off: the terminal's output is kept in a 1 MiB ring indexed by byte offset. Send the
877
888
  * `session` and the `cursor` (the session frame's `cursor` plus the bytes received since), and the socket
@@ -1 +1 @@
1
- {"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../../src/generated/ns/agents.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAG5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGvE,MAAM,YAAY,GAAO;IACvB,EAAE,EAAE,kBAAkB;IACtB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,YAAY;IAClB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,aAAa;CACrB,CAAC;AACF,MAAM,aAAa,GAAO;IACxB,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,cAAc;CACtB,CAAC;AACF,MAAM,eAAe,GAAO;IAC1B,EAAE,EAAE,qBAAqB;IACzB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,sBAAsB;IAC5B,SAAS,EAAE,KAAK;IAChB,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,aAAa;CACrB,CAAC;AACF,MAAM,qBAAqB,GAAO;IAChC,EAAE,EAAE,2BAA2B;IAC/B,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,KAAK;IAChB,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,eAAe;CACvB,CAAC;AACF,MAAM,kBAAkB,GAAO;IAC7B,EAAE,EAAE,wBAAwB;IAC5B,MAAM,EAAE,MAAM;IACd,I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ACvB,gBAAgB,EAChB,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EACrC,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,KAAa,EAAE,GAAW,EAAE,WAAmB,EAAE,OAAwB;QACpF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAa,cAAc,EAAE,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACtH,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,YAAY,CAAC,KAAa,EAAE,GAAW,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAiB,cAAc,EAAE,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;OAQG;IACH,YAAY,CACV,KAAa,EACb,MAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,cAAc,EACd,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAChC,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -28,8 +28,15 @@ export declare class KeysAPI extends Namespace {
28
28
  * Create an API key
29
29
  *
30
30
  * Creates a key in your project (or `project`, in the same organization). `scopes` and `spend_cap_usd` may not
31
- * exceed the caller's own, and when the caller expires, `expires_at` must be set and no later than the caller's
32
- * expiry (`forbidden`, reason `scope_escalation`). The response is the only time `secret` is returned. An
31
+ * exceed the caller's own (`forbidden`, reason `scope_escalation`). The key's expiry is its own, whatever happens
32
+ * to the credential that made it later, and depends on that credential:
33
+ * - a CLI token (`b3os login`): `expires_at` defaults to 90 days from now and may be at most 365 days away, never
34
+ * `null`, so a key made from a 30-day login can outlive it;
35
+ * - an API key that expires: `expires_at` must be set and no later than that key's expiry;
36
+ * - a dashboard session or an API key that does not expire: any `expires_at`; left out or `null`, the key never
37
+ * expires.
38
+ *
39
+ * Past these, `forbidden`, reason `scope_escalation`. The response is the only time `secret` is returned. An
33
40
  * organization holds at most `platform.keys.max` active API keys (1,000 in the beta; revoked and expired ones are
34
41
  * not counted, nor CLI tokens); a create past it is 422 `limit_exceeded`.
35
42
  *
@@ -82,8 +89,9 @@ export declare class KeysAPI extends Namespace {
82
89
  * Update an API key
83
90
  *
84
91
  * Renames a key or changes its spend cap, expiry or metadata. Scopes cannot change; create a new key instead.
85
- * A caller with a spend cap or an expiry cannot set a larger cap or a later (or no) expiry than its own
86
- * (`forbidden`, reason `scope_escalation`).
92
+ * A caller with a spend cap cannot set a larger cap than its own. A CLI token may set an expiry up to 365 days
93
+ * from now, never `null`; an API key that expires cannot set a later (or no) expiry than its own (`forbidden`,
94
+ * reason `scope_escalation`).
87
95
  *
88
96
  * `PATCH /v1/keys/{key_id}` · scope `platform:write` · served by beta-api.b3os.org
89
97
  */
@@ -89,8 +89,15 @@ export class KeysAPI extends Namespace {
89
89
  * Create an API key
90
90
  *
91
91
  * Creates a key in your project (or `project`, in the same organization). `scopes` and `spend_cap_usd` may not
92
- * exceed the caller's own, and when the caller expires, `expires_at` must be set and no later than the caller's
93
- * expiry (`forbidden`, reason `scope_escalation`). The response is the only time `secret` is returned. An
92
+ * exceed the caller's own (`forbidden`, reason `scope_escalation`). The key's expiry is its own, whatever happens
93
+ * to the credential that made it later, and depends on that credential:
94
+ * - a CLI token (`b3os login`): `expires_at` defaults to 90 days from now and may be at most 365 days away, never
95
+ * `null`, so a key made from a 30-day login can outlive it;
96
+ * - an API key that expires: `expires_at` must be set and no later than that key's expiry;
97
+ * - a dashboard session or an API key that does not expire: any `expires_at`; left out or `null`, the key never
98
+ * expires.
99
+ *
100
+ * Past these, `forbidden`, reason `scope_escalation`. The response is the only time `secret` is returned. An
94
101
  * organization holds at most `platform.keys.max` active API keys (1,000 in the beta; revoked and expired ones are
95
102
  * not counted, nor CLI tokens); a create past it is 422 `limit_exceeded`.
96
103
  *
@@ -153,8 +160,9 @@ export class KeysAPI extends Namespace {
153
160
  * Update an API key
154
161
  *
155
162
  * Renames a key or changes its spend cap, expiry or metadata. Scopes cannot change; create a new key instead.
156
- * A caller with a spend cap or an expiry cannot set a larger cap or a later (or no) expiry than its own
157
- * (`forbidden`, reason `scope_escalation`).
163
+ * A caller with a spend cap cannot set a larger cap than its own. A CLI token may set an expiry up to 365 days
164
+ * from now, never `null`; an API key that expires cannot set a later (or no) expiry than its own (`forbidden`,
165
+ * reason `scope_escalation`).
158
166
  *
159
167
  * `PATCH /v1/keys/{key_id}` · scope `platform:write` · served by beta-api.b3os.org
160
168
  */
@@ -1 +1 @@
1
- {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../src/generated/ns/keys.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAG5G,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAKpD,MAAM,UAAU,GAAO;IACrB,EAAE,EAAE,kBAAkB;IACtB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,eAAe;CACvB,CAAC;AACF,MAAM,WAAW,GAAO;IACtB,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,gBAAgB;CACxB,CAAC;AACF,MAAM,kBAAkB,GAAO;IAC7B,EAAE,EAAE,0BAA0B;IAC9B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;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;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAqB,eAAe,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,KAAa,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAW,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAW,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;OASG;IACH,SAAS,CAAC,KAAa,EAAE,IAA2B,EAAE,OAAwB;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAW,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;CACF"}
@@ -160,6 +160,14 @@ export interface Problem {
160
160
  * Why the egress guard refused the address of a hosted tool's `$url` file value (`action_input_invalid` with `reason: url_denied`): one of `egress_denied`'s reasons.
161
161
  */
162
162
  egress_reason?: string;
163
+ /**
164
+ * How far the node is with importing a hosted tool's image (`tool_unavailable` with `reason: image`): an image status, such as `pulling` or `warming`.
165
+ */
166
+ image_status?: string;
167
+ /**
168
+ * Why a hosted tool's image did not import (`tool_failed` with `reason: image`): `stage` (where it stopped, an image error stage) and `detail`.
169
+ */
170
+ image_error?: Record<string, unknown>;
163
171
  /** The part of the answer that was filled (`extract_fields_missing`), without the missing fields. */
164
172
  partial_data?: unknown;
165
173
  /** The job's pages and how each was read (vision extract errors), as in the job's `result.pages`. */
@@ -1059,7 +1067,7 @@ export type StealthOption = boolean | {
1059
1067
  */
1060
1068
  region?: string;
1061
1069
  /**
1062
- * Act steps (click, hover, type, key, and scroll without a target) send their input through the browser's own screen, shaped like a person's: pointer paths, key presses with their timing, wheel scrolling. Slower: a click takes hundreds of milliseconds. `false`: the default session's input.
1070
+ * Act steps (click, hover, type, key and scroll) send their input through the browser's own screen, shaped like a person's: pointer paths, key presses with their timing, wheel scrolling. A target out of view is reached with the wheel, never scrolled to by script while the wheel can reach it. Slower: a click takes hundreds of milliseconds. `false`: the default session's input.
1063
1071
  * @default true
1064
1072
  */
1065
1073
  humanize?: boolean;
@@ -1075,6 +1083,10 @@ export interface SessionStealth {
1075
1083
  screen: string;
1076
1084
  locale: string;
1077
1085
  timezone: string;
1086
+ /**
1087
+ * The GPU its browser reports (WebGL's unmasked renderer names it), for an identity of persona catalog 2 or later. Absent: an earlier identity, whose browser keeps a software renderer.
1088
+ */
1089
+ gpu?: string;
1078
1090
  };
1079
1091
  exit: {
1080
1092
  /** `byo`: your proxy. `direct`: the node's address. */
@@ -1126,6 +1138,20 @@ export interface StealthIdentity {
1126
1138
  };
1127
1139
  /** The font families its browser sees. */
1128
1140
  fonts: string[];
1141
+ /**
1142
+ * The GPU its browser reports (WebGL's unmasked renderer names it), from persona catalog 2 on: an Intel integrated GPU named as Linux's Mesa driver names it. Absent for a catalog 1 identity, whose browser keeps a software renderer.
1143
+ */
1144
+ gpu?: string;
1145
+ /**
1146
+ * How its desktop renders text, from persona catalog 3 on: fontconfig's hinting style, whether the autohinter is on, and the families the CSS generic families resolve to. Canvas text follows them. Absent for an earlier identity, whose desktop keeps the image's defaults.
1147
+ */
1148
+ font_rendering?: {
1149
+ hinting: "hintslight" | "hintfull" | "hintnone";
1150
+ autohint: boolean;
1151
+ sans_serif: string;
1152
+ serif: string;
1153
+ monospace: string;
1154
+ };
1129
1155
  };
1130
1156
  /** `us` or `us-ny`; `null` until a session names one or its first exit sets it. */
1131
1157
  home_region: string | null;
@@ -1338,7 +1364,9 @@ export interface ActKey {
1338
1364
  modifiers?: KeyModifiers;
1339
1365
  settle?: ActSettle;
1340
1366
  }
1341
- /** Scroll to an offset (`to`), by a delta (`by`), or until `target` is in view. */
1367
+ /**
1368
+ * Scroll to an offset (`to`), by a delta (`by`), or until `target` is in view. In a stealth session with `humanize`, the wheel turns until `target` is in view, and `by` or `to` with a target then turn the wheel at it: what a wheel there scrolls (the target when it scrolls, else its nearest scroll container, else the page) moves by `by`, or to `to` in its own offsets.
1369
+ */
1342
1370
  export interface ActScroll {
1343
1371
  kind: "scroll";
1344
1372
  target?: ActTarget;
@@ -8615,7 +8643,7 @@ export interface B3PackHttpResponse {
8615
8643
  }[];
8616
8644
  }
8617
8645
  /**
8618
- * How the action runs. http = T0, declarative HTTP inside b3osd. js = T1, a first-party ES module run by the actions-js sidecar (packages/spec/sidecars/actions-js.md). vm = a hosted tool: each call runs cmd in a fresh microVM of tool.base with the tool's archive unpacked at /tool, the request as one JSON object on stdin and one JSON object as the last line of stdout (protocol json-stdio, README 'Hosted tools').
8646
+ * How the action runs. http = T0, declarative HTTP inside b3osd. js = T1, a first-party ES module run by the actions-js sidecar (packages/spec/sidecars/actions-js.md). vm = a hosted tool: each call runs cmd in a fresh microVM of tool.base with the tool's archive unpacked at /tool (or of the tool's image, tool.image), the request as one JSON object on stdin and one JSON object as the last line of stdout (protocol json-stdio, README 'Hosted tools'); or, for an image tool, the argv template filled from the call's input (protocol argv).
8619
8647
  */
8620
8648
  export type B3PackImpl = {
8621
8649
  kind: "http";
@@ -8639,9 +8667,19 @@ export type B3PackImpl = {
8639
8667
  */
8640
8668
  protocol: "json-stdio";
8641
8669
  /**
8642
- * The command and its arguments, run with no shell, working directory /work, as the guest's user. Fixed text: no caller value ever enters it. cmd[0] is a path under /tool/ (publish check 18).
8670
+ * The command and its arguments, run with no shell, working directory /work, as the guest's user (an image tool: the image's USER). Fixed text: no caller value ever enters it. cmd[0] is a path under /tool/, or for an image tool an absolute path in the image (publish check 18).
8643
8671
  */
8644
8672
  cmd: string[];
8673
+ } | {
8674
+ kind: "vm";
8675
+ /**
8676
+ * Image tools only (publish check 18). The node fills argv from the call's input and runs it with no shell, stdin empty, in /work, as the image's USER; the output is the files the {out:<file>} tokens name, or stdout as the output stdout (README 'Hosted tools: the argv call').
8677
+ */
8678
+ protocol: "argv";
8679
+ /**
8680
+ * The command line as words. argv[0] names the program (a name the image's PATH finds, or an absolute path) and holds no token. In the other words: {x} the string input x, {x:int} the integer input x, {x:file} and {x:file=<media type>} the path of the input file x, {out:<file>} the path /out/<file> of an output file the program writes (the output field is the file name before its first dot), {{ and }} a literal brace. A value is always one argument, never split or expanded (publish check 18).
8681
+ */
8682
+ argv: string[];
8645
8683
  };
8646
8684
  export type B3PackExample = {
8647
8685
  fixture: B3PackFixturePath;
@@ -8864,21 +8902,23 @@ export type B3PackTrigger = {
8864
8902
  aliases?: B3PackSearchPhrases;
8865
8903
  };
8866
8904
  /**
8867
- * A hosted tool: the software a pack's vm actions run, and what it needs to run. Required when any action is vm and refused otherwise (publish checks 13 to 23). The schema admits the values of later versions (mcp, the other bases, session, hosts, caller, any size) and the reserved keys (setup, image, formats, bundle.files, base.range), so that what this version refuses is refused with a plain sentence of the publish checks rather than a schema error.
8905
+ * A hosted tool: the software a pack's vm actions run, and what it needs to run. Required when any action is vm and refused otherwise (publish checks 13 to 23). The schema admits the values of later versions (mcp, the other bases, session, hosts, caller, any size) and the reserved keys (setup, formats, bundle.files, base.range, image.build, image.auth), so that what this version refuses is refused with a plain sentence of the publish checks rather than a schema error. A tool names tool.base (with tool.bundle) or tool.image, never both (publish check 14).
8868
8906
  */
8869
8907
  export interface B3PackTool {
8870
8908
  /**
8871
8909
  * cli: a command that reads a request on stdin and writes an answer on stdout. mcp (later, not in this version): an MCP server. Shown on the listing.
8872
8910
  */
8873
8911
  kind: "cli" | "mcp";
8874
- /** The shared template the tool runs on. Bases have no versions yet. */
8875
- base: {
8912
+ /**
8913
+ * The shared template the tool runs on, with its archive (tool.bundle). Bases have no versions yet. Absent when tool.image names an image.
8914
+ */
8915
+ base?: {
8876
8916
  name: "base" | "files" | "browser" | "code-interpreter";
8877
8917
  /** Reserved: not read, because bases have no versions yet. Refused in this version. */
8878
8918
  range?: string;
8879
8919
  };
8880
8920
  /**
8881
- * The tool VM's size, one of the base's size classes. Absent: 1 vCPU and 512 MiB, the only size of this version.
8921
+ * The tool VM's size, one of the base's size classes. Absent: 1 vCPU and 512 MiB, the only size of a tool on base in this version; an image tool takes 1x512, 1x1024 or 2x2048 (publish check 14).
8882
8922
  */
8883
8923
  size?: {
8884
8924
  vcpu: number;
@@ -8937,8 +8977,21 @@ export interface B3PackTool {
8937
8977
  * Reserved: a command run once when the node prepares the tool's snapshot (later). Refused in this version.
8938
8978
  */
8939
8979
  setup?: unknown;
8940
- /** Reserved: an imported image's artifact (later). Refused in this version. */
8941
- image?: unknown;
8980
+ /**
8981
+ * The OCI image the tool runs (slice C), in place of tool.base and tool.bundle: each call restores a fresh microVM from the image's template on the node, with no network. Org-private tools only in this version (publish check 14).
8982
+ */
8983
+ image?: {
8984
+ /**
8985
+ * The image, pinned by digest: [<registry>/]<name>[:<tag>]@sha256:<64 hex>, from a public registry, for linux/amd64. b3os tool init --from-image resolves a tag to its digest.
8986
+ */
8987
+ ref?: string;
8988
+ /**
8989
+ * Reserved: an image built from a Dockerfile and a context the registry stores (later). Refused in this version.
8990
+ */
8991
+ build?: unknown;
8992
+ /** Reserved: a vault connection for a private registry (later). Refused in this version. */
8993
+ auth?: unknown;
8994
+ };
8942
8995
  /** Reserved: output formats a takedown can turn off by name (later). Refused in this version. */
8943
8996
  formats?: unknown;
8944
8997
  /**
@@ -9232,8 +9285,14 @@ export interface ToolAllIn {
9232
9285
  */
9233
9286
  export interface ActionTool {
9234
9287
  kind: "cli";
9235
- /** The template its VM is made from. */
9288
+ /** The template its VM is made from; empty for a tool built from an image (`image`). */
9236
9289
  base: string;
9290
+ /**
9291
+ * A tool built from an image (slice C, behind the preview flag `actions.tools_image`): the image, pinned by
9292
+ * digest (`tool.image.ref`). Each node imports it at the version's first call, and each call restores a fresh
9293
+ * VM from its template with no network. Absent for a tool on a base.
9294
+ */
9295
+ image?: string;
9237
9296
  network: "none";
9238
9297
  price: ToolPrice;
9239
9298
  /** `execution.maxInputMb`: the most input file data one call may carry, in MiB. */
@@ -9251,7 +9310,8 @@ export interface ActionTool {
9251
9310
  /**
9252
9311
  * The node's estimate of the time from claim to the tool's command starting, in milliseconds, for this
9253
9312
  * version's archive: a warm-pool claim plus the copy and the unpack for its size and format, from the
9254
- * table measured on 2026-11-13 (warm pool, 1 vCPU and 512 MiB).
9313
+ * table measured on 2026-11-13 (warm pool, 1 vCPU and 512 MiB). For a tool built from an image, the
9314
+ * warm-pool claim alone: nothing is copied or unpacked.
9255
9315
  */
9256
9316
  start_estimate_ms: number;
9257
9317
  /** What one call costs all in, or `null` before this version's first call on this node. */
@@ -10301,6 +10361,10 @@ export interface ApiKeyCreateRequest {
10301
10361
  /** Defaults to the caller's project. */
10302
10362
  project_id?: string;
10303
10363
  spend_cap_usd?: number | null;
10364
+ /**
10365
+ * When the key stops working. Left out: 90 days from now for a key made with a CLI token, never for one made
10366
+ * with a dashboard session or an API key that does not expire; an API key that expires must set it.
10367
+ */
10304
10368
  expires_at?: string | null;
10305
10369
  metadata?: Metadata;
10306
10370
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3os/sdk",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "TypeScript SDK for B3OS beta: vision (web pages and browsers), render, infer, sandboxes, routines, actions and vault, on the machine that runs the model.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/src/core/util.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Small runtime helpers shared by the core. Nothing here imports a Node module statically, so the package loads
2
2
  // unchanged on Node, Bun, Deno, Cloudflare Workers and browsers.
3
3
 
4
- export const SDK_VERSION = "0.2.3";
4
+ export const SDK_VERSION = "0.2.4";
5
5
 
6
6
  interface ProcessLike {
7
7
  env?: Record<string, string | undefined>;
@@ -940,8 +940,16 @@ export class AgentsAPI extends Namespace {
940
940
  * Opens the harness's terminal over a WebSocket: the harness's own TUI in `terminal` mode, a shell in the
941
941
  * workspace in `api` mode (the live view shows the events beside it). tmux in the instance holds the terminal,
942
942
  * so it outlives every socket and a restart of the harness's shim. The node reaches it through the instance's
943
- * port proxy: opening it wakes a sleeping instance, and an open socket keeps the instance awake. When the last
944
- * socket closes and the harness is idle, the instance sleeps on its timers with the terminal paused in memory.
943
+ * port proxy. A socket opened with `role=control` wakes a sleeping instance and keeps it awake while it is open;
944
+ * when the last one closes and the harness is idle, the instance sleeps on its timers with the terminal paused in
945
+ * memory.
946
+ *
947
+ * A viewer's socket (`role=view`) never wakes the instance and never counts as activity, so an open viewer does
948
+ * not keep an instance running: it sleeps on its timers with viewers attached, and the node drops their sockets
949
+ * as it does. A viewer that opens while the instance sleeps gets `{"type": "sleeping", "status": "paused"}` (the
950
+ * instance's `status`), and the socket closes with code 1000 and reason `sleeping`. To watch again, open it once
951
+ * the instance is awake: its next turn's events show in the event stream (`agentsStreamInstance`), which neither
952
+ * wakes the instance nor keeps it awake.
945
953
  *
946
954
  * The wire is the sandbox terminal's (`sandboxesOpenPty`) with a cursor added. Binary frames carry terminal
947
955
  * bytes both ways; input counts only from the controller. Text frames carry JSON. The server's first frame is
@@ -949,14 +957,17 @@ export class AgentsAPI extends Namespace {
949
957
  * 40}`, then one binary frame with what the socket missed, then live output. The client sends `{"type":
950
958
  * "resize", "cols", "rows"}` (controller only), `{"type": "control"}` to ask for control, `{"type": "release"}`,
951
959
  * and `{"type": "end"}` (controller only: ends the terminal, and the TUI with it). The server sends `{"type":
952
- * "role", "role", "reason"}` when this socket's role changes, `{"type": "error", "code": "controller_active"}`
953
- * when another socket holds control, and `{"type": "exit", "code"}` before it closes.
960
+ * "role", "role", "reason"}` when this socket's role changes, `{"type": "size", "cols", "rows"}` to every viewer
961
+ * when the controller resizes the terminal (a viewer draws the controller's grid, which tmux draws for),
962
+ * `{"type": "error", "code": "controller_active"}` when another socket holds control, and `{"type": "exit",
963
+ * "code"}` before it closes.
954
964
  *
955
965
  * One controller, any number of viewers. `role=control` takes control when nobody holds it, and needs
956
966
  * `agents:run` besides this operation's `agents:read`; when another socket holds it, this one opens as `view`
957
- * (its first frame says so). Only the agent's owners take control from the holder, with `{"type": "control",
958
- * "takeover": true}`: a credential that holds `agents:write`, never a grant. The holder stays as a viewer and
959
- * gets `{"type": "role", "role": "view", "reason": "taken over"}`.
967
+ * (its first frame says so) and may ask for control later. A socket opened with `role=view` never takes control:
968
+ * it gets `{"type": "error", "code": "forbidden"}` when it asks. Only the agent's owners take control from the
969
+ * holder, with `{"type": "control", "takeover": true}`: a credential that holds `agents:write`, never a grant.
970
+ * The holder stays as a viewer and gets `{"type": "role", "role": "view", "reason": "taken over"}`.
960
971
  *
961
972
  * Reconnect where you left off: the terminal's output is kept in a 1 MiB ring indexed by byte offset. Send the
962
973
  * `session` and the `cursor` (the session frame's `cursor` plus the bytes received since), and the socket
@@ -98,8 +98,15 @@ export class KeysAPI extends Namespace {
98
98
  * Create an API key
99
99
  *
100
100
  * Creates a key in your project (or `project`, in the same organization). `scopes` and `spend_cap_usd` may not
101
- * exceed the caller's own, and when the caller expires, `expires_at` must be set and no later than the caller's
102
- * expiry (`forbidden`, reason `scope_escalation`). The response is the only time `secret` is returned. An
101
+ * exceed the caller's own (`forbidden`, reason `scope_escalation`). The key's expiry is its own, whatever happens
102
+ * to the credential that made it later, and depends on that credential:
103
+ * - a CLI token (`b3os login`): `expires_at` defaults to 90 days from now and may be at most 365 days away, never
104
+ * `null`, so a key made from a 30-day login can outlive it;
105
+ * - an API key that expires: `expires_at` must be set and no later than that key's expiry;
106
+ * - a dashboard session or an API key that does not expire: any `expires_at`; left out or `null`, the key never
107
+ * expires.
108
+ *
109
+ * Past these, `forbidden`, reason `scope_escalation`. The response is the only time `secret` is returned. An
103
110
  * organization holds at most `platform.keys.max` active API keys (1,000 in the beta; revoked and expired ones are
104
111
  * not counted, nor CLI tokens); a create past it is 422 `limit_exceeded`.
105
112
  *
@@ -167,8 +174,9 @@ export class KeysAPI extends Namespace {
167
174
  * Update an API key
168
175
  *
169
176
  * Renames a key or changes its spend cap, expiry or metadata. Scopes cannot change; create a new key instead.
170
- * A caller with a spend cap or an expiry cannot set a larger cap or a later (or no) expiry than its own
171
- * (`forbidden`, reason `scope_escalation`).
177
+ * A caller with a spend cap cannot set a larger cap than its own. A CLI token may set an expiry up to 365 days
178
+ * from now, never `null`; an API key that expires cannot set a later (or no) expiry than its own (`forbidden`,
179
+ * reason `scope_escalation`).
172
180
  *
173
181
  * `PATCH /v1/keys/{key_id}` · scope `platform:write` · served by beta-api.b3os.org
174
182
  */
@@ -223,6 +223,14 @@ export interface Problem {
223
223
  * Why the egress guard refused the address of a hosted tool's `$url` file value (`action_input_invalid` with `reason: url_denied`): one of `egress_denied`'s reasons.
224
224
  */
225
225
  egress_reason?: string;
226
+ /**
227
+ * How far the node is with importing a hosted tool's image (`tool_unavailable` with `reason: image`): an image status, such as `pulling` or `warming`.
228
+ */
229
+ image_status?: string;
230
+ /**
231
+ * Why a hosted tool's image did not import (`tool_failed` with `reason: image`): `stage` (where it stopped, an image error stage) and `detail`.
232
+ */
233
+ image_error?: Record<string, unknown>;
226
234
  /** The part of the answer that was filled (`extract_fields_missing`), without the missing fields. */
227
235
  partial_data?: unknown;
228
236
  /** The job's pages and how each was read (vision extract errors), as in the job's `result.pages`. */
@@ -1199,7 +1207,7 @@ export type StealthOption =
1199
1207
  */
1200
1208
  region?: string;
1201
1209
  /**
1202
- * Act steps (click, hover, type, key, and scroll without a target) send their input through the browser's own screen, shaped like a person's: pointer paths, key presses with their timing, wheel scrolling. Slower: a click takes hundreds of milliseconds. `false`: the default session's input.
1210
+ * Act steps (click, hover, type, key and scroll) send their input through the browser's own screen, shaped like a person's: pointer paths, key presses with their timing, wheel scrolling. A target out of view is reached with the wheel, never scrolled to by script while the wheel can reach it. Slower: a click takes hundreds of milliseconds. `false`: the default session's input.
1203
1211
  * @default true
1204
1212
  */
1205
1213
  humanize?: boolean;
@@ -1216,6 +1224,10 @@ export interface SessionStealth {
1216
1224
  screen: string;
1217
1225
  locale: string;
1218
1226
  timezone: string;
1227
+ /**
1228
+ * The GPU its browser reports (WebGL's unmasked renderer names it), for an identity of persona catalog 2 or later. Absent: an earlier identity, whose browser keeps a software renderer.
1229
+ */
1230
+ gpu?: string;
1219
1231
  };
1220
1232
  exit: {
1221
1233
  /** `byo`: your proxy. `direct`: the node's address. */
@@ -1269,6 +1281,20 @@ export interface StealthIdentity {
1269
1281
  };
1270
1282
  /** The font families its browser sees. */
1271
1283
  fonts: string[];
1284
+ /**
1285
+ * The GPU its browser reports (WebGL's unmasked renderer names it), from persona catalog 2 on: an Intel integrated GPU named as Linux's Mesa driver names it. Absent for a catalog 1 identity, whose browser keeps a software renderer.
1286
+ */
1287
+ gpu?: string;
1288
+ /**
1289
+ * How its desktop renders text, from persona catalog 3 on: fontconfig's hinting style, whether the autohinter is on, and the families the CSS generic families resolve to. Canvas text follows them. Absent for an earlier identity, whose desktop keeps the image's defaults.
1290
+ */
1291
+ font_rendering?: {
1292
+ hinting: "hintslight" | "hintfull" | "hintnone";
1293
+ autohint: boolean;
1294
+ sans_serif: string;
1295
+ serif: string;
1296
+ monospace: string;
1297
+ };
1272
1298
  };
1273
1299
  /** `us` or `us-ny`; `null` until a session names one or its first exit sets it. */
1274
1300
  home_region: string | null;
@@ -1525,7 +1551,9 @@ export interface ActKey {
1525
1551
  settle?: ActSettle;
1526
1552
  }
1527
1553
 
1528
- /** Scroll to an offset (`to`), by a delta (`by`), or until `target` is in view. */
1554
+ /**
1555
+ * Scroll to an offset (`to`), by a delta (`by`), or until `target` is in view. In a stealth session with `humanize`, the wheel turns until `target` is in view, and `by` or `to` with a target then turn the wheel at it: what a wheel there scrolls (the target when it scrolls, else its nearest scroll container, else the page) moves by `by`, or to `to` in its own offsets.
1556
+ */
1529
1557
  export interface ActScroll {
1530
1558
  kind: "scroll";
1531
1559
  target?: ActTarget;
@@ -9408,7 +9436,7 @@ export interface B3PackHttpResponse {
9408
9436
  }
9409
9437
 
9410
9438
  /**
9411
- * How the action runs. http = T0, declarative HTTP inside b3osd. js = T1, a first-party ES module run by the actions-js sidecar (packages/spec/sidecars/actions-js.md). vm = a hosted tool: each call runs cmd in a fresh microVM of tool.base with the tool's archive unpacked at /tool, the request as one JSON object on stdin and one JSON object as the last line of stdout (protocol json-stdio, README 'Hosted tools').
9439
+ * How the action runs. http = T0, declarative HTTP inside b3osd. js = T1, a first-party ES module run by the actions-js sidecar (packages/spec/sidecars/actions-js.md). vm = a hosted tool: each call runs cmd in a fresh microVM of tool.base with the tool's archive unpacked at /tool (or of the tool's image, tool.image), the request as one JSON object on stdin and one JSON object as the last line of stdout (protocol json-stdio, README 'Hosted tools'); or, for an image tool, the argv template filled from the call's input (protocol argv).
9412
9440
  */
9413
9441
  export type B3PackImpl =
9414
9442
  | {
@@ -9435,9 +9463,20 @@ export type B3PackImpl =
9435
9463
  */
9436
9464
  protocol: "json-stdio";
9437
9465
  /**
9438
- * The command and its arguments, run with no shell, working directory /work, as the guest's user. Fixed text: no caller value ever enters it. cmd[0] is a path under /tool/ (publish check 18).
9466
+ * The command and its arguments, run with no shell, working directory /work, as the guest's user (an image tool: the image's USER). Fixed text: no caller value ever enters it. cmd[0] is a path under /tool/, or for an image tool an absolute path in the image (publish check 18).
9439
9467
  */
9440
9468
  cmd: string[];
9469
+ }
9470
+ | {
9471
+ kind: "vm";
9472
+ /**
9473
+ * Image tools only (publish check 18). The node fills argv from the call's input and runs it with no shell, stdin empty, in /work, as the image's USER; the output is the files the {out:<file>} tokens name, or stdout as the output stdout (README 'Hosted tools: the argv call').
9474
+ */
9475
+ protocol: "argv";
9476
+ /**
9477
+ * The command line as words. argv[0] names the program (a name the image's PATH finds, or an absolute path) and holds no token. In the other words: {x} the string input x, {x:int} the integer input x, {x:file} and {x:file=<media type>} the path of the input file x, {out:<file>} the path /out/<file> of an output file the program writes (the output field is the file name before its first dot), {{ and }} a literal brace. A value is always one argument, never split or expanded (publish check 18).
9478
+ */
9479
+ argv: string[];
9441
9480
  };
9442
9481
 
9443
9482
  export type B3PackExample =
@@ -9671,21 +9710,23 @@ export type B3PackTrigger = {
9671
9710
  };
9672
9711
 
9673
9712
  /**
9674
- * A hosted tool: the software a pack's vm actions run, and what it needs to run. Required when any action is vm and refused otherwise (publish checks 13 to 23). The schema admits the values of later versions (mcp, the other bases, session, hosts, caller, any size) and the reserved keys (setup, image, formats, bundle.files, base.range), so that what this version refuses is refused with a plain sentence of the publish checks rather than a schema error.
9713
+ * A hosted tool: the software a pack's vm actions run, and what it needs to run. Required when any action is vm and refused otherwise (publish checks 13 to 23). The schema admits the values of later versions (mcp, the other bases, session, hosts, caller, any size) and the reserved keys (setup, formats, bundle.files, base.range, image.build, image.auth), so that what this version refuses is refused with a plain sentence of the publish checks rather than a schema error. A tool names tool.base (with tool.bundle) or tool.image, never both (publish check 14).
9675
9714
  */
9676
9715
  export interface B3PackTool {
9677
9716
  /**
9678
9717
  * cli: a command that reads a request on stdin and writes an answer on stdout. mcp (later, not in this version): an MCP server. Shown on the listing.
9679
9718
  */
9680
9719
  kind: "cli" | "mcp";
9681
- /** The shared template the tool runs on. Bases have no versions yet. */
9682
- base: {
9720
+ /**
9721
+ * The shared template the tool runs on, with its archive (tool.bundle). Bases have no versions yet. Absent when tool.image names an image.
9722
+ */
9723
+ base?: {
9683
9724
  name: "base" | "files" | "browser" | "code-interpreter";
9684
9725
  /** Reserved: not read, because bases have no versions yet. Refused in this version. */
9685
9726
  range?: string;
9686
9727
  };
9687
9728
  /**
9688
- * The tool VM's size, one of the base's size classes. Absent: 1 vCPU and 512 MiB, the only size of this version.
9729
+ * The tool VM's size, one of the base's size classes. Absent: 1 vCPU and 512 MiB, the only size of a tool on base in this version; an image tool takes 1x512, 1x1024 or 2x2048 (publish check 14).
9689
9730
  */
9690
9731
  size?: {
9691
9732
  vcpu: number;
@@ -9744,8 +9785,21 @@ export interface B3PackTool {
9744
9785
  * Reserved: a command run once when the node prepares the tool's snapshot (later). Refused in this version.
9745
9786
  */
9746
9787
  setup?: unknown;
9747
- /** Reserved: an imported image's artifact (later). Refused in this version. */
9748
- image?: unknown;
9788
+ /**
9789
+ * The OCI image the tool runs (slice C), in place of tool.base and tool.bundle: each call restores a fresh microVM from the image's template on the node, with no network. Org-private tools only in this version (publish check 14).
9790
+ */
9791
+ image?: {
9792
+ /**
9793
+ * The image, pinned by digest: [<registry>/]<name>[:<tag>]@sha256:<64 hex>, from a public registry, for linux/amd64. b3os tool init --from-image resolves a tag to its digest.
9794
+ */
9795
+ ref?: string;
9796
+ /**
9797
+ * Reserved: an image built from a Dockerfile and a context the registry stores (later). Refused in this version.
9798
+ */
9799
+ build?: unknown;
9800
+ /** Reserved: a vault connection for a private registry (later). Refused in this version. */
9801
+ auth?: unknown;
9802
+ };
9749
9803
  /** Reserved: output formats a takedown can turn off by name (later). Refused in this version. */
9750
9804
  formats?: unknown;
9751
9805
  /**
@@ -10061,8 +10115,14 @@ export interface ToolAllIn {
10061
10115
  */
10062
10116
  export interface ActionTool {
10063
10117
  kind: "cli";
10064
- /** The template its VM is made from. */
10118
+ /** The template its VM is made from; empty for a tool built from an image (`image`). */
10065
10119
  base: string;
10120
+ /**
10121
+ * A tool built from an image (slice C, behind the preview flag `actions.tools_image`): the image, pinned by
10122
+ * digest (`tool.image.ref`). Each node imports it at the version's first call, and each call restores a fresh
10123
+ * VM from its template with no network. Absent for a tool on a base.
10124
+ */
10125
+ image?: string;
10066
10126
  network: "none";
10067
10127
  price: ToolPrice;
10068
10128
  /** `execution.maxInputMb`: the most input file data one call may carry, in MiB. */
@@ -10080,7 +10140,8 @@ export interface ActionTool {
10080
10140
  /**
10081
10141
  * The node's estimate of the time from claim to the tool's command starting, in milliseconds, for this
10082
10142
  * version's archive: a warm-pool claim plus the copy and the unpack for its size and format, from the
10083
- * table measured on 2026-11-13 (warm pool, 1 vCPU and 512 MiB).
10143
+ * table measured on 2026-11-13 (warm pool, 1 vCPU and 512 MiB). For a tool built from an image, the
10144
+ * warm-pool claim alone: nothing is copied or unpacked.
10084
10145
  */
10085
10146
  start_estimate_ms: number;
10086
10147
  /** What one call costs all in, or `null` before this version's first call on this node. */
@@ -11233,6 +11294,10 @@ export interface ApiKeyCreateRequest {
11233
11294
  /** Defaults to the caller's project. */
11234
11295
  project_id?: string;
11235
11296
  spend_cap_usd?: number | null;
11297
+ /**
11298
+ * When the key stops working. Left out: 90 days from now for a key made with a CLI token, never for one made
11299
+ * with a dashboard session or an API key that does not expire; an API key that expires must set it.
11300
+ */
11236
11301
  expires_at?: string | null;
11237
11302
  metadata?: Metadata;
11238
11303
  }