@layernorm/overlay-agent-bridge-protocol 0.3.9 → 0.3.11

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/index.d.ts CHANGED
@@ -22,11 +22,63 @@ export declare const filesystemGrantSchema: z.ZodDiscriminatedUnion<"mode", [z.Z
22
22
  mode: "all_user_files";
23
23
  }>]>;
24
24
  export type FilesystemGrant = z.infer<typeof filesystemGrantSchema>;
25
+ /** Negotiated extension: emitted only after remoteLifecycleVersion=2 enrollment. */
26
+ export declare const executionFenceSchema: z.ZodObject<{
27
+ attemptId: z.ZodString;
28
+ generation: z.ZodNumber;
29
+ hostBootId: z.ZodOptional<z.ZodString>;
30
+ }, "strict", z.ZodTypeAny, {
31
+ attemptId: string;
32
+ generation: number;
33
+ hostBootId?: string | undefined;
34
+ }, {
35
+ attemptId: string;
36
+ generation: number;
37
+ hostBootId?: string | undefined;
38
+ }>;
39
+ export declare const recoveryCapabilitiesSchema: z.ZodObject<{
40
+ liveReattachment: z.ZodBoolean;
41
+ sessionLoading: z.ZodBoolean;
42
+ interruptedTurnContinuation: z.ZodBoolean;
43
+ approvalRestoration: z.ZodBoolean;
44
+ providerCheckpoints: z.ZodBoolean;
45
+ }, "strict", z.ZodTypeAny, {
46
+ liveReattachment: boolean;
47
+ sessionLoading: boolean;
48
+ interruptedTurnContinuation: boolean;
49
+ approvalRestoration: boolean;
50
+ providerCheckpoints: boolean;
51
+ }, {
52
+ liveReattachment: boolean;
53
+ sessionLoading: boolean;
54
+ interruptedTurnContinuation: boolean;
55
+ approvalRestoration: boolean;
56
+ providerCheckpoints: boolean;
57
+ }>;
25
58
  export declare const adapterCapabilitySchema: z.ZodObject<{
26
59
  id: z.ZodString;
27
60
  displayName: z.ZodString;
28
61
  protocol: z.ZodEnum<["fake", "acp", "eve", "native"]>;
29
62
  version: z.ZodOptional<z.ZodString>;
63
+ recovery: z.ZodOptional<z.ZodObject<{
64
+ liveReattachment: z.ZodBoolean;
65
+ sessionLoading: z.ZodBoolean;
66
+ interruptedTurnContinuation: z.ZodBoolean;
67
+ approvalRestoration: z.ZodBoolean;
68
+ providerCheckpoints: z.ZodBoolean;
69
+ }, "strict", z.ZodTypeAny, {
70
+ liveReattachment: boolean;
71
+ sessionLoading: boolean;
72
+ interruptedTurnContinuation: boolean;
73
+ approvalRestoration: boolean;
74
+ providerCheckpoints: boolean;
75
+ }, {
76
+ liveReattachment: boolean;
77
+ sessionLoading: boolean;
78
+ interruptedTurnContinuation: boolean;
79
+ approvalRestoration: boolean;
80
+ providerCheckpoints: boolean;
81
+ }>>;
30
82
  supports: z.ZodObject<{
31
83
  prompt: z.ZodBoolean;
32
84
  approval: z.ZodBoolean;
@@ -54,6 +106,13 @@ export declare const adapterCapabilitySchema: z.ZodObject<{
54
106
  resume: boolean;
55
107
  };
56
108
  version?: string | undefined;
109
+ recovery?: {
110
+ liveReattachment: boolean;
111
+ sessionLoading: boolean;
112
+ interruptedTurnContinuation: boolean;
113
+ approvalRestoration: boolean;
114
+ providerCheckpoints: boolean;
115
+ } | undefined;
57
116
  }, {
58
117
  id: string;
59
118
  displayName: string;
@@ -65,10 +124,18 @@ export declare const adapterCapabilitySchema: z.ZodObject<{
65
124
  resume: boolean;
66
125
  };
67
126
  version?: string | undefined;
127
+ recovery?: {
128
+ liveReattachment: boolean;
129
+ sessionLoading: boolean;
130
+ interruptedTurnContinuation: boolean;
131
+ approvalRestoration: boolean;
132
+ providerCheckpoints: boolean;
133
+ } | undefined;
68
134
  }>;
69
135
  export type AdapterCapability = z.infer<typeof adapterCapabilitySchema>;
70
136
  export declare const hostCapabilitiesSchema: z.ZodObject<{
71
137
  protocolVersion: z.ZodLiteral<1>;
138
+ remoteLifecycleVersion: z.ZodOptional<z.ZodLiteral<2>>;
72
139
  hostVersion: z.ZodString;
73
140
  platform: z.ZodString;
74
141
  adapters: z.ZodArray<z.ZodObject<{
@@ -76,6 +143,25 @@ export declare const hostCapabilitiesSchema: z.ZodObject<{
76
143
  displayName: z.ZodString;
77
144
  protocol: z.ZodEnum<["fake", "acp", "eve", "native"]>;
78
145
  version: z.ZodOptional<z.ZodString>;
146
+ recovery: z.ZodOptional<z.ZodObject<{
147
+ liveReattachment: z.ZodBoolean;
148
+ sessionLoading: z.ZodBoolean;
149
+ interruptedTurnContinuation: z.ZodBoolean;
150
+ approvalRestoration: z.ZodBoolean;
151
+ providerCheckpoints: z.ZodBoolean;
152
+ }, "strict", z.ZodTypeAny, {
153
+ liveReattachment: boolean;
154
+ sessionLoading: boolean;
155
+ interruptedTurnContinuation: boolean;
156
+ approvalRestoration: boolean;
157
+ providerCheckpoints: boolean;
158
+ }, {
159
+ liveReattachment: boolean;
160
+ sessionLoading: boolean;
161
+ interruptedTurnContinuation: boolean;
162
+ approvalRestoration: boolean;
163
+ providerCheckpoints: boolean;
164
+ }>>;
79
165
  supports: z.ZodObject<{
80
166
  prompt: z.ZodBoolean;
81
167
  approval: z.ZodBoolean;
@@ -103,6 +189,13 @@ export declare const hostCapabilitiesSchema: z.ZodObject<{
103
189
  resume: boolean;
104
190
  };
105
191
  version?: string | undefined;
192
+ recovery?: {
193
+ liveReattachment: boolean;
194
+ sessionLoading: boolean;
195
+ interruptedTurnContinuation: boolean;
196
+ approvalRestoration: boolean;
197
+ providerCheckpoints: boolean;
198
+ } | undefined;
106
199
  }, {
107
200
  id: string;
108
201
  displayName: string;
@@ -114,6 +207,13 @@ export declare const hostCapabilitiesSchema: z.ZodObject<{
114
207
  resume: boolean;
115
208
  };
116
209
  version?: string | undefined;
210
+ recovery?: {
211
+ liveReattachment: boolean;
212
+ sessionLoading: boolean;
213
+ interruptedTurnContinuation: boolean;
214
+ approvalRestoration: boolean;
215
+ providerCheckpoints: boolean;
216
+ } | undefined;
117
217
  }>, "many">;
118
218
  filesystem: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
119
219
  mode: z.ZodLiteral<"selected_roots">;
@@ -147,6 +247,13 @@ export declare const hostCapabilitiesSchema: z.ZodObject<{
147
247
  resume: boolean;
148
248
  };
149
249
  version?: string | undefined;
250
+ recovery?: {
251
+ liveReattachment: boolean;
252
+ sessionLoading: boolean;
253
+ interruptedTurnContinuation: boolean;
254
+ approvalRestoration: boolean;
255
+ providerCheckpoints: boolean;
256
+ } | undefined;
150
257
  }[];
151
258
  filesystem: {
152
259
  mode: "selected_roots";
@@ -155,6 +262,7 @@ export declare const hostCapabilitiesSchema: z.ZodObject<{
155
262
  mode: "all_user_files";
156
263
  };
157
264
  maxConcurrentRuns: number;
265
+ remoteLifecycleVersion?: 2 | undefined;
158
266
  }, {
159
267
  protocolVersion: 1;
160
268
  hostVersion: string;
@@ -170,6 +278,13 @@ export declare const hostCapabilitiesSchema: z.ZodObject<{
170
278
  resume: boolean;
171
279
  };
172
280
  version?: string | undefined;
281
+ recovery?: {
282
+ liveReattachment: boolean;
283
+ sessionLoading: boolean;
284
+ interruptedTurnContinuation: boolean;
285
+ approvalRestoration: boolean;
286
+ providerCheckpoints: boolean;
287
+ } | undefined;
173
288
  }[];
174
289
  filesystem: {
175
290
  mode: "selected_roots";
@@ -178,6 +293,7 @@ export declare const hostCapabilitiesSchema: z.ZodObject<{
178
293
  mode: "all_user_files";
179
294
  };
180
295
  maxConcurrentRuns: number;
296
+ remoteLifecycleVersion?: 2 | undefined;
181
297
  }>;
182
298
  export type HostCapabilities = z.infer<typeof hostCapabilitiesSchema>;
183
299
  /** A host asks for the provider credentials of one run; the secret is never part of a stored command. */
@@ -212,6 +328,7 @@ export declare const enrollmentRequestSchema: z.ZodObject<{
212
328
  platform: z.ZodString;
213
329
  capabilities: z.ZodObject<{
214
330
  protocolVersion: z.ZodLiteral<1>;
331
+ remoteLifecycleVersion: z.ZodOptional<z.ZodLiteral<2>>;
215
332
  hostVersion: z.ZodString;
216
333
  platform: z.ZodString;
217
334
  adapters: z.ZodArray<z.ZodObject<{
@@ -219,6 +336,25 @@ export declare const enrollmentRequestSchema: z.ZodObject<{
219
336
  displayName: z.ZodString;
220
337
  protocol: z.ZodEnum<["fake", "acp", "eve", "native"]>;
221
338
  version: z.ZodOptional<z.ZodString>;
339
+ recovery: z.ZodOptional<z.ZodObject<{
340
+ liveReattachment: z.ZodBoolean;
341
+ sessionLoading: z.ZodBoolean;
342
+ interruptedTurnContinuation: z.ZodBoolean;
343
+ approvalRestoration: z.ZodBoolean;
344
+ providerCheckpoints: z.ZodBoolean;
345
+ }, "strict", z.ZodTypeAny, {
346
+ liveReattachment: boolean;
347
+ sessionLoading: boolean;
348
+ interruptedTurnContinuation: boolean;
349
+ approvalRestoration: boolean;
350
+ providerCheckpoints: boolean;
351
+ }, {
352
+ liveReattachment: boolean;
353
+ sessionLoading: boolean;
354
+ interruptedTurnContinuation: boolean;
355
+ approvalRestoration: boolean;
356
+ providerCheckpoints: boolean;
357
+ }>>;
222
358
  supports: z.ZodObject<{
223
359
  prompt: z.ZodBoolean;
224
360
  approval: z.ZodBoolean;
@@ -246,6 +382,13 @@ export declare const enrollmentRequestSchema: z.ZodObject<{
246
382
  resume: boolean;
247
383
  };
248
384
  version?: string | undefined;
385
+ recovery?: {
386
+ liveReattachment: boolean;
387
+ sessionLoading: boolean;
388
+ interruptedTurnContinuation: boolean;
389
+ approvalRestoration: boolean;
390
+ providerCheckpoints: boolean;
391
+ } | undefined;
249
392
  }, {
250
393
  id: string;
251
394
  displayName: string;
@@ -257,6 +400,13 @@ export declare const enrollmentRequestSchema: z.ZodObject<{
257
400
  resume: boolean;
258
401
  };
259
402
  version?: string | undefined;
403
+ recovery?: {
404
+ liveReattachment: boolean;
405
+ sessionLoading: boolean;
406
+ interruptedTurnContinuation: boolean;
407
+ approvalRestoration: boolean;
408
+ providerCheckpoints: boolean;
409
+ } | undefined;
260
410
  }>, "many">;
261
411
  filesystem: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
262
412
  mode: z.ZodLiteral<"selected_roots">;
@@ -290,6 +440,13 @@ export declare const enrollmentRequestSchema: z.ZodObject<{
290
440
  resume: boolean;
291
441
  };
292
442
  version?: string | undefined;
443
+ recovery?: {
444
+ liveReattachment: boolean;
445
+ sessionLoading: boolean;
446
+ interruptedTurnContinuation: boolean;
447
+ approvalRestoration: boolean;
448
+ providerCheckpoints: boolean;
449
+ } | undefined;
293
450
  }[];
294
451
  filesystem: {
295
452
  mode: "selected_roots";
@@ -298,6 +455,7 @@ export declare const enrollmentRequestSchema: z.ZodObject<{
298
455
  mode: "all_user_files";
299
456
  };
300
457
  maxConcurrentRuns: number;
458
+ remoteLifecycleVersion?: 2 | undefined;
301
459
  }, {
302
460
  protocolVersion: 1;
303
461
  hostVersion: string;
@@ -313,6 +471,13 @@ export declare const enrollmentRequestSchema: z.ZodObject<{
313
471
  resume: boolean;
314
472
  };
315
473
  version?: string | undefined;
474
+ recovery?: {
475
+ liveReattachment: boolean;
476
+ sessionLoading: boolean;
477
+ interruptedTurnContinuation: boolean;
478
+ approvalRestoration: boolean;
479
+ providerCheckpoints: boolean;
480
+ } | undefined;
316
481
  }[];
317
482
  filesystem: {
318
483
  mode: "selected_roots";
@@ -321,6 +486,7 @@ export declare const enrollmentRequestSchema: z.ZodObject<{
321
486
  mode: "all_user_files";
322
487
  };
323
488
  maxConcurrentRuns: number;
489
+ remoteLifecycleVersion?: 2 | undefined;
324
490
  }>;
325
491
  kind: z.ZodDefault<z.ZodEnum<["local", "vps", "overlay_cloud", "external"]>>;
326
492
  }, "strict", z.ZodTypeAny, {
@@ -344,6 +510,13 @@ export declare const enrollmentRequestSchema: z.ZodObject<{
344
510
  resume: boolean;
345
511
  };
346
512
  version?: string | undefined;
513
+ recovery?: {
514
+ liveReattachment: boolean;
515
+ sessionLoading: boolean;
516
+ interruptedTurnContinuation: boolean;
517
+ approvalRestoration: boolean;
518
+ providerCheckpoints: boolean;
519
+ } | undefined;
347
520
  }[];
348
521
  filesystem: {
349
522
  mode: "selected_roots";
@@ -352,6 +525,7 @@ export declare const enrollmentRequestSchema: z.ZodObject<{
352
525
  mode: "all_user_files";
353
526
  };
354
527
  maxConcurrentRuns: number;
528
+ remoteLifecycleVersion?: 2 | undefined;
355
529
  };
356
530
  kind: "local" | "vps" | "overlay_cloud" | "external";
357
531
  }, {
@@ -375,6 +549,13 @@ export declare const enrollmentRequestSchema: z.ZodObject<{
375
549
  resume: boolean;
376
550
  };
377
551
  version?: string | undefined;
552
+ recovery?: {
553
+ liveReattachment: boolean;
554
+ sessionLoading: boolean;
555
+ interruptedTurnContinuation: boolean;
556
+ approvalRestoration: boolean;
557
+ providerCheckpoints: boolean;
558
+ } | undefined;
378
559
  }[];
379
560
  filesystem: {
380
561
  mode: "selected_roots";
@@ -383,6 +564,7 @@ export declare const enrollmentRequestSchema: z.ZodObject<{
383
564
  mode: "all_user_files";
384
565
  };
385
566
  maxConcurrentRuns: number;
567
+ remoteLifecycleVersion?: 2 | undefined;
386
568
  };
387
569
  kind?: "local" | "vps" | "overlay_cloud" | "external" | undefined;
388
570
  }>;
@@ -502,6 +684,19 @@ export declare function canonicalHostRequestProof(input: {
502
684
  tokenSha256: string;
503
685
  }): string;
504
686
  export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
687
+ execution: z.ZodOptional<z.ZodObject<{
688
+ attemptId: z.ZodString;
689
+ generation: z.ZodNumber;
690
+ hostBootId: z.ZodOptional<z.ZodString>;
691
+ }, "strict", z.ZodTypeAny, {
692
+ attemptId: string;
693
+ generation: number;
694
+ hostBootId?: string | undefined;
695
+ }, {
696
+ attemptId: string;
697
+ generation: number;
698
+ hostBootId?: string | undefined;
699
+ }>>;
505
700
  protocolVersion: z.ZodLiteral<1>;
506
701
  commandId: z.ZodString;
507
702
  environmentId: z.ZodString;
@@ -554,6 +749,11 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
554
749
  sessionId?: string | undefined;
555
750
  fresh?: boolean | undefined;
556
751
  };
752
+ execution?: {
753
+ attemptId: string;
754
+ generation: number;
755
+ hostBootId?: string | undefined;
756
+ } | undefined;
557
757
  }, {
558
758
  type: "start";
559
759
  protocolVersion: 1;
@@ -572,7 +772,25 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
572
772
  fresh?: boolean | undefined;
573
773
  metadata?: Record<string, unknown> | undefined;
574
774
  };
775
+ execution?: {
776
+ attemptId: string;
777
+ generation: number;
778
+ hostBootId?: string | undefined;
779
+ } | undefined;
575
780
  }>, z.ZodObject<{
781
+ execution: z.ZodOptional<z.ZodObject<{
782
+ attemptId: z.ZodString;
783
+ generation: z.ZodNumber;
784
+ hostBootId: z.ZodOptional<z.ZodString>;
785
+ }, "strict", z.ZodTypeAny, {
786
+ attemptId: string;
787
+ generation: number;
788
+ hostBootId?: string | undefined;
789
+ }, {
790
+ attemptId: string;
791
+ generation: number;
792
+ hostBootId?: string | undefined;
793
+ }>>;
576
794
  protocolVersion: z.ZodLiteral<1>;
577
795
  commandId: z.ZodString;
578
796
  environmentId: z.ZodString;
@@ -601,6 +819,11 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
601
819
  payload: {
602
820
  prompt: string;
603
821
  };
822
+ execution?: {
823
+ attemptId: string;
824
+ generation: number;
825
+ hostBootId?: string | undefined;
826
+ } | undefined;
604
827
  }, {
605
828
  type: "prompt";
606
829
  protocolVersion: 1;
@@ -613,7 +836,25 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
613
836
  payload: {
614
837
  prompt: string;
615
838
  };
839
+ execution?: {
840
+ attemptId: string;
841
+ generation: number;
842
+ hostBootId?: string | undefined;
843
+ } | undefined;
616
844
  }>, z.ZodObject<{
845
+ execution: z.ZodOptional<z.ZodObject<{
846
+ attemptId: z.ZodString;
847
+ generation: z.ZodNumber;
848
+ hostBootId: z.ZodOptional<z.ZodString>;
849
+ }, "strict", z.ZodTypeAny, {
850
+ attemptId: string;
851
+ generation: number;
852
+ hostBootId?: string | undefined;
853
+ }, {
854
+ attemptId: string;
855
+ generation: number;
856
+ hostBootId?: string | undefined;
857
+ }>>;
617
858
  protocolVersion: z.ZodLiteral<1>;
618
859
  commandId: z.ZodString;
619
860
  environmentId: z.ZodString;
@@ -646,6 +887,11 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
646
887
  requestKey: string;
647
888
  optionId: string;
648
889
  };
