@immediately-run/sandbox-protocol 0.7.2 → 0.7.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.
- package/dist/sandbox.js +1 -1
- package/dist/sdk.d.ts +4 -1
- package/dist/sdk.js +6 -3
- package/package.json +1 -1
- package/snapshots/sdk.json +16 -13
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:
|
|
4
|
+
// descriptorsHash: d502032cd6f3fa49
|
|
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-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' | 'sdk-handshake' | 'secrets-metadata' | 'session-mounts' | 'task-cancel' | 'task-complete' | 'task-input' | 'theme' | 'urlchange' | 'vcs-state';
|
|
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`. */
|
|
@@ -218,6 +218,8 @@ export interface ProtocolLlmChatParams {
|
|
|
218
218
|
responseFormat?: "json" | "text" | undefined;
|
|
219
219
|
tools?: Array<unknown> | undefined;
|
|
220
220
|
}
|
|
221
|
+
/** `protocol-recents` — request · app->host. */
|
|
222
|
+
export declare const PROTOCOL_RECENTS = "protocol-recents";
|
|
221
223
|
/** `protocol-secrets` — request · app->host. */
|
|
222
224
|
export declare const PROTOCOL_SECRETS = "protocol-secrets";
|
|
223
225
|
/** `protocol-settings` — request · app->host. */
|
|
@@ -378,6 +380,7 @@ export declare const WIRE_NAMES: {
|
|
|
378
380
|
readonly PROTOCOL_IPC: "protocol-ipc";
|
|
379
381
|
readonly PROTOCOL_LAUNCH: "protocol-launch";
|
|
380
382
|
readonly PROTOCOL_LLM: "protocol-llm";
|
|
383
|
+
readonly PROTOCOL_RECENTS: "protocol-recents";
|
|
381
384
|
readonly PROTOCOL_SECRETS: "protocol-secrets";
|
|
382
385
|
readonly PROTOCOL_SETTINGS: "protocol-settings";
|
|
383
386
|
readonly PROTOCOL_SPACES: "protocol-spaces";
|
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:
|
|
4
|
+
// descriptorsHash: d502032cd6f3fa49
|
|
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
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
// that has a declared shape; a name handled as `any` today gets its read field
|
|
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
|
-
exports.
|
|
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 = void 0;
|
|
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;
|
|
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`. */
|
|
@@ -86,6 +86,8 @@ exports.PROTOCOL_IPC = 'protocol-ipc';
|
|
|
86
86
|
exports.PROTOCOL_LAUNCH = 'protocol-launch';
|
|
87
87
|
/** `protocol-llm` — stream · app->host. */
|
|
88
88
|
exports.PROTOCOL_LLM = 'protocol-llm';
|
|
89
|
+
/** `protocol-recents` — request · app->host. */
|
|
90
|
+
exports.PROTOCOL_RECENTS = 'protocol-recents';
|
|
89
91
|
/** `protocol-secrets` — request · app->host. */
|
|
90
92
|
exports.PROTOCOL_SECRETS = 'protocol-secrets';
|
|
91
93
|
/** `protocol-settings` — request · app->host. */
|
|
@@ -187,6 +189,7 @@ exports.WIRE_NAMES = {
|
|
|
187
189
|
PROTOCOL_IPC: exports.PROTOCOL_IPC,
|
|
188
190
|
PROTOCOL_LAUNCH: exports.PROTOCOL_LAUNCH,
|
|
189
191
|
PROTOCOL_LLM: exports.PROTOCOL_LLM,
|
|
192
|
+
PROTOCOL_RECENTS: exports.PROTOCOL_RECENTS,
|
|
190
193
|
PROTOCOL_SECRETS: exports.PROTOCOL_SECRETS,
|
|
191
194
|
PROTOCOL_SETTINGS: exports.PROTOCOL_SETTINGS,
|
|
192
195
|
PROTOCOL_SPACES: exports.PROTOCOL_SPACES,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@immediately-run/sandbox-protocol",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
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": {
|
package/snapshots/sdk.json
CHANGED
|
@@ -536,21 +536,10 @@
|
|
|
536
536
|
"optional": true,
|
|
537
537
|
"union": [
|
|
538
538
|
{
|
|
539
|
-
"
|
|
540
|
-
{
|
|
541
|
-
"name": "changes",
|
|
542
|
-
"optional": false,
|
|
543
|
-
"type": "MountChange[]"
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
"name": "path",
|
|
547
|
-
"optional": false,
|
|
548
|
-
"type": "string"
|
|
549
|
-
}
|
|
550
|
-
]
|
|
539
|
+
"type": "undefined"
|
|
551
540
|
},
|
|
552
541
|
{
|
|
553
|
-
"type": "
|
|
542
|
+
"type": "{ path: string; changes: MountChange[]; }"
|
|
554
543
|
}
|
|
555
544
|
]
|
|
556
545
|
},
|
|
@@ -1472,6 +1461,20 @@
|
|
|
1472
1461
|
"src/llm.ts"
|
|
1473
1462
|
]
|
|
1474
1463
|
},
|
|
1464
|
+
"protocol-recents": {
|
|
1465
|
+
"kind": "request",
|
|
1466
|
+
"direction": "app->host",
|
|
1467
|
+
"methods": {
|
|
1468
|
+
"list": {
|
|
1469
|
+
"payload": {
|
|
1470
|
+
"type": "object"
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
},
|
|
1474
|
+
"sites": [
|
|
1475
|
+
"src/recents.ts"
|
|
1476
|
+
]
|
|
1477
|
+
},
|
|
1475
1478
|
"protocol-secrets": {
|
|
1476
1479
|
"kind": "request",
|
|
1477
1480
|
"direction": "app->host",
|