@huyooo/ai-search 0.2.1

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/package.json ADDED
@@ -0,0 +1,89 @@
1
+ {
2
+ "name": "@huyooo/ai-search",
3
+ "version": "0.2.1",
4
+ "description": "本地文档语义搜索引擎 - 支持 Word、PDF、Excel、TXT、MD",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "development": "./src/index.ts",
12
+ "import": "./dist/index.js",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "./tools": {
16
+ "types": "./dist/tools/index.d.ts",
17
+ "development": "./src/tools/index.ts",
18
+ "import": "./dist/tools/index.js",
19
+ "default": "./dist/tools/index.js"
20
+ },
21
+ "./bridge/electron": {
22
+ "types": "./dist/bridge/electron.d.ts",
23
+ "development": "./src/bridge/electron.ts",
24
+ "import": "./dist/bridge/electron.js",
25
+ "default": "./dist/bridge/electron.js"
26
+ }
27
+ },
28
+ "files": [
29
+ "dist"
30
+ ],
31
+ "scripts": {
32
+ "build": "tsup",
33
+ "dev": "tsup --watch",
34
+ "typecheck": "tsc --noEmit",
35
+ "clean": "rm -rf dist",
36
+ "test:ppt": "tsx test/test-ppt-parser.ts",
37
+ "test:debug": "tsx test/debug-index.ts",
38
+ "test:index": "tsx scripts/test-indexing.ts",
39
+ "test:pipeline": "tsx scripts/test-pipeline.ts",
40
+ "test:single": "tsx scripts/test-single-file.ts"
41
+ },
42
+ "dependencies": {
43
+ "@lancedb/lancedb": "^0.4.0",
44
+ "@types/xml2js": "^0.4.14",
45
+ "chokidar": "^3.5.3",
46
+ "fdir": "^6.5.0",
47
+ "flexsearch": "^0.7.43",
48
+ "jszip": "^3.10.1",
49
+ "mammoth": "^1.6.0",
50
+ "nodejieba": "^2.6.0",
51
+ "pdf-parse": "^1.1.1",
52
+ "xlsx": "^0.18.5",
53
+ "xml2js": "^0.6.2"
54
+ },
55
+ "devDependencies": {
56
+ "@types/better-sqlite3": "^7.6.0",
57
+ "@types/node": "^22.0.0",
58
+ "@types/pdf-parse": "^1.1.4",
59
+ "tsup": "^8.0.0",
60
+ "tsx": "^4.21.0",
61
+ "typescript": "^5.0.0"
62
+ },
63
+ "peerDependencies": {
64
+ "@huyooo/ai-chat-core": "*",
65
+ "better-sqlite3": "^11.0.0",
66
+ "electron": ">=20.0.0"
67
+ },
68
+ "peerDependenciesMeta": {
69
+ "@huyooo/ai-chat-core": {
70
+ "optional": true
71
+ },
72
+ "better-sqlite3": {
73
+ "optional": true
74
+ }
75
+ },
76
+ "keywords": [
77
+ "search",
78
+ "document",
79
+ "semantic",
80
+ "vector",
81
+ "ai",
82
+ "embedding"
83
+ ],
84
+ "author": "huyooo",
85
+ "license": "MIT",
86
+ "publishConfig": {
87
+ "access": "public"
88
+ }
89
+ }