@immediately-run/sandbox-protocol 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sandbox.js +1 -1
- package/dist/sdk.d.ts +8 -0
- package/dist/sdk.js +1 -1
- package/package.json +1 -1
- package/snapshots/sdk.json +64 -1
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: 319e4c26247896c5
|
|
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
|
@@ -440,6 +440,14 @@ export declare const THEME_CATALOG = "theme-catalog";
|
|
|
440
440
|
/** Read off this message today: `themes`. */
|
|
441
441
|
/** `urlchange` — message · both. */
|
|
442
442
|
export declare const URLCHANGE = "urlchange";
|
|
443
|
+
export interface UrlchangePayload {
|
|
444
|
+
back: boolean;
|
|
445
|
+
entryState?: Record<string, unknown> | undefined;
|
|
446
|
+
forward: boolean;
|
|
447
|
+
replace?: false | true | undefined;
|
|
448
|
+
url: string;
|
|
449
|
+
viewedDocument?: null | string | undefined;
|
|
450
|
+
}
|
|
443
451
|
/** `vcs-state` — push · host->app. polled with `request-vcs-state`. */
|
|
444
452
|
export declare const VCS_STATE = "vcs-state";
|
|
445
453
|
/** Read off this message today: `agentSession`, `branch`, `changes`, `diffLoading`, `prs`. */
|
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: 319e4c26247896c5
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@immediately-run/sandbox-protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
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
|
@@ -2595,6 +2595,11 @@
|
|
|
2595
2595
|
"optional": false,
|
|
2596
2596
|
"type": "string"
|
|
2597
2597
|
},
|
|
2598
|
+
{
|
|
2599
|
+
"name": "readerCanEdit",
|
|
2600
|
+
"optional": true,
|
|
2601
|
+
"type": "boolean | undefined"
|
|
2602
|
+
},
|
|
2598
2603
|
{
|
|
2599
2604
|
"name": "rules",
|
|
2600
2605
|
"optional": true,
|
|
@@ -2777,7 +2782,65 @@
|
|
|
2777
2782
|
"kind": "message",
|
|
2778
2783
|
"direction": "both",
|
|
2779
2784
|
"payload": {
|
|
2780
|
-
"
|
|
2785
|
+
"fields": [
|
|
2786
|
+
{
|
|
2787
|
+
"name": "back",
|
|
2788
|
+
"optional": false,
|
|
2789
|
+
"type": "boolean"
|
|
2790
|
+
},
|
|
2791
|
+
{
|
|
2792
|
+
"name": "entryState",
|
|
2793
|
+
"optional": true,
|
|
2794
|
+
"union": [
|
|
2795
|
+
{
|
|
2796
|
+
"type": "Record<string, unknown>"
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
"type": "undefined"
|
|
2800
|
+
}
|
|
2801
|
+
]
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
"name": "forward",
|
|
2805
|
+
"optional": false,
|
|
2806
|
+
"type": "boolean"
|
|
2807
|
+
},
|
|
2808
|
+
{
|
|
2809
|
+
"name": "replace",
|
|
2810
|
+
"optional": true,
|
|
2811
|
+
"union": [
|
|
2812
|
+
{
|
|
2813
|
+
"type": "false"
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
"type": "true"
|
|
2817
|
+
},
|
|
2818
|
+
{
|
|
2819
|
+
"type": "undefined"
|
|
2820
|
+
}
|
|
2821
|
+
]
|
|
2822
|
+
},
|
|
2823
|
+
{
|
|
2824
|
+
"name": "url",
|
|
2825
|
+
"optional": false,
|
|
2826
|
+
"type": "string"
|
|
2827
|
+
},
|
|
2828
|
+
{
|
|
2829
|
+
"name": "viewedDocument",
|
|
2830
|
+
"optional": true,
|
|
2831
|
+
"union": [
|
|
2832
|
+
{
|
|
2833
|
+
"type": "null"
|
|
2834
|
+
},
|
|
2835
|
+
{
|
|
2836
|
+
"type": "string"
|
|
2837
|
+
},
|
|
2838
|
+
{
|
|
2839
|
+
"type": "undefined"
|
|
2840
|
+
}
|
|
2841
|
+
]
|
|
2842
|
+
}
|
|
2843
|
+
]
|
|
2781
2844
|
},
|
|
2782
2845
|
"sites": [
|
|
2783
2846
|
"src/boot.tsx",
|