coding-friend-cli 1.36.0 → 1.36.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 (29) hide show
  1. package/dist/{chunk-7QFJODWB.js → chunk-2MOPHSMC.js} +5 -5
  2. package/dist/{chunk-KIKN5HEH.js → chunk-76GDRS54.js} +9 -5
  3. package/dist/{chunk-GHR3TNL6.js → chunk-HF7Y63JR.js} +35 -15
  4. package/dist/{chunk-PQUACN4U.js → chunk-HILXDUVZ.js} +4 -4
  5. package/dist/{clean-2IRHH4SU.js → clean-HOVZN7PF.js} +5 -5
  6. package/dist/{config-36YY3XLM.js → config-NG46PYON.js} +13 -13
  7. package/dist/{disable-35RSJICU.js → disable-HL5OEURT.js} +3 -3
  8. package/dist/{enable-RXWDQRIU.js → enable-CZIOCKKJ.js} +3 -3
  9. package/dist/{host-BYJEZN6T.js → host-SN27RONR.js} +5 -5
  10. package/dist/index.js +37 -37
  11. package/dist/{init-QXCMAPXT.js → init-ZEGE7T5H.js} +22 -22
  12. package/dist/{install-NALHBTGG.js → install-H5VELYYZ.js} +6 -6
  13. package/dist/{learn-PNG2TI2E.js → learn-27FL56ZT.js} +5 -5
  14. package/dist/{mcp-6GRHKIQW.js → mcp-4ODYPJ4N.js} +16 -16
  15. package/dist/{memory-A7OUTQ54.js → memory-5U6GGTVI.js} +10 -8
  16. package/dist/{permission-PB3OMKRB.js → permission-I3OFJUYA.js} +11 -11
  17. package/dist/{session-YJJRGQPX.js → session-YIQMX4BQ.js} +4 -4
  18. package/dist/{status-SG5LCXER.js → status-EAVPCBVN.js} +12 -12
  19. package/dist/{uninstall-JLSEHXS5.js → uninstall-ASLHT3MH.js} +5 -5
  20. package/dist/{update-MO5BT3C5.js → update-DHY2EIY6.js} +3 -3
  21. package/package.json +1 -1
  22. package/dist/{chunk-EFRPDFO7.js → chunk-IKLMHJH6.js} +3 -3
  23. package/dist/{chunk-TEC25H6C.js → chunk-YIXAQ4R2.js} +3 -3
  24. package/dist/{chunk-DUKBBMVM.js → chunk-YOXXIXMQ.js} +3 -3
  25. package/dist/{dev-JSYPSXEZ.js → dev-GKD52XE6.js} +4 -4
  26. package/dist/{guide-ECSMH2AT.js → guide-CO2V4ZLZ.js} +3 -3
  27. package/dist/{mcp-serve-learn-36ZQQQTF.js → mcp-serve-learn-OF3ZJUJC.js} +3 -3
  28. package/dist/{statusline-3Z4DE24F.js → statusline-WDTN3OI4.js} +2 -2
  29. package/dist/{update-check-I2RSVGFO.js → update-check-25SCLHZO.js} +3 -3
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveMemoryDir
3
- } from "./chunk-DUKBBMVM.js";
3
+ } from "./chunk-YOXXIXMQ.js";
4
4
  import {
5
5
  getLibPath
6
6
  } from "./chunk-RZRT7NGT.js";
@@ -9,10 +9,7 @@ import {
9
9
  askScope,
10
10
  formatScopeLabel,
11
11
  injectBackChoice
12
- } from "./chunk-EFRPDFO7.js";
13
- import {
14
- log
15
- } from "./chunk-NREZK463.js";
12
+ } from "./chunk-IKLMHJH6.js";
16
13
  import {
17
14
  mergeJson,
18
15
  readJson,
@@ -23,6 +20,9 @@ import {
23
20
  globalConfigPath,
24
21
  localConfigPath
25
22
  } from "./chunk-X2H7JJMR.js";
23
+ import {
24
+ log
25
+ } from "./chunk-NREZK463.js";
26
26
 
27
27
  // src/lib/memory-prompts.ts
28
28
  import { confirm, input, select } from "@inquirer/prompts";
@@ -7,23 +7,23 @@ import {
7
7
  } from "./chunk-667NMPN4.js";
8
8
  import {
9
9
  resolveScope
10
- } from "./chunk-EFRPDFO7.js";
10
+ } from "./chunk-IKLMHJH6.js";
11
11
  import {
12
12
  commandExists,
13
13
  run,
14
14
  runWithStderr,
15
15
  sleepSync
16
16
  } from "./chunk-EVGXUDX4.js";
17
- import {
18
- log,
19
- printBanner
20
- } from "./chunk-NREZK463.js";
21
17
  import {
22
18
  readJson
23
19
  } from "./chunk-5UVDWG5L.js";
24
20
  import {
25
21
  claudeSettingsPath
26
22
  } from "./chunk-X2H7JJMR.js";
23
+ import {
24
+ log,
25
+ printBanner
26
+ } from "./chunk-NREZK463.js";
27
27
 
28
28
  // src/commands/update.ts
29
29
  import { readFileSync } from "fs";
@@ -248,6 +248,10 @@ async function updateCommand(opts) {
248
248
  }
249
249
  }
250
250
  }
251
+ if (doCli) {
252
+ const { refreshMemoryAfterUpdate } = await import("./memory-5U6GGTVI.js");
253
+ await refreshMemoryAfterUpdate();
254
+ }
251
255
  if (doStatusline) {
252
256
  const updatedVersion = ensureStatusline();
253
257
  if (updatedVersion) {
@@ -2,30 +2,26 @@ import {
2
2
  checkMemoryMcpHealth,
3
3
  printHealthSection,
4
4
  warnStaleMcpJson
5
- } from "./chunk-PQUACN4U.js";
5
+ } from "./chunk-HILXDUVZ.js";
6
6
  import {
7
7
  getMemoryMcpStatus,
8
8
  memoryConfigMenu,
9
9
  writeMemoryMcpEntry
10
- } from "./chunk-7QFJODWB.js";
10
+ } from "./chunk-2MOPHSMC.js";
11
11
  import {
12
12
  loadConfig,
13
13
  resolveMemoryDir
14
- } from "./chunk-DUKBBMVM.js";
14
+ } from "./chunk-YOXXIXMQ.js";
15
15
  import {
16
16
  getLibPath
17
17
  } from "./chunk-RZRT7NGT.js";
