@100xprompt/chitta 0.1.2 → 0.1.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.
- package/README.md +6 -0
- package/package.json +16 -20
- package/src/embedded/reranker.ts +3 -1
package/README.md
CHANGED
|
@@ -100,6 +100,12 @@ bunx @100xprompt/chitta install --print # just print the MCP config to p
|
|
|
100
100
|
Options: `--project` (write project-scoped config instead of global) · `--user-id <id> --org-id <id>`
|
|
101
101
|
(bake identity into the config) · `--list` (show all tools) · `uninstall`.
|
|
102
102
|
|
|
103
|
+
**Optional extras** (kept out of the default install so `bunx` stays lightweight — the core
|
|
104
|
+
runs great with the built-in fast hashing embedder):
|
|
105
|
+
- Real semantic embeddings: `bun add @huggingface/transformers` then set `CONTEXT_EMBEDDINGS=real`
|
|
106
|
+
(the default `auto` already uses them when present, else falls back to hashing).
|
|
107
|
+
- Encryption at rest: `bun add libsql` then set `CONTEXT_DB_KEY=<key>` (transparent AES whole-file).
|
|
108
|
+
|
|
103
109
|
**Supported tools (15):** Claude Code, Claude Desktop, Cursor, VS Code (Copilot), Windsurf,
|
|
104
110
|
Zed, Cline, Roo Code, Codex CLI, Gemini CLI, opencode, Kiro, Amp, Factory Droid, Kilo Code.
|
|
105
111
|
Skill (not just MCP) is installed for the ones that support it (Claude Code, Cursor, Gemini,
|
package/package.json
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@100xprompt/chitta",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
6
|
+
"sqlite-vec": "^0.1.9",
|
|
7
|
+
"tree-sitter-wasms": "^0.1.13",
|
|
8
|
+
"web-tree-sitter": "0.24.7"
|
|
9
|
+
},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"@types/bun": "latest",
|
|
12
|
+
"typescript": "^5.6.0"
|
|
9
13
|
},
|
|
10
14
|
"bin": {
|
|
11
15
|
"chitta": "./src/bin.ts"
|
|
12
16
|
},
|
|
17
|
+
"description": "Chitta - permission-aware memory for AI agents: a knowledge-graph + vector memory MCP server with per-user access control. Runs on Bun. By 100xprompt.",
|
|
18
|
+
"engines": {
|
|
19
|
+
"bun": ">=1.0.0"
|
|
20
|
+
},
|
|
13
21
|
"files": [
|
|
14
22
|
"src",
|
|
15
23
|
"assets",
|
|
@@ -31,6 +39,7 @@
|
|
|
31
39
|
"access-control",
|
|
32
40
|
"ai-agents"
|
|
33
41
|
],
|
|
42
|
+
"license": "MIT",
|
|
34
43
|
"publishConfig": {
|
|
35
44
|
"access": "public"
|
|
36
45
|
},
|
|
@@ -42,18 +51,5 @@
|
|
|
42
51
|
"install:tools": "bun run src/bin.ts install",
|
|
43
52
|
"cli": "bun run src/embedded/cli.ts"
|
|
44
53
|
},
|
|
45
|
-
"
|
|
46
|
-
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
47
|
-
"sqlite-vec": "^0.1.9",
|
|
48
|
-
"tree-sitter-wasms": "^0.1.13",
|
|
49
|
-
"web-tree-sitter": "0.24.7"
|
|
50
|
-
},
|
|
51
|
-
"optionalDependencies": {
|
|
52
|
-
"@huggingface/transformers": "^4.2.0",
|
|
53
|
-
"libsql": "^0.5.29"
|
|
54
|
-
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@types/bun": "latest",
|
|
57
|
-
"typescript": "^5.6.0"
|
|
58
|
-
}
|
|
54
|
+
"type": "module"
|
|
59
55
|
}
|
package/src/embedded/reranker.ts
CHANGED
|
@@ -28,7 +28,9 @@ export class CrossEncoderReranker implements Reranker {
|
|
|
28
28
|
if (!this.loading) {
|
|
29
29
|
this.loading = (async () => {
|
|
30
30
|
try {
|
|
31
|
-
|
|
31
|
+
// Optional dep — indirect the specifier so tsc doesn't require it to resolve.
|
|
32
|
+
const spec = "@huggingface/transformers"
|
|
33
|
+
const t: any = await import(spec as string)
|
|
32
34
|
this.tokenizer = await t.AutoTokenizer.from_pretrained(this.modelId)
|
|
33
35
|
this.model = await t.AutoModelForSequenceClassification.from_pretrained(this.modelId, { quantized: true })
|
|
34
36
|
} catch {
|