coding-friend-cli 1.35.3 → 1.35.4

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.
@@ -9,7 +9,7 @@ import {
9
9
  askScope,
10
10
  formatScopeLabel,
11
11
  injectBackChoice
12
- } from "./chunk-HPNRQYLM.js";
12
+ } from "./chunk-TAPL6NF3.js";
13
13
  import {
14
14
  globalConfigPath,
15
15
  localConfigPath
@@ -29,13 +29,10 @@ import { confirm, input, select } from "@inquirer/prompts";
29
29
  import chalk from "chalk";
30
30
  import { join } from "path";
31
31
  function getMemoryFieldScope(field, globalCfg, localCfg) {
32
- const globalSection = globalCfg?.memory;
33
32
  const localSection = localCfg?.memory;
34
- const inGlobal = globalSection?.[field] !== void 0;
35
- const inLocal = localSection?.[field] !== void 0;
36
- if (inGlobal && inLocal) return "both";
37
- if (inGlobal) return "global";
38
- if (inLocal) return "local";
33
+ if (localSection?.[field] !== void 0) return "local";
34
+ const globalSection = globalCfg?.memory;
35
+ if (globalSection?.[field] !== void 0) return "global";
39
36
  return "-";
40
37
  }
41
38
  function getMergedMemoryValue(field, globalCfg, localCfg) {
@@ -88,27 +88,22 @@ function showConfigHint() {
88
88
  console.log();
89
89
  console.log(` ${chalk.yellow("[-]")} ${chalk.dim("not set anywhere")}`);
90
90
  console.log(
91
- ` ${chalk.blue("[global]")} ${chalk.dim("set in global config only")}`
91
+ ` ${chalk.blue("[global]")} ${chalk.dim("effective value comes from global config")}`
92
92
  );
93
93
  console.log(
94
- ` ${chalk.green("[local]")} ${chalk.dim("set in this project only")}`
95
- );
96
- console.log(
97
- ` ${chalk.cyan("[both]")} ${chalk.dim("set in both places \u2014 local value takes effect")}`
94
+ ` ${chalk.green("[local]")} ${chalk.dim("effective value comes from this project (overrides global if set)")}`
98
95
  );
99
96
  console.log();
100
97
  }
101
98
  function getScopeLabel(key, globalCfg, localCfg) {
102
- const inGlobal = globalCfg ? globalCfg[key] !== void 0 : false;
103
99
  const inLocal = localCfg ? localCfg[key] !== void 0 : false;
104
- if (inGlobal && inLocal) return "both";
105
- if (inGlobal) return "global";
106
100
  if (inLocal) return "local";
101
+ const inGlobal = globalCfg ? globalCfg[key] !== void 0 : false;
102
+ if (inGlobal) return "global";
107
103
  return "-";
108
104
  }
109
105
  function formatScopeLabel(scope) {
110
106
  if (scope === "-") return chalk.yellow("[-]");
111
- if (scope === "both") return chalk.cyan("[both]");
112
107
  if (scope === "global") return chalk.blue("[global]");
113
108
  if (scope === "local") return chalk.green("[local]");
114
109
  return `[${scope}]`;
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-RLUNNJWJ.js";
8
8
  import {
9
9
  resolveScope
10
- } from "./chunk-HPNRQYLM.js";
10
+ } from "./chunk-TAPL6NF3.js";
11
11
  import {
12
12
  commandExists,
13
13
  run,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeMemoryMcpEntry
3
- } from "./chunk-C5YWESSF.js";
3
+ } from "./chunk-DTSWPWPA.js";
4
4
  import {
5
5
  log
6
6
  } from "./chunk-NREZK463.js";
@@ -2,12 +2,12 @@ import {
2
2
  checkMemoryMcpHealth,
3
3
  printHealthSection,
4
4
  warnStaleMcpJson
5
- } from "./chunk-E5J24GD5.js";
5
+ } from "./chunk-XMSSEJYL.js";
6
6
  import {
7
7
  getMemoryMcpStatus,
8
8
  memoryConfigMenu,
9
9
  writeMemoryMcpEntry
10
- } from "./chunk-C5YWESSF.js";
10
+ } from "./chunk-DTSWPWPA.js";
11
11
  import {
12
12
  loadConfig,
13
13
  resolveMemoryDir
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-RZRT7NGT.js";
18
18
  import {
19
19
  showConfigHint
20
- } from "./chunk-HPNRQYLM.js";
20
+ } from "./chunk-TAPL6NF3.js";
21
21
  import {
22
22
  run,
23
23
  runWithStderr
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-WSUYLIYX.js";
8
8
  import {
9
9
  memoryConfigMenu
10
- } from "./chunk-C5YWESSF.js";
10
+ } from "./chunk-DTSWPWPA.js";
11
11
  import {
12
12
  resolveLearnDir
13
13
  } from "./chunk-B2NFXRFP.js";
