holycodex 0.9.0 → 0.9.1-dev.30060951309.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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -44
  2. 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.0";
4255
+ var VERSION = "0.9.1-dev.30060951309.1";
4256
4256
  var SKILLS = [
4257
4257
  "ast-grep",
4258
4258
  "caveman",
@@ -5363,39 +5363,9 @@ 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
- var PLUGIN_ARGS = [
5378
- "plugin",
5379
- "add",
5380
- "build-web-apps@openai-curated",
5381
- "--json"
5382
- ];
5383
5366
  var defaultRuntime = {
5384
5367
  platform: process.platform,
5385
- gitBash: resolveGitBashForCurrentProcess,
5386
- command: async (command, args) => {
5387
- const result = await runManagedProcess({
5388
- command,
5389
- args,
5390
- platform: process.platform,
5391
- timeoutMs: 12e4,
5392
- maxOutputChars: 64 * 1024
5393
- });
5394
- return {
5395
- ok: result.exitCode === 0 && !result.timedOut && result.error === void 0,
5396
- output: `${result.stdout}\n${result.stderr}`.trim() || result.error || "unknown error"
5397
- };
5398
- }
5368
+ gitBash: resolveGitBashForCurrentProcess
5399
5369
  };
5400
5370
  function paths(home = process.env.CODEX_HOME ?? join(homedir(), ".codex")) {
5401
5371
  const marketplaceCache = join(home, "plugins", "cache", "holycodex");
@@ -5422,19 +5392,9 @@ function assertGitBashReady(platform, resolution) {
5422
5392
  if (platform !== "win32") return;
5423
5393
  if (!resolution.found) throw new Error(resolution.installHint);
5424
5394
  }
5425
- /** Ensures the official Build Web Apps plugin is installed. */
5426
- async function installBuildWebApps(runtime) {
5427
- if (process.env.HOLYCODEX_TEST_SKIP_PACKAGE_RESOLUTION === "1") return;
5428
- for (const args of [MARKETPLACE_ARGS, PLUGIN_ARGS]) {
5429
- const result = await runtime.command("codex", args);
5430
- if (result.ok) continue;
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
- }
5433
- }
5434
5395
  /** Provides install. */
5435
5396
  async function install(options, runtime = defaultRuntime) {
5436
5397
  assertGitBashReady(runtime.platform, runtime.gitBash());
5437
- await installBuildWebApps(runtime);
5438
5398
  const plan = options.plan ?? "plus";
5439
5399
  const target = paths();
5440
5400
  const root = backupRoot();
@@ -5613,7 +5573,11 @@ function renderDoctor(result, color) {
5613
5573
  }
5614
5574
  /** Renders run result. */
5615
5575
  function renderRunResult(result, color) {
5616
- return `${paint(color, GREEN, `✓ HolyCodex ${result.action} complete`)}\n Changed: ${result.changed.length}\n Backups: ${result.backups.length}\n`;
5576
+ const title = paint(color, GREEN, `✓ HolyCodex ${result.action} complete`);
5577
+ const action = result.action === "install" ? "Updated" : "Removed";
5578
+ const empty = result.action === "install" ? "changes" : "removal";
5579
+ const backup = result.backups.length === 0 ? "" : `\n Existing HolyCodex files were backed up before ${result.action === "install" ? "replacement" : "cleanup"}.`;
5580
+ return `${title}\n ${result.changed.length === 0 ? `No HolyCodex-managed files needed ${empty}.` : `${action} HolyCodex configuration, plugin files, and agent profiles.`}${backup}\n`;
5617
5581
  }
5618
5582
  /** Renders notice. */
5619
5583
  function renderNotice(kind, message, color) {
@@ -5670,7 +5634,6 @@ async function main() {
5670
5634
  return;
5671
5635
  }
5672
5636
  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
5637
  const result = command === "install" ? await install(options) : command === "cleanup" ? await cleanup(options) : void 0;
5675
5638
  if (result === void 0) {
5676
5639
  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.0",
3
+ "version": "0.9.1-dev.30060951309.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.0",
42
+ "@holycodex/plugin": "0.9.1-dev.30060951309.1",
43
43
  "zod": "^4.4.3"
44
44
  },
45
45
  "engines": {