@berkayorhan/stackkit-schemas 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Stackkit contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @berkayorhan/stackkit-schemas
2
+
3
+ Shared Zod schemas and TypeScript types for Stackkit.
4
+
5
+ This package is primarily consumed by Stackkit runtime packages.
@@ -0,0 +1,818 @@
1
+ import { z } from "zod";
2
+ export declare const moduleIdSchema: z.ZodString;
3
+ export declare const semverSchema: z.ZodString;
4
+ export declare const projectSlugSchema: z.ZodString;
5
+ export declare const aiSkillTrustSchema: z.ZodEnum<{
6
+ official: "official";
7
+ curated: "curated";
8
+ local: "local";
9
+ unresolved: "unresolved";
10
+ }>;
11
+ export declare const aiSkillAgentSchema: z.ZodEnum<{
12
+ codex: "codex";
13
+ "claude-code": "claude-code";
14
+ }>;
15
+ export declare const aiSkillModeSchema: z.ZodEnum<{
16
+ install: "install";
17
+ plan: "plan";
18
+ skip: "skip";
19
+ }>;
20
+ export declare const aiSkillLinkModeSchema: z.ZodEnum<{
21
+ copy: "copy";
22
+ symlink: "symlink";
23
+ }>;
24
+ export declare const packageManagerSchema: z.ZodEnum<{
25
+ pnpm: "pnpm";
26
+ npm: "npm";
27
+ yarn: "yarn";
28
+ bun: "bun";
29
+ }>;
30
+ export declare const aiSkillTargetSchema: z.ZodObject<{
31
+ agent: z.ZodEnum<{
32
+ codex: "codex";
33
+ "claude-code": "claude-code";
34
+ }>;
35
+ directory: z.ZodEnum<{
36
+ ".agents": ".agents";
37
+ ".claude": ".claude";
38
+ }>;
39
+ enabled: z.ZodBoolean;
40
+ }, z.core.$strip>;
41
+ export declare const aiSkillDependencySchema: z.ZodObject<{
42
+ source: z.ZodOptional<z.ZodString>;
43
+ skills: z.ZodArray<z.ZodString>;
44
+ trust: z.ZodEnum<{
45
+ official: "official";
46
+ curated: "curated";
47
+ local: "local";
48
+ unresolved: "unresolved";
49
+ }>;
50
+ causedBy: z.ZodString;
51
+ reason: z.ZodString;
52
+ installCount: z.ZodOptional<z.ZodNumber>;
53
+ repoStars: z.ZodOptional<z.ZodNumber>;
54
+ verifiedAt: z.ZodOptional<z.ZodString>;
55
+ optional: z.ZodOptional<z.ZodBoolean>;
56
+ }, z.core.$strip>;
57
+ export declare const fileOverwritePolicySchema: z.ZodEnum<{
58
+ never: "never";
59
+ "if-owned": "if-owned";
60
+ always: "always";
61
+ }>;
62
+ export declare const fileOperationSchema: z.ZodObject<{
63
+ kind: z.ZodEnum<{
64
+ write: "write";
65
+ delete: "delete";
66
+ }>;
67
+ path: z.ZodString;
68
+ owner: z.ZodString;
69
+ content: z.ZodOptional<z.ZodString>;
70
+ mode: z.ZodOptional<z.ZodNumber>;
71
+ overwrite: z.ZodDefault<z.ZodEnum<{
72
+ never: "never";
73
+ "if-owned": "if-owned";
74
+ always: "always";
75
+ }>>;
76
+ }, z.core.$strip>;
77
+ export declare const packageChangeSchema: z.ZodObject<{
78
+ packagePath: z.ZodString;
79
+ scripts: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
80
+ dependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
81
+ devDependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
82
+ peerDependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
83
+ optionalDependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
84
+ }, z.core.$strip>;
85
+ export declare const envVarDefinitionSchema: z.ZodObject<{
86
+ name: z.ZodString;
87
+ description: z.ZodString;
88
+ required: z.ZodDefault<z.ZodBoolean>;
89
+ example: z.ZodOptional<z.ZodString>;
90
+ target: z.ZodDefault<z.ZodEnum<{
91
+ root: "root";
92
+ web: "web";
93
+ api: "api";
94
+ db: "db";
95
+ }>>;
96
+ }, z.core.$strip>;
97
+ export declare const readmeMetadataSchema: z.ZodObject<{
98
+ stack: z.ZodDefault<z.ZodArray<z.ZodString>>;
99
+ layout: z.ZodDefault<z.ZodArray<z.ZodObject<{
100
+ path: z.ZodString;
101
+ description: z.ZodString;
102
+ }, z.core.$strip>>>;
103
+ prerequisites: z.ZodDefault<z.ZodArray<z.ZodString>>;
104
+ installCommands: z.ZodDefault<z.ZodArray<z.ZodObject<{
105
+ label: z.ZodString;
106
+ command: z.ZodString;
107
+ }, z.core.$strip>>>;
108
+ devCommands: z.ZodDefault<z.ZodArray<z.ZodObject<{
109
+ label: z.ZodString;
110
+ command: z.ZodString;
111
+ }, z.core.$strip>>>;
112
+ verificationCommands: z.ZodDefault<z.ZodArray<z.ZodObject<{
113
+ label: z.ZodString;
114
+ command: z.ZodString;
115
+ }, z.core.$strip>>>;
116
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
117
+ label: z.ZodString;
118
+ command: z.ZodString;
119
+ }, z.core.$strip>>>;
120
+ stackkit: z.ZodDefault<z.ZodArray<z.ZodString>>;
121
+ }, z.core.$strip>;
122
+ export declare const taskDefinitionSchema: z.ZodObject<{
123
+ name: z.ZodString;
124
+ command: z.ZodString;
125
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
126
+ cwd: z.ZodOptional<z.ZodString>;
127
+ }, z.core.$strip>;
128
+ export declare const lifecycleHookSchema: z.ZodObject<{
129
+ name: z.ZodString;
130
+ command: z.ZodString;
131
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
132
+ cwd: z.ZodOptional<z.ZodString>;
133
+ }, z.core.$strip>;
134
+ export declare const moduleValidationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
135
+ kind: z.ZodLiteral<"file-exists">;
136
+ path: z.ZodString;
137
+ }, z.core.$strip>, z.ZodObject<{
138
+ kind: z.ZodLiteral<"command-succeeds">;
139
+ command: z.ZodString;
140
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
141
+ }, z.core.$strip>], "kind">;
142
+ export declare const migrationOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
143
+ kind: z.ZodLiteral<"write">;
144
+ path: z.ZodString;
145
+ content: z.ZodString;
146
+ }, z.core.$strip>, z.ZodObject<{
147
+ kind: z.ZodLiteral<"delete">;
148
+ path: z.ZodString;
149
+ }, z.core.$strip>], "kind">;
150
+ export declare const moduleMigrationSchema: z.ZodObject<{
151
+ from: z.ZodString;
152
+ to: z.ZodString;
153
+ title: z.ZodString;
154
+ operations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
155
+ kind: z.ZodLiteral<"write">;
156
+ path: z.ZodString;
157
+ content: z.ZodString;
158
+ }, z.core.$strip>, z.ZodObject<{
159
+ kind: z.ZodLiteral<"delete">;
160
+ path: z.ZodString;
161
+ }, z.core.$strip>], "kind">>>;
162
+ safety: z.ZodEnum<{
163
+ automatic: "automatic";
164
+ "review-required": "review-required";
165
+ manual: "manual";
166
+ }>;
167
+ }, z.core.$strip>;
168
+ export declare const stackkitModuleSchema: z.ZodObject<{
169
+ id: z.ZodString;
170
+ version: z.ZodString;
171
+ title: z.ZodString;
172
+ description: z.ZodString;
173
+ aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
174
+ category: z.ZodOptional<z.ZodString>;
175
+ icon: z.ZodOptional<z.ZodString>;
176
+ requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
177
+ provides: z.ZodOptional<z.ZodArray<z.ZodString>>;
178
+ conflicts: z.ZodOptional<z.ZodArray<z.ZodString>>;
179
+ prompts: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
180
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
181
+ kind: z.ZodEnum<{
182
+ write: "write";
183
+ delete: "delete";
184
+ }>;
185
+ path: z.ZodString;
186
+ owner: z.ZodString;
187
+ content: z.ZodOptional<z.ZodString>;
188
+ mode: z.ZodOptional<z.ZodNumber>;
189
+ overwrite: z.ZodDefault<z.ZodEnum<{
190
+ never: "never";
191
+ "if-owned": "if-owned";
192
+ always: "always";
193
+ }>>;
194
+ }, z.core.$strip>>>;
195
+ packageChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
196
+ packagePath: z.ZodString;
197
+ scripts: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
198
+ dependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
199
+ devDependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
200
+ peerDependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
201
+ optionalDependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
202
+ }, z.core.$strip>>>;
203
+ envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
204
+ name: z.ZodString;
205
+ description: z.ZodString;
206
+ required: z.ZodDefault<z.ZodBoolean>;
207
+ example: z.ZodOptional<z.ZodString>;
208
+ target: z.ZodDefault<z.ZodEnum<{
209
+ root: "root";
210
+ web: "web";
211
+ api: "api";
212
+ db: "db";
213
+ }>>;
214
+ }, z.core.$strip>>>;
215
+ readme: z.ZodOptional<z.ZodObject<{
216
+ stack: z.ZodDefault<z.ZodArray<z.ZodString>>;
217
+ layout: z.ZodDefault<z.ZodArray<z.ZodObject<{
218
+ path: z.ZodString;
219
+ description: z.ZodString;
220
+ }, z.core.$strip>>>;
221
+ prerequisites: z.ZodDefault<z.ZodArray<z.ZodString>>;
222
+ installCommands: z.ZodDefault<z.ZodArray<z.ZodObject<{
223
+ label: z.ZodString;
224
+ command: z.ZodString;
225
+ }, z.core.$strip>>>;
226
+ devCommands: z.ZodDefault<z.ZodArray<z.ZodObject<{
227
+ label: z.ZodString;
228
+ command: z.ZodString;
229
+ }, z.core.$strip>>>;
230
+ verificationCommands: z.ZodDefault<z.ZodArray<z.ZodObject<{
231
+ label: z.ZodString;
232
+ command: z.ZodString;
233
+ }, z.core.$strip>>>;
234
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
235
+ label: z.ZodString;
236
+ command: z.ZodString;
237
+ }, z.core.$strip>>>;
238
+ stackkit: z.ZodDefault<z.ZodArray<z.ZodString>>;
239
+ }, z.core.$strip>>;
240
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
241
+ name: z.ZodString;
242
+ command: z.ZodString;
243
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
244
+ cwd: z.ZodOptional<z.ZodString>;
245
+ }, z.core.$strip>>>;
246
+ postCreate: z.ZodOptional<z.ZodArray<z.ZodObject<{
247
+ name: z.ZodString;
248
+ command: z.ZodString;
249
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
250
+ cwd: z.ZodOptional<z.ZodString>;
251
+ }, z.core.$strip>>>;
252
+ postAdd: z.ZodOptional<z.ZodArray<z.ZodObject<{
253
+ name: z.ZodString;
254
+ command: z.ZodString;
255
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
256
+ cwd: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strip>>>;
258
+ migrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
259
+ from: z.ZodString;
260
+ to: z.ZodString;
261
+ title: z.ZodString;
262
+ operations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
263
+ kind: z.ZodLiteral<"write">;
264
+ path: z.ZodString;
265
+ content: z.ZodString;
266
+ }, z.core.$strip>, z.ZodObject<{
267
+ kind: z.ZodLiteral<"delete">;
268
+ path: z.ZodString;
269
+ }, z.core.$strip>], "kind">>>;
270
+ safety: z.ZodEnum<{
271
+ automatic: "automatic";
272
+ "review-required": "review-required";
273
+ manual: "manual";
274
+ }>;
275
+ }, z.core.$strip>>>;
276
+ aiSkills: z.ZodOptional<z.ZodArray<z.ZodObject<{
277
+ source: z.ZodOptional<z.ZodString>;
278
+ skills: z.ZodArray<z.ZodString>;
279
+ trust: z.ZodEnum<{
280
+ official: "official";
281
+ curated: "curated";
282
+ local: "local";
283
+ unresolved: "unresolved";
284
+ }>;
285
+ causedBy: z.ZodString;
286
+ reason: z.ZodString;
287
+ installCount: z.ZodOptional<z.ZodNumber>;
288
+ repoStars: z.ZodOptional<z.ZodNumber>;
289
+ verifiedAt: z.ZodOptional<z.ZodString>;
290
+ optional: z.ZodOptional<z.ZodBoolean>;
291
+ }, z.core.$strip>>>;
292
+ validate: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
293
+ kind: z.ZodLiteral<"file-exists">;
294
+ path: z.ZodString;
295
+ }, z.core.$strip>, z.ZodObject<{
296
+ kind: z.ZodLiteral<"command-succeeds">;
297
+ command: z.ZodString;
298
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
299
+ }, z.core.$strip>], "kind">>>;
300
+ }, z.core.$strip>;
301
+ export declare const stackkitPresetSchema: z.ZodObject<{
302
+ id: z.ZodString;
303
+ title: z.ZodString;
304
+ description: z.ZodString;
305
+ modules: z.ZodArray<z.ZodString>;
306
+ }, z.core.$strip>;
307
+ export declare const stackkitRegistrySchema: z.ZodObject<{
308
+ schemaVersion: z.ZodLiteral<1>;
309
+ namespace: z.ZodString;
310
+ name: z.ZodString;
311
+ modules: z.ZodDefault<z.ZodArray<z.ZodObject<{
312
+ id: z.ZodString;
313
+ version: z.ZodString;
314
+ title: z.ZodString;
315
+ description: z.ZodString;
316
+ aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
317
+ category: z.ZodOptional<z.ZodString>;
318
+ icon: z.ZodOptional<z.ZodString>;
319
+ requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
320
+ provides: z.ZodOptional<z.ZodArray<z.ZodString>>;
321
+ conflicts: z.ZodOptional<z.ZodArray<z.ZodString>>;
322
+ prompts: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
323
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
324
+ kind: z.ZodEnum<{
325
+ write: "write";
326
+ delete: "delete";
327
+ }>;
328
+ path: z.ZodString;
329
+ owner: z.ZodString;
330
+ content: z.ZodOptional<z.ZodString>;
331
+ mode: z.ZodOptional<z.ZodNumber>;
332
+ overwrite: z.ZodDefault<z.ZodEnum<{
333
+ never: "never";
334
+ "if-owned": "if-owned";
335
+ always: "always";
336
+ }>>;
337
+ }, z.core.$strip>>>;
338
+ packageChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
339
+ packagePath: z.ZodString;
340
+ scripts: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
341
+ dependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
342
+ devDependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
343
+ peerDependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
344
+ optionalDependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
345
+ }, z.core.$strip>>>;
346
+ envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
347
+ name: z.ZodString;
348
+ description: z.ZodString;
349
+ required: z.ZodDefault<z.ZodBoolean>;
350
+ example: z.ZodOptional<z.ZodString>;
351
+ target: z.ZodDefault<z.ZodEnum<{
352
+ root: "root";
353
+ web: "web";
354
+ api: "api";
355
+ db: "db";
356
+ }>>;
357
+ }, z.core.$strip>>>;
358
+ readme: z.ZodOptional<z.ZodObject<{
359
+ stack: z.ZodDefault<z.ZodArray<z.ZodString>>;
360
+ layout: z.ZodDefault<z.ZodArray<z.ZodObject<{
361
+ path: z.ZodString;
362
+ description: z.ZodString;
363
+ }, z.core.$strip>>>;
364
+ prerequisites: z.ZodDefault<z.ZodArray<z.ZodString>>;
365
+ installCommands: z.ZodDefault<z.ZodArray<z.ZodObject<{
366
+ label: z.ZodString;
367
+ command: z.ZodString;
368
+ }, z.core.$strip>>>;
369
+ devCommands: z.ZodDefault<z.ZodArray<z.ZodObject<{
370
+ label: z.ZodString;
371
+ command: z.ZodString;
372
+ }, z.core.$strip>>>;
373
+ verificationCommands: z.ZodDefault<z.ZodArray<z.ZodObject<{
374
+ label: z.ZodString;
375
+ command: z.ZodString;
376
+ }, z.core.$strip>>>;
377
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
378
+ label: z.ZodString;
379
+ command: z.ZodString;
380
+ }, z.core.$strip>>>;
381
+ stackkit: z.ZodDefault<z.ZodArray<z.ZodString>>;
382
+ }, z.core.$strip>>;
383
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
384
+ name: z.ZodString;
385
+ command: z.ZodString;
386
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
387
+ cwd: z.ZodOptional<z.ZodString>;
388
+ }, z.core.$strip>>>;
389
+ postCreate: z.ZodOptional<z.ZodArray<z.ZodObject<{
390
+ name: z.ZodString;
391
+ command: z.ZodString;
392
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
393
+ cwd: z.ZodOptional<z.ZodString>;
394
+ }, z.core.$strip>>>;
395
+ postAdd: z.ZodOptional<z.ZodArray<z.ZodObject<{
396
+ name: z.ZodString;
397
+ command: z.ZodString;
398
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
399
+ cwd: z.ZodOptional<z.ZodString>;
400
+ }, z.core.$strip>>>;
401
+ migrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
402
+ from: z.ZodString;
403
+ to: z.ZodString;
404
+ title: z.ZodString;
405
+ operations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
406
+ kind: z.ZodLiteral<"write">;
407
+ path: z.ZodString;
408
+ content: z.ZodString;
409
+ }, z.core.$strip>, z.ZodObject<{
410
+ kind: z.ZodLiteral<"delete">;
411
+ path: z.ZodString;
412
+ }, z.core.$strip>], "kind">>>;
413
+ safety: z.ZodEnum<{
414
+ automatic: "automatic";
415
+ "review-required": "review-required";
416
+ manual: "manual";
417
+ }>;
418
+ }, z.core.$strip>>>;
419
+ aiSkills: z.ZodOptional<z.ZodArray<z.ZodObject<{
420
+ source: z.ZodOptional<z.ZodString>;
421
+ skills: z.ZodArray<z.ZodString>;
422
+ trust: z.ZodEnum<{
423
+ official: "official";
424
+ curated: "curated";
425
+ local: "local";
426
+ unresolved: "unresolved";
427
+ }>;
428
+ causedBy: z.ZodString;
429
+ reason: z.ZodString;
430
+ installCount: z.ZodOptional<z.ZodNumber>;
431
+ repoStars: z.ZodOptional<z.ZodNumber>;
432
+ verifiedAt: z.ZodOptional<z.ZodString>;
433
+ optional: z.ZodOptional<z.ZodBoolean>;
434
+ }, z.core.$strip>>>;
435
+ validate: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
436
+ kind: z.ZodLiteral<"file-exists">;
437
+ path: z.ZodString;
438
+ }, z.core.$strip>, z.ZodObject<{
439
+ kind: z.ZodLiteral<"command-succeeds">;
440
+ command: z.ZodString;
441
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
442
+ }, z.core.$strip>], "kind">>>;
443
+ }, z.core.$strip>>>;
444
+ presets: z.ZodDefault<z.ZodArray<z.ZodObject<{
445
+ id: z.ZodString;
446
+ title: z.ZodString;
447
+ description: z.ZodString;
448
+ modules: z.ZodArray<z.ZodString>;
449
+ }, z.core.$strip>>>;
450
+ }, z.core.$strip>;
451
+ export declare const aiSkillRegistryEntrySchema: z.ZodObject<{
452
+ module: z.ZodString;
453
+ aiSkills: z.ZodArray<z.ZodObject<{
454
+ source: z.ZodOptional<z.ZodString>;
455
+ skills: z.ZodArray<z.ZodString>;
456
+ trust: z.ZodEnum<{
457
+ official: "official";
458
+ curated: "curated";
459
+ local: "local";
460
+ unresolved: "unresolved";
461
+ }>;
462
+ causedBy: z.ZodString;
463
+ reason: z.ZodString;
464
+ installCount: z.ZodOptional<z.ZodNumber>;
465
+ repoStars: z.ZodOptional<z.ZodNumber>;
466
+ verifiedAt: z.ZodOptional<z.ZodString>;
467
+ optional: z.ZodOptional<z.ZodBoolean>;
468
+ }, z.core.$strip>>;
469
+ }, z.core.$strip>;
470
+ export declare const stackkitConfigSchema: z.ZodObject<{
471
+ projectName: z.ZodString;
472
+ preset: z.ZodOptional<z.ZodString>;
473
+ packageManager: z.ZodDefault<z.ZodEnum<{
474
+ pnpm: "pnpm";
475
+ npm: "npm";
476
+ yarn: "yarn";
477
+ bun: "bun";
478
+ }>>;
479
+ workspace: z.ZodDefault<z.ZodLiteral<"pnpm-turbo">>;
480
+ modules: z.ZodDefault<z.ZodArray<z.ZodString>>;
481
+ registries: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
482
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
483
+ ai: z.ZodDefault<z.ZodObject<{
484
+ skillTargets: z.ZodDefault<z.ZodArray<z.ZodEnum<{
485
+ codex: "codex";
486
+ "claude-code": "claude-code";
487
+ }>>>;
488
+ skillMode: z.ZodDefault<z.ZodEnum<{
489
+ install: "install";
490
+ plan: "plan";
491
+ skip: "skip";
492
+ }>>;
493
+ linkMode: z.ZodDefault<z.ZodEnum<{
494
+ copy: "copy";
495
+ symlink: "symlink";
496
+ }>>;
497
+ }, z.core.$strip>>;
498
+ }, z.core.$strip>;
499
+ export declare const aiConfigSchema: z.ZodDefault<z.ZodObject<{
500
+ skillTargets: z.ZodDefault<z.ZodArray<z.ZodEnum<{
501
+ codex: "codex";
502
+ "claude-code": "claude-code";
503
+ }>>>;
504
+ skillMode: z.ZodDefault<z.ZodEnum<{
505
+ install: "install";
506
+ plan: "plan";
507
+ skip: "skip";
508
+ }>>;
509
+ linkMode: z.ZodDefault<z.ZodEnum<{
510
+ copy: "copy";
511
+ symlink: "symlink";
512
+ }>>;
513
+ }, z.core.$strip>>;
514
+ export declare const stackkitRecipeSchema: z.ZodObject<{
515
+ schemaVersion: z.ZodLiteral<1>;
516
+ preset: z.ZodOptional<z.ZodString>;
517
+ packageManager: z.ZodDefault<z.ZodEnum<{
518
+ pnpm: "pnpm";
519
+ npm: "npm";
520
+ yarn: "yarn";
521
+ bun: "bun";
522
+ }>>;
523
+ modules: z.ZodDefault<z.ZodArray<z.ZodString>>;
524
+ options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
525
+ ai: z.ZodDefault<z.ZodObject<{
526
+ skillTargets: z.ZodDefault<z.ZodArray<z.ZodEnum<{
527
+ codex: "codex";
528
+ "claude-code": "claude-code";
529
+ }>>>;
530
+ skillMode: z.ZodDefault<z.ZodEnum<{
531
+ install: "install";
532
+ plan: "plan";
533
+ skip: "skip";
534
+ }>>;
535
+ linkMode: z.ZodDefault<z.ZodEnum<{
536
+ copy: "copy";
537
+ symlink: "symlink";
538
+ }>>;
539
+ }, z.core.$strip>>;
540
+ }, z.core.$strip>;
541
+ export declare const stackkitManifestSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
542
+ kind: z.ZodLiteral<"config">;
543
+ path: z.ZodString;
544
+ }, z.core.$strip>, z.ZodObject<{
545
+ kind: z.ZodLiteral<"scripted">;
546
+ }, z.core.$strip>, z.ZodObject<{
547
+ kind: z.ZodLiteral<"recipe">;
548
+ code: z.ZodString;
549
+ }, z.core.$strip>, z.ZodObject<{
550
+ kind: z.ZodLiteral<"interactive">;
551
+ }, z.core.$strip>], "kind">;
552
+ export declare const stackkitManifestSchema: z.ZodObject<{
553
+ schemaVersion: z.ZodLiteral<1>;
554
+ stackkitVersion: z.ZodString;
555
+ projectName: z.ZodString;
556
+ packageManager: z.ZodDefault<z.ZodEnum<{
557
+ pnpm: "pnpm";
558
+ npm: "npm";
559
+ yarn: "yarn";
560
+ bun: "bun";
561
+ }>>;
562
+ source: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
563
+ kind: z.ZodLiteral<"config">;
564
+ path: z.ZodString;
565
+ }, z.core.$strip>, z.ZodObject<{
566
+ kind: z.ZodLiteral<"scripted">;
567
+ }, z.core.$strip>, z.ZodObject<{
568
+ kind: z.ZodLiteral<"recipe">;
569
+ code: z.ZodString;
570
+ }, z.core.$strip>, z.ZodObject<{
571
+ kind: z.ZodLiteral<"interactive">;
572
+ }, z.core.$strip>], "kind">>;
573
+ paths: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
574
+ createdAt: z.ZodString;
575
+ modules: z.ZodArray<z.ZodObject<{
576
+ id: z.ZodString;
577
+ version: z.ZodString;
578
+ options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
579
+ }, z.core.$strip>>;
580
+ files: z.ZodArray<z.ZodObject<{
581
+ path: z.ZodString;
582
+ owner: z.ZodString;
583
+ hash: z.ZodString;
584
+ }, z.core.$strip>>;
585
+ aiSkills: z.ZodObject<{
586
+ mode: z.ZodDefault<z.ZodEnum<{
587
+ install: "install";
588
+ plan: "plan";
589
+ skip: "skip";
590
+ }>>;
591
+ linkMode: z.ZodDefault<z.ZodEnum<{
592
+ copy: "copy";
593
+ symlink: "symlink";
594
+ }>>;
595
+ targets: z.ZodDefault<z.ZodArray<z.ZodObject<{
596
+ agent: z.ZodEnum<{
597
+ codex: "codex";
598
+ "claude-code": "claude-code";
599
+ }>;
600
+ directory: z.ZodEnum<{
601
+ ".agents": ".agents";
602
+ ".claude": ".claude";
603
+ }>;
604
+ enabled: z.ZodBoolean;
605
+ }, z.core.$strip>>>;
606
+ installed: z.ZodArray<z.ZodObject<{
607
+ source: z.ZodOptional<z.ZodString>;
608
+ skills: z.ZodArray<z.ZodString>;
609
+ trust: z.ZodEnum<{
610
+ official: "official";
611
+ curated: "curated";
612
+ local: "local";
613
+ unresolved: "unresolved";
614
+ }>;
615
+ causedBy: z.ZodString;
616
+ reason: z.ZodString;
617
+ installCount: z.ZodOptional<z.ZodNumber>;
618
+ repoStars: z.ZodOptional<z.ZodNumber>;
619
+ verifiedAt: z.ZodOptional<z.ZodString>;
620
+ optional: z.ZodOptional<z.ZodBoolean>;
621
+ }, z.core.$strip>>;
622
+ planned: z.ZodDefault<z.ZodArray<z.ZodObject<{
623
+ source: z.ZodOptional<z.ZodString>;
624
+ skills: z.ZodArray<z.ZodString>;
625
+ trust: z.ZodEnum<{
626
+ official: "official";
627
+ curated: "curated";
628
+ local: "local";
629
+ unresolved: "unresolved";
630
+ }>;
631
+ causedBy: z.ZodString;
632
+ reason: z.ZodString;
633
+ installCount: z.ZodOptional<z.ZodNumber>;
634
+ repoStars: z.ZodOptional<z.ZodNumber>;
635
+ verifiedAt: z.ZodOptional<z.ZodString>;
636
+ optional: z.ZodOptional<z.ZodBoolean>;
637
+ }, z.core.$strip>>>;
638
+ local: z.ZodDefault<z.ZodArray<z.ZodObject<{
639
+ source: z.ZodOptional<z.ZodString>;
640
+ skills: z.ZodArray<z.ZodString>;
641
+ trust: z.ZodEnum<{
642
+ official: "official";
643
+ curated: "curated";
644
+ local: "local";
645
+ unresolved: "unresolved";
646
+ }>;
647
+ causedBy: z.ZodString;
648
+ reason: z.ZodString;
649
+ installCount: z.ZodOptional<z.ZodNumber>;
650
+ repoStars: z.ZodOptional<z.ZodNumber>;
651
+ verifiedAt: z.ZodOptional<z.ZodString>;
652
+ optional: z.ZodOptional<z.ZodBoolean>;
653
+ }, z.core.$strip>>>;
654
+ unresolved: z.ZodArray<z.ZodObject<{
655
+ source: z.ZodOptional<z.ZodString>;
656
+ skills: z.ZodArray<z.ZodString>;
657
+ trust: z.ZodEnum<{
658
+ official: "official";
659
+ curated: "curated";
660
+ local: "local";
661
+ unresolved: "unresolved";
662
+ }>;
663
+ causedBy: z.ZodString;
664
+ reason: z.ZodString;
665
+ installCount: z.ZodOptional<z.ZodNumber>;
666
+ repoStars: z.ZodOptional<z.ZodNumber>;
667
+ verifiedAt: z.ZodOptional<z.ZodString>;
668
+ optional: z.ZodOptional<z.ZodBoolean>;
669
+ }, z.core.$strip>>;
670
+ }, z.core.$strip>;
671
+ migrations: z.ZodObject<{
672
+ applied: z.ZodArray<z.ZodUnknown>;
673
+ }, z.core.$strip>;
674
+ }, z.core.$strip>;
675
+ export declare const skillsLockSchema: z.ZodObject<{
676
+ schemaVersion: z.ZodLiteral<1>;
677
+ mode: z.ZodDefault<z.ZodEnum<{
678
+ install: "install";
679
+ plan: "plan";
680
+ skip: "skip";
681
+ }>>;
682
+ linkMode: z.ZodDefault<z.ZodEnum<{
683
+ copy: "copy";
684
+ symlink: "symlink";
685
+ }>>;
686
+ targets: z.ZodArray<z.ZodObject<{
687
+ agent: z.ZodEnum<{
688
+ codex: "codex";
689
+ "claude-code": "claude-code";
690
+ }>;
691
+ directory: z.ZodEnum<{
692
+ ".agents": ".agents";
693
+ ".claude": ".claude";
694
+ }>;
695
+ enabled: z.ZodBoolean;
696
+ }, z.core.$strip>>;
697
+ installed: z.ZodArray<z.ZodObject<{
698
+ source: z.ZodOptional<z.ZodString>;
699
+ skills: z.ZodArray<z.ZodString>;
700
+ trust: z.ZodEnum<{
701
+ official: "official";
702
+ curated: "curated";
703
+ local: "local";
704
+ unresolved: "unresolved";
705
+ }>;
706
+ causedBy: z.ZodString;
707
+ reason: z.ZodString;
708
+ installCount: z.ZodOptional<z.ZodNumber>;
709
+ repoStars: z.ZodOptional<z.ZodNumber>;
710
+ verifiedAt: z.ZodOptional<z.ZodString>;
711
+ optional: z.ZodOptional<z.ZodBoolean>;
712
+ }, z.core.$strip>>;
713
+ planned: z.ZodDefault<z.ZodArray<z.ZodObject<{
714
+ source: z.ZodOptional<z.ZodString>;
715
+ skills: z.ZodArray<z.ZodString>;
716
+ trust: z.ZodEnum<{
717
+ official: "official";
718
+ curated: "curated";
719
+ local: "local";
720
+ unresolved: "unresolved";
721
+ }>;
722
+ causedBy: z.ZodString;
723
+ reason: z.ZodString;
724
+ installCount: z.ZodOptional<z.ZodNumber>;
725
+ repoStars: z.ZodOptional<z.ZodNumber>;
726
+ verifiedAt: z.ZodOptional<z.ZodString>;
727
+ optional: z.ZodOptional<z.ZodBoolean>;
728
+ }, z.core.$strip>>>;
729
+ local: z.ZodArray<z.ZodObject<{
730
+ source: z.ZodOptional<z.ZodString>;
731
+ skills: z.ZodArray<z.ZodString>;
732
+ trust: z.ZodEnum<{
733
+ official: "official";
734
+ curated: "curated";
735
+ local: "local";
736
+ unresolved: "unresolved";
737
+ }>;
738
+ causedBy: z.ZodString;
739
+ reason: z.ZodString;
740
+ installCount: z.ZodOptional<z.ZodNumber>;
741
+ repoStars: z.ZodOptional<z.ZodNumber>;
742
+ verifiedAt: z.ZodOptional<z.ZodString>;
743
+ optional: z.ZodOptional<z.ZodBoolean>;
744
+ }, z.core.$strip>>;
745
+ unresolved: z.ZodArray<z.ZodObject<{
746
+ source: z.ZodOptional<z.ZodString>;
747
+ skills: z.ZodArray<z.ZodString>;
748
+ trust: z.ZodEnum<{
749
+ official: "official";
750
+ curated: "curated";
751
+ local: "local";
752
+ unresolved: "unresolved";
753
+ }>;
754
+ causedBy: z.ZodString;
755
+ reason: z.ZodString;
756
+ installCount: z.ZodOptional<z.ZodNumber>;
757
+ repoStars: z.ZodOptional<z.ZodNumber>;
758
+ verifiedAt: z.ZodOptional<z.ZodString>;
759
+ optional: z.ZodOptional<z.ZodBoolean>;
760
+ }, z.core.$strip>>;
761
+ }, z.core.$strip>;
762
+ export declare const doctorCheckSchema: z.ZodObject<{
763
+ id: z.ZodString;
764
+ status: z.ZodEnum<{
765
+ error: "error";
766
+ ok: "ok";
767
+ warning: "warning";
768
+ }>;
769
+ message: z.ZodString;
770
+ actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
771
+ }, z.core.$strip>;
772
+ export declare const doctorResultSchema: z.ZodObject<{
773
+ ok: z.ZodBoolean;
774
+ checks: z.ZodArray<z.ZodObject<{
775
+ id: z.ZodString;
776
+ status: z.ZodEnum<{
777
+ error: "error";
778
+ ok: "ok";
779
+ warning: "warning";
780
+ }>;
781
+ message: z.ZodString;
782
+ actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
783
+ }, z.core.$strip>>;
784
+ }, z.core.$strip>;
785
+ export type ModuleId = z.infer<typeof moduleIdSchema>;
786
+ export type SemVer = z.infer<typeof semverSchema>;
787
+ export type AiSkillTrust = z.infer<typeof aiSkillTrustSchema>;
788
+ export type AiSkillAgent = z.infer<typeof aiSkillAgentSchema>;
789
+ export type AiSkillMode = z.infer<typeof aiSkillModeSchema>;
790
+ export type AiSkillLinkMode = z.infer<typeof aiSkillLinkModeSchema>;
791
+ export type PackageManager = z.infer<typeof packageManagerSchema>;
792
+ export type AiSkillTarget = z.infer<typeof aiSkillTargetSchema>;
793
+ export type AiSkillDependency = z.infer<typeof aiSkillDependencySchema>;
794
+ export type FileOverwritePolicy = z.infer<typeof fileOverwritePolicySchema>;
795
+ export type FileOperation = z.infer<typeof fileOperationSchema>;
796
+ export type PackageChange = z.infer<typeof packageChangeSchema>;
797
+ export type EnvVarDefinition = z.input<typeof envVarDefinitionSchema>;
798
+ export type ReadmeMetadata = z.infer<typeof readmeMetadataSchema>;
799
+ export type TaskDefinition = z.infer<typeof taskDefinitionSchema>;
800
+ export type LifecycleHook = z.infer<typeof lifecycleHookSchema>;
801
+ export type ModuleValidation = z.infer<typeof moduleValidationSchema>;
802
+ export type MigrationOperation = z.infer<typeof migrationOperationSchema>;
803
+ export type AiSkillRegistryEntry = z.infer<typeof aiSkillRegistryEntrySchema>;
804
+ export type ModuleMigration = z.infer<typeof moduleMigrationSchema>;
805
+ export type StackkitModuleInput = z.input<typeof stackkitModuleSchema>;
806
+ export type StackkitPresetInput = z.input<typeof stackkitPresetSchema>;
807
+ export type StackkitModule = z.infer<typeof stackkitModuleSchema>;
808
+ export type StackkitPreset = z.infer<typeof stackkitPresetSchema>;
809
+ export type StackkitRegistry = z.infer<typeof stackkitRegistrySchema>;
810
+ export type StackkitConfig = z.infer<typeof stackkitConfigSchema>;
811
+ export type StackkitRecipeInput = z.input<typeof stackkitRecipeSchema>;
812
+ export type StackkitRecipe = z.infer<typeof stackkitRecipeSchema>;
813
+ export type StackkitManifestSource = z.infer<typeof stackkitManifestSourceSchema>;
814
+ export type StackkitManifest = z.infer<typeof stackkitManifestSchema>;
815
+ export type SkillsLock = z.infer<typeof skillsLockSchema>;
816
+ export type DoctorCheck = z.infer<typeof doctorCheckSchema>;
817
+ export type DoctorResult = z.infer<typeof doctorResultSchema>;
818
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc,aAAoB,CAAC;AAChD,eAAO,MAAM,YAAY,aAAoB,CAAC;AAC9C,eAAO,MAAM,iBAAiB,aAEiD,CAAC;AAEhF,eAAO,MAAM,kBAAkB;;;;;EAAyD,CAAC;AACzF,eAAO,MAAM,kBAAkB;;;EAAmC,CAAC;AACnE,eAAO,MAAM,iBAAiB;;;;EAAsC,CAAC;AACrE,eAAO,MAAM,qBAAqB;;;EAA8B,CAAC;AACjE,eAAO,MAAM,oBAAoB;;;;;EAAyC,CAAC;AAE3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AAC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACvE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,240 @@
1
+ import { z } from "zod";
2
+ export const moduleIdSchema = z.string().min(1);
3
+ export const semverSchema = z.string().min(1);
4
+ export const projectSlugSchema = z
5
+ .string()
6
+ .regex(/^[a-z0-9][a-z0-9-]*$/, "Use a lowercase slug such as acme-dashboard");
7
+ export const aiSkillTrustSchema = z.enum(["official", "curated", "local", "unresolved"]);
8
+ export const aiSkillAgentSchema = z.enum(["codex", "claude-code"]);
9
+ export const aiSkillModeSchema = z.enum(["install", "plan", "skip"]);
10
+ export const aiSkillLinkModeSchema = z.enum(["copy", "symlink"]);
11
+ export const packageManagerSchema = z.enum(["pnpm", "npm", "yarn", "bun"]);
12
+ export const aiSkillTargetSchema = z.object({
13
+ agent: aiSkillAgentSchema,
14
+ directory: z.enum([".agents", ".claude"]),
15
+ enabled: z.boolean()
16
+ });
17
+ export const aiSkillDependencySchema = z.object({
18
+ source: z.string().url().optional(),
19
+ skills: z.array(z.string().min(1)).min(1),
20
+ trust: aiSkillTrustSchema,
21
+ causedBy: moduleIdSchema,
22
+ reason: z.string().min(1),
23
+ installCount: z.number().int().nonnegative().optional(),
24
+ repoStars: z.number().int().nonnegative().optional(),
25
+ verifiedAt: z.string().optional(),
26
+ optional: z.boolean().optional()
27
+ });
28
+ export const fileOverwritePolicySchema = z.enum(["never", "if-owned", "always"]);
29
+ export const fileOperationSchema = z.object({
30
+ kind: z.enum(["write", "delete"]),
31
+ path: z.string().min(1),
32
+ owner: moduleIdSchema,
33
+ content: z.string().optional(),
34
+ mode: z.number().int().optional(),
35
+ overwrite: fileOverwritePolicySchema.default("if-owned")
36
+ });
37
+ const packageJsonFieldsSchema = z.record(z.string(), z.string());
38
+ export const packageChangeSchema = z.object({
39
+ packagePath: z.string().min(1),
40
+ scripts: packageJsonFieldsSchema.default({}),
41
+ dependencies: packageJsonFieldsSchema.default({}),
42
+ devDependencies: packageJsonFieldsSchema.default({}),
43
+ peerDependencies: packageJsonFieldsSchema.default({}),
44
+ optionalDependencies: packageJsonFieldsSchema.default({})
45
+ });
46
+ export const envVarDefinitionSchema = z.object({
47
+ name: z.string().min(1),
48
+ description: z.string().min(1),
49
+ required: z.boolean().default(true),
50
+ example: z.string().optional(),
51
+ target: z.enum(["root", "web", "api", "db"]).default("root")
52
+ });
53
+ const readmeCommandSchema = z.object({
54
+ label: z.string().min(1),
55
+ command: z.string().min(1)
56
+ });
57
+ export const readmeMetadataSchema = z.object({
58
+ stack: z.array(z.string().min(1)).default([]),
59
+ layout: z
60
+ .array(z.object({
61
+ path: z.string().min(1),
62
+ description: z.string().min(1)
63
+ }))
64
+ .default([]),
65
+ prerequisites: z.array(z.string().min(1)).default([]),
66
+ installCommands: z.array(readmeCommandSchema).default([]),
67
+ devCommands: z.array(readmeCommandSchema).default([]),
68
+ verificationCommands: z.array(readmeCommandSchema).default([]),
69
+ commands: z.array(readmeCommandSchema).default([]),
70
+ stackkit: z.array(z.string().min(1)).default([])
71
+ });
72
+ export const taskDefinitionSchema = z.object({
73
+ name: z.string().min(1),
74
+ command: z.string().min(1),
75
+ args: z.array(z.string()).default([]),
76
+ cwd: z.string().min(1).optional()
77
+ });
78
+ export const lifecycleHookSchema = taskDefinitionSchema;
79
+ export const moduleValidationSchema = z.discriminatedUnion("kind", [
80
+ z.object({
81
+ kind: z.literal("file-exists"),
82
+ path: z.string().min(1)
83
+ }),
84
+ z.object({
85
+ kind: z.literal("command-succeeds"),
86
+ command: z.string().min(1),
87
+ args: z.array(z.string()).default([])
88
+ })
89
+ ]);
90
+ export const migrationOperationSchema = z.discriminatedUnion("kind", [
91
+ z.object({
92
+ kind: z.literal("write"),
93
+ path: z.string().min(1),
94
+ content: z.string()
95
+ }),
96
+ z.object({
97
+ kind: z.literal("delete"),
98
+ path: z.string().min(1)
99
+ })
100
+ ]);
101
+ export const moduleMigrationSchema = z.object({
102
+ from: z.string().min(1),
103
+ to: semverSchema,
104
+ title: z.string().min(1),
105
+ operations: z.array(migrationOperationSchema).default([]),
106
+ safety: z.enum(["automatic", "review-required", "manual"])
107
+ });
108
+ export const stackkitModuleSchema = z.object({
109
+ id: moduleIdSchema,
110
+ version: semverSchema,
111
+ title: z.string().min(1),
112
+ description: z.string().min(1),
113
+ aliases: z.array(z.string().min(1)).default([]),
114
+ category: z.string().min(1).optional(),
115
+ icon: z.string().min(1).optional(),
116
+ requires: z.array(z.string().min(1)).optional(),
117
+ provides: z.array(z.string().min(1)).optional(),
118
+ conflicts: z.array(moduleIdSchema).optional(),
119
+ prompts: z.array(z.unknown()).optional(),
120
+ files: z.array(fileOperationSchema).optional(),
121
+ packageChanges: z.array(packageChangeSchema).optional(),
122
+ envVars: z.array(envVarDefinitionSchema).optional(),
123
+ readme: readmeMetadataSchema.optional(),
124
+ tasks: z.array(taskDefinitionSchema).optional(),
125
+ postCreate: z.array(lifecycleHookSchema).optional(),
126
+ postAdd: z.array(lifecycleHookSchema).optional(),
127
+ migrations: z.array(moduleMigrationSchema).optional(),
128
+ aiSkills: z.array(aiSkillDependencySchema).optional(),
129
+ validate: z.array(moduleValidationSchema).optional()
130
+ });
131
+ export const stackkitPresetSchema = z.object({
132
+ id: z.string().min(1),
133
+ title: z.string().min(1),
134
+ description: z.string().min(1),
135
+ modules: z.array(moduleIdSchema).min(1)
136
+ });
137
+ export const stackkitRegistrySchema = z.object({
138
+ schemaVersion: z.literal(1),
139
+ namespace: z.string().min(1),
140
+ name: z.string().min(1),
141
+ modules: z.array(stackkitModuleSchema).default([]),
142
+ presets: z.array(stackkitPresetSchema).default([])
143
+ });
144
+ export const aiSkillRegistryEntrySchema = z.object({
145
+ module: moduleIdSchema,
146
+ aiSkills: z.array(aiSkillDependencySchema).min(1)
147
+ });
148
+ export const stackkitConfigSchema = z.object({
149
+ projectName: projectSlugSchema,
150
+ preset: z.string().min(1).optional(),
151
+ packageManager: packageManagerSchema.default("pnpm"),
152
+ workspace: z.literal("pnpm-turbo").default("pnpm-turbo"),
153
+ modules: z.array(moduleIdSchema).default([]),
154
+ registries: z.record(z.string(), z.string()).default({}),
155
+ options: z.record(moduleIdSchema, z.record(z.string(), z.unknown())).optional(),
156
+ ai: z
157
+ .object({
158
+ skillTargets: z.array(aiSkillAgentSchema).default(["codex"]),
159
+ skillMode: aiSkillModeSchema.default("install"),
160
+ linkMode: aiSkillLinkModeSchema.default("copy")
161
+ })
162
+ .default({ skillTargets: ["codex"], skillMode: "install", linkMode: "copy" })
163
+ });
164
+ export const aiConfigSchema = stackkitConfigSchema.shape.ai;
165
+ export const stackkitRecipeSchema = z.object({
166
+ schemaVersion: z.literal(1),
167
+ preset: z.string().min(1).optional(),
168
+ packageManager: packageManagerSchema.default("pnpm"),
169
+ modules: z.array(moduleIdSchema).default([]),
170
+ options: z.record(moduleIdSchema, z.record(z.string(), z.unknown())).default({}),
171
+ ai: aiConfigSchema
172
+ });
173
+ export const stackkitManifestSourceSchema = z.discriminatedUnion("kind", [
174
+ z.object({
175
+ kind: z.literal("config"),
176
+ path: z.string().min(1)
177
+ }),
178
+ z.object({
179
+ kind: z.literal("scripted")
180
+ }),
181
+ z.object({
182
+ kind: z.literal("recipe"),
183
+ code: z.string().min(1)
184
+ }),
185
+ z.object({
186
+ kind: z.literal("interactive")
187
+ })
188
+ ]);
189
+ export const stackkitManifestSchema = z.object({
190
+ schemaVersion: z.literal(1),
191
+ stackkitVersion: z.string().min(1),
192
+ projectName: projectSlugSchema,
193
+ packageManager: packageManagerSchema.default("pnpm"),
194
+ source: stackkitManifestSourceSchema.default({ kind: "config", path: "stackkit.config.json" }),
195
+ paths: z.record(z.string(), z.string()).default({ root: "." }),
196
+ createdAt: z.string().min(1),
197
+ modules: z.array(z.object({
198
+ id: moduleIdSchema,
199
+ version: semverSchema,
200
+ options: z.record(z.string(), z.unknown()).default({})
201
+ })),
202
+ files: z.array(z.object({
203
+ path: z.string().min(1),
204
+ owner: moduleIdSchema,
205
+ hash: z.string().min(1)
206
+ })),
207
+ aiSkills: z.object({
208
+ mode: aiSkillModeSchema.default("install"),
209
+ linkMode: aiSkillLinkModeSchema.default("copy"),
210
+ targets: z.array(aiSkillTargetSchema).default([{ agent: "codex", directory: ".agents", enabled: true }]),
211
+ installed: z.array(aiSkillDependencySchema),
212
+ planned: z.array(aiSkillDependencySchema).default([]),
213
+ local: z.array(aiSkillDependencySchema).default([]),
214
+ unresolved: z.array(aiSkillDependencySchema)
215
+ }),
216
+ migrations: z.object({
217
+ applied: z.array(z.unknown())
218
+ })
219
+ });
220
+ export const skillsLockSchema = z.object({
221
+ schemaVersion: z.literal(1),
222
+ mode: aiSkillModeSchema.default("install"),
223
+ linkMode: aiSkillLinkModeSchema.default("copy"),
224
+ targets: z.array(aiSkillTargetSchema),
225
+ installed: z.array(aiSkillDependencySchema),
226
+ planned: z.array(aiSkillDependencySchema).default([]),
227
+ local: z.array(aiSkillDependencySchema),
228
+ unresolved: z.array(aiSkillDependencySchema)
229
+ });
230
+ export const doctorCheckSchema = z.object({
231
+ id: z.string().min(1),
232
+ status: z.enum(["ok", "warning", "error"]),
233
+ message: z.string().min(1),
234
+ actions: z.array(z.string().min(1)).default([])
235
+ });
236
+ export const doctorResultSchema = z.object({
237
+ ok: z.boolean(),
238
+ checks: z.array(doctorCheckSchema)
239
+ });
240
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAChD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC9C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,MAAM,EAAE;KACR,KAAK,CAAC,sBAAsB,EAAE,6CAA6C,CAAC,CAAC;AAEhF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;AACzF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AACrE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,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uB,CAAC;CAC7C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAC1C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAChD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;CACnC,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@berkayorhan/stackkit-schemas",
3
+ "version": "0.1.0",
4
+ "description": "Shared schemas for Stackkit monorepo generation.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "main": "./dist/index.js",
14
+ "types": "./dist/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "default": "./dist/index.js"
19
+ }
20
+ },
21
+ "dependencies": {
22
+ "zod": "^4.0.0"
23
+ },
24
+ "scripts": {
25
+ "build": "tsc -p tsconfig.json",
26
+ "test": "vitest run --passWithNoTests",
27
+ "typecheck": "tsc -p tsconfig.json --noEmit"
28
+ }
29
+ }