@decantr/cli 1.7.28 → 1.7.29
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 +15 -6
- package/dist/bin.js +3 -3
- package/dist/chunk-DI2PLOJ6.js +1418 -0
- package/dist/{chunk-GCDFX7UE.js → chunk-HULA6E2D.js} +5 -4
- package/dist/{chunk-56VBV4MT.js → chunk-US6RK5QT.js} +1271 -774
- package/dist/heal-YHLXO5QL.js +307 -0
- package/dist/index.js +3 -3
- package/dist/{upgrade-XMY6LIPS.js → upgrade-EV23CKA3.js} +1 -1
- package/package.json +4 -4
- package/dist/chunk-RRRHQ45P.js +0 -397
- package/dist/heal-SWUFIYU5.js +0 -99
|
@@ -2865,7 +2865,8 @@ function resolvePatternAlias(item, patterns) {
|
|
|
2865
2865
|
return item;
|
|
2866
2866
|
}
|
|
2867
2867
|
function buildEssenceV3(options, archetypeData, themeHints) {
|
|
2868
|
-
|
|
2868
|
+
const isBrownfieldAttach = options.workflowMode === "brownfield-attach";
|
|
2869
|
+
let pages = isBrownfieldAttach ? [{ id: "observed-app", layout: ["existing-surface"] }] : [{ id: "home", layout: ["hero"] }];
|
|
2869
2870
|
let features = options.features;
|
|
2870
2871
|
let defaultShell = options.shell || "sidebar-main";
|
|
2871
2872
|
if (archetypeData?.pages) {
|
|
@@ -3710,10 +3711,10 @@ function generateDecantrMdV31(params) {
|
|
|
3710
3711
|
WORKFLOW_GUIDANCE: params.workflowMode === "brownfield-attach" ? params.analysisArtifacts ? `This project is using Decantr in **brownfield attach** mode with **${params.adoptionMode || "contract-only"}** adoption.
|
|
3711
3712
|
|
|
3712
3713
|
Read \`.decantr/analysis.json\` first for the detected framework, routes, styling, layout, and dependency facts.
|
|
3713
|
-
Then read \`.decantr/
|
|
3714
|
-
Then read \`.decantr/context/scaffold-pack.md\` and \`.decantr/context/scaffold.md\` to understand the Decantr contract
|
|
3714
|
+
Then read \`.decantr/doctrine-map.json\`, \`.decantr/ambient-context.json\`, and \`.decantr/brownfield-report.md\` for ranked source precedence, existing assistant rules, docs, design-system evidence, and unresolved doctrine risks.
|
|
3715
|
+
Then read \`.decantr/context/scaffold-pack.md\` and \`.decantr/context/scaffold.md\` to understand the accepted Decantr contract.
|
|
3715
3716
|
|
|
3716
|
-
Preserve the current framework, package manager, router, and working runtime structure unless the contract gives you a reviewed reason to change them.
|
|
3717
|
+
Treat Decantr as the reconciled contract layer and the original docs/rules as cited evidence. Preserve the current framework, package manager, router, styling system, data boundaries, and working runtime structure unless the contract gives you a reviewed reason to change them. Registry content is optional in this workflow unless the task explicitly asks for it.` : `This project is using Decantr in **brownfield attach** mode with **${params.adoptionMode || "contract-only"}** adoption.
|
|
3717
3718
|
|
|
3718
3719
|
No \`.decantr/analysis.json\` or \`.decantr/init-seed.json\` was present when this context was generated. Inventory the current framework, routes, styling, layout, package manager, and rule files before changing runtime code. Then read \`.decantr/context/scaffold-pack.md\` and \`.decantr/context/scaffold.md\` to understand the Decantr contract you are layering onto the existing app.
|
|
3719
3720
|
|