@ez-corp/ez-search 1.0.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/LICENSE +15 -0
- package/README.md +207 -0
- package/dist/cli/commands/index-cmd.js +450 -0
- package/dist/cli/commands/query-cmd.js +233 -0
- package/dist/cli/commands/status-cmd.js +154 -0
- package/dist/cli/errors.js +25 -0
- package/dist/cli/index.js +62 -0
- package/dist/config/paths.js +16 -0
- package/dist/services/chunker.js +96 -0
- package/dist/services/file-scanner.js +62 -0
- package/dist/services/image-embedder.js +64 -0
- package/dist/services/manifest-cache.js +85 -0
- package/dist/services/model-router.js +108 -0
- package/dist/services/query-utils.js +74 -0
- package/dist/services/staleness.js +36 -0
- package/dist/services/text-chunker.js +138 -0
- package/dist/services/vector-db.js +161 -0
- package/dist/types.js +67 -0
- package/package.json +56 -0
package/dist/types.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export const EXTENSION_MAP = {
|
|
2
|
+
// Code
|
|
3
|
+
'.ts': 'code',
|
|
4
|
+
'.tsx': 'code',
|
|
5
|
+
'.js': 'code',
|
|
6
|
+
'.jsx': 'code',
|
|
7
|
+
'.py': 'code',
|
|
8
|
+
'.go': 'code',
|
|
9
|
+
'.rs': 'code',
|
|
10
|
+
'.java': 'code',
|
|
11
|
+
'.c': 'code',
|
|
12
|
+
'.cpp': 'code',
|
|
13
|
+
'.h': 'code',
|
|
14
|
+
'.hpp': 'code',
|
|
15
|
+
'.rb': 'code',
|
|
16
|
+
'.php': 'code',
|
|
17
|
+
'.swift': 'code',
|
|
18
|
+
'.kt': 'code',
|
|
19
|
+
'.scala': 'code',
|
|
20
|
+
'.sh': 'code',
|
|
21
|
+
'.bash': 'code',
|
|
22
|
+
'.zsh': 'code',
|
|
23
|
+
'.css': 'code',
|
|
24
|
+
'.scss': 'code',
|
|
25
|
+
'.html': 'code',
|
|
26
|
+
// Text
|
|
27
|
+
'.md': 'text',
|
|
28
|
+
'.mdx': 'text',
|
|
29
|
+
'.txt': 'text',
|
|
30
|
+
'.rst': 'text',
|
|
31
|
+
'.csv': 'text',
|
|
32
|
+
'.pdf': 'text',
|
|
33
|
+
// Code (structured/config files)
|
|
34
|
+
'.json': 'code',
|
|
35
|
+
'.yaml': 'code',
|
|
36
|
+
'.yml': 'code',
|
|
37
|
+
'.toml': 'code',
|
|
38
|
+
// Image
|
|
39
|
+
'.jpg': 'image',
|
|
40
|
+
'.jpeg': 'image',
|
|
41
|
+
'.png': 'image',
|
|
42
|
+
'.gif': 'image',
|
|
43
|
+
'.webp': 'image',
|
|
44
|
+
'.svg': 'image',
|
|
45
|
+
};
|
|
46
|
+
export const BUILTIN_EXCLUSIONS = [
|
|
47
|
+
'node_modules',
|
|
48
|
+
'.git',
|
|
49
|
+
'dist',
|
|
50
|
+
'build',
|
|
51
|
+
'.next',
|
|
52
|
+
'.nuxt',
|
|
53
|
+
'.cache',
|
|
54
|
+
'coverage',
|
|
55
|
+
'.nyc_output',
|
|
56
|
+
'*.lock',
|
|
57
|
+
'package-lock.json',
|
|
58
|
+
'yarn.lock',
|
|
59
|
+
'pnpm-lock.yaml',
|
|
60
|
+
'bun.lockb',
|
|
61
|
+
'.DS_Store',
|
|
62
|
+
'Thumbs.db',
|
|
63
|
+
'*.min.js',
|
|
64
|
+
'*.min.css',
|
|
65
|
+
'*.map',
|
|
66
|
+
'.ez-search',
|
|
67
|
+
];
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ez-corp/ez-search",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Semantic codebase search with zero cloud dependencies",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/cli/index.js",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=20"
|
|
9
|
+
},
|
|
10
|
+
"bin": {
|
|
11
|
+
"ez-search": "./dist/cli/index.js"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist/",
|
|
15
|
+
"README.md",
|
|
16
|
+
"LICENSE"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsc",
|
|
20
|
+
"start": "tsx src/cli/index.ts",
|
|
21
|
+
"test": "bun test",
|
|
22
|
+
"test:unit": "bun test tests/unit/",
|
|
23
|
+
"test:integration": "bun test tests/integration/"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"semantic-search",
|
|
27
|
+
"codebase-search",
|
|
28
|
+
"embeddings",
|
|
29
|
+
"cli",
|
|
30
|
+
"local",
|
|
31
|
+
"code-search",
|
|
32
|
+
"vector-search"
|
|
33
|
+
],
|
|
34
|
+
"author": "ezcorp-org",
|
|
35
|
+
"license": "ISC",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/ezcorp-org/ez-search.git"
|
|
39
|
+
},
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/ezcorp-org/ez-search/issues"
|
|
42
|
+
},
|
|
43
|
+
"homepage": "https://github.com/ezcorp-org/ez-search#readme",
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@huggingface/transformers": "^4.0.0-next.4",
|
|
46
|
+
"@zvec/zvec": "^0.2.0",
|
|
47
|
+
"commander": "^14.0.3",
|
|
48
|
+
"ignore": "^7.0.5",
|
|
49
|
+
"pdf-parse": "^2.4.5"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/node": "^25.3.0",
|
|
53
|
+
"tsx": "^4.21.0",
|
|
54
|
+
"typescript": "^5.9.3"
|
|
55
|
+
}
|
|
56
|
+
}
|