@immediately-run/sandbox-protocol 0.7.5 → 0.7.7

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/dist/sandbox.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // GENERATED by scripts/generate.mjs — DO NOT EDIT.
3
3
  // Source of truth: src/descriptors.protocol.mjs (@immediately-run/sandbox-protocol)
4
- // descriptorsHash: d1f140ff3f0647ce
4
+ // descriptorsHash: 5846971dd94af4f2
5
5
  //
6
6
  // The sandbox↔SDK wire vocabulary (PLATFORM_LAYERING_SPEC §2 / S1). Import the
7
7
  // constants instead of writing the string: a rename then has ONE edit site and
package/dist/sdk.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Every wire name this side speaks, as a union. */
2
- export type WireName = 'api-catalog' | 'auth-state' | 'chrome-state' | 'compile' | 'debug-enabled' | 'debug-log' | 'debug-query' | 'debug-query-result' | 'diagnostics' | 'dnd-cancel' | 'dropped-item' | 'editor-context' | 'form-factor' | 'fs-change' | 'host-attention' | 'invitations' | 'launch-dismiss' | 'launch-ended' | 'llm-provider' | 'metadata-update' | 'mount-add' | 'mount-remove' | 'protocol-analytics' | 'protocol-contribute' | 'protocol-dnd' | 'protocol-editor' | 'protocol-feed' | 'protocol-fetch' | 'protocol-ipc' | 'protocol-launch' | 'protocol-llm' | 'protocol-recents' | 'protocol-secrets' | 'protocol-settings' | 'protocol-spaces' | 'protocol-task' | 'protocol-theme' | 'protocol-vcs' | 'region-message' | 'request-api-catalog' | 'request-auth-state' | 'request-chrome-state' | 'request-debug-enabled' | 'request-diagnostics' | 'request-editor-context' | 'request-form-factor' | 'request-handshake' | 'request-host-attention' | 'request-invitations' | 'request-llm-provider' | 'request-mounts' | 'request-secrets-metadata' | 'request-session-mounts' | 'request-theme' | 'request-vcs-state' | 'sdk-handshake' | 'secrets-metadata' | 'session-mounts' | 'task-cancel' | 'task-complete' | 'task-input' | 'theme' | 'urlchange' | 'vcs-state';
2
+ export type WireName = 'api-catalog' | 'auth-state' | 'chrome-state' | 'compile' | 'debug-enabled' | 'debug-log' | 'debug-query' | 'debug-query-result' | 'diagnostics' | 'dnd-cancel' | 'dropped-item' | 'editor-context' | 'form-factor' | 'fs-change' | 'host-attention' | 'invitations' | 'launch-dismiss' | 'launch-ended' | 'llm-provider' | 'metadata-update' | 'mount-add' | 'mount-remove' | 'protocol-analytics' | 'protocol-contribute' | 'protocol-dnd' | 'protocol-editor' | 'protocol-feed' | 'protocol-fetch' | 'protocol-ipc' | 'protocol-launch' | 'protocol-llm' | 'protocol-recents' | 'protocol-secrets' | 'protocol-settings' | 'protocol-spaces' | 'protocol-task' | 'protocol-theme' | 'protocol-vcs' | 'region-message' | 'request-api-catalog' | 'request-auth-state' | 'request-chrome-state' | 'request-debug-enabled' | 'request-diagnostics' | 'request-editor-context' | 'request-form-factor' | 'request-handshake' | 'request-host-attention' | 'request-invitations' | 'request-llm-provider' | 'request-mounts' | 'request-secrets-metadata' | 'request-session-mounts' | 'request-theme' | 'request-vcs-state' | 'request-workspace' | 'sdk-handshake' | 'secrets-metadata' | 'session-mounts' | 'task-cancel' | 'task-complete' | 'task-input' | 'theme' | 'urlchange' | 'vcs-state' | 'workspace';
3
3
  /** `api-catalog` — push · host->app. polled with `request-api-catalog`. */
