holycodex 0.6.1-dev.29547206710.2 → 0.7.0-dev.29548214169.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 +15 -6
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ import { existsSync } from "node:fs";
|
|
|
7
7
|
import { pluginRoot } from "@holycodex/plugin";
|
|
8
8
|
import { Buffer } from "node:buffer";
|
|
9
9
|
//#region packages/cli/src/catalog.ts
|
|
10
|
-
var VERSION = "0.
|
|
10
|
+
var VERSION = "0.7.0-dev.29548214169.1";
|
|
11
11
|
var SKILLS = [
|
|
12
12
|
"ast-grep",
|
|
13
13
|
"caveman",
|
|
@@ -554,11 +554,13 @@ function installConfig(input, mode, _platform) {
|
|
|
554
554
|
const preservedRoot = controlled.reduce(removeRootValue, root).trim();
|
|
555
555
|
const hasModel = /^\s*model\s*=/m.test(preservedRoot);
|
|
556
556
|
const hasEffort = /^\s*model_reasoning_effort\s*=/m.test(preservedRoot);
|
|
557
|
+
const hasVerbosity = /^\s*model_verbosity\s*=/m.test(preservedRoot);
|
|
557
558
|
const model = hasModel ? "" : `model = "${ROOT_MODEL.model}"\n`;
|
|
558
559
|
const effort = hasEffort ? "" : `model_reasoning_effort = "${ROOT_MODEL.reasoningEffort}"\n`;
|
|
560
|
+
const verbosity = hasVerbosity ? "" : "model_verbosity = \"low\"\n";
|
|
559
561
|
const approval = mode === "default" ? "on-request" : "never";
|
|
560
562
|
const sandbox = mode === "dangerous" ? "danger-full-access" : "workspace-write";
|
|
561
|
-
let configured = `${`${START}\n${originalRoot ? `${ORIGINAL_ROOT}${Buffer.from(originalRoot).toString("base64")}\n` : ""}${model}${effort}${preservedRoot ? `${preservedRoot}\n` : ""}approval_policy = "${approval}"\nsandbox_mode = "${sandbox}"\nstatus_line = ${mergedStatusLine(controlled[3])}\n${END}`}${tables ? `\n\n${tables}` : ""}`;
|
|
563
|
+
let configured = `${`${START}\n${originalRoot ? `${ORIGINAL_ROOT}${Buffer.from(originalRoot).toString("base64")}\n` : ""}${model}${effort}${verbosity}${preservedRoot ? `${preservedRoot}\n` : ""}approval_policy = "${approval}"\nsandbox_mode = "${sandbox}"\nstatus_line = ${mergedStatusLine(controlled[3])}\n${END}`}${tables ? `\n\n${tables}` : ""}`;
|
|
562
564
|
configured = injectTableKey(configured, "features", "default_mode_request_user_input", "true");
|
|
563
565
|
configured = injectTableKey(configured, "features", "multi_agent", "true");
|
|
564
566
|
configured = injectTableKey(configured, "agents", "max_threads", "2");
|
|
@@ -778,7 +780,10 @@ function renderHelp(version, color) {
|
|
|
778
780
|
const title = paint(color, `${BOLD}${CYAN}`, `HOLYCODEX ${version}`);
|
|
779
781
|
const section = (text) => paint(color, BOLD, text);
|
|
780
782
|
const muted = (text) => paint(color, DIM, text);
|
|
781
|
-
return `${title}\n${muted("Lean Codex toolkit installer and doctor")}\n\n${section("USAGE")}\n holycodex <command> [options]\n\n${section("COMMANDS")}\n install Install or update HolyCodex\n cleanup Remove HolyCodex-owned state\n doctor Diagnose installation and runtime\n\n${section("OPTIONS")}\n --help
|
|
783
|
+
return `${title}\n${muted("Lean Codex toolkit installer and doctor")}\n\n${section("USAGE")}\n holycodex <command> [options]\n\n${section("COMMANDS")}\n install Install or update HolyCodex\n cleanup Remove HolyCodex-owned state\n doctor Diagnose installation and runtime\n\n${section("OPTIONS")}\n -h, --help Show help\n -v, --version Show version\n --no-tui Accepted; commands remain noninteractive\n --codex-autonomous Never ask; keep workspace sandbox\n --no-codex-autonomous Safe interactive defaults\n --dangerous-codex-autonomous Never ask; disable filesystem sandbox\n --json Print machine-readable output\n`;
|
|
784
|
+
}
|
|
785
|
+
function renderError(message, color) {
|
|
786
|
+
return `${paint(color, `${BOLD}${RED}`, "✗ ERROR")} ${message}\n ${paint(color, DIM, "Run holycodex --help for usage.")}\n`;
|
|
782
787
|
}
|
|
783
788
|
function renderDoctor(result, color) {
|
|
784
789
|
return `${result.healthy ? paint(color, GREEN, "✓ HolyCodex doctor: healthy") : paint(color, RED, "✗ HolyCodex doctor: issues found")}\n${result.checks.map((item) => {
|
|
@@ -799,11 +804,11 @@ async function main() {
|
|
|
799
804
|
const args = process$1.argv.slice(2);
|
|
800
805
|
const stdoutColor = supportsColor(process$1.stdout.isTTY, process$1.env.NO_COLOR);
|
|
801
806
|
const stderrColor = supportsColor(process$1.stderr.isTTY, process$1.env.NO_COLOR);
|
|
802
|
-
if (args.includes("--help") || args.length === 0) {
|
|
807
|
+
if (args.includes("--help") || args.includes("-h") || args.length === 0) {
|
|
803
808
|
process$1.stdout.write(renderHelp(VERSION, stdoutColor));
|
|
804
809
|
return;
|
|
805
810
|
}
|
|
806
|
-
if (args.includes("--version")) {
|
|
811
|
+
if (args.includes("--version") || args.includes("-v")) {
|
|
807
812
|
process$1.stdout.write(`${VERSION}\n`);
|
|
808
813
|
return;
|
|
809
814
|
}
|
|
@@ -827,7 +832,11 @@ async function main() {
|
|
|
827
832
|
if (options.autonomy === "dangerous") process$1.stderr.write(renderNotice("warning", "Dangerous autonomy disables approvals and filesystem sandboxing.", stderrColor));
|
|
828
833
|
else if (options.autonomy === "autonomous") process$1.stderr.write(renderNotice("notice", "--codex-autonomous is now workspace-contained. Use --dangerous-codex-autonomous only for unrestricted behavior.", stderrColor));
|
|
829
834
|
const result = command === "install" ? await install(options) : command === "cleanup" ? await cleanup(options) : void 0;
|
|
830
|
-
if (result === void 0)
|
|
835
|
+
if (result === void 0) {
|
|
836
|
+
process$1.stderr.write(renderError(`Unknown command: ${command ?? args[0] ?? ""}`, stderrColor));
|
|
837
|
+
process$1.exitCode = 1;
|
|
838
|
+
return;
|
|
839
|
+
}
|
|
831
840
|
process$1.stdout.write(options.json ? `${JSON.stringify(result)}\n` : renderRunResult(result, stdoutColor));
|
|
832
841
|
}
|
|
833
842
|
await main();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "holycodex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0-dev.29548214169.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.
|
|
42
|
+
"@holycodex/plugin": "0.7.0-dev.29548214169.1"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=20"
|