@spotpatch/shared 1.15.0 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/{annotation-Cz-NNgR4.d.cts → annotation-eo_ltNRm.d.cts} +24 -1
  2. package/dist/{annotation-Cz-NNgR4.d.ts → annotation-eo_ltNRm.d.ts} +24 -1
  3. package/dist/{chunk-JTZFOTPT.js → chunk-7777QFBJ.js} +2 -2
  4. package/dist/{chunk-R3BQKCCY.js → chunk-D7R32NFF.js} +2 -2
  5. package/dist/{chunk-R6QJFNT2.js → chunk-FCY5V76A.js} +31 -1
  6. package/dist/chunk-FCY5V76A.js.map +1 -0
  7. package/dist/{contextual-ask-BbmHG3Z8.d.cts → contextual-ask-Dz3Mh9LR.d.cts} +105 -0
  8. package/dist/{contextual-ask-BbmHG3Z8.d.ts → contextual-ask-Dz3Mh9LR.d.ts} +105 -0
  9. package/dist/contextual-ask-browser.d.cts +1 -1
  10. package/dist/contextual-ask-browser.d.ts +1 -1
  11. package/dist/contextual-ask-node.cjs +24 -0
  12. package/dist/contextual-ask-node.cjs.map +1 -1
  13. package/dist/contextual-ask-node.d.cts +3 -3
  14. package/dist/contextual-ask-node.d.ts +3 -3
  15. package/dist/contextual-ask-node.js +2 -2
  16. package/dist/data-flow-runtime.d.cts +1 -1
  17. package/dist/data-flow-runtime.d.ts +1 -1
  18. package/dist/external-agent-node.cjs +26 -0
  19. package/dist/external-agent-node.cjs.map +1 -1
  20. package/dist/external-agent-node.d.cts +66 -36
  21. package/dist/external-agent-node.d.ts +66 -36
  22. package/dist/external-agent-node.js +2 -2
  23. package/dist/{external-handoff-BpoxbpPk.d.ts → external-handoff-BaPiKnYG.d.ts} +68 -38
  24. package/dist/{external-handoff-D1Ua2jIA.d.cts → external-handoff-ByHmcwWv.d.cts} +68 -38
  25. package/dist/external-handoff-browser.d.cts +3 -3
  26. package/dist/external-handoff-browser.d.ts +3 -3
  27. package/dist/index.cjs +34 -0
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +76 -31
  30. package/dist/index.d.ts +76 -31
  31. package/dist/index.js +11 -3
  32. package/dist/index.js.map +1 -1
  33. package/package.json +1 -1
  34. package/dist/chunk-R6QJFNT2.js.map +0 -1
  35. package/dist/{chunk-JTZFOTPT.js.map → chunk-7777QFBJ.js.map} +0 -0
  36. package/dist/{chunk-R3BQKCCY.js.map → chunk-D7R32NFF.js.map} +0 -0
  37. package/dist/{data-flow-runtime-tyqGH1OS.d.ts → data-flow-runtime-DhWpQoik.d.ts} +8 -8
  38. package/dist/{data-flow-runtime-Bfm5LbHE.d.cts → data-flow-runtime-w43iwvGA.d.cts} +8 -8
  39. package/dist/{external-agent-control-yC4ToQXg.d.cts → external-agent-control-DKxQACUv.d.cts} +28 -28
  40. package/dist/{external-agent-control-yC4ToQXg.d.ts → external-agent-control-DKxQACUv.d.ts} +28 -28
@@ -49,10 +49,10 @@ declare const externalAgentErrorSchema: z.ZodObject<{
49
49
  MANAGED_CLEANUP_INCOMPLETE: "MANAGED_CLEANUP_INCOMPLETE";
50
50
  }>;
