@kya-os/contracts 1.7.26 → 1.7.31

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.
Files changed (50) hide show
  1. package/dist/agent-deployment-utils.d.ts +20 -0
  2. package/dist/agent-deployment-utils.js +37 -0
  3. package/dist/agent-deployment.d.ts +19 -19
  4. package/dist/agent-deployment.js +2 -1
  5. package/dist/agentshield-api/admin-schemas.d.ts +2 -2
  6. package/dist/agentshield-api/schemas.d.ts +462 -462
  7. package/dist/audit/index.d.ts +24 -24
  8. package/dist/cli.d.ts +44 -44
  9. package/dist/compute-binding.d.ts +6 -6
  10. package/dist/compute.d.ts +27 -8
  11. package/dist/compute.js +6 -0
  12. package/dist/config/identity.d.ts +98 -98
  13. package/dist/consent/schemas.d.ts +72 -72
  14. package/dist/dashboard-config/schemas.d.ts +2191 -2191
  15. package/dist/delegation/constraints.d.ts +32 -32
  16. package/dist/delegation/schemas.d.ts +610 -610
  17. package/dist/deploy/schemas.d.ts +129 -129
  18. package/dist/gateway/agents.d.ts +21 -0
  19. package/dist/gateway/agents.js +12 -0
  20. package/dist/gateway/cron.d.ts +33 -0
  21. package/dist/gateway/cron.js +16 -0
  22. package/dist/gateway/index.d.ts +20 -0
  23. package/dist/gateway/index.js +37 -0
  24. package/dist/gateway/sessions.d.ts +30 -0
  25. package/dist/gateway/sessions.js +15 -0
  26. package/dist/gateway/skills.d.ts +445 -0
  27. package/dist/gateway/skills.js +47 -0
  28. package/dist/gateway/usage.d.ts +43 -0
  29. package/dist/gateway/usage.js +18 -0
  30. package/dist/handshake.d.ts +42 -42
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.js +2 -0
  33. package/dist/molti/admin-ws.d.ts +116 -116
  34. package/dist/molti/schemas.d.ts +98 -98
  35. package/dist/pairing/index.d.ts +44 -0
  36. package/dist/pairing/index.js +11 -0
  37. package/dist/policy/schemas.d.ts +553 -553
  38. package/dist/proof/proof-record.d.ts +48 -48
  39. package/dist/proof/signing-spec.d.ts +8 -8
  40. package/dist/proof.d.ts +68 -68
  41. package/dist/registry.d.ts +24 -24
  42. package/dist/reputation/api.d.ts +156 -156
  43. package/dist/reputation/credentials.d.ts +48 -48
  44. package/dist/reputation/schemas.d.ts +48 -48
  45. package/dist/test.d.ts +22 -22
  46. package/dist/tlkrc/rotation.d.ts +12 -12
  47. package/dist/tool-protection/index.d.ts +22 -22
  48. package/dist/verifier.d.ts +17 -17
  49. package/dist/well-known/index.d.ts +72 -72
  50. package/package.json +10 -2
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ export declare const agentEntrySchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodOptional<z.ZodString>;
5
+ model: z.ZodOptional<z.ZodString>;
6
+ defaultModel: z.ZodOptional<z.ZodString>;
7
+ persona: z.ZodOptional<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ id: string;
10
+ name?: string | undefined;
11
+ model?: string | undefined;
12
+ defaultModel?: string | undefined;
13
+ persona?: string | undefined;
14
+ }, {
15
+ id: string;
16
+ name?: string | undefined;
17
+ model?: string | undefined;
18
+ defaultModel?: string | undefined;
19
+ persona?: string | undefined;
20
+ }>;
21
+ export type AgentEntry = z.infer<typeof agentEntrySchema>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.agentEntrySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ // ── agents.list ──
6
+ exports.agentEntrySchema = zod_1.z.object({
7
+ id: zod_1.z.string(),
8
+ name: zod_1.z.string().optional(),
9
+ model: zod_1.z.string().optional(),
10
+ defaultModel: zod_1.z.string().optional(),
11
+ persona: zod_1.z.string().optional(),
12
+ });
@@ -0,0 +1,33 @@
1
+ import { z } from "zod";
2
+ export declare const cronJobSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ schedule: z.ZodOptional<z.ZodString>;
5
+ enabled: z.ZodBoolean;
6
+ lastRunAt: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
7
+ nextRunAt: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
8
+ lastStatus: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9
+ agentId: z.ZodOptional<z.ZodString>;
10
+ model: z.ZodNullable<z.ZodOptional<z.ZodString>>;
11
+ task: z.ZodOptional<z.ZodString>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ name: string;
14
+ enabled: boolean;
15
+ model?: string | null | undefined;
16
+ schedule?: string | undefined;
17
+ lastRunAt?: number | null | undefined;
18
+ nextRunAt?: number | null | undefined;
19
+ lastStatus?: string | null | undefined;
20
+ agentId?: string | undefined;
21
+ task?: string | undefined;
22
+ }, {
23
+ name: string;
24
+ enabled: boolean;
25
+ model?: string | null | undefined;
26
+ schedule?: string | undefined;
27
+ lastRunAt?: number | null | undefined;
28
+ nextRunAt?: number | null | undefined;
29
+ lastStatus?: string | null | undefined;
30
+ agentId?: string | undefined;
31
+ task?: string | undefined;
32
+ }>;
33
+ export type CronJob = z.infer<typeof cronJobSchema>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cronJobSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ // ── cron.list ──
6
+ exports.cronJobSchema = zod_1.z.object({
7
+ name: zod_1.z.string(),
8
+ schedule: zod_1.z.string().optional(),
9
+ enabled: zod_1.z.boolean(),
10
+ lastRunAt: zod_1.z.number().optional().nullable(),
11
+ nextRunAt: zod_1.z.number().optional().nullable(),
12
+ lastStatus: zod_1.z.string().optional().nullable(),
13
+ agentId: zod_1.z.string().optional(),
14
+ model: zod_1.z.string().optional().nullable(),
15
+ task: zod_1.z.string().optional(),
16
+ });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * OpenClaw Gateway WebSocket RPC Response Types
3
+ *
4
+ * Shared schemas for OpenClaw gateway WS method responses.
5
+ * Used by both @kya-os/compute (agent-side) and Checkpoint (dashboard-side).
6
+ *
7
+ * Source of truth for gateway WS integration types.
8
+ * When adding a new gateway method integration:
9
+ * 1. Add Zod schema + TypeScript type here
10
+ * 2. Bump @kya-os/contracts version
11
+ * 3. Vendor into checkpoint, add handler in openclaw-handler.ts
12
+ * 4. Surface in the relevant dashboard component
13
+ *
14
+ * @package @kya-os/contracts/gateway
15
+ */
16
+ export { skillRequirementsSchema, skillConfigCheckSchema, skillInstallOptionSchema, skillStatusEntrySchema, skillStatusReportSchema, type SkillRequirements, type SkillConfigCheck, type SkillInstallOption, type SkillStatusEntry, type SkillStatusReport, } from "./skills.js";
17
+ export { sessionEntrySchema, type SessionEntry, } from "./sessions.js";
18
+ export { cronJobSchema, type CronJob, } from "./cron.js";
19
+ export { agentEntrySchema, type AgentEntry, } from "./agents.js";
20
+ export { usageCostSchema, type UsageCost, } from "./usage.js";
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /**
3
+ * OpenClaw Gateway WebSocket RPC Response Types
4
+ *
5
+ * Shared schemas for OpenClaw gateway WS method responses.
6
+ * Used by both @kya-os/compute (agent-side) and Checkpoint (dashboard-side).
7
+ *
8
+ * Source of truth for gateway WS integration types.
9
+ * When adding a new gateway method integration:
10
+ * 1. Add Zod schema + TypeScript type here
11
+ * 2. Bump @kya-os/contracts version
12
+ * 3. Vendor into checkpoint, add handler in openclaw-handler.ts
13
+ * 4. Surface in the relevant dashboard component
14
+ *
15
+ * @package @kya-os/contracts/gateway
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.usageCostSchema = exports.agentEntrySchema = exports.cronJobSchema = exports.sessionEntrySchema = exports.skillStatusReportSchema = exports.skillStatusEntrySchema = exports.skillInstallOptionSchema = exports.skillConfigCheckSchema = exports.skillRequirementsSchema = void 0;
19
+ var skills_js_1 = require("./skills.js");
20
+ // skills.status
21
+ Object.defineProperty(exports, "skillRequirementsSchema", { enumerable: true, get: function () { return skills_js_1.skillRequirementsSchema; } });
22
+ Object.defineProperty(exports, "skillConfigCheckSchema", { enumerable: true, get: function () { return skills_js_1.skillConfigCheckSchema; } });
23
+ Object.defineProperty(exports, "skillInstallOptionSchema", { enumerable: true, get: function () { return skills_js_1.skillInstallOptionSchema; } });
24
+ Object.defineProperty(exports, "skillStatusEntrySchema", { enumerable: true, get: function () { return skills_js_1.skillStatusEntrySchema; } });
25
+ Object.defineProperty(exports, "skillStatusReportSchema", { enumerable: true, get: function () { return skills_js_1.skillStatusReportSchema; } });
26
+ var sessions_js_1 = require("./sessions.js");
27
+ // sessions.list
28
+ Object.defineProperty(exports, "sessionEntrySchema", { enumerable: true, get: function () { return sessions_js_1.sessionEntrySchema; } });
29
+ var cron_js_1 = require("./cron.js");
30
+ // cron.list
31
+ Object.defineProperty(exports, "cronJobSchema", { enumerable: true, get: function () { return cron_js_1.cronJobSchema; } });
32
+ var agents_js_1 = require("./agents.js");
33
+ // agents.list
34
+ Object.defineProperty(exports, "agentEntrySchema", { enumerable: true, get: function () { return agents_js_1.agentEntrySchema; } });
35
+ var usage_js_1 = require("./usage.js");
36
+ // usage.cost
37
+ Object.defineProperty(exports, "usageCostSchema", { enumerable: true, get: function () { return usage_js_1.usageCostSchema; } });
@@ -0,0 +1,30 @@
1
+ import { z } from "zod";
2
+ export declare const sessionEntrySchema: z.ZodObject<{
3
+ key: z.ZodString;
4
+ agentId: z.ZodOptional<z.ZodString>;
5
+ label: z.ZodOptional<z.ZodString>;
6
+ channel: z.ZodOptional<z.ZodString>;
7
+ kind: z.ZodOptional<z.ZodString>;
8
+ createdAt: z.ZodOptional<z.ZodNumber>;
9
+ updatedAt: z.ZodOptional<z.ZodNumber>;
10
+ messageCount: z.ZodOptional<z.ZodNumber>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ key: string;
13
+ agentId?: string | undefined;
14
+ label?: string | undefined;
15
+ kind?: string | undefined;
16
+ channel?: string | undefined;
17
+ createdAt?: number | undefined;
18
+ updatedAt?: number | undefined;
19
+ messageCount?: number | undefined;
20
+ }, {
21
+ key: string;
22
+ agentId?: string | undefined;
23
+ label?: string | undefined;
24
+ kind?: string | undefined;
25
+ channel?: string | undefined;
26
+ createdAt?: number | undefined;
27
+ updatedAt?: number | undefined;
28
+ messageCount?: number | undefined;
29
+ }>;
30
+ export type SessionEntry = z.infer<typeof sessionEntrySchema>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sessionEntrySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ // ── sessions.list ──
6
+ exports.sessionEntrySchema = zod_1.z.object({
7
+ key: zod_1.z.string(),
8
+ agentId: zod_1.z.string().optional(),
9
+ label: zod_1.z.string().optional(),
10
+ channel: zod_1.z.string().optional(),
11
+ kind: zod_1.z.string().optional(),
12
+ createdAt: zod_1.z.number().optional(),
13
+ updatedAt: zod_1.z.number().optional(),
14
+ messageCount: zod_1.z.number().optional(),
15
+ });
@@ -0,0 +1,445 @@
1
+ import { z } from "zod";
2
+ export declare const skillRequirementsSchema: z.ZodObject<{
3
+ bins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4
+ envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5
+ configs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6
+ os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ bins?: string[] | undefined;
9
+ envs?: string[] | undefined;
10
+ configs?: string[] | undefined;
11
+ os?: string[] | undefined;
12
+ }, {
13
+ bins?: string[] | undefined;
14
+ envs?: string[] | undefined;
15
+ configs?: string[] | undefined;
16
+ os?: string[] | undefined;
17
+ }>;
18
+ export type SkillRequirements = z.infer<typeof skillRequirementsSchema>;
19
+ export declare const skillConfigCheckSchema: z.ZodObject<{
20
+ path: z.ZodString;
21
+ label: z.ZodOptional<z.ZodString>;
22
+ satisfied: z.ZodBoolean;
23
+ }, "strip", z.ZodTypeAny, {
24
+ path: string;
25
+ satisfied: boolean;
26
+ label?: string | undefined;
27
+ }, {
28
+ path: string;
29
+ satisfied: boolean;
30
+ label?: string | undefined;
31
+ }>;
32
+ export type SkillConfigCheck = z.infer<typeof skillConfigCheckSchema>;
33
+ export declare const skillInstallOptionSchema: z.ZodObject<{
34
+ id: z.ZodString;
35
+ kind: z.ZodEnum<["brew", "node", "go", "uv", "download"]>;
36
+ label: z.ZodString;
37
+ bins: z.ZodArray<z.ZodString, "many">;
38
+ }, "strip", z.ZodTypeAny, {
39
+ id: string;
40
+ bins: string[];
41
+ label: string;
42
+ kind: "brew" | "node" | "go" | "uv" | "download";
43
+ }, {
44
+ id: string;
45
+ bins: string[];
46
+ label: string;
47
+ kind: "brew" | "node" | "go" | "uv" | "download";
48
+ }>;
49
+ export type SkillInstallOption = z.infer<typeof skillInstallOptionSchema>;
50
+ export declare const skillStatusEntrySchema: z.ZodObject<{
51
+ name: z.ZodString;
52
+ description: z.ZodString;
53
+ source: z.ZodString;
54
+ bundled: z.ZodBoolean;
55
+ filePath: z.ZodString;
56
+ baseDir: z.ZodString;
57
+ skillKey: z.ZodString;
58
+ primaryEnv: z.ZodOptional<z.ZodString>;
59
+ emoji: z.ZodOptional<z.ZodString>;
60
+ homepage: z.ZodOptional<z.ZodString>;
61
+ always: z.ZodBoolean;
62
+ disabled: z.ZodBoolean;
63
+ blockedByAllowlist: z.ZodBoolean;
64
+ eligible: z.ZodBoolean;
65
+ requirements: z.ZodObject<{
66
+ bins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
67
+ envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
68
+ configs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
69
+ os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ bins?: string[] | undefined;
72
+ envs?: string[] | undefined;
73
+ configs?: string[] | undefined;
74
+ os?: string[] | undefined;
75
+ }, {
76
+ bins?: string[] | undefined;
77
+ envs?: string[] | undefined;
78
+ configs?: string[] | undefined;
79
+ os?: string[] | undefined;
80
+ }>;
81
+ missing: z.ZodObject<{
82
+ bins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
83
+ envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
84
+ configs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
85
+ os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ bins?: string[] | undefined;
88
+ envs?: string[] | undefined;
89
+ configs?: string[] | undefined;
90
+ os?: string[] | undefined;
91
+ }, {
92
+ bins?: string[] | undefined;
93
+ envs?: string[] | undefined;
94
+ configs?: string[] | undefined;
95
+ os?: string[] | undefined;
96
+ }>;
97
+ configChecks: z.ZodArray<z.ZodObject<{
98
+ path: z.ZodString;
99
+ label: z.ZodOptional<z.ZodString>;
100
+ satisfied: z.ZodBoolean;
101
+ }, "strip", z.ZodTypeAny, {
102
+ path: string;
103
+ satisfied: boolean;
104
+ label?: string | undefined;
105
+ }, {
106
+ path: string;
107
+ satisfied: boolean;
108
+ label?: string | undefined;
109
+ }>, "many">;
110
+ install: z.ZodArray<z.ZodObject<{
111
+ id: z.ZodString;
112
+ kind: z.ZodEnum<["brew", "node", "go", "uv", "download"]>;
113
+ label: z.ZodString;
114
+ bins: z.ZodArray<z.ZodString, "many">;
115
+ }, "strip", z.ZodTypeAny, {
116
+ id: string;
117
+ bins: string[];
118
+ label: string;
119
+ kind: "brew" | "node" | "go" | "uv" | "download";
120
+ }, {
121
+ id: string;
122
+ bins: string[];
123
+ label: string;
124
+ kind: "brew" | "node" | "go" | "uv" | "download";
125
+ }>, "many">;
126
+ }, "strip", z.ZodTypeAny, {
127
+ disabled: boolean;
128
+ name: string;
129
+ description: string;
130
+ source: string;
131
+ bundled: boolean;
132
+ filePath: string;
133
+ baseDir: string;
134
+ skillKey: string;
135
+ always: boolean;
136
+ blockedByAllowlist: boolean;
137
+ eligible: boolean;
138
+ requirements: {
139
+ bins?: string[] | undefined;
140
+ envs?: string[] | undefined;
141
+ configs?: string[] | undefined;
142
+ os?: string[] | undefined;
143
+ };
144
+ missing: {
145
+ bins?: string[] | undefined;
146
+ envs?: string[] | undefined;
147
+ configs?: string[] | undefined;
148
+ os?: string[] | undefined;
149
+ };
150
+ configChecks: {
151
+ path: string;
152
+ satisfied: boolean;
153
+ label?: string | undefined;
154
+ }[];
155
+ install: {
156
+ id: string;
157
+ bins: string[];
158
+ label: string;
159
+ kind: "brew" | "node" | "go" | "uv" | "download";
160
+ }[];
161
+ primaryEnv?: string | undefined;
162
+ emoji?: string | undefined;
163
+ homepage?: string | undefined;
164
+ }, {
165
+ disabled: boolean;
166
+ name: string;
167
+ description: string;
168
+ source: string;
169
+ bundled: boolean;
170
+ filePath: string;
171
+ baseDir: string;
172
+ skillKey: string;
173
+ always: boolean;
174
+ blockedByAllowlist: boolean;
175
+ eligible: boolean;
176
+ requirements: {
177
+ bins?: string[] | undefined;
178
+ envs?: string[] | undefined;
179
+ configs?: string[] | undefined;
180
+ os?: string[] | undefined;
181
+ };
182
+ missing: {
183
+ bins?: string[] | undefined;
184
+ envs?: string[] | undefined;
185
+ configs?: string[] | undefined;
186
+ os?: string[] | undefined;
187
+ };
188
+ configChecks: {
189
+ path: string;
190
+ satisfied: boolean;
191
+ label?: string | undefined;
192
+ }[];
193
+ install: {
194
+ id: string;
195
+ bins: string[];
196
+ label: string;
197
+ kind: "brew" | "node" | "go" | "uv" | "download";
198
+ }[];
199
+ primaryEnv?: string | undefined;
200
+ emoji?: string | undefined;
201
+ homepage?: string | undefined;
202
+ }>;
203
+ export type SkillStatusEntry = z.infer<typeof skillStatusEntrySchema>;
204
+ export declare const skillStatusReportSchema: z.ZodObject<{
205
+ workspaceDir: z.ZodString;
206
+ managedSkillsDir: z.ZodString;
207
+ skills: z.ZodArray<z.ZodObject<{
208
+ name: z.ZodString;
209
+ description: z.ZodString;
210
+ source: z.ZodString;
211
+ bundled: z.ZodBoolean;
212
+ filePath: z.ZodString;
213
+ baseDir: z.ZodString;
214
+ skillKey: z.ZodString;
215
+ primaryEnv: z.ZodOptional<z.ZodString>;
216
+ emoji: z.ZodOptional<z.ZodString>;
217
+ homepage: z.ZodOptional<z.ZodString>;
218
+ always: z.ZodBoolean;
219
+ disabled: z.ZodBoolean;
220
+ blockedByAllowlist: z.ZodBoolean;
221
+ eligible: z.ZodBoolean;
222
+ requirements: z.ZodObject<{
223
+ bins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
224
+ envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
225
+ configs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
226
+ os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
227
+ }, "strip", z.ZodTypeAny, {
228
+ bins?: string[] | undefined;
229
+ envs?: string[] | undefined;
230
+ configs?: string[] | undefined;
231
+ os?: string[] | undefined;
232
+ }, {
233
+ bins?: string[] | undefined;
234
+ envs?: string[] | undefined;
235
+ configs?: string[] | undefined;
236
+ os?: string[] | undefined;
237
+ }>;
238
+ missing: z.ZodObject<{
239
+ bins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
240
+ envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
241
+ configs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
242
+ os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ bins?: string[] | undefined;
245
+ envs?: string[] | undefined;
246
+ configs?: string[] | undefined;
247
+ os?: string[] | undefined;
248
+ }, {
249
+ bins?: string[] | undefined;
250
+ envs?: string[] | undefined;
251
+ configs?: string[] | undefined;
252
+ os?: string[] | undefined;
253
+ }>;
254
+ configChecks: z.ZodArray<z.ZodObject<{
255
+ path: z.ZodString;
256
+ label: z.ZodOptional<z.ZodString>;
257
+ satisfied: z.ZodBoolean;
258
+ }, "strip", z.ZodTypeAny, {
259
+ path: string;
260
+ satisfied: boolean;
261
+ label?: string | undefined;
262
+ }, {
263
+ path: string;
264
+ satisfied: boolean;
265
+ label?: string | undefined;
266
+ }>, "many">;
267
+ install: z.ZodArray<z.ZodObject<{
268
+ id: z.ZodString;
269
+ kind: z.ZodEnum<["brew", "node", "go", "uv", "download"]>;
270
+ label: z.ZodString;
271
+ bins: z.ZodArray<z.ZodString, "many">;
272
+ }, "strip", z.ZodTypeAny, {
273
+ id: string;
274
+ bins: string[];
275
+ label: string;
276
+ kind: "brew" | "node" | "go" | "uv" | "download";
277
+ }, {
278
+ id: string;
279
+ bins: string[];
280
+ label: string;
281
+ kind: "brew" | "node" | "go" | "uv" | "download";
282
+ }>, "many">;
283
+ }, "strip", z.ZodTypeAny, {
284
+ disabled: boolean;
285
+ name: string;
286
+ description: string;
287
+ source: string;
288
+ bundled: boolean;
289
+ filePath: string;
290
+ baseDir: string;
291
+ skillKey: string;
292
+ always: boolean;
293
+ blockedByAllowlist: boolean;
294
+ eligible: boolean;
295
+ requirements: {
296
+ bins?: string[] | undefined;
297
+ envs?: string[] | undefined;
298
+ configs?: string[] | undefined;
299
+ os?: string[] | undefined;
300
+ };
301
+ missing: {
302
+ bins?: string[] | undefined;
303
+ envs?: string[] | undefined;
304
+ configs?: string[] | undefined;
305
+ os?: string[] | undefined;
306
+ };
307
+ configChecks: {
308
+ path: string;
309
+ satisfied: boolean;
310
+ label?: string | undefined;
311
+ }[];
312
+ install: {
313
+ id: string;
314
+ bins: string[];
315
+ label: string;
316
+ kind: "brew" | "node" | "go" | "uv" | "download";
317
+ }[];
318
+ primaryEnv?: string | undefined;
319
+ emoji?: string | undefined;
320
+ homepage?: string | undefined;
321
+ }, {
322
+ disabled: boolean;
323
+ name: string;
324
+ description: string;
325
+ source: string;
326
+ bundled: boolean;
327
+ filePath: string;
328
+ baseDir: string;
329
+ skillKey: string;
330
+ always: boolean;
331
+ blockedByAllowlist: boolean;
332
+ eligible: boolean;
333
+ requirements: {
334
+ bins?: string[] | undefined;
335
+ envs?: string[] | undefined;
336
+ configs?: string[] | undefined;
337
+ os?: string[] | undefined;
338
+ };
339
+ missing: {
340
+ bins?: string[] | undefined;
341
+ envs?: string[] | undefined;
342
+ configs?: string[] | undefined;
343
+ os?: string[] | undefined;
344
+ };
345
+ configChecks: {
346
+ path: string;
347
+ satisfied: boolean;
348
+ label?: string | undefined;
349
+ }[];
350
+ install: {
351
+ id: string;
352
+ bins: string[];
353
+ label: string;
354
+ kind: "brew" | "node" | "go" | "uv" | "download";
355
+ }[];
356
+ primaryEnv?: string | undefined;
357
+ emoji?: string | undefined;
358
+ homepage?: string | undefined;
359
+ }>, "many">;
360
+ }, "strip", z.ZodTypeAny, {
361
+ workspaceDir: string;
362
+ managedSkillsDir: string;
363
+ skills: {
364
+ disabled: boolean;
365
+ name: string;
366
+ description: string;
367
+ source: string;
368
+ bundled: boolean;
369
+ filePath: string;
370
+ baseDir: string;
371
+ skillKey: string;
372
+ always: boolean;
373
+ blockedByAllowlist: boolean;
374
+ eligible: boolean;
375
+ requirements: {
376
+ bins?: string[] | undefined;
377
+ envs?: string[] | undefined;
378
+ configs?: string[] | undefined;
379
+ os?: string[] | undefined;
380
+ };
381
+ missing: {
382
+ bins?: string[] | undefined;
383
+ envs?: string[] | undefined;
384
+ configs?: string[] | undefined;
385
+ os?: string[] | undefined;
386
+ };
387
+ configChecks: {
388
+ path: string;
389
+ satisfied: boolean;
390
+ label?: string | undefined;
391
+ }[];
392
+ install: {
393
+ id: string;
394
+ bins: string[];
395
+ label: string;
396
+ kind: "brew" | "node" | "go" | "uv" | "download";
397
+ }[];
398
+ primaryEnv?: string | undefined;
399
+ emoji?: string | undefined;
400
+ homepage?: string | undefined;
401
+ }[];
402
+ }, {
403
+ workspaceDir: string;
404
+ managedSkillsDir: string;
405
+ skills: {
406
+ disabled: boolean;
407
+ name: string;
408
+ description: string;
409
+ source: string;
410
+ bundled: boolean;
411
+ filePath: string;
412
+ baseDir: string;
413
+ skillKey: string;
414
+ always: boolean;
415
+ blockedByAllowlist: boolean;
416
+ eligible: boolean;
417
+ requirements: {
418
+ bins?: string[] | undefined;
419
+ envs?: string[] | undefined;
420
+ configs?: string[] | undefined;
421
+ os?: string[] | undefined;
422
+ };
423
+ missing: {
424
+ bins?: string[] | undefined;
425
+ envs?: string[] | undefined;
426
+ configs?: string[] | undefined;
427
+ os?: string[] | undefined;
428
+ };
429
+ configChecks: {
430
+ path: string;
431
+ satisfied: boolean;
432
+ label?: string | undefined;
433
+ }[];
434
+ install: {
435
+ id: string;
436
+ bins: string[];
437
+ label: string;
438
+ kind: "brew" | "node" | "go" | "uv" | "download";
439
+ }[];
440
+ primaryEnv?: string | undefined;
441
+ emoji?: string | undefined;
442
+ homepage?: string | undefined;
443
+ }[];
444
+ }>;
445
+ export type SkillStatusReport = z.infer<typeof skillStatusReportSchema>;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.skillStatusReportSchema = exports.skillStatusEntrySchema = exports.skillInstallOptionSchema = exports.skillConfigCheckSchema = exports.skillRequirementsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ // ── skills.status ──
6
+ exports.skillRequirementsSchema = zod_1.z.object({
7
+ bins: zod_1.z.array(zod_1.z.string()).optional(),
8
+ envs: zod_1.z.array(zod_1.z.string()).optional(),
9
+ configs: zod_1.z.array(zod_1.z.string()).optional(),
10
+ os: zod_1.z.array(zod_1.z.string()).optional(),
11
+ });
12
+ exports.skillConfigCheckSchema = zod_1.z.object({
13
+ path: zod_1.z.string(),
14
+ label: zod_1.z.string().optional(),
15
+ satisfied: zod_1.z.boolean(),
16
+ });
17
+ exports.skillInstallOptionSchema = zod_1.z.object({
18
+ id: zod_1.z.string(),
19
+ kind: zod_1.z.enum(["brew", "node", "go", "uv", "download"]),
20
+ label: zod_1.z.string(),
21
+ bins: zod_1.z.array(zod_1.z.string()),
22
+ });
23
+ exports.skillStatusEntrySchema = zod_1.z.object({
24
+ name: zod_1.z.string(),
25
+ description: zod_1.z.string(),
26
+ source: zod_1.z.string(),
27
+ bundled: zod_1.z.boolean(),
28
+ filePath: zod_1.z.string(),
29
+ baseDir: zod_1.z.string(),
30
+ skillKey: zod_1.z.string(),
31
+ primaryEnv: zod_1.z.string().optional(),
32
+ emoji: zod_1.z.string().optional(),
33
+ homepage: zod_1.z.string().optional(),
34
+ always: zod_1.z.boolean(),
35
+ disabled: zod_1.z.boolean(),
36
+ blockedByAllowlist: zod_1.z.boolean(),
37
+ eligible: zod_1.z.boolean(),
38
+ requirements: exports.skillRequirementsSchema,
39
+ missing: exports.skillRequirementsSchema,
40
+ configChecks: zod_1.z.array(exports.skillConfigCheckSchema),
41
+ install: zod_1.z.array(exports.skillInstallOptionSchema),
42
+ });
43
+ exports.skillStatusReportSchema = zod_1.z.object({
44
+ workspaceDir: zod_1.z.string(),
45
+ managedSkillsDir: zod_1.z.string(),
46
+ skills: zod_1.z.array(exports.skillStatusEntrySchema),
47
+ });