holycodex 0.12.1 → 0.12.2
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 +11 -23
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -4391,7 +4391,7 @@ function superRefine(fn, params) {
|
|
|
4391
4391
|
}
|
|
4392
4392
|
//#endregion
|
|
4393
4393
|
//#region packages/cli/src/catalog.ts
|
|
4394
|
-
var VERSION = "0.12.
|
|
4394
|
+
var VERSION = "0.12.2";
|
|
4395
4395
|
var SKILLS = [
|
|
4396
4396
|
"ast-grep",
|
|
4397
4397
|
"babysit-ci",
|
|
@@ -4481,10 +4481,6 @@ var WorkflowPolicySchema = strictObject({
|
|
|
4481
4481
|
standard: number().positive(),
|
|
4482
4482
|
fast: number().positive()
|
|
4483
4483
|
}),
|
|
4484
|
-
runtime: strictObject({
|
|
4485
|
-
maxSeconds: number().int().positive(),
|
|
4486
|
-
maxRuntimeMs: number().int().positive()
|
|
4487
|
-
}),
|
|
4488
4484
|
softSizeGuidance: strictObject({
|
|
4489
4485
|
maxInputTokens: number().int().positive(),
|
|
4490
4486
|
maxScriptBytes: number().int().positive()
|
|
@@ -4507,7 +4503,7 @@ var ModelRoutingPlansSchema = strictObject({
|
|
|
4507
4503
|
"pro-5x": RoutingPresetSchema,
|
|
4508
4504
|
"pro-20x": RoutingPresetSchema
|
|
4509
4505
|
});
|
|
4510
|
-
function workflowFor(agents, limits, projectedUsage,
|
|
4506
|
+
function workflowFor(agents, limits, projectedUsage, maxInputTokens) {
|
|
4511
4507
|
return {
|
|
4512
4508
|
permittedRoutes: Object.fromEntries(AGENTS.map((agent) => [agent, Object.fromEntries(WORKFLOW_STAGES.map((stage) => [stage, [agents[agent]]]))])),
|
|
4513
4509
|
verbosity: "low",
|
|
@@ -4522,10 +4518,6 @@ function workflowFor(agents, limits, projectedUsage, maxSeconds, maxInputTokens)
|
|
|
4522
4518
|
standard: projectedUsage,
|
|
4523
4519
|
fast: projectedUsage * 2
|
|
4524
4520
|
},
|
|
4525
|
-
runtime: {
|
|
4526
|
-
maxSeconds,
|
|
4527
|
-
maxRuntimeMs: maxSeconds * 1e3
|
|
4528
|
-
},
|
|
4529
4521
|
softSizeGuidance: {
|
|
4530
4522
|
maxInputTokens,
|
|
4531
4523
|
maxScriptBytes: Math.min(maxInputTokens, 4 * 1024 * 1024)
|
|
@@ -4573,7 +4565,7 @@ var MODEL_ROUTING_PLANS = ModelRoutingPlansSchema.parse({
|
|
|
4573
4565
|
retries: 0,
|
|
4574
4566
|
loopIterations: 1,
|
|
4575
4567
|
fanOut: 1
|
|
4576
|
-
}, 4,
|
|
4568
|
+
}, 4, 2e4)
|
|
4577
4569
|
},
|
|
4578
4570
|
"plus-low": {
|
|
4579
4571
|
root: {
|
|
@@ -4614,7 +4606,7 @@ var MODEL_ROUTING_PLANS = ModelRoutingPlansSchema.parse({
|
|
|
4614
4606
|
retries: 1,
|
|
4615
4607
|
loopIterations: 2,
|
|
4616
4608
|
fanOut: 3
|
|
4617
|
-
}, 12,
|
|
4609
|
+
}, 12, 3e4)
|
|
4618
4610
|
},
|
|
4619
4611
|
plus: {
|
|
4620
4612
|
root: {
|
|
@@ -4655,7 +4647,7 @@ var MODEL_ROUTING_PLANS = ModelRoutingPlansSchema.parse({
|
|
|
4655
4647
|
retries: 2,
|
|
4656
4648
|
loopIterations: 3,
|
|
4657
4649
|
fanOut: 3
|
|
4658
|
-
}, 16,
|
|
4650
|
+
}, 16, 5e4)
|
|
4659
4651
|
},
|
|
4660
4652
|
"plus-high": {
|
|
4661
4653
|
root: {
|
|
@@ -4696,7 +4688,7 @@ var MODEL_ROUTING_PLANS = ModelRoutingPlansSchema.parse({
|
|
|
4696
4688
|
retries: 3,
|
|
4697
4689
|
loopIterations: 4,
|
|
4698
4690
|
fanOut: 4
|
|
4699
|
-
}, 24,
|
|
4691
|
+
}, 24, 7e4)
|
|
4700
4692
|
},
|
|
4701
4693
|
"pro-5x": {
|
|
4702
4694
|
root: {
|
|
@@ -4737,7 +4729,7 @@ var MODEL_ROUTING_PLANS = ModelRoutingPlansSchema.parse({
|
|
|
4737
4729
|
retries: 3,
|
|
4738
4730
|
loopIterations: 5,
|
|
4739
4731
|
fanOut: 5
|
|
4740
|
-
}, 40,
|
|
4732
|
+
}, 40, 1e5)
|
|
4741
4733
|
},
|
|
4742
4734
|
"pro-20x": {
|
|
4743
4735
|
root: {
|
|
@@ -4778,7 +4770,7 @@ var MODEL_ROUTING_PLANS = ModelRoutingPlansSchema.parse({
|
|
|
4778
4770
|
retries: 4,
|
|
4779
4771
|
loopIterations: 8,
|
|
4780
4772
|
fanOut: 8
|
|
4781
|
-
}, 80,
|
|
4773
|
+
}, 80, 15e4)
|
|
4782
4774
|
}
|
|
4783
4775
|
});
|
|
4784
4776
|
Object.fromEntries(PLAN_NAMES.map((plan) => [plan, MODEL_ROUTING_PLANS[plan].workflow]));
|
|
@@ -5754,14 +5746,12 @@ function readManagedWorkflowPolicy(input) {
|
|
|
5754
5746
|
const plan = PLAN_NAMES.find((name) => name === record.plan);
|
|
5755
5747
|
const limits = record.limits;
|
|
5756
5748
|
const usage = record.projectedUsage;
|
|
5757
|
-
const runtime = record.runtime;
|
|
5758
5749
|
const size = record.softSizeGuidance;
|
|
5759
|
-
if (plan === void 0 || typeof limits !== "object" || limits === null || typeof usage !== "object" || usage === null || typeof
|
|
5750
|
+
if (plan === void 0 || typeof limits !== "object" || limits === null || typeof usage !== "object" || usage === null || typeof size !== "object" || size === null) return void 0;
|
|
5760
5751
|
return {
|
|
5761
5752
|
plan,
|
|
5762
5753
|
limits,
|
|
5763
5754
|
projectedUsage: usage,
|
|
5764
|
-
runtime,
|
|
5765
5755
|
softSizeGuidance: size
|
|
5766
5756
|
};
|
|
5767
5757
|
} catch {
|
|
@@ -5884,7 +5874,6 @@ function installConfig(input, mode, _platform, plan = DEFAULT_PLAN, maxSubagents
|
|
|
5884
5874
|
plan,
|
|
5885
5875
|
limits: workflow.limits,
|
|
5886
5876
|
projectedUsage: workflow.projectedUsage,
|
|
5887
|
-
runtime: workflow.runtime,
|
|
5888
5877
|
softSizeGuidance: workflow.softSizeGuidance
|
|
5889
5878
|
})}\n${AUTONOMY_METADATA_PREFIX}${effectiveAutonomy}\n${original}${originalPermissionMetadata(permissionLines)}${model}${effort}web_search = ${JSON.stringify(webSearch)}\nmodel_verbosity = "low"\nservice_tier = "${rootServiceTier}"\n${rootPermissionLines.join("\n")}\n${END}`;
|
|
5890
5879
|
let configured = `${preservedRoot ? `${preservedRoot}\n` : ""}${rootBlock}${tables ? `\n\n${tables}` : ""}`;
|
|
@@ -6096,9 +6085,8 @@ async function doctor(home = process.env.CODEX_HOME ?? join(homedir(), ".codex")
|
|
|
6096
6085
|
plan,
|
|
6097
6086
|
limits: MODEL_ROUTING_PLANS[plan].workflow.limits,
|
|
6098
6087
|
projectedUsage: MODEL_ROUTING_PLANS[plan].workflow.projectedUsage,
|
|
6099
|
-
runtime: MODEL_ROUTING_PLANS[plan].workflow.runtime,
|
|
6100
6088
|
softSizeGuidance: MODEL_ROUTING_PLANS[plan].workflow.softSizeGuidance
|
|
6101
|
-
}) ? check("workflow", "ok", "workflow-settings-ready", `${plan} workflow limits, projected usage,
|
|
6089
|
+
}) ? check("workflow", "ok", "workflow-settings-ready", `${plan} workflow limits, projected usage, and size guidance match the catalog.`) : check("workflow", "error", "workflow-settings-drift", `${plan} workflow settings do not match the authoritative catalog.`, "Reinstall HolyCodex."));
|
|
6102
6090
|
checks.push(missing.includes("runtime/workflow.js") ? check("workflow-runtime", "error", "workflow-runtime-missing", "The isolated workflow runtime is missing.", "Reinstall HolyCodex.") : check("workflow-runtime", "ok", "workflow-runtime-ready", "The isolated workflow runtime is present."));
|
|
6103
6091
|
const manifest = await readFile(join(pluginRoot, ".codex-plugin", "plugin.json"), "utf8").catch(() => "");
|
|
6104
6092
|
const mcpManifest = await access(join(pluginRoot, ".mcp.json")).then(() => true).catch(() => false);
|
|
@@ -6988,7 +6976,7 @@ async function restoreTarget(target, source) {
|
|
|
6988
6976
|
}
|
|
6989
6977
|
async function removeObsoleteVersionCaches(cacheRoot) {
|
|
6990
6978
|
if (!await exists(cacheRoot)) return;
|
|
6991
|
-
for (const entry of await readdir(cacheRoot)) if (entry !== "0.12.
|
|
6979
|
+
for (const entry of await readdir(cacheRoot)) if (entry !== "0.12.2") await rm(join(cacheRoot, entry), {
|
|
6992
6980
|
recursive: true,
|
|
6993
6981
|
force: true
|
|
6994
6982
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "holycodex",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
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.12.
|
|
42
|
+
"@holycodex/plugin": "0.12.2",
|
|
43
43
|
"zod": "^4.4.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|