Skip to content

dsh-client-ui-settings-sync

Verified

@linbin-mk/dsh-client-ui-settings-sync · v0.3.2 · MIT · Web UI

Session sync settings plugin for the dsh web GUI: the Sync section page with git remote, cadence, project mappings, and manual sync, talking to the host through the plugin's own same-origin HTTP API

Install

dsh plugin add @linbin-mk/dsh-client-ui-settings-sync

Confirm the layer applied with dsh --profile default --dump-config — see the install guide.

Source

Tags

Creators

Readme

English | 简体中文

@linbin-mk/dsh-client-ui-settings-sync

npm 版本 许可证

dsh-session-sync 插件的浏览器半边:DeepSeek Harness Web GUI 的会话同步设置页(settings.section id sync)与侧栏状态点(sidebar.footer.action id session-sync-status)。

设置段走 harness 通用的 config form(ctx.configForms.get('session-sync'):读取、订阅推送,写入是带修订号围栏的 mutate),因此不碰 harness 的 RPC 表;状态、手动同步/清理与日志经 host 自建的同源 HTTP API(/session-sync/*,普通 fetch)传输。Host 把偏好保留在浏览器进程内的页面(非 loopback,mode: 'memory')只读展示配置、禁用全部写入控件;config form 把 host 的拒绝压成 false,此时页面再用插件的 POST /session-sync/settings 取回拒绝原因。工作区选项来自标准的 useWorkspaces hook。

host 半边见 @linbin-mk/dsh-session-sync。

组合配置

- id: ui-settings-sync
  name: '@linbin-mk/dsh-client-ui-settings-sync'

开发

pnpm test        # controller、设置页、状态页脚、slot 注册
pnpm typecheck
pnpm build       # tsc(类型)+ tsdown(node 半边 + lib/client.js 浏览器 bundle)

测试基于最小假件(tests/helpers.ts)与 vendor 的快照存储引擎运行——因为已发布的 harness 客户端包只以浏览器 bundle 提供其 /client 运行时;详见仓库 README。

许可证

MIT —— 见 LICENSE。

src/client/store.ts 中的快照存储引擎裁剪自采用 MIT 许可证的 DeepSeek Harness;浏览器 bundle(lib/client.js)在构建期内联了同样采用 MIT 许可证的 zustand、immer 与 clsx。上游版权声明与许可证文本见 NOTICE。