@@ -41,7 +41,7 @@ import {
41
41
  getScopeLabel,
42
42
  injectBackChoice,
43
43
  showConfigHint
44
- } from "./chunk-HPNRQYLM.js";
44
+ } from "./chunk-TAPL6NF3.js";
45
45
  import "./chunk-EVGXUDX4.js";
46
46
  import {
47
47
  claudeLocalSettingsPath,
@@ -645,7 +645,7 @@ async function editPermissions() {
645
645
  )
646
646
  });
647
647
  if (choice === BACK) return;
648
- const { permissionCommand } = await import("./permission-C5R3LMZQ.js");
648
+ const { permissionCommand } = await import("./permission-KLT2TLZY.js");
649
649
  switch (choice) {
650
650
  case "interactive":
651
651
  await permissionCommand({});
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-R6HDMRYL.js";
5
5
  import {
6
6
  resolveScope
7
- } from "./chunk-HPNRQYLM.js";
7
+ } from "./chunk-TAPL6NF3.js";
8
8
  import "./chunk-EVGXUDX4.js";
9
9
  import "./chunk-TWKNGPBO.js";
10
10
  import {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-R6HDMRYL.js";
5
5
  import {
6
6
  resolveScope
7
- } from "./chunk-HPNRQYLM.js";
7
+ } from "./chunk-TAPL6NF3.js";
8
8
  import "./chunk-EVGXUDX4.js";
9
9
  import "./chunk-TWKNGPBO.js";
