@deepsweet/mdn 0.1.0 → 0.1.2

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 CHANGED
@@ -22,7 +22,7 @@ See [dataset repo](https://huggingface.co/datasets/deepsweet/mdn) on HuggigFace
22
22
  ### 1. Download dataset and embedding model
23
23
 
24
24
  ```sh
25
- npx @deepsweet/mdn@latest download
25
+ npx -y @deepsweet/mdn download
26
26
  ```
27
27
 
28
28
  Both [dataset](https://huggingface.co/datasets/deepsweet/mdn) (\~260 MB) and the [embedding model GGUF file](https://huggingface.co/deepsweet/bge-m3-GGUF-Q4_K_M) (\~438 MB) will be downloaded directly from HugginFace and stored in its default cache location (typically `~/.cache/huggingface/`), just like the `hf download` command does.
package/dist/index.js CHANGED
@@ -95,10 +95,10 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
95
95
  import { z as z2 } from "zod";
96
96
 
97
97
  // src/llama.ts
98
- import { getLlama } from "node-llama-cpp";
98
+ import { getLlama, LlamaLogLevel } from "node-llama-cpp";
99
99
  var MAX_TOKENS = 8192;
100
100
  var getLlamaContext = async (modelPath) => {
101
- const llama = await getLlama();
101
+ const llama = await getLlama({ logLevel: LlamaLogLevel.error });
102
102
  const model = await llama.loadModel({ modelPath });
103
103
  const context = await model.createEmbeddingContext({
104
104
  contextSize: MAX_TOKENS,
@@ -131,7 +131,7 @@ var createReranker = async () => {
131
131
 
132
132
  // package.json
133
133
  var name = "@deepsweet/mdn";
134
- var version = "0.1.0";
134
+ var version = "0.1.1";
135
135
 
136
136
  // src/server.ts
137
137
  var startMcpServer = async () => {
package/package.json CHANGED
@@ -1,37 +1,34 @@
1
1
  {
2
2
  "name": "@deepsweet/mdn",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "type": "module",
8
- "bin": "dist/index.js",
8
+ "bin": {
9
+ "mdn": "dist/index.js"
10
+ },
9
11
  "main": "dist/index.js",
10
12
  "files": [
11
13
  "dist/"
12
14
  ],
13
15
  "dependencies": {
14
16
  "@huggingface/hub": "^2.11.0",
15
- "@lancedb/lancedb": "0.27.2-beta.1",
17
+ "@lancedb/lancedb": "^0.27.2",
16
18
  "@modelcontextprotocol/sdk": "^1.29.0",
17
19
  "apache-arrow": "18.1.0",
18
20
  "node-llama-cpp": "^3.18.1",
19
21
  "zod": "^4.3.6"
20
22
  },
21
23
  "devDependencies": {
22
- "@huggingface/tokenizers": "^0.1.3",
23
- "@stylistic/eslint-plugin": "^5.10.0",
24
+ "@deepsweet/eslint-config": "^0.1.0",
24
25
  "@types/bun": "^1.3.11",
25
26
  "dedent": "^1.7.2",
26
27
  "eslint": "^10.1.0",
27
- "eslint-plugin-import": "^2.32.0",
28
- "eslint-plugin-perfectionist": "^5.7.0",
29
- "globals": "^17.4.0",
30
28
  "gray-matter": "^4.0.3",
31
29
  "marked": "^17.0.5",
32
30
  "rimraf": "^6.1.3",
33
- "typescript": "^6.0.2",
34
- "typescript-eslint": "^8.58.0"
31
+ "typescript": "^6.0.2"
35
32
  },
36
33
  "scripts": {
37
34
  "chunk": "bun scripts/chunk.ts",