@playcraft/common 0.1.1 → 0.1.2
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const agentOpenCodeActions: readonly ["probe_project", "materialize_references", "create_session", "prompt", "observe", "abort", "settled", "health", "inject_model", "list_messages"];
|
|
2
|
+
export declare const agentOpenCodeActions: readonly ["probe_project", "install_dependencies", "materialize_references", "create_session", "prompt", "observe", "abort", "settled", "health", "inject_model", "list_messages", "record_delivery"];
|
|
3
3
|
export declare const agentOpenCodeKinds: readonly ["session", "manager", "execution"];
|
|
4
|
-
export declare const agentOpenCodeFamilies: readonly ["probe_project", "materialize_references", "create_session", "run", "health", "inject_model", "list_messages"];
|
|
4
|
+
export declare const agentOpenCodeFamilies: readonly ["probe_project", "install_dependencies", "materialize_references", "create_session", "run", "health", "inject_model", "list_messages", "record_delivery"];
|
|
5
5
|
export declare function agentOpenCodeFamily(action: (typeof agentOpenCodeActions)[number]): (typeof agentOpenCodeFamilies)[number];
|
|
6
6
|
export declare const agentOpenCodeRequestSchema: z.ZodObject<{
|
|
7
7
|
action: z.ZodEnum<{
|
|
@@ -11,10 +11,12 @@ export declare const agentOpenCodeRequestSchema: z.ZodObject<{
|
|
|
11
11
|
settled: "settled";
|
|
12
12
|
observe: "observe";
|
|
13
13
|
probe_project: "probe_project";
|
|
14
|
+
install_dependencies: "install_dependencies";
|
|
14
15
|
materialize_references: "materialize_references";
|
|
15
16
|
create_session: "create_session";
|
|
16
17
|
inject_model: "inject_model";
|
|
17
18
|
list_messages: "list_messages";
|
|
19
|
+
record_delivery: "record_delivery";
|
|
18
20
|
}>;
|
|
19
21
|
sessionId: z.ZodString;
|
|
20
22
|
requestId: z.ZodString;
|
|
@@ -34,7 +36,48 @@ export declare const agentOpenCodeRequestSchema: z.ZodObject<{
|
|
|
34
36
|
prompt: z.ZodOptional<z.ZodString>;
|
|
35
37
|
variantId: z.ZodOptional<z.ZodString>;
|
|
36
38
|
variantLeaseToken: z.ZodOptional<z.ZodString>;
|
|
39
|
+
codeAgentRunId: z.ZodOptional<z.ZodString>;
|
|
37
40
|
}, z.core.$strict>;
|
|
41
|
+
/**
|
|
42
|
+
* 编码运行的活动流条目(R3.24),与 Business `VariantActivity` 同形:沙箱内监督进程按同一规则
|
|
43
|
+
* 从 OpenCode 工具事件收敛,最多 30 条;长度上限留了余量,标题与摘要本身已截断到 160 / 800。
|
|
44
|
+
*/
|
|
45
|
+
export declare const agentOpenCodeActivityItemSchema: z.ZodObject<{
|
|
46
|
+
id: z.ZodString;
|
|
47
|
+
at: z.ZodString;
|
|
48
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
49
|
+
kind: z.ZodEnum<{
|
|
50
|
+
tool: "tool";
|
|
51
|
+
stage: "stage";
|
|
52
|
+
}>;
|
|
53
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
54
|
+
title: z.ZodString;
|
|
55
|
+
status: z.ZodEnum<{
|
|
56
|
+
failed: "failed";
|
|
57
|
+
running: "running";
|
|
58
|
+
done: "done";
|
|
59
|
+
}>;
|
|
60
|
+
inputSummary: z.ZodOptional<z.ZodString>;
|
|
61
|
+
outputSummary: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
export declare const agentOpenCodeActivitySchema: z.ZodArray<z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
at: z.ZodString;
|
|
66
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
67
|
+
kind: z.ZodEnum<{
|
|
68
|
+
tool: "tool";
|
|
69
|
+
stage: "stage";
|
|
70
|
+
}>;
|
|
71
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
72
|
+
title: z.ZodString;
|
|
73
|
+
status: z.ZodEnum<{
|
|
74
|
+
failed: "failed";
|
|
75
|
+
running: "running";
|
|
76
|
+
done: "done";
|
|
77
|
+
}>;
|
|
78
|
+
inputSummary: z.ZodOptional<z.ZodString>;
|
|
79
|
+
outputSummary: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strict>>;
|
|
38
81
|
export declare const agentOpenCodeResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
39
82
|
outcome: z.ZodLiteral<"running">;
|
|
40
83
|
openCodeSessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -47,6 +90,24 @@ export declare const agentOpenCodeResultSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
47
90
|
lastWorkEventAt: z.ZodOptional<z.ZodNumber>;
|
|
48
91
|
keepaliveAlive: z.ZodOptional<z.ZodBoolean>;
|
|
49
92
|
silentMs: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
activity: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
94
|
+
id: z.ZodString;
|
|
95
|
+
at: z.ZodString;
|
|
96
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
97
|
+
kind: z.ZodEnum<{
|
|
98
|
+
tool: "tool";
|
|
99
|
+
stage: "stage";
|
|
100
|
+
}>;
|
|
101
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
102
|
+
title: z.ZodString;
|
|
103
|
+
status: z.ZodEnum<{
|
|
104
|
+
failed: "failed";
|
|
105
|
+
running: "running";
|
|
106
|
+
done: "done";
|
|
107
|
+
}>;
|
|
108
|
+
inputSummary: z.ZodOptional<z.ZodString>;
|
|
109
|
+
outputSummary: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$strict>>>;
|
|
50
111
|
}, z.core.$strict>, z.ZodObject<{
|
|
51
112
|
outcome: z.ZodLiteral<"uncertain">;
|
|
52
113
|
error: z.ZodString;
|
|
@@ -61,6 +122,20 @@ export declare const agentOpenCodeResultSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
61
122
|
detail: z.ZodString;
|
|
62
123
|
projectPath: z.ZodString;
|
|
63
124
|
error: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
126
|
+
outcome: z.ZodLiteral<"settled">;
|
|
127
|
+
kind: z.ZodLiteral<"dependencies">;
|
|
128
|
+
status: z.ZodEnum<{
|
|
129
|
+
failed: "failed";
|
|
130
|
+
completed: "completed";
|
|
131
|
+
}>;
|
|
132
|
+
detail: z.ZodEnum<{
|
|
133
|
+
ready: "ready";
|
|
134
|
+
no_package_json: "no_package_json";
|
|
135
|
+
installed: "installed";
|
|
136
|
+
install_failed: "install_failed";
|
|
137
|
+
}>;
|
|
138
|
+
message: z.ZodOptional<z.ZodString>;
|
|
64
139
|
}, z.core.$strict>, z.ZodObject<{
|
|
65
140
|
outcome: z.ZodLiteral<"settled">;
|
|
66
141
|
kind: z.ZodLiteral<"references">;
|
|
@@ -92,6 +167,24 @@ export declare const agentOpenCodeResultSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
92
167
|
lastWorkEventType: z.ZodOptional<z.ZodString>;
|
|
93
168
|
keepaliveAlive: z.ZodOptional<z.ZodBoolean>;
|
|
94
169
|
error: z.ZodOptional<z.ZodString>;
|
|
170
|
+
activity: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
171
|
+
id: z.ZodString;
|
|
172
|
+
at: z.ZodString;
|
|
173
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
174
|
+
kind: z.ZodEnum<{
|
|
175
|
+
tool: "tool";
|
|
176
|
+
stage: "stage";
|
|
177
|
+
}>;
|
|
178
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
179
|
+
title: z.ZodString;
|
|
180
|
+
status: z.ZodEnum<{
|
|
181
|
+
failed: "failed";
|
|
182
|
+
running: "running";
|
|
183
|
+
done: "done";
|
|
184
|
+
}>;
|
|
185
|
+
inputSummary: z.ZodOptional<z.ZodString>;
|
|
186
|
+
outputSummary: z.ZodOptional<z.ZodString>;
|
|
187
|
+
}, z.core.$strict>>>;
|
|
95
188
|
}, z.core.$strict>, z.ZodObject<{
|
|
96
189
|
outcome: z.ZodLiteral<"settled">;
|
|
97
190
|
kind: z.ZodLiteral<"health">;
|
|
@@ -116,6 +209,16 @@ export declare const agentOpenCodeResultSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
116
209
|
updated: z.ZodNumber;
|
|
117
210
|
restarted: z.ZodNumber;
|
|
118
211
|
error: z.ZodOptional<z.ZodString>;
|
|
212
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
213
|
+
outcome: z.ZodLiteral<"settled">;
|
|
214
|
+
kind: z.ZodLiteral<"delivery">;
|
|
215
|
+
status: z.ZodEnum<{
|
|
216
|
+
completed: "completed";
|
|
217
|
+
skipped: "skipped";
|
|
218
|
+
}>;
|
|
219
|
+
recordPath: z.ZodOptional<z.ZodString>;
|
|
220
|
+
changedFiles: z.ZodOptional<z.ZodNumber>;
|
|
221
|
+
workspaceRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
222
|
}, z.core.$strict>, z.ZodObject<{
|
|
120
223
|
outcome: z.ZodLiteral<"settled">;
|
|
121
224
|
kind: z.ZodLiteral<"messages">;
|
|
@@ -136,10 +239,12 @@ export declare const agentOpenCodeResponseSchema: z.ZodObject<{
|
|
|
136
239
|
settled: "settled";
|
|
137
240
|
observe: "observe";
|
|
138
241
|
probe_project: "probe_project";
|
|
242
|
+
install_dependencies: "install_dependencies";
|
|
139
243
|
materialize_references: "materialize_references";
|
|
140
244
|
create_session: "create_session";
|
|
141
245
|
inject_model: "inject_model";
|
|
142
246
|
list_messages: "list_messages";
|
|
247
|
+
record_delivery: "record_delivery";
|
|
143
248
|
}>;
|
|
144
249
|
inputHash: z.ZodString;
|
|
145
250
|
result: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -154,6 +259,24 @@ export declare const agentOpenCodeResponseSchema: z.ZodObject<{
|
|
|
154
259
|
lastWorkEventAt: z.ZodOptional<z.ZodNumber>;
|
|
155
260
|
keepaliveAlive: z.ZodOptional<z.ZodBoolean>;
|
|
156
261
|
silentMs: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
activity: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
263
|
+
id: z.ZodString;
|
|
264
|
+
at: z.ZodString;
|
|
265
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
266
|
+
kind: z.ZodEnum<{
|
|
267
|
+
tool: "tool";
|
|
268
|
+
stage: "stage";
|
|
269
|
+
}>;
|
|
270
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
271
|
+
title: z.ZodString;
|
|
272
|
+
status: z.ZodEnum<{
|
|
273
|
+
failed: "failed";
|
|
274
|
+
running: "running";
|
|
275
|
+
done: "done";
|
|
276
|
+
}>;
|
|
277
|
+
inputSummary: z.ZodOptional<z.ZodString>;
|
|
278
|
+
outputSummary: z.ZodOptional<z.ZodString>;
|
|
279
|
+
}, z.core.$strict>>>;
|
|
157
280
|
}, z.core.$strict>, z.ZodObject<{
|
|
158
281
|
outcome: z.ZodLiteral<"uncertain">;
|
|
159
282
|
error: z.ZodString;
|
|
@@ -168,6 +291,20 @@ export declare const agentOpenCodeResponseSchema: z.ZodObject<{
|
|
|
168
291
|
detail: z.ZodString;
|
|
169
292
|
projectPath: z.ZodString;
|
|
170
293
|
error: z.ZodOptional<z.ZodString>;
|
|
294
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
295
|
+
outcome: z.ZodLiteral<"settled">;
|
|
296
|
+
kind: z.ZodLiteral<"dependencies">;
|
|
297
|
+
status: z.ZodEnum<{
|
|
298
|
+
failed: "failed";
|
|
299
|
+
completed: "completed";
|
|
300
|
+
}>;
|
|
301
|
+
detail: z.ZodEnum<{
|
|
302
|
+
ready: "ready";
|
|
303
|
+
no_package_json: "no_package_json";
|
|
304
|
+
installed: "installed";
|
|
305
|
+
install_failed: "install_failed";
|
|
306
|
+
}>;
|
|
307
|
+
message: z.ZodOptional<z.ZodString>;
|
|
171
308
|
}, z.core.$strict>, z.ZodObject<{
|
|
172
309
|
outcome: z.ZodLiteral<"settled">;
|
|
173
310
|
kind: z.ZodLiteral<"references">;
|
|
@@ -199,6 +336,24 @@ export declare const agentOpenCodeResponseSchema: z.ZodObject<{
|
|
|
199
336
|
lastWorkEventType: z.ZodOptional<z.ZodString>;
|
|
200
337
|
keepaliveAlive: z.ZodOptional<z.ZodBoolean>;
|
|
201
338
|
error: z.ZodOptional<z.ZodString>;
|
|
339
|
+
activity: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
340
|
+
id: z.ZodString;
|
|
341
|
+
at: z.ZodString;
|
|
342
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
343
|
+
kind: z.ZodEnum<{
|
|
344
|
+
tool: "tool";
|
|
345
|
+
stage: "stage";
|
|
346
|
+
}>;
|
|
347
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
348
|
+
title: z.ZodString;
|
|
349
|
+
status: z.ZodEnum<{
|
|
350
|
+
failed: "failed";
|
|
351
|
+
running: "running";
|
|
352
|
+
done: "done";
|
|
353
|
+
}>;
|
|
354
|
+
inputSummary: z.ZodOptional<z.ZodString>;
|
|
355
|
+
outputSummary: z.ZodOptional<z.ZodString>;
|
|
356
|
+
}, z.core.$strict>>>;
|
|
202
357
|
}, z.core.$strict>, z.ZodObject<{
|
|
203
358
|
outcome: z.ZodLiteral<"settled">;
|
|
204
359
|
kind: z.ZodLiteral<"health">;
|
|
@@ -223,6 +378,16 @@ export declare const agentOpenCodeResponseSchema: z.ZodObject<{
|
|
|
223
378
|
updated: z.ZodNumber;
|
|
224
379
|
restarted: z.ZodNumber;
|
|
225
380
|
error: z.ZodOptional<z.ZodString>;
|
|
381
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
382
|
+
outcome: z.ZodLiteral<"settled">;
|
|
383
|
+
kind: z.ZodLiteral<"delivery">;
|
|
384
|
+
status: z.ZodEnum<{
|
|
385
|
+
completed: "completed";
|
|
386
|
+
skipped: "skipped";
|
|
387
|
+
}>;
|
|
388
|
+
recordPath: z.ZodOptional<z.ZodString>;
|
|
389
|
+
changedFiles: z.ZodOptional<z.ZodNumber>;
|
|
390
|
+
workspaceRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
226
391
|
}, z.core.$strict>, z.ZodObject<{
|
|
227
392
|
outcome: z.ZodLiteral<"settled">;
|
|
228
393
|
kind: z.ZodLiteral<"messages">;
|
|
@@ -236,5 +401,6 @@ export declare const agentOpenCodeResponseSchema: z.ZodObject<{
|
|
|
236
401
|
}, z.core.$strict>;
|
|
237
402
|
export type AgentOpenCodeRequest = z.infer<typeof agentOpenCodeRequestSchema>;
|
|
238
403
|
export type AgentOpenCodeResult = z.infer<typeof agentOpenCodeResultSchema>;
|
|
404
|
+
export type AgentOpenCodeActivityItem = z.infer<typeof agentOpenCodeActivityItemSchema>;
|
|
239
405
|
export type AgentOpenCodeResponse = z.infer<typeof agentOpenCodeResponseSchema>;
|
|
240
406
|
//# sourceMappingURL=agent-opencode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-opencode.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/agent-opencode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"agent-opencode.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/agent-opencode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,oBAAoB,uMAavB,CAAC;AACX,eAAO,MAAM,kBAAkB,8CAA+C,CAAC;AAC/E,eAAO,MAAM,qBAAqB,qKAUxB,CAAC;AAUX,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,GAC5C,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAaxC;AAED,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmDnC,CAAC;AAEL;;;GAGG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;kBAYjC,CAAC;AACZ,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;mBAAmD,CAAC;AAE5F,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA4GpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAQ7B,CAAC;AAEZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -5,6 +5,7 @@ const uuid = z.string().uuid();
|
|
|
5
5
|
const openCodeSessionId = z.string().regex(/^[a-zA-Z0-9_-]{1,128}$/);
|
|
6
6
|
export const agentOpenCodeActions = [
|
|
7
7
|
'probe_project',
|
|
8
|
+
'install_dependencies',
|
|
8
9
|
'materialize_references',
|
|
9
10
|
'create_session',
|
|
10
11
|
'prompt',
|
|
@@ -14,26 +15,36 @@ export const agentOpenCodeActions = [
|
|
|
14
15
|
'health',
|
|
15
16
|
'inject_model',
|
|
16
17
|
'list_messages',
|
|
18
|
+
'record_delivery',
|
|
17
19
|
];
|
|
18
20
|
export const agentOpenCodeKinds = ['session', 'manager', 'execution'];
|
|
19
21
|
export const agentOpenCodeFamilies = [
|
|
20
22
|
'probe_project',
|
|
23
|
+
'install_dependencies',
|
|
21
24
|
'materialize_references',
|
|
22
25
|
'create_session',
|
|
23
26
|
'run',
|
|
24
27
|
'health',
|
|
25
28
|
'inject_model',
|
|
26
29
|
'list_messages',
|
|
30
|
+
'record_delivery',
|
|
27
31
|
];
|
|
28
|
-
const PREPARE_ACTIONS = new Set([
|
|
29
|
-
|
|
32
|
+
const PREPARE_ACTIONS = new Set([
|
|
33
|
+
'probe_project',
|
|
34
|
+
'install_dependencies',
|
|
35
|
+
'materialize_references',
|
|
36
|
+
'create_session',
|
|
37
|
+
]);
|
|
38
|
+
const EXTRA_NO_SESSION_ACTIONS = new Set(['health', 'inject_model', 'record_delivery']);
|
|
30
39
|
export function agentOpenCodeFamily(action) {
|
|
31
40
|
if (action === 'probe_project' ||
|
|
41
|
+
action === 'install_dependencies' ||
|
|
32
42
|
action === 'materialize_references' ||
|
|
33
43
|
action === 'create_session' ||
|
|
34
44
|
action === 'health' ||
|
|
35
45
|
action === 'inject_model' ||
|
|
36
|
-
action === 'list_messages'
|
|
46
|
+
action === 'list_messages' ||
|
|
47
|
+
action === 'record_delivery')
|
|
37
48
|
return action;
|
|
38
49
|
return 'run';
|
|
39
50
|
}
|
|
@@ -54,6 +65,8 @@ export const agentOpenCodeRequestSchema = z
|
|
|
54
65
|
prompt: z.string().min(1).max(40_000).optional(),
|
|
55
66
|
variantId: uuid.optional(),
|
|
56
67
|
variantLeaseToken: identity.optional(),
|
|
68
|
+
/** `record_delivery` only: the completed Code Agent run whose delivery is recorded. */
|
|
69
|
+
codeAgentRunId: uuid.optional(),
|
|
57
70
|
})
|
|
58
71
|
.strict()
|
|
59
72
|
.refine((value) => {
|
|
@@ -77,10 +90,32 @@ export const agentOpenCodeRequestSchema = z
|
|
|
77
90
|
return Boolean(value.variantId);
|
|
78
91
|
return true;
|
|
79
92
|
})
|
|
93
|
+
// Runtime derives the issue, user and record path from the run; the caller names only the run.
|
|
94
|
+
.refine((value) => value.action === 'record_delivery'
|
|
95
|
+
? Boolean(value.codeAgentRunId) && !value.variantId
|
|
96
|
+
: !value.codeAgentRunId)
|
|
80
97
|
.refine((value) => {
|
|
81
98
|
const limit = value.action === 'prompt' || value.action === 'materialize_references' ? 60_000 : 16_384;
|
|
82
99
|
return new TextEncoder().encode(JSON.stringify(value)).byteLength <= limit;
|
|
83
100
|
});
|
|
101
|
+
/**
|
|
102
|
+
* 编码运行的活动流条目(R3.24),与 Business `VariantActivity` 同形:沙箱内监督进程按同一规则
|
|
103
|
+
* 从 OpenCode 工具事件收敛,最多 30 条;长度上限留了余量,标题与摘要本身已截断到 160 / 800。
|
|
104
|
+
*/
|
|
105
|
+
export const agentOpenCodeActivityItemSchema = z
|
|
106
|
+
.object({
|
|
107
|
+
id: z.string().min(1).max(256),
|
|
108
|
+
at: z.string().max(64),
|
|
109
|
+
endedAt: z.string().max(64).optional(),
|
|
110
|
+
kind: z.enum(['stage', 'tool']),
|
|
111
|
+
tool: z.string().max(128).optional(),
|
|
112
|
+
title: z.string().max(256),
|
|
113
|
+
status: z.enum(['running', 'done', 'failed']),
|
|
114
|
+
inputSummary: z.string().max(1_024).optional(),
|
|
115
|
+
outputSummary: z.string().max(1_024).optional(),
|
|
116
|
+
})
|
|
117
|
+
.strict();
|
|
118
|
+
export const agentOpenCodeActivitySchema = z.array(agentOpenCodeActivityItemSchema).max(30);
|
|
84
119
|
export const agentOpenCodeResultSchema = z.union([
|
|
85
120
|
z
|
|
86
121
|
.object({
|
|
@@ -91,6 +126,7 @@ export const agentOpenCodeResultSchema = z.union([
|
|
|
91
126
|
lastWorkEventAt: z.number().int().nonnegative().optional(),
|
|
92
127
|
keepaliveAlive: z.boolean().optional(),
|
|
93
128
|
silentMs: z.number().int().nonnegative().optional(),
|
|
129
|
+
activity: agentOpenCodeActivitySchema.optional(),
|
|
94
130
|
})
|
|
95
131
|
.strict(),
|
|
96
132
|
z.object({ outcome: z.literal('uncertain'), error: z.string().max(128) }).strict(),
|
|
@@ -105,6 +141,19 @@ export const agentOpenCodeResultSchema = z.union([
|
|
|
105
141
|
error: z.string().max(128).optional(),
|
|
106
142
|
})
|
|
107
143
|
.strict(),
|
|
144
|
+
z
|
|
145
|
+
.object({
|
|
146
|
+
outcome: z.literal('settled'),
|
|
147
|
+
kind: z.literal('dependencies'),
|
|
148
|
+
status: z.enum(['completed', 'failed']),
|
|
149
|
+
/**
|
|
150
|
+
* ready / no_package_json:不用装;installed:本次装好;install_failed:pnpm 非零退出,
|
|
151
|
+
* `message` 是给 Manager 看的原因(含输出尾部),与 Business 直连时的报错相同。
|
|
152
|
+
*/
|
|
153
|
+
detail: z.enum(['ready', 'no_package_json', 'installed', 'install_failed']),
|
|
154
|
+
message: z.string().max(2_048).optional(),
|
|
155
|
+
})
|
|
156
|
+
.strict(),
|
|
108
157
|
z
|
|
109
158
|
.object({
|
|
110
159
|
outcome: z.literal('settled'),
|
|
@@ -133,6 +182,7 @@ export const agentOpenCodeResultSchema = z.union([
|
|
|
133
182
|
lastWorkEventType: z.string().max(64).optional(),
|
|
134
183
|
keepaliveAlive: z.boolean().optional(),
|
|
135
184
|
error: z.string().max(128).optional(),
|
|
185
|
+
activity: agentOpenCodeActivitySchema.optional(),
|
|
136
186
|
})
|
|
137
187
|
.strict(),
|
|
138
188
|
z
|
|
@@ -154,6 +204,17 @@ export const agentOpenCodeResultSchema = z.union([
|
|
|
154
204
|
error: z.string().max(128).optional(),
|
|
155
205
|
})
|
|
156
206
|
.strict(),
|
|
207
|
+
z
|
|
208
|
+
.object({
|
|
209
|
+
outcome: z.literal('settled'),
|
|
210
|
+
kind: z.literal('delivery'),
|
|
211
|
+
/** skipped:运行不属于本会话、未完成,或没有挂在 execution / issue 上(与 Business 返回 null 相同)。 */
|
|
212
|
+
status: z.enum(['completed', 'skipped']),
|
|
213
|
+
recordPath: z.string().max(4096).optional(),
|
|
214
|
+
changedFiles: z.number().int().nonnegative().optional(),
|
|
215
|
+
workspaceRevision: z.string().max(64).nullable().optional(),
|
|
216
|
+
})
|
|
217
|
+
.strict(),
|
|
157
218
|
z
|
|
158
219
|
.object({
|
|
159
220
|
outcome: z.literal('settled'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-opencode.js","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/agent-opencode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC5C,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAC7D,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;AAC/B,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAErE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,eAAe;IACf,wBAAwB;IACxB,gBAAgB;IAChB,QAAQ;IACR,SAAS;IACT,OAAO;IACP,SAAS;IACT,QAAQ;IACR,cAAc;IACd,eAAe;
|
|
1
|
+
{"version":3,"file":"agent-opencode.js","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/agent-opencode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GA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