890
+ execution?: {
891
+ attemptId: string;
892
+ generation: number;
893
+ hostBootId?: string | undefined;
894
+ } | undefined;
649
895
  }, {
650
896
  type: "approval_response";
651
897
  protocolVersion: 1;
@@ -659,7 +905,25 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
659
905
  requestKey: string;
660
906
  optionId: string;
661
907
  };
908
+ execution?: {
909
+ attemptId: string;
910
+ generation: number;
911
+ hostBootId?: string | undefined;
912
+ } | undefined;
662
913
  }>, z.ZodObject<{
914
+ execution: z.ZodOptional<z.ZodObject<{
915
+ attemptId: z.ZodString;
916
+ generation: z.ZodNumber;
917
+ hostBootId: z.ZodOptional<z.ZodString>;
918
+ }, "strict", z.ZodTypeAny, {
919
+ attemptId: string;
920
+ generation: number;
921
+ hostBootId?: string | undefined;
922
+ }, {
923
+ attemptId: string;
924
+ generation: number;
925
+ hostBootId?: string | undefined;
926
+ }>>;
663
927
  protocolVersion: z.ZodLiteral<1>;
664
928
  commandId: z.ZodString;
665
929
  environmentId: z.ZodString;
@@ -696,6 +960,11 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
696
960
  action: "cancel" | "accept" | "decline";
697
961
  content?: Record<string, unknown> | undefined;
698
962
  };
963
+ execution?: {
964
+ attemptId: string;
965
+ generation: number;
966
+ hostBootId?: string | undefined;
967
+ } | undefined;
699
968
  }, {
700
969
  type: "elicitation_response";
701
970
  protocolVersion: 1;
@@ -710,7 +979,25 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
710
979
  action: "cancel" | "accept" | "decline";
711
980
  content?: Record<string, unknown> | undefined;
712
981
  };
982
+ execution?: {
983
+ attemptId: string;
984
+ generation: number;
985
+ hostBootId?: string | undefined;
986
+ } | undefined;
713
987
  }>, z.ZodObject<{
988
+ execution: z.ZodOptional<z.ZodObject<{
989
+ attemptId: z.ZodString;
990
+ generation: z.ZodNumber;
991
+ hostBootId: z.ZodOptional<z.ZodString>;
992
+ }, "strict", z.ZodTypeAny, {
993
+ attemptId: string;
994
+ generation: number;
995
+ hostBootId?: string | undefined;
996
+ }, {
997
+ attemptId: string;
998
+ generation: number;
999
+ hostBootId?: string | undefined;
1000
+ }>>;
714
1001
  protocolVersion: z.ZodLiteral<1>;
715
1002
  commandId: z.ZodString;
716
1003
  environmentId: z.ZodString;
@@ -739,6 +1026,11 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
739
1026
  payload: {
740
1027
  reason?: string | undefined;
741
1028
  };
1029
+ execution?: {
1030
+ attemptId: string;
1031
+ generation: number;
1032
+ hostBootId?: string | undefined;
1033
+ } | undefined;
742
1034
  }, {
743
1035
  type: "cancel";
744
1036
  protocolVersion: 1;
@@ -751,7 +1043,25 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
751
1043
  payload: {
752
1044
  reason?: string | undefined;
753
1045
  };
1046
+ execution?: {
1047
+ attemptId: string;
1048
+ generation: number;
1049
+ hostBootId?: string | undefined;
1050
+ } | undefined;
754
1051
  }>, z.ZodObject<{
1052
+ execution: z.ZodOptional<z.ZodObject<{
1053
+ attemptId: z.ZodString;
1054
+ generation: z.ZodNumber;
1055
+ hostBootId: z.ZodOptional<z.ZodString>;
1056
+ }, "strict", z.ZodTypeAny, {
1057
+ attemptId: string;
1058
+ generation: number;
1059
+ hostBootId?: string | undefined;
1060
+ }, {
1061
+ attemptId: string;
1062
+ generation: number;
1063
+ hostBootId?: string | undefined;
1064
+ }>>;
755
1065
  protocolVersion: z.ZodLiteral<1>;
756
1066
  commandId: z.ZodString;
757
1067
  environmentId: z.ZodString;
@@ -780,6 +1090,11 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
780
1090
  payload: {
781
1091
  remoteSessionId: string;
782
1092
  };
1093
+ execution?: {
1094
+ attemptId: string;
1095
+ generation: number;
1096
+ hostBootId?: string | undefined;
1097
+ } | undefined;
783
1098
  }, {
784
1099
  type: "reconnect";
785
1100
  protocolVersion: 1;
@@ -792,7 +1107,79 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
792
1107
  payload: {
793
1108
  remoteSessionId: string;
794
1109
  };
1110
+ execution?: {
1111
+ attemptId: string;
1112
+ generation: number;
1113
+ hostBootId?: string | undefined;
1114
+ } | undefined;
795
1115
  }>, z.ZodObject<{
1116
+ execution: z.ZodOptional<z.ZodObject<{
1117
+ attemptId: z.ZodString;
1118
+ generation: z.ZodNumber;
1119
+ hostBootId: z.ZodOptional<z.ZodString>;
1120
+ }, "strict", z.ZodTypeAny, {
1121
+ attemptId: string;
1122
+ generation: number;
1123
+ hostBootId?: string | undefined;
1124
+ }, {
1125
+ attemptId: string;
1126
+ generation: number;
1127
+ hostBootId?: string | undefined;
1128
+ }>>;
1129
+ protocolVersion: z.ZodLiteral<1>;
1130
+ commandId: z.ZodString;
1131
+ environmentId: z.ZodString;
1132
+ workspaceId: z.ZodString;
1133
+ runId: z.ZodString;
1134
+ sequence: z.ZodNumber;
1135
+ issuedAt: z.ZodNumber;
1136
+ } & {
1137
+ type: z.ZodLiteral<"observe">;
1138
+ payload: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
1139
+ }, "strict", z.ZodTypeAny, {
1140
+ type: "observe";
1141
+ protocolVersion: 1;
1142
+ runId: string;
1143
+ workspaceId: string;
1144
+ environmentId: string;
1145
+ commandId: string;
1146
+ sequence: number;
1147
+ issuedAt: number;
1148
+ payload: {};
1149
+ execution?: {
1150
+ attemptId: string;
1151
+ generation: number;
1152
+ hostBootId?: string | undefined;
1153
+ } | undefined;
1154
+ }, {
1155
+ type: "observe";
1156
+ protocolVersion: 1;
1157
+ runId: string;
1158
+ workspaceId: string;
1159
+ environmentId: string;
1160
+ commandId: string;
1161
+ sequence: number;
1162
+ issuedAt: number;
1163
+ payload: {};
1164
+ execution?: {
1165
+ attemptId: string;
1166
+ generation: number;
1167
+ hostBootId?: string | undefined;
1168
+ } | undefined;
1169
+ }>, z.ZodObject<{
1170
+ execution: z.ZodOptional<z.ZodObject<{
1171
+ attemptId: z.ZodString;
1172
+ generation: z.ZodNumber;
1173
+ hostBootId: z.ZodOptional<z.ZodString>;
1174
+ }, "strict", z.ZodTypeAny, {
1175
+ attemptId: string;
1176
+ generation: number;
1177
+ hostBootId?: string | undefined;
1178
+ }, {
1179
+ attemptId: string;
1180
+ generation: number;
1181
+ hostBootId?: string | undefined;
1182
+ }>>;
796
1183
  protocolVersion: z.ZodLiteral<1>;
797
1184
  commandId: z.ZodString;
798
1185
  environmentId: z.ZodString;
@@ -821,6 +1208,11 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
821
1208
  payload: {
822
1209
  reason?: string | undefined;
823
1210
  };
1211
+ execution?: {
1212
+ attemptId: string;
1213
+ generation: number;
1214
+ hostBootId?: string | undefined;
1215
+ } | undefined;
824
1216
  }, {
825
1217
  type: "shutdown";
826
1218
  protocolVersion: 1;
@@ -833,11 +1225,29 @@ export declare const agentHostCommandSchema: z.ZodDiscriminatedUnion<"type", [z.
833
1225
  payload: {
834
1226
  reason?: string | undefined;
835
1227
  };
1228
+ execution?: {
1229
+ attemptId: string;
1230
+ generation: number;
1231
+ hostBootId?: string | undefined;
1232
+ } | undefined;
836
1233
  }>]>;
837
1234
  export type AgentHostCommand = z.infer<typeof agentHostCommandSchema>;
838
1235
  export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
839
1236
  protocolVersion: z.ZodLiteral<1>;
840
1237
  commands: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1238
+ execution: z.ZodOptional<z.ZodObject<{
1239
+ attemptId: z.ZodString;
1240
+ generation: z.ZodNumber;
1241
+ hostBootId: z.ZodOptional<z.ZodString>;
1242
+ }, "strict", z.ZodTypeAny, {
1243
+ attemptId: string;
1244
+ generation: number;
1245
+ hostBootId?: string | undefined;
1246
+ }, {
1247
+ attemptId: string;
1248
+ generation: number;
1249
+ hostBootId?: string | undefined;
1250
+ }>>;
841
1251
  protocolVersion: z.ZodLiteral<1>;
842
1252
  commandId: z.ZodString;
843
1253
  environmentId: z.ZodString;
@@ -890,6 +1300,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
890
1300
  sessionId?: string | undefined;
891
1301
  fresh?: boolean | undefined;
892
1302
  };
1303
+ execution?: {
1304
+ attemptId: string;
1305
+ generation: number;
1306
+ hostBootId?: string | undefined;
1307
+ } | undefined;
893
1308
  }, {
894
1309
  type: "start";
895
1310
  protocolVersion: 1;
@@ -908,7 +1323,25 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
908
1323
  fresh?: boolean | undefined;
909
1324
  metadata?: Record<string, unknown> | undefined;
910
1325
  };
1326
+ execution?: {
1327
+ attemptId: string;
1328
+ generation: number;
1329
+ hostBootId?: string | undefined;
1330
+ } | undefined;
911
1331
  }>, z.ZodObject<{
1332
+ execution: z.ZodOptional<z.ZodObject<{
1333
+ attemptId: z.ZodString;
1334
+ generation: z.ZodNumber;
1335
+ hostBootId: z.ZodOptional<z.ZodString>;
1336
+ }, "strict", z.ZodTypeAny, {
1337
+ attemptId: string;
1338
+ generation: number;
1339
+ hostBootId?: string | undefined;
1340
+ }, {
1341
+ attemptId: string;
1342
+ generation: number;
1343
+ hostBootId?: string | undefined;
1344
+ }>>;
912
1345
  protocolVersion: z.ZodLiteral<1>;
913
1346
  commandId: z.ZodString;
914
1347
  environmentId: z.ZodString;
@@ -937,6 +1370,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
937
1370
  payload: {
938
1371
  prompt: string;
939
1372
  };
1373
+ execution?: {
1374
+ attemptId: string;
1375
+ generation: number;
1376
+ hostBootId?: string | undefined;
1377
+ } | undefined;
940
1378
  }, {
941
1379
  type: "prompt";
942
1380
  protocolVersion: 1;
@@ -949,7 +1387,25 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
949
1387
  payload: {
950
1388
  prompt: string;
951
1389
  };
1390
+ execution?: {
1391
+ attemptId: string;
1392
+ generation: number;
1393
+ hostBootId?: string | undefined;
1394
+ } | undefined;
952
1395
  }>, z.ZodObject<{
1396
+ execution: z.ZodOptional<z.ZodObject<{
1397
+ attemptId: z.ZodString;
1398
+ generation: z.ZodNumber;
1399
+ hostBootId: z.ZodOptional<z.ZodString>;
1400
+ }, "strict", z.ZodTypeAny, {
1401
+ attemptId: string;
1402
+ generation: number;
1403
+ hostBootId?: string | undefined;
1404
+ }, {
1405
+ attemptId: string;
1406
+ generation: number;
1407
+ hostBootId?: string | undefined;
1408
+ }>>;
953
1409
  protocolVersion: z.ZodLiteral<1>;
954
1410
  commandId: z.ZodString;
955
1411
  environmentId: z.ZodString;
@@ -982,6 +1438,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
982
1438
  requestKey: string;
983
1439
  optionId: string;
984
1440
  };
