coding-friend-cli 1.34.1 → 1.35.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 (35) hide show
  1. package/README.md +1 -0
  2. package/dist/chunk-2DTXVMPQ.js +26 -0
  3. package/dist/{chunk-DHH6SRXV.js → chunk-57EGAXYI.js} +3 -2
  4. package/dist/{chunk-AZ6AK5M4.js → chunk-B2NFXRFP.js} +12 -2
  5. package/dist/{chunk-QCKIBJF6.js → chunk-C5YWESSF.js} +2 -6
  6. package/dist/chunk-E5J24GD5.js +190 -0
  7. package/dist/{chunk-G4QGJEV7.js → chunk-H5TXJZD7.js} +6 -6
  8. package/dist/{chunk-FAANBGCB.js → chunk-L53RNEV3.js} +116 -73
  9. package/dist/{chunk-DMJCO6LJ.js → chunk-RLUNNJWJ.js} +2 -1
  10. package/dist/{chunk-LXZ47XCD.js → chunk-WNTMKIKC.js} +1 -1
  11. package/dist/chunk-WSUYLIYX.js +61 -0
  12. package/dist/clean-67ACB4OS.js +95 -0
  13. package/dist/{config-44VQBNMS.js → config-HTQAALMA.js} +181 -120
  14. package/dist/{dev-QXVERU42.js → dev-PFUF67SH.js} +7 -7
  15. package/dist/{disable-ZWQVU3QZ.js → disable-CDOM7SSI.js} +2 -2
  16. package/dist/{enable-NXP6APNI.js → enable-SF7742UR.js} +2 -2
  17. package/dist/{host-6IBKKCPA.js → host-HKA4OHBM.js} +3 -3
  18. package/dist/index.js +38 -34
  19. package/dist/{init-KY3ZPEWP.js → init-YM7YEEGK.js} +153 -85
  20. package/dist/{install-22BLHQ6D.js → install-VYZSTXN6.js} +8 -8
  21. package/dist/{mcp-OGZAZZRF.js → mcp-7MO2MCLE.js} +69 -66
  22. package/dist/{mcp-serve-learn-UNW6VH5M.js → mcp-serve-learn-OKVC5WV3.js} +19 -3
  23. package/dist/{memory-JM45DEIX.js → memory-XALEMWQF.js} +7 -7
  24. package/dist/{permission-DNW7DE24.js → permission-C5R3LMZQ.js} +2 -2
  25. package/dist/postinstall.js +1 -1
  26. package/dist/{session-RCEE6P35.js → session-M4KRQ4VU.js} +2 -2
  27. package/dist/{status-NMSVOSC4.js → status-2XM5OZDR.js} +19 -14
  28. package/dist/{statusline-GKVAX7GR.js → statusline-VFIA7OS2.js} +3 -3
  29. package/dist/{uninstall-6ZJRS2H4.js → uninstall-QKEC3O64.js} +6 -6
  30. package/dist/{update-P5ZR2JVQ.js → update-IV4Y3T72.js} +6 -6
  31. package/package.json +3 -2
  32. package/dist/chunk-CZDXMFEZ.js +0 -118
  33. package/dist/chunk-FI5HEQ43.js +0 -85
  34. package/dist/{chunk-Z5Q533UG.js → chunk-HPNRQYLM.js} +3 -3
  35. package/dist/{update-check-5SCD2JR2.js → update-check-BPCQ25AR.js} +3 -3
@@ -1,85 +0,0 @@
1
- import {
2
- writeMemoryMcpEntry
3
- } from "./chunk-QCKIBJF6.js";
4
- import {
5
- log
6
- } from "./chunk-NREZK463.js";
7
- import {
8
- readJson
9
- } from "./chunk-5UVDWG5L.js";
10
-
11
- // src/lib/mcp-state.ts
12
- import { existsSync } from "fs";
13
- import { join } from "path";
14
- import chalk from "chalk";
15
- function warnStaleMcpJson(memoryDir) {
16
- const localMcpPath = join(process.cwd(), ".mcp.json");
17
- if (!existsSync(localMcpPath)) return;
18
- const mcpJson = readJson(localMcpPath);
19
- if (mcpJson === null) {
20
- log.warn(
21
- ".mcp.json exists but could not be parsed \u2014 check for syntax errors."
22
- );
23
- return;
24
- }
25
- const state = detectMemoryMcpState(mcpJson, existsSync);
26
- if (state.kind === "stale" || state.kind === "legacy-valid") {
27
- if (memoryDir) {
28
- writeMemoryMcpEntry(memoryDir);
29
- if (state.kind === "stale") {
30
- log.success(
31
- "Auto-updated stale .mcp.json to version-stable npx format."
32
- );
33
- } else {
34
- log.success("Updated .mcp.json to version-stable npx format.");
35
- }
36
- console.log();
37
- } else if (state.kind === "stale") {
38
- console.log(
39
- chalk.yellow(`\u26A0 Stale MCP config detected in .mcp.json`)
40
- );
41
- console.log(chalk.dim(` Path no longer exists: ${state.path}`));
42
- console.log(
43
- chalk.dim(` Run "cf memory mcp" to update to the new format.`)
44
- );
45
- console.log();
46
- } else {
47
- console.log(
48
- chalk.cyan(
49
- `\u2139 .mcp.json uses an absolute path for coding-friend-memory.`
50
- )
51
- );
52
- console.log(
53
- chalk.dim(
54
- ` Consider running "cf memory mcp" to switch to the version-stable format.`
55
- )
56
- );
57
- console.log();
58
- }
59
- }
60
- }
61
- function detectMemoryMcpState(mcpJson, pathExists) {
62
- if (!mcpJson) return { kind: "none" };
63
- const servers = mcpJson.mcpServers;
64
- if (!servers) return { kind: "none" };
65
- const entry = servers["coding-friend-memory"];
66
- if (!entry) return { kind: "none" };
67
- const command = entry.command;
68
- if (!command) return { kind: "none" };
69
- if (command === "npx") return { kind: "npx" };
70
- if (command === "node") {
71
- const args = entry.args;
72
- const serverPath = args?.[0];
73
- if (!serverPath) return { kind: "none" };
74
- if (!pathExists(serverPath)) {
75
- return { kind: "stale", path: serverPath };
76
- }
77
- return { kind: "legacy-valid", path: serverPath };
78
- }
79
- return { kind: "none" };
80
- }
81
-
82
- export {
83
- warnStaleMcpJson,
84
- detectMemoryMcpState
85
- };
@@ -1,10 +1,10 @@
1
+ import {
2
+ run
3
+ } from "./chunk-EVGXUDX4.js";
1
4
  import {
2
5
  globalConfigPath,
3
6
  localConfigPath
4
7
  } from "./chunk-TWKNGPBO.js";
5
- import {
6
- run
7
- } from "./chunk-EVGXUDX4.js";
8
8
  import {
9
9
  log
10
10
  } from "./chunk-NREZK463.js";
@@ -1,9 +1,9 @@
1
- import {
2
- globalConfigDir
3
- } from "./chunk-TWKNGPBO.js";
4
1
  import {
5
2
  run
6
3
  } from "./chunk-EVGXUDX4.js";
4
+ import {
5
+ globalConfigDir
6
+ } from "./chunk-TWKNGPBO.js";
7
7
  import {
8
8
  log
9
9
  } from "./chunk-NREZK463.js";