@xpert-ai/contracts 3.38.0 → 3.39.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 (39) hide show
  1. package/index.cjs.js +191 -35
  2. package/index.esm.js +168 -37
  3. package/package.json +2 -2
  4. package/src/ai/assistant-capability.model.d.ts +21 -0
  5. package/src/ai/chat-event.model.d.ts +2 -1
  6. package/src/ai/chat-message-envelope.model.d.ts +2 -1
  7. package/src/ai/chat-message.model.d.ts +1 -1
  8. package/src/ai/chat.model.d.ts +14 -3
  9. package/src/ai/conversation-trail.model.d.ts +12 -12
  10. package/src/ai/execution-activity.model.d.ts +10 -10
  11. package/src/ai/index.d.ts +2 -1
  12. package/src/ai/project-pipeline/analytics.d.ts +4 -4
  13. package/src/ai/project-pipeline/commands.schema.d.ts +17 -11
  14. package/src/ai/project-pipeline/configuration-declaration.schema.d.ts +6 -6
  15. package/src/ai/project-pipeline/configuration-form.d.ts +47 -47
  16. package/src/ai/project-pipeline/configuration.schema.d.ts +8 -8
  17. package/src/ai/project-pipeline/contribution.schema.d.ts +18 -18
  18. package/src/ai/project-pipeline/index.d.ts +1 -0
  19. package/src/ai/project-pipeline/model-usage-statistics.d.ts +2 -2
  20. package/src/ai/project-pipeline/operation-actions.schema.d.ts +112 -0
  21. package/src/ai/project-pipeline/operation.schema.d.ts +3 -0
  22. package/src/ai/project-pipeline/portfolio.schema.d.ts +8 -8
  23. package/src/ai/project-pipeline/provider-actions.schema.d.ts +74 -74
  24. package/src/ai/project-pipeline/runtime.schema.d.ts +28 -28
  25. package/src/ai/project-task-graph.model.d.ts +2 -0
  26. package/src/ai/project-task-runtime.model.d.ts +39 -35
  27. package/src/ai/template-lifecycle.model.d.ts +2 -2
  28. package/src/ai/xpert-agent-execution.model.d.ts +3 -0
  29. package/src/ai/xpert-tool.model.d.ts +3 -3
  30. package/src/ai/xpert-toolset.model.d.ts +2 -0
  31. package/src/always-on/agent-output.model.d.ts +8 -7
  32. package/src/always-on/output-workbench.schema.d.ts +13 -10
  33. package/src/artifacts/artifact-presentation.model.d.ts +5 -1
  34. package/src/plugin-application.d.ts +83 -0
  35. package/src/user-notification.schema.d.ts +689 -97
  36. package/src/view-extension/index.d.ts +2 -0
  37. package/src/view-extension/project-workbench.d.ts +5 -0
  38. package/src/view-extension/workbench-entry.schema.d.ts +218 -0
  39. package/src/view-extension/workbench.d.ts +2 -0
@@ -1,7 +1,7 @@
1
1
  import type { TChatConversationStatus } from './chat-activity.model';
2
2
  export type { TChatConversationStatus, IChatConversationUnreadXpertSummary, IChatConversationUnreadSnapshot } from './chat-activity.model';
3
3
  import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
4
- import { IXpertAgentExecution } from './xpert-agent-execution.model';
4
+ import { type TChatAgentRunSummary, IXpertAgentExecution } from './xpert-agent-execution.model';
5
5
  import { IXpert } from './xpert.model';
6
6
  import { I18nObject } from '../types';
7
7
  import { CopilotChatMessage, CopilotMessageGroup, IChatMessage } from './chat-message.model';
@@ -12,7 +12,7 @@ import { IXpertTask } from './xpert-task.model';
12
12
  import { TToolCall } from '../agent';
13
13
  import { TInterrupt } from '../agent/interrupt';
14
14
  import { IUser } from '../user.model';
