@spotpatch/shared 1.12.0 → 1.13.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 (61) hide show
  1. package/dist/annotation-C0Me9mN2.d.cts +102 -0
  2. package/dist/annotation-C0Me9mN2.d.ts +102 -0
  3. package/dist/chunk-C2PJ4UUU.js +195 -0
  4. package/dist/chunk-C2PJ4UUU.js.map +1 -0
  5. package/dist/chunk-DYTWEIES.js +89 -0
  6. package/dist/chunk-DYTWEIES.js.map +1 -0
  7. package/dist/{chunk-JGOIBOFI.js → chunk-FPDSZDP2.js} +16 -2
  8. package/dist/chunk-FPDSZDP2.js.map +1 -0
  9. package/dist/chunk-IUTOVI5G.js +584 -0
  10. package/dist/chunk-IUTOVI5G.js.map +1 -0
  11. package/dist/{chunk-JU5HIWX7.js → chunk-YQ5GL523.js} +8 -173
  12. package/dist/chunk-YQ5GL523.js.map +1 -0
  13. package/dist/contextual-ask-B0mCFn92.d.cts +1451 -0
  14. package/dist/contextual-ask-B0mCFn92.d.ts +1451 -0
  15. package/dist/contextual-ask-browser.cjs +200 -0
  16. package/dist/contextual-ask-browser.cjs.map +1 -0
  17. package/dist/contextual-ask-browser.d.cts +31 -0
  18. package/dist/contextual-ask-browser.d.ts +31 -0
  19. package/dist/contextual-ask-browser.js +66 -0
  20. package/dist/contextual-ask-browser.js.map +1 -0
  21. package/dist/contextual-ask-node.cjs +968 -0
  22. package/dist/contextual-ask-node.cjs.map +1 -0
  23. package/dist/contextual-ask-node.d.cts +14 -0
  24. package/dist/contextual-ask-node.d.ts +14 -0
  25. package/dist/contextual-ask-node.js +122 -0
  26. package/dist/contextual-ask-node.js.map +1 -0
  27. package/dist/{data-flow-runtime-oq9m21IP.d.cts → data-flow-runtime-D8HPSb2i.d.cts} +13 -13
  28. package/dist/{data-flow-runtime-BelOgo8s.d.ts → data-flow-runtime-vKeEaJgT.d.ts} +13 -13
  29. package/dist/data-flow-runtime.cjs +2 -0
  30. package/dist/data-flow-runtime.cjs.map +1 -1
  31. package/dist/data-flow-runtime.d.cts +2 -2
  32. package/dist/data-flow-runtime.d.ts +2 -2
  33. package/dist/data-flow-runtime.js +1 -1
  34. package/dist/{endpoints-GedF44M2.d.cts → endpoints-O3ohYyAo.d.cts} +7 -1
  35. package/dist/{endpoints-GedF44M2.d.ts → endpoints-O3ohYyAo.d.ts} +7 -1
  36. package/dist/error-code-DRz2eqcB.d.cts +63 -0
  37. package/dist/error-code-DRz2eqcB.d.ts +63 -0
  38. package/dist/external-agent-node.cjs +142 -121
  39. package/dist/external-agent-node.cjs.map +1 -1
  40. package/dist/external-agent-node.d.cts +27 -26
  41. package/dist/external-agent-node.d.ts +27 -26
  42. package/dist/external-agent-node.js +4 -2
  43. package/dist/external-agent-node.js.map +1 -1
  44. package/dist/{external-handoff-BNUyMfNb.d.ts → external-handoff-DighrWn8.d.ts} +30 -130
  45. package/dist/{external-handoff-BNUyMfNb.d.cts → external-handoff-DwtFFR6F.d.cts} +30 -130
  46. package/dist/external-handoff-browser.cjs +2 -0
  47. package/dist/external-handoff-browser.cjs.map +1 -1
  48. package/dist/external-handoff-browser.d.cts +4 -3
  49. package/dist/external-handoff-browser.d.ts +4 -3
  50. package/dist/external-handoff-browser.js +1 -1
  51. package/dist/index.cjs +1144 -422
  52. package/dist/index.cjs.map +1 -1
  53. package/dist/index.d.cts +126 -178
  54. package/dist/index.d.ts +126 -178
  55. package/dist/index.js +97 -16
  56. package/dist/index.js.map +1 -1
  57. package/package.json +29 -2
  58. package/dist/chunk-JGOIBOFI.js.map +0 -1
  59. package/dist/chunk-JU5HIWX7.js.map +0 -1
  60. package/dist/{external-agent-control-BMoSq_xI.d.cts → external-agent-control-CRBbjDDk.d.cts} +46 -46
  61. package/dist/{external-agent-control-BMoSq_xI.d.ts → external-agent-control-CRBbjDDk.d.ts} +46 -46
