@brucewaynedecoy/make-docs 2.0.8 → 2.0.9

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 (62) hide show
  1. package/dist/{backup-BLN6XCAS.js → backup-EBZZZL74.js} +4 -4
  2. package/dist/{chunk-MUQ2KL22.js → chunk-2Z7KRD4H.js} +2 -2
  3. package/dist/{chunk-XGTKLLI3.js → chunk-5XKMSGMS.js} +428 -29
  4. package/dist/{chunk-XGTKLLI3.js.map → chunk-5XKMSGMS.js.map} +1 -1
  5. package/dist/{chunk-G5BT3GGK.js → chunk-ABKEBYCF.js} +3 -3
  6. package/dist/{chunk-I3BO4LEF.js → chunk-DZ3SA3JA.js} +18 -5
  7. package/dist/{chunk-I3BO4LEF.js.map → chunk-DZ3SA3JA.js.map} +1 -1
  8. package/dist/{chunk-ILII44MP.js → chunk-HZ4QLB7L.js} +3 -3
  9. package/dist/{chunk-4OMXLXXY.js → chunk-KKXJTVMH.js} +3 -3
  10. package/dist/{chunk-L7UI56GS.js → chunk-MESLJI5A.js} +2 -2
  11. package/dist/{chunk-ANZ4AJG7.js → chunk-USVCSYS5.js} +2 -2
  12. package/dist/{chunk-EZ7FEZTG.js → chunk-VCC4D5I3.js} +2 -2
  13. package/dist/{chunk-GMIVJ7MS.js → chunk-X6TAWRTO.js} +147 -127
  14. package/dist/chunk-X6TAWRTO.js.map +1 -0
  15. package/dist/index.js +41 -24
  16. package/dist/index.js.map +1 -1
  17. package/dist/{registry-7TE6OMSU.js → registry-XNCQALXP.js} +7 -7
  18. package/dist/{self-DIK2M5CA.js → self-LDLIIKFW.js} +7 -7
  19. package/dist/{server-IEI2UXRK.js → server-G2UO2NOT.js} +10 -10
  20. package/dist/{server-IEI2UXRK.js.map → server-G2UO2NOT.js.map} +1 -1
  21. package/dist/{setup-system-SPZE6PYP.js → setup-system-2MZMQ3MX.js} +7 -7
  22. package/dist/{skills-command-ZPQG23OM.js → skills-command-VE4GRWI2.js} +53 -17
  23. package/dist/skills-command-VE4GRWI2.js.map +1 -0
  24. package/dist/{uninstall-BMDNLD6L.js → uninstall-EJF6HCYI.js} +7 -7
  25. package/dist/virtual_make-docs-first-party-skills-CLTQEIKC.js +11 -0
  26. package/dist/virtual_make-docs-first-party-skills-CLTQEIKC.js.map +1 -0
  27. package/package.json +1 -1
  28. package/template/.make-docs/system/contracts/design-contract.md +1 -1
  29. package/template/.make-docs/system/contracts/output-contract.md +3 -2
  30. package/template/.make-docs/system/prompts/designs-to-plan-change.prompt.md +2 -2
  31. package/template/.make-docs/system/prompts/prd-change-to-work.prompt.md +2 -2
  32. package/template/.make-docs/system/references/execution-workflow.md +5 -5
  33. package/template/.make-docs/system/references/lifecycle.md +3 -0
  34. package/template/.make-docs/system/references/planning-workflow.md +8 -8
  35. package/template/.make-docs/system/references/prd-change-management.md +2 -2
  36. package/template/.make-docs/system/references/wave-model.md +126 -14
  37. package/template/.make-docs/system/templates/plan-overview.md +17 -2
  38. package/template/.make-docs/system/templates/plan-prd-change.md +21 -6
  39. package/template/.make-docs/system/templates/plan-prd-decompose.md +17 -2
  40. package/template/.make-docs/system/templates/plan-prd.md +17 -2
  41. package/template/.make-docs/system/templates/work-index.md +15 -0
  42. package/template/.make-docs/system/templates/work-phase.md +3 -0
  43. package/template/docs/plans/AGENTS.md +1 -1
  44. package/template/docs/plans/CLAUDE.md +1 -1
  45. package/template/docs/work/AGENTS.md +1 -0
  46. package/template/docs/work/CLAUDE.md +1 -0
  47. package/dist/chunk-GMIVJ7MS.js.map +0 -1
  48. package/dist/skills-command-ZPQG23OM.js.map +0 -1
  49. package/dist/virtual_make-docs-first-party-skills-BGO3TGHN.js +0 -11
  50. package/dist/virtual_make-docs-first-party-skills-BGO3TGHN.js.map +0 -1
  51. /package/dist/{backup-BLN6XCAS.js.map → backup-EBZZZL74.js.map} +0 -0
  52. /package/dist/{chunk-MUQ2KL22.js.map → chunk-2Z7KRD4H.js.map} +0 -0
  53. /package/dist/{chunk-G5BT3GGK.js.map → chunk-ABKEBYCF.js.map} +0 -0
  54. /package/dist/{chunk-ILII44MP.js.map → chunk-HZ4QLB7L.js.map} +0 -0
  55. /package/dist/{chunk-4OMXLXXY.js.map → chunk-KKXJTVMH.js.map} +0 -0
  56. /package/dist/{chunk-L7UI56GS.js.map → chunk-MESLJI5A.js.map} +0 -0
  57. /package/dist/{chunk-ANZ4AJG7.js.map → chunk-USVCSYS5.js.map} +0 -0
  58. /package/dist/{chunk-EZ7FEZTG.js.map → chunk-VCC4D5I3.js.map} +0 -0
  59. /package/dist/{registry-7TE6OMSU.js.map → registry-XNCQALXP.js.map} +0 -0
  60. /package/dist/{self-DIK2M5CA.js.map → self-LDLIIKFW.js.map} +0 -0
  61. /package/dist/{setup-system-SPZE6PYP.js.map → setup-system-2MZMQ3MX.js.map} +0 -0
  62. /package/dist/{uninstall-BMDNLD6L.js.map → uninstall-EJF6HCYI.js.map} +0 -0
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  createAuditReport,
4
4
  getProjectBackupRoot