1441
+ execution?: {
1442
+ attemptId: string;
1443
+ generation: number;
1444
+ hostBootId?: string | undefined;
1445
+ } | undefined;
985
1446
  }, {
986
1447
  type: "approval_response";
987
1448
  protocolVersion: 1;
@@ -995,7 +1456,25 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
995
1456
  requestKey: string;
996
1457
  optionId: string;
997
1458
  };
1459
+ execution?: {
1460
+ attemptId: string;
1461
+ generation: number;
1462
+ hostBootId?: string | undefined;
1463
+ } | undefined;
998
1464
  }>, z.ZodObject<{
1465
+ execution: z.ZodOptional<z.ZodObject<{
1466
+ attemptId: z.ZodString;
1467
+ generation: z.ZodNumber;
1468
+ hostBootId: z.ZodOptional<z.ZodString>;
1469
+ }, "strict", z.ZodTypeAny, {
1470
+ attemptId: string;
1471
+ generation: number;
1472
+ hostBootId?: string | undefined;
1473
+ }, {
1474
+ attemptId: string;
1475
+ generation: number;
1476
+ hostBootId?: string | undefined;
1477
+ }>>;
999
1478
  protocolVersion: z.ZodLiteral<1>;
1000
1479
  commandId: z.ZodString;
1001
1480
  environmentId: z.ZodString;
@@ -1032,6 +1511,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1032
1511
  action: "cancel" | "accept" | "decline";
1033
1512
  content?: Record<string, unknown> | undefined;
1034
1513
  };
1514
+ execution?: {
1515
+ attemptId: string;
1516
+ generation: number;
1517
+ hostBootId?: string | undefined;
1518
+ } | undefined;
1035
1519
  }, {
1036
1520
  type: "elicitation_response";
1037
1521
  protocolVersion: 1;
@@ -1046,7 +1530,25 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1046
1530
  action: "cancel" | "accept" | "decline";
1047
1531
  content?: Record<string, unknown> | undefined;
1048
1532
  };
1533
+ execution?: {
1534
+ attemptId: string;
1535
+ generation: number;
1536
+ hostBootId?: string | undefined;
1537
+ } | undefined;
1049
1538
  }>, z.ZodObject<{
1539
+ execution: z.ZodOptional<z.ZodObject<{
1540
+ attemptId: z.ZodString;
1541
+ generation: z.ZodNumber;
1542
+ hostBootId: z.ZodOptional<z.ZodString>;
1543
+ }, "strict", z.ZodTypeAny, {
1544
+ attemptId: string;
1545
+ generation: number;
1546
+ hostBootId?: string | undefined;
1547
+ }, {
1548
+ attemptId: string;
1549
+ generation: number;
1550
+ hostBootId?: string | undefined;
1551
+ }>>;
1050
1552
  protocolVersion: z.ZodLiteral<1>;
1051
1553
  commandId: z.ZodString;
1052
1554
  environmentId: z.ZodString;
@@ -1075,6 +1577,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1075
1577
  payload: {
1076
1578
  reason?: string | undefined;
1077
1579
  };
1580
+ execution?: {
1581
+ attemptId: string;
1582
+ generation: number;
1583
+ hostBootId?: string | undefined;
1584
+ } | undefined;
1078
1585
  }, {
1079
1586
  type: "cancel";
1080
1587
  protocolVersion: 1;
@@ -1087,7 +1594,25 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1087
1594
  payload: {
1088
1595
  reason?: string | undefined;
1089
1596
  };
1597
+ execution?: {
1598
+ attemptId: string;
1599
+ generation: number;
1600
+ hostBootId?: string | undefined;
1601
+ } | undefined;
1090
1602
  }>, z.ZodObject<{
1603
+ execution: z.ZodOptional<z.ZodObject<{
1604
+ attemptId: z.ZodString;
1605
+ generation: z.ZodNumber;
1606
+ hostBootId: z.ZodOptional<z.ZodString>;
1607
+ }, "strict", z.ZodTypeAny, {
1608
+ attemptId: string;
1609
+ generation: number;
1610
+ hostBootId?: string | undefined;
1611
+ }, {
1612
+ attemptId: string;
1613
+ generation: number;
1614
+ hostBootId?: string | undefined;
1615
+ }>>;
1091
1616
  protocolVersion: z.ZodLiteral<1>;
1092
1617
  commandId: z.ZodString;
1093
1618
  environmentId: z.ZodString;
@@ -1116,6 +1641,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1116
1641
  payload: {
1117
1642
  remoteSessionId: string;
1118
1643
  };
1644
+ execution?: {
1645
+ attemptId: string;
1646
+ generation: number;
1647
+ hostBootId?: string | undefined;
1648
+ } | undefined;
1119
1649
  }, {
1120
1650
  type: "reconnect";
1121
1651
  protocolVersion: 1;
@@ -1128,7 +1658,79 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1128
1658
  payload: {
1129
1659
  remoteSessionId: string;
1130
1660
  };
1661
+ execution?: {
1662
+ attemptId: string;
1663
+ generation: number;
1664
+ hostBootId?: string | undefined;
1665
+ } | undefined;
1666
+ }>, z.ZodObject<{
1667
+ execution: z.ZodOptional<z.ZodObject<{
1668
+ attemptId: z.ZodString;
1669
+ generation: z.ZodNumber;
1670
+ hostBootId: z.ZodOptional<z.ZodString>;
1671
+ }, "strict", z.ZodTypeAny, {
1672
+ attemptId: string;
1673
+ generation: number;
1674
+ hostBootId?: string | undefined;
1675
+ }, {
1676
+ attemptId: string;
1677
+ generation: number;
1678
+ hostBootId?: string | undefined;
1679
+ }>>;
1680
+ protocolVersion: z.ZodLiteral<1>;
1681
+ commandId: z.ZodString;
1682
+ environmentId: z.ZodString;
1683
+ workspaceId: z.ZodString;
1684
+ runId: z.ZodString;
1685
+ sequence: z.ZodNumber;
1686
+ issuedAt: z.ZodNumber;
1687
+ } & {
1688
+ type: z.ZodLiteral<"observe">;
1689
+ payload: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
1690
+ }, "strict", z.ZodTypeAny, {
1691
+ type: "observe";
1692
+ protocolVersion: 1;
1693
+ runId: string;
1694
+ workspaceId: string;
1695
+ environmentId: string;
1696
+ commandId: string;
1697
+ sequence: number;
1698
+ issuedAt: number;
1699
+ payload: {};
1700
+ execution?: {
1701
+ attemptId: string;
1702
+ generation: number;
1703
+ hostBootId?: string | undefined;
1704
+ } | undefined;
1705
+ }, {
1706
+ type: "observe";
1707
+ protocolVersion: 1;
1708
+ runId: string;
1709
+ workspaceId: string;
1710
+ environmentId: string;
1711
+ commandId: string;
1712
+ sequence: number;
1713
+ issuedAt: number;
1714
+ payload: {};
1715
+ execution?: {
1716
+ attemptId: string;
1717
+ generation: number;
1718
+ hostBootId?: string | undefined;
1719
+ } | undefined;
1131
1720
  }>, z.ZodObject<{
1721
+ execution: z.ZodOptional<z.ZodObject<{
1722
+ attemptId: z.ZodString;
1723
+ generation: z.ZodNumber;
1724
+ hostBootId: z.ZodOptional<z.ZodString>;
1725
+ }, "strict", z.ZodTypeAny, {
1726
+ attemptId: string;
1727
+ generation: number;
1728
+ hostBootId?: string | undefined;
1729
+ }, {
1730
+ attemptId: string;
1731
+ generation: number;
1732
+ hostBootId?: string | undefined;
1733
+ }>>;
1132
1734
  protocolVersion: z.ZodLiteral<1>;
1133
1735
  commandId: z.ZodString;
1134
1736
  environmentId: z.ZodString;
@@ -1157,6 +1759,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1157
1759
  payload: {
1158
1760
  reason?: string | undefined;
1159
1761
  };
1762
+ execution?: {
1763
+ attemptId: string;
1764
+ generation: number;
1765
+ hostBootId?: string | undefined;
1766
+ } | undefined;
1160
1767
  }, {
1161
1768
  type: "shutdown";
1162
1769
  protocolVersion: 1;
@@ -1169,8 +1776,14 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1169
1776
  payload: {
1170
1777
  reason?: string | undefined;
1171
1778
  };
1779
+ execution?: {
1780
+ attemptId: string;
1781
+ generation: number;
1782
+ hostBootId?: string | undefined;
1783
+ } | undefined;
1172
1784
  }>]>, "many">;
1173
1785
  retryAfterMs: z.ZodOptional<z.ZodNumber>;
1786
+ resolvedThroughSequence: z.ZodOptional<z.ZodNumber>;
1174
1787
  }, "strict", z.ZodTypeAny, {
1175
1788
  protocolVersion: 1;
1176
1789
  commands: ({
@@ -1191,6 +1804,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1191
1804
  sessionId?: string | undefined;
1192
1805
  fresh?: boolean | undefined;
1193
1806
  };
1807
+ execution?: {
1808
+ attemptId: string;
1809
+ generation: number;
1810
+ hostBootId?: string | undefined;
1811
+ } | undefined;
1194
1812
  } | {
1195
1813
  type: "prompt";
1196
1814
  protocolVersion: 1;
@@ -1203,6 +1821,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1203
1821
  payload: {
1204
1822
  prompt: string;
1205
1823
  };
1824
+ execution?: {
1825
+ attemptId: string;
1826
+ generation: number;
1827
+ hostBootId?: string | undefined;
1828
+ } | undefined;
1206
1829
  } | {
1207
1830
  type: "approval_response";
1208
1831
  protocolVersion: 1;
@@ -1216,6 +1839,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1216
1839
  requestKey: string;
1217
1840
  optionId: string;
1218
1841
  };
1842
+ execution?: {
1843
+ attemptId: string;
1844
+ generation: number;
1845
+ hostBootId?: string | undefined;
1846
+ } | undefined;
1219
1847
  } | {
1220
1848
  type: "elicitation_response";
1221
1849
  protocolVersion: 1;
@@ -1230,6 +1858,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1230
1858
  action: "cancel" | "accept" | "decline";
1231
1859
  content?: Record<string, unknown> | undefined;
1232
1860
  };
1861
+ execution?: {
1862
+ attemptId: string;
1863
+ generation: number;
1864
+ hostBootId?: string | undefined;
1865
+ } | undefined;
1233
1866
  } | {
1234
1867
  type: "cancel";
1235
1868
  protocolVersion: 1;
@@ -1242,6 +1875,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1242
1875
  payload: {
1243
1876
  reason?: string | undefined;
1244
1877
  };
1878
+ execution?: {
1879
+ attemptId: string;
1880
+ generation: number;
1881
+ hostBootId?: string | undefined;
1882
+ } | undefined;
1245
1883
  } | {
1246
1884
  type: "reconnect";
1247
1885
  protocolVersion: 1;
@@ -1254,6 +1892,26 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1254
1892
  payload: {
1255
1893
  remoteSessionId: string;
1256
1894
  };
1895
+ execution?: {
1896
+ attemptId: string;
1897
+ generation: number;
1898
+ hostBootId?: string | undefined;
1899
+ } | undefined;
1900
+ } | {
1901
+ type: "observe";
1902
+ protocolVersion: 1;
1903
+ runId: string;
1904
+ workspaceId: string;
1905
+ environmentId: string;
1906
+ commandId: string;
1907
+ sequence: number;
1908
+ issuedAt: number;
1909
+ payload: {};
1910
+ execution?: {
1911
+ attemptId: string;
1912
+ generation: number;
1913
+ hostBootId?: string | undefined;
1914
+ } | undefined;
1257
1915
  } | {
1258
1916
  type: "shutdown";
1259
1917
  protocolVersion: 1;
@@ -1266,8 +1924,14 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1266
1924
  payload: {
1267
1925
  reason?: string | undefined;
1268
1926
  };
1927
+ execution?: {
1928
+ attemptId: string;
1929
+ generation: number;
1930
+ hostBootId?: string | undefined;
1931
+ } | undefined;
1269
1932
  })[];
1270
1933
  retryAfterMs?: number | undefined;
1934
+ resolvedThroughSequence?: number | undefined;
1271
1935
  }, {
1272
1936
  protocolVersion: 1;
1273
1937
  commands: ({
@@ -1288,6 +1952,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1288
1952
  fresh?: boolean | undefined;
1289
1953
  metadata?: Record<string, unknown> | undefined;
1290
1954
  };
1955
+ execution?: {
1956
+ attemptId: string;
1957
+ generation: number;
1958
+ hostBootId?: string | undefined;
1959
+ } | undefined;
1291
1960
  } | {
1292
1961
  type: "prompt";
1293
1962
  protocolVersion: 1;
@@ -1300,6 +1969,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1300
1969
  payload: {
1301
1970
  prompt: string;
1302
1971
  };
1972
+ execution?: {
1973
+ attemptId: string;
1974
+ generation: number;
1975
+ hostBootId?: string | undefined;
1976
+ } | undefined;
1303
1977
  } | {
1304
1978
  type: "approval_response";
1305
1979
  protocolVersion: 1;
@@ -1313,6 +1987,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1313
1987
  requestKey: string;
1314
1988
  optionId: string;
1315
1989
  };
1990
+ execution?: {
1991
+ attemptId: string;
1992
+ generation: number;
1993
+ hostBootId?: string | undefined;
1994
+ } | undefined;
1316
1995
  } | {
1317
1996
  type: "elicitation_response";
1318
1997
  protocolVersion: 1;
@@ -1327,6 +2006,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1327
2006
  action: "cancel" | "accept" | "decline";
1328
2007
  content?: Record<string, unknown> | undefined;
1329
2008
  };
2009
+ execution?: {
2010
+ attemptId: string;
2011
+ generation: number;
2012
+ hostBootId?: string | undefined;
2013
+ } | undefined;
1330
2014
  } | {
1331
2015
  type: "cancel";
1332
2016
  protocolVersion: 1;
@@ -1339,6 +2023,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1339
2023
  payload: {
1340
2024
  reason?: string | undefined;
1341
2025
  };
2026
+ execution?: {
2027
+ attemptId: string;
2028
+ generation: number;
2029
+ hostBootId?: string | undefined;
2030
+ } | undefined;
1342
2031
  } | {
1343
2032
  type: "reconnect";
1344
2033
  protocolVersion: 1;
@@ -1351,6 +2040,26 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1351
2040
  payload: {
1352
2041
  remoteSessionId: string;
1353
2042
  };
2043
+ execution?: {
2044
+ attemptId: string;
2045
+ generation: number;
2046
+ hostBootId?: string | undefined;
2047
+ } | undefined;
2048
+ } | {
2049
+ type: "observe";
2050
+ protocolVersion: 1;
2051
+ runId: string;
2052
+ workspaceId: string;
2053
+ environmentId: string;
2054
+ commandId: string;
2055
+ sequence: number;
2056
+ issuedAt: number;
2057
+ payload: {};
2058
+ execution?: {
2059
+ attemptId: string;
2060
+ generation: number;
2061
+ hostBootId?: string | undefined;
2062
+ } | undefined;
1354
2063
  } | {
1355
2064
  type: "shutdown";
1356
2065
  protocolVersion: 1;
@@ -1363,8 +2072,14 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1363
2072
  payload: {
1364
2073
  reason?: string | undefined;
1365
2074
  };
2075
+ execution?: {
2076
+ attemptId: string;
2077
+ generation: number;
2078
+ hostBootId?: string | undefined;
2079
+ } | undefined;
1366
2080
  })[];
