@kingsleyasher/dsh-knowledge-base 0.0.0-stage → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARCHITECTURE.en.md +35 -0
- package/ARCHITECTURE.md +40 -0
- package/BETA4.md +31 -0
- package/BETA7.md +35 -0
- package/BETA8.md +39 -0
- package/BETA9.md +38 -0
- package/CONTRIBUTING.md +5 -0
- package/DEVELOPMENT.en.md +26 -0
- package/DEVELOPMENT.md +27 -0
- package/EXISTING-FRAMEWORK-OPTIMIZATION.md +101 -0
- package/LICENSE +21 -0
- package/MONOREPO.md +34 -0
- package/NPM-EDITION.md +12 -0
- package/PARSING-PREVIEW.md +84 -0
- package/PERFORMANCE.md +43 -0
- package/PRIVACY.md +7 -0
- package/PROJECT-RECORD.en.md +782 -0
- package/PROJECT-RECORD.md +793 -0
- package/README.md +109 -3
- package/README.zh-CN.md +117 -0
- package/RELEASE.en.md +559 -0
- package/RELEASE.md +570 -0
- package/RETRIEVAL.md +93 -0
- package/SECURITY.md +7 -0
- package/THIRD-PARTY-NOTICES.md +5 -0
- package/VERSIONING.en.md +51 -0
- package/VERSIONING.md +50 -0
- package/WORKBENCH.en.md +201 -0
- package/WORKBENCH.md +195 -0
- package/browser-extension/background.js +146 -0
- package/browser-extension/icons/knowledge-base-128.png +0 -0
- package/browser-extension/icons/knowledge-base-16.png +0 -0
- package/browser-extension/icons/knowledge-base-32.png +0 -0
- package/browser-extension/icons/knowledge-base-48.png +0 -0
- package/browser-extension/manifest.json +25 -0
- package/browser-extension/options.html +22 -0
- package/browser-extension/options.js +41 -0
- package/browser-extension/popup.html +17 -0
- package/browser-extension/popup.js +58 -0
- package/browser-extension/style.css +11 -0
- package/cordis.patch.yml +88 -0
- package/docs/LEGACY-246-BOOTSTRAP.md +21 -0
- package/docs/LIBRARY-FRAMEWORK-MIGRATION.md +45 -0
- package/docs/ORIGINAL-FILE-INDEX-ARCHITECTURE.md +43 -0
- package/docs/TODO-LIFECYCLE-VALIDATION.md +42 -0
- package/docs/UPDATE-RECOVERY.en.md +18 -0
- package/docs/UPDATE-RECOVERY.md +70 -0
- package/docs/WINDOWS-SIGNING.md +30 -0
- package/docs/client/ARCHITECTURE.en.md +17 -0
- package/docs/client/ARCHITECTURE.md +17 -0
- package/docs/client/CONTRIBUTING.md +5 -0
- package/docs/client/CROSS-VOLUME-TRASH.md +13 -0
- package/docs/client/DEVELOPMENT.en.md +33 -0
- package/docs/client/DEVELOPMENT.md +33 -0
- package/docs/client/EXISTING-FRAMEWORK-OPTIMIZATION.md +3 -0
- package/docs/client/PERFORMANCE.md +3 -0
- package/docs/client/PRIVACY.md +7 -0
- package/docs/client/PROJECT-RECORD.en.md +199 -0
- package/docs/client/PROJECT-RECORD.md +219 -0
- package/docs/client/README.md +55 -0
- package/docs/client/README.zh-CN.md +45 -0
- package/docs/client/RELEASE.en.md +148 -0
- package/docs/client/RELEASE.md +149 -0
- package/docs/client/RETRIEVAL.md +3 -0
- package/docs/client/SECURITY.md +7 -0
- package/docs/client/THIRD-PARTY-NOTICES.md +5 -0
- package/docs/client/VERSIONING.en.md +9 -0
- package/docs/client/VERSIONING.md +9 -0
- package/docs/client/WORKBENCH.en.md +24 -0
- package/docs/client/WORKBENCH.md +24 -0
- package/docs/client/skills/personal-knowledge-base/SKILL.md +38 -0
- package/docs/releases/client-1.0.1.md +32 -0
- package/docs/releases/client-1.0.2.md +32 -0
- package/docs/releases/client-1.0.3.md +31 -0
- package/docs/releases/client-1.1.1.md +28 -0
- package/docs/releases/client-1.1.2.md +16 -0
- package/docs/releases/client-1.1.4.md +7 -0
- package/docs/releases/client-2.0.0.en.md +13 -0
- package/docs/releases/client-2.0.0.md +13 -0
- package/docs/releases/client-2.0.1.en.md +10 -0
- package/docs/releases/client-2.0.1.md +10 -0
- package/docs/releases/client-2.0.3.en.md +8 -0
- package/docs/releases/client-2.0.3.md +8 -0
- package/docs/releases/plugin-2.4.1.md +24 -0
- package/docs/releases/plugin-2.4.10.md +22 -0
- package/docs/releases/plugin-2.4.11.md +14 -0
- package/docs/releases/plugin-2.4.12.md +14 -0
- package/docs/releases/plugin-2.4.13.md +27 -0
- package/docs/releases/plugin-2.4.14.md +18 -0
- package/docs/releases/plugin-2.4.2.md +31 -0
- package/docs/releases/plugin-2.4.3.md +25 -0
- package/docs/releases/plugin-2.4.4.md +31 -0
- package/docs/releases/plugin-2.4.5.md +23 -0
- package/docs/releases/plugin-2.4.6.md +23 -0
- package/docs/releases/plugin-2.4.7.md +14 -0
- package/docs/releases/plugin-2.4.8.md +14 -0
- package/docs/releases/plugin-2.4.9.md +18 -0
- package/docs/releases/plugin-2.5.10.md +11 -0
- package/docs/releases/plugin-2.5.13.en.md +11 -0
- package/docs/releases/plugin-2.5.13.md +11 -0
- package/docs/releases/plugin-2.5.3.md +28 -0
- package/docs/releases/plugin-2.5.4.md +14 -0
- package/docs/releases/plugin-2.5.5.md +16 -0
- package/docs/releases/plugin-2.5.6.md +3 -0
- package/docs/releases/plugin-2.5.7.md +7 -0
- package/docs/releases/plugin-2.5.8.md +7 -0
- package/docs/releases/plugin-2.5.9.md +7 -0
- package/docs/releases/plugin-3.0.0.en.md +13 -0
- package/docs/releases/plugin-3.0.0.md +13 -0
- package/docs/releases/plugin-3.0.1.en.md +10 -0
- package/docs/releases/plugin-3.0.1.md +10 -0
- package/docs/releases/plugin-3.1.3.en.md +11 -0
- package/docs/releases/plugin-3.1.3.md +11 -0
- package/docs/validation/windows-auto-update-2.4.13.md +31 -0
- package/docs/validation/windows-direct-246-to-2413.md +32 -0
- package/package.json +78 -6
- package/packages/kb-contracts/desktop.js +29 -0
- package/packages/kb-contracts/index.js +132 -0
- package/packages/kb-contracts/node.js +3 -0
- package/packages/kb-contracts/package.json +17 -0
- package/packages/kb-contracts/schema.js +42 -0
- package/packages/kb-contracts/tools.js +1 -0
- package/packages/kb-contracts/version-policy.js +45 -0
- package/packages/kb-core/index.js +9 -0
- package/packages/kb-core/package.json +15 -0
- package/packages/kb-core/src/capture-surface.js +22 -0
- package/packages/kb-core/src/documents.js +105 -0
- package/packages/kb-core/src/embedded.js +29 -0
- package/packages/kb-core/src/file-catalog.js +151 -0
- package/packages/kb-core/src/file-classification.js +60 -0
- package/packages/kb-core/src/flow-workspace.js +66 -0
- package/packages/kb-core/src/flows.js +1136 -0
- package/packages/kb-core/src/fsindex.js +293 -0
- package/packages/kb-core/src/import-service.js +486 -0
- package/packages/kb-core/src/importer.js +909 -0
- package/packages/kb-core/src/inbox-flow.js +2 -0
- package/packages/kb-core/src/index-architecture.js +48 -0
- package/packages/kb-core/src/index-maintenance.js +81 -0
- package/packages/kb-core/src/index-policy-service.js +191 -0
- package/packages/kb-core/src/index-policy.js +121 -0
- package/packages/kb-core/src/kbcore.js +2519 -0
- package/packages/kb-core/src/library-framework.js +186 -0
- package/packages/kb-core/src/library-state.js +68 -0
- package/packages/kb-core/src/managed-files.js +69 -0
- package/packages/kb-core/src/map.js +171 -0
- package/packages/kb-core/src/parse-credentials.js +49 -0
- package/packages/kb-core/src/parse-discovery.js +119 -0
- package/packages/kb-core/src/parse-job-storage.js +40 -0
- package/packages/kb-core/src/parse-native.js +87 -0
- package/packages/kb-core/src/parse-presets.js +46 -0
- package/packages/kb-core/src/parse-source-authority.js +72 -0
- package/packages/kb-core/src/parsing.js +2307 -0
- package/packages/kb-core/src/relation-name-lookup.js +43 -0
- package/packages/kb-core/src/retrieval-api.js +79 -0
- package/packages/kb-core/src/retrieval-cache.js +22 -0
- package/packages/kb-core/src/retrieval-chunks.js +128 -0
- package/packages/kb-core/src/retrieval-pool.js +102 -0
- package/packages/kb-core/src/retrieval-worker.js +190 -0
- package/packages/kb-core/src/retrieval.js +618 -0
- package/packages/kb-core/src/runtime-resources.js +73 -0
- package/packages/kb-core/src/service-ownership.js +18 -0
- package/packages/kb-core/src/source-references.js +61 -0
- package/packages/kb-core/src/storage-io.js +121 -0
- package/packages/kb-core/src/system-upgrades.js +104 -0
- package/packages/kb-core/src/workbench-backup.js +219 -0
- package/packages/kb-core/src/workbench-deliverables.js +73 -0
- package/packages/kb-core/src/workbench-files.js +25 -0
- package/packages/kb-core/src/workbench-inbox.js +57 -0
- package/packages/kb-core/src/workbench-links.js +236 -0
- package/packages/kb-core/src/workbench-question.js +131 -0
- package/packages/kb-core/src/workbench-relation-index.js +110 -0
- package/packages/kb-core/src/workbench-state.js +102 -0
- package/packages/kb-core/src/workbench-trash.js +213 -0
- package/packages/kb-core/src/workbench.js +936 -0
- package/packages/kb-service/auth.js +39 -0
- package/packages/kb-service/build.js +18 -0
- package/packages/kb-service/cli.js +26 -0
- package/packages/kb-service/client.js +64 -0
- package/packages/kb-service/clipper.js +15 -0
- package/packages/kb-service/compatibility.js +34 -0
- package/packages/kb-service/desktop-files.js +514 -0
- package/packages/kb-service/desktop-host-links.js +39 -0
- package/packages/kb-service/dsh-broker.js +64 -0
- package/packages/kb-service/dsh-host.js +168 -0
- package/packages/kb-service/dsh-stream-relay.js +32 -0
- package/packages/kb-service/engines.js +32 -0
- package/packages/kb-service/extension.js +8 -0
- package/packages/kb-service/first-library-handoff.js +28 -0
- package/packages/kb-service/handoff-api.js +22 -0
- package/packages/kb-service/host-adapter.js +151 -0
- package/packages/kb-service/host-assets.js +9 -0
- package/packages/kb-service/host-python.js +30 -0
- package/packages/kb-service/host-updates.js +97 -0
- package/packages/kb-service/inbox-host.js +47 -0
- package/packages/kb-service/inbox-jobs.js +54 -0
- package/packages/kb-service/index.js +3 -0
- package/packages/kb-service/io.js +24 -0
- package/packages/kb-service/launch-lock.js +27 -0
- package/packages/kb-service/launcher.js +18 -0
- package/packages/kb-service/legacy-handoff.js +27 -0
- package/packages/kb-service/legacy-ports.js +18 -0
- package/packages/kb-service/main.js +13 -0
- package/packages/kb-service/memory-channel.js +57 -0
- package/packages/kb-service/memory-sync.js +42 -0
- package/packages/kb-service/migration.js +131 -0
- package/packages/kb-service/native.py +216 -0
- package/packages/kb-service/operations.js +19 -0
- package/packages/kb-service/package.json +1 -0
- package/packages/kb-service/runtime.js +185 -0
- package/packages/kb-service/safe-update.js +104 -0
- package/packages/kb-service/service.js +494 -0
- package/packages/kb-service/tool-definitions.json +934 -0
- package/packages/kb-service/tool-router.js +45 -0
- package/packages/kb-service/vector-profiles.js +41 -0
- package/presets/01-knowledge-agent.patch.yml +347 -0
- package/runtime/python/LICENSE.txt +676 -0
- package/runtime/python/_asyncio.pyd +0 -0
- package/runtime/python/_bz2.pyd +0 -0
- package/runtime/python/_ctypes.pyd +0 -0
- package/runtime/python/_decimal.pyd +0 -0
- package/runtime/python/_elementtree.pyd +0 -0
- package/runtime/python/_hashlib.pyd +0 -0
- package/runtime/python/_lzma.pyd +0 -0
- package/runtime/python/_multiprocessing.pyd +0 -0
- package/runtime/python/_overlapped.pyd +0 -0
- package/runtime/python/_queue.pyd +0 -0
- package/runtime/python/_remote_debugging.pyd +0 -0
- package/runtime/python/_socket.pyd +0 -0
- package/runtime/python/_sqlite3.pyd +0 -0
- package/runtime/python/_ssl.pyd +0 -0
- package/runtime/python/_uuid.pyd +0 -0
- package/runtime/python/_wmi.pyd +0 -0
- package/runtime/python/_zoneinfo.pyd +0 -0
- package/runtime/python/_zstd.pyd +0 -0
- package/runtime/python/libcrypto-3.dll +0 -0
- package/runtime/python/libffi-8.dll +0 -0
- package/runtime/python/libssl-3.dll +0 -0
- package/runtime/python/libtommath.dll +0 -0
- package/runtime/python/pyexpat.pyd +0 -0
- package/runtime/python/python.cat +0 -0
- package/runtime/python/python.exe +0 -0
- package/runtime/python/python3.dll +0 -0
- package/runtime/python/python314._pth +5 -0
- package/runtime/python/python314.dll +0 -0
- package/runtime/python/python314.zip +0 -0
- package/runtime/python/pythonw.exe +0 -0
- package/runtime/python/select.pyd +0 -0
- package/runtime/python/sqlite3.dll +0 -0
- package/runtime/python/unicodedata.pyd +0 -0
- package/runtime/python/vcruntime140.dll +0 -0
- package/runtime/python/vcruntime140_1.dll +0 -0
- package/runtime/python/winsound.pyd +0 -0
- package/skills/personal-knowledge-base/SKILL.md +38 -0
- package/src/client/capture-icon-192.png +0 -0
- package/src/client/capture-icon-512.png +0 -0
- package/src/client/capture-icon.svg +12 -0
- package/src/client/capture-sw.js +10 -0
- package/src/client/capture.css +1 -0
- package/src/client/capture.html +1 -0
- package/src/client/capture.js +37 -0
- package/src/client/capture.webmanifest +1 -0
- package/src/client/inbox-organize-bridge.js +22 -0
- package/src/client/index.js +4975 -0
- package/src/client/knowledge-ui.css +255 -0
- package/src/client/pdfjs/LICENSE +177 -0
- package/src/client/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/78-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/78-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Add-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Add-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- package/src/client/pdfjs/cmaps/B5-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/B5-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/B5pc-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/B5pc-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/CNS1-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/CNS1-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/CNS2-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/CNS2-V.bcmap +3 -0
- package/src/client/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
- package/src/client/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/EUC-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/EUC-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Ext-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Ext-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GB-H.bcmap +4 -0
- package/src/client/pdfjs/cmaps/GB-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GBT-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GBT-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Hankaku.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Hiragana.bcmap +0 -0
- package/src/client/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/KSC-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/KSC-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Katakana.bcmap +0 -0
- package/src/client/pdfjs/cmaps/LICENSE +36 -0
- package/src/client/pdfjs/cmaps/NWP-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/NWP-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/Roman.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
- package/src/client/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/V.bcmap +0 -0
- package/src/client/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
- package/src/client/pdfjs/pdf.mjs +26779 -0
- package/src/client/pdfjs/pdf.worker.mjs +63420 -0
- package/src/client/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
- package/src/client/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
- package/src/client/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
- package/src/client/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- package/src/client/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
- package/src/client/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
- package/src/client/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
- package/src/client/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- package/src/client/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
- package/src/client/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
- package/src/client/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
- package/src/client/pdfjs/standard_fonts/LICENSE_LIBERATION +102 -0
- package/src/client/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
- package/src/client/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
- package/src/client/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
- package/src/client/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
- package/src/client/pdfjs/wasm/LICENSE_JBIG2 +196 -0
- package/src/client/pdfjs/wasm/LICENSE_OPENJPEG +39 -0
- package/src/client/pdfjs/wasm/LICENSE_PDFJS_JBIG2 +13 -0
- package/src/client/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
- package/src/client/pdfjs/wasm/LICENSE_PDFJS_QCMS +22 -0
- package/src/client/pdfjs/wasm/LICENSE_QCMS +21 -0
- package/src/client/pdfjs/wasm/jbig2.wasm +0 -0
- package/src/client/pdfjs/wasm/openjpeg.wasm +0 -0
- package/src/client/pdfjs/wasm/openjpeg_nowasm_fallback.js +17 -0
- package/src/client/pdfjs/wasm/qcms_bg.wasm +0 -0
- package/src/client/todo-lifecycle-ui.js +58 -0
- package/src/client/workbench-features.js +148 -0
- package/src/client/workbench-relations.js +86 -0
- package/src/client/workbench-theme.css +81 -0
- package/src/client/workbench-ui.js +1761 -0
- package/src/host/capture-surface.js +2 -0
- package/src/host/citation-guard.js +40 -0
- package/src/host/command-description.js +43 -0
- package/src/host/flow-workspace.js +62 -0
- package/src/host/flows.js +2 -0
- package/src/host/fsindex.js +2 -0
- package/src/host/gateway.js +916 -0
- package/src/host/import-service.js +2 -0
- package/src/host/importer.js +2 -0
- package/src/host/index-maintenance.js +2 -0
- package/src/host/index-policy-service.js +2 -0
- package/src/host/index-policy.js +2 -0
- package/src/host/index.js +2220 -0
- package/src/host/kbcore.js +2 -0
- package/src/host/managed-files.js +2 -0
- package/src/host/map.js +2 -0
- package/src/host/parse-credentials.js +2 -0
- package/src/host/parse-discovery.js +2 -0
- package/src/host/parse-native.js +2 -0
- package/src/host/parse-presets.js +2 -0
- package/src/host/parse-source-authority.js +2 -0
- package/src/host/parsing.js +7 -0
- package/src/host/relation-name-lookup.js +2 -0
- package/src/host/retrieval-api.js +2 -0
- package/src/host/retrieval-cache.js +2 -0
- package/src/host/retrieval-chunks.js +2 -0
- package/src/host/retrieval-pool.js +2 -0
- package/src/host/retrieval-worker.js +2 -0
- package/src/host/retrieval.js +2 -0
- package/src/host/runtime-resources.js +2 -0
- package/src/host/selftest.js +747 -0
- package/src/host/storage-io.js +2 -0
- package/src/host/system-upgrades.js +2 -0
- package/src/host/todo-lifecycle.js +66 -0
- package/src/host/updates.js +281 -0
- package/src/host/versioning.js +2 -0
- package/src/host/workbench-backup.js +2 -0
- package/src/host/workbench-deliverables.js +2 -0
- package/src/host/workbench-files.js +2 -0
- package/src/host/workbench-inbox.js +2 -0
- package/src/host/workbench-links.js +2 -0
- package/src/host/workbench-question.js +2 -0
- package/src/host/workbench-relation-index.js +2 -0
- package/src/host/workbench-state.js +2 -0
- package/src/host/workbench-trash.js +2 -0
- package/src/host/workbench.js +5 -0
- package/tools/kb-local-model.py +141 -0
- package/tools/kb-pdf-pages.py +78 -0
- package/tools/kb-transactional-update.py +292 -0
package/RETRIEVAL.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# 全文与向量协同检索 · 2.1.3
|
|
2
|
+
|
|
3
|
+
[简体中文](RETRIEVAL.md) · [English](RETRIEVAL.en.md)
|
|
4
|
+
|
|
5
|
+
## 2.3.0 开发中:资料排除索引
|
|
6
|
+
|
|
7
|
+
收件箱“待整理归档”区域提供逐份、批量排除索引,默认关闭;未归档原件不参与全文、向量和关系索引。已归档资料可在详情中切换。开启排除后,原件、已登记的解析产物和归档笔记一起移入“排除索引分区”,在分区下按原有分类保存;新解析出的文字另存于分区下的“解析文件”。资料仍可直接打开,并可交给用户选择的模型进行本次整理。
|
|
8
|
+
|
|
9
|
+
规则及资料归属写入 `.kbmeta/index-policy.json`。先提交禁止检索的状态,再清理全文索引及其历史快照、向量代次和关系索引,再校验并移动文件。所有索引构建及检索结果校验共享策略版本;正在进行的旧构建不能发布过期结果。显式来源与手动关系随资料归属管理,排除时清除活动关系,取消排除时重建文档关系并恢复允许的手动关系。另一端仍被排除时不恢复该关系。
|
|
10
|
+
|
|
11
|
+
取消排除后按保存的正常分类位置重新归档,重写被移动资料内的来源路径,重建全文与关系索引,并为已启用的向量服务排队补建。原件仍按正常库的原件存放规则保存,解析底稿回到底稿分类。目标有不同内容时拒绝覆盖;失败状态继续禁止检索,重试使用保存的移动进度。重复设置相同状态不重新建库。
|
|
12
|
+
|
|
13
|
+
旧向量清单没有完整的来源归属,因此排除状态切换会清理旧向量代次,再为允许索引的资料补建;此过程有重建开销,全文仍可使用。该选项不代表禁止本次用户主动发起的模型整理,也不能撤回此前已发送给外部服务的内容。用户的原文件备份不属于索引清理范围。
|
|
14
|
+
|
|
15
|
+
2026-10-26:按用户调整后的范围,本轮优先优化现有精确检索及超大库运行路径。SQLite / USearch 和新证据协议移至独立研究快照,未纳入当前运行版本。
|
|
16
|
+
|
|
17
|
+
已完成的改造、与原实现逐项一致性对照、实测收益及剩余边界见 [现有框架优化记录](EXISTING-FRAMEWORK-OPTIMIZATION.md)。
|
|
18
|
+
|
|
19
|
+
## 配置和使用
|
|
20
|
+
|
|
21
|
+
1. 在左下角通用设置打开“个人知识库”,可直接配置“全文与向量协同检索”;也可在知识库工作台打开“设置 → 协同检索与向量 API”。两个入口复用同一表单、配置和任务。
|
|
22
|
+
2. 默认配置为硅基流动,完整接口地址是 `https://api.siliconflow.cn/v1/embeddings`,模型为 `BAAI/bge-m3`。填写自己的 API Key。
|
|
23
|
+
3. “仅测试连接”使用固定测试文本,不上传整库。“保存并启用自动建库”验证成功后自动分析资料、切片和建立向量索引;无需再运行切片脚本。
|
|
24
|
+
4. 构建过程中可搜索,未完成或服务不可用时使用全文。设置页可暂停、继续、重试、重建及清理旧版本。
|
|
25
|
+
5. 默认搜索方式是“全文与向量协同”,也可选择全文相关性、语义向量、精确匹配或文件名与路径。命中资料下可展开章节上下文、前文和后文。
|
|
26
|
+
|
|
27
|
+
私密资料是否可发送到云端由本页的独立选项管理;此构建默认允许,与已确认方案一致。显示私密资料和允许问答仍是独立权限。关闭云端私密处理会停止后续向量化及私密候选的云端重排序,已有云端接收的数据无法撤回。云端语义搜索会发送查询文本。
|
|
28
|
+
|
|
29
|
+
## 其他模型及重排序
|
|
30
|
+
|
|
31
|
+
选择“通用 Embedding API”可填写 Qwen 等兼容服务的完整接口地址、模型名和密钥。Qwen3 Embedding 查询模板留空时采用英文检索指令,文档通常不加指令。支持可选维度,但只应向明确支持该参数的服务填写。批量、输入模板及切片目标可在高级设置调整。
|
|
32
|
+
|
|
33
|
+
可以保存多个向量配置,当前知识库只启用其中一个。更换密钥不重建;更换模型、维度、输入模板或切片规则建立独立索引,完成后切换。切换期间仍使用旧活动索引及对应模型。服务商以相同模型名替换后台实现无法完全自动识别,可使用“重建”。
|
|
34
|
+
|
|
35
|
+
重排序仅提供通用 API,无厂商或模型预设。接口应接受 `model`、`query`、`documents`、`top_n`、`return_documents`,返回 `results`,每项包含 `index` 和 `relevance_score`。可使用与向量服务不同的密钥。关闭或更换重排序不重建向量索引。
|
|
36
|
+
|
|
37
|
+
## 检索和长文上下文
|
|
38
|
+
|
|
39
|
+
全文精确匹配与 BM25 词项排序在后台 worker 中计算;向量召回独立进行。候选使用 RRF 融合,最多一轮双向补充:语义命中的章节内进行全文定位,全文命中的文档内寻找语义相关片段。不会生成新查询或递归扩张。可选重排序最多处理前 40 个候选,失败后保留融合结果。
|
|
40
|
+
|
|
41
|
+
结构分析保留文档、章节和检索片段的对应位置。正文目标约 2400 UTF-8 字节,标题和结构提示最多约 512 字节;默认重叠约 240 字节。表格延续片段携带表头,代码块保存语言及连续关系,列表携带父项提示。接口明确报告输入超长时会缩小片段后重建,不截断原文。字节预算并不是实际 token 数。
|
|
42
|
+
|
|
43
|
+
检索后读取真实原文,补齐所属小节、相邻段落及必要结构。单个问答来源最多自动补充约 12.29 KB,一次自动上下文最多约 49.15 KB;可继续读取。相邻范围合并,距离较远的命中保留位置。片段、引用和进一步读取都绑定文档版本,内容改变后旧片段不会作为有效来源返回。
|
|
44
|
+
|
|
45
|
+
## 数据和空间
|
|
46
|
+
|
|
47
|
+
原件不复制。复用现有正文缓存;章节及切片描述保留位置和指纹,不单独保存每个片段正文。向量以 Float32 二进制保存,每个文件最多 4096 条。1024 维向量每条约 4.096 KB:1 万条约 40.96 MB,10 万条约 409.6 MB,100 万条约 4.096 GB。描述、清单及临时文件另计。界面统一使用 1000 进位的 KB、MB、GB 等单位,按大小自动换算。
|
|
48
|
+
|
|
49
|
+
索引位于 `<知识库根目录>/索引层/`,目录不参与正文扫描、文件变更触发及资料备份。旧插件状态目录内的索引在首次加载时自动复制、逐文件校验,全部成功后清理旧索引;失败保留原件,不回退到 C 盘构建。配置和加密密钥仍在版本无关的 `<profile>/kb-state/retrieval/` 内,插件更新无需重新输入;密钥不放入知识库或安装包。已保存密钥按服务端点保留引用,密码框留空表示继续使用,页面显示密钥保存状态。原来的 `.kbmeta/index/entries.json` 兼容索引继续保留;空间页单独展示该复用缓存,全文词项没有额外持久副本。
|
|
50
|
+
|
|
51
|
+
只估算空间,不设置总量预算或切片数量停止阈值。实际磁盘写满会暂停任务,释放空间后可继续。重建期间有旧、新两份派生索引的临时峰值。旧版本在无检索读取时可回收;活动版本内部的废弃向量通过重建后清理旧版本回收,不修改原文。
|
|
52
|
+
|
|
53
|
+
## 2.2.0 底层稳定性优化
|
|
54
|
+
|
|
55
|
+
基础正文索引按高精度文件指纹复用已验证快照;同次请求复用原文与行位置。监听共享、后台调度、派生JSON分段同步发布及故障重查均由插件内部完成,不增加用户依赖或配置。原件、向量模型、分块和问答协议保持兼容。验证范围见[优化记录](EXISTING-FRAMEWORK-OPTIMIZATION.md)。
|
|
56
|
+
|
|
57
|
+
## 当前边界
|
|
58
|
+
|
|
59
|
+
- 常见可读取文本包括 Markdown、TXT、CSV/TSV、JSON/JSONL、日志、YAML、HTML 和 XML;HTML 按可读取源码检索,不运行脚本。二进制原件只搜索名称或已登记的检索文字,OCR/ASR 仍使用现有解析流程。
|
|
60
|
+
- 多语言词项使用 Unicode 处理并补充中日韩双字词;跨语言语义质量由所选向量模型决定。
|
|
61
|
+
- 词项排序与向量相似度通过单个常驻 worker 计算;资料目录按版本增量传入,词频、文档长度与倒排项复用。向量分片使用有界 LRU 缓存,每次查询检查文件指纹并继续逐向量校验 checksum。未加入外部搜索引擎或 ANN 向量数据库。
|
|
62
|
+
- 没有下载模型权重、没有额外生成整篇摘要、没有建立 sparse 或 ColBERT 索引。
|
|
63
|
+
- 资料过期、权限变化、响应异常和缺失向量分片会明确回退或拒绝旧结果。索引配置损坏需要修复配置,向量索引可通过重建恢复。
|
|
64
|
+
- 本次只完成一轮必要本地检查,模型 API 使用模拟响应验证流程;没有使用真实密钥上传资料,没有开展大规模压力测试或真实语言质量评测。
|
|
65
|
+
|
|
66
|
+
## 安装
|
|
67
|
+
|
|
68
|
+
使用交付的 `local-dsh-knowledge-base-2.1.3.tgz` 在 DSH 安装或更新插件,完全退出宿主(包括托盘)后重新打开。运行状态应显示 `2.1.3` 及交付清单中的构建号。正式版通过 GitHub Release 与更新清单提供;实际运行构建以宿主状态为准。
|
|
69
|
+
|
|
70
|
+
索引操作与连接测试、保存按钮统一排列在状态统计之前。暂停、继续、清理不会关闭设置页或清空未保存输入。
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
2026-10-22 补充:索引直接保存到知识库的 `索引层`,不再套 `向量检索`;旧子目录首次加载自动迁移。知识库设置新增默认开启的“回答后显示知识库检索过程”,工具依据实际执行记录生成回答末尾说明,涵盖全文、向量模型、交叉补充、融合、重排序及上下文读取;未检索或关闭时不追加。
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
2026-10-22 引用展示修复:`@基于知识库回答` 发送时改用短格式知识库引用(`dsh-kb:` + 本次问题身份),检索与引用校验说明放入工具定义。通过宿主 `uiConversation.userText` 和 `conversation.user.text.node` 显示原生蓝色引用标签;匹配完整旧版提示词时也显示为标签,原始聊天记录不被改写。标签保留含隐私/不含隐私区分,服务端会话、版本与权限校验不变。
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## 2.1-beta2 增补
|
|
80
|
+
|
|
81
|
+
计算缓存不代表整次结果命中:分词按内容与算法指纹复用,查询向量仅合并同时发生的相同请求。每次仍用当前资料召回,返回前复核版本和权限。没有跨请求结果缓存,没有自动省略证据正文。
|
|
82
|
+
|
|
83
|
+
问答协议 2 的引用校验默认仅返回校验、证据审查和检索说明;旧协议仍返回完整答案,调用者可显式设置 returnAnswer。原文范围保持,检索说明简写,最近详细流程可在检索设置展开。更多迁移与回退说明见 BETA2.md。
|
|
84
|
+
|
|
85
|
+
## 2.1.3 性能优化(2026-10-26)
|
|
86
|
+
|
|
87
|
+
工作台沿用 SSE 通知,连续变更合并刷新;可见页面保留 60 秒兜底,从隐藏恢复或重新获得焦点时刷新。关系进度仅在更新期间轮询,检索配置页按任务事件更新。资料 watcher 在向量检索关闭时也工作,排除索引和内部状态目录,并在通知前失效快照。
|
|
88
|
+
|
|
89
|
+
主线程按库身份、权限版本、检索配置和分块版本生成目录版本,查询显式携带允许的片段 ID。worker 对同一版本不再接收整库正文,资料变化时只传新增、修改和删除项;每次仍执行当前范围过滤、召回、来源校验和引用生成。主线程目录与 worker 词法目录分别设置 128 MiB 的估算缓存预算,向量 Buffer LRU 上限为 64 MiB;超限时回退完整计算,不截断资料。JavaScript 对象的实际堆占用可能高于缓存估算,不能将该预算视作进程内存上限。
|
|
90
|
+
|
|
91
|
+
向量构建每批按分片打开、写入和同步,所有分片同步完成并复核取消与配置版本后,才原子提交 manifest。失败的未提交 slot 可在重试时覆盖;已有活动代次保留。最近十次检索 trace 增加耗时、计数和缓存指标,不增加查询原文、资料正文、文件路径或密钥。
|
|
92
|
+
|
|
93
|
+
合成资料基准与验证范围见 [性能优化记录](PERFORMANCE.md)。本版使用 2.1.3,安装包与构建号以发布清单为准;未在正式桌面宿主安装验证。
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Security and privacy
|
|
2
|
+
|
|
3
|
+
Do not post credentials, document contents, chat histories, embeddings, personal paths or raw logs in public issues. Submit a minimal redacted reproduction and version information. For sensitive vulnerability details, contact the maintainer privately before disclosure; no dedicated security mailbox is configured here.
|
|
4
|
+
|
|
5
|
+
Opening a document does not automatically attach it to a conversation. Explicit attachments and configured cloud processing may transmit selected data to those providers. Runtime authorization and provider configuration govern that boundary.
|
|
6
|
+
|
|
7
|
+
Tests must use synthetic fixtures and isolated storage/service-discovery paths. Do not enable real model requests by default.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Third-party components
|
|
2
|
+
|
|
3
|
+
The desktop client and its shared modules use Electron, React, Vite, CodeMirror, PDF.js, KaTeX, Noto Sans SC, Lucide and other packages listed in `apps/desktop/package-lock.json`. Python's Windows embedded runtime is downloaded for packaging. Installer icon generation uses Pillow. These components retain their respective licenses; the project's MIT license does not replace them.
|
|
4
|
+
|
|
5
|
+
Keep bundled license files when distributing binaries. Dependency versions are defined by the lockfile and packaging scripts. No runtime archives or private model files are committed here.
|
package/VERSIONING.en.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Shared version naming and automatic updates
|
|
2
|
+
|
|
3
|
+
[中文](VERSIONING.md) · English
|
|
4
|
+
|
|
5
|
+
Both products share this policy while retaining independent versions: plugin 3.1.4, desktop client 2.0.3. Shared implementation: packages/kb-contracts/version-policy.js; the plugin keeps its legacy import entry.
|
|
6
|
+
|
|
7
|
+
## Names and ordering
|
|
8
|
+
|
|
9
|
+
Stable versions use x.y.z; previews use x.y-betaN with positive numeric N and no leading zeros. New rc1, x.y.z-betaN and beta0 releases are rejected. Historical x.y.z-betaN is accepted only as migration input for installed versions/old feeds.
|
|
10
|
+
|
|
11
|
+
Compare major, then minor. Within an iteration, numeric beta order precedes stable; stable patch numbers then apply. For example: 1.1-beta2 < 1.1-beta10 < 1.1.0 < 1.1.2 < 1.2-beta1. Canonical previews outrank equivalent legacy spellings. Equal versions and downgrades are not automatic updates.
|
|
12
|
+
|
|
13
|
+
## Every upgrade is automatic
|
|
14
|
+
|
|
15
|
+
All eligible updates in the selected channel are automatic: patches, minors, major upgrades, newer previews and preview-to-stable transitions. No available-version confirmation modal is required. Stable users are not automatically enrolled in previews; preview users receive the newest existing eligible candidate. Channel selection remains a preference, not per-update confirmation.
|
|
16
|
+
|
|
17
|
+
Verify product identity, version, size, SHA-256 and build ID before installation. Reject conflicting digests, corruption and wrong products. Automatic operation never bypasses authorization or integrity checks.
|
|
18
|
+
|
|
19
|
+
Do not start another installation while busy, uncertain or awaiting restart/refresh. Safely handle unsaved content and running tasks. Unsupported executors report status rather than claiming success or blindly resending writes. Automatic updating does not authorize forced loss of unsaved work.
|
|
20
|
+
|
|
21
|
+
The plugin depends on host installation capabilities. The client shares naming, ordering, decision and packaging rules and supports feed checks and verified downloads. Automatic in-place installation, activation and post-install notices remain incomplete; installation uses the installer, not a silent automatic executor.
|
|
22
|
+
|
|
23
|
+
## Post-install notes
|
|
24
|
+
|
|
25
|
+
Installation needs no update confirmation. Post-install notes are separate: patch-only upgrades remain quiet; major/minor changes, preview upgrades and preview-to-stable transitions show notes. Skipped versions produce one deduplicated summary. Unread summaries persist; dismissing them never controls installation. Fresh installs do not invent upgrade history. Keep patch entries for later summaries.
|
|
26
|
+
|
|
27
|
+
## Independent publication and completion
|
|
28
|
+
|
|
29
|
+
Plugin metadata remains at the root, with v<version> tags and release-manifest-v2.json / preview-manifest.json. The client uses apps/desktop/package.json, client-v<version> tags and a separate feed. Electron package metadata may map x.y-betaN to x.y.0-beta.N; display/build manifests and comparisons keep the canonical version.
|
|
30
|
+
|
|
31
|
+
Do not use generic GitHub latest as authority for both products. Maintain guides, evolution records and changelogs. Upload payload/checksum assets before manifests. Confirm the actually loaded version and build before clearing availability; stale requests must not overwrite verified completion.
|
|
32
|
+
|
|
33
|
+
Publication state is defined by the current release-manifest-v2.json and product Release entries. Historical release entries retain their original policy context.
|
|
34
|
+
|
|
35
|
+
更新源进展 / Update feed status:客户端已实现 Gitee、GitCode、GitHub 清单检查与校验下载;自动安装执行器尚未完成。当前安装包、版本与镜像可用性以各自 Release 和实际检查为准。
|
|
36
|
+
|
|
37
|
+
## 2.4.13: direct 2.4.3 updates and legacy service handoff (2026-11-05)
|
|
38
|
+
|
|
39
|
+
Restore the stable feed for direct updates from normal 2.4.3 installations. Identify the published legacy runtime by its exact fingerprint, release the probe connection and wait for its existing idle lifecycle to finish. Require matching process identity and a clean receipt before starting the new service. Never send legacy shutdown or terminate other clients/tasks; timeout offers recovery guidance.
|
|
40
|
+
|
|
41
|
+
The new client shows recovery help only after an installation or handoff error. A 2.4.3 pnpm failure before new code loads retains the old error UI; its existing release-notes link leads to recovery instructions. Do not claim the new popup exists in that old client. The recovery bundle can reconstruct damaged 2.4.3 code from the pinned public archive, preserving residual files and profile metadata before a transactional upgrade.
|
|
42
|
+
|
|
43
|
+
Windows evidence uses the actual public 2.4.3 archive, a live service and real pnpm. Initial legacy installation still runs through the old Host installer and cannot retroactively acquire transaction protection. Recovery is the fallback on failure. No live user profile installation or complete Electron UI automation is claimed; other legacy versions are outside this targeted verification.
|
|
44
|
+
|
|
45
|
+
## 2.4.6 migration boundary (2026-11-05)
|
|
46
|
+
|
|
47
|
+
The pristine 2.4.6 updater can block on a missing legacy receipt before downloading any new or transition payload. Its old preparation worker may also resolve unrelated Host dependencies. Publishing 2.4.13 cannot repair that already-running code. Success after a one-time local recovery does not prove zero-intervention upgrades for other users.
|
|
48
|
+
|
|
49
|
+
A separate [2.4.6 migration recovery entry](docs/LEGACY-246-BOOTSTRAP.md) verifies the public old package and transactionally installs the unchanged official 2.4.13 package. It discovers one profile or requires an explicit choice. This is one-time external recovery, not silent automatic migration. Four Windows entry/real-pnpm checks and two client-boundary checks cover dependency preservation, EPERM rollback, busy processes, profile selection and bundled Python. Mismatched historical safe transactions remain a limitation. Universal zero-intervention migration requires an independent Host recovery channel and is not claimed complete.
|
|
50
|
+
|
|
51
|
+
Release-note summaries cover only versions strictly after the previously installed version through the new target. Unclosed notes persist only for reopening that same target; a later upgrade resets the range to the newly previous installation.
|
package/VERSIONING.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# 统一版本命名与自动更新规则
|
|
2
|
+
|
|
3
|
+
[English](VERSIONING.en.md) · 简体中文
|
|
4
|
+
|
|
5
|
+
插件与客户端共用本规则,独立版本:插件 3.1.4,客户端 2.0.3。共享实现位于 packages/kb-contracts/version-policy.js;插件 src/host/versioning.js 保留兼容入口。
|
|
6
|
+
|
|
7
|
+
## 版本格式与顺序
|
|
8
|
+
|
|
9
|
+
正式版使用 x.y.z(例如 1.1.2、2.5.6);预览版使用 x.y-betaN(例如 1.1-beta1),N 为正整数,各段不允许前导零。拒绝新发布 rc1、x.y.z-betaN 或 beta0。旧 x.y.z-betaN 仅作为已安装版本和历史预览清单迁移输入接受。
|
|
10
|
+
|
|
11
|
+
先比较大版本和小版本,同一迭代中 beta 按数字比较,正式版高于所有预览版,正式版按补丁号比较。例如 1.1-beta2 < 1.1-beta10 < 1.1.0 < 1.1.2 < 1.2-beta1。规范预览号高于同序号的旧格式迁移输入。相同版本与降级不自动安装。
|
|
12
|
+
|
|
13
|
+
## 所有版本更新自动执行
|
|
14
|
+
|
|
15
|
+
在用户已选择的通道内,补丁、小版本、跨大版本、预览版递增及预览版转正式版全部采用自动更新,不弹“是否更新”的选择窗口。正式版用户不自动加入预览通道;预览用户从既有可用候选中自动选择最新版本。渠道选择是偏好设置,不是每次更新确认。
|
|
16
|
+
|
|
17
|
+
更新器下载后必须核对产品身份、版本、大小、SHA-256 与构建号,再交给对应安装器。相同版本不同摘要、损坏包或身份不符必须拒绝。不得因为自动更新而绕过授权或完整性验证。
|
|
18
|
+
|
|
19
|
+
正在安装、结果不明、需要重启或刷新时不启动另一份安装。未保存内容与运行任务必须安全处理;执行器不具备安全安装能力时仅显示原因和状态,不把操作标为成功,也不反复重发未知结果。自动更新不意味着强制关闭用户正在编辑的程序。
|
|
20
|
+
|
|
21
|
+
插件仍依赖 DSH 宿主安装接口;宿主不支持时显示能力限制。客户端已支持共享命名、比较、决策、清单检查和校验下载;自动覆盖安装、激活与安装后说明仍未完整接入,安装需运行安装器,不能宣称静默自动安装已经上线。
|
|
22
|
+
|
|
23
|
+
## 安装后的更新说明
|
|
24
|
+
|
|
25
|
+
更新前不要求用户确认。安装后说明是独立流程:仅补丁升级不弹;正式版大/小版本变化、预览版升级、预览转正式版显示说明。仅汇总本次升级前安装版本之后、目标版本及以前的变更,并显示起止版本。跳过多版显示一份去重汇总;未关闭的说明仅在同一目标版本内保留,继续升级后从新的已安装版本起算,不累计旧的未读内容;关闭说明不会控制安装。全新安装没有历史记录时不伪造升级说明。补丁条目仍登记,以供以后跨版本汇总。
|
|
26
|
+
|
|
27
|
+
## 分别发布与确认完成
|
|
28
|
+
|
|
29
|
+
插件使用根 package.json、v<版本> 标签、release-manifest-v2.json / preview-manifest.json;客户端使用 apps/desktop/package.json、client-v<版本> 标签和独立客户端清单。客户端 Electron 包内部可将 x.y-betaN 映射为 x.y.0-beta.N,外部展示、构建清单及比较仍使用规范 x.y-betaN。
|
|
30
|
+
|
|
31
|
+
禁止两端共用 GitHub 通用 latest 作为更新权威。发布前更新对应 README、演进记录和更新说明,先上传包与校验文件,再发布清单。只有实际加载版本及构建均确认匹配后才清除旧更新状态;旧请求不得覆盖已确认的新状态。
|
|
32
|
+
|
|
33
|
+
发布状态以当前 release-manifest-v2.json 和产品 Release 为准。历史发布记录保留当时规则,不作为当前策略。
|
|
34
|
+
|
|
35
|
+
更新源进展 / Update feed status:客户端已实现 Gitee、GitCode、GitHub 清单检查与校验下载;自动安装执行器尚未完成。当前安装包、版本与镜像可用性以各自 Release 和实际检查为准。
|
|
36
|
+
|
|
37
|
+
## 2.4.13:2.4.3 直接自动升级与旧服务交接(2026-11-05)
|
|
38
|
+
|
|
39
|
+
- 恢复正式自动更新入口,正常 2.4.3 可直接安装本版,不要求先手动安装过渡版本。
|
|
40
|
+
- 新版通过已发布 2.4.3 的精确运行时指纹识别旧服务;释放探测连接后等待旧服务按原有空闲机制自然退出,核对原进程出生标识和清理回执,再启动新服务。不向缺少停服协议的旧服务发送 shutdown,不终止其他连接或任务;超时显示恢复说明。
|
|
41
|
+
- 新版运行中的安装、事务恢复或交接确实报错时,才显示手动更新与恢复说明。2.4.3 若在首次 pnpm 安装阶段就失败,新代码尚未加载,仍使用旧版原错误界面;现有更新说明入口提供同一恢复文档,不能承诺旧界面具有新版弹窗。
|
|
42
|
+
- 手动恢复包可从固定摘要的公开 2.4.3 包重建受损代码目录,保留残留目录和原 profile 清单,再使用事务安装器升级;不清空知识库或解析记录。
|
|
43
|
+
|
|
44
|
+
验证使用真实公开 2.4.3 TGZ、Windows 上的运行服务与真实 pnpm,覆盖直接安装、自然退出后交接、原件保留及受损旧安装恢复;事务失败回退沿用并补验现有检查。验证范围不包含正式用户 profile 安装或完整 Electron 界面操作。旧 2.4.3 首次安装仍由宿主旧安装器执行,不能获得新版事务器在安装前的保护;异常时走恢复入口。旧更新源不能按客户端运行状态筛选,2.4.3 以外的旧版不属于本次定向保证。
|
|
45
|
+
|
|
46
|
+
## 2.4.6 升级范围补充(2026-11-05)
|
|
47
|
+
|
|
48
|
+
原版 2.4.6 的旧回执确认会在下载新包前阻断更新,旧准备器还可能重新解析其他宿主依赖。仅发布 2.4.13 或过渡包不能修复已经运行的旧代码;本机经过单次兼容恢复后成功,不代表其他原版用户均能零操作升级。
|
|
49
|
+
|
|
50
|
+
现提供独立的 [2.4.6 通用升级恢复入口](docs/LEGACY-246-BOOTSTRAP.md),校验公开原包后事务安装未改动的正式 2.4.13,支持自动发现单一 profile 或明确选择其他 profile。它是一次性外部恢复,不是静默自动升级。4 项 Windows 入口/真实 pnpm 检查和 2 项旧客户端边界检查通过,覆盖其他依赖保持、提交 EPERM 回滚、忙碌拒绝、多 profile 选择和独立 Python。历史安全事务不匹配仍可能阻止后续安装,不能宣称通用零操作自动迁移已经完成;这需要 DSH 宿主独立恢复通道。
|
package/WORKBENCH.en.md
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
> Release / 当前发布:plugin **3.0.1**, client **2.0.1**. [Release notes](docs/releases/plugin-3.0.1.en.md).
|
|
2
|
+
|
|
3
|
+
# Unified installation and usage
|
|
4
|
+
|
|
5
|
+
The 2.4.14 [existing-library framework migration](docs/LIBRARY-FRAMEWORK-MIGRATION.md#english) adds a preview and confirmation flow under version settings. It fills missing standard folders, templates and guidance while keeping document locations and custom content. Plugin installation and library migration are separate; the new entry ships in 2.4.14.
|
|
6
|
+
|
|
7
|
+
[中文](WORKBENCH.md) · English
|
|
8
|
+
|
|
9
|
+
Choose the client for a standalone file workspace, or the plugin for tools and model workflows inside DSH. They can connect to the same authorized library, with shared operations coordinated by the service.
|
|
10
|
+
|
|
11
|
+
| Task | Guide |
|
|
12
|
+
|---|---|
|
|
13
|
+
| Install the Windows client, use panes and editing | [Client usage](docs/client/WORKBENCH.en.md) |
|
|
14
|
+
| Install/configure the DSH plugin | Plugin-specific sections below |
|
|
15
|
+
| Develop or package either product | [Development](DEVELOPMENT.en.md) |
|
|
16
|
+
| Understand library sharing and offline limits | [Architecture](ARCHITECTURE.en.md) |
|
|
17
|
+
|
|
18
|
+
Release source and delivery versions are client 2.0.3 and plugin 3.1.3. Product manifests identify the matching GitHub Release assets. Client update checks and verified downloads are available; automatic in-place installation and activation remain unfinished. Removing a library registration does not delete its original files; application uninstall and document deletion are different operations.
|
|
19
|
+
|
|
20
|
+
## Plugin usage and historical instructions
|
|
21
|
+
|
|
22
|
+
### Text originals and index synchronization
|
|
23
|
+
|
|
24
|
+
PDF page rendering accepts administrator-configured Windows Python executables and absolute Unix paths to `python`, `python3`, or versioned executables such as `python3.11`. The renderer environment requires PyMuPDF.
|
|
25
|
+
|
|
26
|
+
Completed text sources and text in the original archive participate in retrieval; pending inbox material remains excluded. New quick-capture category entries contain source references. Legacy generated mirrors and import entries are retained, while retrieval uses their source records to read the current original and return its path, revision and text ranges. Independently written summaries remain searchable. After a source edit, stale ranges cannot be cited and index maintenance updates the original's JSON record.
|
|
27
|
+
|
|
28
|
+
Maintenance defaults to a 750 ms quiet period, a one-second minimum interval between starts, and a maximum coalescing wait of five seconds, excluding queue and execution time. Changes arriving during maintenance remain pending for the next pass. Startup and periodic patrols recover missed events. Unchanged vector inputs are reused; changed inputs are embedded again. Privacy classifications and index exclusions also protect associated originals. This applies to readable text; PDF/Office binaries still depend on parsing and do not gain native page/layout coordinates through this change.
|
|
29
|
+
|
|
30
|
+
The sections below retain plugin behavior and release-specific history. Their version numbers are historical, not client version numbers.
|
|
31
|
+
|
|
32
|
+
# Workbench Guide
|
|
33
|
+
|
|
34
|
+
[English](WORKBENCH.en.md) · [简体中文](WORKBENCH.md)
|
|
35
|
+
|
|
36
|
+
The current stable release for the historical sections below is **2.3.1**. For current downloads and capabilities, see the [README](README.md) and [release notes](RELEASE.en.md).
|
|
37
|
+
|
|
38
|
+
## 2.3.1 maintenance fixes
|
|
39
|
+
|
|
40
|
+
Inbox organization sends a single task sentence. OCR/ASR history updates quietly while retaining the reading position and expanded details. Conversation todos use recorded completion counts and live host execution state; stopped, unconfirmed steps no longer spin. A turn can request one final reconciliation, without marking unperformed work as complete.
|
|
41
|
+
|
|
42
|
+
## 2.3.0 development: desktop inbox and settings
|
|
43
|
+
|
|
44
|
+
The **Awaiting organization** area lists only inbox files that have not been archived. It skips `原件归档` and the legacy `_archive` directory. Previously archived originals can be excluded without backfilling processing records. In Backups, automatic and manual backup directories can be selected with **Choose folder** or entered as absolute paths. Automatic backup settings take effect after **Save settings**.
|
|
45
|
+
|
|
46
|
+
Knowledge-base tabs and host settings use neutral backgrounds, green accents, and light/dark themes. Standard forms and buttons are 36 px high. The host's **Personal Knowledge Base** settings are grouped on the left. Preferences and privacy can be edited and saved on the page; runtime details are collapsed by default.
|
|
47
|
+
|
|
48
|
+
**Exclude from index** is a switch in pending-material cards and archived-material details. It is off by default. When enabled, the material and its registered derivatives move to the **Excluded from index** section, and their full-text, vector, and relationship entries are removed. Turning it off restores the original classification and rebuilds full-text and relationship indexes. The vector service must be enabled and not manually paused. Materials can be included or excluded in batches.
|
|
49
|
+
|
|
50
|
+
Inbox originals are not indexed before archiving; the switch controls their later archive policy.
|
|
51
|
+
|
|
52
|
+
This work covers desktop UI only. The [editable Figma design](https://www.figma.com/design/9O89rqsKJ8ufkiPQGhqGTn) corresponds to a local development package and has not been publicly released.
|
|
53
|
+
|
|
54
|
+
## 2.2.0 stable: how the workbench behaves
|
|
55
|
+
|
|
56
|
+
This release improved automatic updates: eligible stable updates within a major line download, verify, and install in the background without a pre-update choice dialog. After a new build loads, the header and Settings refresh version status together. Patch updates do not show release notes; minor and major upgrades show a combined summary.
|
|
57
|
+
|
|
58
|
+
Idle-page refreshes were reduced. Material changes are coalesced, visible pages refresh every 60 seconds as a fallback, and returning from the background triggers an immediate refresh. Relationship-index completion automatically notifies the UI; retrieval settings update when tasks change. Retrieval calculations and vector shards reuse caches, and vector builds sync in batches. Search modes, privacy controls, and citation usage are unchanged; personal materials do not need migration. See the [performance record](PERFORMANCE.en.md) for conditions and verification.
|
|
59
|
+
|
|
60
|
+
Incremental relationship indexing, direct deletion, the default parsing route for all Agents, task history, and update-dialog rules are described in [BETA9](BETA9.en.md).
|
|
61
|
+
|
|
62
|
+
## Entry points and tabs
|
|
63
|
+
|
|
64
|
+
The same data is available through two Knowledge Base entry points: a **Knowledge Base** row in the left session directory, beside plugins and scheduled tasks (order value 20), which opens the full workbench; and the existing **Knowledge Base** tab at the top of a session. The left row is rendered by the host panel list; the plugin supplies its own icon, which follows the theme. Both entry points preserve back history. First-run setup can still be opened from either the tab or plugin settings.
|
|
65
|
+
|
|
66
|
+
## beta8 historical note
|
|
67
|
+
|
|
68
|
+
Local testing and usage instructions are in [BETA8](BETA8.en.md).
|
|
69
|
+
|
|
70
|
+
## beta7 historical note
|
|
71
|
+
|
|
72
|
+
The earlier workbench and relationship-graph changes are in [BETA7](BETA7.en.md).
|
|
73
|
+
|
|
74
|
+
## beta6 historical note
|
|
75
|
+
|
|
76
|
+
The early relationship-browsing implementation is documented in [BETA4](BETA4.en.md). That package was version `2.0.2-beta6`; the current installer version and digest are authoritative in the repository's `release-manifest-v2.json`.
|
|
77
|
+
|
|
78
|
+
## Early workbench implementation
|
|
79
|
+
|
|
80
|
+
The following sections record usage and boundaries established during the `2.0.1-beta3` preview and iterated through stable 2.1.0. Installation does not migrate existing material automatically. New user state is stored under `kb-state/workbench/` in the current profile. Quick captures are saved only when the user chooses to save them to the current library's `90-收件箱/快速收集/` directory.
|
|
81
|
+
|
|
82
|
+
## First-run setup and privacy
|
|
83
|
+
|
|
84
|
+
The first load shows **Release notes → Required settings → Confirm**. The setup flow uses the `knowledge-workbench-v1` identifier and stores completion in the host. Installing after skipping releases still triggers it; completing it once during a preview-to-stable upgrade does not trigger it again. The dialog lease is 45 seconds and renews every 15 seconds. Closing, pressing Esc, disconnecting, or a failed save does not mark it complete. The guide can be opened from the Knowledge Base tab or plugin settings.
|
|
85
|
+
|
|
86
|
+
Privacy display is off by default. Its setting is saved per profile and library and applies to connected clients for that profile. When enabled, private content appears in the directory, search, reader, and relationship view. When disabled, the server filters it, and the client clears old results through the event stream. Private directories and derived content retain their privacy markings.
|
|
87
|
+
|
|
88
|
+
**Allow private material in knowledge questions** is off by default and requires privacy display to be enabled first. Each question can still use a scope that excludes private material. If enabled, retrieved excerpts are sent to the currently selected model. Switching the setting off does not remove existing chat history.
|
|
89
|
+
|
|
90
|
+
## Browsing and knowledge relationships
|
|
91
|
+
|
|
92
|
+
The map provides a directory tree, paginated list, body preview, and source navigation. Path search covers displayable files. Body search covers the existing knowledge layer and excludes inbox originals, drafts, and configured exclusions. If an index is invalid, the plugin falls back to reading the disk. Long-text retrieval is capped at 8 MiB; previews are capped at 256 KiB.
|
|
93
|
+
|
|
94
|
+
The Relationships page first shows sections across displayable library materials and counts of cross-section links. A section card opens its material list; users can choose a center from common items in a section or search the full library. The center canvas shows one or two relationship levels and provides zoom, fit-to-graph, and a relationship list. Overview counts are filtered by relationship type, archived status, and navigation documents. A single center canvas is limited to 200 nodes and 500 edges; reaching a limit is reported clearly.
|
|
95
|
+
|
|
96
|
+
**Full-screen canvas** expands the relationship graph and its side list across the application window. The canvas adapts to the window's aspect ratio so nodes are not compressed into a narrow strip. Press Esc or choose **Exit full screen** to return. Switching tabs closes the full-screen view automatically.
|
|
97
|
+
|
|
98
|
+
Relationships come from Markdown/Wiki links, local HTML links, `source`, `see_also`, import sources, and manual links. Code examples are not treated as links; ambiguous duplicate names and broken links are not guessed. Manual relationships do not change source text. Link checks distinguish document-link issues, manual relationship endpoints, and new AI suggestions. The user selects a target, previews each change, and explicitly confirms it. Completion shows counts of changed items, files, and affected materials. The audit log records individual relationship changes and supports undo. Older records remain undoable but do not contain item-level details.
|
|
99
|
+
|
|
100
|
+
Back navigation between workbench tabs and materials retains material selection, search, scope, filters, sorting, pagination, and scroll position. Returning to Relationships also keeps the center node, relationship filters, and the page in link repair.
|
|
101
|
+
|
|
102
|
+
Opening a file and locating a folder use the host's verified file mapping through `sessionController`. For remote or unsupported paths, the UI offers to copy the path. Original files are not exposed through an arbitrary-path download endpoint.
|
|
103
|
+
|
|
104
|
+
## Inbox, web capture, and mobile
|
|
105
|
+
|
|
106
|
+
Text and URLs can be saved as quick captures. Web pages are checked for duplicates using both URL and body/excerpt. In the DSH desktop Inbox, selecting or dropping files moves the originals into `90-收件箱/`; the Inbox reads that directory directly, without separate capture records or the 8 MiB upload cap. A successful move removes the file from its old location. Name collisions receive a numbered suffix. Cross-volume copies are verified before removing the source, and failures preserve the original. Available disk space, filesystem limits, and permissions still apply. An ordinary browser that cannot provide a local file path reports this without moving the file. The mobile quick-capture page retains its 8 MiB upload limit.
|
|
107
|
+
|
|
108
|
+
Choose a model that supports High, then use one-click organization to open a knowledge Agent session. The request is simply “整理并归档收件箱内的文件。” The Agent and plugin provide the operating rules. If model selection fails, the task is not sent. An uncertain send is reported without automatic retry.
|
|
109
|
+
|
|
110
|
+
Captures can be organized into existing knowledge, project, person, material, or profile types while keeping the library original. Binary materials use the configured OCR/ASR service. Failures can be cancelled or retried in the task center. Automatic parsing is off by default and runs only after first-run setup is complete.
|
|
111
|
+
|
|
112
|
+
In-app shortcut: Ctrl/Cmd + Shift + K while a knowledge-base page is open. The plugin does not register a global operating-system shortcut.
|
|
113
|
+
|
|
114
|
+
The browser extension guide is under **Knowledge Base → Inbox → Capture web pages with the browser extension**. It covers installation, connection, processing after saving, and common questions.
|
|
115
|
+
|
|
116
|
+
The desktop plugin, web quick-capture entry point, and browser extension use the same knowledge-base icon. The extension toolbar icon also indicates capture state.
|
|
117
|
+
|
|
118
|
+
The extension sends selected text or extractable page text from the current web page to the paired knowledge base's Inbox and preserves its title and source URL. With no selection, it tries the `article` or `main` area; if extraction fails, it saves only the title and URL. It does not download page images, attachments, or PDFs; crawl the site; or collect browsing history in the background.
|
|
119
|
+
|
|
120
|
+
The capture list and details can move an original capture to Trash even if its knowledge note has already been deleted. After confirmation, it can be restored for 30 days. Previews, lists, and details scroll normally; content obscured by the bottom composer remains reachable by scrolling further.
|
|
121
|
+
|
|
122
|
+
Browser-extension ZIP: [Gitee](https://gitee.com/KingsleyAsher/Personal-Knowledge-Base/raw/main/dist/knowledge-base-browser-extension.zip) · [GitCode](https://api.gitcode.com/api/v5/repos/KingsleyAsher/Personal-Knowledge-Base/raw/dist/knowledge-base-browser-extension.zip?ref=main) · [GitHub](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/download/v2.2.0/knowledge-base-browser-extension.zip). Mirrors can lag behind. If a file is unavailable, try another source. Extract the ZIP and load the folder that directly contains `manifest.json`.
|
|
123
|
+
|
|
124
|
+
First use:
|
|
125
|
+
|
|
126
|
+
1. Get `browser-extension/` from the plugin package or extracted source repository. In Chrome at `chrome://extensions` or Edge at `edge://extensions`, enable Developer mode, choose **Load unpacked**, and select the folder that directly contains `manifest.json`.
|
|
127
|
+
2. In the browser toolbar, open **Personal Knowledge Base · Quick Capture → Connection settings** and copy the complete `chrome-extension://<extension ID>` origin. Chrome and Edge use the same origin format.
|
|
128
|
+
3. In the client Inbox, expand **First Use: Install and Connect**, paste the origin into **Extension origin**, and generate a pairing code. The code is valid for five minutes and can be used once.
|
|
129
|
+
4. Return to extension settings. For DSH desktop, keep **Local DSH desktop (automatic connection)** and enter the pairing code; allow the extension to access local DSH. A changed desktop-window port does not affect the connection or require another pairing. For a Web profile, choose **Web profile / Custom address** and enter an HTTP/HTTPS address the browser can actually reach. Do not enter `dsh-app://`, a model API, OCR address, or knowledge-base folder. Across devices, use the host address reachable from the browser. If no HTTP/HTTPS service is available, paste captures into the Inbox instead.
|
|
130
|
+
5. Keep DSH running. On an ordinary web page, select text and right-click **Save to Personal Knowledge Base**, or click **Save current page** in the extension. With no selection, the extension tries to save page text. After right-click saving, a success or failure message appears in the page; the extension icon also shows status. Click the icon for the latest right-click result, then choose **Refresh inbox and view test capture** in the client.
|
|
131
|
+
|
|
132
|
+
For everyday use, right-click a page body or tab to find **Save to Personal Knowledge Base**. With selected text it saves an excerpt; with no selection it tries to save the body. In **Knowledge Base → Inbox**, choose **Preview original**, verify it, then **Organize as knowledge note**. You can also select several entries, choose a section, add tags, and choose **Organize selected**. Originals remain in `90-收件箱/快速收集/`. PDFs, images, and attachments must be downloaded and uploaded through the Inbox. Protected pages such as browser settings and extension stores cannot be read.
|
|
133
|
+
|
|
134
|
+
Identical body text or excerpts from the same page are deduplicated. Different bodies or different selections are saved separately and do not overwrite prior entries. If an entry is missing, confirm that the active library matches the one paired with the extension, set **Processing status** to **All**, and refresh. If body extraction fails, select text and try again. Browser settings and extension-store pages remain protected.
|
|
135
|
+
|
|
136
|
+
Pairing authorizes submission of web content only. It does not grant permission to browse, read, configure, or switch the knowledge base. Extension credentials are stored in local extension storage. In **Common questions and connected-extension management** in the client guide, choose **View paired extensions** to revoke access. Removing the connection in extension settings only clears local credentials. Reinstalling the extension, revoking access, or switching libraries requires a new pairing.
|
|
137
|
+
|
|
138
|
+
On mobile, an existing DSH web connection supports typing, pasting, and uploading. The Inbox offers a separate quick-capture page at `/kb-core/collect`, which can be installed as a web app in supported browsers and registers a system share target through the manifest. Shared content first opens a confirmation page; it is saved only after explicit confirmation. Unsupported environments retain paste/upload. Offline text drafts stay in the local browser and are submitted only after the user reconnects. This release adds no public service, standalone native application, or file-sync engine. The mobile system-share menu still needs verification after installation on an actual device.
|
|
139
|
+
|
|
140
|
+
## Reading and review
|
|
141
|
+
|
|
142
|
+
Markdown and text files use a safe read-only view with link navigation. PDFs use bundled PDF.js 5.6.205 (Apache-2.0), including CMaps, standard fonts, and decoding dependencies. Pages and text layers render locally; page numbers, text highlights, and region screenshot excerpts are supported. Media files are limited to 32 MiB; larger files use the system reader. Parsed OCR text can be opened through its source relationship.
|
|
143
|
+
|
|
144
|
+
Reading progress, excerpts, annotations, and important markers are saved separately. If source text changes, the excerpt asks the user to verify it. Excerpts can produce sourced notes or Markdown exports. Review includes items awaiting organization, recent files, important excerpts, and 1/3/7/30-day follow-ups. Reminders are off by default and appear only within the workbench while the host is running.
|
|
145
|
+
|
|
146
|
+
The Workflows page can add templates for **Organize this week's inbox**, **Weekly knowledge review**, and **Project-material summary**. Templates are initially read-only and their results are not filed automatically. They use the existing new-session execution path.
|
|
147
|
+
|
|
148
|
+
When adding or editing a custom workflow, users can choose an **Execution model** and **Reasoning effort** and save them as defaults. The model list comes from services configured in the current host; reasoning choices follow the selected model. Switching models clears the old reasoning choice. **Use host default model** remains available. **Run now** opens run options for a one-time model, effort, and parameter override without changing saved defaults. After confirmation, the client creates a new session and completes model selection before sending the task. A selection failure sends no task. Background workflow steps use the workflow's saved model settings too.
|
|
149
|
+
|
|
150
|
+
## `@` Ask with the knowledge base
|
|
151
|
+
|
|
152
|
+
The native `inputTriggers.registerSource` API registers an `@` group. Choosing it inserts a blue knowledge-base tag. Users select the full library or a section and whether private content is included. Sending a question calls the unified retrieval service with this question's identity, returns full-text and vector results with document-versioned source positions, and does not switch the active model or create a second model service.
|
|
153
|
+
|
|
154
|
+
`kb_validate_citations` checks source IDs, versions, and current permissions. At the end of a response, the client checks whether knowledge-base answers retain valid citations. A missing citation, invalid citation, or skipped validation can trigger at most one targeted correction. An initial draft may already have streamed to the screen; citation checking does not prove that every statement is true. The new protocol does not resend the full answer by default; the older protocol remains compatible. See the [release notes](RELEASE.en.md) for real-answer and automated-test boundaries.
|
|
155
|
+
|
|
156
|
+
## Full backups, export, and restore
|
|
157
|
+
|
|
158
|
+
Automatic full backups are off by default. No background backup runs until the setting is enabled and first-run setup is complete. Manual backup and export can run once without enabling the schedule. The destination must be outside the library and must not overlap the plugin state directory.
|
|
159
|
+
|
|
160
|
+
Backups use a directory package that can be checked file by file: `kb-backup-time-id/manifest.json` and `files/`. It includes originals, body text, user data, and workflow definitions in the current library, but not API keys. Private materials are included by default, with an option to exclude them. For excluded external sources, only references remain. Automatic retention keeps the latest seven daily and four weekly full backups. Manual and exported directories are not automatically deleted.
|
|
161
|
+
|
|
162
|
+
Full restore requires a new, nonexistent directory, which the user connects only after validation. Restored reading and relationship data are used after connection. Workflow definitions are stored in `.kbmeta/workbench-flows.json`; choose **Import workflows from this library backup** on the Workflows page to restore them. Existing workflow IDs are skipped, not overwritten. Single-file restore first compares the content and digest, saves a protection copy of the current file, then restores. Restore does not change the active binding automatically.
|
|
163
|
+
|
|
164
|
+
Exports include visible source text and attachment directories, a directory CSV, relationships and excerpts as JSON, and excerpts as Markdown. Index snapshots and pre-write protection copies are existing maintenance mechanisms and are described separately from the full-backup switch.
|
|
165
|
+
|
|
166
|
+
## Verification and installation boundaries
|
|
167
|
+
|
|
168
|
+
Automation uses fictional libraries and simulated host interfaces. It does not read the production knowledge base or call real paid models. Existing OCR/ASR settings in the local host are reused; this release did not download models again or run real inference.
|
|
169
|
+
|
|
170
|
+
Install the stable `.tgz` through the DSH plugin manager. If the host requests a restart, fully exit DSH, including the tray process, and reopen it. Verify the version and build ID in the status page. Keep the pre-install package and configuration backup for rollback. Uninstall code does not actively delete new workbench state.
|
|
171
|
+
|
|
172
|
+
## Stable and preview updates
|
|
173
|
+
|
|
174
|
+
Stable and preview manifests are maintained separately. At the time documented here, stable was `2.2.0` and no preview was available. Stable minor and patch releases within the same major line download, verify, and install in the background without a pre-update prompt. Major-version changes, preview updates, and channel switches still require manual selection. Patch updates do not show release notes; minor and major upgrades combine unread entries into one notice, which is not repeated after dismissal. Automatic installation requires the host's client plugin-install interface; if unavailable, update through the host plugin manager. After installation, version state refreshes together. If the host requests a restart or the UI has not loaded the new version, the version entry explains what to do.
|
|
175
|
+
|
|
176
|
+
## Regional update sources
|
|
177
|
+
|
|
178
|
+
Stable 2.1.0 and preview 2.1-beta4 included Gitee, GitCode, and GitHub. The three sources check stable and preview manifests concurrently, and the updater chooses the newest version available. A digest mismatch for the same version blocks installation. It prefers regional sources and changes source after a download or package-verification failure. GitCode uses its official file API; Gitee uses a retrievable raw-file link instead of a temporary signed URL. For the 2.1.0 release, the Gitee mirror workflow succeeded and the GitCode mirror workflow failed; use actual platform status for current availability. If all sources fail, an error is reported instead of claiming the package is current. Older versions must first install an updater that supports the new sources.
|
|
179
|
+
|
|
180
|
+
In-client download entry: **Knowledge Base → Inbox → Browser Extension Guide → First Use: Install and Connect**, then choose **Download browser extension**. The client selects and validates a download from Gitee, GitCode, or GitHub and switches source after a failure. If every source fails, it shows the reason and fallback links.
|
|
181
|
+
|
|
182
|
+
The current release recorded by this historical guide is stable 2.2.0, with no preview available. Older preview packages have been withdrawn; install the current stable release.
|
|
183
|
+
|
|
184
|
+
## 2.3.0 development: inbox workflow
|
|
185
|
+
|
|
186
|
+
Files added to the inbox appear in **Awaiting organization**. Each card can be excluded from indexing, or users can select the current page and change several at once. Excluded originals, parsed files, and archived derivatives move into the **Excluded from index** section. **Organize now** remains available, but those materials are not added to full-text, vector, or relationship indexes.
|
|
187
|
+
|
|
188
|
+
In material details, choose **Remove exclusion and re-archive** to restore the saved classification and rebuild full-text and relationship links. An enabled vector index is rebuilt in the background. Old vector generations need cleanup and rebuild; full-text retrieval remains available during this work. If the archive destination contains different content, the operation stops and preserves the existing file.
|
|
189
|
+
|
|
190
|
+
Open the plugin's Inbox tab and drag in files or select several; they are saved immediately. Each file can be up to 8 MiB. The list below shows current inbox files, including files placed there manually through a file manager. Choose **Refresh files** to check again.
|
|
191
|
+
|
|
192
|
+
First choose a model in **Model for organization**, then click **Organize now**. The plugin remembers the last model per knowledge base and starts a new knowledge-base Agent session using that model and High reasoning effort. Progress, results, and stop controls are in the session. Organization cannot start if no model is selected or if the model does not support High. The Workflow page also has a permanent **Organize and archive inbox** built-in workflow that allows model selection at run time and cannot be deleted. Text, web, and legacy capture records are in a collapsed auxiliary entry.
|
|
193
|
+
|
|
194
|
+
## 2.4.13: direct 2.4.3 updates and legacy service handoff (2026-11-05)
|
|
195
|
+
|
|
196
|
+
Restore the stable feed for direct updates from normal 2.4.3 installations. Identify the published legacy runtime by its exact fingerprint, release the probe connection and wait for its existing idle lifecycle to finish. Require matching process identity and a clean receipt before starting the new service. Never send legacy shutdown or terminate other clients/tasks; timeout offers recovery guidance.
|
|
197
|
+
|
|
198
|
+
The new client shows recovery help only after an installation or handoff error. A 2.4.3 pnpm failure before new code loads retains the old error UI; its existing release-notes link leads to recovery instructions. Do not claim the new popup exists in that old client. The recovery bundle can reconstruct damaged 2.4.3 code from the pinned public archive, preserving residual files and profile metadata before a transactional upgrade.
|
|
199
|
+
|
|
200
|
+
Windows evidence uses the actual public 2.4.3 archive, a live service and real pnpm. Initial legacy installation still runs through the old Host installer and cannot retroactively acquire transaction protection. Recovery is the fallback on failure. No live user profile installation or complete Electron UI automation is claimed; other legacy versions are outside this targeted verification.
|
|
201
|
+
|