51
51
  stage: z.ZodEnum<{
52
- snapshot: "snapshot";
53
- binary: "binary";
54
52
  model: "model";
53
+ snapshot: "snapshot";
55
54
  apply: "apply";
55
+ binary: "binary";
56
56
  integration: "integration";
57
57
  handshake: "handshake";
58
58
  auth: "auth";
@@ -88,8 +88,8 @@ declare const managedFileSummarySchema: z.ZodObject<{
88
88
  declare const managedCheckSummarySchema: z.ZodObject<{
89
89
  id: z.ZodString;
90
90
  outcome: z.ZodEnum<{
91
- failed: "failed";
92
91
  unavailable: "unavailable";
92
+ failed: "failed";
93
93
  passed: "passed";
94
94
  }>;
95
95
  durationMs: z.ZodNumber;
@@ -106,9 +106,9 @@ declare const managedTimingSummarySchema: z.ZodObject<{
106
106
  declare const managedTaskStatusSchema: z.ZodObject<{
107
107
  revision: z.ZodNumber;
108
108
  deliveryStatus: z.ZodEnum<{
109
- dispatching: "dispatching";
110
109
  unknown: "unknown";
111
110
  queued: "queued";
111
+ dispatching: "dispatching";
112
112
  accepted: "accepted";
113
113
  }>;
114
114
  executionStatus: z.ZodEnum<{
@@ -120,20 +120,20 @@ declare const managedTaskStatusSchema: z.ZodObject<{
120
120
  interrupted: "interrupted";
121
121
  }>;
122
122
  managedPhase: z.ZodEnum<{
123
- completed: "completed";
124
- failed: "failed";
125
123
  running: "running";
126
124
  cancelled: "cancelled";
125
+ failed: "failed";
127
126
  preparing: "preparing";
128
127
  validating: "validating";
129
128
  applying: "applying";
129
+ completed: "completed";
130
130
  auditing: "auditing";
131
131
  "review-required": "review-required";
132
132
  "cleanup-warning": "cleanup-warning";
133
133
  }>;
134
134
  validationOutcome: z.ZodOptional<z.ZodEnum<{
135
- failed: "failed";
136
135
  unavailable: "unavailable";
136
+ failed: "failed";
137
137
  passed: "passed";
138
138
  "not-configured": "not-configured";
139
139
  }>>;
@@ -145,8 +145,8 @@ declare const managedTaskStatusSchema: z.ZodObject<{
145
145
  checks: z.ZodArray<z.ZodObject<{
146
146
  id: z.ZodString;
147
147
  outcome: z.ZodEnum<{
148
- failed: "failed";
149
148
  unavailable: "unavailable";
149
+ failed: "failed";
150
150
  passed: "passed";
151
151
  }>;
152
152
  durationMs: z.ZodNumber;
@@ -175,15 +175,15 @@ declare const externalAgentControlStatusSchema: z.ZodObject<{
175
175
  }>;
176
176
  maturity: z.ZodLiteral<"experimental">;
177
177
  availability: z.ZodEnum<{
178
- available: "available";
179
178
  unavailable: "unavailable";
179
+ available: "available";
180
180
  }>;
181
181
  }, z.core.$strict>;
182
182
  connectionState: z.ZodEnum<{
183
183
  error: "error";
184
184
  ready: "ready";
185
- busy: "busy";
186
185
  degraded: "degraded";
186
+ busy: "busy";
187
187
  disconnected: "disconnected";
188
188
  diagnosing: "diagnosing";
189
189
  "awaiting-consent": "awaiting-consent";
@@ -207,9 +207,9 @@ declare const externalAgentControlStatusSchema: z.ZodObject<{
207
207
  task: z.ZodOptional<z.ZodObject<{
208
208
  revision: z.ZodNumber;
209
209
  deliveryStatus: z.ZodEnum<{
210
- dispatching: "dispatching";
211
210
  unknown: "unknown";
212
211
  queued: "queued";
212
+ dispatching: "dispatching";
213
213
  accepted: "accepted";
214
214
  }>;
215
215
  executionStatus: z.ZodEnum<{
@@ -221,20 +221,20 @@ declare const externalAgentControlStatusSchema: z.ZodObject<{
221
221
  interrupted: "interrupted";
222
222
  }>;
223
223
  managedPhase: z.ZodEnum<{
224
- completed: "completed";
225
- failed: "failed";
226
224
  running: "running";
227
225
  cancelled: "cancelled";
226
+ failed: "failed";
228
227
  preparing: "preparing";
229
228
  validating: "validating";
230
229
  applying: "applying";
230
+ completed: "completed";
231
231
  auditing: "auditing";
232
232
  "review-required": "review-required";
233
233
  "cleanup-warning": "cleanup-warning";
234
234
  }>;
235
235
  validationOutcome: z.ZodOptional<z.ZodEnum<{
236
- failed: "failed";
237
236
  unavailable: "unavailable";
237
+ failed: "failed";
238
238
  passed: "passed";
239
239
  "not-configured": "not-configured";
240
240
  }>>;
@@ -246,8 +246,8 @@ declare const externalAgentControlStatusSchema: z.ZodObject<{
246
246
  checks: z.ZodArray<z.ZodObject<{
247
247
  id: z.ZodString;
248
248
  outcome: z.ZodEnum<{
249
- failed: "failed";
250
249
  unavailable: "unavailable";
250
+ failed: "failed";
251
251
  passed: "passed";
252
252
  }>;
253
253
  durationMs: z.ZodNumber;
@@ -285,10 +285,10 @@ declare const externalAgentControlStatusSchema: z.ZodObject<{
285
285
  MANAGED_CLEANUP_INCOMPLETE: "MANAGED_CLEANUP_INCOMPLETE";
286
286
  }>;
287
287
  stage: z.ZodEnum<{
288
- snapshot: "snapshot";
289
- binary: "binary";
290
288
  model: "model";
289
+ snapshot: "snapshot";
291
290
  apply: "apply";
291
+ binary: "binary";
292
292
  integration: "integration";
293
293
  handshake: "handshake";
294
294
  auth: "auth";
@@ -352,15 +352,15 @@ declare const externalAgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
352
352
  }>;
353
353
  maturity: z.ZodLiteral<"experimental">;
354
354
  availability: z.ZodEnum<{
355
- available: "available";
356
355
  unavailable: "unavailable";
356
+ available: "available";
357
357
  }>;
358
358
  }, z.core.$strict>;
359
359
  connectionState: z.ZodEnum<{
360
360
  error: "error";
361
361
  ready: "ready";
362
- busy: "busy";
363
362
  degraded: "degraded";
363
+ busy: "busy";
364
364
  disconnected: "disconnected";
365
365
  diagnosing: "diagnosing";
366
366
  "awaiting-consent": "awaiting-consent";
@@ -384,9 +384,9 @@ declare const externalAgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
384
384
  task: z.ZodOptional<z.ZodObject<{
385
385
  revision: z.ZodNumber;
386
386
  deliveryStatus: z.ZodEnum<{
387
- dispatching: "dispatching";
388
387
  unknown: "unknown";
389
388
  queued: "queued";
389
+ dispatching: "dispatching";
390
390
  accepted: "accepted";
391
391
  }>;
392
392
  executionStatus: z.ZodEnum<{
@@ -398,20 +398,20 @@ declare const externalAgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
398
398
  interrupted: "interrupted";
399
399
  }>;
400
400
  managedPhase: z.ZodEnum<{
401
- completed: "completed";
402
- failed: "failed";
403
401
  running: "running";
404
402
  cancelled: "cancelled";
403
+ failed: "failed";
405
404
  preparing: "preparing";
406
405
  validating: "validating";
407
406
  applying: "applying";
407
+ completed: "completed";
408
408
  auditing: "auditing";
409
409
  "review-required": "review-required";
410
410
  "cleanup-warning": "cleanup-warning";
411
411
  }>;
412
412
  validationOutcome: z.ZodOptional<z.ZodEnum<{
413
- failed: "failed";
414
413
  unavailable: "unavailable";
414
+ failed: "failed";
415
415
  passed: "passed";
416
416
  "not-configured": "not-configured";
417
417
  }>>;
@@ -423,8 +423,8 @@ declare const externalAgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
423
423
  checks: z.ZodArray<z.ZodObject<{
424
424
  id: z.ZodString;
425
425
  outcome: z.ZodEnum<{
426
- failed: "failed";
427
426
  unavailable: "unavailable";
427
+ failed: "failed";
428
428
  passed: "passed";
429
429
  }>;
430
430
  durationMs: z.ZodNumber;
@@ -462,10 +462,10 @@ declare const externalAgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
462
462
  MANAGED_CLEANUP_INCOMPLETE: "MANAGED_CLEANUP_INCOMPLETE";
463
463
  }>;
464
464
  stage: z.ZodEnum<{
465
- snapshot: "snapshot";
466
- binary: "binary";
467
465
  model: "model";
466
+ snapshot: "snapshot";
468
467
  apply: "apply";
468
+ binary: "binary";
469
469
  integration: "integration";
470
470
  handshake: "handshake";
471
471
  auth: "auth";
@@ -514,8 +514,8 @@ declare const externalAgentManagedResultSchema: z.ZodObject<{
514
514
  checks: z.ZodArray<z.ZodObject<{
515
515
  id: z.ZodString;
516
516
  outcome: z.ZodEnum<{
517
- failed: "failed";
518
517
  unavailable: "unavailable";
518
+ failed: "failed";
519
519
  passed: "passed";
520
520
  }>;
521
521
  durationMs: z.ZodNumber;
@@ -530,8 +530,8 @@ declare const externalAgentManagedResultSchema: z.ZodObject<{
530
530
  total: z.ZodOptional<z.ZodNumber>;
531
531
  }, z.core.$strict>;
532
532
  validationOutcome: z.ZodEnum<{
533
- failed: "failed";
534
533
  unavailable: "unavailable";
534
+ failed: "failed";
535
535
  passed: "passed";
536
536
  "not-configured": "not-configured";
537
537
  }>;
@@ -49,10 +49,10 @@ declare const externalAgentErrorSchema: z.ZodObject<{
49
49
  MANAGED_CLEANUP_INCOMPLETE: "MANAGED_CLEANUP_INCOMPLETE";
50
50
  }>;
51
51
  stage: z.ZodEnum<{
52
- snapshot: "snapshot";
53
- binary: "binary";
54
52
  model: "model";
53
+ snapshot: "snapshot";
55
54
  apply: "apply";
55
+ binary: "binary";
56
56
  integration: "integration";
57
57
  handshake: "handshake";
58
58
  auth: "auth";
@@ -88,8 +88,8 @@ declare const managedFileSummarySchema: z.ZodObject<{
88
88
  declare const managedCheckSummarySchema: z.ZodObject<{
89
89
  id: z.ZodString;
90
90
  outcome: z.ZodEnum<{
91
- failed: "failed";
92
91
  unavailable: "unavailable";
92
+ failed: "failed";
93
93
  passed: "passed";
94
94
  }>;
95
95
  durationMs: z.ZodNumber;
@@ -106,9 +106,9 @@ declare const managedTimingSummarySchema: z.ZodObject<{
106
106
  declare const managedTaskStatusSchema: z.ZodObject<{
107
107
  revision: z.ZodNumber;
108
108
  deliveryStatus: z.ZodEnum<{
109
- dispatching: "dispatching";
110
109
  unknown: "unknown";
111
110
  queued: "queued";
111
+ dispatching: "dispatching";
112
112
  accepted: "accepted";
113
113
  }>;
114
114
  executionStatus: z.ZodEnum<{
@@ -120,20 +120,20 @@ declare const managedTaskStatusSchema: z.ZodObject<{
120
120
  interrupted: "interrupted";
121
121
  }>;
122
122
  managedPhase: z.ZodEnum<{
123
- completed: "completed";
124
- failed: "failed";
125
123
  running: "running";
126
124
  cancelled: "cancelled";
125
+ failed: "failed";
127
126
  preparing: "preparing";
128
127
  validating: "validating";
129
128
  applying: "applying";
129
+ completed: "completed";
130
130
  auditing: "auditing";
131
131
  "review-required": "review-required";
132
132
  "cleanup-warning": "cleanup-warning";
133
133
  }>;
134
134
  validationOutcome: z.ZodOptional<z.ZodEnum<{
135
- failed: "failed";
136
135
  unavailable: "unavailable";
136
+ failed: "failed";
137
137
  passed: "passed";
138
138
  "not-configured": "not-configured";
139
139
  }>>;
@@ -145,8 +145,8 @@ declare const managedTaskStatusSchema: z.ZodObject<{
145
145
  checks: z.ZodArray<z.ZodObject<{
146
146
  id: z.ZodString;
147
147
  outcome: z.ZodEnum<{
148
- failed: "failed";
149
148
  unavailable: "unavailable";
149
+ failed: "failed";
150
150
  passed: "passed";
151
151
  }>;
152
152
  durationMs: z.ZodNumber;
@@ -175,15 +175,15 @@ declare const externalAgentControlStatusSchema: z.ZodObject<{
175
175
  }>;
176
176
  maturity: z.ZodLiteral<"experimental">;
177
177
  availability: z.ZodEnum<{
178
- available: "available";
179
178
  unavailable: "unavailable";
179
+ available: "available";
180
180
  }>;
181
181
  }, z.core.$strict>;
182
182
  connectionState: z.ZodEnum<{
183
183
  error: "error";
184
184
  ready: "ready";
185
- busy: "busy";
186
185
  degraded: "degraded";
186
+ busy: "busy";
187
187
  disconnected: "disconnected";
188
188
  diagnosing: "diagnosing";
189
189
  "awaiting-consent": "awaiting-consent";
@@ -207,9 +207,9 @@ declare const externalAgentControlStatusSchema: z.ZodObject<{
207
207
  task: z.ZodOptional<z.ZodObject<{
208
208
  revision: z.ZodNumber;
209
209
  deliveryStatus: z.ZodEnum<{
210
- dispatching: "dispatching";
211
210
  unknown: "unknown";
212
211
  queued: "queued";
212
+ dispatching: "dispatching";
213
213
  accepted: "accepted";
214
214
  }>;
215
215
  executionStatus: z.ZodEnum<{
@@ -221,20 +221,20 @@ declare const externalAgentControlStatusSchema: z.ZodObject<{
221
221
  interrupted: "interrupted";
222
222
  }>;
223
223
  managedPhase: z.ZodEnum<{
224
- completed: "completed";
225
- failed: "failed";
226
224
  running: "running";
227
225
  cancelled: "cancelled";
226
+ failed: "failed";
228
227
  preparing: "preparing";
229
228
  validating: "validating";
230
229
  applying: "applying";
230
+ completed: "completed";
231
231
  auditing: "auditing";
232
232
  "review-required": "review-required";
233
233
  "cleanup-warning": "cleanup-warning";
234
234
  }>;
235
235
  validationOutcome: z.ZodOptional<z.ZodEnum<{
236
- failed: "failed";
237
236
  unavailable: "unavailable";
237
+ failed: "failed";
238
238
  passed: "passed";
239
239
  "not-configured": "not-configured";
240
240
  }>>;
@@ -246,8 +246,8 @@ declare const externalAgentControlStatusSchema: z.ZodObject<{
246
246
  checks: z.ZodArray<z.ZodObject<{
247
247
  id: z.ZodString;
248
248
  outcome: z.ZodEnum<{
249
- failed: "failed";
250
249
  unavailable: "unavailable";
250
+ failed: "failed";
251
251
  passed: "passed";
252
252
  }>;
253
253
  durationMs: z.ZodNumber;
@@ -285,10 +285,10 @@ declare const externalAgentControlStatusSchema: z.ZodObject<{
285
285
  MANAGED_CLEANUP_INCOMPLETE: "MANAGED_CLEANUP_INCOMPLETE";
286
286
  }>;
287
287
  stage: z.ZodEnum<{
288
- snapshot: "snapshot";
289
- binary: "binary";
290
288
  model: "model";
289
+ snapshot: "snapshot";
291
290
  apply: "apply";
291
+ binary: "binary";
292
292
  integration: "integration";
293
293
  handshake: "handshake";
294
294
  auth: "auth";
@@ -352,15 +352,15 @@ declare const externalAgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
352
352
  }>;
353
353
  maturity: z.ZodLiteral<"experimental">;
354
354
  availability: z.ZodEnum<{
355
- available: "available";
356
355
  unavailable: "unavailable";
356
+ available: "available";
357
357
  }>;
358
358
  }, z.core.$strict>;
359
359
  connectionState: z.ZodEnum<{
360
360
  error: "error";
361
361
  ready: "ready";
362
- busy: "busy";
363
362
  degraded: "degraded";
363
+ busy: "busy";
364
364
  disconnected: "disconnected";
365
365
  diagnosing: "diagnosing";
366
366
  "awaiting-consent": "awaiting-consent";
@@ -384,9 +384,9 @@ declare const externalAgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
384
384
  task: z.ZodOptional<z.ZodObject<{
385
385
  revision: z.ZodNumber;
386
386
  deliveryStatus: z.ZodEnum<{
387
- dispatching: "dispatching";
388
387
  unknown: "unknown";
389
388
  queued: "queued";
389
+ dispatching: "dispatching";
390
390
  accepted: "accepted";
391
391
  }>;
392
392
  executionStatus: z.ZodEnum<{
@@ -398,20 +398,20 @@ declare const externalAgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
398
398
  interrupted: "interrupted";
399
399
  }>;
400
400
  managedPhase: z.ZodEnum<{
401
- completed: "completed";
402
- failed: "failed";
403
401
  running: "running";
404
402
  cancelled: "cancelled";
403
+ failed: "failed";
405
404
  preparing: "preparing";
406
405
  validating: "validating";
407
406
  applying: "applying";
407
+ completed: "completed";
408
408
  auditing: "auditing";
409
409
  "review-required": "review-required";
410
410
  "cleanup-warning": "cleanup-warning";
411
411
  }>;
412
412
  validationOutcome: z.ZodOptional<z.ZodEnum<{
413
- failed: "failed";
414
413
  unavailable: "unavailable";
414
+ failed: "failed";
415
415
  passed: "passed";
416
416
  "not-configured": "not-configured";
417
417
  }>>;
@@ -423,8 +423,8 @@ declare const externalAgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
423
423
  checks: z.ZodArray<z.ZodObject<{
424
424
  id: z.ZodString;
425
425
  outcome: z.ZodEnum<{
426
- failed: "failed";
427
426
  unavailable: "unavailable";
427
+ failed: "failed";
428
428
  passed: "passed";
429
429
  }>;
430
430
  durationMs: z.ZodNumber;
@@ -462,10 +462,10 @@ declare const externalAgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
462
462
  MANAGED_CLEANUP_INCOMPLETE: "MANAGED_CLEANUP_INCOMPLETE";
463
463
  }>;
464
464
  stage: z.ZodEnum<{
465
- snapshot: "snapshot";
466
- binary: "binary";
467
465
  model: "model";
466
+ snapshot: "snapshot";
468
467
  apply: "apply";
468
+ binary: "binary";
469
469
  integration: "integration";
470
470
  handshake: "handshake";
471
471
  auth: "auth";
@@ -514,8 +514,8 @@ declare const externalAgentManagedResultSchema: z.ZodObject<{
514
514
  checks: z.ZodArray<z.ZodObject<{
515
515
  id: z.ZodString;
516
516
  outcome: z.ZodEnum<{
517
- failed: "failed";
518
517
  unavailable: "unavailable";
518
+ failed: "failed";
519
519
  passed: "passed";
520
520
  }>;
521
521
  durationMs: z.ZodNumber;
@@ -530,8 +530,8 @@ declare const externalAgentManagedResultSchema: z.ZodObject<{
530
530
  total: z.ZodOptional<z.ZodNumber>;
531
531
  }, z.core.$strict>;
532
532
  validationOutcome: z.ZodEnum<{
533
- failed: "failed";
534
533
  unavailable: "unavailable";
534
+ failed: "failed";
535
535
  passed: "passed";
536
536
  "not-configured": "not-configured";
537
537
  }>;