opencode-vibe-spec-plugin 1.0.4

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 (92) hide show
  1. package/README.md +264 -0
  2. package/dist/agents/ask.d.ts +4 -0
  3. package/dist/agents/ask.d.ts.map +1 -0
  4. package/dist/agents/quality-gate.d.ts +55 -0
  5. package/dist/agents/quality-gate.d.ts.map +1 -0
  6. package/dist/agents/spec.d.ts +4 -0
  7. package/dist/agents/spec.d.ts.map +1 -0
  8. package/dist/agents/vibe.d.ts +4 -0
  9. package/dist/agents/vibe.d.ts.map +1 -0
  10. package/dist/config/agent-configs.d.ts +5 -0
  11. package/dist/config/agent-configs.d.ts.map +1 -0
  12. package/dist/config/constants.d.ts +136 -0
  13. package/dist/config/constants.d.ts.map +1 -0
  14. package/dist/config/types.d.ts +1799 -0
  15. package/dist/config/types.d.ts.map +1 -0
  16. package/dist/hooks/message-completed.d.ts +10 -0
  17. package/dist/hooks/message-completed.d.ts.map +1 -0
  18. package/dist/hooks/message-updated.d.ts +2 -0
  19. package/dist/hooks/message-updated.d.ts.map +1 -0
  20. package/dist/hooks/session-end.d.ts +9 -0
  21. package/dist/hooks/session-end.d.ts.map +1 -0
  22. package/dist/hooks/session-start.d.ts +9 -0
  23. package/dist/hooks/session-start.d.ts.map +1 -0
  24. package/dist/hooks/spec-lifecycle.d.ts +17 -0
  25. package/dist/hooks/spec-lifecycle.d.ts.map +1 -0
  26. package/dist/hooks/stop-requested.d.ts +9 -0
  27. package/dist/hooks/stop-requested.d.ts.map +1 -0
  28. package/dist/hooks/tool-execute-before.d.ts +8 -0
  29. package/dist/hooks/tool-execute-before.d.ts.map +1 -0
  30. package/dist/index.d.ts +4 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +2690 -0
  33. package/dist/quality/code-analyzer.d.ts +17 -0
  34. package/dist/quality/code-analyzer.d.ts.map +1 -0
  35. package/dist/quality/engine.d.ts +8 -0
  36. package/dist/quality/engine.d.ts.map +1 -0
  37. package/dist/quality/gate-controller.d.ts +52 -0
  38. package/dist/quality/gate-controller.d.ts.map +1 -0
  39. package/dist/quality/negative-indicators.d.ts +10 -0
  40. package/dist/quality/negative-indicators.d.ts.map +1 -0
  41. package/dist/quality/security-scanner.d.ts +12 -0
  42. package/dist/quality/security-scanner.d.ts.map +1 -0
  43. package/dist/spec/ears-parser.d.ts +96 -0
  44. package/dist/spec/ears-parser.d.ts.map +1 -0
  45. package/dist/spec/index.d.ts +17 -0
  46. package/dist/spec/index.d.ts.map +1 -0
  47. package/dist/spec/phase-gate.d.ts +45 -0
  48. package/dist/spec/phase-gate.d.ts.map +1 -0
  49. package/dist/spec/spec-manager.d.ts +111 -0
  50. package/dist/spec/spec-manager.d.ts.map +1 -0
  51. package/dist/spec/spec-templates.d.ts +35 -0
  52. package/dist/spec/spec-templates.d.ts.map +1 -0
  53. package/dist/spec/steering-integration.d.ts +42 -0
  54. package/dist/spec/steering-integration.d.ts.map +1 -0
  55. package/dist/spec/task-traceability.d.ts +49 -0
  56. package/dist/spec/task-traceability.d.ts.map +1 -0
  57. package/dist/store/session-store.d.ts +12 -0
  58. package/dist/store/session-store.d.ts.map +1 -0
  59. package/dist/subagents/shared/architect.d.ts +4 -0
  60. package/dist/subagents/shared/architect.d.ts.map +1 -0
  61. package/dist/subagents/shared/librarian.d.ts +4 -0
  62. package/dist/subagents/shared/librarian.d.ts.map +1 -0
  63. package/dist/subagents/shared/oracle.d.ts +4 -0
  64. package/dist/subagents/shared/oracle.d.ts.map +1 -0
  65. package/dist/subagents/shared/quality-analyzer.d.ts +4 -0
  66. package/dist/subagents/shared/quality-analyzer.d.ts.map +1 -0
  67. package/dist/subagents/shared/quality-metrics.d.ts +4 -0
  68. package/dist/subagents/shared/quality-metrics.d.ts.map +1 -0
  69. package/dist/subagents/shared/quality-reporter.d.ts +4 -0
  70. package/dist/subagents/shared/quality-reporter.d.ts.map +1 -0
  71. package/dist/subagents/shared/quality-reviewer.d.ts +4 -0
  72. package/dist/subagents/shared/quality-reviewer.d.ts.map +1 -0
  73. package/dist/subagents/spec/planner.d.ts +4 -0
  74. package/dist/subagents/spec/planner.d.ts.map +1 -0
  75. package/dist/subagents/spec/reviewer.d.ts +4 -0
  76. package/dist/subagents/spec/reviewer.d.ts.map +1 -0
  77. package/dist/subagents/vibe/explorer.d.ts +4 -0
  78. package/dist/subagents/vibe/explorer.d.ts.map +1 -0
  79. package/dist/subagents/vibe/inspirer.d.ts +4 -0
  80. package/dist/subagents/vibe/inspirer.d.ts.map +1 -0
  81. package/dist/utils/modeSwitcher.d.ts +8 -0
  82. package/dist/utils/modeSwitcher.d.ts.map +1 -0
  83. package/dist/utils/modelResolver.d.ts +9 -0
  84. package/dist/utils/modelResolver.d.ts.map +1 -0
  85. package/dist/utils/modelRouter.d.ts +6 -0
  86. package/dist/utils/modelRouter.d.ts.map +1 -0
  87. package/dist/utils/steeringLoader.d.ts +7 -0
  88. package/dist/utils/steeringLoader.d.ts.map +1 -0
  89. package/dist/utils/todoParser.d.ts +13 -0
  90. package/dist/utils/todoParser.d.ts.map +1 -0
  91. package/docs/spec.md +147 -0
  92. package/package.json +67 -0
