clavix 5.6.6 → 5.7.1
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/dist/config/integrations.json +1 -1
- package/dist/core/adapter-registry.js +1 -2
- package/dist/core/adapters/claude-code-adapter.d.ts +0 -1
- package/dist/core/adapters/claude-code-adapter.js +0 -1
- package/dist/core/adapters/toml-formatting-adapter.d.ts +0 -1
- package/dist/core/adapters/toml-formatting-adapter.js +0 -1
- package/dist/core/adapters/universal-adapter.d.ts +0 -4
- package/dist/core/adapters/universal-adapter.js +0 -7
- package/dist/templates/slash-commands/_canonical/archive.md +39 -25
- package/dist/templates/slash-commands/_canonical/implement.md +30 -30
- package/dist/templates/slash-commands/_canonical/improve.md +54 -26
- package/dist/templates/slash-commands/_canonical/plan.md +38 -1
- package/dist/templates/slash-commands/_canonical/prd.md +11 -1
- package/dist/templates/slash-commands/_canonical/refine.md +206 -350
- package/dist/templates/slash-commands/_canonical/start.md +1 -1
- package/dist/templates/slash-commands/_canonical/summarize.md +12 -1
- package/dist/templates/slash-commands/_canonical/verify.md +277 -315
- package/dist/templates/slash-commands/_components/agent-protocols/self-correction-protocol.md +18 -0
- package/dist/types/adapter-config.d.ts +8 -3
- package/dist/types/adapter-config.js +0 -2
- package/dist/types/agent.d.ts +0 -2
- package/package.json +3 -2
package/dist/templates/slash-commands/_components/agent-protocols/self-correction-protocol.md
CHANGED
|
@@ -18,4 +18,22 @@
|
|
|
18
18
|
|
|
19
19
|
**RESUME**: Return to the {{MODE_NAME}} workflow with correct approach.
|
|
20
20
|
|
|
21
|
+
### Recovery Patterns
|
|
22
|
+
|
|
23
|
+
**If stuck in wrong mode:**
|
|
24
|
+
1. Re-read the mode declaration at the top of this template
|
|
25
|
+
2. Output the state assertion to reset context
|
|
26
|
+
3. Continue from the correct workflow step
|
|
27
|
+
|
|
28
|
+
**If user asks you to violate mode boundaries:**
|
|
29
|
+
1. Acknowledge what they want to do
|
|
30
|
+
2. Explain why this mode can't do that
|
|
31
|
+
3. Suggest the correct command (e.g., "Use `/clavix:implement` to build that")
|
|
32
|
+
|
|
33
|
+
**If you made partial progress before catching the mistake:**
|
|
34
|
+
1. Stop immediately - don't finish the wrong action
|
|
35
|
+
2. Explain what was done incorrectly
|
|
36
|
+
3. Ask user if they want to undo/revert those changes
|
|
37
|
+
4. Resume from the correct workflow step
|
|
38
|
+
|
|
21
39
|
---
|
|
@@ -32,13 +32,18 @@ export interface DetectionConfig {
|
|
|
32
32
|
export interface AdapterFeatures {
|
|
33
33
|
/** Whether the adapter supports subdirectories in command path */
|
|
34
34
|
supportsSubdirectories: boolean;
|
|
35
|
-
/** Whether the adapter supports frontmatter in command files */
|
|
36
|
-
supportsFrontmatter: boolean;
|
|
37
35
|
/** Whether the adapter supports doc injection (CLAUDE.md, etc.) */
|
|
38
36
|
supportsDocInjection: boolean;
|
|
39
37
|
/** Command separator character */
|
|
40
38
|
commandSeparator: CommandSeparator;
|
|
41
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Argument placeholder for tools that support runtime arguments.
|
|
41
|
+
*
|
|
42
|
+
* Syntax varies by tool:
|
|
43
|
+
* - TOML adapters (Gemini, Qwen, LLXPRT): `{{args}}` - converted at generation time
|
|
44
|
+
* - Some markdown adapters (Droid, OpenCode, Codex): `$ARGUMENTS` - passed through as-is
|
|
45
|
+
* - Most adapters: undefined - no argument support
|
|
46
|
+
*/
|
|
42
47
|
argumentPlaceholder?: string;
|
|
43
48
|
}
|
|
44
49
|
/**
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export const DEFAULT_MD_FEATURES = {
|
|
9
9
|
supportsSubdirectories: false,
|
|
10
|
-
supportsFrontmatter: false,
|
|
11
10
|
supportsDocInjection: false,
|
|
12
11
|
commandSeparator: '-',
|
|
13
12
|
};
|
|
@@ -16,7 +15,6 @@ export const DEFAULT_MD_FEATURES = {
|
|
|
16
15
|
*/
|
|
17
16
|
export const DEFAULT_TOML_FEATURES = {
|
|
18
17
|
supportsSubdirectories: true,
|
|
19
|
-
supportsFrontmatter: false,
|
|
20
18
|
supportsDocInjection: false,
|
|
21
19
|
commandSeparator: ':',
|
|
22
20
|
argumentPlaceholder: '{{args}}',
|
package/dist/types/agent.d.ts
CHANGED
|
@@ -16,11 +16,9 @@ export interface AgentAdapter {
|
|
|
16
16
|
validate?(): Promise<ValidationResult>;
|
|
17
17
|
}
|
|
18
18
|
export interface IntegrationFeatures {
|
|
19
|
-
supportsFrontmatter?: boolean;
|
|
20
19
|
supportsExecutableCommands?: boolean;
|
|
21
20
|
supportsSubdirectories?: boolean;
|
|
22
21
|
argumentPlaceholder?: string;
|
|
23
|
-
frontmatterFields?: string[];
|
|
24
22
|
/** Command format for slash command references in templates. Default: colon (:) */
|
|
25
23
|
commandFormat?: {
|
|
26
24
|
separator: ':' | '-';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavix",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.1",
|
|
4
4
|
"description": "Agentic-first prompt workflows. Markdown templates that teach AI agents how to optimize prompts, create PRDs, and manage implementation.\n\nSLASH COMMANDS (in your AI assistant):\n /clavix:improve Optimize prompts with auto-depth\n /clavix:prd Generate PRD through questions\n /clavix:plan Create task breakdown from PRD\n /clavix:implement Execute tasks with progress tracking\n /clavix:start Begin conversational session\n /clavix:summarize Extract requirements from conversation\n /clavix:refine Refine existing PRD or prompt\n /clavix:verify Verify implementation against requirements\n /clavix:archive Archive completed projects\n\nWorks with Claude Code, Cursor, Windsurf, and 20 AI coding tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"clean": "rm -rf dist",
|
|
17
|
-
"validate:consistency": "
|
|
17
|
+
"validate:consistency": "tsx scripts/validate-consistency.ts",
|
|
18
18
|
"prebuild": "npm run clean && npm run validate:consistency",
|
|
19
19
|
"build": "tsc && npm run copy-templates",
|
|
20
20
|
"build:prod": "npm run build && npm run remove-sourcemaps",
|
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
"prettier": "^3.6.2",
|
|
92
92
|
"ts-jest": "^29.4.5",
|
|
93
93
|
"ts-node": "^10.9.2",
|
|
94
|
+
"tsx": "^4.21.0",
|
|
94
95
|
"typescript": "^5.9.3",
|
|
95
96
|
"typescript-eslint": "^8.46.4"
|
|
96
97
|
},
|