@openclaw/gateway-protocol 2026.9.6 → 2026.9.7

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.
Files changed (36) hide show
  1. package/README.md +4 -0
  2. package/dist/client-info.d.mts +2 -1
  3. package/dist/client-info.mjs +3 -2
  4. package/dist/connect-error-details.d.mts +4 -3
  5. package/dist/connect-error-details.mjs +13 -16
  6. package/dist/frame-guards.d.mts +2 -2
  7. package/dist/frame-guards.mjs +4 -4
  8. package/dist/{frames-DrA9fYYy.d.mts → frames-ICrB58JF.d.mts} +32 -11
  9. package/dist/{gateway-error-details-B0Ms-xqB.d.mts → gateway-error-details-BH1DM8mu.d.mts} +462 -385
  10. package/dist/gateway-error-details.d.mts +1 -1
  11. package/dist/gateway-error-details.mjs +6 -6
  12. package/dist/index.d.mts +3210 -2803
  13. package/dist/index.mjs +40 -110
  14. package/dist/{protocol-value-normalization-DfM01tqg.mjs → protocol-value-normalization-Oati9UF1.mjs} +1 -1
  15. package/dist/{record-coerce-BVp8Dr-B.mjs → record-coerce-DVQGe6I0.mjs} +1 -1
  16. package/dist/restart-unavailable.d.mts +3 -1
  17. package/dist/restart-unavailable.mjs +4 -2
  18. package/dist/{schema-modules-CClcdadz.d.mts → schema-modules-CRgBq9O3.d.mts} +2759 -1911
  19. package/dist/schema.d.mts +10 -9
  20. package/dist/schema.mjs +50 -21
  21. package/dist/{server-capabilities-CBMEqI9z.mjs → server-capabilities-BnyAklc1.mjs} +6 -1
  22. package/dist/startup-unavailable.d.mts +1 -1
  23. package/dist/startup-unavailable.mjs +1 -1
  24. package/dist/{string-coerce-BJ6bjzdv.mjs → string-coerce-BSD-wsXs.mjs} +1 -1
  25. package/dist/system-agent-context.d.mts +1 -1
  26. package/dist/system-agent-context.mjs +8 -7
  27. package/dist/{theme-DEbDprgp.mjs → theme-_hQKgfH-.mjs} +2 -2
  28. package/dist/{theme-C4mhgADx.d.mts → theme-s6T9Ck6Z.d.mts} +2 -2
  29. package/dist/theme.d.mts +1 -1
  30. package/dist/theme.mjs +1 -1
  31. package/dist/{tools-catalog-CRxZFldZ.mjs → tools-catalog-pKZZLiUu.mjs} +1046 -768
  32. package/dist/{version-COV9CEyr.d.mts → version-BL42XeI-.d.mts} +1 -1
  33. package/dist/version.d.mts +1 -1
  34. package/dist/version.mjs +1 -1
  35. package/package.json +3 -3
  36. package/protocol.schema.json +8776 -4444
@@ -1,5 +1,5 @@
1
1
  import { Static, Type } from "typebox";
