@brucewaynedecoy/make-docs 2.0.3 → 2.0.4

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.
Files changed (46) hide show
  1. package/README.md +1 -1
  2. package/dist/{backup-GCM64IPN.js → backup-CM7RL2Q7.js} +5 -5
  3. package/dist/chunk-3EXHM5L2.js +1225 -0
  4. package/dist/chunk-3EXHM5L2.js.map +1 -0
  5. package/dist/{chunk-4LLSMDWJ.js → chunk-52FTNVXS.js} +242 -76
  6. package/dist/{chunk-4LLSMDWJ.js.map → chunk-52FTNVXS.js.map} +1 -1
  7. package/dist/{chunk-DNDM7DUQ.js → chunk-65QWMODG.js} +2 -2
  8. package/dist/{chunk-57GN6ALR.js → chunk-7R2PPKTB.js} +2 -2
  9. package/dist/{chunk-GPVKIBFC.js → chunk-ADVNSMA7.js} +3 -3
  10. package/dist/{chunk-2HNJCJJE.js → chunk-GERMRLJ2.js} +2 -2
  11. package/dist/{chunk-IHMZ2OCS.js → chunk-J5QDGRZ7.js} +3 -3
  12. package/dist/{chunk-O2UZ35PV.js → chunk-LV3CBXZB.js} +20 -20
  13. package/dist/{chunk-O2UZ35PV.js.map → chunk-LV3CBXZB.js.map} +1 -1
  14. package/dist/{chunk-DFQJENNL.js → chunk-M7DMFIKU.js} +2 -2
  15. package/dist/{chunk-C2IBRVUA.js → chunk-OR5ZVGLG.js} +6 -5
  16. package/dist/chunk-OR5ZVGLG.js.map +1 -0
  17. package/dist/{chunk-U25GFKNZ.js → chunk-YVSASZMT.js} +3 -3
  18. package/dist/chunk-YVSASZMT.js.map +1 -0
  19. package/dist/index.js +118 -110
  20. package/dist/index.js.map +1 -1
  21. package/dist/{self-UHPM4A2U.js → self-36ULRIJ6.js} +17 -17
  22. package/dist/{self-UHPM4A2U.js.map → self-36ULRIJ6.js.map} +1 -1
  23. package/dist/{server-N7XAAV3X.js → server-H754TA4Q.js} +9 -9
  24. package/dist/{setup-system-JUHGDZJW.js → setup-system-JI36YJ6D.js} +15 -15
  25. package/dist/{setup-system-JUHGDZJW.js.map → setup-system-JI36YJ6D.js.map} +1 -1
  26. package/dist/{skills-command-W3SE3OFP.js → skills-command-IGDVLNKY.js} +28 -28
  27. package/dist/{skills-command-W3SE3OFP.js.map → skills-command-IGDVLNKY.js.map} +1 -1
  28. package/dist/{uninstall-BGMJ6KCI.js → uninstall-VBGMQQLA.js} +8 -8
  29. package/dist/{virtual_make-docs-first-party-skills-VXSUUHTL.js → virtual_make-docs-first-party-skills-H3FC47C2.js} +2 -2
  30. package/dist/{virtual_make-docs-first-party-skills-VXSUUHTL.js.map → virtual_make-docs-first-party-skills-H3FC47C2.js.map} +1 -1
  31. package/package.json +4 -4
  32. package/template/.make-docs/system/contracts/output-contract.md +3 -1
  33. package/template/.make-docs/system/references/prd-change-management.md +14 -2
  34. package/dist/chunk-C2IBRVUA.js.map +0 -1
  35. package/dist/chunk-U25GFKNZ.js.map +0 -1
  36. package/dist/chunk-Z5K4FHYP.js +0 -922
  37. package/dist/chunk-Z5K4FHYP.js.map +0 -1
  38. /package/dist/{backup-GCM64IPN.js.map → backup-CM7RL2Q7.js.map} +0 -0
  39. /package/dist/{chunk-DNDM7DUQ.js.map → chunk-65QWMODG.js.map} +0 -0
  40. /package/dist/{chunk-57GN6ALR.js.map → chunk-7R2PPKTB.js.map} +0 -0
  41. /package/dist/{chunk-GPVKIBFC.js.map → chunk-ADVNSMA7.js.map} +0 -0
  42. /package/dist/{chunk-2HNJCJJE.js.map → chunk-GERMRLJ2.js.map} +0 -0
  43. /package/dist/{chunk-IHMZ2OCS.js.map → chunk-J5QDGRZ7.js.map} +0 -0
  44. /package/dist/{chunk-DFQJENNL.js.map → chunk-M7DMFIKU.js.map} +0 -0
  45. /package/dist/{server-N7XAAV3X.js.map → server-H754TA4Q.js.map} +0 -0
  46. /package/dist/{uninstall-BGMJ6KCI.js.map → uninstall-VBGMQQLA.js.map} +0 -0
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  importLegacyInstallationState,
6
6
  previewLegacyInstallationState,
7
7
  scopeCompatibilityToInstallPlan