18
18
  import {
19
19
  showConfigHint
20
- } from "./chunk-EFRPDFO7.js";
20
+ } from "./chunk-IKLMHJH6.js";
21
21
  import {
22
22
  run,
23
23
  runWithStderr
24
24
  } from "./chunk-EVGXUDX4.js";
25
- import {
26
- log,
27
- printBanner
28
- } from "./chunk-NREZK463.js";
29
25
  import {
30
26
  mergeJson,
31
27
  readJson
@@ -34,6 +30,10 @@ import {
34
30
  globalConfigPath,
35
31
  localConfigPath
36
32
  } from "./chunk-X2H7JJMR.js";
33
+ import {
34
+ log,
35
+ printBanner
36
+ } from "./chunk-NREZK463.js";
37
37
 
38
38
  // src/commands/memory.ts
39
39
  import { existsSync, readdirSync, statSync, rmSync } from "fs";
@@ -65,14 +65,19 @@ function truncateError(text) {
65
65
  const skipped = lines.length - 28;
66
66
  return [...head, ` ... (${skipped} lines omitted) ...`, ...tail].join("\n");
67
67
  }
68
- function ensureMemoryBuilt(mcpDir) {
68
+ function ensureMemoryBuilt(mcpDir, opts) {
69
+ const exitOnError = opts?.exitOnError ?? true;
70
+ const fail = (msg, stderr) => {
71
+ log.error(msg);
72
+ if (stderr) log.error(truncateError(stderr));
73
+ if (exitOnError) process.exit(1);
74
+ return false;
75
+ };
69
76
  if (!existsSync(join(mcpDir, "node_modules"))) {
70
77
  log.step("Installing memory server dependencies (one-time setup)...");
71
78
  const result = runWithStderr("npm", ["install"], { cwd: mcpDir });
72
79
  if (result.exitCode !== 0) {
73
- log.error("Failed to install dependencies");
74
- if (result.stderr) log.error(truncateError(result.stderr));
75
- process.exit(1);
80
+ return fail("Failed to install dependencies", result.stderr);
76
81
  }
77
82
  log.success("Done.");
78
83
  }
@@ -80,12 +85,26 @@ function ensureMemoryBuilt(mcpDir) {
80
85
  log.step("Building memory server...");
81
86
  const result = runWithStderr("npm", ["run", "build"], { cwd: mcpDir });
82
87
  if (result.exitCode !== 0) {
83
- log.error("Failed to build memory server");
84
- if (result.stderr) log.error(truncateError(result.stderr));
85
- process.exit(1);
88
+ return fail("Failed to build memory server", result.stderr);
86
89
  }
87
90
  log.success("Done.");
88
91
  }
92
+ return true;
93
+ }
94
+ async function refreshMemoryAfterUpdate() {
95
+ try {
96
+ if (!isMemoryInitialized()) return;
97
+ const mcpDir = getLibPath("cf-memory");
98
+ log.step("Ensuring memory server is built...");
99
+ const built = ensureMemoryBuilt(mcpDir, { exitOnError: false });
100
+ if (built) {
101
+ log.success("Memory server ready.");
102
+ } else {
103
+ log.warn('Memory server build failed \u2014 run "cf memory status" to retry.');
104
+ }
105
+ } catch {
106
+ log.warn('Could not refresh memory server \u2014 run "cf memory status" to retry.');
107
+ }
89
108
  }
90
109
  function printMemoryMcpConfig(memoryDir) {
91
110
  console.log(chalk.dim("Add this to your MCP client config:"));
@@ -855,6 +874,7 @@ async function memoryMcpCommand() {
855
874
 
856
875
  export {
857
876
  ensureMemoryBuilt,
877
+ refreshMemoryAfterUpdate,
858
878
  printMemoryMcpConfig,
859
879
  memoryStatusCommand,
860
880
  memorySearchCommand,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  writeMemoryMcpEntry
3
- } from "./chunk-7QFJODWB.js";
4
- import {
5
- log
6
- } from "./chunk-NREZK463.js";
3
+ } from "./chunk-2MOPHSMC.js";
7
4
  import {
8
5
  readJson
9
6
  } from "./chunk-5UVDWG5L.js";
7
+ import {
8
+ log
9
+ } from "./chunk-NREZK463.js";
10
10
 
11
11
  // src/lib/mcp-state.ts
12
12
  import { existsSync } from "fs";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  loadConfig,
3
3
  resolveMemoryDir
4
- } from "./chunk-DUKBBMVM.js";
4
+ } from "./chunk-YOXXIXMQ.js";
5
5
  import "./chunk-57EGAXYI.js";
6
- import {
7
- log,
8
- printBanner
9
- } from "./chunk-NREZK463.js";
10
6
  import "./chunk-5UVDWG5L.js";
11
7
  import {
12
8
  resolvePath
13
9
  } from "./chunk-X2H7JJMR.js";
10
+ import {
11
+ log,
12
+ printBanner
13
+ } from "./chunk-NREZK463.js";
14
14
 
15
15
  // src/commands/clean.ts
16
16
  import { existsSync, readdirSync, rmSync, statSync } from "fs";
@@ -1,16 +1,20 @@
1
+ import {
2
+ getAllRules,
3
+ getExistingRules
4
+ } from "./chunk-O5ZKLFSL.js";
1
5
  import {
2
6
  listMdFilesRecursive
3
7
  } from "./chunk-2DTXVMPQ.js";
4
8
  import {
5
9
  registerLearnMcp,
6
10
  unregisterLearnMcp
7
- } from "./chunk-TEC25H6C.js";
11
+ } from "./chunk-YIXAQ4R2.js";
8
12
  import {
9
13
  memoryConfigMenu
10
- } from "./chunk-7QFJODWB.js";
14
+ } from "./chunk-2MOPHSMC.js";
11
15
  import {
12
16
  resolveLearnDir
13
- } from "./chunk-DUKBBMVM.js";
17
+ } from "./chunk-YOXXIXMQ.js";
14
18
  import "./chunk-RZRT7NGT.js";
15
19
  import {
16
20
  findStatuslineHookPath,
@@ -41,16 +45,8 @@ import {
41
45
  getScopeLabel,
42
46
  injectBackChoice,
43
47
  showConfigHint
44
- } from "./chunk-EFRPDFO7.js";
48
+ } from "./chunk-IKLMHJH6.js";
45
49
  import "./chunk-EVGXUDX4.js";
