@xpert-ai/contracts 3.36.0 → 3.37.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 (57) hide show
  1. package/index.cjs.js +818 -450
  2. package/index.esm.js +806 -451
  3. package/package.json +2 -2
  4. package/src/ai/agent-runtime.model.d.ts +2 -2
  5. package/src/ai/assistant-template-manifest.model.d.ts +328 -328
  6. package/src/ai/assistant-template-setup.model.d.ts +8 -8
  7. package/src/ai/chat-activity.model.d.ts +5 -0
  8. package/src/ai/chat.model.d.ts +2 -0
  9. package/src/ai/conversation-trail.model.d.ts +66 -66
  10. package/src/ai/execution-activity.model.d.ts +10 -10
  11. package/src/ai/execution-control-evidence.schema.d.ts +30 -30
  12. package/src/ai/execution-observability.model.d.ts +96 -96
  13. package/src/ai/mcp-execution-control.schema.d.ts +2 -2
  14. package/src/ai/model-replacement.model.d.ts +6 -6
  15. package/src/ai/project-pipeline/analytics.d.ts +154 -154
  16. package/src/ai/project-pipeline/budget.schema.d.ts +4 -4
  17. package/src/ai/project-pipeline/commands.schema.d.ts +68 -68
  18. package/src/ai/project-pipeline/configuration-declaration.schema.d.ts +3815 -0
  19. package/src/ai/project-pipeline/configuration-form.d.ts +215 -215
  20. package/src/ai/project-pipeline/configuration.schema.d.ts +50 -50
  21. package/src/ai/project-pipeline/contribution.schema.d.ts +173 -70
  22. package/src/ai/project-pipeline/definition.schema.d.ts +50 -50
  23. package/src/ai/project-pipeline/execution-statistics.d.ts +18 -18
  24. package/src/ai/project-pipeline/graph.model.d.ts +2 -2
  25. package/src/ai/project-pipeline/index.d.ts +1 -0
  26. package/src/ai/project-pipeline/model-usage-statistics.d.ts +2 -2
  27. package/src/ai/project-pipeline/node.schema.d.ts +2 -2
  28. package/src/ai/project-pipeline/operation.schema.d.ts +344 -344
  29. package/src/ai/project-pipeline/portfolio.schema.d.ts +348 -348
  30. package/src/ai/project-pipeline/primitives.schema.d.ts +4 -4
  31. package/src/ai/project-pipeline/projection.schema.d.ts +260 -260
  32. package/src/ai/project-pipeline/provider-actions.schema.d.ts +28 -28
  33. package/src/ai/project-pipeline/queue-statistics.d.ts +24 -24
  34. package/src/ai/project-pipeline/runtime.schema.d.ts +50 -50
  35. package/src/ai/project-pipeline/statistics.d.ts +74 -74
  36. package/src/ai/project-task-runtime.model.d.ts +23 -23
  37. package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
  38. package/src/ai/template-installation.model.d.ts +16 -16
  39. package/src/ai/template-lifecycle.model.d.ts +2 -2
  40. package/src/ai/thread-control-view.schema.d.ts +4 -4
  41. package/src/ai/xpert-agent-execution.model.d.ts +29 -0
  42. package/src/ai/xpert-tool.model.d.ts +12 -0
  43. package/src/{agent-event.model.d.ts → always-on/agent-event.model.d.ts} +37 -4
  44. package/src/{agent-event.schema.d.ts → always-on/agent-event.schema.d.ts} +19 -0
  45. package/src/always-on/agent-output-reference.schema.d.ts +27 -0
  46. package/src/always-on/agent-output.model.d.ts +411 -0
  47. package/src/always-on/human-decision.model.d.ts +204 -0
  48. package/src/always-on/index.d.ts +3 -0
  49. package/src/always-on/output-workbench.schema.d.ts +154 -0
  50. package/src/analytics/analytics-diagnostic.d.ts +4 -4
  51. package/src/app-platform.d.ts +18 -18
  52. package/src/artifacts/artifact.model.d.ts +2 -0
  53. package/src/content/content-resource.model.d.ts +2 -1
  54. package/src/icon-definition.schema.d.ts +6 -10
  55. package/src/index.d.ts +1 -1
  56. package/src/secret-token.model.d.ts +4 -4
  57. package/src/user-notification.schema.d.ts +1290 -479
