holycodex 0.7.4-dev.29656781764.1 → 0.7.4-dev.29658041909.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 +68 -15
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -3925,7 +3925,7 @@ function superRefine(fn, params) {
|
|
|
3925
3925
|
}
|
|
3926
3926
|
//#endregion
|
|
3927
3927
|
//#region packages/cli/src/catalog.ts
|
|
3928
|
-
var VERSION = "0.7.4-dev.
|
|
3928
|
+
var VERSION = "0.7.4-dev.29658041909.1";
|
|
3929
3929
|
var SKILLS = [
|
|
3930
3930
|
"ast-grep",
|
|
3931
3931
|
"caveman",
|
|
@@ -4040,7 +4040,7 @@ var MODEL_ROUTING_PLANS = ModelRoutingPlansSchema.parse({
|
|
|
4040
4040
|
"plus-low": {
|
|
4041
4041
|
root: {
|
|
4042
4042
|
model: "gpt-5.6-sol",
|
|
4043
|
-
reasoningEffort: "
|
|
4043
|
+
reasoningEffort: "medium"
|
|
4044
4044
|
},
|
|
4045
4045
|
agents: {
|
|
4046
4046
|
explorer: {
|
|
@@ -4254,6 +4254,37 @@ var MANAGED_AGENT_MODEL_HISTORY = {
|
|
|
4254
4254
|
librarian: managedAgentModels("librarian"),
|
|
4255
4255
|
worker: managedAgentModels("worker")
|
|
4256
4256
|
};
|
|
4257
|
+
var LEGACY_MANAGED_ROOT_MODEL_HISTORY = {
|
|
4258
|
+
go: [{
|
|
4259
|
+
model: "gpt-5.6-terra",
|
|
4260
|
+
reasoningEffort: "medium"
|
|
4261
|
+
}],
|
|
4262
|
+
"plus-low": [],
|
|
4263
|
+
plus: [{
|
|
4264
|
+
model: "gpt-5.6-sol",
|
|
4265
|
+
reasoningEffort: "medium"
|
|
4266
|
+
}],
|
|
4267
|
+
"plus-high": [],
|
|
4268
|
+
"pro-5x": [{
|
|
4269
|
+
model: "gpt-5.6-sol",
|
|
4270
|
+
reasoningEffort: "high"
|
|
4271
|
+
}],
|
|
4272
|
+
"pro-20x": [{
|
|
4273
|
+
model: "gpt-5.6-sol",
|
|
4274
|
+
reasoningEffort: "xhigh"
|
|
4275
|
+
}]
|
|
4276
|
+
};
|
|
4277
|
+
function managedPlanRootModels(plan) {
|
|
4278
|
+
return [MODEL_ROUTING_PLANS[plan].root, ...LEGACY_MANAGED_ROOT_MODEL_HISTORY[plan]];
|
|
4279
|
+
}
|
|
4280
|
+
var MANAGED_ROOT_MODEL_HISTORY_BY_PLAN = {
|
|
4281
|
+
go: managedPlanRootModels("go"),
|
|
4282
|
+
"plus-low": managedPlanRootModels("plus-low"),
|
|
4283
|
+
plus: managedPlanRootModels("plus"),
|
|
4284
|
+
"plus-high": managedPlanRootModels("plus-high"),
|
|
4285
|
+
"pro-5x": managedPlanRootModels("pro-5x"),
|
|
4286
|
+
"pro-20x": managedPlanRootModels("pro-20x")
|
|
4287
|
+
};
|
|
4257
4288
|
var GENERATED_RUNTIMES = [
|
|
4258
4289
|
"bootstrap.js",
|
|
4259
4290
|
"core-instructions.js",
|
|
@@ -4658,34 +4689,55 @@ function rootValue(input, key) {
|
|
|
4658
4689
|
function removeRootValue(input, value) {
|
|
4659
4690
|
return value === void 0 ? input : input.replace(value, "");
|
|
4660
4691
|
}
|
|
4661
|
-
function rootPreferences(plan) {
|
|
4662
|
-
const root = MODEL_ROUTING_PLANS[plan].root;
|
|
4663
|
-
return [
|
|
4664
|
-
["model", `model = "${root.model}"`],
|
|
4665
|
-
["model_reasoning_effort", `model_reasoning_effort = "${root.reasoningEffort}"`],
|
|
4666
|
-
["model_verbosity", "model_verbosity = \"low\""]
|
|
4667
|
-
];
|
|
4668
|
-
}
|
|
4669
4692
|
/** Reads the explicitly recorded model routing plan from managed configuration. */
|
|
4670
4693
|
function readManagedPlan(input) {
|
|
4671
4694
|
const value = new RegExp(`^${PLAN_PREFIX}(.+)$`, "m").exec(input)?.[1]?.trim();
|
|
4672
4695
|
return PLAN_NAMES.find((plan) => plan === value);
|
|
4673
4696
|
}
|
|
4697
|
+
/** Identifies explicit Root route overrides preserved from active managed configuration. */
|
|
4698
|
+
function readPreservedRootOverrides(input) {
|
|
4699
|
+
const managedRoot = new RegExp(`^${START}\\r?\\n([\\s\\S]*?)^${END}\\r?$`, "m").exec(input)?.[1];
|
|
4700
|
+
if (managedRoot === void 0) return {
|
|
4701
|
+
model: false,
|
|
4702
|
+
reasoningEffort: false
|
|
4703
|
+
};
|
|
4704
|
+
const plan = readManagedPlan(managedRoot);
|
|
4705
|
+
const model = rootTomlString(managedRoot, "model");
|
|
4706
|
+
const reasoningEffort = rootTomlString(managedRoot, "model_reasoning_effort");
|
|
4707
|
+
if (plan === void 0 || model === void 0 || reasoningEffort === void 0) return {
|
|
4708
|
+
model: false,
|
|
4709
|
+
reasoningEffort: false
|
|
4710
|
+
};
|
|
4711
|
+
if (MANAGED_ROOT_MODEL_HISTORY_BY_PLAN[plan].some((route) => route.model === model && route.reasoningEffort === reasoningEffort)) return {
|
|
4712
|
+
model: false,
|
|
4713
|
+
reasoningEffort: false
|
|
4714
|
+
};
|
|
4715
|
+
const preset = MODEL_ROUTING_PLANS[plan].root;
|
|
4716
|
+
return {
|
|
4717
|
+
model: model !== preset.model,
|
|
4718
|
+
reasoningEffort: reasoningEffort !== preset.reasoningEffort
|
|
4719
|
+
};
|
|
4720
|
+
}
|
|
4674
4721
|
function preserveManagedRootPreferences(input, base) {
|
|
4675
4722
|
const managedRoot = new RegExp(`^${START}\\r?\\n([\\s\\S]*?)^${END}\\r?$`, "m").exec(input)?.[1];
|
|
4676
4723
|
if (managedRoot === void 0) return base;
|
|
4677
|
-
const previousPlan = readManagedPlan(managedRoot) ?? "plus";
|
|
4678
4724
|
const firstTable = base.search(/^\s*\[/m);
|
|
4679
4725
|
const root = firstTable < 0 ? base : base.slice(0, firstTable);
|
|
4680
4726
|
const tables = firstTable < 0 ? "" : base.slice(firstTable);
|
|
4681
4727
|
let updatedRoot = root.trim();
|
|
4682
|
-
|
|
4728
|
+
const overrides = readPreservedRootOverrides(input);
|
|
4729
|
+
for (const [key, preserve] of [["model", overrides.model], ["model_reasoning_effort", overrides.reasoningEffort]]) {
|
|
4683
4730
|
const live = rootValue(managedRoot, key)?.trim();
|
|
4684
|
-
|
|
4685
|
-
if (
|
|
4731
|
+
if (!preserve || live === void 0) continue;
|
|
4732
|
+
if (rootValue(root, key)?.trim() === live) continue;
|
|
4686
4733
|
updatedRoot = removeRootValue(updatedRoot, rootValue(updatedRoot, key)).trim();
|
|
4687
4734
|
updatedRoot = `${updatedRoot}${updatedRoot ? "\n" : ""}${live}`;
|
|
4688
4735
|
}
|
|
4736
|
+
const verbosity = rootValue(managedRoot, "model_verbosity")?.trim();
|
|
4737
|
+
if (verbosity !== void 0 && verbosity !== (rootValue(root, "model_verbosity")?.trim() ?? "model_verbosity = \"low\"")) {
|
|
4738
|
+
updatedRoot = removeRootValue(updatedRoot, rootValue(updatedRoot, "model_verbosity")).trim();
|
|
4739
|
+
updatedRoot = `${updatedRoot}${updatedRoot ? "\n" : ""}${verbosity}`;
|
|
4740
|
+
}
|
|
4689
4741
|
if (updatedRoot === root.trim()) return base;
|
|
4690
4742
|
return `${updatedRoot}${tables ? `\n${tables.trimStart()}` : ""}`;
|
|
4691
4743
|
}
|
|
@@ -4896,7 +4948,8 @@ async function doctor(home = process.env.CODEX_HOME ?? join(homedir(), ".codex")
|
|
|
4896
4948
|
const plan = readManagedPlan(config);
|
|
4897
4949
|
checks.push(plan === void 0 ? check("routing-plan", "error", "routing-plan-missing", "No managed model routing plan is recorded.", "Rerun holycodex install.") : check("routing-plan", "ok", "routing-plan-ready", `Model routing plan ${plan} is active.`));
|
|
4898
4950
|
const preset = plan === void 0 ? void 0 : MODEL_ROUTING_PLANS[plan];
|
|
4899
|
-
|
|
4951
|
+
const rootOverrides = readPreservedRootOverrides(config);
|
|
4952
|
+
checks.push(preset !== void 0 && rootTomlString(config, "model") === preset.root.model && rootTomlString(config, "model_reasoning_effort") === preset.root.reasoningEffort ? check("root-model", "ok", "root-model-ready", "Root model matches the selected routing plan.") : rootOverrides.model || rootOverrides.reasoningEffort ? check("root-model", "ok", "root-model-override", "Root model uses an intentionally preserved explicit override.") : check("root-model", "error", "root-model-stale", "Root model configuration does not match the selected routing plan.", "Reinstall HolyCodex."));
|
|
4900
4953
|
checks.push(preset === void 0 || tableInteger(config, "agents", "max_threads") !== preset.usage.maxThreads || tableInteger(config, "agents", "max_depth") !== preset.usage.maxDepth ? check("agent-usage", "error", "agent-usage-stale", "Agent concurrency configuration does not match the selected routing plan.", "Reinstall HolyCodex.") : check("agent-usage", "ok", "agent-usage-ready", "Agent concurrency matches the selected routing plan."));
|
|
4901
4954
|
checks.push(mode === "unknown" ? check("autonomy", "error", "invalid-autonomy-config", "Approval, sandbox, and network settings do not match a supported mode.", "Rerun install with the intended autonomy flag.") : mode === "dangerous" ? check("autonomy", "warning", "dangerous-autonomy", "Explicit dangerous autonomy is active; workspace containment is removed.") : check("autonomy", "ok", `${mode}-ready`, mode === "safe-workspace" ? "Safe workspace autonomy is active." : "Approval-free workspace autonomy is active."));
|
|
4902
4955
|
checks.push(tableBoolean(config, "features", "default_mode_request_user_input") === true ? check("user-input", "ok", "user-input-ready", "default_mode_request_user_input is enabled.") : check("user-input", "error", "user-input-disabled", "default_mode_request_user_input is not enabled.", "Rerun holycodex install."));
|
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.29658041909.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.29658041909.1",
|
|
43
43
|
"zod": "^4.4.3"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|