Files
dsh-worktable/01_content/package.json
T
super-agent 05639e8984 feat(state): 恢复「云状态 + git 历史」能力 (REQ-20261117-0013)
背景:qiudl 分支(0.4.9-rc.2,用户原本在用的)有云状态功能——状态落在一个
独立 git 仓(~/Library/Application Support/dsh-worktable-state/),由 launchd
每 5 分钟 commit+push。Gitea 0.5.x 线没有这个功能,只有 DSH_HOME 下的单文件
镜像(worktable-state.json)。升级到 0.5.3 后两处路径不同,用户 14 个工作台
布局在界面上「消失」(数据本身还在那个 git 仓里)。

改法(不移植 976 行云状态代码,改走配置指针):
- 宿主侧 /api/worktable/state 的文件路径改为优先取本机配置
  03_local/local.json 的 cloudStatePath(指向那个 git 仓),未配置时回落到
  DSH_HOME/worktable-state.json(与旧行为一致)
- 新增 localConfigPaths / readLocalConfigField:候选链含环境变量
  DSH_WORKTABLE_LOCAL_DIR、插件根相对 03_local、DSH_HOME/03_local
- 客户端兼容旧 updatedAt 形态:旧线写 ISO 字符串,本线写毫秒数字,两种都认
  (否则指向旧文件后永远判「宿主不比本地新」而不回填)

这样云状态写入自动进 git 仓,每次变更都有提交历史,launchd 继续 push 到远端。

版本 0.5.3-local.2 -> 0.5.3-local.3

验证:build 通过;client-factory-gate 10/10;7 个兼容回归 105/105;
配置解析链在本机实测命中 <DSH_HOME>/03_local/local.json -> 云状态 git 仓路径
2026-11-18 14:32:15 +08:00

90 lines
2.6 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"name": "dsh-worktable",
"description": "工作台 Worktable:DeepSeek Harness 侧边栏的 agent 级项目容器(应用抽屉)",
"version": "0.5.3-local.3",
"repository": {
"type": "git",
"url": "https://github.com/Aisland-SJL/dsh-worktable.git",
"directory": "01_content"
},
"engines": {
"node": ">=22",
"dsh": "0.2.0-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.5 || 0.2.2-alpha.2"
},
"license": "MIT",
"type": "module",
"main": "lib/index.js",
"exports": {
".": "./lib/index.js",
"./client": "./lib/client.js",
"./package.json": "./package.json"
},
"files": [
"lib/index.js",
"lib/client.js",
"cordis.patch.yml",
"dsh.plugin.json",
"README.md",
"LICENSE"
],
"dsh": {
"bundle": {
"patch": "./cordis.patch.yml"
},
"client": {
"platform": "web",
"inject": [
"@deepseek-ai/dsh-client-ui-slots",
"@deepseek-ai/dsh-client-ui-primitives",
"@deepseek-ai/dsh-client-locale"
]
},
"compatibility": {
"dsh": "0.2.0-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.5 || 0.2.2-alpha.2",
"dshReleases": {
"0.2.0-rc.2": "compatible",
"0.2.1-rc.3": "compatible",
"0.2.1-rc.5": "compatible",
"0.2.2-alpha.2": "compatible"
}
}
},
"scripts": {
"build": "node build.mjs",
"check": "node --check lib/index.js && node --check lib/client.js",
"pack": "node release-prep.mjs",
"test:gate": "node client-factory-gate.test.mjs",
"test:sidebar": "node ../04_test/sidebar-popup.test.mjs",
"test:input": "node ../04_test/host-input.test.mjs",
"test:session": "node ../04_test/session-compat.test.mjs",
"test:details": "node ../04_test/session-details.test.mjs",
"test:update": "node ../04_test/update-check.test.mjs",
"test:transport": "node ../04_test/host-transport.test.mjs",
"test:widget": "node ../04_test/widget-mount.test.mjs",
"test:security": "node --test ../04_test/request-auth.test.mjs ../04_test/preview-files.test.mjs ../04_test/sandboxed-frame.test.mjs",
"verify:remote": "node verify-remote.mjs"
},
"peerDependencies": {
"@deepseek-ai/cordis": "*",
"@deepseek-ai/dsh-client-locale": "*",
"@deepseek-ai/dsh-host-webserver": "*"
},
"peerDependenciesMeta": {
"@deepseek-ai/cordis": {
"optional": true
},
"@deepseek-ai/dsh-host-webserver": {
"optional": true
},
"@deepseek-ai/dsh-client-locale": {
"optional": true
}
},
"devDependencies": {
"esbuild": "^0.25.0",
"highlight.js": "^11.12.0",
"markdown-it": "^15.0.0",
"xterm": "^5.3.0"
}
}