@@ -0,0 +1,1799 @@
1
+ import { z } from 'zod';
2
+ export declare const AgentModeSchema: z.ZodEnum<["vibe", "spec", "ask"]>;
3
+ export type AgentMode = z.infer<typeof AgentModeSchema>;
4
+ export declare const VibeStyleSchema: z.ZodEnum<["rapid_prototype", "inspiration_capture", "exploratory_coding"]>;
5
+ export type VibeStyle = z.infer<typeof VibeStyleSchema>;
6
+ export declare const SubagentTypeSchema: z.ZodEnum<["librarian", "oracle", "architect", "inspirer", "explorer", "planner", "reviewer", "quality-analyzer", "quality-reviewer", "quality-metrics", "quality-reporter"]>;
7
+ export type SubagentType = z.infer<typeof SubagentTypeSchema>;
8
+ export declare const TaskTypeSchema: z.ZodEnum<["planning", "coding", "exploration", "frontend", "documentation"]>;
9
+ export type TaskType = z.infer<typeof TaskTypeSchema>;
10
+ export declare const TodoStatusSchema: z.ZodEnum<["pending", "in_progress", "completed"]>;
11
+ export type TodoStatus = z.infer<typeof TodoStatusSchema>;
12
+ export declare const TodoPrioritySchema: z.ZodEnum<["high", "medium", "low"]>;
13
+ export type TodoPriority = z.infer<typeof TodoPrioritySchema>;
14
+ export declare const TodoEnforcementSchema: z.ZodEnum<["advisory", "mandatory", "autonomous"]>;
15
+ export type TodoEnforcement = z.infer<typeof TodoEnforcementSchema>;
16
+ export declare const ToolConfigSchema: z.ZodObject<{
17
+ task: z.ZodOptional<z.ZodBoolean>;
18
+ read: z.ZodOptional<z.ZodBoolean>;
19
+ bash: z.ZodOptional<z.ZodBoolean>;
20
+ edit: z.ZodOptional<z.ZodBoolean>;
21
+ write: z.ZodOptional<z.ZodBoolean>;
22
+ todowrite: z.ZodOptional<z.ZodBoolean>;
23
+ glob: z.ZodOptional<z.ZodBoolean>;
24
+ grep: z.ZodOptional<z.ZodBoolean>;
25
+ list: z.ZodOptional<z.ZodBoolean>;
26
+ context7_resolve_library_id: z.ZodOptional<z.ZodBoolean>;
27
+ context7_query_docs: z.ZodOptional<z.ZodBoolean>;
28
+ codesearch: z.ZodOptional<z.ZodBoolean>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ task?: boolean | undefined;
31
+ read?: boolean | undefined;
32
+ bash?: boolean | undefined;
33
+ edit?: boolean | undefined;
34
+ write?: boolean | undefined;
35
+ todowrite?: boolean | undefined;
36
+ glob?: boolean | undefined;
37
+ grep?: boolean | undefined;
38
+ list?: boolean | undefined;
39
+ context7_resolve_library_id?: boolean | undefined;
40
+ context7_query_docs?: boolean | undefined;
41
+ codesearch?: boolean | undefined;
42
+ }, {
43
+ task?: boolean | undefined;
44
+ read?: boolean | undefined;
45
+ bash?: boolean | undefined;
46
+ edit?: boolean | undefined;
47
+ write?: boolean | undefined;
48
+ todowrite?: boolean | undefined;
49
+ glob?: boolean | undefined;
50
+ grep?: boolean | undefined;
51
+ list?: boolean | undefined;
52
+ context7_resolve_library_id?: boolean | undefined;
53
+ context7_query_docs?: boolean | undefined;
54
+ codesearch?: boolean | undefined;
55
+ }>;
56
+ export type ToolConfig = z.infer<typeof ToolConfigSchema>;
57
+ export declare const PermissionConfigSchema: z.ZodObject<{
58
+ edit: z.ZodEnum<["allow", "deny", "ask"]>;
59
+ bash: z.ZodEnum<["allow", "deny", "ask"]>;
60
+ read: z.ZodOptional<z.ZodEnum<["allow", "deny"]>>;
61
+ write: z.ZodOptional<z.ZodEnum<["allow", "deny"]>>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ bash: "ask" | "allow" | "deny";
64
+ edit: "ask" | "allow" | "deny";
65
+ read?: "allow" | "deny" | undefined;
66
+ write?: "allow" | "deny" | undefined;
67
+ }, {
68
+ bash: "ask" | "allow" | "deny";
69
+ edit: "ask" | "allow" | "deny";
70
+ read?: "allow" | "deny" | undefined;
71
+ write?: "allow" | "deny" | undefined;
72
+ }>;
73
+ export type PermissionConfig = z.infer<typeof PermissionConfigSchema>;
74
+ export declare const AgentConfigSchema: z.ZodObject<{
75
+ mode: z.ZodEnum<["primary", "subagent"]>;
76
+ model: z.ZodString;
77
+ description: z.ZodString;
78
+ color: z.ZodOptional<z.ZodString>;
79
+ steps: z.ZodOptional<z.ZodNumber>;
80
+ tools: z.ZodObject<{
81
+ task: z.ZodOptional<z.ZodBoolean>;
82
+ read: z.ZodOptional<z.ZodBoolean>;
83
+ bash: z.ZodOptional<z.ZodBoolean>;
84
+ edit: z.ZodOptional<z.ZodBoolean>;
85
+ write: z.ZodOptional<z.ZodBoolean>;
86
+ todowrite: z.ZodOptional<z.ZodBoolean>;
87
+ glob: z.ZodOptional<z.ZodBoolean>;
88
+ grep: z.ZodOptional<z.ZodBoolean>;
89
+ list: z.ZodOptional<z.ZodBoolean>;
90
+ context7_resolve_library_id: z.ZodOptional<z.ZodBoolean>;
91
+ context7_query_docs: z.ZodOptional<z.ZodBoolean>;
92
+ codesearch: z.ZodOptional<z.ZodBoolean>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ task?: boolean | undefined;
95
+ read?: boolean | undefined;
96
+ bash?: boolean | undefined;
97
+ edit?: boolean | undefined;
98
+ write?: boolean | undefined;
99
+ todowrite?: boolean | undefined;
100
+ glob?: boolean | undefined;
101
+ grep?: boolean | undefined;
102
+ list?: boolean | undefined;
103
+ context7_resolve_library_id?: boolean | undefined;
104
+ context7_query_docs?: boolean | undefined;
105
+ codesearch?: boolean | undefined;
106
+ }, {
107
+ task?: boolean | undefined;
108
+ read?: boolean | undefined;
109
+ bash?: boolean | undefined;
110
+ edit?: boolean | undefined;
111
+ write?: boolean | undefined;
112
+ todowrite?: boolean | undefined;
113
+ glob?: boolean | undefined;
114
+ grep?: boolean | undefined;
115
+ list?: boolean | undefined;
116
+ context7_resolve_library_id?: boolean | undefined;
117
+ context7_query_docs?: boolean | undefined;
118
+ codesearch?: boolean | undefined;
119
+ }>;
120
+ permission: z.ZodObject<{
121
+ edit: z.ZodEnum<["allow", "deny", "ask"]>;
122
+ bash: z.ZodEnum<["allow", "deny", "ask"]>;
123
+ read: z.ZodOptional<z.ZodEnum<["allow", "deny"]>>;
124
+ write: z.ZodOptional<z.ZodEnum<["allow", "deny"]>>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ bash: "ask" | "allow" | "deny";
127
+ edit: "ask" | "allow" | "deny";
128
+ read?: "allow" | "deny" | undefined;
129
+ write?: "allow" | "deny" | undefined;
130
+ }, {
131
+ bash: "ask" | "allow" | "deny";
132
+ edit: "ask" | "allow" | "deny";
133
+ read?: "allow" | "deny" | undefined;
134
+ write?: "allow" | "deny" | undefined;
135
+ }>;
136
+ hidden: z.ZodOptional<z.ZodBoolean>;
137
+ prompt: z.ZodOptional<z.ZodString>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ mode: "primary" | "subagent";
140
+ model: string;
141
+ description: string;
142
+ tools: {
143
+ task?: boolean | undefined;
144
+ read?: boolean | undefined;
145
+ bash?: boolean | undefined;
146
+ edit?: boolean | undefined;
147
+ write?: boolean | undefined;
148
+ todowrite?: boolean | undefined;
149
+ glob?: boolean | undefined;
150
+ grep?: boolean | undefined;
151
+ list?: boolean | undefined;
152
+ context7_resolve_library_id?: boolean | undefined;
153
+ context7_query_docs?: boolean | undefined;
154
+ codesearch?: boolean | undefined;
155
+ };
156
+ permission: {
157
+ bash: "ask" | "allow" | "deny";
158
+ edit: "ask" | "allow" | "deny";
159
+ read?: "allow" | "deny" | undefined;
160
+ write?: "allow" | "deny" | undefined;
161
+ };
162
+ color?: string | undefined;
163
+ steps?: number | undefined;
164
+ hidden?: boolean | undefined;
165
+ prompt?: string | undefined;
166
+ }, {
167
+ mode: "primary" | "subagent";
168
+ model: string;
169
+ description: string;
170
+ tools: {
171
+ task?: boolean | undefined;
172
+ read?: boolean | undefined;
173
+ bash?: boolean | undefined;
174
+ edit?: boolean | undefined;
175
+ write?: boolean | undefined;
176
+ todowrite?: boolean | undefined;
177
+ glob?: boolean | undefined;
178
+ grep?: boolean | undefined;
179
+ list?: boolean | undefined;
180
+ context7_resolve_library_id?: boolean | undefined;
181
+ context7_query_docs?: boolean | undefined;
182
+ codesearch?: boolean | undefined;
183
+ };
184
+ permission: {
185
+ bash: "ask" | "allow" | "deny";
186
+ edit: "ask" | "allow" | "deny";
187
+ read?: "allow" | "deny" | undefined;
188
+ write?: "allow" | "deny" | undefined;
189
+ };
190
+ color?: string | undefined;
191
+ steps?: number | undefined;
192
+ hidden?: boolean | undefined;
193
+ prompt?: string | undefined;
194
+ }>;
195
+ export type AgentConfig = z.infer<typeof AgentConfigSchema>;
196
+ export declare const TodoSchema: z.ZodObject<{
197
+ id: z.ZodString;
198
+ content: z.ZodString;
199
+ status: z.ZodEnum<["pending", "in_progress", "completed"]>;
200
+ priority: z.ZodEnum<["high", "medium", "low"]>;
201
+ mode: z.ZodEnum<["vibe", "spec", "ask"]>;
202
+ createdAt: z.ZodDate;
203
+ updatedAt: z.ZodDate;
204
+ completedAt: z.ZodOptional<z.ZodDate>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ status: "pending" | "in_progress" | "completed";
207
+ mode: "vibe" | "spec" | "ask";
208
+ id: string;
209
+ content: string;
210
+ priority: "high" | "medium" | "low";
211
+ createdAt: Date;
212
+ updatedAt: Date;
213
+ completedAt?: Date | undefined;
214
+ }, {
215
+ status: "pending" | "in_progress" | "completed";
216
+ mode: "vibe" | "spec" | "ask";
217
+ id: string;
218
+ content: string;
219
+ priority: "high" | "medium" | "low";
220
+ createdAt: Date;
221
+ updatedAt: Date;
222
+ completedAt?: Date | undefined;
223
+ }>;
224
+ export type Todo = z.infer<typeof TodoSchema>;
225
+ export declare const TodoStoreSchema: z.ZodObject<{
226
+ sessionId: z.ZodString;
227
+ agentMode: z.ZodEnum<["vibe", "spec", "ask"]>;
228
+ todos: z.ZodArray<z.ZodObject<{
229
+ id: z.ZodString;
230
+ content: z.ZodString;
231
+ status: z.ZodEnum<["pending", "in_progress", "completed"]>;
232
+ priority: z.ZodEnum<["high", "medium", "low"]>;
233
+ mode: z.ZodEnum<["vibe", "spec", "ask"]>;
234
+ createdAt: z.ZodDate;
235
+ updatedAt: z.ZodDate;
236
+ completedAt: z.ZodOptional<z.ZodDate>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ status: "pending" | "in_progress" | "completed";
239
+ mode: "vibe" | "spec" | "ask";
240
+ id: string;
241
+ content: string;
242
+ priority: "high" | "medium" | "low";
243
+ createdAt: Date;
244
+ updatedAt: Date;
245
+ completedAt?: Date | undefined;
246
+ }, {
247
+ status: "pending" | "in_progress" | "completed";
248
+ mode: "vibe" | "spec" | "ask";
249
+ id: string;
250
+ content: string;
251
+ priority: "high" | "medium" | "low";
252
+ createdAt: Date;
253
+ updatedAt: Date;
254
+ completedAt?: Date | undefined;
255
+ }>, "many">;
256
+ createdAt: z.ZodDate;
257
+ updatedAt: z.ZodDate;
258
+ }, "strip", z.ZodTypeAny, {
259
+ createdAt: Date;
260
+ updatedAt: Date;
261
+ sessionId: string;
262
+ agentMode: "vibe" | "spec" | "ask";
263
+ todos: {
264
+ status: "pending" | "in_progress" | "completed";
265
+ mode: "vibe" | "spec" | "ask";
266
+ id: string;
267
+ content: string;
268
+ priority: "high" | "medium" | "low";
269
+ createdAt: Date;
270
+ updatedAt: Date;
271
+ completedAt?: Date | undefined;
272
+ }[];
273
+ }, {
274
+ createdAt: Date;
275
+ updatedAt: Date;
276
+ sessionId: string;
277
+ agentMode: "vibe" | "spec" | "ask";
278
+ todos: {
279
+ status: "pending" | "in_progress" | "completed";
280
+ mode: "vibe" | "spec" | "ask";
281
+ id: string;
282
+ content: string;
283
+ priority: "high" | "medium" | "low";
284
+ createdAt: Date;
285
+ updatedAt: Date;
286
+ completedAt?: Date | undefined;
287
+ }[];
288
+ }>;
289
+ export type TodoStore = z.infer<typeof TodoStoreSchema>;
290
+ export declare const ModeStateSchema: z.ZodObject<{
291
+ currentMode: z.ZodEnum<["vibe", "spec", "ask"]>;
292
+ vibeState: z.ZodObject<{
293
+ todos: z.ZodArray<z.ZodObject<{
294
+ id: z.ZodString;
295
+ content: z.ZodString;
296
+ status: z.ZodEnum<["pending", "in_progress", "completed"]>;
297
+ priority: z.ZodEnum<["high", "medium", "low"]>;
298
+ mode: z.ZodEnum<["vibe", "spec", "ask"]>;
299
+ createdAt: z.ZodDate;
300
+ updatedAt: z.ZodDate;
301
+ completedAt: z.ZodOptional<z.ZodDate>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ status: "pending" | "in_progress" | "completed";
304
+ mode: "vibe" | "spec" | "ask";
305
+ id: string;
306
+ content: string;
307
+ priority: "high" | "medium" | "low";
308
+ createdAt: Date;
309
+ updatedAt: Date;
310
+ completedAt?: Date | undefined;
311
+ }, {
312
+ status: "pending" | "in_progress" | "completed";
313
+ mode: "vibe" | "spec" | "ask";
314
+ id: string;
315
+ content: string;
316
+ priority: "high" | "medium" | "low";
317
+ createdAt: Date;
318
+ updatedAt: Date;
319
+ completedAt?: Date | undefined;
320
+ }>, "many">;
321
+ progress: z.ZodNumber;
322
+ context: z.ZodObject<{
323
+ inspiration: z.ZodString;
324
+ technicalSolution: z.ZodString;
325
+ codeSnippet: z.ZodString;
326
+ }, "strip", z.ZodTypeAny, {
327
+ inspiration: string;
328
+ technicalSolution: string;
329
+ codeSnippet: string;
330
+ }, {
331
+ inspiration: string;
332
+ technicalSolution: string;
333
+ codeSnippet: string;
334
+ }>;
335
+ lastUpdated: z.ZodDate;
336
+ }, "strip", z.ZodTypeAny, {
337
+ todos: {
338
+ status: "pending" | "in_progress" | "completed";
339
+ mode: "vibe" | "spec" | "ask";
340
+ id: string;
341
+ content: string;
342
+ priority: "high" | "medium" | "low";
343
+ createdAt: Date;
344
+ updatedAt: Date;
345
+ completedAt?: Date | undefined;
346
+ }[];
347
+ progress: number;
348
+ context: {
349
+ inspiration: string;
350
+ technicalSolution: string;
351
+ codeSnippet: string;
352
+ };
353
+ lastUpdated: Date;
354
+ }, {
355
+ todos: {
356
+ status: "pending" | "in_progress" | "completed";
357
+ mode: "vibe" | "spec" | "ask";
358
+ id: string;
359
+ content: string;
360
+ priority: "high" | "medium" | "low";
361
+ createdAt: Date;
362
+ updatedAt: Date;
363
+ completedAt?: Date | undefined;
364
+ }[];
365
+ progress: number;
366
+ context: {
367
+ inspiration: string;
368
+ technicalSolution: string;
369
+ codeSnippet: string;
370
+ };
371
+ lastUpdated: Date;
372
+ }>;
373
+ specState: z.ZodObject<{
374
+ todos: z.ZodArray<z.ZodObject<{
375
+ id: z.ZodString;
376
+ content: z.ZodString;
377
+ status: z.ZodEnum<["pending", "in_progress", "completed"]>;
378
+ priority: z.ZodEnum<["high", "medium", "low"]>;
379
+ mode: z.ZodEnum<["vibe", "spec", "ask"]>;
380
+ createdAt: z.ZodDate;
381
+ updatedAt: z.ZodDate;
382
+ completedAt: z.ZodOptional<z.ZodDate>;
383
+ }, "strip", z.ZodTypeAny, {
384
+ status: "pending" | "in_progress" | "completed";
385
+ mode: "vibe" | "spec" | "ask";
386
+ id: string;
387
+ content: string;
388
+ priority: "high" | "medium" | "low";
389
+ createdAt: Date;
390
+ updatedAt: Date;
391
+ completedAt?: Date | undefined;
392
+ }, {
393
+ status: "pending" | "in_progress" | "completed";
394
+ mode: "vibe" | "spec" | "ask";
395
+ id: string;
396
+ content: string;
397
+ priority: "high" | "medium" | "low";
398
+ createdAt: Date;
399
+ updatedAt: Date;
400
+ completedAt?: Date | undefined;
401
+ }>, "many">;
402
+ progress: z.ZodNumber;
403
+ specDocument: z.ZodString;
404
+ context: z.ZodObject<{
405
+ requirements: z.ZodString;
406
+ technicalSpec: z.ZodString;
407
+ implementationPlan: z.ZodString;
408
+ }, "strip", z.ZodTypeAny, {
409
+ requirements: string;
410
+ technicalSpec: string;
411
+ implementationPlan: string;
412
+ }, {
413
+ requirements: string;
414
+ technicalSpec: string;
415
+ implementationPlan: string;
416
+ }>;
417
+ lastUpdated: z.ZodDate;
418
+ }, "strip", z.ZodTypeAny, {
419
+ todos: {
420
+ status: "pending" | "in_progress" | "completed";
421
+ mode: "vibe" | "spec" | "ask";
422
+ id: string;
423
+ content: string;
424
+ priority: "high" | "medium" | "low";
425
+ createdAt: Date;
426
+ updatedAt: Date;
427
+ completedAt?: Date | undefined;
428
+ }[];
429
+ progress: number;
430
+ context: {
431
+ requirements: string;
432
+ technicalSpec: string;
433
+ implementationPlan: string;
434
+ };
435
+ lastUpdated: Date;
436
+ specDocument: string;
437
+ }, {
438
+ todos: {
439
+ status: "pending" | "in_progress" | "completed";
440
+ mode: "vibe" | "spec" | "ask";
441
+ id: string;
442
+ content: string;
443
+ priority: "high" | "medium" | "low";
444
+ createdAt: Date;
445
+ updatedAt: Date;
446
+ completedAt?: Date | undefined;
447
+ }[];
448
+ progress: number;
449
+ context: {
450
+ requirements: string;
451
+ technicalSpec: string;
452
+ implementationPlan: string;
453
+ };
454
+ lastUpdated: Date;
455
+ specDocument: string;
456
+ }>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ currentMode: "vibe" | "spec" | "ask";
459
+ vibeState: {
460
+ todos: {
461
+ status: "pending" | "in_progress" | "completed";
462
+ mode: "vibe" | "spec" | "ask";
463
+ id: string;
464
+ content: string;
465
+ priority: "high" | "medium" | "low";
466
+ createdAt: Date;
467
+ updatedAt: Date;
468
+ completedAt?: Date | undefined;
469
+ }[];
470
+ progress: number;
471
+ context: {
472
+ inspiration: string;
473
+ technicalSolution: string;
474
+ codeSnippet: string;
475
+ };
476
+ lastUpdated: Date;
477
+ };
478
+ specState: {
479
+ todos: {
480
+ status: "pending" | "in_progress" | "completed";
481
+ mode: "vibe" | "spec" | "ask";
482
+ id: string;
483
+ content: string;
484
+ priority: "high" | "medium" | "low";
485
+ createdAt: Date;
486
+ updatedAt: Date;
487
+ completedAt?: Date | undefined;
488
+ }[];
489
+ progress: number;
490
+ context: {
491
+ requirements: string;
492
+ technicalSpec: string;
493
+ implementationPlan: string;
494
+ };
495
+ lastUpdated: Date;
496
+ specDocument: string;
497
+ };
498
+ }, {
499
+ currentMode: "vibe" | "spec" | "ask";
500
+ vibeState: {
501
+ todos: {
502
+ status: "pending" | "in_progress" | "completed";
503
+ mode: "vibe" | "spec" | "ask";
504
+ id: string;
505
+ content: string;
506
+ priority: "high" | "medium" | "low";
507
+ createdAt: Date;
508
+ updatedAt: Date;
509
+ completedAt?: Date | undefined;
510
+ }[];
511
+ progress: number;
512
+ context: {
513
+ inspiration: string;
514
+ technicalSolution: string;
515
+ codeSnippet: string;
516
+ };
517
+ lastUpdated: Date;
518
+ };
519
+ specState: {
520
+ todos: {
521
+ status: "pending" | "in_progress" | "completed";
522
+ mode: "vibe" | "spec" | "ask";
523
+ id: string;
524
+ content: string;
525
+ priority: "high" | "medium" | "low";
526
+ createdAt: Date;
527
+ updatedAt: Date;
528
+ completedAt?: Date | undefined;
529
+ }[];
530
+ progress: number;
531
+ context: {
532
+ requirements: string;
533
+ technicalSpec: string;
534
+ implementationPlan: string;
535
+ };
536
+ lastUpdated: Date;
537
+ specDocument: string;
538
+ };
539
+ }>;
540
+ export type ModeState = z.infer<typeof ModeStateSchema>;
541
+ export declare const ModelConfigSchema: z.ZodObject<{
542
+ model: z.ZodString;
543
+ provider: z.ZodString;
544
+ }, "strip", z.ZodTypeAny, {
545
+ model: string;
546
+ provider: string;
547
+ }, {
548
+ model: string;
549
+ provider: string;
550
+ }>;
551
+ export type ModelConfig = z.infer<typeof ModelConfigSchema>;
552
+ export declare const SteeringConfigSchema: z.ZodObject<{
553
+ codeStyle: z.ZodObject<{
554
+ typescript: z.ZodBoolean;
555
+ eslint: z.ZodBoolean;
556
+ functionNaming: z.ZodEnum<["camelCase", "snake_case"]>;
557
+ classNaming: z.ZodEnum<["PascalCase", "snake_case"]>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ typescript: boolean;
560
+ eslint: boolean;
561
+ functionNaming: "camelCase" | "snake_case";
562
+ classNaming: "snake_case" | "PascalCase";
563
+ }, {
564
+ typescript: boolean;
565
+ eslint: boolean;
566
+ functionNaming: "camelCase" | "snake_case";
567
+ classNaming: "snake_case" | "PascalCase";
568
+ }>;
569
+ architecture: z.ZodObject<{
570
+ pattern: z.ZodEnum<["layered", "hexagonal", "event-driven"]>;
571
+ dependencyInjection: z.ZodBoolean;
572
+ singleResponsibility: z.ZodBoolean;
573
+ }, "strip", z.ZodTypeAny, {
574
+ pattern: "layered" | "hexagonal" | "event-driven";
575
+ dependencyInjection: boolean;
576
+ singleResponsibility: boolean;
577
+ }, {
578
+ pattern: "layered" | "hexagonal" | "event-driven";
579
+ dependencyInjection: boolean;
580
+ singleResponsibility: boolean;
581
+ }>;
582
+ testing: z.ZodObject<{
583
+ unitCoverage: z.ZodNumber;
584
+ integrationCoverage: z.ZodNumber;
585
+ e2eCoverage: z.ZodNumber;
586
+ }, "strip", z.ZodTypeAny, {
587
+ unitCoverage: number;
588
+ integrationCoverage: number;
589
+ e2eCoverage: number;
590
+ }, {
591
+ unitCoverage: number;
592
+ integrationCoverage: number;
593
+ e2eCoverage: number;
594
+ }>;
595
+ documentation: z.ZodObject<{
596
+ jsdoc: z.ZodBoolean;
597
+ comments: z.ZodBoolean;
598
+ readme: z.ZodBoolean;
599
+ }, "strip", z.ZodTypeAny, {
600
+ jsdoc: boolean;
601
+ comments: boolean;
602
+ readme: boolean;
603
+ }, {
604
+ jsdoc: boolean;
605
+ comments: boolean;
606
+ readme: boolean;
607
+ }>;
608
+ }, "strip", z.ZodTypeAny, {
609
+ documentation: {
610
+ jsdoc: boolean;
611
+ comments: boolean;
612
+ readme: boolean;
613
+ };
614
+ codeStyle: {
615
+ typescript: boolean;
616
+ eslint: boolean;
617
+ functionNaming: "camelCase" | "snake_case";
618
+ classNaming: "snake_case" | "PascalCase";
619
+ };
620
+ architecture: {
621
+ pattern: "layered" | "hexagonal" | "event-driven";
622
+ dependencyInjection: boolean;
623
+ singleResponsibility: boolean;
624
+ };
625
+ testing: {
626
+ unitCoverage: number;
627
+ integrationCoverage: number;
628
+ e2eCoverage: number;
629
+ };
630
+ }, {
631
+ documentation: {
632
+ jsdoc: boolean;
633
+ comments: boolean;
634
+ readme: boolean;
635
+ };
636
+ codeStyle: {
637
+ typescript: boolean;
638
+ eslint: boolean;
639
+ functionNaming: "camelCase" | "snake_case";
640
+ classNaming: "snake_case" | "PascalCase";
641
+ };
642
+ architecture: {
643
+ pattern: "layered" | "hexagonal" | "event-driven";
644
+ dependencyInjection: boolean;
645
+ singleResponsibility: boolean;
646
+ };
647
+ testing: {
648
+ unitCoverage: number;
649
+ integrationCoverage: number;
650
+ e2eCoverage: number;
651
+ };
652
+ }>;
653
+ export type SteeringConfig = z.infer<typeof SteeringConfigSchema>;
654
+ export declare const QualityDimensionSchema: z.ZodEnum<["functional_completeness", "functional_correctness", "functional_appropriateness", "code_readability", "maintainability", "testability", "documentation_quality", "security_vulnerability", "security_practices", "complexity", "efficiency_risk", "consistency", "source_attribution", "actionability", "relevance", "innovation"]>;
655
+ export type QualityDimension = z.infer<typeof QualityDimensionSchema>;
656
+ export declare const QualityScoreSchema: z.ZodObject<{
657
+ overall: z.ZodNumber;
658
+ dimensions: z.ZodRecord<z.ZodEnum<["functional_completeness", "functional_correctness", "functional_appropriateness", "code_readability", "maintainability", "testability", "documentation_quality", "security_vulnerability", "security_practices", "complexity", "efficiency_risk", "consistency", "source_attribution", "actionability", "relevance", "innovation"]>, z.ZodNumber>;
659
+ weights: z.ZodRecord<z.ZodEnum<["functional_completeness", "functional_correctness", "functional_appropriateness", "code_readability", "maintainability", "testability", "documentation_quality", "security_vulnerability", "security_practices", "complexity", "efficiency_risk", "consistency", "source_attribution", "actionability", "relevance", "innovation"]>, z.ZodNumber>;
660
+ negativeIndicators: z.ZodArray<z.ZodObject<{
661
+ pattern: z.ZodString;
662
+ severity: z.ZodEnum<["critical", "major", "minor"]>;
663
+ penalty: z.ZodNumber;
664
+ message: z.ZodString;
665
+ }, "strip", z.ZodTypeAny, {
666
+ message: string;
667
+ pattern: string;
668
+ severity: "critical" | "major" | "minor";
669
+ penalty: number;
670
+ }, {
671
+ message: string;
672
+ pattern: string;
673
+ severity: "critical" | "major" | "minor";
674
+ penalty: number;
675
+ }>, "many">;
676
+ codeAnalysis: z.ZodNullable<z.ZodObject<{
677
+ cyclomaticComplexity: z.ZodNumber;
678
+ cognitiveComplexity: z.ZodNumber;
679
+ linesOfCode: z.ZodNumber;
680
+ linesOfComments: z.ZodNumber;
681
+ commentRatio: z.ZodNumber;
682
+ duplicatedLines: z.ZodNumber;
683
+ duplicationRatio: z.ZodNumber;
684
+ functionCount: z.ZodNumber;
685
+ classCount: z.ZodNumber;
686
+ maxFunctionLength: z.ZodNumber;
687
+ maxNestingDepth: z.ZodNumber;
688
+ }, "strip", z.ZodTypeAny, {
689
+ cyclomaticComplexity: number;
690
+ cognitiveComplexity: number;
691
+ linesOfCode: number;
692
+ linesOfComments: number;
693
+ commentRatio: number;
694
+ duplicatedLines: number;
695
+ duplicationRatio: number;
696
+ functionCount: number;
697
+ classCount: number;
698
+ maxFunctionLength: number;
699
+ maxNestingDepth: number;
700
+ }, {
701
+ cyclomaticComplexity: number;
702
+ cognitiveComplexity: number;
703
+ linesOfCode: number;
704
+ linesOfComments: number;
705
+ commentRatio: number;
706
+ duplicatedLines: number;
707
+ duplicationRatio: number;
708
+ functionCount: number;
709
+ classCount: number;
710
+ maxFunctionLength: number;
711
+ maxNestingDepth: number;
712
+ }>>;
713
+ securityFindings: z.ZodArray<z.ZodObject<{
714
+ pattern: z.ZodString;
715
+ severity: z.ZodEnum<["critical", "high", "medium", "low"]>;
716
+ location: z.ZodOptional<z.ZodString>;
717
+ cwe: z.ZodOptional<z.ZodString>;
718
+ owasp: z.ZodOptional<z.ZodString>;
719
+ recommendation: z.ZodString;
720
+ }, "strip", z.ZodTypeAny, {
721
+ pattern: string;
722
+ severity: "critical" | "high" | "medium" | "low";
723
+ recommendation: string;
724
+ location?: string | undefined;
725
+ cwe?: string | undefined;
726
+ owasp?: string | undefined;
727
+ }, {
728
+ pattern: string;
729
+ severity: "critical" | "high" | "medium" | "low";
730
+ recommendation: string;
731
+ location?: string | undefined;
732
+ cwe?: string | undefined;
733
+ owasp?: string | undefined;
734
+ }>, "many">;
735
+ timestamp: z.ZodDate;
736
+ }, "strip", z.ZodTypeAny, {
737
+ overall: number;
738
+ dimensions: Partial<Record<"functional_completeness" | "functional_correctness" | "functional_appropriateness" | "code_readability" | "maintainability" | "testability" | "documentation_quality" | "security_vulnerability" | "security_practices" | "complexity" | "efficiency_risk" | "consistency" | "source_attribution" | "actionability" | "relevance" | "innovation", number>>;
739
+ weights: Partial<Record<"functional_completeness" | "functional_correctness" | "functional_appropriateness" | "code_readability" | "maintainability" | "testability" | "documentation_quality" | "security_vulnerability" | "security_practices" | "complexity" | "efficiency_risk" | "consistency" | "source_attribution" | "actionability" | "relevance" | "innovation", number>>;
740
+ negativeIndicators: {
741
+ message: string;
742
+ pattern: string;
743
+ severity: "critical" | "major" | "minor";
744
+ penalty: number;
745
+ }[];
746
+ codeAnalysis: {
747
+ cyclomaticComplexity: number;
748
+ cognitiveComplexity: number;
749
+ linesOfCode: number;
750
+ linesOfComments: number;
751
+ commentRatio: number;
752
+ duplicatedLines: number;
753
+ duplicationRatio: number;
754
+ functionCount: number;
755
+ classCount: number;
756
+ maxFunctionLength: number;
757
+ maxNestingDepth: number;
758
+ } | null;
759
+ securityFindings: {
760
+ pattern: string;
761
+ severity: "critical" | "high" | "medium" | "low";
762
+ recommendation: string;
763
+ location?: string | undefined;
764
+ cwe?: string | undefined;
765
+ owasp?: string | undefined;
766
+ }[];
767
+ timestamp: Date;
768
+ }, {
769
+ overall: number;
770
+ dimensions: Partial<Record<"functional_completeness" | "functional_correctness" | "functional_appropriateness" | "code_readability" | "maintainability" | "testability" | "documentation_quality" | "security_vulnerability" | "security_practices" | "complexity" | "efficiency_risk" | "consistency" | "source_attribution" | "actionability" | "relevance" | "innovation", number>>;
771
+ weights: Partial<Record<"functional_completeness" | "functional_correctness" | "functional_appropriateness" | "code_readability" | "maintainability" | "testability" | "documentation_quality" | "security_vulnerability" | "security_practices" | "complexity" | "efficiency_risk" | "consistency" | "source_attribution" | "actionability" | "relevance" | "innovation", number>>;
772
+ negativeIndicators: {
773
+ message: string;
774
+ pattern: string;
775
+ severity: "critical" | "major" | "minor";
776
+ penalty: number;
777
+ }[];
778
+ codeAnalysis: {
779
+ cyclomaticComplexity: number;
780
+ cognitiveComplexity: number;
781
+ linesOfCode: number;
782
+ linesOfComments: number;
783
+ commentRatio: number;
784
+ duplicatedLines: number;
785
+ duplicationRatio: number;
786
+ functionCount: number;
787
+ classCount: number;
788
+ maxFunctionLength: number;
789
+ maxNestingDepth: number;
790
+ } | null;
791
+ securityFindings: {
792
+ pattern: string;
793
+ severity: "critical" | "high" | "medium" | "low";
794
+ recommendation: string;
795
+ location?: string | undefined;
796
+ cwe?: string | undefined;
797
+ owasp?: string | undefined;
798
+ }[];
799
+ timestamp: Date;
800
+ }>;
801
+ export type QualityScore = z.infer<typeof QualityScoreSchema>;
802
+ export declare const GateDecisionSchema: z.ZodObject<{
803
+ decision: z.ZodEnum<["PROMOTE", "HOLD", "ROLLBACK"]>;
804
+ reason: z.ZodString;
805
+ score: z.ZodNumber;
806
+ timestamp: z.ZodDate;
807
+ }, "strip", z.ZodTypeAny, {
808
+ timestamp: Date;
809
+ decision: "PROMOTE" | "HOLD" | "ROLLBACK";
810
+ reason: string;
811
+ score: number;
812
+ }, {
813
+ timestamp: Date;
814
+ decision: "PROMOTE" | "HOLD" | "ROLLBACK";
815
+ reason: string;
816
+ score: number;
817
+ }>;
818
+ export type GateDecision = z.infer<typeof GateDecisionSchema>;
819
+ export declare const NegativeIndicatorSchema: z.ZodObject<{
820
+ pattern: z.ZodString;
821
+ severity: z.ZodEnum<["critical", "major", "minor"]>;
822
+ penalty: z.ZodNumber;
823
+ message: z.ZodString;
824
+ }, "strip", z.ZodTypeAny, {
825
+ message: string;
826
+ pattern: string;
827
+ severity: "critical" | "major" | "minor";
828
+ penalty: number;
829
+ }, {
830
+ message: string;
831
+ pattern: string;
832
+ severity: "critical" | "major" | "minor";
833
+ penalty: number;
834
+ }>;
835
+ export type NegativeIndicator = z.infer<typeof NegativeIndicatorSchema>;
836
+ export declare const SecurityFindingSchema: z.ZodObject<{
837
+ pattern: z.ZodString;
838
+ severity: z.ZodEnum<["critical", "high", "medium", "low"]>;
839
+ location: z.ZodOptional<z.ZodString>;
840
+ cwe: z.ZodOptional<z.ZodString>;
841
+ owasp: z.ZodOptional<z.ZodString>;
842
+ recommendation: z.ZodString;
843
+ }, "strip", z.ZodTypeAny, {
844
+ pattern: string;
845
+ severity: "critical" | "high" | "medium" | "low";
846
+ recommendation: string;
847
+ location?: string | undefined;
848
+ cwe?: string | undefined;
849
+ owasp?: string | undefined;
850
+ }, {
851
+ pattern: string;
852
+ severity: "critical" | "high" | "medium" | "low";
853
+ recommendation: string;
854
+ location?: string | undefined;
855
+ cwe?: string | undefined;
856
+ owasp?: string | undefined;
857
+ }>;
858
+ export type SecurityFinding = z.infer<typeof SecurityFindingSchema>;
859
+ export declare const QualityMetricsSchema: z.ZodObject<{
860
+ agentName: z.ZodString;
861
+ sessionId: z.ZodString;
862
+ score: z.ZodObject<{
863
+ overall: z.ZodNumber;
864
+ dimensions: z.ZodRecord<z.ZodEnum<["functional_completeness", "functional_correctness", "functional_appropriateness", "code_readability", "maintainability", "testability", "documentation_quality", "security_vulnerability", "security_practices", "complexity", "efficiency_risk", "consistency", "source_attribution", "actionability", "relevance", "innovation"]>, z.ZodNumber>;
865
+ weights: z.ZodRecord<z.ZodEnum<["functional_completeness", "functional_correctness", "functional_appropriateness", "code_readability", "maintainability", "testability", "documentation_quality", "security_vulnerability", "security_practices", "complexity", "efficiency_risk", "consistency", "source_attribution", "actionability", "relevance", "innovation"]>, z.ZodNumber>;
866
+ negativeIndicators: z.ZodArray<z.ZodObject<{
867
+ pattern: z.ZodString;
868
+ severity: z.ZodEnum<["critical", "major", "minor"]>;
869
+ penalty: z.ZodNumber;
870
+ message: z.ZodString;
871
+ }, "strip", z.ZodTypeAny, {
872
+ message: string;
873
+ pattern: string;
874
+ severity: "critical" | "major" | "minor";
875
+ penalty: number;
876
+ }, {
877
+ message: string;
878
+ pattern: string;
879
+ severity: "critical" | "major" | "minor";
880
+ penalty: number;
881
+ }>, "many">;
882
+ codeAnalysis: z.ZodNullable<z.ZodObject<{
883
+ cyclomaticComplexity: z.ZodNumber;
884
+ cognitiveComplexity: z.ZodNumber;
885
+ linesOfCode: z.ZodNumber;
886
+ linesOfComments: z.ZodNumber;
887
+ commentRatio: z.ZodNumber;
888
+ duplicatedLines: z.ZodNumber;
889
+ duplicationRatio: z.ZodNumber;
890
+ functionCount: z.ZodNumber;
891
+ classCount: z.ZodNumber;
892
+ maxFunctionLength: z.ZodNumber;
893
+ maxNestingDepth: z.ZodNumber;
894
+ }, "strip", z.ZodTypeAny, {
895
+ cyclomaticComplexity: number;
896
+ cognitiveComplexity: number;
897
+ linesOfCode: number;
898
+ linesOfComments: number;
899
+ commentRatio: number;
900
+ duplicatedLines: number;
901
+ duplicationRatio: number;
902
+ functionCount: number;
903
+ classCount: number;
904
+ maxFunctionLength: number;
905
+ maxNestingDepth: number;
906
+ }, {
907
+ cyclomaticComplexity: number;
908
+ cognitiveComplexity: number;
909
+ linesOfCode: number;
910
+ linesOfComments: number;
911
+ commentRatio: number;
912
+ duplicatedLines: number;
913
+ duplicationRatio: number;
914
+ functionCount: number;
915
+ classCount: number;
916
+ maxFunctionLength: number;
917
+ maxNestingDepth: number;
918
+ }>>;
919
+ securityFindings: z.ZodArray<z.ZodObject<{
920
+ pattern: z.ZodString;
921
+ severity: z.ZodEnum<["critical", "high", "medium", "low"]>;
922
+ location: z.ZodOptional<z.ZodString>;
923
+ cwe: z.ZodOptional<z.ZodString>;
924
+ owasp: z.ZodOptional<z.ZodString>;
925
+ recommendation: z.ZodString;
926
+ }, "strip", z.ZodTypeAny, {
927
+ pattern: string;
928
+ severity: "critical" | "high" | "medium" | "low";
929
+ recommendation: string;
930
+ location?: string | undefined;
931
+ cwe?: string | undefined;
932
+ owasp?: string | undefined;
933
+ }, {
934
+ pattern: string;
935
+ severity: "critical" | "high" | "medium" | "low";
936
+ recommendation: string;
937
+ location?: string | undefined;
938
+ cwe?: string | undefined;
939
+ owasp?: string | undefined;
940
+ }>, "many">;
941
+ timestamp: z.ZodDate;
942
+ }, "strip", z.ZodTypeAny, {
943
+ overall: number;
944
+ dimensions: Partial<Record<"functional_completeness" | "functional_correctness" | "functional_appropriateness" | "code_readability" | "maintainability" | "testability" | "documentation_quality" | "security_vulnerability" | "security_practices" | "complexity" | "efficiency_risk" | "consistency" | "source_attribution" | "actionability" | "relevance" | "innovation", number>>;
945
+ weights: Partial<Record<"functional_completeness" | "functional_correctness" | "functional_appropriateness" | "code_readability" | "maintainability" | "testability" | "documentation_quality" | "security_vulnerability" | "security_practices" | "complexity" | "efficiency_risk" | "consistency" | "source_attribution" | "actionability" | "relevance" | "innovation", number>>;
946
+ negativeIndicators: {
947
+ message: string;
948
+ pattern: string;
949
+ severity: "critical" | "major" | "minor";
950
+ penalty: number;
951
+ }[];
952
+ codeAnalysis: {
953
+ cyclomaticComplexity: number;
954
+ cognitiveComplexity: number;
955
+ linesOfCode: number;
956
+ linesOfComments: number;
957
+ commentRatio: number;
958
+ duplicatedLines: number;
959
+ duplicationRatio: number;
960
+ functionCount: number;
961
+ classCount: number;
962
+ maxFunctionLength: number;
963
+ maxNestingDepth: number;
964
+ } | null;
965
+ securityFindings: {
966
+ pattern: string;
967
+ severity: "critical" | "high" | "medium" | "low";
968
+ recommendation: string;
969
+ location?: string | undefined;
970
+ cwe?: string | undefined;
971
+ owasp?: string | undefined;
972
+ }[];
973
+ timestamp: Date;
974
+ }, {
975
+ overall: number;
976
+ dimensions: Partial<Record<"functional_completeness" | "functional_correctness" | "functional_appropriateness" | "code_readability" | "maintainability" | "testability" | "documentation_quality" | "security_vulnerability" | "security_practices" | "complexity" | "efficiency_risk" | "consistency" | "source_attribution" | "actionability" | "relevance" | "innovation", number>>;
977
+ weights: Partial<Record<"functional_completeness" | "functional_correctness" | "functional_appropriateness" | "code_readability" | "maintainability" | "testability" | "documentation_quality" | "security_vulnerability" | "security_practices" | "complexity" | "efficiency_risk" | "consistency" | "source_attribution" | "actionability" | "relevance" | "innovation", number>>;
978
+ negativeIndicators: {
979
+ message: string;
980
+ pattern: string;
981
+ severity: "critical" | "major" | "minor";
982
+ penalty: number;
983
+ }[];
984
+ codeAnalysis: {
985
+ cyclomaticComplexity: number;
986
+ cognitiveComplexity: number;
987
+ linesOfCode: number;
988
+ linesOfComments: number;
989
+ commentRatio: number;
990
+ duplicatedLines: number;
991
+ duplicationRatio: number;
992
+ functionCount: number;
993
+ classCount: number;
994
+ maxFunctionLength: number;
995
+ maxNestingDepth: number;
996
+ } | null;
997
+ securityFindings: {
998
+ pattern: string;
999
+ severity: "critical" | "high" | "medium" | "low";
1000
+ recommendation: string;
1001
+ location?: string | undefined;
1002
+ cwe?: string | undefined;
1003
+ owasp?: string | undefined;
1004
+ }[];
1005
+ timestamp: Date;
1006
+ }>;
1007
+ issues: z.ZodArray<z.ZodObject<{
1008
+ id: z.ZodString;
1009
+ type: z.ZodEnum<["error", "warning", "info"]>;
1010
+ message: z.ZodString;
1011
+ location: z.ZodOptional<z.ZodString>;
1012
+ severity: z.ZodEnum<["high", "medium", "low"]>;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ message: string;
1015
+ type: "error" | "warning" | "info";
1016
+ id: string;
1017
+ severity: "high" | "medium" | "low";
1018
+ location?: string | undefined;
1019
+ }, {
1020
+ message: string;
1021
+ type: "error" | "warning" | "info";
1022
+ id: string;
1023
+ severity: "high" | "medium" | "low";
1024
+ location?: string | undefined;
1025
+ }>, "many">;
1026
+ suggestions: z.ZodArray<z.ZodString, "many">;
1027
+ executionTime: z.ZodNumber;
1028
+ tokenUsage: z.ZodNumber;
1029
+ toolsUsed: z.ZodArray<z.ZodString, "many">;
1030
+ metadata: z.ZodObject<{
1031
+ analyzerVersion: z.ZodString;
1032
+ standard: z.ZodString;
1033
+ rulesApplied: z.ZodArray<z.ZodString, "many">;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ analyzerVersion: string;
1036
+ standard: string;
1037
+ rulesApplied: string[];
1038
+ }, {
1039
+ analyzerVersion: string;
1040
+ standard: string;
1041
+ rulesApplied: string[];
1042
+ }>;
1043
+ }, "strip", z.ZodTypeAny, {
1044
+ issues: {
1045
+ message: string;
1046
+ type: "error" | "warning" | "info";
1047
+ id: string;
1048
+ severity: "high" | "medium" | "low";
1049
+ location?: string | undefined;
1050
+ }[];
1051
+ sessionId: string;
1052
+ score: {
1053
+ overall: number;
1054
+ dimensions: Partial<Record<"functional_completeness" | "functional_correctness" | "functional_appropriateness" | "code_readability" | "maintainability" | "testability" | "documentation_quality" | "security_vulnerability" | "security_practices" | "complexity" | "efficiency_risk" | "consistency" | "source_attribution" | "actionability" | "relevance" | "innovation", number>>;
1055
+ weights: Partial<Record<"functional_completeness" | "functional_correctness" | "functional_appropriateness" | "code_readability" | "maintainability" | "testability" | "documentation_quality" | "security_vulnerability" | "security_practices" | "complexity" | "efficiency_risk" | "consistency" | "source_attribution" | "actionability" | "relevance" | "innovation", number>>;
1056
+ negativeIndicators: {
1057
+ message: string;
1058
+ pattern: string;
1059
+ severity: "critical" | "major" | "minor";
1060
+ penalty: number;
1061
+ }[];
1062
+ codeAnalysis: {
1063
+ cyclomaticComplexity: number;
1064
+ cognitiveComplexity: number;
1065
+ linesOfCode: number;
1066
+ linesOfComments: number;
1067
+ commentRatio: number;
1068
+ duplicatedLines: number;
1069
+ duplicationRatio: number;
1070
+ functionCount: number;
1071
+ classCount: number;
1072
+ maxFunctionLength: number;
1073
+ maxNestingDepth: number;
1074
+ } | null;
1075
+ securityFindings: {
1076
+ pattern: string;
1077
+ severity: "critical" | "high" | "medium" | "low";
1078
+ recommendation: string;
1079
+ location?: string | undefined;
1080
+ cwe?: string | undefined;
1081
+ owasp?: string | undefined;
1082
+ }[];
1083
+ timestamp: Date;
1084
+ };
1085
+ agentName: string;
1086
+ suggestions: string[];
1087
+ executionTime: number;
1088
+ tokenUsage: number;
1089
+ toolsUsed: string[];
1090
+ metadata: {
1091
+ analyzerVersion: string;
1092
+ standard: string;
1093
+ rulesApplied: string[];
1094
+ };
1095
+ }, {
1096
+ issues: {
1097
+ message: string;
1098
+ type: "error" | "warning" | "info";
1099
+ id: string;
1100
+ severity: "high" | "medium" | "low";
1101
+ location?: string | undefined;
1102
+ }[];
1103
+ sessionId: string;
1104
+ score: {
1105
+ overall: number;
1106
+ dimensions: Partial<Record<"functional_completeness" | "functional_correctness" | "functional_appropriateness" | "code_readability" | "maintainability" | "testability" | "documentation_quality" | "security_vulnerability" | "security_practices" | "complexity" | "efficiency_risk" | "consistency" | "source_attribution" | "actionability" | "relevance" | "innovation", number>>;
1107
+ weights: Partial<Record<"functional_completeness" | "functional_correctness" | "functional_appropriateness" | "code_readability" | "maintainability" | "testability" | "documentation_quality" | "security_vulnerability" | "security_practices" | "complexity" | "efficiency_risk" | "consistency" | "source_attribution" | "actionability" | "relevance" | "innovation", number>>;
1108
+ negativeIndicators: {
1109
+ message: string;
1110
+ pattern: string;
1111
+ severity: "critical" | "major" | "minor";
1112
+ penalty: number;
1113
+ }[];
1114
+ codeAnalysis: {
1115
+ cyclomaticComplexity: number;
1116
+ cognitiveComplexity: number;
1117
+ linesOfCode: number;
1118
+ linesOfComments: number;
1119
+ commentRatio: number;
1120
+ duplicatedLines: number;
1121
+ duplicationRatio: number;
1122
+ functionCount: number;
1123
+ classCount: number;
1124
+ maxFunctionLength: number;
1125
+ maxNestingDepth: number;
1126
+ } | null;
1127
+ securityFindings: {
1128
+ pattern: string;
1129
+ severity: "critical" | "high" | "medium" | "low";
1130
+ recommendation: string;
1131
+ location?: string | undefined;
1132
+ cwe?: string | undefined;
1133
+ owasp?: string | undefined;
1134
+ }[];
1135
+ timestamp: Date;
1136
+ };
1137
+ agentName: string;
1138
+ suggestions: string[];
1139
+ executionTime: number;
1140
+ tokenUsage: number;
1141
+ toolsUsed: string[];
1142
+ metadata: {
1143
+ analyzerVersion: string;
1144
+ standard: string;
1145
+ rulesApplied: string[];
1146
+ };
1147
+ }>;
1148
+ export type QualityMetrics = z.infer<typeof QualityMetricsSchema>;
1149
+ export declare const PluginConfigSchema: z.ZodObject<{
1150
+ storePath: z.ZodOptional<z.ZodString>;
1151
+ quality: z.ZodDefault<z.ZodObject<{
1152
+ enableCodeAnalysis: z.ZodDefault<z.ZodBoolean>;
1153
+ enableSecurityScan: z.ZodDefault<z.ZodBoolean>;
1154
+ enablePerformanceAnalysis: z.ZodDefault<z.ZodBoolean>;
1155
+ promoteThreshold: z.ZodDefault<z.ZodNumber>;
1156
+ holdThreshold: z.ZodDefault<z.ZodNumber>;
1157
+ rollbackThreshold: z.ZodDefault<z.ZodNumber>;
1158
+ }, "strip", z.ZodTypeAny, {
1159
+ enableCodeAnalysis: boolean;
1160
+ enableSecurityScan: boolean;
1161
+ enablePerformanceAnalysis: boolean;
1162
+ promoteThreshold: number;
1163
+ holdThreshold: number;
1164
+ rollbackThreshold: number;
1165
+ }, {
1166
+ enableCodeAnalysis?: boolean | undefined;
1167
+ enableSecurityScan?: boolean | undefined;
1168
+ enablePerformanceAnalysis?: boolean | undefined;
1169
+ promoteThreshold?: number | undefined;
1170
+ holdThreshold?: number | undefined;
1171
+ rollbackThreshold?: number | undefined;
1172
+ }>>;
1173
+ agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1174
+ mode: z.ZodEnum<["primary", "subagent"]>;
1175
+ model: z.ZodString;
1176
+ description: z.ZodString;
1177
+ color: z.ZodOptional<z.ZodString>;
1178
+ steps: z.ZodOptional<z.ZodNumber>;
1179
+ tools: z.ZodObject<{
1180
+ task: z.ZodOptional<z.ZodBoolean>;
1181
+ read: z.ZodOptional<z.ZodBoolean>;
1182
+ bash: z.ZodOptional<z.ZodBoolean>;
1183
+ edit: z.ZodOptional<z.ZodBoolean>;
1184
+ write: z.ZodOptional<z.ZodBoolean>;
1185
+ todowrite: z.ZodOptional<z.ZodBoolean>;
1186
+ glob: z.ZodOptional<z.ZodBoolean>;
1187
+ grep: z.ZodOptional<z.ZodBoolean>;
1188
+ list: z.ZodOptional<z.ZodBoolean>;
1189
+ context7_resolve_library_id: z.ZodOptional<z.ZodBoolean>;
1190
+ context7_query_docs: z.ZodOptional<z.ZodBoolean>;
1191
+ codesearch: z.ZodOptional<z.ZodBoolean>;
1192
+ }, "strip", z.ZodTypeAny, {
1193
+ task?: boolean | undefined;
1194
+ read?: boolean | undefined;
1195
+ bash?: boolean | undefined;
1196
+ edit?: boolean | undefined;
1197
+ write?: boolean | undefined;
1198
+ todowrite?: boolean | undefined;
1199
+ glob?: boolean | undefined;
1200
+ grep?: boolean | undefined;
1201
+ list?: boolean | undefined;
1202
+ context7_resolve_library_id?: boolean | undefined;
1203
+ context7_query_docs?: boolean | undefined;
1204
+ codesearch?: boolean | undefined;
1205
+ }, {
1206
+ task?: boolean | undefined;
1207
+ read?: boolean | undefined;
1208
+ bash?: boolean | undefined;
1209
+ edit?: boolean | undefined;
1210
+ write?: boolean | undefined;
1211
+ todowrite?: boolean | undefined;
1212
+ glob?: boolean | undefined;
1213
+ grep?: boolean | undefined;
1214
+ list?: boolean | undefined;
1215
+ context7_resolve_library_id?: boolean | undefined;
1216
+ context7_query_docs?: boolean | undefined;
1217
+ codesearch?: boolean | undefined;
1218
+ }>;
1219
+ permission: z.ZodObject<{
1220
+ edit: z.ZodEnum<["allow", "deny", "ask"]>;
1221
+ bash: z.ZodEnum<["allow", "deny", "ask"]>;
1222
+ read: z.ZodOptional<z.ZodEnum<["allow", "deny"]>>;
1223
+ write: z.ZodOptional<z.ZodEnum<["allow", "deny"]>>;
1224
+ }, "strip", z.ZodTypeAny, {
1225
+ bash: "ask" | "allow" | "deny";
1226
+ edit: "ask" | "allow" | "deny";
1227
+ read?: "allow" | "deny" | undefined;
1228
+ write?: "allow" | "deny" | undefined;
1229
+ }, {
1230
+ bash: "ask" | "allow" | "deny";
1231
+ edit: "ask" | "allow" | "deny";
1232
+ read?: "allow" | "deny" | undefined;
1233
+ write?: "allow" | "deny" | undefined;
1234
+ }>;
1235
+ hidden: z.ZodOptional<z.ZodBoolean>;
1236
+ prompt: z.ZodOptional<z.ZodString>;
1237
+ }, "strip", z.ZodTypeAny, {
1238
+ mode: "primary" | "subagent";
1239
+ model: string;
1240
+ description: string;
1241
+ tools: {
1242
+ task?: boolean | undefined;
1243
+ read?: boolean | undefined;
1244
+ bash?: boolean | undefined;
1245
+ edit?: boolean | undefined;
1246
+ write?: boolean | undefined;
1247
+ todowrite?: boolean | undefined;
1248
+ glob?: boolean | undefined;
1249
+ grep?: boolean | undefined;
1250
+ list?: boolean | undefined;
1251
+ context7_resolve_library_id?: boolean | undefined;
1252
+ context7_query_docs?: boolean | undefined;
1253
+ codesearch?: boolean | undefined;
1254
+ };
1255
+ permission: {
1256
+ bash: "ask" | "allow" | "deny";
1257
+ edit: "ask" | "allow" | "deny";
1258
+ read?: "allow" | "deny" | undefined;
1259
+ write?: "allow" | "deny" | undefined;
1260
+ };
1261
+ color?: string | undefined;
1262
+ steps?: number | undefined;
1263
+ hidden?: boolean | undefined;
1264
+ prompt?: string | undefined;
1265
+ }, {
1266
+ mode: "primary" | "subagent";
1267
+ model: string;
1268
+ description: string;
1269
+ tools: {
1270
+ task?: boolean | undefined;
1271
+ read?: boolean | undefined;
1272
+ bash?: boolean | undefined;
1273
+ edit?: boolean | undefined;
1274
+ write?: boolean | undefined;
1275
+ todowrite?: boolean | undefined;
1276
+ glob?: boolean | undefined;
1277
+ grep?: boolean | undefined;
1278
+ list?: boolean | undefined;
1279
+ context7_resolve_library_id?: boolean | undefined;
1280
+ context7_query_docs?: boolean | undefined;
1281
+ codesearch?: boolean | undefined;
1282
+ };
1283
+ permission: {
1284
+ bash: "ask" | "allow" | "deny";
1285
+ edit: "ask" | "allow" | "deny";
1286
+ read?: "allow" | "deny" | undefined;
1287
+ write?: "allow" | "deny" | undefined;
1288
+ };
1289
+ color?: string | undefined;
1290
+ steps?: number | undefined;
1291
+ hidden?: boolean | undefined;
1292
+ prompt?: string | undefined;
1293
+ }>>>;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ quality: {
1296
+ enableCodeAnalysis: boolean;
1297
+ enableSecurityScan: boolean;
1298
+ enablePerformanceAnalysis: boolean;
1299
+ promoteThreshold: number;
1300
+ holdThreshold: number;
1301
+ rollbackThreshold: number;
1302
+ };
1303
+ storePath?: string | undefined;
1304
+ agents?: Record<string, {
1305
+ mode: "primary" | "subagent";
1306
+ model: string;
1307
+ description: string;
1308
+ tools: {
1309
+ task?: boolean | undefined;
1310
+ read?: boolean | undefined;
1311
+ bash?: boolean | undefined;
1312
+ edit?: boolean | undefined;
1313
+ write?: boolean | undefined;
1314
+ todowrite?: boolean | undefined;
1315
+ glob?: boolean | undefined;
1316
+ grep?: boolean | undefined;
1317
+ list?: boolean | undefined;
1318
+ context7_resolve_library_id?: boolean | undefined;
1319
+ context7_query_docs?: boolean | undefined;
1320
+ codesearch?: boolean | undefined;
1321
+ };
1322
+ permission: {
1323
+ bash: "ask" | "allow" | "deny";
1324
+ edit: "ask" | "allow" | "deny";
1325
+ read?: "allow" | "deny" | undefined;
1326
+ write?: "allow" | "deny" | undefined;
1327
+ };
1328
+ color?: string | undefined;
1329
+ steps?: number | undefined;
1330
+ hidden?: boolean | undefined;
1331
+ prompt?: string | undefined;
1332
+ }> | undefined;
1333
+ }, {
1334
+ storePath?: string | undefined;
1335
+ quality?: {
1336
+ enableCodeAnalysis?: boolean | undefined;
1337
+ enableSecurityScan?: boolean | undefined;
1338
+ enablePerformanceAnalysis?: boolean | undefined;
1339
+ promoteThreshold?: number | undefined;
1340
+ holdThreshold?: number | undefined;
1341
+ rollbackThreshold?: number | undefined;
1342
+ } | undefined;
1343
+ agents?: Record<string, {
1344
+ mode: "primary" | "subagent";
1345
+ model: string;
1346
+ description: string;
1347
+ tools: {
1348
+ task?: boolean | undefined;
1349
+ read?: boolean | undefined;
1350
+ bash?: boolean | undefined;
1351
+ edit?: boolean | undefined;
1352
+ write?: boolean | undefined;
1353
+ todowrite?: boolean | undefined;
1354
+ glob?: boolean | undefined;
1355
+ grep?: boolean | undefined;
1356
+ list?: boolean | undefined;
1357
+ context7_resolve_library_id?: boolean | undefined;
1358
+ context7_query_docs?: boolean | undefined;
1359
+ codesearch?: boolean | undefined;
1360
+ };
1361
+ permission: {
1362
+ bash: "ask" | "allow" | "deny";
1363
+ edit: "ask" | "allow" | "deny";
1364
+ read?: "allow" | "deny" | undefined;
1365
+ write?: "allow" | "deny" | undefined;
1366
+ };
1367
+ color?: string | undefined;
1368
+ steps?: number | undefined;
1369
+ hidden?: boolean | undefined;
1370
+ prompt?: string | undefined;
1371
+ }> | undefined;
1372
+ }>;
1373
+ export type PluginConfig = z.infer<typeof PluginConfigSchema>;
1374
+ export declare const SpecPhaseSchema: z.ZodEnum<["requirements", "design", "tasks", "implementation"]>;
1375
+ export type SpecPhase = z.infer<typeof SpecPhaseSchema>;
1376
+ export declare const SpecWorkflowSchema: z.ZodEnum<["requirements-first", "design-first"]>;
1377
+ export type SpecWorkflow = z.infer<typeof SpecWorkflowSchema>;
1378
+ export declare const SpecMetadataSchema: z.ZodObject<{
1379
+ featureName: z.ZodString;
1380
+ currentPhase: z.ZodEnum<["requirements", "design", "tasks", "implementation"]>;
1381
+ createdAt: z.ZodDate;
1382
+ updatedAt: z.ZodDate;
1383
+ workflow: z.ZodEnum<["requirements-first", "design-first"]>;
1384
+ steeringFiles: z.ZodArray<z.ZodString, "many">;
1385
+ version: z.ZodNumber;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ createdAt: Date;
1388
+ updatedAt: Date;
1389
+ featureName: string;
1390
+ currentPhase: "requirements" | "design" | "tasks" | "implementation";
1391
+ workflow: "requirements-first" | "design-first";
1392
+ steeringFiles: string[];
1393
+ version: number;
1394
+ }, {
1395
+ createdAt: Date;
1396
+ updatedAt: Date;
1397
+ featureName: string;
1398
+ currentPhase: "requirements" | "design" | "tasks" | "implementation";
1399
+ workflow: "requirements-first" | "design-first";
1400
+ steeringFiles: string[];
1401
+ version: number;
1402
+ }>;
1403
+ export type SpecMetadata = z.infer<typeof SpecMetadataSchema>;
1404
+ export declare const SpecDocumentSchema: z.ZodObject<{
1405
+ metadata: z.ZodObject<{
1406
+ featureName: z.ZodString;
1407
+ currentPhase: z.ZodEnum<["requirements", "design", "tasks", "implementation"]>;
1408
+ createdAt: z.ZodDate;
1409
+ updatedAt: z.ZodDate;
1410
+ workflow: z.ZodEnum<["requirements-first", "design-first"]>;
1411
+ steeringFiles: z.ZodArray<z.ZodString, "many">;
1412
+ version: z.ZodNumber;
1413
+ }, "strip", z.ZodTypeAny, {
1414
+ createdAt: Date;
1415
+ updatedAt: Date;
1416
+ featureName: string;
1417
+ currentPhase: "requirements" | "design" | "tasks" | "implementation";
1418
+ workflow: "requirements-first" | "design-first";
1419
+ steeringFiles: string[];
1420
+ version: number;
1421
+ }, {
1422
+ createdAt: Date;
1423
+ updatedAt: Date;
1424
+ featureName: string;
1425
+ currentPhase: "requirements" | "design" | "tasks" | "implementation";
1426
+ workflow: "requirements-first" | "design-first";
1427
+ steeringFiles: string[];
1428
+ version: number;
1429
+ }>;
1430
+ requirements: z.ZodString;
1431
+ design: z.ZodString;
1432
+ tasks: z.ZodString;
1433
+ }, "strip", z.ZodTypeAny, {
1434
+ requirements: string;
1435
+ metadata: {
1436
+ createdAt: Date;
1437
+ updatedAt: Date;
1438
+ featureName: string;
1439
+ currentPhase: "requirements" | "design" | "tasks" | "implementation";
1440
+ workflow: "requirements-first" | "design-first";
1441
+ steeringFiles: string[];
1442
+ version: number;
1443
+ };
1444
+ design: string;
1445
+ tasks: string;
1446
+ }, {
1447
+ requirements: string;
1448
+ metadata: {
1449
+ createdAt: Date;
1450
+ updatedAt: Date;
1451
+ featureName: string;
1452
+ currentPhase: "requirements" | "design" | "tasks" | "implementation";
1453
+ workflow: "requirements-first" | "design-first";
1454
+ steeringFiles: string[];
1455
+ version: number;
1456
+ };
1457
+ design: string;
1458
+ tasks: string;
1459
+ }>;
1460
+ export type SpecDocument = z.infer<typeof SpecDocumentSchema>;
1461
+ export declare const SpecSummarySchema: z.ZodObject<{
1462
+ featureName: z.ZodString;
1463
+ currentPhase: z.ZodEnum<["requirements", "design", "tasks", "implementation"]>;
1464
+ updatedAt: z.ZodDate;
1465
+ hasRequirements: z.ZodBoolean;
1466
+ hasDesign: z.ZodBoolean;
1467
+ hasTasks: z.ZodBoolean;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ updatedAt: Date;
1470
+ featureName: string;
1471
+ currentPhase: "requirements" | "design" | "tasks" | "implementation";
1472
+ hasRequirements: boolean;
1473
+ hasDesign: boolean;
1474
+ hasTasks: boolean;
1475
+ }, {
1476
+ updatedAt: Date;
1477
+ featureName: string;
1478
+ currentPhase: "requirements" | "design" | "tasks" | "implementation";
1479
+ hasRequirements: boolean;
1480
+ hasDesign: boolean;
1481
+ hasTasks: boolean;
1482
+ }>;
1483
+ export type SpecSummary = z.infer<typeof SpecSummarySchema>;
1484
+ export declare const EarsTypeSchema: z.ZodEnum<["WHEN", "WHILE", "WHERE", "IF_THEN"]>;
1485
+ export type EarsType = z.infer<typeof EarsTypeSchema>;
1486
+ export declare const EarsRequirementSchema: z.ZodObject<{
1487
+ id: z.ZodString;
1488
+ type: z.ZodEnum<["WHEN", "WHILE", "WHERE", "IF_THEN"]>;
1489
+ trigger: z.ZodString;
1490
+ system: z.ZodString;
1491
+ response: z.ZodString;
1492
+ priority: z.ZodEnum<["high", "medium", "low"]>;
1493
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
1494
+ raw: z.ZodString;
1495
+ lineNumber: z.ZodNumber;
1496
+ }, "strip", z.ZodTypeAny, {
1497
+ type: "WHEN" | "WHILE" | "WHERE" | "IF_THEN";
1498
+ id: string;
1499
+ priority: "high" | "medium" | "low";
1500
+ trigger: string;
1501
+ system: string;
1502
+ response: string;
1503
+ acceptanceCriteria: string[];
1504
+ raw: string;
1505
+ lineNumber: number;
1506
+ }, {
1507
+ type: "WHEN" | "WHILE" | "WHERE" | "IF_THEN";
1508
+ id: string;
1509
+ priority: "high" | "medium" | "low";
1510
+ trigger: string;
1511
+ system: string;
1512
+ response: string;
1513
+ acceptanceCriteria: string[];
1514
+ raw: string;
1515
+ lineNumber: number;
1516
+ }>;
1517
+ export type EarsRequirement = z.infer<typeof EarsRequirementSchema>;
1518
+ export declare const EarsParseResultSchema: z.ZodObject<{
1519
+ requirements: z.ZodArray<z.ZodObject<{
1520
+ id: z.ZodString;
1521
+ type: z.ZodEnum<["WHEN", "WHILE", "WHERE", "IF_THEN"]>;
1522
+ trigger: z.ZodString;
1523
+ system: z.ZodString;
1524
+ response: z.ZodString;
1525
+ priority: z.ZodEnum<["high", "medium", "low"]>;
1526
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
1527
+ raw: z.ZodString;
1528
+ lineNumber: z.ZodNumber;
1529
+ }, "strip", z.ZodTypeAny, {
1530
+ type: "WHEN" | "WHILE" | "WHERE" | "IF_THEN";
1531
+ id: string;
1532
+ priority: "high" | "medium" | "low";
1533
+ trigger: string;
1534
+ system: string;
1535
+ response: string;
1536
+ acceptanceCriteria: string[];
1537
+ raw: string;
1538
+ lineNumber: number;
1539
+ }, {
1540
+ type: "WHEN" | "WHILE" | "WHERE" | "IF_THEN";
1541
+ id: string;
1542
+ priority: "high" | "medium" | "low";
1543
+ trigger: string;
1544
+ system: string;
1545
+ response: string;
1546
+ acceptanceCriteria: string[];
1547
+ raw: string;
1548
+ lineNumber: number;
1549
+ }>, "many">;
1550
+ errors: z.ZodArray<z.ZodObject<{
1551
+ line: z.ZodNumber;
1552
+ message: z.ZodString;
1553
+ raw: z.ZodString;
1554
+ }, "strip", z.ZodTypeAny, {
1555
+ message: string;
1556
+ raw: string;
1557
+ line: number;
1558
+ }, {
1559
+ message: string;
1560
+ raw: string;
1561
+ line: number;
1562
+ }>, "many">;
1563
+ summary: z.ZodObject<{
1564
+ total: z.ZodNumber;
1565
+ valid: z.ZodNumber;
1566
+ byType: z.ZodRecord<z.ZodEnum<["WHEN", "WHILE", "WHERE", "IF_THEN"]>, z.ZodNumber>;
1567
+ byPriority: z.ZodRecord<z.ZodString, z.ZodNumber>;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ valid: number;
1570
+ total: number;
1571
+ byType: Partial<Record<"WHEN" | "WHILE" | "WHERE" | "IF_THEN", number>>;
1572
+ byPriority: Record<string, number>;
1573
+ }, {
1574
+ valid: number;
1575
+ total: number;
1576
+ byType: Partial<Record<"WHEN" | "WHILE" | "WHERE" | "IF_THEN", number>>;
1577
+ byPriority: Record<string, number>;
1578
+ }>;
1579
+ }, "strip", z.ZodTypeAny, {
1580
+ requirements: {
1581
+ type: "WHEN" | "WHILE" | "WHERE" | "IF_THEN";
1582
+ id: string;
1583
+ priority: "high" | "medium" | "low";
1584
+ trigger: string;
1585
+ system: string;
1586
+ response: string;
1587
+ acceptanceCriteria: string[];
1588
+ raw: string;
1589
+ lineNumber: number;
1590
+ }[];
1591
+ errors: {
1592
+ message: string;
1593
+ raw: string;
1594
+ line: number;
1595
+ }[];
1596
+ summary: {
1597
+ valid: number;
1598
+ total: number;
1599
+ byType: Partial<Record<"WHEN" | "WHILE" | "WHERE" | "IF_THEN", number>>;
1600
+ byPriority: Record<string, number>;
1601
+ };
1602
+ }, {
1603
+ requirements: {
1604
+ type: "WHEN" | "WHILE" | "WHERE" | "IF_THEN";
1605
+ id: string;
1606
+ priority: "high" | "medium" | "low";
1607
+ trigger: string;
1608
+ system: string;
1609
+ response: string;
1610
+ acceptanceCriteria: string[];
1611
+ raw: string;
1612
+ lineNumber: number;
1613
+ }[];
1614
+ errors: {
1615
+ message: string;
1616
+ raw: string;
1617
+ line: number;
1618
+ }[];
1619
+ summary: {
1620
+ valid: number;
1621
+ total: number;
1622
+ byType: Partial<Record<"WHEN" | "WHILE" | "WHERE" | "IF_THEN", number>>;
1623
+ byPriority: Record<string, number>;
1624
+ };
1625
+ }>;
1626
+ export type EarsParseResult = z.infer<typeof EarsParseResultSchema>;
1627
+ export declare const PhaseTransitionSchema: z.ZodObject<{
1628
+ from: z.ZodEnum<["requirements", "design", "tasks", "implementation"]>;
1629
+ to: z.ZodEnum<["requirements", "design", "tasks", "implementation"]>;
1630
+ allowed: z.ZodBoolean;
1631
+ requiresApproval: z.ZodBoolean;
1632
+ validationRules: z.ZodArray<z.ZodString, "many">;
1633
+ }, "strip", z.ZodTypeAny, {
1634
+ from: "requirements" | "design" | "tasks" | "implementation";
1635
+ to: "requirements" | "design" | "tasks" | "implementation";
1636
+ allowed: boolean;
1637
+ requiresApproval: boolean;
1638
+ validationRules: string[];
1639
+ }, {
1640
+ from: "requirements" | "design" | "tasks" | "implementation";
1641
+ to: "requirements" | "design" | "tasks" | "implementation";
1642
+ allowed: boolean;
1643
+ requiresApproval: boolean;
1644
+ validationRules: string[];
1645
+ }>;
1646
+ export type PhaseTransition = z.infer<typeof PhaseTransitionSchema>;
1647
+ export declare const TaskTraceabilityLinkSchema: z.ZodObject<{
1648
+ taskId: z.ZodString;
1649
+ requirementId: z.ZodString;
1650
+ coverage: z.ZodEnum<["full", "partial"]>;
1651
+ notes: z.ZodOptional<z.ZodString>;
1652
+ }, "strip", z.ZodTypeAny, {
1653
+ taskId: string;
1654
+ requirementId: string;
1655
+ coverage: "partial" | "full";
1656
+ notes?: string | undefined;
1657
+ }, {
1658
+ taskId: string;
1659
+ requirementId: string;
1660
+ coverage: "partial" | "full";
1661
+ notes?: string | undefined;
1662
+ }>;
1663
+ export type TaskTraceabilityLink = z.infer<typeof TaskTraceabilityLinkSchema>;
1664
+ export declare const TraceabilityMatrixSchema: z.ZodObject<{
1665
+ featureName: z.ZodString;
1666
+ requirements: z.ZodArray<z.ZodString, "many">;
1667
+ tasks: z.ZodArray<z.ZodString, "many">;
1668
+ links: z.ZodArray<z.ZodObject<{
1669
+ taskId: z.ZodString;
1670
+ requirementId: z.ZodString;
1671
+ coverage: z.ZodEnum<["full", "partial"]>;
1672
+ notes: z.ZodOptional<z.ZodString>;
1673
+ }, "strip", z.ZodTypeAny, {
1674
+ taskId: string;
1675
+ requirementId: string;
1676
+ coverage: "partial" | "full";
1677
+ notes?: string | undefined;
1678
+ }, {
1679
+ taskId: string;
1680
+ requirementId: string;
1681
+ coverage: "partial" | "full";
1682
+ notes?: string | undefined;
1683
+ }>, "many">;
1684
+ uncoveredRequirements: z.ZodArray<z.ZodString, "many">;
1685
+ uncoveredTasks: z.ZodArray<z.ZodString, "many">;
1686
+ }, "strip", z.ZodTypeAny, {
1687
+ requirements: string[];
1688
+ tasks: string[];
1689
+ featureName: string;
1690
+ links: {
1691
+ taskId: string;
1692
+ requirementId: string;
1693
+ coverage: "partial" | "full";
1694
+ notes?: string | undefined;
1695
+ }[];
1696
+ uncoveredRequirements: string[];
1697
+ uncoveredTasks: string[];
1698
+ }, {
1699
+ requirements: string[];
1700
+ tasks: string[];
1701
+ featureName: string;
1702
+ links: {
1703
+ taskId: string;
1704
+ requirementId: string;
1705
+ coverage: "partial" | "full";
1706
+ notes?: string | undefined;
1707
+ }[];
1708
+ uncoveredRequirements: string[];
1709
+ uncoveredTasks: string[];
1710
+ }>;
1711
+ export type TraceabilityMatrix = z.infer<typeof TraceabilityMatrixSchema>;
1712
+ export declare const SteeringContextSchema: z.ZodObject<{
1713
+ product: z.ZodString;
1714
+ tech: z.ZodString;
1715
+ structure: z.ZodString;
1716
+ customFiles: z.ZodRecord<z.ZodString, z.ZodString>;
1717
+ }, "strip", z.ZodTypeAny, {
1718
+ product: string;
1719
+ tech: string;
1720
+ structure: string;
1721
+ customFiles: Record<string, string>;
1722
+ }, {
1723
+ product: string;
1724
+ tech: string;
1725
+ structure: string;
1726
+ customFiles: Record<string, string>;
1727
+ }>;
1728
+ export type SteeringContext = z.infer<typeof SteeringContextSchema>;
1729
+ export declare const PhaseGateResultSchema: z.ZodObject<{
1730
+ canAdvance: z.ZodBoolean;
1731
+ phase: z.ZodEnum<["requirements", "design", "tasks", "implementation"]>;
1732
+ score: z.ZodNumber;
1733
+ issues: z.ZodArray<z.ZodString, "many">;
1734
+ warnings: z.ZodArray<z.ZodString, "many">;
1735
+ requirements: z.ZodObject<{
1736
+ minEarsCount: z.ZodOptional<z.ZodNumber>;
1737
+ currentEarsCount: z.ZodOptional<z.ZodNumber>;
1738
+ hasAcceptanceCriteria: z.ZodOptional<z.ZodBoolean>;
1739
+ hasArchitecture: z.ZodOptional<z.ZodBoolean>;
1740
+ hasTechStack: z.ZodOptional<z.ZodBoolean>;
1741
+ taskCount: z.ZodOptional<z.ZodNumber>;
1742
+ hasTraceability: z.ZodOptional<z.ZodBoolean>;
1743
+ }, "strip", z.ZodTypeAny, {
1744
+ minEarsCount?: number | undefined;
1745
+ currentEarsCount?: number | undefined;
1746
+ hasAcceptanceCriteria?: boolean | undefined;
1747
+ hasArchitecture?: boolean | undefined;
1748
+ hasTechStack?: boolean | undefined;
1749
+ taskCount?: number | undefined;
1750
+ hasTraceability?: boolean | undefined;
1751
+ }, {
1752
+ minEarsCount?: number | undefined;
1753
+ currentEarsCount?: number | undefined;
1754
+ hasAcceptanceCriteria?: boolean | undefined;
1755
+ hasArchitecture?: boolean | undefined;
1756
+ hasTechStack?: boolean | undefined;
1757
+ taskCount?: number | undefined;
1758
+ hasTraceability?: boolean | undefined;
1759
+ }>;
1760
+ }, "strip", z.ZodTypeAny, {
1761
+ issues: string[];
1762
+ requirements: {
1763
+ minEarsCount?: number | undefined;
1764
+ currentEarsCount?: number | undefined;
1765
+ hasAcceptanceCriteria?: boolean | undefined;
1766
+ hasArchitecture?: boolean | undefined;
1767
+ hasTechStack?: boolean | undefined;
1768
+ taskCount?: number | undefined;
1769
+ hasTraceability?: boolean | undefined;
1770
+ };
1771
+ score: number;
1772
+ canAdvance: boolean;
1773
+ phase: "requirements" | "design" | "tasks" | "implementation";
1774
+ warnings: string[];
1775
+ }, {
1776
+ issues: string[];
1777
+ requirements: {
1778
+ minEarsCount?: number | undefined;
1779
+ currentEarsCount?: number | undefined;
1780
+ hasAcceptanceCriteria?: boolean | undefined;
1781
+ hasArchitecture?: boolean | undefined;
1782
+ hasTechStack?: boolean | undefined;
1783
+ taskCount?: number | undefined;
1784
+ hasTraceability?: boolean | undefined;
1785
+ };
1786
+ score: number;
1787
+ canAdvance: boolean;
1788
+ phase: "requirements" | "design" | "tasks" | "implementation";
1789
+ warnings: string[];
1790
+ }>;
1791
+ export type PhaseGateResult = z.infer<typeof PhaseGateResultSchema>;
1792
+ export type Result<T, E = Error> = {
1793
+ success: true;
1794
+ data: T;
1795
+ } | {
1796
+ success: false;
1797
+ error: E;
1798
+ };
1799
+ //# sourceMappingURL=types.d.ts.map