@xpert-ai/contracts 3.35.0 → 3.36.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 (97) hide show
  1. package/context-event.cjs.default.js +1 -0
  2. package/context-event.cjs.js +26 -0
  3. package/context-event.cjs.mjs +2 -0
  4. package/context-event.d.ts +1 -0
  5. package/context-event.esm.js +24 -0
  6. package/index.cjs.default.js +1 -0
  7. package/index.cjs.js +291 -299
  8. package/index.cjs.mjs +2 -0
  9. package/index.esm.js +280 -296
  10. package/package.json +18 -2
  11. package/src/agent-event.model.d.ts +88 -0
  12. package/src/agent-event.schema.d.ts +120 -0
  13. package/src/agent-plugin.d.ts +4 -29
  14. package/src/ai/agent-output-delivery.model.d.ts +22 -1
  15. package/src/ai/agent-runtime.model.d.ts +4 -4
  16. package/src/ai/assistant-capability.model.d.ts +0 -1
  17. package/src/ai/assistant-template-manifest.model.d.ts +316 -352
  18. package/src/ai/assistant-template-overview.model.d.ts +0 -4
  19. package/src/ai/assistant-template-setup.model.d.ts +8 -8
  20. package/src/ai/assistant-template.model.d.ts +0 -4
  21. package/src/ai/bosi.model.d.ts +1 -1
  22. package/src/ai/chat-activity.model.d.ts +8 -0
  23. package/src/ai/chat-message.model.d.ts +0 -11
  24. package/src/ai/chat.model.d.ts +1 -0
  25. package/src/ai/cli-execution.model.d.ts +88 -0
  26. package/src/ai/conversation-trail.model.d.ts +274 -274
  27. package/src/ai/copilot-store.model.d.ts +0 -13
  28. package/src/ai/evolution/entities.d.ts +164 -0
  29. package/src/ai/evolution/evaluation.d.ts +7 -0
  30. package/src/ai/evolution/execution-review.d.ts +68 -0
  31. package/src/ai/evolution/index.d.ts +2 -0
  32. package/src/ai/evolution/provider.d.ts +1 -0
  33. package/src/ai/evolution/target.d.ts +5 -0
  34. package/src/ai/execution-activity.model.d.ts +362 -362
  35. package/src/ai/execution-control-evidence.schema.d.ts +18 -18
  36. package/src/ai/execution-observability.model.d.ts +196 -196
  37. package/src/ai/execution-source.model.d.ts +45 -0
  38. package/src/ai/index.d.ts +2 -0
  39. package/src/ai/mcp-execution-control.schema.d.ts +2 -2
  40. package/src/ai/middleware.model.d.ts +1 -0
  41. package/src/ai/model-execution.model.d.ts +5 -108
  42. package/src/ai/model-replacement.model.d.ts +18 -18
  43. package/src/ai/project-configuration-view.model.d.ts +1 -0
  44. package/src/ai/project-pipeline/analytics.d.ts +192 -192
  45. package/src/ai/project-pipeline/commands.schema.d.ts +533 -490
  46. package/src/ai/project-pipeline/configuration-form.d.ts +1976 -1832
  47. package/src/ai/project-pipeline/configuration.schema.d.ts +450 -413
  48. package/src/ai/project-pipeline/contribution.schema.d.ts +688 -639
  49. package/src/ai/project-pipeline/definition.schema.d.ts +400 -356
  50. package/src/ai/project-pipeline/execution-statistics.d.ts +18 -18
  51. package/src/ai/project-pipeline/graph.model.d.ts +5 -0
  52. package/src/ai/project-pipeline/human-wait-statistics.d.ts +2 -2
  53. package/src/ai/project-pipeline/model-usage-statistics.d.ts +4 -4
  54. package/src/ai/project-pipeline/node.schema.d.ts +57 -44
  55. package/src/ai/project-pipeline/operation.schema.d.ts +298 -298
  56. package/src/ai/project-pipeline/plugin-deployment.schema.d.ts +6 -6
  57. package/src/ai/project-pipeline/portfolio.schema.d.ts +468 -468
  58. package/src/ai/project-pipeline/primitives.schema.d.ts +6 -6
  59. package/src/ai/project-pipeline/projection.schema.d.ts +609 -572
  60. package/src/ai/project-pipeline/provider-actions.schema.d.ts +100 -100
  61. package/src/ai/project-pipeline/queue-statistics.d.ts +10 -10
  62. package/src/ai/project-pipeline/runtime.schema.d.ts +60 -60
  63. package/src/ai/project-pipeline/statistics.d.ts +100 -100
  64. package/src/ai/project-task-runtime.model.d.ts +256 -780
  65. package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
  66. package/src/ai/template-installation.model.d.ts +18 -18
  67. package/src/ai/template-lifecycle.model.d.ts +6 -6
  68. package/src/ai/thread-control-view.schema.d.ts +4 -4
  69. package/src/ai/xpert-agent-execution.model.d.ts +4 -0
  70. package/src/ai/xpert-project.model.d.ts +2 -1
  71. package/src/ai/xpert.model.d.ts +0 -34
  72. package/src/ai/xpert.utils.d.ts +0 -1
  73. package/src/analytics/analysis-evidence.model.d.ts +29 -0
  74. package/src/analytics/analytics-certification.model.d.ts +17 -0
  75. package/src/{analytics-definition.model.d.ts → analytics/analytics-definition.model.d.ts} +1 -1
  76. package/src/{analytics-diagnostic.d.ts → analytics/analytics-diagnostic.d.ts} +8 -8
  77. package/src/{analytics-query.model.d.ts → analytics/analytics-query.model.d.ts} +9 -1
  78. package/src/analytics/index.d.ts +7 -0
  79. package/src/{resource-analysis.model.d.ts → analytics/resource-analysis.model.d.ts} +6 -1
  80. package/src/app-platform.d.ts +16 -16
  81. package/src/{artifact-group-reference.model.d.ts → artifacts/artifact-group-reference.model.d.ts} +1 -1
  82. package/src/{artifact-presentation.model.d.ts → artifacts/artifact-presentation.model.d.ts} +1 -1
  83. package/src/{artifact-use-grant-command.d.ts → artifacts/artifact-use-grant-command.d.ts} +1 -1
  84. package/src/{artifact-use-grant.model.d.ts → artifacts/artifact-use-grant.model.d.ts} +2 -2
  85. package/src/{artifact.model.d.ts → artifacts/artifact.model.d.ts} +2 -2
  86. package/src/artifacts/index.d.ts +5 -0
  87. package/src/collaboration.model.d.ts +31 -11
  88. package/src/{content-document.model.d.ts → content/content-document.model.d.ts} +2 -0
  89. package/src/{content-resource.model.d.ts → content/content-resource.model.d.ts} +6 -3
  90. package/src/content/content-transfer.model.d.ts +21 -0
  91. package/src/content/index.d.ts +4 -0
  92. package/src/execution-control-admission.schema.d.ts +2 -2
  93. package/src/index.d.ts +5 -14
  94. package/src/user-notification.schema.d.ts +46 -28
  95. package/src/view-extension/client-commands.d.ts +24 -0
  96. /package/src/{analytics-source.model.d.ts → analytics/analytics-source.model.d.ts} +0 -0
  97. /package/src/{content-reference.model.d.ts → content/content-reference.model.d.ts} +0 -0
