@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.
- package/context-event.cjs.default.js +1 -0
- package/context-event.cjs.js +26 -0
- package/context-event.cjs.mjs +2 -0
- package/context-event.d.ts +1 -0
- package/context-event.esm.js +24 -0
- package/index.cjs.default.js +1 -0
- package/index.cjs.js +291 -299
- package/index.cjs.mjs +2 -0
- package/index.esm.js +280 -296
- package/package.json +18 -2
- package/src/agent-event.model.d.ts +88 -0
- package/src/agent-event.schema.d.ts +120 -0
- package/src/agent-plugin.d.ts +4 -29
- package/src/ai/agent-output-delivery.model.d.ts +22 -1
- package/src/ai/agent-runtime.model.d.ts +4 -4
- package/src/ai/assistant-capability.model.d.ts +0 -1
- package/src/ai/assistant-template-manifest.model.d.ts +316 -352
- package/src/ai/assistant-template-overview.model.d.ts +0 -4
- package/src/ai/assistant-template-setup.model.d.ts +8 -8
- package/src/ai/assistant-template.model.d.ts +0 -4
- package/src/ai/bosi.model.d.ts +1 -1
- package/src/ai/chat-activity.model.d.ts +8 -0
- package/src/ai/chat-message.model.d.ts +0 -11
- package/src/ai/chat.model.d.ts +1 -0
- package/src/ai/cli-execution.model.d.ts +88 -0
- package/src/ai/conversation-trail.model.d.ts +274 -274
- package/src/ai/copilot-store.model.d.ts +0 -13
- package/src/ai/evolution/entities.d.ts +164 -0
- package/src/ai/evolution/evaluation.d.ts +7 -0
- package/src/ai/evolution/execution-review.d.ts +68 -0
- package/src/ai/evolution/index.d.ts +2 -0
- package/src/ai/evolution/provider.d.ts +1 -0
- package/src/ai/evolution/target.d.ts +5 -0
- package/src/ai/execution-activity.model.d.ts +362 -362
- package/src/ai/execution-control-evidence.schema.d.ts +18 -18
- package/src/ai/execution-observability.model.d.ts +196 -196
- package/src/ai/execution-source.model.d.ts +45 -0
- package/src/ai/index.d.ts +2 -0
- package/src/ai/mcp-execution-control.schema.d.ts +2 -2
- package/src/ai/middleware.model.d.ts +1 -0
- package/src/ai/model-execution.model.d.ts +5 -108
- package/src/ai/model-replacement.model.d.ts +18 -18
- package/src/ai/project-configuration-view.model.d.ts +1 -0
- package/src/ai/project-pipeline/analytics.d.ts +192 -192
- package/src/ai/project-pipeline/commands.schema.d.ts +533 -490
- package/src/ai/project-pipeline/configuration-form.d.ts +1976 -1832
- package/src/ai/project-pipeline/configuration.schema.d.ts +450 -413
- package/src/ai/project-pipeline/contribution.schema.d.ts +688 -639
- package/src/ai/project-pipeline/definition.schema.d.ts +400 -356
- package/src/ai/project-pipeline/execution-statistics.d.ts +18 -18
- package/src/ai/project-pipeline/graph.model.d.ts +5 -0
- package/src/ai/project-pipeline/human-wait-statistics.d.ts +2 -2
- package/src/ai/project-pipeline/model-usage-statistics.d.ts +4 -4
- package/src/ai/project-pipeline/node.schema.d.ts +57 -44
- package/src/ai/project-pipeline/operation.schema.d.ts +298 -298
- package/src/ai/project-pipeline/plugin-deployment.schema.d.ts +6 -6
- package/src/ai/project-pipeline/portfolio.schema.d.ts +468 -468
- package/src/ai/project-pipeline/primitives.schema.d.ts +6 -6
- package/src/ai/project-pipeline/projection.schema.d.ts +609 -572
- package/src/ai/project-pipeline/provider-actions.schema.d.ts +100 -100
- package/src/ai/project-pipeline/queue-statistics.d.ts +10 -10
- package/src/ai/project-pipeline/runtime.schema.d.ts +60 -60
- package/src/ai/project-pipeline/statistics.d.ts +100 -100
- package/src/ai/project-task-runtime.model.d.ts +256 -780
- package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
- package/src/ai/template-installation.model.d.ts +18 -18
- package/src/ai/template-lifecycle.model.d.ts +6 -6
- package/src/ai/thread-control-view.schema.d.ts +4 -4
- package/src/ai/xpert-agent-execution.model.d.ts +4 -0
- package/src/ai/xpert-project.model.d.ts +2 -1
- package/src/ai/xpert.model.d.ts +0 -34
- package/src/ai/xpert.utils.d.ts +0 -1
- package/src/analytics/analysis-evidence.model.d.ts +29 -0
- package/src/analytics/analytics-certification.model.d.ts +17 -0
- package/src/{analytics-definition.model.d.ts → analytics/analytics-definition.model.d.ts} +1 -1
- package/src/{analytics-diagnostic.d.ts → analytics/analytics-diagnostic.d.ts} +8 -8
- package/src/{analytics-query.model.d.ts → analytics/analytics-query.model.d.ts} +9 -1
- package/src/analytics/index.d.ts +7 -0
- package/src/{resource-analysis.model.d.ts → analytics/resource-analysis.model.d.ts} +6 -1
- package/src/app-platform.d.ts +16 -16
- package/src/{artifact-group-reference.model.d.ts → artifacts/artifact-group-reference.model.d.ts} +1 -1
- package/src/{artifact-presentation.model.d.ts → artifacts/artifact-presentation.model.d.ts} +1 -1
- package/src/{artifact-use-grant-command.d.ts → artifacts/artifact-use-grant-command.d.ts} +1 -1
- package/src/{artifact-use-grant.model.d.ts → artifacts/artifact-use-grant.model.d.ts} +2 -2
- package/src/{artifact.model.d.ts → artifacts/artifact.model.d.ts} +2 -2
- package/src/artifacts/index.d.ts +5 -0
- package/src/collaboration.model.d.ts +31 -11
- package/src/{content-document.model.d.ts → content/content-document.model.d.ts} +2 -0
- package/src/{content-resource.model.d.ts → content/content-resource.model.d.ts} +6 -3
- package/src/content/content-transfer.model.d.ts +21 -0
- package/src/content/index.d.ts +4 -0
- package/src/execution-control-admission.schema.d.ts +2 -2
- package/src/index.d.ts +5 -14
- package/src/user-notification.schema.d.ts +46 -28
- package/src/view-extension/client-commands.d.ts +24 -0
- /package/src/{analytics-source.model.d.ts → analytics/analytics-source.model.d.ts} +0 -0
- /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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
status: string;
|
|
72
|
+
accepted: boolean;
|
|
73
|
+
message?: string | undefined;
|
|
74
74
|
}, {
|
|
75
|
-
status
|
|
76
|
-
|
|
77
|
-
|
|
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
|
|
90
|
-
id
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
|
97
|
-
|
|
98
|
-
|
|
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
|
|
108
|
-
id
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
|
115
|
-
|
|
116
|
-
|
|
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
|
|
132
|
-
laneId
|
|
133
|
-
activity
|
|
134
|
-
stepIds
|
|
131
|
+
id: string;
|
|
132
|
+
laneId: string;
|
|
133
|
+
activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
|
|
134
|
+
stepIds: string[];
|
|
135
135
|
}, {
|
|
136
|
-
id
|
|
137
|
-
laneId
|
|
138
|
-
activity
|
|
139
|
-
stepIds
|
|
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
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
status: string;
|
|
158
|
+
accepted: boolean;
|
|
159
|
+
message?: string | undefined;
|
|
160
160
|
}, {
|
|
161
|
-
status
|
|
162
|
-
|
|
163
|
-
|
|
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
|
|
176
|
-
id
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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
|
|
183
|
-
|
|
184
|
-
|
|
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
|
|
194
|
-
id
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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
|
|
201
|
-
|
|
202
|
-
|
|
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
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
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
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
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
|
|
273
|
-
laneId
|
|
274
|
-
activity
|
|
275
|
-
stepIds
|
|
272
|
+
id: string;
|
|
273
|
+
laneId: string;
|
|
274
|
+
activity: "task" | "explore" | "change" | "verify" | "answer" | "other";
|
|
275
|
+
stepIds: string[];
|
|
276
276
|
}, {
|
|
277
|
-
id
|
|
278
|
-
laneId
|
|
279
|
-
activity
|
|
280
|
-
stepIds
|
|
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
|
-
|
|
289
|
-
threadId
|
|
290
|
-
|
|
288
|
+
messageId: string;
|
|
289
|
+
threadId: string;
|
|
290
|
+
conversationId: string;
|
|
291
291
|
}, {
|
|
292
|
-
|
|
293
|
-
threadId
|
|
294
|
-
|
|
292
|
+
messageId: string;
|
|
293
|
+
threadId: string;
|
|
294
|
+
conversationId: string;
|
|
295
295
|
}>>;
|
|
296
296
|
live: z.ZodBoolean;
|
|
297
297
|
}, "strip", z.ZodTypeAny, {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
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
|
|
337
|
-
|
|
338
|
-
|
|
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
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
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
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
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
|
-
|
|
384
|
-
|
|
385
|
-
messageId?: string;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
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
|
|
395
|
-
|
|
396
|
-
|
|
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
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
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
|
-
|
|
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
|
-
};
|