mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
4f6214a5ce
Replace manual substring search in Zustand store with core SearchEngine (Fuse.js fuzzy matching). SearchBar now shows a top-5 dropdown with type badges and relevance bars; closes on Escape/outside click. GraphView updated to work with SearchResult[] (nodeId+score) instead of string[]. Added sub-path exports to core package.json so the dashboard can import search/types modules without pulling in Node.js-only dependencies. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
38 lines
802 B
JSON
38 lines
802 B
JSON
{
|
|
"name": "@understand-anything/core",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./search": {
|
|
"types": "./dist/search.d.ts",
|
|
"default": "./dist/search.js"
|
|
},
|
|
"./types": {
|
|
"types": "./dist/types.d.ts",
|
|
"default": "./dist/types.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"test": "vitest run"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.5.0",
|
|
"typescript": "^5.7.0",
|
|
"vitest": "^3.1.0"
|
|
},
|
|
"dependencies": {
|
|
"fuse.js": "^7.1.0",
|
|
"tree-sitter-javascript": "^0.25.0",
|
|
"tree-sitter-typescript": "^0.23.2",
|
|
"web-tree-sitter": "^0.26.6",
|
|
"zod": "^4.3.6"
|
|
}
|
|
}
|