dsh-knowhub 0.8.2 → 0.8.3
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/README.md +5 -1
- package/assets/knowhub-panel.png +0 -0
- package/lib/host/model.js +3 -1
- package/package.json +16 -3
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
> DSH 的全局知识中心与项目长期记忆。把项目知识与长期记忆沉淀成可检索、可审核、可追溯、可备份的知识库,并在 DSH 会话中按工作区作用域自动注入或按需检索。
|
|
4
4
|
|
|
5
|
+
## 界面预览
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
5
9
|
## 功能特性
|
|
6
10
|
|
|
7
11
|
**知识库与作用域**
|
|
@@ -76,7 +80,7 @@ dsh --profile knowhub --port 29961 --no-open
|
|
|
76
80
|
|
|
77
81
|
```powershell
|
|
78
82
|
# tarball
|
|
79
|
-
& dsh plugin --profile knowhub add .\dsh-knowhub-0.8.
|
|
83
|
+
& dsh plugin --profile knowhub add .\dsh-knowhub-0.8.3.tgz
|
|
80
84
|
|
|
81
85
|
# 开发期:软链到源码目录,构建后重启即生效
|
|
82
86
|
cmd /c mklink /J "$env:USERPROFILE\.dsh\profiles\knowhub\node_modules\dsh-knowhub" "C:\path\to\KnowHub"
|
|
Binary file
|
package/lib/host/model.js
CHANGED
|
@@ -60,7 +60,9 @@ export async function readModelCatalog(ctx) {
|
|
|
60
60
|
async function makeUserMessage(text) {
|
|
61
61
|
// 优先用官方构造器(会补齐 MessageId 等品牌字段),失败时回退为等价字面量。
|
|
62
62
|
try {
|
|
63
|
-
|
|
63
|
+
// 变量说明符:该包是宿主侧可选依赖,未安装时不让类型检查失败(CI / 无 DSH 包的环境)。
|
|
64
|
+
const spec = '@deepseek-ai/dsh-llm';
|
|
65
|
+
const mod = await import(spec);
|
|
64
66
|
if (typeof mod?.createUserMessage === 'function') {
|
|
65
67
|
return mod.createUserMessage({ content: [{ type: 'text', text }], source: { kind: 'user' } });
|
|
66
68
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-knowhub",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "知枢 KnowHub — DSH 全局知识中心与项目长期记忆:知识库、Repo Wiki、审核与版本、增量更新、检索与上下文注入、自动提炼、备份恢复、中文面板",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -51,8 +51,13 @@
|
|
|
51
51
|
"lib",
|
|
52
52
|
"cordis.patch.yml",
|
|
53
53
|
"README.md",
|
|
54
|
-
"LICENSE"
|
|
54
|
+
"LICENSE",
|
|
55
|
+
"assets"
|
|
55
56
|
],
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@types/node": "^22.19.0",
|
|
59
|
+
"typescript": "5.6.3"
|
|
60
|
+
},
|
|
56
61
|
"scripts": {
|
|
57
62
|
"build": "node scripts/build.mjs",
|
|
58
63
|
"typecheck": "node .toolchain/node_modules/typescript/bin/tsc --noEmit -p tsconfig.json",
|
|
@@ -64,5 +69,13 @@
|
|
|
64
69
|
"knowledge-base",
|
|
65
70
|
"wiki",
|
|
66
71
|
"memory"
|
|
67
|
-
]
|
|
72
|
+
],
|
|
73
|
+
"repository": {
|
|
74
|
+
"type": "git",
|
|
75
|
+
"url": "git+https://github.com/Mw-HbCK/dsh-knowhub.git"
|
|
76
|
+
},
|
|
77
|
+
"homepage": "https://github.com/Mw-HbCK/dsh-knowhub#readme",
|
|
78
|
+
"bugs": {
|
|
79
|
+
"url": "https://github.com/Mw-HbCK/dsh-knowhub/issues"
|
|
80
|
+
}
|
|
68
81
|
}
|