@claude-pw/framework 0.8.0 → 0.8.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/README.es.md CHANGED
@@ -169,8 +169,8 @@ Issue capturado. ¿Arreglar ahora? (sí/no)
169
169
  ```
170
170
  mi-proyecto/
171
171
  ├── .claude/
172
- │ ├── commands/ 10 slash commands (/cpw-*)
173
- │ ├── agents/ 11 agentes especializados
172
+ │ ├── commands/ 11 slash commands (/cpw-*)
173
+ │ ├── agents/ 12 agentes especializados (4 con memoria persistente)
174
174
  │ ├── rules/ 3 reglas context-aware (git, interfaces, testing)
175
175
  │ ├── hooks/ Hooks Node.js (statusline, monitor de contexto)
176
176
  │ └── settings.json
package/README.ja.md CHANGED
@@ -169,8 +169,8 @@ Issue captured. Fix now? (yes/no)
169
169
  ```
170
170
  my-project/
171
171
  ├── .claude/
172
- │ ├── commands/ 10個のスラッシュコマンド (/cpw-*)
173
- │ ├── agents/ 11個の専門エージェント
172
+ │ ├── commands/ 11個のスラッシュコマンド (/cpw-*)
173
+ │ ├── agents/ 12個の専門エージェント(4つに永続メモリ)
174
174
  │ ├── rules/ 3つのコンテキスト対応ルール(git、インターフェース、テスト)
175
175
  │ ├── hooks/ Node.js フック(ステータスライン、コンテキストモニター)
176
176
  │ └── settings.json
package/README.md CHANGED
@@ -169,8 +169,8 @@ Issue captured. Fix now? (yes/no)
169
169
  ```
170
170
  my-project/
171
171
  ├── .claude/
172
- │ ├── commands/ 10 slash commands (/cpw-*)
173
- │ ├── agents/ 11 specialized agents
172
+ │ ├── commands/ 11 slash commands (/cpw-*)
173
+ │ ├── agents/ 12 specialized agents (4 with persistent memory)
174
174
  │ ├── rules/ 3 context-aware rules (git, interfaces, testing)
175
175
  │ ├── hooks/ Node.js hooks (statusline, context monitor)
176
176
  │ └── settings.json
package/README.pt-br.md CHANGED
@@ -169,8 +169,8 @@ Issue captured. Fix now? (yes/no)
169
169
  ```
170
170
  my-project/
171
171
  ├── .claude/
172
- │ ├── commands/ 10 slash commands (/cpw-*)
173
- │ ├── agents/ 11 agentes especializados
172
+ │ ├── commands/ 11 slash commands (/cpw-*)
173
+ │ ├── agents/ 12 agentes especializados (4 com memória persistente)
174
174
  │ ├── rules/ 3 regras sensíveis ao contexto (git, interfaces, testes)
175
175
  │ ├── hooks/ Hooks Node.js (statusline, monitor de contexto)
176
176
  │ └── settings.json
package/README.zh-cn.md CHANGED
@@ -169,8 +169,8 @@ UAT 演练:
169
169
  ```
170
170
  my-project/
171
171
  ├── .claude/
172
- │ ├── commands/ 10 个斜杠命令(/cpw-*)
173
- │ ├── agents/ 11 个专用代理
172
+ │ ├── commands/ 11 个斜杠命令(/cpw-*)
173
+ │ ├── agents/ 12 个专用代理(4 个具有持久记忆)
174
174
  │ ├── rules/ 3 个上下文感知规则(git、interfaces、testing)
175
175
  │ ├── hooks/ Node.js 钩子(状态栏、上下文监控)
176
176
  │ └── settings.json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-pw/framework",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Structured Project Workflow for Claude Code — adaptive pipeline, context management, quality gates",
5
5
  "bin": {
6
6
  "claude-pw": "./install.js"
@@ -8,6 +8,10 @@ description: "Load context and execute the next pipeline stage"
8
8
 
9
9
  ## 0. Health check (session start)
10
10
 
11
+ ### Orphan phase-active cleanup
12
+ If `.planning/.phase-active` exists AND `--phase` flag is NOT active:
13
+ - Delete the file (leftover from interrupted session)
14
+
11
15
  ### Post-update detection
12
16
  If `.planning/.updated-from` exists:
13
17
  - Read the file — it contains the previous version
@@ -266,7 +270,7 @@ Estimated context resets: [N / based on step count, suggest /clear every 3 steps
266
270
  ```
267
271
 
268
272
  Ask: "Execute this plan? (yes / adjust / cancel)"
269
- - **yes**: proceed with auto-advance. When delegating to agents during --phase, spawn them with `permissionMode: bypassPermissions` to avoid permission interruptions.
273
+ - **yes**: create `.planning/.phase-active` (enables auto-approve for tool permissions via PreToolUse hook), then proceed with auto-advance.
270
274
  - **adjust**: ask what to change (skip a step, reorder, modify pipeline). Update sub-plan if needed, re-present.
271
275
  - **cancel**: exit --phase mode, continue as normal /cpw-next-step (step by step)
272
276
 
@@ -576,6 +580,7 @@ If all deliverables passed (or issues were fixed):
576
580
  ## Session notes
577
581
  - (empty)
578
582
  ```
583
+ - Delete `.planning/.phase-active` if it exists (re-enables normal tool permissions)
579
584
  - If `--phase` flag is active: STOP. Do NOT advance to next phase. Report:
580
585
  ```
581
586
  Phase N complete. UAT passed.
@@ -0,0 +1,16 @@
1
+ #!/bin/bash
2
+ # Auto-approve tool calls during --phase execution
3
+ # Created by: /cpw-next-step --phase (creates .planning/.phase-active)
4
+ # Removed by: /cpw-next-step at UAT or phase end
5
+
6
+ PHASE_FILE=".planning/.phase-active"
7
+
8
+ if [ -f "$PHASE_FILE" ]; then
9
+ # Check for stale file (>24h)
10
+ if [ "$(find "$PHASE_FILE" -mmin +1440 2>/dev/null)" ]; then
11
+ rm -f "$PHASE_FILE"
12
+ exit 0
13
+ fi
14
+ echo '{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"allow","permissionDecisionReason":"--phase active: plan approved by user"}}'
15
+ fi
16
+ exit 0
@@ -4,6 +4,15 @@
4
4
  "command": "node .claude/hooks/cpw-statusline.js"
5
5
  },
6
6
  "hooks": {
7
+ "PreToolUse": [
8
+ {
9
+ "matcher": "",
10
+ "hooks": [{
11
+ "type": "command",
12
+ "command": "bash .claude/hooks/cpw-phase-approve.sh"
13
+ }]
14
+ }
15
+ ],
7
16
  "UserPromptSubmit": [
8
17
  {
9
18
  "matcher": "",