feat(app): embed indexer in Electron with file-watching service and UI refinements

Extract schema DDL into scripts/schema.sql shared between CLI and app.
  Add an in-process chokidar-based indexer-service that watches ~/.claude/projects
  for JSONL changes, debounces, and triggers background rebuilds via a worker
  thread. Rename Usage view to Activity, flesh out MemoryDetail and SubagentDetail
  views, and refine App.vue layout/routing. The main process now starts/stops the
  indexer lifecycle and notifies renderer windows on index updates.
This commit is contained in:
tommy0103
2026-06-13 03:42:01 +08:00
parent b524339d85
commit 4eec6b38c9
29 changed files with 1370 additions and 314 deletions
+15 -2
View File
@@ -20,15 +20,28 @@
"files": [
"main.js",
"preload.js",
"indexer.js",
"indexer-service.js",
"indexer-worker.js",
"indexer-worker-client.js",
"dist-renderer/**/*",
"node_modules/better-sqlite3/**/*"
"node_modules/better-sqlite3/**/*",
"node_modules/chokidar/**/*",
"node_modules/readdirp/**/*"
],
"extraResources": [
{
"from": "../scripts/schema.sql",
"to": "scripts/schema.sql"
}
],
"asarUnpack": [
"node_modules/better-sqlite3/**/*"
]
},
"dependencies": {
"better-sqlite3": "^11.0.0"
"better-sqlite3": "^11.0.0",
"chokidar": "^4.0.3"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.0",