@agent-phonon/protocol 0.9.0 → 0.10.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/README.md +35 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/native-version.d.ts +6 -0
- package/dist/native-version.d.ts.map +1 -0
- package/dist/native-version.js +41 -0
- package/dist/native-version.js.map +1 -0
- package/dist/schemas/capabilities.d.ts +9 -0
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +3 -0
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/common.d.ts +4 -4
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/common.js +9 -0
- package/dist/schemas/common.js.map +1 -1
- package/dist/schemas/compression.d.ts +191 -0
- package/dist/schemas/compression.d.ts.map +1 -0
- package/dist/schemas/compression.js +18 -0
- package/dist/schemas/compression.js.map +1 -0
- package/dist/schemas/conversation-archive.d.ts +1021 -0
- package/dist/schemas/conversation-archive.d.ts.map +1 -0
- package/dist/schemas/conversation-archive.js +148 -0
- package/dist/schemas/conversation-archive.js.map +1 -0
- package/dist/schemas/conversation-board.d.ts +428 -0
- package/dist/schemas/conversation-board.d.ts.map +1 -0
- package/dist/schemas/conversation-board.js +32 -0
- package/dist/schemas/conversation-board.js.map +1 -0
- package/dist/schemas/conversation-message.d.ts +658 -0
- package/dist/schemas/conversation-message.d.ts.map +1 -0
- package/dist/schemas/conversation-message.js +42 -0
- package/dist/schemas/conversation-message.js.map +1 -0
- package/dist/schemas/conversation-workflow.d.ts +1201 -0
- package/dist/schemas/conversation-workflow.d.ts.map +1 -0
- package/dist/schemas/conversation-workflow.js +68 -0
- package/dist/schemas/conversation-workflow.js.map +1 -0
- package/dist/schemas/device.d.ts +198 -2
- package/dist/schemas/device.d.ts.map +1 -1
- package/dist/schemas/device.js +29 -1
- package/dist/schemas/device.js.map +1 -1
- package/dist/schemas/discovery.d.ts +107 -0
- package/dist/schemas/discovery.d.ts.map +1 -1
- package/dist/schemas/discovery.js +2 -0
- package/dist/schemas/discovery.js.map +1 -1
- package/dist/schemas/document.d.ts +56 -26
- package/dist/schemas/document.d.ts.map +1 -1
- package/dist/schemas/document.js +11 -0
- package/dist/schemas/document.js.map +1 -1
- package/dist/schemas/employee.d.ts +139 -0
- package/dist/schemas/employee.d.ts.map +1 -0
- package/dist/schemas/employee.js +17 -0
- package/dist/schemas/employee.js.map +1 -0
- package/dist/schemas/env.d.ts +15 -15
- package/dist/schemas/env.d.ts.map +1 -1
- package/dist/schemas/env.js +1 -1
- package/dist/schemas/env.js.map +1 -1
- package/dist/schemas/file.d.ts +6 -6
- package/dist/schemas/hook.d.ts +4 -4
- package/dist/schemas/interaction.d.ts +363 -2
- package/dist/schemas/interaction.d.ts.map +1 -1
- package/dist/schemas/interaction.js +28 -1
- package/dist/schemas/interaction.js.map +1 -1
- package/dist/schemas/jsonrpc.d.ts +19 -19
- package/dist/schemas/maintenance.d.ts +822 -0
- package/dist/schemas/maintenance.d.ts.map +1 -0
- package/dist/schemas/maintenance.js +166 -0
- package/dist/schemas/maintenance.js.map +1 -0
- package/dist/schemas/managed-mcp.d.ts +116 -0
- package/dist/schemas/managed-mcp.d.ts.map +1 -0
- package/dist/schemas/managed-mcp.js +23 -0
- package/dist/schemas/managed-mcp.js.map +1 -0
- package/dist/schemas/methods.d.ts +22195 -2371
- package/dist/schemas/methods.d.ts.map +1 -1
- package/dist/schemas/methods.js +181 -6
- package/dist/schemas/methods.js.map +1 -1
- package/dist/schemas/native-stop.d.ts +162 -0
- package/dist/schemas/native-stop.d.ts.map +1 -0
- package/dist/schemas/native-stop.js +14 -0
- package/dist/schemas/native-stop.js.map +1 -0
- package/dist/schemas/policy.d.ts +61 -2
- package/dist/schemas/policy.d.ts.map +1 -1
- package/dist/schemas/policy.js +33 -0
- package/dist/schemas/policy.js.map +1 -1
- package/dist/schemas/project-coordination.d.ts +1956 -0
- package/dist/schemas/project-coordination.d.ts.map +1 -0
- package/dist/schemas/project-coordination.js +81 -0
- package/dist/schemas/project-coordination.js.map +1 -0
- package/dist/schemas/project.d.ts +771 -53
- package/dist/schemas/project.d.ts.map +1 -1
- package/dist/schemas/project.js +60 -5
- package/dist/schemas/project.js.map +1 -1
- package/dist/schemas/reasoning.d.ts +26 -0
- package/dist/schemas/reasoning.d.ts.map +1 -0
- package/dist/schemas/reasoning.js +10 -0
- package/dist/schemas/reasoning.js.map +1 -0
- package/dist/schemas/schedule.d.ts +14653 -4527
- package/dist/schemas/schedule.d.ts.map +1 -1
- package/dist/schemas/schedule.js +55 -8
- package/dist/schemas/schedule.js.map +1 -1
- package/dist/schemas/session.d.ts +1558 -49
- package/dist/schemas/session.d.ts.map +1 -1
- package/dist/schemas/session.js +27 -16
- package/dist/schemas/session.js.map +1 -1
- package/dist/schemas/skill.d.ts +1009 -8
- package/dist/schemas/skill.d.ts.map +1 -1
- package/dist/schemas/skill.js +39 -0
- package/dist/schemas/skill.js.map +1 -1
- package/dist/schemas/stream.d.ts +1060 -67
- package/dist/schemas/stream.d.ts.map +1 -1
- package/dist/schemas/stream.js +18 -3
- package/dist/schemas/stream.js.map +1 -1
- package/dist/schemas/workflow.d.ts +2764 -255
- package/dist/schemas/workflow.d.ts.map +1 -1
- package/dist/schemas/workflow.js +69 -1
- package/dist/schemas/workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +12 -0
- package/src/native-version.ts +30 -0
- package/src/schemas/capabilities.ts +3 -0
- package/src/schemas/common.ts +9 -0
- package/src/schemas/compression.ts +19 -0
- package/src/schemas/conversation-archive.ts +155 -0
- package/src/schemas/conversation-board.ts +36 -0
- package/src/schemas/conversation-message.ts +46 -0
- package/src/schemas/conversation-workflow.ts +62 -0
- package/src/schemas/device.ts +32 -1
- package/src/schemas/discovery.ts +2 -0
- package/src/schemas/document.ts +13 -0
- package/src/schemas/employee.ts +19 -0
- package/src/schemas/env.ts +1 -1
- package/src/schemas/interaction.ts +32 -1
- package/src/schemas/maintenance.ts +204 -0
- package/src/schemas/managed-mcp.ts +25 -0
- package/src/schemas/methods.ts +208 -1
- package/src/schemas/native-stop.ts +16 -0
- package/src/schemas/policy.ts +33 -0
- package/src/schemas/project-coordination.ts +90 -0
- package/src/schemas/project.ts +72 -5
- package/src/schemas/reasoning.ts +13 -0
- package/src/schemas/schedule.ts +63 -8
- package/src/schemas/session.ts +30 -18
- package/src/schemas/skill.ts +52 -0
- package/src/schemas/stream.ts +22 -3
- package/src/schemas/workflow.ts +82 -1
package/dist/schemas/skill.d.ts
CHANGED
|
@@ -10,6 +10,29 @@ import { z } from "zod";
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const SkillScope: z.ZodEnum<["global", "project"]>;
|
|
12
12
|
export type SkillScope = z.infer<typeof SkillScope>;
|
|
13
|
+
export declare const SkillSelection: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
14
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
15
|
+
version: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
16
|
+
scope: z.ZodOptional<z.ZodEnum<["global", "project"]>>;
|
|
17
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
19
|
+
installationId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, "strict", z.ZodTypeAny, {
|
|
21
|
+
name: string;
|
|
22
|
+
version?: string | undefined;
|
|
23
|
+
scope?: "project" | "global" | undefined;
|
|
24
|
+
force?: boolean | undefined;
|
|
25
|
+
revision?: string | undefined;
|
|
26
|
+
installationId?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
name: string;
|
|
29
|
+
version?: string | undefined;
|
|
30
|
+
scope?: "project" | "global" | undefined;
|
|
31
|
+
force?: boolean | undefined;
|
|
32
|
+
revision?: string | undefined;
|
|
33
|
+
installationId?: string | undefined;
|
|
34
|
+
}>]>;
|
|
35
|
+
export type SkillSelection = z.infer<typeof SkillSelection>;
|
|
13
36
|
/** skill 来源:内联内容、本地路径、或远端引用。 */
|
|
14
37
|
export declare const SkillSource: z.ZodUnion<[z.ZodObject<{
|
|
15
38
|
kind: z.ZodLiteral<"inline">;
|
|
@@ -33,14 +56,14 @@ export declare const SkillSource: z.ZodUnion<[z.ZodObject<{
|
|
|
33
56
|
kind: "archive";
|
|
34
57
|
format: "tar.gz";
|
|
35
58
|
contentBase64: string;
|
|
36
|
-
sizeBytes?: number | undefined;
|
|
37
59
|
sha256?: string | undefined;
|
|
60
|
+
sizeBytes?: number | undefined;
|
|
38
61
|
}, {
|
|
39
62
|
kind: "archive";
|
|
40
63
|
format: "tar.gz";
|
|
41
64
|
contentBase64: string;
|
|
42
|
-
sizeBytes?: number | undefined;
|
|
43
65
|
sha256?: string | undefined;
|
|
66
|
+
sizeBytes?: number | undefined;
|
|
44
67
|
}>, z.ZodObject<{
|
|
45
68
|
kind: z.ZodLiteral<"localPath">;
|
|
46
69
|
path: z.ZodString;
|
|
@@ -85,31 +108,59 @@ export declare const SkillDescriptor: z.ZodObject<{
|
|
|
85
108
|
/** 安装落地路径(设备本地)。 */
|
|
86
109
|
installedPath: z.ZodOptional<z.ZodString>;
|
|
87
110
|
installedAt: z.ZodOptional<z.ZodString>;
|
|
111
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
112
|
+
publication: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
kind: z.ZodLiteral<"immutable">;
|
|
114
|
+
versionId: z.ZodString;
|
|
115
|
+
treeHash: z.ZodString;
|
|
116
|
+
}, "strict", z.ZodTypeAny, {
|
|
117
|
+
kind: "immutable";
|
|
118
|
+
versionId: string;
|
|
119
|
+
treeHash: string;
|
|
120
|
+
}, {
|
|
121
|
+
kind: "immutable";
|
|
122
|
+
versionId: string;
|
|
123
|
+
treeHash: string;
|
|
124
|
+
}>>;
|
|
88
125
|
}, "strip", z.ZodTypeAny, {
|
|
89
126
|
agent: string & z.BRAND<"AgentId">;
|
|
90
127
|
name: string;
|
|
91
128
|
scope: "project" | "global";
|
|
92
129
|
version?: string | undefined;
|
|
130
|
+
revision?: string | undefined;
|
|
93
131
|
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
94
132
|
hash?: string | undefined;
|
|
95
133
|
compatibleAgents?: (string & z.BRAND<"AgentId">)[] | undefined;
|
|
96
134
|
sourceTrusted?: boolean | undefined;
|
|
97
135
|
installedPath?: string | undefined;
|
|
98
136
|
installedAt?: string | undefined;
|
|
137
|
+
publication?: {
|
|
138
|
+
kind: "immutable";
|
|
139
|
+
versionId: string;
|
|
140
|
+
treeHash: string;
|
|
141
|
+
} | undefined;
|
|
99
142
|
}, {
|
|
100
143
|
agent: string;
|
|
101
144
|
name: string;
|
|
102
145
|
scope: "project" | "global";
|
|
103
146
|
version?: string | undefined;
|
|
147
|
+
revision?: string | undefined;
|
|
104
148
|
projectId?: string | undefined;
|
|
105
149
|
hash?: string | undefined;
|
|
106
150
|
compatibleAgents?: string[] | undefined;
|
|
107
151
|
sourceTrusted?: boolean | undefined;
|
|
108
152
|
installedPath?: string | undefined;
|
|
109
153
|
installedAt?: string | undefined;
|
|
154
|
+
publication?: {
|
|
155
|
+
kind: "immutable";
|
|
156
|
+
versionId: string;
|
|
157
|
+
treeHash: string;
|
|
158
|
+
} | undefined;
|
|
110
159
|
}>;
|
|
111
160
|
export type SkillDescriptor = z.infer<typeof SkillDescriptor>;
|
|
112
161
|
export declare const SkillInstallParams: z.ZodEffects<z.ZodObject<{
|
|
162
|
+
/** Exact parsed request identity; changed payloads cannot reuse a confirmed receipt. */
|
|
163
|
+
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
113
164
|
/** 目标 agent。 */
|
|
114
165
|
agent: z.ZodBranded<z.ZodString, "AgentId">;
|
|
115
166
|
name: z.ZodString;
|
|
@@ -138,14 +189,14 @@ export declare const SkillInstallParams: z.ZodEffects<z.ZodObject<{
|
|
|
138
189
|
kind: "archive";
|
|
139
190
|
format: "tar.gz";
|
|
140
191
|
contentBase64: string;
|
|
141
|
-
sizeBytes?: number | undefined;
|
|
142
192
|
sha256?: string | undefined;
|
|
193
|
+
sizeBytes?: number | undefined;
|
|
143
194
|
}, {
|
|
144
195
|
kind: "archive";
|
|
145
196
|
format: "tar.gz";
|
|
146
197
|
contentBase64: string;
|
|
147
|
-
sizeBytes?: number | undefined;
|
|
148
198
|
sha256?: string | undefined;
|
|
199
|
+
sizeBytes?: number | undefined;
|
|
149
200
|
}>, z.ZodObject<{
|
|
150
201
|
kind: z.ZodLiteral<"localPath">;
|
|
151
202
|
path: z.ZodString;
|
|
@@ -180,8 +231,8 @@ export declare const SkillInstallParams: z.ZodEffects<z.ZodObject<{
|
|
|
180
231
|
kind: "archive";
|
|
181
232
|
format: "tar.gz";
|
|
182
233
|
contentBase64: string;
|
|
183
|
-
sizeBytes?: number | undefined;
|
|
184
234
|
sha256?: string | undefined;
|
|
235
|
+
sizeBytes?: number | undefined;
|
|
185
236
|
} | {
|
|
186
237
|
path: string;
|
|
187
238
|
kind: "localPath";
|
|
@@ -191,6 +242,7 @@ export declare const SkillInstallParams: z.ZodEffects<z.ZodObject<{
|
|
|
191
242
|
sha256?: string | undefined;
|
|
192
243
|
};
|
|
193
244
|
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
245
|
+
clientRequestId?: string | undefined;
|
|
194
246
|
}, {
|
|
195
247
|
agent: string;
|
|
196
248
|
name: string;
|
|
@@ -202,8 +254,8 @@ export declare const SkillInstallParams: z.ZodEffects<z.ZodObject<{
|
|
|
202
254
|
kind: "archive";
|
|
203
255
|
format: "tar.gz";
|
|
204
256
|
contentBase64: string;
|
|
205
|
-
sizeBytes?: number | undefined;
|
|
206
257
|
sha256?: string | undefined;
|
|
258
|
+
sizeBytes?: number | undefined;
|
|
207
259
|
} | {
|
|
208
260
|
path: string;
|
|
209
261
|
kind: "localPath";
|
|
@@ -213,6 +265,7 @@ export declare const SkillInstallParams: z.ZodEffects<z.ZodObject<{
|
|
|
213
265
|
sha256?: string | undefined;
|
|
214
266
|
};
|
|
215
267
|
projectId?: string | undefined;
|
|
268
|
+
clientRequestId?: string | undefined;
|
|
216
269
|
}>, {
|
|
217
270
|
agent: string & z.BRAND<"AgentId">;
|
|
218
271
|
name: string;
|
|
@@ -224,8 +277,8 @@ export declare const SkillInstallParams: z.ZodEffects<z.ZodObject<{
|
|
|
224
277
|
kind: "archive";
|
|
225
278
|
format: "tar.gz";
|
|
226
279
|
contentBase64: string;
|
|
227
|
-
sizeBytes?: number | undefined;
|
|
228
280
|
sha256?: string | undefined;
|
|
281
|
+
sizeBytes?: number | undefined;
|
|
229
282
|
} | {
|
|
230
283
|
path: string;
|
|
231
284
|
kind: "localPath";
|
|
@@ -235,6 +288,7 @@ export declare const SkillInstallParams: z.ZodEffects<z.ZodObject<{
|
|
|
235
288
|
sha256?: string | undefined;
|
|
236
289
|
};
|
|
237
290
|
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
291
|
+
clientRequestId?: string | undefined;
|
|
238
292
|
}, {
|
|
239
293
|
agent: string;
|
|
240
294
|
name: string;
|
|
@@ -246,8 +300,8 @@ export declare const SkillInstallParams: z.ZodEffects<z.ZodObject<{
|
|
|
246
300
|
kind: "archive";
|
|
247
301
|
format: "tar.gz";
|
|
248
302
|
contentBase64: string;
|
|
249
|
-
sizeBytes?: number | undefined;
|
|
250
303
|
sha256?: string | undefined;
|
|
304
|
+
sizeBytes?: number | undefined;
|
|
251
305
|
} | {
|
|
252
306
|
path: string;
|
|
253
307
|
kind: "localPath";
|
|
@@ -257,6 +311,7 @@ export declare const SkillInstallParams: z.ZodEffects<z.ZodObject<{
|
|
|
257
311
|
sha256?: string | undefined;
|
|
258
312
|
};
|
|
259
313
|
projectId?: string | undefined;
|
|
314
|
+
clientRequestId?: string | undefined;
|
|
260
315
|
}>;
|
|
261
316
|
export type SkillInstallParams = z.infer<typeof SkillInstallParams>;
|
|
262
317
|
export declare const SkillInstallResult: z.ZodObject<{
|
|
@@ -279,28 +334,54 @@ export declare const SkillInstallResult: z.ZodObject<{
|
|
|
279
334
|
/** 安装落地路径(设备本地)。 */
|
|
280
335
|
installedPath: z.ZodOptional<z.ZodString>;
|
|
281
336
|
installedAt: z.ZodOptional<z.ZodString>;
|
|
337
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
338
|
+
publication: z.ZodOptional<z.ZodObject<{
|
|
339
|
+
kind: z.ZodLiteral<"immutable">;
|
|
340
|
+
versionId: z.ZodString;
|
|
341
|
+
treeHash: z.ZodString;
|
|
342
|
+
}, "strict", z.ZodTypeAny, {
|
|
343
|
+
kind: "immutable";
|
|
344
|
+
versionId: string;
|
|
345
|
+
treeHash: string;
|
|
346
|
+
}, {
|
|
347
|
+
kind: "immutable";
|
|
348
|
+
versionId: string;
|
|
349
|
+
treeHash: string;
|
|
350
|
+
}>>;
|
|
282
351
|
}, "strip", z.ZodTypeAny, {
|
|
283
352
|
agent: string & z.BRAND<"AgentId">;
|
|
284
353
|
name: string;
|
|
285
354
|
scope: "project" | "global";
|
|
286
355
|
version?: string | undefined;
|
|
356
|
+
revision?: string | undefined;
|
|
287
357
|
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
288
358
|
hash?: string | undefined;
|
|
289
359
|
compatibleAgents?: (string & z.BRAND<"AgentId">)[] | undefined;
|
|
290
360
|
sourceTrusted?: boolean | undefined;
|
|
291
361
|
installedPath?: string | undefined;
|
|
292
362
|
installedAt?: string | undefined;
|
|
363
|
+
publication?: {
|
|
364
|
+
kind: "immutable";
|
|
365
|
+
versionId: string;
|
|
366
|
+
treeHash: string;
|
|
367
|
+
} | undefined;
|
|
293
368
|
}, {
|
|
294
369
|
agent: string;
|
|
295
370
|
name: string;
|
|
296
371
|
scope: "project" | "global";
|
|
297
372
|
version?: string | undefined;
|
|
373
|
+
revision?: string | undefined;
|
|
298
374
|
projectId?: string | undefined;
|
|
299
375
|
hash?: string | undefined;
|
|
300
376
|
compatibleAgents?: string[] | undefined;
|
|
301
377
|
sourceTrusted?: boolean | undefined;
|
|
302
378
|
installedPath?: string | undefined;
|
|
303
379
|
installedAt?: string | undefined;
|
|
380
|
+
publication?: {
|
|
381
|
+
kind: "immutable";
|
|
382
|
+
versionId: string;
|
|
383
|
+
treeHash: string;
|
|
384
|
+
} | undefined;
|
|
304
385
|
}>;
|
|
305
386
|
}, "strip", z.ZodTypeAny, {
|
|
306
387
|
skill: {
|
|
@@ -308,12 +389,18 @@ export declare const SkillInstallResult: z.ZodObject<{
|
|
|
308
389
|
name: string;
|
|
309
390
|
scope: "project" | "global";
|
|
310
391
|
version?: string | undefined;
|
|
392
|
+
revision?: string | undefined;
|
|
311
393
|
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
312
394
|
hash?: string | undefined;
|
|
313
395
|
compatibleAgents?: (string & z.BRAND<"AgentId">)[] | undefined;
|
|
314
396
|
sourceTrusted?: boolean | undefined;
|
|
315
397
|
installedPath?: string | undefined;
|
|
316
398
|
installedAt?: string | undefined;
|
|
399
|
+
publication?: {
|
|
400
|
+
kind: "immutable";
|
|
401
|
+
versionId: string;
|
|
402
|
+
treeHash: string;
|
|
403
|
+
} | undefined;
|
|
317
404
|
};
|
|
318
405
|
}, {
|
|
319
406
|
skill: {
|
|
@@ -321,16 +408,824 @@ export declare const SkillInstallResult: z.ZodObject<{
|
|
|
321
408
|
name: string;
|
|
322
409
|
scope: "project" | "global";
|
|
323
410
|
version?: string | undefined;
|
|
411
|
+
revision?: string | undefined;
|
|
324
412
|
projectId?: string | undefined;
|
|
325
413
|
hash?: string | undefined;
|
|
326
414
|
compatibleAgents?: string[] | undefined;
|
|
327
415
|
sourceTrusted?: boolean | undefined;
|
|
328
416
|
installedPath?: string | undefined;
|
|
329
417
|
installedAt?: string | undefined;
|
|
418
|
+
publication?: {
|
|
419
|
+
kind: "immutable";
|
|
420
|
+
versionId: string;
|
|
421
|
+
treeHash: string;
|
|
422
|
+
} | undefined;
|
|
330
423
|
};
|
|
331
424
|
}>;
|
|
332
425
|
export type SkillInstallResult = z.infer<typeof SkillInstallResult>;
|
|
426
|
+
export declare const SkillPublishParams: z.ZodObject<{
|
|
427
|
+
clientRequestId: z.ZodString;
|
|
428
|
+
agent: z.ZodBranded<z.ZodString, "AgentId">;
|
|
429
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
430
|
+
scope: z.ZodDefault<z.ZodLiteral<"project">>;
|
|
431
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
432
|
+
baseRevision: z.ZodNullable<z.ZodString>;
|
|
433
|
+
expectedReceiverID: z.ZodOptional<z.ZodString>;
|
|
434
|
+
source: z.ZodUnion<[z.ZodObject<{
|
|
435
|
+
kind: z.ZodLiteral<"inline">;
|
|
436
|
+
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
kind: "inline";
|
|
439
|
+
files: Record<string, string>;
|
|
440
|
+
}, {
|
|
441
|
+
kind: "inline";
|
|
442
|
+
files: Record<string, string>;
|
|
443
|
+
}>, z.ZodObject<{
|
|
444
|
+
kind: z.ZodLiteral<"archive">;
|
|
445
|
+
/** v0 先支持 tar.gz;zip/archiveUrl 后续再加,避免安全边界没收稳。 */
|
|
446
|
+
format: z.ZodLiteral<"tar.gz">;
|
|
447
|
+
contentBase64: z.ZodString;
|
|
448
|
+
/** 强烈建议传;phonon 会校验内容 hash,防传输/供应链篡改。 */
|
|
449
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
450
|
+
/** 可选大小提示,便于 policy/日志;实际大小以 decode 后为准。 */
|
|
451
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
452
|
+
}, "strip", z.ZodTypeAny, {
|
|
453
|
+
kind: "archive";
|
|
454
|
+
format: "tar.gz";
|
|
455
|
+
contentBase64: string;
|
|
456
|
+
sha256?: string | undefined;
|
|
457
|
+
sizeBytes?: number | undefined;
|
|
458
|
+
}, {
|
|
459
|
+
kind: "archive";
|
|
460
|
+
format: "tar.gz";
|
|
461
|
+
contentBase64: string;
|
|
462
|
+
sha256?: string | undefined;
|
|
463
|
+
sizeBytes?: number | undefined;
|
|
464
|
+
}>]>;
|
|
465
|
+
}, "strict", z.ZodTypeAny, {
|
|
466
|
+
agent: string & z.BRAND<"AgentId">;
|
|
467
|
+
name: string;
|
|
468
|
+
scope: "project";
|
|
469
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
470
|
+
clientRequestId: string;
|
|
471
|
+
source: {
|
|
472
|
+
kind: "inline";
|
|
473
|
+
files: Record<string, string>;
|
|
474
|
+
} | {
|
|
475
|
+
kind: "archive";
|
|
476
|
+
format: "tar.gz";
|
|
477
|
+
contentBase64: string;
|
|
478
|
+
sha256?: string | undefined;
|
|
479
|
+
sizeBytes?: number | undefined;
|
|
480
|
+
};
|
|
481
|
+
baseRevision: string | null;
|
|
482
|
+
expectedReceiverID?: string | undefined;
|
|
483
|
+
}, {
|
|
484
|
+
agent: string;
|
|
485
|
+
name: string;
|
|
486
|
+
projectId: string;
|
|
487
|
+
clientRequestId: string;
|
|
488
|
+
source: {
|
|
489
|
+
kind: "inline";
|
|
490
|
+
files: Record<string, string>;
|
|
491
|
+
} | {
|
|
492
|
+
kind: "archive";
|
|
493
|
+
format: "tar.gz";
|
|
494
|
+
contentBase64: string;
|
|
495
|
+
sha256?: string | undefined;
|
|
496
|
+
sizeBytes?: number | undefined;
|
|
497
|
+
};
|
|
498
|
+
baseRevision: string | null;
|
|
499
|
+
scope?: "project" | undefined;
|
|
500
|
+
expectedReceiverID?: string | undefined;
|
|
501
|
+
}>;
|
|
502
|
+
export type SkillPublishParams = z.infer<typeof SkillPublishParams>;
|
|
503
|
+
export declare const SkillUnpublishParams: z.ZodObject<{
|
|
504
|
+
clientRequestId: z.ZodString;
|
|
505
|
+
agent: z.ZodBranded<z.ZodString, "AgentId">;
|
|
506
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
507
|
+
scope: z.ZodDefault<z.ZodLiteral<"project">>;
|
|
508
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
509
|
+
baseRevision: z.ZodString;
|
|
510
|
+
}, "strict", z.ZodTypeAny, {
|
|
511
|
+
agent: string & z.BRAND<"AgentId">;
|
|
512
|
+
name: string;
|
|
513
|
+
scope: "project";
|
|
514
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
515
|
+
clientRequestId: string;
|
|
516
|
+
baseRevision: string;
|
|
517
|
+
}, {
|
|
518
|
+
agent: string;
|
|
519
|
+
name: string;
|
|
520
|
+
projectId: string;
|
|
521
|
+
clientRequestId: string;
|
|
522
|
+
baseRevision: string;
|
|
523
|
+
scope?: "project" | undefined;
|
|
524
|
+
}>;
|
|
525
|
+
export type SkillUnpublishParams = z.infer<typeof SkillUnpublishParams>;
|
|
526
|
+
export declare const SkillUnpublishResult: z.ZodObject<{
|
|
527
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
528
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
529
|
+
deactivated: z.ZodLiteral<true>;
|
|
530
|
+
previousRevision: z.ZodString;
|
|
531
|
+
}, "strict", z.ZodTypeAny, {
|
|
532
|
+
name: string;
|
|
533
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
534
|
+
deactivated: true;
|
|
535
|
+
previousRevision: string;
|
|
536
|
+
}, {
|
|
537
|
+
name: string;
|
|
538
|
+
projectId: string;
|
|
539
|
+
deactivated: true;
|
|
540
|
+
previousRevision: string;
|
|
541
|
+
}>;
|
|
542
|
+
export type SkillUnpublishResult = z.infer<typeof SkillUnpublishResult>;
|
|
543
|
+
export declare const SkillInstallStatusParams: z.ZodEffects<z.ZodObject<{
|
|
544
|
+
clientRequestId: z.ZodString;
|
|
545
|
+
agent: z.ZodBranded<z.ZodString, "AgentId">;
|
|
546
|
+
name: z.ZodString;
|
|
547
|
+
scope: z.ZodEnum<["global", "project"]>;
|
|
548
|
+
projectId: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
|
|
549
|
+
includeReceiverIdentity: z.ZodOptional<z.ZodLiteral<true>>;
|
|
550
|
+
includeRecoveryContext: z.ZodOptional<z.ZodLiteral<true>>;
|
|
551
|
+
}, "strict", z.ZodTypeAny, {
|
|
552
|
+
agent: string & z.BRAND<"AgentId">;
|
|
553
|
+
name: string;
|
|
554
|
+
scope: "project" | "global";
|
|
555
|
+
clientRequestId: string;
|
|
556
|
+
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
557
|
+
includeReceiverIdentity?: true | undefined;
|
|
558
|
+
includeRecoveryContext?: true | undefined;
|
|
559
|
+
}, {
|
|
560
|
+
agent: string;
|
|
561
|
+
name: string;
|
|
562
|
+
scope: "project" | "global";
|
|
563
|
+
clientRequestId: string;
|
|
564
|
+
projectId?: string | undefined;
|
|
565
|
+
includeReceiverIdentity?: true | undefined;
|
|
566
|
+
includeRecoveryContext?: true | undefined;
|
|
567
|
+
}>, {
|
|
568
|
+
agent: string & z.BRAND<"AgentId">;
|
|
569
|
+
name: string;
|
|
570
|
+
scope: "project" | "global";
|
|
571
|
+
clientRequestId: string;
|
|
572
|
+
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
573
|
+
includeReceiverIdentity?: true | undefined;
|
|
574
|
+
includeRecoveryContext?: true | undefined;
|
|
575
|
+
}, {
|
|
576
|
+
agent: string;
|
|
577
|
+
name: string;
|
|
578
|
+
scope: "project" | "global";
|
|
579
|
+
clientRequestId: string;
|
|
580
|
+
projectId?: string | undefined;
|
|
581
|
+
includeReceiverIdentity?: true | undefined;
|
|
582
|
+
includeRecoveryContext?: true | undefined;
|
|
583
|
+
}>;
|
|
584
|
+
export type SkillInstallStatusParams = z.infer<typeof SkillInstallStatusParams>;
|
|
585
|
+
export declare const SkillInstallRecoveryContext: z.ZodEffects<z.ZodObject<{
|
|
586
|
+
revision: z.ZodString;
|
|
587
|
+
receiverID: z.ZodString;
|
|
588
|
+
originalReceiverID: z.ZodNullable<z.ZodString>;
|
|
589
|
+
fenced: z.ZodBoolean;
|
|
590
|
+
fenceID: z.ZodOptional<z.ZodString>;
|
|
591
|
+
}, "strict", z.ZodTypeAny, {
|
|
592
|
+
revision: string;
|
|
593
|
+
receiverID: string;
|
|
594
|
+
originalReceiverID: string | null;
|
|
595
|
+
fenced: boolean;
|
|
596
|
+
fenceID?: string | undefined;
|
|
597
|
+
}, {
|
|
598
|
+
revision: string;
|
|
599
|
+
receiverID: string;
|
|
600
|
+
originalReceiverID: string | null;
|
|
601
|
+
fenced: boolean;
|
|
602
|
+
fenceID?: string | undefined;
|
|
603
|
+
}>, {
|
|
604
|
+
revision: string;
|
|
605
|
+
receiverID: string;
|
|
606
|
+
originalReceiverID: string | null;
|
|
607
|
+
fenced: boolean;
|
|
608
|
+
fenceID?: string | undefined;
|
|
609
|
+
}, {
|
|
610
|
+
revision: string;
|
|
611
|
+
receiverID: string;
|
|
612
|
+
originalReceiverID: string | null;
|
|
613
|
+
fenced: boolean;
|
|
614
|
+
fenceID?: string | undefined;
|
|
615
|
+
}>;
|
|
616
|
+
export type SkillInstallRecoveryContext = z.infer<typeof SkillInstallRecoveryContext>;
|
|
617
|
+
export declare const SkillInstallStatusResult: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
|
|
618
|
+
clientRequestId: z.ZodString;
|
|
619
|
+
state: z.ZodLiteral<"not_found">;
|
|
620
|
+
found: z.ZodLiteral<false>;
|
|
621
|
+
outcomeKnown: z.ZodLiteral<false>;
|
|
622
|
+
}, "strict", z.ZodTypeAny, {
|
|
623
|
+
state: "not_found";
|
|
624
|
+
clientRequestId: string;
|
|
625
|
+
found: false;
|
|
626
|
+
outcomeKnown: false;
|
|
627
|
+
}, {
|
|
628
|
+
state: "not_found";
|
|
629
|
+
clientRequestId: string;
|
|
630
|
+
found: false;
|
|
631
|
+
outcomeKnown: false;
|
|
632
|
+
}>, z.ZodObject<{
|
|
633
|
+
state: z.ZodLiteral<"prepared">;
|
|
634
|
+
found: z.ZodLiteral<true>;
|
|
635
|
+
outcomeKnown: z.ZodLiteral<false>;
|
|
636
|
+
dispatchClaimed: z.ZodLiteral<false>;
|
|
637
|
+
clientRequestId: z.ZodString;
|
|
638
|
+
createdAt: z.ZodString;
|
|
639
|
+
updatedAt: z.ZodString;
|
|
640
|
+
receiverID: z.ZodOptional<z.ZodString>;
|
|
641
|
+
recovery: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
642
|
+
revision: z.ZodString;
|
|
643
|
+
receiverID: z.ZodString;
|
|
644
|
+
originalReceiverID: z.ZodNullable<z.ZodString>;
|
|
645
|
+
fenced: z.ZodBoolean;
|
|
646
|
+
fenceID: z.ZodOptional<z.ZodString>;
|
|
647
|
+
}, "strict", z.ZodTypeAny, {
|
|
648
|
+
revision: string;
|
|
649
|
+
receiverID: string;
|
|
650
|
+
originalReceiverID: string | null;
|
|
651
|
+
fenced: boolean;
|
|
652
|
+
fenceID?: string | undefined;
|
|
653
|
+
}, {
|
|
654
|
+
revision: string;
|
|
655
|
+
receiverID: string;
|
|
656
|
+
originalReceiverID: string | null;
|
|
657
|
+
fenced: boolean;
|
|
658
|
+
fenceID?: string | undefined;
|
|
659
|
+
}>, {
|
|
660
|
+
revision: string;
|
|
661
|
+
receiverID: string;
|
|
662
|
+
originalReceiverID: string | null;
|
|
663
|
+
fenced: boolean;
|
|
664
|
+
fenceID?: string | undefined;
|
|
665
|
+
}, {
|
|
666
|
+
revision: string;
|
|
667
|
+
receiverID: string;
|
|
668
|
+
originalReceiverID: string | null;
|
|
669
|
+
fenced: boolean;
|
|
670
|
+
fenceID?: string | undefined;
|
|
671
|
+
}>>;
|
|
672
|
+
}, "strict", z.ZodTypeAny, {
|
|
673
|
+
state: "prepared";
|
|
674
|
+
createdAt: string;
|
|
675
|
+
updatedAt: string;
|
|
676
|
+
clientRequestId: string;
|
|
677
|
+
found: true;
|
|
678
|
+
outcomeKnown: false;
|
|
679
|
+
dispatchClaimed: false;
|
|
680
|
+
receiverID?: string | undefined;
|
|
681
|
+
recovery?: {
|
|
682
|
+
revision: string;
|
|
683
|
+
receiverID: string;
|
|
684
|
+
originalReceiverID: string | null;
|
|
685
|
+
fenced: boolean;
|
|
686
|
+
fenceID?: string | undefined;
|
|
687
|
+
} | undefined;
|
|
688
|
+
}, {
|
|
689
|
+
state: "prepared";
|
|
690
|
+
createdAt: string;
|
|
691
|
+
updatedAt: string;
|
|
692
|
+
clientRequestId: string;
|
|
693
|
+
found: true;
|
|
694
|
+
outcomeKnown: false;
|
|
695
|
+
dispatchClaimed: false;
|
|
696
|
+
receiverID?: string | undefined;
|
|
697
|
+
recovery?: {
|
|
698
|
+
revision: string;
|
|
699
|
+
receiverID: string;
|
|
700
|
+
originalReceiverID: string | null;
|
|
701
|
+
fenced: boolean;
|
|
702
|
+
fenceID?: string | undefined;
|
|
703
|
+
} | undefined;
|
|
704
|
+
}>, z.ZodObject<{
|
|
705
|
+
state: z.ZodLiteral<"dispatched">;
|
|
706
|
+
found: z.ZodLiteral<true>;
|
|
707
|
+
outcomeKnown: z.ZodLiteral<false>;
|
|
708
|
+
dispatchClaimed: z.ZodLiteral<true>;
|
|
709
|
+
clientRequestId: z.ZodString;
|
|
710
|
+
createdAt: z.ZodString;
|
|
711
|
+
updatedAt: z.ZodString;
|
|
712
|
+
receiverID: z.ZodOptional<z.ZodString>;
|
|
713
|
+
recovery: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
714
|
+
revision: z.ZodString;
|
|
715
|
+
receiverID: z.ZodString;
|
|
716
|
+
originalReceiverID: z.ZodNullable<z.ZodString>;
|
|
717
|
+
fenced: z.ZodBoolean;
|
|
718
|
+
fenceID: z.ZodOptional<z.ZodString>;
|
|
719
|
+
}, "strict", z.ZodTypeAny, {
|
|
720
|
+
revision: string;
|
|
721
|
+
receiverID: string;
|
|
722
|
+
originalReceiverID: string | null;
|
|
723
|
+
fenced: boolean;
|
|
724
|
+
fenceID?: string | undefined;
|
|
725
|
+
}, {
|
|
726
|
+
revision: string;
|
|
727
|
+
receiverID: string;
|
|
728
|
+
originalReceiverID: string | null;
|
|
729
|
+
fenced: boolean;
|
|
730
|
+
fenceID?: string | undefined;
|
|
731
|
+
}>, {
|
|
732
|
+
revision: string;
|
|
733
|
+
receiverID: string;
|
|
734
|
+
originalReceiverID: string | null;
|
|
735
|
+
fenced: boolean;
|
|
736
|
+
fenceID?: string | undefined;
|
|
737
|
+
}, {
|
|
738
|
+
revision: string;
|
|
739
|
+
receiverID: string;
|
|
740
|
+
originalReceiverID: string | null;
|
|
741
|
+
fenced: boolean;
|
|
742
|
+
fenceID?: string | undefined;
|
|
743
|
+
}>>;
|
|
744
|
+
}, "strict", z.ZodTypeAny, {
|
|
745
|
+
state: "dispatched";
|
|
746
|
+
createdAt: string;
|
|
747
|
+
updatedAt: string;
|
|
748
|
+
clientRequestId: string;
|
|
749
|
+
found: true;
|
|
750
|
+
outcomeKnown: false;
|
|
751
|
+
dispatchClaimed: true;
|
|
752
|
+
receiverID?: string | undefined;
|
|
753
|
+
recovery?: {
|
|
754
|
+
revision: string;
|
|
755
|
+
receiverID: string;
|
|
756
|
+
originalReceiverID: string | null;
|
|
757
|
+
fenced: boolean;
|
|
758
|
+
fenceID?: string | undefined;
|
|
759
|
+
} | undefined;
|
|
760
|
+
}, {
|
|
761
|
+
state: "dispatched";
|
|
762
|
+
createdAt: string;
|
|
763
|
+
updatedAt: string;
|
|
764
|
+
clientRequestId: string;
|
|
765
|
+
found: true;
|
|
766
|
+
outcomeKnown: false;
|
|
767
|
+
dispatchClaimed: true;
|
|
768
|
+
receiverID?: string | undefined;
|
|
769
|
+
recovery?: {
|
|
770
|
+
revision: string;
|
|
771
|
+
receiverID: string;
|
|
772
|
+
originalReceiverID: string | null;
|
|
773
|
+
fenced: boolean;
|
|
774
|
+
fenceID?: string | undefined;
|
|
775
|
+
} | undefined;
|
|
776
|
+
}>, z.ZodObject<{
|
|
777
|
+
state: z.ZodLiteral<"unknown">;
|
|
778
|
+
found: z.ZodLiteral<true>;
|
|
779
|
+
outcomeKnown: z.ZodLiteral<false>;
|
|
780
|
+
dispatchClaimed: z.ZodLiteral<true>;
|
|
781
|
+
reasonCode: z.ZodEnum<["write_outcome_unconfirmed", "controller_not_observed"]>;
|
|
782
|
+
clientRequestId: z.ZodString;
|
|
783
|
+
createdAt: z.ZodString;
|
|
784
|
+
updatedAt: z.ZodString;
|
|
785
|
+
receiverID: z.ZodOptional<z.ZodString>;
|
|
786
|
+
recovery: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
787
|
+
revision: z.ZodString;
|
|
788
|
+
receiverID: z.ZodString;
|
|
789
|
+
originalReceiverID: z.ZodNullable<z.ZodString>;
|
|
790
|
+
fenced: z.ZodBoolean;
|
|
791
|
+
fenceID: z.ZodOptional<z.ZodString>;
|
|
792
|
+
}, "strict", z.ZodTypeAny, {
|
|
793
|
+
revision: string;
|
|
794
|
+
receiverID: string;
|
|
795
|
+
originalReceiverID: string | null;
|
|
796
|
+
fenced: boolean;
|
|
797
|
+
fenceID?: string | undefined;
|
|
798
|
+
}, {
|
|
799
|
+
revision: string;
|
|
800
|
+
receiverID: string;
|
|
801
|
+
originalReceiverID: string | null;
|
|
802
|
+
fenced: boolean;
|
|
803
|
+
fenceID?: string | undefined;
|
|
804
|
+
}>, {
|
|
805
|
+
revision: string;
|
|
806
|
+
receiverID: string;
|
|
807
|
+
originalReceiverID: string | null;
|
|
808
|
+
fenced: boolean;
|
|
809
|
+
fenceID?: string | undefined;
|
|
810
|
+
}, {
|
|
811
|
+
revision: string;
|
|
812
|
+
receiverID: string;
|
|
813
|
+
originalReceiverID: string | null;
|
|
814
|
+
fenced: boolean;
|
|
815
|
+
fenceID?: string | undefined;
|
|
816
|
+
}>>;
|
|
817
|
+
}, "strict", z.ZodTypeAny, {
|
|
818
|
+
state: "unknown";
|
|
819
|
+
createdAt: string;
|
|
820
|
+
updatedAt: string;
|
|
821
|
+
reasonCode: "write_outcome_unconfirmed" | "controller_not_observed";
|
|
822
|
+
clientRequestId: string;
|
|
823
|
+
found: true;
|
|
824
|
+
outcomeKnown: false;
|
|
825
|
+
dispatchClaimed: true;
|
|
826
|
+
receiverID?: string | undefined;
|
|
827
|
+
recovery?: {
|
|
828
|
+
revision: string;
|
|
829
|
+
receiverID: string;
|
|
830
|
+
originalReceiverID: string | null;
|
|
831
|
+
fenced: boolean;
|
|
832
|
+
fenceID?: string | undefined;
|
|
833
|
+
} | undefined;
|
|
834
|
+
}, {
|
|
835
|
+
state: "unknown";
|
|
836
|
+
createdAt: string;
|
|
837
|
+
updatedAt: string;
|
|
838
|
+
reasonCode: "write_outcome_unconfirmed" | "controller_not_observed";
|
|
839
|
+
clientRequestId: string;
|
|
840
|
+
found: true;
|
|
841
|
+
outcomeKnown: false;
|
|
842
|
+
dispatchClaimed: true;
|
|
843
|
+
receiverID?: string | undefined;
|
|
844
|
+
recovery?: {
|
|
845
|
+
revision: string;
|
|
846
|
+
receiverID: string;
|
|
847
|
+
originalReceiverID: string | null;
|
|
848
|
+
fenced: boolean;
|
|
849
|
+
fenceID?: string | undefined;
|
|
850
|
+
} | undefined;
|
|
851
|
+
}>, z.ZodObject<{
|
|
852
|
+
state: z.ZodLiteral<"failed">;
|
|
853
|
+
found: z.ZodLiteral<true>;
|
|
854
|
+
outcomeKnown: z.ZodLiteral<true>;
|
|
855
|
+
dispatchClaimed: z.ZodLiteral<false>;
|
|
856
|
+
reasonCode: z.ZodLiteral<"preparation_failed">;
|
|
857
|
+
clientRequestId: z.ZodString;
|
|
858
|
+
createdAt: z.ZodString;
|
|
859
|
+
updatedAt: z.ZodString;
|
|
860
|
+
receiverID: z.ZodOptional<z.ZodString>;
|
|
861
|
+
recovery: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
862
|
+
revision: z.ZodString;
|
|
863
|
+
receiverID: z.ZodString;
|
|
864
|
+
originalReceiverID: z.ZodNullable<z.ZodString>;
|
|
865
|
+
fenced: z.ZodBoolean;
|
|
866
|
+
fenceID: z.ZodOptional<z.ZodString>;
|
|
867
|
+
}, "strict", z.ZodTypeAny, {
|
|
868
|
+
revision: string;
|
|
869
|
+
receiverID: string;
|
|
870
|
+
originalReceiverID: string | null;
|
|
871
|
+
fenced: boolean;
|
|
872
|
+
fenceID?: string | undefined;
|
|
873
|
+
}, {
|
|
874
|
+
revision: string;
|
|
875
|
+
receiverID: string;
|
|
876
|
+
originalReceiverID: string | null;
|
|
877
|
+
fenced: boolean;
|
|
878
|
+
fenceID?: string | undefined;
|
|
879
|
+
}>, {
|
|
880
|
+
revision: string;
|
|
881
|
+
receiverID: string;
|
|
882
|
+
originalReceiverID: string | null;
|
|
883
|
+
fenced: boolean;
|
|
884
|
+
fenceID?: string | undefined;
|
|
885
|
+
}, {
|
|
886
|
+
revision: string;
|
|
887
|
+
receiverID: string;
|
|
888
|
+
originalReceiverID: string | null;
|
|
889
|
+
fenced: boolean;
|
|
890
|
+
fenceID?: string | undefined;
|
|
891
|
+
}>>;
|
|
892
|
+
}, "strict", z.ZodTypeAny, {
|
|
893
|
+
state: "failed";
|
|
894
|
+
createdAt: string;
|
|
895
|
+
updatedAt: string;
|
|
896
|
+
reasonCode: "preparation_failed";
|
|
897
|
+
clientRequestId: string;
|
|
898
|
+
found: true;
|
|
899
|
+
outcomeKnown: true;
|
|
900
|
+
dispatchClaimed: false;
|
|
901
|
+
receiverID?: string | undefined;
|
|
902
|
+
recovery?: {
|
|
903
|
+
revision: string;
|
|
904
|
+
receiverID: string;
|
|
905
|
+
originalReceiverID: string | null;
|
|
906
|
+
fenced: boolean;
|
|
907
|
+
fenceID?: string | undefined;
|
|
908
|
+
} | undefined;
|
|
909
|
+
}, {
|
|
910
|
+
state: "failed";
|
|
911
|
+
createdAt: string;
|
|
912
|
+
updatedAt: string;
|
|
913
|
+
reasonCode: "preparation_failed";
|
|
914
|
+
clientRequestId: string;
|
|
915
|
+
found: true;
|
|
916
|
+
outcomeKnown: true;
|
|
917
|
+
dispatchClaimed: false;
|
|
918
|
+
receiverID?: string | undefined;
|
|
919
|
+
recovery?: {
|
|
920
|
+
revision: string;
|
|
921
|
+
receiverID: string;
|
|
922
|
+
originalReceiverID: string | null;
|
|
923
|
+
fenced: boolean;
|
|
924
|
+
fenceID?: string | undefined;
|
|
925
|
+
} | undefined;
|
|
926
|
+
}>, z.ZodObject<{
|
|
927
|
+
state: z.ZodLiteral<"confirmed">;
|
|
928
|
+
found: z.ZodLiteral<true>;
|
|
929
|
+
outcomeKnown: z.ZodLiteral<true>;
|
|
930
|
+
dispatchClaimed: z.ZodLiteral<true>;
|
|
931
|
+
result: z.ZodObject<{
|
|
932
|
+
skill: z.ZodObject<{
|
|
933
|
+
/** skill 名/key。 */
|
|
934
|
+
name: z.ZodString;
|
|
935
|
+
/** 归属哪个 agent。 */
|
|
936
|
+
agent: z.ZodBranded<z.ZodString, "AgentId">;
|
|
937
|
+
scope: z.ZodEnum<["global", "project"]>;
|
|
938
|
+
/** scope=project 时所属项目。 */
|
|
939
|
+
projectId: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
|
|
940
|
+
/** 版本(P2-12,同名冲突可辨)。 */
|
|
941
|
+
version: z.ZodOptional<z.ZodString>;
|
|
942
|
+
/** 内容 hash(P2-12,可复现/防篡改)。 */
|
|
943
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
944
|
+
/** 适配的 agent(某些 skill 只适 OpenClaw 不适 Codex)。 */
|
|
945
|
+
compatibleAgents: z.ZodOptional<z.ZodArray<z.ZodBranded<z.ZodString, "AgentId">, "many">>;
|
|
946
|
+
/** 来源是否可信(本地/内联=可信,url=需校验)。 */
|
|
947
|
+
sourceTrusted: z.ZodOptional<z.ZodBoolean>;
|
|
948
|
+
/** 安装落地路径(设备本地)。 */
|
|
949
|
+
installedPath: z.ZodOptional<z.ZodString>;
|
|
950
|
+
installedAt: z.ZodOptional<z.ZodString>;
|
|
951
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
952
|
+
publication: z.ZodOptional<z.ZodObject<{
|
|
953
|
+
kind: z.ZodLiteral<"immutable">;
|
|
954
|
+
versionId: z.ZodString;
|
|
955
|
+
treeHash: z.ZodString;
|
|
956
|
+
}, "strict", z.ZodTypeAny, {
|
|
957
|
+
kind: "immutable";
|
|
958
|
+
versionId: string;
|
|
959
|
+
treeHash: string;
|
|
960
|
+
}, {
|
|
961
|
+
kind: "immutable";
|
|
962
|
+
versionId: string;
|
|
963
|
+
treeHash: string;
|
|
964
|
+
}>>;
|
|
965
|
+
}, "strip", z.ZodTypeAny, {
|
|
966
|
+
agent: string & z.BRAND<"AgentId">;
|
|
967
|
+
name: string;
|
|
968
|
+
scope: "project" | "global";
|
|
969
|
+
version?: string | undefined;
|
|
970
|
+
revision?: string | undefined;
|
|
971
|
+
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
972
|
+
hash?: string | undefined;
|
|
973
|
+
compatibleAgents?: (string & z.BRAND<"AgentId">)[] | undefined;
|
|
974
|
+
sourceTrusted?: boolean | undefined;
|
|
975
|
+
installedPath?: string | undefined;
|
|
976
|
+
installedAt?: string | undefined;
|
|
977
|
+
publication?: {
|
|
978
|
+
kind: "immutable";
|
|
979
|
+
versionId: string;
|
|
980
|
+
treeHash: string;
|
|
981
|
+
} | undefined;
|
|
982
|
+
}, {
|
|
983
|
+
agent: string;
|
|
984
|
+
name: string;
|
|
985
|
+
scope: "project" | "global";
|
|
986
|
+
version?: string | undefined;
|
|
987
|
+
revision?: string | undefined;
|
|
988
|
+
projectId?: string | undefined;
|
|
989
|
+
hash?: string | undefined;
|
|
990
|
+
compatibleAgents?: string[] | undefined;
|
|
991
|
+
sourceTrusted?: boolean | undefined;
|
|
992
|
+
installedPath?: string | undefined;
|
|
993
|
+
installedAt?: string | undefined;
|
|
994
|
+
publication?: {
|
|
995
|
+
kind: "immutable";
|
|
996
|
+
versionId: string;
|
|
997
|
+
treeHash: string;
|
|
998
|
+
} | undefined;
|
|
999
|
+
}>;
|
|
1000
|
+
}, "strip", z.ZodTypeAny, {
|
|
1001
|
+
skill: {
|
|
1002
|
+
agent: string & z.BRAND<"AgentId">;
|
|
1003
|
+
name: string;
|
|
1004
|
+
scope: "project" | "global";
|
|
1005
|
+
version?: string | undefined;
|
|
1006
|
+
revision?: string | undefined;
|
|
1007
|
+
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
1008
|
+
hash?: string | undefined;
|
|
1009
|
+
compatibleAgents?: (string & z.BRAND<"AgentId">)[] | undefined;
|
|
1010
|
+
sourceTrusted?: boolean | undefined;
|
|
1011
|
+
installedPath?: string | undefined;
|
|
1012
|
+
installedAt?: string | undefined;
|
|
1013
|
+
publication?: {
|
|
1014
|
+
kind: "immutable";
|
|
1015
|
+
versionId: string;
|
|
1016
|
+
treeHash: string;
|
|
1017
|
+
} | undefined;
|
|
1018
|
+
};
|
|
1019
|
+
}, {
|
|
1020
|
+
skill: {
|
|
1021
|
+
agent: string;
|
|
1022
|
+
name: string;
|
|
1023
|
+
scope: "project" | "global";
|
|
1024
|
+
version?: string | undefined;
|
|
1025
|
+
revision?: string | undefined;
|
|
1026
|
+
projectId?: string | undefined;
|
|
1027
|
+
hash?: string | undefined;
|
|
1028
|
+
compatibleAgents?: string[] | undefined;
|
|
1029
|
+
sourceTrusted?: boolean | undefined;
|
|
1030
|
+
installedPath?: string | undefined;
|
|
1031
|
+
installedAt?: string | undefined;
|
|
1032
|
+
publication?: {
|
|
1033
|
+
kind: "immutable";
|
|
1034
|
+
versionId: string;
|
|
1035
|
+
treeHash: string;
|
|
1036
|
+
} | undefined;
|
|
1037
|
+
};
|
|
1038
|
+
}>;
|
|
1039
|
+
clientRequestId: z.ZodString;
|
|
1040
|
+
createdAt: z.ZodString;
|
|
1041
|
+
updatedAt: z.ZodString;
|
|
1042
|
+
receiverID: z.ZodOptional<z.ZodString>;
|
|
1043
|
+
recovery: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1044
|
+
revision: z.ZodString;
|
|
1045
|
+
receiverID: z.ZodString;
|
|
1046
|
+
originalReceiverID: z.ZodNullable<z.ZodString>;
|
|
1047
|
+
fenced: z.ZodBoolean;
|
|
1048
|
+
fenceID: z.ZodOptional<z.ZodString>;
|
|
1049
|
+
}, "strict", z.ZodTypeAny, {
|
|
1050
|
+
revision: string;
|
|
1051
|
+
receiverID: string;
|
|
1052
|
+
originalReceiverID: string | null;
|
|
1053
|
+
fenced: boolean;
|
|
1054
|
+
fenceID?: string | undefined;
|
|
1055
|
+
}, {
|
|
1056
|
+
revision: string;
|
|
1057
|
+
receiverID: string;
|
|
1058
|
+
originalReceiverID: string | null;
|
|
1059
|
+
fenced: boolean;
|
|
1060
|
+
fenceID?: string | undefined;
|
|
1061
|
+
}>, {
|
|
1062
|
+
revision: string;
|
|
1063
|
+
receiverID: string;
|
|
1064
|
+
originalReceiverID: string | null;
|
|
1065
|
+
fenced: boolean;
|
|
1066
|
+
fenceID?: string | undefined;
|
|
1067
|
+
}, {
|
|
1068
|
+
revision: string;
|
|
1069
|
+
receiverID: string;
|
|
1070
|
+
originalReceiverID: string | null;
|
|
1071
|
+
fenced: boolean;
|
|
1072
|
+
fenceID?: string | undefined;
|
|
1073
|
+
}>>;
|
|
1074
|
+
}, "strict", z.ZodTypeAny, {
|
|
1075
|
+
state: "confirmed";
|
|
1076
|
+
createdAt: string;
|
|
1077
|
+
updatedAt: string;
|
|
1078
|
+
clientRequestId: string;
|
|
1079
|
+
found: true;
|
|
1080
|
+
outcomeKnown: true;
|
|
1081
|
+
dispatchClaimed: true;
|
|
1082
|
+
result: {
|
|
1083
|
+
skill: {
|
|
1084
|
+
agent: string & z.BRAND<"AgentId">;
|
|
1085
|
+
name: string;
|
|
1086
|
+
scope: "project" | "global";
|
|
1087
|
+
version?: string | undefined;
|
|
1088
|
+
revision?: string | undefined;
|
|
1089
|
+
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
1090
|
+
hash?: string | undefined;
|
|
1091
|
+
compatibleAgents?: (string & z.BRAND<"AgentId">)[] | undefined;
|
|
1092
|
+
sourceTrusted?: boolean | undefined;
|
|
1093
|
+
installedPath?: string | undefined;
|
|
1094
|
+
installedAt?: string | undefined;
|
|
1095
|
+
publication?: {
|
|
1096
|
+
kind: "immutable";
|
|
1097
|
+
versionId: string;
|
|
1098
|
+
treeHash: string;
|
|
1099
|
+
} | undefined;
|
|
1100
|
+
};
|
|
1101
|
+
};
|
|
1102
|
+
receiverID?: string | undefined;
|
|
1103
|
+
recovery?: {
|
|
1104
|
+
revision: string;
|
|
1105
|
+
receiverID: string;
|
|
1106
|
+
originalReceiverID: string | null;
|
|
1107
|
+
fenced: boolean;
|
|
1108
|
+
fenceID?: string | undefined;
|
|
1109
|
+
} | undefined;
|
|
1110
|
+
}, {
|
|
1111
|
+
state: "confirmed";
|
|
1112
|
+
createdAt: string;
|
|
1113
|
+
updatedAt: string;
|
|
1114
|
+
clientRequestId: string;
|
|
1115
|
+
found: true;
|
|
1116
|
+
outcomeKnown: true;
|
|
1117
|
+
dispatchClaimed: true;
|
|
1118
|
+
result: {
|
|
1119
|
+
skill: {
|
|
1120
|
+
agent: string;
|
|
1121
|
+
name: string;
|
|
1122
|
+
scope: "project" | "global";
|
|
1123
|
+
version?: string | undefined;
|
|
1124
|
+
revision?: string | undefined;
|
|
1125
|
+
projectId?: string | undefined;
|
|
1126
|
+
hash?: string | undefined;
|
|
1127
|
+
compatibleAgents?: string[] | undefined;
|
|
1128
|
+
sourceTrusted?: boolean | undefined;
|
|
1129
|
+
installedPath?: string | undefined;
|
|
1130
|
+
installedAt?: string | undefined;
|
|
1131
|
+
publication?: {
|
|
1132
|
+
kind: "immutable";
|
|
1133
|
+
versionId: string;
|
|
1134
|
+
treeHash: string;
|
|
1135
|
+
} | undefined;
|
|
1136
|
+
};
|
|
1137
|
+
};
|
|
1138
|
+
receiverID?: string | undefined;
|
|
1139
|
+
recovery?: {
|
|
1140
|
+
revision: string;
|
|
1141
|
+
receiverID: string;
|
|
1142
|
+
originalReceiverID: string | null;
|
|
1143
|
+
fenced: boolean;
|
|
1144
|
+
fenceID?: string | undefined;
|
|
1145
|
+
} | undefined;
|
|
1146
|
+
}>]>;
|
|
1147
|
+
export type SkillInstallStatusResult = z.infer<typeof SkillInstallStatusResult>;
|
|
1148
|
+
export declare const SkillInstallFenceParams: z.ZodObject<{
|
|
1149
|
+
clientRequestId: z.ZodString;
|
|
1150
|
+
originalRequestId: z.ZodString;
|
|
1151
|
+
agent: z.ZodBranded<z.ZodString, "AgentId">;
|
|
1152
|
+
name: z.ZodString;
|
|
1153
|
+
scope: z.ZodDefault<z.ZodLiteral<"project">>;
|
|
1154
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
1155
|
+
expectedReceiverID: z.ZodString;
|
|
1156
|
+
baseRecoveryRevision: z.ZodString;
|
|
1157
|
+
}, "strict", z.ZodTypeAny, {
|
|
1158
|
+
agent: string & z.BRAND<"AgentId">;
|
|
1159
|
+
name: string;
|
|
1160
|
+
scope: "project";
|
|
1161
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
1162
|
+
clientRequestId: string;
|
|
1163
|
+
expectedReceiverID: string;
|
|
1164
|
+
originalRequestId: string;
|
|
1165
|
+
baseRecoveryRevision: string;
|
|
1166
|
+
}, {
|
|
1167
|
+
agent: string;
|
|
1168
|
+
name: string;
|
|
1169
|
+
projectId: string;
|
|
1170
|
+
clientRequestId: string;
|
|
1171
|
+
expectedReceiverID: string;
|
|
1172
|
+
originalRequestId: string;
|
|
1173
|
+
baseRecoveryRevision: string;
|
|
1174
|
+
scope?: "project" | undefined;
|
|
1175
|
+
}>;
|
|
1176
|
+
export type SkillInstallFenceParams = z.infer<typeof SkillInstallFenceParams>;
|
|
1177
|
+
export declare const SkillInstallFenceResult: z.ZodObject<{
|
|
1178
|
+
clientRequestId: z.ZodString;
|
|
1179
|
+
originalRequestId: z.ZodString;
|
|
1180
|
+
agent: z.ZodBranded<z.ZodString, "AgentId">;
|
|
1181
|
+
name: z.ZodString;
|
|
1182
|
+
scope: z.ZodLiteral<"project">;
|
|
1183
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
1184
|
+
receiverID: z.ZodString;
|
|
1185
|
+
originalReceiverID: z.ZodNullable<z.ZodString>;
|
|
1186
|
+
fenceID: z.ZodString;
|
|
1187
|
+
disposition: z.ZodLiteral<"unconfirmed_metadata_fenced">;
|
|
1188
|
+
outcomeKnown: z.ZodLiteral<false>;
|
|
1189
|
+
targetLocked: z.ZodLiteral<true>;
|
|
1190
|
+
filesDeleted: z.ZodLiteral<false>;
|
|
1191
|
+
originalWritesMayContinue: z.ZodLiteral<true>;
|
|
1192
|
+
recordedAt: z.ZodString;
|
|
1193
|
+
}, "strict", z.ZodTypeAny, {
|
|
1194
|
+
agent: string & z.BRAND<"AgentId">;
|
|
1195
|
+
name: string;
|
|
1196
|
+
scope: "project";
|
|
1197
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
1198
|
+
clientRequestId: string;
|
|
1199
|
+
receiverID: string;
|
|
1200
|
+
originalReceiverID: string | null;
|
|
1201
|
+
fenceID: string;
|
|
1202
|
+
outcomeKnown: false;
|
|
1203
|
+
originalRequestId: string;
|
|
1204
|
+
disposition: "unconfirmed_metadata_fenced";
|
|
1205
|
+
targetLocked: true;
|
|
1206
|
+
filesDeleted: false;
|
|
1207
|
+
originalWritesMayContinue: true;
|
|
1208
|
+
recordedAt: string;
|
|
1209
|
+
}, {
|
|
1210
|
+
agent: string;
|
|
1211
|
+
name: string;
|
|
1212
|
+
scope: "project";
|
|
1213
|
+
projectId: string;
|
|
1214
|
+
clientRequestId: string;
|
|
1215
|
+
receiverID: string;
|
|
1216
|
+
originalReceiverID: string | null;
|
|
1217
|
+
fenceID: string;
|
|
1218
|
+
outcomeKnown: false;
|
|
1219
|
+
originalRequestId: string;
|
|
1220
|
+
disposition: "unconfirmed_metadata_fenced";
|
|
1221
|
+
targetLocked: true;
|
|
1222
|
+
filesDeleted: false;
|
|
1223
|
+
originalWritesMayContinue: true;
|
|
1224
|
+
recordedAt: string;
|
|
1225
|
+
}>;
|
|
1226
|
+
export type SkillInstallFenceResult = z.infer<typeof SkillInstallFenceResult>;
|
|
333
1227
|
export declare const SkillUninstallParams: z.ZodEffects<z.ZodObject<{
|
|
1228
|
+
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
334
1229
|
agent: z.ZodBranded<z.ZodString, "AgentId">;
|
|
335
1230
|
name: z.ZodString;
|
|
336
1231
|
scope: z.ZodEnum<["global", "project"]>;
|
|
@@ -340,21 +1235,25 @@ export declare const SkillUninstallParams: z.ZodEffects<z.ZodObject<{
|
|
|
340
1235
|
name: string;
|
|
341
1236
|
scope: "project" | "global";
|
|
342
1237
|
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
1238
|
+
clientRequestId?: string | undefined;
|
|
343
1239
|
}, {
|
|
344
1240
|
agent: string;
|
|
345
1241
|
name: string;
|
|
346
1242
|
scope: "project" | "global";
|
|
347
1243
|
projectId?: string | undefined;
|
|
1244
|
+
clientRequestId?: string | undefined;
|
|
348
1245
|
}>, {
|
|
349
1246
|
agent: string & z.BRAND<"AgentId">;
|
|
350
1247
|
name: string;
|
|
351
1248
|
scope: "project" | "global";
|
|
352
1249
|
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
1250
|
+
clientRequestId?: string | undefined;
|
|
353
1251
|
}, {
|
|
354
1252
|
agent: string;
|
|
355
1253
|
name: string;
|
|
356
1254
|
scope: "project" | "global";
|
|
357
1255
|
projectId?: string | undefined;
|
|
1256
|
+
clientRequestId?: string | undefined;
|
|
358
1257
|
}>;
|
|
359
1258
|
export type SkillUninstallParams = z.infer<typeof SkillUninstallParams>;
|
|
360
1259
|
export declare const SkillUninstallResult: z.ZodObject<{
|
|
@@ -411,28 +1310,54 @@ export declare const SkillListResult: z.ZodObject<{
|
|
|
411
1310
|
/** 安装落地路径(设备本地)。 */
|
|
412
1311
|
installedPath: z.ZodOptional<z.ZodString>;
|
|
413
1312
|
installedAt: z.ZodOptional<z.ZodString>;
|
|
1313
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
1314
|
+
publication: z.ZodOptional<z.ZodObject<{
|
|
1315
|
+
kind: z.ZodLiteral<"immutable">;
|
|
1316
|
+
versionId: z.ZodString;
|
|
1317
|
+
treeHash: z.ZodString;
|
|
1318
|
+
}, "strict", z.ZodTypeAny, {
|
|
1319
|
+
kind: "immutable";
|
|
1320
|
+
versionId: string;
|
|
1321
|
+
treeHash: string;
|
|
1322
|
+
}, {
|
|
1323
|
+
kind: "immutable";
|
|
1324
|
+
versionId: string;
|
|
1325
|
+
treeHash: string;
|
|
1326
|
+
}>>;
|
|
414
1327
|
}, "strip", z.ZodTypeAny, {
|
|
415
1328
|
agent: string & z.BRAND<"AgentId">;
|
|
416
1329
|
name: string;
|
|
417
1330
|
scope: "project" | "global";
|
|
418
1331
|
version?: string | undefined;
|
|
1332
|
+
revision?: string | undefined;
|
|
419
1333
|
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
420
1334
|
hash?: string | undefined;
|
|
421
1335
|
compatibleAgents?: (string & z.BRAND<"AgentId">)[] | undefined;
|
|
422
1336
|
sourceTrusted?: boolean | undefined;
|
|
423
1337
|
installedPath?: string | undefined;
|
|
424
1338
|
installedAt?: string | undefined;
|
|
1339
|
+
publication?: {
|
|
1340
|
+
kind: "immutable";
|
|
1341
|
+
versionId: string;
|
|
1342
|
+
treeHash: string;
|
|
1343
|
+
} | undefined;
|
|
425
1344
|
}, {
|
|
426
1345
|
agent: string;
|
|
427
1346
|
name: string;
|
|
428
1347
|
scope: "project" | "global";
|
|
429
1348
|
version?: string | undefined;
|
|
1349
|
+
revision?: string | undefined;
|
|
430
1350
|
projectId?: string | undefined;
|
|
431
1351
|
hash?: string | undefined;
|
|
432
1352
|
compatibleAgents?: string[] | undefined;
|
|
433
1353
|
sourceTrusted?: boolean | undefined;
|
|
434
1354
|
installedPath?: string | undefined;
|
|
435
1355
|
installedAt?: string | undefined;
|
|
1356
|
+
publication?: {
|
|
1357
|
+
kind: "immutable";
|
|
1358
|
+
versionId: string;
|
|
1359
|
+
treeHash: string;
|
|
1360
|
+
} | undefined;
|
|
436
1361
|
}>, "many">;
|
|
437
1362
|
}, "strip", z.ZodTypeAny, {
|
|
438
1363
|
skills: {
|
|
@@ -440,12 +1365,18 @@ export declare const SkillListResult: z.ZodObject<{
|
|
|
440
1365
|
name: string;
|
|
441
1366
|
scope: "project" | "global";
|
|
442
1367
|
version?: string | undefined;
|
|
1368
|
+
revision?: string | undefined;
|
|
443
1369
|
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
444
1370
|
hash?: string | undefined;
|
|
445
1371
|
compatibleAgents?: (string & z.BRAND<"AgentId">)[] | undefined;
|
|
446
1372
|
sourceTrusted?: boolean | undefined;
|
|
447
1373
|
installedPath?: string | undefined;
|
|
448
1374
|
installedAt?: string | undefined;
|
|
1375
|
+
publication?: {
|
|
1376
|
+
kind: "immutable";
|
|
1377
|
+
versionId: string;
|
|
1378
|
+
treeHash: string;
|
|
1379
|
+
} | undefined;
|
|
449
1380
|
}[];
|
|
450
1381
|
}, {
|
|
451
1382
|
skills: {
|
|
@@ -453,12 +1384,18 @@ export declare const SkillListResult: z.ZodObject<{
|
|
|
453
1384
|
name: string;
|
|
454
1385
|
scope: "project" | "global";
|
|
455
1386
|
version?: string | undefined;
|
|
1387
|
+
revision?: string | undefined;
|
|
456
1388
|
projectId?: string | undefined;
|
|
457
1389
|
hash?: string | undefined;
|
|
458
1390
|
compatibleAgents?: string[] | undefined;
|
|
459
1391
|
sourceTrusted?: boolean | undefined;
|
|
460
1392
|
installedPath?: string | undefined;
|
|
461
1393
|
installedAt?: string | undefined;
|
|
1394
|
+
publication?: {
|
|
1395
|
+
kind: "immutable";
|
|
1396
|
+
versionId: string;
|
|
1397
|
+
treeHash: string;
|
|
1398
|
+
} | undefined;
|
|
462
1399
|
}[];
|
|
463
1400
|
}>;
|
|
464
1401
|
export type SkillListResult = z.infer<typeof SkillListResult>;
|
|
@@ -490,6 +1427,20 @@ export declare const SkillDirectoryDescriptor: z.ZodObject<{
|
|
|
490
1427
|
/** skill 目录真实本机路径。 */
|
|
491
1428
|
path: z.ZodString;
|
|
492
1429
|
exists: z.ZodBoolean;
|
|
1430
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
1431
|
+
publication: z.ZodOptional<z.ZodObject<{
|
|
1432
|
+
kind: z.ZodLiteral<"immutable">;
|
|
1433
|
+
versionId: z.ZodString;
|
|
1434
|
+
treeHash: z.ZodString;
|
|
1435
|
+
}, "strict", z.ZodTypeAny, {
|
|
1436
|
+
kind: "immutable";
|
|
1437
|
+
versionId: string;
|
|
1438
|
+
treeHash: string;
|
|
1439
|
+
}, {
|
|
1440
|
+
kind: "immutable";
|
|
1441
|
+
versionId: string;
|
|
1442
|
+
treeHash: string;
|
|
1443
|
+
}>>;
|
|
493
1444
|
}, "strip", z.ZodTypeAny, {
|
|
494
1445
|
path: string;
|
|
495
1446
|
name: string;
|
|
@@ -498,6 +1449,12 @@ export declare const SkillDirectoryDescriptor: z.ZodObject<{
|
|
|
498
1449
|
exists: boolean;
|
|
499
1450
|
agent?: (string & z.BRAND<"AgentId">) | undefined;
|
|
500
1451
|
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
1452
|
+
publication?: {
|
|
1453
|
+
kind: "immutable";
|
|
1454
|
+
versionId: string;
|
|
1455
|
+
treeHash: string;
|
|
1456
|
+
} | undefined;
|
|
1457
|
+
active?: boolean | undefined;
|
|
501
1458
|
}, {
|
|
502
1459
|
path: string;
|
|
503
1460
|
name: string;
|
|
@@ -506,6 +1463,12 @@ export declare const SkillDirectoryDescriptor: z.ZodObject<{
|
|
|
506
1463
|
exists: boolean;
|
|
507
1464
|
agent?: string | undefined;
|
|
508
1465
|
projectId?: string | undefined;
|
|
1466
|
+
publication?: {
|
|
1467
|
+
kind: "immutable";
|
|
1468
|
+
versionId: string;
|
|
1469
|
+
treeHash: string;
|
|
1470
|
+
} | undefined;
|
|
1471
|
+
active?: boolean | undefined;
|
|
509
1472
|
}>;
|
|
510
1473
|
export type SkillDirectoryDescriptor = z.infer<typeof SkillDirectoryDescriptor>;
|
|
511
1474
|
export declare const SkillDirsResult: z.ZodObject<{
|
|
@@ -520,6 +1483,20 @@ export declare const SkillDirsResult: z.ZodObject<{
|
|
|
520
1483
|
/** skill 目录真实本机路径。 */
|
|
521
1484
|
path: z.ZodString;
|
|
522
1485
|
exists: z.ZodBoolean;
|
|
1486
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
1487
|
+
publication: z.ZodOptional<z.ZodObject<{
|
|
1488
|
+
kind: z.ZodLiteral<"immutable">;
|
|
1489
|
+
versionId: z.ZodString;
|
|
1490
|
+
treeHash: z.ZodString;
|
|
1491
|
+
}, "strict", z.ZodTypeAny, {
|
|
1492
|
+
kind: "immutable";
|
|
1493
|
+
versionId: string;
|
|
1494
|
+
treeHash: string;
|
|
1495
|
+
}, {
|
|
1496
|
+
kind: "immutable";
|
|
1497
|
+
versionId: string;
|
|
1498
|
+
treeHash: string;
|
|
1499
|
+
}>>;
|
|
523
1500
|
}, "strip", z.ZodTypeAny, {
|
|
524
1501
|
path: string;
|
|
525
1502
|
name: string;
|
|
@@ -528,6 +1505,12 @@ export declare const SkillDirsResult: z.ZodObject<{
|
|
|
528
1505
|
exists: boolean;
|
|
529
1506
|
agent?: (string & z.BRAND<"AgentId">) | undefined;
|
|
530
1507
|
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
1508
|
+
publication?: {
|
|
1509
|
+
kind: "immutable";
|
|
1510
|
+
versionId: string;
|
|
1511
|
+
treeHash: string;
|
|
1512
|
+
} | undefined;
|
|
1513
|
+
active?: boolean | undefined;
|
|
531
1514
|
}, {
|
|
532
1515
|
path: string;
|
|
533
1516
|
name: string;
|
|
@@ -536,6 +1519,12 @@ export declare const SkillDirsResult: z.ZodObject<{
|
|
|
536
1519
|
exists: boolean;
|
|
537
1520
|
agent?: string | undefined;
|
|
538
1521
|
projectId?: string | undefined;
|
|
1522
|
+
publication?: {
|
|
1523
|
+
kind: "immutable";
|
|
1524
|
+
versionId: string;
|
|
1525
|
+
treeHash: string;
|
|
1526
|
+
} | undefined;
|
|
1527
|
+
active?: boolean | undefined;
|
|
539
1528
|
}>, "many">;
|
|
540
1529
|
}, "strip", z.ZodTypeAny, {
|
|
541
1530
|
directories: {
|
|
@@ -546,6 +1535,12 @@ export declare const SkillDirsResult: z.ZodObject<{
|
|
|
546
1535
|
exists: boolean;
|
|
547
1536
|
agent?: (string & z.BRAND<"AgentId">) | undefined;
|
|
548
1537
|
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
1538
|
+
publication?: {
|
|
1539
|
+
kind: "immutable";
|
|
1540
|
+
versionId: string;
|
|
1541
|
+
treeHash: string;
|
|
1542
|
+
} | undefined;
|
|
1543
|
+
active?: boolean | undefined;
|
|
549
1544
|
}[];
|
|
550
1545
|
}, {
|
|
551
1546
|
directories: {
|
|
@@ -556,6 +1551,12 @@ export declare const SkillDirsResult: z.ZodObject<{
|
|
|
556
1551
|
exists: boolean;
|
|
557
1552
|
agent?: string | undefined;
|
|
558
1553
|
projectId?: string | undefined;
|
|
1554
|
+
publication?: {
|
|
1555
|
+
kind: "immutable";
|
|
1556
|
+
versionId: string;
|
|
1557
|
+
treeHash: string;
|
|
1558
|
+
} | undefined;
|
|
1559
|
+
active?: boolean | undefined;
|
|
559
1560
|
}[];
|
|
560
1561
|
}>;
|
|
561
1562
|
export type SkillDirsResult = z.infer<typeof SkillDirsResult>;
|