@ngao/search 0.1.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/README.md +219 -0
- package/bin/ngao-search.js +9 -0
- package/dist/main.js +67075 -0
- package/models/Xenova/all-MiniLM-L6-v2/config.json +25 -0
- package/models/Xenova/all-MiniLM-L6-v2/onnx/model_quantized.onnx +0 -0
- package/models/Xenova/all-MiniLM-L6-v2/tokenizer.json +30686 -0
- package/models/Xenova/all-MiniLM-L6-v2/tokenizer_config.json +15 -0
- package/package.json +78 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"clean_up_tokenization_spaces": true,
|
|
3
|
+
"cls_token": "[CLS]",
|
|
4
|
+
"do_basic_tokenize": true,
|
|
5
|
+
"do_lower_case": true,
|
|
6
|
+
"mask_token": "[MASK]",
|
|
7
|
+
"model_max_length": 512,
|
|
8
|
+
"never_split": null,
|
|
9
|
+
"pad_token": "[PAD]",
|
|
10
|
+
"sep_token": "[SEP]",
|
|
11
|
+
"strip_accents": null,
|
|
12
|
+
"tokenize_chinese_chars": true,
|
|
13
|
+
"tokenizer_class": "BertTokenizer",
|
|
14
|
+
"unk_token": "[UNK]"
|
|
15
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ngao/search",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "ngao search - Model Context Protocol Server for local code and document search with LLM-friendly output",
|
|
5
|
+
"main": "dist/main.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"ngao-search": "bin/ngao-search.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin/ngao-search.js",
|
|
11
|
+
"dist/main.js",
|
|
12
|
+
"dist/main.js.map",
|
|
13
|
+
"models/"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "webpack --config webpack.backend.config.js --mode production && npm run add:shebang && npm run clean:dist",
|
|
17
|
+
"add:shebang": "node -e \"const fs=require('fs');const f='dist/main.js';const c=fs.readFileSync(f,'utf8');if(!c.startsWith('#!')){fs.writeFileSync(f,'#!/usr/bin/env node\\n'+c);console.log('✓ Shebang added');}\"",
|
|
18
|
+
"clean:dist": "rm -rf dist/backend dist/cli dist/mcp dist/shared dist/server dist/*.d.ts* dist/**/*.map dist/*.map 2>/dev/null; true",
|
|
19
|
+
"start": "npm run build && node dist/main.js",
|
|
20
|
+
"dev": "webpack serve --config webpack.backend.config.js --mode development",
|
|
21
|
+
"test": "jest",
|
|
22
|
+
"test:watch": "jest --watch",
|
|
23
|
+
"test:coverage": "jest --coverage",
|
|
24
|
+
"lint": "eslint src --ext .ts",
|
|
25
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
26
|
+
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
27
|
+
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
28
|
+
"type-check": "tsc --noEmit"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@lancedb/lancedb": "^0.23.0",
|
|
32
|
+
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
33
|
+
"@xenova/transformers": "^2.6.0",
|
|
34
|
+
"express": "^5.2.1",
|
|
35
|
+
"reflect-metadata": "~0.2.2",
|
|
36
|
+
"uuid": "^9.0.0",
|
|
37
|
+
"zod": "^4.3.5",
|
|
38
|
+
"zod-to-json-schema": "^3.25.1"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/express": "^4.17.0",
|
|
42
|
+
"@types/jest": "^29.5.0",
|
|
43
|
+
"@types/node": "^20.10.0",
|
|
44
|
+
"@types/uuid": "^10.0.0",
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^6.13.0",
|
|
46
|
+
"@typescript-eslint/parser": "^6.13.0",
|
|
47
|
+
"eslint": "^8.54.0",
|
|
48
|
+
"eslint-config-prettier": "^9.1.0",
|
|
49
|
+
"jest": "^29.7.0",
|
|
50
|
+
"jest-mock-extended": "^3.0.0",
|
|
51
|
+
"prettier": "^3.1.0",
|
|
52
|
+
"supertest": "^6.3.0",
|
|
53
|
+
"ts-jest": "^29.1.0",
|
|
54
|
+
"ts-loader": "^9.5.0",
|
|
55
|
+
"ts-node": "^10.9.0",
|
|
56
|
+
"typescript": "^5.3.3",
|
|
57
|
+
"webpack": "^5.89.0",
|
|
58
|
+
"webpack-cli": "^5.1.0",
|
|
59
|
+
"webpack-node-externals": "^3.0.0"
|
|
60
|
+
},
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=18.0.0"
|
|
63
|
+
},
|
|
64
|
+
"keywords": [
|
|
65
|
+
"mcp",
|
|
66
|
+
"search",
|
|
67
|
+
"code",
|
|
68
|
+
"documentation",
|
|
69
|
+
"local",
|
|
70
|
+
"llm"
|
|
71
|
+
],
|
|
72
|
+
"author": "NGAO Team",
|
|
73
|
+
"license": "MIT",
|
|
74
|
+
"repository": {
|
|
75
|
+
"type": "git",
|
|
76
|
+
"url": "https://github.com/ngaodev/search.git"
|
|
77
|
+
}
|
|
78
|
+
}
|