4
4
  export declare const API_CATALOG = "api-catalog";
5
5
  /** Read off this message today: `methods`. */
@@ -317,6 +317,8 @@ export declare const REQUEST_SESSION_MOUNTS = "request-session-mounts";
317
317
  export declare const REQUEST_THEME = "request-theme";
318
318
  /** `request-vcs-state` — poll · app->host. */
319
319
  export declare const REQUEST_VCS_STATE = "request-vcs-state";
320
+ /** `request-workspace` — poll · app->host. */
321
+ export declare const REQUEST_WORKSPACE = "request-workspace";
320
322
  /** `sdk-handshake` — message · app->host. */
321
323
  export declare const SDK_HANDSHAKE = "sdk-handshake";
322
324
  export interface SdkHandshakePayload {
@@ -351,6 +353,9 @@ export declare const URLCHANGE = "urlchange";
351
353
  /** `vcs-state` — push · host->app. polled with `request-vcs-state`. */
352
354
  export declare const VCS_STATE = "vcs-state";
353
355
  /** Read off this message today: `branch`, `changes`, `diffLoading`, `prs`. */
356
+ /** `workspace` — push · host->app. polled with `request-workspace`. */
357
+ export declare const WORKSPACE = "workspace";
358
+ /** Read off this message today: `workspace`. */
354
359
  /** Every wire name this side speaks, keyed by its constant. */
355
360
  export declare const WIRE_NAMES: {
356
361
  readonly API_CATALOG: "api-catalog";
@@ -408,6 +413,7 @@ export declare const WIRE_NAMES: {
408
413
  readonly REQUEST_SESSION_MOUNTS: "request-session-mounts";
409
414
  readonly REQUEST_THEME: "request-theme";
410
415
  readonly REQUEST_VCS_STATE: "request-vcs-state";
416
+ readonly REQUEST_WORKSPACE: "request-workspace";
411
417
  readonly SDK_HANDSHAKE: "sdk-handshake";
412
418
  readonly SECRETS_METADATA: "secrets-metadata";
413
419
  readonly SESSION_MOUNTS: "session-mounts";
@@ -417,4 +423,5 @@ export declare const WIRE_NAMES: {
417
423
  readonly THEME: "theme";
418
424
  readonly URLCHANGE: "urlchange";
419
425
  readonly VCS_STATE: "vcs-state";
426
+ readonly WORKSPACE: "workspace";
420
427
  };
package/dist/sdk.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // GENERATED by scripts/generate.mjs — DO NOT EDIT.
3
3
  // Source of truth: src/descriptors.protocol.mjs (@immediately-run/sandbox-protocol)
4
- // descriptorsHash: d1f140ff3f0647ce
4
+ // descriptorsHash: 5846971dd94af4f2
5
5
  //
6
6
  // The sandbox↔SDK wire vocabulary (PLATFORM_LAYERING_SPEC §2 / S1). Import the
7
7
  // constants instead of writing the string: a rename then has ONE edit site and
@@ -10,7 +10,7 @@
10
10
  // list in the doc comment instead (R3-274e is where those grow real types).
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.REQUEST_LLM_PROVIDER = exports.REQUEST_INVITATIONS = exports.REQUEST_HOST_ATTENTION = exports.REQUEST_HANDSHAKE = exports.REQUEST_FORM_FACTOR = exports.REQUEST_EDITOR_CONTEXT = exports.REQUEST_DIAGNOSTICS = exports.REQUEST_DEBUG_ENABLED = exports.REQUEST_CHROME_STATE = exports.REQUEST_AUTH_STATE = exports.REQUEST_API_CATALOG = exports.REGION_MESSAGE = exports.PROTOCOL_VCS = exports.PROTOCOL_THEME = exports.PROTOCOL_TASK = exports.PROTOCOL_SPACES = exports.PROTOCOL_SETTINGS = exports.PROTOCOL_SECRETS = exports.PROTOCOL_RECENTS = exports.PROTOCOL_LLM = exports.PROTOCOL_LAUNCH = exports.PROTOCOL_IPC = exports.PROTOCOL_FETCH = exports.PROTOCOL_FEED = exports.PROTOCOL_EDITOR = exports.PROTOCOL_DND = exports.PROTOCOL_CONTRIBUTE = exports.PROTOCOL_ANALYTICS = exports.MOUNT_REMOVE = exports.MOUNT_ADD = exports.METADATA_UPDATE = exports.LLM_PROVIDER = exports.LAUNCH_ENDED = exports.LAUNCH_DISMISS = exports.INVITATIONS = exports.HOST_ATTENTION = exports.FS_CHANGE = exports.FORM_FACTOR = exports.EDITOR_CONTEXT = exports.DROPPED_ITEM = exports.DND_CANCEL = exports.DIAGNOSTICS = exports.DEBUG_QUERY_RESULT = exports.DEBUG_QUERY = exports.DEBUG_LOG = exports.DEBUG_ENABLED = exports.COMPILE = exports.CHROME_STATE = exports.AUTH_STATE = exports.API_CATALOG = void 0;
13
- exports.WIRE_NAMES = exports.VCS_STATE = exports.URLCHANGE = exports.THEME = exports.TASK_INPUT = exports.TASK_COMPLETE = exports.TASK_CANCEL = exports.SESSION_MOUNTS = exports.SECRETS_METADATA = exports.SDK_HANDSHAKE = exports.REQUEST_VCS_STATE = exports.REQUEST_THEME = exports.REQUEST_SESSION_MOUNTS = exports.REQUEST_SECRETS_METADATA = exports.REQUEST_MOUNTS = void 0;
13
+ exports.WIRE_NAMES = exports.WORKSPACE = exports.VCS_STATE = exports.URLCHANGE = exports.THEME = exports.TASK_INPUT = exports.TASK_COMPLETE = exports.TASK_CANCEL = exports.SESSION_MOUNTS = exports.SECRETS_METADATA = exports.SDK_HANDSHAKE = exports.REQUEST_WORKSPACE = exports.REQUEST_VCS_STATE = exports.REQUEST_THEME = exports.REQUEST_SESSION_MOUNTS = exports.REQUEST_SECRETS_METADATA = exports.REQUEST_MOUNTS = void 0;
14
14
  /** `api-catalog` — push · host->app. polled with `request-api-catalog`. */
15
15
  exports.API_CATALOG = 'api-catalog';
16
16
  /** Read off this message today: `methods`. */
@@ -134,6 +134,8 @@ exports.REQUEST_SESSION_MOUNTS = 'request-session-mounts';
134
134
  exports.REQUEST_THEME = 'request-theme';
135
135
  /** `request-vcs-state` — poll · app->host. */
136
136
  exports.REQUEST_VCS_STATE = 'request-vcs-state';
137
+ /** `request-workspace` — poll · app->host. */
138
+ exports.REQUEST_WORKSPACE = 'request-workspace';
137
139
  /** `sdk-handshake` — message · app->host. */
138
140
  exports.SDK_HANDSHAKE = 'sdk-handshake';
139
141
  /** `secrets-metadata` — push · host->app. polled with `request-secrets-metadata`. */
@@ -156,6 +158,9 @@ exports.URLCHANGE = 'urlchange';
156
158
  /** `vcs-state` — push · host->app. polled with `request-vcs-state`. */
157
159
  exports.VCS_STATE = 'vcs-state';
158
160
  /** Read off this message today: `branch`, `changes`, `diffLoading`, `prs`. */
161
+ /** `workspace` — push · host->app. polled with `request-workspace`. */
162
+ exports.WORKSPACE = 'workspace';
163
+ /** Read off this message today: `workspace`. */
159
164
  /** Every wire name this side speaks, keyed by its constant. */
160
165
  exports.WIRE_NAMES = {
161
166
  API_CATALOG: exports.API_CATALOG,
@@ -213,6 +218,7 @@ exports.WIRE_NAMES = {
213
218
  REQUEST_SESSION_MOUNTS: exports.REQUEST_SESSION_MOUNTS,
214
219
  REQUEST_THEME: exports.REQUEST_THEME,
215
220
  REQUEST_VCS_STATE: exports.REQUEST_VCS_STATE,
221
+ REQUEST_WORKSPACE: exports.REQUEST_WORKSPACE,
216
222
  SDK_HANDSHAKE: exports.SDK_HANDSHAKE,
217
223
  SECRETS_METADATA: exports.SECRETS_METADATA,
218
224
  SESSION_MOUNTS: exports.SESSION_MOUNTS,
@@ -222,4 +228,5 @@ exports.WIRE_NAMES = {
222
228
  THEME: exports.THEME,
223
229
  URLCHANGE: exports.URLCHANGE,
224
230
  VCS_STATE: exports.VCS_STATE,
231
+ WORKSPACE: exports.WORKSPACE,
225
232
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immediately-run/sandbox-protocol",
3
- "version": "0.7.5",
3
+ "version": "0.7.7",
4
4
  "description": "The sandbox<->SDK wire protocol: ONE descriptor set, projected into the wire-name constants, the payload types, and the per-side snapshots both repos gate against (PLATFORM_LAYERING_SPEC S1). Consumed by sandbox and immediately-run-sdk so a wire change is a version bump, not a hand-copied file.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -1932,6 +1932,16 @@
1932
1932
  "src/vcs.ts"
1933
1933
  ]
1934
1934
  },
1935
+ "request-workspace": {
1936
+ "kind": "poll",
1937
+ "direction": "app->host",
1938
+ "payload": {
1939
+ "fields": []
1940
+ },
1941
+ "sites": [
1942
+ "src/workspace.ts"
1943
+ ]
1944
+ },
1935
1945
  "sdk-handshake": {
1936
1946
  "kind": "message",
1937
1947
  "direction": "app->host",
@@ -2228,6 +2238,56 @@
2228
2238
  "sites": [
2229
2239
  "src/vcs.ts"
2230
2240
  ]
2241
+ },
2242
+ "workspace": {
2243
+ "kind": "push",
2244
+ "direction": "host->app",
2245
+ "poll": "request-workspace",
2246
+ "payload": {
2247
+ "reads": [
2248
+ "workspace"
2249
+ ]
2250
+ },
2251
+ "value": {
2252
+ "union": [
2253
+ {
2254
+ "fields": [
2255
+ {
2256
+ "name": "label",
2257
+ "optional": false,
2258
+ "type": "string"
2259
+ },
2260
+ {
2261
+ "name": "namespace",
2262
+ "optional": false,
2263
+ "type": "string"
2264
+ },
2265
+ {
2266
+ "name": "provider",
2267
+ "optional": false,
2268
+ "type": "string"
2269
+ },
2270
+ {
2271
+ "name": "ref",
2272
+ "optional": false,
2273
+ "type": "string"
2274
+ },
2275
+ {
2276
+ "name": "repository",
2277
+ "optional": false,
2278
+ "type": "string"
2279
+ }
2280
+ ]
2281
+ },
2282
+ {
2283
+ "type": "null"
2284
+ }
2285
+ ],
2286
+ "type": "Workspace | null"
2287
+ },
2288
+ "sites": [
2289
+ "src/workspace.ts"
2290
+ ]
2231
2291
  }
2232
2292
  },
2233
2293
  "dynamicFamilies": {
@@ -2241,6 +2301,7 @@
2241
2301
  "ipc",
2242
2302
  "launch",
2243
2303
  "llm",
2304
+ "recents",
2244
2305
  "secrets",
2245
2306
  "settings",
2246
2307
  "spaces",