coding-friend-cli 1.32.2 → 1.33.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.
@@ -6,11 +6,11 @@ import {
6
6
  getMemoryMcpStatus,
7
7
  memoryConfigMenu,
8
8
  writeMemoryMcpEntry
9
- } from "./chunk-3QK6S74O.js";
9
+ } from "./chunk-NZKIYVIK.js";
10
10
  import {
11
11
  loadConfig,
12
12
  resolveMemoryDir
13
- } from "./chunk-GTX6I57V.js";
13
+ } from "./chunk-LK6HFD35.js";
14
14
  import {
15
15
  getLibPath
16
16
  } from "./chunk-RZRT7NGT.js";
@@ -48,7 +48,9 @@ function warnStaleMcpJson(memoryDir) {
48
48
  if (!existsSync(localMcpPath)) return;
49
49
  const mcpJson = readJson(localMcpPath);
50
50
  if (mcpJson === null) {
51
- log.warn(".mcp.json exists but could not be parsed \u2014 check for syntax errors.");
51
+ log.warn(
52
+ ".mcp.json exists but could not be parsed \u2014 check for syntax errors."
53
+ );
52
54
  return;
53
55
  }
54
56
  const state = detectMemoryMcpState(mcpJson, existsSync);
@@ -56,19 +58,33 @@ function warnStaleMcpJson(memoryDir) {
56
58
  if (memoryDir) {
57
59
  writeMemoryMcpEntry(memoryDir);
58
60
  if (state.kind === "stale") {
59
- log.success("Auto-updated stale .mcp.json to version-stable npx format.");
61
+ log.success(
62
+ "Auto-updated stale .mcp.json to version-stable npx format."
63
+ );
60
64
  } else {
61
65
  log.success("Updated .mcp.json to version-stable npx format.");
62
66
  }
63
67
  console.log();
64
68
  } else if (state.kind === "stale") {
65
- console.log(chalk.yellow(`\u26A0 Stale MCP config detected in .mcp.json`));
69
+ console.log(
70
+ chalk.yellow(`\u26A0 Stale MCP config detected in .mcp.json`)
71
+ );
66
72
  console.log(chalk.dim(` Path no longer exists: ${state.path}`));
67
- console.log(chalk.dim(` Run "cf memory mcp" to update to the new format.`));
73
+ console.log(
74
+ chalk.dim(` Run "cf memory mcp" to update to the new format.`)
75
+ );
68
76
  console.log();
69
77
  } else {
70
- console.log(chalk.cyan(`\u2139 .mcp.json uses an absolute path for coding-friend-memory.`));
71
- console.log(chalk.dim(` Consider running "cf memory mcp" to switch to the version-stable format.`));
78
+ console.log(
79
+ chalk.cyan(
80
+ `\u2139 .mcp.json uses an absolute path for coding-friend-memory.`
81
+ )
82
+ );
83
+ console.log(
84
+ chalk.dim(
85
+ ` Consider running "cf memory mcp" to switch to the version-stable format.`
86
+ )
87
+ );
72
88
  console.log();
73
89
  }
74
90
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_CONFIG
3
- } from "./chunk-DHH6SRXV.js";
3
+ } from "./chunk-OYPOADCX.js";
4
4
  import {
5
5
  globalConfigPath,
6
6
  localConfigPath,
@@ -66,6 +66,11 @@ var MemoryConfigSchema = z.object({
66
66
  autoCapture: z.boolean().optional(),
67
67
  autoStart: z.boolean().optional()
68
68
  });
69
+ var CodexConfigSchema = z.strictObject({
70
+ enabled: z.boolean().optional(),
71
+ modes: z.array(z.enum(["QUICK", "STANDARD", "DEEP"])).optional(),
72
+ effort: z.enum(["minimal", "low", "medium", "high", "xhigh"]).optional()
73
+ });
69
74
  var ConfigSchema = z.strictObject({
70
75
  language: z.string().optional(),
71
76
  docsDir: z.string().optional(),
@@ -74,7 +79,8 @@ var ConfigSchema = z.strictObject({
74
79
  memory: MemoryConfigSchema.optional(),
75
80
  autoApprove: z.boolean().optional(),
76
81
  autoApproveIgnore: z.array(z.string()).optional(),
77
- autoApproveAllowExtra: z.array(z.string()).optional()
82
+ autoApproveAllowExtra: z.array(z.string()).optional(),
83
+ codex: CodexConfigSchema.optional()
78
84
  });
79
85
  var KNOWN_KEYS = [
80
86
  "language",
@@ -84,7 +90,8 @@ var KNOWN_KEYS = [
84
90
  "memory",
85
91
  "autoApprove",
86
92
  "autoApproveIgnore",
87
- "autoApproveAllowExtra"
93
+ "autoApproveAllowExtra",
94
+ "codex"
88
95
  ];
89
96
  function suggestKey(unknown) {
90
97
  let best = null;
@@ -123,10 +130,12 @@ function validateConfig(merged) {
123
130
  if (issue.code === "unrecognized_keys") {
124
131
  const keys = issue.keys ?? [];
125
132
  for (const key of keys) {
126
- const suggestion = suggestKey(key);
133
+ const isNested = issue.path.length > 0;
134
+ const fullKey = isNested ? `${issue.path.join(".")}.${key}` : key;
135
+ const suggestion = isNested ? null : suggestKey(key);
127
136
  const hint = suggestion ? ` Did you mean '${suggestion}'?` : "";
128
- log.warn(`Unknown config key '${key}'.${hint}`);
129
- delete sanitized[key];
137
+ log.warn(`Unknown config key '${fullKey}'.${hint}`);
138
+ stripPath(sanitized, [...issue.path, key]);
130
139
  }
131
140
  } else {
132
141
  log.warn(`Config: ${pathStr} \u2014 ${issue.message}. Using default.`);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveMemoryDir
3
- } from "./chunk-GTX6I57V.js";
3
+ } from "./chunk-LK6HFD35.js";
4
4
  import {
5
5
  getLibPath
6
6
  } from "./chunk-RZRT7NGT.js";
@@ -1,8 +1,6 @@
1
1
  import {
2
2
  memoryConfigMenu
3
- } from "./chunk-3QK6S74O.js";
4
- import "./chunk-GTX6I57V.js";
5
- import "./chunk-RZRT7NGT.js";
3
+ } from "./chunk-NZKIYVIK.js";
6
4
  import {
7
5
  findStatuslineHookPath,
8
6
  getCurrentAccountEmail,
@@ -13,11 +11,11 @@ import {
13
11
  saveStatuslineConfig,
14
12
  selectStatuslineComponents,
15
13
  writeStatuslineSettings
16
- } from "./chunk-LXZ47XCD.js";
14
+ } from "./chunk-XOHLBLN2.js";
17
15
  import {
18
16
  ALL_COMPONENT_IDS,
19
17
  DEFAULT_CONFIG
20
- } from "./chunk-DHH6SRXV.js";
18
+ } from "./chunk-OYPOADCX.js";
21
19
  import {
22
20
  ensureShellCompletion,
23
21
  hasShellCompletion,
@@ -413,6 +411,68 @@ async function editAutoApprove(globalCfg, localCfg) {
413
411
  log.dim("Docs: https://cf.dinhanhthi.com/docs/reference/auto-approve/");
414
412
  }
415
413
  }
414
+ function buildCodexConfig(input2) {
415
+ return {
416
+ enabled: input2.enabled,
417
+ modes: input2.modes,
418
+ effort: input2.effort
419
+ };
420
+ }
421
+ async function editCodex(globalCfg, localCfg) {
422
+ const current = localCfg?.codex ?? globalCfg?.codex;
423
+ const defaults = DEFAULT_CONFIG.codex;
424
+ if (current !== void 0) {
425
+ log.dim(
426
+ `Current: enabled=${current.enabled}, modes=${(current.modes ?? []).join(",") || "(none)"}, effort=${current.effort}`
427
+ );
428
+ }
429
+ const enabled = await confirm({
430
+ message: "Enable Codex as 6th specialist in /cf-review? (requires `codex` CLI in PATH)",
431
+ default: current?.enabled ?? defaults.enabled
432
+ });
433
+ const modes = await checkbox({
434
+ message: "Which review modes should Codex run in?",
435
+ choices: [
436
+ { name: "QUICK (\u22643 files, \u226450 lines)", value: "QUICK" },
437
+ { name: "STANDARD (4\u201310 files or 51\u2013300 lines)", value: "STANDARD" },
438
+ {
439
+ name: "DEEP (>10 files, >300 lines, or sensitive paths)",
440
+ value: "DEEP"
441
+ }
442
+ ],
443
+ default: current?.modes ?? defaults.modes
444
+ });
445
+ if (modes.length === 0) {
446
+ log.dim(
447
+ "Warning: no modes selected \u2014 Codex will never run. Select at least one mode."
448
+ );
449
+ }
450
+ const effort = await select({
451
+ message: "Codex reasoning effort level:",
452
+ choices: [
453
+ { name: "minimal \u2014 fastest, least thorough", value: "minimal" },
454
+ { name: "low", value: "low" },
455
+ { name: "medium (default)", value: "medium" },
456
+ { name: "high", value: "high" },
457
+ { name: "xhigh \u2014 slowest, most thorough", value: "xhigh" }
458
+ ],
459
+ default: current?.effort ?? defaults.effort
460
+ });
461
+ const scope = await askScope();
462
+ if (scope === "back") return;
463
+ const codexCfg = buildCodexConfig({ enabled, modes, effort });
464
+ writeToScope(scope, { codex: codexCfg });
465
+ if (enabled) {
466
+ log.dim(
467
+ "Tip: make sure `codex` CLI is installed \u2014 `npm install -g @openai/codex`"
468
+ );
469
+ log.dim(
470
+ "Docs: https://cf.dinhanhthi.com/docs/configuration/config-json/#codex"
471
+ );
472
+ } else {
473
+ log.dim("Codex disabled.");
474
+ }
475
+ }
416
476
  async function editStatusline() {
417
477
  const hookResult = findStatuslineHookPath();
418
478
  if (!hookResult) {
@@ -626,6 +686,8 @@ async function configCommand() {
626
686
  globalCfg,
627
687
  localCfg
628
688
  );
689
+ const codexScope = getScopeLabel("codex", globalCfg, localCfg);
690
+ const codexEnabled = getMergedValue("codex", globalCfg, localCfg)?.enabled;
629
691
  const statuslineStatus = isStatuslineConfigured() ? chalk.green("configured") : chalk.yellow("not configured");
630
692
  const completionStatus = hasShellCompletion() ? chalk.green("installed") : chalk.yellow("not installed");
631
693
  const projectRules = getExistingRules(claudeLocalSettingsPath());
@@ -666,6 +728,11 @@ async function configCommand() {
666
728
  value: "autoApprove",
667
729
  description: " Auto-approve safe tool calls, block destructive ones, prompt for ambiguous"
668
730
  },
731
+ {
732
+ name: `Codex cross-engine review ${formatScopeLabel(codexScope)}${codexEnabled !== void 0 ? ` (${codexEnabled ? "enabled" : "disabled"})` : ""}`,
733
+ value: "codex",
734
+ description: " Enable OpenAI Codex as 6th specialist in /cf-review (opt-in)"
735
+ },
669
736
  {
670
737
  name: `Statusline (${statuslineStatus})`,
671
738
  value: "statusline",
@@ -709,6 +776,9 @@ async function configCommand() {
709
776
  case "autoApprove":
710
777
  await editAutoApprove(globalCfg, localCfg);
711
778
  break;
779
+ case "codex":
780
+ await editCodex(globalCfg, localCfg);
781
+ break;
712
782
  case "statusline":
713
783
  await editStatusline();
714
784
  break;
@@ -725,6 +795,9 @@ async function configCommand() {
725
795
  console.log();
726
796
  }
727
797
  }
798
+
728
799
  export {
800
+ buildCodexConfig,
801
+ editCodex,
729
802
  configCommand
730
803
  };
@@ -22,6 +22,7 @@ var ALL_COMPONENT_IDS = STATUSLINE_COMPONENTS.map((c) => c.id);
22
22
  var DEFAULT_CONFIG = {
23
23
  language: "en",
24
24
  docsDir: "docs",
25
+ codex: { enabled: false, modes: ["STANDARD", "DEEP"], effort: "medium" },
25
26
  learn: {
26
27
  language: "en",
27
28
  outputDir: "docs/learn",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ensureStatusline,
3
3
  getInstalledVersion
4
- } from "./chunk-LXZ47XCD.js";
4
+ } from "./chunk-XOHLBLN2.js";
5
5
  import {
6
6
  ensureShellCompletion
7
7
  } from "./chunk-DMJCO6LJ.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ALL_COMPONENT_IDS,
3
3
  STATUSLINE_COMPONENTS
4
- } from "./chunk-DHH6SRXV.js";
4
+ } from "./chunk-OYPOADCX.js";
5
5
  import {
6
6
  claudeSettingsPath,
7
7
  globalConfigPath,
@@ -0,0 +1,22 @@
1
+ import {
2
+ buildCodexConfig,
3
+ configCommand,
4
+ editCodex
5
+ } from "./chunk-OV4AUDXL.js";
6
+ import "./chunk-NZKIYVIK.js";
7
+ import "./chunk-LK6HFD35.js";
8
+ import "./chunk-RZRT7NGT.js";
9
+ import "./chunk-XOHLBLN2.js";
10
+ import "./chunk-OYPOADCX.js";
11
+ import "./chunk-DMJCO6LJ.js";
12
+ import "./chunk-Z5Q533UG.js";
13
+ import "./chunk-TWKNGPBO.js";
14
+ import "./chunk-EVGXUDX4.js";
15
+ import "./chunk-NREZK463.js";
16
+ import "./chunk-O27FVQFU.js";
17
+ import "./chunk-5UVDWG5L.js";
18
+ export {
19
+ buildCodexConfig,
20
+ configCommand,
21
+ editCodex
22
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ensureStatusline
3
- } from "./chunk-LXZ47XCD.js";
4
- import "./chunk-DHH6SRXV.js";
3
+ } from "./chunk-XOHLBLN2.js";
4
+ import "./chunk-OYPOADCX.js";
5
5
  import {
6
6
  ensureShellCompletion
7
7
  } from "./chunk-DMJCO6LJ.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  resolveDocsDir
3
- } from "./chunk-GTX6I57V.js";
3
+ } from "./chunk-LK6HFD35.js";
4
4
  import {
5
5
  getLibPath
6
6
  } from "./chunk-RZRT7NGT.js";
7
- import "./chunk-DHH6SRXV.js";
7
+ import "./chunk-OYPOADCX.js";
8
8
  import "./chunk-TWKNGPBO.js";
9
9
  import {
10
10
  run,
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ program.name("cf").description(
14
14
  "coding-friend CLI \u2014 host learning docs, setup MCP, init projects"
15
15
  ).version(pkg.version, "-v, --version");
16
16
  program.command("install").description("Install the Coding Friend plugin into Claude Code").option("--user", "Install at user scope (all projects)").option("--global", "Install at user scope (all projects)").option("--project", "Install at project scope (shared via git)").option("--local", "Install at local scope (this machine only)").action(async (opts) => {
17
- const { installCommand } = await import("./install-22BLHQ6D.js");
17
+ const { installCommand } = await import("./install-FKL6WLIG.js");
18
18
  await installCommand(opts);
19
19
  });
20
20
  program.command("uninstall").description("Uninstall the Coding Friend plugin from Claude Code").option("--user", "Uninstall from user scope (all projects)").option("--global", "Uninstall from user scope (all projects)").option("--project", "Uninstall from project scope").option("--local", "Uninstall from local scope").action(async (opts) => {
@@ -30,19 +30,19 @@ program.command("enable").description("Re-enable the Coding Friend plugin").opti
30
30
  await enableCommand(opts);
31
31
  });
32
32
  program.command("init").description("Initialize coding-friend in current project").action(async () => {
33
- const { initCommand } = await import("./init-F2NO6NCJ.js");
33
+ const { initCommand } = await import("./init-HS4EXSXW.js");
34
34
  await initCommand();
35
35
  });
36
36
  program.command("config").description("Manage Coding Friend configuration").action(async () => {
37
- const { configCommand } = await import("./config-RE4SQ6Y7.js");
37
+ const { configCommand } = await import("./config-2OJTBZU2.js");
38
38
  await configCommand();
39
39
  });
40
40
  program.command("host").description("Build and serve learning docs as a static website").argument("[path]", "path to docs folder").option("-p, --port <port>", "port number", "3333").action(async (path, opts) => {
41
- const { hostCommand } = await import("./host-XZZEMMMI.js");
41
+ const { hostCommand } = await import("./host-Y4N4PI4N.js");
42
42
  await hostCommand(path, opts);
43
43
  });
44
44
  program.command("mcp").description("Setup MCP server for learning docs").argument("[path]", "path to docs folder").action(async (path) => {
45
- const { mcpCommand } = await import("./mcp-VQ5OXXU7.js");
45
+ const { mcpCommand } = await import("./mcp-BD2K7OL6.js");
46
46
  await mcpCommand(path);
47
47
  });
48
48
  program.command("mcp-serve").description("Start the cf-memory MCP server (used internally by npx)").argument("<memoryDir>", "path to memory directory").action(async (memoryDir) => {
@@ -61,15 +61,15 @@ program.command("permission").description("Manage Claude Code permission rules f
61
61
  await permissionCommand(opts);
62
62
  });
63
63
  program.command("statusline").description("Setup coding-friend statusline in Claude Code").action(async () => {
64
- const { statuslineCommand } = await import("./statusline-GKVAX7GR.js");
64
+ const { statuslineCommand } = await import("./statusline-MLLKBHHR.js");
65
65
  await statuslineCommand();
66
66
  });
67
67
  program.command("update").description("Update coding-friend plugin, CLI, and statusline").option("--cli", "Update only the CLI (npm package)").option("--plugin", "Update only the Claude Code plugin").option("--statusline", "Update only the statusline").option("--user", "Update plugin at user scope (all projects)").option("--global", "Update plugin at user scope (all projects)").option("--project", "Update plugin at project scope").option("--local", "Update plugin at local scope").action(async (opts) => {
68
- const { updateCommand } = await import("./update-P5ZR2JVQ.js");
68
+ const { updateCommand } = await import("./update-G5HZINBK.js");
69
69
  await updateCommand(opts);
70
70
  });
71
71
  program.command("status").description("Show comprehensive Coding Friend status").action(async () => {
72
- const { statusCommand } = await import("./status-7YW3YV2Y.js");
72
+ const { statusCommand } = await import("./status-V2A7RSSM.js");
73
73
  await statusCommand();
74
74
  });
75
75
  var session = program.command("session").description("Save and load Claude Code sessions across machines");
@@ -84,11 +84,11 @@ session.command("save").description("Save current Claude Code session to sync fo
84
84
  "-s, --session-id <id>",
85
85
  "session UUID to save (default: auto-detect newest)"
86
86
  ).option("-l, --label <label>", "label for this session").action(async (opts) => {
87
- const { sessionSaveCommand } = await import("./session-FMC2MG6C.js");
87
+ const { sessionSaveCommand } = await import("./session-RHXTVNRU.js");
88
88
  await sessionSaveCommand(opts);
89
89
  });
90
90
  session.command("load").description("Load a saved session from sync folder").action(async () => {
91
- const { sessionLoadCommand } = await import("./session-FMC2MG6C.js");
91
+ const { sessionLoadCommand } = await import("./session-RHXTVNRU.js");
92
92
  await sessionLoadCommand();
93
93
  });
94
94
  var memory = program.command("memory").description("AI memory system \u2014 store and search project knowledge");
@@ -108,43 +108,43 @@ Memory subcommands:
108
108
  memory mcp Show MCP server setup instructions`
109
109
  );
110
110
  memory.command("status").description("Show memory system status").action(async () => {
111
- const { memoryStatusCommand } = await import("./memory-GKANJJXU.js");
111
+ const { memoryStatusCommand } = await import("./memory-FZMACIGE.js");
112
112
  await memoryStatusCommand();
113
113
  });
114
114
  memory.command("search").description("Search memories by query").argument("<query>", "search query").action(async (query) => {
115
- const { memorySearchCommand } = await import("./memory-GKANJJXU.js");
115
+ const { memorySearchCommand } = await import("./memory-FZMACIGE.js");
116
116
  await memorySearchCommand(query);
117
117
  });
118
118
  memory.command("list").description(
119
119
  "List memories in current project, or all projects with --projects"
120
120
  ).option("--projects", "List all project databases with size and metadata").action(async (opts) => {
121
- const { memoryListCommand } = await import("./memory-GKANJJXU.js");
121
+ const { memoryListCommand } = await import("./memory-FZMACIGE.js");
122
122
  await memoryListCommand(opts);
123
123
  });
124
124
  memory.command("init").description(
125
125
  "Initialize memory system \u2014 interactive wizard (first time) or config menu"
126
126
  ).action(async () => {
127
- const { memoryInitCommand } = await import("./memory-GKANJJXU.js");
127
+ const { memoryInitCommand } = await import("./memory-FZMACIGE.js");
128
128
  await memoryInitCommand();
129
129
  });
130
130
  memory.command("config").description("Configure memory system settings").action(async () => {
131
- const { memoryConfigCommand } = await import("./memory-GKANJJXU.js");
131
+ const { memoryConfigCommand } = await import("./memory-FZMACIGE.js");
132
132
  await memoryConfigCommand();
133
133
  });
134
134
  memory.command("start-daemon").description("Start the memory daemon (Tier 2 \u2014 MiniSearch)").action(async () => {
135
- const { memoryStartDaemonCommand } = await import("./memory-GKANJJXU.js");
135
+ const { memoryStartDaemonCommand } = await import("./memory-FZMACIGE.js");
136
136
  await memoryStartDaemonCommand();
137
137
  });
138
138
  memory.command("stop-daemon").description("Stop the memory daemon").action(async () => {
139
- const { memoryStopDaemonCommand } = await import("./memory-GKANJJXU.js");
139
+ const { memoryStopDaemonCommand } = await import("./memory-FZMACIGE.js");
140
140
  await memoryStopDaemonCommand();
141
141
  });
142
142
  memory.command("rebuild").description("Rebuild the daemon search index").action(async () => {
143
- const { memoryRebuildCommand } = await import("./memory-GKANJJXU.js");
143
+ const { memoryRebuildCommand } = await import("./memory-FZMACIGE.js");
144
144
  await memoryRebuildCommand();
145
145
  });
146
146
  memory.command("mcp").description("Show MCP server setup instructions").action(async () => {
147
- const { memoryMcpCommand } = await import("./memory-GKANJJXU.js");
147
+ const { memoryMcpCommand } = await import("./memory-FZMACIGE.js");
148
148
  await memoryMcpCommand();
149
149
  });
150
150
  memory.command("rm").description("Remove a project database").option("--project-id <id>", "Project ID to remove").option("--all", "Remove all project databases").option(
@@ -152,7 +152,7 @@ memory.command("rm").description("Remove a project database").option("--project-
152
152
  "Remove orphaned projects (source dir missing or 0 memories)"
153
153
  ).action(
154
154
  async (opts) => {
155
- const { memoryRmCommand } = await import("./memory-GKANJJXU.js");
155
+ const { memoryRmCommand } = await import("./memory-FZMACIGE.js");
156
156
  await memoryRmCommand(opts);
157
157
  }
158
158
  );
@@ -178,35 +178,35 @@ Dev subcommands:
178
178
  dev update [path] Update local dev plugin to latest version`
179
179
  );
180
180
  dev.command("on").description("Switch to local plugin source").argument("[path]", "path to local coding-friend repo (default: cwd)").action(async (path) => {
181
- const { devOnCommand } = await import("./dev-QXVERU42.js");
181
+ const { devOnCommand } = await import("./dev-S6VZUD33.js");
182
182
  await devOnCommand(path);
183
183
  });
184
184
  dev.command("off").description("Switch back to remote marketplace").action(async () => {
185
- const { devOffCommand } = await import("./dev-QXVERU42.js");
185
+ const { devOffCommand } = await import("./dev-S6VZUD33.js");
186
186
  await devOffCommand();
187
187
  });
188
188
  dev.command("status").description("Show current dev mode").action(async () => {
189
- const { devStatusCommand } = await import("./dev-QXVERU42.js");
189
+ const { devStatusCommand } = await import("./dev-S6VZUD33.js");
190
190
  await devStatusCommand();
191
191
  });
192
192
  dev.command("sync").description(
193
193
  "Copy local source files to plugin cache (no version bump needed)"
194
194
  ).action(async () => {
195
- const { devSyncCommand } = await import("./dev-QXVERU42.js");
195
+ const { devSyncCommand } = await import("./dev-S6VZUD33.js");
196
196
  await devSyncCommand();
197
197
  });
198
198
  dev.command("restart").description("Reinstall local dev plugin (off + on)").argument(
199
199
  "[path]",
200
200
  "path to local coding-friend repo (default: saved path or cwd)"
201
201
  ).action(async (path) => {
202
- const { devRestartCommand } = await import("./dev-QXVERU42.js");
202
+ const { devRestartCommand } = await import("./dev-S6VZUD33.js");
203
203
  await devRestartCommand(path);
204
204
  });
205
205
  dev.command("update").description("Update local dev plugin to latest version (off + on)").argument(
206
206
  "[path]",
207
207
  "path to local coding-friend repo (default: saved path or cwd)"
208
208
  ).action(async (path) => {
209
- const { devUpdateCommand } = await import("./dev-QXVERU42.js");
209
+ const { devUpdateCommand } = await import("./dev-S6VZUD33.js");
210
210
  await devUpdateCommand(path);
211
211
  });
212
212
  program.hook("postAction", async () => {
@@ -1,12 +1,15 @@
1
+ import {
2
+ editCodex
3
+ } from "./chunk-OV4AUDXL.js";
1
4
  import {
2
5
  ensureMemoryBuilt,
3
6
  isMemoryInitialized,
4
7
  memoryInitWizard
5
- } from "./chunk-66EDSJ6W.js";
8
+ } from "./chunk-G2P43ZK2.js";
6
9
  import {
7
10
  memoryConfigMenu
8
- } from "./chunk-3QK6S74O.js";
9
- import "./chunk-GTX6I57V.js";
11
+ } from "./chunk-NZKIYVIK.js";
12
+ import "./chunk-LK6HFD35.js";
10
13
  import {
11
14
  getLibPath
12
15
  } from "./chunk-RZRT7NGT.js";
@@ -20,10 +23,10 @@ import {
20
23
  saveStatuslineConfig,
21
24
  selectStatuslineComponents,
22
25
  writeStatuslineSettings
23
- } from "./chunk-LXZ47XCD.js";
26
+ } from "./chunk-XOHLBLN2.js";
24
27
  import {
25
28
  DEFAULT_CONFIG
26
- } from "./chunk-DHH6SRXV.js";
29
+ } from "./chunk-OYPOADCX.js";
27
30
  import {
28
31
  ensureShellCompletion,
29
32
  hasShellCompletion
@@ -741,6 +744,8 @@ async function initMenu(gitAvailable) {
741
744
  globalCfg,
742
745
  localCfg
743
746
  );
747
+ const codexScope = getScopeLabel("codex", globalCfg, localCfg);
748
+ const codexEnabled = getMergedValue("codex", globalCfg, localCfg)?.enabled;
744
749
  const projectRules = getExistingRules(claudeLocalSettingsPath());
745
750
  const userRules = getExistingRules(claudeSettingsPath());
746
751
  const allRules = getAllRules();
@@ -792,6 +797,11 @@ async function initMenu(gitAvailable) {
792
797
  value: "autoApprove",
793
798
  description: " Auto-approve safe tool calls, block destructive ones, prompt for ambiguous"
794
799
  },
800
+ {
801
+ name: `Codex cross-engine review ${formatScopeLabel(codexScope)}${codexEnabled !== void 0 ? ` (${codexEnabled ? "enabled" : "disabled"})` : ""}`,
802
+ value: "codex",
803
+ description: " Enable OpenAI Codex as 6th specialist in /cf-review (opt-in)"
804
+ },
795
805
  {
796
806
  name: `Permissions (${permissionStatus} rules)`,
797
807
  value: "permissions",
@@ -860,6 +870,9 @@ async function initMenu(gitAvailable) {
860
870
  }
861
871
  break;
862
872
  }
873
+ case "codex":
874
+ await editCodex(globalCfg, localCfg);
875
+ break;
863
876
  case "permissions": {
864
877
  const learnCfg = localCfg?.learn ?? globalCfg?.learn;
865
878
  const learnOutputDir = learnCfg?.outputDir || `${docsDir}/learn`;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getLatestVersion,
3
3
  semverCompare
4
- } from "./chunk-G4QGJEV7.js";
4
+ } from "./chunk-UGTNIFBH.js";
5
5
  import {
6
6
  getInstalledVersion
7
- } from "./chunk-LXZ47XCD.js";
8
- import "./chunk-DHH6SRXV.js";
7
+ } from "./chunk-XOHLBLN2.js";
8
+ import "./chunk-OYPOADCX.js";
9
9
  import {
10
10
  ensureShellCompletion
11
11
  } from "./chunk-DMJCO6LJ.js";
