@immediately-run/sandbox-protocol 0.14.2 → 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: 70d1a0afe6dedf5d
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
@@ -284,6 +284,11 @@ export interface ProtocolSpacesLeaveParams {
284
284
  export interface ProtocolSpacesListParams {
285
285
  app?: false | true | undefined;
286
286
  }
287
+ /** Params of `protocol-spaces` method `listSpaceKeys`. */
288
+ export interface ProtocolSpacesListSpaceKeysParams {
289
+ spaceId: string;
290
+ uid?: string | undefined;
291
+ }
287
292
  /** Params of `protocol-spaces` method `lookupUser`. */
288
293
  export interface ProtocolSpacesLookupUserParams {
289
294
  login: string;
@@ -296,6 +301,10 @@ export interface ProtocolSpacesMembersParams {
296
301
  export interface ProtocolSpacesPendingInvitesParams {
297
302
  spaceId: string;
298
303
  }
304
+ /** Params of `protocol-spaces` method `publishSpaceKey`. */
305
+ export interface ProtocolSpacesPublishSpaceKeyParams {
306
+ spaceId: string;
307
+ }
299
308
  /** Params of `protocol-spaces` method `rename`. */
300
309
  export interface ProtocolSpacesRenameParams {
301
310
  name: string;
@@ -431,6 +440,14 @@ export declare const THEME_CATALOG = "theme-catalog";
431
440
  /** Read off this message today: `themes`. */
432
441
  /** `urlchange` — message · both. */
433
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
+ }
434
451
  /** `vcs-state` — push · host->app. polled with `request-vcs-state`. */
435
452
  export declare const VCS_STATE = "vcs-state";
436
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: 70d1a0afe6dedf5d
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.14.2",
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": {
@@ -1788,6 +1788,29 @@
1788
1788
  "type": "{}"
1789
1789
  }
1790
1790
  },
1791
+ "listSpaceKeys": {
1792
+ "payload": {
1793
+ "fields": [
1794
+ {
1795
+ "name": "spaceId",
1796
+ "optional": false,
1797
+ "type": "string"
1798
+ },
1799
+ {
1800
+ "name": "uid",
1801
+ "optional": true,
1802
+ "union": [
1803
+ {
1804
+ "type": "string"
1805
+ },
1806
+ {
1807
+ "type": "undefined"
1808
+ }
1809
+ ]
1810
+ }
1811
+ ]
1812
+ }
1813
+ },
1791
1814
  "lookupUser": {
1792
1815
  "payload": {
1793
1816
  "fields": [
@@ -1821,6 +1844,17 @@
1821
1844
  ]
1822
1845
  }
1823
1846
  },
1847
+ "publishSpaceKey": {
1848
+ "payload": {
1849
+ "fields": [
1850
+ {
1851
+ "name": "spaceId",
1852
+ "optional": false,
1853
+ "type": "string"
1854
+ }
1855
+ ]
1856
+ }
1857
+ },
1824
1858
  "rename": {
1825
1859
  "payload": {
1826
1860
  "fields": [
@@ -2743,7 +2777,65 @@
2743
2777
  "kind": "message",
2744
2778
  "direction": "both",
2745
2779
  "payload": {
2746
- "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
+ ]
2747
2839
  },
2748
2840
  "sites": [
2749
2841
  "src/boot.tsx",