DeepSHPlugins
easy-archive 项目预览
GITHUB / COMMUNITY PROJECT

easy-archive

UI 增强JavaScriptMIT

工作区侧边栏行内两击归档:点一次变红确认,再点即归档,归档项不再出现在 ⋮ 菜单里。

1 Starsbainianlaoyao 更新时间 2026-08-17
访问 GitHub 仓库
easy-archive 项目预览

项目介绍

中文

工作区侧边栏行内两击归档:点一次变红确认,再点即归档,归档项不再出现在 ⋮ 菜单里。

English

Two-step inline archive on workspace sidebar rows — one click arms a red confirm, the second click archives; the archive entry is removed from the ⋮ menu.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
bainianlaoyao
仓库
bainianlaoyao/easy-archive
GitHub Stars
1
Forks
0
开发语言
JavaScript
许可证
MIT
最近推送
2026-08-17
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

54/ 100
维护活跃
83
文档与实用信息
100
生态关注度
9
安装便捷信号
100
项目声明信号
100

README 含完整安装与使用说明;关注度尚低(1);标准命令一键安装。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add github:bainianlaoyao/easy-archive

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

easy-archive

A DSH (DeepSeek Harness) web plugin that moves session archiving out of the kebab (⋮) menu and onto the workspace sidebar row itself, as a two-step inline button:

  1. Hover a session row — an archive icon appears right before the ⋮ button.
  2. Click once — the button switches to a red 「确认归档 / Confirm archive」 pill.
  3. Click again — the session is archived.

The archive item is removed from the ⋮ menu — archiving lives only on the row, never buried in a submenu.

Features

  • Hover-revealed inline archive button on every session row (next to the ⋮ menu);

one click arms the red confirm, the second commits.

  • Archive entry automatically hidden from the ⋮ menu whenever it opens

(rename / fork stay where they are).

  • No slot takeover: the stock workspace browser keeps rendering; rename,

fork, search, drag-reorder and everything else stay intact.

  • Archive runs through the same wire call the built-in menu used

(ctx.workspaces.archiveSession), so behavior and permissions are identical.

  • Safety nets: the armed confirm auto-disarms after 4s, on mouse-leave, or on

any click elsewhere; rows with ambiguous identities never get a button rather than risk archiving the wrong session.

  • Locale-aware (zh / en), no build step, no React dependency.

Install

From the DSH plugin market (recommended):

dsh plugin --profile web add github:bainianlaoyao/easy-archive

…or add it manually to the web profile's package.json:

{
  "dependencies": { "easy-archive": "github:bainianlaoyao/easy-archive" },
  "dsh": { "profile": { "bundles": [ "...", "easy-archive" ] } }
}

then pnpm install in the profile directory and restart dsh web (new plugins enter the window.__DSH_BOOT__ graph at boot; later edits to lib/client.js hot-apply on refresh).

How it works

The host half (lib/index.js) is an inert plugin row that carries the dsh.client declaration into the profile's loader graph; the browser half (lib/client.js) observes the sidebar DOM and, for every rendered session row:

  • resolves the session id exactly from the ctx.sessions.list snapshot by

display title (disambiguated by the rendered relative-time bucket when titles repeat),

  • stamps the row with the id and inserts a 16px archive button into the row's

action cell, before the kebab,

  • removes the archive item from any ⋮ menu it sees open.

Clicking the button never bubbles to the row's "open session" handler.

Development

node scripts/smoke.mjs   # validate the browser bundle shape
node scripts/check.mjs  # (alias) syntax + smoke

Notes

  • Blank "New Session" rows and search-result rows never get the button.
  • Sessions whose display title and time bucket collide are skipped

(conservative: no wrong-session archives).

  • Uninstall: remove the dependency and bundles entry, pnpm install,

restart dsh web.

License

MIT

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目