1367
2081
  retryAfterMs?: number | undefined;
2082
+ resolvedThroughSequence?: number | undefined;
1368
2083
  }>, {
1369
2084
  protocolVersion: 1;
1370
2085
  commands: ({
@@ -1385,6 +2100,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1385
2100
  sessionId?: string | undefined;
1386
2101
  fresh?: boolean | undefined;
1387
2102
  };
2103
+ execution?: {
2104
+ attemptId: string;
2105
+ generation: number;
2106
+ hostBootId?: string | undefined;
2107
+ } | undefined;
1388
2108
  } | {
1389
2109
  type: "prompt";
1390
2110
  protocolVersion: 1;
@@ -1397,6 +2117,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1397
2117
  payload: {
1398
2118
  prompt: string;
1399
2119
  };
2120
+ execution?: {
2121
+ attemptId: string;
2122
+ generation: number;
2123
+ hostBootId?: string | undefined;
2124
+ } | undefined;
1400
2125
  } | {
1401
2126
  type: "approval_response";
1402
2127
  protocolVersion: 1;
@@ -1410,6 +2135,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1410
2135
  requestKey: string;
1411
2136
  optionId: string;
1412
2137
  };
2138
+ execution?: {
2139
+ attemptId: string;
2140
+ generation: number;
2141
+ hostBootId?: string | undefined;
2142
+ } | undefined;
1413
2143
  } | {
1414
2144
  type: "elicitation_response";
1415
2145
  protocolVersion: 1;
@@ -1424,6 +2154,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1424
2154
  action: "cancel" | "accept" | "decline";
1425
2155
  content?: Record<string, unknown> | undefined;
1426
2156
  };
2157
+ execution?: {
2158
+ attemptId: string;
2159
+ generation: number;
2160
+ hostBootId?: string | undefined;
2161
+ } | undefined;
1427
2162
  } | {
1428
2163
  type: "cancel";
1429
2164
  protocolVersion: 1;
@@ -1436,6 +2171,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1436
2171
  payload: {
1437
2172
  reason?: string | undefined;
1438
2173
  };
2174
+ execution?: {
2175
+ attemptId: string;
2176
+ generation: number;
2177
+ hostBootId?: string | undefined;
2178
+ } | undefined;
1439
2179
  } | {
1440
2180
  type: "reconnect";
1441
2181
  protocolVersion: 1;
@@ -1448,6 +2188,26 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1448
2188
  payload: {
1449
2189
  remoteSessionId: string;
1450
2190
  };
2191
+ execution?: {
2192
+ attemptId: string;
2193
+ generation: number;
2194
+ hostBootId?: string | undefined;
2195
+ } | undefined;
2196
+ } | {
2197
+ type: "observe";
2198
+ protocolVersion: 1;
2199
+ runId: string;
2200
+ workspaceId: string;
2201
+ environmentId: string;
2202
+ commandId: string;
2203
+ sequence: number;
2204
+ issuedAt: number;
2205
+ payload: {};
2206
+ execution?: {
2207
+ attemptId: string;
2208
+ generation: number;
2209
+ hostBootId?: string | undefined;
2210
+ } | undefined;
1451
2211
  } | {
1452
2212
  type: "shutdown";
1453
2213
  protocolVersion: 1;
@@ -1460,8 +2220,14 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1460
2220
  payload: {
1461
2221
  reason?: string | undefined;
1462
2222
  };
2223
+ execution?: {
2224
+ attemptId: string;
2225
+ generation: number;
2226
+ hostBootId?: string | undefined;
2227
+ } | undefined;
1463
2228
  })[];
1464
2229
  retryAfterMs?: number | undefined;
2230
+ resolvedThroughSequence?: number | undefined;
1465
2231
  }, {
1466
2232
  protocolVersion: 1;
1467
2233
  commands: ({
@@ -1482,6 +2248,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1482
2248
  fresh?: boolean | undefined;
1483
2249
  metadata?: Record<string, unknown> | undefined;
1484
2250
  };
2251
+ execution?: {
2252
+ attemptId: string;
2253
+ generation: number;
2254
+ hostBootId?: string | undefined;
2255
+ } | undefined;
1485
2256
  } | {
1486
2257
  type: "prompt";
1487
2258
  protocolVersion: 1;
@@ -1494,6 +2265,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1494
2265
  payload: {
1495
2266
  prompt: string;
1496
2267
  };
2268
+ execution?: {
2269
+ attemptId: string;
2270
+ generation: number;
2271
+ hostBootId?: string | undefined;
2272
+ } | undefined;
1497
2273
  } | {
1498
2274
  type: "approval_response";
1499
2275
  protocolVersion: 1;
@@ -1507,6 +2283,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1507
2283
  requestKey: string;
1508
2284
  optionId: string;
1509
2285
  };
2286
+ execution?: {
2287
+ attemptId: string;
2288
+ generation: number;
2289
+ hostBootId?: string | undefined;
2290
+ } | undefined;
1510
2291
  } | {
1511
2292
  type: "elicitation_response";
1512
2293
  protocolVersion: 1;
@@ -1521,6 +2302,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1521
2302
  action: "cancel" | "accept" | "decline";
1522
2303
  content?: Record<string, unknown> | undefined;
1523
2304
  };
2305
+ execution?: {
2306
+ attemptId: string;
2307
+ generation: number;
2308
+ hostBootId?: string | undefined;
2309
+ } | undefined;
1524
2310
  } | {
1525
2311
  type: "cancel";
1526
2312
  protocolVersion: 1;
@@ -1533,6 +2319,11 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1533
2319
  payload: {
1534
2320
  reason?: string | undefined;
1535
2321
  };
2322
+ execution?: {
2323
+ attemptId: string;
2324
+ generation: number;
2325
+ hostBootId?: string | undefined;
2326
+ } | undefined;
1536
2327
  } | {
1537
2328
  type: "reconnect";
1538
2329
  protocolVersion: 1;
@@ -1545,6 +2336,26 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1545
2336
  payload: {
1546
2337
  remoteSessionId: string;
1547
2338
  };
2339
+ execution?: {
2340
+ attemptId: string;
2341
+ generation: number;
2342
+ hostBootId?: string | undefined;
2343
+ } | undefined;
2344
+ } | {
2345
+ type: "observe";
2346
+ protocolVersion: 1;
2347
+ runId: string;
2348
+ workspaceId: string;
2349
+ environmentId: string;
2350
+ commandId: string;
2351
+ sequence: number;
2352
+ issuedAt: number;
2353
+ payload: {};
2354
+ execution?: {
2355
+ attemptId: string;
2356
+ generation: number;
2357
+ hostBootId?: string | undefined;
2358
+ } | undefined;
1548
2359
  } | {
1549
2360
  type: "shutdown";
1550
2361
  protocolVersion: 1;
@@ -1557,8 +2368,14 @@ export declare const commandPollResponseSchema: z.ZodEffects<z.ZodObject<{
1557
2368
  payload: {
1558
2369
  reason?: string | undefined;
1559
2370
  };
2371
+ execution?: {
2372
+ attemptId: string;
2373
+ generation: number;
2374
+ hostBootId?: string | undefined;
2375
+ } | undefined;
1560
2376
  })[];
1561
2377
  retryAfterMs?: number | undefined;
2378
+ resolvedThroughSequence?: number | undefined;
1562
2379
  }>;
1563
2380
  export type CommandPollResponse = z.infer<typeof commandPollResponseSchema>;