46
- import {
47
- log,
48
- printBanner
49
- } from "./chunk-NREZK463.js";
50
- import {
51
- getAllRules,
52
- getExistingRules
53
- } from "./chunk-O5ZKLFSL.js";
54
50
  import {
55
51
  mergeJson,
56
52
  readJson
@@ -63,6 +59,10 @@ import {
63
59
  localConfigPath,
64
60
  resolvePath
65
61
  } from "./chunk-X2H7JJMR.js";
62
+ import {
63
+ log,
64
+ printBanner
65
+ } from "./chunk-NREZK463.js";
66
66
 
67
67
  // src/commands/config.ts
68
68
  import { checkbox, confirm, input, select } from "@inquirer/prompts";
@@ -668,7 +668,7 @@ async function editPermissions() {
668
668
  )
669
669
  });
670
670
  if (choice === BACK) return;
671
- const { permissionCommand } = await import("./permission-PB3OMKRB.js");
671
+ const { permissionCommand } = await import("./permission-I3OFJUYA.js");
672
672
  switch (choice) {
673
673
  case "interactive":
674
674
  await permissionCommand({});
@@ -4,13 +4,13 @@ import {
4
4
  } from "./chunk-GZT3YPAP.js";
5
5
  import {
6
6
  resolveScope
7
- } from "./chunk-EFRPDFO7.js";
7
+ } from "./chunk-IKLMHJH6.js";
8
8
  import "./chunk-EVGXUDX4.js";
9
+ import "./chunk-5UVDWG5L.js";
10
+ import "./chunk-X2H7JJMR.js";
9
11
  import {
10
12
  log
11
13
  } from "./chunk-NREZK463.js";
12
- import "./chunk-5UVDWG5L.js";
13
- import "./chunk-X2H7JJMR.js";
14
14
 
15
15
  // src/commands/disable.ts
16
16
  import chalk from "chalk";
@@ -4,13 +4,13 @@ import {
4
4
  } from "./chunk-GZT3YPAP.js";
5
5
  import {
6
6
  resolveScope
7
- } from "./chunk-EFRPDFO7.js";
7
+ } from "./chunk-IKLMHJH6.js";
8
8
  import "./chunk-EVGXUDX4.js";
9
+ import "./chunk-5UVDWG5L.js";
10
+ import "./chunk-X2H7JJMR.js";
9
11
  import {
10
12
  log
11
13
  } from "./chunk-NREZK463.js";
12
- import "./chunk-5UVDWG5L.js";
13
- import "./chunk-X2H7JJMR.js";
14
14
 
15
15
  // src/commands/enable.ts
16
16
  import chalk from "chalk";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveLearnDir
3
- } from "./chunk-DUKBBMVM.js";
3
+ } from "./chunk-YOXXIXMQ.js";
4
4
  import {
5
5
  getLibPath
6
6
  } from "./chunk-RZRT7NGT.js";
@@ -9,16 +9,16 @@ import {
9
9
  run,
10
10
  streamExec
11
11
  } from "./chunk-EVGXUDX4.js";
12
- import {
13
- log,
14
- printBanner
15
- } from "./chunk-NREZK463.js";
16
12
  import {
17
13
  readJson
18
14
  } from "./chunk-5UVDWG5L.js";
19
15
  import {
20
16
  globalConfigPath
21
17
  } from "./chunk-X2H7JJMR.js";
18
+ import {
19
+ log,
20
+ printBanner
21
+ } from "./chunk-NREZK463.js";
22
22
 
23
23
  // src/commands/host.ts
24
24
  import { existsSync, readdirSync } from "fs";
package/dist/index.js CHANGED
@@ -14,27 +14,27 @@ 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-NALHBTGG.js");
17
+ const { installCommand } = await import("./install-H5VELYYZ.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) => {
21
- const { uninstallCommand } = await import("./uninstall-JLSEHXS5.js");
21
+ const { uninstallCommand } = await import("./uninstall-ASLHT3MH.js");
22
22
  await uninstallCommand(opts);
23
23
  });
24
24
  program.command("disable").description("Disable the Coding Friend plugin without uninstalling").option("--user", "Disable at user scope (all projects)").option("--global", "Disable at user scope (all projects)").option("--project", "Disable at project scope").option("--local", "Disable at local scope").action(async (opts) => {
25
- const { disableCommand } = await import("./disable-35RSJICU.js");
25
+ const { disableCommand } = await import("./disable-HL5OEURT.js");
26
26
  await disableCommand(opts);
27
27
  });
28
28
  program.command("enable").description("Re-enable the Coding Friend plugin").option("--user", "Enable at user scope (all projects)").option("--global", "Enable at user scope (all projects)").option("--project", "Enable at project scope").option("--local", "Enable at local scope").action(async (opts) => {
29
- const { enableCommand } = await import("./enable-RXWDQRIU.js");
29
+ const { enableCommand } = await import("./enable-CZIOCKKJ.js");
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-QXCMAPXT.js");
33
+ const { initCommand } = await import("./init-ZEGE7T5H.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-36YY3XLM.js");
37
+ const { configCommand } = await import("./config-NG46PYON.js");
38
38
  await configCommand();
39
39
  });
40
40
  var learn = program.command("learn").description("Manage learning docs \u2014 host as a website or push to git");
