@immediately-run/sandbox-protocol 0.15.0 → 0.16.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 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: 8f546f51d9b1b45d
4
+ // descriptorsHash: d81a035d24bf03d7
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: 8f546f51d9b1b45d
4
+ // descriptorsHash: d81a035d24bf03d7
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.15.0",
3
+ "version": "0.16.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": {
@@ -2777,7 +2777,65 @@
2777
2777
  "kind": "message",
2778
2778
  "direction": "both",
2779
2779
  "payload": {
2780
- "type": "any"
2780
+ "fields": [
2781
+ {
2782
+ "name": "back",
2783
+ "optional": false,
2784
+ "type": "boolean"
2785
+ },
2786
+ {
2787
+ "name": "entryState",
2788
+ "optional": true,
2789
+ "union": [
2790
+ {
2791
+ "type": "Record<string, unknown>"
2792
+ },
2793
+ {
2794
+ "type": "undefined"
2795
+ }
2796
+ ]
2797
+ },
2798
+ {
2799
+ "name": "forward",
2800
+ "optional": false,
2801
+ "type": "boolean"
2802
+ },
2803
+ {
2804
+ "name": "replace",
2805
+ "optional": true,
2806
+ "union": [
2807
+ {
2808
+ "type": "false"
2809
+ },
2810
+ {
2811
+ "type": "true"
2812
+ },
2813
+ {
2814
+ "type": "undefined"
2815
+ }
2816
+ ]
2817
+ },
2818
+ {
2819
+ "name": "url",
2820
+ "optional": false,
2821
+ "type": "string"
2822
+ },
2823
+ {
2824
+ "name": "viewedDocument",
2825
+ "optional": true,
2826
+ "union": [
2827
+ {
2828
+ "type": "null"
2829
+ },
2830
+ {
2831
+ "type": "string"
2832
+ },
2833
+ {
2834
+ "type": "undefined"
2835
+ }
2836
+ ]
2837
+ }
2838
+ ]
2781
2839
  },
2782
2840
  "sites": [
2783
2841
  "src/boot.tsx",