@polymorphism-tech/morph-spec 11.1.0 → 11.1.1
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 +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-plan/SKILL.md +1 -1
- package/framework/skills/core/morph-uiux/SKILL.md +1 -1
- package/package.json +1 -1
- package/src/commands/project/update.js +1 -1
- package/src/core/paths/output-schema.js +0 -10
- package/src/lib/git/default-branch.js +0 -35
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> Harness para o Claude Code escrever código bem: plano com cenários, prova de que o teste morde, revisão em contexto novo e um resultado que um orquestrador lê.
|
|
4
4
|
|
|
5
5
|
**Package:** `@polymorphism-tech/morph-spec`
|
|
6
|
-
**Version:** 11.1.
|
|
6
|
+
**Version:** 11.1.1
|
|
7
7
|
**Requires:** Node.js 22+, Claude Code
|
|
8
8
|
|
|
9
9
|
---
|
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_use: Use quando for iniciar um novo projeto de LP com o template Umbraco genérico
|
|
6
6
|
user-invocable: true
|
|
7
|
-
cliVersion: "11.1.
|
|
7
|
+
cliVersion: "11.1.1"
|
|
8
8
|
stacks:
|
|
9
9
|
- umbraco
|
|
10
10
|
---
|
|
@@ -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_use: Use quando o usuário pedir "use /migrate-lp-to-umbraco {projeto}" ou descrever a necessidade de migrar uma LP para Umbraco
|
|
6
6
|
user-invocable: true
|
|
7
|
-
cliVersion: "11.1.
|
|
7
|
+
cliVersion: "11.1.1"
|
|
8
8
|
stacks:
|
|
9
9
|
- umbraco
|
|
10
10
|
---
|
|
@@ -4,7 +4,7 @@ description: Implementa o plano de uma feature morph-spec nesta sessão — prov
|
|
|
4
4
|
version: core
|
|
5
5
|
when_to_use: Use com o plano validado pelo plan-check ("/morph-apply", "implementar a feature", "implementa o plano"), inclusive disparado por um orquestrador depois da morph-plan
|
|
6
6
|
user-invocable: true
|
|
7
|
-
cliVersion: "11.1.
|
|
7
|
+
cliVersion: "11.1.1"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# morph-apply
|
|
@@ -4,7 +4,7 @@ description: Transforma uma issue ou um pedido no plano da feature — confronta
|
|
|
4
4
|
version: core
|
|
5
5
|
when_to_use: Use quando uma feature, bug ou chore começar ("/morph-plan", "/morph-plan <link da issue>", "vamos planejar X"), inclusive disparado por um orquestrador a partir de uma issue com a label agente
|
|
6
6
|
user-invocable: true
|
|
7
|
-
cliVersion: "11.1.
|
|
7
|
+
cliVersion: "11.1.1"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# morph-plan
|
|
@@ -4,7 +4,7 @@ description: Conduz o desenho de telas de uma feature com plano validado — ren
|
|
|
4
4
|
version: core
|
|
5
5
|
when_to_use: Use quando a feature cria ou altera UI e há uma pessoa para escolher as telas, depois do plan-check e antes de /morph-apply. Em modo autônomo não roda — escolher tela é decisão humana.
|
|
6
6
|
user-invocable: true
|
|
7
|
-
cliVersion: "11.1.
|
|
7
|
+
cliVersion: "11.1.1"
|
|
8
8
|
stacks:
|
|
9
9
|
- nextjs
|
|
10
10
|
- react
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { basename, join, dirname, relative, isAbsolute, resolve } from 'path';
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
3
|
import { spawnSync } from 'child_process';
|
|
4
|
-
import { existsSync, readdirSync
|
|
4
|
+
import { existsSync, readdirSync } from 'fs';
|
|
5
5
|
import { homedir } from 'os';
|
|
6
6
|
|
|
7
7
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
@@ -20,16 +20,6 @@ function leafSegment(entry) {
|
|
|
20
20
|
return entry.multi ? entry.dirname : entry.filename;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
/** For `multi` types this is the directory holding the N files. */
|
|
24
|
-
export function getOutputPath(featureName, outputType) {
|
|
25
|
-
const entry = OUTPUT_SCHEMA[outputType];
|
|
26
|
-
if (!entry) {
|
|
27
|
-
throw new Error(`Unknown output type: "${outputType}". Valid types: ${Object.keys(OUTPUT_SCHEMA).join(', ')}`);
|
|
28
|
-
}
|
|
29
|
-
return join('.morph', 'features', featureName, entry.phaseDir, leafSegment(entry))
|
|
30
|
-
.replace(/\\/g, '/');
|
|
31
|
-
}
|
|
32
|
-
|
|
33
23
|
export function getAbsoluteOutputPath(projectRoot, featureName, outputType) {
|
|
34
24
|
const entry = OUTPUT_SCHEMA[outputType];
|
|
35
25
|
if (!entry) {
|
|
@@ -51,38 +51,3 @@ export function detectDefaultBranch(cwd = process.cwd()) {
|
|
|
51
51
|
}
|
|
52
52
|
return null;
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
function parseShortstat(text) {
|
|
56
|
-
const files = /(\d+) files? changed/.exec(text || '');
|
|
57
|
-
const ins = /(\d+) insertions?\(\+\)/.exec(text || '');
|
|
58
|
-
const del = /(\d+) deletions?\(-\)/.exec(text || '');
|
|
59
|
-
return {
|
|
60
|
-
filesChanged: files ? Number(files[1]) : 0,
|
|
61
|
-
insertions: ins ? Number(ins[1]) : 0,
|
|
62
|
-
deletions: del ? Number(del[1]) : 0,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function countUntrackedFiles(cwd) {
|
|
67
|
-
return listUntrackedFiles(cwd).length;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function splitLines(text) {
|
|
71
|
-
return String(text)
|
|
72
|
-
.split('\n')
|
|
73
|
-
.map((line) => line.trim().replace(/\\/g, '/'))
|
|
74
|
-
.filter(Boolean);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// `git diff` never shows a file that was never `git add`-ed, so every "what changed"
|
|
78
|
-
// answer asks here too. The only spelling of this probe: a copy is how one caller goes blind.
|
|
79
|
-
function listUntrackedFiles(cwd) {
|
|
80
|
-
try {
|
|
81
|
-
return splitLines(
|
|
82
|
-
execFileSync('git', ['ls-files', '--others', '--exclude-standard'], { cwd, stdio: 'pipe' }).toString()
|
|
83
|
-
);
|
|
84
|
-
} catch {
|
|
85
|
-
return [];
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|