DSH Plugins Marketplace

DSH Plugins

Plugins

/

Terminal & Clients

/

dsh-liya-archives

f

dsh-liya-archives

Manifest valid

Archive Session Drawer (Lia Edition): The "Archived (n)" entry at the bottom of the sidebar lists archived sessions grouped by workspace, with one-click options to restore and open / copy as a new session / move back to the sidebar only. Adapted from chou109/dsh-archives (MIT, https://github.com/chou109/dsh-archives).

UI (client)hasBundlePatchMachine translated

dsh-liya-archives · 归档会话抽屉(莉娅版)

抄改自 chou109/dsh-archives(MIT)。 社区礼仪:保留原作者版权声明与本改造说明,任何分发请保留 LICENSE 全文。

DSH Web 侧边栏底部的归档会话抽屉:把被归档后「消失」的会话找回来。

DSH 会话归档后只从侧边栏隐藏,日志和数据都还在磁盘上,但界面没有任何恢复入口。 本插件在侧边栏底部加一个「已归档 (n)」按钮,列出全部归档会话、按工作区分组,一键操作:

操作效果
点击会话行恢复并打开(取消归档 → 等集合同步 → 打开,实时生效)
⿻ 按钮复制为新会话并打开(原会话保留在已归档)
↻ 按钮仅移回侧边栏,不打开

与原版(chou109/dsh-archives)的差异

项原版莉娅版
包名 / bundle id / 槽位 id / locale NSdsh-archivesdsh-liya-archives
host 路由POST /archives/unarchivePOST /liya-archives/unarchive
列表 key渲染有 React key 警告已补 key 修复

功能与 UI 语义(按工作区分组折叠、展开状态记忆、中英双语文案、点面板外关闭、rail 收起模式、无归档自动隐藏)与原版一致。

结构

dsh-liya-archives/
  package.json        # name 必须等于 bundle id 和加载器 name
  cordis.patch.yml    # 挂载条目(insert → web profile)
  index.js            # host 半:POST /liya-archives/unarchive
  client.js           # browser 半:sidebar.footer.action 槽位 UI
  LICENSE             # MIT(含原版与改造版权声明)
  tests/              # 冒烟测试(host + client,无外部依赖)

自检与打包

# 冒烟测试(host + client,无外部依赖,用 DSH profile 的真实依赖跑)
$env:DSH_PROFILE_NODE_MODULES = "<你的 DSH profile node_modules 路径>"
node tests/host-test.mjs
node tests/smoke-test.cjs

# 打包(产物为可分发 tgz)
pnpm pack

安装到 DSH

dsh plugin --profile web add <插件目录>

dsh 请替换为阁下 DSH 安装对应的 CLI 调用方式。

装完重启 WebUI(client 半生效需要),侧边栏底部出现「已归档 (n)」; 没有任何归档会话时按钮自动隐藏——先归档一个会话再验证。

数据契约

  • 归档集合:$DSH_HOME/storages/workspace.json → global.archivedSessionIds
  • 取消归档走 workspace registry 自身写路径(enqueueOperation → setState), 经 domain/changed → host/archived-sessions-changed 帧实时同步所有标签页
  • 直接 open() 归档会话会被运行时清除选中(框架设计)——所以「恢复」必须先取消归档、等集合同步再打开

已知限制

  • 面板是固定定位浮层,与 Cordis 插件面板同时打开会重叠
  • 针对 dsh 0.1.0-rc.5/rc.6 开发验证;升级 DSH 后若槽位/服务名变更需适配

Comments

Loading…

Similar plugins

dsh-archives

by chou109

DSH Web 侧边栏底部的归档会话抽屉:按工作区分组折叠,一键恢复并打开、复制为新会话或移回侧边栏。 Archived-session drawer at the bottom of the DSH web sidebar: grouped by workspace; restore & open, fork, or unarchive with one click.

Manifest valid

★ 0

MIT

JavaScript

Oct 24, 2026

dsh plugin --profile web add dsh-archives

by keepermttl

DeepSeek Harness 归档会话管理插件:查看/恢复已归档会话(回到原工作区分组)+ 右上角一键关闭 dsh。MIT 许可,欢迎收录到任何插件合集,注明出处即可。

Sessions & MessagesManifest valid

★ 4

MIT

TypeScript

Sep 26, 2026

dsh plugin --profile web add @dsh-external/dsh-archive-viewer

by hongdougao111

DSH 归档会话清理:把已归档的会话移进可还原的回收站,或彻底删除。

Development & InfrastructureSessions & MessagesManifest valid

★ 2

MIT

JavaScript

Nov 8, 2026

dsh plugin --profile web add dsh-archive-trash

by d0ublecl1ck

DSH Web 插件:最后一个未归档会话被归档的瞬间自动隐藏该工作区行,另在工作区行「…」菜单里追加「隐藏工作区」并配官方 Modal 恢复入口;只切 display,不归档、不删除、不改写任何工作区注册与会话数据。

UI & ExperienceDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 0

MIT

JavaScript

Oct 7, 2026

dsh plugin --profile web add dsh-hide-empty-workspace

by swxs

DSH 归档会话管理插件,支持查看归档列表、原位恢复与跨区迁移,Web 侧边栏一键管理

Manifest valid

★ 0

MIT

JavaScript

Oct 22, 2026

dsh plugin --profile web add @swxs/archive-restore

by xiyue718

DSH 归档会话管理插件:查看、恢复、永久删除归档会话。 / Manage archived DSH sessions: list, restore, and permanently delete from Settings.

Manifest valid

★ 0

TypeScript

Sep 20, 2026

dsh plugin --profile web add @dsh-external/ui-archive-manager