@@ -3,16 +3,16 @@ import {
3
3
  ensureMemoryBuilt,
4
4
  printMemoryMcpConfig,
5
5
  warnStaleMcpJson
6
- } from "./chunk-66EDSJ6W.js";
7
- import "./chunk-3QK6S74O.js";
6
+ } from "./chunk-G2P43ZK2.js";
7
+ import "./chunk-NZKIYVIK.js";
8
8
  import {
9
9
  resolveDocsDir,
10
10
  resolveMemoryDir
11
- } from "./chunk-GTX6I57V.js";
11
+ } from "./chunk-LK6HFD35.js";
12
12
  import {
13
13
  getLibPath
14
14
  } from "./chunk-RZRT7NGT.js";
15
- import "./chunk-DHH6SRXV.js";
15
+ import "./chunk-OYPOADCX.js";
16
16
  import "./chunk-Z5Q533UG.js";
17
17
  import "./chunk-TWKNGPBO.js";
18
18
  import {
@@ -13,11 +13,11 @@ import {
13
13
  memoryStatusCommand,
14
14
  memoryStopDaemonCommand,
15
15
  printMemoryMcpConfig
16
- } from "./chunk-66EDSJ6W.js";
17
- import "./chunk-3QK6S74O.js";
18
- import "./chunk-GTX6I57V.js";
16
+ } from "./chunk-G2P43ZK2.js";
17
+ import "./chunk-NZKIYVIK.js";
18
+ import "./chunk-LK6HFD35.js";
19
19
  import "./chunk-RZRT7NGT.js";