5
- } from "./chunk-ANZ4AJG7.js";
5
+ } from "./chunk-USVCSYS5.js";
6
6
  import {
7
7
  confirm,
8
8
  intro,
@@ -16,7 +16,7 @@ import {
16
16
  preparePlannedFileChange,
17
17
  sealInstallationOperation,
18
18
  withInstallationOperation
19
- } from "./chunk-GMIVJ7MS.js";
19
+ } from "./chunk-X6TAWRTO.js";
20
20
 
21
21
  // src/backup.ts
22
22
  import {
@@ -520,4 +520,4 @@ export {
520
520
  executePreparedBackup,
521
521
  resolveBackupDestinationPlan
522
522
  };
523
- //# sourceMappingURL=chunk-G5BT3GGK.js.map
523
+ //# sourceMappingURL=chunk-ABKEBYCF.js.map
@@ -7,12 +7,12 @@ import {
7
7
  prepareInstallationRemoval,
8
8
  pruneInstallationParents,
9
9
  removeInstallationPath
10
- } from "./chunk-EZ7FEZTG.js";
10
+ } from "./chunk-VCC4D5I3.js";
11
11
  import {
12
12
  NO_ACCESS,
13
13
  getFirstPartyHarnessAdapter,
14
14
  validateHarnessMethodSelection
15
- } from "./chunk-MUQ2KL22.js";
15
+ } from "./chunk-2Z7KRD4H.js";
16
16
  import {
17
17
  CONFLICTS_RELATIVE_DIR,
18
18
  DEFAULT_SYSTEM_ASSET_MATERIALIZATION_MODE,
@@ -73,10 +73,11 @@ import {
73
73
  sealInstallationOperation,
74
74
  stringify,
75
75
  upsertManagedBlock,
76
+ validateAndMigrateManifest,
76
77
  withInstallationOperation,
77
78
  writeContentFile,
78
79
  writeManifest
79
- } from "./chunk-GMIVJ7MS.js";
80
+ } from "./chunk-X6TAWRTO.js";
80
81
 
81
82
  // src/config.ts
82
83
  import { existsSync, readFileSync } from "fs";
