@kingsleyasher/dsh-knowledge-base 3.1.5 → 3.1.7
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/PROJECT-RECORD.en.md +798 -782
- package/PROJECT-RECORD.md +809 -793
- package/README.md +107 -109
- package/README.zh-CN.md +7 -7
- package/RELEASE.en.md +21 -0
- package/RELEASE.md +21 -0
- package/VERSIONING.en.md +1 -1
- package/VERSIONING.md +1 -1
- package/cordis.patch.yml +88 -88
- package/docs/client/PROJECT-RECORD.en.md +6 -2
- package/docs/client/PROJECT-RECORD.md +6 -2
- package/package.json +76 -78
- package/packages/kb-core/src/kbcore.js +68 -29
- package/packages/kb-core/src/workbench.js +31 -3
- package/packages/kb-service/desktop-files.js +23 -5
- package/packages/kb-service/host-adapter.js +6 -5
- package/packages/kb-service/host-request-auth.js +31 -0
- package/packages/kb-service/host-updates.js +21 -91
- package/packages/kb-service/legacy-ports.js +5 -1
- package/packages/kb-service/safe-update.js +5 -5
- package/packages/kb-service/service.js +8 -2
- package/packages/kb-service/tool-definitions.json +5 -0
- package/packages/kb-service/tool-router.js +22 -6
- package/src/client/index.js +4982 -4975
- package/src/host/index.js +33 -18
- package/src/host/updates.js +5 -5
- package/tools/kb-transactional-update.py +11 -19
- package/NPM-EDITION.md +0 -12
package/README.md
CHANGED
|
@@ -1,109 +1,107 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
> **
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
> **
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
- **
|
|
33
|
-
- **
|
|
34
|
-
- **
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
|
61
|
-
|
|
62
|
-
|
|
|
63
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
The task plan expands upward above the composer: its arrow now points up when collapsed and down when expanded.
|
|
1
|
+
# Personal Knowledge Base · Plugin and Desktop Client
|
|
2
|
+
|
|
3
|
+
> **Plugin 3.1.7** fixes a JSON validation error when `kb_search` finds matches in DSH. Desktop client 2.0.3 is available as an unsigned installer.
|
|
4
|
+
|
|
5
|
+
> **Update recovery patch:** fixes abandoned prepared receipts. An already blocked older updater needs the [one-time safe recovery](docs/UPDATE-RECOVERY.en.md) before a normal update.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
> **Plugin 3.1.7 / client 2.0.3.** Independent/shared-library operation, scoped updates and release/visual review fixes. [Release notes](RELEASE.en.md).
|
|
10
|
+
|
|
11
|
+
> **2.4.6 updater limitation:** a pristine installation stuck on a pending receipt cannot self-repair from the feed alone. The [general recovery entry](docs/LEGACY-246-BOOTSTRAP.md) is a one-time external migration, not a zero-intervention update.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
> **2.4.3 can update directly.** Use [manual recovery instructions](docs/UPDATE-RECOVERY.md) only after an upgrade error; no preliminary transition package is required for the normal path.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
[English](README.md) · [简体中文](README.zh-CN.md)
|
|
18
|
+
|
|
19
|
+
**Personal-Knowledge-Base is the single maintained repository for the DSH knowledge-base plugin and standalone desktop client.** They share a core, contracts and library service while retaining independent installations and versions.
|
|
20
|
+
|
|
21
|
+
| Product | Published version | Direct download | Release notes |
|
|
22
|
+
|---|---|---|---|
|
|
23
|
+
| **Desktop client · Windows x64** | **2.0.3** | **[⬇ Download client installer (EXE)](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/download/client-v2.0.3/KnowledgeWorkbench-2.0.3-Setup.exe)** | [Client Release](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/client-v2.0.3) |
|
|
24
|
+
| **DSH knowledge-base plugin** | **3.1.7** | **[⬇ Download plugin (TGZ)](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/download/v3.1.7/local-dsh-knowledge-base-3.1.7.tgz)** | [Plugin Release](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/v3.1.7) |
|
|
25
|
+
|
|
26
|
+
Release entries: [client 2.0.3](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/client-v2.0.3) · [plugin 3.1.7](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/v3.1.7). Choose the correct installer/TGZ and verify its product-specific manifest and digest.
|
|
27
|
+
|
|
28
|
+
## One library, two entry points
|
|
29
|
+
|
|
30
|
+
- **Client:** full file tree and path navigation, up to four resizable panes, draggable tabs, Markdown/text/code editing, vertically scrolling selectable PDF, image zoom/pan and limited DOCX/XLSX/CSV editing.
|
|
31
|
+
- **Plugin:** DSH import, retrieval, OCR/ASR, organization workflows, relationships, indexing, backup and existing tool/UI entry points.
|
|
32
|
+
- **Shared modules:** text/vector indexing, exclusions, inbox, relationships, reading/annotations and backup. Authorized shared services coordinate writes; do not manually duplicate index databases.
|
|
33
|
+
- **Connected workspace:** the DSH sidebar provides sessions, Agent presets, model/reasoning controls and streamed replies. Users explicitly attach files or selected text. Optional memory integration depends on its corresponding host service.
|
|
34
|
+
- **Independent operation:** local client file/library functions remain available independently. The plugin retains its DSH entry points. Chat, model organization and host-provided global-memory writes require their services to be online.
|
|
35
|
+
|
|
36
|
+
## Download and installation
|
|
37
|
+
|
|
38
|
+
### Desktop client 2.0.3 · Windows x64
|
|
39
|
+
|
|
40
|
+
**[Download KnowledgeWorkbench-2.0.3-Setup.exe](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/download/client-v2.0.3/KnowledgeWorkbench-2.0.3-Setup.exe)** · [Release notes and assets](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/client-v2.0.3) · [SHA-256 checksums](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/download/client-v2.0.3/client-SHA256SUMS)
|
|
41
|
+
|
|
42
|
+
Run the EXE to install. The bundled-runtime package includes its runtime. This is the standalone client installer, not a DSH plugin bundle.
|
|
43
|
+
|
|
44
|
+
### DSH plugin 3.1.7
|
|
45
|
+
|
|
46
|
+
**[Download local-dsh-knowledge-base-3.1.7.tgz](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/download/v3.1.7/local-dsh-knowledge-base-3.1.7.tgz)** · [Release notes and assets](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/v3.1.7)
|
|
47
|
+
|
|
48
|
+
Install the TGZ through DSH plugin management. GitHub highlights only one Latest release, but both products have independent releases. Use the product links above or browse [all Releases](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases).
|
|
49
|
+
|
|
50
|
+
Source, issues and future releases are maintained here. In [Releases](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases), choose the correct product: Windows Setup.exe for the client, TGZ for the plugin.
|
|
51
|
+
|
|
52
|
+
Published plugin 3.1.7: [Release](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/v3.1.7) · [TGZ](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/download/v3.1.7/local-dsh-knowledge-base-3.1.7.tgz). See [plugin usage](WORKBENCH.en.md) and [mirror information](MIRROR-RELEASES.md) for extensions and regional sources. Mirror availability can vary.
|
|
53
|
+
|
|
54
|
+
The existing client installer retains its paper-green interface and animations, requires an empty application directory and preserves personal data on uninstall. Client online checks and verified downloads are implemented; automatic in-place installation and activation remain unfinished. The plugin keeps its existing update manifests and installation flow.
|
|
55
|
+
|
|
56
|
+
## Documentation
|
|
57
|
+
|
|
58
|
+
| Topic | English | 中文 |
|
|
59
|
+
|---|---|---|
|
|
60
|
+
| Unified design and evolution | [Project record](PROJECT-RECORD.en.md) | [设计与演进](PROJECT-RECORD.md) |
|
|
61
|
+
| Installation and usage | [Workbench](WORKBENCH.en.md) | [使用说明](WORKBENCH.md) |
|
|
62
|
+
| Shared architecture | [Architecture](ARCHITECTURE.en.md) | [架构](ARCHITECTURE.md) |
|
|
63
|
+
| Source development | [Development](DEVELOPMENT.en.md) | [开发与构建](DEVELOPMENT.md) |
|
|
64
|
+
| Release policy | [Versioning](VERSIONING.en.md) | [版本规则](VERSIONING.md) |
|
|
65
|
+
| Changes | [Release notes](RELEASE.en.md) | [版本说明](RELEASE.md) |
|
|
66
|
+
| Client details | [Client docs](docs/client/README.md) | [客户端文档](docs/client/README.zh-CN.md) |
|
|
67
|
+
| Retrieval, parsing and performance | [Retrieval](RETRIEVAL.en.md) · [Parsing](PARSING-PREVIEW.en.md) · [Performance](PERFORMANCE.en.md) | [检索](RETRIEVAL.md) · [解析](PARSING-PREVIEW.md) · [性能](PERFORMANCE.md) |
|
|
68
|
+
|
|
69
|
+
[Product showcase](https://kingsleyasher.github.io/Personal-Knowledge-Base/) · [Repository structure](MONOREPO.md) · [Privacy](PRIVACY.md) · [Security](SECURITY.md) · [Contributing](CONTRIBUTING.md)
|
|
70
|
+
|
|
71
|
+
## Source layout
|
|
72
|
+
|
|
73
|
+
`apps/desktop` contains the client. `src` retains plugin adapters and UI paths for compatibility. `packages` owns the shared core, contracts and service. `presets` and `skills` contain DSH configuration rules; `installer-design-b` owns installer design/implementation; `website` is the showcase; `docs/client` contains client guides; `tools` and `tests` provide build and verification utilities.
|
|
74
|
+
|
|
75
|
+
## Privacy, evidence and licensing
|
|
76
|
+
|
|
77
|
+
No personal libraries, conversations, credentials, index databases, runtime configurations, logs or local test outputs belong in Git. Opening a file does not automatically send it to a model; explicit attachments and cloud tasks follow provider configuration and authorization.
|
|
78
|
+
|
|
79
|
+
The merged client passed a production build and focused checks. See the project record for historical evidence and limits. Static checks and synthetic services do not establish live-model performance, cloud availability, full Office fidelity or every DSH-version compatibility.
|
|
80
|
+
|
|
81
|
+
[MIT licensed](LICENSE). Third-party components retain their licenses; see [notices](THIRD-PARTY-NOTICES.md).
|
|
82
|
+
|
|
83
|
+
Update policy: every eligible version in the selected channel updates automatically, including majors and previews. The client online executor remains unfinished; see [version policy](VERSIONING.en.md).
|
|
84
|
+
|
|
85
|
+
## 2.4.13: direct 2.4.3 updates and legacy service handoff (2026-11-05)
|
|
86
|
+
|
|
87
|
+
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.
|
|
88
|
+
|
|
89
|
+
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.
|
|
90
|
+
|
|
91
|
+
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.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Local update 2.5.1
|
|
96
|
+
|
|
97
|
+
Flow cards now keep text, execution settings, and actions in separate sections. Save the model and reasoning effort in the card; Run uses that configuration directly. Only missing required task parameters need an extra form.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### 2.5.1 task plan follow-up (2026-11-07)
|
|
101
|
+
|
|
102
|
+
Task plan disclosure and list symbols now use vectors/CSS rather than font-dependent characters. During long knowledge tasks, bounded pre-step checkpoints request truthful todo_write progress updates instead of waiting until the final response. No step is automatically marked complete from tool count or elapsed time. Install the local update package and fully restart DSH to load host changes; real long-task behavior remains an installed-host verification step.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Local update 2.5.2 (2026-11-07)
|
|
106
|
+
|
|
107
|
+
The task plan expands upward above the composer: its arrow now points up when collapsed and down when expanded.
|
package/README.zh-CN.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# 个人知识库 · 插件与客户端
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> **当前版本**为插件 3.1.7 和客户端 2.0.3。插件修复 DSH 中 `kb_search` 命中时的 JSON 校验错误。客户端安装器未签名,需空目录安装。
|
|
4
4
|
|
|
5
5
|
> **自动更新补丁:** 修复历史准备事务阻塞;已被旧更新器阻塞时,先按[一次性安全恢复说明](docs/UPDATE-RECOVERY.md)处理,再正常更新。
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
> **插件 3.1.
|
|
9
|
+
> **插件 3.1.7 / 客户端 2.0.3**。汇总独立/共库使用、局部更新及发布与界面审查修复。[更新说明](RELEASE.md)。下方分别提供两端正式版本号的发布附件。
|
|
10
10
|
|
|
11
11
|
> **2.4.6 旧更新器限制:** 已卡在待确认的原版安装不能只靠新更新源自愈;[通用恢复入口](docs/LEGACY-246-BOOTSTRAP.md) 是一次性外部恢复,不等同于零操作自动迁移。
|
|
12
12
|
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
| 产品 | 已发布版本 | 直接下载 | 发布说明 |
|
|
22
22
|
|---|---|---|---|
|
|
23
23
|
| **知识库客户端 · Windows x64** | **2.0.3** | **[⬇ 下载客户端安装包(EXE)](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/download/client-v2.0.3/KnowledgeWorkbench-2.0.3-Setup.exe)** | [客户端 Release](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/client-v2.0.3) |
|
|
24
|
-
| **DSH 知识库插件** | **3.1.
|
|
24
|
+
| **DSH 知识库插件** | **3.1.7** | **[⬇ 下载插件包(TGZ)](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/download/v3.1.7/local-dsh-knowledge-base-3.1.7.tgz)** | [插件 Release](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/v3.1.7) |
|
|
25
25
|
|
|
26
|
-
当前发布入口:[客户端 2.0.3](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/client-v2.0.3) · [插件 3.1.
|
|
26
|
+
当前发布入口:[客户端 2.0.3](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/client-v2.0.3) · [插件 3.1.7](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/v3.1.7)。请按产品选择 Windows 安装包或 TGZ,摘要与构建号以各自清单为准。
|
|
27
27
|
|
|
28
28
|
## 一个知识库,两个入口
|
|
29
29
|
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
|
|
42
42
|
下载后运行 EXE 安装。客户端安装包包含运行时的,运行环境随包提供。该文件是独立客户端安装器,不是 DSH 插件。
|
|
43
43
|
|
|
44
|
-
### 插件 3.1.
|
|
44
|
+
### 插件 3.1.7 · DSH
|
|
45
45
|
|
|
46
|
-
**[下载 local-dsh-knowledge-base-3.1.
|
|
46
|
+
**[下载 local-dsh-knowledge-base-3.1.7.tgz](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/download/v3.1.7/local-dsh-knowledge-base-3.1.7.tgz)** · [版本说明与全部附件](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/v3.1.7)
|
|
47
47
|
|
|
48
48
|
通过 DSH 插件管理器安装 TGZ。GitHub 首页只突出显示一个 Latest,但两个产品都有独立 Release;请使用上面的对应入口或查看 [全部 Releases](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases)。
|
|
49
49
|
|
|
50
50
|
所有后续源码、问题反馈和发布统一放在本仓库。访问 [Releases](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases),按产品名称选择文件:客户端使用 Windows Setup.exe,插件使用 TGZ。不要将插件包当作客户端安装程序。
|
|
51
51
|
|
|
52
|
-
已发布插件 3.1.
|
|
52
|
+
已发布插件 3.1.7:[GitHub Release](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/v3.1.7) · [直接安装包](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/download/v3.1.7/local-dsh-knowledge-base-3.1.7.tgz)。浏览器扩展及地区镜像见 [插件使用说明](WORKBENCH.md) 和 [镜像说明](MIRROR-RELEASES.md)。镜像可能延迟,以实际校验结果为准。
|
|
53
53
|
|
|
54
54
|
客户端现有安装器保留纸页绿界面与动画,要求空的应用安装目录;卸载保留个人资料与设置。客户端已接入在线检查与校验下载;自动覆盖安装和自动激活尚未完成。插件继续使用既有插件更新清单与安装流程。
|
|
55
55
|
|
package/RELEASE.en.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## 2026-12-03 · Revised plugin 3.1.7 build · Index rebuild confirmation
|
|
2
|
+
|
|
3
|
+
When the index loses many entries, `kb_check` returns the diff and a confirmation token. After reviewing the changes, pass `confirmDrop` to rebuild the index and resume background maintenance. The rebuild preserves a snapshot of the old index. With `recover: true`, recovery records are cleared after the index is written. The inbox retains completed archive receipts and reports pending confirmation.
|
|
4
|
+
|
|
5
|
+
## 2026-12-03 · Plugin 3.1.7 · Search results and Host authentication
|
|
6
|
+
|
|
7
|
+
Fixes `value is not lossless JSON` when `kb_search` finds matches in DSH. Windows regression tests used Markdown files to verify lossless JSON round trips for both matching and empty results.
|
|
8
|
+
|
|
9
|
+
Knowledge-base settings and events now require DSH Host authentication before data reads, writes, handoff status responses, or event subscriptions.
|
|
10
|
+
|
|
11
|
+
## 2026-11-27 · Plugin 3.1.6 / client 2.0.3 · Local file tree build
|
|
12
|
+
|
|
13
|
+
- The desktop client reuses loaded folders, original-file categories and pages within the current session. Loaded rows remain available when reopening branches, switching views or reopening the sidebar.
|
|
14
|
+
- File changes refresh affected branches and keep rows visible while loading. Library, sort, search and permission changes discard the relevant cache and outdated responses.
|
|
15
|
+
- The paired shared service bounds concurrent directory metadata reads, refreshes file properties after external edits and reuses the private path set for original-file categories. The installer and paired TGZ come from the same source. The filenames identify the local builds.
|
|
16
|
+
|
|
17
|
+
## 2026-11-26 · Plugin 3.1.6 · Inbox receipts and library checks
|
|
18
|
+
|
|
19
|
+
- `kb_inbox complete` returns the saved completion and reports index synchronization in `indexSync`.
|
|
20
|
+
- `kb_check` reports scan differences and the reason for a blocked index replacement. The previous index and recovery queue are preserved. Host errors include `execution` and `quality`.
|
|
21
|
+
|
|
1
22
|
## 2026-11-16 · Plugin 3.1.3 / client 2.0.3 · File tree and patrol performance
|
|
2
23
|
|
|
3
24
|
Every desktop request re-read and validated the roughly 3.9 MB file catalog, and every directory listing re-read the exclusion policy, resolved each path segment through realpath and probed access twice per entry; a real 687-entry directory took 376 ms on first read. Index patrol also rescanned every original on a fixed five-minute timer, holding the single service queue for about 1.9 seconds and making the tree appear to reload after the client had been open for a while.
|
package/RELEASE.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## 2026-12-03 · 插件 3.1.7 修订构建 · 索引重建确认
|
|
2
|
+
|
|
3
|
+
当索引条目大幅减少时,`kb_check` 会返回差异和确认令牌。核对后可提交 `confirmDrop` 重建索引并恢复后台维护。旧索引会保留快照。使用 `recover: true` 时,恢复记录在写入成功后清理。收件箱会保留已完成的归档回执,并提示索引待确认。
|
|
4
|
+
|
|
5
|
+
## 2026-12-03 · 插件 3.1.7 · 搜索结果与宿主身份校验
|
|
6
|
+
|
|
7
|
+
修复 DSH 上 `kb_search` 有结果时返回 `value is not lossless JSON` 的问题。Windows 上使用实际 Markdown 验证命中和零命中均可无损往返 JSON。
|
|
8
|
+
|
|
9
|
+
知识库设置和事件接口现在先通过 DSH 宿主身份校验,再读取或修改数据、查询交接状态或建立事件订阅。
|
|
10
|
+
|
|
11
|
+
## 2026-11-27 · 插件 3.1.6 / 客户端 2.0.3 · 文件树优化本地构建
|
|
12
|
+
|
|
13
|
+
- 桌面客户端在会话内复用已加载的目录、原件分类和分页。折叠重开、切换浏览方式和收起侧栏后再打开时,可继续使用已加载内容。
|
|
14
|
+
- 文件变动按分支刷新,刷新期间保留列表。切库、排序、搜索或权限改变时,丢弃相关缓存和过期结果。
|
|
15
|
+
- 配套共享服务限制目录元数据并发读取,及时刷新外部编辑后的文件属性,并复用原件分类的隐私路径集合。安装包与配套 TGZ 使用同一份源码构建,按文件名中的构建号识别本地交付。
|
|
16
|
+
|
|
17
|
+
## 2026-11-26 · 插件 3.1.6 · 收件箱完成回执与知识库自检
|
|
18
|
+
|
|
19
|
+
- `kb_inbox complete` 在归档登记成功后返回完成记录,并通过 `indexSync` 报告索引同步结果。
|
|
20
|
+
- `kb_check` 在索引降幅触发保护时返回扫描差异和原因,并保留旧索引及恢复队列。宿主错误也包含 `execution` 与 `quality`。
|
|
21
|
+
|
|
1
22
|
## 2026-11-16 · 插件 3.1.3 / 客户端 2.0.3 · 文件树与周期维护性能
|
|
2
23
|
|
|
3
24
|
客户端每次绑定资料库都会重新读取并校验约 3.9 MB 的文件目录;目录枚举又对每个条目重复读取排除策略、逐段 realpath 并执行两次 access。687 项目录首次读取实测 376 ms。索引巡检每 5 分钟无条件全量扫描原文件,约 1.9 秒独占服务队列,期间文件树与其他请求只能排队,表现为使用一段时间后整体重新加载。
|
package/VERSIONING.en.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[中文](VERSIONING.md) · English
|
|
4
4
|
|
|
5
|
-
Both products share this policy while retaining independent versions: plugin 3.1.
|
|
5
|
+
Both products share this policy while retaining independent versions: plugin 3.1.7, desktop client 2.0.3. Shared implementation: packages/kb-contracts/version-policy.js; the plugin keeps its legacy import entry.
|
|
6
6
|
|
|
7
7
|
## Names and ordering
|
|
8
8
|
|
package/VERSIONING.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](VERSIONING.en.md) · 简体中文
|
|
4
4
|
|
|
5
|
-
插件与客户端共用本规则,独立版本:插件 3.1.
|
|
5
|
+
插件与客户端共用本规则,独立版本:插件 3.1.7,客户端 2.0.3。共享实现位于 packages/kb-contracts/version-policy.js;插件 src/host/versioning.js 保留兼容入口。
|
|
6
6
|
|
|
7
7
|
## 版本格式与顺序
|
|
8
8
|
|
package/cordis.patch.yml
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
# dsh-knowledge-base bundle patch(2.5.12)
|
|
2
|
-
#
|
|
3
|
-
# 这一行只在 **加载本插件的那个 profile** 里生效。
|
|
4
|
-
# 0.1.0-p7 起:默认值不再写死开发者机器上的绝对路径(审查意见 §四 第 5 条):
|
|
5
|
-
# · stateDir 留空 → 按 profile 自动隔离:<profile>/kb-state
|
|
6
|
-
# (装在 profile 里时用该 profile 目录;否则用 <DSH_HOME>/profiles/<profile>)
|
|
7
|
-
# · kbPath 留空 → 首次使用走「设置 → 个人知识库」:
|
|
8
|
-
# 「选择知识库文件夹」→「自动建库 / 识别」。
|
|
9
|
-
# 空目录新建标准库;已有的本插件库直接接入;普通资料夹识别结构后分类导入。
|
|
10
|
-
# 默认候选 = <DSH 安装目录>\KnowledgeBase(不可写时提示另选)。
|
|
11
|
-
# **已绑定过的用户不受影响**:stateDir/config.json 一旦存在,绑定以它为准。
|
|
12
|
-
#
|
|
13
|
-
# 注意:stateDir/config.json 生成后**优先于**这里的默认值;
|
|
14
|
-
# 之后要改 kbPath / excludeFromSearch 请用设置页 / kb_bind / kb_check,或改 config.json 后重启。
|
|
15
|
-
- insert:
|
|
16
|
-
- id: kb-core
|
|
17
|
-
name: '@
|
|
18
|
-
config:
|
|
19
|
-
# Auto joins an already shared library; unmanaged existing libraries keep
|
|
20
|
-
# their complete embedded mode until an explicit migration is approved.
|
|
21
|
-
runtimeMode: auto
|
|
22
|
-
# 知识库根目录。留空 = 未绑定,由设置页的两个主动作决定(不会自动迁库)。
|
|
23
|
-
kbPath: ''
|
|
24
|
-
# 插件状态目录。留空 = 按 profile 自动隔离(<profile>/kb-state)。
|
|
25
|
-
stateDir: ''
|
|
26
|
-
# 默认分类(可配置;初始化只建这些,不建空壳文件)
|
|
27
|
-
categories:
|
|
28
|
-
- 00-画像
|
|
29
|
-
- 10-项目
|
|
30
|
-
- 20-知识笔记
|
|
31
|
-
- 30-人物关系
|
|
32
|
-
- 40-素材资源
|
|
33
|
-
- 90-收件箱
|
|
34
|
-
# 隐私分区:默认只给统计;工作台设置可开启展示,问答另有独立授权。
|
|
35
|
-
# 私密标记不随展示开关改变,按每条返回路径进行统一过滤。
|
|
36
|
-
privateDirs:
|
|
37
|
-
- 00-画像
|
|
38
|
-
- 30-人物关系
|
|
39
|
-
# 不参与检索的目录。必须与库的检索层规则一致:
|
|
40
|
-
# .kb/.kbmeta/.kb-state 工具与元数据
|
|
41
|
-
# 00-知识库请求通道 跨 agent 入口(不是条目)
|
|
42
|
-
# 50-底稿 库自用加工件(OCR 全文、页码索引、生成脚本)
|
|
43
|
-
# _archive/_工具 历史快照与工具
|
|
44
|
-
# 知识库地图 生成物目录
|
|
45
|
-
# 另在代码里跳过根目录的 AGENTS.md / README.md / INDEX.md / 知识库清单.md,
|
|
46
|
-
# 且 INDEX.md 在任何层级都跳过。
|
|
47
|
-
excludeFromSearch:
|
|
48
|
-
- .kb
|
|
49
|
-
- .kbmeta
|
|
50
|
-
- .kb-state
|
|
51
|
-
- 00-知识库请求通道
|
|
52
|
-
- 50-底稿
|
|
53
|
-
- _archive
|
|
54
|
-
- _工具
|
|
55
|
-
- 知识库地图
|
|
56
|
-
# P1-A 链接策略:false = 库内链接/重解析点一律拒绝写入(默认);
|
|
57
|
-
# true = 仅允许指向库内的链接,指向库外仍然拒绝。
|
|
58
|
-
# 知识库**根目录本身**允许是链接,解析 realpath 后作为权威路径。
|
|
59
|
-
# R5:没有 mapRoot —— 顶栏页签扫描的根 = 当前绑定的 kbPath(与工具同源)。
|
|
60
|
-
followLinks: false
|
|
61
|
-
# 日志级别:debug | info | warn(正式环境用 info)
|
|
62
|
-
logLevel: info
|
|
63
|
-
|
|
64
|
-
# ── 第二轮:解析(OCR/ASR)的入口闸门(2026-10-18 定向修复新增)──
|
|
65
|
-
# 普通桌面 profile 没有 H1 时,kb_parse 核验活的知识库根会话或实时委派授权,
|
|
66
|
-
# 可正常解析库内资料;来源路径、隐私、提供方及外发策略继续逐项校验。
|
|
67
|
-
# 这属于应用层授权(isolation:none),不声称具备系统级文件隔离。
|
|
68
|
-
# 如管理员要求 H1,请显式设置 allowWithoutIsolation:false;缺少 H1 就拒绝。
|
|
69
|
-
# H1 已安装但未就绪时始终拒绝执行,不会自动退回普通模式。
|
|
70
|
-
#
|
|
71
|
-
# parse:
|
|
72
|
-
# allowWithoutIsolation: false
|
|
73
|
-
|
|
74
|
-
# ── 合并后的委派工具(原 @local/dsh-agent-gateway 的配置在此)──
|
|
75
|
-
# 不写 targets 时,自动用一个自带的知识库目标:
|
|
76
|
-
# id=knowledge / preset=knowledge / cwd=上面的 kbPath(未绑定则用调用方工作目录)
|
|
77
|
-
# toolName=knowledge_request(旧入口名,保持不变)
|
|
78
|
-
# 如需额外目标(例如写作 agent),在 targets 里显式列;名称不要重复。
|
|
79
|
-
gateway:
|
|
80
|
-
# 同一调用方同时在跑的委派上限(不是插件生命周期累计次数)
|
|
81
|
-
maxCalls: 5
|
|
82
|
-
# 单次委派最长等待(毫秒);超时请求停止子代理,清理另有5秒上限
|
|
83
|
-
timeoutMs: 300000
|
|
84
|
-
# 委派深度上限(父 delegationDepth + 1 超过即拒绝)
|
|
85
|
-
maxDepth: 3
|
|
86
|
-
# descriptor 版本:0.1.5/0.2.x 宿主 = 3;旧 vendor 0.1.1 宿主 = 2
|
|
87
|
-
descriptorVersion: 3
|
|
88
|
-
# 旧版插件是否仍在组合里由代码检测(检测到就跳过合并注册,避免双注册)
|
|
1
|
+
# dsh-knowledge-base bundle patch(2.5.12)
|
|
2
|
+
#
|
|
3
|
+
# 这一行只在 **加载本插件的那个 profile** 里生效。
|
|
4
|
+
# 0.1.0-p7 起:默认值不再写死开发者机器上的绝对路径(审查意见 §四 第 5 条):
|
|
5
|
+
# · stateDir 留空 → 按 profile 自动隔离:<profile>/kb-state
|
|
6
|
+
# (装在 profile 里时用该 profile 目录;否则用 <DSH_HOME>/profiles/<profile>)
|
|
7
|
+
# · kbPath 留空 → 首次使用走「设置 → 个人知识库」:
|
|
8
|
+
# 「选择知识库文件夹」→「自动建库 / 识别」。
|
|
9
|
+
# 空目录新建标准库;已有的本插件库直接接入;普通资料夹识别结构后分类导入。
|
|
10
|
+
# 默认候选 = <DSH 安装目录>\KnowledgeBase(不可写时提示另选)。
|
|
11
|
+
# **已绑定过的用户不受影响**:stateDir/config.json 一旦存在,绑定以它为准。
|
|
12
|
+
#
|
|
13
|
+
# 注意:stateDir/config.json 生成后**优先于**这里的默认值;
|
|
14
|
+
# 之后要改 kbPath / excludeFromSearch 请用设置页 / kb_bind / kb_check,或改 config.json 后重启。
|
|
15
|
+
- insert:
|
|
16
|
+
- id: kb-core
|
|
17
|
+
name: '@local/dsh-knowledge-base'
|
|
18
|
+
config:
|
|
19
|
+
# Auto joins an already shared library; unmanaged existing libraries keep
|
|
20
|
+
# their complete embedded mode until an explicit migration is approved.
|
|
21
|
+
runtimeMode: auto
|
|
22
|
+
# 知识库根目录。留空 = 未绑定,由设置页的两个主动作决定(不会自动迁库)。
|
|
23
|
+
kbPath: ''
|
|
24
|
+
# 插件状态目录。留空 = 按 profile 自动隔离(<profile>/kb-state)。
|
|
25
|
+
stateDir: ''
|
|
26
|
+
# 默认分类(可配置;初始化只建这些,不建空壳文件)
|
|
27
|
+
categories:
|
|
28
|
+
- 00-画像
|
|
29
|
+
- 10-项目
|
|
30
|
+
- 20-知识笔记
|
|
31
|
+
- 30-人物关系
|
|
32
|
+
- 40-素材资源
|
|
33
|
+
- 90-收件箱
|
|
34
|
+
# 隐私分区:默认只给统计;工作台设置可开启展示,问答另有独立授权。
|
|
35
|
+
# 私密标记不随展示开关改变,按每条返回路径进行统一过滤。
|
|
36
|
+
privateDirs:
|
|
37
|
+
- 00-画像
|
|
38
|
+
- 30-人物关系
|
|
39
|
+
# 不参与检索的目录。必须与库的检索层规则一致:
|
|
40
|
+
# .kb/.kbmeta/.kb-state 工具与元数据
|
|
41
|
+
# 00-知识库请求通道 跨 agent 入口(不是条目)
|
|
42
|
+
# 50-底稿 库自用加工件(OCR 全文、页码索引、生成脚本)
|
|
43
|
+
# _archive/_工具 历史快照与工具
|
|
44
|
+
# 知识库地图 生成物目录
|
|
45
|
+
# 另在代码里跳过根目录的 AGENTS.md / README.md / INDEX.md / 知识库清单.md,
|
|
46
|
+
# 且 INDEX.md 在任何层级都跳过。
|
|
47
|
+
excludeFromSearch:
|
|
48
|
+
- .kb
|
|
49
|
+
- .kbmeta
|
|
50
|
+
- .kb-state
|
|
51
|
+
- 00-知识库请求通道
|
|
52
|
+
- 50-底稿
|
|
53
|
+
- _archive
|
|
54
|
+
- _工具
|
|
55
|
+
- 知识库地图
|
|
56
|
+
# P1-A 链接策略:false = 库内链接/重解析点一律拒绝写入(默认);
|
|
57
|
+
# true = 仅允许指向库内的链接,指向库外仍然拒绝。
|
|
58
|
+
# 知识库**根目录本身**允许是链接,解析 realpath 后作为权威路径。
|
|
59
|
+
# R5:没有 mapRoot —— 顶栏页签扫描的根 = 当前绑定的 kbPath(与工具同源)。
|
|
60
|
+
followLinks: false
|
|
61
|
+
# 日志级别:debug | info | warn(正式环境用 info)
|
|
62
|
+
logLevel: info
|
|
63
|
+
|
|
64
|
+
# ── 第二轮:解析(OCR/ASR)的入口闸门(2026-10-18 定向修复新增)──
|
|
65
|
+
# 普通桌面 profile 没有 H1 时,kb_parse 核验活的知识库根会话或实时委派授权,
|
|
66
|
+
# 可正常解析库内资料;来源路径、隐私、提供方及外发策略继续逐项校验。
|
|
67
|
+
# 这属于应用层授权(isolation:none),不声称具备系统级文件隔离。
|
|
68
|
+
# 如管理员要求 H1,请显式设置 allowWithoutIsolation:false;缺少 H1 就拒绝。
|
|
69
|
+
# H1 已安装但未就绪时始终拒绝执行,不会自动退回普通模式。
|
|
70
|
+
#
|
|
71
|
+
# parse:
|
|
72
|
+
# allowWithoutIsolation: false
|
|
73
|
+
|
|
74
|
+
# ── 合并后的委派工具(原 @local/dsh-agent-gateway 的配置在此)──
|
|
75
|
+
# 不写 targets 时,自动用一个自带的知识库目标:
|
|
76
|
+
# id=knowledge / preset=knowledge / cwd=上面的 kbPath(未绑定则用调用方工作目录)
|
|
77
|
+
# toolName=knowledge_request(旧入口名,保持不变)
|
|
78
|
+
# 如需额外目标(例如写作 agent),在 targets 里显式列;名称不要重复。
|
|
79
|
+
gateway:
|
|
80
|
+
# 同一调用方同时在跑的委派上限(不是插件生命周期累计次数)
|
|
81
|
+
maxCalls: 5
|
|
82
|
+
# 单次委派最长等待(毫秒);超时请求停止子代理,清理另有5秒上限
|
|
83
|
+
timeoutMs: 300000
|
|
84
|
+
# 委派深度上限(父 delegationDepth + 1 超过即拒绝)
|
|
85
|
+
maxDepth: 3
|
|
86
|
+
# descriptor 版本:0.1.5/0.2.x 宿主 = 3;旧 vendor 0.1.1 宿主 = 2
|
|
87
|
+
descriptorVersion: 3
|
|
88
|
+
# 旧版插件是否仍在组合里由代码检测(检测到就跳过合并注册,避免双注册)
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
[English](PROJECT-RECORD.en.md) · [简体中文](PROJECT-RECORD.md)
|
|
4
4
|
|
|
5
|
-
<!-- project-record-version: 3.1.
|
|
5
|
+
<!-- project-record-version: 3.1.6 -->
|
|
6
6
|
|
|
7
|
-
**Source: plugin 3.1.
|
|
7
|
+
**Source versions: plugin 3.1.6 / client 2.0.3 · Updated 2026-11-27.**
|
|
8
|
+
|
|
9
|
+
## 2026-11-27 · Client 2.0.3 · File tree session cache
|
|
10
|
+
|
|
11
|
+
Folders and original-file categories reuse loaded branches and pages and keep rows visible during refresh. File changes refresh the affected branch. Library, sort, query and permission changes discard outdated responses. The local client build is paired with plugin 3.1.6. See the [unified project record](../../PROJECT-RECORD.en.md) for implementation and verification details.
|
|
8
12
|
|
|
9
13
|
## 2026-11-16 · Client 2.0.3 · File tree and patrol performance
|
|
10
14
|
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
[English](PROJECT-RECORD.en.md) · [简体中文](PROJECT-RECORD.md)
|
|
4
4
|
|
|
5
|
-
<!-- project-record-version: 3.1.
|
|
5
|
+
<!-- project-record-version: 3.1.6 -->
|
|
6
6
|
|
|
7
|
-
**对应源码:插件 3.1.
|
|
7
|
+
**对应源码:插件 3.1.6 / 客户端 2.0.3 · 更新日期 2026-11-27。**
|
|
8
|
+
|
|
9
|
+
## 2026-11-27 · 客户端 2.0.3 · 文件树会话缓存
|
|
10
|
+
|
|
11
|
+
目录和原件分类复用已加载的分支与分页,后台刷新期间保留列表。文件发生变化时刷新对应分支,切库、排序、查询或权限变化时丢弃过期结果。本地客户端与插件 3.1.6 配套构建。更多实现与验证范围见 [统一演进记录](../../PROJECT-RECORD.md)。
|
|
8
12
|
|
|
9
13
|
## 2026-11-16 · 客户端 2.0.3 · 文件树与周期维护性能
|
|
10
14
|
|