Compare commits

...

81 Commits

Author SHA1 Message Date
QQ c6c9422582 index: dsh-better-chat 1.4.0 2026-11-29 14:01:57 +08:00
newbie 16dc2ef613 index: publish Sansheng 1.1.5 2026-11-28 19:16:11 +08:00
newbie cac50053e6 index: update Sansheng 1.1.4 department handoff 2026-11-28 16:02:26 +08:00
newbie d62f402bc4 index: repair dsh-sansheng-liubu 1.1.4 package source 2026-11-28 14:20:29 +08:00
QQ 99ce4a2d04 index: dsh-better-chat 1.2.1 2026-11-28 13:03:21 +08:00
newbie b69ab33ac4 index: dsh-sansheng-liubu 1.1.4 + dsh-better-sidebar 0.33.0 2026-11-28 12:49:09 +08:00
newbie 285e52cbe1 market: point ds-harness-remote-fast at upstream rainow repo
- index entry homepage/repository/git source -> https://github.com/rainow/ds-harness-remote-fast
- make-index.mjs: read this plugin from GitHub API (branch lite), retry transient resets, use contents API instead of raw.githubusercontent.com (raw host is unreliable here)
2026-11-28 12:04:34 +08:00
QQ f15e6e4f6d index: dsh-better-chat 1.2.0 (reader in chat) 2026-11-28 12:02:50 +08:00
newbie ad01d35e49 market: refresh index
keep   dsh-sansheng-liubu 1.1.2 (regenerator saw 1.1.1)
update dsh-brain 0.10.4 -> 0.10.5
2026-11-28 11:10:42 +08:00
newbie 3952f3fa17 market: refresh index
keep   dsh-sansheng-liubu 1.1.2 (regenerator saw 1.1.1)
update ds-harness-remote-fast 0.6.5-fast.3 -> 0.6.8-fast.1
2026-11-28 10:30:05 +08:00
newbie 3e385eba0a fix: make the updater dry-run read-only and detect real changes
make-index.mjs rewrites index.json in place, so comparing after the fact
always reported no change. Capture the committed text first and restore it
for --dry-run. Adds the .cmd entry used by the scheduled task.
2026-11-27 18:26:57 +08:00
newbie 1403ddb6ae market: refresh index
keep   dsh-sansheng-liubu 1.1.2 (regenerator saw 1.1.1)
update ds-harness-remote-fast 0.6.5-fast.3 -> 0.6.5-fast.3
2026-11-27 18:24:50 +08:00
newbie 15550a1969 chore: add unattended index updater with no-downgrade guard 2026-11-27 18:22:49 +08:00
newbie 070728d750 market: dsh-brain 0.10.4(原话记录层 + 防御代码清理) 2026-11-27 18:22:49 +08:00
newbie 0df14fea85 Publish dsh-brain 0.10.2 2026-11-26 20:10:29 +08:00
newbie e1f3820dee Point dsh-brain at the panel hotfix 2026-11-26 17:49:48 +08:00
qyh15 23bd4aae37 chore: index Sansheng v1.1.2 2026-11-26 17:47:19 +08:00
newbie 852c4279fa market: pin dsh-brain UI fix 2026-11-26 17:21:37 +08:00
qyh15 0f773e0686 chore: index Sansheng v1.1.1 2026-11-26 16:45:58 +08:00
qyh15 ad5a2cfc5b Fix Sansheng 1.1.0 marketplace install source 2026-11-25 19:20:56 +08:00
newbie ccfc5ec9ad market: update dsh-brain to 0.10.1 2026-11-25 16:39:26 +08:00
newbie 935ccdfe69 release: dsh-sansheng-liubu 1.1.0 2026-11-25 16:13:31 +08:00
QQ 3d43b86b8b market: dsh-better-chat 1.0.4 (聊天增强,移除阅读视图) 2026-11-22 22:16:24 +08:00
qyh15 fe9d0dc05d release: dsh-sansheng-liubu v1.0.0 2026-11-19 23:45:55 +08:00
qyh15 ba0092146d release: dsh-sansheng-liubu v0.5.2 2026-11-19 10:30:31 +08:00
newbie 124d29baeb market: workspace-groups-remote 1.3.1(README 翻新,pin main 97f4c3e) 2026-11-19 10:19:06 +08:00
newbie 94edc8d1b0 Revert "market: dsh-brain 0.9.10 README 翻新(pin main 6d868ab)"
This reverts commit 54bfcc9b8c.
2026-11-19 10:07:13 +08:00
newbie 54bfcc9b8c market: dsh-brain 0.9.10 README 翻新(pin main 6d868ab) 2026-11-19 09:56:03 +08:00
qyh15 256ecb71b3 release: dsh-sansheng-liubu 0.5.1 2026-11-19 01:08:12 +08:00
qyh15 b08fcf468d chore: dsh-sansheng-liubu v0.5.0 2026-11-18 22:34:50 +08:00
qyh15 2e873432e3 chore: dsh-sansheng-liubu 0.4.1 2026-11-18 20:59:19 +08:00
qyh15 cce138e185 chore: dsh-sansheng-liubu 0.4.0 2026-11-18 18:43:28 +08:00
QQ b64dd13834 ds-harness-remote-fast 0.6.5-fast.3 @ 643716d0 2026-11-18 08:36:54 +08:00
qyh15 558cf6ab64 chore: dsh-sansheng-liubu 0.3.4 2026-11-17 23:22:13 +08:00
qyh15 bee351b403 chore: dsh-sansheng-liubu 0.3.3 2026-11-17 22:55:40 +08:00
qyh15 56e8eb50a9 chore: dsh-sansheng-liubu 0.3.2 2026-11-17 22:40:01 +08:00
qyh15 1bf216107c chore: dsh-sansheng-liubu 0.3.1 2026-11-17 22:29:22 +08:00
qyh15 572ba64121 chore: dsh-sansheng-liubu 0.3.0 2026-11-17 21:48:30 +08:00
qyh15 7724553a02 chore: dsh-sansheng-liubu 0.2.4 2026-11-17 21:19:14 +08:00
qyh15 8a1962cfe7 chore: dsh-sansheng-liubu 0.2.1 2026-11-17 20:27:08 +08:00
qyh15 e2794243f7 chore: dsh-sansheng-liubu 0.2.0 2026-11-17 17:25:22 +08:00
qyh15 b4ce49e26f chore: dsh-sansheng-liubu 0.1.5 2026-11-17 15:45:25 +08:00
qyh15 a71890d0ea chore: dsh-sansheng-liubu 0.1.4 2026-11-17 15:30:39 +08:00
qyh15 4045217721 chore: dsh-sansheng-liubu 0.1.3 2026-11-17 12:03:49 +08:00
qyh15 bd4a428c1a chore: dsh-sansheng-liubu 0.1.2 2026-11-17 11:15:20 +08:00
QQ faec4baa1e Import make-index.mjs 2026-11-17 09:45:19 +08:00
QQ da4792ebfa Import index.json 2026-11-17 09:45:16 +08:00
qyh15 ab44eefcdb chore: 移除误提交的临时文件 2026-11-15 14:46:51 +08:00
qyh15 34f5276433 fix: 三省六部条目统一为 dsh-sansheng-liubu v0.1.1 2026-11-15 14:46:23 +08:00
qyh15 b525a8034b feat: 新增 dsh-sansheng v0.1.0(三省六部工作台) 2026-11-15 09:36:51 +08:00
QQ 4ca7cc00b6 index: dsh-better-chat 1.0.3 2026-11-14 21:10:29 +08:00
QQ a5d91739bc market: 单包改独立仓库 ds-bot-sansheng 2026-11-14 16:45:36 +08:00
QQ 431fb76c56 Merge pull request 'release: dsh-brain 0.9.10(同步冲突批量处理)' (#12) from release/dsh-brain-0.9.10 into main 2026-11-14 16:07:09 +08:00
newbie 320a68034d release: dsh-brain 0.9.10 (batch sync conflict resolution) 2026-11-14 16:06:58 +08:00
QQ 67ef4707bd market: 单包 ds-bot-sansheng@0.2.8(path=combined) 2026-11-14 15:55:55 +08:00
QQ 69fda57200 Import make-index.mjs 2026-11-14 15:17:46 +08:00
QQ 6824d446e1 Import index.json 2026-11-14 15:17:41 +08:00
QQ 407d2715e6 Import icons/remote-fast.png 2026-11-14 15:17:37 +08:00
QQ 0d0c0f8763 Import icon-src/remote-fast.svg 2026-11-14 15:17:26 +08:00
QQ abf5335bb6 Import README.md 2026-11-14 15:17:20 +08:00
QQ 72b05e48e4 Merge pull request 'release: dsh-brain 0.9.9(同步冲突按时间自动取较新)' (#11) from release/dsh-brain-0.9.9 into main 2026-11-14 14:25:53 +08:00
newbie e97b6ecdb8 release: dsh-brain 0.9.9 (skill sync auto-resolves by content and newer timestamp) 2026-11-14 14:25:43 +08:00
newbie 4a8b104afd release: dsh-brain 0.9.8 (simplified MCP page) 2026-11-13 11:50:23 +08:00
newbie 2f4d535542 release: dsh-brain 0.9.7 (import search + MCP batch UI) 2026-11-13 11:33:34 +08:00
newbie c31577d6ca release: dsh-brain 0.9.6 (drop embedded MCP marketplace) 2026-11-13 11:17:46 +08:00
QQ ac4bbfa8ff Merge pull request 'release: workspace-groups-remote 1.3.0' (#10) from release/workspace-groups-1.3.0-r2 into main 2026-11-13 11:15:19 +08:00
newbie 4339ecd741 release: workspace-groups-remote 1.3.0
Pin the standalone plugin entry to v1.3.0 (commit 637c62f on main) after the merged Remote-SSH settings page rework; regenerate index.json from the release manifest.
2026-11-13 11:14:25 +08:00
newbie 130293f7fb release: dsh-brain 0.9.5 (MCP search + batch) 2026-11-13 11:11:26 +08:00
QQ 401fcc28aa release: dsh-better-chat 1.0.1 (auto review by default) 2026-11-13 10:39:03 +08:00
newbie 60bc021f02 release: dsh-brain 0.9.4 2026-11-13 10:36:47 +08:00
newbie f9d00d6d7f release: dsh-brain 0.9.3 2026-11-13 10:03:10 +08:00
newbie e670921272 release: dsh-brain 0.9.2 2026-11-13 09:45:27 +08:00
QQ 1a0be2f31b Merge pull request 'release: workspace-groups-remote 1.2.2' (#8) from release/workspace-entry-lifecycle into main 2026-11-13 09:40:28 +08:00
newbie 006fbd13c1 release: workspace-groups-remote 1.2.2 2026-11-13 09:38:56 +08:00
QQ 5e0bfa063f release: dsh-better-chat 1.0.0 (first usable release) 2026-11-12 23:06:40 +08:00
QQ 3523d46431 release: dsh-better-chat 0.4.4 (merged reading view, configurable approval shortcuts) 2026-11-12 22:46:59 +08:00
QQ c14a555810 Merge pull request 'release: workspace-groups 1.2.1 / QQ-dsh 1.5.1' (#7) from release/farm-1.2.1 into main 2026-11-12 22:43:13 +08:00
newbie 4eb30331f7 release: publish workspace-groups 1.2.1 / QQ-dsh 1.5.1 2026-11-12 22:43:10 +08:00
QQ 80e71f3f01 Merge pull request 'release: workspace-groups 1.2.0 / QQ-dsh 1.5.0' (#6) from release/farm-1.2.0 into main 2026-11-12 22:23:08 +08:00
newbie 9e4d801ee7 release: publish workspace-groups 1.2.0 / QQ-dsh 1.5.0 2026-11-12 22:22:48 +08:00
QQ 92540bf507 Merge pull request 'release: workspace-groups 1.1.1 / QQ-dsh 1.4.1' (#5) from release/1.1.1-1.4.1 into main 2026-11-12 22:08:45 +08:00
10 changed files with 371 additions and 93 deletions

View File

@ -1,7 +1,8 @@
# QQ 插件索引(DSH 插件市场索引 · 格式 1) # QQ 插件索引(DSH 插件市场索引 · 格式 1)
给 DSH「发现」页用的自定义插件索引,列出 QQ-dsh 全家桶和它的四个组件, 给 DSH「发现」页用的自定义插件索引,列出 QQ-dsh 全家桶和它的四个组件,
安装源是本组织在 git.qyhhh.top 上的仓库,固定到发布提交。 另收录两个外部插件:GitHub 上的 ds-harness-remote-fast 和 dsh-better-sidebar;
安装源是本组织在 git.qyhhh.top 上的仓库或对应的 GitHub 仓库,固定到发布提交。
## 在 DSH 里使用 ## 在 DSH 里使用
@ -14,16 +15,11 @@
## 维护 ## 维护
发布批次统一记录在 `release-manifest.json`(组件版本、固定提交、全家桶版本)。 发新版后重新生成索引(自动读取各仓库分支 HEAD 的提交号与时间):
`make-index.mjs` 优先从该清单生成索引;清单不存在时才回退到读取各仓库分支 HEAD。
发版后:
```sh ```sh
node make-index.mjs node make-index.mjs
node verify-release.mjs --qq-dsh ../QQ-dsh --sources ..
``` ```
`verify-release.mjs` 同时检查独立插件索引与 QQ-dsh 全家桶的版本、固定提交和 生成后把 `index.json` 提交到本仓库即可。索引格式由 DSH 自带的
构建产物是否存在,两个安装渠道不一致时直接失败。生成/校验后把 `index.json` `@deepseek-ai/dsh-plugin-market-index` 校验器定义。
提交到本仓库即可。索引格式由 DSH 自带的 `@deepseek-ai/dsh-plugin-market-index`
校验器定义。

16
icon-src/remote-fast.svg Normal file
View File

@ -0,0 +1,16 @@
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512">
<defs>
<linearGradient id="bg" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#f8a91c"/>
<stop offset="1" stop-color="#d96c06"/>
</linearGradient>
</defs>
<rect width="512" height="512" rx="112" fill="url(#bg)"/>
<ellipse cx="256" cy="70" rx="300" ry="130" fill="#ffffff" opacity="0.08"/>
<g stroke="#ffffff" stroke-width="28" fill="none" stroke-linecap="round">
<path d="M135 183 A148 148 0 0 1 377 183"/>
<path d="M175 212 A99 99 0 0 1 337 212"/>
<path d="M213 239 A52 52 0 0 1 299 239"/>
</g>
<polygon points="276,244 218,330 250,330 232,404 300,308 264,308" fill="#ffffff"/>
</svg>

After

Width:  |  Height:  |  Size: 731 B

14
icons/better-sidebar.svg Normal file
View File

@ -0,0 +1,14 @@
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="6.5" y="9" width="23" height="18" rx="2.5" fill="url(#a)" />
<rect x="21.5" y="9" width="8" height="18" rx="2.5" fill="url(#b)" />
<defs>
<linearGradient id="a" x1="6.5" y1="9" x2="29.5" y2="27" gradientUnits="userSpaceOnUse">
<stop stop-color="#69B9FF" />
<stop offset="1" stop-color="#324DE2" />
</linearGradient>
<linearGradient id="b" x1="25.5" y1="9" x2="25.5" y2="27" gradientUnits="userSpaceOnUse">
<stop stop-color="#45E7A4" />
<stop offset="1" stop-color="#05909D" />
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 663 B

BIN
icons/remote-fast.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -1,7 +1,7 @@
{ {
"format": 1, "format": 1,
"title": "QQ 插件索引", "title": "QQ 插件索引",
"description": "newbie 的 DSH 插件索引:QQ-dsh 全家桶及其四个组件,源码托管在 git.qyhhh.top 的 DeepsSeekHarness 组织。", "description": "newbie 的 DSH 插件索引:QQ-dsh 全家桶及其四个组件,另收录外部依赖 Better Sidebar;源码托管在 git.qyhhh.top 的 DeepsSeekHarness 组织。",
"metadata": { "metadata": {
"categories": {}, "categories": {},
"labels": {}, "labels": {},
@ -9,10 +9,10 @@
}, },
"plugins": [ "plugins": [
{ {
"name": "dsh-sansheng-liubu-mode", "name": "dsh-sansheng-liubu",
"title": "三省六部工作台", "title": "三省六部 · 十席工作台",
"icon": "icons/sansheng.png", "icon": "icons/sansheng.png",
"description": "十个独立部门会话的派发、审批与三层记忆(部门 / 项目 / 长期),原生 DSH 工作台后端。右侧栏「朝堂」朝堂面板已并入本包,装这一条即可。", "description": "每个项目固定十席角色与独立会话。丞相自然下派,关键歧义才启动 Grill Me。门下通过后尚书并行派工,部门可在任务里会商。项目决定与原生审批集中在「待你处理」,丞相可用原生后台助手整理需求、跟踪进度和汇总反馈。",
"author": "newbie", "author": "newbie",
"homepage": "https://git.qyhhh.top/DeepsSeekHarness/dsh-sansheng-liubu", "homepage": "https://git.qyhhh.top/DeepsSeekHarness/dsh-sansheng-liubu",
"repository": { "repository": {
@ -29,12 +29,12 @@
}, },
"versions": [ "versions": [
{ {
"version": "0.14.0", "version": "1.1.5",
"publishTimestamp": 1794480735, "publishTimestamp": 1795864370,
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.qyhhh.top/DeepsSeekHarness/dsh-sansheng-liubu", "url": "https://git.qyhhh.top/DeepsSeekHarness/dsh-sansheng-liubu",
"commit": "efc4a32c758d1df9bb3c22bb53f1359e0d433ab1" "commit": "819a57d7694723cb279f84a10b33398d66253229"
}, },
"engines": {} "engines": {}
} }
@ -62,12 +62,12 @@
}, },
"versions": [ "versions": [
{ {
"version": "0.9.1", "version": "0.10.5",
"publishTimestamp": 1794480737, "publishTimestamp": 1795835418,
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.qyhhh.top/DeepsSeekHarness/dsh-brain", "url": "https://git.qyhhh.top/DeepsSeekHarness/dsh-brain",
"commit": "89af1f4c7c6acf65be93792f68eade383ec0d794" "commit": "645e47bd5908a94d0b91945952e5fa7eda92bcb7"
}, },
"engines": {} "engines": {}
} }
@ -95,12 +95,12 @@
}, },
"versions": [ "versions": [
{ {
"version": "1.1.1", "version": "1.3.1",
"publishTimestamp": 1794480736, "publishTimestamp": 1795054575,
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.qyhhh.top/DeepsSeekHarness/workspace-groups-remote", "url": "https://git.qyhhh.top/DeepsSeekHarness/workspace-groups-remote",
"commit": "80537fff863a637d0c848b3d64a1748a9f4cac55" "commit": "97f4c3e07ffa665cfa2b5476625b4f1715f18295"
}, },
"engines": {} "engines": {}
} }
@ -110,7 +110,7 @@
"name": "dsh-better-chat", "name": "dsh-better-chat",
"title": "dsh-better-chat · 聊天增强", "title": "dsh-better-chat · 聊天增强",
"icon": "icons/chat.png", "icon": "icons/chat.png",
"description": "审批卡回车确认 / Esc 拒绝;权限界面移除「完全权限」,且不再改写已有会话的权限选择。", "description": "审批卡快捷键(可自定义)、权限界面移除「完全权限」、插件商店更新按钮;对话页提供左侧 AI 回复气泡与下方过程折叠、默认 6 轮长会话渲染窗口与顶部锚定加载、WorkBuddy 风格右侧目录时间轴,以及外观/气泡样式/宽度自定义设置,并保留官方聊天契约让 dsh-btw 等插件照常工作。",
"author": "newbie", "author": "newbie",
"homepage": "https://git.qyhhh.top/DeepsSeekHarness/dsh-better-chat", "homepage": "https://git.qyhhh.top/DeepsSeekHarness/dsh-better-chat",
"repository": { "repository": {
@ -127,12 +127,77 @@
}, },
"versions": [ "versions": [
{ {
"version": "0.3.1", "version": "1.4.0",
"publishTimestamp": 1794480736, "publishTimestamp": 1795931763,
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.qyhhh.top/DeepsSeekHarness/dsh-better-chat", "url": "https://git.qyhhh.top/DeepsSeekHarness/dsh-better-chat",
"commit": "f2f11528bdd8779b247265ca8ba667287af12cd7" "commit": "7d8dfb1e5dc6e943961a874d346179e24e15a74f"
},
"engines": {}
}
]
},
{
"name": "ds-harness-remote-fast",
"title": "ds-harness-remote-fast · 远程极速版",
"icon": "icons/remote-fast.png",
"description": "ds-harness-remote 的极速分支(rainow):主机端首屏快照裁剪,解决大会话帧超限断连;服务端与客户端不用换,加密与配对与原版一致。安装源为 GitHub 上的 rainow/ds-harness-remote-fast。",
"author": "newbie",
"homepage": "https://github.com/rainow/ds-harness-remote-fast",
"repository": {
"url": "https://github.com/rainow/ds-harness-remote-fast"
},
"metadata": {
"keywords": [
"remote",
"远程",
"fast"
],
"labels": [],
"sortKeys": {}
},
"versions": [
{
"version": "0.6.8-fast.1",
"publishTimestamp": 1795665151,
"source": {
"type": "git",
"url": "https://github.com/rainow/ds-harness-remote-fast",
"commit": "20188ec9044a4b4add15651ba89f240dd96a4a42"
},
"engines": {}
}
]
},
{
"name": "dsh-better-sidebar",
"title": "Better Sidebar · 右栏整合",
"icon": "icons/better-sidebar.svg",
"description": "把文件树、编辑器、改动、任务与侧边对话收进一列右栏,按会话分开;并向其他插件提供注册右栏标签与文件查看器的服务。三省六部的 Better Sidebar 子插件依赖它。安装源为 GitHub 上的 omdsh-dev/DSH-better-sidebar,固定到 v0.33.0。",
"author": "omdsh-dev",
"homepage": "https://github.com/omdsh-dev/DSH-better-sidebar",
"repository": {
"url": "https://github.com/omdsh-dev/DSH-better-sidebar"
},
"metadata": {
"keywords": [
"sidebar",
"editor",
"files",
"better-sidebar"
],
"labels": [],
"sortKeys": {}
},
"versions": [
{
"version": "0.33.0",
"publishTimestamp": 1795502227,
"source": {
"type": "git",
"url": "https://github.com/omdsh-dev/DSH-better-sidebar",
"commit": "0f4b87c49dc6ae4aef7371be0a78f9d277a7b4e0"
}, },
"engines": {} "engines": {}
} }

View File

@ -1,10 +1,12 @@
// Regenerate the QQ plugin market index (DSH plugin-market index format 1). // Regenerate the QQ plugin market index (DSH plugin-market index format 1).
// //
// The index lists the four QQ-dsh component plugins. Each entry's install // The index lists the four QQ-dsh component plugins, plus one external plugin
// source is a git source pinned to the repo HEAD commit; versions are read // (ds-harness-remote-fast) whose canonical source is GitHub's rainow fork, not
// live from each repo's package.json, so re-running this after a release is // our Gitea mirror. Each entry's install source is a git source pinned to the
// the whole maintenance story. The Gitea repos are public, so the branch // repo HEAD commit; versions are read live from each repo's package.json, so
// endpoints are read anonymously. Output: ./index.json next to this script. // re-running this after a release is the whole maintenance story. The repos are
// public, so the endpoints are read anonymously. Output: ./index.json next to
// this script.
// //
// Why git and not the org's Gitea npm registry (tried 2026-11-12, reverted // Why git and not the org's Gitea npm registry (tried 2026-11-12, reverted
// the same day): Gitea's npm registry strips the `dsh` field from the // the same day): Gitea's npm registry strips the `dsh` field from the
@ -17,23 +19,22 @@
// overwrite); DSH's native update button does not apply to git sources. // overwrite); DSH's native update button does not apply to git sources.
// //
// node make-index.mjs // node make-index.mjs
import { existsSync, readFileSync, writeFileSync } from 'node:fs' import { writeFileSync } from 'node:fs'
import { dirname, join } from 'node:path' import { dirname, join } from 'node:path'
import { fileURLToPath } from 'node:url' import { fileURLToPath } from 'node:url'
const API = 'https://git.qyhhh.top/api/v1' const API = 'https://git.qyhhh.top/api/v1'
const WEB = 'https://git.qyhhh.top/DeepsSeekHarness' const WEB = 'https://git.qyhhh.top/DeepsSeekHarness'
const ROOT = dirname(fileURLToPath(import.meta.url)) const GITHUB = 'https://api.github.com'
const MANIFEST = join(ROOT, 'release-manifest.json')
const PLUGINS = [ const PLUGINS = [
{ {
name: 'dsh-sansheng-liubu-mode', name: 'dsh-sansheng-liubu',
icon: 'icons/sansheng.png', icon: 'icons/sansheng.png',
repo: 'dsh-sansheng-liubu', repo: 'dsh-sansheng-liubu',
branch: 'master', branch: 'release/v1.1.5',
title: '三省六部工作台', title: '三省六部 · 十席工作台',
description: '十个独立部门会话的派发、审批与三层记忆(部门 / 项目 / 长期),原生 DSH 工作台后端。右侧栏「朝堂」朝堂面板已并入本包,装这一条即可。', description: '每个项目固定十席角色与独立会话。丞相自然下派,关键歧义才启动 Grill Me。门下通过后尚书并行派工,部门可在任务里会商。项目决定与原生审批集中在「待你处理」,丞相可用原生后台助手整理需求、跟踪进度和汇总反馈。',
keywords: ['workbench', 'sansheng', '三省六部'], keywords: ['workbench', 'sansheng', '三省六部'],
}, },
{ {
@ -60,72 +61,109 @@ const PLUGINS = [
repo: 'dsh-better-chat', repo: 'dsh-better-chat',
branch: 'main', branch: 'main',
title: 'dsh-better-chat · 聊天增强', title: 'dsh-better-chat · 聊天增强',
description: '审批卡回车确认 / Esc 拒绝;权限界面移除「完全权限」,且不再改写已有会话的权限选择。', description: '审批卡快捷键(可自定义)、权限界面移除「完全权限」、插件商店更新按钮;对话页提供左侧 AI 回复气泡与下方过程折叠、默认 6 轮长会话渲染窗口与顶部锚定加载、WorkBuddy 风格右侧目录时间轴,以及外观/气泡样式/宽度自定义设置,并保留官方聊天契约让 dsh-btw 等插件照常工作。',
keywords: ['chat', 'approval', 'permission'], keywords: ['chat', 'approval', 'permission'],
}, },
{
name: 'ds-harness-remote-fast',
icon: 'icons/remote-fast.png',
repo: 'ds-harness-remote-fast',
branch: 'lite',
github: true,
owner: 'rainow',
title: 'ds-harness-remote-fast · 远程极速版',
description: 'ds-harness-remote 的极速分支(rainow):主机端首屏快照裁剪,解决大会话帧超限断连;服务端与客户端不用换,加密与配对与原版一致。安装源为 GitHub 上的 rainow/ds-harness-remote-fast。',
keywords: ['remote', '远程', 'fast'],
},
{
name: 'dsh-better-sidebar',
icon: 'icons/better-sidebar.svg',
repo: 'DSH-better-sidebar',
branch: 'v0.33.0',
github: true,
owner: 'omdsh-dev',
author: 'omdsh-dev',
title: 'Better Sidebar · 右栏整合',
description: '把文件树、编辑器、改动、任务与侧边对话收进一列右栏,按会话分开;并向其他插件提供注册右栏标签与文件查看器的服务。三省六部的 Better Sidebar 子插件依赖它。安装源为 GitHub 上的 omdsh-dev/DSH-better-sidebar,固定到 v0.33.0。',
keywords: ['sidebar', 'editor', 'files', 'better-sidebar'],
},
] ]
// Transient resets to GitHub are common from this host; retry a few times
// with a growing pause before giving up (the unattended updater relies on it).
async function fetchRetry(url, options = {}, attempts = 5) {
let lastError
for (let attempt = 1; attempt <= attempts; attempt += 1) {
try {
return await fetch(url, options)
} catch (error) {
lastError = error
if (attempt < attempts) await new Promise((resolve) => setTimeout(resolve, attempt * 500))
}
}
throw lastError
}
async function headOf(repo, branch) { async function headOf(repo, branch) {
const response = await fetch(`${API}/repos/DeepsSeekHarness/${repo}/branches/${branch}`) const response = await fetchRetry(`${API}/repos/DeepsSeekHarness/${repo}/branches/${encodeURIComponent(branch)}`)
if (!response.ok) throw new Error(`branch lookup failed for ${repo}/${branch}: HTTP ${response.status}`) if (!response.ok) throw new Error(`branch lookup failed for ${repo}/${branch}: HTTP ${response.status}`)
const body = await response.json() const body = await response.json()
return { commit: body.commit.id, timestamp: Math.floor(Date.parse(body.commit.timestamp) / 1000) } return { commit: body.commit.id, timestamp: Math.floor(Date.parse(body.commit.timestamp) / 1000) }
} }
const release = existsSync(MANIFEST) ? JSON.parse(readFileSync(MANIFEST, 'utf8')) : null async function githubHead(owner, repo, branch) {
const componentByRepo = new Map() const response = await fetchRetry(`${GITHUB}/repos/${owner}/${repo}/commits/${encodeURIComponent(branch)}`, {
for (const component of release?.components ?? []) componentByRepo.set(component.repo, component) headers: { Accept: 'application/vnd.github+json', 'User-Agent': 'dsh-market-index' },
})
if (!response.ok) throw new Error(`github commit lookup failed for ${owner}/${repo}@${branch}: HTTP ${response.status}`)
const body = await response.json()
return { commit: body.sha, timestamp: Math.floor(Date.parse(body.commit.committer.date) / 1000) }
}
const plugins = [] const plugins = []
for (const plugin of PLUGINS) { for (const plugin of PLUGINS) {
let version const onGithub = plugin.github === true
let commit const head = onGithub ? await githubHead(plugin.owner, plugin.repo, plugin.branch) : await headOf(plugin.repo, plugin.branch)
let timestamp const web = onGithub ? `https://github.com/${plugin.owner}/${plugin.repo}` : `${WEB}/${plugin.repo}`
const pinned = componentByRepo.get(plugin.repo) // Read package.json through each host's API. For GitHub we deliberately use
if (pinned !== undefined) { // the contents API (api.github.com), not raw.githubusercontent.com: the raw
// The checked-in release manifest is the source of truth for a published // host resets TLS connections from this machine while the API stays reliable.
// batch: version, commit and index entry are generated from the SAME record. const pkgUrl = onGithub
if (pinned.package !== plugin.name) throw new Error(`release manifest package mismatch for ${plugin.repo}: ${pinned.package} vs ${plugin.name}`) ? `${GITHUB}/repos/${plugin.owner}/${plugin.repo}/contents/package.json?ref=${head.commit}`
version = pinned.version : `${API}/repos/DeepsSeekHarness/${plugin.repo}/contents/package.json?ref=${head.commit}`
commit = pinned.sourceCommit const pkgResponse = await fetchRetry(pkgUrl, onGithub
timestamp = pinned.publishTimestamp ?? Math.floor(Date.now() / 1000) ? { headers: { Accept: 'application/vnd.github+json', 'User-Agent': 'dsh-market-index' } }
if (!/^[0-9a-f]{40}$/i.test(commit)) throw new Error(`release manifest has no pinned commit for ${plugin.repo}`) : {})
} else {
const head = await headOf(plugin.repo, plugin.branch)
const pkgResponse = await fetch(`${API}/repos/DeepsSeekHarness/${plugin.repo}/contents/package.json?ref=${plugin.branch}`)
if (!pkgResponse.ok) throw new Error(`package.json fetch failed for ${plugin.repo}: HTTP ${pkgResponse.status}`) if (!pkgResponse.ok) throw new Error(`package.json fetch failed for ${plugin.repo}: HTTP ${pkgResponse.status}`)
const pkgFile = await pkgResponse.json() const pkgFile = await pkgResponse.json()
const pkg = JSON.parse(Buffer.from(pkgFile.content, 'base64').toString('utf8')) const pkg = JSON.parse(Buffer.from(pkgFile.content, 'base64').toString('utf8'))
if (pkg.name !== plugin.name) throw new Error(`name mismatch for ${plugin.repo}: index says ${plugin.name}, package.json says ${pkg.name}`) if (pkg.name !== plugin.name) throw new Error(`name mismatch for ${plugin.repo}: index says ${plugin.name}, package.json says ${pkg.name}`)
version = pkg.version const version = pkg.version
commit = head.commit
timestamp = head.timestamp
}
plugins.push({ plugins.push({
name: plugin.name, name: plugin.name,
title: plugin.title, title: plugin.title,
icon: plugin.icon, icon: plugin.icon,
description: plugin.description, description: plugin.description,
author: 'newbie', author: plugin.author || 'newbie',
homepage: `${WEB}/${plugin.repo}`, homepage: web,
repository: { url: `${WEB}/${plugin.repo}` }, repository: { url: web },
metadata: { keywords: plugin.keywords, labels: [], sortKeys: {} }, metadata: { keywords: plugin.keywords, labels: [], sortKeys: {} },
versions: [ versions: [
{ {
version: version, version: version,
publishTimestamp: timestamp, publishTimestamp: head.timestamp,
source: { type: 'git', url: `${WEB}/${plugin.repo}`, commit: commit }, source: { type: 'git', url: web, commit: head.commit },
engines: {}, engines: {},
}, },
], ],
}) })
console.log(`${plugin.name} ${version} @ ${String(commit).slice(0, 8)}${pinned ? ' (release-manifest)' : ' (live)'}`) console.log(`${plugin.name} ${version} @ ${head.commit.slice(0, 8)}`)
} }
const index = { const index = {
format: 1, format: 1,
title: 'QQ 插件索引', title: 'QQ 插件索引',
description: 'newbie 的 DSH 插件索引:QQ-dsh 全家桶及其四个组件,源码托管在 git.qyhhh.top 的 DeepsSeekHarness 组织。', description: 'newbie 的 DSH 插件索引:QQ-dsh 全家桶及其四个组件,另收录外部依赖 Better Sidebar;源码托管在 git.qyhhh.top 的 DeepsSeekHarness 组织。',
metadata: { categories: {}, labels: {}, sortKeys: {} }, metadata: { categories: {}, labels: {}, sortKeys: {} },
plugins, plugins,
} }

View File

@ -1,50 +1,50 @@
{ {
"format": 1, "format": 1,
"generatedAt": "2026-11-12T18:53:45+08:00", "generatedAt": "2026-11-29T05:56:03.000Z",
"components": [ "components": [
{ {
"id": "dsh-sansheng-liubu", "id": "dsh-sansheng-liubu",
"package": "dsh-sansheng-liubu-mode", "package": "dsh-sansheng-liubu",
"version": "0.14.0", "version": "1.1.2",
"repo": "dsh-sansheng-liubu", "repo": "dsh-sansheng-liubu",
"branch": "fix/workbench-entry-project-isolation", "branch": "release/v1.1.2",
"sourceCommit": "efc4a32c758d1df9bb3c22bb53f1359e0d433ab1", "sourceCommit": "fc414a542b4306f8469ccf028ce933cee3b1b938",
"publishTimestamp": 1794480735 "publishTimestamp": 1795684440
}, },
{ {
"id": "dsh-brain", "id": "dsh-brain",
"package": "dsh-brain", "package": "dsh-brain",
"version": "0.9.1", "version": "0.10.2",
"repo": "dsh-brain", "repo": "dsh-brain",
"branch": "fix/skill-sync-source-state", "branch": "main",
"sourceCommit": "89af1f4c7c6acf65be93792f68eade383ec0d794", "sourceCommit": "7a4ad249fc469ebbd4872f827f1b6b89c7a1a574",
"publishTimestamp": 1794480737 "publishTimestamp": 1795695017
}, },
{ {
"id": "workspace-groups-remote", "id": "workspace-groups-remote",
"package": "workspace-groups-remote", "package": "workspace-groups-remote",
"version": "1.1.1", "version": "1.3.1",
"repo": "workspace-groups-remote", "repo": "workspace-groups-remote",
"branch": "fix/folders-state-display-dedupe", "branch": "main",
"sourceCommit": "80537fff863a637d0c848b3d64a1748a9f4cac55", "sourceCommit": "97f4c3e07ffa665cfa2b5476625b4f1715f18295",
"publishTimestamp": 1794480736 "publishTimestamp": 1795054575
}, },
{ {
"id": "dsh-better-chat", "id": "dsh-better-chat",
"package": "dsh-better-chat", "package": "dsh-better-chat",
"version": "0.3.1", "version": "1.4.0",
"repo": "dsh-better-chat", "repo": "dsh-better-chat",
"branch": "fix/permission-no-overwrite", "branch": "main",
"sourceCommit": "f2f11528bdd8779b247265ca8ba667287af12cd7", "sourceCommit": "7d8dfb1e5dc6e943961a874d346179e24e15a74f",
"publishTimestamp": 1794480736 "publishTimestamp": 1795931763
} }
], ],
"bundle": { "bundle": {
"name": "qq-dsh", "name": "qq-dsh",
"package": "qq-dsh", "package": "qq-dsh",
"version": "1.4.1", "version": "1.5.1",
"repo": "QQ-dsh", "repo": "QQ-dsh",
"branch": "feat/components-0.14", "branch": "feat/components-0.14",
"sourceCommit": "ce59613a60065df42c03acfe9cba8baff72a4970" "sourceCommit": "3960386d138b0cbe1d65ecb8e8cdc162352c562b"
} }
} }

22
sync-better-chat.mjs Normal file
View File

@ -0,0 +1,22 @@
import { readFileSync, writeFileSync } from 'node:fs'
const API='https://git.qyhhh.top/api/v1'
const repo='dsh-better-chat'
const br=await (await fetch(API+'/repos/DeepsSeekHarness/'+repo+'/branches/main')).json()
const commit=br.commit.id
const ts=Math.floor(Date.parse(br.commit.timestamp)/1000)
const pkg=JSON.parse(Buffer.from((await (await fetch(API+'/repos/DeepsSeekHarness/'+repo+'/contents/package.json?ref=main')).json()).content,'base64').toString('utf8'))
console.log('live',pkg.version,commit.slice(0,8),ts)
const idx=JSON.parse(readFileSync('index.json','utf8'))
const p=idx.plugins.find(x=>x.name===repo)
p.title='dsh-better-chat · 聊天增强'
p.description='审批卡快捷键(可自定义)、权限界面移除「完全权限」、插件商店更新按钮;1.2 起把阅读页搬进对话页:过程自动折叠、逐字动效、mcp-app 交互卡片、公式与表格排版,并保留官方聊天契约让 dsh-btw 等插件照常工作。'
p.metadata = p.metadata||{}
p.metadata.keywords=['chat','approval','permission']
p.versions=[{version:pkg.version,publishTimestamp:ts,source:{type:'git',url:'https://git.qyhhh.top/DeepsSeekHarness/'+repo,commit},engines:{}}]
writeFileSync('index.json',JSON.stringify(idx,null,2)+'\n')
const mf=JSON.parse(readFileSync('release-manifest.json','utf8'))
const c=mf.components.find(x=>x.repo===repo)
c.version=pkg.version;c.sourceCommit=commit;c.publishTimestamp=ts;c.branch='main'
mf.generatedAt=new Date().toISOString().replace(/\.\d+Z$/,'.000Z')
writeFileSync('release-manifest.json',JSON.stringify(mf,null,2)+'\n')
console.log('done',p.versions[0].version,c.version,c.sourceCommit.slice(0,8))

5
update-index.cmd Normal file
View File

@ -0,0 +1,5 @@
@echo off
rem Unattended market-index refresh. Registered as the Windows scheduled task
rem "dsh-market-index-update"; logs to update-index.log next to this file.
set NODE=C:\Users\qyh15\.dsh\dsh-runtimes\dsh-primary-runtime\dependencies\node\bin\node.exe
"%NODE%" "%~dp0update-index.mjs"

122
update-index.mjs Normal file
View File

@ -0,0 +1,122 @@
// Unattended index updater.
//
// make-index.mjs reads each plugin repo's live HEAD and rewrites index.json from
// scratch. That is right for a release, but unsafe to run unattended: a plugin
// whose PLUGINS branch lags behind what the index already advertises (today:
// dsh-sansheng-liubu is pinned to release/v1.1.1 while the index says 1.1.2)
// would be downgraded, and plugins missing from PLUGINS would be dropped.
//
// This wrapper regenerates, then merges with a no-downgrade rule and pushes only
// when something really changed. Safe to run on a schedule.
//
// node update-index.mjs # pull, regenerate, merge, commit, push
// node update-index.mjs --dry-run # show what would change, write nothing
import { spawnSync } from 'node:child_process'
import { readFileSync, writeFileSync } from 'node:fs'
import { dirname, join } from 'node:path'
import { fileURLToPath } from 'node:url'
const ROOT = dirname(fileURLToPath(import.meta.url))
const INDEX = join(ROOT, 'index.json')
const DRY = process.argv.includes('--dry-run')
const LOG = join(ROOT, 'update-index.log')
function log(message) {
const line = `[${new Date().toISOString()}] ${message}`
console.log(line)
try {
const previous = readFileSync(LOG, 'utf8').split('\n').filter(Boolean).slice(-500).join('\n')
writeFileSync(LOG, `${previous}${previous === '' ? '' : '\n'}${line}\n`, 'utf8')
} catch {
// Logging must never break the update.
}
}
function run(command, args) {
const result = spawnSync(command, args, { cwd: ROOT, encoding: 'utf8' })
if (result.status !== 0) {
throw new Error(`${command} ${args.join(' ')} failed (${result.status}): ${(result.stderr || '').trim().slice(0, 400)}`)
}
return (result.stdout || '').trim()
}
/** Compare dotted versions; returns >0 when left is newer. */
function compareVersions(left, right) {
const a = String(left ?? '').split('.').map((part) => Number.parseInt(part, 10) || 0)
const b = String(right ?? '').split('.').map((part) => Number.parseInt(part, 10) || 0)
for (let index = 0; index < Math.max(a.length, b.length); index += 1) {
const diff = (a[index] ?? 0) - (b[index] ?? 0)
if (diff !== 0) return diff
}
return 0
}
try {
log('update-index: start')
run('git', ['pull', '--ff-only', '--quiet'])
// make-index.mjs overwrites index.json in place, so keep the committed text
// to diff against and to restore for --dry-run.
const beforeText = readFileSync(INDEX, 'utf8')
const before = JSON.parse(beforeText)
run(process.execPath, [join(ROOT, 'make-index.mjs')])
const generated = JSON.parse(readFileSync(INDEX, 'utf8'))
const existing = new Map((before.plugins ?? []).map((plugin) => [plugin.name, plugin]))
const merged = []
const notes = []
for (const plugin of generated.plugins ?? []) {
const current = existing.get(plugin.name)
if (current === undefined) {
merged.push(plugin)
notes.push(`add ${plugin.name} ${plugin.versions?.[0]?.version}`)
continue
}
const nextVersion = plugin.versions?.[0]?.version
const currentVersion = current.versions?.[0]?.version
if (compareVersions(nextVersion, currentVersion) < 0) {
merged.push(current)
notes.push(`keep ${plugin.name} ${currentVersion} (regenerator saw ${nextVersion})`)
continue
}
if (compareVersions(nextVersion, currentVersion) === 0
&& plugin.versions?.[0]?.source?.commit === current.versions?.[0]?.source?.commit) {
merged.push(current)
continue
}
merged.push(plugin)
notes.push(`update ${plugin.name} ${currentVersion} -> ${nextVersion}`)
}
// Plugins the regenerator no longer knows about stay in the index.
for (const [name, plugin] of existing) {
if (!merged.some((item) => item.name === name)) {
merged.push(plugin)
notes.push(`keep ${name} (absent from generator)`)
}
}
const next = { ...generated, plugins: merged }
const text = `${JSON.stringify(next, null, 2)}\n`
const unchanged = text === beforeText
if (unchanged) {
if (readFileSync(INDEX, 'utf8') !== beforeText) writeFileSync(INDEX, beforeText, 'utf8')
log('update-index: nothing to do')
process.exit(0)
}
for (const note of notes) log(` ${note}`)
if (DRY) {
writeFileSync(INDEX, beforeText, 'utf8')
log('update-index: dry run, not writing')
process.exit(0)
}
writeFileSync(INDEX, text, 'utf8')
run('git', ['add', 'index.json'])
run('git', ['-c', 'user.name=newbie', '-c', 'user.email=newbie@git.qyhhh.top',
'commit', '--quiet', '-m', `market: refresh index\n\n${notes.join('\n')}`])
run('git', ['push', '--quiet', 'origin', 'HEAD:main'])
log('update-index: pushed')
} catch (error) {
log(`update-index: FAILED ${error instanceof Error ? error.message : String(error)}`)
process.exitCode = 1
}