@@ -46,19 +46,19 @@ Learn subcommands:
46
46
  learn push [path] Commit and push learning docs (only if learn dir is the git root)`
47
47
  );
48
48
  learn.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) => {
49
- const { hostCommand } = await import("./host-BYJEZN6T.js");
49
+ const { hostCommand } = await import("./host-SN27RONR.js");
50
50
  await hostCommand(path, opts);
51
51
  });
52
52
  learn.command("push").description("Commit and push learning docs to origin").argument("[path]", "path to docs folder").action(async (path) => {
53
- const { learnPushCommand } = await import("./learn-PNG2TI2E.js");
53
+ const { learnPushCommand } = await import("./learn-27FL56ZT.js");
54
54
  await learnPushCommand(path);
55
55
  });
56
56
  program.command("host", { hidden: true }).argument("[path]", "path to docs folder").option("-p, --port <port>", "port number", "3333").action(async (path, opts) => {
57
- const { hostCommand } = await import("./host-BYJEZN6T.js");
57
+ const { hostCommand } = await import("./host-SN27RONR.js");
58
58
  await hostCommand(path, opts);
59
59
  });
60
60
  program.command("mcp").description("Setup MCP server for learning docs").action(async () => {
61
- const { mcpCommand } = await import("./mcp-6GRHKIQW.js");
61
+ const { mcpCommand } = await import("./mcp-4ODYPJ4N.js");
62
62
  await mcpCommand();
63
63
  });
64
64
  program.command("mcp-serve").description("Start the cf-memory MCP server (used internally by npx)").argument("<memoryDir>", "path to memory directory").action(async (memoryDir) => {
@@ -66,30 +66,30 @@ program.command("mcp-serve").description("Start the cf-memory MCP server (used i
66
66
  await mcpServeCommand(memoryDir);
67
67
  });
68
68
  program.command("mcp-serve-learn").description("Start the learn MCP server (used internally by npx)").argument("<docsDir>", "path to docs directory").action(async (docsDir) => {
69
- const { mcpServeLearnCommand } = await import("./mcp-serve-learn-36ZQQQTF.js");
69
+ const { mcpServeLearnCommand } = await import("./mcp-serve-learn-OF3ZJUJC.js");
70
70
  await mcpServeLearnCommand(docsDir);
71
71
  });
72
72
  program.command("permission").description("Manage Claude Code permission rules for Coding Friend").option("--all", "Apply all recommended permissions without prompts").option("--user", "Save to user-level settings (~/.claude/settings.json)").option(
73
73
  "--project",
74
74
  "Save to project-level settings (.claude/settings.local.json)"
75
75
  ).action(async (opts) => {
76
- const { permissionCommand } = await import("./permission-PB3OMKRB.js");
76
+ const { permissionCommand } = await import("./permission-I3OFJUYA.js");
77
77
  await permissionCommand(opts);
78
78
  });
79
79
  program.command("statusline").description("Setup coding-friend statusline in Claude Code").action(async () => {
80
- const { statuslineCommand } = await import("./statusline-3Z4DE24F.js");
80
+ const { statuslineCommand } = await import("./statusline-WDTN3OI4.js");
81
81
  await statuslineCommand();
82
82
  });
83
83
  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) => {
84
- const { updateCommand } = await import("./update-MO5BT3C5.js");
84
+ const { updateCommand } = await import("./update-DHY2EIY6.js");
85
85
  await updateCommand(opts);
86
86
  });
87
87
  program.command("status").description("Show comprehensive Coding Friend status").action(async () => {
88
- const { statusCommand } = await import("./status-SG5LCXER.js");
88
+ const { statusCommand } = await import("./status-EAVPCBVN.js");
89
89
  await statusCommand();
90
90
  });
91
91
  program.command("clean").description("Clean files generated by Coding Friend in docs/").action(async () => {
92
- const { cleanCommand } = await import("./clean-2IRHH4SU.js");
92
+ const { cleanCommand } = await import("./clean-HOVZN7PF.js");
93
93
  await cleanCommand();
94
94
  });
95
95
  var session = program.command("session").description("[beta] Save and load Claude Code sessions across machines");
@@ -104,11 +104,11 @@ session.command("save").description("Save current Claude Code session to sync fo
104
104
  "-s, --session-id <id>",
105
105
  "session UUID to save (default: auto-detect newest)"
106
106
  ).option("-l, --label <label>", "label for this session").action(async (opts) => {
107
- const { sessionSaveCommand } = await import("./session-YJJRGQPX.js");
107
+ const { sessionSaveCommand } = await import("./session-YIQMX4BQ.js");
108
108
  await sessionSaveCommand(opts);
109
109
  });
110
110
  session.command("load").description("Load a saved session from sync folder").action(async () => {
111
- const { sessionLoadCommand } = await import("./session-YJJRGQPX.js");
111
+ const { sessionLoadCommand } = await import("./session-YIQMX4BQ.js");
112
112
  await sessionLoadCommand();
113
113
  });
114
114
  var memory = program.command("memory").description("AI memory system \u2014 store and search project knowledge");
@@ -128,43 +128,43 @@ Memory subcommands:
128
128
  memory mcp Show MCP server setup instructions`
129
129
  );
130
130
  memory.command("status").description("Show memory system status").action(async () => {
131
- const { memoryStatusCommand } = await import("./memory-A7OUTQ54.js");
131
+ const { memoryStatusCommand } = await import("./memory-5U6GGTVI.js");
132
132
  await memoryStatusCommand();
133
133
  });
134
134
  memory.command("search").description("Search memories by query").argument("<query>", "search query").action(async (query) => {
135
- const { memorySearchCommand } = await import("./memory-A7OUTQ54.js");
135
+ const { memorySearchCommand } = await import("./memory-5U6GGTVI.js");
136
136
  await memorySearchCommand(query);
137
137
  });
138
138
  memory.command("list").description(
139
139
  "List memories in current project, or all projects with --projects"
140
140
  ).option("--projects", "List all project databases with size and metadata").action(async (opts) => {
141
- const { memoryListCommand } = await import("./memory-A7OUTQ54.js");
141
+ const { memoryListCommand } = await import("./memory-5U6GGTVI.js");
142
142
  await memoryListCommand(opts);
143
143
  });
144
144
  memory.command("init").description(
145
145
  "Initialize memory system \u2014 interactive wizard (first time) or config menu"
146
146
  ).action(async () => {
147
- const { memoryInitCommand } = await import("./memory-A7OUTQ54.js");
147
+ const { memoryInitCommand } = await import("./memory-5U6GGTVI.js");
148
148
  await memoryInitCommand();
149
149
  });
150
150
  memory.command("config").description("Configure memory system settings").action(async () => {
151
- const { memoryConfigCommand } = await import("./memory-A7OUTQ54.js");
151
+ const { memoryConfigCommand } = await import("./memory-5U6GGTVI.js");
152
152
  await memoryConfigCommand();
153
153
  });
154
154
  memory.command("start-daemon").description("Start the memory daemon (Tier 2 \u2014 MiniSearch)").action(async () => {
155
- const { memoryStartDaemonCommand } = await import("./memory-A7OUTQ54.js");
155
+ const { memoryStartDaemonCommand } = await import("./memory-5U6GGTVI.js");
156
156
  await memoryStartDaemonCommand();
157
157
  });
158
158
  memory.command("stop-daemon").description("Stop the memory daemon").action(async () => {
159
- const { memoryStopDaemonCommand } = await import("./memory-A7OUTQ54.js");
159
+ const { memoryStopDaemonCommand } = await import("./memory-5U6GGTVI.js");
160
160
  await memoryStopDaemonCommand();
161
161
  });
