holycodex 0.7.4-dev.29700855995.1 → 0.7.4-dev.29702567006.1
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/cli.js +12 -7
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -4053,7 +4053,9 @@ var PACKAGE_INSTALL_TIMEOUT_MS = 12e4;
|
|
|
4053
4053
|
var PACKAGE_INSTALL_OUTPUT_LIMIT = 4e3;
|
|
4054
4054
|
/** Detects whether Bun or npm invoked HolyCodex. */
|
|
4055
4055
|
function detectPackageRunner(env = process.env) {
|
|
4056
|
-
|
|
4056
|
+
const executable = (env.npm_execpath ?? "").split(/[\\/]/).at(-1)?.toLowerCase().replace(/\.exe$/, "");
|
|
4057
|
+
const userAgent = env.npm_config_user_agent?.trim().split(/[\s/]/, 1)[0]?.toLowerCase();
|
|
4058
|
+
return executable === "bun" || userAgent === "bun" ? "bun" : "npm";
|
|
4057
4059
|
}
|
|
4058
4060
|
/** Builds the runner-specific codexslimedit invocation. */
|
|
4059
4061
|
function codexSlimEditInvocation(input) {
|
|
@@ -4085,7 +4087,7 @@ async function installCodexSlimEdit(input, env = process.env) {
|
|
|
4085
4087
|
}
|
|
4086
4088
|
//#endregion
|
|
4087
4089
|
//#region packages/cli/src/catalog.ts
|
|
4088
|
-
var VERSION = "0.7.4-dev.
|
|
4090
|
+
var VERSION = "0.7.4-dev.29702567006.1";
|
|
4089
4091
|
var SKILLS = [
|
|
4090
4092
|
"ast-grep",
|
|
4091
4093
|
"caveman",
|
|
@@ -4217,7 +4219,7 @@ var MODEL_ROUTING_PLANS = ModelRoutingPlansSchema.parse({
|
|
|
4217
4219
|
}
|
|
4218
4220
|
},
|
|
4219
4221
|
usage: {
|
|
4220
|
-
maxThreads:
|
|
4222
|
+
maxThreads: 2,
|
|
4221
4223
|
maxDepth: 1
|
|
4222
4224
|
}
|
|
4223
4225
|
},
|
|
@@ -4877,7 +4879,10 @@ async function startContext7(platform) {
|
|
|
4877
4879
|
}
|
|
4878
4880
|
var defaultRuntime$1 = {
|
|
4879
4881
|
platform: process.platform,
|
|
4880
|
-
command: (name, args) =>
|
|
4882
|
+
command: (name, args) => process.env.NODE_ENV === "test" && process.env.HOLYCODEX_TEST_SKIP_PACKAGE_RESOLUTION === "1" && args.some((argument) => argument.startsWith("codexslimedit@")) ? Promise.resolve({
|
|
4883
|
+
ok: true,
|
|
4884
|
+
output: "package resolution skipped in tests"
|
|
4885
|
+
}) : runCommand(name, args, process.platform),
|
|
4881
4886
|
context7: () => startContext7(process.platform),
|
|
4882
4887
|
gitBash: resolveGitBashForCurrentProcess
|
|
4883
4888
|
};
|
|
@@ -4957,11 +4962,11 @@ async function doctor(home = process.env.CODEX_HOME ?? join(homedir(), ".codex")
|
|
|
4957
4962
|
checks.push(configured === void 0 || expected === void 0 ? check(`mcp-${name}`, "error", "missing-required-mcp", `${name} is not configured.`, "Reinstall HolyCodex.") : !mcpConfigMatches(configured, expected) ? check(`mcp-${name}`, "error", "invalid-required-mcp-config", `${name} configuration is stale or contains unsupported settings.`, "Reinstall HolyCodex.") : check(`mcp-${name}`, "ok", "required-mcp-ready", `${name} is configured locally.`));
|
|
4958
4963
|
}
|
|
4959
4964
|
const codexSlimEdit = servers?.codexslimedit;
|
|
4960
|
-
const
|
|
4961
|
-
const expected = effectiveMcpServers(runtime.platform, runner).codexslimedit;
|
|
4965
|
+
const codexSlimEditConfig = ["bun", "npm"].map((runner) => effectiveMcpServers(runtime.platform, runner).codexslimedit).find((expected) => {
|
|
4962
4966
|
return expected !== void 0 && codexSlimEdit !== void 0 && mcpConfigMatches(codexSlimEdit, expected);
|
|
4963
4967
|
});
|
|
4964
|
-
|
|
4968
|
+
const codexSlimEditStarted = codexSlimEditConfig === void 0 ? void 0 : await runtime.command(codexSlimEditConfig.command, [...codexSlimEditConfig.args, "--version"]);
|
|
4969
|
+
checks.push(codexSlimEdit === void 0 ? check("mcp-codexslimedit", "error", "missing-codexslimedit", "codexslimedit is not configured.", "Reinstall HolyCodex.") : codexSlimEditStarted?.ok === true ? check("mcp-codexslimedit", "ok", "codexslimedit-ready", "codexslimedit is configured through npm or Bun.") : codexSlimEditConfig === void 0 ? check("mcp-codexslimedit", "error", "invalid-codexslimedit-config", "codexslimedit configuration is stale or uses an unsupported runner.", "Reinstall HolyCodex.") : check("mcp-codexslimedit", "error", "codexslimedit-unavailable", `codexslimedit could not start: ${codexSlimEditStarted?.output || "unknown runner error"}`, "Check the configured package runner and network access, then reinstall HolyCodex."));
|
|
4965
4970
|
const gitBashConfig = servers?.git_bash;
|
|
4966
4971
|
if (runtime.platform === "win32" && gitBashConfig !== void 0) {
|
|
4967
4972
|
const expected = effectiveMcpServers("win32").git_bash;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "holycodex",
|
|
3
|
-
"version": "0.7.4-dev.
|
|
3
|
+
"version": "0.7.4-dev.29702567006.1",
|
|
4
4
|
"description": "Lean Codex-only agent toolkit installer and doctor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"prepack": "vp run --workspace-root build"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@holycodex/plugin": "0.7.4-dev.
|
|
42
|
+
"@holycodex/plugin": "0.7.4-dev.29702567006.1",
|
|
43
43
|
"zod": "^4.4.3"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|