@@ -23,7 +23,6 @@ export declare const assistantTemplateSetupStateSchema: z.ZodObject<{
23
23
  choice?: "skip";
24
24
  }>]>>;
25
25
  }, "strict", z.ZodTypeAny, {
26
- revision?: number;
27
26
  preferences?: Record<string, string>;
28
27
  connectors?: Record<string, {
29
28
  bindingId?: string;
@@ -32,9 +31,9 @@ export declare const assistantTemplateSetupStateSchema: z.ZodObject<{
32
31
  choice?: "skip";
33
32
  }>;
34
33
  completedAt?: string;
34
+ revision?: number;
35
35
  firstResult?: string;
36
36
  }, {
37
- revision?: number;
38
37
  preferences?: Record<string, string>;
39
38
  connectors?: Record<string, {
40
39
  bindingId?: string;
@@ -43,6 +42,7 @@ export declare const assistantTemplateSetupStateSchema: z.ZodObject<{
43
42
  choice?: "skip";
44
43
  }>;
45
44
  completedAt?: string;
45
+ revision?: number;
46
46
  firstResult?: string;
47
47
  }>;
48
48
  export type AssistantTemplateSetupState = z.output<typeof assistantTemplateSetupStateSchema>;
@@ -69,46 +69,46 @@ export declare const templateSetupUpdateSchema: z.ZodObject<{
69
69
  choice?: "skip";
70
70
  }>]>;
71
71
  }, "strict", z.ZodTypeAny, {
72
- key?: string;
73
72
  selection?: {
74
73
  bindingId?: string;
75
74
  choice?: "binding";
76
75
  } | {
77
76
  choice?: "skip";
78
77
  };
79
- }, {
80
78
  key?: string;
79
+ }, {
81
80
  selection?: {
82
81
  bindingId?: string;
83
82
  choice?: "binding";
84
83
  } | {
85
84
  choice?: "skip";
86
85
  };
86
+ key?: string;
87
87
  }>>;
88
88
  }, "strict", z.ZodTypeAny, {
89
- revision?: number;
90
89
  preferences?: Record<string, string>;
90
+ revision?: number;
91
91
  connector?: {
92
- key?: string;
93
92
  selection?: {
94
93
  bindingId?: string;
95
94
  choice?: "binding";
96
95
  } | {
97
96
  choice?: "skip";
98
97
  };
98
+ key?: string;
99
99
  };
100
100
  firstResult?: string;
101
101
  }, {
102
- revision?: number;
103
102
  preferences?: Record<string, string>;
103
+ revision?: number;
104
104
  connector?: {
105
- key?: string;
106
105
  selection?: {
107
106
  bindingId?: string;
108
107
  choice?: "binding";
109
108
  } | {
110
109
  choice?: "skip";
111
110
  };
111
+ key?: string;
112
112
  };
113
113
  firstResult?: string;
114
114
  }>;
