Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b8349073d | ||
|
|
65b99b8cf3 | ||
|
|
071507e53f | ||
|
|
a25a23fcdb | ||
|
|
73f1ce439e |
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "dsh-worktable",
|
||||
"description": "工作台:DSH 侧边栏的 agent 级项目容器,收纳如 TravelAtlas 等自装项目",
|
||||
"version": "0.5.3-local.6",
|
||||
"version": "0.5.3-local.7",
|
||||
"entry": {
|
||||
"name": "dsh-worktable",
|
||||
"inject": []
|
||||
|
||||
@@ -8427,7 +8427,7 @@ var css = xterm_default + "\n" + [
|
||||
// 动机:ds-bot 是随应用升级的 .bundled-plugins tgz 安装,升级/重装必丢改;
|
||||
// 改为由本插件注入 CSS,只要工作台装着,ds-bot 随便升级都不丢。
|
||||
// 注意:nav.bt-home-nav 必须带 nav 标签选择器 —— BotHome 错误面板有同名 div,不能误伤。
|
||||
'[data-slot="sidebar.footer.action"] .bt-return{display:none!important}',
|
||||
// 「返回 bot」按钮([data-slot="sidebar.footer.action"] .bt-return)按用户要求保留显示,不隐藏。
|
||||
'[data-testid="duet-transcript-toggle"]{display:none!important}',
|
||||
"nav.bt-home-nav{display:none!important}",
|
||||
".bt-connect-wrap{display:none!important}"
|
||||
@@ -8967,7 +8967,7 @@ function hostPreviewUrl(path, surface = {
|
||||
if (url.protocol !== "http:" && url.protocol !== "https:") throw new Error("Unsupported Host preview protocol");
|
||||
return url.href;
|
||||
}
|
||||
var UPDATE_TGZ = "https://gitea.ququclean.com/xiaoqu/dsh-worktable/releases/download/v0.5.3-local.6/dsh-worktable.tgz";
|
||||
var UPDATE_TGZ = "https://gitea.ququclean.com/xiaoqu/dsh-worktable/releases/download/v0.5.3-local.7/dsh-worktable.tgz";
|
||||
function worktableUpgrade(protocol = typeof location === "undefined" ? "http:" : location.protocol) {
|
||||
const desktop = protocol === "dsh-app:";
|
||||
const command = "dsh plugin --profile " + (desktop ? "desktop" : "web") + ' add "' + UPDATE_TGZ + '"';
|
||||
@@ -9200,7 +9200,7 @@ var CHANGELOG_V030 = `\u66F4\u65B0\u516C\u544A \xB7 v0.5.1
|
||||
\u30103.1 \u6587\u5B57\u4E0E\u7EC6\u8282\u6253\u78E8\u3011\u5168\u5C40\u5B57\u4F53\u4E0E\u5B57\u53F7\u7EDF\u4E00\u4F18\u5316\u3001\u4E0B\u62C9\u9762\u677F\u73BB\u7483\u5316\u4E0E\u5BF9\u9F50\u3001\u83DC\u5355\u70B9\u9009\u540E\u4FDD\u6301\u6253\u5F00\u4FBF\u4E8E\u8FDE\u7EED\u9884\u89C8\u3001\u6309\u94AE\u63CF\u8FB9\u4E0E\u60AC\u505C\u53CD\u9988\u7B49\u4EA4\u4E92\u7EC6\u8282\uFF1B\u540C\u65F6\u4FEE\u590D\u4E86\u591A\u9879\u4F53\u9A8C\u95EE\u9898\uFF08\u7167\u7247\u4E0A\u4F20\u6E05\u6670\u5EA6\u3001\u80CC\u666F\u7F51\u683C\u7EBF\u5728\u7167\u7247\u6A21\u5F0F\u4E0B\u4E0D\u751F\u6548\u3001\u6D45\u8272\u4E3B\u9898\u4E0B\u5DE5\u4F5C\u72B6\u6001\u5149\u6548\u4E0D\u53EF\u89C1\u7B49\uFF09\u3002`;
|
||||
|
||||
// src/client/updateCheck.ts
|
||||
var LOCAL_VERSION = false ? "dev" : "0.5.3-local.6";
|
||||
var LOCAL_VERSION = false ? "dev" : "0.5.3-local.7";
|
||||
var UPDATE_HOST = "https://gitea.ququclean.com";
|
||||
var UPDATE_REPO = "xiaoqu/dsh-worktable";
|
||||
var K_UPDATE_CHECK = "dsh.worktable.updateCheck.v1";
|
||||
|
||||
@@ -382,7 +382,7 @@ function resolveDshHomeSafe() {
|
||||
cachedDshHome = baseDshHome();
|
||||
return cachedDshHome;
|
||||
}
|
||||
var PLUGIN_VERSION = false ? "dev" : "0.5.3-local.6";
|
||||
var PLUGIN_VERSION = false ? "dev" : "0.5.3-local.7";
|
||||
var name = "dsh-worktable";
|
||||
var inject = ["webServer", "sessions"];
|
||||
var HEALTH_PATH = "/api/worktable/health";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "dsh-worktable",
|
||||
"description": "工作台 Worktable:DeepSeek Harness 侧边栏的 agent 级项目容器(应用抽屉)",
|
||||
"version": "0.5.3-local.6",
|
||||
"version": "0.5.3-local.7",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Aisland-SJL/dsh-worktable.git",
|
||||
|
||||
@@ -38,7 +38,7 @@ export function hostPreviewUrl(
|
||||
/** Keep update instructions on the active profile; Desktop must use its bundled CLI. */
|
||||
// 本仓发布在自建 Gitea:它不支持 GitHub 的 /releases/latest/download 简写,
|
||||
// 安装命令必须带具体 tag。这里给固定 tag(随发布更新),避免给出 404 的命令。
|
||||
const UPDATE_TGZ = 'https://gitea.ququclean.com/xiaoqu/dsh-worktable/releases/download/v0.5.3-local.6/dsh-worktable.tgz'
|
||||
const UPDATE_TGZ = 'https://gitea.ququclean.com/xiaoqu/dsh-worktable/releases/download/v0.5.3-local.7/dsh-worktable.tgz'
|
||||
|
||||
export function worktableUpgrade(protocol = typeof location === 'undefined' ? 'http:' : location.protocol) {
|
||||
const desktop = protocol === 'dsh-app:'
|
||||
|
||||
@@ -676,7 +676,7 @@ export const css = xtermCss + '\n' + [
|
||||
// 动机:ds-bot 是随应用升级的 .bundled-plugins tgz 安装,升级/重装必丢改;
|
||||
// 改为由本插件注入 CSS,只要工作台装着,ds-bot 随便升级都不丢。
|
||||
// 注意:nav.bt-home-nav 必须带 nav 标签选择器 —— BotHome 错误面板有同名 div,不能误伤。
|
||||
'[data-slot="sidebar.footer.action"] .bt-return{display:none!important}',
|
||||
// 「返回 bot」按钮([data-slot="sidebar.footer.action"] .bt-return)按用户要求保留显示,不隐藏。
|
||||
'[data-testid="duet-transcript-toggle"]{display:none!important}',
|
||||
'nav.bt-home-nav{display:none!important}',
|
||||
'.bt-connect-wrap{display:none!important}',
|
||||
|
||||
@@ -26,7 +26,7 @@ function npmCliPath() {
|
||||
return c[0] ?? 'npm'
|
||||
}
|
||||
|
||||
const REPO = 'Aisland-SJL/dsh-worktable'
|
||||
const REPO = process.env.SLARK_WT_REPO || 'Aisland-SJL/dsh-worktable'
|
||||
// 参数严格解析:--expect-sha <64位hex> [tag];缺值/非 hex/重复参数/多余 tag 一律拒绝
|
||||
const args = process.argv.slice(2)
|
||||
let EXPECT_SHA = null
|
||||
@@ -49,7 +49,9 @@ for (let i = 0; i < args.length; i++) {
|
||||
sawTag = true
|
||||
}
|
||||
// latest 用特殊路径 /releases/latest/download/<asset>;具体 tag 用 /releases/download/<tag>/<asset>(tag 保留 v 前缀)
|
||||
const assetBase = TAG === '' ? 'https://github.com/' + REPO + '/releases/latest/download/' : 'https://github.com/' + REPO + '/releases/download/' + TAG + '/'
|
||||
// SLARK_WT_HOST 可指向自建 Gitea(默认 GitHub 上游)
|
||||
const HOST = process.env.SLARK_WT_HOST || 'https://github.com'
|
||||
const assetBase = TAG === '' ? HOST + '/' + REPO + '/releases/latest/download/' : HOST + '/' + REPO + '/releases/download/' + TAG + '/'
|
||||
|
||||
function httpGet(url, outFile) {
|
||||
// PowerShell Invoke-WebRequest:走 WinINET 系统代理(本机网络环境需要);-L 行为由 IWR 自动跟随重定向
|
||||
@@ -69,7 +71,8 @@ console.log('[verify-remote] GET ' + fixedUrl)
|
||||
if (!httpGet(fixedUrl, fixedFile)) { console.error('[verify-remote] FAIL: download fixed-name asset'); process.exit(1) }
|
||||
|
||||
// 2. 解包读版本,拼版本化 URL 并下载
|
||||
const listTar = spawnSync('tar', ['-tzf', fixedFile], { encoding: 'utf8' })
|
||||
// Windows: GNU tar 会把 "C:\..." 的盘符当成 rsh 主机,必须 --force-local
|
||||
const listTar = spawnSync('tar', ['--force-local', '-tzf', fixedFile], { encoding: 'utf8' })
|
||||
if (listTar.status !== 0) { console.error('[verify-remote] FAIL: tar -tzf'); process.exit(1) }
|
||||
const entries = listTar.stdout.split(/\r?\n/).filter(Boolean)
|
||||
const EXPECTED = ['package/LICENSE','package/README.md','package/cordis.patch.yml','package/dsh.plugin.json','package/lib/client.js','package/lib/index.js','package/package.json']
|
||||
@@ -77,7 +80,7 @@ const okStruct = entries.length === EXPECTED.length && EXPECTED.every((e) => ent
|
||||
if (!okStruct) { console.error('[verify-remote] FAIL: structure mismatch: ' + entries.join(',')); process.exit(1) }
|
||||
console.log('[verify-remote] structure ok (7 files)')
|
||||
const ext = join(work, 'ext'); mkdirSync(ext, { recursive: true })
|
||||
const x = spawnSync('tar', ['-xzf', fixedFile, '-C', ext])
|
||||
const x = spawnSync('tar', ['--force-local', '-xzf', fixedFile, '-C', ext])
|
||||
if (x.status !== 0) { console.error('[verify-remote] FAIL: tar extract'); process.exit(1) }
|
||||
const pkg = JSON.parse(readFileSync(join(ext, 'package', 'package.json'), 'utf8'))
|
||||
const manifest = JSON.parse(readFileSync(join(ext, 'package', 'dsh.plugin.json'), 'utf8'))
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
> 每条标注日期、动机、落点与验证方式。改动在 `01_content/src/`,经 `npm run build`
|
||||
> 产出 `lib/`;发布物由 `npm run pack`(`01_content/release-prep.mjs`)生成。
|
||||
|
||||
当前版本:**0.5.3-local.6**(2026-12-02)
|
||||
产物:`01_content/dist/v0.5.3-local.6/dsh-worktable.tgz`,485062 字节,
|
||||
sha256 `95b2b6b1e434c001e653db7e855deba54a355c86b0d5b0d605c7ac47a3e680b9`
|
||||
当前版本:**0.5.3-local.7**(2026-12-02)
|
||||
产物:`01_content/dist/v0.5.3-local.7/dsh-worktable.tgz`,485166 字节,
|
||||
sha256 `8c30d35f7b01a2242a311f36d5474c2764fef903049fbbbc3f2c14dfad126bec`
|
||||
|
||||
---
|
||||
|
||||
@@ -115,12 +115,14 @@ ds-bot 是随应用升级的 `.bundled-plugins` tgz 安装,**升级/重装必
|
||||
**改动**:`src/client/styles.ts` 末尾四条:
|
||||
|
||||
```css
|
||||
[data-slot="sidebar.footer.action"] .bt-return{display:none!important} /* ds-bot「返回 bot」按钮 */
|
||||
[data-testid="duet-transcript-toggle"]{display:none!important} /* duet 语音记录开关 */
|
||||
nav.bt-home-nav{display:none!important} /* 首页/消息/待办 */
|
||||
.bt-connect-wrap{display:none!important} /* 连接插件 */
|
||||
```
|
||||
|
||||
**0.5.3-local.7 起**:侧栏底部的「返回 bot」按钮(`[data-slot="sidebar.footer.action"] .bt-return`)
|
||||
按用户要求**恢复显示**,不再隐藏。
|
||||
|
||||
**注意**:`nav.bt-home-nav` 必须带 `nav` 标签选择器 —— BotHome 错误面板有同名
|
||||
`div.bt-home-nav`,不能误伤。
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
> ## 📦 本仓库是内部补丁分发仓,不是上游源码仓
|
||||
>
|
||||
> 上游:<https://github.com/Aisland-SJL/dsh-worktable> | 本仓 = 上游 **v0.5.1** + 桌面端状态持久化补丁 + 本项目自用的若干增强(`0.5.3-local.6`)。
|
||||
> 上游:<https://github.com/Aisland-SJL/dsh-worktable> | 本仓 = 上游 **v0.5.1** + 桌面端状态持久化补丁 + 本项目自用的若干增强(`0.5.3-local.7`)。
|
||||
> 下面从「Screenshots」开始的全部内容是上游 README 原文;本地改动逐条记录见 [LOCAL-CHANGES.md](02_process/LOCAL-CHANGES.md)。
|
||||
|
||||
### 要不要装
|
||||
@@ -16,16 +16,16 @@
|
||||
|
||||
### 安装
|
||||
|
||||
当前版本 **v0.5.3-local.6**:
|
||||
当前版本 **v0.5.3-local.7**:
|
||||
|
||||
```bash
|
||||
dsh plugin --profile web add "https://gitea.ququclean.com/xiaoqu/dsh-worktable/releases/download/v0.5.3-local.6/dsh-worktable.tgz"
|
||||
dsh plugin --profile web add "https://gitea.ququclean.com/xiaoqu/dsh-worktable/releases/download/v0.5.3-local.7/dsh-worktable.tgz"
|
||||
```
|
||||
|
||||
- **桌面端:先完全退出 Slark,再执行命令**,装完手动重开;不要在宿主运行时安装。
|
||||
- `--profile web` 按你自己的 profile 名字改。
|
||||
- 资产 `dsh-worktable.tgz`,485062 字节,sha256:
|
||||
`95b2b6b1e434c001e653db7e855deba54a355c86b0d5b0d605c7ac47a3e680b9`
|
||||
- 资产 `dsh-worktable.tgz`,485166 字节,sha256:
|
||||
`8c30d35f7b01a2242a311f36d5474c2764fef903049fbbbc3f2c14dfad126bec`
|
||||
(下载后可 `Get-FileHash dsh-worktable.tgz -Algorithm SHA256` 核对)
|
||||
- 声明兼容的 DSH 版本:`0.2.0-rc.2` / `0.2.1-rc.3` / `0.2.1-rc.5` / `0.2.2-alpha.2`。
|
||||
宿主不在这个列表里时,安装会被兼容性检查直接拒绝并回滚。
|
||||
@@ -50,7 +50,7 @@ dsh plugin --profile web add "https://gitea.ququclean.com/xiaoqu/dsh-worktable/r
|
||||
|
||||
### 升级与回退
|
||||
|
||||
- 装上 `0.5.3-local.6` 后,插件不会提示升级到 0.5.1。
|
||||
- 装上 `0.5.3-local.7` 后,插件不会提示升级到 0.5.1。
|
||||
- 上游发布 0.5.2 及以上时插件会提示升级;**一旦升级就回到没有补丁的状态**,重启又会丢数据。新版本需要把补丁重新合并(改动清单见 [LOCAL-CHANGES.md](02_process/LOCAL-CHANGES.md))。
|
||||
- 回退官方版:
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user