2
- //#region src/schema/session-placement.d.ts
2
+ //#region packages/gateway-protocol/src/schema/session-placement.d.ts
3
3
  /** Durable gateway ownership states for one session execution placement.
4
4
  * The literal list stays explicit because Type.Union needs a tuple for
5
5
  * Static inference (a mapped array collapses Static to never); the guard
@@ -11,6 +11,13 @@ declare const SessionPlacementDiskSpaceSchema: Type.TObject<{
11
11
  totalBytes: Type.TInteger;
12
12
  observedAtMs: Type.TInteger;
13
13
  }>;
14
+ declare const SessionPlacementWorkerRuntimeInstallSchema: Type.TObject<{
15
+ phase: Type.TUnion<[Type.TLiteral<"transferring">, Type.TLiteral<"installing">]>;
16
+ transferredBytes: Type.TInteger;
17
+ totalBytes: Type.TInteger;
18
+ startedAtMs: Type.TInteger;
19
+ updatedAtMs: Type.TInteger;
20
+ }>;
14
21
  declare const SessionPlacementRunnerSchema: Type.TObject<{
15
22
  kind: Type.TLiteral<"device">;
16
23
  status: Type.TUnion<[Type.TLiteral<"available">, Type.TLiteral<"offline">]>;
@@ -37,7 +44,10 @@ declare const SessionPlacementSchema: Type.TUnion<[Type.TObject<{
37
44
  stateChangedAtMs: Type.TInteger;
38
45
  state: Type.TLiteral<"requested">;
39
46
  }>, Type.TObject<{
40
- environmentId: Type.TOptional<Type.TString>;
47
+ generation: Type.TInteger;
48
+ createdAtMs: Type.TInteger;
49
+ updatedAtMs: Type.TInteger;
50
+ stateChangedAtMs: Type.TInteger;
41
51
  providerId: Type.TOptional<Type.TString>;
42
52
  profileId: Type.TOptional<Type.TString>;
43
53
  machine: Type.TOptional<Type.TObject<{
@@ -47,14 +57,20 @@ declare const SessionPlacementSchema: Type.TUnion<[Type.TObject<{
47
57
  cpu: Type.TOptional<Type.TInteger>;
48
58
  memoryGb: Type.TOptional<Type.TInteger>;
49
59
  }>>;
60
+ state: Type.TLiteral<"provisioning">;
61
+ environmentId: Type.TOptional<Type.TString>;
62
+ workerRuntimeInstall: Type.TOptional<Type.TObject<{
63
+ phase: Type.TUnion<[Type.TLiteral<"transferring">, Type.TLiteral<"installing">]>;
64
+ transferredBytes: Type.TInteger;
65
+ totalBytes: Type.TInteger;
66
+ startedAtMs: Type.TInteger;
67
+ updatedAtMs: Type.TInteger;
68
+ }>>;
69
+ }>, Type.TObject<{
50
70
  generation: Type.TInteger;
51
71
  createdAtMs: Type.TInteger;
52
72
  updatedAtMs: Type.TInteger;
53
73
  stateChangedAtMs: Type.TInteger;
54
- state: Type.TLiteral<"provisioning">;
55
- }>, Type.TObject<{
56
- environmentId: Type.TString;
57
- workerBundleHash: Type.TString;
58
74
  providerId: Type.TOptional<Type.TString>;
59
75
  profileId: Type.TOptional<Type.TString>;
60
76
  machine: Type.TOptional<Type.TObject<{
@@ -64,16 +80,16 @@ declare const SessionPlacementSchema: Type.TUnion<[Type.TObject<{
64
80
  cpu: Type.TOptional<Type.TInteger>;
65
81
  memoryGb: Type.TOptional<Type.TInteger>;
66
82
  }>>;
83
+ state: Type.TLiteral<"syncing">;
84
+ environmentId: Type.TString;
85
+ workerBundleHash: Type.TString;
86
+ }>, Type.TObject<{
67
87
  generation: Type.TInteger;
68
88
  createdAtMs: Type.TInteger;
69
89
  updatedAtMs: Type.TInteger;
70
90
  stateChangedAtMs: Type.TInteger;
71
- state: Type.TLiteral<"syncing">;
72
- }>, Type.TObject<{
73
91
  workspaceBaseManifestRef: Type.TString;
74
92
  remoteWorkspaceDir: Type.TString;
75
- environmentId: Type.TString;
76
- workerBundleHash: Type.TString;
77
93
  providerId: Type.TOptional<Type.TString>;
78
94
  profileId: Type.TOptional<Type.TString>;
79
95
  machine: Type.TOptional<Type.TObject<{
@@ -83,36 +99,24 @@ declare const SessionPlacementSchema: Type.TUnion<[Type.TObject<{
83
99
  cpu: Type.TOptional<Type.TInteger>;
84
100
  memoryGb: Type.TOptional<Type.TInteger>;
85
101
  }>>;
102
+ state: Type.TLiteral<"starting">;
103
+ environmentId: Type.TString;
104
+ workerBundleHash: Type.TString;
105
+ }>, Type.TObject<{
86
106
  generation: Type.TInteger;
87
107
  createdAtMs: Type.TInteger;
88
108
  updatedAtMs: Type.TInteger;
89
109
  stateChangedAtMs: Type.TInteger;
90
- state: Type.TLiteral<"starting">;
91
- }>, Type.TObject<{
92
- runner: Type.TOptional<Type.TObject<{
93
- kind: Type.TLiteral<"device">;
94
- status: Type.TUnion<[Type.TLiteral<"available">, Type.TLiteral<"offline">]>;
95
- deviceId: Type.TOptional<Type.TString>;
96
- }>>;
97
- workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
110
+ workspaceBaseManifestRef: Type.TString;
111
+ remoteWorkspaceDir: Type.TString;
112
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
113
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
98
114
  diskSpace: Type.TOptional<Type.TObject<{
99
115
  status: Type.TUnion<[Type.TLiteral<"ok">, Type.TLiteral<"warning">, Type.TLiteral<"critical">]>;
100
116
  availableBytes: Type.TInteger;
101
117
  totalBytes: Type.TInteger;
102
118
  observedAtMs: Type.TInteger;
103
119
  }>>;
104
- workspaceResultConflict: Type.TOptional<Type.TObject<{
105
- paths: Type.TArray<Type.TString>;
106
- stagedResultRef: Type.TString;
107
- totalCount: Type.TOptional<Type.TInteger>;
108
- }>>;
109
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
110
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
111
- workspaceBaseManifestRef: Type.TString;
112
- remoteWorkspaceDir: Type.TString;
113
- environmentId: Type.TString;
114
- activeOwnerEpoch: Type.TInteger;
115
- workerBundleHash: Type.TString;
116
120
  providerId: Type.TOptional<Type.TString>;
117
121
  profileId: Type.TOptional<Type.TString>;
118
122
  machine: Type.TOptional<Type.TObject<{
@@ -122,31 +126,43 @@ declare const SessionPlacementSchema: Type.TUnion<[Type.TObject<{
122
126
  cpu: Type.TOptional<Type.TInteger>;
123
127
  memoryGb: Type.TOptional<Type.TInteger>;
124
128
  }>>;
129
+ workspaceResultConflict: Type.TOptional<Type.TObject<{
130
+ paths: Type.TArray<Type.TString>;
131
+ stagedResultRef: Type.TString;
132
+ totalCount: Type.TOptional<Type.TInteger>;
133
+ }>>;
134
+ workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
135
+ state: Type.TLiteral<"active">;
136
+ environmentId: Type.TString;
137
+ activeOwnerEpoch: Type.TInteger;
138
+ workerBundleHash: Type.TString;
139
+ runner: Type.TOptional<Type.TObject<{
140
+ kind: Type.TLiteral<"device">;
141
+ status: Type.TUnion<[Type.TLiteral<"available">, Type.TLiteral<"offline">]>;
142
+ deviceId: Type.TOptional<Type.TString>;
143
+ }>>;
144
+ workerRuntimeInstall: Type.TOptional<Type.TObject<{
145
+ phase: Type.TUnion<[Type.TLiteral<"transferring">, Type.TLiteral<"installing">]>;
146
+ transferredBytes: Type.TInteger;
147
+ totalBytes: Type.TInteger;
148
+ startedAtMs: Type.TInteger;
149
+ updatedAtMs: Type.TInteger;
150
+ }>>;
151
+ }>, Type.TObject<{
125
152
  generation: Type.TInteger;
126
153
  createdAtMs: Type.TInteger;
127
154
  updatedAtMs: Type.TInteger;
128
155
  stateChangedAtMs: Type.TInteger;
129
- state: Type.TLiteral<"active">;
130
- }>, Type.TObject<{
131
- workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
156
+ workspaceBaseManifestRef: Type.TString;
157
+ remoteWorkspaceDir: Type.TString;
158
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
159
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
132
160
  diskSpace: Type.TOptional<Type.TObject<{
133
161
  status: Type.TUnion<[Type.TLiteral<"ok">, Type.TLiteral<"warning">, Type.TLiteral<"critical">]>;
134
162
  availableBytes: Type.TInteger;
135
163
  totalBytes: Type.TInteger;
136
164
  observedAtMs: Type.TInteger;
137
165
  }>>;
138
- workspaceResultConflict: Type.TOptional<Type.TObject<{
139
- paths: Type.TArray<Type.TString>;
140
- stagedResultRef: Type.TString;
141
- totalCount: Type.TOptional<Type.TInteger>;
142
- }>>;
143
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
144
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
145
- workspaceBaseManifestRef: Type.TString;
146
- remoteWorkspaceDir: Type.TString;
147
- environmentId: Type.TString;
148
- activeOwnerEpoch: Type.TInteger;
149
- workerBundleHash: Type.TString;
150
166
  providerId: Type.TOptional<Type.TString>;
151
167
  profileId: Type.TOptional<Type.TString>;
152
168
  machine: Type.TOptional<Type.TObject<{
@@ -156,30 +172,56 @@ declare const SessionPlacementSchema: Type.TUnion<[Type.TObject<{
156
172
  cpu: Type.TOptional<Type.TInteger>;
157
173
  memoryGb: Type.TOptional<Type.TInteger>;
158
174
  }>>;
175
+ workspaceResultConflict: Type.TOptional<Type.TObject<{
176
+ paths: Type.TArray<Type.TString>;
177
+ stagedResultRef: Type.TString;
178
+ totalCount: Type.TOptional<Type.TInteger>;
179
+ }>>;
180
+ workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
181
+ state: Type.TLiteral<"draining">;
182
+ environmentId: Type.TString;
183
+ activeOwnerEpoch: Type.TInteger;
184
+ workerBundleHash: Type.TString;
185
+ }>, Type.TObject<{
159
186
  generation: Type.TInteger;
160
187
  createdAtMs: Type.TInteger;
161
188
  updatedAtMs: Type.TInteger;
162
189
  stateChangedAtMs: Type.TInteger;
163
- state: Type.TLiteral<"draining">;
164
- }>, Type.TObject<{
190
+ workspaceBaseManifestRef: Type.TString;
191
+ remoteWorkspaceDir: Type.TString;
192
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
193
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
165
194
  diskSpace: Type.TOptional<Type.TObject<{
166
195
  status: Type.TUnion<[Type.TLiteral<"ok">, Type.TLiteral<"warning">, Type.TLiteral<"critical">]>;
167
196
  availableBytes: Type.TInteger;
168
197
  totalBytes: Type.TInteger;
169
198
  observedAtMs: Type.TInteger;
170
199
  }>>;
200
+ providerId: Type.TOptional<Type.TString>;
201
+ profileId: Type.TOptional<Type.TString>;
202
+ machine: Type.TOptional<Type.TObject<{
203
+ class: Type.TOptional<Type.TString>;
204
+ os: Type.TOptional<Type.TString>;
205
+ osLabel: Type.TOptional<Type.TString>;
206
+ cpu: Type.TOptional<Type.TInteger>;
207
+ memoryGb: Type.TOptional<Type.TInteger>;
208
+ }>>;
171
209
  workspaceResultConflict: Type.TOptional<Type.TObject<{
172
210
  paths: Type.TArray<Type.TString>;
173
211
  stagedResultRef: Type.TString;
174
212
  totalCount: Type.TOptional<Type.TInteger>;
175
213
  }>>;
176
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
177
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
178
- workspaceBaseManifestRef: Type.TString;
179
- remoteWorkspaceDir: Type.TString;
214
+ state: Type.TLiteral<"reconciling">;
180
215
  environmentId: Type.TString;
181
216
  activeOwnerEpoch: Type.TInteger;
182
217
  workerBundleHash: Type.TString;
218
+ }>, Type.TObject<{
219
+ generation: Type.TInteger;
220
+ createdAtMs: Type.TInteger;
221
+ updatedAtMs: Type.TInteger;
222
+ stateChangedAtMs: Type.TInteger;
223
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
224
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
183
225
  providerId: Type.TOptional<Type.TString>;
184
226
  profileId: Type.TOptional<Type.TString>;
185
227
  machine: Type.TOptional<Type.TObject<{
@@ -189,26 +231,26 @@ declare const SessionPlacementSchema: Type.TUnion<[Type.TObject<{
189
231
  cpu: Type.TOptional<Type.TInteger>;
190
232
  memoryGb: Type.TOptional<Type.TInteger>;
191
233
  }>>;
192
- generation: Type.TInteger;
193
- createdAtMs: Type.TInteger;
194
- updatedAtMs: Type.TInteger;
195
- stateChangedAtMs: Type.TInteger;
196
- state: Type.TLiteral<"reconciling">;
197
- }>, Type.TObject<{
198
- terminalReason: Type.TOptional<Type.TString>;
199
- terminalAtMs: Type.TOptional<Type.TInteger>;
200
234
  workspaceResultConflict: Type.TOptional<Type.TObject<{
201
235
  paths: Type.TArray<Type.TString>;
202
236
  stagedResultRef: Type.TString;
203
237
  totalCount: Type.TOptional<Type.TInteger>;
204
238
  }>>;
205
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
206
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
207
239
  environmentId: Type.TOptional<Type.TString>;
208
240
  activeOwnerEpoch: Type.TOptional<Type.TInteger>;
209
241
  workspaceBaseManifestRef: Type.TOptional<Type.TString>;
210
242
  remoteWorkspaceDir: Type.TOptional<Type.TString>;
211
243
  workerBundleHash: Type.TOptional<Type.TString>;
244
+ terminalReason: Type.TOptional<Type.TString>;
245
+ terminalAtMs: Type.TOptional<Type.TInteger>;
246
+ state: Type.TLiteral<"reclaimed">;
247
+ }>, Type.TObject<{
248
+ generation: Type.TInteger;
249
+ createdAtMs: Type.TInteger;
250
+ updatedAtMs: Type.TInteger;
251
+ stateChangedAtMs: Type.TInteger;
252
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
253
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
212
254
  providerId: Type.TOptional<Type.TString>;
213
255
  profileId: Type.TOptional<Type.TString>;
214
256
  machine: Type.TOptional<Type.TObject<{
@@ -218,42 +260,22 @@ declare const SessionPlacementSchema: Type.TUnion<[Type.TObject<{
218
260
  cpu: Type.TOptional<Type.TInteger>;
219
261
  memoryGb: Type.TOptional<Type.TInteger>;
220
262
  }>>;
221
- generation: Type.TInteger;
222
- createdAtMs: Type.TInteger;
223
- updatedAtMs: Type.TInteger;
224
- stateChangedAtMs: Type.TInteger;
225
- state: Type.TLiteral<"reclaimed">;
226
- }>, Type.TObject<{
227
- recoveryError: Type.TString;
228
- recoveryAction: Type.TOptional<Type.TEnum<["restart", "stop-first"]>>;
229
- terminalReason: Type.TOptional<Type.TString>;
230
- terminalAtMs: Type.TOptional<Type.TInteger>;
231
263
  workspaceResultConflict: Type.TOptional<Type.TObject<{
232
264
  paths: Type.TArray<Type.TString>;
233
265
  stagedResultRef: Type.TString;
234
266
  totalCount: Type.TOptional<Type.TInteger>;
235
267
  }>>;
236
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
237
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
238
268
  environmentId: Type.TOptional<Type.TString>;
239
269
  activeOwnerEpoch: Type.TOptional<Type.TInteger>;
240
270
  workspaceBaseManifestRef: Type.TOptional<Type.TString>;
241
271
  remoteWorkspaceDir: Type.TOptional<Type.TString>;
242
272
  workerBundleHash: Type.TOptional<Type.TString>;
243
- providerId: Type.TOptional<Type.TString>;
244
- profileId: Type.TOptional<Type.TString>;
245
- machine: Type.TOptional<Type.TObject<{
246
- class: Type.TOptional<Type.TString>;
247
- os: Type.TOptional<Type.TString>;
248
- osLabel: Type.TOptional<Type.TString>;
249
- cpu: Type.TOptional<Type.TInteger>;
250
- memoryGb: Type.TOptional<Type.TInteger>;
251
- }>>;
252
- generation: Type.TInteger;
253
- createdAtMs: Type.TInteger;
254
- updatedAtMs: Type.TInteger;
255
- stateChangedAtMs: Type.TInteger;
273
+ terminalReason: Type.TOptional<Type.TString>;
274
+ terminalAtMs: Type.TOptional<Type.TInteger>;
256
275
  state: Type.TLiteral<"failed">;
276
+ recoveryError: Type.TString;
277
+ recoveryAction: Type.TOptional<Type.TEnum<["restart", "stop-first"]>>;
278
+ retryOnSend: Type.TOptional<Type.TLiteral<true>>;
257
279
  }>]>;
258
280
  /**
259
281
  * Requests one-way dispatch to an explicit or automatically selected device (`operator.write`),
@@ -277,30 +299,20 @@ declare const SessionsDispatchResultSchema: Type.TObject<{
277
299
  key: Type.TString;
278
300
  sessionId: Type.TString;
279
301
  placement: Type.TObject<{
280
- runner: Type.TOptional<Type.TObject<{
281
- kind: Type.TLiteral<"device">;
282
- status: Type.TUnion<[Type.TLiteral<"available">, Type.TLiteral<"offline">]>;
283
- deviceId: Type.TOptional<Type.TString>;
284
- }>>;
285
- workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
302
+ generation: Type.TInteger;
303
+ createdAtMs: Type.TInteger;
304
+ updatedAtMs: Type.TInteger;
305
+ stateChangedAtMs: Type.TInteger;
306
+ workspaceBaseManifestRef: Type.TString;
307
+ remoteWorkspaceDir: Type.TString;
308
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
309
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
286
310
  diskSpace: Type.TOptional<Type.TObject<{
287
311
  status: Type.TUnion<[Type.TLiteral<"ok">, Type.TLiteral<"warning">, Type.TLiteral<"critical">]>;
288
312
  availableBytes: Type.TInteger;
289
313
  totalBytes: Type.TInteger;
290
314
  observedAtMs: Type.TInteger;
291
315
  }>>;
292
- workspaceResultConflict: Type.TOptional<Type.TObject<{
293
- paths: Type.TArray<Type.TString>;
294
- stagedResultRef: Type.TString;
295
- totalCount: Type.TOptional<Type.TInteger>;
296
- }>>;
297
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
298
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
299
- workspaceBaseManifestRef: Type.TString;
300
- remoteWorkspaceDir: Type.TString;
301
- environmentId: Type.TString;
302
- activeOwnerEpoch: Type.TInteger;
303
- workerBundleHash: Type.TString;
304
316
  providerId: Type.TOptional<Type.TString>;
305
317
  profileId: Type.TOptional<Type.TString>;
306
318
  machine: Type.TOptional<Type.TObject<{
@@ -310,11 +322,28 @@ declare const SessionsDispatchResultSchema: Type.TObject<{
310
322
  cpu: Type.TOptional<Type.TInteger>;
311
323
  memoryGb: Type.TOptional<Type.TInteger>;
312
324
  }>>;
313
- generation: Type.TInteger;
314
- createdAtMs: Type.TInteger;
315
- updatedAtMs: Type.TInteger;
316
- stateChangedAtMs: Type.TInteger;
325
+ workspaceResultConflict: Type.TOptional<Type.TObject<{
326
+ paths: Type.TArray<Type.TString>;
327
+ stagedResultRef: Type.TString;
328
+ totalCount: Type.TOptional<Type.TInteger>;
329
+ }>>;
330
+ workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
317
331
  state: Type.TLiteral<"active">;
332
+ environmentId: Type.TString;
333
+ activeOwnerEpoch: Type.TInteger;
334
+ workerBundleHash: Type.TString;
335
+ runner: Type.TOptional<Type.TObject<{
336
+ kind: Type.TLiteral<"device">;
337
+ status: Type.TUnion<[Type.TLiteral<"available">, Type.TLiteral<"offline">]>;
338
+ deviceId: Type.TOptional<Type.TString>;
339
+ }>>;
340
+ workerRuntimeInstall: Type.TOptional<Type.TObject<{
341
+ phase: Type.TUnion<[Type.TLiteral<"transferring">, Type.TLiteral<"installing">]>;
342
+ transferredBytes: Type.TInteger;
343
+ totalBytes: Type.TInteger;
344
+ startedAtMs: Type.TInteger;
345
+ updatedAtMs: Type.TInteger;
346
+ }>>;
318
347
  }>;
319
348
  }>;
320
349
  /** Stops a worker or explicitly recovers one failed placement onto the Gateway. */