15
- import type { RuntimeCapabilitiesSelection } from '@xpert-ai/chatkit-types';
15
+ import type { RuntimeCapabilitiesSelection, TChatActivityPresentation } from '@xpert-ai/chatkit-types';
16
16
  export type TChatConversationOptions = {
17
17
  /** First Project binding is deferred until a human submits the application's setup App. */
18
18
  projectCreation?: {
@@ -52,6 +52,15 @@ export type TChatCheckpointReference = {
52
52
  checkpointNs: string;
53
53
  checkpointId: string;
54
54
  };
55
+ /** Version 1 contains only the executions visible in the transcript. */
56
+ export type TChatAgentRunSnapshot = {
57
+ version: 1;
58
+ runs: TChatAgentRunSummary[];
59
+ };
60
+ /** Unversioned branch snapshots may contain unclassified or explicitly marked executions. */
61
+ export type TStoredChatAgentRuns = TChatAgentRunSnapshot | (TChatAgentRunSummary & {
62
+ presentation?: TChatActivityPresentation;
63
+ })[];
55
64
  export type TChatInputCheckpoint = {
56
65
  version: 1;
57
66
  checkpoint: TChatCheckpointReference | null;
@@ -77,7 +86,7 @@ export type TChatOutputCheckpoint = {
77
86
  messagePathHash?: string;
78
87
  /** Access must be checked again before linking these assets to a new conversation. */
79
88
  fileAssetIds?: string[];
80
- agentRuns?: import('./xpert-agent-execution.model').TChatAgentRunSummary[];
89
+ agentRuns?: TStoredChatAgentRuns;
81
90
  };
82
91
  /** Copy the source thread's ancestor path through afterMessageId, inclusive. */
83
92
  export type TConversationBranchRequest = {
@@ -148,6 +157,8 @@ export type TChatThreadMetadata = {
148
157
  editAdmission?: import('./chat-recovery.model').TMessageEditAdmission;
149
158
  /** User-editable branch label, independent of the conversation title. */
150
159
  title?: string;
160
+ /** Server-owned provenance; manual names always win over in-flight generation. */
161
+ titleSource?: 'default' | 'generated' | 'manual';
151
162
  primary?: boolean;
152
163
  purpose?: TChatThreadPurpose;
153
164
  /** Graph revision captured for a fork; cleared after the first successful run. */
@@ -25,8 +25,8 @@ export declare const trailStepSchema: z.ZodObject<{
25
25
  }, "strip", z.ZodTypeAny, {
26
26
  kind: "message" | "turn" | "tool";
27
27
  status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
28
- title: string;
29
28
  id: string;
29
+ title: string;
30
30
  laneId: string;
31
31
  activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
32
32
  order: number;
@@ -43,8 +43,8 @@ export declare const trailStepSchema: z.ZodObject<{
43
43
  }, {
44
44
  kind: "message" | "turn" | "tool";
45
45
  status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
46
- title: string;
47
46
  id: string;
47
+ title: string;
48
48
  laneId: string;
49
49
  activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
50
50
  order: number;
@@ -87,8 +87,8 @@ export declare const trailLaneSchema: z.ZodObject<{
87
87
  status: z.ZodEnum<["running", "success", "error", "pending", "waiting", "cancelling", "idle", "interrupted", "unknown"]>;
88
88
  }, "strip", z.ZodTypeAny, {
89
89
  status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
90
- title: string;
91
90
  id: string;
91
+ title: string;
92
92
  parentId: string | null;
93
93
  primary: boolean;
94
94
  executionId?: string | undefined;
@@ -105,8 +105,8 @@ export declare const trailLaneSchema: z.ZodObject<{
105
105
  } | undefined;
106
106
  }, {
107
107
  status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
108
- title: string;
109
108
  id: string;
109
+ title: string;
110
110
  parentId: string | null;
111
111
  primary: boolean;
112
112
  executionId?: string | undefined;
@@ -173,8 +173,8 @@ export declare const trailGraphSchema: z.ZodObject<{
173
173
  status: z.ZodEnum<["running", "success", "error", "pending", "waiting", "cancelling", "idle", "interrupted", "unknown"]>;
174
174
  }, "strip", z.ZodTypeAny, {
175
175
  status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
176
- title: string;
177
176
  id: string;
177
+ title: string;
178
178
  parentId: string | null;
179
179
  primary: boolean;
180
180
  executionId?: string | undefined;
@@ -191,8 +191,8 @@ export declare const trailGraphSchema: z.ZodObject<{
191
191
  } | undefined;
192
192
  }, {
193
193
  status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
194
- title: string;
195
194
  id: string;
195
+ title: string;
196
196
  parentId: string | null;
197
197
  primary: boolean;
198
198
  executionId?: string | undefined;
@@ -229,8 +229,8 @@ export declare const trailGraphSchema: z.ZodObject<{
229
229
  }, "strip", z.ZodTypeAny, {
230
230
  kind: "message" | "turn" | "tool";
231
231
  status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
232
- title: string;
233
232
  id: string;
233
+ title: string;
234
234
  laneId: string;
235
235
  activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
236
236
  order: number;
@@ -247,8 +247,8 @@ export declare const trailGraphSchema: z.ZodObject<{
247
247
  }, {
248
248
  kind: "message" | "turn" | "tool";
249
249
  status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
250
- title: string;
251
250
  id: string;
251
+ title: string;
252
252
  laneId: string;
253
253
  activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
254
254
  order: number;
@@ -302,8 +302,8 @@ export declare const trailGraphSchema: z.ZodObject<{
302
302
  layer: "conversation" | "execution";
303
303
  lanes: {
304
304
  status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
305
- title: string;
306
305
  id: string;
306
+ title: string;
307
307
  parentId: string | null;
308
308
  primary: boolean;
309
309
  executionId?: string | undefined;
@@ -322,8 +322,8 @@ export declare const trailGraphSchema: z.ZodObject<{
322
322
  steps: {
323
323
  kind: "message" | "turn" | "tool";
324
324
  status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
325
- title: string;
326
325
  id: string;
326
+ title: string;
327
327
  laneId: string;
328
328
  activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
329
329
  order: number;
@@ -360,8 +360,8 @@ export declare const trailGraphSchema: z.ZodObject<{
360
360
  layer: "conversation" | "execution";
361
361
  lanes: {
362
362
  status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
363
- title: string;
364
363
  id: string;
364
+ title: string;
365
365
  parentId: string | null;
366
366
  primary: boolean;
367
367
  executionId?: string | undefined;
@@ -380,8 +380,8 @@ export declare const trailGraphSchema: z.ZodObject<{
380
380
  steps: {
381
381
  kind: "message" | "turn" | "tool";
382
382
  status: "unknown" | "pending" | "running" | "success" | "error" | "waiting" | "cancelling" | "idle" | "interrupted";
383
- title: string;
384
383
  id: string;
384
+ title: string;
385
385
  laneId: string;
386
386
  activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
387
387
  order: number;
@@ -92,10 +92,10 @@ export declare const executionActivityItemSchema: z.ZodObject<{
92
92
  }, "strict", z.ZodTypeAny, {
93
93
  kind: "tool";
94
94
  status: "unknown" | "failed" | "running" | "succeeded";
95
+ name?: string | undefined;
95
96
  input?: string | undefined;
96
97
  output?: string | undefined;
97
98
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
98
- name?: string | undefined;
99
99
  truncated?: boolean | undefined;
100
100
  outputRef?: {
101
101
  key: string;
@@ -118,10 +118,10 @@ export declare const executionActivityItemSchema: z.ZodObject<{
118
118
  }, {
119
119
  kind: "tool";
120
120
  status: "unknown" | "failed" | "running" | "succeeded";
121
+ name?: string | undefined;
121
122
  input?: string | undefined;
122
123
  output?: string | undefined;
123
124
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
124
- name?: string | undefined;
125
125
  truncated?: boolean | undefined;
126
126
  outputRef?: {
127
127
  key: string;
@@ -162,10 +162,10 @@ export declare const executionActivityItemSchema: z.ZodObject<{
162
162
  } | {
163
163
  kind: "tool";
164
164
  status: "unknown" | "failed" | "running" | "succeeded";
165
+ name?: string | undefined;
165
166
  input?: string | undefined;
166
167
  output?: string | undefined;
167
168
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
168
- name?: string | undefined;
169
169
  truncated?: boolean | undefined;
170
170
  outputRef?: {
171
171
  key: string;
@@ -199,10 +199,10 @@ export declare const executionActivityItemSchema: z.ZodObject<{
199
199
  } | {
200
200
  kind: "tool";
201
201
  status: "unknown" | "failed" | "running" | "succeeded";
202
+ name?: string | undefined;
202
203
  input?: string | undefined;
203
204
  output?: string | undefined;
204
205
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
205
- name?: string | undefined;
206
206
  truncated?: boolean | undefined;
207
207
  outputRef?: {
208
208
  key: string;
@@ -312,10 +312,10 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
312
312
  }, "strict", z.ZodTypeAny, {
313
313
  kind: "tool";
314
314
  status: "unknown" | "failed" | "running" | "succeeded";
315
+ name?: string | undefined;
315
316
  input?: string | undefined;
316
317
  output?: string | undefined;
317
318
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
318
- name?: string | undefined;
319
319
  truncated?: boolean | undefined;
320
320
  outputRef?: {
321
321
  key: string;
@@ -338,10 +338,10 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
338
338
  }, {
339
339
  kind: "tool";
340
340
  status: "unknown" | "failed" | "running" | "succeeded";
341
+ name?: string | undefined;
341
342
  input?: string | undefined;
342
343
  output?: string | undefined;
343
344
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
344
- name?: string | undefined;
345
345
  truncated?: boolean | undefined;
346
346
  outputRef?: {
347
347
  key: string;
@@ -382,10 +382,10 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
382
382
  } | {
383
383
  kind: "tool";
384
384
  status: "unknown" | "failed" | "running" | "succeeded";
385
+ name?: string | undefined;
385
386
  input?: string | undefined;
386
387
  output?: string | undefined;
387
388
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
388
- name?: string | undefined;
389
389
  truncated?: boolean | undefined;
390
390
  outputRef?: {
391
391
  key: string;
@@ -419,10 +419,10 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
419
419
  } | {
420
420
  kind: "tool";
421
421
  status: "unknown" | "failed" | "running" | "succeeded";
422
+ name?: string | undefined;
422
423
  input?: string | undefined;
423
424
  output?: string | undefined;
424
425
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
425
- name?: string | undefined;
426
426
  truncated?: boolean | undefined;
427
427
  outputRef?: {
428
428
  key: string;
@@ -462,10 +462,10 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
462
462
  } | {
463
463
  kind: "tool";
464
464
  status: "unknown" | "failed" | "running" | "succeeded";
465
+ name?: string | undefined;
465
466
  input?: string | undefined;
466
467
  output?: string | undefined;
467
468
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
468
- name?: string | undefined;
469
469
  truncated?: boolean | undefined;
470
470
  outputRef?: {
471
471
  key: string;
@@ -505,10 +505,10 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
505
505
  } | {
506
506
  kind: "tool";
507
507
  status: "unknown" | "failed" | "running" | "succeeded";
508
+ name?: string | undefined;
508
509
  input?: string | undefined;
509
510
  output?: string | undefined;
510
511
  activityKind?: "task" | "explore" | "change" | "verify" | "answer" | "other" | undefined;
511
- name?: string | undefined;
512
512
  truncated?: boolean | undefined;
513
513
  outputRef?: {
514
514
  key: string;
package/src/ai/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export declare const STATE_VARIABLE_HUMAN = "human";
3
3
  export * from './prompt-workflow-capabilities.model';
4
4
  export { ChatMessageEventTypeEnum, ChatMessageStepCategory, ChatMessageTypeEnum } from './ai.model';
5
5
  export type * from '@xpert-ai/chatkit-types';
6
+ export { hasRuntimePresentation, isRuntimeAgentExecution } from '@xpert-ai/chatkit-types';
6
7
  export type { IconDefinition, IconType } from '../types';
7
8
  export type { TChatRequest } from './xpert-chat.model';
8
9
  export type { ProjectSelection } from './project-selection.model';
@@ -128,7 +129,7 @@ export * from './template-installation.model';
128
129
  export * from './template-manifest.model';
129
130
  export * from './assistant-template.model';
130
131
  export * from './assistant-template-dependencies.model';
131
- export type { AssistantCapabilitySummary } from './assistant-capability.model';
132
+ export type { AssistantCapabilitySummary, AssistantCapabilityToolsetRequirement, AssistantCapabilityToolsetBinding } from './assistant-capability.model';
132
133
  export * from './assistant-template-setup.model';
133
134
  export * from './template-activity.model';
134
135
  export * from './template-lifecycle.model';
@@ -485,8 +485,8 @@ export declare const projectPipelineAnalyticsSchema: z.ZodObject<{
485
485
  };
486
486
  }>;
487
487
  }, "strict", z.ZodTypeAny, {
488
- title: string;
489
488
  id: string;
489
+ title: string;
490
490
  current: {
491
491
  work: {
492
492
  unknown: number;
@@ -538,8 +538,8 @@ export declare const projectPipelineAnalyticsSchema: z.ZodObject<{
538
538
  authority: "provider" | "platform";
539
539
  runState: string;
540
540
  }, {
541
- title: string;
542
541
  id: string;
542
+ title: string;
543
543
  current: {
544
544
  work: {
545
545
  unknown: number;
@@ -1256,8 +1256,8 @@ export declare const projectPipelineAnalyticsSchema: z.ZodObject<{
1256
1256
  to: string;
1257
1257
  };
1258
1258
  byInstance: {
1259
- title: string;
1260
1259
  id: string;
1260
+ title: string;
1261
1261
  current: {
1262
1262
  work: {
1263
1263
  unknown: number;
@@ -1488,8 +1488,8 @@ export declare const projectPipelineAnalyticsSchema: z.ZodObject<{
1488
1488
  to: string;
1489
1489
  };
1490
1490
  byInstance: {
1491
- title: string;
1492
1491
  id: string;
1492
+ title: string;
1493
1493
  current: {
1494
1494
  work: {
1495
1495
  unknown: number;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod/v3';
2
+ import { type ProjectPipelineRun } from './runtime.schema';
2
3
  export declare const projectPipelineConfigureSchema: z.ZodObject<{
3
4
  requestId: z.ZodString;
4
5
  configuration: z.ZodEffects<z.ZodObject<{
@@ -2379,13 +2380,13 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
2379
2380
  events: string[];
2380
2381
  }>, "many">>;
2381
2382
  }, "strict", z.ZodTypeAny, {
2383
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2382
2384
  templateRef: string;
2383
2385
  roleBindings: Record<string, {
2384
2386
  kind: "assistant" | "runtime_binding" | "human" | "service";
2385
2387
  selectionKey: string;
2386
2388
  requiredCapabilities?: string[] | undefined;
2387
2389
  }>;
2388
- parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2389
2390
  executorBindings?: Record<string, {
2390
2391
  kind: "assistant" | "runtime_binding" | "human" | "service";
2391
2392
  roleKey: string;
@@ -2409,13 +2410,13 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
2409
2410
  events: string[];
2410
2411
  }[] | undefined;
2411
2412
  }, {
2413
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2412
2414
  templateRef: string;
2413
2415
  roleBindings: Record<string, {
2414
2416
  kind: "assistant" | "runtime_binding" | "human" | "service";
2415
2417
  selectionKey: string;
2416
2418
  requiredCapabilities?: string[] | undefined;
2417
2419
  }>;
2418
- parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2419
2420
  executorBindings?: Record<string, {
2420
2421
  kind: "assistant" | "runtime_binding" | "human" | "service";
2421
2422
  roleKey: string;
@@ -2442,13 +2443,13 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
2442
2443
  }, "strict", z.ZodTypeAny, {
2443
2444
  schemaVersion: 1;
2444
2445
  binding: {
2446
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2445
2447
  templateRef: string;
2446
2448
  roleBindings: Record<string, {
2447
2449
  kind: "assistant" | "runtime_binding" | "human" | "service";
2448
2450
  selectionKey: string;
2449
2451
  requiredCapabilities?: string[] | undefined;
2450
2452
  }>;
2451
- parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2452
2453
  executorBindings?: Record<string, {
2453
2454
  kind: "assistant" | "runtime_binding" | "human" | "service";
2454
2455
  roleKey: string;
@@ -2767,13 +2768,13 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
2767
2768
  }, {
2768
2769
  schemaVersion: 1;
2769
2770
  binding: {
2771
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2770
2772
  templateRef: string;
2771
2773
  roleBindings: Record<string, {
2772
2774
  kind: "assistant" | "runtime_binding" | "human" | "service";
2773
2775
  selectionKey: string;
2774
2776
  requiredCapabilities?: string[] | undefined;
2775
2777
  }>;
2776
- parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2777
2778
  executorBindings?: Record<string, {
2778
2779
  kind: "assistant" | "runtime_binding" | "human" | "service";
2779
2780
  roleKey: string;
@@ -3092,13 +3093,13 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
3092
3093
  }>, {
3093
3094
  schemaVersion: 1;
3094
3095
  binding: {
3096
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
3095
3097
  templateRef: string;
3096
3098
  roleBindings: Record<string, {
3097
3099
  kind: "assistant" | "runtime_binding" | "human" | "service";
3098
3100
  selectionKey: string;
3099
3101
  requiredCapabilities?: string[] | undefined;
3100
3102
  }>;
3101
- parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
3102
3103
  executorBindings?: Record<string, {
3103
3104
  kind: "assistant" | "runtime_binding" | "human" | "service";
3104
3105
  roleKey: string;
@@ -3417,13 +3418,13 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
3417
3418
  }, {
3418
3419
  schemaVersion: 1;
3419
3420
  binding: {
3421
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
3420
3422
  templateRef: string;
3421
3423
  roleBindings: Record<string, {
3422
3424
  kind: "assistant" | "runtime_binding" | "human" | "service";
3423
3425
  selectionKey: string;
3424
3426
  requiredCapabilities?: string[] | undefined;
3425
3427
  }>;
3426
- parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
3427
3428
  executorBindings?: Record<string, {
3428
3429
  kind: "assistant" | "runtime_binding" | "human" | "service";
3429
3430
  roleKey: string;
@@ -3745,13 +3746,13 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
3745
3746
  configuration: {
3746
3747
  schemaVersion: 1;
3747
3748
  binding: {
3749
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
3748
3750
  templateRef: string;
3749
3751
  roleBindings: Record<string, {
3750
3752
  kind: "assistant" | "runtime_binding" | "human" | "service";
3751
3753
  selectionKey: string;
3752
3754
  requiredCapabilities?: string[] | undefined;
3753
3755
  }>;
3754
- parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
3755
3756
  executorBindings?: Record<string, {
3756
3757
  kind: "assistant" | "runtime_binding" | "human" | "service";
3757
3758
  roleKey: string;
@@ -4073,13 +4074,13 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
4073
4074
  configuration: {
4074
4075
  schemaVersion: 1;
4075
4076
  binding: {
4077
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
4076
4078
  templateRef: string;
4077
4079
  roleBindings: Record<string, {
4078
4080
  kind: "assistant" | "runtime_binding" | "human" | "service";
4079
4081
  selectionKey: string;
4080
4082
  requiredCapabilities?: string[] | undefined;
4081
4083
  }>;
4082
- parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
4083
4084
  executorBindings?: Record<string, {
4084
4085
  kind: "assistant" | "runtime_binding" | "human" | "service";
4085
4086
  roleKey: string;
@@ -4494,15 +4495,16 @@ export type ProjectPipelineNextRound = z.output<typeof projectPipelineNextRoundS
4494
4495
  export declare const projectPipelineCancelSchema: z.ZodObject<{
4495
4496
  instanceId: z.ZodString;
4496
4497
  requestId: z.ZodString;
4497
- expectedRevision: z.ZodNumber;
4498
+ /** The run shown when cancellation was requested; ordinary progress does not change this target. */
4499
+ runId: z.ZodString;
4498
4500
  }, "strict", z.ZodTypeAny, {
4499
4501
  requestId: string;
4500
4502
  instanceId: string;
4501
- expectedRevision: number;
4503
+ runId: string;
4502
4504
  }, {
4503
4505
  requestId: string;
4504
4506
  instanceId: string;
4505
- expectedRevision: number;
4507
+ runId: string;
4506
4508
  }>;
4507
4509
  export type ProjectPipelineCancel = z.output<typeof projectPipelineCancelSchema>;
4508
4510
  export declare const projectPipelineRetrySchema: z.ZodObject<{
@@ -4534,3 +4536,7 @@ export interface ProjectPipelineStartReceipt {
4534
4536
  roundId: string;
4535
4537
  revision: number;
4536
4538
  }
4539
+ /** Cancellation reports the requested run, including an already terminal historical run. */
4540
+ export interface ProjectPipelineCancelReceipt extends ProjectPipelineStartReceipt {
4541
+ state: ProjectPipelineRun['state'];
4542
+ }
@@ -2378,13 +2378,13 @@ export declare const projectPipelineConfigurationDeclarationSchema: z.ZodEffects
2378
2378
  events: string[];
2379
2379
  }>, "many">>;
2380
2380
  }, "strict", z.ZodTypeAny, {
2381
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2381
2382
  templateRef: string;
2382
2383
  roleBindings: Record<string, {
2383
2384
  kind: "assistant" | "runtime_binding" | "human" | "service";
2384
2385
  selectionKey: string;
2385
2386
  requiredCapabilities?: string[] | undefined;
2386
2387
  }>;
2387
- parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2388
2388
  executorBindings?: Record<string, {
2389
2389
  kind: "assistant" | "runtime_binding" | "human" | "service";
2390
2390
  roleKey: string;
@@ -2408,13 +2408,13 @@ export declare const projectPipelineConfigurationDeclarationSchema: z.ZodEffects
2408
2408
  events: string[];
2409
2409
  }[] | undefined;
2410
2410
  }, {
2411
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2411
2412
  templateRef: string;
2412
2413
  roleBindings: Record<string, {
2413
2414
  kind: "assistant" | "runtime_binding" | "human" | "service";
2414
2415
  selectionKey: string;
2415
2416
  requiredCapabilities?: string[] | undefined;
2416
2417
  }>;
2417
- parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2418
2418
  executorBindings?: Record<string, {
2419
2419
  kind: "assistant" | "runtime_binding" | "human" | "service";
2420
2420
  roleKey: string;
@@ -2482,13 +2482,13 @@ export declare const projectPipelineConfigurationDeclarationSchema: z.ZodEffects
2482
2482
  }, "strict", z.ZodTypeAny, {
2483
2483
  schemaVersion: 1;
2484
2484
  binding: {
2485
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2485
2486
  templateRef: string;
2486
2487
  roleBindings: Record<string, {
2487
2488
  kind: "assistant" | "runtime_binding" | "human" | "service";
2488
2489
  selectionKey: string;
2489
2490
  requiredCapabilities?: string[] | undefined;
2490
2491
  }>;
2491
- parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2492
2492
  executorBindings?: Record<string, {
2493
2493
  kind: "assistant" | "runtime_binding" | "human" | "service";
2494
2494
  roleKey: string;
@@ -2815,13 +2815,13 @@ export declare const projectPipelineConfigurationDeclarationSchema: z.ZodEffects
2815
2815
  }, {
2816
2816
  schemaVersion: 1;
2817
2817
  binding: {
2818
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2818
2819
  templateRef: string;
2819
2820
  roleBindings: Record<string, {
2820
2821
  kind: "assistant" | "runtime_binding" | "human" | "service";
2821
2822
  selectionKey: string;
2822
2823
  requiredCapabilities?: string[] | undefined;
2823
2824
  }>;
2824
- parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2825
2825
  executorBindings?: Record<string, {
2826
2826
  kind: "assistant" | "runtime_binding" | "human" | "service";
2827
2827
  roleKey: string;
@@ -3148,13 +3148,13 @@ export declare const projectPipelineConfigurationDeclarationSchema: z.ZodEffects
3148
3148
  }>, {
3149
3149
  schemaVersion: 1;
3150
3150
  binding: {
3151
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
3151
3152
  templateRef: string;
3152
3153
  roleBindings: Record<string, {
3153
3154
  kind: "assistant" | "runtime_binding" | "human" | "service";
3154
3155
  selectionKey: string;
3155
3156
  requiredCapabilities?: string[] | undefined;
3156
3157
  }>;
3157
- parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
3158
3158
  executorBindings?: Record<string, {
3159
3159
  kind: "assistant" | "runtime_binding" | "human" | "service";
3160
3160
  roleKey: string;
@@ -3481,13 +3481,13 @@ export declare const projectPipelineConfigurationDeclarationSchema: z.ZodEffects
3481
3481
  }, {
3482
3482
  schemaVersion: 1;
3483
3483
  binding: {
3484
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
3484
3485
  templateRef: string;
3485
3486
  roleBindings: Record<string, {
3486
3487
  kind: "assistant" | "runtime_binding" | "human" | "service";
3487
3488
  selectionKey: string;
3488
3489
  requiredCapabilities?: string[] | undefined;
3489
3490
  }>;
3490
- parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
3491
3491
  executorBindings?: Record<string, {
3492
3492
  kind: "assistant" | "runtime_binding" | "human" | "service";
3493
3493
  roleKey: string;