Commit Graph
6 Commits
Author SHA1 Message Date
Lum1104andClaude Opus 4.6 4f6214a5ce feat(dashboard): wire core SearchEngine with fuzzy matching and scored highlighting
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>
2026-03-14 19:09:57 +08:00
Lum1104andClaude Opus 4.6 a243a07d6f feat(core): add fuzzy search engine with Fuse.js
Add SearchEngine class with fuzzy matching across node name, tags,
summary, and languageNotes fields. Supports type filtering, result
limiting, and dynamic re-indexing via updateNodes(). Uses Fuse.js
extended search with OR-token splitting for multi-word queries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 18:29:33 +08:00
Lum1104andClaude Opus 4.6 c04123366e feat(core): add Zod schema validation for knowledge graph loading
Add runtime validation of knowledge graph JSON using Zod schemas that
mirror every type in types.ts. The loadGraph function now validates
by default (opt-out via { validate: false }) and throws descriptive
errors on invalid data.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 18:21:24 +08:00
Lum1104andClaude Opus 4.6 801c5e7af3 feat(core): add tree-sitter analyzer plugin for TS/JS
Add TreeSitterPlugin using web-tree-sitter (WASM-based) to extract
structural information from TypeScript and JavaScript files. The plugin
implements the AnalyzerPlugin interface and extracts functions, classes,
imports, exports, and call graphs via AST traversal.

Uses web-tree-sitter instead of native tree-sitter for cross-platform
compatibility (no native compilation required).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 17:40:29 +08:00
Lum1104andClaude Opus 4.6 a5327ce64d feat(core): add JSON persistence for knowledge graph and meta
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 17:30:23 +08:00
Lum1104andClaude Opus 4.6 35d0545100 feat(core): add knowledge graph type system and validation tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 17:25:49 +08:00