@brucewaynedecoy/make-docs 2.0.3 → 2.0.5

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 (63) hide show
  1. package/README.md +1 -1
  2. package/dist/{backup-GCM64IPN.js → backup-2OT4A6LR.js} +5 -5
  3. package/dist/chunk-3EXHM5L2.js +1225 -0
  4. package/dist/chunk-3EXHM5L2.js.map +1 -0
  5. package/dist/{chunk-2HNJCJJE.js → chunk-46MGH32G.js} +6 -4
  6. package/dist/chunk-46MGH32G.js.map +1 -0
  7. package/dist/{chunk-O2UZ35PV.js → chunk-CCYP5NU2.js} +20 -20
  8. package/dist/{chunk-O2UZ35PV.js.map → chunk-CCYP5NU2.js.map} +1 -1
  9. package/dist/{chunk-C2IBRVUA.js → chunk-CLSOY7NV.js} +153 -6
  10. package/dist/chunk-CLSOY7NV.js.map +1 -0
  11. package/dist/{chunk-GPVKIBFC.js → chunk-CMNKQM7L.js} +3 -3
  12. package/dist/{chunk-U25GFKNZ.js → chunk-HXWD2EUD.js} +20 -15
  13. package/dist/chunk-HXWD2EUD.js.map +1 -0
  14. package/dist/{chunk-DNDM7DUQ.js → chunk-I4FADOUK.js} +3 -3
  15. package/dist/{chunk-DNDM7DUQ.js.map → chunk-I4FADOUK.js.map} +1 -1
  16. package/dist/{chunk-DFQJENNL.js → chunk-ISSMVKIA.js} +224 -20
  17. package/dist/chunk-ISSMVKIA.js.map +1 -0
  18. package/dist/{chunk-IHMZ2OCS.js → chunk-UNR4CYVX.js} +116 -37
  19. package/dist/chunk-UNR4CYVX.js.map +1 -0
  20. package/dist/{chunk-57GN6ALR.js → chunk-VMKG3H4B.js} +2 -2
  21. package/dist/{chunk-4LLSMDWJ.js → chunk-XDSWX4Y4.js} +9085 -2912
  22. package/dist/chunk-XDSWX4Y4.js.map +1 -0
  23. package/dist/index.js +308 -176
  24. package/dist/index.js.map +1 -1
  25. package/dist/registry-PC5GKAKM.js +50 -0
  26. package/dist/registry-PC5GKAKM.js.map +1 -0
  27. package/dist/{self-UHPM4A2U.js → self-WYVXO23B.js} +18 -18
  28. package/dist/{self-UHPM4A2U.js.map → self-WYVXO23B.js.map} +1 -1
  29. package/dist/server-BQOG6FTA.js +1113 -0
  30. package/dist/server-BQOG6FTA.js.map +1 -0
  31. package/dist/{setup-system-JUHGDZJW.js → setup-system-KN7FTTLT.js} +267 -44
  32. package/dist/setup-system-KN7FTTLT.js.map +1 -0
  33. package/dist/{skills-command-W3SE3OFP.js → skills-command-KEW7MOEW.js} +39 -29
  34. package/dist/skills-command-KEW7MOEW.js.map +1 -0
  35. package/dist/{uninstall-BGMJ6KCI.js → uninstall-45XF4CHD.js} +10 -10
  36. package/dist/virtual_make-docs-first-party-skills-ECJESFL2.js +11 -0
  37. package/dist/virtual_make-docs-first-party-skills-ECJESFL2.js.map +1 -0
  38. package/package.json +8 -8
  39. package/skill-registry.json +24 -8
  40. package/skill-registry.schema.json +2 -1
  41. package/template/.make-docs/system/contracts/output-contract.md +3 -1
  42. package/template/.make-docs/system/contracts/system-resource-contract.md +16 -0
  43. package/template/.make-docs/system/references/prd-change-management.md +14 -2
  44. package/template/.make-docs/system-resources.catalog.json +415 -0
  45. package/template/.make-docs/system-resources.schema.json +25 -0
  46. package/dist/chunk-2HNJCJJE.js.map +0 -1
  47. package/dist/chunk-4LLSMDWJ.js.map +0 -1
  48. package/dist/chunk-C2IBRVUA.js.map +0 -1
  49. package/dist/chunk-DFQJENNL.js.map +0 -1
  50. package/dist/chunk-IHMZ2OCS.js.map +0 -1
  51. package/dist/chunk-U25GFKNZ.js.map +0 -1
  52. package/dist/chunk-Z5K4FHYP.js +0 -922
  53. package/dist/chunk-Z5K4FHYP.js.map +0 -1
  54. package/dist/server-N7XAAV3X.js +0 -512
  55. package/dist/server-N7XAAV3X.js.map +0 -1
  56. package/dist/setup-system-JUHGDZJW.js.map +0 -1
  57. package/dist/skills-command-W3SE3OFP.js.map +0 -1
  58. package/dist/virtual_make-docs-first-party-skills-VXSUUHTL.js +0 -11
  59. package/dist/virtual_make-docs-first-party-skills-VXSUUHTL.js.map +0 -1
  60. /package/dist/{backup-GCM64IPN.js.map → backup-2OT4A6LR.js.map} +0 -0
  61. /package/dist/{chunk-GPVKIBFC.js.map → chunk-CMNKQM7L.js.map} +0 -0
  62. /package/dist/{chunk-57GN6ALR.js.map → chunk-VMKG3H4B.js.map} +0 -0
  63. /package/dist/{uninstall-BGMJ6KCI.js.map → uninstall-45XF4CHD.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createAuditReport
4
- } from "./chunk-2HNJCJJE.js";
4
+ } from "./chunk-46MGH32G.js";
5
5
  import {
6
6
  MANIFEST_RELATIVE_PATH,
7
7
  acquireInstallationLock,
@@ -20,7 +20,7 @@ import {
20
20
  relativePathToTarget,
21
21
  releaseInstallationLock,
22
22
  validateAndMigrateManifest
23
- } from "./chunk-U25GFKNZ.js";
23
+ } from "./chunk-HXWD2EUD.js";
24
24
 
