OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
CYF736222347/dsh-workspace-status-board
Status-first workspace board for the DSH sidebar: sorts workspaces and tasks by needs-input, running, then done; search, same-status drag ordering, archive/restore, and three status markers.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:CYF736222347/dsh-workspace-status-board
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Status-first workspace board for the DSH sidebar. / 把 DSH 侧边栏工作区改成按状态优先排序的看板。
示意图 · 示例数据(非真实会话截图) / Illustrative preview with sample data
DSH 默认的侧边栏工作区列表按最近更新时间或手动顺序排列,工作区一多就不容易判断「现在该先看哪个」。这个插件把 sidebar.workspaces 区域替换成一块状态看板:
排序、状态标识与相对时间都随 Host 的实时快照自动更新,不需要手动刷新。
stopActivity: true 停止该会话的回合/子代理/后台工作并归档。已归档任务进入底部「已归档」区,可展开并恢复。Enter 保存、Escape 取消,空白名称禁用保存。通过 Host 的 workspaces.rename 写入,成功后列表实时更新,失败显示错误条。Enter 保存、Escape 取消,空白标题禁用保存。通过 sessions.using(..., reference.binding.session.rename(title)) 写入,成功后任务标题实时更新,失败显示错误条。zh / en。状态来自 useSessionStatus 的实时投影和 useSessions 摘要,工作区取组内最高优先级:
| 状态 | 判定 | 标识 |
|---|---|---|
需要介入 attention |
会话存在待处理的 pendingInteraction:approval(等待批准)、plan-review(计划待确认)、question(等待回答)。 |
琥珀色 + 三角感叹号 + 浅色底;工作区行左侧色带与浅色底。 |
执行中 running |
没有待介入,且会话自身 running,或有正在运行的直接子代理(subagentCatalog 中 running)。 |
品牌蓝 + 旋转圆环(prefers-reduced-motion 时静止)。 |
已完成 done |
其余情况,包括空闲与有未读结果的会话。 | 绿色 + 对勾圆环。 |
归档会话、子代理会话、空白占位会话不参与状态聚合。
useSessions 列表项的 updatedAt。Host 将其计算为 max(session.createdAt, sessionListMetadata.lastPromptAt),即最近一次用户提示或 steer 的时间;代理输出不会刷新它。updatedAt 的最大值;没有任务时回退到 WorkspaceView.updatedAt(ISO 字符串),再回退到 createdAt。useWorkspaces:工作区注册、成员、归档集合变化时重排。useSessions:会话新建、摘要或 updatedAt 变化时重排。useSessionStatus:运行状态、待介入分类、未读完成状态变化时立即重排并切换标识。要求:DSH Web / Desktop 0.2.2-rc.1 或更新版本(需要 sidebar.workspaces 标准 Hook 与工作区归档接口)。
从 GitHub 安装到目标 profile(把 <profile> 换成实际 profile,例如 desktop 或 web):
dsh plugin --profile <profile> add github:CYF736222347/dsh-workspace-status-board
也可以克隆本仓库后,在 DSH 插件管理中把仓库目录作为本地 bundle 安装。安装后刷新一次页面;之后排序、拖拽、归档都随事件实时更新。
本插件会以 priority: -1 覆盖原生 WorkspaceBrowser。禁用或移除插件后原生列表自动恢复,无需重启。不要在同一个 profile 里同时保留开发副本和 GitHub 版本:两者都注册在 sidebar.workspaces 的 priority: -1,单占位槽只允许一个同优先级占位者。
Escape 或 × 清空。Enter 保存、Escape 取消。Enter 保存、Escape 取消。sidebar.workspaces 的标准 Hook(useWorkspaces / useSessions / useSessionStatus / usePanelInfo)以及 uiWorkspace、workspaces 客户服务。package.json 已声明 dsh.bundle 与 dsh.client,cordis.patch.yml 插入 id 为 workspace-status-board 的 Loader 行。dsh.workspace-status-board.collapsed.v1dsh.workspace-status-board.expanded-done.v1dsh.workspace-status-board.order.v1workspaces.archiveSession / unarchiveSession;工作区重命名通过 workspaces.rename;任务重命名通过 sessions.using(..., reference.binding.session.rename(title));拖拽顺序不会写回 Host 工作区注册顺序。看板覆盖原生浏览区,因此原生区域的消息内容全文搜索、置顶、归档筛选的三种模式、工作区删除菜单不在看板内;这些可通过禁用插件恢复。工作区与任务重命名均已提供,拖拽只在同一状态内生效,且顺序是浏览器本地的;触屏环境不保证 HTML5 拖拽可用。搜索期间「已归档」区暂时隐藏。
client.js / index.js 通过 node --check,CSS 括号平衡,中英文 locale 键集与 JSON 对齐。sidebar.workspaces 的 priority: -1 占位者 active、原生 priority: 0 inactive。MIT。见 LICENSE。
Purpose. Replace the DSH sidebar's workspace browsing region with a status-first board. Workspaces are ordered by needs-input, running, then done, and within each state by the latest human prompt/steer time (updatedAt). The three states have distinct color-and-shape markers, and the board updates live from the host's workspace, session, and status snapshots — no manual refresh.
Main features.
stopActivity: true). Archived tasks move to a bottom “Archived” section with per-task restore.Enter saves, Escape cancels, and blank names cannot be saved. Renames go through the host's workspaces.rename; the list updates live and failures show an error notice.Enter/Escape and blank-title validation, using sessions.using(..., reference.binding.session.rename(title)); titles update live and failures show an error notice.Install.
Requires DSH 0.2.2-rc.1 or newer.
dsh plugin --profile <profile> add github:CYF736222347/dsh-workspace-status-board
Refresh the page once after installation. The plugin shadows the shipped WorkspaceBrowser at priority: -1; disable or remove it to restore the native browsing region. Do not keep a development copy and the GitHub version in the same profile: both register at the same priority in a single-occupant slot.
Dependencies and configuration. No npm runtime dependencies; React 18 is supplied by the host. Uses the sidebar.workspaces standard hooks and the uiWorkspace / workspaces client services. No required configuration; dsh.bundle and dsh.client are declared in package.json, and cordis.patch.yml inserts the workspace-status-board loader row. UI state (collapse, done expansion, manual order) is stored in browser localStorage.
Known trade-offs. Full-text message search, pinning, three-way archive filters, and the workspace delete menu from the native browser are not included; workspace rename is provided; drag order is limited to one status group and is browser-local; touch drag is not guaranteed; archived entries are hidden while searching. Add-workspace uses the desktop native chooser when available and a manual absolute-path field otherwise, not the in-app browse dialog.
License. MIT.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: rag、search。