@polymorphism-tech/morph-spec 7.7.2 → 7.7.3
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 +2 -2
- package/claude-plugin.json +1 -1
- package/docs/CHEATSHEET.md +1 -1
- package/docs/QUICKSTART.md +1 -1
- package/framework/skills/core/create-umbraco-lp/SKILL.md +1 -1
- package/framework/skills/core/migrate-lp-to-umbraco/SKILL.md +1 -1
- package/framework/skills/core/morph-apply/SKILL.md +1 -1
- package/framework/skills/core/morph-brainstorming/SKILL.md +1 -1
- package/framework/skills/core/morph-eval/SKILL.md +1 -1
- package/framework/skills/core/morph-implement/SKILL.md +1 -1
- package/framework/skills/core/morph-plan/SKILL.md +1 -1
- package/framework/skills/core/morph-proposal/SKILL.md +1 -1
- package/framework/skills/core/morph-review/SKILL.md +1 -1
- package/framework/skills/core/morph-stack-scan/SKILL.md +1 -1
- package/framework/skills/core/morph-standards/SKILL.md +1 -1
- package/package.json +1 -1
- package/src/commands/project/doctor.js +4 -1
- package/src/commands/project/update.js +2 -0
- package/src/scripts/setup-infra.js +4 -1
- package/src/utils/banner.js +9 -3
- package/src/utils/file-copier.js +6 -1
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:** 7.7.
|
|
6
|
+
**Version:** 7.7.3
|
|
7
7
|
**Requires:** Node.js 22+, Claude Code
|
|
8
8
|
|
|
9
9
|
---
|
|
@@ -365,4 +365,4 @@ Code generated by morph-spec (contracts, templates, implementation output) belon
|
|
|
365
365
|
|
|
366
366
|
---
|
|
367
367
|
|
|
368
|
-
*morph-spec v7.7.
|
|
368
|
+
*morph-spec v7.7.3 by [Polymorphism Tech](https://polymorphism.tech)*
|
package/claude-plugin.json
CHANGED
package/docs/CHEATSHEET.md
CHANGED
package/docs/QUICKSTART.md
CHANGED
|
@@ -4,7 +4,7 @@ description: Guia a criação de uma landing page nova ponta-a-ponta a partir do
|
|
|
4
4
|
version: core
|
|
5
5
|
when-to-invoke: ao iniciar um novo projeto de LP com o template Umbraco genérico
|
|
6
6
|
user-invokable: true
|
|
7
|
-
cliVersion: "7.7.
|
|
7
|
+
cliVersion: "7.7.3"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# create-umbraco-lp
|
|
@@ -4,7 +4,7 @@ description: Migra uma landing page existente (React/Vite, Next.js estático ou
|
|
|
4
4
|
version: core
|
|
5
5
|
when-to-invoke: ao receber instrução "use /migrate-lp-to-umbraco {projeto}" do usuário, ou quando o usuário descrever necessidade de migrar uma LP para Umbraco
|
|
6
6
|
user-invokable: true
|
|
7
|
-
cliVersion: "7.7.
|
|
7
|
+
cliVersion: "7.7.3"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# migrate-lp-to-umbraco
|
|
@@ -4,7 +4,7 @@ description: Orquestra a execução autônoma de tasks de uma feature morph-spec
|
|
|
4
4
|
version: core
|
|
5
5
|
when-to-invoke: após Gate 2 aprovado, ao receber instrução "use /morph-apply" ou "implementar feature"
|
|
6
6
|
user-invokable: true
|
|
7
|
-
cliVersion: "7.7.
|
|
7
|
+
cliVersion: "7.7.3"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# morph-apply
|
|
@@ -4,7 +4,7 @@ description: Entende o negócio, os usuários e a arquitetura antes de qualquer
|
|
|
4
4
|
version: core
|
|
5
5
|
when-to-invoke: ao receber um novo request de feature, antes de morph-plan
|
|
6
6
|
user-invokable: true
|
|
7
|
-
cliVersion: "7.7.
|
|
7
|
+
cliVersion: "7.7.3"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# morph-brainstorming
|
|
@@ -4,7 +4,7 @@ description: Avalia a qualidade de uma tarefa ou fase com rubricas graduadas 0-1
|
|
|
4
4
|
version: core
|
|
5
5
|
when-to-invoke: ao completar uma tarefa ou ao finalizar uma fase de implementação
|
|
6
6
|
user-invokable: false
|
|
7
|
-
cliVersion: "7.7.
|
|
7
|
+
cliVersion: "7.7.3"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# morph-eval
|
|
@@ -4,7 +4,7 @@ description: Guia a produção dos três artefatos de planejamento de uma featur
|
|
|
4
4
|
version: core
|
|
5
5
|
when-to-invoke: ao iniciar a fase plan de uma feature, após o Gate 1 (proposal aprovado)
|
|
6
6
|
user-invokable: true
|
|
7
|
-
cliVersion: "7.7.
|
|
7
|
+
cliVersion: "7.7.3"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# morph-plan
|
|
@@ -4,7 +4,7 @@ description: Orquestra a fase de proposta+plano de uma feature morph-spec. Encad
|
|
|
4
4
|
version: core
|
|
5
5
|
when-to-invoke: ao receber instrução "use /morph-proposal" do usuário, ou ao iniciar uma nova feature
|
|
6
6
|
user-invokable: true
|
|
7
|
-
cliVersion: "7.7.
|
|
7
|
+
cliVersion: "7.7.3"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# morph-proposal
|
|
@@ -4,7 +4,7 @@ description: Conduz a fase de revisão e produz o review-report.md para o Gate 3
|
|
|
4
4
|
version: core
|
|
5
5
|
when-to-invoke: ao iniciar a fase review, após todas as tasks de tasks.json estarem com status `done`
|
|
6
6
|
user-invokable: true
|
|
7
|
-
cliVersion: "7.7.
|
|
7
|
+
cliVersion: "7.7.3"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# morph-review
|
|
@@ -4,7 +4,7 @@ description: Varre o codebase existente, detecta stack atual, compara com o stac
|
|
|
4
4
|
version: core
|
|
5
5
|
when-to-invoke: ao iniciar uma feature em projeto brownfield (codebase já existente)
|
|
6
6
|
user-invokable: true
|
|
7
|
-
cliVersion: "7.7.
|
|
7
|
+
cliVersion: "7.7.3"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# morph-stack-scan
|
|
@@ -4,7 +4,7 @@ description: Localiza e carrega um standard específico do STANDARDS.json sob de
|
|
|
4
4
|
version: core
|
|
5
5
|
when-to-invoke: quando precisar consultar um standard específico durante a implementação
|
|
6
6
|
user-invokable: true
|
|
7
|
-
cliVersion: "7.7.
|
|
7
|
+
cliVersion: "7.7.3"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# morph-standards
|
package/package.json
CHANGED
|
@@ -196,7 +196,10 @@ async function doctorFullCommand(frameworkRoot) {
|
|
|
196
196
|
let projectTags = [];
|
|
197
197
|
const cfgPath = join(frameworkRoot, '.morph/config/config.json');
|
|
198
198
|
if (await pathExists(cfgPath)) {
|
|
199
|
-
try {
|
|
199
|
+
try {
|
|
200
|
+
const rawCfg = (await fs.readFile(cfgPath, 'utf8')).replace(/^/, '');
|
|
201
|
+
projectTags = getProjectTags(JSON.parse(rawCfg));
|
|
202
|
+
} catch { /* no tags */ }
|
|
200
203
|
}
|
|
201
204
|
const drift = checkAgentsDrift(frameworkRoot, join(frameworkRoot, '.morph/framework'), projectTags);
|
|
202
205
|
check(`Personas installed (${drift.expected - drift.missing.length}/${drift.expected})`,
|
|
@@ -410,6 +410,8 @@ export async function updateCommand(options) {
|
|
|
410
410
|
if (updateStandards) logger.dim(' ✓ .morph/framework/standards/');
|
|
411
411
|
logger.dim(' ✓ .morph/framework/hooks/');
|
|
412
412
|
logger.dim(' ✓ .morph/framework/agents.json');
|
|
413
|
+
logger.dim(' ✓ .morph/framework/MORPH.md + phases.json (NLH charter)');
|
|
414
|
+
logger.dim(' ✓ .morph/framework/schemas/ + rubrics/ + evals/ (bar 9 + LLM rubrics)');
|
|
413
415
|
if (commandsCopied) logger.dim(' ✓ .claude/commands/');
|
|
414
416
|
|
|
415
417
|
logger.dim(` ✓ .claude/settings.local.json (${hooksResult.installed} hooks installed)`);
|
|
@@ -92,7 +92,10 @@ async function installStackAwareAssets(targetPath, log) {
|
|
|
92
92
|
let projectTags = [];
|
|
93
93
|
if (await pathExists(configPath)) {
|
|
94
94
|
try {
|
|
95
|
-
|
|
95
|
+
// BOM-tolerant: a config.json hand-edited on Windows (PS 5.1 Out-File)
|
|
96
|
+
// carries a UTF-8 BOM; without stripping it this parse fails silently
|
|
97
|
+
// and only universal personas get installed.
|
|
98
|
+
const config = JSON.parse(readFileSync(configPath, 'utf-8').replace(/^/, ''));
|
|
96
99
|
projectTags = getProjectTags(config);
|
|
97
100
|
} catch { /* ignore malformed config */ }
|
|
98
101
|
}
|
package/src/utils/banner.js
CHANGED
|
@@ -72,9 +72,15 @@ export function printInstallBanner({ version, nodeVersion, results = [] }) {
|
|
|
72
72
|
sep('Installed'),
|
|
73
73
|
...itemLines,
|
|
74
74
|
'',
|
|
75
|
-
sep('Next'),
|
|
76
|
-
` ${chalk.cyan('1.')}
|
|
77
|
-
` ${chalk.cyan('2.')} Run ${chalk.bold.white('
|
|
75
|
+
sep('Next · new project'),
|
|
76
|
+
` ${chalk.cyan('1.')} ${DIM('cd')} ${chalk.white('your-project')} ${DIM('(git repo)')}`,
|
|
77
|
+
` ${chalk.cyan('2.')} Run ${chalk.bold.white('morph-spec init')}`,
|
|
78
|
+
` ${chalk.cyan('3.')} Open it in Claude Code and run ${chalk.bold.white('/morph-init')}`,
|
|
79
|
+
'',
|
|
80
|
+
sep('Next · project already on morph-spec'),
|
|
81
|
+
` ${chalk.cyan('1.')} Run ${chalk.bold.white('morph-spec update')} ${DIM('— sync charter, rubrics, hooks, personas')}`,
|
|
82
|
+
` ${chalk.cyan('2.')} Run ${chalk.bold.white('morph-spec doctor')} ${DIM('— validate install + personas drift')}`,
|
|
83
|
+
` ${chalk.cyan('3.')} ${DIM('Check')} ${chalk.white('.morph/config/config.json → project.stack')} ${DIM('(drives which personas install)')}`,
|
|
78
84
|
'',
|
|
79
85
|
].join('\n'));
|
|
80
86
|
}
|
package/src/utils/file-copier.js
CHANGED
|
@@ -37,7 +37,12 @@ export async function pathExists(path) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export async function readJson(path) {
|
|
40
|
-
|
|
40
|
+
// BOM-tolerant: PowerShell 5.1's `Out-File -Encoding utf8` writes UTF-8
|
|
41
|
+
// WITH BOM, and JSON.parse rejects it. A hand-edited config.json on Windows
|
|
42
|
+
// would then silently fall back to empty project tags (fail-open reads),
|
|
43
|
+
// installing only universal personas. Strip the BOM before parsing.
|
|
44
|
+
const raw = await fs.readFile(path, 'utf-8');
|
|
45
|
+
return JSON.parse(raw.replace(/^/, ''));
|
|
41
46
|
}
|
|
42
47
|
|
|
43
48
|
export async function writeJson(path, data) {
|