Fix Sansheng 1.1.0 marketplace install source

This commit is contained in:
qyh15 2026-11-25 19:20:56 +08:00
parent ccfc5ec9ad
commit ad5a2cfc5b
3 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@
"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": "216a750fd82b853acc6d2313711c3e98b4d3b22f" "commit": "3b3c8fe75ddb390d4ba79a52d16b208f8453c2b7"
}, },
"engines": {} "engines": {}
} }

View File

@ -29,7 +29,7 @@ const PLUGINS = [
name: 'dsh-sansheng-liubu', 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.0',
title: '三省六部 · 十席工作台', title: '三省六部 · 十席工作台',
description: '每个项目固定十席角色与独立会话:朝堂/任务/成果;丞相需求门控(需求清单、明确发布/批准后派工)与 Grill Me 自动追问;部门派工落到真实会话、结果可追溯;模型选择自动记住并持久化;项目共识随每次模型请求注入部门;打开部门复用原会话,缺失时确认重建。', description: '每个项目固定十席角色与独立会话:朝堂/任务/成果;丞相需求门控(需求清单、明确发布/批准后派工)与 Grill Me 自动追问;部门派工落到真实会话、结果可追溯;模型选择自动记住并持久化;项目共识随每次模型请求注入部门;打开部门复用原会话,缺失时确认重建。',
keywords: ['workbench', 'sansheng', '三省六部'], keywords: ['workbench', 'sansheng', '三省六部'],
@ -73,7 +73,7 @@ const PLUGINS = [
] ]
async function headOf(repo, branch) { async function headOf(repo, branch) {
const response = await fetch(`${API}/repos/DeepsSeekHarness/${repo}/branches/${branch}`) const response = await fetch(`${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) }
@ -82,7 +82,7 @@ async function headOf(repo, branch) {
const plugins = [] const plugins = []
for (const plugin of PLUGINS) { for (const plugin of PLUGINS) {
const head = await headOf(plugin.repo, plugin.branch) const head = await headOf(plugin.repo, plugin.branch)
const pkgResponse = await fetch(`${API}/repos/DeepsSeekHarness/${plugin.repo}/contents/package.json?ref=${plugin.branch}`) const pkgResponse = await fetch(`${API}/repos/DeepsSeekHarness/${plugin.repo}/contents/package.json?ref=${head.commit}`)
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'))

View File

@ -7,8 +7,8 @@
"package": "dsh-sansheng-liubu", "package": "dsh-sansheng-liubu",
"version": "1.1.0", "version": "1.1.0",
"repo": "dsh-sansheng-liubu", "repo": "dsh-sansheng-liubu",
"branch": "master", "branch": "release/v1.1.0",
"sourceCommit": "216a750fd82b853acc6d2313711c3e98b4d3b22f", "sourceCommit": "3b3c8fe75ddb390d4ba79a52d16b208f8453c2b7",
"publishTimestamp": 1795591325 "publishTimestamp": 1795591325
}, },
{ {