@@ -4,11 +4,11 @@ export declare const executionActivityCapabilitiesSchema: z.ZodObject<{
4
4
  version: z.ZodLiteral<1>;
5
5
  presentation: z.ZodLiteral<"coding">;
6
6
  }, "strict", z.ZodTypeAny, {
7
- version?: 1;
8
- presentation?: "coding";
7
+ version: 1;
8
+ presentation: "coding";
9
9
  }, {
10
- version?: 1;
11
- presentation?: "coding";
10
+ version: 1;
11
+ presentation: "coding";
12
12
  }>;
13
13
  export type ExecutionActivityCapabilities = z.infer<typeof executionActivityCapabilitiesSchema>;
14
14
  export declare const executionActivityItemSchema: z.ZodObject<{
@@ -18,11 +18,11 @@ export declare const executionActivityItemSchema: z.ZodObject<{
18
18
  kind: z.ZodLiteral<"message">;
19
19
  text: z.ZodString;
20
20
  }, "strict", z.ZodTypeAny, {
21
- kind?: "message";
22
- text?: string;
21
+ kind: "message";
22
+ text: string;
23
23
  }, {
24
- kind?: "message";
25
- text?: string;
24
+ kind: "message";
25
+ text: string;
26
26
  }>, z.ZodObject<{
27
27
  kind: z.ZodLiteral<"tool">;
28
28
  activityKind: z.ZodOptional<z.ZodEnum<["task", "explore", "change", "verify", "answer", "other"]>>;
@@ -35,11 +35,11 @@ export declare const executionActivityItemSchema: z.ZodObject<{
35
35
  key: z.ZodString;
36
36
  length: z.ZodNumber;
37
37
  }, "strict", z.ZodTypeAny, {
38
- length?: number;
39
- key?: string;
38
+ key: string;
39
+ length: number;
40
40
  }, {
41
- length?: number;
42
- key?: string;
41
+ key: string;
42
+ length: number;
43
43
  }>>;
44
44
  detail: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
45
45
  type: z.ZodLiteral<"command">;
@@ -48,17 +48,17 @@ export declare const executionActivityItemSchema: z.ZodObject<{
48
48
  exitCode: z.ZodOptional<z.ZodNumber>;
49
49
  outputMode: z.ZodLiteral<"merged">;
50
50
  }, "strict", z.ZodTypeAny, {
51
- type?: "command";
52
- command?: string;
53
- cwd?: string;
54
- exitCode?: number;
55
- outputMode?: "merged";
51
+ type: "command";
52
+ command: string;
53
+ outputMode: "merged";
54
+ cwd?: string | undefined;
55
+ exitCode?: number | undefined;
56
56
  }, {
57
- type?: "command";
58
- command?: string;
59
- cwd?: string;
60
- exitCode?: number;
61
- outputMode?: "merged";
57
+ type: "command";
58
+ command: string;
59
+ outputMode: "merged";
60
+ cwd?: string | undefined;
61
+ exitCode?: number | undefined;
62
62
  }>, z.ZodObject<{
63
63
  type: z.ZodLiteral<"file_change">;
64
64
  files: z.ZodArray<z.ZodObject<{
@@ -66,168 +66,168 @@ export declare const executionActivityItemSchema: z.ZodObject<{
66
66
  change: z.ZodEnum<["created", "modified", "deleted", "reported"]>;
67
67
  patch: z.ZodOptional<z.ZodString>;
68
68
  }, "strict", z.ZodTypeAny, {
69
- path?: string;
70
- patch?: string;
71
- change?: "created" | "deleted" | "modified" | "reported";
69
+ path: string;
70
+ change: "created" | "modified" | "deleted" | "reported";
71
+ patch?: string | undefined;
72
72
  }, {
73
- path?: string;
74
- patch?: string;
75
- change?: "created" | "deleted" | "modified" | "reported";
73
+ path: string;
74
+ change: "created" | "modified" | "deleted" | "reported";
75
+ patch?: string | undefined;
76
76
  }>, "many">;
77
77
  }, "strict", z.ZodTypeAny, {
78
- type?: "file_change";
79
- files?: {
80
- path?: string;
81
- patch?: string;
82
- change?: "created" | "deleted" | "modified" | "reported";
78
+ type: "file_change";
79
+ files: {
80
+ path: string;
81
+ change: "created" | "modified" | "deleted" | "reported";
82
+ patch?: string | undefined;
83
83
  }[];
84
84
  }, {
85
- type?: "file_change";
86
- files?: {
87
- path?: string;
88
- patch?: string;
89
- change?: "created" | "deleted" | "modified" | "reported";
85
+ type: "file_change";
86
+ files: {
87
+ path: string;
88
+ change: "created" | "modified" | "deleted" | "reported";
89
+ patch?: string | undefined;
90
90
  }[];
91
91
  }>]>>;
92
92
  }, "strict", z.ZodTypeAny, {
93
- status?: "failed" | "unknown" | "succeeded" | "running";
94
- name?: string;
95
- kind?: "tool";
96
- input?: string;
97
- output?: string;
93
+ kind: "tool";
94
+ status: "unknown" | "running" | "succeeded" | "failed";
95
+ input?: string | undefined;
96
+ output?: string | undefined;
97
+ activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
98
+ name?: string | undefined;
99
+ truncated?: boolean | undefined;
100
+ outputRef?: {
101
+ key: string;
102
+ length: number;
103
+ } | undefined;
98
104
  detail?: {
99
- type?: "command";
100
- command?: string;
101
- cwd?: string;
102
- exitCode?: number;
103
- outputMode?: "merged";
105
+ type: "command";
106
+ command: string;
107
+ outputMode: "merged";
108
+ cwd?: string | undefined;
109
+ exitCode?: number | undefined;
104
110
  } | {
105
- type?: "file_change";
106
- files?: {
107
- path?: string;
108
- patch?: string;
109
- change?: "created" | "deleted" | "modified" | "reported";
111
+ type: "file_change";
112
+ files: {
113
+ path: string;
114
+ change: "created" | "modified" | "deleted" | "reported";
115
+ patch?: string | undefined;
110
116
  }[];
111
- };
112
- truncated?: boolean;
113
- activityKind?: "other" | "task" | "answer" | "explore" | "change" | "verify";
114
- outputRef?: {
115
- length?: number;
116
- key?: string;
117
- };
117
+ } | undefined;
118
118
  }, {
119
- status?: "failed" | "unknown" | "succeeded" | "running";
120
- name?: string;
121
- kind?: "tool";
122
- input?: string;
123
- output?: string;
119
+ kind: "tool";
120
+ status: "unknown" | "running" | "succeeded" | "failed";
121
+ input?: string | undefined;
122
+ output?: string | undefined;
123
+ activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
124
+ name?: string | undefined;
125
+ truncated?: boolean | undefined;
126
+ outputRef?: {
127
+ key: string;
128
+ length: number;
129
+ } | undefined;
124
130
  detail?: {
125
- type?: "command";
126
- command?: string;
127
- cwd?: string;
128
- exitCode?: number;
129
- outputMode?: "merged";
131
+ type: "command";
132
+ command: string;
133
+ outputMode: "merged";
134
+ cwd?: string | undefined;
135
+ exitCode?: number | undefined;
130
136
  } | {
131
- type?: "file_change";
132
- files?: {
133
- path?: string;
134
- patch?: string;
135
- change?: "created" | "deleted" | "modified" | "reported";
137
+ type: "file_change";
138
+ files: {
139
+ path: string;
140
+ change: "created" | "modified" | "deleted" | "reported";
141
+ patch?: string | undefined;
136
142
  }[];
137
- };
138
- truncated?: boolean;
139
- activityKind?: "other" | "task" | "answer" | "explore" | "change" | "verify";
140
- outputRef?: {
141
- length?: number;
142
- key?: string;
143
- };
143
+ } | undefined;
144
144
  }>, z.ZodObject<{
145
145
  kind: z.ZodLiteral<"diagnostic">;
146
146
  code: z.ZodString;
147
147
  text: z.ZodString;
148
148
  }, "strict", z.ZodTypeAny, {
149
- kind?: "diagnostic";
150
- code?: string;
151
- text?: string;
149
+ code: string;
150
+ kind: "diagnostic";
151
+ text: string;
152
152
  }, {
153
- kind?: "diagnostic";
154
- code?: string;
155
- text?: string;
153
+ code: string;
154
+ kind: "diagnostic";
155
+ text: string;
156
156
  }>]>;
157
157
  }, "strict", z.ZodTypeAny, {
158
- id?: string;
159
- content?: {
160
- kind?: "message";
161
- text?: string;
158
+ id: string;
159
+ content: {
160
+ kind: "message";
161
+ text: string;
162
162
  } | {
163
- status?: "failed" | "unknown" | "succeeded" | "running";
164
- name?: string;
165
- kind?: "tool";
166
- input?: string;
167
- output?: string;
163
+ kind: "tool";
164
+ status: "unknown" | "running" | "succeeded" | "failed";
165
+ input?: string | undefined;
166
+ output?: string | undefined;
167
+ activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
168
+ name?: string | undefined;
169
+ truncated?: boolean | undefined;
170
+ outputRef?: {
171
+ key: string;
172
+ length: number;
173
+ } | undefined;
168
174
  detail?: {
169
- type?: "command";
170
- command?: string;
171
- cwd?: string;
172
- exitCode?: number;
173
- outputMode?: "merged";
175
+ type: "command";
176
+ command: string;
177
+ outputMode: "merged";
178
+ cwd?: string | undefined;
179
+ exitCode?: number | undefined;
174
180
  } | {
175
- type?: "file_change";
176
- files?: {
177
- path?: string;
178
- patch?: string;
179
- change?: "created" | "deleted" | "modified" | "reported";
181
+ type: "file_change";
182
+ files: {
183
+ path: string;
184
+ change: "created" | "modified" | "deleted" | "reported";
185
+ patch?: string | undefined;
180
186
  }[];
181
- };
182
- truncated?: boolean;
183
- activityKind?: "other" | "task" | "answer" | "explore" | "change" | "verify";
184
- outputRef?: {
185
- length?: number;
186
- key?: string;
187
- };
187
+ } | undefined;
188
188
  } | {
189
- kind?: "diagnostic";
190
- code?: string;
191
- text?: string;
189
+ code: string;
190
+ kind: "diagnostic";
191
+ text: string;
192
192
  };
193
- occurredAt?: string;
193
+ occurredAt?: string | undefined;
194
194
  }, {
195
- id?: string;
196
- content?: {
197
- kind?: "message";
198
- text?: string;
195
+ id: string;
196
+ content: {
197
+ kind: "message";
198
+ text: string;
199
199
  } | {
200
- status?: "failed" | "unknown" | "succeeded" | "running";
201
- name?: string;
202
- kind?: "tool";
203
- input?: string;
204
- output?: string;
200
+ kind: "tool";
201
+ status: "unknown" | "running" | "succeeded" | "failed";
202
+ input?: string | undefined;
203
+ output?: string | undefined;
204
+ activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
205
+ name?: string | undefined;
206
+ truncated?: boolean | undefined;
207
+ outputRef?: {
208
+ key: string;
209
+ length: number;
210
+ } | undefined;
205
211
  detail?: {
206
- type?: "command";
207
- command?: string;
208
- cwd?: string;
209
- exitCode?: number;
210
- outputMode?: "merged";
212
+ type: "command";
213
+ command: string;
214
+ outputMode: "merged";
215
+ cwd?: string | undefined;
216
+ exitCode?: number | undefined;
211
217
  } | {
212
- type?: "file_change";
213
- files?: {
214
- path?: string;
215
- patch?: string;
216
- change?: "created" | "deleted" | "modified" | "reported";
218
+ type: "file_change";
219
+ files: {
220
+ path: string;
221
+ change: "created" | "modified" | "deleted" | "reported";
222
+ patch?: string | undefined;
217
223
  }[];
218
- };
219
- truncated?: boolean;
220
- activityKind?: "other" | "task" | "answer" | "explore" | "change" | "verify";
221
- outputRef?: {
222
- length?: number;
223
- key?: string;
224
- };
224
+ } | undefined;
225
225
  } | {
226
- kind?: "diagnostic";
227
- code?: string;
228
- text?: string;
226
+ code: string;
227
+ kind: "diagnostic";
228
+ text: string;
229
229
  };
230
- occurredAt?: string;
230
+ occurredAt?: string | undefined;
231
231
  }>;
232
232
  export type ExecutionActivityItem = z.infer<typeof executionActivityItemSchema>;
233
233
  export declare const executionActivityBatchSchema: z.ZodObject<{
@@ -238,11 +238,11 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
238
238
  kind: z.ZodLiteral<"message">;
239
239
  text: z.ZodString;
240
240
  }, "strict", z.ZodTypeAny, {
241
- kind?: "message";
242
- text?: string;
241
+ kind: "message";
242
+ text: string;
243
243
  }, {
244
- kind?: "message";
245
- text?: string;
244
+ kind: "message";
245
+ text: string;
246
246
  }>, z.ZodObject<{
247
247
  kind: z.ZodLiteral<"tool">;
248
248
  activityKind: z.ZodOptional<z.ZodEnum<["task", "explore", "change", "verify", "answer", "other"]>>;
@@ -255,11 +255,11 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
255
255
  key: z.ZodString;
256
256
  length: z.ZodNumber;
257
257
  }, "strict", z.ZodTypeAny, {
258
- length?: number;
259
- key?: string;
258
+ key: string;
259
+ length: number;
260
260
  }, {
261
- length?: number;
262
- key?: string;
261
+ key: string;
262
+ length: number;
263
263
  }>>;
264
264
  detail: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
265
265
  type: z.ZodLiteral<"command">;
@@ -268,17 +268,17 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
268
268
  exitCode: z.ZodOptional<z.ZodNumber>;
269
269
  outputMode: z.ZodLiteral<"merged">;
270
270
  }, "strict", z.ZodTypeAny, {
271
- type?: "command";
272
- command?: string;
273
- cwd?: string;
274
- exitCode?: number;
275
- outputMode?: "merged";
271
+ type: "command";
272
+ command: string;
273
+ outputMode: "merged";
274
+ cwd?: string | undefined;
275
+ exitCode?: number | undefined;
276
276
  }, {
277
- type?: "command";
278
- command?: string;
279
- cwd?: string;
280
- exitCode?: number;
281
- outputMode?: "merged";
277
+ type: "command";
278
+ command: string;
279
+ outputMode: "merged";
280
+ cwd?: string | undefined;
281
+ exitCode?: number | undefined;
282
282
  }>, z.ZodObject<{
283
283
  type: z.ZodLiteral<"file_change">;
284
284
  files: z.ZodArray<z.ZodObject<{
@@ -286,259 +286,259 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
286
286
  change: z.ZodEnum<["created", "modified", "deleted", "reported"]>;
287
287
  patch: z.ZodOptional<z.ZodString>;
288
288
  }, "strict", z.ZodTypeAny, {
289
- path?: string;
290
- patch?: string;
291
- change?: "created" | "deleted" | "modified" | "reported";
289
+ path: string;
290
+ change: "created" | "modified" | "deleted" | "reported";
291
+ patch?: string | undefined;
292
292
  }, {
293
- path?: string;
294
- patch?: string;
295
- change?: "created" | "deleted" | "modified" | "reported";
293
+ path: string;
294
+ change: "created" | "modified" | "deleted" | "reported";
295
+ patch?: string | undefined;
296
296
  }>, "many">;
297
297
  }, "strict", z.ZodTypeAny, {
298
- type?: "file_change";
299
- files?: {
300
- path?: string;
301
- patch?: string;
302
- change?: "created" | "deleted" | "modified" | "reported";
298
+ type: "file_change";
299
+ files: {
300
+ path: string;
301
+ change: "created" | "modified" | "deleted" | "reported";
302
+ patch?: string | undefined;
303
303
  }[];
304
304
  }, {
305
- type?: "file_change";
306
- files?: {
307
- path?: string;
308
- patch?: string;
309
- change?: "created" | "deleted" | "modified" | "reported";
305
+ type: "file_change";
306
+ files: {
307
+ path: string;
308
+ change: "created" | "modified" | "deleted" | "reported";
309
+ patch?: string | undefined;
310
310
  }[];
311
311
  }>]>>;
312
312
  }, "strict", z.ZodTypeAny, {
313
- status?: "failed" | "unknown" | "succeeded" | "running";
314
- name?: string;
315
- kind?: "tool";
316
- input?: string;
317
- output?: string;
313
+ kind: "tool";
314
+ status: "unknown" | "running" | "succeeded" | "failed";
315
+ input?: string | undefined;
316
+ output?: string | undefined;
317
+ activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
318
+ name?: string | undefined;
319
+ truncated?: boolean | undefined;
320
+ outputRef?: {
321
+ key: string;
322
+ length: number;
323
+ } | undefined;
318
324
  detail?: {
319
- type?: "command";
320
- command?: string;
321
- cwd?: string;
322
- exitCode?: number;
323
- outputMode?: "merged";
325
+ type: "command";
326
+ command: string;
327
+ outputMode: "merged";
328
+ cwd?: string | undefined;
329
+ exitCode?: number | undefined;
324
330
  } | {
325
- type?: "file_change";
326
- files?: {
327
- path?: string;
328
- patch?: string;
329
- change?: "created" | "deleted" | "modified" | "reported";
331
+ type: "file_change";
332
+ files: {
333
+ path: string;
334
+ change: "created" | "modified" | "deleted" | "reported";
335
+ patch?: string | undefined;
330
336
  }[];
331
- };
332
- truncated?: boolean;
333
- activityKind?: "other" | "task" | "answer" | "explore" | "change" | "verify";
334
- outputRef?: {
335
- length?: number;
336
- key?: string;
337
- };
337
+ } | undefined;
338
338
  }, {
339
- status?: "failed" | "unknown" | "succeeded" | "running";
340
- name?: string;
341
- kind?: "tool";
342
- input?: string;
343
- output?: string;
339
+ kind: "tool";
340
+ status: "unknown" | "running" | "succeeded" | "failed";
341
+ input?: string | undefined;
342
+ output?: string | undefined;
343
+ activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
344
+ name?: string | undefined;
345
+ truncated?: boolean | undefined;
346
+ outputRef?: {
347
+ key: string;
348
+ length: number;
349
+ } | undefined;
344
350
  detail?: {
345
- type?: "command";
346
- command?: string;
347
- cwd?: string;
348
- exitCode?: number;
349
- outputMode?: "merged";
351
+ type: "command";
352
+ command: string;
353
+ outputMode: "merged";
354
+ cwd?: string | undefined;
355
+ exitCode?: number | undefined;
350
356
  } | {
351
- type?: "file_change";
352
- files?: {
353
- path?: string;
354
- patch?: string;
355
- change?: "created" | "deleted" | "modified" | "reported";
357
+ type: "file_change";
358
+ files: {
359
+ path: string;
360
+ change: "created" | "modified" | "deleted" | "reported";
361
+ patch?: string | undefined;
356
362
  }[];
357
- };
358
- truncated?: boolean;
359
- activityKind?: "other" | "task" | "answer" | "explore" | "change" | "verify";
360
- outputRef?: {
361
- length?: number;
362
- key?: string;
363
- };
363
+ } | undefined;
364
364
  }>, z.ZodObject<{
365
365
  kind: z.ZodLiteral<"diagnostic">;
366
366
  code: z.ZodString;
367
367
  text: z.ZodString;
368
368
  }, "strict", z.ZodTypeAny, {
369
- kind?: "diagnostic";
370
- code?: string;
371
- text?: string;
369
+ code: string;
370
+ kind: "diagnostic";
371
+ text: string;
372
372
  }, {
373
- kind?: "diagnostic";
374
- code?: string;
375
- text?: string;
373
+ code: string;
374
+ kind: "diagnostic";
375
+ text: string;
376
376
  }>]>;
377
377
  }, "strict", z.ZodTypeAny, {
378
- id?: string;
379
- content?: {
380
- kind?: "message";
381
- text?: string;
378
+ id: string;
379
+ content: {
380
+ kind: "message";
381
+ text: string;
382
382
  } | {
383
- status?: "failed" | "unknown" | "succeeded" | "running";
384
- name?: string;
385
- kind?: "tool";
386
- input?: string;
387
- output?: string;
383
+ kind: "tool";
384
+ status: "unknown" | "running" | "succeeded" | "failed";
385
+ input?: string | undefined;
386
+ output?: string | undefined;
387
+ activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
388
+ name?: string | undefined;
389
+ truncated?: boolean | undefined;
390
+ outputRef?: {
391
+ key: string;
392
+ length: number;
393
+ } | undefined;
388
394
  detail?: {
389
- type?: "command";
390
- command?: string;
391
- cwd?: string;
392
- exitCode?: number;
393
- outputMode?: "merged";
395
+ type: "command";
396
+ command: string;
397
+ outputMode: "merged";
398
+ cwd?: string | undefined;
399
+ exitCode?: number | undefined;
394
400
  } | {
395
- type?: "file_change";
396
- files?: {
397
- path?: string;
398
- patch?: string;
399
- change?: "created" | "deleted" | "modified" | "reported";
401
+ type: "file_change";
402
+ files: {
403
+ path: string;
404
+ change: "created" | "modified" | "deleted" | "reported";
405
+ patch?: string | undefined;
400
406
  }[];
401
- };
402
- truncated?: boolean;
403
- activityKind?: "other" | "task" | "answer" | "explore" | "change" | "verify";
404
- outputRef?: {
405
- length?: number;
406
- key?: string;
407
- };
407
+ } | undefined;
408
408
  } | {
409
- kind?: "diagnostic";
410
- code?: string;
411
- text?: string;
409
+ code: string;
410
+ kind: "diagnostic";
411
+ text: string;
412
412
  };
413
- occurredAt?: string;
413
+ occurredAt?: string | undefined;
414
414
  }, {
415
- id?: string;
416
- content?: {
417
- kind?: "message";
418
- text?: string;
415
+ id: string;
416
+ content: {
417
+ kind: "message";
418
+ text: string;
419
419
  } | {
420
- status?: "failed" | "unknown" | "succeeded" | "running";
421
- name?: string;
422
- kind?: "tool";
423
- input?: string;
424
- output?: string;
420
+ kind: "tool";
421
+ status: "unknown" | "running" | "succeeded" | "failed";
422
+ input?: string | undefined;
423
+ output?: string | undefined;
424
+ activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
425
+ name?: string | undefined;
426
+ truncated?: boolean | undefined;
427
+ outputRef?: {
428
+ key: string;
429
+ length: number;
430
+ } | undefined;
425
431
  detail?: {
426
- type?: "command";
427
- command?: string;
428
- cwd?: string;
429
- exitCode?: number;
430
- outputMode?: "merged";
432
+ type: "command";
433
+ command: string;
434
+ outputMode: "merged";
435
+ cwd?: string | undefined;
436
+ exitCode?: number | undefined;
431
437
  } | {
432
- type?: "file_change";
433
- files?: {
434
- path?: string;
435
- patch?: string;
436
- change?: "created" | "deleted" | "modified" | "reported";
438
+ type: "file_change";
439
+ files: {
440
+ path: string;
441
+ change: "created" | "modified" | "deleted" | "reported";
442
+ patch?: string | undefined;
437
443
  }[];
438
- };
439
- truncated?: boolean;
440
- activityKind?: "other" | "task" | "answer" | "explore" | "change" | "verify";
441
- outputRef?: {
442
- length?: number;
443
- key?: string;
444
- };
444
+ } | undefined;
445
445
  } | {
446
- kind?: "diagnostic";
447
- code?: string;
448
- text?: string;
446
+ code: string;
447
+ kind: "diagnostic";
448
+ text: string;
449
449
  };
450
- occurredAt?: string;
450
+ occurredAt?: string | undefined;
451
451
  }>, "many">;
452
452
  sourceCursor: z.ZodOptional<z.ZodString>;
453
453
  expectedSourceCursor: z.ZodOptional<z.ZodString>;
454
454
  complete: z.ZodOptional<z.ZodBoolean>;
455
455
  gaps: z.ZodOptional<z.ZodArray<z.ZodEnum<["source_truncated", "storage_unavailable", "capture_limit", "interrupted", "source_lost"]>, "many">>;
456
456
  }, "strict", z.ZodTypeAny, {
457
- complete?: boolean;
458
- items?: {
459
- id?: string;
460
- content?: {
461
- kind?: "message";
462
- text?: string;
457
+ items: {
458
+ id: string;
459
+ content: {
460
+ kind: "message";
461
+ text: string;
463
462
  } | {
464
- status?: "failed" | "unknown" | "succeeded" | "running";
465
- name?: string;
466
- kind?: "tool";
467
- input?: string;
468
- output?: string;
463
+ kind: "tool";
464
+ status: "unknown" | "running" | "succeeded" | "failed";
465
+ input?: string | undefined;
466
+ output?: string | undefined;
467
+ activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
468
+ name?: string | undefined;
469
+ truncated?: boolean | undefined;
470
+ outputRef?: {
471
+ key: string;
472
+ length: number;
473
+ } | undefined;
469
474
  detail?: {
470
- type?: "command";
471
- command?: string;
472
- cwd?: string;
473
- exitCode?: number;
474
- outputMode?: "merged";
475
+ type: "command";
476
+ command: string;
477
+ outputMode: "merged";
478
+ cwd?: string | undefined;
479
+ exitCode?: number | undefined;
475
480
  } | {
476
- type?: "file_change";
477
- files?: {
478
- path?: string;
479
- patch?: string;
480
- change?: "created" | "deleted" | "modified" | "reported";
481
+ type: "file_change";
482
+ files: {
483
+ path: string;
484
+ change: "created" | "modified" | "deleted" | "reported";
485
+ patch?: string | undefined;
481
486
  }[];
482
- };
483
- truncated?: boolean;
484
- activityKind?: "other" | "task" | "answer" | "explore" | "change" | "verify";
485
- outputRef?: {
486
- length?: number;
487
- key?: string;
488
- };
487
+ } | undefined;
489
488
  } | {
490
- kind?: "diagnostic";
491
- code?: string;
492
- text?: string;
489
+ code: string;
490
+ kind: "diagnostic";
491
+ text: string;
493
492
  };
494
- occurredAt?: string;
493
+ occurredAt?: string | undefined;
495
494
  }[];
496
- sourceCursor?: string;
497
- expectedSourceCursor?: string;
498
- gaps?: ("interrupted" | "source_truncated" | "storage_unavailable" | "capture_limit" | "source_lost")[];
495
+ sourceCursor?: string | undefined;
496
+ expectedSourceCursor?: string | undefined;
497
+ complete?: boolean | undefined;
498
+ gaps?: ("interrupted" | "source_truncated" | "storage_unavailable" | "capture_limit" | "source_lost")[] | undefined;
499
499
  }, {
500
- complete?: boolean;
501
- items?: {
502
- id?: string;
503
- content?: {
504
- kind?: "message";
505
- text?: string;
500
+ items: {
501
+ id: string;
502
+ content: {
503
+ kind: "message";
504
+ text: string;
506
505
  } | {
507
- status?: "failed" | "unknown" | "succeeded" | "running";
508
- name?: string;
509
- kind?: "tool";
510
- input?: string;
511
- output?: string;
506
+ kind: "tool";
507
+ status: "unknown" | "running" | "succeeded" | "failed";
508
+ input?: string | undefined;
509
+ output?: string | undefined;
510
+ activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
511
+ name?: string | undefined;
512
+ truncated?: boolean | undefined;
513
+ outputRef?: {
514
+ key: string;
515
+ length: number;
516
+ } | undefined;
512
517
  detail?: {
513
- type?: "command";
514
- command?: string;
515
- cwd?: string;
516
- exitCode?: number;
517
- outputMode?: "merged";
518
+ type: "command";
519
+ command: string;
520
+ outputMode: "merged";
521
+ cwd?: string | undefined;
522
+ exitCode?: number | undefined;
518
523
  } | {
519
- type?: "file_change";
520
- files?: {
521
- path?: string;
522
- patch?: string;
523
- change?: "created" | "deleted" | "modified" | "reported";
524
+ type: "file_change";
525
+ files: {
526
+ path: string;
527
+ change: "created" | "modified" | "deleted" | "reported";
528
+ patch?: string | undefined;
524
529
  }[];
525
- };
526
- truncated?: boolean;
527
- activityKind?: "other" | "task" | "answer" | "explore" | "change" | "verify";
528
- outputRef?: {
529
- length?: number;
530
- key?: string;
531
- };
530
+ } | undefined;
532
531
  } | {
533
- kind?: "diagnostic";
534
- code?: string;
535
- text?: string;
532
+ code: string;
533
+ kind: "diagnostic";
534
+ text: string;
536
535
  };
537
- occurredAt?: string;
536
+ occurredAt?: string | undefined;
538
537
  }[];
539
- sourceCursor?: string;
540
- expectedSourceCursor?: string;
541
- gaps?: ("interrupted" | "source_truncated" | "storage_unavailable" | "capture_limit" | "source_lost")[];
538
+ sourceCursor?: string | undefined;
539
+ expectedSourceCursor?: string | undefined;
540
+ complete?: boolean | undefined;
541
+ gaps?: ("interrupted" | "source_truncated" | "storage_unavailable" | "capture_limit" | "source_lost")[] | undefined;
542
542
  }>;
543
543
  export type ExecutionActivityBatch = z.infer<typeof executionActivityBatchSchema>;
544
544
  export type ExecutionActivityGap = NonNullable<ExecutionActivityBatch['gaps']>[number];