Compare commits
1 Commits
main
...
release/wo
| Author | SHA1 | Date |
|---|---|---|
|
|
3f10571cd1 |
11
README.md
11
README.md
|
|
@ -14,11 +14,16 @@
|
||||||
|
|
||||||
## 维护
|
## 维护
|
||||||
|
|
||||||
发新版后重新生成索引(自动读取各仓库分支 HEAD 的提交号与时间):
|
发布批次统一记录在 `release-manifest.json`(组件版本、固定提交、全家桶版本)。
|
||||||
|
`make-index.mjs` 优先从该清单生成索引;清单不存在时才回退到读取各仓库分支 HEAD。
|
||||||
|
发版后:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
node make-index.mjs
|
node make-index.mjs
|
||||||
|
node verify-release.mjs --qq-dsh ../QQ-dsh --sources ..
|
||||||
```
|
```
|
||||||
|
|
||||||
生成后把 `index.json` 提交到本仓库即可。索引格式由 DSH 自带的
|
`verify-release.mjs` 同时检查独立插件索引与 QQ-dsh 全家桶的版本、固定提交和
|
||||||
`@deepseek-ai/dsh-plugin-market-index` 校验器定义。
|
构建产物是否存在,两个安装渠道不一致时直接失败。生成/校验后把 `index.json`
|
||||||
|
提交到本仓库即可。索引格式由 DSH 自带的 `@deepseek-ai/dsh-plugin-market-index`
|
||||||
|
校验器定义。
|
||||||
|
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
<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>
|
|
||||||
|
Before Width: | Height: | Size: 731 B |
Binary file not shown.
|
Before Width: | Height: | Size: 30 KiB |
69
index.json
69
index.json
|
|
@ -9,10 +9,10 @@
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
{
|
{
|
||||||
"name": "dsh-sansheng-liubu",
|
"name": "dsh-sansheng-liubu-mode",
|
||||||
"title": "三省六部 · 十席工作台",
|
"title": "三省六部工作台",
|
||||||
"icon": "icons/sansheng.png",
|
"icon": "icons/sansheng.png",
|
||||||
"description": "每个项目固定十席角色与独立会话:朝堂/任务/成果;部门派工落到真实会话、结果可追溯;模型选择自动记住并持久化;项目共识随每次模型请求注入部门;打开部门复用原会话,缺失时确认重建。",
|
"description": "十个独立部门会话的派发、审批与三层记忆(部门 / 项目 / 长期),原生 DSH 工作台后端。右侧栏「朝堂」朝堂面板已并入本包,装这一条即可。",
|
||||||
"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": "1.0.0",
|
"version": "0.14.0",
|
||||||
"publishTimestamp": 1795102604,
|
"publishTimestamp": 1794480735,
|
||||||
"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": "b464496f7231816a5fc4c99bf8be4cad0b978c90"
|
"commit": "efc4a32c758d1df9bb3c22bb53f1359e0d433ab1"
|
||||||
},
|
},
|
||||||
"engines": {}
|
"engines": {}
|
||||||
}
|
}
|
||||||
|
|
@ -62,12 +62,12 @@
|
||||||
},
|
},
|
||||||
"versions": [
|
"versions": [
|
||||||
{
|
{
|
||||||
"version": "0.9.10",
|
"version": "0.9.4",
|
||||||
"publishTimestamp": 1794643520,
|
"publishTimestamp": 1794537000,
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.qyhhh.top/DeepsSeekHarness/dsh-brain",
|
"url": "https://git.qyhhh.top/DeepsSeekHarness/dsh-brain",
|
||||||
"commit": "7d053b2fe9ce911848230d14d8032293a4e8e8c3"
|
"commit": "ac1e415208d4b64dea01e36b4e1c23c83c0b0ebb"
|
||||||
},
|
},
|
||||||
"engines": {}
|
"engines": {}
|
||||||
}
|
}
|
||||||
|
|
@ -95,12 +95,12 @@
|
||||||
},
|
},
|
||||||
"versions": [
|
"versions": [
|
||||||
{
|
{
|
||||||
"version": "1.3.1",
|
"version": "1.3.0",
|
||||||
"publishTimestamp": 1795054575,
|
"publishTimestamp": 1794539559,
|
||||||
"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": "97f4c3e07ffa665cfa2b5476625b4f1715f18295"
|
"commit": "637c62f1f347bbd65bc0c856e9fc164ff2abc312"
|
||||||
},
|
},
|
||||||
"engines": {}
|
"engines": {}
|
||||||
}
|
}
|
||||||
|
|
@ -108,9 +108,9 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"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": "审批卡快捷键(可自定义)、权限界面移除「完全权限」、插件商店更新按钮,以及合并自 dsh-better-display 的阅读视图(过程折叠、毛玻璃、mcp-app 交互卡片)。",
|
||||||
"author": "newbie",
|
"author": "newbie",
|
||||||
"homepage": "https://git.qyhhh.top/DeepsSeekHarness/dsh-better-chat",
|
"homepage": "https://git.qyhhh.top/DeepsSeekHarness/dsh-better-chat",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
@ -120,51 +120,20 @@
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"chat",
|
"chat",
|
||||||
"approval",
|
"approval",
|
||||||
"permission"
|
"permission",
|
||||||
|
"reader"
|
||||||
],
|
],
|
||||||
"labels": [],
|
"labels": [],
|
||||||
"sortKeys": {}
|
"sortKeys": {}
|
||||||
},
|
},
|
||||||
"versions": [
|
"versions": [
|
||||||
{
|
{
|
||||||
"version": "1.0.3",
|
"version": "1.0.1",
|
||||||
"publishTimestamp": 1794650324,
|
"publishTimestamp": 1794535495,
|
||||||
"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": "9c0ee58021678dc530bdd21abd4ec10ec955f269"
|
"commit": "5c80061f08cec764131300008d4d5396612936a3"
|
||||||
},
|
|
||||||
"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://git.qyhhh.top/DeepsSeekHarness/ds-harness-remote-fast",
|
|
||||||
"repository": {
|
|
||||||
"url": "https://git.qyhhh.top/DeepsSeekHarness/ds-harness-remote-fast"
|
|
||||||
},
|
|
||||||
"metadata": {
|
|
||||||
"keywords": [
|
|
||||||
"remote",
|
|
||||||
"远程",
|
|
||||||
"fast"
|
|
||||||
],
|
|
||||||
"labels": [],
|
|
||||||
"sortKeys": {}
|
|
||||||
},
|
|
||||||
"versions": [
|
|
||||||
{
|
|
||||||
"version": "0.6.5-fast.3",
|
|
||||||
"publishTimestamp": 1794961195,
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.qyhhh.top/DeepsSeekHarness/ds-harness-remote-fast",
|
|
||||||
"commit": "643716d0cdb6154917291f2afed12b1ce92350e6"
|
|
||||||
},
|
},
|
||||||
"engines": {}
|
"engines": {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,14 @@
|
||||||
// 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 { writeFileSync } from 'node:fs'
|
import { existsSync, readFileSync, 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 MANIFEST = join(ROOT, 'release-manifest.json')
|
||||||
|
|
||||||
const PLUGINS = [
|
const PLUGINS = [
|
||||||
{
|
{
|
||||||
|
|
@ -57,18 +59,9 @@ const PLUGINS = [
|
||||||
icon: 'icons/chat.png',
|
icon: 'icons/chat.png',
|
||||||
repo: 'dsh-better-chat',
|
repo: 'dsh-better-chat',
|
||||||
branch: 'main',
|
branch: 'main',
|
||||||
title: 'dsh-better-chat · 聊天增强',
|
title: 'dsh-better-chat · 聊天增强与阅读视图',
|
||||||
description: '审批卡回车确认 / Esc 拒绝;默认自动审查,并从界面移除「完全权限」选项。',
|
description: '审批卡快捷键(可自定义)、权限界面移除「完全权限」、插件商店更新按钮,以及合并自 dsh-better-display 的阅读视图(过程折叠、毛玻璃、mcp-app 交互卡片)。',
|
||||||
keywords: ['chat', 'approval', 'permission'],
|
keywords: ['chat', 'approval', 'permission', 'reader'],
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'ds-harness-remote-fast',
|
|
||||||
icon: 'icons/remote-fast.png',
|
|
||||||
repo: 'ds-harness-remote-fast',
|
|
||||||
branch: 'lite',
|
|
||||||
title: 'ds-harness-remote-fast · 远程极速版',
|
|
||||||
description: 'ds-harness-remote 的极速分支(rainow):主机端首屏快照裁剪,解决大会话帧超限断连;服务端与客户端不用换,加密与配对与原版一致。本仓库为本机中转快照,源头是 GitHub 上的 rainow/ds-harness-remote-fast。',
|
|
||||||
keywords: ['remote', '远程', 'fast'],
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -79,15 +72,35 @@ async function headOf(repo, branch) {
|
||||||
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
|
||||||
|
const componentByRepo = new Map()
|
||||||
|
for (const component of release?.components ?? []) componentByRepo.set(component.repo, component)
|
||||||
|
|
||||||
const plugins = []
|
const plugins = []
|
||||||
for (const plugin of PLUGINS) {
|
for (const plugin of PLUGINS) {
|
||||||
const head = await headOf(plugin.repo, plugin.branch)
|
let version
|
||||||
const pkgResponse = await fetch(`${API}/repos/DeepsSeekHarness/${plugin.repo}/contents/package.json?ref=${plugin.branch}`)
|
let commit
|
||||||
if (!pkgResponse.ok) throw new Error(`package.json fetch failed for ${plugin.repo}: HTTP ${pkgResponse.status}`)
|
let timestamp
|
||||||
const pkgFile = await pkgResponse.json()
|
const pinned = componentByRepo.get(plugin.repo)
|
||||||
const pkg = JSON.parse(Buffer.from(pkgFile.content, 'base64').toString('utf8'))
|
if (pinned !== undefined) {
|
||||||
if (pkg.name !== plugin.name) throw new Error(`name mismatch for ${plugin.repo}: index says ${plugin.name}, package.json says ${pkg.name}`)
|
// The checked-in release manifest is the source of truth for a published
|
||||||
const version = pkg.version
|
// batch: version, commit and index entry are generated from the SAME record.
|
||||||
|
if (pinned.package !== plugin.name) throw new Error(`release manifest package mismatch for ${plugin.repo}: ${pinned.package} vs ${plugin.name}`)
|
||||||
|
version = pinned.version
|
||||||
|
commit = pinned.sourceCommit
|
||||||
|
timestamp = pinned.publishTimestamp ?? Math.floor(Date.now() / 1000)
|
||||||
|
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}`)
|
||||||
|
const pkgFile = await pkgResponse.json()
|
||||||
|
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}`)
|
||||||
|
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,
|
||||||
|
|
@ -100,13 +113,13 @@ for (const plugin of PLUGINS) {
|
||||||
versions: [
|
versions: [
|
||||||
{
|
{
|
||||||
version: version,
|
version: version,
|
||||||
publishTimestamp: head.timestamp,
|
publishTimestamp: timestamp,
|
||||||
source: { type: 'git', url: `${WEB}/${plugin.repo}`, commit: head.commit },
|
source: { type: 'git', url: `${WEB}/${plugin.repo}`, commit: commit },
|
||||||
engines: {},
|
engines: {},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
console.log(`${plugin.name} ${version} @ ${head.commit.slice(0, 8)}`)
|
console.log(`${plugin.name} ${version} @ ${String(commit).slice(0, 8)}${pinned ? ' (release-manifest)' : ' (live)'}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
const index = {
|
const index = {
|
||||||
|
|
|
||||||
|
|
@ -1,42 +1,42 @@
|
||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"generatedAt": "2026-11-19T02:26:24.000Z",
|
"generatedAt": "2026-11-13T11:12:39+08:00",
|
||||||
"components": [
|
"components": [
|
||||||
{
|
{
|
||||||
"id": "dsh-sansheng-liubu",
|
"id": "dsh-sansheng-liubu",
|
||||||
"package": "dsh-sansheng-liubu",
|
"package": "dsh-sansheng-liubu-mode",
|
||||||
"version": "0.5.2",
|
"version": "0.14.0",
|
||||||
"repo": "dsh-sansheng-liubu",
|
"repo": "dsh-sansheng-liubu",
|
||||||
"branch": "release/v0.1",
|
"branch": "fix/workbench-entry-project-isolation",
|
||||||
"sourceCommit": "55194733d7e5950140b2e6702bd188282f6f4add",
|
"sourceCommit": "efc4a32c758d1df9bb3c22bb53f1359e0d433ab1",
|
||||||
"publishTimestamp": 1795055184
|
"publishTimestamp": 1794480735
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "dsh-brain",
|
"id": "dsh-brain",
|
||||||
"package": "dsh-brain",
|
"package": "dsh-brain",
|
||||||
"version": "0.9.10",
|
"version": "0.9.4",
|
||||||
"repo": "dsh-brain",
|
"repo": "dsh-brain",
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"sourceCommit": "7d053b2fe9ce911848230d14d8032293a4e8e8c3",
|
"sourceCommit": "ac1e415208d4b64dea01e36b4e1c23c83c0b0ebb",
|
||||||
"publishTimestamp": 1794643537
|
"publishTimestamp": 1794537000
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "workspace-groups-remote",
|
"id": "workspace-groups-remote",
|
||||||
"package": "workspace-groups-remote",
|
"package": "workspace-groups-remote",
|
||||||
"version": "1.3.1",
|
"version": "1.3.0",
|
||||||
"repo": "workspace-groups-remote",
|
"repo": "workspace-groups-remote",
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"sourceCommit": "97f4c3e07ffa665cfa2b5476625b4f1715f18295",
|
"sourceCommit": "637c62f1f347bbd65bc0c856e9fc164ff2abc312",
|
||||||
"publishTimestamp": 1795054575
|
"publishTimestamp": 1794539559
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "dsh-better-chat",
|
"id": "dsh-better-chat",
|
||||||
"package": "dsh-better-chat",
|
"package": "dsh-better-chat",
|
||||||
"version": "1.0.3",
|
"version": "1.0.1",
|
||||||
"repo": "dsh-better-chat",
|
"repo": "dsh-better-chat",
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"sourceCommit": "9c0ee58021678dc530bdd21abd4ec10ec955f269",
|
"sourceCommit": "5c80061f08cec764131300008d4d5396612936a3",
|
||||||
"publishTimestamp": 1794650324
|
"publishTimestamp": 1794535495
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"bundle": {
|
"bundle": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue