@polymorphism-tech/morph-spec 4.11.0 → 4.12.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 (47) hide show
  1. package/CLAUDE.md +106 -2
  2. package/README.md +2 -2
  3. package/bin/morph-spec.js +31 -3
  4. package/bin/task-manager.js +391 -35
  5. package/claude-plugin.json +1 -1
  6. package/docs/CHEATSHEET.md +1 -1
  7. package/docs/QUICKSTART.md +1 -1
  8. package/framework/agents.json +16 -6
  9. package/framework/commands/morph-apply.md +21 -1
  10. package/framework/commands/morph-proposal.md +44 -1
  11. package/framework/hooks/claude-code/post-tool-use/agent-complete.js +122 -0
  12. package/framework/hooks/claude-code/post-tool-use/dispatch.js +47 -2
  13. package/framework/hooks/claude-code/session-start/inject-morph-context.js +4 -3
  14. package/framework/hooks/shared/dispatch-helpers.js +31 -0
  15. package/framework/hooks/shared/state-reader.js +7 -3
  16. package/framework/rules/morph-task-tracking.md +49 -0
  17. package/framework/skills/level-0-meta/morph-brainstorming/SKILL.md +6 -10
  18. package/framework/skills/level-1-workflows/morph-phase-clarify/SKILL.md +10 -1
  19. package/framework/skills/level-1-workflows/morph-phase-codebase-analysis/SKILL.md +1 -1
  20. package/framework/skills/level-1-workflows/morph-phase-design/SKILL.md +7 -13
  21. package/framework/skills/level-1-workflows/morph-phase-implement/SKILL.md +7 -1
  22. package/framework/skills/level-1-workflows/morph-phase-plan/SKILL.md +9 -12
  23. package/framework/skills/level-1-workflows/morph-phase-setup/SKILL.md +7 -10
  24. package/framework/skills/level-1-workflows/morph-phase-tasks/SKILL.md +10 -18
  25. package/framework/skills/level-1-workflows/morph-phase-uiux/SKILL.md +256 -14
  26. package/framework/skills/level-1-workflows/morph-scope-escalation/SKILL.md +1 -1
  27. package/framework/standards/STANDARDS.json +31 -0
  28. package/framework/standards/frontend/design-system/aesthetic-direction.md +60 -7
  29. package/framework/standards/frontend/design-system/design-trends.md +171 -0
  30. package/framework/templates/context/CONTEXT.md +2 -2
  31. package/framework/templates/context/design-system.md +346 -211
  32. package/framework/templates/meta-prompts/squad-leaders/frontend-squad.md +1 -1
  33. package/package.json +1 -1
  34. package/src/commands/agents/dispatch-agents.js +25 -1
  35. package/src/commands/mcp/mcp-setup.js +28 -6
  36. package/src/commands/project/init.js +20 -1
  37. package/src/commands/tasks/task.js +54 -0
  38. package/src/lib/build/build-runner.js +99 -0
  39. package/src/lib/checkpoints/checkpoint-hooks.js +110 -0
  40. package/src/lib/generators/design-system-generator.js +340 -51
  41. package/src/lib/generators/recap-generator.js +27 -4
  42. package/src/lib/stack/stack-profile.js +3 -0
  43. package/src/lib/tasks/task-parser.js +23 -9
  44. package/src/lib/validators/design-system/design-system-validator.js +11 -5
  45. package/src/utils/file-copier.js +1 -0
  46. package/src/utils/hooks-installer.js +11 -1
  47. package/framework/hooks/claude-code/pre-tool-use/protect-readonly-files.js +0 -7
@@ -15,7 +15,7 @@ import { homedir } from 'os';
15
15
  import { execSync } from 'child_process';
16
16
 
17
17
  /** Current hooks schema version — bump when hook definitions change */
18
- const HOOKS_VERSION = '2.12.0';
18
+ const HOOKS_VERSION = '2.13.0';
19
19
 
20
20
  /** Marker for old dispatch.js (v1) */
21
21
  const OLD_DISPATCH_COMMAND = 'node framework/hooks/agent-teams/dispatch.js';
@@ -119,6 +119,16 @@ Otherwise respond: {"ok": true}`
119
119
  }]
120
120
  },
121
121
 
122
+ // === PostToolUse: Agent ===
123
+ {
124
+ event: 'PostToolUse',
125
+ matcher: 'Agent',
126
+ hooks: [{
127
+ type: 'command',
128
+ command: 'node framework/hooks/claude-code/post-tool-use/agent-complete.js'
129
+ }]
130
+ },
131
+
122
132
  // === PostToolUse: Bash ===
123
133
  {
124
134
  event: 'PostToolUse',
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * DEPRECATED — This hook has been replaced by native permissions.deny in settings.local.json.
4
- * The file is kept as an empty stub. It is NOT registered in hooks-installer.js.
5
- * Safe to delete.
6
- */
7
- process.exit(0);