@xpert-ai/plugin-sdk 3.23.1 → 3.26.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.
- package/docs/README.md +8 -0
- package/docs/analytics.md +42 -0
- package/docs/artifact-presentations.md +43 -0
- package/docs/mcp-client.md +63 -0
- package/docs/provider-credential-validation.md +34 -0
- package/docs/rest-client.md +24 -0
- package/docs/workspace-file-tools.md +6 -0
- package/index.cjs.js +471 -89
- package/index.esm.js +448 -92
- package/model-provider.cjs.js +10 -0
- package/model-provider.esm.js +9 -1
- package/package.json +2 -2
- package/src/index.d.ts +2 -0
- package/src/lib/agent/handoff/agent-runtime-message.contract.d.ts +76 -76
- package/src/lib/agent/middleware/capabilities/assistant-task.d.ts +36 -1
- package/src/lib/agent/runtime/dispatch.d.ts +284 -284
- package/src/lib/agent/runtime/index.d.ts +1 -0
- package/src/lib/agent/runtime/pipeline-scope.d.ts +110 -0
- package/src/lib/agent/runtime/types.d.ts +4 -2
- package/src/lib/ai-model/ai-model-provider.interface.d.ts +3 -1
- package/src/lib/ai-model/utils/limits.d.ts +4 -2
- package/src/lib/artifact-presentation/index.d.ts +35 -0
- package/src/lib/data/analytics/analytics-payload.d.ts +3 -0
- package/src/lib/data/analytics/index.d.ts +1 -0
- package/src/lib/data/datasource/types.d.ts +1 -1
- package/src/lib/project-pipeline/adapters.d.ts +87 -0
- package/src/lib/project-pipeline/capability.d.ts +100 -0
- package/src/lib/project-pipeline/index.d.ts +5 -0
- package/src/lib/project-pipeline/projection.d.ts +71 -0
- package/src/lib/project-pipeline/registry.d.ts +509 -0
- package/src/lib/project-pipeline/runtime-registry.d.ts +45 -0
- package/src/lib/project-pipeline/scoped-registry.d.ts +10 -0
- package/src/lib/project-task/index.d.ts +6 -0
- package/src/lib/project-type/index.d.ts +17 -1
- package/src/lib/rag/types.d.ts +1 -1
- package/src/lib/runtime/capabilities/artifacts.d.ts +2 -0
- package/src/lib/runtime/capabilities/index.d.ts +2 -0
- package/src/lib/runtime/capabilities/mcp-client-runtime.d.ts +41 -0
- package/src/lib/runtime/capabilities/rest-client-runtime.d.ts +34 -0
- package/src/lib/sandbox/file-edits.d.ts +4 -0
- package/src/lib/sandbox/protocol.d.ts +7 -1
- package/src/lib/sandbox/sandbox.d.ts +2 -8
- package/src/lib/tool-provider/adapters.d.ts +1 -1
- package/src/lib/tool-provider/types.d.ts +2 -0
|
@@ -95,80 +95,80 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
95
95
|
stepIndex: z.ZodNumber;
|
|
96
96
|
description: z.ZodString;
|
|
97
97
|
}, "strict", z.ZodTypeAny, {
|
|
98
|
-
description
|
|
99
|
-
stepIndex
|
|
98
|
+
description: string;
|
|
99
|
+
stepIndex: number;
|
|
100
100
|
}, {
|
|
101
|
-
description
|
|
102
|
-
stepIndex
|
|
101
|
+
description: string;
|
|
102
|
+
stepIndex: number;
|
|
103
103
|
}>, "many">;
|
|
104
104
|
}, "strict", z.ZodTypeAny, {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
stepIndex?: number;
|
|
105
|
+
version: 1;
|
|
106
|
+
title: string;
|
|
107
|
+
steps: {
|
|
108
|
+
description: string;
|
|
109
|
+
stepIndex: number;
|
|
111
110
|
}[];
|
|
112
|
-
requirements
|
|
111
|
+
requirements: string[];
|
|
112
|
+
description?: string | undefined;
|
|
113
113
|
}, {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
stepIndex?: number;
|
|
114
|
+
version: 1;
|
|
115
|
+
title: string;
|
|
116
|
+
steps: {
|
|
117
|
+
description: string;
|
|
118
|
+
stepIndex: number;
|
|
120
119
|
}[];
|
|
121
|
-
requirements
|
|
120
|
+
requirements: string[];
|
|
121
|
+
description?: string | undefined;
|
|
122
122
|
}>, {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
stepIndex?: number;
|
|
123
|
+
version: 1;
|
|
124
|
+
title: string;
|
|
125
|
+
steps: {
|
|
126
|
+
description: string;
|
|
127
|
+
stepIndex: number;
|
|
129
128
|
}[];
|
|
130
|
-
requirements
|
|
129
|
+
requirements: string[];
|
|
130
|
+
description?: string | undefined;
|
|
131
131
|
}, {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
stepIndex?: number;
|
|
132
|
+
version: 1;
|
|
133
|
+
title: string;
|
|
134
|
+
steps: {
|
|
135
|
+
description: string;
|
|
136
|
+
stepIndex: number;
|
|
138
137
|
}[];
|
|
139
|
-
requirements
|
|
138
|
+
requirements: string[];
|
|
139
|
+
description?: string | undefined;
|
|
140
140
|
}>;
|
|
141
141
|
}, "strict", z.ZodTypeAny, {
|
|
142
|
-
digest
|
|
143
|
-
specification
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
stepIndex?: number;
|
|
142
|
+
digest: string;
|
|
143
|
+
specification: {
|
|
144
|
+
version: 1;
|
|
145
|
+
title: string;
|
|
146
|
+
steps: {
|
|
147
|
+
description: string;
|
|
148
|
+
stepIndex: number;
|
|
150
149
|
}[];
|
|
151
|
-
requirements
|
|
150
|
+
requirements: string[];
|
|
151
|
+
description?: string | undefined;
|
|
152
152
|
};
|
|
153
153
|
}, {
|
|
154
|
-
digest
|
|
155
|
-
specification
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
stepIndex?: number;
|
|
154
|
+
digest: string;
|
|
155
|
+
specification: {
|
|
156
|
+
version: 1;
|
|
157
|
+
title: string;
|
|
158
|
+
steps: {
|
|
159
|
+
description: string;
|
|
160
|
+
stepIndex: number;
|
|
162
161
|
}[];
|
|
163
|
-
requirements
|
|
162
|
+
requirements: string[];
|
|
163
|
+
description?: string | undefined;
|
|
164
164
|
};
|
|
165
165
|
}>;
|
|
166
166
|
purpose: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
167
167
|
type: z.ZodLiteral<"implementation">;
|
|
168
168
|
}, "strict", z.ZodTypeAny, {
|
|
169
|
-
type
|
|
169
|
+
type: "implementation";
|
|
170
170
|
}, {
|
|
171
|
-
type
|
|
171
|
+
type: "implementation";
|
|
172
172
|
}>, z.ZodObject<{
|
|
173
173
|
type: z.ZodLiteral<"review">;
|
|
174
174
|
implementationExecutionId: z.ZodString;
|
|
@@ -179,227 +179,227 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
179
179
|
artifactId: z.ZodString;
|
|
180
180
|
versionId: z.ZodString;
|
|
181
181
|
}, "strict", z.ZodTypeAny, {
|
|
182
|
-
type
|
|
183
|
-
|
|
184
|
-
|
|
182
|
+
type: "artifact";
|
|
183
|
+
artifactId: string;
|
|
184
|
+
versionId: string;
|
|
185
185
|
}, {
|
|
186
|
-
type
|
|
187
|
-
|
|
188
|
-
|
|
186
|
+
type: "artifact";
|
|
187
|
+
artifactId: string;
|
|
188
|
+
versionId: string;
|
|
189
189
|
}>, z.ZodObject<{
|
|
190
190
|
type: z.ZodLiteral<"invocation_result">;
|
|
191
191
|
invocationId: z.ZodString;
|
|
192
192
|
revision: z.ZodNumber;
|
|
193
193
|
}, "strict", z.ZodTypeAny, {
|
|
194
|
-
type
|
|
195
|
-
revision
|
|
196
|
-
invocationId
|
|
194
|
+
type: "invocation_result";
|
|
195
|
+
revision: number;
|
|
196
|
+
invocationId: string;
|
|
197
197
|
}, {
|
|
198
|
-
type
|
|
199
|
-
revision
|
|
200
|
-
invocationId
|
|
198
|
+
type: "invocation_result";
|
|
199
|
+
revision: number;
|
|
200
|
+
invocationId: string;
|
|
201
201
|
}>, z.ZodObject<{
|
|
202
202
|
type: z.ZodLiteral<"workspace_snapshot">;
|
|
203
203
|
snapshotId: z.ZodString;
|
|
204
204
|
digest: z.ZodString;
|
|
205
205
|
}, "strict", z.ZodTypeAny, {
|
|
206
|
-
type
|
|
207
|
-
digest
|
|
208
|
-
snapshotId
|
|
206
|
+
type: "workspace_snapshot";
|
|
207
|
+
digest: string;
|
|
208
|
+
snapshotId: string;
|
|
209
209
|
}, {
|
|
210
|
-
type
|
|
211
|
-
digest
|
|
212
|
-
snapshotId
|
|
210
|
+
type: "workspace_snapshot";
|
|
211
|
+
digest: string;
|
|
212
|
+
snapshotId: string;
|
|
213
213
|
}>]>, "many">;
|
|
214
214
|
}, "strict", z.ZodTypeAny, {
|
|
215
|
-
type
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
type?: "artifact";
|
|
221
|
-
versionId?: string;
|
|
222
|
-
artifactId?: string;
|
|
215
|
+
type: "review";
|
|
216
|
+
evidence: ({
|
|
217
|
+
type: "artifact";
|
|
218
|
+
artifactId: string;
|
|
219
|
+
versionId: string;
|
|
223
220
|
} | {
|
|
224
|
-
type
|
|
225
|
-
revision
|
|
226
|
-
invocationId
|
|
221
|
+
type: "invocation_result";
|
|
222
|
+
revision: number;
|
|
223
|
+
invocationId: string;
|
|
227
224
|
} | {
|
|
228
|
-
type
|
|
229
|
-
digest
|
|
230
|
-
snapshotId
|
|
225
|
+
type: "workspace_snapshot";
|
|
226
|
+
digest: string;
|
|
227
|
+
snapshotId: string;
|
|
231
228
|
})[];
|
|
229
|
+
implementationExecutionId: string;
|
|
230
|
+
implementationInvocationId: string;
|
|
231
|
+
specificationDigest: string;
|
|
232
232
|
}, {
|
|
233
|
-
type
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
type?: "artifact";
|
|
239
|
-
versionId?: string;
|
|
240
|
-
artifactId?: string;
|
|
233
|
+
type: "review";
|
|
234
|
+
evidence: ({
|
|
235
|
+
type: "artifact";
|
|
236
|
+
artifactId: string;
|
|
237
|
+
versionId: string;
|
|
241
238
|
} | {
|
|
242
|
-
type
|
|
243
|
-
revision
|
|
244
|
-
invocationId
|
|
239
|
+
type: "invocation_result";
|
|
240
|
+
revision: number;
|
|
241
|
+
invocationId: string;
|
|
245
242
|
} | {
|
|
246
|
-
type
|
|
247
|
-
digest
|
|
248
|
-
snapshotId
|
|
243
|
+
type: "workspace_snapshot";
|
|
244
|
+
digest: string;
|
|
245
|
+
snapshotId: string;
|
|
249
246
|
})[];
|
|
247
|
+
implementationExecutionId: string;
|
|
248
|
+
implementationInvocationId: string;
|
|
249
|
+
specificationDigest: string;
|
|
250
250
|
}>]>;
|
|
251
251
|
}, "strict", z.ZodTypeAny, {
|
|
252
|
-
projectId
|
|
253
|
-
|
|
254
|
-
|
|
252
|
+
projectId: string;
|
|
253
|
+
specification: {
|
|
254
|
+
digest: string;
|
|
255
|
+
specification: {
|
|
256
|
+
version: 1;
|
|
257
|
+
title: string;
|
|
258
|
+
steps: {
|
|
259
|
+
description: string;
|
|
260
|
+
stepIndex: number;
|
|
261
|
+
}[];
|
|
262
|
+
requirements: string[];
|
|
263
|
+
description?: string | undefined;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
projectTaskId: string;
|
|
267
|
+
taskExecutionId: string;
|
|
268
|
+
purpose: {
|
|
269
|
+
type: "implementation";
|
|
255
270
|
} | {
|
|
256
|
-
type
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
type?: "artifact";
|
|
262
|
-
versionId?: string;
|
|
263
|
-
artifactId?: string;
|
|
271
|
+
type: "review";
|
|
272
|
+
evidence: ({
|
|
273
|
+
type: "artifact";
|
|
274
|
+
artifactId: string;
|
|
275
|
+
versionId: string;
|
|
264
276
|
} | {
|
|
265
|
-
type
|
|
266
|
-
revision
|
|
267
|
-
invocationId
|
|
277
|
+
type: "invocation_result";
|
|
278
|
+
revision: number;
|
|
279
|
+
invocationId: string;
|
|
268
280
|
} | {
|
|
269
|
-
type
|
|
270
|
-
digest
|
|
271
|
-
snapshotId
|
|
281
|
+
type: "workspace_snapshot";
|
|
282
|
+
digest: string;
|
|
283
|
+
snapshotId: string;
|
|
272
284
|
})[];
|
|
285
|
+
implementationExecutionId: string;
|
|
286
|
+
implementationInvocationId: string;
|
|
287
|
+
specificationDigest: string;
|
|
273
288
|
};
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
289
|
+
}, {
|
|
290
|
+
projectId: string;
|
|
291
|
+
specification: {
|
|
292
|
+
digest: string;
|
|
293
|
+
specification: {
|
|
294
|
+
version: 1;
|
|
295
|
+
title: string;
|
|
296
|
+
steps: {
|
|
297
|
+
description: string;
|
|
298
|
+
stepIndex: number;
|
|
283
299
|
}[];
|
|
284
|
-
requirements
|
|
300
|
+
requirements: string[];
|
|
301
|
+
description?: string | undefined;
|
|
285
302
|
};
|
|
286
303
|
};
|
|
287
|
-
projectTaskId
|
|
288
|
-
taskExecutionId
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
purpose?: {
|
|
292
|
-
type?: "implementation";
|
|
304
|
+
projectTaskId: string;
|
|
305
|
+
taskExecutionId: string;
|
|
306
|
+
purpose: {
|
|
307
|
+
type: "implementation";
|
|
293
308
|
} | {
|
|
294
|
-
type
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
type?: "artifact";
|
|
300
|
-
versionId?: string;
|
|
301
|
-
artifactId?: string;
|
|
309
|
+
type: "review";
|
|
310
|
+
evidence: ({
|
|
311
|
+
type: "artifact";
|
|
312
|
+
artifactId: string;
|
|
313
|
+
versionId: string;
|
|
302
314
|
} | {
|
|
303
|
-
type
|
|
304
|
-
revision
|
|
305
|
-
invocationId
|
|
315
|
+
type: "invocation_result";
|
|
316
|
+
revision: number;
|
|
317
|
+
invocationId: string;
|
|
306
318
|
} | {
|
|
307
|
-
type
|
|
308
|
-
digest
|
|
309
|
-
snapshotId
|
|
319
|
+
type: "workspace_snapshot";
|
|
320
|
+
digest: string;
|
|
321
|
+
snapshotId: string;
|
|
310
322
|
})[];
|
|
323
|
+
implementationExecutionId: string;
|
|
324
|
+
implementationInvocationId: string;
|
|
325
|
+
specificationDigest: string;
|
|
311
326
|
};
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
327
|
+
}>, {
|
|
328
|
+
projectId: string;
|
|
329
|
+
specification: {
|
|
330
|
+
digest: string;
|
|
331
|
+
specification: {
|
|
332
|
+
version: 1;
|
|
333
|
+
title: string;
|
|
334
|
+
steps: {
|
|
335
|
+
description: string;
|
|
336
|
+
stepIndex: number;
|
|
321
337
|
}[];
|
|
322
|
-
requirements
|
|
338
|
+
requirements: string[];
|
|
339
|
+
description?: string | undefined;
|
|
323
340
|
};
|
|
324
341
|
};
|
|
325
|
-
projectTaskId
|
|
326
|
-
taskExecutionId
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
purpose?: {
|
|
330
|
-
type?: "implementation";
|
|
342
|
+
projectTaskId: string;
|
|
343
|
+
taskExecutionId: string;
|
|
344
|
+
purpose: {
|
|
345
|
+
type: "implementation";
|
|
331
346
|
} | {
|
|
332
|
-
type
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
type?: "artifact";
|
|
338
|
-
versionId?: string;
|
|
339
|
-
artifactId?: string;
|
|
347
|
+
type: "review";
|
|
348
|
+
evidence: ({
|
|
349
|
+
type: "artifact";
|
|
350
|
+
artifactId: string;
|
|
351
|
+
versionId: string;
|
|
340
352
|
} | {
|
|
341
|
-
type
|
|
342
|
-
revision
|
|
343
|
-
invocationId
|
|
353
|
+
type: "invocation_result";
|
|
354
|
+
revision: number;
|
|
355
|
+
invocationId: string;
|
|
344
356
|
} | {
|
|
345
|
-
type
|
|
346
|
-
digest
|
|
347
|
-
snapshotId
|
|
357
|
+
type: "workspace_snapshot";
|
|
358
|
+
digest: string;
|
|
359
|
+
snapshotId: string;
|
|
348
360
|
})[];
|
|
361
|
+
implementationExecutionId: string;
|
|
362
|
+
implementationInvocationId: string;
|
|
363
|
+
specificationDigest: string;
|
|
349
364
|
};
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
365
|
+
}, {
|
|
366
|
+
projectId: string;
|
|
367
|
+
specification: {
|
|
368
|
+
digest: string;
|
|
369
|
+
specification: {
|
|
370
|
+
version: 1;
|
|
371
|
+
title: string;
|
|
372
|
+
steps: {
|
|
373
|
+
description: string;
|
|
374
|
+
stepIndex: number;
|
|
359
375
|
}[];
|
|
360
|
-
requirements
|
|
376
|
+
requirements: string[];
|
|
377
|
+
description?: string | undefined;
|
|
361
378
|
};
|
|
362
379
|
};
|
|
363
|
-
projectTaskId
|
|
364
|
-
taskExecutionId
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
purpose?: {
|
|
368
|
-
type?: "implementation";
|
|
380
|
+
projectTaskId: string;
|
|
381
|
+
taskExecutionId: string;
|
|
382
|
+
purpose: {
|
|
383
|
+
type: "implementation";
|
|
369
384
|
} | {
|
|
370
|
-
type
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
type?: "artifact";
|
|
376
|
-
versionId?: string;
|
|
377
|
-
artifactId?: string;
|
|
385
|
+
type: "review";
|
|
386
|
+
evidence: ({
|
|
387
|
+
type: "artifact";
|
|
388
|
+
artifactId: string;
|
|
389
|
+
versionId: string;
|
|
378
390
|
} | {
|
|
379
|
-
type
|
|
380
|
-
revision
|
|
381
|
-
invocationId
|
|
391
|
+
type: "invocation_result";
|
|
392
|
+
revision: number;
|
|
393
|
+
invocationId: string;
|
|
382
394
|
} | {
|
|
383
|
-
type
|
|
384
|
-
digest
|
|
385
|
-
snapshotId
|
|
395
|
+
type: "workspace_snapshot";
|
|
396
|
+
digest: string;
|
|
397
|
+
snapshotId: string;
|
|
386
398
|
})[];
|
|
399
|
+
implementationExecutionId: string;
|
|
400
|
+
implementationInvocationId: string;
|
|
401
|
+
specificationDigest: string;
|
|
387
402
|
};
|
|
388
|
-
specification?: {
|
|
389
|
-
digest?: string;
|
|
390
|
-
specification?: {
|
|
391
|
-
description?: string;
|
|
392
|
-
version?: 1;
|
|
393
|
-
title?: string;
|
|
394
|
-
steps?: {
|
|
395
|
-
description?: string;
|
|
396
|
-
stepIndex?: number;
|
|
397
|
-
}[];
|
|
398
|
-
requirements?: string[];
|
|
399
|
-
};
|
|
400
|
-
};
|
|
401
|
-
projectTaskId?: string;
|
|
402
|
-
taskExecutionId?: string;
|
|
403
403
|
}>>;
|
|
404
404
|
}, "strict", z.ZodTypeAny, {
|
|
405
405
|
version?: 1;
|
|
@@ -419,43 +419,43 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
419
419
|
agentKey?: "general_agent";
|
|
420
420
|
};
|
|
421
421
|
projectTask?: {
|
|
422
|
-
projectId
|
|
423
|
-
|
|
424
|
-
|
|
422
|
+
projectId: string;
|
|
423
|
+
specification: {
|
|
424
|
+
digest: string;
|
|
425
|
+
specification: {
|
|
426
|
+
version: 1;
|
|
427
|
+
title: string;
|
|
428
|
+
steps: {
|
|
429
|
+
description: string;
|
|
430
|
+
stepIndex: number;
|
|
431
|
+
}[];
|
|
432
|
+
requirements: string[];
|
|
433
|
+
description?: string | undefined;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
projectTaskId: string;
|
|
437
|
+
taskExecutionId: string;
|
|
438
|
+
purpose: {
|
|
439
|
+
type: "implementation";
|
|
425
440
|
} | {
|
|
426
|
-
type
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
type?: "artifact";
|
|
432
|
-
versionId?: string;
|
|
433
|
-
artifactId?: string;
|
|
441
|
+
type: "review";
|
|
442
|
+
evidence: ({
|
|
443
|
+
type: "artifact";
|
|
444
|
+
artifactId: string;
|
|
445
|
+
versionId: string;
|
|
434
446
|
} | {
|
|
435
|
-
type
|
|
436
|
-
revision
|
|
437
|
-
invocationId
|
|
447
|
+
type: "invocation_result";
|
|
448
|
+
revision: number;
|
|
449
|
+
invocationId: string;
|
|
438
450
|
} | {
|
|
439
|
-
type
|
|
440
|
-
digest
|
|
441
|
-
snapshotId
|
|
451
|
+
type: "workspace_snapshot";
|
|
452
|
+
digest: string;
|
|
453
|
+
snapshotId: string;
|
|
442
454
|
})[];
|
|
455
|
+
implementationExecutionId: string;
|
|
456
|
+
implementationInvocationId: string;
|
|
457
|
+
specificationDigest: string;
|
|
443
458
|
};
|
|
444
|
-
specification?: {
|
|
445
|
-
digest?: string;
|
|
446
|
-
specification?: {
|
|
447
|
-
description?: string;
|
|
448
|
-
version?: 1;
|
|
449
|
-
title?: string;
|
|
450
|
-
steps?: {
|
|
451
|
-
description?: string;
|
|
452
|
-
stepIndex?: number;
|
|
453
|
-
}[];
|
|
454
|
-
requirements?: string[];
|
|
455
|
-
};
|
|
456
|
-
};
|
|
457
|
-
projectTaskId?: string;
|
|
458
|
-
taskExecutionId?: string;
|
|
459
459
|
};
|
|
460
460
|
}, {
|
|
461
461
|
version?: 1;
|
|
@@ -475,43 +475,43 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
|
|
|
475
475
|
agentKey?: "general_agent";
|
|
476
476
|
};
|
|
477
477
|
projectTask?: {
|
|
478
|
-
projectId
|
|
479
|
-
|
|
480
|
-
|
|
478
|
+
projectId: string;
|
|
479
|
+
specification: {
|
|
480
|
+
digest: string;
|
|
481
|
+
specification: {
|
|
482
|
+
version: 1;
|
|
483
|
+
title: string;
|
|
484
|
+
steps: {
|
|
485
|
+
description: string;
|
|
486
|
+
stepIndex: number;
|
|
487
|
+
}[];
|
|
488
|
+
requirements: string[];
|
|
489
|
+
description?: string | undefined;
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
projectTaskId: string;
|
|
493
|
+
taskExecutionId: string;
|
|
494
|
+
purpose: {
|
|
495
|
+
type: "implementation";
|
|
481
496
|
} | {
|
|
482
|
-
type
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
type?: "artifact";
|
|
488
|
-
versionId?: string;
|
|
489
|
-
artifactId?: string;
|
|
497
|
+
type: "review";
|
|
498
|
+
evidence: ({
|
|
499
|
+
type: "artifact";
|
|
500
|
+
artifactId: string;
|
|
501
|
+
versionId: string;
|
|
490
502
|
} | {
|
|
491
|
-
type
|
|
492
|
-
revision
|
|
493
|
-
invocationId
|
|
503
|
+
type: "invocation_result";
|
|
504
|
+
revision: number;
|
|
505
|
+
invocationId: string;
|
|
494
506
|
} | {
|
|
495
|
-
type
|
|
496
|
-
digest
|
|
497
|
-
snapshotId
|
|
507
|
+
type: "workspace_snapshot";
|
|
508
|
+
digest: string;
|
|
509
|
+
snapshotId: string;
|
|
498
510
|
})[];
|
|
511
|
+
implementationExecutionId: string;
|
|
512
|
+
implementationInvocationId: string;
|
|
513
|
+
specificationDigest: string;
|
|
499
514
|
};
|
|
500
|
-
specification?: {
|
|
501
|
-
digest?: string;
|
|
502
|
-
specification?: {
|
|
503
|
-
description?: string;
|
|
504
|
-
version?: 1;
|
|
505
|
-
title?: string;
|
|
506
|
-
steps?: {
|
|
507
|
-
description?: string;
|
|
508
|
-
stepIndex?: number;
|
|
509
|
-
}[];
|
|
510
|
-
requirements?: string[];
|
|
511
|
-
};
|
|
512
|
-
};
|
|
513
|
-
projectTaskId?: string;
|
|
514
|
-
taskExecutionId?: string;
|
|
515
515
|
};
|
|
516
516
|
}>;
|
|
517
517
|
export type AgentInvocationDispatchContext = z.output<typeof agentInvocationDispatchContextSchema>;
|