@useorgx/wizard 0.1.62 → 0.1.63

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  // src/cli.ts
4
4
 
5
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="132d0d75-ee1b-5262-9ce6-1091765e2527")}catch(e){}}();
5
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d41747ca-7c63-5e0b-83ef-90af38ff9921")}catch(e){}}();
6
6
  import * as clack from "@clack/prompts";
7
7
  import { spawnSync as spawnSync5 } from "child_process";
8
8
  import { readFileSync as readFileSync10 } from "fs";
@@ -6354,7 +6354,7 @@ function initializeWizardSentry() {
6354
6354
  Sentry.init({
6355
6355
  dsn,
6356
6356
  environment: process.env.ORGX_SENTRY_ENVIRONMENT || "production",
6357
- release: "useorgx-wizard@0.1.62",
6357
+ release: "useorgx-wizard@0.1.63",
6358
6358
  tracesSampleRate: sampleRate(process.env.ORGX_SENTRY_TRACES_SAMPLE_RATE),
6359
6359
  enableLogs: true,
6360
6360
  sendDefaultPii: false,
@@ -14560,7 +14560,7 @@ function hasOrgxHook(raw) {
14560
14560
  return Boolean(raw?.includes(HOOK_MARKER));
14561
14561
  }
14562
14562
  function codexHooksEnabled(raw) {
14563
- return Boolean(raw && /^\s*codex_hooks\s*=\s*true\s*$/m.test(raw));
14563
+ return Boolean(raw && /^\s*hooks\s*=\s*true\s*$/m.test(raw));
14564
14564
  }
14565
14565
  function codexHasNotify(raw) {
14566
14566
  return Boolean(raw && /^\s*notify\s*=/m.test(raw));
@@ -15019,26 +15019,40 @@ function mergeClaudeHooks(raw, paths) {
15019
15019
  }
15020
15020
  function ensureCodexHooksFeature(raw) {
15021
15021
  const current = raw ?? "";
15022
- if (codexHooksEnabled(current)) {
15023
- return { changed: false, value: current };
15022
+ const withoutDeprecatedFlag = current.replace(
15023
+ /^\s*codex_hooks\s*=\s*(?:true|false)\s*(?:\r?\n|$)/gm,
15024
+ ""
15025
+ );
15026
+ const removedDeprecatedFlag = withoutDeprecatedFlag !== current;
15027
+ if (codexHooksEnabled(withoutDeprecatedFlag)) {
15028
+ return {
15029
+ changed: removedDeprecatedFlag,
15030
+ value: withoutDeprecatedFlag
15031
+ };
15024
15032
  }
15025
- if (/^\s*codex_hooks\s*=\s*false\s*$/m.test(current)) {
15033
+ if (/^\s*hooks\s*=\s*false\s*$/m.test(withoutDeprecatedFlag)) {
15026
15034
  return {
15027
15035
  changed: true,
15028
- value: current.replace(/^\s*codex_hooks\s*=\s*false\s*$/m, "codex_hooks = true")
15036
+ value: withoutDeprecatedFlag.replace(
15037
+ /^\s*hooks\s*=\s*false\s*$/m,
15038
+ "hooks = true"
15039
+ )
15029
15040
  };
15030
15041
  }
15031
- if (/^\s*\[features\]\s*$/m.test(current)) {
15042
+ if (/^\s*\[features\]\s*$/m.test(withoutDeprecatedFlag)) {
15032
15043
  return {
15033
15044
  changed: true,
15034
- value: current.replace(/^(\s*\[features\]\s*)$/m, "$1\ncodex_hooks = true")
15045
+ value: withoutDeprecatedFlag.replace(
15046
+ /^(\s*\[features\]\s*)$/m,
15047
+ "$1\nhooks = true"
15048
+ )
15035
15049
  };
15036
15050
  }
15037
- const suffix = current.trimEnd().length > 0 ? "\n\n" : "";
15051
+ const suffix = withoutDeprecatedFlag.trimEnd().length > 0 ? "\n\n" : "";
15038
15052
  return {
15039
15053
  changed: true,
15040
- value: `${current.trimEnd()}${suffix}[features]
15041
- codex_hooks = true
15054
+ value: `${withoutDeprecatedFlag.trimEnd()}${suffix}[features]
15055
+ hooks = true
15042
15056
  `
15043
15057
  };
15044
15058
  }
@@ -18434,7 +18448,7 @@ async function main() {
18434
18448
  initializeWizardSentry();
18435
18449
  const program = new Command();
18436
18450
  program.name("orgx-wizard").description("Add OrgX MCP configs, skills/rules, and companion plugins to your local AI tools.").showHelpAfterError();
18437
- const pkgVersion = true ? "0.1.62" : void 0;
18451
+ const pkgVersion = true ? "0.1.63" : void 0;
18438
18452
  program.version(pkgVersion ?? "unknown", "-V, --version");
18439
18453
  program.hook("preAction", (_thisCommand, actionCommand) => {
18440
18454
  if (Boolean(actionCommand.optsWithGlobals().json)) return;
@@ -19478,4 +19492,4 @@ main().catch(async (error) => {
19478
19492
  process.exitCode = 1;
19479
19493
  });
19480
19494
  //# sourceMappingURL=cli.js.map
19481
- //# debugId=132d0d75-ee1b-5262-9ce6-1091765e2527
19495
+ //# debugId=d41747ca-7c63-5e0b-83ef-90af38ff9921