162
162
  memory.command("rebuild").description("Rebuild the daemon search index").action(async () => {
163
- const { memoryRebuildCommand } = await import("./memory-A7OUTQ54.js");
163
+ const { memoryRebuildCommand } = await import("./memory-5U6GGTVI.js");
164
164
  await memoryRebuildCommand();
165
165
  });
166
166
  memory.command("mcp").description("Show MCP server setup instructions").action(async () => {
167
- const { memoryMcpCommand } = await import("./memory-A7OUTQ54.js");
167
+ const { memoryMcpCommand } = await import("./memory-5U6GGTVI.js");
168
168
  await memoryMcpCommand();
169
169
  });
170
170
  memory.command("rm").description("Remove a project database").option("--project-id <id>", "Project ID to remove").option("--all", "Remove all project databases").option(
@@ -172,17 +172,17 @@ memory.command("rm").description("Remove a project database").option("--project-
172
172
  "Remove orphaned projects (source dir missing or 0 memories)"
173
173
  ).action(
174
174
  async (opts) => {
175
- const { memoryRmCommand } = await import("./memory-A7OUTQ54.js");
175
+ const { memoryRmCommand } = await import("./memory-5U6GGTVI.js");
176
176
  await memoryRmCommand(opts);
177
177
  }
178
178
  );
179
179
  var guide = program.command("guide").description("Manage custom skill guides");
180
180
  guide.command("create").description("Create a custom guide for a skill").argument("<skill-name>", "skill to create guide for (e.g. cf-commit)").action(async (skillName) => {
181
- const { guideCreateCommand } = await import("./guide-ECSMH2AT.js");
181
+ const { guideCreateCommand } = await import("./guide-CO2V4ZLZ.js");
182
182
  guideCreateCommand(skillName);
183
183
  });
184
184
  guide.command("list").description("List existing custom guides").action(async () => {
185
- const { guideListCommand } = await import("./guide-ECSMH2AT.js");
185
+ const { guideListCommand } = await import("./guide-CO2V4ZLZ.js");
186
186
  guideListCommand();
187
187
  });
188
188
  var dev = program.command("dev").description("Development mode commands");
@@ -198,28 +198,28 @@ Dev subcommands:
198
198
  dev update [path] Update local dev plugin to latest version`
199
199
  );
200
200
  dev.command("on").description("Switch to local plugin source").argument("[path]", "path to local coding-friend repo (default: cwd)").action(async (path) => {
201
- const { devOnCommand } = await import("./dev-JSYPSXEZ.js");
201
+ const { devOnCommand } = await import("./dev-GKD52XE6.js");
202
202
  await devOnCommand(path);
203
203
  });
204
204
  dev.command("off").description("Switch back to remote marketplace").action(async () => {
205
- const { devOffCommand } = await import("./dev-JSYPSXEZ.js");
205
+ const { devOffCommand } = await import("./dev-GKD52XE6.js");
206
206
  await devOffCommand();
207
207
  });
208
208
  dev.command("status").description("Show current dev mode").action(async () => {
209
- const { devStatusCommand } = await import("./dev-JSYPSXEZ.js");
209
+ const { devStatusCommand } = await import("./dev-GKD52XE6.js");
210
210
  await devStatusCommand();
211
211
  });
212
212
  dev.command("sync").description(
213
213
  "Copy local source files to plugin cache (no version bump needed)"
214
214
  ).action(async () => {
215
- const { devSyncCommand } = await import("./dev-JSYPSXEZ.js");
215
+ const { devSyncCommand } = await import("./dev-GKD52XE6.js");
216
216
  await devSyncCommand();
217
217
  });
218
218
  dev.command("restart").description("Reinstall local dev plugin (off + on)").argument(
219
219
  "[path]",
220
220
  "path to local coding-friend repo (default: saved path or cwd)"
221
221
  ).action(async (path) => {
222
- const { devRestartCommand } = await import("./dev-JSYPSXEZ.js");
222
+ const { devRestartCommand } = await import("./dev-GKD52XE6.js");
223
223
  await devRestartCommand(path);
224
224
  });
225
225
  dev.command("update").description(
@@ -228,13 +228,13 @@ dev.command("update").description(
228
228
  "[path]",
229
229
  "path to local coding-friend repo (default: saved path or cwd)"
230
230
  ).action(async (path) => {
231
- const { devUpdateCommand } = await import("./dev-JSYPSXEZ.js");
231
+ const { devUpdateCommand } = await import("./dev-GKD52XE6.js");
232
232
  await devUpdateCommand(path);
233
233
  });
234
234
  program.hook("postAction", async () => {
235
235
  const topCmd = process.argv[2];
236
236
  if (topCmd === "update") return;
237
- const { checkAndNotifyCliUpdate } = await import("./update-check-I2RSVGFO.js");
237
+ const { checkAndNotifyCliUpdate } = await import("./update-check-25SCLHZO.js");
238
238
  checkAndNotifyCliUpdate(pkg.version);
239
239
  });
240
240
  await program.parseAsync();
@@ -1,17 +1,26 @@
1
1
  import {
2
- ensureMemoryBuilt,
3
- isMemoryInitialized,
4
- memoryInitWizard
5
- } from "./chunk-GHR3TNL6.js";
6
- import "./chunk-PQUACN4U.js";
2
+ applyPermissions,
3
+ buildLearnDirRules,
4
+ cleanupStalePluginRules,
5
+ getAllRules,
6
+ getExistingRules,
7
+ getMissingRules,
8
+ logPluginScriptWarning
9
+ } from "./chunk-O5ZKLFSL.js";
7
10
  import {
8
11
  isLearnMcpRegistered,
9
12
  registerLearnMcp
10
- } from "./chunk-TEC25H6C.js";
13
+ } from "./chunk-YIXAQ4R2.js";
14
+ import {
15
+ ensureMemoryBuilt,
16
+ isMemoryInitialized,
17
+ memoryInitWizard
18
+ } from "./chunk-HF7Y63JR.js";
19
+ import "./chunk-HILXDUVZ.js";
11
20
  import {
12
21
  memoryConfigMenu
13
- } from "./chunk-7QFJODWB.js";
14
- import "./chunk-DUKBBMVM.js";
22
+ } from "./chunk-2MOPHSMC.js";
23
+ import "./chunk-YOXXIXMQ.js";
15
24
  import {
16
25
  getLibPath
17
26
  } from "./chunk-RZRT7NGT.js";
@@ -43,24 +52,11 @@ import {
43
52
  getScopeLabel,
44
53
  injectBackChoice,
45
54
  showConfigHint
46
- } from "./chunk-EFRPDFO7.js";
55
+ } from "./chunk-IKLMHJH6.js";
47
56
  import {
48
57
  commandExists,
49
58
  run
50
59
  } from "./chunk-EVGXUDX4.js";
51
- import {
52
- log,
53
- printBanner
54
- } from "./chunk-NREZK463.js";
55
- import {
56
- applyPermissions,
57
- buildLearnDirRules,
58
- cleanupStalePluginRules,
59
- getAllRules,
60
- getExistingRules,
61
- getMissingRules,
62
- logPluginScriptWarning
63
- } from "./chunk-O5ZKLFSL.js";
64
60
  import {
65
61
  mergeJson,
66
62
  readJson,
@@ -74,6 +70,10 @@ import {
74
70
  localConfigPath,
75
71
  resolvePath
76
72
  } from "./chunk-X2H7JJMR.js";
73
+ import {
74
+ log,
75
+ printBanner
76
+ } from "./chunk-NREZK463.js";
77
77
 
78
78
  // src/commands/init.ts
79
79
  import { checkbox, confirm, input, select } from "@inquirer/prompts";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getLatestVersion,
3
3
  semverCompare
4
- } from "./chunk-KIKN5HEH.js";
4
+ } from "./chunk-76GDRS54.js";
5
5
  import {
6
6
  getInstalledVersion
7
7
  } from "./chunk-7SMP5CZ4.js";
@@ -16,19 +16,19 @@ import {
16
16
  } from "./chunk-GZT3YPAP.js";
17
17
  import {
18
18
  resolveScope
19
- } from "./chunk-EFRPDFO7.js";
19
+ } from "./chunk-IKLMHJH6.js";
20
20
  import {
21
21
  commandExists,
22
22
  run
23
23
  } from "./chunk-EVGXUDX4.js";
24
- import {
25
- log,
26
- printBanner
27
- } from "./chunk-NREZK463.js";
28
24
  import "./chunk-5UVDWG5L.js";
29
25
  import {
30
26
  devStatePath
31
27
  } from "./chunk-X2H7JJMR.js";
28
+ import {
29
+ log,
30
+ printBanner
31
+ } from "./chunk-NREZK463.js";
32
32
 
33
33
  // src/commands/install.ts
34
34
  import { existsSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveLearnDir
3
- } from "./chunk-DUKBBMVM.js";
3
+ } from "./chunk-YOXXIXMQ.js";
4
4
  import "./chunk-57EGAXYI.js";
5
5
  import {
6
6
  commandExists,
@@ -8,16 +8,16 @@ import {
8
8
  runWithStderr,
9
9
  streamExec
10
10
  } from "./chunk-EVGXUDX4.js";
11
- import {
12
- log,
13
- printBanner
14
- } from "./chunk-NREZK463.js";
15
11
  import {
16
12
  readJson
17
13
  } from "./chunk-5UVDWG5L.js";
18
14
  import {
19
15
  globalConfigPath
20
16
  } from "./chunk-X2H7JJMR.js";
17
+ import {
18
+ log,
19
+ printBanner
20
+ } from "./chunk-NREZK463.js";
21
21
 
22
22
  // src/commands/learn.ts
23
23
  import { existsSync } from "fs";
@@ -1,47 +1,47 @@
1
+ import {
2
+ listMdFilesRecursive
3
+ } from "./chunk-2DTXVMPQ.js";
4
+ import {
5
+ isLearnMcpRegistered,
6
+ registerLearnMcp
7
+ } from "./chunk-YIXAQ4R2.js";
1
8
  import {
2
9
  ensureMemoryBuilt,
3
10
  printMemoryMcpConfig
4
- } from "./chunk-GHR3TNL6.js";
11
+ } from "./chunk-HF7Y63JR.js";
5
12
  import {
6
13
  checkLearnMcpHealth,
7
14
  checkMemoryMcpHealth,
8
15
  detectMemoryMcpState,
9
16
  printHealthSection,
10
17
  warnStaleMcpJson
11
- } from "./chunk-PQUACN4U.js";
12
- import {
13
- listMdFilesRecursive
14
- } from "./chunk-2DTXVMPQ.js";
15
- import {
16
- isLearnMcpRegistered,
17
- registerLearnMcp
18
- } from "./chunk-TEC25H6C.js";
18
+ } from "./chunk-HILXDUVZ.js";
19
19
  import {
20
20
  getMemoryMcpStatus,
21
21
  writeMemoryMcpEntry
22
- } from "./chunk-7QFJODWB.js";
22
+ } from "./chunk-2MOPHSMC.js";
23
23
  import {
24
24
  resolveLearnDir,
25
25
  resolveMemoryDir
26
- } from "./chunk-DUKBBMVM.js";
26
+ } from "./chunk-YOXXIXMQ.js";
27
27
  import {
28
28
  getLibPath
29
29
  } from "./chunk-RZRT7NGT.js";
30
30
  import "./chunk-57EGAXYI.js";
31
- import "./chunk-EFRPDFO7.js";
31
+ import "./chunk-IKLMHJH6.js";
32
32
  import {
33
33
  run
34
34
  } from "./chunk-EVGXUDX4.js";
35
- import {
36
- log,
37
- printBanner
38
- } from "./chunk-NREZK463.js";
39
35
  import {
40
36
  readJson
41
37
  } from "./chunk-5UVDWG5L.js";
42
38
  import {
43
39
  globalConfigPath
44
40
  } from "./chunk-X2H7JJMR.js";
41
+ import {
42
+ log,
43
+ printBanner
44
+ } from "./chunk-NREZK463.js";
45
45
 
46
46
  // src/commands/mcp.ts
47
47
  import { confirm } from "@inquirer/prompts";
@@ -12,18 +12,19 @@ import {
12
12
  memoryStartDaemonCommand,
13
13
  memoryStatusCommand,
14
14
  memoryStopDaemonCommand,
15
- printMemoryMcpConfig
16
- } from "./chunk-GHR3TNL6.js";
17
- import "./chunk-PQUACN4U.js";
18
- import "./chunk-7QFJODWB.js";
19
- import "./chunk-DUKBBMVM.js";
15
+ printMemoryMcpConfig,
16
+ refreshMemoryAfterUpdate
17
+ } from "./chunk-HF7Y63JR.js";
18
+ import "./chunk-HILXDUVZ.js";
19
+ import "./chunk-2MOPHSMC.js";
20
+ import "./chunk-YOXXIXMQ.js";
20
21
  import "./chunk-RZRT7NGT.js";
21
22
  import "./chunk-57EGAXYI.js";
22
- import "./chunk-EFRPDFO7.js";
23
+ import "./chunk-IKLMHJH6.js";
23
24
  import "./chunk-EVGXUDX4.js";
24
- import "./chunk-NREZK463.js";
25
25
  import "./chunk-5UVDWG5L.js";
26
26
  import "./chunk-X2H7JJMR.js";
27
+ import "./chunk-NREZK463.js";
27
28
  export {
28
29
  ensureMemoryBuilt,
29
30
  isMemoryInitialized,
@@ -38,5 +39,6 @@ export {
38
39
  memoryStartDaemonCommand,
39
40
  memoryStatusCommand,
40
41
  memoryStopDaemonCommand,
41
- printMemoryMcpConfig
42
+ printMemoryMcpConfig,
43
+ refreshMemoryAfterUpdate
42
44
  };
@@ -1,14 +1,3 @@
1
- import {
2
- askScope,
3
- formatScopeLabel,
4
- getMergedValue,
5
- getScopeLabel
6
- } from "./chunk-EFRPDFO7.js";
7
- import "./chunk-EVGXUDX4.js";
8
- import {
9
- log,
10
- printBanner
11
- } from "./chunk-NREZK463.js";
12
1
  import {
13
2
  STATIC_RULES,
14
3
  applyPermissions,
@@ -20,6 +9,13 @@ import {
20
9
  logPluginScriptWarning,
21
10
  runDangerousRulesAudit
22
11
  } from "./chunk-O5ZKLFSL.js";
12
+ import {
13
+ askScope,
14
+ formatScopeLabel,
15
+ getMergedValue,
16
+ getScopeLabel
17
+ } from "./chunk-IKLMHJH6.js";
18
+ import "./chunk-EVGXUDX4.js";
23
19
  import {
24
20
  mergeJson,
25
21
  readJson
@@ -31,6 +27,10 @@ import {
31
27
  globalConfigPath,
32
28
  localConfigPath
33
29
  } from "./chunk-X2H7JJMR.js";
30
+ import {
31
+ log,
32
+ printBanner
33
+ } from "./chunk-NREZK463.js";
34
34
 
35
35
  // src/commands/permission.ts
36
36
  import { checkbox, confirm, select } from "@inquirer/prompts";
@@ -1,10 +1,7 @@
1
1
  import {
2
2
  loadConfig
3
- } from "./chunk-DUKBBMVM.js";
3
+ } from "./chunk-YOXXIXMQ.js";
4
4
  import "./chunk-57EGAXYI.js";
5
- import {
6
- log
7
- } from "./chunk-NREZK463.js";
8
5
  import {
9
6
  readJson,
10
7
  writeJson
@@ -14,6 +11,9 @@ import {
14
11
  encodeProjectPath,
15
12
  resolvePath
16
13
  } from "./chunk-X2H7JJMR.js";
14
+ import {
15
+ log
16
+ } from "./chunk-NREZK463.js";
17
17
 
18
18
  // src/commands/session.ts
19
19
  import { input, select } from "@inquirer/prompts";
@@ -1,19 +1,22 @@
1
1
  import {
2
- checkLearnMcpHealth,
3
- checkMemoryMcpHealth
4
- } from "./chunk-PQUACN4U.js";
2
+ getExistingRules
3
+ } from "./chunk-O5ZKLFSL.js";
5
4
  import {
6
5
  listMdFilesRecursive
7
6
  } from "./chunk-2DTXVMPQ.js";
8
7
  import {
9
8
  isLearnMcpRegistered
10
- } from "./chunk-TEC25H6C.js";
11
- import "./chunk-7QFJODWB.js";
9
+ } from "./chunk-YIXAQ4R2.js";
10
+ import {
11
+ checkLearnMcpHealth,
12
+ checkMemoryMcpHealth
13
+ } from "./chunk-HILXDUVZ.js";
14
+ import "./chunk-2MOPHSMC.js";
12
15
  import {
13
16
  resolveLearnDir,
14
17
  resolveMemoryDir,
15
18
  sanitizeRawConfig
16
- } from "./chunk-DUKBBMVM.js";
19
+ } from "./chunk-YOXXIXMQ.js";
17
20
  import {
18
21
  getLibPath
19
22
  } from "./chunk-RZRT7NGT.js";
@@ -22,7 +25,7 @@ import {
22
25
  getLatestCliVersion,
23
26
  getLatestVersion,
24
27
  semverCompare
25
- } from "./chunk-KIKN5HEH.js";
28
+ } from "./chunk-76GDRS54.js";
26
29
  import {
27
30
  getInstalledVersion
28
31
  } from "./chunk-7SMP5CZ4.js";
@@ -32,12 +35,8 @@ import {
32
35
  detectPluginScope,
33
36
  isPluginDisabled
34
37
  } from "./chunk-GZT3YPAP.js";
35
- import "./chunk-EFRPDFO7.js";
38
+ import "./chunk-IKLMHJH6.js";
36
39
  import "./chunk-EVGXUDX4.js";
37
- import "./chunk-NREZK463.js";
38
- import {
39
- getExistingRules
40
- } from "./chunk-O5ZKLFSL.js";
41
40
  import {
42
41
  readJson
43
42
  } from "./chunk-5UVDWG5L.js";
@@ -47,6 +46,7 @@ import {
47
46
  globalConfigPath,
48
47
  localConfigPath
49
48
  } from "./chunk-X2H7JJMR.js";
49
+ import "./chunk-NREZK463.js";
50
50
 
51
51
  // src/commands/status.ts
52
52
  import { existsSync, readdirSync } from "fs";
@@ -8,15 +8,11 @@ import {
8
8
  } from "./chunk-GZT3YPAP.js";
9
9
  import {
10
10
  resolveScope
11
- } from "./chunk-EFRPDFO7.js";
11
+ } from "./chunk-IKLMHJH6.js";
12
12
  import {
13
13
  commandExists,
14
14
  run
15
15
  } from "./chunk-EVGXUDX4.js";
16
- import {
17
- log,
18
- printBanner
19
- } from "./chunk-NREZK463.js";
20
16
  import {
21
17
  readJson,
22
18
  writeJson
@@ -29,6 +25,10 @@ import {
29
25
  marketplaceClonePath,
30
26
  memoryDepsDir
31
27
  } from "./chunk-X2H7JJMR.js";
28
+ import {
29
+ log,
30
+ printBanner
31
+ } from "./chunk-NREZK463.js";
32
32
 
33
33
  // src/commands/uninstall.ts
34
34
  import { existsSync, rmSync } from "fs";
@@ -4,15 +4,15 @@ import {
4
4
  getLatestVersion,
5
5
  semverCompare,
6
6
  updateCommand
7
- } from "./chunk-KIKN5HEH.js";
7
+ } from "./chunk-76GDRS54.js";
8
8
  import "./chunk-7SMP5CZ4.js";
9
9
  import "./chunk-57EGAXYI.js";
10
10
  import "./chunk-667NMPN4.js";
11
- import "./chunk-EFRPDFO7.js";
11
+ import "./chunk-IKLMHJH6.js";
12
12
  import "./chunk-EVGXUDX4.js";
13
- import "./chunk-NREZK463.js";
14
13
  import "./chunk-5UVDWG5L.js";
15
14
  import "./chunk-X2H7JJMR.js";
15
+ import "./chunk-NREZK463.js";
16
16
  export {
17
17
  getCliVersion,
18
18
  getLatestCliVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coding-friend-cli",
3
- "version": "1.36.0",
3
+ "version": "1.36.1",
4
4
  "description": "CLI for coding-friend — host learning docs, setup MCP server, initialize projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,9 +1,6 @@
1
1
  import {
2
2
  run
3
3
  } from "./chunk-EVGXUDX4.js";
4
- import {
5
- log
6
- } from "./chunk-NREZK463.js";
7
4
  import {
8
5
  readJson
9
6
  } from "./chunk-5UVDWG5L.js";
@@ -11,6 +8,9 @@ import {
11
8
  globalConfigPath,
12
9
  localConfigPath
13
10
  } from "./chunk-X2H7JJMR.js";
11
+ import {
12
+ log
13
+ } from "./chunk-NREZK463.js";
14
14
 
15
15
  // src/lib/prompt-utils.ts
16
16
  import { select, Separator } from "@inquirer/prompts";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  runWithStderr
3
3
  } from "./chunk-EVGXUDX4.js";
4
- import {
5
- log
6
- } from "./chunk-NREZK463.js";
7
4
  import {
8
5
  resolvePath
9
6
  } from "./chunk-X2H7JJMR.js";
7
+ import {
8
+ log
9
+ } from "./chunk-NREZK463.js";
10
10
 
11
11
  // src/lib/learn-prompts.ts
12
12
  var MCP_NAME = "coding-friend-learn";
@@ -1,9 +1,6 @@
1
1
  import {
2
2
  DEFAULT_CONFIG
3
3
  } from "./chunk-57EGAXYI.js";
4
- import {
5
- log
6
- } from "./chunk-NREZK463.js";
7
4
  import {
8
5
  readJson
9
6
  } from "./chunk-5UVDWG5L.js";
@@ -12,6 +9,9 @@ import {
12
9
  localConfigPath,
13
10
  resolvePath
14
11
  } from "./chunk-X2H7JJMR.js";
12
+ import {
13
+ log
14
+ } from "./chunk-NREZK463.js";
15
15
 
16
16
  // src/lib/config.ts
17
17
  import { z } from "zod";
@@ -14,10 +14,6 @@ import {
14
14
  run,
15
15
  runWithStderr
16
16
  } from "./chunk-EVGXUDX4.js";
17
- import {
18
- log,
19
- printBanner
20
- } from "./chunk-NREZK463.js";
21
17
  import {
22
18
  readJson,
23
19
  writeJson
@@ -27,6 +23,10 @@ import {
27
23
  knownMarketplacesPath,
28
24
  pluginCachePath
29
25
  } from "./chunk-X2H7JJMR.js";
26
+ import {
27
+ log,
28
+ printBanner
29
+ } from "./chunk-NREZK463.js";
30
30
 
31
31
  // src/commands/dev.ts
32
32
  import {
@@ -1,6 +1,3 @@
1
- import {
2
- log
3
- } from "./chunk-NREZK463.js";
4
1
  import {
5
2
  readJson
6
3
  } from "./chunk-5UVDWG5L.js";
@@ -8,6 +5,9 @@ import {
8
5
  devStatePath,
9
6
  pluginCachePath
10
7
  } from "./chunk-X2H7JJMR.js";
8
+ import {
9
+ log
10
+ } from "./chunk-NREZK463.js";
11
11
 
12
12
  // src/commands/guide.ts
13
13
  import chalk from "chalk";
@@ -4,15 +4,15 @@ import {
4
4
  import {
5
5
  runWithStderr
6
6
  } from "./chunk-EVGXUDX4.js";
7
- import {
8
- log
9
- } from "./chunk-NREZK463.js";
10
7
  import {
11
8
  readJson
12
9
  } from "./chunk-5UVDWG5L.js";
13
10
  import {
14
11
  globalConfigPath
15
12
  } from "./chunk-X2H7JJMR.js";
13
+ import {
14
+ log
15
+ } from "./chunk-NREZK463.js";
16
16
 
17
17
  // src/commands/mcp-serve-learn.ts
18
18
  import { spawn } from "child_process";
@@ -15,12 +15,12 @@ import {
15
15
  import {
16
16
  commandExists
17
17
  } from "./chunk-EVGXUDX4.js";
18
+ import "./chunk-5UVDWG5L.js";
19
+ import "./chunk-X2H7JJMR.js";
18
20
  import {
19
21
  log,
20
22
  printBanner
21
23
  } from "./chunk-NREZK463.js";
22
- import "./chunk-5UVDWG5L.js";
23
- import "./chunk-X2H7JJMR.js";
24
24
 
25
25
  // src/commands/statusline.ts
26
26
  import { confirm } from "@inquirer/prompts";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  run
3
3
  } from "./chunk-EVGXUDX4.js";
4
- import {
5
- log
6
- } from "./chunk-NREZK463.js";
7
4
  import {
8
5
  globalConfigDir
9
6
  } from "./chunk-X2H7JJMR.js";
7
+ import {
8
+ log
9
+ } from "./chunk-NREZK463.js";
10
10
 
11
11
  // src/lib/update-check.ts
12
12
  import { existsSync, readFileSync, writeFileSync, mkdirSync } from "fs";