@@ -0,0 +1,1451 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const CONTEXTUAL_ASK_SCHEMA_VERSION: 1;
4
+ declare const CONTEXTUAL_ASK_LIMITS: Readonly<{
5
+ readonly maximumTargets: 20;
6
+ readonly maximumQuestionCharacters: 4000;
7
+ readonly maximumAnswerCharacters: 40000;
8
+ readonly maximumAnswerBlocks: 40;
9
+ readonly maximumSources: 64;
10
+ readonly maximumReadFiles: 32;
11
+ readonly maximumReadBytesPerFile: number;
12
+ readonly maximumReadBytesTotal: number;
13
+ readonly maximumToolCalls: 48;
14
+ readonly maximumModelTurns: 12;
15
+ readonly jobTimeoutMs: 300000;
16
+ readonly resultTtlMs: 900000;
17
+ readonly maximumActiveJobsPerSession: 1;
18
+ readonly maximumRetainedResultsPerSession: 1;
19
+ readonly maximumRetainedEvents: 256;
20
+ readonly maximumEventSubscribers: 4;
21
+ readonly eventHeartbeatMs: 15000;
22
+ readonly maximumRequestBodyBytes: number;
23
+ readonly maximumSearchQueryCharacters: 256;
24
+ readonly maximumSearchResults: 64;
25
+ readonly maximumSearchPreviewCharacters: 500;
26
+ readonly capabilityTimeoutMs: 30000;
27
+ readonly maximumIdCharacters: 128;
28
+ readonly maximumProfileIdCharacters: 64;
29
+ readonly maximumLabelCharacters: 256;
30
+ readonly maximumRelativePathCharacters: 1024;
31
+ readonly maximumLanguageCharacters: 64;
32
+ readonly maximumPhaseMessageCharacters: 1024;
33
+ readonly maximumExecutors: 32;
34
+ readonly contentHashHexCharacters: 64;
35
+ }>;
36
+ declare const CONTEXTUAL_ASK_EXECUTOR_KINDS: readonly ["configured-key", "managed-codex"];
37
+ type ContextualAskExecutorKind = (typeof CONTEXTUAL_ASK_EXECUTOR_KINDS)[number];
38
+ declare const CONTEXTUAL_ASK_EXECUTOR_STATES: readonly ["ready", "degraded", "unavailable"];
39
+ type ContextualAskExecutorState = (typeof CONTEXTUAL_ASK_EXECUTOR_STATES)[number];
40
+ declare const ASK_JOB_STATUSES: readonly ["queued", "authorizing", "running", "cancelling", "answered", "cancelled", "failed"];
41
+ type AskJobStatus = (typeof ASK_JOB_STATUSES)[number];
42
+ declare const ASK_ANSWER_WARNING_CODES: readonly ["insufficient-evidence", "partial-context", "source-truncated", "source-stale"];
43
+ type AskAnswerWarningCode = (typeof ASK_ANSWER_WARNING_CODES)[number];
44
+ /** Warnings an executor may declare from its own evidence assessment. */
45
+ declare const ASK_EXECUTOR_ANSWER_WARNING_CODES: readonly ["insufficient-evidence", "partial-context"];
46
+ type AskExecutorAnswerWarningCode = (typeof ASK_EXECUTOR_ANSWER_WARNING_CODES)[number];
47
+ declare const ASK_READ_ACTIVITY_STATES: readonly ["started", "succeeded", "failed"];
48
+ type AskReadActivityState = (typeof ASK_READ_ACTIVITY_STATES)[number];
49
+ declare const ASK_FILE_COUNT_BUCKETS: readonly ["one", "few", "many"];
50
+ type AskFileCountBucket = (typeof ASK_FILE_COUNT_BUCKETS)[number];
51
+ declare const ASK_SOURCE_CONFIDENCES: readonly ["exact", "probable", "approximate"];
52
+ type AskSourceConfidence = (typeof ASK_SOURCE_CONFIDENCES)[number];
53
+ declare const CONTEXTUAL_ASK_PERMISSION_PROFILE: "spotpatch-ask-readonly";
54
+
55
+ declare const contextualAskExecutorPreferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
56
+ kind: z.ZodLiteral<"configured-key">;
57
+ providerProfileId: z.ZodString;
58
+ modelProfileId: z.ZodString;
59
+ }, z.core.$strict>, z.ZodObject<{
60
+ kind: z.ZodLiteral<"managed-codex">;
61
+ }, z.core.$strict>], "kind">;
62
+ declare const contextualAskOptionsSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
63
+ defaultExecutor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
64
+ kind: z.ZodLiteral<"configured-key">;
65
+ providerProfileId: z.ZodString;
66
+ modelProfileId: z.ZodString;
67
+ }, z.core.$strict>, z.ZodObject<{
68
+ kind: z.ZodLiteral<"managed-codex">;
69
+ }, z.core.$strict>], "kind">>;
70
+ }, z.core.$strict>]>;
71
+ declare const spotSelectionTargetSchema: z.ZodObject<{
72
+ source: z.ZodObject<{
73
+ fileId: z.ZodOptional<z.ZodString>;
74
+ relativePath: z.ZodOptional<z.ZodString>;
75
+ line: z.ZodOptional<z.ZodNumber>;
76
+ column: z.ZodOptional<z.ZodNumber>;
77
+ origin: z.ZodEnum<{
78
+ "jsx-host": "jsx-host";
79
+ "react-fiber": "react-fiber";
80
+ "dom-ancestor": "dom-ancestor";
81
+ none: "none";
82
+ }>;
83
+ confidence: z.ZodEnum<{
84
+ exact: "exact";
85
+ probable: "probable";
86
+ approximate: "approximate";
87
+ unknown: "unknown";
88
+ }>;
89
+ }, z.core.$strict>;
90
+ react: z.ZodObject<{
91
+ supported: z.ZodBoolean;
92
+ version: z.ZodOptional<z.ZodString>;
93
+ componentName: z.ZodOptional<z.ZodString>;
94
+ componentSourceId: z.ZodOptional<z.ZodString>;
95
+ sourceVersion: z.ZodOptional<z.ZodString>;
96
+ componentStack: z.ZodArray<z.ZodString>;
97
+ source: z.ZodOptional<z.ZodObject<{
98
+ fileId: z.ZodOptional<z.ZodString>;
99
+ relativePath: z.ZodOptional<z.ZodString>;
100
+ line: z.ZodOptional<z.ZodNumber>;
101
+ column: z.ZodOptional<z.ZodNumber>;
102
+ origin: z.ZodEnum<{
103
+ "jsx-host": "jsx-host";
104
+ "react-fiber": "react-fiber";
105
+ "dom-ancestor": "dom-ancestor";
106
+ none: "none";
107
+ }>;
108
+ confidence: z.ZodEnum<{
109
+ exact: "exact";
110
+ probable: "probable";
111
+ approximate: "approximate";
112
+ unknown: "unknown";
113
+ }>;
114
+ }, z.core.$strict>>;
115
+ }, z.core.$strict>;
116
+ element: z.ZodObject<{
117
+ tagName: z.ZodString;
118
+ selector: z.ZodString;
119
+ sanitizedHtml: z.ZodString;
120
+ textPreview: z.ZodOptional<z.ZodString>;
121
+ role: z.ZodOptional<z.ZodString>;
122
+ rect: z.ZodObject<{
123
+ x: z.ZodNumber;
124
+ y: z.ZodNumber;
125
+ width: z.ZodNumber;
126
+ height: z.ZodNumber;
127
+ }, z.core.$strict>;
128
+ }, z.core.$strict>;
129
+ styles: z.ZodObject<{
130
+ classNames: z.ZodArray<z.ZodString>;
131
+ inlineStyle: z.ZodOptional<z.ZodString>;
132
+ matchedRules: z.ZodArray<z.ZodObject<{
133
+ selector: z.ZodString;
134
+ declarations: z.ZodString;
135
+ source: z.ZodOptional<z.ZodString>;
136
+ media: z.ZodOptional<z.ZodString>;
137
+ }, z.core.$strict>>;
138
+ computed: z.ZodRecord<z.ZodString, z.ZodString>;
139
+ warnings: z.ZodArray<z.ZodString>;
140
+ }, z.core.$strict>;
141
+ warnings: z.ZodArray<z.ZodString>;
142
+ code: z.ZodOptional<z.ZodObject<{
143
+ relativePath: z.ZodString;
144
+ language: z.ZodEnum<{
145
+ tsx: "tsx";
146
+ jsx: "jsx";
147
+ }>;
148
+ startLine: z.ZodNumber;
149
+ endLine: z.ZodNumber;
150
+ excerpt: z.ZodString;
151
+ boundary: z.ZodEnum<{
152
+ component: "component";
153
+ "nearby-lines": "nearby-lines";
154
+ }>;
155
+ }, z.core.$strict>>;
156
+ targetId: z.ZodString;
157
+ page: z.ZodObject<{
158
+ url: z.ZodString;
159
+ pathname: z.ZodString;
160
+ title: z.ZodString;
161
+ viewportWidth: z.ZodNumber;
162
+ viewportHeight: z.ZodNumber;
163
+ devicePixelRatio: z.ZodNumber;
164
+ }, z.core.$strict>;
165
+ }, z.core.$strict>;
166
+ declare const spotSelectionContextSchema: z.ZodObject<{
167
+ schemaVersion: z.ZodLiteral<1>;
168
+ selectionId: z.ZodString;
169
+ locale: z.ZodEnum<{
170
+ "en-US": "en-US";
171
+ "zh-CN": "zh-CN";
172
+ }>;
173
+ targets: z.ZodArray<z.ZodObject<{
174
+ source: z.ZodObject<{
175
+ fileId: z.ZodOptional<z.ZodString>;
176
+ relativePath: z.ZodOptional<z.ZodString>;
177
+ line: z.ZodOptional<z.ZodNumber>;
178
+ column: z.ZodOptional<z.ZodNumber>;
179
+ origin: z.ZodEnum<{
180
+ "jsx-host": "jsx-host";
181
+ "react-fiber": "react-fiber";
182
+ "dom-ancestor": "dom-ancestor";
183
+ none: "none";
184
+ }>;
185
+ confidence: z.ZodEnum<{
186
+ exact: "exact";
187
+ probable: "probable";
188
+ approximate: "approximate";
189
+ unknown: "unknown";
190
+ }>;
191
+ }, z.core.$strict>;
192
+ react: z.ZodObject<{
193
+ supported: z.ZodBoolean;
194
+ version: z.ZodOptional<z.ZodString>;
195
+ componentName: z.ZodOptional<z.ZodString>;
196
+ componentSourceId: z.ZodOptional<z.ZodString>;
197
+ sourceVersion: z.ZodOptional<z.ZodString>;
198
+ componentStack: z.ZodArray<z.ZodString>;
199
+ source: z.ZodOptional<z.ZodObject<{
200
+ fileId: z.ZodOptional<z.ZodString>;
201
+ relativePath: z.ZodOptional<z.ZodString>;
202
+ line: z.ZodOptional<z.ZodNumber>;
203
+ column: z.ZodOptional<z.ZodNumber>;
204
+ origin: z.ZodEnum<{
205
+ "jsx-host": "jsx-host";
206
+ "react-fiber": "react-fiber";
207
+ "dom-ancestor": "dom-ancestor";
208
+ none: "none";
209
+ }>;
210
+ confidence: z.ZodEnum<{
211
+ exact: "exact";
212
+ probable: "probable";
213
+ approximate: "approximate";
214
+ unknown: "unknown";
215
+ }>;
216
+ }, z.core.$strict>>;
217
+ }, z.core.$strict>;
218
+ element: z.ZodObject<{
219
+ tagName: z.ZodString;
220
+ selector: z.ZodString;
221
+ sanitizedHtml: z.ZodString;
222
+ textPreview: z.ZodOptional<z.ZodString>;
223
+ role: z.ZodOptional<z.ZodString>;
224
+ rect: z.ZodObject<{
225
+ x: z.ZodNumber;
226
+ y: z.ZodNumber;
227
+ width: z.ZodNumber;
228
+ height: z.ZodNumber;
229
+ }, z.core.$strict>;
230
+ }, z.core.$strict>;
231
+ styles: z.ZodObject<{
232
+ classNames: z.ZodArray<z.ZodString>;
233
+ inlineStyle: z.ZodOptional<z.ZodString>;
234
+ matchedRules: z.ZodArray<z.ZodObject<{
235
+ selector: z.ZodString;
236
+ declarations: z.ZodString;
237
+ source: z.ZodOptional<z.ZodString>;
238
+ media: z.ZodOptional<z.ZodString>;
239
+ }, z.core.$strict>>;
240
+ computed: z.ZodRecord<z.ZodString, z.ZodString>;
241
+ warnings: z.ZodArray<z.ZodString>;
242
+ }, z.core.$strict>;
243
+ warnings: z.ZodArray<z.ZodString>;
244
+ code: z.ZodOptional<z.ZodObject<{
245
+ relativePath: z.ZodString;
246
+ language: z.ZodEnum<{
247
+ tsx: "tsx";
248
+ jsx: "jsx";
249
+ }>;
250
+ startLine: z.ZodNumber;
251
+ endLine: z.ZodNumber;
252
+ excerpt: z.ZodString;
253
+ boundary: z.ZodEnum<{
254
+ component: "component";
255
+ "nearby-lines": "nearby-lines";
256
+ }>;
257
+ }, z.core.$strict>>;
258
+ targetId: z.ZodString;
259
+ page: z.ZodObject<{
260
+ url: z.ZodString;
261
+ pathname: z.ZodString;
262
+ title: z.ZodString;
263
+ viewportWidth: z.ZodNumber;
264
+ viewportHeight: z.ZodNumber;
265
+ devicePixelRatio: z.ZodNumber;
266
+ }, z.core.$strict>;
267
+ }, z.core.$strict>>;
268
+ createdAt: z.ZodISODateTime;
269
+ }, z.core.$strict>;
270
+ declare const askDraftOriginSchema: z.ZodObject<{
271
+ kind: z.ZodLiteral<"contextual-ask">;
272
+ askJobId: z.ZodString;
273
+ question: z.ZodString;
274
+ answerDigest: z.ZodString;
275
+ sourceIds: z.ZodArray<z.ZodString>;
276
+ }, z.core.$strict>;
277
+ declare const spotAskTaskEnvelopeSchema: z.ZodObject<{
278
+ task: z.ZodObject<{
279
+ kind: z.ZodLiteral<"ask">;
280
+ question: z.ZodString;
281
+ }, z.core.$strict>;
282
+ schemaVersion: z.ZodLiteral<1>;
283
+ taskId: z.ZodString;
284
+ selection: z.ZodObject<{
285
+ schemaVersion: z.ZodLiteral<1>;
286
+ selectionId: z.ZodString;
287
+ locale: z.ZodEnum<{
288
+ "en-US": "en-US";
289
+ "zh-CN": "zh-CN";
290
+ }>;
291
+ targets: z.ZodArray<z.ZodObject<{
292
+ source: z.ZodObject<{
293
+ fileId: z.ZodOptional<z.ZodString>;
294
+ relativePath: z.ZodOptional<z.ZodString>;
295
+ line: z.ZodOptional<z.ZodNumber>;
296
+ column: z.ZodOptional<z.ZodNumber>;
297
+ origin: z.ZodEnum<{
298
+ "jsx-host": "jsx-host";
299
+ "react-fiber": "react-fiber";
300
+ "dom-ancestor": "dom-ancestor";
301
+ none: "none";
302
+ }>;
303
+ confidence: z.ZodEnum<{
304
+ exact: "exact";
305
+ probable: "probable";
306
+ approximate: "approximate";
307
+ unknown: "unknown";
308
+ }>;
309
+ }, z.core.$strict>;
310
+ react: z.ZodObject<{
311
+ supported: z.ZodBoolean;
312
+ version: z.ZodOptional<z.ZodString>;
313
+ componentName: z.ZodOptional<z.ZodString>;
314
+ componentSourceId: z.ZodOptional<z.ZodString>;
315
+ sourceVersion: z.ZodOptional<z.ZodString>;
316
+ componentStack: z.ZodArray<z.ZodString>;
317
+ source: z.ZodOptional<z.ZodObject<{
318
+ fileId: z.ZodOptional<z.ZodString>;
319
+ relativePath: z.ZodOptional<z.ZodString>;
320
+ line: z.ZodOptional<z.ZodNumber>;
321
+ column: z.ZodOptional<z.ZodNumber>;
322
+ origin: z.ZodEnum<{
323
+ "jsx-host": "jsx-host";
324
+ "react-fiber": "react-fiber";
325
+ "dom-ancestor": "dom-ancestor";
326
+ none: "none";
327
+ }>;
328
+ confidence: z.ZodEnum<{
329
+ exact: "exact";
330
+ probable: "probable";
331
+ approximate: "approximate";
332
+ unknown: "unknown";
333
+ }>;
334
+ }, z.core.$strict>>;
335
+ }, z.core.$strict>;
336
+ element: z.ZodObject<{
337
+ tagName: z.ZodString;
338
+ selector: z.ZodString;
339
+ sanitizedHtml: z.ZodString;
340
+ textPreview: z.ZodOptional<z.ZodString>;
341
+ role: z.ZodOptional<z.ZodString>;
342
+ rect: z.ZodObject<{
343
+ x: z.ZodNumber;
344
+ y: z.ZodNumber;
345
+ width: z.ZodNumber;
346
+ height: z.ZodNumber;
347
+ }, z.core.$strict>;
348
+ }, z.core.$strict>;
349
+ styles: z.ZodObject<{
350
+ classNames: z.ZodArray<z.ZodString>;
351
+ inlineStyle: z.ZodOptional<z.ZodString>;
352
+ matchedRules: z.ZodArray<z.ZodObject<{
353
+ selector: z.ZodString;
354
+ declarations: z.ZodString;
355
+ source: z.ZodOptional<z.ZodString>;
356
+ media: z.ZodOptional<z.ZodString>;
357
+ }, z.core.$strict>>;
358
+ computed: z.ZodRecord<z.ZodString, z.ZodString>;
359
+ warnings: z.ZodArray<z.ZodString>;
360
+ }, z.core.$strict>;
361
+ warnings: z.ZodArray<z.ZodString>;
362
+ code: z.ZodOptional<z.ZodObject<{
363
+ relativePath: z.ZodString;
364
+ language: z.ZodEnum<{
365
+ tsx: "tsx";
366
+ jsx: "jsx";
367
+ }>;
368
+ startLine: z.ZodNumber;
369
+ endLine: z.ZodNumber;
370
+ excerpt: z.ZodString;
371
+ boundary: z.ZodEnum<{
372
+ component: "component";
373
+ "nearby-lines": "nearby-lines";
374
+ }>;
375
+ }, z.core.$strict>>;
376
+ targetId: z.ZodString;
377
+ page: z.ZodObject<{
378
+ url: z.ZodString;
379
+ pathname: z.ZodString;
380
+ title: z.ZodString;
381
+ viewportWidth: z.ZodNumber;
382
+ viewportHeight: z.ZodNumber;
383
+ devicePixelRatio: z.ZodNumber;
384
+ }, z.core.$strict>;
385
+ }, z.core.$strict>>;
386
+ createdAt: z.ZodISODateTime;
387
+ }, z.core.$strict>;
388
+ createdAt: z.ZodISODateTime;
389
+ }, z.core.$strict>;
390
+ declare const spotChangeTaskEnvelopeSchema: z.ZodObject<{
391
+ task: z.ZodObject<{
392
+ kind: z.ZodLiteral<"change">;
393
+ instructions: z.ZodArray<z.ZodObject<{
394
+ targetId: z.ZodString;
395
+ instruction: z.ZodString;
396
+ }, z.core.$strict>>;
397
+ origin: z.ZodOptional<z.ZodObject<{
398
+ kind: z.ZodLiteral<"contextual-ask">;
399
+ askJobId: z.ZodString;
400
+ question: z.ZodString;
401
+ answerDigest: z.ZodString;
402
+ sourceIds: z.ZodArray<z.ZodString>;
403
+ }, z.core.$strict>>;
404
+ }, z.core.$strict>;
405
+ schemaVersion: z.ZodLiteral<1>;
406
+ taskId: z.ZodString;
407
+ selection: z.ZodObject<{
408
+ schemaVersion: z.ZodLiteral<1>;
409
+ selectionId: z.ZodString;
410
+ locale: z.ZodEnum<{
411
+ "en-US": "en-US";
412
+ "zh-CN": "zh-CN";
413
+ }>;
414
+ targets: z.ZodArray<z.ZodObject<{
415
+ source: z.ZodObject<{
416
+ fileId: z.ZodOptional<z.ZodString>;
417
+ relativePath: z.ZodOptional<z.ZodString>;
418
+ line: z.ZodOptional<z.ZodNumber>;
419
+ column: z.ZodOptional<z.ZodNumber>;
420
+ origin: z.ZodEnum<{
421
+ "jsx-host": "jsx-host";
422
+ "react-fiber": "react-fiber";
423
+ "dom-ancestor": "dom-ancestor";
424
+ none: "none";
425
+ }>;
426
+ confidence: z.ZodEnum<{
427
+ exact: "exact";
428
+ probable: "probable";
429
+ approximate: "approximate";
430
+ unknown: "unknown";
431
+ }>;
432
+ }, z.core.$strict>;
433
+ react: z.ZodObject<{
434
+ supported: z.ZodBoolean;
435
+ version: z.ZodOptional<z.ZodString>;
436
+ componentName: z.ZodOptional<z.ZodString>;
437
+ componentSourceId: z.ZodOptional<z.ZodString>;
438
+ sourceVersion: z.ZodOptional<z.ZodString>;
439
+ componentStack: z.ZodArray<z.ZodString>;
440
+ source: z.ZodOptional<z.ZodObject<{
441
+ fileId: z.ZodOptional<z.ZodString>;
442
+ relativePath: z.ZodOptional<z.ZodString>;
443
+ line: z.ZodOptional<z.ZodNumber>;
444
+ column: z.ZodOptional<z.ZodNumber>;
445
+ origin: z.ZodEnum<{
446
+ "jsx-host": "jsx-host";
447
+ "react-fiber": "react-fiber";
448
+ "dom-ancestor": "dom-ancestor";
449
+ none: "none";
450
+ }>;
451
+ confidence: z.ZodEnum<{
452
+ exact: "exact";
453
+ probable: "probable";
454
+ approximate: "approximate";
455
+ unknown: "unknown";
456
+ }>;
457
+ }, z.core.$strict>>;
458
+ }, z.core.$strict>;
459
+ element: z.ZodObject<{
460
+ tagName: z.ZodString;
461
+ selector: z.ZodString;
462
+ sanitizedHtml: z.ZodString;
463
+ textPreview: z.ZodOptional<z.ZodString>;
464
+ role: z.ZodOptional<z.ZodString>;
465
+ rect: z.ZodObject<{
466
+ x: z.ZodNumber;
467
+ y: z.ZodNumber;
468
+ width: z.ZodNumber;
469
+ height: z.ZodNumber;
470
+ }, z.core.$strict>;
471
+ }, z.core.$strict>;
472
+ styles: z.ZodObject<{
473
+ classNames: z.ZodArray<z.ZodString>;
474
+ inlineStyle: z.ZodOptional<z.ZodString>;
475
+ matchedRules: z.ZodArray<z.ZodObject<{
476
+ selector: z.ZodString;
477
+ declarations: z.ZodString;
478
+ source: z.ZodOptional<z.ZodString>;
479
+ media: z.ZodOptional<z.ZodString>;
480
+ }, z.core.$strict>>;
481
+ computed: z.ZodRecord<z.ZodString, z.ZodString>;
482
+ warnings: z.ZodArray<z.ZodString>;
483
+ }, z.core.$strict>;
484
+ warnings: z.ZodArray<z.ZodString>;
485
+ code: z.ZodOptional<z.ZodObject<{
486
+ relativePath: z.ZodString;
487
+ language: z.ZodEnum<{
488
+ tsx: "tsx";
489
+ jsx: "jsx";
490
+ }>;
491
+ startLine: z.ZodNumber;
492
+ endLine: z.ZodNumber;
493
+ excerpt: z.ZodString;
494
+ boundary: z.ZodEnum<{
495
+ component: "component";
496
+ "nearby-lines": "nearby-lines";
497
+ }>;
498
+ }, z.core.$strict>>;
499
+ targetId: z.ZodString;
500
+ page: z.ZodObject<{
501
+ url: z.ZodString;
502
+ pathname: z.ZodString;
503
+ title: z.ZodString;
504
+ viewportWidth: z.ZodNumber;
505
+ viewportHeight: z.ZodNumber;
506
+ devicePixelRatio: z.ZodNumber;
507
+ }, z.core.$strict>;
508
+ }, z.core.$strict>>;
509
+ createdAt: z.ZodISODateTime;
510
+ }, z.core.$strict>;
511
+ createdAt: z.ZodISODateTime;
512
+ }, z.core.$strict>;
513
+ declare const spotTaskEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
514
+ task: z.ZodObject<{
515
+ kind: z.ZodLiteral<"ask">;
516
+ question: z.ZodString;
517
+ }, z.core.$strict>;
518
+ schemaVersion: z.ZodLiteral<1>;
519
+ taskId: z.ZodString;
520
+ selection: z.ZodObject<{
521
+ schemaVersion: z.ZodLiteral<1>;
522
+ selectionId: z.ZodString;
523
+ locale: z.ZodEnum<{
524
+ "en-US": "en-US";
525
+ "zh-CN": "zh-CN";
526
+ }>;
527
+ targets: z.ZodArray<z.ZodObject<{
528
+ source: z.ZodObject<{
529
+ fileId: z.ZodOptional<z.ZodString>;
530
+ relativePath: z.ZodOptional<z.ZodString>;
531
+ line: z.ZodOptional<z.ZodNumber>;
532
+ column: z.ZodOptional<z.ZodNumber>;
533
+ origin: z.ZodEnum<{
534
+ "jsx-host": "jsx-host";
535
+ "react-fiber": "react-fiber";
536
+ "dom-ancestor": "dom-ancestor";
537
+ none: "none";
538
+ }>;
539
+ confidence: z.ZodEnum<{
540
+ exact: "exact";
541
+ probable: "probable";
542
+ approximate: "approximate";
543
+ unknown: "unknown";
544
+ }>;
545
+ }, z.core.$strict>;
546
+ react: z.ZodObject<{
547
+ supported: z.ZodBoolean;
548
+ version: z.ZodOptional<z.ZodString>;
549
+ componentName: z.ZodOptional<z.ZodString>;
550
+ componentSourceId: z.ZodOptional<z.ZodString>;
551
+ sourceVersion: z.ZodOptional<z.ZodString>;
552
+ componentStack: z.ZodArray<z.ZodString>;
553
+ source: z.ZodOptional<z.ZodObject<{
554
+ fileId: z.ZodOptional<z.ZodString>;
555
+ relativePath: z.ZodOptional<z.ZodString>;
556
+ line: z.ZodOptional<z.ZodNumber>;
557
+ column: z.ZodOptional<z.ZodNumber>;
558
+ origin: z.ZodEnum<{
559
+ "jsx-host": "jsx-host";
560
+ "react-fiber": "react-fiber";
561
+ "dom-ancestor": "dom-ancestor";
562
+ none: "none";
563
+ }>;
564
+ confidence: z.ZodEnum<{
565
+ exact: "exact";
566
+ probable: "probable";
567
+ approximate: "approximate";
568
+ unknown: "unknown";
569
+ }>;
570
+ }, z.core.$strict>>;
571
+ }, z.core.$strict>;
572
+ element: z.ZodObject<{
573
+ tagName: z.ZodString;
574
+ selector: z.ZodString;
575
+ sanitizedHtml: z.ZodString;
576
+ textPreview: z.ZodOptional<z.ZodString>;
577
+ role: z.ZodOptional<z.ZodString>;
578
+ rect: z.ZodObject<{
579
+ x: z.ZodNumber;
580
+ y: z.ZodNumber;
581
+ width: z.ZodNumber;
582
+ height: z.ZodNumber;
583
+ }, z.core.$strict>;
584
+ }, z.core.$strict>;
585
+ styles: z.ZodObject<{
586
+ classNames: z.ZodArray<z.ZodString>;
587
+ inlineStyle: z.ZodOptional<z.ZodString>;
588
+ matchedRules: z.ZodArray<z.ZodObject<{
589
+ selector: z.ZodString;
590
+ declarations: z.ZodString;
591
+ source: z.ZodOptional<z.ZodString>;
592
+ media: z.ZodOptional<z.ZodString>;
593
+ }, z.core.$strict>>;
594
+ computed: z.ZodRecord<z.ZodString, z.ZodString>;
595
+ warnings: z.ZodArray<z.ZodString>;
596
+ }, z.core.$strict>;
597
+ warnings: z.ZodArray<z.ZodString>;
598
+ code: z.ZodOptional<z.ZodObject<{
599
+ relativePath: z.ZodString;
600
+ language: z.ZodEnum<{
601
+ tsx: "tsx";
602
+ jsx: "jsx";
603
+ }>;
604
+ startLine: z.ZodNumber;
605
+ endLine: z.ZodNumber;
606
+ excerpt: z.ZodString;
607
+ boundary: z.ZodEnum<{
608
+ component: "component";
609
+ "nearby-lines": "nearby-lines";
610
+ }>;
611
+ }, z.core.$strict>>;
612
+ targetId: z.ZodString;
613
+ page: z.ZodObject<{
614
+ url: z.ZodString;
615
+ pathname: z.ZodString;
616
+ title: z.ZodString;
617
+ viewportWidth: z.ZodNumber;
618
+ viewportHeight: z.ZodNumber;
619
+ devicePixelRatio: z.ZodNumber;
620
+ }, z.core.$strict>;
621
+ }, z.core.$strict>>;
622
+ createdAt: z.ZodISODateTime;
623
+ }, z.core.$strict>;
624
+ createdAt: z.ZodISODateTime;
625
+ }, z.core.$strict>, z.ZodObject<{
626
+ task: z.ZodObject<{
627
+ kind: z.ZodLiteral<"change">;
628
+ instructions: z.ZodArray<z.ZodObject<{
629
+ targetId: z.ZodString;
630
+ instruction: z.ZodString;
631
+ }, z.core.$strict>>;
632
+ origin: z.ZodOptional<z.ZodObject<{
633
+ kind: z.ZodLiteral<"contextual-ask">;
634
+ askJobId: z.ZodString;
635
+ question: z.ZodString;
636
+ answerDigest: z.ZodString;
637
+ sourceIds: z.ZodArray<z.ZodString>;
638
+ }, z.core.$strict>>;
639
+ }, z.core.$strict>;
640
+ schemaVersion: z.ZodLiteral<1>;
641
+ taskId: z.ZodString;
642
+ selection: z.ZodObject<{
643
+ schemaVersion: z.ZodLiteral<1>;
644
+ selectionId: z.ZodString;
645
+ locale: z.ZodEnum<{
646
+ "en-US": "en-US";
647
+ "zh-CN": "zh-CN";
648
+ }>;
649
+ targets: z.ZodArray<z.ZodObject<{
650
+ source: z.ZodObject<{
651
+ fileId: z.ZodOptional<z.ZodString>;
652
+ relativePath: z.ZodOptional<z.ZodString>;
653
+ line: z.ZodOptional<z.ZodNumber>;
654
+ column: z.ZodOptional<z.ZodNumber>;
655
+ origin: z.ZodEnum<{
656
+ "jsx-host": "jsx-host";
657
+ "react-fiber": "react-fiber";
658
+ "dom-ancestor": "dom-ancestor";
659
+ none: "none";
660
+ }>;
661
+ confidence: z.ZodEnum<{
662
+ exact: "exact";
663
+ probable: "probable";
664
+ approximate: "approximate";
665
+ unknown: "unknown";
666
+ }>;
667
+ }, z.core.$strict>;
668
+ react: z.ZodObject<{
669
+ supported: z.ZodBoolean;
670
+ version: z.ZodOptional<z.ZodString>;
671
+ componentName: z.ZodOptional<z.ZodString>;
672
+ componentSourceId: z.ZodOptional<z.ZodString>;
673
+ sourceVersion: z.ZodOptional<z.ZodString>;
674
+ componentStack: z.ZodArray<z.ZodString>;
675
+ source: z.ZodOptional<z.ZodObject<{
676
+ fileId: z.ZodOptional<z.ZodString>;
677
+ relativePath: z.ZodOptional<z.ZodString>;
678
+ line: z.ZodOptional<z.ZodNumber>;
679
+ column: z.ZodOptional<z.ZodNumber>;
680
+ origin: z.ZodEnum<{
681
+ "jsx-host": "jsx-host";
682
+ "react-fiber": "react-fiber";
683
+ "dom-ancestor": "dom-ancestor";
684
+ none: "none";
685
+ }>;
686
+ confidence: z.ZodEnum<{
687
+ exact: "exact";
688
+ probable: "probable";
689
+ approximate: "approximate";
690
+ unknown: "unknown";
691
+ }>;
692
+ }, z.core.$strict>>;
693
+ }, z.core.$strict>;
694
+ element: z.ZodObject<{
695
+ tagName: z.ZodString;
696
+ selector: z.ZodString;
697
+ sanitizedHtml: z.ZodString;
698
+ textPreview: z.ZodOptional<z.ZodString>;
699
+ role: z.ZodOptional<z.ZodString>;
700
+ rect: z.ZodObject<{
701
+ x: z.ZodNumber;
702
+ y: z.ZodNumber;
703
+ width: z.ZodNumber;
704
+ height: z.ZodNumber;
705
+ }, z.core.$strict>;
706
+ }, z.core.$strict>;
707
+ styles: z.ZodObject<{
708
+ classNames: z.ZodArray<z.ZodString>;
709
+ inlineStyle: z.ZodOptional<z.ZodString>;
710
+ matchedRules: z.ZodArray<z.ZodObject<{
711
+ selector: z.ZodString;
712
+ declarations: z.ZodString;
713
+ source: z.ZodOptional<z.ZodString>;
714
+ media: z.ZodOptional<z.ZodString>;
715
+ }, z.core.$strict>>;
716
+ computed: z.ZodRecord<z.ZodString, z.ZodString>;
717
+ warnings: z.ZodArray<z.ZodString>;
718
+ }, z.core.$strict>;
719
+ warnings: z.ZodArray<z.ZodString>;
720
+ code: z.ZodOptional<z.ZodObject<{
721
+ relativePath: z.ZodString;
722
+ language: z.ZodEnum<{
723
+ tsx: "tsx";
724
+ jsx: "jsx";
725
+ }>;
726
+ startLine: z.ZodNumber;
727
+ endLine: z.ZodNumber;
728
+ excerpt: z.ZodString;
729
+ boundary: z.ZodEnum<{
730
+ component: "component";
731
+ "nearby-lines": "nearby-lines";
732
+ }>;
733
+ }, z.core.$strict>>;
734
+ targetId: z.ZodString;
735
+ page: z.ZodObject<{
736
+ url: z.ZodString;
737
+ pathname: z.ZodString;
738
+ title: z.ZodString;
739
+ viewportWidth: z.ZodNumber;
740
+ viewportHeight: z.ZodNumber;
741
+ devicePixelRatio: z.ZodNumber;
742
+ }, z.core.$strict>;
743
+ }, z.core.$strict>>;
744
+ createdAt: z.ZodISODateTime;
745
+ }, z.core.$strict>;
746
+ createdAt: z.ZodISODateTime;
747
+ }, z.core.$strict>]>;
748
+ declare const askAnswerWarningSchema: z.ZodObject<{
749
+ code: z.ZodEnum<{
750
+ "insufficient-evidence": "insufficient-evidence";
751
+ "partial-context": "partial-context";
752
+ "source-truncated": "source-truncated";
753
+ "source-stale": "source-stale";
754
+ }>;
755
+ }, z.core.$strict>;
756
+ declare const askDraftCitationSchema: z.ZodObject<{
757
+ handleId: z.ZodString;
758
+ startLine: z.ZodNumber;
759
+ endLine: z.ZodNumber;
760
+ }, z.core.$strict>;
761
+ declare const askAnswerDraftBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
762
+ kind: z.ZodLiteral<"paragraph">;
763
+ text: z.ZodString;
764
+ citations: z.ZodArray<z.ZodObject<{
765
+ handleId: z.ZodString;
766
+ startLine: z.ZodNumber;
767
+ endLine: z.ZodNumber;
768
+ }, z.core.$strict>>;
769
+ }, z.core.$strict>, z.ZodObject<{
770
+ kind: z.ZodLiteral<"list">;
771
+ items: z.ZodArray<z.ZodObject<{
772
+ text: z.ZodString;
773
+ citations: z.ZodArray<z.ZodObject<{
774
+ handleId: z.ZodString;
775
+ startLine: z.ZodNumber;
776
+ endLine: z.ZodNumber;
777
+ }, z.core.$strict>>;
778
+ }, z.core.$strict>>;
779
+ }, z.core.$strict>, z.ZodObject<{
780
+ kind: z.ZodLiteral<"code">;
781
+ code: z.ZodString;
782
+ language: z.ZodOptional<z.ZodString>;
783
+ citations: z.ZodArray<z.ZodObject<{
784
+ handleId: z.ZodString;
785
+ startLine: z.ZodNumber;
786
+ endLine: z.ZodNumber;
787
+ }, z.core.$strict>>;
788
+ }, z.core.$strict>], "kind">;
789
+ declare const askAnswerDraftSchema: z.ZodObject<{
790
+ blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
791
+ kind: z.ZodLiteral<"paragraph">;
792
+ text: z.ZodString;
793
+ citations: z.ZodArray<z.ZodObject<{
794
+ handleId: z.ZodString;
795
+ startLine: z.ZodNumber;
796
+ endLine: z.ZodNumber;
797
+ }, z.core.$strict>>;
798
+ }, z.core.$strict>, z.ZodObject<{
799
+ kind: z.ZodLiteral<"list">;
800
+ items: z.ZodArray<z.ZodObject<{
801
+ text: z.ZodString;
802
+ citations: z.ZodArray<z.ZodObject<{
803
+ handleId: z.ZodString;
804
+ startLine: z.ZodNumber;
805
+ endLine: z.ZodNumber;
806
+ }, z.core.$strict>>;
807
+ }, z.core.$strict>>;
808
+ }, z.core.$strict>, z.ZodObject<{
809
+ kind: z.ZodLiteral<"code">;
810
+ code: z.ZodString;
811
+ language: z.ZodOptional<z.ZodString>;
812
+ citations: z.ZodArray<z.ZodObject<{
813
+ handleId: z.ZodString;
814
+ startLine: z.ZodNumber;
815
+ endLine: z.ZodNumber;
816
+ }, z.core.$strict>>;
817
+ }, z.core.$strict>], "kind">>;
818
+ warnings: z.ZodArray<z.ZodObject<{
819
+ code: z.ZodEnum<{
820
+ "insufficient-evidence": "insufficient-evidence";
821
+ "partial-context": "partial-context";
822
+ }>;
823
+ }, z.core.$strict>>;
824
+ }, z.core.$strict>;
825
+ declare const askAnswerBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
826
+ kind: z.ZodLiteral<"paragraph">;
827
+ text: z.ZodString;
828
+ sourceIds: z.ZodArray<z.ZodString>;
829
+ }, z.core.$strict>, z.ZodObject<{
830
+ kind: z.ZodLiteral<"list">;
831
+ items: z.ZodArray<z.ZodObject<{
832
+ text: z.ZodString;
833
+ sourceIds: z.ZodArray<z.ZodString>;
834
+ }, z.core.$strict>>;
835
+ }, z.core.$strict>, z.ZodObject<{
836
+ kind: z.ZodLiteral<"code">;
837
+ code: z.ZodString;
838
+ language: z.ZodOptional<z.ZodString>;
839
+ sourceIds: z.ZodArray<z.ZodString>;
840
+ }, z.core.$strict>], "kind">;
841
+ declare const askSourceReferenceSchema: z.ZodObject<{
842
+ sourceId: z.ZodString;
843
+ label: z.ZodString;
844
+ relativePath: z.ZodString;
845
+ fileId: z.ZodString;
846
+ startLine: z.ZodNumber;
847
+ endLine: z.ZodNumber;
848
+ confidence: z.ZodEnum<{
849
+ exact: "exact";
850
+ probable: "probable";
851
+ approximate: "approximate";
852
+ }>;
853
+ targetIds: z.ZodArray<z.ZodString>;
854
+ sourceVersion: z.ZodOptional<z.ZodString>;
855
+ contentHash: z.ZodString;
856
+ }, z.core.$strict>;
857
+ declare const askAnswerResultSchema: z.ZodObject<{
858
+ schemaVersion: z.ZodLiteral<1>;
859
+ jobId: z.ZodString;
860
+ selectionId: z.ZodString;
861
+ contextHash: z.ZodString;
862
+ executor: z.ZodObject<{
863
+ executorId: z.ZodString;
864
+ kind: z.ZodEnum<{
865
+ "configured-key": "configured-key";
866
+ "managed-codex": "managed-codex";
867
+ }>;
868
+ label: z.ZodString;
869
+ modelLabel: z.ZodString;
870
+ }, z.core.$strict>;
871
+ blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
872
+ kind: z.ZodLiteral<"paragraph">;
873
+ text: z.ZodString;
874
+ sourceIds: z.ZodArray<z.ZodString>;
875
+ }, z.core.$strict>, z.ZodObject<{
876
+ kind: z.ZodLiteral<"list">;
877
+ items: z.ZodArray<z.ZodObject<{
878
+ text: z.ZodString;
879
+ sourceIds: z.ZodArray<z.ZodString>;
880
+ }, z.core.$strict>>;
881
+ }, z.core.$strict>, z.ZodObject<{
882
+ kind: z.ZodLiteral<"code">;
883
+ code: z.ZodString;
884
+ language: z.ZodOptional<z.ZodString>;
885
+ sourceIds: z.ZodArray<z.ZodString>;
886
+ }, z.core.$strict>], "kind">>;
887
+ sources: z.ZodArray<z.ZodObject<{
888
+ sourceId: z.ZodString;
889
+ label: z.ZodString;
890
+ relativePath: z.ZodString;
891
+ fileId: z.ZodString;
892
+ startLine: z.ZodNumber;
893
+ endLine: z.ZodNumber;
894
+ confidence: z.ZodEnum<{
895
+ exact: "exact";
896
+ probable: "probable";
897
+ approximate: "approximate";
898
+ }>;
899
+ targetIds: z.ZodArray<z.ZodString>;
900
+ sourceVersion: z.ZodOptional<z.ZodString>;
901
+ contentHash: z.ZodString;
902
+ }, z.core.$strict>>;
903
+ warnings: z.ZodArray<z.ZodObject<{
904
+ code: z.ZodEnum<{
905
+ "insufficient-evidence": "insufficient-evidence";
906
+ "partial-context": "partial-context";
907
+ "source-truncated": "source-truncated";
908
+ "source-stale": "source-stale";
909
+ }>;
910
+ }, z.core.$strict>>;
911
+ createdAt: z.ZodISODateTime;
912
+ expiresAt: z.ZodISODateTime;
913
+ }, z.core.$strict>;
914
+ declare const contextualAskExecutorCapabilitySchema: z.ZodObject<{
915
+ executorId: z.ZodString;
916
+ kind: z.ZodEnum<{
917
+ "configured-key": "configured-key";
918
+ "managed-codex": "managed-codex";
919
+ }>;
920
+ label: z.ZodString;
921
+ requestedModelLabel: z.ZodString;
922
+ effectiveModelLabel: z.ZodString;
923
+ state: z.ZodEnum<{
924
+ ready: "ready";
925
+ degraded: "degraded";
926
+ unavailable: "unavailable";
927
+ }>;
928
+ providerDataConsentRequired: z.ZodBoolean;
929
+ readOnlyProven: z.ZodBoolean;
930
+ errorCode: z.ZodOptional<z.ZodEnum<{
931
+ ASK_DISABLED: "ASK_DISABLED";
932
+ ASK_SELECTION_REQUIRED: "ASK_SELECTION_REQUIRED";
933
+ ASK_SELECTION_STALE: "ASK_SELECTION_STALE";
934
+ ASK_QUESTION_INVALID: "ASK_QUESTION_INVALID";
935
+ ASK_EXECUTOR_UNAVAILABLE: "ASK_EXECUTOR_UNAVAILABLE";
936
+ ASK_TIMEOUT: "ASK_TIMEOUT";
937
+ ASK_CONSENT_REQUIRED: "ASK_CONSENT_REQUIRED";
938
+ ASK_BUSY: "ASK_BUSY";
939
+ ASK_IDEMPOTENCY_CONFLICT: "ASK_IDEMPOTENCY_CONFLICT";
940
+ ASK_SOURCE_SCOPE_DENIED: "ASK_SOURCE_SCOPE_DENIED";
941
+ ASK_LIMIT_EXCEEDED: "ASK_LIMIT_EXCEEDED";
942
+ ASK_ANSWER_INVALID: "ASK_ANSWER_INVALID";
943
+ ASK_WRITE_ATTEMPTED: "ASK_WRITE_ATTEMPTED";
944
+ ASK_CANCELLED: "ASK_CANCELLED";
945
+ ASK_RESULT_EXPIRED: "ASK_RESULT_EXPIRED";
946
+ ASK_PROTOCOL_INCOMPATIBLE: "ASK_PROTOCOL_INCOMPATIBLE";
947
+ }>>;
948
+ }, z.core.$strict>;
949
+ declare const contextualAskCapabilitySchema: z.ZodObject<{
950
+ schemaVersion: z.ZodLiteral<1>;
951
+ enabled: z.ZodBoolean;
952
+ executors: z.ZodArray<z.ZodObject<{
953
+ executorId: z.ZodString;
954
+ kind: z.ZodEnum<{
955
+ "configured-key": "configured-key";
956
+ "managed-codex": "managed-codex";
957
+ }>;
958
+ label: z.ZodString;
959
+ requestedModelLabel: z.ZodString;
960
+ effectiveModelLabel: z.ZodString;
961
+ state: z.ZodEnum<{
962
+ ready: "ready";
963
+ degraded: "degraded";
964
+ unavailable: "unavailable";
965
+ }>;
966
+ providerDataConsentRequired: z.ZodBoolean;
967
+ readOnlyProven: z.ZodBoolean;
968
+ errorCode: z.ZodOptional<z.ZodEnum<{
969
+ ASK_DISABLED: "ASK_DISABLED";
970
+ ASK_SELECTION_REQUIRED: "ASK_SELECTION_REQUIRED";
971
+ ASK_SELECTION_STALE: "ASK_SELECTION_STALE";
972
+ ASK_QUESTION_INVALID: "ASK_QUESTION_INVALID";
973
+ ASK_EXECUTOR_UNAVAILABLE: "ASK_EXECUTOR_UNAVAILABLE";
974
+ ASK_TIMEOUT: "ASK_TIMEOUT";
975
+ ASK_CONSENT_REQUIRED: "ASK_CONSENT_REQUIRED";
976
+ ASK_BUSY: "ASK_BUSY";
977
+ ASK_IDEMPOTENCY_CONFLICT: "ASK_IDEMPOTENCY_CONFLICT";
978
+ ASK_SOURCE_SCOPE_DENIED: "ASK_SOURCE_SCOPE_DENIED";
979
+ ASK_LIMIT_EXCEEDED: "ASK_LIMIT_EXCEEDED";
980
+ ASK_ANSWER_INVALID: "ASK_ANSWER_INVALID";
981
+ ASK_WRITE_ATTEMPTED: "ASK_WRITE_ATTEMPTED";
982
+ ASK_CANCELLED: "ASK_CANCELLED";
983
+ ASK_RESULT_EXPIRED: "ASK_RESULT_EXPIRED";
984
+ ASK_PROTOCOL_INCOMPATIBLE: "ASK_PROTOCOL_INCOMPATIBLE";
985
+ }>>;
986
+ }, z.core.$strict>>;
987
+ safety: z.ZodObject<{
988
+ selectionRequired: z.ZodLiteral<true>;
989
+ singleTurn: z.ZodLiteral<true>;
990
+ writesAllowed: z.ZodLiteral<false>;
991
+ historyStored: z.ZodLiteral<false>;
992
+ }, z.core.$strict>;
993
+ checkedAt: z.ZodISODateTime;
994
+ }, z.core.$strict>;
995
+ type ContextualAskExecutorPreference = z.infer<typeof contextualAskExecutorPreferenceSchema>;
996
+ type ContextualAskOptions = z.infer<typeof contextualAskOptionsSchema>;
997
+ type SpotSelectionTarget = z.infer<typeof spotSelectionTargetSchema>;
998
+ type SpotSelectionContext = z.infer<typeof spotSelectionContextSchema>;
999
+ type AskDraftOrigin = z.infer<typeof askDraftOriginSchema>;
1000
+ type SpotAskTaskEnvelope = z.infer<typeof spotAskTaskEnvelopeSchema>;
1001
+ type SpotChangeTaskEnvelope = z.infer<typeof spotChangeTaskEnvelopeSchema>;
1002
+ type SpotTaskEnvelope = z.infer<typeof spotTaskEnvelopeSchema>;
1003
+ type AskAnswerWarning = z.infer<typeof askAnswerWarningSchema>;
1004
+ type AskDraftCitation = z.infer<typeof askDraftCitationSchema>;
1005
+ type AskAnswerDraftBlock = z.infer<typeof askAnswerDraftBlockSchema>;
1006
+ type AskAnswerDraft = z.infer<typeof askAnswerDraftSchema>;
1007
+ type AskAnswerBlock = z.infer<typeof askAnswerBlockSchema>;
1008
+ type AskSourceReference = z.infer<typeof askSourceReferenceSchema>;
1009
+ type AskAnswerResult = z.infer<typeof askAnswerResultSchema>;
1010
+ type ContextualAskExecutorCapability = z.infer<typeof contextualAskExecutorCapabilitySchema>;
1011
+ type ContextualAskCapability = z.infer<typeof contextualAskCapabilitySchema>;
1012
+
1013
+ declare const contextualAskCapabilityRequestSchema: z.ZodObject<{}, z.core.$strict>;
1014
+ declare const askJobCreateRequestSchema: z.ZodObject<{
1015
+ schemaVersion: z.ZodLiteral<1>;
1016
+ requestId: z.ZodString;
1017
+ envelope: z.ZodObject<{
1018
+ task: z.ZodObject<{
1019
+ kind: z.ZodLiteral<"ask">;
1020
+ question: z.ZodString;
1021
+ }, z.core.$strict>;
1022
+ schemaVersion: z.ZodLiteral<1>;
1023
+ taskId: z.ZodString;
1024
+ selection: z.ZodObject<{
1025
+ schemaVersion: z.ZodLiteral<1>;
1026
+ selectionId: z.ZodString;
1027
+ locale: z.ZodEnum<{
1028
+ "en-US": "en-US";
1029
+ "zh-CN": "zh-CN";
1030
+ }>;
1031
+ targets: z.ZodArray<z.ZodObject<{
1032
+ source: z.ZodObject<{
1033
+ fileId: z.ZodOptional<z.ZodString>;
1034
+ relativePath: z.ZodOptional<z.ZodString>;
1035
+ line: z.ZodOptional<z.ZodNumber>;
1036
+ column: z.ZodOptional<z.ZodNumber>;
1037
+ origin: z.ZodEnum<{
1038
+ "jsx-host": "jsx-host";
1039
+ "react-fiber": "react-fiber";
1040
+ "dom-ancestor": "dom-ancestor";
1041
+ none: "none";
1042
+ }>;
1043
+ confidence: z.ZodEnum<{
1044
+ exact: "exact";
1045
+ probable: "probable";
1046
+ approximate: "approximate";
1047
+ unknown: "unknown";
1048
+ }>;
1049
+ }, z.core.$strict>;
1050
+ react: z.ZodObject<{
1051
+ supported: z.ZodBoolean;
1052
+ version: z.ZodOptional<z.ZodString>;
1053
+ componentName: z.ZodOptional<z.ZodString>;
1054
+ componentSourceId: z.ZodOptional<z.ZodString>;
1055
+ sourceVersion: z.ZodOptional<z.ZodString>;
1056
+ componentStack: z.ZodArray<z.ZodString>;
1057
+ source: z.ZodOptional<z.ZodObject<{
1058
+ fileId: z.ZodOptional<z.ZodString>;
1059
+ relativePath: z.ZodOptional<z.ZodString>;
1060
+ line: z.ZodOptional<z.ZodNumber>;
1061
+ column: z.ZodOptional<z.ZodNumber>;
1062
+ origin: z.ZodEnum<{
1063
+ "jsx-host": "jsx-host";
1064
+ "react-fiber": "react-fiber";
1065
+ "dom-ancestor": "dom-ancestor";
1066
+ none: "none";
1067
+ }>;
1068
+ confidence: z.ZodEnum<{
1069
+ exact: "exact";
1070
+ probable: "probable";
1071
+ approximate: "approximate";
1072
+ unknown: "unknown";
1073
+ }>;
1074
+ }, z.core.$strict>>;
1075
+ }, z.core.$strict>;
1076
+ element: z.ZodObject<{
1077
+ tagName: z.ZodString;
1078
+ selector: z.ZodString;
1079
+ sanitizedHtml: z.ZodString;
1080
+ textPreview: z.ZodOptional<z.ZodString>;
1081
+ role: z.ZodOptional<z.ZodString>;
1082
+ rect: z.ZodObject<{
1083
+ x: z.ZodNumber;
1084
+ y: z.ZodNumber;
1085
+ width: z.ZodNumber;
1086
+ height: z.ZodNumber;
1087
+ }, z.core.$strict>;
1088
+ }, z.core.$strict>;
1089
+ styles: z.ZodObject<{
1090
+ classNames: z.ZodArray<z.ZodString>;
1091
+ inlineStyle: z.ZodOptional<z.ZodString>;
1092
+ matchedRules: z.ZodArray<z.ZodObject<{
1093
+ selector: z.ZodString;
1094
+ declarations: z.ZodString;
1095
+ source: z.ZodOptional<z.ZodString>;
1096
+ media: z.ZodOptional<z.ZodString>;
1097
+ }, z.core.$strict>>;
1098
+ computed: z.ZodRecord<z.ZodString, z.ZodString>;
1099
+ warnings: z.ZodArray<z.ZodString>;
1100
+ }, z.core.$strict>;
1101
+ warnings: z.ZodArray<z.ZodString>;
1102
+ code: z.ZodOptional<z.ZodObject<{
1103
+ relativePath: z.ZodString;
1104
+ language: z.ZodEnum<{
1105
+ tsx: "tsx";
1106
+ jsx: "jsx";
1107
+ }>;
1108
+ startLine: z.ZodNumber;
1109
+ endLine: z.ZodNumber;
1110
+ excerpt: z.ZodString;
1111
+ boundary: z.ZodEnum<{
1112
+ component: "component";
1113
+ "nearby-lines": "nearby-lines";
1114
+ }>;
1115
+ }, z.core.$strict>>;
1116
+ targetId: z.ZodString;
1117
+ page: z.ZodObject<{
1118
+ url: z.ZodString;
1119
+ pathname: z.ZodString;
1120
+ title: z.ZodString;
1121
+ viewportWidth: z.ZodNumber;
1122
+ viewportHeight: z.ZodNumber;
1123
+ devicePixelRatio: z.ZodNumber;
1124
+ }, z.core.$strict>;
1125
+ }, z.core.$strict>>;
1126
+ createdAt: z.ZodISODateTime;
1127
+ }, z.core.$strict>;
1128
+ createdAt: z.ZodISODateTime;
1129
+ }, z.core.$strict>;
1130
+ executorId: z.ZodString;
1131
+ providerDataConsent: z.ZodLiteral<true>;
1132
+ }, z.core.$strict>;
1133
+ declare const askJobActionRequestSchema: z.ZodObject<{}, z.core.$strict>;
1134
+ declare const askJobEventsRequestSchema: z.ZodObject<{
1135
+ afterSequence: z.ZodOptional<z.ZodNumber>;
1136
+ }, z.core.$strict>;
1137
+ declare const askJobSnapshotSchema: z.ZodObject<{
1138
+ schemaVersion: z.ZodLiteral<1>;
1139
+ jobId: z.ZodString;
1140
+ selectionId: z.ZodString;
1141
+ status: z.ZodEnum<{
1142
+ queued: "queued";
1143
+ authorizing: "authorizing";
1144
+ running: "running";
1145
+ cancelling: "cancelling";
1146
+ answered: "answered";
1147
+ cancelled: "cancelled";
1148
+ failed: "failed";
1149
+ }>;
1150
+ executor: z.ZodObject<{
1151
+ executorId: z.ZodString;
1152
+ kind: z.ZodEnum<{
1153
+ "configured-key": "configured-key";
1154
+ "managed-codex": "managed-codex";
1155
+ }>;
1156
+ label: z.ZodString;
1157
+ modelLabel: z.ZodString;
1158
+ }, z.core.$strict>;
1159
+ phaseMessage: z.ZodOptional<z.ZodString>;
1160
+ createdAt: z.ZodISODateTime;
1161
+ updatedAt: z.ZodISODateTime;
1162
+ canCancel: z.ZodBoolean;
1163
+ errorCode: z.ZodOptional<z.ZodEnum<{
1164
+ ASK_DISABLED: "ASK_DISABLED";
1165
+ ASK_SELECTION_REQUIRED: "ASK_SELECTION_REQUIRED";
1166
+ ASK_SELECTION_STALE: "ASK_SELECTION_STALE";
1167
+ ASK_QUESTION_INVALID: "ASK_QUESTION_INVALID";
1168
+ ASK_EXECUTOR_UNAVAILABLE: "ASK_EXECUTOR_UNAVAILABLE";
1169
+ ASK_TIMEOUT: "ASK_TIMEOUT";
1170
+ ASK_CONSENT_REQUIRED: "ASK_CONSENT_REQUIRED";
1171
+ ASK_BUSY: "ASK_BUSY";
1172
+ ASK_IDEMPOTENCY_CONFLICT: "ASK_IDEMPOTENCY_CONFLICT";
1173
+ ASK_SOURCE_SCOPE_DENIED: "ASK_SOURCE_SCOPE_DENIED";
1174
+ ASK_LIMIT_EXCEEDED: "ASK_LIMIT_EXCEEDED";
1175
+ ASK_ANSWER_INVALID: "ASK_ANSWER_INVALID";
1176
+ ASK_WRITE_ATTEMPTED: "ASK_WRITE_ATTEMPTED";
1177
+ ASK_CANCELLED: "ASK_CANCELLED";
1178
+ ASK_RESULT_EXPIRED: "ASK_RESULT_EXPIRED";
1179
+ ASK_PROTOCOL_INCOMPATIBLE: "ASK_PROTOCOL_INCOMPATIBLE";
1180
+ }>>;
1181
+ }, z.core.$strict>;
1182
+ declare const askJobResultResponseSchema: z.ZodObject<{
1183
+ snapshot: z.ZodObject<{
1184
+ schemaVersion: z.ZodLiteral<1>;
1185
+ jobId: z.ZodString;
1186
+ selectionId: z.ZodString;
1187
+ status: z.ZodEnum<{
1188
+ queued: "queued";
1189
+ authorizing: "authorizing";
1190
+ running: "running";
1191
+ cancelling: "cancelling";
1192
+ answered: "answered";
1193
+ cancelled: "cancelled";
1194
+ failed: "failed";
1195
+ }>;
1196
+ executor: z.ZodObject<{
1197
+ executorId: z.ZodString;
1198
+ kind: z.ZodEnum<{
1199
+ "configured-key": "configured-key";
1200
+ "managed-codex": "managed-codex";
1201
+ }>;
1202
+ label: z.ZodString;
1203
+ modelLabel: z.ZodString;
1204
+ }, z.core.$strict>;
1205
+ phaseMessage: z.ZodOptional<z.ZodString>;
1206
+ createdAt: z.ZodISODateTime;
1207
+ updatedAt: z.ZodISODateTime;
1208
+ canCancel: z.ZodBoolean;
1209
+ errorCode: z.ZodOptional<z.ZodEnum<{
1210
+ ASK_DISABLED: "ASK_DISABLED";
1211
+ ASK_SELECTION_REQUIRED: "ASK_SELECTION_REQUIRED";
1212
+ ASK_SELECTION_STALE: "ASK_SELECTION_STALE";
1213
+ ASK_QUESTION_INVALID: "ASK_QUESTION_INVALID";
1214
+ ASK_EXECUTOR_UNAVAILABLE: "ASK_EXECUTOR_UNAVAILABLE";
1215
+ ASK_TIMEOUT: "ASK_TIMEOUT";
1216
+ ASK_CONSENT_REQUIRED: "ASK_CONSENT_REQUIRED";
1217
+ ASK_BUSY: "ASK_BUSY";
1218
+ ASK_IDEMPOTENCY_CONFLICT: "ASK_IDEMPOTENCY_CONFLICT";
1219
+ ASK_SOURCE_SCOPE_DENIED: "ASK_SOURCE_SCOPE_DENIED";
1220
+ ASK_LIMIT_EXCEEDED: "ASK_LIMIT_EXCEEDED";
1221
+ ASK_ANSWER_INVALID: "ASK_ANSWER_INVALID";
1222
+ ASK_WRITE_ATTEMPTED: "ASK_WRITE_ATTEMPTED";
1223
+ ASK_CANCELLED: "ASK_CANCELLED";
1224
+ ASK_RESULT_EXPIRED: "ASK_RESULT_EXPIRED";
1225
+ ASK_PROTOCOL_INCOMPATIBLE: "ASK_PROTOCOL_INCOMPATIBLE";
1226
+ }>>;
1227
+ }, z.core.$strict>;
1228
+ result: z.ZodOptional<z.ZodObject<{
1229
+ schemaVersion: z.ZodLiteral<1>;
1230
+ jobId: z.ZodString;
1231
+ selectionId: z.ZodString;
1232
+ contextHash: z.ZodString;
1233
+ executor: z.ZodObject<{
1234
+ executorId: z.ZodString;
1235
+ kind: z.ZodEnum<{
1236
+ "configured-key": "configured-key";
1237
+ "managed-codex": "managed-codex";
1238
+ }>;
1239
+ label: z.ZodString;
1240
+ modelLabel: z.ZodString;
1241
+ }, z.core.$strict>;
1242
+ blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1243
+ kind: z.ZodLiteral<"paragraph">;
1244
+ text: z.ZodString;
1245
+ sourceIds: z.ZodArray<z.ZodString>;
1246
+ }, z.core.$strict>, z.ZodObject<{
1247
+ kind: z.ZodLiteral<"list">;
1248
+ items: z.ZodArray<z.ZodObject<{
1249
+ text: z.ZodString;
1250
+ sourceIds: z.ZodArray<z.ZodString>;
1251
+ }, z.core.$strict>>;
1252
+ }, z.core.$strict>, z.ZodObject<{
1253
+ kind: z.ZodLiteral<"code">;
1254
+ code: z.ZodString;
1255
+ language: z.ZodOptional<z.ZodString>;
1256
+ sourceIds: z.ZodArray<z.ZodString>;
1257
+ }, z.core.$strict>], "kind">>;
1258
+ sources: z.ZodArray<z.ZodObject<{
1259
+ sourceId: z.ZodString;
1260
+ label: z.ZodString;
1261
+ relativePath: z.ZodString;
1262
+ fileId: z.ZodString;
1263
+ startLine: z.ZodNumber;
1264
+ endLine: z.ZodNumber;
1265
+ confidence: z.ZodEnum<{
1266
+ exact: "exact";
1267
+ probable: "probable";
1268
+ approximate: "approximate";
1269
+ }>;
1270
+ targetIds: z.ZodArray<z.ZodString>;
1271
+ sourceVersion: z.ZodOptional<z.ZodString>;
1272
+ contentHash: z.ZodString;
1273
+ }, z.core.$strict>>;
1274
+ warnings: z.ZodArray<z.ZodObject<{
1275
+ code: z.ZodEnum<{
1276
+ "insufficient-evidence": "insufficient-evidence";
1277
+ "partial-context": "partial-context";
1278
+ "source-truncated": "source-truncated";
1279
+ "source-stale": "source-stale";
1280
+ }>;
1281
+ }, z.core.$strict>>;
1282
+ createdAt: z.ZodISODateTime;
1283
+ expiresAt: z.ZodISODateTime;
1284
+ }, z.core.$strict>>;
1285
+ }, z.core.$strict>;
1286
+ declare const askJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1287
+ type: z.ZodLiteral<"snapshot">;
1288
+ snapshot: z.ZodObject<{
1289
+ schemaVersion: z.ZodLiteral<1>;
1290
+ jobId: z.ZodString;
1291
+ selectionId: z.ZodString;
1292
+ status: z.ZodEnum<{
1293
+ queued: "queued";
1294
+ authorizing: "authorizing";
1295
+ running: "running";
1296
+ cancelling: "cancelling";
1297
+ answered: "answered";
1298
+ cancelled: "cancelled";
1299
+ failed: "failed";
1300
+ }>;
1301
+ executor: z.ZodObject<{
1302
+ executorId: z.ZodString;
1303
+ kind: z.ZodEnum<{
1304
+ "configured-key": "configured-key";
1305
+ "managed-codex": "managed-codex";
1306
+ }>;
1307
+ label: z.ZodString;
1308
+ modelLabel: z.ZodString;
1309
+ }, z.core.$strict>;
1310
+ phaseMessage: z.ZodOptional<z.ZodString>;
1311
+ createdAt: z.ZodISODateTime;
1312
+ updatedAt: z.ZodISODateTime;
1313
+ canCancel: z.ZodBoolean;
1314
+ errorCode: z.ZodOptional<z.ZodEnum<{
1315
+ ASK_DISABLED: "ASK_DISABLED";
1316
+ ASK_SELECTION_REQUIRED: "ASK_SELECTION_REQUIRED";
1317
+ ASK_SELECTION_STALE: "ASK_SELECTION_STALE";
1318
+ ASK_QUESTION_INVALID: "ASK_QUESTION_INVALID";
1319
+ ASK_EXECUTOR_UNAVAILABLE: "ASK_EXECUTOR_UNAVAILABLE";
1320
+ ASK_TIMEOUT: "ASK_TIMEOUT";
1321
+ ASK_CONSENT_REQUIRED: "ASK_CONSENT_REQUIRED";
1322
+ ASK_BUSY: "ASK_BUSY";
1323
+ ASK_IDEMPOTENCY_CONFLICT: "ASK_IDEMPOTENCY_CONFLICT";
1324
+ ASK_SOURCE_SCOPE_DENIED: "ASK_SOURCE_SCOPE_DENIED";
1325
+ ASK_LIMIT_EXCEEDED: "ASK_LIMIT_EXCEEDED";
1326
+ ASK_ANSWER_INVALID: "ASK_ANSWER_INVALID";
1327
+ ASK_WRITE_ATTEMPTED: "ASK_WRITE_ATTEMPTED";
1328
+ ASK_CANCELLED: "ASK_CANCELLED";
1329
+ ASK_RESULT_EXPIRED: "ASK_RESULT_EXPIRED";
1330
+ ASK_PROTOCOL_INCOMPATIBLE: "ASK_PROTOCOL_INCOMPATIBLE";
1331
+ }>>;
1332
+ }, z.core.$strict>;
1333
+ schemaVersion: z.ZodLiteral<1>;
1334
+ sequence: z.ZodNumber;
1335
+ jobId: z.ZodString;
1336
+ status: z.ZodEnum<{
1337
+ queued: "queued";
1338
+ authorizing: "authorizing";
1339
+ running: "running";
1340
+ cancelling: "cancelling";
1341
+ answered: "answered";
1342
+ cancelled: "cancelled";
1343
+ failed: "failed";
1344
+ }>;
1345
+ timestamp: z.ZodISODateTime;
1346
+ }, z.core.$strict>, z.ZodObject<{
1347
+ type: z.ZodLiteral<"phase">;
1348
+ message: z.ZodString;
1349
+ schemaVersion: z.ZodLiteral<1>;
1350
+ sequence: z.ZodNumber;
1351
+ jobId: z.ZodString;
1352
+ status: z.ZodEnum<{
1353
+ queued: "queued";
1354
+ authorizing: "authorizing";
1355
+ running: "running";
1356
+ cancelling: "cancelling";
1357
+ answered: "answered";
1358
+ cancelled: "cancelled";
1359
+ failed: "failed";
1360
+ }>;
1361
+ timestamp: z.ZodISODateTime;
1362
+ }, z.core.$strict>, z.ZodObject<{
1363
+ type: z.ZodLiteral<"read-activity">;
1364
+ activity: z.ZodDiscriminatedUnion<[z.ZodObject<{
1365
+ kind: z.ZodLiteral<"source">;
1366
+ sourceId: z.ZodString;
1367
+ relativePath: z.ZodString;
1368
+ }, z.core.$strict>, z.ZodObject<{
1369
+ kind: z.ZodLiteral<"file-count">;
1370
+ bucket: z.ZodEnum<{
1371
+ one: "one";
1372
+ few: "few";
1373
+ many: "many";
1374
+ }>;
1375
+ }, z.core.$strict>], "kind">;
1376
+ state: z.ZodEnum<{
1377
+ failed: "failed";
1378
+ started: "started";
1379
+ succeeded: "succeeded";
1380
+ }>;
1381
+ schemaVersion: z.ZodLiteral<1>;
1382
+ sequence: z.ZodNumber;
1383
+ jobId: z.ZodString;
1384
+ status: z.ZodEnum<{
1385
+ queued: "queued";
1386
+ authorizing: "authorizing";
1387
+ running: "running";
1388
+ cancelling: "cancelling";
1389
+ answered: "answered";
1390
+ cancelled: "cancelled";
1391
+ failed: "failed";
1392
+ }>;
1393
+ timestamp: z.ZodISODateTime;
1394
+ }, z.core.$strict>, z.ZodObject<{
1395
+ type: z.ZodLiteral<"answer-ready">;
1396
+ schemaVersion: z.ZodLiteral<1>;
1397
+ sequence: z.ZodNumber;
1398
+ jobId: z.ZodString;
1399
+ status: z.ZodEnum<{
1400
+ queued: "queued";
1401
+ authorizing: "authorizing";
1402
+ running: "running";
1403
+ cancelling: "cancelling";
1404
+ answered: "answered";
1405
+ cancelled: "cancelled";
1406
+ failed: "failed";
1407
+ }>;
1408
+ timestamp: z.ZodISODateTime;
1409
+ }, z.core.$strict>, z.ZodObject<{
1410
+ type: z.ZodLiteral<"error">;
1411
+ errorCode: z.ZodEnum<{
1412
+ ASK_DISABLED: "ASK_DISABLED";
1413
+ ASK_SELECTION_REQUIRED: "ASK_SELECTION_REQUIRED";
1414
+ ASK_SELECTION_STALE: "ASK_SELECTION_STALE";
1415
+ ASK_QUESTION_INVALID: "ASK_QUESTION_INVALID";
1416
+ ASK_EXECUTOR_UNAVAILABLE: "ASK_EXECUTOR_UNAVAILABLE";
1417
+ ASK_TIMEOUT: "ASK_TIMEOUT";
1418
+ ASK_CONSENT_REQUIRED: "ASK_CONSENT_REQUIRED";
1419
+ ASK_BUSY: "ASK_BUSY";
1420
+ ASK_IDEMPOTENCY_CONFLICT: "ASK_IDEMPOTENCY_CONFLICT";
1421
+ ASK_SOURCE_SCOPE_DENIED: "ASK_SOURCE_SCOPE_DENIED";
1422
+ ASK_LIMIT_EXCEEDED: "ASK_LIMIT_EXCEEDED";
1423
+ ASK_ANSWER_INVALID: "ASK_ANSWER_INVALID";
1424
+ ASK_WRITE_ATTEMPTED: "ASK_WRITE_ATTEMPTED";
1425
+ ASK_CANCELLED: "ASK_CANCELLED";
1426
+ ASK_RESULT_EXPIRED: "ASK_RESULT_EXPIRED";
1427
+ ASK_PROTOCOL_INCOMPATIBLE: "ASK_PROTOCOL_INCOMPATIBLE";
1428
+ }>;
1429
+ schemaVersion: z.ZodLiteral<1>;
1430
+ sequence: z.ZodNumber;
1431
+ jobId: z.ZodString;
1432
+ status: z.ZodEnum<{
1433
+ queued: "queued";
1434
+ authorizing: "authorizing";
1435
+ running: "running";
1436
+ cancelling: "cancelling";
1437
+ answered: "answered";
1438
+ cancelled: "cancelled";
1439
+ failed: "failed";
1440
+ }>;
1441
+ timestamp: z.ZodISODateTime;
1442
+ }, z.core.$strict>], "type">;
1443
+ type ContextualAskCapabilityRequest = z.infer<typeof contextualAskCapabilityRequestSchema>;
1444
+ type AskJobCreateRequest = z.infer<typeof askJobCreateRequestSchema>;
1445
+ type AskJobActionRequest = z.infer<typeof askJobActionRequestSchema>;
1446
+ type AskJobEventsRequest = z.infer<typeof askJobEventsRequestSchema>;
1447
+ type AskJobSnapshot = z.infer<typeof askJobSnapshotSchema>;
1448
+ type AskJobResultResponse = z.infer<typeof askJobResultResponseSchema>;
1449
+ type AskJobEvent = z.infer<typeof askJobEventSchema>;
1450
+
1451
+ export { askJobEventsRequestSchema as $, ASK_ANSWER_WARNING_CODES as A, type ContextualAskCapabilityRequest as B, CONTEXTUAL_ASK_EXECUTOR_KINDS as C, type ContextualAskExecutorCapability as D, type ContextualAskExecutorKind as E, type ContextualAskExecutorState as F, type SpotChangeTaskEnvelope as G, type SpotSelectionContext as H, type SpotSelectionTarget as I, type SpotTaskEnvelope as J, type AskAnswerDraft as K, type AskAnswerDraftBlock as L, type AskDraftCitation as M, CONTEXTUAL_ASK_PERMISSION_PROFILE as N, type ContextualAskExecutorPreference as O, type ContextualAskOptions as P, askAnswerBlockSchema as Q, askAnswerDraftBlockSchema as R, type SpotAskTaskEnvelope as S, askAnswerDraftSchema as T, askAnswerResultSchema as U, askAnswerWarningSchema as V, askDraftCitationSchema as W, askDraftOriginSchema as X, askJobActionRequestSchema as Y, askJobCreateRequestSchema as Z, askJobEventSchema as _, ASK_EXECUTOR_ANSWER_WARNING_CODES as a, askJobResultResponseSchema as a0, askJobSnapshotSchema as a1, askSourceReferenceSchema as a2, contextualAskCapabilityRequestSchema as a3, contextualAskCapabilitySchema as a4, contextualAskExecutorCapabilitySchema as a5, contextualAskExecutorPreferenceSchema as a6, contextualAskOptionsSchema as a7, spotAskTaskEnvelopeSchema as a8, spotChangeTaskEnvelopeSchema as a9, spotSelectionContextSchema as aa, spotSelectionTargetSchema as ab, spotTaskEnvelopeSchema as ac, ASK_FILE_COUNT_BUCKETS as b, ASK_JOB_STATUSES as c, ASK_READ_ACTIVITY_STATES as d, ASK_SOURCE_CONFIDENCES as e, type AskAnswerBlock as f, type AskAnswerResult as g, type AskAnswerWarning as h, type AskAnswerWarningCode as i, type AskDraftOrigin as j, type AskExecutorAnswerWarningCode as k, type AskFileCountBucket as l, type AskJobActionRequest as m, type AskJobCreateRequest as n, type AskJobEvent as o, type AskJobEventsRequest as p, type AskJobResultResponse as q, type AskJobSnapshot as r, type AskJobStatus as s, type AskReadActivityState as t, type AskSourceConfidence as u, type AskSourceReference as v, CONTEXTUAL_ASK_EXECUTOR_STATES as w, CONTEXTUAL_ASK_LIMITS as x, CONTEXTUAL_ASK_SCHEMA_VERSION as y, type ContextualAskCapability as z };