@claude-pw/framework 0.9.0 → 0.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-pw/framework",
3
- "version": "0.9.0",
3
+ "version": "0.9.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"
@@ -78,6 +78,12 @@ NO CHANGES:
78
78
 
79
79
  If nothing to clean in a category, omit it from the summary.
80
80
 
81
+ If ALL lists are empty after step 1 filtering (no files to archive, nothing exceeds retention limits, no stale files):
82
+ ```
83
+ Nothing to clean — completed phases already archived and accumulated state within retention limits.
84
+ ```
85
+ STOP.
86
+
81
87
  If `--execute`: show the summary and proceed to step 3.
82
88
  Otherwise: ask "Proceed? (yes/no)". If no: STOP.
83
89
 
@@ -119,12 +125,19 @@ Delete identified stale files (handoff.md, uat.md).
119
125
  ### 3.7 Commit
120
126
  Read `commitPlanning` from `.planning/config.json`.
121
127
 
128
+ Build commit message based on what was actually executed:
129
+ - If phases were archived AND state was trimmed: `"chore: archive phases N-M and trim planning state"`
130
+ - If only phases were archived: `"chore: archive completed phases N-M"`
131
+ - If only state was trimmed: `"chore: trim accumulated planning state"`
132
+
122
133
  Git add the changes:
123
134
  - `PLAN.md` (always — sub-plan column updated)
124
135
  - `plans/` (always — phase files removed)
125
136
  - `.planning/` (only if `commitPlanning: true`)
126
137
 
127
- `make commit m="chore: cleanup completed phases and accumulated state"`
138
+ Check if there are staged changes (`git diff --cached --quiet`).
139
+ - If there are changes: `make commit m="[built message]"`
140
+ - If there are NO changes (e.g., only .planning/ was modified and commitPlanning is false): skip commit. Report: "Only local state cleaned (.planning/ is gitignored) — no commit needed."
128
141
 
129
142
  ## 4. Report
130
143