mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 17:50:04 +08:00
The connected KB type landed with no way to create one and no way to pair the add-on that fills it, so the feature was unreachable from the app. Connecting: a MarginNote card in the create modal's link sources. It asks for a name and nothing else — `db_path` is deliberately not sent, so the store's location keeps one rule and pairing, the add-on's syncs and the capability binding cannot disagree. Feeding it: a Devices tab on the library, with the paired-device list, revoke, and the one-time token shown once at pairing (the server keeps only a hash). Every call names its library through `X-MN4-KB`, which is what makes the token findable by the syncs that present it. The detail view's sections are now derived rather than fixed: a library owns no raw files and builds no index, so Files / Add documents / Index versions rendered empty against it, the header read "llamaindex · Default embedding" for a pipeline it never runs, Settings offered an on-disk path that does not exist, and Retry indexing offered to re-run nothing. Each now reports what the library actually has.