huimingli666/dsh-workspace-auto-sort ↗★ 1

@dsh-plugins/dsh-workspace-auto-sort

Keeps the outermost dsh workspace groups ordered by their newest child-session activity: every committed session event refreshes the owning workspace's recency rank and the plugin rewrites the durable registry order through the official insertBefore API (the same path a manual drag uses), so the sidebar reshuffles live and the order survives restarts. Host-only: the GUI already reacts to the workspace-changed broadcast, no browser bundle needed. 适合拥有多个工作区,需要侧边栏根据活跃度实时自动重排的用户。

패키지
@dsh-plugins/dsh-workspace-auto-sort
호환성
미검증
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 9. 29.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:huimingli666/dsh-workspace-auto-sort

配置

组合入口可覆盖的合成条目配置(defaultConfig):

键默认说明
enabledtrue总开关;false 时不挂监听、不读持久化、不重排
debounceMs750活动事件合并窗口(非负整数)
activity'prompt'recency 口径:'prompt' 只认用户自己发的消息(与 GUI 标签一致);'any' 认所有提交事件
scope'all'参与排序的范围:'all' 全部工作区;'outermost' 仅路径树最外层(嵌套项钉住不动)
logFile''重排轮日志路径;'' = ~/.dsh/logs/dsh-workspace-auto-sort.log;'off' 关闭
announceToAgentfalse是否向模型通告本插件(纯 UI 行为,默认不占上下文)