@immediately-run/sandbox-protocol 0.13.0 → 0.14.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.d.ts CHANGED
@@ -147,6 +147,13 @@ export interface ThemePayload {
147
147
  /** `vcs-state` — push · host->app. polled with `request-vcs-state`. */
148
148
  export declare const VCS_STATE = "vcs-state";
149
149
  export interface VcsStatePayload {
150
+ agentSession?: {
151
+ conversationId: string;
152
+ messageCount: number;
153
+ repo: string;
154
+ running: boolean;
155
+ updatedAt?: number | undefined;
156
+ } | null | undefined;
150
157
  branch?: {
151
158
  name: string;
152
159
  parentCommitSha: string;
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: 0720f0e1d4fcc8be
4
+ // descriptorsHash: edffc4b001b4d88a
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
@@ -433,7 +433,7 @@ export declare const THEME_CATALOG = "theme-catalog";
433
433
  export declare const URLCHANGE = "urlchange";
434
434
  /** `vcs-state` — push · host->app. polled with `request-vcs-state`. */
435
435
  export declare const VCS_STATE = "vcs-state";
436
- /** Read off this message today: `branch`, `changes`, `diffLoading`, `prs`. */
436
+ /** Read off this message today: `agentSession`, `branch`, `changes`, `diffLoading`, `prs`. */
437
437
  /** `workspace` — push · host->app. polled with `request-workspace`. */
438
438
  export declare const WORKSPACE = "workspace";
439
439
  /** Read off this message today: `workspace`. */
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: 0720f0e1d4fcc8be
4
+ // descriptorsHash: edffc4b001b4d88a
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
@@ -180,7 +180,7 @@ exports.THEME_CATALOG = 'theme-catalog';
180
180
  exports.URLCHANGE = 'urlchange';
181
181
  /** `vcs-state` — push · host->app. polled with `request-vcs-state`. */
182
182
  exports.VCS_STATE = 'vcs-state';
183
- /** Read off this message today: `branch`, `changes`, `diffLoading`, `prs`. */
183
+ /** Read off this message today: `agentSession`, `branch`, `changes`, `diffLoading`, `prs`. */
184
184
  /** `workspace` — push · host->app. polled with `request-workspace`. */
185
185
  exports.WORKSPACE = 'workspace';
186
186
  /** Read off this message today: `workspace`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immediately-run/sandbox-protocol",
3
- "version": "0.13.0",
3
+ "version": "0.14.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": {
@@ -707,6 +707,54 @@
707
707
  "poll": "request-vcs-state",
708
708
  "payload": {
709
709
  "fields": [
710
+ {
711
+ "name": "agentSession",
712
+ "optional": true,
713
+ "union": [
714
+ {
715
+ "fields": [
716
+ {
717
+ "name": "conversationId",
718
+ "optional": false,
719
+ "type": "string"
720
+ },
721
+ {
722
+ "name": "messageCount",
723
+ "optional": false,
724
+ "type": "number"
725
+ },
726
+ {
727
+ "name": "repo",
728
+ "optional": false,
729
+ "type": "string"
730
+ },
731
+ {
732
+ "name": "running",
733
+ "optional": false,
734
+ "type": "boolean"
735
+ },
736
+ {
737
+ "name": "updatedAt",
738
+ "optional": true,
739
+ "union": [
740
+ {
741
+ "type": "number"
742
+ },
743
+ {
744
+ "type": "undefined"
745
+ }
746
+ ]
747
+ }
748
+ ]
749
+ },
750
+ {
751
+ "type": "null"
752
+ },
753
+ {
754
+ "type": "undefined"
755
+ }
756
+ ]
757
+ },
710
758
  {
711
759
  "name": "branch",
712
760
  "optional": true,
@@ -797,6 +845,7 @@
797
845
  }
798
846
  ],
799
847
  "reads": [
848
+ "agentSession",
800
849
  "branch",
801
850
  "changes",
802
851
  "diffLoading",
@@ -2753,6 +2753,7 @@
2753
2753
  "poll": "request-vcs-state",
2754
2754
  "payload": {
2755
2755
  "reads": [
2756
+ "agentSession",
2756
2757
  "branch",
2757
2758
  "changes",
2758
2759
  "diffLoading",
@@ -2761,6 +2762,21 @@
2761
2762
  },
2762
2763
  "value": {
2763
2764
  "fields": [
2765
+ {
2766
+ "name": "agentSession",
2767
+ "optional": true,
2768
+ "union": [
2769
+ {
2770
+ "type": "VcsAgentSession"
2771
+ },
2772
+ {
2773
+ "type": "null"
2774
+ },
2775
+ {
2776
+ "type": "undefined"
2777
+ }
2778
+ ]
2779
+ },
2764
2780
  {
2765
2781
  "name": "branch",
2766
2782
  "optional": false,