20
- import "./chunk-DHH6SRXV.js";
20
+ import "./chunk-OYPOADCX.js";
21
21
  import "./chunk-Z5Q533UG.js";
22
22
  import "./chunk-TWKNGPBO.js";
23
23
  import "./chunk-EVGXUDX4.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  loadConfig
3
- } from "./chunk-GTX6I57V.js";
4
- import "./chunk-DHH6SRXV.js";
3
+ } from "./chunk-LK6HFD35.js";
4
+ import "./chunk-OYPOADCX.js";
5
5
  import {
6
6
  claudeSessionDir,
7
7
  encodeProjectPath,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveMemoryDir
3
- } from "./chunk-GTX6I57V.js";
3
+ } from "./chunk-LK6HFD35.js";
4
4
  import {
5
5
  getLibPath
6
6
  } from "./chunk-RZRT7NGT.js";
@@ -9,11 +9,11 @@ import {
9
9
  getLatestCliVersion,
10
10
  getLatestVersion,
11
11
  semverCompare
12
- } from "./chunk-G4QGJEV7.js";
12
+ } from "./chunk-UGTNIFBH.js";
13
13
  import {
14
14
  getInstalledVersion
15
- } from "./chunk-LXZ47XCD.js";
16
- import "./chunk-DHH6SRXV.js";
15
+ } from "./chunk-XOHLBLN2.js";
16
+ import "./chunk-OYPOADCX.js";
17
17
  import "./chunk-DMJCO6LJ.js";