8
- } from "./chunk-GPVKIBFC.js";
8
+ } from "./chunk-ADVNSMA7.js";
9
9
  import {
10
10
  Checkpoint9ReceiptProjectionError,
11
11
  MigrationSafetyError,
@@ -21,11 +21,11 @@ import {
21
21
  operationCliProjection,
22
22
  resolveCliOperationLaunch,
23
23
  serializeOperationError
24
- } from "./chunk-4LLSMDWJ.js";
24
+ } from "./chunk-52FTNVXS.js";
25
25
  import {
26
26
  runBackupCommand
27
- } from "./chunk-O2UZ35PV.js";
28
- import "./chunk-2HNJCJJE.js";
27
+ } from "./chunk-LV3CBXZB.js";
28
+ import "./chunk-GERMRLJ2.js";
29
29
  import {
30
30
  OperationError,
31
31
  listLifecycleRuns,
@@ -33,12 +33,12 @@ import {
33
33
  previewStoreCompatibilityBridge,
34
34
  resolveProjectIdentity,
35
35
  writeGlobalConfig
36
- } from "./chunk-IHMZ2OCS.js";
36
+ } from "./chunk-J5QDGRZ7.js";
37
37
  import {
38
38
  COMPLETE_PROJECT_CAPABILITIES,
39
39
  describeHarnessSupport,
40
40
  resolveUnifiedSetupState
41
- } from "./chunk-DNDM7DUQ.js";
41
+ } from "./chunk-65QWMODG.js";
42
42
  import {
43
43
  applyInstallPlan,
44
44
  createDefaultMakeDocsConfig,
@@ -49,24 +49,24 @@ import {
49
49
  planInstall,
50
50
  planProjectHarnessIntegrationWrite,
51
51
  registerSkillAdoptionRecovery
52
- } from "./chunk-C2IBRVUA.js";
53
- import "./chunk-57GN6ALR.js";
52
+ } from "./chunk-OR5ZVGLG.js";
53
+ import "./chunk-7R2PPKTB.js";
54
54
  import {
55
- Bt,
56
- Ct,
57
- Jt,
58
- Lt,
59
- Lt2,
60
- Rt,
61
- U,
62
- Vt,
63
- W,
64
- Wt,
65
- h,
66
- q,
67
- te,
68
- x
69
- } from "./chunk-Z5K4FHYP.js";
55
+ S_BAR,
56
+ S_BAR_END,
57
+ S_CHECKBOX_ACTIVE,
58
+ S_CHECKBOX_INACTIVE,
59
+ S_CHECKBOX_SELECTED,
60
+ a,
61
+ confirm,
62
+ intro,
63
+ isCancel,
64
+ multiselect,
65
+ note,
66
+ select,
67
+ symbol,
68
+ wrapTextWithPrefix
69
+ } from "./chunk-3EXHM5L2.js";
70
70
  import {
71
71
  HARNESS_CALLER_IDENTITY_ARG,
72
72
  HARNESS_CALLER_IDENTITY_ENV,
@@ -77,7 +77,7 @@ import {
77
77
  parseHarnessCallerReference,
78
78
  sha256,
79
79
  verifyMakeDocsExecutable
80
- } from "./chunk-DFQJENNL.js";
80
+ } from "./chunk-M7DMFIKU.js";
81
81
  import {
82
82
  CAPABILITIES,
83
83
  CAPABILITY_DEPENDENCIES,
@@ -106,7 +106,7 @@ import {
106
106
  validateAndMigrateManifest,
107
107
  withStoreDatabase,
108
108
  writeTextFile
109
- } from "./chunk-U25GFKNZ.js";
109
+ } from "./chunk-YVSASZMT.js";
110
110
  import "./chunk-D4HDZEJT.js";
111
111
 
112
112
  // src/cli.ts
