autoworkflow 3.1.0 → 3.1.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/.claude/settings.local.json +2 -1
- package/bin/cli.js +19 -6
- package/package.json +1 -1
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"Bash(chmod:*)",
|
|
11
11
|
"Bash(npm run typecheck:*)",
|
|
12
12
|
"Bash(git add:*)",
|
|
13
|
-
"Bash(git commit -m \"$\\(cat <<''EOF''\nfeat\\(hooks\\): implement full auto-trigger system with blocking gates\n\n- Add 7 new hook scripts for workflow automation:\n - session-check.sh: Init, blueprint check, task classification\n - post-edit.sh: Auto-verify with loop tracking \\(max 10 iterations\\)\n - pre-tool-router.sh: Route Bash commands to appropriate checks\n - pre-commit-check.sh: All 7 gate checks with blocking \\(exit 1\\)\n - phase-transition.sh: State management and gate enforcement\n - audit-runner.sh: UI enforcement + circular dependency checks\n - blueprint-generator.sh: Auto-scan project structure\n\n- Pre-commit gate now checks:\n - TypeScript errors\n - ESLint warnings\n - TODO/FIXME comments\n - console.log statements\n - Orphan features \\(UI enforcement\\)\n - Circular dependencies\n - Conventional commit format\n\n- State tracking in .claude/.autoworkflow/:\n - phase, task-type, verify-iteration, audit-iteration\n - verify-status, audit-status, plan-approved\n\n- Updated CLAUDE.md files with:\n - Slash commands table\n - Hook files reference\n - Hook integration section\n\nCo-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>\nEOF\n\\)\")"
|
|
13
|
+
"Bash(git commit -m \"$\\(cat <<''EOF''\nfeat\\(hooks\\): implement full auto-trigger system with blocking gates\n\n- Add 7 new hook scripts for workflow automation:\n - session-check.sh: Init, blueprint check, task classification\n - post-edit.sh: Auto-verify with loop tracking \\(max 10 iterations\\)\n - pre-tool-router.sh: Route Bash commands to appropriate checks\n - pre-commit-check.sh: All 7 gate checks with blocking \\(exit 1\\)\n - phase-transition.sh: State management and gate enforcement\n - audit-runner.sh: UI enforcement + circular dependency checks\n - blueprint-generator.sh: Auto-scan project structure\n\n- Pre-commit gate now checks:\n - TypeScript errors\n - ESLint warnings\n - TODO/FIXME comments\n - console.log statements\n - Orphan features \\(UI enforcement\\)\n - Circular dependencies\n - Conventional commit format\n\n- State tracking in .claude/.autoworkflow/:\n - phase, task-type, verify-iteration, audit-iteration\n - verify-status, audit-status, plan-approved\n\n- Updated CLAUDE.md files with:\n - Slash commands table\n - Hook files reference\n - Hook integration section\n\nCo-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>\nEOF\n\\)\")",
|
|
14
|
+
"Bash(git commit:*)"
|
|
14
15
|
]
|
|
15
16
|
}
|
|
16
17
|
}
|
package/bin/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { existsSync, cpSync, mkdirSync, chmodSync, renameSync } from 'fs';
|
|
3
|
+
import { existsSync, cpSync, mkdirSync, chmodSync, renameSync, unlinkSync } from 'fs';
|
|
4
4
|
import { dirname, join } from 'path';
|
|
5
5
|
import { fileURLToPath } from 'url';
|
|
6
6
|
|
|
@@ -101,9 +101,21 @@ function init(options = {}) {
|
|
|
101
101
|
// Required files
|
|
102
102
|
console.log(colors.bold('Required files:'));
|
|
103
103
|
copyFile(join(packageRoot, 'CLAUDE.md'), join(cwd, 'CLAUDE.md'), 'CLAUDE.md');
|
|
104
|
-
copyFile(join(packageRoot, '
|
|
104
|
+
copyFile(join(packageRoot, 'system'), join(cwd, 'system'), 'system/');
|
|
105
105
|
copyFile(join(packageRoot, '.claude'), join(cwd, '.claude'), '.claude/');
|
|
106
106
|
|
|
107
|
+
// Copy instructions folder but remove BLUEPRINT.md (hook will auto-generate it)
|
|
108
|
+
copyFile(join(packageRoot, 'instructions'), join(cwd, 'instructions'), 'instructions/');
|
|
109
|
+
const blueprintPath = join(cwd, 'instructions', 'BLUEPRINT.md');
|
|
110
|
+
if (existsSync(blueprintPath)) {
|
|
111
|
+
try {
|
|
112
|
+
unlinkSync(blueprintPath);
|
|
113
|
+
console.log(` ${colors.cyan('ℹ')} BLUEPRINT.md removed (will be auto-generated on first run)`);
|
|
114
|
+
} catch (e) {
|
|
115
|
+
// Ignore
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
107
119
|
// Make Claude hooks executable
|
|
108
120
|
if (process.platform !== 'win32' && existsSync(join(cwd, '.claude', 'hooks'))) {
|
|
109
121
|
try {
|
|
@@ -173,11 +185,12 @@ function init(options = {}) {
|
|
|
173
185
|
console.log(`\n${colors.green('✓')} ${colors.bold('AutoWorkflow initialized!')}\n`);
|
|
174
186
|
|
|
175
187
|
console.log(`${colors.bold('Next steps:')}`);
|
|
176
|
-
console.log(` 1.
|
|
177
|
-
console.log(` 2.
|
|
178
|
-
console.log(` 3. Claude
|
|
188
|
+
console.log(` 1. Open VS Code with Claude Code extension`);
|
|
189
|
+
console.log(` 2. Send any message - Claude will ${colors.cyan('auto-scan')} your project`);
|
|
190
|
+
console.log(` 3. Claude generates ${colors.cyan('BLUEPRINT.md')} with your features/routes/APIs`);
|
|
191
|
+
console.log(` 4. Review and approve the generated blueprint\n`);
|
|
179
192
|
|
|
180
|
-
console.log(
|
|
193
|
+
console.log(`${colors.dim('Optional: Edit instructions/AI_RULES.md to customize coding standards')}\n`);
|
|
181
194
|
}
|
|
182
195
|
|
|
183
196
|
// Main
|