@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
@@ -23,41 +23,41 @@ export declare const trailStepSchema: z.ZodObject<{
23
23
  status: z.ZodEnum<["running", "success", "error", "pending", "waiting", "cancelling", "idle", "interrupted", "unknown"]>;
24
24
  order: z.ZodNumber;
25
25
  }, "strip", z.ZodTypeAny, {
26
- status?: "idle" | "error" | "unknown" | "success" | "interrupted" | "running" | "pending" | "waiting" | "cancelling";
27
- id?: string;
28
- kind?: "message" | "tool" | "turn";
29
- startedAt?: string;
30
- input?: string;
31
- output?: string;
32
- title?: string;
33
- executionId?: string;
34
- answer?: string;
35
- preview?: string;
36
- order?: number;
37
- threadId?: string;
38
- messageId?: string;
39
- endedAt?: string;
40
- laneId?: string;
41
- activity?: "other" | "task" | "answer" | "explore" | "change" | "verify";
42
- toolCallId?: string;
26
+ kind: "message" | "turn" | "tool";
27
+ status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
28
+ id: string;
29
+ laneId: string;
30
+ activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
31
+ title: string;
32
+ order: number;
33
+ answer?: string | undefined;
34
+ toolCallId?: string | undefined;
35
+ startedAt?: string | undefined;
36
+ endedAt?: string | undefined;
37
+ preview?: string | undefined;
38
+ input?: string | undefined;
39
+ output?: string | undefined;
40
+ messageId?: string | undefined;
41
+ threadId?: string | undefined;
42
+ executionId?: string | undefined;
43
43
  }, {
44
- status?: "idle" | "error" | "unknown" | "success" | "interrupted" | "running" | "pending" | "waiting" | "cancelling";
45
- id?: string;
46
- kind?: "message" | "tool" | "turn";
47
- startedAt?: string;
48
- input?: string;
49
- output?: string;
50
- title?: string;
51
- executionId?: string;
52
- answer?: string;
53
- preview?: string;
54
- order?: number;
55
- threadId?: string;
56
- messageId?: string;
57
- endedAt?: string;
58
- laneId?: string;
59
- activity?: "other" | "task" | "answer" | "explore" | "change" | "verify";
60
- toolCallId?: string;
44
+ kind: "message" | "turn" | "tool";
45
+ status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
46
+ id: string;
47
+ laneId: string;
48
+ activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
49
+ title: string;
50
+ order: number;
51
+ answer?: string | undefined;
52
+ toolCallId?: string | undefined;
53
+ startedAt?: string | undefined;
54
+ endedAt?: string | undefined;
55
+ preview?: string | undefined;
56
+ input?: string | undefined;
57
+ output?: string | undefined;
58
+ 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"]>>;
@@ -68,13 +68,13 @@ export declare const trailLaneSchema: z.ZodObject<{
68
68
  accepted: z.ZodBoolean;
69
69
  message: z.ZodOptional<z.ZodString>;
70
70
  }, "strip", z.ZodTypeAny, {
71
- status?: string;
72
- message?: string;
73
- accepted?: boolean;
71
+ status: string;
72
+ accepted: boolean;
73
+ message?: string | undefined;
74
74
  }, {
75
- status?: string;
76
- message?: string;
77
- accepted?: boolean;
75
+ status: string;
76
+ accepted: boolean;
77
+ message?: string | undefined;
78
78
  }>>;
79
79
  messageId: z.ZodOptional<z.ZodString>;
80
80
  threadId: z.ZodOptional<z.ZodString>;
@@ -86,41 +86,41 @@ 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?: "idle" | "error" | "unknown" | "success" | "interrupted" | "running" | "pending" | "waiting" | "cancelling";
90
- id?: string;
91
- parentId?: string;
92
- primary?: boolean;
93
- title?: string;
94
- executionId?: string;
89
+ status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
90
+ id: string;
91
+ title: string;
92
+ parentId: string | null;
93
+ primary: boolean;
94
+ messageId?: string | undefined;
95
+ threadId?: string | undefined;
96
+ executionId?: string | undefined;
97
+ spawnStepId?: string | undefined;
98
+ invocationKind?: "activity" | "sub_agent" | "external_assistant" | undefined;
99
+ purpose?: "side-chat" | "message-edit" | undefined;
100
+ elapsedMs?: number | undefined;
95
101
  outcome?: {
96
- status?: string;
97
- message?: string;
98
- accepted?: boolean;
99
- };
100
- purpose?: "side-chat" | "message-edit";
101
- threadId?: string;
102
- invocationKind?: "external_assistant" | "sub_agent" | "activity";
103
- messageId?: string;
104
- spawnStepId?: string;
105
- elapsedMs?: number;
102
+ status: string;
103
+ accepted: boolean;
104
+ message?: string | undefined;
105
+ } | undefined;
106
106
  }, {
107
- status?: "idle" | "error" | "unknown" | "success" | "interrupted" | "running" | "pending" | "waiting" | "cancelling";
108
- id?: string;
109
- parentId?: string;
110
- primary?: boolean;
111
- title?: string;
112
- executionId?: string;
107
+ status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
108
+ id: string;
109
+ title: string;
110
+ parentId: string | null;
111
+ primary: boolean;
112
+ messageId?: string | undefined;
113
+ threadId?: string | undefined;
114
+ executionId?: string | undefined;
115
+ spawnStepId?: string | undefined;
116
+ invocationKind?: "activity" | "sub_agent" | "external_assistant" | undefined;
117
+ purpose?: "side-chat" | "message-edit" | undefined;
118
+ elapsedMs?: number | undefined;
113
119
  outcome?: {
114
- status?: string;
115
- message?: string;
116
- accepted?: boolean;
117
- };
118
- purpose?: "side-chat" | "message-edit";
119
- threadId?: string;
120
- invocationKind?: "external_assistant" | "sub_agent" | "activity";
121
- messageId?: string;
122
- spawnStepId?: string;
123
- elapsedMs?: number;
120
+ status: string;
121
+ accepted: boolean;
122
+ message?: string | undefined;
123
+ } | undefined;
124
124
  }>;
