@brucewaynedecoy/make-docs 2.0.7 → 2.0.8
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-M5RBOM6F.js → backup-BLN6XCAS.js} +4 -4
- package/dist/{chunk-YJLVHT4J.js → chunk-4OMXLXXY.js} +13 -9
- package/dist/chunk-4OMXLXXY.js.map +1 -0
- package/dist/{chunk-5WR4D6HH.js → chunk-ANZ4AJG7.js} +13 -2
- package/dist/chunk-ANZ4AJG7.js.map +1 -0
- package/dist/{chunk-3ZFX5456.js → chunk-EZ7FEZTG.js} +2 -2
- package/dist/{chunk-O27AYYF3.js → chunk-G5BT3GGK.js} +3 -3
- package/dist/{chunk-C67WJWVP.js → chunk-GMIVJ7MS.js} +3 -2
- package/dist/{chunk-C67WJWVP.js.map → chunk-GMIVJ7MS.js.map} +1 -1
- package/dist/{chunk-B6HJRHWL.js → chunk-I3BO4LEF.js} +56 -11
- package/dist/chunk-I3BO4LEF.js.map +1 -0
- package/dist/{chunk-65TAUWTC.js → chunk-ILII44MP.js} +3 -3
- package/dist/{chunk-7AVGITZK.js → chunk-L7UI56GS.js} +2 -2
- package/dist/{chunk-Z4KZ4JTE.js → chunk-MUQ2KL22.js} +2 -2
- package/dist/{chunk-OSS4NT6N.js → chunk-XGTKLLI3.js} +7 -7
- package/dist/index.js +19 -19
- package/dist/{registry-7L26WFZP.js → registry-7TE6OMSU.js} +7 -7
- package/dist/{self-4HOKEXBV.js → self-DIK2M5CA.js} +7 -7
- package/dist/{server-VXVGDWRY.js → server-IEI2UXRK.js} +9 -9
- package/dist/{setup-system-CJESBAQ5.js → setup-system-SPZE6PYP.js} +7 -7
- package/dist/{skills-command-YXPOHXI2.js → skills-command-ZPQG23OM.js} +6 -6
- package/dist/{uninstall-R2QK7XPK.js → uninstall-BMDNLD6L.js} +7 -7
- package/dist/{virtual_make-docs-first-party-skills-POWW3OI3.js → virtual_make-docs-first-party-skills-BGO3TGHN.js} +2 -2
- package/dist/{virtual_make-docs-first-party-skills-POWW3OI3.js.map → virtual_make-docs-first-party-skills-BGO3TGHN.js.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-5WR4D6HH.js.map +0 -1
- package/dist/chunk-B6HJRHWL.js.map +0 -1
- package/dist/chunk-YJLVHT4J.js.map +0 -1
- /package/dist/{backup-M5RBOM6F.js.map → backup-BLN6XCAS.js.map} +0 -0
- /package/dist/{chunk-3ZFX5456.js.map → chunk-EZ7FEZTG.js.map} +0 -0
- /package/dist/{chunk-O27AYYF3.js.map → chunk-G5BT3GGK.js.map} +0 -0
- /package/dist/{chunk-65TAUWTC.js.map → chunk-ILII44MP.js.map} +0 -0
- /package/dist/{chunk-7AVGITZK.js.map → chunk-L7UI56GS.js.map} +0 -0
- /package/dist/{chunk-Z4KZ4JTE.js.map → chunk-MUQ2KL22.js.map} +0 -0
- /package/dist/{chunk-OSS4NT6N.js.map → chunk-XGTKLLI3.js.map} +0 -0
- /package/dist/{registry-7L26WFZP.js.map → registry-7TE6OMSU.js.map} +0 -0
- /package/dist/{self-4HOKEXBV.js.map → self-DIK2M5CA.js.map} +0 -0
- /package/dist/{server-VXVGDWRY.js.map → server-IEI2UXRK.js.map} +0 -0
- /package/dist/{setup-system-CJESBAQ5.js.map → setup-system-SPZE6PYP.js.map} +0 -0
- /package/dist/{skills-command-YXPOHXI2.js.map → skills-command-ZPQG23OM.js.map} +0 -0
- /package/dist/{uninstall-R2QK7XPK.js.map → uninstall-BMDNLD6L.js.map} +0 -0
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
prepareInstallationRemoval,
|
|
8
8
|
pruneInstallationParents,
|
|
9
9
|
removeInstallationPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EZ7FEZTG.js";
|
|
11
11
|
import {
|
|
12
12
|
NO_ACCESS,
|
|
13
13
|
getFirstPartyHarnessAdapter,
|
|
14
14
|
validateHarnessMethodSelection
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MUQ2KL22.js";
|
|
16
16
|
import {
|
|
17
17
|
CONFLICTS_RELATIVE_DIR,
|
|
18
18
|
DEFAULT_SYSTEM_ASSET_MATERIALIZATION_MODE,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
withInstallationOperation,
|
|
77
77
|
writeContentFile,
|
|
78
78
|
writeManifest
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-GMIVJ7MS.js";
|
|
80
80
|
|
|
81
81
|
// src/config.ts
|
|
82
82
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -2039,8 +2039,13 @@ async function createInstallPlan(options) {
|
|
|
2039
2039
|
targetDir,
|
|
2040
2040
|
profile,
|
|
2041
2041
|
existingManifest,
|
|
2042
|
+
adopt: options.adopt,
|
|
2042
2043
|
completedRemovalHandoff: options.completedRemovalHandoff
|
|
2043
2044
|
});
|
|
2045
|
+
const carriedOnDemandRouterPaths = new Set(
|
|
2046
|
+
carriedOnDemandRouterAssets.map((asset) => asset.relativePath)
|
|
2047
|
+
);
|
|
2048
|
+
const priorPortableAdoption = hasPriorPortableAdoptionProof(existingManifest);
|
|
2044
2049
|
const routerAssets = [...thinRouterAssets, ...carriedOnDemandRouterAssets];
|
|
2045
2050
|
const thinRouterPaths = new Set(
|
|
2046
2051
|
thinRouterAssets.map((asset) => asset.relativePath)
|
|
@@ -2186,6 +2191,34 @@ async function createInstallPlan(options) {
|
|
|
2186
2191
|
});
|
|
2187
2192
|
continue;
|
|
2188
2193
|
}
|
|
2194
|
+
const priorAdoptionGapRouter = priorPortableAdoption && carriedOnDemandRouterPaths.has(asset.relativePath) && !manifestEntry && !existingManifest?.routerOwnership?.routers[asset.relativePath];
|
|
2195
|
+
if (priorAdoptionGapRouter) {
|
|
2196
|
+
if (currentHash !== null && parseManagedBlock(currentContent).state === "valid") {
|
|
2197
|
+
desiredFiles[asset.relativePath] = {
|
|
2198
|
+
hash: currentHash,
|
|
2199
|
+
sourceId: asset.sourceId,
|
|
2200
|
+
ownershipClass: "project-owned"
|
|
2201
|
+
};
|
|
2202
|
+
forceManifestWrite = true;
|
|
2203
|
+
actions.push({
|
|
2204
|
+
type: "noop",
|
|
2205
|
+
relativePath: asset.relativePath,
|
|
2206
|
+
sourceId: asset.sourceId,
|
|
2207
|
+
reviewedConflictResolution: "skip",
|
|
2208
|
+
contentHash: currentHash,
|
|
2209
|
+
reason: "Keep the router omitted from the prior portable-adoption ledger."
|
|
2210
|
+
});
|
|
2211
|
+
} else {
|
|
2212
|
+
conflictsRunId ??= createRunId();
|
|
2213
|
+
actions.push({
|
|
2214
|
+
type: "skip-conflict",
|
|
2215
|
+
relativePath: asset.relativePath,
|
|
2216
|
+
sourceId: asset.sourceId,
|
|
2217
|
+
reason: "The router omitted from the prior adoption has no valid managed block."
|
|
2218
|
+
});
|
|
2219
|
+
}
|
|
2220
|
+
continue;
|
|
2221
|
+
}
|
|
2189
2222
|
if (currentHash === desiredHash) {
|
|
2190
2223
|
actions.push({
|
|
2191
2224
|
type: "noop",
|
|
@@ -2280,7 +2313,7 @@ async function createInstallPlan(options) {
|
|
|
2280
2313
|
manifestEntry,
|
|
2281
2314
|
currentHash
|
|
2282
2315
|
);
|
|
2283
|
-
if (migrationContent) {
|
|
2316
|
+
if (migrationContent && !(options.adopt && conflictResolution === "skip")) {
|
|
2284
2317
|
actions.push({
|
|
2285
2318
|
type: "update",
|
|
2286
2319
|
relativePath: asset.relativePath,
|
|
@@ -2347,6 +2380,7 @@ async function createInstallPlan(options) {
|
|
|
2347
2380
|
});
|
|
2348
2381
|
continue;
|
|
2349
2382
|
}
|
|
2383
|
+
if (options.adopt) delete desiredFiles[asset.relativePath];
|
|
2350
2384
|
actions.push({
|
|
2351
2385
|
type: "skip",
|
|
2352
2386
|
relativePath: asset.relativePath,
|
|
@@ -2589,13 +2623,17 @@ async function createInstallPlan(options) {
|
|
|
2589
2623
|
});
|
|
2590
2624
|
for (const [relativePath, router] of Object.entries(routerOwnership.routers)) {
|
|
2591
2625
|
const file2 = desiredFiles[relativePath];
|
|
2626
|
+
if (options.adopt && !file2) {
|
|
2627
|
+
delete routerOwnership.routers[relativePath];
|
|
2628
|
+
continue;
|
|
2629
|
+
}
|
|
2592
2630
|
if (file2?.ownershipClass === "project-owned") {
|
|
2593
2631
|
router.ownershipClass = "project-owned";
|
|
2594
2632
|
router.installedHash = file2.hash;
|
|
2595
2633
|
router.adoptionReceipt = existingManifest?.routerOwnership?.routers[relativePath]?.adoptionReceipt ?? {
|
|
2596
2634
|
receiptId: hashText(`portable-router:${relativePath}:${file2.hash}`),
|
|
2597
2635
|
adoptedAt: verifiedAt,
|
|
2598
|
-
priorOwnershipClass: existingManifest ? "managed-snapshot" : "unregistered",
|
|
2636
|
+
priorOwnershipClass: existingManifest?.routerOwnership?.routers[relativePath] ? "managed-snapshot" : "unregistered",
|
|
2599
2637
|
evidenceRefs: [`project-file:${relativePath}`]
|
|
2600
2638
|
};
|
|
2601
2639
|
}
|
|
@@ -3428,9 +3466,16 @@ function schemaOneSurfaceHasPreservedContent(options) {
|
|
|
3428
3466
|
});
|
|
3429
3467
|
return visit(surfaceRoot);
|
|
3430
3468
|
}
|
|
3469
|
+
function hasPriorPortableAdoptionProof(manifest) {
|
|
3470
|
+
if (manifest?.packageVersion !== "2.0.7") return false;
|
|
3471
|
+
return Object.entries(manifest.routerOwnership?.routers ?? {}).some(([relativePath, router]) => {
|
|
3472
|
+
const file2 = manifest.files[relativePath];
|
|
3473
|
+
return router.ownershipClass === "project-owned" && router.provenanceState === "verified" && router.lifecycleDisposition === "active" && router.adoptionReceipt?.priorOwnershipClass === "unregistered" && router.installedHash === file2?.hash && router.sourceId === file2?.sourceId && file2?.ownershipClass === "project-owned";
|
|
3474
|
+
});
|
|
3475
|
+
}
|
|
3431
3476
|
function getCarriedOnDemandRouterAssets(options) {
|
|
3432
3477
|
const manifest = options.existingManifest;
|
|
3433
|
-
if (!manifest || !manifest.routerOwnership && !options.completedRemovalHandoff && manifest.schemaVersion !== 1) {
|
|
3478
|
+
if (!manifest && !options.adopt || manifest && !manifest.routerOwnership && !options.completedRemovalHandoff && manifest.schemaVersion !== 1) {
|
|
3434
3479
|
return [];
|
|
3435
3480
|
}
|
|
3436
3481
|
const surfaceDirectories = {
|
|
@@ -3440,7 +3485,7 @@ function getCarriedOnDemandRouterAssets(options) {
|
|
|
3440
3485
|
const assets = [];
|
|
3441
3486
|
for (const [surface, directory] of Object.entries(surfaceDirectories)) {
|
|
3442
3487
|
const surfaceExists = existsSync4(path6.join(options.targetDir, directory));
|
|
3443
|
-
const schemaOneSurfaceNeedsRouters = manifest
|
|
3488
|
+
const schemaOneSurfaceNeedsRouters = manifest?.schemaVersion === 1 && schemaOneSurfaceHasPreservedContent({
|
|
3444
3489
|
targetDir: options.targetDir,
|
|
3445
3490
|
directory,
|
|
3446
3491
|
manifest
|
|
@@ -3449,10 +3494,10 @@ function getCarriedOnDemandRouterAssets(options) {
|
|
|
3449
3494
|
options.profile,
|
|
3450
3495
|
surface
|
|
3451
3496
|
)) {
|
|
3452
|
-
const proof = manifest
|
|
3453
|
-
const file2 = manifest
|
|
3497
|
+
const proof = manifest?.routerOwnership?.routers[asset.relativePath];
|
|
3498
|
+
const file2 = manifest?.files[asset.relativePath];
|
|
3454
3499
|
const completedRemovalFileProof = options.completedRemovalHandoff === true && file2?.sourceId === asset.sourceId && (file2.ownershipClass === void 0 || file2.ownershipClass === "managed-block");
|
|
3455
|
-
if (completedRemovalFileProof || schemaOneSurfaceNeedsRouters || surfaceExists && (!proof || proof.routerClass === "bootstrap" || proof.routerClass === "on-demand-surface") && (!proof || proof.provenanceState === "verified" && proof.ownershipClass === "managed-snapshot" && proof.lifecycleDisposition === "active" && proof.sourceId === asset.sourceId && file2?.sourceId === asset.sourceId && file2.ownershipClass === "managed-block")) {
|
|
3500
|
+
if (options.adopt && surfaceExists || completedRemovalFileProof || schemaOneSurfaceNeedsRouters || surfaceExists && (!proof || proof.routerClass === "bootstrap" || proof.routerClass === "on-demand-surface") && (!proof || proof.provenanceState === "verified" && proof.ownershipClass === "managed-snapshot" && proof.lifecycleDisposition === "active" && proof.sourceId === asset.sourceId && file2?.sourceId === asset.sourceId && file2.ownershipClass === "managed-block" || proof.provenanceState === "verified" && proof.ownershipClass === "project-owned" && proof.lifecycleDisposition === "active" && proof.sourceId === asset.sourceId && proof.installedHash === file2?.hash && Boolean(proof.adoptionReceipt) && file2?.sourceId === asset.sourceId && file2.ownershipClass === "project-owned")) {
|
|
3456
3501
|
assets.push(asset);
|
|
3457
3502
|
}
|
|
3458
3503
|
}
|
|
@@ -4356,4 +4401,4 @@ export {
|
|
|
4356
4401
|
registerSkillAdoptionRecovery,
|
|
4357
4402
|
applySkillAdoptionReview
|
|
4358
4403
|
};
|
|
4359
|
-
//# sourceMappingURL=chunk-
|
|
4404
|
+
//# sourceMappingURL=chunk-I3BO4LEF.js.map
|