@decantr/cli 1.6.5 → 1.6.7
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/dist/bin.js +2 -2
- package/dist/{chunk-MEW5X6AP.js → chunk-3ZYYVKWA.js} +2 -2
- package/dist/{chunk-GSRPDFXK.js → chunk-XUX3ZLCK.js} +3 -0
- package/dist/index.js +2 -2
- package/dist/{upgrade-WPC7QPXX.js → upgrade-QPHY2ER6.js} +1 -1
- package/package.json +1 -1
- package/src/templates/task-add-page.md.template +1 -1
- package/src/templates/task-modify.md.template +2 -2
package/dist/bin.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-3ZYYVKWA.js";
|
|
3
|
+
import "./chunk-XUX3ZLCK.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
scaffoldMinimal,
|
|
10
10
|
scaffoldProject,
|
|
11
11
|
syncRegistry
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XUX3ZLCK.js";
|
|
13
13
|
|
|
14
14
|
// src/index.ts
|
|
15
15
|
import { readFileSync as readFileSync15, existsSync as existsSync23, readdirSync as readdirSync6 } from "fs";
|
|
@@ -4332,7 +4332,7 @@ async function main() {
|
|
|
4332
4332
|
break;
|
|
4333
4333
|
}
|
|
4334
4334
|
case "upgrade": {
|
|
4335
|
-
const { cmdUpgrade } = await import("./upgrade-
|
|
4335
|
+
const { cmdUpgrade } = await import("./upgrade-QPHY2ER6.js");
|
|
4336
4336
|
const applyFlag = args.includes("--apply");
|
|
4337
4337
|
await cmdUpgrade(process.cwd(), { apply: applyFlag });
|
|
4338
4338
|
break;
|
|
@@ -1789,6 +1789,9 @@ async function refreshDerivedFiles(projectRoot, essence, registry, prefetchedThe
|
|
|
1789
1789
|
contextFiles.push(summaryPath);
|
|
1790
1790
|
}
|
|
1791
1791
|
if (!options?.isInitialScaffold) {
|
|
1792
|
+
const scaffoldTaskPath = join(contextDir, "task-scaffold.md");
|
|
1793
|
+
writeFileSync(scaffoldTaskPath, generateTaskContextV3("task-scaffold.md.template", essence));
|
|
1794
|
+
contextFiles.push(scaffoldTaskPath);
|
|
1792
1795
|
const addPagePath = join(contextDir, "task-add-page.md");
|
|
1793
1796
|
writeFileSync(addPagePath, generateTaskContextV3("task-add-page.md.template", essence));
|
|
1794
1797
|
contextFiles.push(addPagePath);
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./chunk-
|
|
2
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-3ZYYVKWA.js";
|
|
2
|
+
import "./chunk-XUX3ZLCK.js";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Enforcement Tier: Guided**
|
|
4
4
|
|
|
5
|
-
You are adding new pages or features to an existing Decantr project. Guided mode enforces rules 1-5 (DNA) + 6,
|
|
5
|
+
You are adding new pages or features to an existing Decantr project. Guided mode enforces rules 1-5 (DNA) + 6, 7 (Blueprint).
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -70,7 +70,7 @@ decantr_read_essence()
|
|
|
70
70
|
|
|
71
71
|
For the page you're modifying, verify:
|
|
72
72
|
|
|
73
|
-
- Page ID exists in `blueprint.pages[]`
|
|
73
|
+
- Page ID exists in `blueprint.sections[].pages[]`
|
|
74
74
|
- Shell matches the page's `shell` property
|
|
75
75
|
- Patterns match the page's `layout[]` in order
|
|
76
76
|
- Theme matches `theme.style`
|
|
@@ -90,7 +90,7 @@ Before writing code:
|
|
|
90
90
|
Before modifying:
|
|
91
91
|
|
|
92
92
|
- [ ] Page exists in essence structure
|
|
93
|
-
- [ ] I know the layout order for the target page (check `blueprint.
|
|
93
|
+
- [ ] I know the layout order for the target page (check `blueprint.sections[].pages[]`)
|
|
94
94
|
- [ ] I will use theme: `{{THEME_STYLE}}`
|
|
95
95
|
- [ ] I will follow density: `{{DENSITY}}`
|
|
96
96
|
|