@polymorphism-tech/morph-spec 4.8.11 → 4.8.12

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.md CHANGED
@@ -3,7 +3,7 @@
3
3
  > Spec-driven development framework for multi-stack projects. Turns feature requests into implementation-ready code through structured, AI-orchestrated phases.
4
4
 
5
5
  **Package:** `@polymorphism-tech/morph-spec`
6
- **Version:** 4.8.11
6
+ **Version:** 4.8.12
7
7
  **Requires:** Node.js 18+, Claude Code
8
8
 
9
9
  ---
@@ -376,4 +376,4 @@ Code generated by morph-spec (contracts, templates, implementation output) belon
376
376
 
377
377
  ---
378
378
 
379
- *morph-spec v4.8.11 by [Polymorphism Tech](https://polymorphism.tech)*
379
+ *morph-spec v4.8.12 by [Polymorphism Tech](https://polymorphism.tech)*
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "morph-spec",
3
- "version": "4.8.11",
3
+ "version": "4.8.12",
4
4
  "displayName": "MORPH-SPEC Framework",
5
5
  "description": "Spec-driven development with 38 agents and 8-phase workflow for .NET/Blazor/Next.js/Azure",
6
6
  "publisher": "polymorphism-tech",
@@ -200,4 +200,4 @@ These files are never edited directly. Use CLI commands or `morph-spec update` i
200
200
 
201
201
  ---
202
202
 
203
- *morph-spec v4.8.11 by Polymorphism Tech*
203
+ *morph-spec v4.8.12 by Polymorphism Tech*
@@ -203,4 +203,4 @@ morph-spec doctor
203
203
 
204
204
  ---
205
205
 
206
- *morph-spec v4.8.11 by Polymorphism Tech*
206
+ *morph-spec v4.8.12 by Polymorphism Tech*
@@ -7,7 +7,7 @@
7
7
  * Scope: Framework codebase only (dev hook)
8
8
  *
9
9
  * Blocks Write/Edit to files that contain hardcoded version patterns
10
- * like "MORPH-SPEC v4.8.11". Version should only be in package.json.
10
+ * like "MORPH-SPEC v4.8.12". Version should only be in package.json.
11
11
  *
12
12
  * Checked extensions: .md, .cs, .css, .js (covers templates + source)
13
13
  * Exceptions: CHANGELOG.md, node_modules/, test/, package.json, package-lock.json
@@ -4,7 +4,7 @@ description: MORPH-SPEC Phase 3 (Clarify). Reviews spec.md for ambiguities, gene
4
4
  argument-hint: "[feature-name]"
5
5
  user-invocable: false
6
6
  allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
- cliVersion: "4.8.11"
7
+ cliVersion: "4.8.12"
8
8
  ---
9
9
 
10
10
  # MORPH Clarify - FASE 3
@@ -3,7 +3,7 @@ name: phase-codebase-analysis
3
3
  description: MORPH-SPEC Design sub-phase that analyzes existing codebase and database schema, producing schema-analysis.md with real column names, types, relationships, and field mismatches. Use at the start of Design phase before generating contracts.cs to prevent incorrect field names or types.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Write, Edit, Bash, Glob, Grep
6
- cliVersion: "4.8.11"
6
+ cliVersion: "4.8.12"
7
7
  ---
8
8
 
9
9
  # MORPH Codebase Analysis - Sub-fase de DESIGN
@@ -4,7 +4,7 @@ description: MORPH-SPEC Phase 2 (Design). Analyzes codebase/schema, then produce
4
4
  argument-hint: "[feature-name]"
5
5
  user-invocable: false
6
6
  allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
- cliVersion: "4.8.11"
7
+ cliVersion: "4.8.12"
8
8
  ---
9
9
 
10
10
  # MORPH Design - FASE 2
@@ -6,7 +6,7 @@ disable-model-invocation: true
6
6
  context: fork
7
7
  agent: general-purpose
8
8
  user-invocable: false
9
- cliVersion: "4.8.11"
9
+ cliVersion: "4.8.12"
10
10
  allowed-tools: Read, Write, Edit, Bash, Glob, Grep
11
11
  ---
12
12
 
@@ -4,7 +4,7 @@ description: MORPH-SPEC Phase 1 (Setup). Reads project context, detects tech sta
4
4
  argument-hint: "[feature-name]"
5
5
  user-invocable: false
6
6
  allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
- cliVersion: "4.8.11"
7
+ cliVersion: "4.8.12"
8
8
  ---
9
9
 
10
10
  # MORPH Setup - FASE 1
@@ -5,7 +5,7 @@ argument-hint: "[feature-name]"
5
5
  disable-model-invocation: true
6
6
  user-invocable: false
7
7
  allowed-tools: Read, Write, Edit, Bash, Glob, Grep
8
- cliVersion: "4.8.11"
8
+ cliVersion: "4.8.12"
9
9
  ---
10
10
 
11
11
  # MORPH Tasks - FASE 4
@@ -4,7 +4,7 @@ description: MORPH-SPEC Phase 1.5 (UI/UX). Creates design-system.md, mockups.md,
4
4
  argument-hint: "[feature-name]"
5
5
  user-invocable: false
6
6
  allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
- cliVersion: "4.8.11"
7
+ cliVersion: "4.8.12"
8
8
  ---
9
9
 
10
10
  # MORPH UI/UX Design - FASE 1.5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polymorphism-tech/morph-spec",
3
- "version": "4.8.11",
3
+ "version": "4.8.12",
4
4
  "description": "MORPH-SPEC: AI-First development framework with validation pipeline and multi-stack support",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -15,7 +15,8 @@ import {
15
15
  pathExists,
16
16
  ensureDir,
17
17
  readJson,
18
- writeJson
18
+ writeJson,
19
+ updateGitignore
19
20
  } from '../../utils/file-copier.js';
20
21
  import {
21
22
  checkCLIOutdated,
@@ -52,12 +53,16 @@ async function backupUserConfig(morphPath) {
52
53
  * @param {string} targetPath - Project root path
53
54
  */
54
55
  async function cleanFrameworkDirs(morphPath, targetPath) {
56
+ const claudeDir = join(targetPath, '.claude');
55
57
  const dirsToClean = [
56
58
  join(morphPath, 'framework', 'templates'),
57
59
  join(morphPath, 'framework', 'standards'),
58
60
  join(morphPath, 'framework', 'hooks'),
59
61
  join(morphPath, 'config'),
60
- join(targetPath, '.claude')
62
+ join(claudeDir, 'commands'),
63
+ join(claudeDir, 'rules'),
64
+ join(claudeDir, 'skills'),
65
+ join(claudeDir, 'agents'),
61
66
  ];
62
67
 
63
68
  for (const dir of dirsToClean) {
@@ -311,6 +316,10 @@ export async function updateCommand(options) {
311
316
  await restoreUserConfig(morphPath, targetPath, configBackup, cliCheck.current);
312
317
  logger.dim(' ✓ User config restored with updated framework version');
313
318
 
319
+ // Update .gitignore with current morph rules
320
+ updateSpinner.text = 'Updating .gitignore...';
321
+ await updateGitignore(targetPath);
322
+
314
323
  // Update .morphversion
315
324
  updateSpinner.text = 'Saving version info...';
316
325
  await saveProjectMorphVersion(targetPath, cliCheck.current);
@@ -342,6 +351,7 @@ export async function updateCommand(options) {
342
351
  logger.dim(' ✓ .claude/CLAUDE.md (runtime quick reference)');
343
352
  logger.dim(' ✓ ~/.claude/statusline.sh (global statusline synced)');
344
353
  logger.dim(' ✓ CLAUDE.md');
354
+ logger.dim(' ✓ .gitignore (morph rules updated)');
345
355
  logger.blank();
346
356
  logger.info('Your config.json was preserved.');
347
357
  logger.dim('Review the updated files for any new features.');