@playcraft/common 0.1.0 → 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.
- package/dist/cloud-workspace/runtime/agent-background-processes.d.ts +68 -0
- package/dist/cloud-workspace/runtime/agent-background-processes.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/agent-background-processes.js +60 -0
- package/dist/cloud-workspace/runtime/agent-background-processes.js.map +1 -0
- package/dist/cloud-workspace/runtime/agent-chat-flush.d.ts +3 -5
- package/dist/cloud-workspace/runtime/agent-chat-flush.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/agent-chat-flush.js +2 -6
- package/dist/cloud-workspace/runtime/agent-chat-flush.js.map +1 -1
- package/dist/cloud-workspace/runtime/agent-command.d.ts +25 -3
- package/dist/cloud-workspace/runtime/agent-command.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/agent-command.js +15 -0
- package/dist/cloud-workspace/runtime/agent-command.js.map +1 -1
- package/dist/cloud-workspace/runtime/agent-competitor-report.d.ts +143 -0
- package/dist/cloud-workspace/runtime/agent-competitor-report.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/agent-competitor-report.js +115 -0
- package/dist/cloud-workspace/runtime/agent-competitor-report.js.map +1 -0
- package/dist/cloud-workspace/runtime/agent-issue-artifacts.d.ts +90 -0
- package/dist/cloud-workspace/runtime/agent-issue-artifacts.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/agent-issue-artifacts.js +60 -0
- package/dist/cloud-workspace/runtime/agent-issue-artifacts.js.map +1 -0
- package/dist/cloud-workspace/runtime/agent-lifecycle.d.ts +5 -3
- package/dist/cloud-workspace/runtime/agent-lifecycle.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/agent-lifecycle.js +5 -0
- package/dist/cloud-workspace/runtime/agent-lifecycle.js.map +1 -1
- package/dist/cloud-workspace/runtime/agent-opencode-gateway.d.ts +56 -2
- package/dist/cloud-workspace/runtime/agent-opencode-gateway.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/agent-opencode-gateway.js +40 -1
- package/dist/cloud-workspace/runtime/agent-opencode-gateway.js.map +1 -1
- package/dist/cloud-workspace/runtime/agent-opencode.d.ts +170 -4
- package/dist/cloud-workspace/runtime/agent-opencode.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/agent-opencode.js +64 -3
- package/dist/cloud-workspace/runtime/agent-opencode.js.map +1 -1
- package/dist/cloud-workspace/runtime/agent-promotion.d.ts +1 -0
- package/dist/cloud-workspace/runtime/agent-promotion.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/agent-promotion.js +5 -1
- package/dist/cloud-workspace/runtime/agent-promotion.js.map +1 -1
- package/dist/cloud-workspace/runtime/agent-source-project.d.ts +126 -0
- package/dist/cloud-workspace/runtime/agent-source-project.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/agent-source-project.js +95 -0
- package/dist/cloud-workspace/runtime/agent-source-project.js.map +1 -0
- package/dist/cloud-workspace/runtime/agent-variant-chat.d.ts +9 -0
- package/dist/cloud-workspace/runtime/agent-variant-chat.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/agent-variant-chat.js +23 -0
- package/dist/cloud-workspace/runtime/agent-variant-chat.js.map +1 -0
- package/dist/cloud-workspace/runtime/agent-variant-git.d.ts +75 -0
- package/dist/cloud-workspace/runtime/agent-variant-git.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/agent-variant-git.js +62 -0
- package/dist/cloud-workspace/runtime/agent-variant-git.js.map +1 -0
- package/dist/cloud-workspace/runtime/capabilities.d.ts +1 -1
- package/dist/cloud-workspace/runtime/git-auth-mode.d.ts +35 -0
- package/dist/cloud-workspace/runtime/git-auth-mode.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/git-auth-mode.js +73 -0
- package/dist/cloud-workspace/runtime/git-auth-mode.js.map +1 -0
- package/dist/cloud-workspace/runtime/handshake.d.ts +1 -1
- package/dist/cloud-workspace/runtime/index.d.ts +8 -1
- package/dist/cloud-workspace/runtime/index.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/index.js +8 -1
- package/dist/cloud-workspace/runtime/index.js.map +1 -1
- package/dist/cloud-workspace/runtime/native-history.d.ts +66 -0
- package/dist/cloud-workspace/runtime/native-history.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/native-history.js +127 -0
- package/dist/cloud-workspace/runtime/native-history.js.map +1 -0
- package/dist/cloud-workspace/runtime/workspace-binding.d.ts +32 -3
- package/dist/cloud-workspace/runtime/workspace-binding.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/workspace-binding.js +9 -3
- package/dist/cloud-workspace/runtime/workspace-binding.js.map +1 -1
- package/package.json +1 -1
- package/dist/cloud-workspace/runtime/agent-codebuddy.d.ts +0 -266
- package/dist/cloud-workspace/runtime/agent-codebuddy.d.ts.map +0 -1
- package/dist/cloud-workspace/runtime/agent-codebuddy.js +0 -189
- package/dist/cloud-workspace/runtime/agent-codebuddy.js.map +0 -1
|
@@ -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,19 +36,78 @@ 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>;
|
|
41
84
|
phase: z.ZodOptional<z.ZodEnum<{
|
|
85
|
+
created: "created";
|
|
42
86
|
prompting: "prompting";
|
|
43
87
|
working: "working";
|
|
44
|
-
created: "created";
|
|
45
88
|
}>>;
|
|
46
89
|
lastWorkEventType: z.ZodOptional<z.ZodString>;
|
|
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,24 +239,44 @@ 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<{
|
|
146
251
|
outcome: z.ZodLiteral<"running">;
|
|
147
252
|
openCodeSessionId: z.ZodOptional<z.ZodString>;
|
|
148
253
|
phase: z.ZodOptional<z.ZodEnum<{
|
|
254
|
+
created: "created";
|
|
149
255
|
prompting: "prompting";
|
|
150
256
|
working: "working";
|
|
151
|
-
created: "created";
|
|
152
257
|
}>>;
|
|
153
258
|
lastWorkEventType: z.ZodOptional<z.ZodString>;
|
|
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":"AA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,CAAC;QAC3B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QACvC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QACvC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KACtC,CAAC;SACD,MAAM,EAAE;CACZ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACzC,MAAM,CAAC;IACN,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;IACjB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC;IACpC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;IAC7C,MAAM,EAAE,yBAAyB;CAClC,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -5,6 +5,7 @@ export declare const agentPromotionRequestSchema: z.ZodObject<{
|
|
|
5
5
|
claimToken: z.ZodString;
|
|
6
6
|
writerEpoch: z.ZodNumber;
|
|
7
7
|
settledOnly: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
+
resume: z.ZodDefault<z.ZodBoolean>;
|
|
8
9
|
}, z.core.$strict>;
|
|
9
10
|
export declare const agentPromotionResponseSchema: z.ZodObject<{
|
|
10
11
|
operationId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-promotion.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/agent-promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,6FAA6F;AAC7F,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"agent-promotion.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/agent-promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,6FAA6F;AAC7F,eAAO,MAAM,2BAA2B;;;;;;kBAWpC,CAAC;AAEL,eAAO,MAAM,4BAA4B;;;;;;;;kBAO9B,CAAC;AAEZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -6,8 +6,12 @@ export const agentPromotionRequestSchema = z
|
|
|
6
6
|
claimToken: z.string().uuid(),
|
|
7
7
|
writerEpoch: z.number().int().positive().max(2_147_483_647),
|
|
8
8
|
settledOnly: z.boolean().default(false),
|
|
9
|
+
resume: z.boolean().default(false),
|
|
9
10
|
})
|
|
10
|
-
.strict()
|
|
11
|
+
.strict()
|
|
12
|
+
.refine((value) => !(value.settledOnly && value.resume), {
|
|
13
|
+
message: 'settledOnly and resume are exclusive',
|
|
14
|
+
});
|
|
11
15
|
export const agentPromotionResponseSchema = z
|
|
12
16
|
.object({
|
|
13
17
|
operationId: z.string().uuid(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-promotion.js","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/agent-promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,6FAA6F;AAC7F,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACzC,MAAM,CAAC;IACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC;IACrD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC7B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,aAAa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AC7B,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const agentSourceProjectActions: readonly ["materialize", "install_competitor_skill", "settled"];
|
|
3
|
+
export declare const agentSourceProjectKinds: readonly ["session", "manager", "execution"];
|
|
4
|
+
/**
|
|
5
|
+
* `session`:会话准备的完整顺序(绑定项目 > 来源工程 > 竞品仓库)。
|
|
6
|
+
* `competitor`:会话中途进入竞品模式时只 clone 竞品仓库;已绑定项目的会话不动工作目录。
|
|
7
|
+
*/
|
|
8
|
+
export declare const agentSourceProjectScopes: readonly ["session", "competitor"];
|
|
9
|
+
export declare const agentSourceProjectRequestSchema: z.ZodObject<{
|
|
10
|
+
action: z.ZodEnum<{
|
|
11
|
+
settled: "settled";
|
|
12
|
+
materialize: "materialize";
|
|
13
|
+
install_competitor_skill: "install_competitor_skill";
|
|
14
|
+
}>;
|
|
15
|
+
sessionId: z.ZodString;
|
|
16
|
+
requestId: z.ZodString;
|
|
17
|
+
writerEpoch: z.ZodNumber;
|
|
18
|
+
workspaceId: z.ZodString;
|
|
19
|
+
kind: z.ZodEnum<{
|
|
20
|
+
session: "session";
|
|
21
|
+
manager: "manager";
|
|
22
|
+
execution: "execution";
|
|
23
|
+
}>;
|
|
24
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
26
|
+
issueId: z.ZodOptional<z.ZodString>;
|
|
27
|
+
claimToken: z.ZodOptional<z.ZodString>;
|
|
28
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
session: "session";
|
|
30
|
+
competitor: "competitor";
|
|
31
|
+
}>>;
|
|
32
|
+
settledOnly: z.ZodDefault<z.ZodBoolean>;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
/** 物化的来源:`none` 表示会话还没有可物化的来源(空工作目录不是错误)。 */
|
|
35
|
+
export declare const agentSourceProjectSources: readonly ["bound", "source", "competitor", "none"];
|
|
36
|
+
export declare const agentSourceProjectFailureCodes: readonly ["bound_no_repo", "bound_clone_failed", "source_incomplete", "source_no_repo", "source_clone_failed", "competitor_clone_failed"];
|
|
37
|
+
export declare const agentSourceProjectResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
38
|
+
outcome: z.ZodLiteral<"uncertain">;
|
|
39
|
+
error: z.ZodString;
|
|
40
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
41
|
+
outcome: z.ZodLiteral<"settled">;
|
|
42
|
+
kind: z.ZodLiteral<"materialize">;
|
|
43
|
+
source: z.ZodEnum<{
|
|
44
|
+
none: "none";
|
|
45
|
+
source: "source";
|
|
46
|
+
bound: "bound";
|
|
47
|
+
competitor: "competitor";
|
|
48
|
+
}>;
|
|
49
|
+
status: z.ZodEnum<{
|
|
50
|
+
failed: "failed";
|
|
51
|
+
skipped: "skipped";
|
|
52
|
+
ready: "ready";
|
|
53
|
+
}>;
|
|
54
|
+
reused: z.ZodBoolean;
|
|
55
|
+
code: z.ZodOptional<z.ZodEnum<{
|
|
56
|
+
bound_no_repo: "bound_no_repo";
|
|
57
|
+
bound_clone_failed: "bound_clone_failed";
|
|
58
|
+
source_incomplete: "source_incomplete";
|
|
59
|
+
source_no_repo: "source_no_repo";
|
|
60
|
+
source_clone_failed: "source_clone_failed";
|
|
61
|
+
competitor_clone_failed: "competitor_clone_failed";
|
|
62
|
+
}>>;
|
|
63
|
+
message: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
65
|
+
outcome: z.ZodLiteral<"settled">;
|
|
66
|
+
kind: z.ZodLiteral<"competitor_skill">;
|
|
67
|
+
status: z.ZodEnum<{
|
|
68
|
+
installed: "installed";
|
|
69
|
+
unavailable: "unavailable";
|
|
70
|
+
not_applicable: "not_applicable";
|
|
71
|
+
}>;
|
|
72
|
+
skillDir: z.ZodNullable<z.ZodString>;
|
|
73
|
+
}, z.core.$strict>]>;
|
|
74
|
+
export declare const agentSourceProjectResponseSchema: z.ZodObject<{
|
|
75
|
+
requestId: z.ZodString;
|
|
76
|
+
operationId: z.ZodString;
|
|
77
|
+
action: z.ZodEnum<{
|
|
78
|
+
settled: "settled";
|
|
79
|
+
materialize: "materialize";
|
|
80
|
+
install_competitor_skill: "install_competitor_skill";
|
|
81
|
+
}>;
|
|
82
|
+
inputHash: z.ZodString;
|
|
83
|
+
result: z.ZodUnion<readonly [z.ZodObject<{
|
|
84
|
+
outcome: z.ZodLiteral<"uncertain">;
|
|
85
|
+
error: z.ZodString;
|
|
86
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
87
|
+
outcome: z.ZodLiteral<"settled">;
|
|
88
|
+
kind: z.ZodLiteral<"materialize">;
|
|
89
|
+
source: z.ZodEnum<{
|
|
90
|
+
none: "none";
|
|
91
|
+
source: "source";
|
|
92
|
+
bound: "bound";
|
|
93
|
+
competitor: "competitor";
|
|
94
|
+
}>;
|
|
95
|
+
status: z.ZodEnum<{
|
|
96
|
+
failed: "failed";
|
|
97
|
+
skipped: "skipped";
|
|
98
|
+
ready: "ready";
|
|
99
|
+
}>;
|
|
100
|
+
reused: z.ZodBoolean;
|
|
101
|
+
code: z.ZodOptional<z.ZodEnum<{
|
|
102
|
+
bound_no_repo: "bound_no_repo";
|
|
103
|
+
bound_clone_failed: "bound_clone_failed";
|
|
104
|
+
source_incomplete: "source_incomplete";
|
|
105
|
+
source_no_repo: "source_no_repo";
|
|
106
|
+
source_clone_failed: "source_clone_failed";
|
|
107
|
+
competitor_clone_failed: "competitor_clone_failed";
|
|
108
|
+
}>>;
|
|
109
|
+
message: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
111
|
+
outcome: z.ZodLiteral<"settled">;
|
|
112
|
+
kind: z.ZodLiteral<"competitor_skill">;
|
|
113
|
+
status: z.ZodEnum<{
|
|
114
|
+
installed: "installed";
|
|
115
|
+
unavailable: "unavailable";
|
|
116
|
+
not_applicable: "not_applicable";
|
|
117
|
+
}>;
|
|
118
|
+
skillDir: z.ZodNullable<z.ZodString>;
|
|
119
|
+
}, z.core.$strict>]>;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
export type AgentSourceProjectAction = (typeof agentSourceProjectActions)[number];
|
|
122
|
+
export type AgentSourceProjectScope = (typeof agentSourceProjectScopes)[number];
|
|
123
|
+
export type AgentSourceProjectRequest = z.infer<typeof agentSourceProjectRequestSchema>;
|
|
124
|
+
export type AgentSourceProjectResult = z.infer<typeof agentSourceProjectResultSchema>;
|
|
125
|
+
export type AgentSourceProjectResponse = z.infer<typeof agentSourceProjectResponseSchema>;
|
|
126
|
+
//# sourceMappingURL=agent-source-project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-source-project.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/agent-source-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,yBAAyB,iEAI5B,CAAC;AACX,eAAO,MAAM,uBAAuB,8CAA+C,CAAC;AACpF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,oCAAqC,CAAC;AAE3E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;kBAwB8C,CAAC;AAE3F,6CAA6C;AAC7C,eAAO,MAAM,yBAAyB,oDAAqD,CAAC;AAE5F,eAAO,MAAM,8BAA8B,2IAOjC,CAAC;AAEX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA2BzC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAQlC,CAAC;AAEZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAClF,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|