1564
2381
  export declare const commandAcknowledgementSchema: z.ZodObject<{
@@ -1597,6 +2414,85 @@ export declare const commandAcknowledgementSchema: z.ZodObject<{
1597
2414
  }>;
1598
2415
  export type CommandAcknowledgement = z.infer<typeof commandAcknowledgementSchema>;
1599
2416
  export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2417
+ execution: z.ZodOptional<z.ZodObject<{
2418
+ attemptId: z.ZodString;
2419
+ generation: z.ZodNumber;
2420
+ hostBootId: z.ZodOptional<z.ZodString>;
2421
+ }, "strict", z.ZodTypeAny, {
2422
+ attemptId: string;
2423
+ generation: number;
2424
+ hostBootId?: string | undefined;
2425
+ }, {
2426
+ attemptId: string;
2427
+ generation: number;
2428
+ hostBootId?: string | undefined;
2429
+ }>>;
2430
+ protocolVersion: z.ZodLiteral<1>;
2431
+ eventId: z.ZodString;
2432
+ environmentId: z.ZodString;
2433
+ runId: z.ZodString;
2434
+ sourceSequence: z.ZodNumber;
2435
+ occurredAt: z.ZodNumber;
2436
+ } & {
2437
+ type: z.ZodLiteral<"process_observation">;
2438
+ payload: z.ZodObject<{
2439
+ process: z.ZodEnum<["live", "lost", "unknown"]>;
2440
+ recoveryOutcome: z.ZodOptional<z.ZodEnum<["attached_live", "restored", "requires_new_attempt", "unavailable"]>>;
2441
+ }, "strict", z.ZodTypeAny, {
2442
+ process: "unknown" | "live" | "lost";
2443
+ recoveryOutcome?: "attached_live" | "restored" | "requires_new_attempt" | "unavailable" | undefined;
2444
+ }, {
2445
+ process: "unknown" | "live" | "lost";
2446
+ recoveryOutcome?: "attached_live" | "restored" | "requires_new_attempt" | "unavailable" | undefined;
2447
+ }>;
2448
+ }, "strict", z.ZodTypeAny, {
2449
+ type: "process_observation";
2450
+ protocolVersion: 1;
2451
+ runId: string;
2452
+ environmentId: string;
2453
+ payload: {
2454
+ process: "unknown" | "live" | "lost";
2455
+ recoveryOutcome?: "attached_live" | "restored" | "requires_new_attempt" | "unavailable" | undefined;
2456
+ };
2457
+ eventId: string;
2458
+ sourceSequence: number;
2459
+ occurredAt: number;
2460
+ execution?: {
2461
+ attemptId: string;
2462
+ generation: number;
2463
+ hostBootId?: string | undefined;
2464
+ } | undefined;
2465
+ }, {
2466
+ type: "process_observation";
2467
+ protocolVersion: 1;
2468
+ runId: string;
2469
+ environmentId: string;
2470
+ payload: {
2471
+ process: "unknown" | "live" | "lost";
2472
+ recoveryOutcome?: "attached_live" | "restored" | "requires_new_attempt" | "unavailable" | undefined;
2473
+ };
2474
+ eventId: string;
2475
+ sourceSequence: number;
2476
+ occurredAt: number;
2477
+ execution?: {
2478
+ attemptId: string;
2479
+ generation: number;
2480
+ hostBootId?: string | undefined;
2481
+ } | undefined;
2482
+ }>, z.ZodObject<{
2483
+ execution: z.ZodOptional<z.ZodObject<{
2484
+ attemptId: z.ZodString;
2485
+ generation: z.ZodNumber;
2486
+ hostBootId: z.ZodOptional<z.ZodString>;
2487
+ }, "strict", z.ZodTypeAny, {
2488
+ attemptId: string;
2489
+ generation: number;
2490
+ hostBootId?: string | undefined;
2491
+ }, {
2492
+ attemptId: string;
2493
+ generation: number;
2494
+ hostBootId?: string | undefined;
2495
+ }>>;
1600
2496
  protocolVersion: z.ZodLiteral<1>;
1601
2497
  eventId: z.ZodString;
1602
2498
  environmentId: z.ZodString;
@@ -1627,6 +2523,11 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1627
2523
  eventId: string;
1628
2524
  sourceSequence: number;
1629
2525
  occurredAt: number;
2526
+ execution?: {
2527
+ attemptId: string;
2528
+ generation: number;
2529
+ hostBootId?: string | undefined;
2530
+ } | undefined;
1630
2531
  }, {
1631
2532
  type: "session_started";
1632
2533
  protocolVersion: 1;
@@ -1639,7 +2540,25 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1639
2540
  eventId: string;
1640
2541
  sourceSequence: number;
1641
2542
  occurredAt: number;
2543
+ execution?: {
2544
+ attemptId: string;
2545
+ generation: number;
2546
+ hostBootId?: string | undefined;
2547
+ } | undefined;
1642
2548
  }>, z.ZodObject<{
2549
+ execution: z.ZodOptional<z.ZodObject<{
2550
+ attemptId: z.ZodString;
2551
+ generation: z.ZodNumber;
2552
+ hostBootId: z.ZodOptional<z.ZodString>;
2553
+ }, "strict", z.ZodTypeAny, {
2554
+ attemptId: string;
2555
+ generation: number;
2556
+ hostBootId?: string | undefined;
2557
+ }, {
2558
+ attemptId: string;
2559
+ generation: number;
2560
+ hostBootId?: string | undefined;
2561
+ }>>;
1643
2562
  protocolVersion: z.ZodLiteral<1>;
1644
2563
  eventId: z.ZodString;
1645
2564
  environmentId: z.ZodString;
@@ -1670,6 +2589,11 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1670
2589
  eventId: string;
1671
2590
  sourceSequence: number;
1672
2591
  occurredAt: number;
2592
+ execution?: {
2593
+ attemptId: string;
2594
+ generation: number;
2595
+ hostBootId?: string | undefined;
2596
+ } | undefined;
1673
2597
  }, {
1674
2598
  type: "text_checkpoint";
1675
2599
  protocolVersion: 1;
@@ -1682,7 +2606,25 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1682
2606
  eventId: string;
1683
2607
  sourceSequence: number;
1684
2608
  occurredAt: number;
2609
+ execution?: {
2610
+ attemptId: string;
2611
+ generation: number;
2612
+ hostBootId?: string | undefined;
2613
+ } | undefined;
1685
2614
  }>, z.ZodObject<{
2615
+ execution: z.ZodOptional<z.ZodObject<{
2616
+ attemptId: z.ZodString;
2617
+ generation: z.ZodNumber;
2618
+ hostBootId: z.ZodOptional<z.ZodString>;
2619
+ }, "strict", z.ZodTypeAny, {
2620
+ attemptId: string;
2621
+ generation: number;
2622
+ hostBootId?: string | undefined;
2623
+ }, {
2624
+ attemptId: string;
2625
+ generation: number;
2626
+ hostBootId?: string | undefined;
2627
+ }>>;
1686
2628
  protocolVersion: z.ZodLiteral<1>;
1687
2629
  eventId: z.ZodString;
1688
2630
  environmentId: z.ZodString;
@@ -1721,6 +2663,11 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1721
2663
  eventId: string;
1722
2664
  sourceSequence: number;
1723
2665
  occurredAt: number;
2666
+ execution?: {
2667
+ attemptId: string;
2668
+ generation: number;
2669
+ hostBootId?: string | undefined;
2670
+ } | undefined;
1724
2671
  }, {
1725
2672
  type: "action";
1726
2673
  protocolVersion: 1;
@@ -1735,7 +2682,25 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1735
2682
  eventId: string;
1736
2683
  sourceSequence: number;
1737
2684
  occurredAt: number;
2685
+ execution?: {
2686
+ attemptId: string;
2687
+ generation: number;
2688
+ hostBootId?: string | undefined;
2689
+ } | undefined;
1738
2690
  }>, z.ZodObject<{
2691
+ execution: z.ZodOptional<z.ZodObject<{
2692
+ attemptId: z.ZodString;
2693
+ generation: z.ZodNumber;
2694
+ hostBootId: z.ZodOptional<z.ZodString>;
2695
+ }, "strict", z.ZodTypeAny, {
2696
+ attemptId: string;
2697
+ generation: number;
2698
+ hostBootId?: string | undefined;
2699
+ }, {
2700
+ attemptId: string;
2701
+ generation: number;
2702
+ hostBootId?: string | undefined;
2703
+ }>>;
1739
2704
  protocolVersion: z.ZodLiteral<1>;
1740
2705
  eventId: z.ZodString;
1741
2706
  environmentId: z.ZodString;
@@ -1792,6 +2757,11 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1792
2757
  eventId: string;
1793
2758
  sourceSequence: number;
1794
2759
  occurredAt: number;
2760
+ execution?: {
2761
+ attemptId: string;
2762
+ generation: number;
2763
+ hostBootId?: string | undefined;
2764
+ } | undefined;
1795
2765
  }, {
1796
2766
  type: "approval_requested";
1797
2767
  protocolVersion: 1;
@@ -1809,7 +2779,25 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1809
2779
  eventId: string;
1810
2780
  sourceSequence: number;
1811
2781
  occurredAt: number;
2782
+ execution?: {
2783
+ attemptId: string;
2784
+ generation: number;
2785
+ hostBootId?: string | undefined;
2786
+ } | undefined;
1812
2787
  }>, z.ZodObject<{
2788
+ execution: z.ZodOptional<z.ZodObject<{
2789
+ attemptId: z.ZodString;
2790
+ generation: z.ZodNumber;
2791
+ hostBootId: z.ZodOptional<z.ZodString>;
2792
+ }, "strict", z.ZodTypeAny, {
2793
+ attemptId: string;
2794
+ generation: number;
2795
+ hostBootId?: string | undefined;
2796
+ }, {
2797
+ attemptId: string;
2798
+ generation: number;
2799
+ hostBootId?: string | undefined;
2800
+ }>>;
1813
2801
  protocolVersion: z.ZodLiteral<1>;
1814
2802
  eventId: z.ZodString;
1815
2803
  environmentId: z.ZodString;
@@ -1848,6 +2836,11 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1848
2836
  eventId: string;
1849
2837
  sourceSequence: number;
1850
2838
  occurredAt: number;
2839
+ execution?: {
2840
+ attemptId: string;
2841
+ generation: number;
2842
+ hostBootId?: string | undefined;
2843
+ } | undefined;
1851
2844
  }, {
1852
2845
  type: "elicitation_requested";
1853
2846
  protocolVersion: 1;
@@ -1862,7 +2855,25 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1862
2855
  eventId: string;
1863
2856
  sourceSequence: number;
1864
2857
  occurredAt: number;
2858
+ execution?: {
2859
+ attemptId: string;
2860
+ generation: number;
2861
+ hostBootId?: string | undefined;
2862
+ } | undefined;
1865
2863
  }>, z.ZodObject<{
2864
+ execution: z.ZodOptional<z.ZodObject<{
2865
+ attemptId: z.ZodString;
2866
+ generation: z.ZodNumber;
2867
+ hostBootId: z.ZodOptional<z.ZodString>;
2868
+ }, "strict", z.ZodTypeAny, {
2869
+ attemptId: string;
2870
+ generation: number;
2871
+ hostBootId?: string | undefined;
2872
+ }, {
2873
+ attemptId: string;
2874
+ generation: number;
2875
+ hostBootId?: string | undefined;
2876
+ }>>;
1866
2877
  protocolVersion: z.ZodLiteral<1>;
1867
2878
  eventId: z.ZodString;
1868
2879
  environmentId: z.ZodString;
@@ -1913,6 +2924,11 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1913
2924
  eventId: string;
1914
2925
  sourceSequence: number;
1915
2926
  occurredAt: number;
2927
+ execution?: {
2928
+ attemptId: string;
2929
+ generation: number;
2930
+ hostBootId?: string | undefined;
2931
+ } | undefined;
1916
2932
  }, {
1917
2933
  type: "plan";
1918
2934
  protocolVersion: 1;
@@ -1928,7 +2944,25 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1928
2944
  eventId: string;
1929
2945
  sourceSequence: number;
1930
2946
  occurredAt: number;
2947
+ execution?: {
2948
+ attemptId: string;
2949
+ generation: number;
2950
+ hostBootId?: string | undefined;
2951
+ } | undefined;
1931
2952
  }>, z.ZodObject<{
2953
+ execution: z.ZodOptional<z.ZodObject<{
2954
+ attemptId: z.ZodString;
2955
+ generation: z.ZodNumber;
2956
+ hostBootId: z.ZodOptional<z.ZodString>;
2957
+ }, "strict", z.ZodTypeAny, {
2958
+ attemptId: string;
2959
+ generation: number;
2960
+ hostBootId?: string | undefined;
2961
+ }, {
2962
+ attemptId: string;
2963
+ generation: number;
2964
+ hostBootId?: string | undefined;
2965
+ }>>;
1932
2966
  protocolVersion: z.ZodLiteral<1>;
1933
2967
  eventId: z.ZodString;
1934
2968
  environmentId: z.ZodString;
@@ -1979,6 +3013,11 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1979
3013
  eventId: string;
1980
3014
  sourceSequence: number;
1981
3015
  occurredAt: number;
3016
+ execution?: {
3017
+ attemptId: string;
3018
+ generation: number;
3019
+ hostBootId?: string | undefined;
3020
+ } | undefined;
1982
3021
  }, {
1983
3022
  type: "commands_update";
1984
3023
  protocolVersion: 1;
@@ -1994,7 +3033,25 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1994
3033
  eventId: string;
1995
3034
  sourceSequence: number;
1996
3035
  occurredAt: number;
3036
+ execution?: {
3037
+ attemptId: string;
3038
+ generation: number;
3039
+ hostBootId?: string | undefined;
3040
+ } | undefined;
1997
3041
  }>, z.ZodObject<{
3042
+ execution: z.ZodOptional<z.ZodObject<{
3043
+ attemptId: z.ZodString;
3044
+ generation: z.ZodNumber;
3045
+ hostBootId: z.ZodOptional<z.ZodString>;
3046
+ }, "strict", z.ZodTypeAny, {
3047
+ attemptId: string;
3048
+ generation: number;
3049
+ hostBootId?: string | undefined;
3050
+ }, {
3051
+ attemptId: string;
3052
+ generation: number;
3053
+ hostBootId?: string | undefined;
3054
+ }>>;
1998
3055
  protocolVersion: z.ZodLiteral<1>;
1999
3056
  eventId: z.ZodString;
2000
3057
  environmentId: z.ZodString;
@@ -2033,6 +3090,11 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2033
3090
  eventId: string;
2034
3091
  sourceSequence: number;
2035
3092
  occurredAt: number;
3093
+ execution?: {
3094
+ attemptId: string;
3095
+ generation: number;
3096
+ hostBootId?: string | undefined;
3097
+ } | undefined;
2036
3098
  }, {
2037
3099
  type: "diff";
2038
3100
  protocolVersion: 1;
@@ -2047,7 +3109,25 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2047
3109
  eventId: string;
2048
3110
  sourceSequence: number;
2049
3111
  occurredAt: number;
3112
+ execution?: {
3113
+ attemptId: string;
3114
+ generation: number;
3115
+ hostBootId?: string | undefined;
3116
+ } | undefined;
2050
3117
  }>, z.ZodObject<{
3118
+ execution: z.ZodOptional<z.ZodObject<{
3119
+ attemptId: z.ZodString;
3120
+ generation: z.ZodNumber;
3121
+ hostBootId: z.ZodOptional<z.ZodString>;
3122
+ }, "strict", z.ZodTypeAny, {
3123
+ attemptId: string;
3124
+ generation: number;
3125
+ hostBootId?: string | undefined;
3126
+ }, {
3127
+ attemptId: string;
3128
+ generation: number;
3129
+ hostBootId?: string | undefined;
3130
+ }>>;
2051
3131
  protocolVersion: z.ZodLiteral<1>;
2052
3132
  eventId: z.ZodString;
2053
3133
  environmentId: z.ZodString;
@@ -2090,6 +3170,11 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2090
3170
  eventId: string;
2091
3171
  sourceSequence: number;
2092
3172
  occurredAt: number;
3173
+ execution?: {
3174
+ attemptId: string;
3175
+ generation: number;
3176
+ hostBootId?: string | undefined;
3177
+ } | undefined;
2093
3178
  }, {
2094
3179
  type: "terminal";
2095
3180
  protocolVersion: 1;
@@ -2105,7 +3190,25 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2105
3190
  eventId: string;
2106
3191
  sourceSequence: number;
2107
3192
  occurredAt: number;
3193
+ execution?: {
3194
+ attemptId: string;
3195
+ generation: number;
3196
+ hostBootId?: string | undefined;
3197
+ } | undefined;
2108
3198
  }>, z.ZodObject<{
3199
+ execution: z.ZodOptional<z.ZodObject<{
3200
+ attemptId: z.ZodString;
3201
+ generation: z.ZodNumber;
3202
+ hostBootId: z.ZodOptional<z.ZodString>;
3203
+ }, "strict", z.ZodTypeAny, {
3204
+ attemptId: string;
3205
+ generation: number;
3206
+ hostBootId?: string | undefined;
3207
+ }, {
3208
+ attemptId: string;
3209
+ generation: number;
3210
+ hostBootId?: string | undefined;
3211
+ }>>;
2109
3212
  protocolVersion: z.ZodLiteral<1>;
2110
3213
  eventId: z.ZodString;
2111
3214
  environmentId: z.ZodString;
@@ -2148,6 +3251,11 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2148
3251
  eventId: string;
2149
3252
  sourceSequence: number;
2150
3253
  occurredAt: number;
3254
+ execution?: {
3255
+ attemptId: string;
3256
+ generation: number;
3257
+ hostBootId?: string | undefined;
3258
+ } | undefined;
2151
3259
  }, {
2152
3260
  type: "artifact";
2153
3261
  protocolVersion: 1;
@@ -2163,7 +3271,25 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2163
3271
  eventId: string;
2164
3272
  sourceSequence: number;
2165
3273
  occurredAt: number;
3274
+ execution?: {
3275
+ attemptId: string;
3276
+ generation: number;
3277
+ hostBootId?: string | undefined;
3278
+ } | undefined;
2166
3279
  }>, z.ZodObject<{
3280
+ execution: z.ZodOptional<z.ZodObject<{
3281
+ attemptId: z.ZodString;
3282
+ generation: z.ZodNumber;
3283
+ hostBootId: z.ZodOptional<z.ZodString>;
3284
+ }, "strict", z.ZodTypeAny, {
3285
+ attemptId: string;
3286
+ generation: number;
3287
+ hostBootId?: string | undefined;
3288
+ }, {
3289
+ attemptId: string;
3290
+ generation: number;
3291
+ hostBootId?: string | undefined;
3292
+ }>>;
2167
3293
  protocolVersion: z.ZodLiteral<1>;
2168
3294
  eventId: z.ZodString;
2169
3295
  environmentId: z.ZodString;
@@ -2194,6 +3320,11 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2194
3320
  eventId: string;
2195
3321
  sourceSequence: number;
2196
3322
  occurredAt: number;
3323
+ execution?: {
3324
+ attemptId: string;
3325
+ generation: number;
3326
+ hostBootId?: string | undefined;
3327
+ } | undefined;
2197
3328
  }, {
2198
3329
  type: "completed";
2199
3330
  protocolVersion: 1;
@@ -2206,7 +3337,25 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2206
3337
  eventId: string;
2207
3338
  sourceSequence: number;
2208
3339
  occurredAt: number;
3340
+ execution?: {
3341
+ attemptId: string;
3342
+ generation: number;
3343
+ hostBootId?: string | undefined;
3344
+ } | undefined;
2209
3345
  }>, z.ZodObject<{
3346
+ execution: z.ZodOptional<z.ZodObject<{
3347
+ attemptId: z.ZodString;
3348
+ generation: z.ZodNumber;
3349
+ hostBootId: z.ZodOptional<z.ZodString>;
3350
+ }, "strict", z.ZodTypeAny, {
3351
+ attemptId: string;
3352
+ generation: number;
3353
+ hostBootId?: string | undefined;
3354
+ }, {
3355
+ attemptId: string;
3356
+ generation: number;
3357
+ hostBootId?: string | undefined;
3358
+ }>>;
2210
3359
  protocolVersion: z.ZodLiteral<1>;
2211
3360
  eventId: z.ZodString;
2212
3361
  environmentId: z.ZodString;
@@ -2241,6 +3390,11 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2241
3390
  eventId: string;
2242
3391
  sourceSequence: number;
2243
3392
  occurredAt: number;
3393
+ execution?: {
3394
+ attemptId: string;
3395
+ generation: number;
3396
+ hostBootId?: string | undefined;
3397
+ } | undefined;
2244
3398
  }, {
2245
3399
  type: "failed";
2246
3400
  protocolVersion: 1;
@@ -2254,7 +3408,25 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2254
3408
  eventId: string;
2255
3409
  sourceSequence: number;
2256
3410
  occurredAt: number;
3411
+ execution?: {
3412
+ attemptId: string;
3413
+ generation: number;
3414
+ hostBootId?: string | undefined;
3415
+ } | undefined;
2257
3416
  }>, z.ZodObject<{
3417
+ execution: z.ZodOptional<z.ZodObject<{
3418
+ attemptId: z.ZodString;
3419
+ generation: z.ZodNumber;
3420
+ hostBootId: z.ZodOptional<z.ZodString>;
3421
+ }, "strict", z.ZodTypeAny, {
3422
+ attemptId: string;
3423
+ generation: number;
3424
+ hostBootId?: string | undefined;
3425
+ }, {
3426
+ attemptId: string;
3427
+ generation: number;
3428
+ hostBootId?: string | undefined;
3429
+ }>>;
2258
3430
  protocolVersion: z.ZodLiteral<1>;
2259
3431
  eventId: z.ZodString;
2260
3432
  environmentId: z.ZodString;
@@ -2281,6 +3453,11 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2281
3453
  eventId: string;
2282
3454
  sourceSequence: number;
2283
3455
  occurredAt: number;
3456
+ execution?: {
3457
+ attemptId: string;
3458
+ generation: number;
3459
+ hostBootId?: string | undefined;
3460
+ } | undefined;
2284
3461
  }, {
2285
3462
  type: "cancelled";
2286
3463
  protocolVersion: 1;
@@ -2292,6 +3469,11 @@ export declare const agentHostEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2292
3469
  eventId: string;
2293
3470
  sourceSequence: number;
2294
3471
  occurredAt: number;
3472
+ execution?: {
3473
+ attemptId: string;
3474
+ generation: number;
3475
+ hostBootId?: string | undefined;
3476
+ } | undefined;
2295
3477
  }>]>;
2296
3478
  export type AgentHostEvent = z.infer<typeof agentHostEventSchema>;
