coding-friend-cli 1.22.0 → 1.23.0
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.
- package/dist/{chunk-PDVSGGH6.js → chunk-2ETE7NEL.js} +32 -28
- package/dist/{chunk-PYTEAC6K.js → chunk-DMJCO6LJ.js} +1 -1
- package/dist/{chunk-LCABODSZ.js → chunk-LTHJTWJ6.js} +2 -2
- package/dist/chunk-NREZK463.js +41 -0
- package/dist/{chunk-BIX7AJU3.js → chunk-O4CNZB5H.js} +1 -1
- package/dist/{chunk-TPLH46BH.js → chunk-WCSNAEOF.js} +58 -46
- package/dist/{config-K2S23A5R.js → config-5DKOGWWJ.js} +8 -14
- package/dist/{dev-4A5CTBGK.js → dev-S7S3SFKI.js} +19 -18
- package/dist/{disable-FNMRPUO7.js → disable-V7OLXEUH.js} +2 -2
- package/dist/{enable-HUKTMK5U.js → enable-OLHRKZCV.js} +2 -2
- package/dist/{host-E644BDZK.js → host-RR6FT7AX.js} +4 -3
- package/dist/index.js +31 -31
- package/dist/{init-FMPOE2MN.js → init-6B2OHKFX.js} +15 -19
- package/dist/{install-5ZBHH2OM.js → install-BURZ5QEM.js} +7 -6
- package/dist/{mcp-SQWZXF5Q.js → mcp-CB4PUUES.js} +55 -32
- package/dist/{memory-7WLVIFAZ.js → memory-TJZNGTOA.js} +4 -4
- package/dist/{permission-BEC6YZQA.js → permission-QIJLEMJ6.js} +4 -3
- package/dist/postinstall.js +2 -2
- package/dist/{session-ZDJ2APGL.js → session-IECOM63R.js} +1 -1
- package/dist/{status-CGYNNMYF.js → status-ZZRJ3VGF.js} +4 -4
- package/dist/{statusline-AISH77XP.js → statusline-YL44XYGF.js} +4 -3
- package/dist/{uninstall-RJ6SBB76.js → uninstall-OXWRPWYF.js} +7 -6
- package/dist/{update-536C3YG7.js → update-6N7EASFT.js} +4 -4
- package/dist/{update-check-L5TNWT2J.js → update-check-XSETLRVR.js} +1 -1
- package/lib/cf-memory/README.md +1 -1
- package/lib/cf-memory/package.json +0 -1
- package/lib/cf-memory/src/index.ts +8 -1
- package/lib/learn-host/package.json +0 -1
- package/lib/learn-mcp/package.json +0 -1
- package/lib/learn-mcp/src/index.ts +8 -1
- package/package.json +1 -1
- package/dist/chunk-W5CD7WTX.js +0 -15
- package/lib/cf-memory/CHANGELOG.md +0 -48
- package/lib/learn-host/CHANGELOG.md +0 -35
- package/lib/learn-mcp/CHANGELOG.md +0 -16
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
2
4
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
5
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
6
|
import { registerAllTools } from "./server.js";
|
|
@@ -7,6 +9,11 @@ import { createBackendForTier } from "./lib/tier.js";
|
|
|
7
9
|
import type { TierConfig } from "./lib/tier.js";
|
|
8
10
|
import type { EmbeddingConfig } from "./backends/sqlite/embeddings.js";
|
|
9
11
|
|
|
12
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
13
|
+
const cliPkg = JSON.parse(
|
|
14
|
+
readFileSync(path.resolve(__dirname, "../../../package.json"), "utf-8"),
|
|
15
|
+
);
|
|
16
|
+
|
|
10
17
|
const rawDir =
|
|
11
18
|
process.argv[2] ?? process.env.MEMORY_DOCS_DIR ?? "./docs/memory";
|
|
12
19
|
const docsDir = path.resolve(rawDir);
|
|
@@ -55,7 +62,7 @@ if (tier.name !== "markdown") {
|
|
|
55
62
|
|
|
56
63
|
const server = new McpServer({
|
|
57
64
|
name: "coding-friend-memory",
|
|
58
|
-
version:
|
|
65
|
+
version: cliPkg.version,
|
|
59
66
|
});
|
|
60
67
|
|
|
61
68
|
registerAllTools(server, backend);
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
2
4
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
5
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
6
|
import { registerAllTools } from "./server.js";
|
|
@@ -6,9 +8,14 @@ import { registerAllTools } from "./server.js";
|
|
|
6
8
|
const rawDir = process.argv[2] ?? process.env.LEARN_DOCS_DIR ?? "./docs/learn";
|
|
7
9
|
const docsDir = path.resolve(rawDir);
|
|
8
10
|
|
|
11
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
12
|
+
const cliPkg = JSON.parse(
|
|
13
|
+
readFileSync(path.resolve(__dirname, "../../../package.json"), "utf-8"),
|
|
14
|
+
);
|
|
15
|
+
|
|
9
16
|
const server = new McpServer({
|
|
10
17
|
name: "coding-friend-learn",
|
|
11
|
-
version:
|
|
18
|
+
version: cliPkg.version,
|
|
12
19
|
});
|
|
13
20
|
|
|
14
21
|
registerAllTools(server, docsDir);
|
package/package.json
CHANGED
package/dist/chunk-W5CD7WTX.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// src/lib/log.ts
|
|
2
|
-
import chalk from "chalk";
|
|
3
|
-
var log = {
|
|
4
|
-
info: (msg) => console.log(chalk.blue("\u2139"), msg),
|
|
5
|
-
success: (msg) => console.log(chalk.green("\u2714"), msg),
|
|
6
|
-
congrats: (msg) => console.log(chalk.green("\u{1F389}"), msg),
|
|
7
|
-
warn: (msg) => console.log(chalk.yellow("\u26A0"), msg),
|
|
8
|
-
error: (msg) => console.log(chalk.red("\u2716"), msg),
|
|
9
|
-
step: (msg) => console.log(chalk.cyan("\u2192"), msg),
|
|
10
|
-
dim: (msg) => console.log(chalk.dim(msg))
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
log
|
|
15
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# CF Memory Changelog
|
|
2
|
-
|
|
3
|
-
## v0.2.2 (2026-03-25)
|
|
4
|
-
|
|
5
|
-
- Add NaN guard for `MEMORY_DAEMON_IDLE_TIMEOUT` env var to prevent invalid timeout values [#d4401fa](https://github.com/dinhanhthi/coding-friend/commit/d4401fa)
|
|
6
|
-
- Fix `ping()` to use raw request instead of triggering daemon respawn during tier detection [#d4401fa](https://github.com/dinhanhthi/coding-friend/commit/d4401fa)
|
|
7
|
-
- Pass `daemonOptions` consistently in index.ts instead of inline object [#d4401fa](https://github.com/dinhanhthi/coding-friend/commit/d4401fa)
|
|
8
|
-
|
|
9
|
-
## v0.2.1 (2026-03-22)
|
|
10
|
-
|
|
11
|
-
- Fix flaky tier detection tests — mock `isDaemonRunning` to prevent local daemon from affecting test results [#d786f08](https://github.com/dinhanhthi/coding-friend/commit/d786f08)
|
|
12
|
-
|
|
13
|
-
## v0.2.0 (2026-03-21)
|
|
14
|
-
|
|
15
|
-
- Add `index_only` option to `memory_store` MCP tool — skip file writing when file already exists on disk, enabling clean separation between file creation and indexing [#7f56711](https://github.com/dinhanhthi/coding-friend/commit/7f56711)
|
|
16
|
-
|
|
17
|
-
## v0.1.3 (2026-03-19)
|
|
18
|
-
|
|
19
|
-
- Use path-based project IDs instead of SHA256 hashes for human-readable project directories (e.g. `-Users-thi-git-foo` instead of `a1b2c3d4e5f6`) [#9c4cac0](https://github.com/dinhanhthi/coding-friend/commit/9c4cac0)
|
|
20
|
-
- Rename `cf memory start`/`stop` to `cf memory start-daemon`/`stop-daemon` in documentation [#acbe789](https://github.com/dinhanhthi/coding-friend/commit/acbe789)
|
|
21
|
-
|
|
22
|
-
## v0.1.1 (2026-03-17)
|
|
23
|
-
|
|
24
|
-
- Fix `today()` to capture full timestamp (`YYYY-MM-DD HH:MM`) instead of date-only for memory created/updated fields [#31e0824](https://github.com/dinhanhthi/coding-friend/commit/31e0824)
|
|
25
|
-
|
|
26
|
-
## v0.1.0 (2026-03-17)
|
|
27
|
-
|
|
28
|
-
- Auto-start daemon from MCP server for file watching — daemon spawns automatically when Tier 1 or 2 is detected, no manual `cf memory start` needed [#2211b84](https://github.com/dinhanhthi/coding-friend/commit/2211b84)
|
|
29
|
-
- Add `spawnDaemon()` function to `daemon/process.ts` with dynamic path resolution via `import.meta.url` [#2211b84](https://github.com/dinhanhthi/coding-friend/commit/2211b84)
|
|
30
|
-
|
|
31
|
-
## v0.0.1 (2026-03-16)
|
|
32
|
-
|
|
33
|
-
- Add persistent memory system — MCP server with 6 tools (`memory_store`, `memory_search`, `memory_retrieve`, `memory_list`, `memory_update`, `memory_delete`) + 2 resources (`memory://index`, `memory://stats`)
|
|
34
|
-
- Add 3-tier graceful degradation: SQLite + hybrid search (Tier 1) → MiniSearch daemon + BM25/fuzzy (Tier 2) → Markdown file I/O (Tier 3)
|
|
35
|
-
- Add SQLite backend with FTS5 + sqlite-vec + RRF fusion for hybrid keyword/semantic search
|
|
36
|
-
- Add MiniSearch daemon (Hono + Unix Domain Socket) with file watcher and idle timeout
|
|
37
|
-
- Add lazy dependency installer for heavy deps (`better-sqlite3`, `sqlite-vec`, `@huggingface/transformers`)
|
|
38
|
-
- Add Ollama embedding support with automatic fallback to Transformers.js
|
|
39
|
-
- Add `cf memory` CLI commands: `status`, `search`, `list`, `start`, `stop`, `rebuild`, `init`
|
|
40
|
-
- Add PreCompact auto-capture hook and smart capture in skills (`cf-fix`, `cf-sys-debug`, `cf-review`, `cf-ask`)
|
|
41
|
-
- Add deduplication detection and temporal decay scoring
|
|
42
|
-
- Add frontmatter migration script for existing `docs/memory/` files
|
|
43
|
-
- Migrate `/cf-remember` and Frontmatter Recall to use `memory_search` MCP tool
|
|
44
|
-
- Add `cf memory rm` and `cf memory ls` commands for project database management [#1da99b1](https://github.com/dinhanhthi/coding-friend/commit/1da99b1)
|
|
45
|
-
- Add dynamic embedding dimensions support and config wiring [#b7f6eba](https://github.com/dinhanhthi/coding-friend/commit/b7f6eba)
|
|
46
|
-
- Fix correct embedding model name in v1→v2 migration [#04d3c19](https://github.com/dinhanhthi/coding-friend/commit/04d3c19)
|
|
47
|
-
- Fix empty project directories created on SQLite backend failure [#4ab7570](https://github.com/dinhanhthi/coding-friend/commit/4ab7570)
|
|
48
|
-
- Fix unit tests creating orphaned SQLite databases [#ec0bfee](https://github.com/dinhanhthi/coding-friend/commit/ec0bfee)
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# Changelog (Learn Host)
|
|
2
|
-
|
|
3
|
-
## v0.3.0 (2026-03-21)
|
|
4
|
-
|
|
5
|
-
- Improve date display — show only updated date when different from created date, hide if same [#1fc2e65](https://github.com/dinhanhthi/coding-friend/commit/1fc2e65)
|
|
6
|
-
- Increase sidebar font size for better readability [#1fc2e65](https://github.com/dinhanhthi/coding-friend/commit/1fc2e65)
|
|
7
|
-
|
|
8
|
-
## v0.2.1 (2026-03-05)
|
|
9
|
-
|
|
10
|
-
- Fix TOC heading text stripping markdown links from slug generation ([#9a8fb5c](https://github.com/dinhanhthi/coding-friend/commit/9a8fb5c))
|
|
11
|
-
- Decorate inline codes for TOC ([#573d7b0](https://github.com/dinhanhthi/coding-friend/commit/573d7b0))
|
|
12
|
-
|
|
13
|
-
## v0.2.0 (2026-03-03)
|
|
14
|
-
|
|
15
|
-
- Add dedicated tag pages for filtering docs by tag ([#06f5847](https://github.com/dinhanhthi/coding-friend/commit/06f5847))
|
|
16
|
-
- Style improvements across website and learn-host ([#0029522](https://github.com/dinhanhthi/coding-friend/commit/0029522))
|
|
17
|
-
|
|
18
|
-
## v0.1.0 (2026-03-03)
|
|
19
|
-
|
|
20
|
-
- Add copy button to code blocks ([#ac47c74](https://github.com/dinhanhthi/coding-friend/commit/ac47c74))
|
|
21
|
-
- Redesign home page with elegant layout and updated color scheme ([#2d53836](https://github.com/dinhanhthi/coding-friend/commit/2d53836))
|
|
22
|
-
- Improve TableOfContents heading styling with border ([#2267508](https://github.com/dinhanhthi/coding-friend/commit/2267508))
|
|
23
|
-
|
|
24
|
-
## v0.0.2 (2026-03-01)
|
|
25
|
-
|
|
26
|
-
- Update header styling for consistency with ecosystem redesign
|
|
27
|
-
- Code formatting and style improvements
|
|
28
|
-
|
|
29
|
-
## v0.0.1
|
|
30
|
-
|
|
31
|
-
- Next.js app for hosting learning docs at `localhost:3333`
|
|
32
|
-
- ISR (Incremental Static Regeneration) for auto-updating docs without rebuild
|
|
33
|
-
- Full-text search via Pagefind
|
|
34
|
-
- Modern UI with command palette, dark theme, and responsive layout
|
|
35
|
-
- Markdown rendering with syntax highlighting and GFM support
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Changelog (Learn MCP)
|
|
2
|
-
|
|
3
|
-
## v0.0.3 (2026-03-03)
|
|
4
|
-
|
|
5
|
-
- Add Claude Desktop config documentation for compiled output ([#d37a6b9](https://github.com/dinhanhthi/coding-friend/commit/d37a6b9))
|
|
6
|
-
|
|
7
|
-
## v0.0.2 (2026-03-01)
|
|
8
|
-
|
|
9
|
-
- Add support for coding-friend-cli integration
|
|
10
|
-
- Add watch mode for development (`npm run dev`)
|
|
11
|
-
|
|
12
|
-
## v0.0.1
|
|
13
|
-
|
|
14
|
-
- MCP server for LLM integration with learning docs
|
|
15
|
-
- Tools: list categories, list documents, read document content
|
|
16
|
-
- Works with any MCP-compatible client (ChatGPT, Claude Desktop, etc.)
|