18
18
  import {
19
19
  detectPluginScope,
@@ -8,10 +8,10 @@ import {
8
8
  saveStatuslineConfig,
9
9
  selectStatuslineComponents,
10
10
  writeStatuslineSettings
11
- } from "./chunk-LXZ47XCD.js";
11
+ } from "./chunk-XOHLBLN2.js";
12
12
  import {
13
13
  ALL_COMPONENT_IDS
14
- } from "./chunk-DHH6SRXV.js";
14
+ } from "./chunk-OYPOADCX.js";
15
15
  import "./chunk-TWKNGPBO.js";
16
16
  import {
17
17
  commandExists
@@ -4,9 +4,9 @@ import {
4
4
  getLatestVersion,
5
5
  semverCompare,
6
6
  updateCommand
7
- } from "./chunk-G4QGJEV7.js";
8
- import "./chunk-LXZ47XCD.js";
9
- import "./chunk-DHH6SRXV.js";
7
+ } from "./chunk-UGTNIFBH.js";
8
+ import "./chunk-XOHLBLN2.js";
9
+ import "./chunk-OYPOADCX.js";
10
10
  import "./chunk-DMJCO6LJ.js";
11
11
  import "./chunk-Z5Q533UG.js";
12
12
  import "./chunk-TWKNGPBO.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coding-friend-cli",
3
- "version": "1.32.2",
3
+ "version": "1.33.1",
4
4
  "description": "CLI for coding-friend — host learning docs, setup MCP server, initialize projects",
5
5
  "type": "module",
6
6
  "bin": {