nexus-agents 10.1.0 → 10.2.0
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/{ast-rule-runner-AAOBENF2.js → ast-rule-runner-RI7ZJ4ZI.js} +3 -3
- package/dist/{child-mcp-config-FRWGQIHP.js → child-mcp-config-73BX4OTR.js} +2 -2
- package/dist/{chunk-NUXSGWDS.js → chunk-23QA6GQD.js} +5 -5
- package/dist/{chunk-EGUISJBB.js → chunk-2DYCHHWW.js} +4 -4
- package/dist/{chunk-TLITBKMZ.js → chunk-2TA6KTRF.js} +15 -15
- package/dist/{chunk-YHY7GMAL.js → chunk-4JJI34RV.js} +2 -2
- package/dist/{chunk-KPGWNBDA.js → chunk-7EV3QAKO.js} +2 -2
- package/dist/{chunk-SCQ5YAYO.js → chunk-D6E3LJGP.js} +4 -4
- package/dist/{chunk-XYYXVJSO.js → chunk-EJ5EBTAV.js} +2 -2
- package/dist/{chunk-BJLP4E6Q.js → chunk-FNHVTDHZ.js} +3 -3
- package/dist/{chunk-VGCRYAEH.js → chunk-FWQSOPBA.js} +4 -4
- package/dist/{chunk-RBFHY2LF.js → chunk-GAX75XCV.js} +2 -2
- package/dist/{chunk-O46IOND3.js → chunk-GX5ZHZR2.js} +7 -7
- package/dist/{chunk-33C22IY4.js → chunk-J44RKRGQ.js} +3 -3
- package/dist/{chunk-L4P4A7Z2.js → chunk-JGY5HMWI.js} +2 -2
- package/dist/{chunk-WCHN7B2Q.js → chunk-JUUGLXSN.js} +8 -10
- package/dist/{chunk-WCHN7B2Q.js.map → chunk-JUUGLXSN.js.map} +1 -1
- package/dist/{chunk-BK6Q3VQK.js → chunk-KASBBKAQ.js} +2 -2
- package/dist/chunk-KASBBKAQ.js.map +1 -0
- package/dist/chunk-KLSNDPU6.js +2412 -0
- package/dist/chunk-KLSNDPU6.js.map +1 -0
- package/dist/{chunk-HQWQ7MR5.js → chunk-LP5ISXKM.js} +4 -4
- package/dist/{chunk-QPU7QKPT.js → chunk-LXYT2P2Y.js} +3 -3
- package/dist/{chunk-C6MM6Z65.js → chunk-OMSKBBL7.js} +45 -27
- package/dist/chunk-OMSKBBL7.js.map +1 -0
- package/dist/{chunk-M4IJ3H6M.js → chunk-PXYSAG5B.js} +2 -2
- package/dist/{chunk-52Q72CPP.js → chunk-QG3VDSWD.js} +3 -3
- package/dist/{chunk-IRFKJ2KR.js → chunk-QM5W3T3O.js} +2 -2
- package/dist/{chunk-O3VPGING.js → chunk-QRC3QLUQ.js} +92 -95
- package/dist/chunk-QRC3QLUQ.js.map +1 -0
- package/dist/{chunk-MCWIMVG2.js → chunk-QS5HGPCN.js} +2 -2
- package/dist/{chunk-O5OUJ3PX.js → chunk-SS53PZO6.js} +5 -5
- package/dist/{chunk-VHOOJ4FG.js → chunk-SX2XWCGA.js} +2 -2
- package/dist/{chunk-2VD5OQQR.js → chunk-TDUXUVUU.js} +2 -2
- package/dist/{chunk-XFTTKOHK.js → chunk-U37AITDA.js} +2 -2
- package/dist/{chunk-V5FGXVSX.js → chunk-UZJ6IPJR.js} +5 -5
- package/dist/{chunk-MYM2TPNL.js → chunk-V26YQQK4.js} +2 -2
- package/dist/{chunk-HVZVVDFN.js → chunk-VLOPXV47.js} +5 -5
- package/dist/{chunk-AMK4BTAV.js → chunk-WD4DENPC.js} +3 -3
- package/dist/{chunk-WI73OZAU.js → chunk-WKFPKPEM.js} +13 -13
- package/dist/chunk-WKFPKPEM.js.map +1 -0
- package/dist/{chunk-IYEZVAJT.js → chunk-XDUTAUK3.js} +40 -42
- package/dist/{chunk-IYEZVAJT.js.map → chunk-XDUTAUK3.js.map} +1 -1
- package/dist/{cli-circuit-breaker-AM425BRL.js → cli-circuit-breaker-62YOQQT3.js} +3 -3
- package/dist/{cli-readiness-LWOMHZ34.js → cli-readiness-O6EOQV4L.js} +7 -7
- package/dist/cli.js +61 -56
- package/dist/cli.js.map +1 -1
- package/dist/{composite-router-VXQFXNET.js → composite-router-YPZ3D5Y6.js} +2 -2
- package/dist/{consensus-vote-V2JQHILD.js → consensus-vote-RNQQUBXO.js} +16 -17
- package/dist/{context-retriever-GEQIPCVL.js → context-retriever-HVPLM6DH.js} +8 -8
- package/dist/{doctor-deep-DSOZGB5J.js → doctor-deep-UZQTD65D.js} +3 -3
- package/dist/{doctor-gateway-report-RJOSOHGA.js → doctor-gateway-report-LRBPPJD4.js} +6 -7
- package/dist/{doctor-live-7LVRGOS5.js → doctor-live-QFLT5SDB.js} +11 -11
- package/dist/{expert-bridge-5A4ADUBO.js → expert-bridge-O3UZXLGB.js} +4 -4
- package/dist/{factory-UBAUIA2M.js → factory-KCKQQAEH.js} +10 -10
- package/dist/{factory-4RZLP7QV.js → factory-LUKUIB6C.js} +5 -5
- package/dist/{improvement-review-UIYSAI36.js → improvement-review-7IABFAU3.js} +6 -6
- package/dist/index.d.ts +20 -22
- package/dist/index.js +35 -37
- package/dist/index.js.map +1 -1
- package/dist/{init-opencode-WUN3CTBM.js → init-opencode-RYPBCM4P.js} +5 -6
- package/dist/{init-opencode-WUN3CTBM.js.map → init-opencode-RYPBCM4P.js.map} +1 -1
- package/dist/{issue-triage-VKEHVHO4.js → issue-triage-YBVJVAUU.js} +6 -6
- package/dist/{model-config-helpers-GYPIIXOP.js → model-config-helpers-QNV3KD2W.js} +2 -2
- package/dist/{openai-compat-adapter-GSDOJ7TQ.js → openai-compat-adapter-GPZDIR3D.js} +11 -8
- package/dist/{outcome-store-adapter-PXT7AL6T.js → outcome-store-adapter-WRONSTUD.js} +2 -2
- package/dist/{pr-reviewer-helpers-GUUT7G43.js → pr-reviewer-helpers-7SMNNDFJ.js} +4 -4
- package/dist/{registry-command-4G3WGKS5.js → registry-command-U7K6HIBK.js} +2 -2
- package/dist/{repo-security-plan-QO6ACTPZ.js → repo-security-plan-LFWLVEL2.js} +3 -3
- package/dist/{research-helpers-synthesize-MPEJHPYR.js → research-helpers-synthesize-X6MVAAKT.js} +4 -4
- package/dist/{routing-memory-VHQDJ6XZ.js → routing-memory-OCIVXKOU.js} +2 -2
- package/dist/{session-memory-M3CQFFL6.js → session-memory-4LMEWO3X.js} +3 -3
- package/dist/{setup-config-VGEBCEKX.js → setup-config-YNNNR4AE.js} +3 -3
- package/dist/{setup-custom-api-DX7CNYKT.js → setup-custom-api-QEPUCHOX.js} +3 -3
- package/dist/setup-data-dir-XM5DWH7R.js +35 -0
- package/dist/{tool-memory-7QUPGCWV.js → tool-memory-EFGFXF65.js} +5 -5
- package/dist/{unified-registry-CLZK3H64.js → unified-registry-KLNC24HA.js} +11 -11
- package/dist/{weather-report-OKMXF73V.js → weather-report-PMYQ3WBW.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-BK6Q3VQK.js.map +0 -1
- package/dist/chunk-C6MM6Z65.js.map +0 -1
- package/dist/chunk-K6M2ZWX5.js +0 -1116
- package/dist/chunk-K6M2ZWX5.js.map +0 -1
- package/dist/chunk-O3VPGING.js.map +0 -1
- package/dist/chunk-WI73OZAU.js.map +0 -1
- package/dist/chunk-XQMQGUJT.js +0 -995
- package/dist/chunk-XQMQGUJT.js.map +0 -1
- package/dist/setup-data-dir-75Z5PSSB.js +0 -36
- /package/dist/{ast-rule-runner-AAOBENF2.js.map → ast-rule-runner-RI7ZJ4ZI.js.map} +0 -0
- /package/dist/{child-mcp-config-FRWGQIHP.js.map → child-mcp-config-73BX4OTR.js.map} +0 -0
- /package/dist/{chunk-NUXSGWDS.js.map → chunk-23QA6GQD.js.map} +0 -0
- /package/dist/{chunk-EGUISJBB.js.map → chunk-2DYCHHWW.js.map} +0 -0
- /package/dist/{chunk-TLITBKMZ.js.map → chunk-2TA6KTRF.js.map} +0 -0
- /package/dist/{chunk-YHY7GMAL.js.map → chunk-4JJI34RV.js.map} +0 -0
- /package/dist/{chunk-KPGWNBDA.js.map → chunk-7EV3QAKO.js.map} +0 -0
- /package/dist/{chunk-SCQ5YAYO.js.map → chunk-D6E3LJGP.js.map} +0 -0
- /package/dist/{chunk-XYYXVJSO.js.map → chunk-EJ5EBTAV.js.map} +0 -0
- /package/dist/{chunk-BJLP4E6Q.js.map → chunk-FNHVTDHZ.js.map} +0 -0
- /package/dist/{chunk-VGCRYAEH.js.map → chunk-FWQSOPBA.js.map} +0 -0
- /package/dist/{chunk-RBFHY2LF.js.map → chunk-GAX75XCV.js.map} +0 -0
- /package/dist/{chunk-O46IOND3.js.map → chunk-GX5ZHZR2.js.map} +0 -0
- /package/dist/{chunk-33C22IY4.js.map → chunk-J44RKRGQ.js.map} +0 -0
- /package/dist/{chunk-L4P4A7Z2.js.map → chunk-JGY5HMWI.js.map} +0 -0
- /package/dist/{chunk-HQWQ7MR5.js.map → chunk-LP5ISXKM.js.map} +0 -0
- /package/dist/{chunk-QPU7QKPT.js.map → chunk-LXYT2P2Y.js.map} +0 -0
- /package/dist/{chunk-M4IJ3H6M.js.map → chunk-PXYSAG5B.js.map} +0 -0
- /package/dist/{chunk-52Q72CPP.js.map → chunk-QG3VDSWD.js.map} +0 -0
- /package/dist/{chunk-IRFKJ2KR.js.map → chunk-QM5W3T3O.js.map} +0 -0
- /package/dist/{chunk-MCWIMVG2.js.map → chunk-QS5HGPCN.js.map} +0 -0
- /package/dist/{chunk-O5OUJ3PX.js.map → chunk-SS53PZO6.js.map} +0 -0
- /package/dist/{chunk-VHOOJ4FG.js.map → chunk-SX2XWCGA.js.map} +0 -0
- /package/dist/{chunk-2VD5OQQR.js.map → chunk-TDUXUVUU.js.map} +0 -0
- /package/dist/{chunk-XFTTKOHK.js.map → chunk-U37AITDA.js.map} +0 -0
- /package/dist/{chunk-V5FGXVSX.js.map → chunk-UZJ6IPJR.js.map} +0 -0
- /package/dist/{chunk-MYM2TPNL.js.map → chunk-V26YQQK4.js.map} +0 -0
- /package/dist/{chunk-HVZVVDFN.js.map → chunk-VLOPXV47.js.map} +0 -0
- /package/dist/{chunk-AMK4BTAV.js.map → chunk-WD4DENPC.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-AM425BRL.js.map → cli-circuit-breaker-62YOQQT3.js.map} +0 -0
- /package/dist/{cli-readiness-LWOMHZ34.js.map → cli-readiness-O6EOQV4L.js.map} +0 -0
- /package/dist/{composite-router-VXQFXNET.js.map → composite-router-YPZ3D5Y6.js.map} +0 -0
- /package/dist/{consensus-vote-V2JQHILD.js.map → consensus-vote-RNQQUBXO.js.map} +0 -0
- /package/dist/{context-retriever-GEQIPCVL.js.map → context-retriever-HVPLM6DH.js.map} +0 -0
- /package/dist/{doctor-deep-DSOZGB5J.js.map → doctor-deep-UZQTD65D.js.map} +0 -0
- /package/dist/{doctor-gateway-report-RJOSOHGA.js.map → doctor-gateway-report-LRBPPJD4.js.map} +0 -0
- /package/dist/{doctor-live-7LVRGOS5.js.map → doctor-live-QFLT5SDB.js.map} +0 -0
- /package/dist/{expert-bridge-5A4ADUBO.js.map → expert-bridge-O3UZXLGB.js.map} +0 -0
- /package/dist/{factory-4RZLP7QV.js.map → factory-KCKQQAEH.js.map} +0 -0
- /package/dist/{factory-UBAUIA2M.js.map → factory-LUKUIB6C.js.map} +0 -0
- /package/dist/{improvement-review-UIYSAI36.js.map → improvement-review-7IABFAU3.js.map} +0 -0
- /package/dist/{issue-triage-VKEHVHO4.js.map → issue-triage-YBVJVAUU.js.map} +0 -0
- /package/dist/{model-config-helpers-GYPIIXOP.js.map → model-config-helpers-QNV3KD2W.js.map} +0 -0
- /package/dist/{openai-compat-adapter-GSDOJ7TQ.js.map → openai-compat-adapter-GPZDIR3D.js.map} +0 -0
- /package/dist/{outcome-store-adapter-PXT7AL6T.js.map → outcome-store-adapter-WRONSTUD.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-GUUT7G43.js.map → pr-reviewer-helpers-7SMNNDFJ.js.map} +0 -0
- /package/dist/{registry-command-4G3WGKS5.js.map → registry-command-U7K6HIBK.js.map} +0 -0
- /package/dist/{repo-security-plan-QO6ACTPZ.js.map → repo-security-plan-LFWLVEL2.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-MPEJHPYR.js.map → research-helpers-synthesize-X6MVAAKT.js.map} +0 -0
- /package/dist/{routing-memory-VHQDJ6XZ.js.map → routing-memory-OCIVXKOU.js.map} +0 -0
- /package/dist/{session-memory-M3CQFFL6.js.map → session-memory-4LMEWO3X.js.map} +0 -0
- /package/dist/{setup-config-VGEBCEKX.js.map → setup-config-YNNNR4AE.js.map} +0 -0
- /package/dist/{setup-custom-api-DX7CNYKT.js.map → setup-custom-api-QEPUCHOX.js.map} +0 -0
- /package/dist/{setup-data-dir-75Z5PSSB.js.map → setup-data-dir-XM5DWH7R.js.map} +0 -0
- /package/dist/{tool-memory-7QUPGCWV.js.map → tool-memory-EFGFXF65.js.map} +0 -0
- /package/dist/{unified-registry-CLZK3H64.js.map → unified-registry-KLNC24HA.js.map} +0 -0
- /package/dist/{weather-report-OKMXF73V.js.map → weather-report-PMYQ3WBW.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
VERSION,
|
|
8
8
|
isNodeVersionSupported,
|
|
9
9
|
recordServerTransport
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WD4DENPC.js";
|
|
11
11
|
import {
|
|
12
12
|
checkGatewayHealth,
|
|
13
13
|
cliFailsVerdict,
|
|
@@ -17,14 +17,10 @@ import {
|
|
|
17
17
|
gatewaySlotServing,
|
|
18
18
|
gatewayVerdict,
|
|
19
19
|
printVoterTransportCheck
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import {
|
|
22
|
-
readOpenAICompatEndpoint,
|
|
23
|
-
readOpenAICompatEnv
|
|
24
|
-
} from "./chunk-XQMQGUJT.js";
|
|
20
|
+
} from "./chunk-JUUGLXSN.js";
|
|
25
21
|
import {
|
|
26
22
|
claimGlobalRegistry
|
|
27
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UZJ6IPJR.js";
|
|
28
24
|
import {
|
|
29
25
|
CODEX_LEGACY_LANDLOCK_CONFIG,
|
|
30
26
|
CODEX_MCP_SERVER_UNAVAILABLE_REASON,
|
|
@@ -32,7 +28,7 @@ import {
|
|
|
32
28
|
codexSandboxPreflight,
|
|
33
29
|
createAllAdapters,
|
|
34
30
|
createCliAdapter
|
|
35
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QRC3QLUQ.js";
|
|
36
32
|
import {
|
|
37
33
|
DEFAULT_EXECUTION_MODE,
|
|
38
34
|
SecurityConfigSchema
|
|
@@ -40,16 +36,20 @@ import {
|
|
|
40
36
|
import {
|
|
41
37
|
getNexusTmpDir
|
|
42
38
|
} from "./chunk-JPFRRNRR.js";
|
|
39
|
+
import {
|
|
40
|
+
readOpenAICompatEndpoint,
|
|
41
|
+
readOpenAICompatEnv
|
|
42
|
+
} from "./chunk-KLSNDPU6.js";
|
|
43
43
|
import {
|
|
44
44
|
probeCli
|
|
45
45
|
} from "./chunk-TW6PJYTP.js";
|
|
46
46
|
import {
|
|
47
47
|
SERVES_PROBE_PROMPT
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-2DYCHHWW.js";
|
|
49
49
|
import {
|
|
50
50
|
ClaudeCliAdapter,
|
|
51
51
|
IN_FAMILY_FALLBACK_OPTION
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-23QA6GQD.js";
|
|
53
53
|
import {
|
|
54
54
|
DEFAULT_CAPABILITIES,
|
|
55
55
|
capitalize,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
resolveInsideRoot,
|
|
77
77
|
symbols,
|
|
78
78
|
writeLine
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-WKFPKPEM.js";
|
|
80
80
|
import {
|
|
81
81
|
getLearningDir,
|
|
82
82
|
getOutcomesFile,
|
|
@@ -1185,6 +1185,7 @@ function formatMcpClientLine(result) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
|
|
1187
1187
|
// src/cli/doctor-install-freshness.ts
|
|
1188
|
+
import { posix, win32 } from "node:path";
|
|
1188
1189
|
import semver from "semver";
|
|
1189
1190
|
var UNVERSIONED_BUILD = "dev";
|
|
1190
1191
|
var INSTALL_FRESHNESS_REMEDY = "npm install -g nexus-agents@latest \u2014 then RESTART any running MCP server. An already-spawned server keeps the old code until it is restarted, so updating alone leaves the session on the stale build.";
|
|
@@ -1210,15 +1211,16 @@ function assessInstallFreshness(globalVersion, expected, unavailableReason = "no
|
|
|
1210
1211
|
return { state: "behind", global: globalVersion, expected };
|
|
1211
1212
|
}
|
|
1212
1213
|
function describeInstallFreshness(result) {
|
|
1214
|
+
const scope = result.prefix === void 0 ? "" : ` (prefix: ${result.prefix})`;
|
|
1213
1215
|
switch (result.state) {
|
|
1214
1216
|
case "aligned":
|
|
1215
|
-
return `\u2713 Global install matches this build (${result.version})`;
|
|
1217
|
+
return `\u2713 Global install matches this build (${result.version})${scope}`;
|
|
1216
1218
|
case "behind":
|
|
1217
|
-
return `\u2717 Global install is ${result.global}, this build is ${result.expected} \u2014 the MCP server runs the global one. ${INSTALL_FRESHNESS_REMEDY}`;
|
|
1219
|
+
return `\u2717 Global install is ${result.global}, this build is ${result.expected}${scope} \u2014 the MCP server runs the global one. ${INSTALL_FRESHNESS_REMEDY}`;
|
|
1218
1220
|
case "ahead":
|
|
1219
|
-
return `\u26A0 Global install is ${result.global}, newer than this build (${result.expected}) \u2014 the MCP server runs the global one, not this build`;
|
|
1221
|
+
return `\u26A0 Global install is ${result.global}, newer than this build (${result.expected})${scope} \u2014 the MCP server runs the global one, not this build`;
|
|
1220
1222
|
case "unknown":
|
|
1221
|
-
return `\u26A0 Global install version not determined (${result.reason}) \u2014 cannot confirm the MCP server runs this build`;
|
|
1223
|
+
return `\u26A0 Global install version not determined (${result.reason})${scope} \u2014 cannot confirm the MCP server runs this build`;
|
|
1222
1224
|
}
|
|
1223
1225
|
}
|
|
1224
1226
|
function installFreshnessFailsVerdict(result) {
|
|
@@ -1239,19 +1241,35 @@ function describeInstallFreshnessSummary(result) {
|
|
|
1239
1241
|
if (result.state === "ahead") return " \u2014 global install newer than this build";
|
|
1240
1242
|
return "";
|
|
1241
1243
|
}
|
|
1242
|
-
function
|
|
1243
|
-
const
|
|
1244
|
-
|
|
1244
|
+
function resolveInterpreterInstall(execPath, platform) {
|
|
1245
|
+
const path = platform === "win32" ? win32 : posix;
|
|
1246
|
+
const binDir = path.dirname(execPath);
|
|
1247
|
+
const prefix = platform === "win32" ? binDir : path.dirname(binDir);
|
|
1248
|
+
const modules = platform === "win32" ? path.join(prefix, "node_modules") : path.join(prefix, "lib", "node_modules");
|
|
1249
|
+
return { prefix, npmCli: path.join(modules, "npm", "bin", "npm-cli.js") };
|
|
1250
|
+
}
|
|
1251
|
+
function readGlobalVersion(exec, execPath = process.execPath, platform = process.platform) {
|
|
1252
|
+
const { prefix, npmCli } = resolveInterpreterInstall(execPath, platform);
|
|
1253
|
+
const raw = exec(execPath, [
|
|
1254
|
+
npmCli,
|
|
1255
|
+
"ls",
|
|
1256
|
+
"-g",
|
|
1257
|
+
"nexus-agents",
|
|
1258
|
+
"--depth=0",
|
|
1259
|
+
"--json",
|
|
1260
|
+
`--prefix=${prefix}`
|
|
1261
|
+
]);
|
|
1262
|
+
if (raw === null) return { version: null, reason: "npm ls -g failed", prefix };
|
|
1245
1263
|
try {
|
|
1246
1264
|
const parsed = JSON.parse(raw);
|
|
1247
1265
|
const deps = parsed.dependencies;
|
|
1248
1266
|
const version = deps?.["nexus-agents"]?.version;
|
|
1249
1267
|
if (typeof version !== "string" || version === "") {
|
|
1250
|
-
return { version: null, reason: "no global nexus-agents install found" };
|
|
1268
|
+
return { version: null, reason: "no global nexus-agents install found", prefix };
|
|
1251
1269
|
}
|
|
1252
|
-
return { version, reason: "" };
|
|
1270
|
+
return { version, reason: "", prefix };
|
|
1253
1271
|
} catch {
|
|
1254
|
-
return { version: null, reason: "npm ls -g returned unparseable JSON" };
|
|
1272
|
+
return { version: null, reason: "npm ls -g returned unparseable JSON", prefix };
|
|
1255
1273
|
}
|
|
1256
1274
|
}
|
|
1257
1275
|
|
|
@@ -2087,7 +2105,7 @@ function checkSandbox() {
|
|
|
2087
2105
|
};
|
|
2088
2106
|
}
|
|
2089
2107
|
function checkInstallFreshness() {
|
|
2090
|
-
const { version, reason } = readGlobalVersion((cmd, args) => {
|
|
2108
|
+
const { version, reason, prefix } = readGlobalVersion((cmd, args) => {
|
|
2091
2109
|
try {
|
|
2092
2110
|
return execFileSync(cmd, [...args], {
|
|
2093
2111
|
encoding: "utf8",
|
|
@@ -2097,7 +2115,7 @@ function checkInstallFreshness() {
|
|
|
2097
2115
|
return null;
|
|
2098
2116
|
}
|
|
2099
2117
|
});
|
|
2100
|
-
return assessInstallFreshness(version, VERSION, reason);
|
|
2118
|
+
return { ...assessInstallFreshness(version, VERSION, reason), prefix };
|
|
2101
2119
|
}
|
|
2102
2120
|
function collectEnvironmentChecks() {
|
|
2103
2121
|
return {
|
|
@@ -2215,7 +2233,7 @@ async function doctorCommand(options = {}) {
|
|
|
2215
2233
|
options.onResult?.(result);
|
|
2216
2234
|
printDoctorResults(result, void 0, options.deferSummary === true);
|
|
2217
2235
|
if (options.gateway === true || options.probe === true) {
|
|
2218
|
-
const { formatGatewayReport } = await import("./doctor-gateway-report-
|
|
2236
|
+
const { formatGatewayReport } = await import("./doctor-gateway-report-LRBPPJD4.js");
|
|
2219
2237
|
for (const line of formatGatewayReport(result.gateway, result.clis)) {
|
|
2220
2238
|
process.stdout.write(line + "\n");
|
|
2221
2239
|
}
|
|
@@ -2234,13 +2252,13 @@ async function runDoctorFix(result) {
|
|
|
2234
2252
|
writeLine2("\u2500".repeat(40));
|
|
2235
2253
|
let fixCount = 0;
|
|
2236
2254
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
2237
|
-
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-
|
|
2255
|
+
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-XM5DWH7R.js");
|
|
2238
2256
|
const outcome = describeDataDirFix2(initDataDirectories2());
|
|
2239
2257
|
writeLine2(outcome.line);
|
|
2240
2258
|
if (outcome.counted) fixCount++;
|
|
2241
2259
|
}
|
|
2242
2260
|
if (!result.configFile.found) {
|
|
2243
|
-
const { runConfigInitSync } = await import("./setup-config-
|
|
2261
|
+
const { runConfigInitSync } = await import("./setup-config-YNNNR4AE.js");
|
|
2244
2262
|
const configResult = runConfigInitSync(process.cwd(), false, false);
|
|
2245
2263
|
if (configResult.success && configResult.created) {
|
|
2246
2264
|
writeLine2(`\u2713 Generated config: ${configResult.path}`);
|
|
@@ -2354,4 +2372,4 @@ export {
|
|
|
2354
2372
|
startStdioServer,
|
|
2355
2373
|
closeServer
|
|
2356
2374
|
};
|
|
2357
|
-
//# sourceMappingURL=chunk-
|
|
2375
|
+
//# sourceMappingURL=chunk-OMSKBBL7.js.map
|