Compare commits

..

53 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
8 changed files with 309 additions and 64 deletions

View File

@ -1,7 +1,8 @@
# QQ 插件索引(DSH 插件市场索引 · 格式 1)
给 DSH「发现」页用的自定义插件索引,列出 QQ-dsh 全家桶和它的四个组件,
安装源是本组织在 git.qyhhh.top 上的仓库,固定到发布提交。
另收录两个外部插件:GitHub 上的 ds-harness-remote-fast 和 dsh-better-sidebar;
安装源是本组织在 git.qyhhh.top 上的仓库或对应的 GitHub 仓库,固定到发布提交。
## 在 DSH 里使用

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

View File

@ -1,7 +1,7 @@
{
"format": 1,
"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": {},
@ -9,35 +9,32 @@
},
"plugins": [
{
"name": "ds-bot-sansheng",
"title": "三省六部工作台(单包)",
"name": "dsh-sansheng-liubu",
"title": "三省六部 · 十席工作台",
"icon": "icons/sansheng.png",
"description": "DS Bot 底座与三省六部治理层合并为一个安装包:丞相 / 尚书 / 工部、项目隔离、目标门禁、审查与返工。安装这一条即可。",
"description": "每个项目固定十席角色与独立会话。丞相自然下派,关键歧义才启动 Grill Me。门下通过后尚书并行派工,部门可在任务里会商。项目决定与原生审批集中在「待你处理」,丞相可用原生后台助手整理需求、跟踪进度和汇总反馈。",
"author": "newbie",
"homepage": "https://git.qyhhh.top/DeepsSeekHarness/dsh-sansheng-liubu",
"repository": {
"url": "https://git.qyhhh.top/DeepsSeekHarness/dsh-sansheng-liubu",
"directory": "combined"
"url": "https://git.qyhhh.top/DeepsSeekHarness/dsh-sansheng-liubu"
},
"metadata": {
"keywords": [
"workbench",
"sansheng",
"三省六部",
"ds-bot"
"三省六部"
],
"labels": [],
"sortKeys": {}
},
"versions": [
{
"version": "0.2.8",
"publishTimestamp": 1794642940,
"version": "1.1.5",
"publishTimestamp": 1795864370,
"source": {
"type": "git",
"url": "https://git.qyhhh.top/DeepsSeekHarness/dsh-sansheng-liubu",
"commit": "79ecd4fe703e13068b0782b59d88dd21706d4934",
"path": "combined"
"commit": "819a57d7694723cb279f84a10b33398d66253229"
},
"engines": {}
}
@ -65,12 +62,12 @@
},
"versions": [
{
"version": "0.9.10",
"publishTimestamp": 1794643537,
"version": "0.10.5",
"publishTimestamp": 1795835418,
"source": {
"type": "git",
"url": "https://git.qyhhh.top/DeepsSeekHarness/dsh-brain",
"commit": "7d053b2fe9ce911848230d14d8032293a4e8e8c3"
"commit": "645e47bd5908a94d0b91945952e5fa7eda92bcb7"
},
"engines": {}
}
@ -98,12 +95,12 @@
},
"versions": [
{
"version": "1.3.0",
"publishTimestamp": 1794539395,
"version": "1.3.1",
"publishTimestamp": 1795054575,
"source": {
"type": "git",
"url": "https://git.qyhhh.top/DeepsSeekHarness/workspace-groups-remote",
"commit": "637c62f1f347bbd65bc0c856e9fc164ff2abc312"
"commit": "97f4c3e07ffa665cfa2b5476625b4f1715f18295"
},
"engines": {}
}
@ -113,7 +110,7 @@
"name": "dsh-better-chat",
"title": "dsh-better-chat · 聊天增强",
"icon": "icons/chat.png",
"description": "审批卡回车确认 / Esc 拒绝;默认自动审查,并从界面移除「完全权限」选项。",
"description": "审批卡快捷键(可自定义)、权限界面移除「完全权限」、插件商店更新按钮;对话页提供左侧 AI 回复气泡与下方过程折叠、默认 6 轮长会话渲染窗口与顶部锚定加载、WorkBuddy 风格右侧目录时间轴,以及外观/气泡样式/宽度自定义设置,并保留官方聊天契约让 dsh-btw 等插件照常工作。",
"author": "newbie",
"homepage": "https://git.qyhhh.top/DeepsSeekHarness/dsh-better-chat",
"repository": {
@ -130,12 +127,12 @@
},
"versions": [
{
"version": "1.0.1",
"publishTimestamp": 1794535495,
"version": "1.4.0",
"publishTimestamp": 1795931763,
"source": {
"type": "git",
"url": "https://git.qyhhh.top/DeepsSeekHarness/dsh-better-chat",
"commit": "5c80061f08cec764131300008d4d5396612936a3"
"commit": "7d8dfb1e5dc6e943961a874d346179e24e15a74f"
},
"engines": {}
}
@ -145,11 +142,11 @@
"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。",
"description": "ds-harness-remote 的极速分支(rainow):主机端首屏快照裁剪,解决大会话帧超限断连;服务端与客户端不用换,加密与配对与原版一致。安装源为 GitHub 上的 rainow/ds-harness-remote-fast。",
"author": "newbie",
"homepage": "https://git.qyhhh.top/DeepsSeekHarness/ds-harness-remote-fast",
"homepage": "https://github.com/rainow/ds-harness-remote-fast",
"repository": {
"url": "https://git.qyhhh.top/DeepsSeekHarness/ds-harness-remote-fast"
"url": "https://github.com/rainow/ds-harness-remote-fast"
},
"metadata": {
"keywords": [
@ -162,12 +159,45 @@
},
"versions": [
{
"version": "0.6.4-fast.5",
"publishTimestamp": 1794640598,
"version": "0.6.8-fast.1",
"publishTimestamp": 1795665151,
"source": {
"type": "git",
"url": "https://git.qyhhh.top/DeepsSeekHarness/ds-harness-remote-fast",
"commit": "288737b1ea1d658725097161189d1b5121912b46"
"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": {}
}

View File

@ -1,10 +1,12 @@
// 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
// source is a git source pinned to the repo HEAD commit; versions are read
// live from each repo's package.json, so re-running this after a release is
// the whole maintenance story. The Gitea repos are public, so the branch
// endpoints are read anonymously. Output: ./index.json next to this script.
// The index lists the four QQ-dsh component plugins, plus one external plugin
// (ds-harness-remote-fast) whose canonical source is GitHub's rainow fork, not
// our Gitea mirror. Each entry's install source is a git source pinned to the
// repo HEAD commit; versions are read live from each repo's package.json, so
// 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
// the same day): Gitea's npm registry strips the `dsh` field from the
@ -23,15 +25,16 @@ import { fileURLToPath } from 'node:url'
const API = 'https://git.qyhhh.top/api/v1'
const WEB = 'https://git.qyhhh.top/DeepsSeekHarness'
const GITHUB = 'https://api.github.com'
const PLUGINS = [
{
name: 'dsh-sansheng-liubu-mode',
name: 'dsh-sansheng-liubu',
icon: 'icons/sansheng.png',
repo: 'dsh-sansheng-liubu',
branch: 'master',
title: '三省六部工作台',
description: '十个独立部门会话的派发、审批与三层记忆(部门 / 项目 / 长期),原生 DSH 工作台后端。右侧栏「朝堂」朝堂面板已并入本包,装这一条即可。',
branch: 'release/v1.1.5',
title: '三省六部 · 十席工作台',
description: '每个项目固定十席角色与独立会话。丞相自然下派,关键歧义才启动 Grill Me。门下通过后尚书并行派工,部门可在任务里会商。项目决定与原生审批集中在「待你处理」,丞相可用原生后台助手整理需求、跟踪进度和汇总反馈。',
keywords: ['workbench', 'sansheng', '三省六部'],
},
{
@ -58,7 +61,7 @@ const PLUGINS = [
repo: 'dsh-better-chat',
branch: 'main',
title: 'dsh-better-chat · 聊天增强',
description: '审批卡回车确认 / Esc 拒绝;默认自动审查,并从界面移除「完全权限」选项。',
description: '审批卡快捷键(可自定义)、权限界面移除「完全权限」、插件商店更新按钮;对话页提供左侧 AI 回复气泡与下方过程折叠、默认 6 轮长会话渲染窗口与顶部锚定加载、WorkBuddy 风格右侧目录时间轴,以及外观/气泡样式/宽度自定义设置,并保留官方聊天契约让 dsh-btw 等插件照常工作。',
keywords: ['chat', 'approval', 'permission'],
},
{
@ -66,23 +69,71 @@ const PLUGINS = [
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。',
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) {
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}`)
const body = await response.json()
return { commit: body.commit.id, timestamp: Math.floor(Date.parse(body.commit.timestamp) / 1000) }
}
async function githubHead(owner, repo, branch) {
const response = await fetchRetry(`${GITHUB}/repos/${owner}/${repo}/commits/${encodeURIComponent(branch)}`, {
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 = []
for (const plugin of PLUGINS) {
const head = await headOf(plugin.repo, plugin.branch)
const pkgResponse = await fetch(`${API}/repos/DeepsSeekHarness/${plugin.repo}/contents/package.json?ref=${plugin.branch}`)
const onGithub = plugin.github === true
const head = onGithub ? await githubHead(plugin.owner, plugin.repo, plugin.branch) : await headOf(plugin.repo, plugin.branch)
const web = onGithub ? `https://github.com/${plugin.owner}/${plugin.repo}` : `${WEB}/${plugin.repo}`
// Read package.json through each host's API. For GitHub we deliberately use
// the contents API (api.github.com), not raw.githubusercontent.com: the raw
// host resets TLS connections from this machine while the API stays reliable.
const pkgUrl = onGithub
? `${GITHUB}/repos/${plugin.owner}/${plugin.repo}/contents/package.json?ref=${head.commit}`
: `${API}/repos/DeepsSeekHarness/${plugin.repo}/contents/package.json?ref=${head.commit}`
const pkgResponse = await fetchRetry(pkgUrl, onGithub
? { headers: { Accept: 'application/vnd.github+json', 'User-Agent': 'dsh-market-index' } }
: {})
if (!pkgResponse.ok) throw new Error(`package.json fetch failed for ${plugin.repo}: HTTP ${pkgResponse.status}`)
const pkgFile = await pkgResponse.json()
const pkg = JSON.parse(Buffer.from(pkgFile.content, 'base64').toString('utf8'))
@ -93,15 +144,15 @@ for (const plugin of PLUGINS) {
title: plugin.title,
icon: plugin.icon,
description: plugin.description,
author: 'newbie',
homepage: `${WEB}/${plugin.repo}`,
repository: { url: `${WEB}/${plugin.repo}` },
author: plugin.author || 'newbie',
homepage: web,
repository: { url: web },
metadata: { keywords: plugin.keywords, labels: [], sortKeys: {} },
versions: [
{
version: version,
publishTimestamp: head.timestamp,
source: { type: 'git', url: `${WEB}/${plugin.repo}`, commit: head.commit },
source: { type: 'git', url: web, commit: head.commit },
engines: {},
},
],
@ -112,7 +163,7 @@ for (const plugin of PLUGINS) {
const index = {
format: 1,
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: {} },
plugins,
}

View File

@ -1,42 +1,42 @@
{
"format": 1,
"generatedAt": "2026-11-13T03:50:22.887Z",
"generatedAt": "2026-11-29T05:56:03.000Z",
"components": [
{
"id": "dsh-sansheng-liubu",
"package": "dsh-sansheng-liubu-mode",
"version": "0.14.0",
"package": "dsh-sansheng-liubu",
"version": "1.1.2",
"repo": "dsh-sansheng-liubu",
"branch": "fix/workbench-entry-project-isolation",
"sourceCommit": "efc4a32c758d1df9bb3c22bb53f1359e0d433ab1",
"publishTimestamp": 1794480735
"branch": "release/v1.1.2",
"sourceCommit": "fc414a542b4306f8469ccf028ce933cee3b1b938",
"publishTimestamp": 1795684440
},
{
"id": "dsh-brain",
"package": "dsh-brain",
"version": "0.9.10",
"version": "0.10.2",
"repo": "dsh-brain",
"branch": "main",
"sourceCommit": "7d053b2fe9ce911848230d14d8032293a4e8e8c3",
"publishTimestamp": 1794643537
"sourceCommit": "7a4ad249fc469ebbd4872f827f1b6b89c7a1a574",
"publishTimestamp": 1795695017
},
{
"id": "workspace-groups-remote",
"package": "workspace-groups-remote",
"version": "1.3.0",
"version": "1.3.1",
"repo": "workspace-groups-remote",
"branch": "main",
"sourceCommit": "637c62f1f347bbd65bc0c856e9fc164ff2abc312",
"publishTimestamp": 1794539664
"sourceCommit": "97f4c3e07ffa665cfa2b5476625b4f1715f18295",
"publishTimestamp": 1795054575
},
{
"id": "dsh-better-chat",
"package": "dsh-better-chat",
"version": "1.0.1",
"version": "1.4.0",
"repo": "dsh-better-chat",
"branch": "main",
"sourceCommit": "5c80061f08cec764131300008d4d5396612936a3",
"publishTimestamp": 1794535495
"sourceCommit": "7d8dfb1e5dc6e943961a874d346179e24e15a74f",
"publishTimestamp": 1795931763
}
],
"bundle": {

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
}