ai_xiaopei
9 days ago 8de9d03cad67d6944d40567bff90350d132d60b0
refs
author ai_xiaopei <xiaopei@aisim.cn>
Sunday, July 26, 2026 09:54 +0800
committer ai_xiaopei <xiaopei@aisim.cn>
Sunday, July 26, 2026 09:54 +0800
commit8de9d03cad67d6944d40567bff90350d132d60b0
tree d9b6991e0585a09d81fb5169069b35e520f6fe20 tree | zip | gz
parent 30b6be6724e435016a1554b610430f68e0db9246 view | diff
feat: add index gc command for cleaning orphan nodes

- Add GetAllNodes() and DeleteNodesByPaths() to sqlite.go
- Implement runIndexGc() with path expansion for ~
- Update help format to match axin-cli style
- Fix duplicate init() functions in root.go
6 files modified
241 ■■■■■ changed files
bin/kb diff | view | raw | blame | history
cmd/index.go 68 ●●●●● diff | view | raw | blame | history
cmd/rebuild.go 27 ●●●● diff | view | raw | blame | history
cmd/root.go 58 ●●●●● diff | view | raw | blame | history
cmd/search.go 7 ●●●●● diff | view | raw | blame | history
internal/index/sqlite.go 81 ●●●●● diff | view | raw | blame | history