coding-friend-cli 1.35.1 → 1.35.3

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.
@@ -102,7 +102,10 @@ function saveStatuslineAlias(email, alias) {
102
102
  } else {
103
103
  delete aliases[email];
104
104
  }
105
- const updated = { ...existing, accountAliases: aliases };
105
+ const updated = {
106
+ ...existing,
107
+ accountAliases: aliases
108
+ };
106
109
  if (Object.keys(aliases).length === 0) delete updated.accountAliases;
107
110
  mergeJson(globalConfigPath(), { statusline: updated });
108
111
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ensureStatusline,
3
3
  getInstalledVersion
4
- } from "./chunk-WNTMKIKC.js";
4
+ } from "./chunk-UCYGDDFS.js";
5
5
  import {
6
6
  ensureShellCompletion
7
7
  } from "./chunk-RLUNNJWJ.js";
@@ -22,7 +22,7 @@ import {
22
22
  saveStatuslineConfig,
23
23
  selectStatuslineComponents,
24
24
  writeStatuslineSettings
25
- } from "./chunk-WNTMKIKC.js";
25
+ } from "./chunk-UCYGDDFS.js";
26
26
  import {
27
27
  ALL_COMPONENT_IDS,
28
28
  DEFAULT_CONFIG
@@ -520,6 +520,7 @@ async function editGitignore(globalCfg, localCfg) {
520
520
  `${docsDir}/sessions/`,
521
521
  `${docsDir}/reviews/`,
522
522
  `${docsDir}/context/`,
523
+ `${docsDir}/warm/`,
523
524
  ".coding-friend/"
524
525
  ];
525
526
  const existing = existsSync(".gitignore") ? readFileSync(".gitignore", "utf-8") : "";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ensureStatusline
3
- } from "./chunk-WNTMKIKC.js";
3
+ } from "./chunk-UCYGDDFS.js";
4
4
  import "./chunk-57EGAXYI.js";
5
5
  import {
6
6
  ensureShellCompletion
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-VYZSTXN6.js");
17
+ const { installCommand } = await import("./install-SNUO2JCX.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,11 +30,11 @@ 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-YM7YEEGK.js");
33
+ const { initCommand } = await import("./init-F4SZBKWR.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-HTQAALMA.js");
37
+ const { configCommand } = await import("./config-PTJ4MA4Q.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) => {
@@ -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-VFIA7OS2.js");
64
+ const { statuslineCommand } = await import("./statusline-EYTWM5X6.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-IV4Y3T72.js");
68
+ const { updateCommand } = await import("./update-IBV2ULWF.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-2XM5OZDR.js");
72
+ const { statusCommand } = await import("./status-XPVHAMBB.js");
73
73
  await statusCommand();
74
74
  });
