@structured-vibe-coding/core 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1224 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const GateSchema: z.ZodObject<{
4
+ type: z.ZodDefault<z.ZodEnum<["none", "soft", "hard"]>>;
5
+ mode: z.ZodDefault<z.ZodEnum<["none", "human_approval", "checklist"]>>;
6
+ checklist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
7
+ overridable: z.ZodDefault<z.ZodBoolean>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ type: "none" | "soft" | "hard";
10
+ checklist: string[];
11
+ mode: "none" | "human_approval" | "checklist";
12
+ overridable: boolean;
13
+ }, {
14
+ type?: "none" | "soft" | "hard" | undefined;
15
+ checklist?: string[] | undefined;
16
+ mode?: "none" | "human_approval" | "checklist" | undefined;
17
+ overridable?: boolean | undefined;
18
+ }>;
19
+ declare const ArtifactDefSchema: z.ZodObject<{
20
+ id: z.ZodString;
21
+ path: z.ZodString;
22
+ template: z.ZodOptional<z.ZodString>;
23
+ required: z.ZodDefault<z.ZodBoolean>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ path: string;
26
+ id: string;
27
+ required: boolean;
28
+ template?: string | undefined;
29
+ }, {
30
+ path: string;
31
+ id: string;
32
+ template?: string | undefined;
33
+ required?: boolean | undefined;
34
+ }>;
35
+ declare const VerifyCommandSchema: z.ZodObject<{
36
+ name: z.ZodString;
37
+ run: z.ZodString;
38
+ required: z.ZodDefault<z.ZodBoolean>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ required: boolean;
41
+ name: string;
42
+ run: string;
43
+ }, {
44
+ name: string;
45
+ run: string;
46
+ required?: boolean | undefined;
47
+ }>;
48
+ declare const StageSchema: z.ZodObject<{
49
+ id: z.ZodString;
50
+ title: z.ZodOptional<z.ZodString>;
51
+ summary: z.ZodOptional<z.ZodString>;
52
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
53
+ id: z.ZodString;
54
+ path: z.ZodString;
55
+ template: z.ZodOptional<z.ZodString>;
56
+ required: z.ZodDefault<z.ZodBoolean>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ path: string;
59
+ id: string;
60
+ required: boolean;
61
+ template?: string | undefined;
62
+ }, {
63
+ path: string;
64
+ id: string;
65
+ template?: string | undefined;
66
+ required?: boolean | undefined;
67
+ }>, "many">>;
68
+ gate: z.ZodDefault<z.ZodObject<{
69
+ type: z.ZodDefault<z.ZodEnum<["none", "soft", "hard"]>>;
70
+ mode: z.ZodDefault<z.ZodEnum<["none", "human_approval", "checklist"]>>;
71
+ checklist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
72
+ overridable: z.ZodDefault<z.ZodBoolean>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ type: "none" | "soft" | "hard";
75
+ checklist: string[];
76
+ mode: "none" | "human_approval" | "checklist";
77
+ overridable: boolean;
78
+ }, {
79
+ type?: "none" | "soft" | "hard" | undefined;
80
+ checklist?: string[] | undefined;
81
+ mode?: "none" | "human_approval" | "checklist" | undefined;
82
+ overridable?: boolean | undefined;
83
+ }>>;
84
+ skippable: z.ZodDefault<z.ZodBoolean>;
85
+ skip_when: z.ZodOptional<z.ZodObject<{
86
+ flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ flags?: string[] | undefined;
89
+ }, {
90
+ flags?: string[] | undefined;
91
+ }>>;
92
+ verify: z.ZodOptional<z.ZodObject<{
93
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
94
+ name: z.ZodString;
95
+ run: z.ZodString;
96
+ required: z.ZodDefault<z.ZodBoolean>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ required: boolean;
99
+ name: string;
100
+ run: string;
101
+ }, {
102
+ name: string;
103
+ run: string;
104
+ required?: boolean | undefined;
105
+ }>, "many">>;
106
+ evidence_dir: z.ZodOptional<z.ZodString>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ commands: {
109
+ required: boolean;
110
+ name: string;
111
+ run: string;
112
+ }[];
113
+ evidence_dir?: string | undefined;
114
+ }, {
115
+ commands?: {
116
+ name: string;
117
+ run: string;
118
+ required?: boolean | undefined;
119
+ }[] | undefined;
120
+ evidence_dir?: string | undefined;
121
+ }>>;
122
+ agent_context: z.ZodOptional<z.ZodObject<{
123
+ include: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
124
+ instructions: z.ZodOptional<z.ZodString>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ include: string[];
127
+ instructions?: string | undefined;
128
+ }, {
129
+ include?: string[] | undefined;
130
+ instructions?: string | undefined;
131
+ }>>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ id: string;
134
+ artifacts: {
135
+ path: string;
136
+ id: string;
137
+ required: boolean;
138
+ template?: string | undefined;
139
+ }[];
140
+ gate: {
141
+ type: "none" | "soft" | "hard";
142
+ checklist: string[];
143
+ mode: "none" | "human_approval" | "checklist";
144
+ overridable: boolean;
145
+ };
146
+ skippable: boolean;
147
+ title?: string | undefined;
148
+ summary?: string | undefined;
149
+ skip_when?: {
150
+ flags?: string[] | undefined;
151
+ } | undefined;
152
+ verify?: {
153
+ commands: {
154
+ required: boolean;
155
+ name: string;
156
+ run: string;
157
+ }[];
158
+ evidence_dir?: string | undefined;
159
+ } | undefined;
160
+ agent_context?: {
161
+ include: string[];
162
+ instructions?: string | undefined;
163
+ } | undefined;
164
+ }, {
165
+ id: string;
166
+ title?: string | undefined;
167
+ summary?: string | undefined;
168
+ artifacts?: {
169
+ path: string;
170
+ id: string;
171
+ template?: string | undefined;
172
+ required?: boolean | undefined;
173
+ }[] | undefined;
174
+ gate?: {
175
+ type?: "none" | "soft" | "hard" | undefined;
176
+ checklist?: string[] | undefined;
177
+ mode?: "none" | "human_approval" | "checklist" | undefined;
178
+ overridable?: boolean | undefined;
179
+ } | undefined;
180
+ skippable?: boolean | undefined;
181
+ skip_when?: {
182
+ flags?: string[] | undefined;
183
+ } | undefined;
184
+ verify?: {
185
+ commands?: {
186
+ name: string;
187
+ run: string;
188
+ required?: boolean | undefined;
189
+ }[] | undefined;
190
+ evidence_dir?: string | undefined;
191
+ } | undefined;
192
+ agent_context?: {
193
+ include?: string[] | undefined;
194
+ instructions?: string | undefined;
195
+ } | undefined;
196
+ }>;
197
+ declare const WorkflowSchema: z.ZodObject<{
198
+ name: z.ZodString;
199
+ description: z.ZodOptional<z.ZodString>;
200
+ version: z.ZodDefault<z.ZodNumber>;
201
+ stages: z.ZodArray<z.ZodObject<{
202
+ id: z.ZodString;
203
+ title: z.ZodOptional<z.ZodString>;
204
+ summary: z.ZodOptional<z.ZodString>;
205
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
206
+ id: z.ZodString;
207
+ path: z.ZodString;
208
+ template: z.ZodOptional<z.ZodString>;
209
+ required: z.ZodDefault<z.ZodBoolean>;
210
+ }, "strip", z.ZodTypeAny, {
211
+ path: string;
212
+ id: string;
213
+ required: boolean;
214
+ template?: string | undefined;
215
+ }, {
216
+ path: string;
217
+ id: string;
218
+ template?: string | undefined;
219
+ required?: boolean | undefined;
220
+ }>, "many">>;
221
+ gate: z.ZodDefault<z.ZodObject<{
222
+ type: z.ZodDefault<z.ZodEnum<["none", "soft", "hard"]>>;
223
+ mode: z.ZodDefault<z.ZodEnum<["none", "human_approval", "checklist"]>>;
224
+ checklist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
225
+ overridable: z.ZodDefault<z.ZodBoolean>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ type: "none" | "soft" | "hard";
228
+ checklist: string[];
229
+ mode: "none" | "human_approval" | "checklist";
230
+ overridable: boolean;
231
+ }, {
232
+ type?: "none" | "soft" | "hard" | undefined;
233
+ checklist?: string[] | undefined;
234
+ mode?: "none" | "human_approval" | "checklist" | undefined;
235
+ overridable?: boolean | undefined;
236
+ }>>;
237
+ skippable: z.ZodDefault<z.ZodBoolean>;
238
+ skip_when: z.ZodOptional<z.ZodObject<{
239
+ flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ flags?: string[] | undefined;
242
+ }, {
243
+ flags?: string[] | undefined;
244
+ }>>;
245
+ verify: z.ZodOptional<z.ZodObject<{
246
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
247
+ name: z.ZodString;
248
+ run: z.ZodString;
249
+ required: z.ZodDefault<z.ZodBoolean>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ required: boolean;
252
+ name: string;
253
+ run: string;
254
+ }, {
255
+ name: string;
256
+ run: string;
257
+ required?: boolean | undefined;
258
+ }>, "many">>;
259
+ evidence_dir: z.ZodOptional<z.ZodString>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ commands: {
262
+ required: boolean;
263
+ name: string;
264
+ run: string;
265
+ }[];
266
+ evidence_dir?: string | undefined;
267
+ }, {
268
+ commands?: {
269
+ name: string;
270
+ run: string;
271
+ required?: boolean | undefined;
272
+ }[] | undefined;
273
+ evidence_dir?: string | undefined;
274
+ }>>;
275
+ agent_context: z.ZodOptional<z.ZodObject<{
276
+ include: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
277
+ instructions: z.ZodOptional<z.ZodString>;
278
+ }, "strip", z.ZodTypeAny, {
279
+ include: string[];
280
+ instructions?: string | undefined;
281
+ }, {
282
+ include?: string[] | undefined;
283
+ instructions?: string | undefined;
284
+ }>>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ id: string;
287
+ artifacts: {
288
+ path: string;
289
+ id: string;
290
+ required: boolean;
291
+ template?: string | undefined;
292
+ }[];
293
+ gate: {
294
+ type: "none" | "soft" | "hard";
295
+ checklist: string[];
296
+ mode: "none" | "human_approval" | "checklist";
297
+ overridable: boolean;
298
+ };
299
+ skippable: boolean;
300
+ title?: string | undefined;
301
+ summary?: string | undefined;
302
+ skip_when?: {
303
+ flags?: string[] | undefined;
304
+ } | undefined;
305
+ verify?: {
306
+ commands: {
307
+ required: boolean;
308
+ name: string;
309
+ run: string;
310
+ }[];
311
+ evidence_dir?: string | undefined;
312
+ } | undefined;
313
+ agent_context?: {
314
+ include: string[];
315
+ instructions?: string | undefined;
316
+ } | undefined;
317
+ }, {
318
+ id: string;
319
+ title?: string | undefined;
320
+ summary?: string | undefined;
321
+ artifacts?: {
322
+ path: string;
323
+ id: string;
324
+ template?: string | undefined;
325
+ required?: boolean | undefined;
326
+ }[] | undefined;
327
+ gate?: {
328
+ type?: "none" | "soft" | "hard" | undefined;
329
+ checklist?: string[] | undefined;
330
+ mode?: "none" | "human_approval" | "checklist" | undefined;
331
+ overridable?: boolean | undefined;
332
+ } | undefined;
333
+ skippable?: boolean | undefined;
334
+ skip_when?: {
335
+ flags?: string[] | undefined;
336
+ } | undefined;
337
+ verify?: {
338
+ commands?: {
339
+ name: string;
340
+ run: string;
341
+ required?: boolean | undefined;
342
+ }[] | undefined;
343
+ evidence_dir?: string | undefined;
344
+ } | undefined;
345
+ agent_context?: {
346
+ include?: string[] | undefined;
347
+ instructions?: string | undefined;
348
+ } | undefined;
349
+ }>, "many">;
350
+ recommendation: z.ZodOptional<z.ZodObject<{
351
+ when: z.ZodOptional<z.ZodObject<{
352
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
353
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
354
+ max_complexity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
355
+ min_complexity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ labels?: string[] | undefined;
358
+ keywords?: string[] | undefined;
359
+ max_complexity?: "low" | "medium" | "high" | undefined;
360
+ min_complexity?: "low" | "medium" | "high" | undefined;
361
+ }, {
362
+ labels?: string[] | undefined;
363
+ keywords?: string[] | undefined;
364
+ max_complexity?: "low" | "medium" | "high" | undefined;
365
+ min_complexity?: "low" | "medium" | "high" | undefined;
366
+ }>>;
367
+ priority: z.ZodDefault<z.ZodNumber>;
368
+ }, "strip", z.ZodTypeAny, {
369
+ priority: number;
370
+ when?: {
371
+ labels?: string[] | undefined;
372
+ keywords?: string[] | undefined;
373
+ max_complexity?: "low" | "medium" | "high" | undefined;
374
+ min_complexity?: "low" | "medium" | "high" | undefined;
375
+ } | undefined;
376
+ }, {
377
+ when?: {
378
+ labels?: string[] | undefined;
379
+ keywords?: string[] | undefined;
380
+ max_complexity?: "low" | "medium" | "high" | undefined;
381
+ min_complexity?: "low" | "medium" | "high" | undefined;
382
+ } | undefined;
383
+ priority?: number | undefined;
384
+ }>>;
385
+ on_complete: z.ZodOptional<z.ZodObject<{
386
+ archive: z.ZodDefault<z.ZodBoolean>;
387
+ domain_sync: z.ZodDefault<z.ZodEnum<["never", "recommend", "require"]>>;
388
+ }, "strip", z.ZodTypeAny, {
389
+ archive: boolean;
390
+ domain_sync: "never" | "recommend" | "require";
391
+ }, {
392
+ archive?: boolean | undefined;
393
+ domain_sync?: "never" | "recommend" | "require" | undefined;
394
+ }>>;
395
+ }, "strip", z.ZodTypeAny, {
396
+ name: string;
397
+ version: number;
398
+ stages: {
399
+ id: string;
400
+ artifacts: {
401
+ path: string;
402
+ id: string;
403
+ required: boolean;
404
+ template?: string | undefined;
405
+ }[];
406
+ gate: {
407
+ type: "none" | "soft" | "hard";
408
+ checklist: string[];
409
+ mode: "none" | "human_approval" | "checklist";
410
+ overridable: boolean;
411
+ };
412
+ skippable: boolean;
413
+ title?: string | undefined;
414
+ summary?: string | undefined;
415
+ skip_when?: {
416
+ flags?: string[] | undefined;
417
+ } | undefined;
418
+ verify?: {
419
+ commands: {
420
+ required: boolean;
421
+ name: string;
422
+ run: string;
423
+ }[];
424
+ evidence_dir?: string | undefined;
425
+ } | undefined;
426
+ agent_context?: {
427
+ include: string[];
428
+ instructions?: string | undefined;
429
+ } | undefined;
430
+ }[];
431
+ description?: string | undefined;
432
+ recommendation?: {
433
+ priority: number;
434
+ when?: {
435
+ labels?: string[] | undefined;
436
+ keywords?: string[] | undefined;
437
+ max_complexity?: "low" | "medium" | "high" | undefined;
438
+ min_complexity?: "low" | "medium" | "high" | undefined;
439
+ } | undefined;
440
+ } | undefined;
441
+ on_complete?: {
442
+ archive: boolean;
443
+ domain_sync: "never" | "recommend" | "require";
444
+ } | undefined;
445
+ }, {
446
+ name: string;
447
+ stages: {
448
+ id: string;
449
+ title?: string | undefined;
450
+ summary?: string | undefined;
451
+ artifacts?: {
452
+ path: string;
453
+ id: string;
454
+ template?: string | undefined;
455
+ required?: boolean | undefined;
456
+ }[] | undefined;
457
+ gate?: {
458
+ type?: "none" | "soft" | "hard" | undefined;
459
+ checklist?: string[] | undefined;
460
+ mode?: "none" | "human_approval" | "checklist" | undefined;
461
+ overridable?: boolean | undefined;
462
+ } | undefined;
463
+ skippable?: boolean | undefined;
464
+ skip_when?: {
465
+ flags?: string[] | undefined;
466
+ } | undefined;
467
+ verify?: {
468
+ commands?: {
469
+ name: string;
470
+ run: string;
471
+ required?: boolean | undefined;
472
+ }[] | undefined;
473
+ evidence_dir?: string | undefined;
474
+ } | undefined;
475
+ agent_context?: {
476
+ include?: string[] | undefined;
477
+ instructions?: string | undefined;
478
+ } | undefined;
479
+ }[];
480
+ description?: string | undefined;
481
+ version?: number | undefined;
482
+ recommendation?: {
483
+ when?: {
484
+ labels?: string[] | undefined;
485
+ keywords?: string[] | undefined;
486
+ max_complexity?: "low" | "medium" | "high" | undefined;
487
+ min_complexity?: "low" | "medium" | "high" | undefined;
488
+ } | undefined;
489
+ priority?: number | undefined;
490
+ } | undefined;
491
+ on_complete?: {
492
+ archive?: boolean | undefined;
493
+ domain_sync?: "never" | "recommend" | "require" | undefined;
494
+ } | undefined;
495
+ }>;
496
+ declare const ConfigSchema: z.ZodObject<{
497
+ version: z.ZodDefault<z.ZodNumber>;
498
+ memory_path: z.ZodDefault<z.ZodString>;
499
+ changes_path: z.ZodDefault<z.ZodString>;
500
+ archive_path: z.ZodDefault<z.ZodString>;
501
+ domains_path: z.ZodDefault<z.ZodString>;
502
+ default_workflow: z.ZodDefault<z.ZodString>;
503
+ allowed_workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
504
+ per_change: z.ZodDefault<z.ZodObject<{
505
+ allow_skip: z.ZodDefault<z.ZodBoolean>;
506
+ allow_gate_override: z.ZodDefault<z.ZodEnum<["true", "false", "soft_only"]>>;
507
+ allow_custom_stages: z.ZodDefault<z.ZodBoolean>;
508
+ require_reason_on_skip: z.ZodDefault<z.ZodBoolean>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ allow_skip: boolean;
511
+ allow_gate_override: "true" | "false" | "soft_only";
512
+ allow_custom_stages: boolean;
513
+ require_reason_on_skip: boolean;
514
+ }, {
515
+ allow_skip?: boolean | undefined;
516
+ allow_gate_override?: "true" | "false" | "soft_only" | undefined;
517
+ allow_custom_stages?: boolean | undefined;
518
+ require_reason_on_skip?: boolean | undefined;
519
+ }>>;
520
+ persistence: z.ZodDefault<z.ZodObject<{
521
+ default: z.ZodDefault<z.ZodEnum<["change_only", "domain_sync"]>>;
522
+ archive_on_complete: z.ZodDefault<z.ZodBoolean>;
523
+ domain_sync: z.ZodDefault<z.ZodObject<{
524
+ mode: z.ZodDefault<z.ZodEnum<["never", "recommend", "require"]>>;
525
+ anchored_domains: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ mode: "never" | "recommend" | "require";
528
+ anchored_domains: string[];
529
+ }, {
530
+ mode?: "never" | "recommend" | "require" | undefined;
531
+ anchored_domains?: string[] | undefined;
532
+ }>>;
533
+ }, "strip", z.ZodTypeAny, {
534
+ domain_sync: {
535
+ mode: "never" | "recommend" | "require";
536
+ anchored_domains: string[];
537
+ };
538
+ default: "domain_sync" | "change_only";
539
+ archive_on_complete: boolean;
540
+ }, {
541
+ domain_sync?: {
542
+ mode?: "never" | "recommend" | "require" | undefined;
543
+ anchored_domains?: string[] | undefined;
544
+ } | undefined;
545
+ default?: "domain_sync" | "change_only" | undefined;
546
+ archive_on_complete?: boolean | undefined;
547
+ }>>;
548
+ policy: z.ZodDefault<z.ZodObject<{
549
+ gates: z.ZodDefault<z.ZodEnum<["soft", "hard"]>>;
550
+ }, "strip", z.ZodTypeAny, {
551
+ gates: "soft" | "hard";
552
+ }, {
553
+ gates?: "soft" | "hard" | undefined;
554
+ }>>;
555
+ }, "strip", z.ZodTypeAny, {
556
+ version: number;
557
+ memory_path: string;
558
+ changes_path: string;
559
+ archive_path: string;
560
+ domains_path: string;
561
+ default_workflow: string;
562
+ per_change: {
563
+ allow_skip: boolean;
564
+ allow_gate_override: "true" | "false" | "soft_only";
565
+ allow_custom_stages: boolean;
566
+ require_reason_on_skip: boolean;
567
+ };
568
+ persistence: {
569
+ domain_sync: {
570
+ mode: "never" | "recommend" | "require";
571
+ anchored_domains: string[];
572
+ };
573
+ default: "domain_sync" | "change_only";
574
+ archive_on_complete: boolean;
575
+ };
576
+ policy: {
577
+ gates: "soft" | "hard";
578
+ };
579
+ allowed_workflows?: string[] | undefined;
580
+ }, {
581
+ version?: number | undefined;
582
+ memory_path?: string | undefined;
583
+ changes_path?: string | undefined;
584
+ archive_path?: string | undefined;
585
+ domains_path?: string | undefined;
586
+ default_workflow?: string | undefined;
587
+ allowed_workflows?: string[] | undefined;
588
+ per_change?: {
589
+ allow_skip?: boolean | undefined;
590
+ allow_gate_override?: "true" | "false" | "soft_only" | undefined;
591
+ allow_custom_stages?: boolean | undefined;
592
+ require_reason_on_skip?: boolean | undefined;
593
+ } | undefined;
594
+ persistence?: {
595
+ domain_sync?: {
596
+ mode?: "never" | "recommend" | "require" | undefined;
597
+ anchored_domains?: string[] | undefined;
598
+ } | undefined;
599
+ default?: "domain_sync" | "change_only" | undefined;
600
+ archive_on_complete?: boolean | undefined;
601
+ } | undefined;
602
+ policy?: {
603
+ gates?: "soft" | "hard" | undefined;
604
+ } | undefined;
605
+ }>;
606
+ declare const ChangeMetaSchema: z.ZodObject<{
607
+ id: z.ZodString;
608
+ title: z.ZodString;
609
+ workflow: z.ZodString;
610
+ created: z.ZodString;
611
+ updated: z.ZodOptional<z.ZodString>;
612
+ status: z.ZodDefault<z.ZodEnum<["in_progress", "blocked", "completed", "abandoned"]>>;
613
+ stage: z.ZodString;
614
+ branch: z.ZodOptional<z.ZodString>;
615
+ domain: z.ZodOptional<z.ZodString>;
616
+ flags: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber]>>>;
617
+ overrides: z.ZodDefault<z.ZodObject<{
618
+ skip_stages: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
619
+ gates: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<["none", "soft", "hard"]>>>;
620
+ extra_stages: z.ZodDefault<z.ZodArray<z.ZodObject<{
621
+ id: z.ZodString;
622
+ title: z.ZodOptional<z.ZodString>;
623
+ summary: z.ZodOptional<z.ZodString>;
624
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
625
+ id: z.ZodString;
626
+ path: z.ZodString;
627
+ template: z.ZodOptional<z.ZodString>;
628
+ required: z.ZodDefault<z.ZodBoolean>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ path: string;
631
+ id: string;
632
+ required: boolean;
633
+ template?: string | undefined;
634
+ }, {
635
+ path: string;
636
+ id: string;
637
+ template?: string | undefined;
638
+ required?: boolean | undefined;
639
+ }>, "many">>;
640
+ gate: z.ZodDefault<z.ZodObject<{
641
+ type: z.ZodDefault<z.ZodEnum<["none", "soft", "hard"]>>;
642
+ mode: z.ZodDefault<z.ZodEnum<["none", "human_approval", "checklist"]>>;
643
+ checklist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
644
+ overridable: z.ZodDefault<z.ZodBoolean>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ type: "none" | "soft" | "hard";
647
+ checklist: string[];
648
+ mode: "none" | "human_approval" | "checklist";
649
+ overridable: boolean;
650
+ }, {
651
+ type?: "none" | "soft" | "hard" | undefined;
652
+ checklist?: string[] | undefined;
653
+ mode?: "none" | "human_approval" | "checklist" | undefined;
654
+ overridable?: boolean | undefined;
655
+ }>>;
656
+ skippable: z.ZodDefault<z.ZodBoolean>;
657
+ skip_when: z.ZodOptional<z.ZodObject<{
658
+ flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
659
+ }, "strip", z.ZodTypeAny, {
660
+ flags?: string[] | undefined;
661
+ }, {
662
+ flags?: string[] | undefined;
663
+ }>>;
664
+ verify: z.ZodOptional<z.ZodObject<{
665
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
666
+ name: z.ZodString;
667
+ run: z.ZodString;
668
+ required: z.ZodDefault<z.ZodBoolean>;
669
+ }, "strip", z.ZodTypeAny, {
670
+ required: boolean;
671
+ name: string;
672
+ run: string;
673
+ }, {
674
+ name: string;
675
+ run: string;
676
+ required?: boolean | undefined;
677
+ }>, "many">>;
678
+ evidence_dir: z.ZodOptional<z.ZodString>;
679
+ }, "strip", z.ZodTypeAny, {
680
+ commands: {
681
+ required: boolean;
682
+ name: string;
683
+ run: string;
684
+ }[];
685
+ evidence_dir?: string | undefined;
686
+ }, {
687
+ commands?: {
688
+ name: string;
689
+ run: string;
690
+ required?: boolean | undefined;
691
+ }[] | undefined;
692
+ evidence_dir?: string | undefined;
693
+ }>>;
694
+ agent_context: z.ZodOptional<z.ZodObject<{
695
+ include: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
696
+ instructions: z.ZodOptional<z.ZodString>;
697
+ }, "strip", z.ZodTypeAny, {
698
+ include: string[];
699
+ instructions?: string | undefined;
700
+ }, {
701
+ include?: string[] | undefined;
702
+ instructions?: string | undefined;
703
+ }>>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ id: string;
706
+ artifacts: {
707
+ path: string;
708
+ id: string;
709
+ required: boolean;
710
+ template?: string | undefined;
711
+ }[];
712
+ gate: {
713
+ type: "none" | "soft" | "hard";
714
+ checklist: string[];
715
+ mode: "none" | "human_approval" | "checklist";
716
+ overridable: boolean;
717
+ };
718
+ skippable: boolean;
719
+ title?: string | undefined;
720
+ summary?: string | undefined;
721
+ skip_when?: {
722
+ flags?: string[] | undefined;
723
+ } | undefined;
724
+ verify?: {
725
+ commands: {
726
+ required: boolean;
727
+ name: string;
728
+ run: string;
729
+ }[];
730
+ evidence_dir?: string | undefined;
731
+ } | undefined;
732
+ agent_context?: {
733
+ include: string[];
734
+ instructions?: string | undefined;
735
+ } | undefined;
736
+ }, {
737
+ id: string;
738
+ title?: string | undefined;
739
+ summary?: string | undefined;
740
+ artifacts?: {
741
+ path: string;
742
+ id: string;
743
+ template?: string | undefined;
744
+ required?: boolean | undefined;
745
+ }[] | undefined;
746
+ gate?: {
747
+ type?: "none" | "soft" | "hard" | undefined;
748
+ checklist?: string[] | undefined;
749
+ mode?: "none" | "human_approval" | "checklist" | undefined;
750
+ overridable?: boolean | undefined;
751
+ } | undefined;
752
+ skippable?: boolean | undefined;
753
+ skip_when?: {
754
+ flags?: string[] | undefined;
755
+ } | undefined;
756
+ verify?: {
757
+ commands?: {
758
+ name: string;
759
+ run: string;
760
+ required?: boolean | undefined;
761
+ }[] | undefined;
762
+ evidence_dir?: string | undefined;
763
+ } | undefined;
764
+ agent_context?: {
765
+ include?: string[] | undefined;
766
+ instructions?: string | undefined;
767
+ } | undefined;
768
+ }>, "many">>;
769
+ }, "strip", z.ZodTypeAny, {
770
+ gates: Record<string, "none" | "soft" | "hard">;
771
+ skip_stages: string[];
772
+ extra_stages: {
773
+ id: string;
774
+ artifacts: {
775
+ path: string;
776
+ id: string;
777
+ required: boolean;
778
+ template?: string | undefined;
779
+ }[];
780
+ gate: {
781
+ type: "none" | "soft" | "hard";
782
+ checklist: string[];
783
+ mode: "none" | "human_approval" | "checklist";
784
+ overridable: boolean;
785
+ };
786
+ skippable: boolean;
787
+ title?: string | undefined;
788
+ summary?: string | undefined;
789
+ skip_when?: {
790
+ flags?: string[] | undefined;
791
+ } | undefined;
792
+ verify?: {
793
+ commands: {
794
+ required: boolean;
795
+ name: string;
796
+ run: string;
797
+ }[];
798
+ evidence_dir?: string | undefined;
799
+ } | undefined;
800
+ agent_context?: {
801
+ include: string[];
802
+ instructions?: string | undefined;
803
+ } | undefined;
804
+ }[];
805
+ }, {
806
+ gates?: Record<string, "none" | "soft" | "hard"> | undefined;
807
+ skip_stages?: string[] | undefined;
808
+ extra_stages?: {
809
+ id: string;
810
+ title?: string | undefined;
811
+ summary?: string | undefined;
812
+ artifacts?: {
813
+ path: string;
814
+ id: string;
815
+ template?: string | undefined;
816
+ required?: boolean | undefined;
817
+ }[] | undefined;
818
+ gate?: {
819
+ type?: "none" | "soft" | "hard" | undefined;
820
+ checklist?: string[] | undefined;
821
+ mode?: "none" | "human_approval" | "checklist" | undefined;
822
+ overridable?: boolean | undefined;
823
+ } | undefined;
824
+ skippable?: boolean | undefined;
825
+ skip_when?: {
826
+ flags?: string[] | undefined;
827
+ } | undefined;
828
+ verify?: {
829
+ commands?: {
830
+ name: string;
831
+ run: string;
832
+ required?: boolean | undefined;
833
+ }[] | undefined;
834
+ evidence_dir?: string | undefined;
835
+ } | undefined;
836
+ agent_context?: {
837
+ include?: string[] | undefined;
838
+ instructions?: string | undefined;
839
+ } | undefined;
840
+ }[] | undefined;
841
+ }>>;
842
+ skipped: z.ZodDefault<z.ZodArray<z.ZodObject<{
843
+ stage: z.ZodString;
844
+ reason: z.ZodString;
845
+ at: z.ZodString;
846
+ }, "strip", z.ZodTypeAny, {
847
+ at: string;
848
+ stage: string;
849
+ reason: string;
850
+ }, {
851
+ at: string;
852
+ stage: string;
853
+ reason: string;
854
+ }>, "many">>;
855
+ gates: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
856
+ status: z.ZodEnum<["pending", "approved", "failed", "waived"]>;
857
+ note: z.ZodOptional<z.ZodString>;
858
+ at: z.ZodOptional<z.ZodString>;
859
+ }, "strip", z.ZodTypeAny, {
860
+ status: "pending" | "approved" | "failed" | "waived";
861
+ at?: string | undefined;
862
+ note?: string | undefined;
863
+ }, {
864
+ status: "pending" | "approved" | "failed" | "waived";
865
+ at?: string | undefined;
866
+ note?: string | undefined;
867
+ }>>>;
868
+ /** Results from `sdd verify` keyed by stage id */
869
+ verify_results: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
870
+ ok: z.ZodBoolean;
871
+ at: z.ZodString;
872
+ results: z.ZodDefault<z.ZodArray<z.ZodObject<{
873
+ name: z.ZodString;
874
+ exitCode: z.ZodNullable<z.ZodNumber>;
875
+ }, "strip", z.ZodTypeAny, {
876
+ name: string;
877
+ exitCode: number | null;
878
+ }, {
879
+ name: string;
880
+ exitCode: number | null;
881
+ }>, "many">>;
882
+ }, "strip", z.ZodTypeAny, {
883
+ at: string;
884
+ ok: boolean;
885
+ results: {
886
+ name: string;
887
+ exitCode: number | null;
888
+ }[];
889
+ }, {
890
+ at: string;
891
+ ok: boolean;
892
+ results?: {
893
+ name: string;
894
+ exitCode: number | null;
895
+ }[] | undefined;
896
+ }>>>;
897
+ pr: z.ZodOptional<z.ZodObject<{
898
+ number: z.ZodOptional<z.ZodNumber>;
899
+ url: z.ZodOptional<z.ZodString>;
900
+ }, "strip", z.ZodTypeAny, {
901
+ number?: number | undefined;
902
+ url?: string | undefined;
903
+ }, {
904
+ number?: number | undefined;
905
+ url?: string | undefined;
906
+ }>>;
907
+ completed_at: z.ZodOptional<z.ZodString>;
908
+ }, "strip", z.ZodTypeAny, {
909
+ status: "in_progress" | "blocked" | "completed" | "abandoned";
910
+ id: string;
911
+ title: string;
912
+ flags: Record<string, string | number | boolean>;
913
+ gates: Record<string, {
914
+ status: "pending" | "approved" | "failed" | "waived";
915
+ at?: string | undefined;
916
+ note?: string | undefined;
917
+ }>;
918
+ workflow: string;
919
+ created: string;
920
+ stage: string;
921
+ overrides: {
922
+ gates: Record<string, "none" | "soft" | "hard">;
923
+ skip_stages: string[];
924
+ extra_stages: {
925
+ id: string;
926
+ artifacts: {
927
+ path: string;
928
+ id: string;
929
+ required: boolean;
930
+ template?: string | undefined;
931
+ }[];
932
+ gate: {
933
+ type: "none" | "soft" | "hard";
934
+ checklist: string[];
935
+ mode: "none" | "human_approval" | "checklist";
936
+ overridable: boolean;
937
+ };
938
+ skippable: boolean;
939
+ title?: string | undefined;
940
+ summary?: string | undefined;
941
+ skip_when?: {
942
+ flags?: string[] | undefined;
943
+ } | undefined;
944
+ verify?: {
945
+ commands: {
946
+ required: boolean;
947
+ name: string;
948
+ run: string;
949
+ }[];
950
+ evidence_dir?: string | undefined;
951
+ } | undefined;
952
+ agent_context?: {
953
+ include: string[];
954
+ instructions?: string | undefined;
955
+ } | undefined;
956
+ }[];
957
+ };
958
+ skipped: {
959
+ at: string;
960
+ stage: string;
961
+ reason: string;
962
+ }[];
963
+ verify_results: Record<string, {
964
+ at: string;
965
+ ok: boolean;
966
+ results: {
967
+ name: string;
968
+ exitCode: number | null;
969
+ }[];
970
+ }>;
971
+ updated?: string | undefined;
972
+ branch?: string | undefined;
973
+ domain?: string | undefined;
974
+ pr?: {
975
+ number?: number | undefined;
976
+ url?: string | undefined;
977
+ } | undefined;
978
+ completed_at?: string | undefined;
979
+ }, {
980
+ id: string;
981
+ title: string;
982
+ workflow: string;
983
+ created: string;
984
+ stage: string;
985
+ status?: "in_progress" | "blocked" | "completed" | "abandoned" | undefined;
986
+ flags?: Record<string, string | number | boolean> | undefined;
987
+ gates?: Record<string, {
988
+ status: "pending" | "approved" | "failed" | "waived";
989
+ at?: string | undefined;
990
+ note?: string | undefined;
991
+ }> | undefined;
992
+ updated?: string | undefined;
993
+ branch?: string | undefined;
994
+ domain?: string | undefined;
995
+ overrides?: {
996
+ gates?: Record<string, "none" | "soft" | "hard"> | undefined;
997
+ skip_stages?: string[] | undefined;
998
+ extra_stages?: {
999
+ id: string;
1000
+ title?: string | undefined;
1001
+ summary?: string | undefined;
1002
+ artifacts?: {
1003
+ path: string;
1004
+ id: string;
1005
+ template?: string | undefined;
1006
+ required?: boolean | undefined;
1007
+ }[] | undefined;
1008
+ gate?: {
1009
+ type?: "none" | "soft" | "hard" | undefined;
1010
+ checklist?: string[] | undefined;
1011
+ mode?: "none" | "human_approval" | "checklist" | undefined;
1012
+ overridable?: boolean | undefined;
1013
+ } | undefined;
1014
+ skippable?: boolean | undefined;
1015
+ skip_when?: {
1016
+ flags?: string[] | undefined;
1017
+ } | undefined;
1018
+ verify?: {
1019
+ commands?: {
1020
+ name: string;
1021
+ run: string;
1022
+ required?: boolean | undefined;
1023
+ }[] | undefined;
1024
+ evidence_dir?: string | undefined;
1025
+ } | undefined;
1026
+ agent_context?: {
1027
+ include?: string[] | undefined;
1028
+ instructions?: string | undefined;
1029
+ } | undefined;
1030
+ }[] | undefined;
1031
+ } | undefined;
1032
+ skipped?: {
1033
+ at: string;
1034
+ stage: string;
1035
+ reason: string;
1036
+ }[] | undefined;
1037
+ verify_results?: Record<string, {
1038
+ at: string;
1039
+ ok: boolean;
1040
+ results?: {
1041
+ name: string;
1042
+ exitCode: number | null;
1043
+ }[] | undefined;
1044
+ }> | undefined;
1045
+ pr?: {
1046
+ number?: number | undefined;
1047
+ url?: string | undefined;
1048
+ } | undefined;
1049
+ completed_at?: string | undefined;
1050
+ }>;
1051
+ type Gate = z.infer<typeof GateSchema>;
1052
+ type ArtifactDef = z.infer<typeof ArtifactDefSchema>;
1053
+ type Stage = z.infer<typeof StageSchema>;
1054
+ type Workflow = z.infer<typeof WorkflowSchema>;
1055
+ type Config = z.infer<typeof ConfigSchema>;
1056
+ type ChangeMeta = z.infer<typeof ChangeMetaSchema>;
1057
+ type Complexity = "low" | "medium" | "high";
1058
+
1059
+ declare const SDD_DIR = ".sdd";
1060
+ declare function sddRoot(projectRoot: string): string;
1061
+ declare function configPath(projectRoot: string): string;
1062
+ declare function workflowsDir(projectRoot: string): string;
1063
+ declare function templatesDir(projectRoot: string): string;
1064
+ declare function memoryDir(projectRoot: string, config: Config): string;
1065
+ declare function changesDir(projectRoot: string, config: Config): string;
1066
+ declare function archiveDir(projectRoot: string, config: Config): string;
1067
+ declare function domainsDir(projectRoot: string, config: Config): string;
1068
+ declare function changePath(projectRoot: string, config: Config, changeId: string): string;
1069
+ declare function changeMetaPath(projectRoot: string, config: Config, changeId: string): string;
1070
+ declare function activePointerPath(projectRoot: string, config: Config): string;
1071
+
1072
+ declare function isInitialized(projectRoot: string): Promise<boolean>;
1073
+ declare function loadConfig(projectRoot: string): Promise<Config>;
1074
+ declare function saveConfig(projectRoot: string, config: Config): Promise<void>;
1075
+ declare function defaultConfig(): Config;
1076
+ declare function projectPaths(projectRoot: string, config: Config): {
1077
+ sdd: string;
1078
+ config: string;
1079
+ workflows: string;
1080
+ templates: string;
1081
+ memory: string;
1082
+ };
1083
+
1084
+ declare function listWorkflowNames(projectRoot: string): Promise<string[]>;
1085
+ declare function loadWorkflow(projectRoot: string, name: string): Promise<Workflow>;
1086
+ /** Resolve effective stages for a change (workflow + per-change overrides). */
1087
+ declare function resolveStages(workflow: Workflow, meta: ChangeMeta): Stage[];
1088
+ declare function isStageSkipped(meta: ChangeMeta, stageId: string): boolean;
1089
+ declare function shouldAutoSkip(stage: Stage, meta: ChangeMeta): boolean;
1090
+ /** Ordered list of active (non-skipped) stages for navigation. */
1091
+ declare function activeStages(workflow: Workflow, meta: ChangeMeta): Stage[];
1092
+ declare function getStage(workflow: Workflow, meta: ChangeMeta, stageId: string): Stage | undefined;
1093
+ /**
1094
+ * Next *active* stage after the current one in full workflow order.
1095
+ * If the current stage is skipped/missing from the active list, still walks
1096
+ * forward from its position in the full stage list (does not jump back to first).
1097
+ */
1098
+ declare function nextStageId(workflow: Workflow, meta: ChangeMeta): string | null;
1099
+ declare function previousStageId(workflow: Workflow, meta: ChangeMeta): string | null;
1100
+ /** First active stage (honors skip / skip_when). */
1101
+ declare function firstActiveStageId(workflow: Workflow, meta: ChangeMeta): string | null;
1102
+ declare function inferComplexity(title: string, hints?: {
1103
+ keywords?: string[];
1104
+ }): Complexity;
1105
+ declare function recommendWorkflow(projectRoot: string, title: string, config: Config, opts?: {
1106
+ preferred?: string;
1107
+ complexity?: Complexity;
1108
+ }): Promise<{
1109
+ name: string;
1110
+ reason: string;
1111
+ alternatives: string[];
1112
+ }>;
1113
+
1114
+ interface CreateChangeInput {
1115
+ projectRoot: string;
1116
+ config: Config;
1117
+ title: string;
1118
+ workflowName: string;
1119
+ domain?: string;
1120
+ flags?: Record<string, boolean | string | number>;
1121
+ branch?: string;
1122
+ }
1123
+ interface ChangeContext {
1124
+ id: string;
1125
+ path: string;
1126
+ meta: ChangeMeta;
1127
+ workflow: Workflow;
1128
+ stages: Stage[];
1129
+ active: Stage[];
1130
+ }
1131
+ declare function createChange(input: CreateChangeInput): Promise<ChangeContext>;
1132
+ declare function loadChangeMeta(projectRoot: string, config: Config, changeId: string): Promise<ChangeMeta>;
1133
+ declare function saveChangeMeta(projectRoot: string, config: Config, meta: ChangeMeta): Promise<void>;
1134
+ declare function buildContext(projectRoot: string, config: Config, changeId: string): Promise<ChangeContext>;
1135
+ declare function listChanges(projectRoot: string, config: Config): Promise<string[]>;
1136
+ declare function getActiveChangeId(projectRoot: string, config: Config): Promise<string | null>;
1137
+ /** Clear active pointer if it points at this change id (does not re-resolve). */
1138
+ declare function clearActiveIf(projectRoot: string, config: Config, changeId: string): Promise<void>;
1139
+ declare function setActiveChange(projectRoot: string, config: Config, changeId: string): Promise<void>;
1140
+ declare function resolveChangeId(projectRoot: string, config: Config, changeId?: string): Promise<string>;
1141
+ interface AdvanceResult {
1142
+ ctx: ChangeContext;
1143
+ from: string;
1144
+ to: string | null;
1145
+ completed: boolean;
1146
+ artifactsCreated: string[];
1147
+ warnings: string[];
1148
+ }
1149
+ declare function canLeaveStage(ctx: ChangeContext, config: Config): Promise<{
1150
+ ok: boolean;
1151
+ errors: string[];
1152
+ warnings: string[];
1153
+ }>;
1154
+ declare function advanceStage(projectRoot: string, config: Config, changeId: string, opts?: {
1155
+ force?: boolean;
1156
+ }): Promise<AdvanceResult>;
1157
+ declare function skipStage(projectRoot: string, config: Config, changeId: string, stageId: string, reason: string): Promise<ChangeContext>;
1158
+ declare function switchWorkflow(projectRoot: string, config: Config, changeId: string, workflowName: string, reason?: string): Promise<ChangeContext>;
1159
+ declare function approveGate(projectRoot: string, config: Config, changeId: string, stageId: string | undefined, note?: string, status?: "approved" | "waived" | "failed"): Promise<ChangeContext>;
1160
+ declare function completeChange(projectRoot: string, config: Config, changeId: string): Promise<{
1161
+ archivedTo: string | null;
1162
+ ctx: ChangeContext;
1163
+ }>;
1164
+ declare function formatStatus(ctx: ChangeContext): string;
1165
+ declare function buildAgentPrompt(ctx: ChangeContext, config: Config, projectRoot: string): Promise<string>;
1166
+
1167
+ interface InitOptions {
1168
+ projectRoot: string;
1169
+ force?: boolean;
1170
+ pack?: "default" | "enterprise";
1171
+ }
1172
+ interface InitResult {
1173
+ created: string[];
1174
+ config: Config;
1175
+ }
1176
+ declare function initProject(opts: InitOptions): Promise<InitResult>;
1177
+
1178
+ interface VerifyResult {
1179
+ stageId: string;
1180
+ results: {
1181
+ name: string;
1182
+ command: string;
1183
+ exitCode: number | null;
1184
+ output: string;
1185
+ }[];
1186
+ checklist: string[];
1187
+ evidencePath: string;
1188
+ /** False if any required command failed or was not run when required */
1189
+ ok: boolean;
1190
+ }
1191
+ declare function runLocalVerify(projectRoot: string, config: Config, changeId: string, opts?: {
1192
+ runCommands?: boolean;
1193
+ }): Promise<VerifyResult>;
1194
+
1195
+ declare function slugify(input: string): string;
1196
+ declare function todayIsoDate(d?: Date): string;
1197
+ declare function nowIso(d?: Date): string;
1198
+ declare function changeDirName(title: string, d?: Date): string;
1199
+ /** Append -2, -3, … when base id is already taken. */
1200
+ declare function uniqueChangeDirName(base: string, taken: Set<string>): string;
1201
+
1202
+ /**
1203
+ * Packaged default assets shipped with @structured-vibe-coding/core.
1204
+ * Resolves correctly for:
1205
+ * - package layout: packages/core/dist/index.js → ../defaults
1206
+ * - VS Code bundle: packages/vscode/dist/extension.js → ./defaults (copied at build)
1207
+ */
1208
+ declare function defaultsRoot(): string;
1209
+ declare function defaultWorkflowsDir(): string;
1210
+ declare function defaultTemplatesDir(): string;
1211
+ declare function defaultMemoryDir(): string;
1212
+
1213
+ declare function pathExists(path: string): Promise<boolean>;
1214
+ declare function ensureDir(path: string): Promise<void>;
1215
+ declare function readText(path: string): Promise<string>;
1216
+ declare function writeText(path: string, content: string): Promise<void>;
1217
+ declare function readYaml<T = unknown>(path: string): Promise<T>;
1218
+ declare function writeYaml(path: string, data: unknown): Promise<void>;
1219
+ declare function listDirs(path: string): Promise<string[]>;
1220
+ declare function listFiles(path: string): Promise<string[]>;
1221
+ declare function copyDir(src: string, dest: string): Promise<void>;
1222
+ declare function removePath(path: string): Promise<void>;
1223
+
1224
+ export { type AdvanceResult, type ArtifactDef, ArtifactDefSchema, type ChangeContext, type ChangeMeta, ChangeMetaSchema, type Complexity, type Config, ConfigSchema, type CreateChangeInput, type Gate, GateSchema, type InitOptions, type InitResult, SDD_DIR, type Stage, StageSchema, VerifyCommandSchema, type VerifyResult, type Workflow, WorkflowSchema, activePointerPath, activeStages, advanceStage, approveGate, archiveDir, buildAgentPrompt, buildContext, canLeaveStage, changeDirName, changeMetaPath, changePath, changesDir, clearActiveIf, completeChange, configPath, copyDir, createChange, defaultConfig, defaultMemoryDir, defaultTemplatesDir, defaultWorkflowsDir, defaultsRoot, domainsDir, ensureDir, firstActiveStageId, formatStatus, getActiveChangeId, getStage, inferComplexity, initProject, isInitialized, isStageSkipped, listChanges, listDirs, listFiles, listWorkflowNames, loadChangeMeta, loadConfig, loadWorkflow, memoryDir, nextStageId, nowIso, pathExists, previousStageId, projectPaths, readText, readYaml, recommendWorkflow, removePath, resolveChangeId, resolveStages, runLocalVerify, saveChangeMeta, saveConfig, sddRoot, setActiveChange, shouldAutoSkip, skipStage, slugify, switchWorkflow, templatesDir, todayIsoDate, uniqueChangeDirName, workflowsDir, writeText, writeYaml };