@polymorphism-tech/morph-spec 8.12.0 → 8.15.0

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.
Files changed (32) hide show
  1. package/README.md +2 -2
  2. package/bin/morph-spec.js +2 -2
  3. package/claude-plugin.json +1 -1
  4. package/docs/CHEATSHEET.md +1 -1
  5. package/docs/QUICKSTART.md +1 -1
  6. package/framework/CLAUDE.md +2 -2
  7. package/framework/MORPH.md +1 -1
  8. package/framework/agents.json +2 -2
  9. package/framework/hooks/claude-code/core/enforce-phase-writes.js +21 -9
  10. package/framework/hooks/claude-code/core/gate-guard.js +68 -35
  11. package/framework/hooks/claude-code/core/protect-spec-files.js +11 -6
  12. package/framework/hooks/claude-code/core/state-sync.js +66 -26
  13. package/framework/hooks/claude-code/core/trace-autogen.js +9 -4
  14. package/framework/hooks/claude-code/core/worktree-context.js +12 -3
  15. package/framework/hooks/shared/feature-locator.js +164 -0
  16. package/framework/hooks/shared/payload-utils.js +71 -0
  17. package/framework/skills/core/create-umbraco-lp/SKILL.md +1 -1
  18. package/framework/skills/core/migrate-lp-to-umbraco/SKILL.md +1 -1
  19. package/framework/skills/core/morph-apply/SKILL.md +2 -2
  20. package/framework/skills/core/morph-brainstorming/SKILL.md +2 -2
  21. package/framework/skills/core/morph-eval/SKILL.md +1 -1
  22. package/framework/skills/core/morph-hotfix/SKILL.md +9 -3
  23. package/framework/skills/core/morph-implement/SKILL.md +1 -1
  24. package/framework/skills/core/morph-plan/SKILL.md +2 -2
  25. package/framework/skills/core/morph-proposal/SKILL.md +2 -2
  26. package/framework/skills/core/morph-review/SKILL.md +10 -8
  27. package/framework/skills/core/morph-stack-scan/SKILL.md +1 -1
  28. package/framework/skills/core/morph-standards/SKILL.md +1 -1
  29. package/package.json +1 -1
  30. package/src/commands/project/claim.js +76 -7
  31. package/src/commands/state/advance.js +43 -0
  32. package/src/utils/hooks-installer.js +10 -2
@@ -14,8 +14,16 @@ import { existsSync, chmodSync, readdirSync } from 'fs';
14
14
  import { homedir } from 'os';
15
15
  import { execSync } from 'child_process';
16
16
 
17
- /** Current hooks schema version — bump when hook definitions change */
18
- const HOOKS_VERSION = '3.4.0';
17
+ /**
18
+ * Current hooks schema version — bump when hook definitions change.
19
+ *
20
+ * 3.5.0 keeps the same registry entries but changes what the installed hooks
21
+ * DO: state is now resolved from the target path's working tree instead of the
22
+ * session's. The hook files are re-copied unconditionally (`copyDirectory`
23
+ * defaults to `overwrite: true`), so the bump does not gate delivery — it makes
24
+ * `morph-spec update` report the change honestly instead of "already current".
25
+ */
26
+ const HOOKS_VERSION = '3.5.0';
19
27
 
20
28
  /** Marker for old dispatch.js (v1) */
21
29
  const OLD_DISPATCH_COMMAND = 'node framework/hooks/agent-teams/dispatch.js';