75
75
  program.command("clean").description("Clean files generated by Coding Friend in docs/").action(async () => {
@@ -88,11 +88,11 @@ session.command("save").description("Save current Claude Code session to sync fo
88
88
  "-s, --session-id <id>",
89
89
  "session UUID to save (default: auto-detect newest)"
90
90
  ).option("-l, --label <label>", "label for this session").action(async (opts) => {
91
- const { sessionSaveCommand } = await import("./session-M4KRQ4VU.js");
91
+ const { sessionSaveCommand } = await import("./session-B3B3CSRF.js");
92
92
  await sessionSaveCommand(opts);
93
93
  });
94
94
  session.command("load").description("Load a saved session from sync folder").action(async () => {
95
- const { sessionLoadCommand } = await import("./session-M4KRQ4VU.js");
95
+ const { sessionLoadCommand } = await import("./session-B3B3CSRF.js");
96
96
  await sessionLoadCommand();
97
97
  });
98
98
  var memory = program.command("memory").description("AI memory system \u2014 store and search project knowledge");
@@ -182,35 +182,35 @@ Dev subcommands:
182
182
  dev update [path] Update local dev plugin to latest version`
183
183
  );
184
184
  dev.command("on").description("Switch to local plugin source").argument("[path]", "path to local coding-friend repo (default: cwd)").action(async (path) => {
185
- const { devOnCommand } = await import("./dev-PFUF67SH.js");
185
+ const { devOnCommand } = await import("./dev-DWIZTH25.js");
186
186
  await devOnCommand(path);
187
187
  });
188
188
  dev.command("off").description("Switch back to remote marketplace").action(async () => {
189
- const { devOffCommand } = await import("./dev-PFUF67SH.js");
189
+ const { devOffCommand } = await import("./dev-DWIZTH25.js");
190
190
  await devOffCommand();
191
191
  });
192
192
  dev.command("status").description("Show current dev mode").action(async () => {
193
- const { devStatusCommand } = await import("./dev-PFUF67SH.js");
193
+ const { devStatusCommand } = await import("./dev-DWIZTH25.js");
194
194
  await devStatusCommand();
195
195
  });
196
196
  dev.command("sync").description(
197
197
  "Copy local source files to plugin cache (no version bump needed)"
198
198
  ).action(async () => {
199
- const { devSyncCommand } = await import("./dev-PFUF67SH.js");
199
+ const { devSyncCommand } = await import("./dev-DWIZTH25.js");
200
200
  await devSyncCommand();
201
201
  });
202
202
  dev.command("restart").description("Reinstall local dev plugin (off + on)").argument(
203
203
  "[path]",
204
204
  "path to local coding-friend repo (default: saved path or cwd)"
205
205
  ).action(async (path) => {
206
- const { devRestartCommand } = await import("./dev-PFUF67SH.js");
206
+ const { devRestartCommand } = await import("./dev-DWIZTH25.js");
207
207
  await devRestartCommand(path);
208
208
  });
209
209
  dev.command("update").description("Update local dev plugin to latest version (off + on)").argument(
210
210
  "[path]",
211
211
  "path to local coding-friend repo (default: saved path or cwd)"
212
212
  ).action(async (path) => {
213
- const { devUpdateCommand } = await import("./dev-PFUF67SH.js");
213
+ const { devUpdateCommand } = await import("./dev-DWIZTH25.js");
214
214
  await devUpdateCommand(path);
215
215
  });
216
216
  program.hook("postAction", async () => {
@@ -25,7 +25,7 @@ import {
25
25
  saveStatuslineConfig,
26
26
  selectStatuslineComponents,
27
27
  writeStatuslineSettings
28
- } from "./chunk-WNTMKIKC.js";
28
+ } from "./chunk-UCYGDDFS.js";
29
29
  import {
30
30
  DEFAULT_CONFIG
31
31
  } from "./chunk-57EGAXYI.js";
@@ -119,7 +119,14 @@ function paddedScopeLabel(scope) {
119
119
  }
120
120
  function printSetupStatus(globalCfg, localCfg, gitAvailable) {
121
121
  const docsDir = getDocsDir(globalCfg, localCfg);
122
- const subfolders = ["plans", "memory", "research", "sessions", "reviews"];
122
+ const subfolders = [
123
+ "plans",
124
+ "memory",
125
+ "research",
126
+ "sessions",
127
+ "reviews",
128
+ "warm"
129
+ ];
123
130
  const folderStatus = subfolders.map((sub) => ({
124
131
  name: `${docsDir}/${sub}`,
125
132
  exists: existsSync(`${docsDir}/${sub}`)
@@ -244,7 +251,8 @@ async function stepDocsDir(globalCfg, localCfg) {
244
251
  "memory",
245
252
  "research",
246
253
  "sessions",
247
- "reviews"
254
+ "reviews",
255
+ "warm"
248
256
  ];
249
257
  ensureDocsFolders(globalValue, DOCS_SUBFOLDERS2);
250
258
  return;
@@ -269,7 +277,8 @@ async function stepDocsDir(globalCfg, localCfg) {
269
277
  "memory",
270
278
  "research",
271
279
  "sessions",
272
- "reviews"
280
+ "reviews",
281
+ "warm"
273
282
  ];
274
283
  applyDocsDirChange(value, currentValue, scope, DOCS_SUBFOLDERS);
275
284
  writeToScope(scope, { docsDir: value });
@@ -311,6 +320,7 @@ async function stepGitignore(docsDir) {
311
320
  `${docsDir}/sessions/`,
312
321
  `${docsDir}/reviews/`,
313
322
  `${docsDir}/context/`,
323
+ `${docsDir}/warm/`,
314
324
  ".coding-friend/"
315
325
  ];
316
326
  let entries = allEntries;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getLatestVersion,
3
3
  semverCompare
4
- } from "./chunk-H5TXJZD7.js";
4
+ } from "./chunk-X5IYYO4B.js";
5
5
  import {
6
6
  getInstalledVersion
7
- } from "./chunk-WNTMKIKC.js";
7
+ } from "./chunk-UCYGDDFS.js";
8
8
  import "./chunk-57EGAXYI.js";
9
9
  import {
10
10
  ensureShellCompletion
@@ -150,8 +150,8 @@ function resolveDocsDir() {
150
150
  }
151
151
  function formatSessionChoice(meta) {
152
152
  const date = new Date(meta.savedAt).toLocaleString();
153
- const preview = meta.previewText.slice(0, 60).replace(/\n/g, " ");
154
- return `[${meta.label}] ${date} @${meta.machine} \u2014 ${preview}`;
153
+ const preview = (meta.previewText ?? "").slice(0, 60).replace(/\n/g, " ");
154
+ return `[${meta.label}] ${date} @${meta.machine ?? "unknown"} \u2014 ${preview}`;
155
155
  }
156
156
  async function sessionSaveCommand(opts = {}) {
157
157
  const docsDir = resolveDocsDir();
@@ -231,11 +231,11 @@ async function sessionLoadCommand() {
231
231
  }))
232
232
  });
233
233
  const currentHome = homedir2();
234
- const remapped = remapProjectPath(chosen.projectPath, currentHome);
234
+ const remapped = chosen.projectPath ? remapProjectPath(chosen.projectPath, currentHome) : process.cwd();
235
235
  let localProjectPath = remapped;
236
236
  if (remapped !== chosen.projectPath) {
237
237
  log.step(
238
- `Original path: ${chosen.projectPath}
238
+ `Original path: ${chosen.projectPath ?? "(not saved)"}
239
239
  Remapped to: ${remapped}`
240
240
  );
241
241
  const confirmed = await input({
@@ -22,10 +22,10 @@ import {
22
22
  getLatestCliVersion,
23
23
  getLatestVersion,
24
24
  semverCompare
25
- } from "./chunk-H5TXJZD7.js";
25
+ } from "./chunk-X5IYYO4B.js";
26
26
  import {
27
27
  getInstalledVersion
28
- } from "./chunk-WNTMKIKC.js";
28
+ } from "./chunk-UCYGDDFS.js";
29
29
  import "./chunk-57EGAXYI.js";
30
30
  import "./chunk-RLUNNJWJ.js";
31
31
  import {
@@ -8,7 +8,7 @@ import {
8
8
  saveStatuslineConfig,
9
9
  selectStatuslineComponents,
10
10
  writeStatuslineSettings
11
- } from "./chunk-WNTMKIKC.js";
11
+ } from "./chunk-UCYGDDFS.js";
12
12
  import {
13
13
  ALL_COMPONENT_IDS
14
14
  } from "./chunk-57EGAXYI.js";
@@ -4,8 +4,8 @@ import {
4
4
  getLatestVersion,
5
5
  semverCompare,
6
6
  updateCommand
7
- } from "./chunk-H5TXJZD7.js";
8
- import "./chunk-WNTMKIKC.js";
7
+ } from "./chunk-X5IYYO4B.js";
8
+ import "./chunk-UCYGDDFS.js";
9
9
  import "./chunk-57EGAXYI.js";
10
10
  import "./chunk-RLUNNJWJ.js";
11
11
  import "./chunk-HPNRQYLM.js";
@@ -6,7 +6,6 @@
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "coding-friend-cf-memory",
9
- "version": "0.0.1",
10
9
  "dependencies": {
11
10
  "@hono/node-server": "^1.19.11",
12
11
  "@modelcontextprotocol/sdk": "^1.27.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coding-friend-cli",
3
- "version": "1.35.1",
3
+ "version": "1.35.3",
4
4
  "description": "CLI for coding-friend — host learning docs, setup MCP server, initialize projects",
5
5
  "type": "module",
6
6
  "bin": {