@@ -4260,6 +4261,11 @@ async function buildSkillAdoptionReview(options) {
4260
4261
  for (const p of Object.keys(files)) if (legacySkillRoot(p) || beforeLedger?.files[p]?.skillExposure && !desiredFiles[p] && after[p]?.kind === "directory") delete files[p];
4261
4262
  const skillFiles = [.../* @__PURE__ */ new Set([...beforeLedger?.skillFiles ?? [], ...normal.desiredSkillFiles])].filter((p) => !!files[p] && !normal.actions.some((a) => a.relativePath === p && a.type === "remove-managed"));
4262
4263
  const afterLedger = createManifest(packageMeta, normal.profile, files, skillFiles, beforeLedger?.systemAssetMaterialization ?? normal.systemAssetMaterialization, projectId, normal.routerOwnership, normal.resourceProjection);
4264
+ try {
4265
+ validateAndMigrateManifest(JSON.parse(JSON.stringify(afterLedger)), "Prepared Skill adoption ledger");
4266
+ } catch (error) {
4267
+ blockers.push(beforeLedger && beforeLedger.packageVersion !== packageMeta.version ? `This install was recorded by make-docs ${beforeLedger.packageVersion}, and this CLI is ${packageMeta.version}. Run \`make-docs setup\` first so the install records ${packageMeta.version}, then create a new adoption review.` : `The prepared Skill adoption ledger is not valid: ${error instanceof Error ? error.message : String(error)}`);
4268
+ }
4263
4269
  const ownershipChanges = [.../* @__PURE__ */ new Set([...Object.keys(beforeLedger?.files ?? {}), ...Object.keys(files)])].filter((p) => roots.some((root) => under(p, root))).map((p) => ({ path: p, effect: !beforeLedger?.files[p] ? "register" : !files[p] ? "remove" : isDeepStrictEqual3(beforeLedger.files[p], files[p]) ? "retain" : "update", before: beforeLedger?.files[p] ?? null, after: files[p] ?? null }));
4264
4270
  const changes = changesBetween(before, after);
4265
4271
  const filtered = changes.filter((c) => !(c.after.kind === "missing" && !roots.some((root) => under(c.path, root)) && !exactPaths.includes(c.path) && !cleanupPaths.includes(c.path)));
@@ -4271,6 +4277,9 @@ async function buildSkillAdoptionReview(options) {
4271
4277
  const intermediateStates = {};
4272
4278
  for (const change of filteredChanges) (intermediateStates[change.path] ??= []).push(change.before, change.after);
4273
4279
  const review = { schemaVersion: 1, targetRoot, digest, packageDigest, package: packageMeta, selections, adoptExisting: names, roots, cleanupPaths, bootstrapPaths, before, after, alternatives, intermediateStates, backups, claims, beforeLedger, blockers: [...new Set(blockers)].sort(), ownershipChanges, plan: void 0 };
4280
+ for (const exposure of Object.keys(copyFallbacks)) {
4281
+ if (!filteredChanges.some((change) => change.path === exposure && change.before.kind === "missing" && change.after.kind === "symlink")) delete copyFallbacks[exposure];
4282
+ }
4274
4283
  review.plan = { schemaVersion: 1, reviewDigest: digest, mode: "cli", metadata: void 0, changes: filteredChanges, afterLedger, skillScope: { roots, symlinkTargets, beforeSymlinkTargets, bootstrapPaths, backupRoots: backups.length ? [backupRoot] : [] }, copyFallbacks };
4275
4284
  review.plan.metadata = { ...review, plan: void 0 };
4276
4285
  return review;
@@ -4338,13 +4347,16 @@ function verifySkillAdoptionBeforeCleanup(root, metadata) {
4338
4347
  }
4339
4348
  return verifySkillAdoption(root, { ...review, after }, "after");
4340
4349
  }
4350
+ function skillAdoptionRecoveryAction(root, operationId) {
4351
+ return `Inspect make-docs project state recover ${operationId} --resume --dry-run --target-root ${JSON.stringify(root)}.`;
4352
+ }
4341
4353
  var recoveryRegistered = false;
4342
4354
  function registerSkillAdoptionRecovery() {
4343
4355
  if (recoveryRegistered) return;
4344
4356
  registerDetachedInstallationOperation(OPERATION, {
4345
4357
  validate: verifySkillAdoption,
4346
4358
  beforeRetiredCleanup: verifySkillAdoptionBeforeCleanup,
4347
- nextAction: (root, id) => `Inspect make-docs project state recover ${id} --resume --dry-run --target-root ${JSON.stringify(root)}.`
4359
+ nextAction: skillAdoptionRecoveryAction
4348
4360
  });
4349
4361
  recoveryRegistered = true;
4350
4362
  }
@@ -4398,7 +4410,8 @@ export {
4398
4410
  applySkillsOnlyInstallPlan,
4399
4411
  buildSkillAdoptionReview,
4400
4412
  presentSkillAdoptionReview,
4413
+ skillAdoptionRecoveryAction,
4401
4414
  registerSkillAdoptionRecovery,
4402
4415
  applySkillAdoptionReview
4403
4416
  };
4404
- //# sourceMappingURL=chunk-I3BO4LEF.js.map
4417
+ //# sourceMappingURL=chunk-DZ3SA3JA.js.map