autoworkflow 3.6.0 → 3.6.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.
@@ -15,7 +15,8 @@
15
15
  "Bash(unzip:*)",
16
16
  "Bash(node:*)",
17
17
  "Bash(echo:*)",
18
- "Bash(ls:*)"
18
+ "Bash(ls:*)",
19
+ "Bash(npm view:*)"
19
20
  ]
20
21
  }
21
22
  }
package/README.md CHANGED
@@ -88,10 +88,11 @@ guardrails:
88
88
  ┌─────────────────────────────────────────────────────────────┐
89
89
  │ HOOKS (Automatic) │
90
90
  │ │
91
- │ UserPromptSubmit → session-check.sh (resume, blueprint)
92
- │ PreToolUse → pre-edit.sh (BLOCKS without approval)
91
+ │ UserPromptSubmit → session-check.sh (resume, turn reset)
92
+ │ PreToolUse → pre-edit.sh (3 gates: approval,
93
+ │ suggestions, one-fix-at-a-time) │
93
94
  │ PreToolUse → pre-commit-check.sh (BLOCKS bad code) │
94
- │ PostToolUse → post-edit.sh (verification loop) │
95
+ │ PostToolUse → post-edit.sh (multi-lang verify) │
95
96
  │ PostToolUse → post-commit.sh (BLUEPRINT reminder) │
96
97
  │ │
97
98
  │ Hooks ENFORCE workflow - they physically block actions │
@@ -140,9 +141,9 @@ ANALYZE → PLAN → CONFIRM → IMPLEMENT → VERIFY → AUDIT → COMMIT → U
140
141
 
141
142
  | Hook | Trigger | Action |
142
143
  |------|---------|--------|
143
- | `session-check.sh` | Every user message | Resume previous session, check BLUEPRINT.md |
144
- | `pre-edit.sh` | Before Write/Edit | **BLOCK if plan not approved** |
145
- | `post-edit.sh` | After Write/Edit | Run verification loop (max 10 iterations) |
144
+ | `session-check.sh` | Every user message | Resume session, reset turn counter |
145
+ | `pre-edit.sh` | Before Write/Edit | **BLOCK** if: no approval, no suggestions, or multiple fixes |
146
+ | `post-edit.sh` | After Write/Edit | Detect project type, run verification |
146
147
  | `pre-commit-check.sh` | Before git commit | **BLOCK if TODO/console.log/errors** |
147
148
  | `post-commit.sh` | After git commit | Remind to update BLUEPRINT.md |
148
149
 
@@ -153,7 +154,9 @@ ANALYZE → PLAN → CONFIRM → IMPLEMENT → VERIFY → AUDIT → COMMIT → U
153
154
  | Gate | Blocks If | Enforced By |
154
155
  |------|-----------|-------------|
155
156
  | Plan Approval | User hasn't approved the plan | `pre-edit.sh` (exit 1) |
156
- | Verify | TypeScript or ESLint errors exist | `post-edit.sh` loop |
157
+ | Suggestions | Feature task without 3-tier suggestions shown | `pre-edit.sh` (exit 1) |
158
+ | One-Fix-At-A-Time | Multiple edits in FIX phase per turn | `pre-edit.sh` (exit 1) |
159
+ | Verify | TypeScript/ESLint/language-specific errors | `post-edit.sh` loop |
157
160
  | Audit | Orphan features or circular dependencies | Required before commit |
158
161
  | Pre-Commit | TODO/FIXME, console.log, bad format | `pre-commit-check.sh` (exit 1) |
159
162
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoworkflow",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "Automated workflow enforcement for Claude Code via hooks and system prompts",
5
5
  "type": "module",
6
6
  "bin": {