25
25
  // src/store/legacy-installation.ts
26
26
  import { createHash } from "crypto";
@@ -872,4 +872,4 @@ export {
872
872
  scopeCompatibilityToInstallPlan,
873
873
  formatCompatibilityClassification
874
874
  };
875
- //# sourceMappingURL=chunk-GPVKIBFC.js.map
875
+ //# sourceMappingURL=chunk-CMNKQM7L.js.map
@@ -7010,7 +7010,7 @@ function loadSqliteDriver() {
7010
7010
  } catch {
7011
7011
  cachedDriver = {
7012
7012
  available: false,
7013
- reason: `this Node runtime (${process.version}) does not provide the built-in node:sqlite module (requires Node >= 22.5).`
7013
+ reason: `this Node runtime (${process.version}) does not provide the built-in node:sqlite module (Make Docs requires Node >= 24.0.0 with node:sqlite enabled).`
7014
7014
  };
7015
7015
  }
7016
7016
  return cachedDriver;
@@ -7236,7 +7236,8 @@ function cleanupAccessDirectory(directory) {
7236
7236
  try {
7237
7237
  rmdirSync(directory);
7238
7238
  } catch (error) {
7239
- if (!(/* @__PURE__ */ new Set(["ENOENT", "ENOTEMPTY", "EEXIST"])).has(systemCode(error) ?? "")) {
7239
+ const code = systemCode(error);
7240
+ if (!(/* @__PURE__ */ new Set(["ENOENT", "ENOTEMPTY", "EEXIST"])).has(code ?? "") && !(platform.kind === "win32" && code === "EBUSY")) {
7240
7241
  throw new StoreUnavailableError(makeStoreIssue("io-error", directory, "clean session directory", error));
7241
7242
  }
7242
7243
  }
@@ -8344,7 +8345,7 @@ function normalizePath(relativePath) {
8344
8345
  // src/types.ts
8345
8346
  var CAPABILITIES = ["designs", "plans", "prd", "work"];
8346
8347
  var INSTRUCTION_KINDS = ["AGENTS.md", "CLAUDE.md"];
8347
- var HARNESSES = ["claude-code", "codex"];
8348
+ var HARNESSES = ["claude-code", "codex", "github-copilot"];
8348
8349
  var PROJECT_RESOURCE_TYPES = [
8349
8350
  "contract",
8350
8351
  "prompt",
@@ -8353,7 +8354,8 @@ var PROJECT_RESOURCE_TYPES = [
8353
8354
  ];
8354
8355
  var HARNESS_TO_INSTRUCTION = {
8355
8356
  "claude-code": "CLAUDE.md",
8356
- codex: "AGENTS.md"
8357
+ codex: "AGENTS.md",
8358
+ "github-copilot": "AGENTS.md"
8357
8359
  };
8358
8360
  var SYSTEM_ASSET_MATERIALIZATION_MODES = [
8359
8361
  "full-snapshot",
@@ -8776,7 +8778,7 @@ function isConfiguredRouterPath(profile, relativePath, instructionKind) {
8776
8778
  return getConfiguredRouterPaths(profile, instructionKind).includes(relativePath);
8777
8779
  }
8778
8780
  function getRouterTemplateSourcePath(profile, relativePath) {
8779
- if (relativePath === "docs/AGENTS.md" && profile.selections.harnesses.codex && !profile.selections.harnesses["claude-code"]) return "docs/AGENTS.codex-only.md";
8781
+ if (relativePath === "docs/AGENTS.md" && (profile.selections.harnesses.codex || profile.selections.harnesses["github-copilot"]) && !profile.selections.harnesses["claude-code"]) return "docs/AGENTS.codex-only.md";
8780
8782
  if (relativePath === "docs/CLAUDE.md" && profile.selections.harnesses["claude-code"] && !profile.selections.harnesses.codex) return "docs/CLAUDE.claude-only.md";
8781
8783
  return relativePath;
8782
8784
  }
@@ -9263,6 +9265,7 @@ function validateHarnesses(value) {
9263
9265
  assertPlainObject(value, "selections.harnesses");
9264
9266
  const harnesses = {};
9265
9267
  for (const harness of HARNESSES) {
9268
+ if (harness === "github-copilot" && value[harness] === void 0) continue;
9266
9269
  harnesses[harness] = validateBoolean(
9267
9270
  value[harness],
9268
9271
  `selections.harnesses.${harness}`
@@ -9678,7 +9681,7 @@ function validateRouterOwnershipManifestState(value, files, selections, packageM
9678
9681
  `manifest.routerOwnership.routers.${relativePath}.instructionKind must be valid`
9679
9682
  );
9680
9683
  }
9681
- const expectedInstruction = harness === "codex" ? "AGENTS.md" : "CLAUDE.md";
9684
+ const expectedInstruction = HARNESS_TO_INSTRUCTION[harness];
9682
9685
  if (instructionKind !== expectedInstruction) {
9683
9686
  throw new Error(
9684
9687
  `manifest.routerOwnership.routers.${relativePath}.instructionKind must match its harness`
@@ -9741,13 +9744,13 @@ function validateRouterOwnershipManifestState(value, files, selections, packageM
9741
9744
  }
9742
9745
  const bootstrapPaths = Object.values(routers).filter((router) => router.routerClass === "bootstrap").map((router) => router.relativePath).sort();
9743
9746
  const legacyBootstrapPaths = expectedHarnesses.flatMap((harness) => {
9744
- const instructionKind = harness === "codex" ? "AGENTS.md" : "CLAUDE.md";
9747
+ const instructionKind = HARNESS_TO_INSTRUCTION[harness];
9745
9748
  return getLegacyIncompleteRouterPaths(instructionKind);
9746
9749
  }).sort();
9747
9750
  const isExactLegacyIncompleteInput = JSON.stringify(bootstrapPaths) === JSON.stringify(legacyBootstrapPaths);
9748
9751
  if (!isExactLegacyIncompleteInput) {
9749
9752
  for (const harness of expectedHarnesses) {
9750
- const instructionKind = harness === "codex" ? "AGENTS.md" : "CLAUDE.md";
9753
+ const instructionKind = HARNESS_TO_INSTRUCTION[harness];
9751
9754
  for (const relativePath of getConfiguredRouterPaths(profile, instructionKind)) {
9752
9755
  if (!routers[relativePath]) {
9753
9756
  throw new Error(
@@ -10353,7 +10356,7 @@ function validateSkillSelectionProvenance(value) {
10353
10356
  entry.supportedHarnesses,
10354
10357
  `selections.skillSelectionProvenance.${index}.supportedHarnesses`
10355
10358
  ).map((harness) => {
10356
- if (harness !== "claude-code" && harness !== "codex") {
10359
+ if (harness !== "claude-code" && harness !== "codex" && harness !== "github-copilot") {
10357
10360
  throw new Error(
10358
10361
  `selections.skillSelectionProvenance.${index}.supportedHarnesses contains unsupported harness ${harness}`
10359
10362
  );
@@ -10465,7 +10468,7 @@ function validatePluginSelectionProvenance(value) {
10465
10468
  entry.supportedHarnesses,
10466
10469
  `selections.pluginSelectionProvenance.${index}.supportedHarnesses`
10467
10470
  ).map((harness) => {
10468
- if (harness !== "claude-code" && harness !== "codex") {
10471
+ if (harness !== "claude-code" && harness !== "codex" && harness !== "github-copilot") {
10469
10472
  throw new Error(
10470
10473
  `selections.pluginSelectionProvenance.${index}.supportedHarnesses contains unsupported harness ${harness}`
10471
10474
  );
@@ -10768,13 +10771,14 @@ function getContainedRelativePath2(root, candidate) {
10768
10771
  // src/skill-paths.ts
10769
10772
  import * as os3 from "os";
10770
10773
  import path8 from "path";
10771
- var HARNESS_SKILL_DIRS2 = { "claude-code": ".claude/skills", codex: ".agents/skills" };
10774
+ var HARNESS_SKILL_DIRS2 = { "claude-code": ".claude/skills", codex: ".agents/skills", "github-copilot": ".agents/skills" };
10772
10775
  function getCanonicalSkillDirectory(selections) {
10773
10776
  const tools = selections.skillHarnesses ?? selections.harnesses;
10774
- return selections.skillScope === "project" && !tools.codex && tools["claude-code"] ? ".claude/skills" : ".agents/skills";
10777
+ return selections.skillScope === "project" && !tools.codex && !tools["github-copilot"] && tools["claude-code"] ? ".claude/skills" : ".agents/skills";
10775
10778
  }
10776
10779
  function getHarnessSkillDirectory(harness, scope, homeDir = os3.homedir()) {
10777
10780
  if (scope === "project") return HARNESS_SKILL_DIRS2[harness];
10781
+ if (harness === "github-copilot") return path8.join(homeDir, ".agents", "skills");
10778
10782
  const configuredHome = harness === "codex" ? process.env.CODEX_HOME : process.env.CLAUDE_CONFIG_DIR;
10779
10783
  return path8.join(configuredHome ? path8.resolve(configuredHome) : path8.join(homeDir, harness === "codex" ? ".codex" : ".claude"), "skills");
10780
10784
  }
@@ -12454,7 +12458,8 @@ var PROVENANCE_KINDS = /* @__PURE__ */ new Set([
12454
12458
  ]);
12455
12459
  var SUPPORTED_HARNESSES = /* @__PURE__ */ new Set([
12456
12460
  "claude-code",
12457
- "codex"
12461
+ "codex",
12462
+ "github-copilot"
12458
12463
  ]);
12459
12464
  function loadSkillRegistry(packageRoot) {
12460
12465
  const registryPath = path10.join(packageRoot, REGISTRY_FILENAME);
@@ -12975,7 +12980,7 @@ function validateEmbeddedSkillBundle(candidate) {
12975
12980
  }
12976
12981
  async function loadEmbeddedSkillBundle() {
12977
12982
  try {
12978
- const { bundle, sourceTestAdapter } = await import("./virtual_make-docs-first-party-skills-VXSUUHTL.js");
12983
+ const { bundle, sourceTestAdapter } = await import("./virtual_make-docs-first-party-skills-ECJESFL2.js");
12979
12984
  validateEmbeddedSkillBundle(bundle);
12980
12985
  const [registryBytes, packageBytes] = await Promise.all([
12981
12986
  readFile(path11.join(PACKAGE_ROOT, "skill-registry.json")),
@@ -13992,4 +13997,4 @@ export {
13992
13997
  getRecommendedSkillChoices,
13993
13998
  applySkillRegistrySelectionMetadata
13994
13999
  };
13995
- //# sourceMappingURL=chunk-U25GFKNZ.js.map
14000
+ //# sourceMappingURL=chunk-HXWD2EUD.js.map