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.
- package/README.md +72 -60
- package/dist/cli/commands/update.js +9 -10
- package/dist/templates/agents/agents.md +14 -8
- package/dist/templates/agents/copilot-instructions.md +1 -1
- package/dist/templates/instructions/core/verification.md +2 -2
- package/dist/templates/slash-commands/_canonical/archive.md +83 -121
- package/dist/templates/slash-commands/_canonical/execute.md +32 -42
- package/dist/templates/slash-commands/_canonical/implement.md +32 -44
- package/dist/templates/slash-commands/_canonical/improve.md +14 -53
- package/dist/templates/slash-commands/_canonical/start.md +1 -1
- package/dist/templates/slash-commands/_canonical/summarize.md +8 -8
- package/dist/templates/slash-commands/_components/agent-protocols/cli-reference.md +84 -180
- package/dist/templates/slash-commands/_components/agent-protocols/error-handling.md +2 -2
- package/dist/templates/slash-commands/_components/agent-protocols/file-formats.md +41 -59
- package/dist/templates/slash-commands/_components/agent-protocols/state-assertion.md +1 -1
- package/dist/templates/slash-commands/_components/references/intent-types.md +1 -1
- package/dist/templates/slash-commands/_components/sections/file-saving-protocol.md +20 -27
- package/dist/templates/slash-commands/_components/sections/pattern-visibility.md +29 -46
- package/dist/templates/slash-commands/_components/troubleshooting/file-not-saved.md +4 -5
- package/dist/types/config.d.ts +57 -0
- package/dist/utils/legacy-command-cleanup.js +31 -4
- package/package.json +5 -4
- package/dist/cli/commands/analyze.d.ts +0 -17
- package/dist/cli/commands/analyze.js +0 -133
- package/dist/cli/commands/archive.d.ts +0 -36
- package/dist/cli/commands/archive.js +0 -266
- package/dist/cli/commands/deep.d.ts +0 -17
- package/dist/cli/commands/deep.js +0 -170
- package/dist/cli/commands/execute.d.ts +0 -15
- package/dist/cli/commands/execute.js +0 -168
- package/dist/cli/commands/fast.d.ts +0 -18
- package/dist/cli/commands/fast.js +0 -219
- package/dist/cli/commands/implement.d.ts +0 -24
- package/dist/cli/commands/implement.js +0 -289
- package/dist/cli/commands/improve.d.ts +0 -32
- package/dist/cli/commands/improve.js +0 -250
- package/dist/cli/commands/list.d.ts +0 -17
- package/dist/cli/commands/list.js +0 -217
- package/dist/cli/commands/plan.d.ts +0 -21
- package/dist/cli/commands/plan.js +0 -297
- package/dist/cli/commands/prd.d.ts +0 -24
- package/dist/cli/commands/prd.js +0 -321
- package/dist/cli/commands/prompts/clear.d.ts +0 -16
- package/dist/cli/commands/prompts/clear.js +0 -222
- package/dist/cli/commands/prompts/list.d.ts +0 -8
- package/dist/cli/commands/prompts/list.js +0 -88
- package/dist/cli/commands/show.d.ts +0 -21
- package/dist/cli/commands/show.js +0 -191
- package/dist/cli/commands/start.d.ts +0 -40
- package/dist/cli/commands/start.js +0 -210
- package/dist/cli/commands/summarize.d.ts +0 -17
- package/dist/cli/commands/summarize.js +0 -196
- package/dist/cli/commands/task-complete.d.ts +0 -27
- package/dist/cli/commands/task-complete.js +0 -269
- package/dist/cli/commands/verify.d.ts +0 -28
- package/dist/cli/commands/verify.js +0 -349
- package/dist/core/archive-manager.d.ts +0 -100
- package/dist/core/archive-manager.js +0 -302
- package/dist/core/basic-checklist-generator.d.ts +0 -35
- package/dist/core/basic-checklist-generator.js +0 -344
- package/dist/core/checklist-parser.d.ts +0 -48
- package/dist/core/checklist-parser.js +0 -238
- package/dist/core/config-manager.d.ts +0 -149
- package/dist/core/config-manager.js +0 -230
- package/dist/core/conversation-analyzer.d.ts +0 -86
- package/dist/core/conversation-analyzer.js +0 -387
- package/dist/core/conversation-quality-tracker.d.ts +0 -81
- package/dist/core/conversation-quality-tracker.js +0 -195
- package/dist/core/git-manager.d.ts +0 -126
- package/dist/core/git-manager.js +0 -282
- package/dist/core/intelligence/confidence-calculator.d.ts +0 -93
- package/dist/core/intelligence/confidence-calculator.js +0 -124
- package/dist/core/intelligence/index.d.ts +0 -11
- package/dist/core/intelligence/index.js +0 -15
- package/dist/core/intelligence/intent-detector.d.ts +0 -54
- package/dist/core/intelligence/intent-detector.js +0 -723
- package/dist/core/intelligence/pattern-library.d.ts +0 -104
- package/dist/core/intelligence/pattern-library.js +0 -339
- package/dist/core/intelligence/patterns/actionability-enhancer.d.ts +0 -27
- package/dist/core/intelligence/patterns/actionability-enhancer.js +0 -192
- package/dist/core/intelligence/patterns/alternative-phrasing-generator.d.ts +0 -29
- package/dist/core/intelligence/patterns/alternative-phrasing-generator.js +0 -239
- package/dist/core/intelligence/patterns/ambiguity-detector.d.ts +0 -22
- package/dist/core/intelligence/patterns/ambiguity-detector.js +0 -196
- package/dist/core/intelligence/patterns/assumption-explicitizer.d.ts +0 -30
- package/dist/core/intelligence/patterns/assumption-explicitizer.js +0 -296
- package/dist/core/intelligence/patterns/base-pattern.d.ts +0 -192
- package/dist/core/intelligence/patterns/base-pattern.js +0 -103
- package/dist/core/intelligence/patterns/completeness-validator.d.ts +0 -27
- package/dist/core/intelligence/patterns/completeness-validator.js +0 -221
- package/dist/core/intelligence/patterns/conciseness-filter.d.ts +0 -20
- package/dist/core/intelligence/patterns/conciseness-filter.js +0 -92
- package/dist/core/intelligence/patterns/context-precision.d.ts +0 -32
- package/dist/core/intelligence/patterns/context-precision.js +0 -389
- package/dist/core/intelligence/patterns/conversation-summarizer.d.ts +0 -30
- package/dist/core/intelligence/patterns/conversation-summarizer.js +0 -277
- package/dist/core/intelligence/patterns/dependency-identifier.d.ts +0 -23
- package/dist/core/intelligence/patterns/dependency-identifier.js +0 -166
- package/dist/core/intelligence/patterns/domain-context-enricher.d.ts +0 -21
- package/dist/core/intelligence/patterns/domain-context-enricher.js +0 -198
- package/dist/core/intelligence/patterns/edge-case-identifier.d.ts +0 -30
- package/dist/core/intelligence/patterns/edge-case-identifier.js +0 -269
- package/dist/core/intelligence/patterns/error-tolerance-enhancer.d.ts +0 -22
- package/dist/core/intelligence/patterns/error-tolerance-enhancer.js +0 -179
- package/dist/core/intelligence/patterns/implicit-requirement-extractor.d.ts +0 -24
- package/dist/core/intelligence/patterns/implicit-requirement-extractor.js +0 -259
- package/dist/core/intelligence/patterns/objective-clarifier.d.ts +0 -22
- package/dist/core/intelligence/patterns/objective-clarifier.js +0 -126
- package/dist/core/intelligence/patterns/output-format-enforcer.d.ts +0 -22
- package/dist/core/intelligence/patterns/output-format-enforcer.js +0 -151
- package/dist/core/intelligence/patterns/prd-structure-enforcer.d.ts +0 -23
- package/dist/core/intelligence/patterns/prd-structure-enforcer.js +0 -183
- package/dist/core/intelligence/patterns/prerequisite-identifier.d.ts +0 -23
- package/dist/core/intelligence/patterns/prerequisite-identifier.js +0 -221
- package/dist/core/intelligence/patterns/requirement-prioritizer.d.ts +0 -24
- package/dist/core/intelligence/patterns/requirement-prioritizer.js +0 -134
- package/dist/core/intelligence/patterns/scope-definer.d.ts +0 -26
- package/dist/core/intelligence/patterns/scope-definer.js +0 -236
- package/dist/core/intelligence/patterns/step-decomposer.d.ts +0 -31
- package/dist/core/intelligence/patterns/step-decomposer.js +0 -242
- package/dist/core/intelligence/patterns/structure-organizer.d.ts +0 -31
- package/dist/core/intelligence/patterns/structure-organizer.js +0 -218
- package/dist/core/intelligence/patterns/success-criteria-enforcer.d.ts +0 -22
- package/dist/core/intelligence/patterns/success-criteria-enforcer.js +0 -165
- package/dist/core/intelligence/patterns/success-metrics-enforcer.d.ts +0 -24
- package/dist/core/intelligence/patterns/success-metrics-enforcer.js +0 -165
- package/dist/core/intelligence/patterns/technical-context-enricher.d.ts +0 -25
- package/dist/core/intelligence/patterns/technical-context-enricher.js +0 -165
- package/dist/core/intelligence/patterns/topic-coherence-analyzer.d.ts +0 -26
- package/dist/core/intelligence/patterns/topic-coherence-analyzer.js +0 -300
- package/dist/core/intelligence/patterns/user-persona-enricher.d.ts +0 -24
- package/dist/core/intelligence/patterns/user-persona-enricher.js +0 -141
- package/dist/core/intelligence/patterns/validation-checklist-creator.d.ts +0 -31
- package/dist/core/intelligence/patterns/validation-checklist-creator.js +0 -242
- package/dist/core/intelligence/quality-assessor.d.ts +0 -51
- package/dist/core/intelligence/quality-assessor.js +0 -505
- package/dist/core/intelligence/types.d.ts +0 -111
- package/dist/core/intelligence/types.js +0 -3
- package/dist/core/intelligence/universal-optimizer.d.ts +0 -84
- package/dist/core/intelligence/universal-optimizer.js +0 -371
- package/dist/core/prd-generator.d.ts +0 -76
- package/dist/core/prd-generator.js +0 -173
- package/dist/core/prompt-manager.d.ts +0 -110
- package/dist/core/prompt-manager.js +0 -274
- package/dist/core/prompt-optimizer.d.ts +0 -268
- package/dist/core/prompt-optimizer.js +0 -959
- package/dist/core/question-engine.d.ts +0 -167
- package/dist/core/question-engine.js +0 -356
- package/dist/core/session-manager.d.ts +0 -139
- package/dist/core/session-manager.js +0 -365
- package/dist/core/task-manager.d.ts +0 -211
- package/dist/core/task-manager.js +0 -981
- package/dist/core/verification-hooks.d.ts +0 -67
- package/dist/core/verification-hooks.js +0 -309
- package/dist/core/verification-manager.d.ts +0 -107
- package/dist/core/verification-manager.js +0 -415
- package/dist/index 2.js +0 -13
- package/dist/index.d 2.ts +0 -4
- package/dist/types/session.d.ts +0 -78
- package/dist/types/session.js +0 -8
- package/dist/types/verification.d.ts +0 -205
- 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
|