@@ -246,6 +246,14 @@ function renderPrdAuthorityValidation(value) {
246
246
  const lines = [
247
247
  `PRD authority validation: ${text(report, "status") ?? "unknown"} (${String(report.prdFilesScanned ?? "?")} PRD files, ${diagnostics.length} errors).`
248
248
  ];
249
+ const coverage = asRecord(report.markdownSourceCoverage);
250
+ if (coverage) {
251
+ lines.push(
252
+ `Markdown checked: ${String(report.markdownFilesScanned ?? "?")} (PRD ${String(coverage.prd ?? 0)}, design ${String(coverage.design ?? 0)}, plan ${String(coverage.plan ?? 0)}, work ${String(coverage.work ?? 0)}, custom ${String(coverage.custom ?? 0)}).`
253
+ );
254
+ const customPaths = stringList(coverage, "customPaths");
255
+ if (customPaths.length > 0) lines.push(`Custom sources: ${customPaths.join(", ")}`);
256
+ }
249
257
  for (const diagnostic of diagnostics) {
250
258
  lines.push(
251
259
  `${text(diagnostic, "code") ?? "PRD-AUTH-?"} ${text(diagnostic, "path") ?? "?"}:${String(diagnostic.line ?? "?")} ${text(diagnostic, "message") ?? "Validation error."}`,
@@ -1488,11 +1496,11 @@ async function promptForManagedFileConflictResolutions(conflicts) {
1488
1496
  return {};
1489
1497
  }
1490
1498
  const sortedConflicts = sortManagedFileConflicts(conflicts);
1491
- Vt(
1499
+ note(
1492
1500
  renderManagedFileConflictSummary(sortedConflicts),
1493
1501
  "Resolve managed file conflicts"
1494
1502
  );
1495
- const batchResolution = await Jt({
1503
+ const batchResolution = await select({
1496
1504
  message: "How should make-docs handle these existing files?",
1497
1505
  withGuide: true,
1498
1506
  initialValue: "review-each",
@@ -1511,7 +1519,7 @@ async function promptForManagedFileConflictResolutions(conflicts) {
1511
1519
  }
1512
1520
  ]
1513
1521
  });
1514
- if (Ct(batchResolution)) {
1522
+ if (isCancel(batchResolution)) {
1515
1523
  return null;
1516
1524
  }
1517
1525
  if (batchResolution === "overwrite-all") {
@@ -1528,13 +1536,13 @@ async function promptForManagedFileConflictResolutions(conflicts) {
1528
1536
  if (groupConflicts.length === 0) {
1529
1537
  continue;
1530
1538
  }
1531
- Vt(
1539
+ note(
1532
1540
  `${groupConflicts.length} ${pluralizeFile(groupConflicts.length)} to review.`,
1533
1541
  styleText("cyan", getManagedFileConflictGroupLabel(group))
1534
1542
  );
1535
1543
  for (const conflict of groupConflicts) {
1536
1544
  const fileNumber = sortedConflicts.indexOf(conflict) + 1;
1537
- Vt(
1545
+ note(
1538
1546
  [
1539
1547
  `Group: ${getManagedFileConflictGroupLabel(conflict.group)}`,
1540
1548
  `Path: ${conflict.relativePath}`,
@@ -1543,7 +1551,7 @@ async function promptForManagedFileConflictResolutions(conflicts) {
1543
1551
  ].join("\n"),
1544
1552
  "Existing managed file"
1545
1553
  );
1546
- const resolution = await Jt({
1554
+ const resolution = await select({
1547
1555
  message: `How should make-docs handle ${conflict.relativePath}?`,
1548
1556
  withGuide: true,
1549
1557
  initialValue: conflict.scope === "managed-block" ? "overwrite" : "skip",
@@ -1558,7 +1566,7 @@ async function promptForManagedFileConflictResolutions(conflicts) {
1558
1566
  }
1559
1567
  ]
1560
1568
  });
1561
- if (Ct(resolution)) {
1569
+ if (isCancel(resolution)) {
1562
1570
  return null;
1563
1571
  }
1564
1572
  resolutions[conflict.relativePath] = resolution;
@@ -1639,10 +1647,10 @@ function toTitleCase(value) {
1639
1647
  function createClackWizardRenderer() {
1640
1648
  return {
1641
1649
  beginSession(title) {
1642
- Wt(title);
1650
+ intro(title);
1643
1651
  },
1644
1652
  showProjectState(state) {
1645
- Vt(`Project state: ${state}.`, "Project state");
1653
+ note(`Project state: ${state}.`, "Project state");
1646
1654
  },
1647
1655
  async editCapabilities(state) {
1648
1656
  return promptForCapabilities(state.selections, state.config);
@@ -1654,8 +1662,8 @@ function createClackWizardRenderer() {
1654
1662
  return promptForOptions(state);
1655
1663
  },
1656
1664
  async review(state) {
1657
- Vt(state.summary, "Review selections");
1658
- const result = await Jt({
1665
+ note(state.summary, "Review selections");
1666
+ const result = await select({
1659
1667
  message: "What would you like to do next?",
1660
1668
  withGuide: true,
1661
1669
  options: [
@@ -1688,7 +1696,7 @@ function createClackWizardRenderer() {
1688
1696
  }
1689
1697
  ]
1690
1698
  });
1691
- if (Ct(result)) {
1699
+ if (isCancel(result)) {
1692
1700
  return "cancel";
1693
1701
  }
1694
1702
  return result;
@@ -1699,7 +1707,7 @@ async function promptForCapabilities(selections, config = createDefaultMakeDocsC
1699
1707
  const promptState = {
1700
1708
  selections: normalizeWizardSelections(selections)
1701
1709
  };
1702
- const prompt = new Lt({
1710
+ const prompt = new a({
1703
1711
  options: buildCapabilityChecklistState(promptState.selections, config).options,
1704
1712
  initialValues: buildCapabilityChecklistState(promptState.selections, config).selectedCapabilities,
1705
1713
  required: true,
@@ -1729,13 +1737,13 @@ async function promptForCapabilities(selections, config = createDefaultMakeDocsC
1729
1737
  prompt.on("key", syncPromptState);
1730
1738
  syncPromptState();
1731
1739
  const result = await prompt.prompt();
1732
- if (Ct(result)) {
1740
+ if (isCancel(result)) {
1733
1741
  return null;
1734
1742
  }
1735
1743
  return buildCapabilityChecklistState(promptState.selections, config).selectedCapabilities;
1736
1744
  }
1737
1745
  async function promptForHarnesses(selections) {
1738
- const result = await Lt2({
1746
+ const result = await multiselect({
1739
1747
  message: "Which agent platforms will you use?",
1740
1748
  withGuide: true,
1741
1749
  initialValues: getSelectedHarnesses(selections),
@@ -1746,7 +1754,7 @@ async function promptForHarnesses(selections) {
1746
1754
  hint: HARNESS_METADATA[harness].hint
1747
1755
  }))
1748
1756
  });
1749
- if (Ct(result)) {
1757
+ if (isCancel(result)) {
1750
1758
  return null;
1751
1759
  }
1752
1760
  return result;
@@ -1757,34 +1765,34 @@ async function promptForOptions(state) {
1757
1765
  (harness) => HARNESS_METADATA[harness].label
1758
1766
  );
1759
1767
  if (state.skillsLocked) {
1760
- Vt(
1768
+ note(
1761
1769
  "This setup keeps the saved Skill selection. Use `make-docs setup skills` to change the enabled state, scope, source, or selected names.",
1762
1770
  "Skills"
1763
1771
  );
1764
1772
  }
1765
- const skillsResult = state.skillsLocked ? options.skills : await Rt({
1773
+ const skillsResult = state.skillsLocked ? options.skills : await confirm({
1766
1774
  message: `Install optional Skills for ${formatInlineList(harnessLabels)}? Skills guide agents. They do not grant Store access.`,
1767
1775
  withGuide: true,
1768
1776
  initialValue: options.skills,
1769
1777
  active: "Yes",
1770
1778
  inactive: "No"
1771
1779
  });
1772
- if (Ct(skillsResult)) return null;
1780
+ if (isCancel(skillsResult)) return null;
1773
1781
  let skillScope = options.skillScope;
1774
1782
  let selectedSkills = options.selectedSkills;
1775
1783
  if (skillsResult && !state.skillsLocked) {
1776
- const scopeResult = await Jt({
1784
+ const scopeResult = await select({
1777
1785
  message: "Where should skills be installed?",
1778
1786
  withGuide: true,
1779
1787
  initialValue: options.skillScope,
1780
1788
  options: skillScopeOptions
1781
1789
  });
1782
- if (Ct(scopeResult)) {
1790
+ if (isCancel(scopeResult)) {
1783
1791
  return null;
1784
1792
  }
1785
1793
  skillScope = scopeResult;
1786
1794
  if (shouldPromptForSkillSelection(skillSelection)) {
1787
- const prompt = new Lt({
1795
+ const prompt = new a({
1788
1796
  options: skillSelection.promptOptions,
1789
1797
  initialValues: skillSelection.selectedSkillNames,
1790
1798
  required: false,
@@ -1793,7 +1801,7 @@ async function promptForOptions(state) {
1793
1801
  }
1794
1802
  });
1795
1803
  const skillResult = await prompt.prompt();
1796
- if (Ct(skillResult)) {
1804
+ if (isCancel(skillResult)) {
1797
1805
  return null;
1798
1806
  }
1799
1807
  const selectedSkillSet = new Set(skillResult);
@@ -1804,7 +1812,7 @@ async function promptForOptions(state) {
1804
1812
  } else if (!skillsResult) {
1805
1813
  selectedSkills = [];
1806
1814
  }
1807
- const resourceProjection = await Lt2({
1815
+ const resourceProjection = await multiselect({
1808
1816
  message: "Which system resources should also be copied into this project? Provider reads need no Store access.",
1809
1817
  withGuide: true,
1810
1818
  initialValues: options.resourceProjection ?? [],
@@ -1815,7 +1823,7 @@ async function promptForOptions(state) {
1815
1823
  hint: "Optional local copy for portability. It does not grant harness or Store access."
1816
1824
  }))
1817
1825
  });
1818
- if (Ct(resourceProjection)) {
1826
+ if (isCancel(resourceProjection)) {
1819
1827
  return null;
1820
1828
  }
1821
1829
  return {
@@ -1828,26 +1836,26 @@ async function promptForOptions(state) {
1828
1836
  function renderSkillSelectionFrame(prompt, skillSelection) {
1829
1837
  const lineColor = prompt.state === "error" ? "yellow" : "cyan";
1830
1838
  const header = [
1831
- styleText("gray", h),
1832
- Bt(
1839
+ styleText("gray", S_BAR),
1840
+ wrapTextWithPrefix(
1833
1841
  process.stdout,
1834
1842
  "Select skills to install",
1835
- `${styleText(lineColor, h)} `,
1836
- `${W(prompt.state)} `
1843
+ `${styleText(lineColor, S_BAR)} `,
1844
+ `${symbol(prompt.state)} `
1837
1845
  )
1838
1846
  ];
1839
- const bodyPrefix = `${styleText(lineColor, h)} `;
1847
+ const bodyPrefix = `${styleText(lineColor, S_BAR)} `;
1840
1848
  const selectedSkillNames = new Set(
1841
1849
  prompt.value ?? skillSelection.selectedSkillNames
1842
1850
  );
1843
1851
  const selectedSummary = selectedSkillNames.size > 0 ? formatInlineList(Array.from(selectedSkillNames)) : "no skills";
1844
1852
  if (prompt.state === "submit") {
1845
1853
  return `${header.join("\n")}
1846
- ${styleText("gray", h)} ${styleText("dim", selectedSummary)}`;
1854
+ ${styleText("gray", S_BAR)} ${styleText("dim", selectedSummary)}`;
1847
1855
  }
1848
1856
  if (prompt.state === "cancel") {
1849
1857
  return `${header.join("\n")}
1850
- ${styleText("gray", h)} ${styleText(
1858
+ ${styleText("gray", S_BAR)} ${styleText(
1851
1859
  ["strikethrough", "dim"],
1852
1860
  selectedSummary
1853
1861
  )}`;
@@ -1870,10 +1878,10 @@ ${styleText("gray", h)} ${styleText(
1870
1878
  "Space toggles skills"
1871
1879
  )} \u2022 ${styleText("dim", "Enter to confirm")}`
1872
1880
  ];
1873
- const footer = styleText(lineColor, x);
1874
- const spacer = styleText(lineColor, h);
1881
+ const footer = styleText(lineColor, S_BAR_END);
1882
+ const spacer = styleText(lineColor, S_BAR);
1875
1883
  const errorLines = prompt.state === "error" && prompt.error ? prompt.error.split("\n").map(
1876
- (line, index) => index === 0 ? `${styleText("yellow", x)} ${styleText("yellow", line)}` : ` ${styleText("yellow", line)}`
1884
+ (line, index) => index === 0 ? `${styleText("yellow", S_BAR_END)} ${styleText("yellow", line)}` : ` ${styleText("yellow", line)}`
1877
1885
  ) : [];
1878
1886
  return [
1879
1887
  ...header,
@@ -1904,18 +1912,18 @@ function getFocusedSkillSelectionOption(prompt, skillSelection) {
1904
1912
  function renderSkillSelectionOption(option, active, selectedSkillNames) {
1905
1913
  const selected = selectedSkillNames.has(option.value);
1906
1914
  if (selected && active) {
1907
- return ` ${styleText("green", U)} ${styleText("white", option.label)}${option.hint ? ` ${styleText("dim", `(${option.hint})`)}` : ""}`;
1915
+ return ` ${styleText("green", S_CHECKBOX_SELECTED)} ${styleText("white", option.label)}${option.hint ? ` ${styleText("dim", `(${option.hint})`)}` : ""}`;
1908
1916
  }
1909
1917
  if (selected) {
1910
- return ` ${styleText("green", U)} ${styleText("dim", option.label)}${option.hint ? ` ${styleText("dim", `(${option.hint})`)}` : ""}`;
1918
+ return ` ${styleText("green", S_CHECKBOX_SELECTED)} ${styleText("dim", option.label)}${option.hint ? ` ${styleText("dim", `(${option.hint})`)}` : ""}`;
1911
1919
  }
1912
1920
  if (active) {
1913
- return ` ${styleText("cyan", te)} ${styleText(
1921
+ return ` ${styleText("cyan", S_CHECKBOX_ACTIVE)} ${styleText(
1914
1922
  ["bold", "white"],
1915
1923
  option.label
1916
1924
  )}${option.hint ? ` ${styleText("dim", `(${option.hint})`)}` : ""}`;
1917
1925
  }
1918
- return ` ${styleText("dim", q)} ${styleText("dim", option.label)}${option.hint ? ` ${styleText("dim", `(${option.hint})`)}` : ""}`;
1926
+ return ` ${styleText("dim", S_CHECKBOX_INACTIVE)} ${styleText("dim", option.label)}${option.hint ? ` ${styleText("dim", `(${option.hint})`)}` : ""}`;
1919
1927
  }
1920
1928
  function renderSkillSelectionLines(options, activeIndex, selectedSkillNames) {
1921
1929
  const lines = [];
@@ -1937,15 +1945,15 @@ function renderCapabilitiesFrame(prompt, selections) {
1937
1945
  const checklist = buildCapabilityChecklistState(selections);
1938
1946
  const lineColor = prompt.state === "error" ? "yellow" : "cyan";
1939
1947
  const header = [
1940
- styleText("gray", h),
1941
- Bt(
1948
+ styleText("gray", S_BAR),
1949
+ wrapTextWithPrefix(
1942
1950
  process.stdout,
1943
1951
  "Choose the document types to manage in this project:",
1944
- `${styleText(lineColor, h)} `,
1945
- `${W(prompt.state)} `
1952
+ `${styleText(lineColor, S_BAR)} `,
1953
+ `${symbol(prompt.state)} `
1946
1954
  )
1947
1955
  ];
1948
- const bodyPrefix = `${styleText(lineColor, h)} `;
1956
+ const bodyPrefix = `${styleText(lineColor, S_BAR)} `;
1949
1957
  const focusedOption = checklist.options[prompt.cursor] ?? checklist.options[0];
1950
1958
  const selectedLabels = checklist.selectedCapabilities.length > 0 ? checklist.selectedCapabilities.map(
1951
1959
  (capability) => CAPABILITY_METADATA[capability].label
@@ -1953,12 +1961,12 @@ function renderCapabilitiesFrame(prompt, selections) {
1953
1961
  if (prompt.state === "submit") {
1954
1962
  const submittedSummary = selectedLabels.length > 0 ? formatInlineList(selectedLabels) : "no capability families";
1955
1963
  return `${header.join("\n")}
1956
- ${styleText("gray", h)} ${styleText("dim", submittedSummary)}`;
1964
+ ${styleText("gray", S_BAR)} ${styleText("dim", submittedSummary)}`;
1957
1965
  }
1958
1966
  if (prompt.state === "cancel") {
1959
1967
  const cancelledSummary = selectedLabels.length > 0 ? formatInlineList(selectedLabels) : "no capability families";
1960
1968
  return `${header.join("\n")}
1961
- ${styleText("gray", h)} ${styleText(
1969
+ ${styleText("gray", S_BAR)} ${styleText(
1962
1970
  ["strikethrough", "dim"],
1963
1971
  cancelledSummary
1964
1972
  )}`;
@@ -1987,10 +1995,10 @@ ${styleText("gray", h)} ${styleText(
1987
1995
  "Space to select or deselect"
1988
1996
  )} \u2022 ${styleText("dim", "Enter to confirm")}`
1989
1997
  ];
1990
- const footer = styleText(lineColor, x);
1991
- const spacer = styleText(lineColor, h);
1998
+ const footer = styleText(lineColor, S_BAR_END);
1999
+ const spacer = styleText(lineColor, S_BAR);
1992
2000
  const errorLines = prompt.state === "error" ? prompt.error.split("\n").map(
1993
- (line, index) => index === 0 ? `${styleText("yellow", x)} ${styleText("yellow", line)}` : ` ${styleText("yellow", line)}`
2001
+ (line, index) => index === 0 ? `${styleText("yellow", S_BAR_END)} ${styleText("yellow", line)}` : ` ${styleText("yellow", line)}`
1994
2002
  ) : [];
1995
2003
  return [
1996
2004
  ...header,
@@ -2007,21 +2015,21 @@ ${styleText("gray", h)} ${styleText(
2007
2015
  function renderCapabilityOption(option, active, selectedCapabilities) {
2008
2016
  const selected = selectedCapabilities.includes(option.value);
2009
2017
  if (option.disabled) {
2010
- return `${styleText("gray", q)} ${styleText(
2018
+ return `${styleText("gray", S_CHECKBOX_INACTIVE)} ${styleText(
2011
2019
  ["strikethrough", "gray"],
2012
2020
  option.label
2013
2021
  )}`;
2014
2022
  }
2015
2023
  if (selected && active) {
2016
- return `${styleText("green", U)} ${option.label}`;
2024
+ return `${styleText("green", S_CHECKBOX_SELECTED)} ${option.label}`;
2017
2025
  }
2018
2026
  if (selected) {
2019
- return `${styleText("green", U)} ${styleText("dim", option.label)}`;
2027
+ return `${styleText("green", S_CHECKBOX_SELECTED)} ${styleText("dim", option.label)}`;
2020
2028
  }
2021
2029
  if (active) {
2022
- return `${styleText("cyan", te)} ${option.label}`;
2030
+ return `${styleText("cyan", S_CHECKBOX_ACTIVE)} ${option.label}`;
2023
2031
  }
2024
- return `${styleText("dim", q)} ${styleText("dim", option.label)}`;
2032
+ return `${styleText("dim", S_CHECKBOX_INACTIVE)} ${styleText("dim", option.label)}`;
2025
2033
  }
2026
2034
  function renderDetailBox(title, lines, columns) {
2027
2035
  const maxWidth = Math.max(46, Math.min(columns - 8, 88));
@@ -2530,12 +2538,12 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
2530
2538
  return;
2531
2539
  }
2532
2540
  if (parsed.command === "mcp") {
2533
- const { runMcpServer } = await import("./server-N7XAAV3X.js");
2541
+ const { runMcpServer } = await import("./server-H754TA4Q.js");
2534
2542
  await runMcpServer();
2535
2543
  return;
2536
2544
  }
2537
2545
  if (parsed.command === "update") {
2538
- const { runToolUpdateCommand } = await import("./self-UHPM4A2U.js");
2546
+ const { runToolUpdateCommand } = await import("./self-36ULRIJ6.js");
2539
2547
  await runToolUpdateCommand({
2540
2548
  yes: parsed.yes,
2541
2549
  ...parsed.targetDir ? { targetDir: path4.resolve(parsed.targetDir) } : {}
@@ -2543,13 +2551,13 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
2543
2551
  return;
2544
2552
  }
2545
2553
  if (parsed.command === "uninstall") {
2546
- const { runToolUninstallCommand } = await import("./self-UHPM4A2U.js");
2554
+ const { runToolUninstallCommand } = await import("./self-36ULRIJ6.js");
2547
2555
  await runToolUninstallCommand({ yes: parsed.yes, removeStore: parsed.removeStore });
2548
2556
  return;
2549
2557
  }
2550
2558
  validateParsedArgs(parsed);
2551
2559
  if (parsed.setupSubcommand === "system") {
2552
- const { runSystemSetupCommand } = await import("./setup-system-JUHGDZJW.js");
2560
+ const { runSystemSetupCommand } = await import("./setup-system-JI36YJ6D.js");
2553
2561
  const result = await runSystemSetupCommand({
2554
2562
  dryRun: parsed.dryRun,
2555
2563
  yes: parsed.yes,
@@ -2563,7 +2571,7 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
2563
2571
  "claude-code": parsed.claudeCodeMethod !== void 0 || !parsed.noClaudeCode,
2564
2572
  codex: parsed.codexMethod !== void 0 || !parsed.noCodex
2565
2573
  },
2566
- ...!parsed.json && output.isTTY ? { onReview: (review) => Vt(review, "This computer") } : {}
2574
+ ...!parsed.json && output.isTTY ? { onReview: (review) => note(review, "This computer") } : {}
2567
2575
  });
2568
2576
  let genericPlan = null;
2569
2577
  if (parsed.genericMcpClient) {
@@ -2574,14 +2582,14 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
2574
2582
  if (!parsed.dryRun) {
2575
2583
  let approved = parsed.yes;
2576
2584
  if (!approved && input.isTTY && output.isTTY) {
2577
- const answer = await Rt({
2585
+ const answer = await confirm({
2578
2586
  message: `${genericPlan.review} Apply this Make Docs-owned profile?`,
2579
2587
  initialValue: false,
2580
2588
  active: "Yes",
2581
2589
  inactive: "No",
2582
2590
  withGuide: true
2583
2591
  });
2584
- approved = !Ct(answer) && Boolean(answer);
2592
+ approved = !isCancel(answer) && Boolean(answer);
2585
2593
  }
2586
2594
  if (approved || !genericPlan.changed) genericPlan = applyGenericMcpSetup(genericPlan);
2587
2595
  }
@@ -2696,7 +2704,7 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
2696
2704
  let selectedMode = parsed.projectRecovery;
2697
2705
  const availableChoices = projectRecoveryReview.choices.filter((choice) => choice.available);
2698
2706
  if (!selectedMode && interactive && availableChoices.length > 0) {
2699
- const selected = await Jt({
2707
+ const selected = await select({
2700
2708
  message: "How should setup recover this unfinished project work?",
2701
2709
  options: projectRecoveryReview.choices.map((choice) => ({
2702
2710
  value: choice.mode,
@@ -2706,7 +2714,7 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
2706
2714
  })),
2707
2715
  initialValue: projectRecoveryReview.recommendation ?? void 0
2708
2716
  });
2709
- if (Ct(selected)) {
2717
+ if (isCancel(selected)) {
2710
2718
  output.write("Setup cancelled. The unfinished project work was not changed.\n");
2711
2719
  return;
2712
2720
  }
@@ -2825,7 +2833,7 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
2825
2833
  });
2826
2834
  }
2827
2835
  if (!freshInstallTarget) {
2828
- const { detectPreV2Install, promptPreV2Choice } = await import("./self-UHPM4A2U.js");
2836
+ const { detectPreV2Install, promptPreV2Choice } = await import("./self-36ULRIJ6.js");
2829
2837
  const preV2 = detectPreV2Install({
2830
2838
  targetDir,
2831
2839
  classification: compatibilityClassification
@@ -2877,7 +2885,7 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
2877
2885
  }
2878
2886
  let interactiveMethodSelections = {};
2879
2887
  if (interactive) {
2880
- const { inspectSystemHarnesses, promptForSystemSetupMethods } = await import("./setup-system-JUHGDZJW.js");
2888
+ const { inspectSystemHarnesses, promptForSystemSetupMethods } = await import("./setup-system-JI36YJ6D.js");
2881
2889
  const harnessSupport = inspectSystemHarnesses();
2882
2890
  const afterHarnessSelection = async (wizardSelections) => {
2883
2891
  interactiveMethodSelections = await promptForSystemSetupMethods({
@@ -2953,7 +2961,7 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
2953
2961
  applyPreparedSystemSetup,
2954
2962
  prepareSystemSetupCommand,
2955
2963
  resumePendingSystemSetupCommand
2956
- } = await import("./setup-system-JUHGDZJW.js");
2964
+ } = await import("./setup-system-JI36YJ6D.js");
2957
2965
  const systemOptions = {
2958
2966
  dryRun: parsed.dryRun,
2959
2967
  yes: parsed.yes,
@@ -3173,8 +3181,8 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
3173
3181
  return reviewedProjectFingerprint !== previousFingerprint ? "changed" : "unchanged";
3174
3182
  };
3175
3183
  const hasMachineMutation = preparedSystemSetup.changed || Boolean(genericMcpPlan?.changed) || storeBridgePreview.changes.store.length > 0;
3176
- if (!jsonOutput) Vt(preparedSystemSetup.review, "This computer");
3177
- if (!jsonOutput && genericMcpPlan) Vt(renderGenericMcpSetupResult(genericMcpPlan), "Generic MCP client");
3184
+ if (!jsonOutput) note(preparedSystemSetup.review, "This computer");
3185
+ if (!jsonOutput && genericMcpPlan) note(renderGenericMcpSetupResult(genericMcpPlan), "Generic MCP client");
3178
3186
  if (!jsonOutput && storeBridgePreview.changes.store.length) {
3179
3187
  output.write("Store prerequisite for This computer:\n");
3180
3188
  for (const change of storeBridgePreview.changes.store) output.write(`- ${change}
@@ -3275,18 +3283,18 @@ Next: ${migrationReviewBlock.nextAction}
3275
3283
  }
3276
3284
  let systemApproved = parsed.yes || !hasMachineMutation;
3277
3285
  if (interactive && hasMachineMutation) {
3278
- const proceed = await Rt({
3286
+ const proceed = await confirm({
3279
3287
  message: "Apply the reviewed changes to this computer?",
3280
3288
  initialValue: false,
3281
3289
  active: "Yes",
3282
3290
  inactive: "No",
3283
3291
  withGuide: true
3284
3292
  });
3285
- systemApproved = !Ct(proceed) && Boolean(proceed);
3293
+ systemApproved = !isCancel(proceed) && Boolean(proceed);
3286
3294
  }
3287
3295
  let projectApproved = parsed.yes || !hasInstallMutation;
3288
3296
  if (interactive && hasInstallMutation) {
3289
- const proceed = await Rt({
3297
+ const proceed = await confirm({
3290
3298
  message: getApplyConfirmationMessage({
3291
3299
  existingManifest: planningManifest,
3292
3300
  installIntent
@@ -3296,7 +3304,7 @@ Next: ${migrationReviewBlock.nextAction}
3296
3304
  inactive: "No",
3297
3305
  withGuide: true
3298
3306
  });
3299
- projectApproved = !Ct(proceed) && Boolean(proceed);
3307
+ projectApproved = !isCancel(proceed) && Boolean(proceed);
3300
3308
  }
3301
3309
  if (!systemApproved) {
3302
3310
  if (jsonOutput) writeCanonicalSetupResult({ status: "blocked", dryRun: false, targetRoot: targetDir, prepared: preparedSystemSetup, genericMcp: genericMcpPlan, storeBridge: storeBridgePreview, projectRecovery: priorProjectRecovery, storeMutationState: "none", projectChanged: recoveredProjectChanged, projectMutationState: recoveredProjectChanged ? "applied" : "none", projectActions: plan.actions, failedCondition: "Machine setup was not approved.", nextAction: "Run setup with --yes after you review the plan." });
@@ -3371,18 +3379,18 @@ Next: ${nextAction}
3371
3379
  output.write(
3372
3380
  "The verified Store state changed the computer review. Review the current computer plan.\n"
3373
3381
  );
3374
- Vt(preparedSystemSetup.review, "This computer");
3382
+ note(preparedSystemSetup.review, "This computer");
3375
3383
  }
3376
3384
  systemApproved = parsed.yes || !preparedSystemSetup.changed;
3377
3385
  if (interactive && preparedSystemSetup.changed) {
3378
- const proceed = await Rt({
3386
+ const proceed = await confirm({
3379
3387
  message: "Apply the reviewed changes to this computer?",
3380
3388
  initialValue: false,
3381
3389
  active: "Yes",
3382
3390
  inactive: "No",
3383
3391
  withGuide: true
3384
3392
  });
3385
- systemApproved = !Ct(proceed) && Boolean(proceed);
3393
+ systemApproved = !isCancel(proceed) && Boolean(proceed);
3386
3394
  }
3387
3395
  if (!systemApproved) {
3388
3396
  const nextAction = "Run `make-docs setup` again to review the current computer and project plans.";
@@ -3455,14 +3463,14 @@ Next: ${nextAction}
3455
3463
  if (projectApproved) {
3456
3464
  projectApproved = parsed.yes || !hasInstallMutation;
3457
3465
  if (interactive && hasInstallMutation) {
3458
- const proceed = await Rt({
3466
+ const proceed = await confirm({
3459
3467
  message: getApplyConfirmationMessage({ existingManifest: planningManifest, installIntent }),
3460
3468
  initialValue: true,
3461
3469
  active: "Yes",
3462
3470
  inactive: "No",
3463
3471
  withGuide: true
3464
3472
  });
3465
- projectApproved = !Ct(proceed) && Boolean(proceed);
3473
+ projectApproved = !isCancel(proceed) && Boolean(proceed);
3466
3474
  }
3467
3475
  }
3468
3476
  }
@@ -3534,14 +3542,14 @@ Next: ${nextAction}
3534
3542
  }
3535
3543
  projectApproved = parsed.yes || !hasInstallMutation;
3536
3544
  if (interactive && hasInstallMutation) {
3537
- const proceed = await Rt({
3545
+ const proceed = await confirm({
3538
3546
  message: getApplyConfirmationMessage({ existingManifest: planningManifest, installIntent }),
3539
3547
  initialValue: true,
3540
3548
  active: "Yes",
3541
3549
  inactive: "No",
3542
3550
  withGuide: true
3543
3551
  });
3544
- projectApproved = !Ct(proceed) && Boolean(proceed);
3552
+ projectApproved = !isCancel(proceed) && Boolean(proceed);
3545
3553
  }
3546
3554
  if (!projectApproved) {
3547
3555
  if (jsonOutput) {
@@ -3911,7 +3919,7 @@ async function loadUninstallCommand() {
3911
3919
  if (uninstallCommandLoaderOverride) {
3912
3920
  return uninstallCommandLoaderOverride();
3913
3921
  }
3914
- const uninstallModule = await import("./uninstall-BGMJ6KCI.js");
3922
+ const uninstallModule = await import("./uninstall-VBGMQQLA.js");
3915
3923
  if (typeof uninstallModule.runUninstallCommand !== "function") {
3916
3924
  throw new Error(
3917
3925
  "The `uninstall` command module must export `runUninstallCommand(options)`."
@@ -3924,7 +3932,7 @@ async function runSkillsCommand(options) {
3924
3932
  await skillsCommandRunnerOverride(options);
3925
3933
  return;
3926
3934
  }
3927
- const skillsModule = await import("./skills-command-W3SE3OFP.js");
3935
+ const skillsModule = await import("./skills-command-IGDVLNKY.js");
3928
3936
  await skillsModule.runSkillsCommand(options);
3929
3937
  }
3930
3938
  function getSelectionOverrideFlags(parsed) {
@@ -4496,7 +4504,7 @@ function printPlan(options) {
4496
4504
  const counts = countActions(actions);
4497
4505
  const mode = describeApplyMode({ existingManifest, installIntent });
4498
4506
  const labels = getConfigRenderingLabels(config);
4499
- Vt(
4507
+ note(
4500
4508
  [
4501
4509
  `Target: ${targetDir}`,
4502
4510
  `Mode: ${mode}`,
@@ -4531,7 +4539,7 @@ function printPlan(options) {
4531
4539
  renderNoopExplanation({ dryRun, existingManifest });
4532
4540
  return;
4533
4541
  }
4534
- Vt(renderedActions.map(formatActionLine).join("\n"), "Planned file operations");
4542
+ note(renderedActions.map(formatActionLine).join("\n"), "Planned file operations");
4535
4543
  }
4536
4544
  function countActions(actions) {
4537
4545
  return {
@@ -4604,7 +4612,7 @@ function guardCompatibilityDisposition(options) {
4604
4612
  break;
4605
4613
  case "migrate-with-review":
4606
4614
  if (interactive) {
4607
- Vt(
4615
+ note(
4608
4616
  buildCompatibilitySummaryLines(classification).join("\n"),
4609
4617
  "Compatibility review required"
4610
4618
  );
@@ -4692,7 +4700,7 @@ function renderNoopExplanation(options) {
4692
4700
  "- Run `make-docs setup skills` to change managed skills.",
4693
4701
  "- Run `make-docs --dry-run` after upgrading make-docs to preview future changes."
4694
4702
  );
4695
- Vt(lines.join("\n"), "Results");
4703
+ note(lines.join("\n"), "Results");
4696
4704
  }
4697
4705
  function getRenderedActions(actions) {
4698
4706
  return actions.filter((action) => getRenderedActionKind(action) !== null).sort(compareRenderedActions);