@cachly-dev/mcp-server 0.5.35 β 0.5.37
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/README.md +8 -2
- package/dist/index.d.ts +26 -3
- package/dist/index.js +671 -5
- package/dist/index.js.map +1 -1
- package/dist/search.test.js +173 -3
- package/dist/search.test.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +681 -5
- package/src/search.test.ts +217 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# π§ cachly AI Brain β MCP Server
|
|
2
2
|
|
|
3
|
-
> **Persistent memory for Claude Code, Cursor, GitHub Copilot &
|
|
3
|
+
> **Persistent memory for Claude Code, Cursor, GitHub Copilot, Windsurf, Cline & Zed.**
|
|
4
4
|
> Your AI remembers every lesson, every fix, every architecture decision β forever.
|
|
5
5
|
|
|
6
6
|
<p align="center">
|
|
@@ -45,9 +45,15 @@ npx @cachly-dev/mcp-server@latest setup
|
|
|
45
45
|
The interactive wizard:
|
|
46
46
|
1. Signs you in (free, no credit card required)
|
|
47
47
|
2. Picks or creates your AI Brain instance
|
|
48
|
-
3. **Auto-detects** Cursor, Windsurf, VS Code, Claude Code, Continue.dev
|
|
48
|
+
3. **Auto-detects** Cursor, Windsurf, VS Code, Claude Code, Continue.dev, **Cline & Zed**
|
|
49
49
|
4. Writes the correct MCP config for every detected editor
|
|
50
50
|
5. Creates `CLAUDE.md` with memory rules pre-filled
|
|
51
|
+
6. Shows your Brain Health snapshot right in the terminal
|
|
52
|
+
|
|
53
|
+
**Index your project** into the Brain for instant semantic search:
|
|
54
|
+
```bash
|
|
55
|
+
npx @cachly-dev/mcp-server@latest index .
|
|
56
|
+
```
|
|
51
57
|
|
|
52
58
|
**Result:** Your AI remembers everything. Always.
|
|
53
59
|
|
package/dist/index.d.ts
CHANGED
|
@@ -6,10 +6,33 @@
|
|
|
6
6
|
* Keeps the index small and scores meaningful.
|
|
7
7
|
*/
|
|
8
8
|
declare const STOPWORDS: Set<string>;
|
|
9
|
+
/**
|
|
10
|
+
* Convert a katakana string to Hepburn romaji.
|
|
11
|
+
* Handles digraphs, geminate consonants (γ), and long vowel marks (γΌ).
|
|
12
|
+
*/
|
|
13
|
+
declare function katakanaToRomaji(kata: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Arabic light stemmer β strips definite article and common prefix particles.
|
|
16
|
+
* Handles: Ψ§Ω (al-), Ω (wa-), Ψ¨ (bi-), Ω (li-), Ω (fa-), Ω (ka-).
|
|
17
|
+
* Only strips when the result is still β₯ 3 chars to avoid over-stemming.
|
|
18
|
+
*/
|
|
19
|
+
declare function arabicLightStem(word: string): string;
|
|
20
|
+
declare const CROSS_LINGUAL_MAP: Map<string, string[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Expand a token to its cross-lingual synonyms.
|
|
23
|
+
* Returns synonyms to be added to the token stream (pre-tokenized).
|
|
24
|
+
* CJK synonyms are NOT pre-bigram'd here β caller handles that.
|
|
25
|
+
*/
|
|
26
|
+
declare function expandCrossLingual(token: string): string[];
|
|
9
27
|
/**
|
|
10
28
|
* Tokenize text into meaningful keywords.
|
|
11
|
-
* Handles accented Latin
|
|
12
|
-
*
|
|
29
|
+
* Handles accented Latin, RTL (Arabic, Hebrew), and CJK (Chinese, Japanese, Korean).
|
|
30
|
+
*
|
|
31
|
+
* Features:
|
|
32
|
+
* β’ CJK β character bigrams
|
|
33
|
+
* β’ Katakana β additionally emits Hepburn romaji tokens (enables romaji queries)
|
|
34
|
+
* β’ Arabic/Hebrew β word tokenization with light Arabic stemming
|
|
35
|
+
* β’ All scripts β cross-lingual synonym expansion (ENβJAβZHβKOβARβHE)
|
|
13
36
|
*/
|
|
14
37
|
declare function tokenize(text: string): string[];
|
|
15
38
|
/**
|
|
@@ -33,4 +56,4 @@ declare function levenshtein(a: string, b: string): number;
|
|
|
33
56
|
declare function extractTimestamp(content: string): number | undefined;
|
|
34
57
|
/** Recency multiplier: 1.0 for now, 0.5 after half-life days, exponential decay. */
|
|
35
58
|
declare function recencyBoost(timestampMs: number | undefined): number;
|
|
36
|
-
export { tokenize, splitMultiQuery, levenshtein, recencyBoost, extractTimestamp, STOPWORDS };
|
|
59
|
+
export { tokenize, splitMultiQuery, levenshtein, recencyBoost, extractTimestamp, STOPWORDS, katakanaToRomaji, arabicLightStem, expandCrossLingual, CROSS_LINGUAL_MAP };
|