125
125
  export declare const trailEpisodeSchema: z.ZodObject<{
126
126
  id: z.ZodString;
@@ -128,15 +128,15 @@ export declare const trailEpisodeSchema: z.ZodObject<{
128
128
  activity: z.ZodEnum<["task", "explore", "change", "verify", "answer", "other"]>;
129
129
  stepIds: z.ZodArray<z.ZodString, "many">;
130
130
  }, "strip", z.ZodTypeAny, {
131
- id?: string;
132
- laneId?: string;
133
- activity?: "other" | "task" | "answer" | "explore" | "change" | "verify";
134
- stepIds?: string[];
131
+ id: string;
132
+ laneId: string;
133
+ activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
134
+ stepIds: string[];
135
135
  }, {
136
- id?: string;
137
- laneId?: string;
138
- activity?: "other" | "task" | "answer" | "explore" | "change" | "verify";
139
- stepIds?: string[];
136
+ id: string;
137
+ laneId: string;
138
+ activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
139
+ stepIds: string[];
140
140
  }>;
141
141
  export declare const trailGraphSchema: z.ZodObject<{
142
142
  version: z.ZodLiteral<1>;
@@ -154,13 +154,13 @@ export declare const trailGraphSchema: z.ZodObject<{
154
154
  accepted: z.ZodBoolean;
155
155
  message: z.ZodOptional<z.ZodString>;
156
156
  }, "strip", z.ZodTypeAny, {
157
- status?: string;
158
- message?: string;
159
- accepted?: boolean;
157
+ status: string;
158
+ accepted: boolean;
159
+ message?: string | undefined;
160
160
  }, {
161
- status?: string;
162
- message?: string;
163
- accepted?: boolean;
161
+ status: string;
162
+ accepted: boolean;
163
+ message?: string | undefined;
164
164
  }>>;
165
165
  messageId: z.ZodOptional<z.ZodString>;
166
166
  threadId: z.ZodOptional<z.ZodString>;
@@ -172,41 +172,41 @@ 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?: "idle" | "error" | "unknown" | "success" | "interrupted" | "running" | "pending" | "waiting" | "cancelling";
176
- id?: string;
177
- parentId?: string;
178
- primary?: boolean;
179
- title?: string;
180
- executionId?: string;
175
+ status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
176
+ id: string;
177
+ title: string;
178
+ parentId: string | null;
179
+ primary: boolean;
180
+ messageId?: string | undefined;
181
+ threadId?: string | undefined;
182
+ executionId?: string | undefined;
183
+ spawnStepId?: string | undefined;
184
+ invocationKind?: "activity" | "sub_agent" | "external_assistant" | undefined;
185
+ purpose?: "side-chat" | "message-edit" | undefined;
186
+ elapsedMs?: number | undefined;
181
187
  outcome?: {
182
- status?: string;
183
- message?: string;
184
- accepted?: boolean;
185
- };
186
- purpose?: "side-chat" | "message-edit";
187
- threadId?: string;
188
- invocationKind?: "external_assistant" | "sub_agent" | "activity";
189
- messageId?: string;
190
- spawnStepId?: string;
191
- elapsedMs?: number;
188
+ status: string;
189
+ accepted: boolean;
190
+ message?: string | undefined;
191
+ } | undefined;
192
192
  }, {
193
- status?: "idle" | "error" | "unknown" | "success" | "interrupted" | "running" | "pending" | "waiting" | "cancelling";
194
- id?: string;
195
- parentId?: string;
196
- primary?: boolean;
197
- title?: string;
198
- executionId?: string;
193
+ status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
194
+ id: string;
195
+ title: string;
196
+ parentId: string | null;
197
+ primary: boolean;
198
+ messageId?: string | undefined;
199
+ threadId?: string | undefined;
200
+ executionId?: string | undefined;
201
+ spawnStepId?: string | undefined;
202
+ invocationKind?: "activity" | "sub_agent" | "external_assistant" | undefined;
203
+ purpose?: "side-chat" | "message-edit" | undefined;
204
+ elapsedMs?: number | undefined;
199
205
  outcome?: {
200
- status?: string;
201
- message?: string;
202
- accepted?: boolean;
203
- };
204
- purpose?: "side-chat" | "message-edit";
205
- threadId?: string;
206
- invocationKind?: "external_assistant" | "sub_agent" | "activity";
207
- messageId?: string;
208
- spawnStepId?: string;
209
- elapsedMs?: number;
206
+ status: string;
207
+ accepted: boolean;
208
+ message?: string | undefined;
209
+ } | undefined;
210
210
  }>, "many">;
