@claude-pw/framework 0.5.1 → 0.5.2

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/install.js CHANGED
@@ -457,6 +457,10 @@ async function main() {
457
457
 
458
458
  // Write version
459
459
  fs.writeFileSync(versionFile, VERSION);
460
+
461
+ // Leave marker for /cpw-next-step to detect
462
+ fs.writeFileSync(path.join('.planning', '.updated-from'), installedVersion);
463
+
460
464
  info(`Actualizado a claude-pw v${VERSION}`);
461
465
  process.exit(0);
462
466
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-pw/framework",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
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,14 @@ description: "Load context and execute the next pipeline stage"
8
8
 
9
9
  ## 0. Health check (session start)
10
10
 
11
+ ### Post-update detection
12
+ If `.planning/.updated-from` exists:
13
+ - Read the file — it contains the previous version
14
+ - Show: "Framework updated from v{old} to v{current}. Running health check..."
15
+ - Delete the file
16
+ - Run `/cpw-health` (full diagnostic, not just session-recovery)
17
+ - After health check completes, continue normally
18
+
11
19
  ### Handoff detection
12
20
  If `.planning/handoff.md` exists:
13
21
  - Show the handoff summary to the user