10
10
  import {
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-SNUO2JCX.js");
17
+ const { installCommand } = await import("./install-VFD6C3LZ.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-QKEC3O64.js");
21
+ const { uninstallCommand } = await import("./uninstall-MLSKOCOZ.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-CDOM7SSI.js");
25
+ const { disableCommand } = await import("./disable-5UK4QINT.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-SF7742UR.js");
29
+ const { enableCommand } = await import("./enable-UQZNZRPI.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-F4SZBKWR.js");
33
+ const { initCommand } = await import("./init-XXSQDMEB.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-PTJ4MA4Q.js");
37
+ const { configCommand } = await import("./config-YPK4ADYG.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) => {
@@ -42,7 +42,7 @@ program.command("host").description("Build and serve learning docs as a static w
42
42
  await hostCommand(path, opts);
43
43
  });
44
44
  program.command("mcp").description("Setup MCP server for learning docs").action(async () => {
45
- const { mcpCommand } = await import("./mcp-7MO2MCLE.js");
45
+ const { mcpCommand } = await import("./mcp-AG7J6CEP.js");
46
46
  await mcpCommand();
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) => {
@@ -57,7 +57,7 @@ program.command("permission").description("Manage Claude Code permission rules f
57
57
  "--project",
58
58
  "Save to project-level settings (.claude/settings.local.json)"
59
59
  ).action(async (opts) => {
60
- const { permissionCommand } = await import("./permission-C5R3LMZQ.js");
60
+ const { permissionCommand } = await import("./permission-KLT2TLZY.js");
61
61
  await permissionCommand(opts);
62
62
  });
63
63
  program.command("statusline").description("Setup coding-friend statusline in Claude Code").action(async () => {
@@ -65,22 +65,22 @@ program.command("statusline").description("Setup coding-friend statusline in Cla
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-IBV2ULWF.js");
68
+ const { updateCommand } = await import("./update-G5YXZRMQ.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-XPVHAMBB.js");
72
+ const { statusCommand } = await import("./status-DDNQ5QNJ.js");
73
73
  await statusCommand();
74
74
  });
75
75
  program.command("clean").description("Clean files generated by Coding Friend in docs/").action(async () => {
76
76
  const { cleanCommand } = await import("./clean-67ACB4OS.js");
77
77
  await cleanCommand();
78
78
  });
79
- var session = program.command("session").description("Save and load Claude Code sessions across machines");
79
+ var session = program.command("session").description("[beta] Save and load Claude Code sessions across machines");
80
80
  program.addHelpText(
81
81
  "after",
82
82
  `
83
- Session subcommands:
83
+ Session subcommands (beta):
84
84
  session save Save current session to sync folder (use /cf-session inside a conversation)
85
85
  session load Load a saved session from sync folder and print resume command`
86
86
  );
@@ -112,43 +112,43 @@ Memory subcommands:
112
112
  memory mcp Show MCP server setup instructions`
113
113
  );
114
114
  memory.command("status").description("Show memory system status").action(async () => {
115
- const { memoryStatusCommand } = await import("./memory-XALEMWQF.js");
115
+ const { memoryStatusCommand } = await import("./memory-RZR672Q7.js");
116
116
  await memoryStatusCommand();
117
117
  });
118
118
  memory.command("search").description("Search memories by query").argument("<query>", "search query").action(async (query) => {
119
- const { memorySearchCommand } = await import("./memory-XALEMWQF.js");
119
+ const { memorySearchCommand } = await import("./memory-RZR672Q7.js");
120
120
  await memorySearchCommand(query);
121
121
  });
122
122
  memory.command("list").description(
123
123
  "List memories in current project, or all projects with --projects"
124
124
  ).option("--projects", "List all project databases with size and metadata").action(async (opts) => {
125
- const { memoryListCommand } = await import("./memory-XALEMWQF.js");
125
+ const { memoryListCommand } = await import("./memory-RZR672Q7.js");
126
126
  await memoryListCommand(opts);
127
127
  });
128
128
  memory.command("init").description(
129
129
  "Initialize memory system \u2014 interactive wizard (first time) or config menu"
130
130
  ).action(async () => {
131
- const { memoryInitCommand } = await import("./memory-XALEMWQF.js");
131
+ const { memoryInitCommand } = await import("./memory-RZR672Q7.js");
132
132
  await memoryInitCommand();
133
133
  });
134
134
  memory.command("config").description("Configure memory system settings").action(async () => {
135
- const { memoryConfigCommand } = await import("./memory-XALEMWQF.js");
135
+ const { memoryConfigCommand } = await import("./memory-RZR672Q7.js");
136
136
  await memoryConfigCommand();
137
137
  });
138
138
  memory.command("start-daemon").description("Start the memory daemon (Tier 2 \u2014 MiniSearch)").action(async () => {
139
- const { memoryStartDaemonCommand } = await import("./memory-XALEMWQF.js");
139
+ const { memoryStartDaemonCommand } = await import("./memory-RZR672Q7.js");
140
140
  await memoryStartDaemonCommand();
141
141
  });
142
142
  memory.command("stop-daemon").description("Stop the memory daemon").action(async () => {
143
- const { memoryStopDaemonCommand } = await import("./memory-XALEMWQF.js");
143
+ const { memoryStopDaemonCommand } = await import("./memory-RZR672Q7.js");
144
144
  await memoryStopDaemonCommand();
145
145
  });
146
146
  memory.command("rebuild").description("Rebuild the daemon search index").action(async () => {
147
- const { memoryRebuildCommand } = await import("./memory-XALEMWQF.js");
147
+ const { memoryRebuildCommand } = await import("./memory-RZR672Q7.js");
148
148
  await memoryRebuildCommand();
149
149
  });
150
150
  memory.command("mcp").description("Show MCP server setup instructions").action(async () => {
151
- const { memoryMcpCommand } = await import("./memory-XALEMWQF.js");
151
+ const { memoryMcpCommand } = await import("./memory-RZR672Q7.js");
152
152
  await memoryMcpCommand();
153
153
  });
154
154
  memory.command("rm").description("Remove a project database").option("--project-id <id>", "Project ID to remove").option("--all", "Remove all project databases").option(
@@ -156,7 +156,7 @@ memory.command("rm").description("Remove a project database").option("--project-
156
156
  "Remove orphaned projects (source dir missing or 0 memories)"
157
157
  ).action(
158
158
  async (opts) => {
159
- const { memoryRmCommand } = await import("./memory-XALEMWQF.js");
159
+ const { memoryRmCommand } = await import("./memory-RZR672Q7.js");
160
160
  await memoryRmCommand(opts);
161
161
  }
162
162
  );
@@ -2,15 +2,15 @@ import {
2
2
  ensureMemoryBuilt,
3
3
  isMemoryInitialized,
4
4
  memoryInitWizard
5
- } from "./chunk-L53RNEV3.js";
6
- import "./chunk-E5J24GD5.js";
5
+ } from "./chunk-YBK44KZM.js";
6
+ import "./chunk-XMSSEJYL.js";
7
7
  import {
8
8
  isLearnMcpRegistered,
9
9
  registerLearnMcp
10
10
  } from "./chunk-WSUYLIYX.js";
11
11
  import {
12
12
  memoryConfigMenu
13
- } from "./chunk-C5YWESSF.js";
13
+ } from "./chunk-DTSWPWPA.js";
14
14
  import "./chunk-B2NFXRFP.js";
15
15
  import {
16
16
  getLibPath
@@ -43,7 +43,7 @@ import {
43
43
  getScopeLabel,
44
44
  injectBackChoice,
45
45
  showConfigHint
46
- } from "./chunk-HPNRQYLM.js";
46
+ } from "./chunk-TAPL6NF3.js";
47
47
  import {
48
48
  commandExists,
49
49
  run
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getLatestVersion,
3
3
  semverCompare
4
- } from "./chunk-X5IYYO4B.js";
4
+ } from "./chunk-UIPLDRGI.js";
5
5
  import {
6
6
  getInstalledVersion
7
7
  } from "./chunk-UCYGDDFS.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-R6HDMRYL.js";
17
17
  import {
18
18
  resolveScope
19
- } from "./chunk-HPNRQYLM.js";
19
+ } from "./chunk-TAPL6NF3.js";
20
20
  import {
21
21
  commandExists,
22
22
  run
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  ensureMemoryBuilt,
3
3
  printMemoryMcpConfig
4
- } from "./chunk-L53RNEV3.js";
4
+ } from "./chunk-YBK44KZM.js";
5
5
  import {
6
6
  checkLearnMcpHealth,
7
7
  checkMemoryMcpHealth,
8
8
  detectMemoryMcpState,
9
9
  printHealthSection,
10
10
  warnStaleMcpJson
11
- } from "./chunk-E5J24GD5.js";
11
+ } from "./chunk-XMSSEJYL.js";
12
12
  import {
13
13
  listMdFilesRecursive
14
14
  } from "./chunk-2DTXVMPQ.js";
@@ -19,7 +19,7 @@ import {
19
19
  import {
20
20
  getMemoryMcpStatus,
21
21
  writeMemoryMcpEntry
22
- } from "./chunk-C5YWESSF.js";
22
+ } from "./chunk-DTSWPWPA.js";
23
23
  import {
24
24
  resolveLearnDir,
25
25
  resolveMemoryDir
@@ -28,7 +28,7 @@ import {
28
28
  getLibPath
29
29
  } from "./chunk-RZRT7NGT.js";
30
30
  import "./chunk-57EGAXYI.js";
31
- import "./chunk-HPNRQYLM.js";
31
+ import "./chunk-TAPL6NF3.js";
32
32
  import {
33
33
  run
34
34
  } from "./chunk-EVGXUDX4.js";
@@ -13,13 +13,13 @@ import {
13
13
  memoryStatusCommand,
14
14
  memoryStopDaemonCommand,
15
15
  printMemoryMcpConfig
16
- } from "./chunk-L53RNEV3.js";
17
- import "./chunk-E5J24GD5.js";
18
- import "./chunk-C5YWESSF.js";
16
+ } from "./chunk-YBK44KZM.js";
17
+ import "./chunk-XMSSEJYL.js";
18
+ import "./chunk-DTSWPWPA.js";
19
19
  import "./chunk-B2NFXRFP.js";
20
20
  import "./chunk-RZRT7NGT.js";
21
21
  import "./chunk-57EGAXYI.js";
22
- import "./chunk-HPNRQYLM.js";
22
+ import "./chunk-TAPL6NF3.js";
23
23
  import "./chunk-EVGXUDX4.js";
24
24
  import "./chunk-TWKNGPBO.js";
25
25
  import "./chunk-NREZK463.js";
@@ -3,7 +3,7 @@ import {
3
3
  formatScopeLabel,
4
4
  getMergedValue,
5
5
  getScopeLabel
6
- } from "./chunk-HPNRQYLM.js";
6
+ } from "./chunk-TAPL6NF3.js";
7
7
  import "./chunk-EVGXUDX4.js";
8
8
  import {
9
9
  claudeLocalSettingsPath,
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  checkLearnMcpHealth,
3
3
  checkMemoryMcpHealth
4
- } from "./chunk-E5J24GD5.js";
4
+ } from "./chunk-XMSSEJYL.js";
5
5
  import {
6
6
  listMdFilesRecursive
7
7
  } from "./chunk-2DTXVMPQ.js";
8
8
  import {
9
9
  isLearnMcpRegistered
10
10
  } from "./chunk-WSUYLIYX.js";
11
- import "./chunk-C5YWESSF.js";
11
+ import "./chunk-DTSWPWPA.js";
12
12
  import {
13
13
  resolveLearnDir,
14
14
  resolveMemoryDir,
@@ -22,7 +22,7 @@ import {
22
22
  getLatestCliVersion,
23
23
  getLatestVersion,
24
24
  semverCompare
25
- } from "./chunk-X5IYYO4B.js";
25
+ } from "./chunk-UIPLDRGI.js";
26
26
  import {
27
27
  getInstalledVersion
28
28
  } from "./chunk-UCYGDDFS.js";
@@ -32,7 +32,7 @@ import {
32
32
  detectPluginScope,
33
33
  isPluginDisabled
34
34
  } from "./chunk-R6HDMRYL.js";
35
- import "./chunk-HPNRQYLM.js";
35
+ import "./chunk-TAPL6NF3.js";
36
36
  import "./chunk-EVGXUDX4.js";
37
37
  import {
38
38
  claudeSettingsPath,
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-R6HDMRYL.js";
9
9
  import {
10
10
  resolveScope
11
- } from "./chunk-HPNRQYLM.js";
11
+ } from "./chunk-TAPL6NF3.js";
12
12
  import {
13
13
  commandExists,
14
14
  run
@@ -4,11 +4,11 @@ import {
4
4
  getLatestVersion,
5
5
  semverCompare,
6
6
  updateCommand
7
- } from "./chunk-X5IYYO4B.js";
7
+ } from "./chunk-UIPLDRGI.js";
8
8
  import "./chunk-UCYGDDFS.js";
9
9
  import "./chunk-57EGAXYI.js";
10
10
  import "./chunk-RLUNNJWJ.js";
11
- import "./chunk-HPNRQYLM.js";
11
+ import "./chunk-TAPL6NF3.js";
12
12
  import "./chunk-EVGXUDX4.js";
13
13
  import "./chunk-TWKNGPBO.js";
14
14
  import "./chunk-NREZK463.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coding-friend-cli",
3
- "version": "1.35.3",
3
+ "version": "1.35.4",
4
4
  "description": "CLI for coding-friend — host learning docs, setup MCP server, initialize projects",
5
5
  "type": "module",
6
6
  "bin": {