@brucewaynedecoy/make-docs 2.0.4 → 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.
- package/dist/{backup-CM7RL2Q7.js → backup-2OT4A6LR.js} +4 -4
- package/dist/{chunk-GERMRLJ2.js → chunk-46MGH32G.js} +6 -4
- package/dist/chunk-46MGH32G.js.map +1 -0
- package/dist/{chunk-LV3CBXZB.js → chunk-CCYP5NU2.js} +3 -3
- package/dist/{chunk-OR5ZVGLG.js → chunk-CLSOY7NV.js} +151 -5
- package/dist/chunk-CLSOY7NV.js.map +1 -0
- package/dist/{chunk-ADVNSMA7.js → chunk-CMNKQM7L.js} +3 -3
- package/dist/{chunk-YVSASZMT.js → chunk-HXWD2EUD.js} +19 -14
- package/dist/chunk-HXWD2EUD.js.map +1 -0
- package/dist/{chunk-65QWMODG.js → chunk-I4FADOUK.js} +3 -3
- package/dist/{chunk-65QWMODG.js.map → chunk-I4FADOUK.js.map} +1 -1
- package/dist/{chunk-M7DMFIKU.js → chunk-ISSMVKIA.js} +224 -20
- package/dist/chunk-ISSMVKIA.js.map +1 -0
- package/dist/{chunk-J5QDGRZ7.js → chunk-UNR4CYVX.js} +116 -37
- package/dist/chunk-UNR4CYVX.js.map +1 -0
- package/dist/{chunk-7R2PPKTB.js → chunk-VMKG3H4B.js} +2 -2
- package/dist/{chunk-52FTNVXS.js → chunk-XDSWX4Y4.js} +8906 -2899
- package/dist/chunk-XDSWX4Y4.js.map +1 -0
- package/dist/index.js +210 -86
- package/dist/index.js.map +1 -1
- package/dist/registry-PC5GKAKM.js +50 -0
- package/dist/registry-PC5GKAKM.js.map +1 -0
- package/dist/{self-36ULRIJ6.js → self-WYVXO23B.js} +10 -10
- package/dist/server-BQOG6FTA.js +1113 -0
- package/dist/server-BQOG6FTA.js.map +1 -0
- package/dist/{setup-system-JI36YJ6D.js → setup-system-KN7FTTLT.js} +263 -40
- package/dist/setup-system-KN7FTTLT.js.map +1 -0
- package/dist/{skills-command-IGDVLNKY.js → skills-command-KEW7MOEW.js} +17 -7
- package/dist/skills-command-KEW7MOEW.js.map +1 -0
- package/dist/{uninstall-VBGMQQLA.js → uninstall-45XF4CHD.js} +9 -9
- package/dist/virtual_make-docs-first-party-skills-ECJESFL2.js +11 -0
- package/dist/virtual_make-docs-first-party-skills-ECJESFL2.js.map +1 -0
- package/package.json +5 -5
- package/skill-registry.json +24 -8
- package/skill-registry.schema.json +2 -1
- package/template/.make-docs/system/contracts/system-resource-contract.md +16 -0
- package/template/.make-docs/system-resources.catalog.json +415 -0
- package/template/.make-docs/system-resources.schema.json +25 -0
- package/dist/chunk-52FTNVXS.js.map +0 -1
- package/dist/chunk-GERMRLJ2.js.map +0 -1
- package/dist/chunk-J5QDGRZ7.js.map +0 -1
- package/dist/chunk-M7DMFIKU.js.map +0 -1
- package/dist/chunk-OR5ZVGLG.js.map +0 -1
- package/dist/chunk-YVSASZMT.js.map +0 -1
- package/dist/server-H754TA4Q.js +0 -512
- package/dist/server-H754TA4Q.js.map +0 -1
- package/dist/setup-system-JI36YJ6D.js.map +0 -1
- package/dist/skills-command-IGDVLNKY.js.map +0 -1
- package/dist/virtual_make-docs-first-party-skills-H3FC47C2.js +0 -11
- package/dist/virtual_make-docs-first-party-skills-H3FC47C2.js.map +0 -1
- /package/dist/{backup-CM7RL2Q7.js.map → backup-2OT4A6LR.js.map} +0 -0
- /package/dist/{chunk-LV3CBXZB.js.map → chunk-CCYP5NU2.js.map} +0 -0
- /package/dist/{chunk-ADVNSMA7.js.map → chunk-CMNKQM7L.js.map} +0 -0
- /package/dist/{chunk-7R2PPKTB.js.map → chunk-VMKG3H4B.js.map} +0 -0
- /package/dist/{self-36ULRIJ6.js.map → self-WYVXO23B.js.map} +0 -0
- /package/dist/{uninstall-VBGMQQLA.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-
|
|
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-
|
|
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-
|
|
875
|
+
//# sourceMappingURL=chunk-CMNKQM7L.js.map
|
|
@@ -7236,7 +7236,8 @@ function cleanupAccessDirectory(directory) {
|
|
|
7236
7236
|
try {
|
|
7237
7237
|
rmdirSync(directory);
|
|
7238
7238
|
} catch (error) {
|
|
7239
|
-
|
|
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
|
|
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
|
|
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
|
|
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-
|
|
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-
|
|
14000
|
+
//# sourceMappingURL=chunk-HXWD2EUD.js.map
|