@immediately-run/sandbox-protocol 0.7.0 → 0.7.2
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/fixtures.js +11 -0
- package/dist/sandbox.d.ts +4 -0
- package/dist/sandbox.js +1 -1
- package/dist/sdk.d.ts +2 -2
- package/dist/sdk.js +2 -2
- package/package.json +1 -1
- package/snapshots/sandbox.json +24 -0
- package/snapshots/sdk.json +26 -1
package/dist/fixtures.js
CHANGED
|
@@ -40,6 +40,17 @@ exports.WIRE_FIXTURES = Object.freeze({
|
|
|
40
40
|
'fs-change': Object.freeze({
|
|
41
41
|
epoch: 7,
|
|
42
42
|
paths: Object.freeze(['/app/src/App.tsx', '/app/content/home.mdx']),
|
|
43
|
+
// R3-409: the mount-anchored leg — a space mount's server-side batch. The
|
|
44
|
+
// two legs are disjoint in traffic (a batch carries one or the other), but
|
|
45
|
+
// ONE fixture carries BOTH so the cross-side proof exercises every key
|
|
46
|
+
// either side declares (the same reason `epoch` rides this fixture).
|
|
47
|
+
mount: Object.freeze({
|
|
48
|
+
path: '/mnt/3f2b9c',
|
|
49
|
+
changes: Object.freeze([
|
|
50
|
+
Object.freeze({ path: '/board.mdx', kind: 'change' }),
|
|
51
|
+
Object.freeze({ path: '/notes/new.md', kind: 'add' }),
|
|
52
|
+
]),
|
|
53
|
+
}),
|
|
43
54
|
}),
|
|
44
55
|
// The frame's declaration caught up to the host's four fields. What each side
|
|
45
56
|
// CACHES stays a subset; what travels is all four.
|
package/dist/sandbox.d.ts
CHANGED
|
@@ -59,6 +59,10 @@ export declare const FORM_FACTOR = "form-factor";
|
|
|
59
59
|
export declare const FS_CHANGE = "fs-change";
|
|
60
60
|
export interface FsChangePayload {
|
|
61
61
|
epoch: number;
|
|
62
|
+
mount?: {
|
|
63
|
+
changes: unknown;
|
|
64
|
+
path: string;
|
|
65
|
+
} | undefined;
|
|
62
66
|
paths: Array<string>;
|
|
63
67
|
}
|
|
64
68
|
/** `initialized` — message · app->host. */
|
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: 2482609771964720
|
|
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
|
@@ -65,7 +65,7 @@ export declare const FORM_FACTOR = "form-factor";
|
|
|
65
65
|
/** Read off this message today: `formFactor`. */
|
|
66
66
|
/** `fs-change` — push · host->app. */
|
|
67
67
|
export declare const FS_CHANGE = "fs-change";
|
|
68
|
-
/** Read off this message today: `epoch`, `paths`. */
|
|
68
|
+
/** Read off this message today: `epoch`, `mount`, `paths`. */
|
|
69
69
|
/** `host-attention` — push · host->app. polled with `request-host-attention`. */
|
|
70
70
|
export declare const HOST_ATTENTION = "host-attention";
|
|
71
71
|
/** Read off this message today: `attention`. */
|
|
@@ -162,7 +162,7 @@ export declare const PROTOCOL_FEED = "protocol-feed";
|
|
|
162
162
|
/** Params of `protocol-feed` method `fetch`. */
|
|
163
163
|
export interface ProtocolFeedFetchParams {
|
|
164
164
|
instanceId: string;
|
|
165
|
-
params
|
|
165
|
+
params: Record<string, string | number>;
|
|
166
166
|
}
|
|
167
167
|
/** `protocol-fetch` — request+stream · app->host. */
|
|
168
168
|
export declare const PROTOCOL_FETCH = "protocol-fetch";
|
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: 2482609771964720
|
|
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
|
|
@@ -46,7 +46,7 @@ exports.FORM_FACTOR = 'form-factor';
|
|
|
46
46
|
/** Read off this message today: `formFactor`. */
|
|
47
47
|
/** `fs-change` — push · host->app. */
|
|
48
48
|
exports.FS_CHANGE = 'fs-change';
|
|
49
|
-
/** Read off this message today: `epoch`, `paths`. */
|
|
49
|
+
/** Read off this message today: `epoch`, `mount`, `paths`. */
|
|
50
50
|
/** `host-attention` — push · host->app. polled with `request-host-attention`. */
|
|
51
51
|
exports.HOST_ATTENTION = 'host-attention';
|
|
52
52
|
/** Read off this message today: `attention`. */
|
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.2",
|
|
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/sandbox.json
CHANGED
|
@@ -272,6 +272,29 @@
|
|
|
272
272
|
"optional": false,
|
|
273
273
|
"type": "number"
|
|
274
274
|
},
|
|
275
|
+
{
|
|
276
|
+
"name": "mount",
|
|
277
|
+
"optional": true,
|
|
278
|
+
"union": [
|
|
279
|
+
{
|
|
280
|
+
"fields": [
|
|
281
|
+
{
|
|
282
|
+
"name": "changes",
|
|
283
|
+
"optional": false,
|
|
284
|
+
"type": "MountChange[]"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "path",
|
|
288
|
+
"optional": false,
|
|
289
|
+
"type": "string"
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"type": "undefined"
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
},
|
|
275
298
|
{
|
|
276
299
|
"name": "paths",
|
|
277
300
|
"optional": false,
|
|
@@ -281,6 +304,7 @@
|
|
|
281
304
|
}
|
|
282
305
|
],
|
|
283
306
|
"reads": [
|
|
307
|
+
"mount",
|
|
284
308
|
"paths"
|
|
285
309
|
]
|
|
286
310
|
},
|
package/snapshots/sdk.json
CHANGED
|
@@ -520,6 +520,7 @@
|
|
|
520
520
|
"payload": {
|
|
521
521
|
"reads": [
|
|
522
522
|
"epoch",
|
|
523
|
+
"mount",
|
|
523
524
|
"paths"
|
|
524
525
|
]
|
|
525
526
|
},
|
|
@@ -530,6 +531,29 @@
|
|
|
530
531
|
"optional": false,
|
|
531
532
|
"type": "number"
|
|
532
533
|
},
|
|
534
|
+
{
|
|
535
|
+
"name": "mount",
|
|
536
|
+
"optional": true,
|
|
537
|
+
"union": [
|
|
538
|
+
{
|
|
539
|
+
"fields": [
|
|
540
|
+
{
|
|
541
|
+
"name": "changes",
|
|
542
|
+
"optional": false,
|
|
543
|
+
"type": "MountChange[]"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"name": "path",
|
|
547
|
+
"optional": false,
|
|
548
|
+
"type": "string"
|
|
549
|
+
}
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"type": "undefined"
|
|
554
|
+
}
|
|
555
|
+
]
|
|
556
|
+
},
|
|
533
557
|
{
|
|
534
558
|
"name": "paths",
|
|
535
559
|
"optional": false,
|
|
@@ -1122,7 +1146,7 @@
|
|
|
1122
1146
|
},
|
|
1123
1147
|
{
|
|
1124
1148
|
"name": "params",
|
|
1125
|
-
"optional":
|
|
1149
|
+
"optional": false,
|
|
1126
1150
|
"type": "Record<string, string | number>"
|
|
1127
1151
|
}
|
|
1128
1152
|
]
|
|
@@ -2194,6 +2218,7 @@
|
|
|
2194
2218
|
"contribute",
|
|
2195
2219
|
"dnd",
|
|
2196
2220
|
"editor",
|
|
2221
|
+
"feed",
|
|
2197
2222
|
"ipc",
|
|
2198
2223
|
"launch",
|
|
2199
2224
|
"llm",
|