mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
Bring the Electron desktop client to parity with CLI web for semantic index, and package the local embedding runtime correctly. - Inject semanticIndexService into the desktop AI tool debug executor so manual tool runs reach semantic search tools, matching the Agent stream. Extract a platform-agnostic tool-executor-core with unit tests. - Persist the API key by reference in the degraded semantic-index config route (vector service unavailable) so API mode keys are not dropped; make auth-profile read/write injectable and add route + unit regression tests that never touch the real ~/.chatlab. - Package desktop local embedding deps: declare @huggingface/transformers, asarUnpack onnxruntime-node / @img native libs, and trim onnxruntime-node binaries to the build target platform/arch to avoid shipping ~175M of unrelated Linux/Windows binaries. Co-authored-by: Cursor <cursoragent@cursor.com>