2297
3479
  export declare const artifactUploadRequestSchema: z.ZodObject<{
@@ -2355,6 +3537,85 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2355
3537
  environmentId: z.ZodString;
2356
3538
  runId: z.ZodString;
2357
3539
  events: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3540
+ execution: z.ZodOptional<z.ZodObject<{
3541
+ attemptId: z.ZodString;
3542
+ generation: z.ZodNumber;
3543
+ hostBootId: z.ZodOptional<z.ZodString>;
3544
+ }, "strict", z.ZodTypeAny, {
3545
+ attemptId: string;
3546
+ generation: number;
3547
+ hostBootId?: string | undefined;
3548
+ }, {
3549
+ attemptId: string;
3550
+ generation: number;
3551
+ hostBootId?: string | undefined;
3552
+ }>>;
3553
+ protocolVersion: z.ZodLiteral<1>;
3554
+ eventId: z.ZodString;
3555
+ environmentId: z.ZodString;
3556
+ runId: z.ZodString;
3557
+ sourceSequence: z.ZodNumber;
3558
+ occurredAt: z.ZodNumber;
3559
+ } & {
3560
+ type: z.ZodLiteral<"process_observation">;
3561
+ payload: z.ZodObject<{
3562
+ process: z.ZodEnum<["live", "lost", "unknown"]>;
3563
+ recoveryOutcome: z.ZodOptional<z.ZodEnum<["attached_live", "restored", "requires_new_attempt", "unavailable"]>>;
3564
+ }, "strict", z.ZodTypeAny, {
3565
+ process: "unknown" | "live" | "lost";
3566
+ recoveryOutcome?: "attached_live" | "restored" | "requires_new_attempt" | "unavailable" | undefined;
3567
+ }, {
3568
+ process: "unknown" | "live" | "lost";
3569
+ recoveryOutcome?: "attached_live" | "restored" | "requires_new_attempt" | "unavailable" | undefined;
3570
+ }>;
3571
+ }, "strict", z.ZodTypeAny, {
3572
+ type: "process_observation";
3573
+ protocolVersion: 1;
3574
+ runId: string;
3575
+ environmentId: string;
3576
+ payload: {
3577
+ process: "unknown" | "live" | "lost";
3578
+ recoveryOutcome?: "attached_live" | "restored" | "requires_new_attempt" | "unavailable" | undefined;
3579
+ };
3580
+ eventId: string;
3581
+ sourceSequence: number;
3582
+ occurredAt: number;
3583
+ execution?: {
3584
+ attemptId: string;
3585
+ generation: number;
3586
+ hostBootId?: string | undefined;
3587
+ } | undefined;
3588
+ }, {
3589
+ type: "process_observation";
3590
+ protocolVersion: 1;
3591
+ runId: string;
3592
+ environmentId: string;
3593
+ payload: {
3594
+ process: "unknown" | "live" | "lost";
3595
+ recoveryOutcome?: "attached_live" | "restored" | "requires_new_attempt" | "unavailable" | undefined;
3596
+ };
3597
+ eventId: string;
3598
+ sourceSequence: number;
3599
+ occurredAt: number;
3600
+ execution?: {
3601
+ attemptId: string;
3602
+ generation: number;
3603
+ hostBootId?: string | undefined;
3604
+ } | undefined;
3605
+ }>, z.ZodObject<{
3606
+ execution: z.ZodOptional<z.ZodObject<{
3607
+ attemptId: z.ZodString;
3608
+ generation: z.ZodNumber;
3609
+ hostBootId: z.ZodOptional<z.ZodString>;
3610
+ }, "strict", z.ZodTypeAny, {
3611
+ attemptId: string;
3612
+ generation: number;
3613
+ hostBootId?: string | undefined;
3614
+ }, {
3615
+ attemptId: string;
3616
+ generation: number;
3617
+ hostBootId?: string | undefined;
3618
+ }>>;
2358
3619
  protocolVersion: z.ZodLiteral<1>;
2359
3620
  eventId: z.ZodString;
2360
3621
  environmentId: z.ZodString;
@@ -2385,6 +3646,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2385
3646
  eventId: string;
2386
3647
  sourceSequence: number;
2387
3648
  occurredAt: number;
3649
+ execution?: {
3650
+ attemptId: string;
3651
+ generation: number;
3652
+ hostBootId?: string | undefined;
3653
+ } | undefined;
2388
3654
  }, {
2389
3655
  type: "session_started";
2390
3656
  protocolVersion: 1;
@@ -2397,7 +3663,25 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2397
3663
  eventId: string;
2398
3664
  sourceSequence: number;
2399
3665
  occurredAt: number;
3666
+ execution?: {
3667
+ attemptId: string;
3668
+ generation: number;
3669
+ hostBootId?: string | undefined;
3670
+ } | undefined;
2400
3671
  }>, z.ZodObject<{
3672
+ execution: z.ZodOptional<z.ZodObject<{
3673
+ attemptId: z.ZodString;
3674
+ generation: z.ZodNumber;
3675
+ hostBootId: z.ZodOptional<z.ZodString>;
3676
+ }, "strict", z.ZodTypeAny, {
3677
+ attemptId: string;
3678
+ generation: number;
3679
+ hostBootId?: string | undefined;
3680
+ }, {
3681
+ attemptId: string;
3682
+ generation: number;
3683
+ hostBootId?: string | undefined;
3684
+ }>>;
2401
3685
  protocolVersion: z.ZodLiteral<1>;
2402
3686
  eventId: z.ZodString;
2403
3687
  environmentId: z.ZodString;
@@ -2428,6 +3712,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2428
3712
  eventId: string;
2429
3713
  sourceSequence: number;
2430
3714
  occurredAt: number;
3715
+ execution?: {
3716
+ attemptId: string;
3717
+ generation: number;
3718
+ hostBootId?: string | undefined;
3719
+ } | undefined;
2431
3720
  }, {
2432
3721
  type: "text_checkpoint";
2433
3722
  protocolVersion: 1;
@@ -2440,7 +3729,25 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2440
3729
  eventId: string;
2441
3730
  sourceSequence: number;
2442
3731
  occurredAt: number;
3732
+ execution?: {
3733
+ attemptId: string;
3734
+ generation: number;
3735
+ hostBootId?: string | undefined;
3736
+ } | undefined;
2443
3737
  }>, z.ZodObject<{
3738
+ execution: z.ZodOptional<z.ZodObject<{
3739
+ attemptId: z.ZodString;
3740
+ generation: z.ZodNumber;
3741
+ hostBootId: z.ZodOptional<z.ZodString>;
3742
+ }, "strict", z.ZodTypeAny, {
3743
+ attemptId: string;
3744
+ generation: number;
3745
+ hostBootId?: string | undefined;
3746
+ }, {
3747
+ attemptId: string;
3748
+ generation: number;
3749
+ hostBootId?: string | undefined;
3750
+ }>>;
2444
3751
  protocolVersion: z.ZodLiteral<1>;
2445
3752
  eventId: z.ZodString;
2446
3753
  environmentId: z.ZodString;
@@ -2479,6 +3786,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2479
3786
  eventId: string;
2480
3787
  sourceSequence: number;
2481
3788
  occurredAt: number;
3789
+ execution?: {
3790
+ attemptId: string;
3791
+ generation: number;
3792
+ hostBootId?: string | undefined;
3793
+ } | undefined;
2482
3794
  }, {
2483
3795
  type: "action";
2484
3796
  protocolVersion: 1;
@@ -2493,7 +3805,25 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2493
3805
  eventId: string;
2494
3806
  sourceSequence: number;
2495
3807
  occurredAt: number;
3808
+ execution?: {
3809
+ attemptId: string;
3810
+ generation: number;
3811
+ hostBootId?: string | undefined;
3812
+ } | undefined;
2496
3813
  }>, z.ZodObject<{
3814
+ execution: z.ZodOptional<z.ZodObject<{
3815
+ attemptId: z.ZodString;
3816
+ generation: z.ZodNumber;
3817
+ hostBootId: z.ZodOptional<z.ZodString>;
3818
+ }, "strict", z.ZodTypeAny, {
3819
+ attemptId: string;
3820
+ generation: number;
3821
+ hostBootId?: string | undefined;
3822
+ }, {
3823
+ attemptId: string;
3824
+ generation: number;
3825
+ hostBootId?: string | undefined;
3826
+ }>>;
2497
3827
  protocolVersion: z.ZodLiteral<1>;
2498
3828
  eventId: z.ZodString;
2499
3829
  environmentId: z.ZodString;
@@ -2550,6 +3880,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2550
3880
  eventId: string;
2551
3881
  sourceSequence: number;
2552
3882
  occurredAt: number;
3883
+ execution?: {
3884
+ attemptId: string;
3885
+ generation: number;
3886
+ hostBootId?: string | undefined;
3887
+ } | undefined;
2553
3888
  }, {
2554
3889
  type: "approval_requested";
2555
3890
  protocolVersion: 1;
@@ -2567,7 +3902,25 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2567
3902
  eventId: string;
2568
3903
  sourceSequence: number;
2569
3904
  occurredAt: number;
3905
+ execution?: {
3906
+ attemptId: string;
3907
+ generation: number;
3908
+ hostBootId?: string | undefined;
3909
+ } | undefined;
2570
3910
  }>, z.ZodObject<{
3911
+ execution: z.ZodOptional<z.ZodObject<{
3912
+ attemptId: z.ZodString;
3913
+ generation: z.ZodNumber;
3914
+ hostBootId: z.ZodOptional<z.ZodString>;
3915
+ }, "strict", z.ZodTypeAny, {
3916
+ attemptId: string;
3917
+ generation: number;
3918
+ hostBootId?: string | undefined;
3919
+ }, {
3920
+ attemptId: string;
3921
+ generation: number;
3922
+ hostBootId?: string | undefined;
3923
+ }>>;
2571
3924
  protocolVersion: z.ZodLiteral<1>;
2572
3925
  eventId: z.ZodString;
2573
3926
  environmentId: z.ZodString;
@@ -2606,6 +3959,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2606
3959
  eventId: string;
2607
3960
  sourceSequence: number;
2608
3961
  occurredAt: number;
3962
+ execution?: {
3963
+ attemptId: string;
3964
+ generation: number;
3965
+ hostBootId?: string | undefined;
3966
+ } | undefined;
2609
3967
  }, {
2610
3968
  type: "elicitation_requested";
2611
3969
  protocolVersion: 1;
@@ -2620,7 +3978,25 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2620
3978
  eventId: string;
2621
3979
  sourceSequence: number;
2622
3980
  occurredAt: number;
3981
+ execution?: {
3982
+ attemptId: string;
3983
+ generation: number;
3984
+ hostBootId?: string | undefined;
3985
+ } | undefined;
2623
3986
  }>, z.ZodObject<{
3987
+ execution: z.ZodOptional<z.ZodObject<{
3988
+ attemptId: z.ZodString;
3989
+ generation: z.ZodNumber;
3990
+ hostBootId: z.ZodOptional<z.ZodString>;
3991
+ }, "strict", z.ZodTypeAny, {
3992
+ attemptId: string;
3993
+ generation: number;
3994
+ hostBootId?: string | undefined;
3995
+ }, {
3996
+ attemptId: string;
3997
+ generation: number;
3998
+ hostBootId?: string | undefined;
3999
+ }>>;
2624
4000
  protocolVersion: z.ZodLiteral<1>;
2625
4001
  eventId: z.ZodString;
2626
4002
  environmentId: z.ZodString;
@@ -2671,6 +4047,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2671
4047
  eventId: string;
2672
4048
  sourceSequence: number;
2673
4049
  occurredAt: number;
4050
+ execution?: {
4051
+ attemptId: string;
4052
+ generation: number;
4053
+ hostBootId?: string | undefined;
4054
+ } | undefined;
2674
4055
  }, {
2675
4056
  type: "plan";
2676
4057
  protocolVersion: 1;
@@ -2686,7 +4067,25 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2686
4067
  eventId: string;
2687
4068
  sourceSequence: number;
2688
4069
  occurredAt: number;
4070
+ execution?: {
4071
+ attemptId: string;
4072
+ generation: number;
4073
+ hostBootId?: string | undefined;
4074
+ } | undefined;
2689
4075
  }>, z.ZodObject<{
4076
+ execution: z.ZodOptional<z.ZodObject<{
4077
+ attemptId: z.ZodString;
4078
+ generation: z.ZodNumber;
4079
+ hostBootId: z.ZodOptional<z.ZodString>;
4080
+ }, "strict", z.ZodTypeAny, {
4081
+ attemptId: string;
4082
+ generation: number;
4083
+ hostBootId?: string | undefined;
4084
+ }, {
4085
+ attemptId: string;
4086
+ generation: number;
4087
+ hostBootId?: string | undefined;
4088
+ }>>;
2690
4089
  protocolVersion: z.ZodLiteral<1>;
2691
4090
  eventId: z.ZodString;
2692
4091
  environmentId: z.ZodString;
@@ -2737,6 +4136,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2737
4136
  eventId: string;
2738
4137
  sourceSequence: number;
2739
4138
  occurredAt: number;
4139
+ execution?: {
4140
+ attemptId: string;
4141
+ generation: number;
4142
+ hostBootId?: string | undefined;
4143
+ } | undefined;
2740
4144
  }, {
2741
4145
  type: "commands_update";
2742
4146
  protocolVersion: 1;
@@ -2752,7 +4156,25 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2752
4156
  eventId: string;
2753
4157
  sourceSequence: number;
2754
4158
  occurredAt: number;
4159
+ execution?: {
4160
+ attemptId: string;
4161
+ generation: number;
4162
+ hostBootId?: string | undefined;
4163
+ } | undefined;
2755
4164
  }>, z.ZodObject<{
4165
+ execution: z.ZodOptional<z.ZodObject<{
4166
+ attemptId: z.ZodString;
4167
+ generation: z.ZodNumber;
4168
+ hostBootId: z.ZodOptional<z.ZodString>;
4169
+ }, "strict", z.ZodTypeAny, {
4170
+ attemptId: string;
4171
+ generation: number;
4172
+ hostBootId?: string | undefined;
4173
+ }, {
4174
+ attemptId: string;
4175
+ generation: number;
4176
+ hostBootId?: string | undefined;
4177
+ }>>;
2756
4178
  protocolVersion: z.ZodLiteral<1>;
2757
4179
  eventId: z.ZodString;
2758
4180
  environmentId: z.ZodString;
@@ -2791,6 +4213,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2791
4213
  eventId: string;
2792
4214
  sourceSequence: number;
2793
4215
  occurredAt: number;
4216
+ execution?: {
4217
+ attemptId: string;
4218
+ generation: number;
4219
+ hostBootId?: string | undefined;
4220
+ } | undefined;
2794
4221
  }, {
2795
4222
  type: "diff";
2796
4223
  protocolVersion: 1;
@@ -2805,7 +4232,25 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2805
4232
  eventId: string;
2806
4233
  sourceSequence: number;
2807
4234
  occurredAt: number;
4235
+ execution?: {
4236
+ attemptId: string;
4237
+ generation: number;
4238
+ hostBootId?: string | undefined;
4239
+ } | undefined;
2808
4240
  }>, z.ZodObject<{
4241
+ execution: z.ZodOptional<z.ZodObject<{
4242
+ attemptId: z.ZodString;
4243
+ generation: z.ZodNumber;
4244
+ hostBootId: z.ZodOptional<z.ZodString>;
4245
+ }, "strict", z.ZodTypeAny, {
4246
+ attemptId: string;
4247
+ generation: number;
4248
+ hostBootId?: string | undefined;
4249
+ }, {
4250
+ attemptId: string;
4251
+ generation: number;
4252
+ hostBootId?: string | undefined;
4253
+ }>>;
2809
4254
  protocolVersion: z.ZodLiteral<1>;
2810
4255
  eventId: z.ZodString;
2811
4256
  environmentId: z.ZodString;
@@ -2848,6 +4293,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2848
4293
  eventId: string;
2849
4294
  sourceSequence: number;
2850
4295
  occurredAt: number;
4296
+ execution?: {
4297
+ attemptId: string;
4298
+ generation: number;
4299
+ hostBootId?: string | undefined;
4300
+ } | undefined;
2851
4301
  }, {
2852
4302
  type: "terminal";
2853
4303
  protocolVersion: 1;
@@ -2863,7 +4313,25 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2863
4313
  eventId: string;
2864
4314
  sourceSequence: number;
2865
4315
  occurredAt: number;
4316
+ execution?: {
4317
+ attemptId: string;
4318
+ generation: number;
4319
+ hostBootId?: string | undefined;
4320
+ } | undefined;
2866
4321
  }>, z.ZodObject<{
4322
+ execution: z.ZodOptional<z.ZodObject<{
4323
+ attemptId: z.ZodString;
4324
+ generation: z.ZodNumber;
4325
+ hostBootId: z.ZodOptional<z.ZodString>;
4326
+ }, "strict", z.ZodTypeAny, {
4327
+ attemptId: string;
4328
+ generation: number;
4329
+ hostBootId?: string | undefined;
4330
+ }, {
4331
+ attemptId: string;
4332
+ generation: number;
4333
+ hostBootId?: string | undefined;
4334
+ }>>;
2867
4335
  protocolVersion: z.ZodLiteral<1>;
2868
4336
  eventId: z.ZodString;
2869
4337
  environmentId: z.ZodString;
@@ -2906,6 +4374,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2906
4374
  eventId: string;
2907
4375
  sourceSequence: number;
2908
4376
  occurredAt: number;
4377
+ execution?: {
4378
+ attemptId: string;
4379
+ generation: number;
4380
+ hostBootId?: string | undefined;
4381
+ } | undefined;
2909
4382
  }, {
2910
4383
  type: "artifact";
2911
4384
  protocolVersion: 1;
@@ -2921,7 +4394,25 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2921
4394
  eventId: string;
2922
4395
  sourceSequence: number;
2923
4396
  occurredAt: number;
4397
+ execution?: {
4398
+ attemptId: string;
4399
+ generation: number;
4400
+ hostBootId?: string | undefined;
4401
+ } | undefined;
2924
4402
  }>, z.ZodObject<{
4403
+ execution: z.ZodOptional<z.ZodObject<{
4404
+ attemptId: z.ZodString;
4405
+ generation: z.ZodNumber;
4406
+ hostBootId: z.ZodOptional<z.ZodString>;
4407
+ }, "strict", z.ZodTypeAny, {
4408
+ attemptId: string;
4409
+ generation: number;
4410
+ hostBootId?: string | undefined;
4411
+ }, {
4412
+ attemptId: string;
4413
+ generation: number;
4414
+ hostBootId?: string | undefined;
4415
+ }>>;
2925
4416
  protocolVersion: z.ZodLiteral<1>;
2926
4417
  eventId: z.ZodString;
2927
4418
  environmentId: z.ZodString;
@@ -2952,6 +4443,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2952
4443
  eventId: string;
2953
4444
  sourceSequence: number;
2954
4445
  occurredAt: number;
4446
+ execution?: {
4447
+ attemptId: string;
4448
+ generation: number;
4449
+ hostBootId?: string | undefined;
4450
+ } | undefined;
2955
4451
  }, {
2956
4452
  type: "completed";
2957
4453
  protocolVersion: 1;
@@ -2964,7 +4460,25 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2964
4460
  eventId: string;
2965
4461
  sourceSequence: number;
2966
4462
  occurredAt: number;
4463
+ execution?: {
4464
+ attemptId: string;
4465
+ generation: number;
4466
+ hostBootId?: string | undefined;
4467
+ } | undefined;
2967
4468
  }>, z.ZodObject<{
4469
+ execution: z.ZodOptional<z.ZodObject<{
4470
+ attemptId: z.ZodString;
4471
+ generation: z.ZodNumber;
4472
+ hostBootId: z.ZodOptional<z.ZodString>;
4473
+ }, "strict", z.ZodTypeAny, {
4474
+ attemptId: string;
4475
+ generation: number;
4476
+ hostBootId?: string | undefined;
4477
+ }, {
4478
+ attemptId: string;
4479
+ generation: number;
4480
+ hostBootId?: string | undefined;
4481
+ }>>;
2968
4482
  protocolVersion: z.ZodLiteral<1>;
2969
4483
  eventId: z.ZodString;
2970
4484
  environmentId: z.ZodString;
@@ -2999,6 +4513,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
2999
4513
  eventId: string;
3000
4514
  sourceSequence: number;
3001
4515
  occurredAt: number;
4516
+ execution?: {
4517
+ attemptId: string;
4518
+ generation: number;
4519
+ hostBootId?: string | undefined;
4520
+ } | undefined;
3002
4521
  }, {
3003
4522
  type: "failed";
3004
4523
  protocolVersion: 1;
@@ -3012,7 +4531,25 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3012
4531
  eventId: string;
3013
4532
  sourceSequence: number;
3014
4533
  occurredAt: number;
4534
+ execution?: {
4535
+ attemptId: string;
4536
+ generation: number;
4537
+ hostBootId?: string | undefined;
4538
+ } | undefined;
3015
4539
  }>, z.ZodObject<{
4540
+ execution: z.ZodOptional<z.ZodObject<{
4541
+ attemptId: z.ZodString;
4542
+ generation: z.ZodNumber;
4543
+ hostBootId: z.ZodOptional<z.ZodString>;
4544
+ }, "strict", z.ZodTypeAny, {
4545
+ attemptId: string;
4546
+ generation: number;
4547
+ hostBootId?: string | undefined;
4548
+ }, {
4549
+ attemptId: string;
4550
+ generation: number;
4551
+ hostBootId?: string | undefined;
4552
+ }>>;
3016
4553
  protocolVersion: z.ZodLiteral<1>;
3017
4554
  eventId: z.ZodString;
3018
4555
  environmentId: z.ZodString;
@@ -3039,6 +4576,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3039
4576
  eventId: string;
3040
4577
  sourceSequence: number;
3041
4578
  occurredAt: number;
4579
+ execution?: {
4580
+ attemptId: string;
4581
+ generation: number;
4582
+ hostBootId?: string | undefined;
4583
+ } | undefined;
3042
4584
  }, {
3043
4585
  type: "cancelled";
3044
4586
  protocolVersion: 1;
@@ -3050,12 +4592,34 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3050
4592
  eventId: string;
3051
4593
  sourceSequence: number;
3052
4594
  occurredAt: number;
4595
+ execution?: {
4596
+ attemptId: string;
4597
+ generation: number;
4598
+ hostBootId?: string | undefined;
4599
+ } | undefined;
3053
4600
  }>]>, "many">;