211
211
  steps: z.ZodArray<z.ZodObject<{
212
212
  toolCallId: z.ZodOptional<z.ZodString>;
@@ -227,41 +227,41 @@ export declare const trailGraphSchema: z.ZodObject<{
227
227
  status: z.ZodEnum<["running", "success", "error", "pending", "waiting", "cancelling", "idle", "interrupted", "unknown"]>;
228
228
  order: z.ZodNumber;
229
229
  }, "strip", z.ZodTypeAny, {
230
- status?: "idle" | "error" | "unknown" | "success" | "interrupted" | "running" | "pending" | "waiting" | "cancelling";
231
- id?: string;
232
- kind?: "message" | "tool" | "turn";
233
- startedAt?: string;
234
- input?: string;
235
- output?: string;
236
- title?: string;
237
- executionId?: string;
238
- answer?: string;
239
- preview?: string;
240
- order?: number;
241
- threadId?: string;
242
- messageId?: string;
243
- endedAt?: string;
244
- laneId?: string;
245
- activity?: "other" | "task" | "answer" | "explore" | "change" | "verify";
246
- toolCallId?: string;
230
+ kind: "message" | "turn" | "tool";
231
+ status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
232
+ id: string;
233
+ laneId: string;
234
+ activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
235
+ title: string;
236
+ order: number;
237
+ answer?: string | undefined;
238
+ toolCallId?: string | undefined;
239
+ startedAt?: string | undefined;
240
+ endedAt?: string | undefined;
241
+ preview?: string | undefined;
242
+ input?: string | undefined;
243
+ output?: string | undefined;
244
+ messageId?: string | undefined;
245
+ threadId?: string | undefined;
246
+ executionId?: string | undefined;
247
247
  }, {
248
- status?: "idle" | "error" | "unknown" | "success" | "interrupted" | "running" | "pending" | "waiting" | "cancelling";
249
- id?: string;
250
- kind?: "message" | "tool" | "turn";
251
- startedAt?: string;
252
- input?: string;
253
- output?: string;
254
- title?: string;
255
- executionId?: string;
256
- answer?: string;
257
- preview?: string;
258
- order?: number;
259
- threadId?: string;
260
- messageId?: string;
261
- endedAt?: string;
262
- laneId?: string;
263
- activity?: "other" | "task" | "answer" | "explore" | "change" | "verify";
264
- toolCallId?: string;
248
+ kind: "message" | "turn" | "tool";
249
+ status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
250
+ id: string;
251
+ laneId: string;
252
+ activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
253
+ title: string;
254
+ order: number;
255
+ answer?: string | undefined;
256
+ toolCallId?: string | undefined;
257
+ startedAt?: string | undefined;
258
+ endedAt?: string | undefined;
259
+ preview?: string | undefined;
260
+ input?: string | undefined;
261
+ output?: string | undefined;
262
+ 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;
@@ -269,15 +269,15 @@ export declare const trailGraphSchema: z.ZodObject<{
269
269
  activity: z.ZodEnum<["task", "explore", "change", "verify", "answer", "other"]>;
270
270
  stepIds: z.ZodArray<z.ZodString, "many">;
271
271
  }, "strip", z.ZodTypeAny, {
272
- id?: string;
273
- laneId?: string;
274
- activity?: "other" | "task" | "answer" | "explore" | "change" | "verify";
275
- stepIds?: string[];
272
+ id: string;
273
+ laneId: string;
274
+ activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
275
+ stepIds: string[];
276
276
  }, {
277
- id?: string;
278
- laneId?: string;
279
- activity?: "other" | "task" | "answer" | "explore" | "change" | "verify";
280
- stepIds?: string[];
277
+ id: string;
278
+ laneId: string;
279
+ activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
280
+ stepIds: string[];
281
281
  }>, "many">;
282
282
  coverage: z.ZodArray<z.ZodEnum<["record_limit", "missing_identity", "no_execution", "timing_unavailable", "activity_unavailable", "historical"]>, "many">;
283
283
  source: z.ZodOptional<z.ZodObject<{
@@ -285,131 +285,131 @@ export declare const trailGraphSchema: z.ZodObject<{
285
285
  threadId: z.ZodString;
286
286
  messageId: z.ZodString;
287
287
  }, "strip", z.ZodTypeAny, {
288
- conversationId?: string;
289
- threadId?: string;
290
- messageId?: string;
288
+ messageId: string;
289
+ threadId: string;
290
+ conversationId: string;
291
291
  }, {
292
- conversationId?: string;
293
- threadId?: string;
294
- messageId?: string;
292
+ messageId: string;
293
+ threadId: string;
294
+ conversationId: string;
295
295
  }>>;
296
296
  live: z.ZodBoolean;
297
297
  }, "strip", z.ZodTypeAny, {
298
- version?: 1;
299
- source?: {
300
- conversationId?: string;
301
- threadId?: string;
302
- messageId?: string;
303
- };
304
- title?: string;
305
- conversationId?: string;
306
- steps?: {
307
- status?: "idle" | "error" | "unknown" | "success" | "interrupted" | "running" | "pending" | "waiting" | "cancelling";
308
- id?: string;
309
- kind?: "message" | "tool" | "turn";
310
- startedAt?: string;
311
- input?: string;
312
- output?: string;
313
- title?: string;
314
- executionId?: string;
315
- answer?: string;
316
- preview?: string;
317
- order?: number;
318
- threadId?: string;
319
- messageId?: string;
320
- endedAt?: string;
321
- laneId?: string;
322
- activity?: "other" | "task" | "answer" | "explore" | "change" | "verify";
323
- toolCallId?: string;
324
- }[];
325
- threadId?: string;
326
- coverage?: ("historical" | "record_limit" | "missing_identity" | "no_execution" | "timing_unavailable" | "activity_unavailable")[];
327
- messageId?: string;
328
- lanes?: {
329
- status?: "idle" | "error" | "unknown" | "success" | "interrupted" | "running" | "pending" | "waiting" | "cancelling";
330
- id?: string;
331
- parentId?: string;
332
- primary?: boolean;
333
- title?: string;
334
- executionId?: string;
298
+ title: string;
299
+ threadId: string;
300
+ version: 1;
301
+ layer: "conversation" | "execution";
302
+ conversationId: string;
303
+ lanes: {
304
+ status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
305
+ id: string;
306
+ title: string;
307
+ parentId: string | null;
308
+ primary: boolean;
309
+ messageId?: string | undefined;
310
+ threadId?: string | undefined;
311
+ executionId?: string | undefined;
312
+ spawnStepId?: string | undefined;
313
+ invocationKind?: "activity" | "sub_agent" | "external_assistant" | undefined;
314
+ purpose?: "side-chat" | "message-edit" | undefined;
315
+ elapsedMs?: number | undefined;
335
316
  outcome?: {
336
- status?: string;
337
- message?: string;
338
- accepted?: boolean;
339
- };
340
- purpose?: "side-chat" | "message-edit";
341
- threadId?: string;
342
- invocationKind?: "external_assistant" | "sub_agent" | "activity";
343
- messageId?: string;
344
- spawnStepId?: string;
345
- elapsedMs?: number;
317
+ status: string;
318
+ accepted: boolean;
319
+ message?: string | undefined;
320
+ } | undefined;
346
321
  }[];
347
- layer?: "execution" | "conversation";
348
- episodes?: {
349
- id?: string;
350
- laneId?: string;
351
- activity?: "other" | "task" | "answer" | "explore" | "change" | "verify";
352
- stepIds?: string[];
322
+ steps: {
323
+ kind: "message" | "turn" | "tool";
324
+ status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
325
+ id: string;
326
+ laneId: string;
327
+ activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
328
+ title: string;
329
+ order: number;
330
+ answer?: string | undefined;
331
+ toolCallId?: string | undefined;
332
+ startedAt?: string | undefined;
333
+ endedAt?: string | undefined;
334
+ preview?: string | undefined;
335
+ input?: string | undefined;
336
+ output?: string | undefined;
337
+ messageId?: string | undefined;
338
+ threadId?: string | undefined;
339
+ executionId?: string | undefined;
353
340
  }[];
354
- live?: boolean;
355
- }, {
356
- version?: 1;
357
- source?: {
358
- conversationId?: string;
359
- threadId?: string;
360
- messageId?: string;
361
- };
362
- title?: string;
363
- conversationId?: string;
364
- steps?: {
365
- status?: "idle" | "error" | "unknown" | "success" | "interrupted" | "running" | "pending" | "waiting" | "cancelling";
366
- id?: string;
367
- kind?: "message" | "tool" | "turn";
368
- startedAt?: string;
369
- input?: string;
370
- output?: string;
371
- title?: string;
372
- executionId?: string;
373
- answer?: string;
374
- preview?: string;
375
- order?: number;
376
- threadId?: string;
377
- messageId?: string;
378
- endedAt?: string;
379
- laneId?: string;
380
- activity?: "other" | "task" | "answer" | "explore" | "change" | "verify";
381
- toolCallId?: string;
341
+ episodes: {
342
+ id: string;
343
+ laneId: string;
344
+ activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
345
+ stepIds: string[];
382
346
  }[];
383
- threadId?: string;
384
- coverage?: ("historical" | "record_limit" | "missing_identity" | "no_execution" | "timing_unavailable" | "activity_unavailable")[];
385
- messageId?: string;
386
- lanes?: {
387
- status?: "idle" | "error" | "unknown" | "success" | "interrupted" | "running" | "pending" | "waiting" | "cancelling";
388
- id?: string;
389
- parentId?: string;
390
- primary?: boolean;
391
- title?: string;
392
- executionId?: string;
347
+ coverage: ("record_limit" | "missing_identity" | "no_execution" | "timing_unavailable" | "activity_unavailable" | "historical")[];
348
+ live: boolean;
349
+ messageId?: string | undefined;
350
+ source?: {
351
+ messageId: string;
352
+ threadId: string;
353
+ conversationId: string;
354
+ } | undefined;
355
+ }, {
356
+ title: string;
357
+ threadId: string;
358
+ version: 1;
359
+ layer: "conversation" | "execution";
360
+ conversationId: string;
361
+ lanes: {
362
+ status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
363
+ id: string;
364
+ title: string;
365
+ parentId: string | null;
366
+ primary: boolean;
367
+ messageId?: string | undefined;
368
+ threadId?: string | undefined;
369
+ executionId?: string | undefined;
370
+ spawnStepId?: string | undefined;
371
+ invocationKind?: "activity" | "sub_agent" | "external_assistant" | undefined;
372
+ purpose?: "side-chat" | "message-edit" | undefined;
373
+ elapsedMs?: number | undefined;
393
374
  outcome?: {
394
- status?: string;
395
- message?: string;
396
- accepted?: boolean;
397
- };
398
- purpose?: "side-chat" | "message-edit";
399
- threadId?: string;
400
- invocationKind?: "external_assistant" | "sub_agent" | "activity";
401
- messageId?: string;
402
- spawnStepId?: string;
403
- elapsedMs?: number;
375
+ status: string;
376
+ accepted: boolean;
377
+ message?: string | undefined;
378
+ } | undefined;
404
379
  }[];
405
- layer?: "execution" | "conversation";
406
- episodes?: {
407
- id?: string;
408
- laneId?: string;
409
- activity?: "other" | "task" | "answer" | "explore" | "change" | "verify";
410
- stepIds?: string[];
380
+ steps: {
381
+ kind: "message" | "turn" | "tool";
382
+ status: "unknown" | "running" | "success" | "error" | "pending" | "waiting" | "cancelling" | "idle" | "interrupted";
383
+ id: string;
384
+ laneId: string;
385
+ activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
386
+ title: string;
387
+ order: number;
388
+ answer?: string | undefined;
389
+ toolCallId?: string | undefined;
390
+ startedAt?: string | undefined;
391
+ endedAt?: string | undefined;
392
+ preview?: string | undefined;
393
+ input?: string | undefined;
394
+ output?: string | undefined;
395
+ messageId?: string | undefined;
396
+ threadId?: string | undefined;
397
+ executionId?: string | undefined;
411
398
  }[];
412
- live?: boolean;
399
+ episodes: {
400
+ id: string;
401
+ laneId: string;
402
+ activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
403
+ stepIds: string[];
404
+ }[];
405
+ coverage: ("record_limit" | "missing_identity" | "no_execution" | "timing_unavailable" | "activity_unavailable" | "historical")[];
406
+ live: boolean;
407
+ messageId?: string | undefined;
408
+ source?: {
409
+ messageId: string;
410
+ threadId: string;
411
+ conversationId: string;
412
+ } | undefined;
413
413
  }>;
414
414
  export type TrailStep = z.infer<typeof trailStepSchema>;
415
415
  export type TrailLane = z.infer<typeof trailLaneSchema>;
@@ -14,16 +14,3 @@ export type TCopilotStoreVector = {
14
14
  field_name: any;
15
15
  embedding: number[];
16
16
  };
17
- export declare const MEMORY_QA_PROMPT = "Summarize the experience of the above conversation and output a short question and answer.";
18
- export declare const MEMORY_PROFILE_PROMPT = "Extract new user profile information from the above conversation in one short sentence. If no new information is available, return nothing.";
19
- export type TMemory = {
20
- memoryId?: string;
21
- };
22
- export type TMemoryUserProfile = TMemory & {
23
- profile: string;
24
- context?: string;
25
- };
26
- export type TMemoryQA = TMemory & {
27
- question: string;
28
- answer: string;
29
- };