@brucewaynedecoy/make-docs 2.0.5 → 2.0.6
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-2OT4A6LR.js → backup-P5NUPAJL.js} +4 -4
- package/dist/{chunk-ISSMVKIA.js → chunk-2WC74W66.js} +2 -2
- package/dist/{chunk-CLSOY7NV.js → chunk-B7QF7XZT.js} +4 -4
- package/dist/{chunk-CCYP5NU2.js → chunk-DNPFQB24.js} +3 -3
- package/dist/{chunk-XDSWX4Y4.js → chunk-EF47XIIR.js} +87 -8
- package/dist/chunk-EF47XIIR.js.map +1 -0
- package/dist/{chunk-46MGH32G.js → chunk-KFYUB4AX.js} +2 -2
- package/dist/{chunk-CMNKQM7L.js → chunk-LK6BLVZA.js} +3 -3
- package/dist/{chunk-I4FADOUK.js → chunk-PI7W5QDB.js} +2 -2
- package/dist/{chunk-HXWD2EUD.js → chunk-SFKYGFUV.js} +260 -67
- package/dist/chunk-SFKYGFUV.js.map +1 -0
- package/dist/{chunk-UNR4CYVX.js → chunk-TDB6UW4M.js} +3 -3
- package/dist/{chunk-VMKG3H4B.js → chunk-XFFESINU.js} +2 -2
- package/dist/index.js +217 -19
- package/dist/index.js.map +1 -1
- package/dist/{registry-PC5GKAKM.js → registry-44WLX4F5.js} +7 -7
- package/dist/{self-WYVXO23B.js → self-WRWI5XNE.js} +7 -7
- package/dist/{server-BQOG6FTA.js → server-FYRDPOBR.js} +13 -9
- package/dist/server-FYRDPOBR.js.map +1 -0
- package/dist/{setup-system-KN7FTTLT.js → setup-system-XX6NSVXZ.js} +7 -7
- package/dist/{skills-command-KEW7MOEW.js → skills-command-YAQP24JM.js} +6 -6
- package/dist/{uninstall-45XF4CHD.js → uninstall-3YJKZ6UF.js} +7 -7
- package/dist/{virtual_make-docs-first-party-skills-ECJESFL2.js → virtual_make-docs-first-party-skills-5TYTCD5U.js} +2 -2
- package/dist/{virtual_make-docs-first-party-skills-ECJESFL2.js.map → virtual_make-docs-first-party-skills-5TYTCD5U.js.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-HXWD2EUD.js.map +0 -1
- package/dist/chunk-XDSWX4Y4.js.map +0 -1
- package/dist/server-BQOG6FTA.js.map +0 -1
- /package/dist/{backup-2OT4A6LR.js.map → backup-P5NUPAJL.js.map} +0 -0
- /package/dist/{chunk-ISSMVKIA.js.map → chunk-2WC74W66.js.map} +0 -0
- /package/dist/{chunk-CLSOY7NV.js.map → chunk-B7QF7XZT.js.map} +0 -0
- /package/dist/{chunk-CCYP5NU2.js.map → chunk-DNPFQB24.js.map} +0 -0
- /package/dist/{chunk-46MGH32G.js.map → chunk-KFYUB4AX.js.map} +0 -0
- /package/dist/{chunk-CMNKQM7L.js.map → chunk-LK6BLVZA.js.map} +0 -0
- /package/dist/{chunk-I4FADOUK.js.map → chunk-PI7W5QDB.js.map} +0 -0
- /package/dist/{chunk-UNR4CYVX.js.map → chunk-TDB6UW4M.js.map} +0 -0
- /package/dist/{chunk-VMKG3H4B.js.map → chunk-XFFESINU.js.map} +0 -0
- /package/dist/{registry-PC5GKAKM.js.map → registry-44WLX4F5.js.map} +0 -0
- /package/dist/{self-WYVXO23B.js.map → self-WRWI5XNE.js.map} +0 -0
- /package/dist/{setup-system-KN7FTTLT.js.map → setup-system-XX6NSVXZ.js.map} +0 -0
- /package/dist/{skills-command-KEW7MOEW.js.map → skills-command-YAQP24JM.js.map} +0 -0
- /package/dist/{uninstall-45XF4CHD.js.map → uninstall-3YJKZ6UF.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
isRedactedMcpNativeValue,
|
|
7
7
|
redactMcpNativeValue,
|
|
8
8
|
validateHarnessMethodSelection
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2WC74W66.js";
|
|
10
10
|
import {
|
|
11
11
|
CURRENT_STORE_SCHEMA_VERSION,
|
|
12
12
|
GLOBAL_CONFIG_FILE,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
resolveStoreRoot,
|
|
33
33
|
validateInstallationStoreRoot,
|
|
34
34
|
withInstallationDatabase
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-SFKYGFUV.js";
|
|
36
36
|
|
|
37
37
|
// src/operations/types.ts
|
|
38
38
|
var OperationError = class extends Error {
|
|
@@ -1651,4 +1651,4 @@ export {
|
|
|
1651
1651
|
completeHarnessSystemOperation,
|
|
1652
1652
|
failHarnessSystemOperation
|
|
1653
1653
|
};
|
|
1654
|
-
//# sourceMappingURL=chunk-
|
|
1654
|
+
//# sourceMappingURL=chunk-TDB6UW4M.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
preparePlannedFileChange,
|
|
5
5
|
recordPlannedFileChange,
|
|
6
6
|
relativePathToTarget
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SFKYGFUV.js";
|
|
8
8
|
|
|
9
9
|
// src/installation-files.ts
|
|
10
10
|
import { lstatSync, readdirSync, rmdirSync, unlinkSync } from "fs";
|
|
@@ -201,4 +201,4 @@ export {
|
|
|
201
201
|
assertLifecyclePlanSnapshotCurrent,
|
|
202
202
|
createLifecycleMutationReceipt
|
|
203
203
|
};
|
|
204
|
-
//# sourceMappingURL=chunk-
|
|
204
|
+
//# sourceMappingURL=chunk-XFFESINU.js.map
|
package/dist/index.js
CHANGED
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
COMPLETE_PROJECT_CAPABILITIES,
|
|
4
4
|
describeHarnessSupport,
|
|
5
5
|
resolveUnifiedSetupState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PI7W5QDB.js";
|
|
7
7
|
import {
|
|
8
8
|
classifyCompatibilityState,
|
|
9
9
|
formatCompatibilityClassification,
|
|
10
10
|
importLegacyInstallationState,
|
|
11
11
|
previewLegacyInstallationState,
|
|
12
12
|
scopeCompatibilityToInstallPlan
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LK6BLVZA.js";
|
|
14
14
|
import {
|
|
15
15
|
Checkpoint9ReceiptProjectionError,
|
|
16
16
|
MigrationSafetyError,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
operationCliProjection,
|
|
27
27
|
resolveCliOperationLaunch,
|
|
28
28
|
serializeOperationError
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-EF47XIIR.js";
|
|
30
30
|
import {
|
|
31
31
|
MCP_SERVER_PROFILES,
|
|
32
32
|
applyInstallPlan,
|
|
@@ -39,12 +39,12 @@ import {
|
|
|
39
39
|
planInstall,
|
|
40
40
|
planProjectHarnessIntegrationWrite,
|
|
41
41
|
registerSkillAdoptionRecovery
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-B7QF7XZT.js";
|
|
43
43
|
import {
|
|
44
44
|
runBackupCommand
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
45
|
+
} from "./chunk-DNPFQB24.js";
|
|
46
|
+
import "./chunk-KFYUB4AX.js";
|
|
47
|
+
import "./chunk-XFFESINU.js";
|
|
48
48
|
import {
|
|
49
49
|
S_BAR,
|
|
50
50
|
S_BAR_END,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
previewStoreCompatibilityBridge,
|
|
69
69
|
resolveProjectIdentity,
|
|
70
70
|
writeGlobalConfig
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-TDB6UW4M.js";
|
|
72
72
|
import {
|
|
73
73
|
HARNESS_CALLER_IDENTITY_ARG,
|
|
74
74
|
HARNESS_CALLER_IDENTITY_ENV,
|
|
@@ -83,13 +83,14 @@ import {
|
|
|
83
83
|
redactMcpNativeValue,
|
|
84
84
|
sha256,
|
|
85
85
|
verifyMakeDocsExecutable
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-2WC74W66.js";
|
|
87
87
|
import {
|
|
88
88
|
CAPABILITIES,
|
|
89
89
|
CAPABILITY_DEPENDENCIES,
|
|
90
90
|
HARNESSES,
|
|
91
91
|
PACKAGE_ROOT,
|
|
92
92
|
PROJECT_RESOURCE_TYPES,
|
|
93
|
+
applyInstallationCheckoutMove,
|
|
93
94
|
applySkillRegistrySelectionMetadata,
|
|
94
95
|
classifyStoreCheckpoint9State,
|
|
95
96
|
cloneSelections,
|
|
@@ -103,6 +104,7 @@ import {
|
|
|
103
104
|
loadEffectiveSkillRegistry,
|
|
104
105
|
loadManifest,
|
|
105
106
|
loadSqliteDriver,
|
|
107
|
+
previewInstallationCheckoutMove,
|
|
106
108
|
readInstallationStatus,
|
|
107
109
|
readPackageMeta,
|
|
108
110
|
recoverInstallationOperation,
|
|
@@ -112,7 +114,7 @@ import {
|
|
|
112
114
|
validateAndMigrateManifest,
|
|
113
115
|
withStoreDatabase,
|
|
114
116
|
writeTextFile
|
|
115
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-SFKYGFUV.js";
|
|
116
118
|
import "./chunk-D4HDZEJT.js";
|
|
117
119
|
|
|
118
120
|
// src/cli.ts
|
|
@@ -897,6 +899,14 @@ async function runResourceCommand(argv, launch = resolveCliOperationLaunch()) {
|
|
|
897
899
|
printJson2(invocation.value);
|
|
898
900
|
}
|
|
899
901
|
async function runProjectCommand(argv, launch = resolveCliOperationLaunch()) {
|
|
902
|
+
if (argv[0] === "checkout-move") {
|
|
903
|
+
await runProjectCheckoutMoveCommand(argv.slice(1), launch);
|
|
904
|
+
return;
|
|
905
|
+
}
|
|
906
|
+
if (argv[0] === "checkout-register") {
|
|
907
|
+
await runProjectCheckoutRegisterCommand(argv.slice(1), launch);
|
|
908
|
+
return;
|
|
909
|
+
}
|
|
900
910
|
if (argv[0] === "layout" || argv[0] === "persona") {
|
|
901
911
|
await runProjectLayoutCommand(argv, launch);
|
|
902
912
|
return;
|
|
@@ -915,6 +925,9 @@ async function runProjectCommand(argv, launch = resolveCliOperationLaunch()) {
|
|
|
915
925
|
" make-docs project layout apply|verify <operation-id> [--target-root <path>] [--json]",
|
|
916
926
|
" make-docs project state status [--target-root <path>] [--json]",
|
|
917
927
|
" make-docs project state recover <operation-id> --resume|--rollback [--dry-run] [--target-root <path>] [--json]",
|
|
928
|
+
" make-docs project checkout-move preview [--source-checkout <id>] [--target-root <path>] [--json]",
|
|
929
|
+
" make-docs project checkout-move apply --source-checkout <id> --source-root <path> --review <digest> [--target-root <path>] [--json]",
|
|
930
|
+
" make-docs project checkout-register preview|apply [--review <digest>] [--target-root <path>] [--json]",
|
|
918
931
|
"",
|
|
919
932
|
"Installation state belongs to the global Make Docs Store.",
|
|
920
933
|
"The ensure command checks Store installation evidence and configured routers",
|
|
@@ -991,6 +1004,122 @@ async function runProjectCommand(argv, launch = resolveCliOperationLaunch()) {
|
|
|
991
1004
|
].join("\n")
|
|
992
1005
|
);
|
|
993
1006
|
}
|
|
1007
|
+
async function runProjectCheckoutRegisterCommand(argv, launch) {
|
|
1008
|
+
const [verb, ...args] = argv;
|
|
1009
|
+
if (!verb || verb === "--help" || verb === "-h") {
|
|
1010
|
+
process.stdout.write("Usage: make-docs project checkout-register preview [--target-root <path>] [--json]\n make-docs project checkout-register apply --review <digest> [--target-root <path>] [--json]\nThis makes a new checkout ID. It leaves other checkout IDs and pending work in place.\n");
|
|
1011
|
+
return;
|
|
1012
|
+
}
|
|
1013
|
+
if (verb !== "preview" && verb !== "apply") throw new OperationError(`Unknown checkout-register action: ${verb}.`);
|
|
1014
|
+
let targetRoot, reviewDigest, json = false;
|
|
1015
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1016
|
+
while (args.length) {
|
|
1017
|
+
const flag = args.shift();
|
|
1018
|
+
if (seen.has(flag)) throw new OperationError(`Option ${flag} can be given only once.`);
|
|
1019
|
+
seen.add(flag);
|
|
1020
|
+
if (flag === "--target-root" || flag === "--review") {
|
|
1021
|
+
const value = args.shift();
|
|
1022
|
+
if (!value || value.startsWith("--")) throw new OperationError(`${flag} requires a value.`);
|
|
1023
|
+
if (flag === "--target-root") targetRoot = path2.resolve(value);
|
|
1024
|
+
else if (verb === "apply") reviewDigest = value;
|
|
1025
|
+
else throw new OperationError("--review is valid only with checkout-register apply.");
|
|
1026
|
+
} else if (flag === "--json") json = true;
|
|
1027
|
+
else throw new OperationError(`Unexpected checkout-register option: ${flag}.`);
|
|
1028
|
+
}
|
|
1029
|
+
if (verb === "apply" && !reviewDigest) throw new OperationError("Checkout registration requires --review from one preview.");
|
|
1030
|
+
const invocation = await invokeOperation(`project.checkout-register.${verb}`, {
|
|
1031
|
+
...targetRoot ? { targetRoot } : {},
|
|
1032
|
+
...reviewDigest ? { reviewDigest } : {}
|
|
1033
|
+
}, createExecutionContext({
|
|
1034
|
+
surface: "cli",
|
|
1035
|
+
route: launch.route,
|
|
1036
|
+
callerIdentityRaw: launch.callerIdentityRaw,
|
|
1037
|
+
callerReference: launch.callerReference,
|
|
1038
|
+
cwd: targetRoot,
|
|
1039
|
+
writesAllowed: verb === "apply"
|
|
1040
|
+
}));
|
|
1041
|
+
const result = invocation.value;
|
|
1042
|
+
if (json) {
|
|
1043
|
+
printJson2(result);
|
|
1044
|
+
return;
|
|
1045
|
+
}
|
|
1046
|
+
process.stdout.write([
|
|
1047
|
+
`Checkout registration: ${result.status}`,
|
|
1048
|
+
`Target: ${result.targetRoot}`,
|
|
1049
|
+
...result.projectId ? [`Project ID: ${result.projectId}`] : [],
|
|
1050
|
+
...result.checkoutId ? [`New checkout ID: ${result.checkoutId}`] : [],
|
|
1051
|
+
...result.effect ? [`Effect: ${result.effect}`] : [],
|
|
1052
|
+
...result.projectFilesChanged === false ? ["Project files: unchanged"] : [],
|
|
1053
|
+
...result.separateReviewDigest ? [`Review: ${result.separateReviewDigest}`] : [],
|
|
1054
|
+
...result.nextAction ? [`Next: ${result.nextAction}`] : [],
|
|
1055
|
+
""
|
|
1056
|
+
].join("\n"));
|
|
1057
|
+
}
|
|
1058
|
+
async function runProjectCheckoutMoveCommand(argv, launch) {
|
|
1059
|
+
const [verb, ...args] = argv;
|
|
1060
|
+
if (!verb || verb === "--help" || verb === "-h") {
|
|
1061
|
+
process.stdout.write("Usage: make-docs project checkout-move preview [--source-checkout <id>] [--target-root <path>] [--json]\n make-docs project checkout-move apply --source-checkout <id> --source-root <path> --review <digest> [--target-root <path>] [--json]\nPreview is read only. Apply changes one Store checkout path after exact review.\n");
|
|
1062
|
+
return;
|
|
1063
|
+
}
|
|
1064
|
+
if (verb !== "preview" && verb !== "apply") throw new OperationError(`Unknown checkout-move action: ${verb}.`);
|
|
1065
|
+
let targetRoot, sourceCheckoutId, sourceRoot, reviewDigest;
|
|
1066
|
+
let json = false, dryRun = false;
|
|
1067
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1068
|
+
while (args.length) {
|
|
1069
|
+
const flag = args.shift();
|
|
1070
|
+
if (seen.has(flag)) throw new OperationError(`Option ${flag} can be given only once.`);
|
|
1071
|
+
seen.add(flag);
|
|
1072
|
+
const value = () => {
|
|
1073
|
+
const next = args.shift();
|
|
1074
|
+
if (!next || next.startsWith("--")) throw new OperationError(`${flag} requires a value.`);
|
|
1075
|
+
return next;
|
|
1076
|
+
};
|
|
1077
|
+
if (flag === "--target-root") targetRoot = path2.resolve(value());
|
|
1078
|
+
else if (flag === "--source-checkout") sourceCheckoutId = value();
|
|
1079
|
+
else if (flag === "--source-root" && verb === "apply") sourceRoot = path2.resolve(value());
|
|
1080
|
+
else if (flag === "--review" && verb === "apply") reviewDigest = value();
|
|
1081
|
+
else if (flag === "--json") json = true;
|
|
1082
|
+
else if (flag === "--dry-run" && verb === "apply") dryRun = true;
|
|
1083
|
+
else throw new OperationError(`Unexpected checkout-move option: ${flag}.`);
|
|
1084
|
+
}
|
|
1085
|
+
if (verb === "apply" && (!sourceCheckoutId || !sourceRoot || !reviewDigest)) throw new OperationError("Apply requires --source-checkout, --source-root, and --review from one preview.");
|
|
1086
|
+
const invocation = await invokeOperation(`project.checkout-move.${verb}`, {
|
|
1087
|
+
...targetRoot ? { targetRoot } : {},
|
|
1088
|
+
...sourceCheckoutId ? { sourceCheckoutId } : {},
|
|
1089
|
+
...sourceRoot ? { sourceRoot } : {},
|
|
1090
|
+
...reviewDigest ? { reviewDigest } : {}
|
|
1091
|
+
}, createExecutionContext({
|
|
1092
|
+
surface: "cli",
|
|
1093
|
+
route: launch.route,
|
|
1094
|
+
callerIdentityRaw: launch.callerIdentityRaw,
|
|
1095
|
+
callerReference: launch.callerReference,
|
|
1096
|
+
cwd: targetRoot,
|
|
1097
|
+
writesAllowed: verb === "apply",
|
|
1098
|
+
dryRun
|
|
1099
|
+
}));
|
|
1100
|
+
const result = invocation.value;
|
|
1101
|
+
if (json) {
|
|
1102
|
+
printJson2(result);
|
|
1103
|
+
return;
|
|
1104
|
+
}
|
|
1105
|
+
process.stdout.write([
|
|
1106
|
+
`Checkout move: ${result.status}`,
|
|
1107
|
+
`Target: ${result.targetRoot}`,
|
|
1108
|
+
...result.projectId ? [`Project ID: ${result.projectId}`] : [],
|
|
1109
|
+
...result.checkoutId ? [`Checkout ID: ${result.checkoutId}`] : [],
|
|
1110
|
+
...result.sourceRoot ? [`Source: ${result.sourceRoot}`] : [],
|
|
1111
|
+
...result.effect ? [`Effect: ${result.effect}`] : [],
|
|
1112
|
+
...result.projectFilesChanged === false ? ["Project files: unchanged"] : [],
|
|
1113
|
+
...(result.candidates ?? []).flatMap((candidate) => [
|
|
1114
|
+
`Source: ${candidate.sourceRoot} (${candidate.checkoutId})`,
|
|
1115
|
+
`Available: ${candidate.available ? "yes" : "no"}`,
|
|
1116
|
+
...candidate.reviewDigest ? [`Review: ${candidate.reviewDigest}`] : [],
|
|
1117
|
+
...candidate.blockers.map((blocker) => `Blocker: ${blocker}`)
|
|
1118
|
+
]),
|
|
1119
|
+
...result.nextAction ? [`Next: ${result.nextAction}`] : [],
|
|
1120
|
+
""
|
|
1121
|
+
].join("\n"));
|
|
1122
|
+
}
|
|
994
1123
|
async function runProjectLayoutCommand(argv, launch) {
|
|
995
1124
|
const [noun, verb, ...args] = argv;
|
|
996
1125
|
if (!verb || verb === "--help" || verb === "-h") {
|
|
@@ -2562,12 +2691,12 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
|
|
|
2562
2691
|
return;
|
|
2563
2692
|
}
|
|
2564
2693
|
if (parsed.command === "mcp") {
|
|
2565
|
-
const { runMcpServer } = await import("./server-
|
|
2694
|
+
const { runMcpServer } = await import("./server-FYRDPOBR.js");
|
|
2566
2695
|
await runMcpServer({ profile: parsed.mcpProfile ?? "all" });
|
|
2567
2696
|
return;
|
|
2568
2697
|
}
|
|
2569
2698
|
if (parsed.command === "update") {
|
|
2570
|
-
const { runToolUpdateCommand } = await import("./self-
|
|
2699
|
+
const { runToolUpdateCommand } = await import("./self-WRWI5XNE.js");
|
|
2571
2700
|
await runToolUpdateCommand({
|
|
2572
2701
|
yes: parsed.yes,
|
|
2573
2702
|
...parsed.targetDir ? { targetDir: path4.resolve(parsed.targetDir) } : {}
|
|
@@ -2575,13 +2704,13 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
|
|
|
2575
2704
|
return;
|
|
2576
2705
|
}
|
|
2577
2706
|
if (parsed.command === "uninstall") {
|
|
2578
|
-
const { runToolUninstallCommand } = await import("./self-
|
|
2707
|
+
const { runToolUninstallCommand } = await import("./self-WRWI5XNE.js");
|
|
2579
2708
|
await runToolUninstallCommand({ yes: parsed.yes, removeStore: parsed.removeStore });
|
|
2580
2709
|
return;
|
|
2581
2710
|
}
|
|
2582
2711
|
validateParsedArgs(parsed);
|
|
2583
2712
|
if (parsed.setupSubcommand === "system") {
|
|
2584
|
-
const { runSystemSetupCommand } = await import("./setup-system-
|
|
2713
|
+
const { runSystemSetupCommand } = await import("./setup-system-XX6NSVXZ.js");
|
|
2585
2714
|
const result = await runSystemSetupCommand({
|
|
2586
2715
|
dryRun: parsed.dryRun,
|
|
2587
2716
|
yes: parsed.yes,
|
|
@@ -2703,6 +2832,74 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
|
|
|
2703
2832
|
`Store compatibility preview stopped setup: ${storeBridgePreview.blockers.join("; ")} ${storeBridgePreview.nextAction}`
|
|
2704
2833
|
);
|
|
2705
2834
|
}
|
|
2835
|
+
const checkoutMove = previewInstallationCheckoutMove(targetDir, void 0, storeRoot);
|
|
2836
|
+
if (checkoutMove.candidates.length) {
|
|
2837
|
+
if (!jsonOutput) {
|
|
2838
|
+
output.write(`Project ID: ${checkoutMove.projectId}
|
|
2839
|
+
Current path: ${checkoutMove.targetRoot}
|
|
2840
|
+
`);
|
|
2841
|
+
for (const candidate2 of checkoutMove.candidates) {
|
|
2842
|
+
output.write(`Saved checkout: ${candidate2.sourceRoot} (${candidate2.checkoutId})
|
|
2843
|
+
`);
|
|
2844
|
+
for (const blocker of candidate2.blockers) output.write(`- ${blocker}
|
|
2845
|
+
`);
|
|
2846
|
+
}
|
|
2847
|
+
output.write("Choose Move this checkout, Register a separate checkout, or Cancel.\n");
|
|
2848
|
+
}
|
|
2849
|
+
if (!interactive || parsed.dryRun) {
|
|
2850
|
+
const nextAction = "Review the saved paths. Use an interactive setup to choose Move or Register separate, or use project checkout-move preview/apply with its exact digest.";
|
|
2851
|
+
if (jsonOutput) writeCanonicalSetupResult({ status: "blocked", dryRun: parsed.dryRun, targetRoot: targetDir, storeBridge: storeBridgePreview, checkoutMove, storeMutationState: "none", projectChanged: false, projectMutationState: "none", projectActions: [], failedCondition: "Checkout identity needs a path choice.", nextAction });
|
|
2852
|
+
else output.write(`Next: ${nextAction}
|
|
2853
|
+
`);
|
|
2854
|
+
return;
|
|
2855
|
+
}
|
|
2856
|
+
const selected = await select({
|
|
2857
|
+
message: "How should setup treat this path?",
|
|
2858
|
+
options: [
|
|
2859
|
+
...checkoutMove.candidates.map((candidate2) => ({ value: `move:${candidate2.checkoutId}`, label: `Move this checkout from ${candidate2.sourceRoot}`, hint: candidate2.blockers[0], disabled: !candidate2.available })),
|
|
2860
|
+
{ value: "separate", label: "Register a separate checkout", hint: "Create a new checkout ID for this project." },
|
|
2861
|
+
{ value: "cancel", label: "Cancel", hint: "Keep all paths and Store rows as they are." }
|
|
2862
|
+
]
|
|
2863
|
+
});
|
|
2864
|
+
if (isCancel(selected) || selected === "cancel") {
|
|
2865
|
+
output.write("Setup cancelled. No checkout path changed.\n");
|
|
2866
|
+
return;
|
|
2867
|
+
}
|
|
2868
|
+
if (selected === "separate") {
|
|
2869
|
+
const approved2 = await confirm({ message: `Register ${targetDir} as a separate checkout for project ${checkoutMove.projectId}?`, initialValue: false, active: "Yes", inactive: "No", withGuide: true });
|
|
2870
|
+
if (isCancel(approved2) || !approved2) {
|
|
2871
|
+
output.write("Setup cancelled. No checkout was registered.\n");
|
|
2872
|
+
return;
|
|
2873
|
+
}
|
|
2874
|
+
const digest = checkoutMove.separateReviewDigest;
|
|
2875
|
+
if (!digest) throw new Error("Separate checkout registration is blocked. Preview again.");
|
|
2876
|
+
const registration = await invokeOperation("project.checkout-register.apply", { targetRoot: targetDir, reviewDigest: digest }, createExecutionContext({
|
|
2877
|
+
surface: "cli",
|
|
2878
|
+
route: resolvedLaunch.launch.route,
|
|
2879
|
+
callerIdentityRaw: resolvedLaunch.launch.callerIdentityRaw,
|
|
2880
|
+
callerReference: resolvedLaunch.launch.callerReference,
|
|
2881
|
+
cwd: targetDir,
|
|
2882
|
+
writesAllowed: true,
|
|
2883
|
+
storeRoot
|
|
2884
|
+
}));
|
|
2885
|
+
const result2 = registration.value;
|
|
2886
|
+
output.write(`Separate checkout registered: ${result2.checkoutId}. Project files have not changed.
|
|
2887
|
+
`);
|
|
2888
|
+
return runCli(argv, priorProjectRecovery, priorProjectMutationApplied);
|
|
2889
|
+
}
|
|
2890
|
+
const sourceCheckoutId = String(selected).slice("move:".length);
|
|
2891
|
+
const candidate = checkoutMove.candidates.find((item) => item.checkoutId === sourceCheckoutId);
|
|
2892
|
+
if (!candidate?.available || !candidate.reviewDigest) throw new Error("The selected checkout move is blocked. Preview again.");
|
|
2893
|
+
const approved = await confirm({ message: `Move checkout ${sourceCheckoutId} from ${candidate.sourceRoot} to ${targetDir}? Review: ${candidate.reviewDigest}`, initialValue: false, active: "Yes", inactive: "No", withGuide: true });
|
|
2894
|
+
if (isCancel(approved) || !approved) {
|
|
2895
|
+
output.write("Setup cancelled. No checkout path changed.\n");
|
|
2896
|
+
return;
|
|
2897
|
+
}
|
|
2898
|
+
const result = applyInstallationCheckoutMove(targetDir, sourceCheckoutId, candidate.sourceRoot, candidate.reviewDigest, storeRoot);
|
|
2899
|
+
output.write(`Checkout move completed: ${result.checkoutId}. Project files have not changed.
|
|
2900
|
+
`);
|
|
2901
|
+
return runCli(argv, priorProjectRecovery, priorProjectMutationApplied);
|
|
2902
|
+
}
|
|
2706
2903
|
const projectRecoveryReview = prepareSetupProjectRecoveryReview(targetDir, storeRoot);
|
|
2707
2904
|
if (projectRecoveryReview) {
|
|
2708
2905
|
if (!jsonOutput) output.write(renderSetupProjectRecovery(projectRecoveryReview));
|
|
@@ -2861,7 +3058,7 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
|
|
|
2861
3058
|
});
|
|
2862
3059
|
}
|
|
2863
3060
|
if (!freshInstallTarget) {
|
|
2864
|
-
const { detectPreV2Install, promptPreV2Choice } = await import("./self-
|
|
3061
|
+
const { detectPreV2Install, promptPreV2Choice } = await import("./self-WRWI5XNE.js");
|
|
2865
3062
|
const preV2 = detectPreV2Install({
|
|
2866
3063
|
targetDir,
|
|
2867
3064
|
classification: compatibilityClassification
|
|
@@ -2913,7 +3110,7 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
|
|
|
2913
3110
|
}
|
|
2914
3111
|
let interactiveMethodSelections = {};
|
|
2915
3112
|
if (interactive) {
|
|
2916
|
-
const { inspectSystemHarnesses, promptForSystemSetupMethods } = await import("./setup-system-
|
|
3113
|
+
const { inspectSystemHarnesses, promptForSystemSetupMethods } = await import("./setup-system-XX6NSVXZ.js");
|
|
2917
3114
|
const harnessSupport = inspectSystemHarnesses();
|
|
2918
3115
|
const afterHarnessSelection = async (wizardSelections) => {
|
|
2919
3116
|
interactiveMethodSelections = await promptForSystemSetupMethods({
|
|
@@ -2991,7 +3188,7 @@ async function runCli(argv = process.argv.slice(2), priorProjectRecovery = null,
|
|
|
2991
3188
|
applyPreparedSystemSetup,
|
|
2992
3189
|
prepareSystemSetupCommand,
|
|
2993
3190
|
resumePendingSystemSetupCommand
|
|
2994
|
-
} = await import("./setup-system-
|
|
3191
|
+
} = await import("./setup-system-XX6NSVXZ.js");
|
|
2995
3192
|
const systemOptions = {
|
|
2996
3193
|
dryRun: parsed.dryRun,
|
|
2997
3194
|
yes: parsed.yes,
|
|
@@ -3970,7 +4167,7 @@ async function loadUninstallCommand() {
|
|
|
3970
4167
|
if (uninstallCommandLoaderOverride) {
|
|
3971
4168
|
return uninstallCommandLoaderOverride();
|
|
3972
4169
|
}
|
|
3973
|
-
const uninstallModule = await import("./uninstall-
|
|
4170
|
+
const uninstallModule = await import("./uninstall-3YJKZ6UF.js");
|
|
3974
4171
|
if (typeof uninstallModule.runUninstallCommand !== "function") {
|
|
3975
4172
|
throw new Error(
|
|
3976
4173
|
"The `uninstall` command module must export `runUninstallCommand(options)`."
|
|
@@ -3983,7 +4180,7 @@ async function runSkillsCommand(options) {
|
|
|
3983
4180
|
await skillsCommandRunnerOverride(options);
|
|
3984
4181
|
return;
|
|
3985
4182
|
}
|
|
3986
|
-
const skillsModule = await import("./skills-command-
|
|
4183
|
+
const skillsModule = await import("./skills-command-YAQP24JM.js");
|
|
3987
4184
|
await skillsModule.runSkillsCommand(options);
|
|
3988
4185
|
}
|
|
3989
4186
|
function getSelectionOverrideFlags(parsed) {
|
|
@@ -4450,6 +4647,7 @@ function writeCanonicalSetupResult(input2) {
|
|
|
4450
4647
|
nextAction: input2.storeBridge.nextAction
|
|
4451
4648
|
} : null,
|
|
4452
4649
|
projectRecovery: input2.projectRecovery ?? null,
|
|
4650
|
+
checkoutMove: input2.checkoutMove ?? null,
|
|
4453
4651
|
project: {
|
|
4454
4652
|
state: input2.status === "complete" || input2.status === "partial" ? "ready" : input2.status,
|
|
4455
4653
|
changed: input2.projectChanged,
|