3054
4601
  }, "strict", z.ZodTypeAny, {
3055
4602
  protocolVersion: 1;
3056
4603
  runId: string;
3057
4604
  environmentId: string;
3058
4605
  events: ({
4606
+ type: "process_observation";
4607
+ protocolVersion: 1;
4608
+ runId: string;
4609
+ environmentId: string;
4610
+ payload: {
4611
+ process: "unknown" | "live" | "lost";
4612
+ recoveryOutcome?: "attached_live" | "restored" | "requires_new_attempt" | "unavailable" | undefined;
4613
+ };
4614
+ eventId: string;
4615
+ sourceSequence: number;
4616
+ occurredAt: number;
4617
+ execution?: {
4618
+ attemptId: string;
4619
+ generation: number;
4620
+ hostBootId?: string | undefined;
4621
+ } | undefined;
4622
+ } | {
3059
4623
  type: "session_started";
3060
4624
  protocolVersion: 1;
3061
4625
  runId: string;
@@ -3067,6 +4631,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3067
4631
  eventId: string;
3068
4632
  sourceSequence: number;
3069
4633
  occurredAt: number;
4634
+ execution?: {
4635
+ attemptId: string;
4636
+ generation: number;
4637
+ hostBootId?: string | undefined;
4638
+ } | undefined;
3070
4639
  } | {
3071
4640
  type: "text_checkpoint";
3072
4641
  protocolVersion: 1;
@@ -3079,6 +4648,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3079
4648
  eventId: string;
3080
4649
  sourceSequence: number;
3081
4650
  occurredAt: number;
4651
+ execution?: {
4652
+ attemptId: string;
4653
+ generation: number;
4654
+ hostBootId?: string | undefined;
4655
+ } | undefined;
3082
4656
  } | {
3083
4657
  type: "action";
3084
4658
  protocolVersion: 1;
@@ -3093,6 +4667,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3093
4667
  eventId: string;
3094
4668
  sourceSequence: number;
3095
4669
  occurredAt: number;
4670
+ execution?: {
4671
+ attemptId: string;
4672
+ generation: number;
4673
+ hostBootId?: string | undefined;
4674
+ } | undefined;
3096
4675
  } | {
3097
4676
  type: "approval_requested";
3098
4677
  protocolVersion: 1;
@@ -3110,6 +4689,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3110
4689
  eventId: string;
3111
4690
  sourceSequence: number;
3112
4691
  occurredAt: number;
4692
+ execution?: {
4693
+ attemptId: string;
4694
+ generation: number;
4695
+ hostBootId?: string | undefined;
4696
+ } | undefined;
3113
4697
  } | {
3114
4698
  type: "elicitation_requested";
3115
4699
  protocolVersion: 1;
@@ -3124,6 +4708,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3124
4708
  eventId: string;
3125
4709
  sourceSequence: number;
3126
4710
  occurredAt: number;
4711
+ execution?: {
4712
+ attemptId: string;
4713
+ generation: number;
4714
+ hostBootId?: string | undefined;
4715
+ } | undefined;
3127
4716
  } | {
3128
4717
  type: "plan";
3129
4718
  protocolVersion: 1;
@@ -3139,6 +4728,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3139
4728
  eventId: string;
3140
4729
  sourceSequence: number;
3141
4730
  occurredAt: number;
4731
+ execution?: {
4732
+ attemptId: string;
4733
+ generation: number;
4734
+ hostBootId?: string | undefined;
4735
+ } | undefined;
3142
4736
  } | {
3143
4737
  type: "commands_update";
3144
4738
  protocolVersion: 1;
@@ -3154,6 +4748,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3154
4748
  eventId: string;
3155
4749
  sourceSequence: number;
3156
4750
  occurredAt: number;
4751
+ execution?: {
4752
+ attemptId: string;
4753
+ generation: number;
4754
+ hostBootId?: string | undefined;
4755
+ } | undefined;
3157
4756
  } | {
3158
4757
  type: "diff";
3159
4758
  protocolVersion: 1;
@@ -3168,6 +4767,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3168
4767
  eventId: string;
3169
4768
  sourceSequence: number;
3170
4769
  occurredAt: number;
4770
+ execution?: {
4771
+ attemptId: string;
4772
+ generation: number;
4773
+ hostBootId?: string | undefined;
4774
+ } | undefined;
3171
4775
  } | {
3172
4776
  type: "terminal";
3173
4777
  protocolVersion: 1;
@@ -3183,6 +4787,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3183
4787
  eventId: string;
3184
4788
  sourceSequence: number;
3185
4789
  occurredAt: number;
4790
+ execution?: {
4791
+ attemptId: string;
4792
+ generation: number;
4793
+ hostBootId?: string | undefined;
4794
+ } | undefined;
3186
4795
  } | {
3187
4796
  type: "artifact";
3188
4797
  protocolVersion: 1;
@@ -3198,6 +4807,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3198
4807
  eventId: string;
3199
4808
  sourceSequence: number;
3200
4809
  occurredAt: number;
4810
+ execution?: {
4811
+ attemptId: string;
4812
+ generation: number;
4813
+ hostBootId?: string | undefined;
4814
+ } | undefined;
3201
4815
  } | {
3202
4816
  type: "completed";
3203
4817
  protocolVersion: 1;
@@ -3210,6 +4824,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3210
4824
  eventId: string;
3211
4825
  sourceSequence: number;
3212
4826
  occurredAt: number;
4827
+ execution?: {
4828
+ attemptId: string;
4829
+ generation: number;
4830
+ hostBootId?: string | undefined;
4831
+ } | undefined;
3213
4832
  } | {
3214
4833
  type: "failed";
3215
4834
  protocolVersion: 1;
@@ -3223,6 +4842,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3223
4842
  eventId: string;
3224
4843
  sourceSequence: number;
3225
4844
  occurredAt: number;
4845
+ execution?: {
4846
+ attemptId: string;
4847
+ generation: number;
4848
+ hostBootId?: string | undefined;
4849
+ } | undefined;
3226
4850
  } | {
3227
4851
  type: "cancelled";
3228
4852
  protocolVersion: 1;
@@ -3234,12 +4858,34 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3234
4858
  eventId: string;
3235
4859
  sourceSequence: number;
3236
4860
  occurredAt: number;
4861
+ execution?: {
4862
+ attemptId: string;
4863
+ generation: number;
4864
+ hostBootId?: string | undefined;
4865
+ } | undefined;
3237
4866
  })[];
3238
4867
  }, {
3239
4868
  protocolVersion: 1;
3240
4869
  runId: string;
3241
4870
  environmentId: string;
3242
4871
  events: ({
4872
+ type: "process_observation";
4873
+ protocolVersion: 1;
4874
+ runId: string;
4875
+ environmentId: string;
4876
+ payload: {
4877
+ process: "unknown" | "live" | "lost";
4878
+ recoveryOutcome?: "attached_live" | "restored" | "requires_new_attempt" | "unavailable" | undefined;
4879
+ };
4880
+ eventId: string;
4881
+ sourceSequence: number;
4882
+ occurredAt: number;
4883
+ execution?: {
4884
+ attemptId: string;
4885
+ generation: number;
4886
+ hostBootId?: string | undefined;
4887
+ } | undefined;
4888
+ } | {
3243
4889
  type: "session_started";
3244
4890
  protocolVersion: 1;
3245
4891
  runId: string;
@@ -3251,6 +4897,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3251
4897
  eventId: string;
3252
4898
  sourceSequence: number;
3253
4899
  occurredAt: number;
4900
+ execution?: {
4901
+ attemptId: string;
4902
+ generation: number;
4903
+ hostBootId?: string | undefined;
4904
+ } | undefined;
3254
4905
  } | {
3255
4906
  type: "text_checkpoint";
3256
4907
  protocolVersion: 1;
@@ -3263,6 +4914,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3263
4914
  eventId: string;
3264
4915
  sourceSequence: number;
3265
4916
  occurredAt: number;
4917
+ execution?: {
4918
+ attemptId: string;
4919
+ generation: number;
4920
+ hostBootId?: string | undefined;
4921
+ } | undefined;
3266
4922
  } | {
3267
4923
  type: "action";
3268
4924
  protocolVersion: 1;
@@ -3277,6 +4933,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3277
4933
  eventId: string;
3278
4934
  sourceSequence: number;
3279
4935
  occurredAt: number;
4936
+ execution?: {
4937
+ attemptId: string;
4938
+ generation: number;
4939
+ hostBootId?: string | undefined;
4940
+ } | undefined;
3280
4941
  } | {
3281
4942
  type: "approval_requested";
3282
4943
  protocolVersion: 1;
@@ -3294,6 +4955,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3294
4955
  eventId: string;
3295
4956
  sourceSequence: number;
3296
4957
  occurredAt: number;
4958
+ execution?: {
4959
+ attemptId: string;
4960
+ generation: number;
4961
+ hostBootId?: string | undefined;
4962
+ } | undefined;
3297
4963
  } | {
3298
4964
  type: "elicitation_requested";
3299
4965
  protocolVersion: 1;
@@ -3308,6 +4974,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3308
4974
  eventId: string;
3309
4975
  sourceSequence: number;
3310
4976
  occurredAt: number;
4977
+ execution?: {
4978
+ attemptId: string;
4979
+ generation: number;
4980
+ hostBootId?: string | undefined;
4981
+ } | undefined;
3311
4982
  } | {
3312
4983
  type: "plan";
3313
4984
  protocolVersion: 1;
@@ -3323,6 +4994,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3323
4994
  eventId: string;
3324
4995
  sourceSequence: number;
3325
4996
  occurredAt: number;
4997
+ execution?: {
4998
+ attemptId: string;
4999
+ generation: number;
5000
+ hostBootId?: string | undefined;
5001
+ } | undefined;
3326
5002
  } | {
3327
5003
  type: "commands_update";
3328
5004
  protocolVersion: 1;
@@ -3338,6 +5014,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3338
5014
  eventId: string;
3339
5015
  sourceSequence: number;
3340
5016
  occurredAt: number;
5017
+ execution?: {
5018
+ attemptId: string;
5019
+ generation: number;
5020
+ hostBootId?: string | undefined;
5021
+ } | undefined;
3341
5022
  } | {
3342
5023
  type: "diff";
3343
5024
  protocolVersion: 1;
@@ -3352,6 +5033,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3352
5033
  eventId: string;
3353
5034
  sourceSequence: number;
3354
5035
  occurredAt: number;
5036
+ execution?: {
5037
+ attemptId: string;
5038
+ generation: number;
5039
+ hostBootId?: string | undefined;
5040
+ } | undefined;
3355
5041
  } | {
3356
5042
  type: "terminal";
3357
5043
  protocolVersion: 1;
@@ -3367,6 +5053,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3367
5053
  eventId: string;
3368
5054
  sourceSequence: number;
3369
5055
  occurredAt: number;
5056
+ execution?: {
5057
+ attemptId: string;
5058
+ generation: number;
5059
+ hostBootId?: string | undefined;
5060
+ } | undefined;
3370
5061
  } | {
3371
5062
  type: "artifact";
3372
5063
  protocolVersion: 1;
@@ -3382,6 +5073,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3382
5073
  eventId: string;
3383
5074
  sourceSequence: number;
3384
5075
  occurredAt: number;
5076
+ execution?: {
5077
+ attemptId: string;
5078
+ generation: number;
5079
+ hostBootId?: string | undefined;
5080
+ } | undefined;
3385
5081
  } | {
3386
5082
  type: "completed";
3387
5083
  protocolVersion: 1;
@@ -3394,6 +5090,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3394
5090
  eventId: string;
3395
5091
  sourceSequence: number;
3396
5092
  occurredAt: number;
5093
+ execution?: {
5094
+ attemptId: string;
5095
+ generation: number;
5096
+ hostBootId?: string | undefined;
5097
+ } | undefined;
3397
5098
  } | {
3398
5099
  type: "failed";
3399
5100
  protocolVersion: 1;
@@ -3407,6 +5108,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3407
5108
  eventId: string;
3408
5109
  sourceSequence: number;
3409
5110
  occurredAt: number;
5111
+ execution?: {
5112
+ attemptId: string;
5113
+ generation: number;
5114
+ hostBootId?: string | undefined;
5115
+ } | undefined;
3410
5116
  } | {
3411
5117
  type: "cancelled";
3412
5118
  protocolVersion: 1;
@@ -3418,12 +5124,34 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3418
5124
  eventId: string;
3419
5125
  sourceSequence: number;
3420
5126
  occurredAt: number;
5127
+ execution?: {
5128
+ attemptId: string;
5129
+ generation: number;
5130
+ hostBootId?: string | undefined;
5131
+ } | undefined;
3421
5132
  })[];
3422
5133
  }>, {
3423
5134
  protocolVersion: 1;
3424
5135
  runId: string;
3425
5136
  environmentId: string;
3426
5137
  events: ({
5138
+ type: "process_observation";
5139
+ protocolVersion: 1;
5140
+ runId: string;
5141
+ environmentId: string;
5142
+ payload: {
5143
+ process: "unknown" | "live" | "lost";
5144
+ recoveryOutcome?: "attached_live" | "restored" | "requires_new_attempt" | "unavailable" | undefined;
5145
+ };
5146
+ eventId: string;
5147
+ sourceSequence: number;
5148
+ occurredAt: number;
5149
+ execution?: {
5150
+ attemptId: string;
5151
+ generation: number;
5152
+ hostBootId?: string | undefined;
5153
+ } | undefined;
5154
+ } | {
3427
5155
  type: "session_started";
3428
5156
  protocolVersion: 1;
3429
5157
  runId: string;
@@ -3435,6 +5163,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3435
5163
  eventId: string;
3436
5164
  sourceSequence: number;
3437
5165
  occurredAt: number;
5166
+ execution?: {
5167
+ attemptId: string;
5168
+ generation: number;
5169
+ hostBootId?: string | undefined;
5170
+ } | undefined;
3438
5171
  } | {
3439
5172
  type: "text_checkpoint";
3440
5173
  protocolVersion: 1;
@@ -3447,6 +5180,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3447
5180
  eventId: string;
3448
5181
  sourceSequence: number;
3449
5182
  occurredAt: number;
5183
+ execution?: {
5184
+ attemptId: string;
5185
+ generation: number;
5186
+ hostBootId?: string | undefined;
5187
+ } | undefined;
3450
5188
  } | {
3451
5189
  type: "action";
3452
5190
  protocolVersion: 1;
@@ -3461,6 +5199,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3461
5199
  eventId: string;
3462
5200
  sourceSequence: number;
3463
5201
  occurredAt: number;
5202
+ execution?: {
5203
+ attemptId: string;
5204
+ generation: number;
5205
+ hostBootId?: string | undefined;
5206
+ } | undefined;
3464
5207
  } | {
3465
5208
  type: "approval_requested";
3466
5209
  protocolVersion: 1;
@@ -3478,6 +5221,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3478
5221
  eventId: string;
3479
5222
  sourceSequence: number;
3480
5223
  occurredAt: number;
5224
+ execution?: {
5225
+ attemptId: string;
5226
+ generation: number;
5227
+ hostBootId?: string | undefined;
5228
+ } | undefined;
3481
5229
  } | {
3482
5230
  type: "elicitation_requested";
3483
5231
  protocolVersion: 1;
@@ -3492,6 +5240,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3492
5240
  eventId: string;
3493
5241
  sourceSequence: number;
3494
5242
  occurredAt: number;
5243
+ execution?: {
5244
+ attemptId: string;
5245
+ generation: number;
5246
+ hostBootId?: string | undefined;
5247
+ } | undefined;
3495
5248
  } | {
3496
5249
  type: "plan";
3497
5250
  protocolVersion: 1;
@@ -3507,6 +5260,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3507
5260
  eventId: string;
3508
5261
  sourceSequence: number;
3509
5262
  occurredAt: number;
5263
+ execution?: {
5264
+ attemptId: string;
5265
+ generation: number;
5266
+ hostBootId?: string | undefined;
5267
+ } | undefined;
3510
5268
  } | {
3511
5269
  type: "commands_update";
3512
5270
  protocolVersion: 1;
@@ -3522,6 +5280,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3522
5280
  eventId: string;
3523
5281
  sourceSequence: number;
3524
5282
  occurredAt: number;
5283
+ execution?: {
5284
+ attemptId: string;
5285
+ generation: number;
5286
+ hostBootId?: string | undefined;
5287
+ } | undefined;
3525
5288
  } | {
3526
5289
  type: "diff";
3527
5290
  protocolVersion: 1;
@@ -3536,6 +5299,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3536
5299
  eventId: string;
3537
5300
  sourceSequence: number;
3538
5301
  occurredAt: number;
5302
+ execution?: {
5303
+ attemptId: string;
5304
+ generation: number;
5305
+ hostBootId?: string | undefined;
5306
+ } | undefined;
3539
5307
  } | {
3540
5308
  type: "terminal";
3541
5309
  protocolVersion: 1;
@@ -3551,6 +5319,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3551
5319
  eventId: string;
3552
5320
  sourceSequence: number;
3553
5321
  occurredAt: number;
5322
+ execution?: {
5323
+ attemptId: string;
5324
+ generation: number;
5325
+ hostBootId?: string | undefined;
5326
+ } | undefined;
3554
5327
  } | {
3555
5328
  type: "artifact";
3556
5329
  protocolVersion: 1;
@@ -3566,6 +5339,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3566
5339
  eventId: string;
3567
5340
  sourceSequence: number;
3568
5341
  occurredAt: number;
5342
+ execution?: {
5343
+ attemptId: string;
5344
+ generation: number;
5345
+ hostBootId?: string | undefined;
5346
+ } | undefined;
3569
5347
  } | {
3570
5348
  type: "completed";
3571
5349
  protocolVersion: 1;
@@ -3578,6 +5356,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3578
5356
  eventId: string;
3579
5357
  sourceSequence: number;
3580
5358
  occurredAt: number;
5359
+ execution?: {
5360
+ attemptId: string;
5361
+ generation: number;
5362
+ hostBootId?: string | undefined;
5363
+ } | undefined;
3581
5364
  } | {
3582
5365
  type: "failed";
3583
5366
  protocolVersion: 1;
@@ -3591,6 +5374,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3591
5374
  eventId: string;
3592
5375
  sourceSequence: number;
3593
5376
  occurredAt: number;
5377
+ execution?: {
5378
+ attemptId: string;
5379
+ generation: number;
5380
+ hostBootId?: string | undefined;
5381
+ } | undefined;
3594
5382
  } | {
3595
5383
  type: "cancelled";
3596
5384
  protocolVersion: 1;
@@ -3602,12 +5390,34 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3602
5390
  eventId: string;
3603
5391
  sourceSequence: number;
3604
5392
  occurredAt: number;
5393
+ execution?: {
5394
+ attemptId: string;
5395
+ generation: number;
5396
+ hostBootId?: string | undefined;
5397
+ } | undefined;
3605
5398
  })[];
3606
5399
  }, {
3607
5400
  protocolVersion: 1;
3608
5401
  runId: string;
3609
5402
  environmentId: string;
3610
5403
  events: ({
5404
+ type: "process_observation";
5405
+ protocolVersion: 1;
5406
+ runId: string;
5407
+ environmentId: string;
5408
+ payload: {
5409
+ process: "unknown" | "live" | "lost";
5410
+ recoveryOutcome?: "attached_live" | "restored" | "requires_new_attempt" | "unavailable" | undefined;
5411
+ };
5412
+ eventId: string;
5413
+ sourceSequence: number;
5414
+ occurredAt: number;
5415
+ execution?: {
5416
+ attemptId: string;
5417
+ generation: number;
5418
+ hostBootId?: string | undefined;
5419
+ } | undefined;
5420
+ } | {
3611
5421
  type: "session_started";
3612
5422
  protocolVersion: 1;
3613
5423
  runId: string;
@@ -3619,6 +5429,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3619
5429
  eventId: string;
3620
5430
  sourceSequence: number;
3621
5431
  occurredAt: number;
5432
+ execution?: {
5433
+ attemptId: string;
5434
+ generation: number;
5435
+ hostBootId?: string | undefined;
5436
+ } | undefined;
3622
5437
  } | {
3623
5438
  type: "text_checkpoint";
3624
5439
  protocolVersion: 1;
@@ -3631,6 +5446,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3631
5446
  eventId: string;
3632
5447
  sourceSequence: number;
3633
5448
  occurredAt: number;
5449
+ execution?: {
5450
+ attemptId: string;
5451
+ generation: number;
5452
+ hostBootId?: string | undefined;
5453
+ } | undefined;
3634
5454
  } | {
3635
5455
  type: "action";
3636
5456
  protocolVersion: 1;
@@ -3645,6 +5465,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3645
5465
  eventId: string;
3646
5466
  sourceSequence: number;
3647
5467
  occurredAt: number;
5468
+ execution?: {
5469
+ attemptId: string;
5470
+ generation: number;
5471
+ hostBootId?: string | undefined;
5472
+ } | undefined;
3648
5473
  } | {
3649
5474
  type: "approval_requested";
3650
5475
  protocolVersion: 1;
@@ -3662,6 +5487,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3662
5487
  eventId: string;
3663
5488
  sourceSequence: number;
3664
5489
  occurredAt: number;
5490
+ execution?: {
5491
+ attemptId: string;
5492
+ generation: number;
5493
+ hostBootId?: string | undefined;
5494
+ } | undefined;
3665
5495
  } | {
3666
5496
  type: "elicitation_requested";
3667
5497
  protocolVersion: 1;
@@ -3676,6 +5506,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3676
5506
  eventId: string;
3677
5507
  sourceSequence: number;
3678
5508
  occurredAt: number;
5509
+ execution?: {
5510
+ attemptId: string;
5511
+ generation: number;
5512
+ hostBootId?: string | undefined;
5513
+ } | undefined;
3679
5514
  } | {
3680
5515
  type: "plan";
3681
5516
  protocolVersion: 1;
@@ -3691,6 +5526,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3691
5526
  eventId: string;
3692
5527
  sourceSequence: number;
3693
5528
  occurredAt: number;
5529
+ execution?: {
5530
+ attemptId: string;
5531
+ generation: number;
5532
+ hostBootId?: string | undefined;
5533
+ } | undefined;
3694
5534
  } | {
3695
5535
  type: "commands_update";
3696
5536
  protocolVersion: 1;
@@ -3706,6 +5546,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3706
5546
  eventId: string;
3707
5547
  sourceSequence: number;
3708
5548
  occurredAt: number;
5549
+ execution?: {
5550
+ attemptId: string;
5551
+ generation: number;
5552
+ hostBootId?: string | undefined;
5553
+ } | undefined;
3709
5554
  } | {
3710
5555
  type: "diff";
3711
5556
  protocolVersion: 1;
@@ -3720,6 +5565,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3720
5565
  eventId: string;
3721
5566
  sourceSequence: number;
3722
5567
  occurredAt: number;
5568
+ execution?: {
5569
+ attemptId: string;
5570
+ generation: number;
5571
+ hostBootId?: string | undefined;
5572
+ } | undefined;
3723
5573
  } | {
3724
5574
  type: "terminal";
3725
5575
  protocolVersion: 1;
@@ -3735,6 +5585,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3735
5585
  eventId: string;
3736
5586
  sourceSequence: number;
3737
5587
  occurredAt: number;
5588
+ execution?: {
5589
+ attemptId: string;
5590
+ generation: number;
5591
+ hostBootId?: string | undefined;
5592
+ } | undefined;
3738
5593
  } | {
3739
5594
  type: "artifact";
3740
5595
  protocolVersion: 1;
@@ -3750,6 +5605,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3750
5605
  eventId: string;
3751
5606
  sourceSequence: number;
3752
5607
  occurredAt: number;
5608
+ execution?: {
5609
+ attemptId: string;
5610
+ generation: number;
5611
+ hostBootId?: string | undefined;
5612
+ } | undefined;
3753
5613
  } | {
3754
5614
  type: "completed";
3755
5615
  protocolVersion: 1;
@@ -3762,6 +5622,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3762
5622
  eventId: string;
3763
5623
  sourceSequence: number;
3764
5624
  occurredAt: number;
5625
+ execution?: {
5626
+ attemptId: string;
5627
+ generation: number;
5628
+ hostBootId?: string | undefined;
5629
+ } | undefined;
3765
5630
  } | {
3766
5631
  type: "failed";
3767
5632
  protocolVersion: 1;
@@ -3775,6 +5640,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3775
5640
  eventId: string;
3776
5641
  sourceSequence: number;
3777
5642
  occurredAt: number;
5643
+ execution?: {
5644
+ attemptId: string;
5645
+ generation: number;
5646
+ hostBootId?: string | undefined;
5647
+ } | undefined;
3778
5648
  } | {
3779
5649
  type: "cancelled";
3780
5650
  protocolVersion: 1;
@@ -3786,6 +5656,11 @@ export declare const eventBatchSchema: z.ZodEffects<z.ZodObject<{
3786
5656
  eventId: string;
3787
5657
  sourceSequence: number;
3788
5658
  occurredAt: number;
5659
+ execution?: {
5660
+ attemptId: string;
5661
+ generation: number;
5662
+ hostBootId?: string | undefined;
5663
+ } | undefined;
3789
5664
  })[];
3790
5665
  }>;
3791
5666
  export type EventBatch = z.infer<typeof eventBatchSchema>;