@@ -333,20 +362,12 @@ declare const SessionsReclaimResultPlacementSchema: Type.TUnion<[Type.TObject<{
333
362
  stateChangedAtMs: Type.TInteger;
334
363
  state: Type.TLiteral<"local">;
335
364
  }>, Type.TObject<{
336
- terminalReason: Type.TOptional<Type.TString>;
337
- terminalAtMs: Type.TOptional<Type.TInteger>;
338
- workspaceResultConflict: Type.TOptional<Type.TObject<{
339
- paths: Type.TArray<Type.TString>;
340
- stagedResultRef: Type.TString;
341
- totalCount: Type.TOptional<Type.TInteger>;
342
- }>>;
365
+ generation: Type.TInteger;
366
+ createdAtMs: Type.TInteger;
367
+ updatedAtMs: Type.TInteger;
368
+ stateChangedAtMs: Type.TInteger;
343
369
  lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
344
370
  lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
345
- environmentId: Type.TOptional<Type.TString>;
346
- activeOwnerEpoch: Type.TOptional<Type.TInteger>;
347
- workspaceBaseManifestRef: Type.TOptional<Type.TString>;
348
- remoteWorkspaceDir: Type.TOptional<Type.TString>;
349
- workerBundleHash: Type.TOptional<Type.TString>;
350
371
  providerId: Type.TOptional<Type.TString>;
351
372
  profileId: Type.TOptional<Type.TString>;
352
373
  machine: Type.TOptional<Type.TObject<{
@@ -356,10 +377,18 @@ declare const SessionsReclaimResultPlacementSchema: Type.TUnion<[Type.TObject<{
356
377
  cpu: Type.TOptional<Type.TInteger>;
357
378
  memoryGb: Type.TOptional<Type.TInteger>;
358
379
  }>>;
359
- generation: Type.TInteger;
360
- createdAtMs: Type.TInteger;
361
- updatedAtMs: Type.TInteger;
362
- stateChangedAtMs: Type.TInteger;
380
+ workspaceResultConflict: Type.TOptional<Type.TObject<{
381
+ paths: Type.TArray<Type.TString>;
382
+ stagedResultRef: Type.TString;
383
+ totalCount: Type.TOptional<Type.TInteger>;
384
+ }>>;
385
+ environmentId: Type.TOptional<Type.TString>;
386
+ activeOwnerEpoch: Type.TOptional<Type.TInteger>;
387
+ workspaceBaseManifestRef: Type.TOptional<Type.TString>;
388
+ remoteWorkspaceDir: Type.TOptional<Type.TString>;
389
+ workerBundleHash: Type.TOptional<Type.TString>;
390
+ terminalReason: Type.TOptional<Type.TString>;
391
+ terminalAtMs: Type.TOptional<Type.TInteger>;
363
392
  state: Type.TLiteral<"reclaimed">;
364
393
  }>]>;
365
394
  /** Result returned once worker ownership is reclaimed or a failed placement is cleared. */
@@ -374,20 +403,12 @@ declare const SessionsReclaimResultSchema: Type.TObject<{
374
403
  stateChangedAtMs: Type.TInteger;
375
404
  state: Type.TLiteral<"local">;
376
405
  }>, Type.TObject<{
377
- terminalReason: Type.TOptional<Type.TString>;
378
- terminalAtMs: Type.TOptional<Type.TInteger>;
379
- workspaceResultConflict: Type.TOptional<Type.TObject<{
380
- paths: Type.TArray<Type.TString>;
381
- stagedResultRef: Type.TString;
382
- totalCount: Type.TOptional<Type.TInteger>;
383
- }>>;
406
+ generation: Type.TInteger;
407
+ createdAtMs: Type.TInteger;
408
+ updatedAtMs: Type.TInteger;
409
+ stateChangedAtMs: Type.TInteger;
384
410
  lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
385
411
  lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
386
- environmentId: Type.TOptional<Type.TString>;
387
- activeOwnerEpoch: Type.TOptional<Type.TInteger>;
388
- workspaceBaseManifestRef: Type.TOptional<Type.TString>;
389
- remoteWorkspaceDir: Type.TOptional<Type.TString>;
390
- workerBundleHash: Type.TOptional<Type.TString>;
391
412
  providerId: Type.TOptional<Type.TString>;
392
413
  profileId: Type.TOptional<Type.TString>;
393
414
  machine: Type.TOptional<Type.TObject<{
@@ -397,10 +418,18 @@ declare const SessionsReclaimResultSchema: Type.TObject<{
397
418
  cpu: Type.TOptional<Type.TInteger>;
398
419
  memoryGb: Type.TOptional<Type.TInteger>;
399
420
  }>>;
400
- generation: Type.TInteger;
401
- createdAtMs: Type.TInteger;
402
- updatedAtMs: Type.TInteger;
403
- stateChangedAtMs: Type.TInteger;
421
+ workspaceResultConflict: Type.TOptional<Type.TObject<{
422
+ paths: Type.TArray<Type.TString>;
423
+ stagedResultRef: Type.TString;
424
+ totalCount: Type.TOptional<Type.TInteger>;
425
+ }>>;
426
+ environmentId: Type.TOptional<Type.TString>;
427
+ activeOwnerEpoch: Type.TOptional<Type.TInteger>;
428
+ workspaceBaseManifestRef: Type.TOptional<Type.TString>;
429
+ remoteWorkspaceDir: Type.TOptional<Type.TString>;
430
+ workerBundleHash: Type.TOptional<Type.TString>;
431
+ terminalReason: Type.TOptional<Type.TString>;
432
+ terminalAtMs: Type.TOptional<Type.TInteger>;
404
433
  state: Type.TLiteral<"reclaimed">;
405
434
  }>]>;
406
435
  }>;
@@ -501,6 +530,13 @@ declare const SessionPlacementProtocolSchemas: {
501
530
  totalBytes: Type.TInteger;
502
531
  observedAtMs: Type.TInteger;
503
532
  }>;
533
+ readonly SessionPlacementWorkerRuntimeInstall: Type.TObject<{
534
+ phase: Type.TUnion<[Type.TLiteral<"transferring">, Type.TLiteral<"installing">]>;
535
+ transferredBytes: Type.TInteger;
536
+ totalBytes: Type.TInteger;
537
+ startedAtMs: Type.TInteger;
538
+ updatedAtMs: Type.TInteger;
539
+ }>;
504
540
  readonly SessionPlacementRunner: Type.TObject<{
505
541
  kind: Type.TLiteral<"device">;
506
542
  status: Type.TUnion<[Type.TLiteral<"available">, Type.TLiteral<"offline">]>;
@@ -528,7 +564,10 @@ declare const SessionPlacementProtocolSchemas: {
528
564
  state: Type.TLiteral<"requested">;
529
565
  }>;
530
566
  readonly ProvisioningSessionPlacement: Type.TObject<{
531
- environmentId: Type.TOptional<Type.TString>;
567
+ generation: Type.TInteger;
568
+ createdAtMs: Type.TInteger;
569
+ updatedAtMs: Type.TInteger;
570
+ stateChangedAtMs: Type.TInteger;
532
571
  providerId: Type.TOptional<Type.TString>;
533
572
  profileId: Type.TOptional<Type.TString>;
534
573
  machine: Type.TOptional<Type.TObject<{
@@ -538,15 +577,21 @@ declare const SessionPlacementProtocolSchemas: {
538
577
  cpu: Type.TOptional<Type.TInteger>;
539
578
  memoryGb: Type.TOptional<Type.TInteger>;
540
579
  }>>;
580
+ state: Type.TLiteral<"provisioning">;
581
+ environmentId: Type.TOptional<Type.TString>;
582
+ workerRuntimeInstall: Type.TOptional<Type.TObject<{
583
+ phase: Type.TUnion<[Type.TLiteral<"transferring">, Type.TLiteral<"installing">]>;
584
+ transferredBytes: Type.TInteger;
585
+ totalBytes: Type.TInteger;
586
+ startedAtMs: Type.TInteger;
587
+ updatedAtMs: Type.TInteger;
588
+ }>>;
589
+ }>;
590
+ readonly SyncingSessionPlacement: Type.TObject<{
541
591
  generation: Type.TInteger;
542
592
  createdAtMs: Type.TInteger;
543
593
  updatedAtMs: Type.TInteger;
544
594
  stateChangedAtMs: Type.TInteger;
545
- state: Type.TLiteral<"provisioning">;
546
- }>;
547
- readonly SyncingSessionPlacement: Type.TObject<{
548
- environmentId: Type.TString;
549
- workerBundleHash: Type.TString;
550
595
  providerId: Type.TOptional<Type.TString>;
551
596
  profileId: Type.TOptional<Type.TString>;
552
597
  machine: Type.TOptional<Type.TObject<{
@@ -556,17 +601,17 @@ declare const SessionPlacementProtocolSchemas: {
556
601
  cpu: Type.TOptional<Type.TInteger>;
557
602
  memoryGb: Type.TOptional<Type.TInteger>;
558
603
  }>>;
604
+ state: Type.TLiteral<"syncing">;
605
+ environmentId: Type.TString;
606
+ workerBundleHash: Type.TString;
607
+ }>;
608
+ readonly StartingSessionPlacement: Type.TObject<{
559
609
  generation: Type.TInteger;
560
610
  createdAtMs: Type.TInteger;
561
611
  updatedAtMs: Type.TInteger;
562
612
  stateChangedAtMs: Type.TInteger;
563
- state: Type.TLiteral<"syncing">;
564
- }>;
565
- readonly StartingSessionPlacement: Type.TObject<{
566
613
  workspaceBaseManifestRef: Type.TString;
567
614
  remoteWorkspaceDir: Type.TString;
568
- environmentId: Type.TString;
569
- workerBundleHash: Type.TString;
570
615
  providerId: Type.TOptional<Type.TString>;
571
616
  profileId: Type.TOptional<Type.TString>;
572
617
  machine: Type.TOptional<Type.TObject<{
@@ -576,37 +621,25 @@ declare const SessionPlacementProtocolSchemas: {
576
621
  cpu: Type.TOptional<Type.TInteger>;
577
622
  memoryGb: Type.TOptional<Type.TInteger>;
578
623
  }>>;
624
+ state: Type.TLiteral<"starting">;
625
+ environmentId: Type.TString;
626
+ workerBundleHash: Type.TString;
627
+ }>;
628
+ readonly ActiveWorkerSessionPlacement: Type.TObject<{
579
629
  generation: Type.TInteger;
580
630
  createdAtMs: Type.TInteger;
581
631
  updatedAtMs: Type.TInteger;
582
632
  stateChangedAtMs: Type.TInteger;
583
- state: Type.TLiteral<"starting">;
584
- }>;
585
- readonly ActiveWorkerSessionPlacement: Type.TObject<{
586
- runner: Type.TOptional<Type.TObject<{
587
- kind: Type.TLiteral<"device">;
588
- status: Type.TUnion<[Type.TLiteral<"available">, Type.TLiteral<"offline">]>;
589
- deviceId: Type.TOptional<Type.TString>;
590
- }>>;
591
- workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
633
+ workspaceBaseManifestRef: Type.TString;
634
+ remoteWorkspaceDir: Type.TString;
635
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
636
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
592
637
  diskSpace: Type.TOptional<Type.TObject<{
593
638
  status: Type.TUnion<[Type.TLiteral<"ok">, Type.TLiteral<"warning">, Type.TLiteral<"critical">]>;
594
639
  availableBytes: Type.TInteger;
595
640
  totalBytes: Type.TInteger;
596
641
  observedAtMs: Type.TInteger;
597
642
  }>>;
598
- workspaceResultConflict: Type.TOptional<Type.TObject<{
599
- paths: Type.TArray<Type.TString>;
600
- stagedResultRef: Type.TString;
601
- totalCount: Type.TOptional<Type.TInteger>;
602
- }>>;
603
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
604
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
605
- workspaceBaseManifestRef: Type.TString;
606
- remoteWorkspaceDir: Type.TString;
607
- environmentId: Type.TString;
608
- activeOwnerEpoch: Type.TInteger;
609
- workerBundleHash: Type.TString;
610
643
  providerId: Type.TOptional<Type.TString>;
611
644
  profileId: Type.TOptional<Type.TString>;
612
645
  machine: Type.TOptional<Type.TObject<{
@@ -616,32 +649,44 @@ declare const SessionPlacementProtocolSchemas: {
616
649
  cpu: Type.TOptional<Type.TInteger>;
617
650
  memoryGb: Type.TOptional<Type.TInteger>;
618
651
  }>>;
652
+ workspaceResultConflict: Type.TOptional<Type.TObject<{
653
+ paths: Type.TArray<Type.TString>;
654
+ stagedResultRef: Type.TString;
655
+ totalCount: Type.TOptional<Type.TInteger>;
656
+ }>>;
657
+ workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
658
+ state: Type.TLiteral<"active">;
659
+ environmentId: Type.TString;
660
+ activeOwnerEpoch: Type.TInteger;
661
+ workerBundleHash: Type.TString;
662
+ runner: Type.TOptional<Type.TObject<{
663
+ kind: Type.TLiteral<"device">;
664
+ status: Type.TUnion<[Type.TLiteral<"available">, Type.TLiteral<"offline">]>;
665
+ deviceId: Type.TOptional<Type.TString>;
666
+ }>>;
667
+ workerRuntimeInstall: Type.TOptional<Type.TObject<{
668
+ phase: Type.TUnion<[Type.TLiteral<"transferring">, Type.TLiteral<"installing">]>;
669
+ transferredBytes: Type.TInteger;
670
+ totalBytes: Type.TInteger;
671
+ startedAtMs: Type.TInteger;
672
+ updatedAtMs: Type.TInteger;
673
+ }>>;
674
+ }>;
675
+ readonly DrainingSessionPlacement: Type.TObject<{
619
676
  generation: Type.TInteger;
620
677
  createdAtMs: Type.TInteger;
621
678
  updatedAtMs: Type.TInteger;
622
679
  stateChangedAtMs: Type.TInteger;
623
- state: Type.TLiteral<"active">;
624
- }>;
625
- readonly DrainingSessionPlacement: Type.TObject<{
626
- workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
680
+ workspaceBaseManifestRef: Type.TString;
681
+ remoteWorkspaceDir: Type.TString;
682
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
683
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
627
684
  diskSpace: Type.TOptional<Type.TObject<{
628
685
  status: Type.TUnion<[Type.TLiteral<"ok">, Type.TLiteral<"warning">, Type.TLiteral<"critical">]>;
629
686
  availableBytes: Type.TInteger;
630
687
  totalBytes: Type.TInteger;
631
688
  observedAtMs: Type.TInteger;
632
689
  }>>;
633
- workspaceResultConflict: Type.TOptional<Type.TObject<{
634
- paths: Type.TArray<Type.TString>;
635
- stagedResultRef: Type.TString;
636
- totalCount: Type.TOptional<Type.TInteger>;
637
- }>>;
638
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
639
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
640
- workspaceBaseManifestRef: Type.TString;
641
- remoteWorkspaceDir: Type.TString;
642
- environmentId: Type.TString;
643
- activeOwnerEpoch: Type.TInteger;
644
- workerBundleHash: Type.TString;
645
690
  providerId: Type.TOptional<Type.TString>;
646
691
  profileId: Type.TOptional<Type.TString>;
647
692
  machine: Type.TOptional<Type.TObject<{
@@ -651,31 +696,58 @@ declare const SessionPlacementProtocolSchemas: {
651
696
  cpu: Type.TOptional<Type.TInteger>;
652
697
  memoryGb: Type.TOptional<Type.TInteger>;
653
698
  }>>;
699
+ workspaceResultConflict: Type.TOptional<Type.TObject<{
700
+ paths: Type.TArray<Type.TString>;
701
+ stagedResultRef: Type.TString;
702
+ totalCount: Type.TOptional<Type.TInteger>;
703
+ }>>;
704
+ workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
705
+ state: Type.TLiteral<"draining">;
706
+ environmentId: Type.TString;
707
+ activeOwnerEpoch: Type.TInteger;
708
+ workerBundleHash: Type.TString;
709
+ }>;
710
+ readonly ReconcilingSessionPlacement: Type.TObject<{
654
711
  generation: Type.TInteger;
655
712
  createdAtMs: Type.TInteger;
656
713
  updatedAtMs: Type.TInteger;
657
714
  stateChangedAtMs: Type.TInteger;
658
- state: Type.TLiteral<"draining">;
659
- }>;
660
- readonly ReconcilingSessionPlacement: Type.TObject<{
715
+ workspaceBaseManifestRef: Type.TString;
716
+ remoteWorkspaceDir: Type.TString;
717
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
718
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
661
719
  diskSpace: Type.TOptional<Type.TObject<{
662
720
  status: Type.TUnion<[Type.TLiteral<"ok">, Type.TLiteral<"warning">, Type.TLiteral<"critical">]>;
663
721
  availableBytes: Type.TInteger;
664
722
  totalBytes: Type.TInteger;
665
723
  observedAtMs: Type.TInteger;
666
724
  }>>;
725
+ providerId: Type.TOptional<Type.TString>;
726
+ profileId: Type.TOptional<Type.TString>;
727
+ machine: Type.TOptional<Type.TObject<{
728
+ class: Type.TOptional<Type.TString>;
729
+ os: Type.TOptional<Type.TString>;
730
+ osLabel: Type.TOptional<Type.TString>;
731
+ cpu: Type.TOptional<Type.TInteger>;
732
+ memoryGb: Type.TOptional<Type.TInteger>;
733
+ }>>;
667
734
  workspaceResultConflict: Type.TOptional<Type.TObject<{
668
735
  paths: Type.TArray<Type.TString>;
669
736
  stagedResultRef: Type.TString;
670
737
  totalCount: Type.TOptional<Type.TInteger>;
671
738
  }>>;
672
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
673
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
674
- workspaceBaseManifestRef: Type.TString;
675
- remoteWorkspaceDir: Type.TString;
739
+ state: Type.TLiteral<"reconciling">;
676
740
  environmentId: Type.TString;
677
741
  activeOwnerEpoch: Type.TInteger;
678
742
  workerBundleHash: Type.TString;
743
+ }>;
744
+ readonly ReclaimedSessionPlacement: Type.TObject<{
745
+ generation: Type.TInteger;
746
+ createdAtMs: Type.TInteger;
747
+ updatedAtMs: Type.TInteger;
748
+ stateChangedAtMs: Type.TInteger;
749
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
750
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
679
751
  providerId: Type.TOptional<Type.TString>;
680
752
  profileId: Type.TOptional<Type.TString>;
681
753
  machine: Type.TOptional<Type.TObject<{
@@ -685,27 +757,27 @@ declare const SessionPlacementProtocolSchemas: {
685
757
  cpu: Type.TOptional<Type.TInteger>;
686
758
  memoryGb: Type.TOptional<Type.TInteger>;
687
759
  }>>;
688
- generation: Type.TInteger;
689
- createdAtMs: Type.TInteger;
690
- updatedAtMs: Type.TInteger;
691
- stateChangedAtMs: Type.TInteger;
692
- state: Type.TLiteral<"reconciling">;
693
- }>;
694
- readonly ReclaimedSessionPlacement: Type.TObject<{
695
- terminalReason: Type.TOptional<Type.TString>;
696
- terminalAtMs: Type.TOptional<Type.TInteger>;
697
760
  workspaceResultConflict: Type.TOptional<Type.TObject<{
698
761
  paths: Type.TArray<Type.TString>;
699
762
  stagedResultRef: Type.TString;
700
763
  totalCount: Type.TOptional<Type.TInteger>;
701
764
  }>>;
702
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
703
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
704
765
  environmentId: Type.TOptional<Type.TString>;
705
766
  activeOwnerEpoch: Type.TOptional<Type.TInteger>;
706
767
  workspaceBaseManifestRef: Type.TOptional<Type.TString>;
707
768
  remoteWorkspaceDir: Type.TOptional<Type.TString>;
708
769
  workerBundleHash: Type.TOptional<Type.TString>;
770
+ terminalReason: Type.TOptional<Type.TString>;
771
+ terminalAtMs: Type.TOptional<Type.TInteger>;
772
+ state: Type.TLiteral<"reclaimed">;
773
+ }>;
774
+ readonly FailedSessionPlacement: Type.TObject<{
775
+ generation: Type.TInteger;
776
+ createdAtMs: Type.TInteger;
777
+ updatedAtMs: Type.TInteger;
778
+ stateChangedAtMs: Type.TInteger;
779
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
780
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
709
781
  providerId: Type.TOptional<Type.TString>;
710
782
  profileId: Type.TOptional<Type.TString>;
711
783
  machine: Type.TOptional<Type.TObject<{
@@ -715,43 +787,22 @@ declare const SessionPlacementProtocolSchemas: {
715
787
  cpu: Type.TOptional<Type.TInteger>;
716
788
  memoryGb: Type.TOptional<Type.TInteger>;
717
789
  }>>;
718
- generation: Type.TInteger;
719
- createdAtMs: Type.TInteger;
720
- updatedAtMs: Type.TInteger;
721
- stateChangedAtMs: Type.TInteger;
722
- state: Type.TLiteral<"reclaimed">;
723
- }>;
724
- readonly FailedSessionPlacement: Type.TObject<{
725
- recoveryError: Type.TString;
726
- recoveryAction: Type.TOptional<Type.TEnum<["restart", "stop-first"]>>;
727
- terminalReason: Type.TOptional<Type.TString>;
728
- terminalAtMs: Type.TOptional<Type.TInteger>;
729
790
  workspaceResultConflict: Type.TOptional<Type.TObject<{
730
791
  paths: Type.TArray<Type.TString>;
731
792
  stagedResultRef: Type.TString;
732
793
  totalCount: Type.TOptional<Type.TInteger>;
733
794
  }>>;
734
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
735
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
736
795
  environmentId: Type.TOptional<Type.TString>;
737
796
  activeOwnerEpoch: Type.TOptional<Type.TInteger>;
738
797
  workspaceBaseManifestRef: Type.TOptional<Type.TString>;
739
798
  remoteWorkspaceDir: Type.TOptional<Type.TString>;
740
799
  workerBundleHash: Type.TOptional<Type.TString>;
741
- providerId: Type.TOptional<Type.TString>;
742
- profileId: Type.TOptional<Type.TString>;
743
- machine: Type.TOptional<Type.TObject<{
744
- class: Type.TOptional<Type.TString>;
745
- os: Type.TOptional<Type.TString>;
746
- osLabel: Type.TOptional<Type.TString>;
747
- cpu: Type.TOptional<Type.TInteger>;
748
- memoryGb: Type.TOptional<Type.TInteger>;
749
- }>>;
750
- generation: Type.TInteger;
751
- createdAtMs: Type.TInteger;
752
- updatedAtMs: Type.TInteger;
753
- stateChangedAtMs: Type.TInteger;
800
+ terminalReason: Type.TOptional<Type.TString>;
801
+ terminalAtMs: Type.TOptional<Type.TInteger>;
754
802
  state: Type.TLiteral<"failed">;
803
+ recoveryError: Type.TString;
804
+ recoveryAction: Type.TOptional<Type.TEnum<["restart", "stop-first"]>>;
805
+ retryOnSend: Type.TOptional<Type.TLiteral<true>>;
755
806
  }>;
756
807
  readonly SessionPlacement: Type.TUnion<[Type.TObject<{
757
808
  generation: Type.TInteger;
@@ -766,24 +817,10 @@ declare const SessionPlacementProtocolSchemas: {
766
817
  stateChangedAtMs: Type.TInteger;
767
818
  state: Type.TLiteral<"requested">;
768
819
  }>, Type.TObject<{
769
- environmentId: Type.TOptional<Type.TString>;
770
- providerId: Type.TOptional<Type.TString>;
771
- profileId: Type.TOptional<Type.TString>;
772
- machine: Type.TOptional<Type.TObject<{
773
- class: Type.TOptional<Type.TString>;
774
- os: Type.TOptional<Type.TString>;
775
- osLabel: Type.TOptional<Type.TString>;
776
- cpu: Type.TOptional<Type.TInteger>;
777
- memoryGb: Type.TOptional<Type.TInteger>;
778
- }>>;
779
820
  generation: Type.TInteger;
780
821
  createdAtMs: Type.TInteger;
781
822
  updatedAtMs: Type.TInteger;
782
823
  stateChangedAtMs: Type.TInteger;
783
- state: Type.TLiteral<"provisioning">;
784
- }>, Type.TObject<{
785
- environmentId: Type.TString;
786
- workerBundleHash: Type.TString;
787
824
  providerId: Type.TOptional<Type.TString>;
788
825
  profileId: Type.TOptional<Type.TString>;
789
826
  machine: Type.TOptional<Type.TObject<{
@@ -793,16 +830,20 @@ declare const SessionPlacementProtocolSchemas: {
793
830
  cpu: Type.TOptional<Type.TInteger>;
794
831
  memoryGb: Type.TOptional<Type.TInteger>;
795
832
  }>>;
833
+ state: Type.TLiteral<"provisioning">;
834
+ environmentId: Type.TOptional<Type.TString>;
835
+ workerRuntimeInstall: Type.TOptional<Type.TObject<{
836
+ phase: Type.TUnion<[Type.TLiteral<"transferring">, Type.TLiteral<"installing">]>;
837
+ transferredBytes: Type.TInteger;
838
+ totalBytes: Type.TInteger;
839
+ startedAtMs: Type.TInteger;
840
+ updatedAtMs: Type.TInteger;
841
+ }>>;
842
+ }>, Type.TObject<{
796
843
  generation: Type.TInteger;
797
844
  createdAtMs: Type.TInteger;
798
845
  updatedAtMs: Type.TInteger;
799
846
  stateChangedAtMs: Type.TInteger;
800
- state: Type.TLiteral<"syncing">;
801
- }>, Type.TObject<{
802
- workspaceBaseManifestRef: Type.TString;
803
- remoteWorkspaceDir: Type.TString;
804
- environmentId: Type.TString;
805
- workerBundleHash: Type.TString;
806
847
  providerId: Type.TOptional<Type.TString>;
807
848
  profileId: Type.TOptional<Type.TString>;
808
849
  machine: Type.TOptional<Type.TObject<{
@@ -812,36 +853,16 @@ declare const SessionPlacementProtocolSchemas: {
812
853
  cpu: Type.TOptional<Type.TInteger>;
813
854
  memoryGb: Type.TOptional<Type.TInteger>;
814
855
  }>>;
815
- generation: Type.TInteger;
816
- createdAtMs: Type.TInteger;
817
- updatedAtMs: Type.TInteger;
818
- stateChangedAtMs: Type.TInteger;
819
- state: Type.TLiteral<"starting">;
820
- }>, Type.TObject<{
821
- runner: Type.TOptional<Type.TObject<{
822
- kind: Type.TLiteral<"device">;
823
- status: Type.TUnion<[Type.TLiteral<"available">, Type.TLiteral<"offline">]>;
824
- deviceId: Type.TOptional<Type.TString>;
825
- }>>;
826
- workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
827
- diskSpace: Type.TOptional<Type.TObject<{
828
- status: Type.TUnion<[Type.TLiteral<"ok">, Type.TLiteral<"warning">, Type.TLiteral<"critical">]>;
829
- availableBytes: Type.TInteger;
830
- totalBytes: Type.TInteger;
831
- observedAtMs: Type.TInteger;
832
- }>>;
833
- workspaceResultConflict: Type.TOptional<Type.TObject<{
834
- paths: Type.TArray<Type.TString>;
835
- stagedResultRef: Type.TString;
836
- totalCount: Type.TOptional<Type.TInteger>;
837
- }>>;
838
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
839
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
840
- workspaceBaseManifestRef: Type.TString;
841
- remoteWorkspaceDir: Type.TString;
856
+ state: Type.TLiteral<"syncing">;
842
857
  environmentId: Type.TString;
843
- activeOwnerEpoch: Type.TInteger;
844
858
  workerBundleHash: Type.TString;
859
+ }>, Type.TObject<{
860
+ generation: Type.TInteger;
861
+ createdAtMs: Type.TInteger;
862
+ updatedAtMs: Type.TInteger;
863
+ stateChangedAtMs: Type.TInteger;
864
+ workspaceBaseManifestRef: Type.TString;
865
+ remoteWorkspaceDir: Type.TString;
845
866
  providerId: Type.TOptional<Type.TString>;
846
867
  profileId: Type.TOptional<Type.TString>;
847
868
  machine: Type.TOptional<Type.TObject<{
@@ -851,31 +872,70 @@ declare const SessionPlacementProtocolSchemas: {
851
872
  cpu: Type.TOptional<Type.TInteger>;
852
873
  memoryGb: Type.TOptional<Type.TInteger>;
853
874
  }>>;
875
+ state: Type.TLiteral<"starting">;
876
+ environmentId: Type.TString;
877
+ workerBundleHash: Type.TString;
878
+ }>, Type.TObject<{
854
879
  generation: Type.TInteger;
855
880
  createdAtMs: Type.TInteger;
856
881
  updatedAtMs: Type.TInteger;
857
882
  stateChangedAtMs: Type.TInteger;
858
- state: Type.TLiteral<"active">;
859
- }>, Type.TObject<{
860
- workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
883
+ workspaceBaseManifestRef: Type.TString;
884
+ remoteWorkspaceDir: Type.TString;
885
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
886
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
861
887
  diskSpace: Type.TOptional<Type.TObject<{
862
888
  status: Type.TUnion<[Type.TLiteral<"ok">, Type.TLiteral<"warning">, Type.TLiteral<"critical">]>;
863
889
  availableBytes: Type.TInteger;
864
890
  totalBytes: Type.TInteger;
865
891
  observedAtMs: Type.TInteger;
866
892
  }>>;
893
+ providerId: Type.TOptional<Type.TString>;
894
+ profileId: Type.TOptional<Type.TString>;
895
+ machine: Type.TOptional<Type.TObject<{
896
+ class: Type.TOptional<Type.TString>;
897
+ os: Type.TOptional<Type.TString>;
898
+ osLabel: Type.TOptional<Type.TString>;
899
+ cpu: Type.TOptional<Type.TInteger>;
900
+ memoryGb: Type.TOptional<Type.TInteger>;
901
+ }>>;
867
902
  workspaceResultConflict: Type.TOptional<Type.TObject<{
868
903
  paths: Type.TArray<Type.TString>;
869
904
  stagedResultRef: Type.TString;
870
905
  totalCount: Type.TOptional<Type.TInteger>;
871
906
  }>>;
872
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
873
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
874
- workspaceBaseManifestRef: Type.TString;
875
- remoteWorkspaceDir: Type.TString;
907
+ workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
908
+ state: Type.TLiteral<"active">;
876
909
  environmentId: Type.TString;
877
910
  activeOwnerEpoch: Type.TInteger;
878
911
  workerBundleHash: Type.TString;
912
+ runner: Type.TOptional<Type.TObject<{
913
+ kind: Type.TLiteral<"device">;
914
+ status: Type.TUnion<[Type.TLiteral<"available">, Type.TLiteral<"offline">]>;
915
+ deviceId: Type.TOptional<Type.TString>;
916
+ }>>;
917
+ workerRuntimeInstall: Type.TOptional<Type.TObject<{
918
+ phase: Type.TUnion<[Type.TLiteral<"transferring">, Type.TLiteral<"installing">]>;
919
+ transferredBytes: Type.TInteger;
920
+ totalBytes: Type.TInteger;
921
+ startedAtMs: Type.TInteger;
922
+ updatedAtMs: Type.TInteger;
923
+ }>>;
924
+ }>, Type.TObject<{
925
+ generation: Type.TInteger;
926
+ createdAtMs: Type.TInteger;
927
+ updatedAtMs: Type.TInteger;
928
+ stateChangedAtMs: Type.TInteger;
929
+ workspaceBaseManifestRef: Type.TString;
930
+ remoteWorkspaceDir: Type.TString;
931
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
932
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
933
+ diskSpace: Type.TOptional<Type.TObject<{
934
+ status: Type.TUnion<[Type.TLiteral<"ok">, Type.TLiteral<"warning">, Type.TLiteral<"critical">]>;
935
+ availableBytes: Type.TInteger;
936
+ totalBytes: Type.TInteger;
937
+ observedAtMs: Type.TInteger;
938
+ }>>;
879
939
  providerId: Type.TOptional<Type.TString>;
880
940
  profileId: Type.TOptional<Type.TString>;
881
941
  machine: Type.TOptional<Type.TObject<{
@@ -885,30 +945,56 @@ declare const SessionPlacementProtocolSchemas: {
885
945
  cpu: Type.TOptional<Type.TInteger>;
886
946
  memoryGb: Type.TOptional<Type.TInteger>;
887
947
  }>>;
948
+ workspaceResultConflict: Type.TOptional<Type.TObject<{
949
+ paths: Type.TArray<Type.TString>;
950
+ stagedResultRef: Type.TString;
951
+ totalCount: Type.TOptional<Type.TInteger>;
952
+ }>>;
953
+ workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
954
+ state: Type.TLiteral<"draining">;
955
+ environmentId: Type.TString;
956
+ activeOwnerEpoch: Type.TInteger;
957
+ workerBundleHash: Type.TString;
958
+ }>, Type.TObject<{
888
959
  generation: Type.TInteger;
889
960
  createdAtMs: Type.TInteger;
890
961
  updatedAtMs: Type.TInteger;
891
962
  stateChangedAtMs: Type.TInteger;
892
- state: Type.TLiteral<"draining">;
893
- }>, Type.TObject<{
963
+ workspaceBaseManifestRef: Type.TString;
964
+ remoteWorkspaceDir: Type.TString;
965
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
966
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
894
967
  diskSpace: Type.TOptional<Type.TObject<{
895
968
  status: Type.TUnion<[Type.TLiteral<"ok">, Type.TLiteral<"warning">, Type.TLiteral<"critical">]>;
896
969
  availableBytes: Type.TInteger;
897
970
  totalBytes: Type.TInteger;
898
971
  observedAtMs: Type.TInteger;
899
972
  }>>;
973
+ providerId: Type.TOptional<Type.TString>;
974
+ profileId: Type.TOptional<Type.TString>;
975
+ machine: Type.TOptional<Type.TObject<{
976
+ class: Type.TOptional<Type.TString>;
977
+ os: Type.TOptional<Type.TString>;
978
+ osLabel: Type.TOptional<Type.TString>;
979
+ cpu: Type.TOptional<Type.TInteger>;
980
+ memoryGb: Type.TOptional<Type.TInteger>;
981
+ }>>;
900
982
  workspaceResultConflict: Type.TOptional<Type.TObject<{
901
983
  paths: Type.TArray<Type.TString>;
902
984
  stagedResultRef: Type.TString;
903
985
  totalCount: Type.TOptional<Type.TInteger>;
904
986
  }>>;
905
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
906
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
907
- workspaceBaseManifestRef: Type.TString;
908
- remoteWorkspaceDir: Type.TString;
987
+ state: Type.TLiteral<"reconciling">;
909
988
  environmentId: Type.TString;
910
989
  activeOwnerEpoch: Type.TInteger;
911
990
  workerBundleHash: Type.TString;
991
+ }>, Type.TObject<{
992
+ generation: Type.TInteger;
993
+ createdAtMs: Type.TInteger;
994
+ updatedAtMs: Type.TInteger;
995
+ stateChangedAtMs: Type.TInteger;
996
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
997
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
912
998
  providerId: Type.TOptional<Type.TString>;
913
999
  profileId: Type.TOptional<Type.TString>;
914
1000
  machine: Type.TOptional<Type.TObject<{
@@ -918,26 +1004,26 @@ declare const SessionPlacementProtocolSchemas: {
918
1004
  cpu: Type.TOptional<Type.TInteger>;
919
1005
  memoryGb: Type.TOptional<Type.TInteger>;
920
1006
  }>>;
921
- generation: Type.TInteger;
922
- createdAtMs: Type.TInteger;
923
- updatedAtMs: Type.TInteger;
924
- stateChangedAtMs: Type.TInteger;
925
- state: Type.TLiteral<"reconciling">;
926
- }>, Type.TObject<{
927
- terminalReason: Type.TOptional<Type.TString>;
928
- terminalAtMs: Type.TOptional<Type.TInteger>;
929
1007
  workspaceResultConflict: Type.TOptional<Type.TObject<{
930
1008
  paths: Type.TArray<Type.TString>;
931
1009
  stagedResultRef: Type.TString;
932
1010
  totalCount: Type.TOptional<Type.TInteger>;
933
1011
  }>>;
934
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
935
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
936
1012
  environmentId: Type.TOptional<Type.TString>;
937
1013
  activeOwnerEpoch: Type.TOptional<Type.TInteger>;
938
1014
  workspaceBaseManifestRef: Type.TOptional<Type.TString>;
939
1015
  remoteWorkspaceDir: Type.TOptional<Type.TString>;
940
1016
  workerBundleHash: Type.TOptional<Type.TString>;
1017
+ terminalReason: Type.TOptional<Type.TString>;
1018
+ terminalAtMs: Type.TOptional<Type.TInteger>;
1019
+ state: Type.TLiteral<"reclaimed">;
1020
+ }>, Type.TObject<{
1021
+ generation: Type.TInteger;
1022
+ createdAtMs: Type.TInteger;
1023
+ updatedAtMs: Type.TInteger;
1024
+ stateChangedAtMs: Type.TInteger;
1025
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
1026
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
941
1027
  providerId: Type.TOptional<Type.TString>;
942
1028
  profileId: Type.TOptional<Type.TString>;
943
1029
  machine: Type.TOptional<Type.TObject<{
@@ -947,42 +1033,22 @@ declare const SessionPlacementProtocolSchemas: {
947
1033
  cpu: Type.TOptional<Type.TInteger>;
948
1034
  memoryGb: Type.TOptional<Type.TInteger>;
949
1035
  }>>;
950
- generation: Type.TInteger;
951
- createdAtMs: Type.TInteger;
952
- updatedAtMs: Type.TInteger;
953
- stateChangedAtMs: Type.TInteger;
954
- state: Type.TLiteral<"reclaimed">;
955
- }>, Type.TObject<{
956
- recoveryError: Type.TString;
957
- recoveryAction: Type.TOptional<Type.TEnum<["restart", "stop-first"]>>;
958
- terminalReason: Type.TOptional<Type.TString>;
959
- terminalAtMs: Type.TOptional<Type.TInteger>;
960
1036
  workspaceResultConflict: Type.TOptional<Type.TObject<{
961
1037
  paths: Type.TArray<Type.TString>;
962
1038
  stagedResultRef: Type.TString;
963
1039
  totalCount: Type.TOptional<Type.TInteger>;
964
1040
  }>>;
965
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
966
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
967
1041
  environmentId: Type.TOptional<Type.TString>;
968
1042
  activeOwnerEpoch: Type.TOptional<Type.TInteger>;
969
1043
  workspaceBaseManifestRef: Type.TOptional<Type.TString>;
970
1044
  remoteWorkspaceDir: Type.TOptional<Type.TString>;
971
1045
  workerBundleHash: Type.TOptional<Type.TString>;
972
- providerId: Type.TOptional<Type.TString>;
973
- profileId: Type.TOptional<Type.TString>;
974
- machine: Type.TOptional<Type.TObject<{
975
- class: Type.TOptional<Type.TString>;
976
- os: Type.TOptional<Type.TString>;
977
- osLabel: Type.TOptional<Type.TString>;
978
- cpu: Type.TOptional<Type.TInteger>;
979
- memoryGb: Type.TOptional<Type.TInteger>;
980
- }>>;
981
- generation: Type.TInteger;
982
- createdAtMs: Type.TInteger;
983
- updatedAtMs: Type.TInteger;
984
- stateChangedAtMs: Type.TInteger;
1046
+ terminalReason: Type.TOptional<Type.TString>;
1047
+ terminalAtMs: Type.TOptional<Type.TInteger>;
985
1048
  state: Type.TLiteral<"failed">;
1049
+ recoveryError: Type.TString;
1050
+ recoveryAction: Type.TOptional<Type.TEnum<["restart", "stop-first"]>>;
1051
+ retryOnSend: Type.TOptional<Type.TLiteral<true>>;
986
1052
  }>]>;
987
1053
  readonly SessionsDispatchParams: Type.TObject<{
988
1054
  key: Type.TString;
@@ -998,30 +1064,20 @@ declare const SessionPlacementProtocolSchemas: {
998
1064
  key: Type.TString;
999
1065
  sessionId: Type.TString;
1000
1066
  placement: Type.TObject<{
1001
- runner: Type.TOptional<Type.TObject<{
1002
- kind: Type.TLiteral<"device">;
1003
- status: Type.TUnion<[Type.TLiteral<"available">, Type.TLiteral<"offline">]>;
1004
- deviceId: Type.TOptional<Type.TString>;
1005
- }>>;
1006
- workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
1067
+ generation: Type.TInteger;
1068
+ createdAtMs: Type.TInteger;
1069
+ updatedAtMs: Type.TInteger;
1070
+ stateChangedAtMs: Type.TInteger;
1071
+ workspaceBaseManifestRef: Type.TString;
1072
+ remoteWorkspaceDir: Type.TString;
1073
+ lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
1074
+ lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
1007
1075
  diskSpace: Type.TOptional<Type.TObject<{
1008
1076
  status: Type.TUnion<[Type.TLiteral<"ok">, Type.TLiteral<"warning">, Type.TLiteral<"critical">]>;
1009
1077
  availableBytes: Type.TInteger;
1010
1078
  totalBytes: Type.TInteger;
1011
1079
  observedAtMs: Type.TInteger;
1012
1080
  }>>;
1013
- workspaceResultConflict: Type.TOptional<Type.TObject<{
1014
- paths: Type.TArray<Type.TString>;
1015
- stagedResultRef: Type.TString;
1016
- totalCount: Type.TOptional<Type.TInteger>;
1017
- }>>;
1018
- lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
1019
- lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
1020
- workspaceBaseManifestRef: Type.TString;
1021
- remoteWorkspaceDir: Type.TString;
1022
- environmentId: Type.TString;
1023
- activeOwnerEpoch: Type.TInteger;
1024
- workerBundleHash: Type.TString;
1025
1081
  providerId: Type.TOptional<Type.TString>;
1026
1082
  profileId: Type.TOptional<Type.TString>;
1027
1083
  machine: Type.TOptional<Type.TObject<{
@@ -1031,11 +1087,28 @@ declare const SessionPlacementProtocolSchemas: {
1031
1087
  cpu: Type.TOptional<Type.TInteger>;
1032
1088
  memoryGb: Type.TOptional<Type.TInteger>;
1033
1089
  }>>;
1034
- generation: Type.TInteger;
1035
- createdAtMs: Type.TInteger;
1036
- updatedAtMs: Type.TInteger;
1037
- stateChangedAtMs: Type.TInteger;
1090
+ workspaceResultConflict: Type.TOptional<Type.TObject<{
1091
+ paths: Type.TArray<Type.TString>;
1092
+ stagedResultRef: Type.TString;
1093
+ totalCount: Type.TOptional<Type.TInteger>;
1094
+ }>>;
1095
+ workspaceResultReconciling: Type.TOptional<Type.TLiteral<true>>;
1038
1096
  state: Type.TLiteral<"active">;
1097
+ environmentId: Type.TString;
1098
+ activeOwnerEpoch: Type.TInteger;
1099
+ workerBundleHash: Type.TString;
1100
+ runner: Type.TOptional<Type.TObject<{
1101
+ kind: Type.TLiteral<"device">;
1102
+ status: Type.TUnion<[Type.TLiteral<"available">, Type.TLiteral<"offline">]>;
1103
+ deviceId: Type.TOptional<Type.TString>;
1104
+ }>>;
1105
+ workerRuntimeInstall: Type.TOptional<Type.TObject<{
1106
+ phase: Type.TUnion<[Type.TLiteral<"transferring">, Type.TLiteral<"installing">]>;
1107
+ transferredBytes: Type.TInteger;
1108
+ totalBytes: Type.TInteger;
1109
+ startedAtMs: Type.TInteger;
1110
+ updatedAtMs: Type.TInteger;
1111
+ }>>;
1039
1112
  }>;
1040
1113
  }>;
1041
1114
  readonly SessionsReclaimParams: Type.TObject<{
@@ -1052,20 +1125,12 @@ declare const SessionPlacementProtocolSchemas: {
1052
1125
  stateChangedAtMs: Type.TInteger;
1053
1126
  state: Type.TLiteral<"local">;
1054
1127
  }>, Type.TObject<{
1055
- terminalReason: Type.TOptional<Type.TString>;
1056
- terminalAtMs: Type.TOptional<Type.TInteger>;
1057
- workspaceResultConflict: Type.TOptional<Type.TObject<{
1058
- paths: Type.TArray<Type.TString>;
1059
- stagedResultRef: Type.TString;
1060
- totalCount: Type.TOptional<Type.TInteger>;
1061
- }>>;
1128
+ generation: Type.TInteger;
1129
+ createdAtMs: Type.TInteger;
1130
+ updatedAtMs: Type.TInteger;
1131
+ stateChangedAtMs: Type.TInteger;
1062
1132
  lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
1063
1133
  lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
1064
- environmentId: Type.TOptional<Type.TString>;
1065
- activeOwnerEpoch: Type.TOptional<Type.TInteger>;
1066
- workspaceBaseManifestRef: Type.TOptional<Type.TString>;
1067
- remoteWorkspaceDir: Type.TOptional<Type.TString>;
1068
- workerBundleHash: Type.TOptional<Type.TString>;
1069
1134
  providerId: Type.TOptional<Type.TString>;
1070
1135
  profileId: Type.TOptional<Type.TString>;
1071
1136
  machine: Type.TOptional<Type.TObject<{
@@ -1075,10 +1140,18 @@ declare const SessionPlacementProtocolSchemas: {
1075
1140
  cpu: Type.TOptional<Type.TInteger>;
1076
1141
  memoryGb: Type.TOptional<Type.TInteger>;
1077
1142
  }>>;
1078
- generation: Type.TInteger;
1079
- createdAtMs: Type.TInteger;
1080
- updatedAtMs: Type.TInteger;
1081
- stateChangedAtMs: Type.TInteger;
1143
+ workspaceResultConflict: Type.TOptional<Type.TObject<{
1144
+ paths: Type.TArray<Type.TString>;
1145
+ stagedResultRef: Type.TString;
1146
+ totalCount: Type.TOptional<Type.TInteger>;
1147
+ }>>;
1148
+ environmentId: Type.TOptional<Type.TString>;
1149
+ activeOwnerEpoch: Type.TOptional<Type.TInteger>;
1150
+ workspaceBaseManifestRef: Type.TOptional<Type.TString>;
1151
+ remoteWorkspaceDir: Type.TOptional<Type.TString>;
1152
+ workerBundleHash: Type.TOptional<Type.TString>;
1153
+ terminalReason: Type.TOptional<Type.TString>;
1154
+ terminalAtMs: Type.TOptional<Type.TInteger>;
1082
1155
  state: Type.TLiteral<"reclaimed">;
1083
1156
  }>]>;
1084
1157
  readonly SessionsReclaimResult: Type.TObject<{
@@ -1092,20 +1165,12 @@ declare const SessionPlacementProtocolSchemas: {
1092
1165
  stateChangedAtMs: Type.TInteger;
1093
1166
  state: Type.TLiteral<"local">;
1094
1167
  }>, Type.TObject<{
1095
- terminalReason: Type.TOptional<Type.TString>;
1096
- terminalAtMs: Type.TOptional<Type.TInteger>;
1097
- workspaceResultConflict: Type.TOptional<Type.TObject<{
1098
- paths: Type.TArray<Type.TString>;
1099
- stagedResultRef: Type.TString;
1100
- totalCount: Type.TOptional<Type.TInteger>;
1101
- }>>;
1168
+ generation: Type.TInteger;
1169
+ createdAtMs: Type.TInteger;
1170
+ updatedAtMs: Type.TInteger;
1171
+ stateChangedAtMs: Type.TInteger;
1102
1172
  lastTranscriptAckCursor: Type.TOptional<Type.TInteger>;
1103
1173
  lastLiveEventAckCursor: Type.TOptional<Type.TInteger>;
1104
- environmentId: Type.TOptional<Type.TString>;
1105
- activeOwnerEpoch: Type.TOptional<Type.TInteger>;
1106
- workspaceBaseManifestRef: Type.TOptional<Type.TString>;
1107
- remoteWorkspaceDir: Type.TOptional<Type.TString>;
1108
- workerBundleHash: Type.TOptional<Type.TString>;
1109
1174
  providerId: Type.TOptional<Type.TString>;
1110
1175
  profileId: Type.TOptional<Type.TString>;
1111
1176
  machine: Type.TOptional<Type.TObject<{
@@ -1115,10 +1180,18 @@ declare const SessionPlacementProtocolSchemas: {
1115
1180
  cpu: Type.TOptional<Type.TInteger>;
1116
1181
  memoryGb: Type.TOptional<Type.TInteger>;
1117
1182
  }>>;
1118
- generation: Type.TInteger;
1119
- createdAtMs: Type.TInteger;
1120
- updatedAtMs: Type.TInteger;
1121
- stateChangedAtMs: Type.TInteger;
1183
+ workspaceResultConflict: Type.TOptional<Type.TObject<{
1184
+ paths: Type.TArray<Type.TString>;
1185
+ stagedResultRef: Type.TString;
1186
+ totalCount: Type.TOptional<Type.TInteger>;
1187
+ }>>;
1188
+ environmentId: Type.TOptional<Type.TString>;
1189
+ activeOwnerEpoch: Type.TOptional<Type.TInteger>;
1190
+ workspaceBaseManifestRef: Type.TOptional<Type.TString>;
1191
+ remoteWorkspaceDir: Type.TOptional<Type.TString>;
1192
+ workerBundleHash: Type.TOptional<Type.TString>;
1193
+ terminalReason: Type.TOptional<Type.TString>;
1194
+ terminalAtMs: Type.TOptional<Type.TInteger>;
1122
1195
  state: Type.TLiteral<"reclaimed">;
1123
1196
  }>]>;
1124
1197
  }>;
@@ -1204,6 +1277,7 @@ declare const SessionPlacementProtocolSchemas: {
1204
1277
  };
1205
1278
  type SessionPlacement = Static<typeof SessionPlacementSchema>;
1206
1279
  type SessionPlacementDiskSpace = Static<typeof SessionPlacementDiskSpaceSchema>;
1280
+ type SessionPlacementWorkerRuntimeInstall = Static<typeof SessionPlacementWorkerRuntimeInstallSchema>;
1207
1281
  type SessionPlacementRunner = Static<typeof SessionPlacementRunnerSchema>;
1208
1282
  type SessionPlacementMachine = Static<typeof SessionPlacementMachineSchema>;
1209
1283
  type SessionsDispatchParams = Static<typeof SessionsDispatchParamsSchema>;
@@ -1219,7 +1293,7 @@ type SessionMovePlacementState = Static<typeof SessionMovePlacementStateSchema>;
1219
1293
  type SessionMovePlacement = Static<typeof SessionMovePlacementSchema>;
1220
1294
  type SessionsMoveResult = Static<typeof SessionsMoveResultSchema>;
1221
1295
  //#endregion
1222
- //#region src/gateway-error-details.d.ts
1296
+ //#region packages/gateway-protocol/src/gateway-error-details.d.ts
1223
1297
  /** Display projection for an assistant failure without visible reply content. */
1224
1298
  declare const GATEWAY_ASSISTANT_ERROR_FALLBACK_TEXT = "The agent run failed before producing a reply.";
1225
1299
  /** Gateway JSON-RPC style error codes shared by clients and server handlers. */
@@ -1257,6 +1331,7 @@ declare const GatewayErrorDetailCodes: {
1257
1331
  readonly GITHUB_PUBLICATION_SELECTION_REJECTED: "GITHUB_PUBLICATION_SELECTION_REJECTED";
1258
1332
  readonly SESSION_WORKSPACE_RECOVERY_REQUIRED: "SESSION_WORKSPACE_RECOVERY_REQUIRED";
1259
1333
  readonly TASK_WORKTREE_SOURCE_REQUIRED: "TASK_WORKTREE_SOURCE_REQUIRED";
1334
+ readonly TASK_HISTORY_PREVIEW_CAPACITY: "TASK_HISTORY_PREVIEW_CAPACITY";
1260
1335
  };
1261
1336
  /** Missing cron automation identified by its exact store key. */
1262
1337
  type CronJobNotFoundErrorDetails = {
@@ -1324,7 +1399,9 @@ type TaskWorktreeSourceRequiredErrorDetails = {
1324
1399
  cwd: string;
1325
1400
  };
1326
1401
  /** Structured details emitted by method-level failures. */
1327
- type GatewayErrorDetails = CronJobNotFoundErrorDetails | MissingScopeErrorDetails | McpAppViewExpiredErrorDetails | OutboundDeliveryQueuedErrorDetails | UserPrefsLimitExceededErrorDetails | SkillProposalRevisionChangedErrorDetails | ProjectCloneErrorDetails | UnknownAgentIdErrorDetails | WizardNotFoundErrorDetails | SetupAdmissionBusyErrorDetails | GitHubPublicationSelectionRejectedErrorDetails | SessionWorkspaceRecoveryRequiredErrorDetails | TaskWorktreeSourceRequiredErrorDetails;
1402
+ type GatewayErrorDetails = CronJobNotFoundErrorDetails | MissingScopeErrorDetails | McpAppViewExpiredErrorDetails | OutboundDeliveryQueuedErrorDetails | UserPrefsLimitExceededErrorDetails | SkillProposalRevisionChangedErrorDetails | ProjectCloneErrorDetails | UnknownAgentIdErrorDetails | WizardNotFoundErrorDetails | SetupAdmissionBusyErrorDetails | GitHubPublicationSelectionRejectedErrorDetails | SessionWorkspaceRecoveryRequiredErrorDetails | TaskWorktreeSourceRequiredErrorDetails | {
1403
+ code: typeof GatewayErrorDetailCodes.TASK_HISTORY_PREVIEW_CAPACITY;
1404
+ };
1328
1405
  declare function readGitHubPublicationSelectionRejectedError(error: unknown): GitHubPublicationSelectionRejectedErrorDetails | null;
1329
1406
  /** Reads a typed cron lookup miss without parsing operator-facing prose. */
1330
1407
  declare function readCronJobNotFoundError(error: unknown): CronJobNotFoundErrorDetails | null;
@@ -1344,4 +1421,4 @@ declare function isMcpAppViewExpiredError(error: unknown): boolean;
1344
1421
  */
1345
1422
  declare function readMissingScopeError(error: unknown): MissingScopeErrorDetails | null;
1346
1423
  //#endregion
1347
- export { SessionsDispatchResultSchema as $, SessionMoveGatewayTargetSchema as A, SessionPlacementDiskSpaceSchema as B, readGitHubPublicationSelectionRejectedError as C, SessionMoveDeviceTargetSchema as D, readSkillProposalRevisionChangedError as E, SessionMoveProfileTargetSchema as F, SessionPlacementProtocolSchemas as G, SessionPlacementMachineSchema as H, SessionMoveTarget as I, SessionPlacementSchema as J, SessionPlacementRunner as K, SessionMoveTargetSchema as L, SessionMovePlacementSchema as M, SessionMovePlacementState as N, SessionMoveExpectedSource as O, SessionMovePlacementStateSchema as P, SessionsDispatchResult as Q, SessionPlacement as R, readCronJobNotFoundError as S, readMissingScopeErrorDetails as T, SessionPlacementMove as U, SessionPlacementMachine as V, SessionPlacementMoveSchema as W, SessionsDispatchParams as X, SessionPlacementStateSchema as Y, SessionsDispatchParamsSchema as Z, UnknownAgentIdErrorDetails as _, GatewayErrorDetailCodes as a, SessionsReclaimParamsSchema as at, buildSkillProposalRevisionChangedErrorDetails as b, McpAppViewExpiredErrorDetails as c, SessionsReclaimResultPlacementSchema as ct, ProjectCloneErrorDetails as d, SessionsMoveParams as et, ProjectCloneFailureCause as f, TaskWorktreeSourceRequiredErrorDetails as g, SkillProposalRevisionChangedErrorDetails as h, GATEWAY_ASSISTANT_ERROR_FALLBACK_TEXT as i, SessionsReclaimParams as it, SessionMovePlacement as j, SessionMoveExpectedSourceSchema as k, MissingScopeErrorDetails as l, SessionsReclaimResultSchema as lt, SetupAdmissionBusyErrorDetails as m, ErrorCode as n, SessionsMoveResult as nt, GatewayErrorDetails as o, SessionsReclaimResult as ot, SessionWorkspaceRecoveryRequiredErrorDetails as p, SessionPlacementRunnerSchema as q, ErrorCodes as r, SessionsMoveResultSchema as rt, GitHubPublicationSelectionRejectedErrorDetails as s, SessionsReclaimResultPlacement as st, CronJobNotFoundErrorDetails as t, SessionsMoveParamsSchema as tt, OutboundDeliveryQueuedErrorDetails as u, UserPrefsLimitExceededErrorDetails as v, readMissingScopeError as w, isMcpAppViewExpiredError as x, WizardNotFoundErrorDetails as y, SessionPlacementDiskSpace as z };
1424
+ export { SessionsDispatchParamsSchema as $, SessionMoveGatewayTargetSchema as A, SessionPlacementDiskSpaceSchema as B, readGitHubPublicationSelectionRejectedError as C, SessionMoveDeviceTargetSchema as D, readSkillProposalRevisionChangedError as E, SessionMoveProfileTargetSchema as F, SessionPlacementProtocolSchemas as G, SessionPlacementMachineSchema as H, SessionMoveTarget as I, SessionPlacementSchema as J, SessionPlacementRunner as K, SessionMoveTargetSchema as L, SessionMovePlacementSchema as M, SessionMovePlacementState as N, SessionMoveExpectedSource as O, SessionMovePlacementStateSchema as P, SessionsDispatchParams as Q, SessionPlacement as R, readCronJobNotFoundError as S, readMissingScopeErrorDetails as T, SessionPlacementMove as U, SessionPlacementMachine as V, SessionPlacementMoveSchema as W, SessionPlacementWorkerRuntimeInstall as X, SessionPlacementStateSchema as Y, SessionPlacementWorkerRuntimeInstallSchema as Z, UnknownAgentIdErrorDetails as _, GatewayErrorDetailCodes as a, SessionsMoveResultSchema as at, buildSkillProposalRevisionChangedErrorDetails as b, McpAppViewExpiredErrorDetails as c, SessionsReclaimResult as ct, ProjectCloneErrorDetails as d, SessionsReclaimResultSchema as dt, SessionsDispatchResult as et, ProjectCloneFailureCause as f, TaskWorktreeSourceRequiredErrorDetails as g, SkillProposalRevisionChangedErrorDetails as h, GATEWAY_ASSISTANT_ERROR_FALLBACK_TEXT as i, SessionsMoveResult as it, SessionMovePlacement as j, SessionMoveExpectedSourceSchema as k, MissingScopeErrorDetails as l, SessionsReclaimResultPlacement as lt, SetupAdmissionBusyErrorDetails as m, ErrorCode as n, SessionsMoveParams as nt, GatewayErrorDetails as o, SessionsReclaimParams as ot, SessionWorkspaceRecoveryRequiredErrorDetails as p, SessionPlacementRunnerSchema as q, ErrorCodes as r, SessionsMoveParamsSchema as rt, GitHubPublicationSelectionRejectedErrorDetails as s, SessionsReclaimParamsSchema as st, CronJobNotFoundErrorDetails as t, SessionsDispatchResultSchema as tt, OutboundDeliveryQueuedErrorDetails as u, SessionsReclaimResultPlacementSchema as ut, UserPrefsLimitExceededErrorDetails as v, readMissingScopeError as w, isMcpAppViewExpiredError as x, WizardNotFoundErrorDetails as y, SessionPlacementDiskSpace as z };