holycodex 0.9.0 → 0.9.1-dev.30060612206.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 +9 -19
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -4252,7 +4252,7 @@ function superRefine(fn, params) {
|
|
|
4252
4252
|
}
|
|
4253
4253
|
//#endregion
|
|
4254
4254
|
//#region packages/cli/src/catalog.ts
|
|
4255
|
-
var VERSION = "0.9.
|
|
4255
|
+
var VERSION = "0.9.1-dev.30060612206.1";
|
|
4256
4256
|
var SKILLS = [
|
|
4257
4257
|
"ast-grep",
|
|
4258
4258
|
"caveman",
|
|
@@ -5363,17 +5363,6 @@ async function readText(path) {
|
|
|
5363
5363
|
}
|
|
5364
5364
|
//#endregion
|
|
5365
5365
|
//#region packages/cli/src/install.ts
|
|
5366
|
-
var MARKETPLACE_ARGS = [
|
|
5367
|
-
"plugin",
|
|
5368
|
-
"marketplace",
|
|
5369
|
-
"add",
|
|
5370
|
-
"https://github.com/openai/plugins.git",
|
|
5371
|
-
"--ref",
|
|
5372
|
-
"main",
|
|
5373
|
-
"--sparse",
|
|
5374
|
-
".agents/plugins",
|
|
5375
|
-
"--json"
|
|
5376
|
-
];
|
|
5377
5366
|
var PLUGIN_ARGS = [
|
|
5378
5367
|
"plugin",
|
|
5379
5368
|
"add",
|
|
@@ -5425,11 +5414,9 @@ function assertGitBashReady(platform, resolution) {
|
|
|
5425
5414
|
/** Ensures the official Build Web Apps plugin is installed. */
|
|
5426
5415
|
async function installBuildWebApps(runtime) {
|
|
5427
5416
|
if (process.env.HOLYCODEX_TEST_SKIP_PACKAGE_RESOLUTION === "1") return;
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
throw new Error(`Could not install Build Web Apps with \`codex ${args.join(" ")}\`: ${result.output}. Verify Codex is installed and can access https://github.com/openai/plugins.git, then retry HolyCodex installation.`);
|
|
5432
|
-
}
|
|
5417
|
+
const result = await runtime.command("codex", PLUGIN_ARGS);
|
|
5418
|
+
if (result.ok) return;
|
|
5419
|
+
throw new Error(`Could not install Build Web Apps with \`codex ${PLUGIN_ARGS.join(" ")}\`: ${result.output}. Verify Codex is installed and signed in, then retry HolyCodex installation.`);
|
|
5433
5420
|
}
|
|
5434
5421
|
/** Provides install. */
|
|
5435
5422
|
async function install(options, runtime = defaultRuntime) {
|
|
@@ -5613,7 +5600,11 @@ function renderDoctor(result, color) {
|
|
|
5613
5600
|
}
|
|
5614
5601
|
/** Renders run result. */
|
|
5615
5602
|
function renderRunResult(result, color) {
|
|
5616
|
-
|
|
5603
|
+
const title = paint(color, GREEN, `✓ HolyCodex ${result.action} complete`);
|
|
5604
|
+
const action = result.action === "install" ? "Updated" : "Removed";
|
|
5605
|
+
const empty = result.action === "install" ? "changes" : "removal";
|
|
5606
|
+
const backup = result.backups.length === 0 ? "" : `\n Existing HolyCodex files were backed up before ${result.action === "install" ? "replacement" : "cleanup"}.`;
|
|
5607
|
+
return `${title}\n ${result.changed.length === 0 ? `No HolyCodex-managed files needed ${empty}.` : `${action} HolyCodex configuration, plugin files, and agent profiles.`}${backup}\n`;
|
|
5617
5608
|
}
|
|
5618
5609
|
/** Renders notice. */
|
|
5619
5610
|
function renderNotice(kind, message, color) {
|
|
@@ -5670,7 +5661,6 @@ async function main() {
|
|
|
5670
5661
|
return;
|
|
5671
5662
|
}
|
|
5672
5663
|
if (options.autonomy === "dangerous") process$1.stderr.write(renderNotice("warning", "Dangerous autonomy disables approvals and filesystem sandboxing.", stderrColor));
|
|
5673
|
-
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));
|
|
5674
5664
|
const result = command === "install" ? await install(options) : command === "cleanup" ? await cleanup(options) : void 0;
|
|
5675
5665
|
if (result === void 0) {
|
|
5676
5666
|
process$1.stderr.write(renderError(`Unknown command: ${command ?? args[0] ?? ""}`, stderrColor));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "holycodex",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1-dev.30060612206.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.9.
|
|
42
|
+
"@holycodex/plugin": "0.9.1-dev.30060612206.1",
|
|
43
43
|
"zod": "^4.4.3"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|