@@ -3,6 +3,11 @@ export interface IChatConversationUnreadXpertSummary {
3
3
  xpertId: string;
4
4
  /** Includes running conversations other than the most recently updated one. */
5
5
  hasActiveRuns?: boolean;
6
+ /** Private threads available to open, including active branches of an idle conversation. */
7
+ runningThreads?: {
8
+ threadId: string;
9
+ title: string | null;
10
+ }[];
6
11
  /** Total private threads waiting for a human response, including those outside the preview. */
7
12
  pendingThreadCount?: number;
8
13
  /** Pending threads in the bounded preview. Rank is one-based across the requested Assistants, newest first. */
@@ -306,6 +306,8 @@ export interface IChatConversationMarkReadRequest {
306
306
  export interface IChatConversationUnreadXpertsRequest {
307
307
  xpertIds: string[];
308
308
  includePending?: boolean;
309
+ /** Include the user's accessible running threads for desktop navigation. */
310
+ includeRunning?: boolean;
309
311
  }
310
312
  export type ChatMessage = {
311
313
  conversationId: string;
@@ -24,40 +24,40 @@ export declare const trailStepSchema: z.ZodObject<{
24
24
  order: z.ZodNumber;
25
25
  }, "strip", z.ZodTypeAny, {
26
26
  kind: "message" | "turn" | "tool";
27
- status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
27
+ status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
28
+ title: string;
28
29
  id: string;
29
30
  laneId: string;
30
31
  activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
31
- title: string;
32
32
  order: number;
33
+ executionId?: string | undefined;
34
+ threadId?: string | undefined;
35
+ input?: string | undefined;
33
36
  answer?: string | undefined;
34
37
  toolCallId?: string | undefined;
35
38
  startedAt?: string | undefined;
36
39
  endedAt?: string | undefined;
37
40
  preview?: string | undefined;
38
- input?: string | undefined;
39
41
  output?: string | undefined;
40
42
  messageId?: string | undefined;
41
- threadId?: string | undefined;
42
- executionId?: string | undefined;
43
43
  }, {
44
44
  kind: "message" | "turn" | "tool";
45
- status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
45
+ status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
46
+ title: string;
46
47
  id: string;
47
48
  laneId: string;
48
49
  activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
49
- title: string;
50
50
  order: number;
51
+ executionId?: string | undefined;
52
+ threadId?: string | undefined;
53
+ input?: string | undefined;
51
54
  answer?: string | undefined;
52
55
  toolCallId?: string | undefined;
53
56
  startedAt?: string | undefined;
54
57
  endedAt?: string | undefined;
55
58
  preview?: string | undefined;
56
- input?: string | undefined;
57
59
  output?: string | undefined;
58
60
  messageId?: string | undefined;
59
- threadId?: string | undefined;
60
- executionId?: string | undefined;
61
61
  }>;
62
62
  export declare const trailLaneSchema: z.ZodObject<{
63
63
  invocationKind: z.ZodOptional<z.ZodEnum<["sub_agent", "external_assistant", "activity"]>>;
@@ -86,14 +86,14 @@ export declare const trailLaneSchema: z.ZodObject<{
86
86
  primary: z.ZodBoolean;
87
87
  status: z.ZodEnum<["running", "success", "error", "pending", "waiting", "cancelling", "idle", "interrupted", "unknown"]>;
88
88
  }, "strip", z.ZodTypeAny, {
89
- status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
90
- id: string;
89
+ status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
91
90
  title: string;
91
+ id: string;
92
92
  parentId: string | null;
93
93
  primary: boolean;
94
- messageId?: string | undefined;
95
- threadId?: string | undefined;
96
94
  executionId?: string | undefined;
95
+ threadId?: string | undefined;
96
+ messageId?: string | undefined;
97
97
  spawnStepId?: string | undefined;
98
98
  invocationKind?: "activity" | "sub_agent" | "external_assistant" | undefined;
99
99
  purpose?: "side-chat" | "message-edit" | undefined;
@@ -104,14 +104,14 @@ export declare const trailLaneSchema: z.ZodObject<{
104
104
  message?: string | undefined;
105
105
  } | undefined;
106
106
  }, {
107
- status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
108
- id: string;
107
+ status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
109
108
  title: string;
109
+ id: string;
110
110
  parentId: string | null;
111
111
  primary: boolean;
112
- messageId?: string | undefined;
113
- threadId?: string | undefined;
114
112
  executionId?: string | undefined;
113
+ threadId?: string | undefined;
114
+ messageId?: string | undefined;
115
115
  spawnStepId?: string | undefined;
116
116
  invocationKind?: "activity" | "sub_agent" | "external_assistant" | undefined;
117
117
  purpose?: "side-chat" | "message-edit" | undefined;
@@ -172,14 +172,14 @@ export declare const trailGraphSchema: z.ZodObject<{
172
172
  primary: z.ZodBoolean;
173
173
  status: z.ZodEnum<["running", "success", "error", "pending", "waiting", "cancelling", "idle", "interrupted", "unknown"]>;
174
174
  }, "strip", z.ZodTypeAny, {
175
- status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
176
- id: string;
175
+ status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
177
176
  title: string;
177
+ id: string;
178
178
  parentId: string | null;
179
179
  primary: boolean;
180
- messageId?: string | undefined;
181
- threadId?: string | undefined;
182
180
  executionId?: string | undefined;
181
+ threadId?: string | undefined;
182
+ messageId?: string | undefined;
183
183
  spawnStepId?: string | undefined;
184
184
  invocationKind?: "activity" | "sub_agent" | "external_assistant" | undefined;
185
185
  purpose?: "side-chat" | "message-edit" | undefined;
@@ -190,14 +190,14 @@ export declare const trailGraphSchema: z.ZodObject<{
190
190
  message?: string | undefined;
191
191
  } | undefined;
192
192
  }, {
193
- status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
194
- id: string;
193
+ status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
195
194
  title: string;
195
+ id: string;
196
196
  parentId: string | null;
197
197
  primary: boolean;
198
- messageId?: string | undefined;
199
- threadId?: string | undefined;
200
198
  executionId?: string | undefined;
199
+ threadId?: string | undefined;
200
+ messageId?: string | undefined;
201
201
  spawnStepId?: string | undefined;
202
202
  invocationKind?: "activity" | "sub_agent" | "external_assistant" | undefined;
203
203
  purpose?: "side-chat" | "message-edit" | undefined;
@@ -228,40 +228,40 @@ export declare const trailGraphSchema: z.ZodObject<{
228
228
  order: z.ZodNumber;
229
229
  }, "strip", z.ZodTypeAny, {
230
230
  kind: "message" | "turn" | "tool";
231
- status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
231
+ status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
232
+ title: string;
232
233
  id: string;
233
234
  laneId: string;
234
235
  activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
235
- title: string;
236
236
  order: number;
237
+ executionId?: string | undefined;
238
+ threadId?: string | undefined;
239
+ input?: string | undefined;
237
240
  answer?: string | undefined;
238
241
  toolCallId?: string | undefined;
239
242
  startedAt?: string | undefined;
240
243
  endedAt?: string | undefined;
241
244
  preview?: string | undefined;
242
- input?: string | undefined;
243
245
  output?: string | undefined;
244
246
  messageId?: string | undefined;
245
- threadId?: string | undefined;
246
- executionId?: string | undefined;
247
247
  }, {
248
248
  kind: "message" | "turn" | "tool";
249
- status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
249
+ status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
250
+ title: string;
250
251
  id: string;
251
252
  laneId: string;
252
253
  activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
253
- title: string;
254
254
  order: number;
255
+ executionId?: string | undefined;
256
+ threadId?: string | undefined;
257
+ input?: string | undefined;
255
258
  answer?: string | undefined;
256
259
  toolCallId?: string | undefined;
257
260
  startedAt?: string | undefined;
258
261
  endedAt?: string | undefined;
259
262
  preview?: string | undefined;
260
- input?: string | undefined;
261
263
  output?: string | undefined;
262
264
  messageId?: string | undefined;
263
- threadId?: string | undefined;
264
- executionId?: string | undefined;
265
265
  }>, "many">;
266
266
  episodes: z.ZodArray<z.ZodObject<{
267
267
  id: z.ZodString;
@@ -285,30 +285,30 @@ export declare const trailGraphSchema: z.ZodObject<{
285
285
  threadId: z.ZodString;
286
286
  messageId: z.ZodString;
287
287
  }, "strip", z.ZodTypeAny, {
288
- messageId: string;
289
- threadId: string;
290
288
  conversationId: string;
291
- }, {
292
- messageId: string;
293
289
  threadId: string;
290
+ messageId: string;
291
+ }, {
294
292
  conversationId: string;
293
+ threadId: string;
294
+ messageId: string;
295
295
  }>>;
296
296
  live: z.ZodBoolean;
297
297
  }, "strip", z.ZodTypeAny, {
298
298
  title: string;
299
+ conversationId: string;
299
300
  threadId: string;
300
301
  version: 1;
301
302
  layer: "conversation" | "execution";
302
- conversationId: string;
303
303
  lanes: {
304
- status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
305
- id: string;
304
+ status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
306
305
  title: string;
306
+ id: string;
307
307
  parentId: string | null;
308
308
  primary: boolean;
309
- messageId?: string | undefined;
310
- threadId?: string | undefined;
311
309
  executionId?: string | undefined;
310
+ threadId?: string | undefined;
311
+ messageId?: string | undefined;
312
312
  spawnStepId?: string | undefined;
313
313
  invocationKind?: "activity" | "sub_agent" | "external_assistant" | undefined;
314
314
  purpose?: "side-chat" | "message-edit" | undefined;
@@ -321,22 +321,22 @@ export declare const trailGraphSchema: z.ZodObject<{
321
321
  }[];
322
322
  steps: {
323
323
  kind: "message" | "turn" | "tool";
324
- status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
324
+ status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
325
+ title: string;
325
326
  id: string;
326
327
  laneId: string;
327
328
  activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
328
- title: string;
329
329
  order: number;
330
+ executionId?: string | undefined;
331
+ threadId?: string | undefined;
332
+ input?: string | undefined;
330
333
  answer?: string | undefined;
331
334
  toolCallId?: string | undefined;
332
335
  startedAt?: string | undefined;
333
336
  endedAt?: string | undefined;
334
337
  preview?: string | undefined;
335
- input?: string | undefined;
336
338
  output?: string | undefined;
337
339
  messageId?: string | undefined;
338
- threadId?: string | undefined;
339
- executionId?: string | undefined;
340
340
  }[];
341
341
  episodes: {
342
342
  id: string;
@@ -346,27 +346,27 @@ export declare const trailGraphSchema: z.ZodObject<{
346
346
  }[];
347
347
  coverage: ("record_limit" | "missing_identity" | "no_execution" | "timing_unavailable" | "activity_unavailable" | "historical")[];
348
348
  live: boolean;
349
- messageId?: string | undefined;
350
349
  source?: {
351
- messageId: string;
352
- threadId: string;
353
350
  conversationId: string;
351
+ threadId: string;
352
+ messageId: string;
354
353
  } | undefined;
354
+ messageId?: string | undefined;
355
355
  }, {
356
356
  title: string;
357
+ conversationId: string;
357
358
  threadId: string;
358
359
  version: 1;
359
360
  layer: "conversation" | "execution";
360
- conversationId: string;
361
361
  lanes: {
362
- status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
363
- id: string;
362
+ status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
364
363
  title: string;
364
+ id: string;
365
365
  parentId: string | null;
366
366
  primary: boolean;
367
- messageId?: string | undefined;
368
- threadId?: string | undefined;
369
367
  executionId?: string | undefined;
368
+ threadId?: string | undefined;
369
+ messageId?: string | undefined;
370
370
  spawnStepId?: string | undefined;
371
371
  invocationKind?: "activity" | "sub_agent" | "external_assistant" | undefined;
372
372
  purpose?: "side-chat" | "message-edit" | undefined;
@@ -379,22 +379,22 @@ export declare const trailGraphSchema: z.ZodObject<{
379
379
  }[];
380
380
  steps: {
381
381
  kind: "message" | "turn" | "tool";
382
- status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
382
+ status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
383
+ title: string;
383
384
  id: string;
384
385
  laneId: string;
385
386
  activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
386
- title: string;
387
387
  order: number;
388
+ executionId?: string | undefined;
389
+ threadId?: string | undefined;
390
+ input?: string | undefined;
388
391
  answer?: string | undefined;
389
392
  toolCallId?: string | undefined;
390
393
  startedAt?: string | undefined;
391
394
  endedAt?: string | undefined;
392
395
  preview?: string | undefined;
393
- input?: string | undefined;
394
396
  output?: string | undefined;
395
397
  messageId?: string | undefined;
396
- threadId?: string | undefined;
397
- executionId?: string | undefined;
398
398
  }[];
399
399
  episodes: {
400
400
  id: string;
@@ -404,12 +404,12 @@ export declare const trailGraphSchema: z.ZodObject<{
404
404
  }[];
405
405
  coverage: ("record_limit" | "missing_identity" | "no_execution" | "timing_unavailable" | "activity_unavailable" | "historical")[];
406
406
  live: boolean;
407
- messageId?: string | undefined;
408
407
  source?: {
409
- messageId: string;
410
- threadId: string;
411
408
  conversationId: string;
409
+ threadId: string;
410
+ messageId: string;
412
411
  } | undefined;
412
+ messageId?: string | undefined;
413
413
  }>;
414
414
  export type TrailStep = z.infer<typeof trailStepSchema>;
415
415
  export type TrailLane = z.infer<typeof trailLaneSchema>;
@@ -91,7 +91,7 @@ export declare const executionActivityItemSchema: z.ZodObject<{
91
91
  }>]>>;
92
92
  }, "strict", z.ZodTypeAny, {
93
93
  kind: "tool";
94
- status: "unknown" | "running" | "succeeded" | "failed";
94
+ status: "unknown" | "failed" | "running" | "succeeded";
95
95
  input?: string | undefined;
96
96
  output?: string | undefined;
97
97
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
@@ -117,7 +117,7 @@ export declare const executionActivityItemSchema: z.ZodObject<{
117
117
  } | undefined;
118
118
  }, {
119
119
  kind: "tool";
120
- status: "unknown" | "running" | "succeeded" | "failed";
120
+ status: "unknown" | "failed" | "running" | "succeeded";
121
121
  input?: string | undefined;
122
122
  output?: string | undefined;
123
123
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
@@ -161,7 +161,7 @@ export declare const executionActivityItemSchema: z.ZodObject<{
161
161
  text: string;
162
162
  } | {
163
163
  kind: "tool";
164
- status: "unknown" | "running" | "succeeded" | "failed";
164
+ status: "unknown" | "failed" | "running" | "succeeded";
165
165
  input?: string | undefined;
166
166
  output?: string | undefined;
167
167
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
@@ -198,7 +198,7 @@ export declare const executionActivityItemSchema: z.ZodObject<{
198
198
  text: string;
199
199
  } | {
200
200
  kind: "tool";
201
- status: "unknown" | "running" | "succeeded" | "failed";
201
+ status: "unknown" | "failed" | "running" | "succeeded";
202
202
  input?: string | undefined;
203
203
  output?: string | undefined;
204
204
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
@@ -311,7 +311,7 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
311
311
  }>]>>;
312
312
  }, "strict", z.ZodTypeAny, {
313
313
  kind: "tool";
314
- status: "unknown" | "running" | "succeeded" | "failed";
314
+ status: "unknown" | "failed" | "running" | "succeeded";
315
315
  input?: string | undefined;
316
316
  output?: string | undefined;
317
317
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
@@ -337,7 +337,7 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
337
337
  } | undefined;
338
338
  }, {
339
339
  kind: "tool";
340
- status: "unknown" | "running" | "succeeded" | "failed";
340
+ status: "unknown" | "failed" | "running" | "succeeded";
341
341
  input?: string | undefined;
342
342
  output?: string | undefined;
343
343
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
@@ -381,7 +381,7 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
381
381
  text: string;
382
382
  } | {
383
383
  kind: "tool";
384
- status: "unknown" | "running" | "succeeded" | "failed";
384
+ status: "unknown" | "failed" | "running" | "succeeded";
385
385
  input?: string | undefined;
386
386
  output?: string | undefined;
387
387
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
@@ -418,7 +418,7 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
418
418
  text: string;
419
419
  } | {
420
420
  kind: "tool";
421
- status: "unknown" | "running" | "succeeded" | "failed";
421
+ status: "unknown" | "failed" | "running" | "succeeded";
422
422
  input?: string | undefined;
423
423
  output?: string | undefined;
424
424
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
@@ -461,7 +461,7 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
461
461
  text: string;
462
462
  } | {
463
463
  kind: "tool";
464
- status: "unknown" | "running" | "succeeded" | "failed";
464
+ status: "unknown" | "failed" | "running" | "succeeded";
465
465
  input?: string | undefined;
466
466
  output?: string | undefined;
467
467
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
@@ -504,7 +504,7 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
504
504
  text: string;
505
505
  } | {
506
506
  kind: "tool";
507
- status: "unknown" | "running" | "succeeded" | "failed";
507
+ status: "unknown" | "failed" | "running" | "succeeded";
508
508
  input?: string | undefined;
509
509
  output?: string | undefined;
510
510
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
@@ -64,10 +64,10 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
64
64
  kind: "invocation";
65
65
  id: string;
66
66
  };
67
- version: 1;
67
+ state: "unknown";
68
68
  source: "unavailable";
69
+ version: 1;
69
70
  reason: "unregistered" | "unconfirmed" | "unsupported";
70
- state: "unknown";
71
71
  observedAt: string;
72
72
  }, {
73
73
  subject: {
@@ -77,10 +77,10 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
77
77
  kind: "invocation";
78
78
  id: string;
79
79
  };
80
- version: 1;
80
+ state: "unknown";
81
81
  source: "unavailable";
82
+ version: 1;
82
83
  reason: "unregistered" | "unconfirmed" | "unsupported";
83
- state: "unknown";
84
84
  observedAt: string;
85
85
  }>, z.ZodObject<{
86
86
  source: z.ZodLiteral<"platform">;
@@ -122,15 +122,15 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
122
122
  id: string;
123
123
  };
124
124
  revision: number;
125
- threadId: string;
125
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
126
+ taskId: string;
126
127
  executionId: string;
127
- version: 1;
128
+ threadId: string;
128
129
  source: "platform";
130
+ version: 1;
129
131
  scope: "owned_subtree";
130
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
131
132
  observedAt: string;
132
133
  desired: "running" | "paused" | "terminated";
133
- taskId: string;
134
134
  rootId: string;
135
135
  }, {
136
136
  subject: {
@@ -141,15 +141,15 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
141
141
  id: string;
142
142
  };
143
143
  revision: number;
144
- threadId: string;
144
+ state: "running" | "paused" | "pausing" | "terminating" | "settled";
145
+ taskId: string;
145
146
  executionId: string;
146
- version: 1;
147
+ threadId: string;
147
148
  source: "platform";
149
+ version: 1;
148
150
  scope: "owned_subtree";
149
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
150
151
  observedAt: string;
151
152
  desired: "running" | "paused" | "terminated";
152
- taskId: string;
153
153
  rootId: string;
154
154
  }>, z.ZodObject<{
155
155
  source: z.ZodLiteral<"provider">;
@@ -204,11 +204,11 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
204
204
  kind: "invocation";
205
205
  id: string;
206
206
  };
207
- outcome: "succeeded" | "failed" | "cancelled";
208
- version: 1;
207
+ state: "settled";
209
208
  source: "provider";
209
+ version: 1;
210
+ outcome: "failed" | "cancelled" | "succeeded";
210
211
  scope: "operation";
211
- state: "settled";
212
212
  runId: string;
213
213
  observedAt: string;
214
214
  sessionId: string;
@@ -228,11 +228,11 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
228
228
  kind: "invocation";
229
229
  id: string;
230
230
  };
231
- outcome: "succeeded" | "failed" | "cancelled";
232
- version: 1;
231
+ state: "settled";
233
232
  source: "provider";
233
+ version: 1;
234
+ outcome: "failed" | "cancelled" | "succeeded";
234
235
  scope: "operation";
235
- state: "settled";
236
236
  runId: string;
237
237
  observedAt: string;
238
238
  sessionId: string;
@@ -270,24 +270,24 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
270
270
  kind: "invocation";
271
271
  id: string;
272
272
  };
273
+ state: "settled";
273
274
  executionId: string;
274
- outcome: "cancelled";
275
- version: 1;
276
275
  source: "native_graph";
276
+ version: 1;
277
+ outcome: "cancelled";
277
278
  scope: "operation";
278
- state: "settled";
279
279
  observedAt: string;
280
280
  }, {
281
281
  subject: {
282
282
  kind: "invocation";
283
283
  id: string;
284
284
  };
285
+ state: "settled";
285
286
  executionId: string;
286
- outcome: "cancelled";
287
- version: 1;
288
287
  source: "native_graph";
288
+ version: 1;
289
+ outcome: "cancelled";
289
290
  scope: "operation";
290
- state: "settled";
291
291
  observedAt: string;
292
292
  }>, z.ZodObject<{
293
293
  source: z.ZodLiteral<"host_admission">;
@@ -312,24 +312,24 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
312
312
  kind: "invocation";
313
313
  id: string;
314
314
  };
315
- outcome: "failed" | "cancelled";
316
- version: 1;
315
+ state: "settled";
317
316
  source: "host_admission";
317
+ version: 1;
318
+ outcome: "failed" | "cancelled";
318
319
  reason: "not_started";
319
320
  scope: "operation";
320
- state: "settled";
321
321
  observedAt: string;
322
322
  }, {
323
323
  subject: {
324
324
  kind: "invocation";
325
325
  id: string;
326
326
  };
327
- outcome: "failed" | "cancelled";
328
- version: 1;
327
+ state: "settled";
329
328
  source: "host_admission";
329
+ version: 1;
330
+ outcome: "failed" | "cancelled";
330
331
  reason: "not_started";
331
332
  scope: "operation";
332
- state: "settled";
333
333
  observedAt: string;
334
334
  }>]>;
335
335
  export type ExecutionControlEvidence = z.output<typeof executionControlEvidenceSchema>;