@decantr/cli 1.7.27 → 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.
@@ -2865,7 +2865,8 @@ function resolvePatternAlias(item, patterns) {
2865
2865
  return item;
2866
2866
  }
2867
2867
  function buildEssenceV3(options, archetypeData, themeHints) {
2868
- let pages = [{ id: "home", layout: ["hero"] }];
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/init-seed.json\` for the recommended attach defaults.
3714
- Then read \`.decantr/context/scaffold-pack.md\` and \`.decantr/context/scaffold.md\` to understand the Decantr contract you are layering onto the existing app.
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. Map existing routes and components onto the declared Decantr sections/pages before creating new files. 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
+ 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