clavix 4.11.2 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/README.md +72 -60
  2. package/dist/cli/commands/update.js +9 -10
  3. package/dist/templates/agents/agents.md +14 -8
  4. package/dist/templates/agents/copilot-instructions.md +1 -1
  5. package/dist/templates/instructions/core/verification.md +2 -2
  6. package/dist/templates/slash-commands/_canonical/archive.md +83 -121
  7. package/dist/templates/slash-commands/_canonical/execute.md +32 -42
  8. package/dist/templates/slash-commands/_canonical/implement.md +32 -44
  9. package/dist/templates/slash-commands/_canonical/improve.md +14 -53
  10. package/dist/templates/slash-commands/_canonical/start.md +1 -1
  11. package/dist/templates/slash-commands/_canonical/summarize.md +8 -8
  12. package/dist/templates/slash-commands/_components/agent-protocols/cli-reference.md +84 -180
  13. package/dist/templates/slash-commands/_components/agent-protocols/error-handling.md +2 -2
  14. package/dist/templates/slash-commands/_components/agent-protocols/file-formats.md +41 -59
  15. package/dist/templates/slash-commands/_components/agent-protocols/state-assertion.md +1 -1
  16. package/dist/templates/slash-commands/_components/references/intent-types.md +1 -1
  17. package/dist/templates/slash-commands/_components/sections/file-saving-protocol.md +20 -27
  18. package/dist/templates/slash-commands/_components/sections/pattern-visibility.md +29 -46
  19. package/dist/templates/slash-commands/_components/troubleshooting/file-not-saved.md +4 -5
  20. package/dist/types/config.d.ts +57 -0
  21. package/dist/utils/legacy-command-cleanup.js +31 -4
  22. package/package.json +5 -4
  23. package/dist/cli/commands/analyze.d.ts +0 -17
  24. package/dist/cli/commands/analyze.js +0 -133
  25. package/dist/cli/commands/archive.d.ts +0 -36
  26. package/dist/cli/commands/archive.js +0 -266
  27. package/dist/cli/commands/deep.d.ts +0 -17
  28. package/dist/cli/commands/deep.js +0 -170
  29. package/dist/cli/commands/execute.d.ts +0 -15
  30. package/dist/cli/commands/execute.js +0 -168
  31. package/dist/cli/commands/fast.d.ts +0 -18
  32. package/dist/cli/commands/fast.js +0 -219
  33. package/dist/cli/commands/implement.d.ts +0 -24
  34. package/dist/cli/commands/implement.js +0 -289
  35. package/dist/cli/commands/improve.d.ts +0 -32
  36. package/dist/cli/commands/improve.js +0 -250
  37. package/dist/cli/commands/list.d.ts +0 -17
  38. package/dist/cli/commands/list.js +0 -217
  39. package/dist/cli/commands/plan.d.ts +0 -21
  40. package/dist/cli/commands/plan.js +0 -297
  41. package/dist/cli/commands/prd.d.ts +0 -24
  42. package/dist/cli/commands/prd.js +0 -321
  43. package/dist/cli/commands/prompts/clear.d.ts +0 -16
  44. package/dist/cli/commands/prompts/clear.js +0 -222
  45. package/dist/cli/commands/prompts/list.d.ts +0 -8
  46. package/dist/cli/commands/prompts/list.js +0 -88
  47. package/dist/cli/commands/show.d.ts +0 -21
  48. package/dist/cli/commands/show.js +0 -191
  49. package/dist/cli/commands/start.d.ts +0 -40
  50. package/dist/cli/commands/start.js +0 -210
  51. package/dist/cli/commands/summarize.d.ts +0 -17
  52. package/dist/cli/commands/summarize.js +0 -196
  53. package/dist/cli/commands/task-complete.d.ts +0 -27
  54. package/dist/cli/commands/task-complete.js +0 -269
  55. package/dist/cli/commands/verify.d.ts +0 -28
  56. package/dist/cli/commands/verify.js +0 -349
  57. package/dist/core/archive-manager.d.ts +0 -100
  58. package/dist/core/archive-manager.js +0 -302
  59. package/dist/core/basic-checklist-generator.d.ts +0 -35
  60. package/dist/core/basic-checklist-generator.js +0 -344
  61. package/dist/core/checklist-parser.d.ts +0 -48
  62. package/dist/core/checklist-parser.js +0 -238
  63. package/dist/core/config-manager.d.ts +0 -149
  64. package/dist/core/config-manager.js +0 -230
  65. package/dist/core/conversation-analyzer.d.ts +0 -86
  66. package/dist/core/conversation-analyzer.js +0 -387
  67. package/dist/core/conversation-quality-tracker.d.ts +0 -81
  68. package/dist/core/conversation-quality-tracker.js +0 -195
  69. package/dist/core/git-manager.d.ts +0 -126
  70. package/dist/core/git-manager.js +0 -282
  71. package/dist/core/intelligence/confidence-calculator.d.ts +0 -93
  72. package/dist/core/intelligence/confidence-calculator.js +0 -124
  73. package/dist/core/intelligence/index.d.ts +0 -11
  74. package/dist/core/intelligence/index.js +0 -15
  75. package/dist/core/intelligence/intent-detector.d.ts +0 -54
  76. package/dist/core/intelligence/intent-detector.js +0 -723
  77. package/dist/core/intelligence/pattern-library.d.ts +0 -104
  78. package/dist/core/intelligence/pattern-library.js +0 -339
  79. package/dist/core/intelligence/patterns/actionability-enhancer.d.ts +0 -27
  80. package/dist/core/intelligence/patterns/actionability-enhancer.js +0 -192
  81. package/dist/core/intelligence/patterns/alternative-phrasing-generator.d.ts +0 -29
  82. package/dist/core/intelligence/patterns/alternative-phrasing-generator.js +0 -239
  83. package/dist/core/intelligence/patterns/ambiguity-detector.d.ts +0 -22
  84. package/dist/core/intelligence/patterns/ambiguity-detector.js +0 -196
  85. package/dist/core/intelligence/patterns/assumption-explicitizer.d.ts +0 -30
  86. package/dist/core/intelligence/patterns/assumption-explicitizer.js +0 -296
  87. package/dist/core/intelligence/patterns/base-pattern.d.ts +0 -192
  88. package/dist/core/intelligence/patterns/base-pattern.js +0 -103
  89. package/dist/core/intelligence/patterns/completeness-validator.d.ts +0 -27
  90. package/dist/core/intelligence/patterns/completeness-validator.js +0 -221
  91. package/dist/core/intelligence/patterns/conciseness-filter.d.ts +0 -20
  92. package/dist/core/intelligence/patterns/conciseness-filter.js +0 -92
  93. package/dist/core/intelligence/patterns/context-precision.d.ts +0 -32
  94. package/dist/core/intelligence/patterns/context-precision.js +0 -389
  95. package/dist/core/intelligence/patterns/conversation-summarizer.d.ts +0 -30
  96. package/dist/core/intelligence/patterns/conversation-summarizer.js +0 -277
  97. package/dist/core/intelligence/patterns/dependency-identifier.d.ts +0 -23
  98. package/dist/core/intelligence/patterns/dependency-identifier.js +0 -166
  99. package/dist/core/intelligence/patterns/domain-context-enricher.d.ts +0 -21
  100. package/dist/core/intelligence/patterns/domain-context-enricher.js +0 -198
  101. package/dist/core/intelligence/patterns/edge-case-identifier.d.ts +0 -30
  102. package/dist/core/intelligence/patterns/edge-case-identifier.js +0 -269
  103. package/dist/core/intelligence/patterns/error-tolerance-enhancer.d.ts +0 -22
  104. package/dist/core/intelligence/patterns/error-tolerance-enhancer.js +0 -179
  105. package/dist/core/intelligence/patterns/implicit-requirement-extractor.d.ts +0 -24
  106. package/dist/core/intelligence/patterns/implicit-requirement-extractor.js +0 -259
  107. package/dist/core/intelligence/patterns/objective-clarifier.d.ts +0 -22
  108. package/dist/core/intelligence/patterns/objective-clarifier.js +0 -126
  109. package/dist/core/intelligence/patterns/output-format-enforcer.d.ts +0 -22
  110. package/dist/core/intelligence/patterns/output-format-enforcer.js +0 -151
  111. package/dist/core/intelligence/patterns/prd-structure-enforcer.d.ts +0 -23
  112. package/dist/core/intelligence/patterns/prd-structure-enforcer.js +0 -183
  113. package/dist/core/intelligence/patterns/prerequisite-identifier.d.ts +0 -23
  114. package/dist/core/intelligence/patterns/prerequisite-identifier.js +0 -221
  115. package/dist/core/intelligence/patterns/requirement-prioritizer.d.ts +0 -24
  116. package/dist/core/intelligence/patterns/requirement-prioritizer.js +0 -134
  117. package/dist/core/intelligence/patterns/scope-definer.d.ts +0 -26
  118. package/dist/core/intelligence/patterns/scope-definer.js +0 -236
  119. package/dist/core/intelligence/patterns/step-decomposer.d.ts +0 -31
  120. package/dist/core/intelligence/patterns/step-decomposer.js +0 -242
  121. package/dist/core/intelligence/patterns/structure-organizer.d.ts +0 -31
  122. package/dist/core/intelligence/patterns/structure-organizer.js +0 -218
  123. package/dist/core/intelligence/patterns/success-criteria-enforcer.d.ts +0 -22
  124. package/dist/core/intelligence/patterns/success-criteria-enforcer.js +0 -165
  125. package/dist/core/intelligence/patterns/success-metrics-enforcer.d.ts +0 -24
  126. package/dist/core/intelligence/patterns/success-metrics-enforcer.js +0 -165
  127. package/dist/core/intelligence/patterns/technical-context-enricher.d.ts +0 -25
  128. package/dist/core/intelligence/patterns/technical-context-enricher.js +0 -165
  129. package/dist/core/intelligence/patterns/topic-coherence-analyzer.d.ts +0 -26
  130. package/dist/core/intelligence/patterns/topic-coherence-analyzer.js +0 -300
  131. package/dist/core/intelligence/patterns/user-persona-enricher.d.ts +0 -24
  132. package/dist/core/intelligence/patterns/user-persona-enricher.js +0 -141
  133. package/dist/core/intelligence/patterns/validation-checklist-creator.d.ts +0 -31
  134. package/dist/core/intelligence/patterns/validation-checklist-creator.js +0 -242
  135. package/dist/core/intelligence/quality-assessor.d.ts +0 -51
  136. package/dist/core/intelligence/quality-assessor.js +0 -505
  137. package/dist/core/intelligence/types.d.ts +0 -111
  138. package/dist/core/intelligence/types.js +0 -3
  139. package/dist/core/intelligence/universal-optimizer.d.ts +0 -84
  140. package/dist/core/intelligence/universal-optimizer.js +0 -371
  141. package/dist/core/prd-generator.d.ts +0 -76
  142. package/dist/core/prd-generator.js +0 -173
  143. package/dist/core/prompt-manager.d.ts +0 -110
  144. package/dist/core/prompt-manager.js +0 -274
  145. package/dist/core/prompt-optimizer.d.ts +0 -268
  146. package/dist/core/prompt-optimizer.js +0 -959
  147. package/dist/core/question-engine.d.ts +0 -167
  148. package/dist/core/question-engine.js +0 -356
  149. package/dist/core/session-manager.d.ts +0 -139
  150. package/dist/core/session-manager.js +0 -365
  151. package/dist/core/task-manager.d.ts +0 -211
  152. package/dist/core/task-manager.js +0 -981
  153. package/dist/core/verification-hooks.d.ts +0 -67
  154. package/dist/core/verification-hooks.js +0 -309
  155. package/dist/core/verification-manager.d.ts +0 -107
  156. package/dist/core/verification-manager.js +0 -415
  157. package/dist/index 2.js +0 -13
  158. package/dist/index.d 2.ts +0 -4
  159. package/dist/types/session.d.ts +0 -78
  160. package/dist/types/session.js +0 -8
  161. package/dist/types/verification.d.ts +0 -205
  162. package/dist/types/verification.js +0 -9
