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