@@ -1,205 +0,0 @@
1
- /**
2
- * Clavix v4.8: Verification System Types
3
- *
4
- * Type definitions for the checklist verification system that ensures
5
- * checklists generated by improve mode are verified after implementation.
6
- * v4.11: Updated to use DepthLevel instead of fast/deep source distinction.
7
- */
8
- import { PromptIntent, DepthLevel } from '../core/intelligence/types.js';
9
- /**
10
- * Category of checklist item
11
- */
12
- export type ChecklistCategory = 'validation' | 'edge-case' | 'risk';
13
- /**
14
- * How the checklist item can be verified
15
- */
16
- export type VerificationType = 'automated' | 'semi-automated' | 'manual';
17
- /**
18
- * A single item from the checklist
19
- */
20
- export interface ChecklistItem {
21
- /** Unique identifier (e.g., "validation-1", "edge-case-2") */
22
- id: string;
23
- /** Category of the item */
24
- category: ChecklistCategory;
25
- /** Item description text */
26
- content: string;
27
- /** Optional grouping (e.g., "Functionality", "Robustness") */
28
- group?: string;
29
- /** How this item should be verified */
30
- verificationType: VerificationType;
31
- }
32
- /**
33
- * Parsed checklist from a prompt file
34
- */
35
- export interface ParsedChecklist {
36
- /** Validation checklist items (☐ items from deep mode) */
37
- validationItems: ChecklistItem[];
38
- /** Edge cases to consider */
39
- edgeCases: ChecklistItem[];
40
- /** Risk/what could go wrong items */
41
- risks: ChecklistItem[];
42
- /** Whether the prompt has any checklist */
43
- hasChecklist: boolean;
44
- /** Total number of items across all categories */
45
- totalItems: number;
46
- }
47
- /**
48
- * Type of verification hook
49
- */
50
- export type HookType = 'test' | 'build' | 'lint' | 'typecheck' | 'custom';
51
- /**
52
- * A CLI hook for automated verification
53
- */
54
- export interface VerificationHook {
55
- /** Hook identifier */
56
- name: HookType;
57
- /** Display name */
58
- displayName: string;
59
- /** Command to execute */
60
- command: string;
61
- /** Regex pattern to match success */
62
- successPattern?: RegExp;
63
- /** Regex pattern to match failure */
64
- failurePattern?: RegExp;
65
- /** Timeout in milliseconds */
66
- timeout: number;
67
- }
68
- /**
69
- * Result of running a verification hook
70
- */
71
- export interface HookResult {
72
- /** Hook that was run */
73
- hook: VerificationHook;
74
- /** Whether the hook succeeded */
75
- success: boolean;
76
- /** Exit code of the command */
77
- exitCode: number;
78
- /** Command output (stdout + stderr) */
79
- output: string;
80
- /** Confidence in the result */
81
- confidence: VerificationConfidence;
82
- /** Execution time in milliseconds */
83
- executionTimeMs: number;
84
- /** Error message if hook failed to run */
85
- error?: string;
86
- }
87
- /**
88
- * Detected hooks for a project
89
- */
90
- export interface DetectedHooks {
91
- /** Available hooks */
92
- hooks: VerificationHook[];
93
- /** Package manager detected */
94
- packageManager: 'npm' | 'yarn' | 'pnpm' | 'unknown';
95
- /** Whether a package.json was found */
96
- hasPackageJson: boolean;
97
- }
98
- /**
99
- * Status of a verification item
100
- */
101
- export type VerificationStatus = 'pending' | 'passed' | 'failed' | 'skipped' | 'not-applicable';
102
- /**
103
- * Confidence level in the verification result
104
- */
105
- export type VerificationConfidence = 'high' | 'medium' | 'low';
106
- /**
107
- * Method used for verification
108
- */
109
- export type VerificationMethod = 'automated' | 'semi-automated' | 'manual';
110
- /**
111
- * Result of verifying a single checklist item
112
- */
113
- export interface VerificationResult {
114
- /** ID of the checklist item */
115
- itemId: string;
116
- /** Verification status */
117
- status: VerificationStatus;
118
- /** Method used for verification */
119
- method: VerificationMethod;
120
- /** Confidence in the result */
121
- confidence: VerificationConfidence;
122
- /** Evidence of verification (command output or agent reasoning) */
123
- evidence?: string;
124
- /** Reason for failed/skipped status */
125
- reason?: string;
126
- /** Timestamp of verification */
127
- verifiedAt: string;
128
- }
129
- /**
130
- * Overall status of the verification report
131
- */
132
- export type ReportStatus = 'pending' | 'in-progress' | 'completed' | 'requires-attention';
133
- /**
134
- * Summary statistics for verification
135
- */
136
- export interface VerificationSummary {
137
- /** Total number of items */
138
- total: number;
139
- /** Number of passed items */
140
- passed: number;
141
- /** Number of failed items */
142
- failed: number;
143
- /** Number of skipped items */
144
- skipped: number;
145
- /** Number of not-applicable items */
146
- notApplicable: number;
147
- /** Coverage percentage (passed / (total - skipped - notApplicable)) */
148
- coveragePercent: number;
149
- /** Number of automated checks */
150
- automatedChecks: number;
151
- /** Number of manual checks */
152
- manualChecks: number;
153
- }
154
- /**
155
- * Full verification report
156
- */
157
- export interface VerificationReport {
158
- /** Report version (v4.11: Allow 2.0 for unified storage format) */
159
- version: '1.0' | '2.0';
160
- /** ID of the prompt being verified */
161
- promptId: string;
162
- /** v4.11: Depth level used for this prompt (replaces source: 'fast' | 'deep') */
163
- depthUsed: DepthLevel;
164
- /** When verification started */
165
- startedAt: string;
166
- /** When verification completed (all items done) */
167
- completedAt?: string;
168
- /** Overall status */
169
- status: ReportStatus;
170
- /** All checklist items */
171
- items: ChecklistItem[];
172
- /** Verification results for each item */
173
- results: VerificationResult[];
174
- /** Summary statistics */
175
- summary: VerificationSummary;
176
- /** Detected hooks used for automated verification */
177
- detectedHooks?: DetectedHooks;
178
- }
179
- /**
180
- * Intent-to-checklist mapping entry
181
- */
182
- export interface IntentChecklist {
183
- /** The intent type */
184
- intent: PromptIntent;
185
- /** Checklist items for this intent */
186
- items: Array<{
187
- content: string;
188
- group?: string;
189
- verificationType: VerificationType;
190
- }>;
191
- }
192
- /**
193
- * Additional fields for PromptMetadata to support verification
194
- */
195
- export interface VerificationMetadata {
196
- /** Whether verification is required for this prompt */
197
- verificationRequired?: boolean;
198
- /** Whether the prompt has been verified */
199
- verified?: boolean;
200
- /** Timestamp of last verification */
201
- lastVerifiedAt?: string;
202
- /** Path to verification report file */
203
- verificationReportPath?: string;
204
- }
205
- //# sourceMappingURL=verification.d.ts.map
@@ -1,9 +0,0 @@
1
- /**
2
- * Clavix v4.8: Verification System Types
3
- *
4
- * Type definitions for the checklist verification system that ensures
5
- * checklists generated by improve mode are verified after implementation.
6
- * v4.11: Updated to use DepthLevel instead of fast/deep source distinction.
7
- */
8
- export {};
9
- //# sourceMappingURL=verification.js.map