Moonshile/moonshile-dsh-plugins--plugins-dsh-workspace-sort ↗★ 2

dsh-workspace-sort

DeepSeek Harness (DSH) bundle: re-sort sidebar workspaces by last activity once per day, stable within the day (侧边栏工作区顺序每日按最近活动刷新,当天稳定) 适合侧边栏项目较多,需要每日自动整理且保持当天顺序稳定的用户。

パッケージ
dsh-workspace-sort
互換性
未検証
バージョン
0.1.1
ライセンス
MIT
最終更新
2026/09/15

同名パッケージの別リポジトリ

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Moonshile/moonshile-dsh-plugins#8701cbd3c7b329420e8508a497549740d9eb7662&path:plugins/dsh-workspace-sort

ドキュメント

README 全文を読む ↗

dsh-workspace-sort

English | 中文

npm version

awesome · DSH plugin

Listed in: 0xsline/awesome-deepseek-harness · awesome-deepseekharness/awesome-deepseek-harness

DeepSeek Harness (DSH) plugin bundle: re-sorts the sidebar workspace order by last activity once per day; the order stays fully stable for the rest of the day.

Why

DSH's native workspace order is manual drag order (the durable workspaceIds array); the "Last updated" view option only sorts sessions inside a group. If every session event moved the owning workspace to the top, the order would jump around constantly. This plugin instead performs one full sort per calendar day: the day's first session event triggers the sort, after which nothing moves until the next day.

Install

Requires pnpm on your PATH — dsh plugin forwards profile package operations to pnpm.

dsh plugin --profile web add dsh-workspace-sort

Installs the npm package dsh-workspace-sort into the web profile and activates it as a bundle (the package declares dsh.bundle.patch). One command, no manual patch editing. Restart dsh web to mount the bundle layer.

Other profiles: replace web with the profile name, e.g. dsh plugin --profile add dsh-workspace-sort.

Behavior

  • Trigger: the first session/event activity of the calendar day (any session of a workspace produces a new event)
  • Ordering key: last-activity time per workspace accumulated since plugin start, full sort descending; workspaces with no recorded activity keep their relative order (stable sort)
  • Stable within the day: no re-sort until the next day; manual drag order survives the rest of the day
  • Persistence: ~/.dsh/workspace-sort-state.json records the last sorted date (DSH_HOME overrides the home directory)
  • Limitations: after a same-day server restart the first sort may have sparse activity data (accurate from the next day); ungrouped sessions do not participate

Development

pnpm install
pnpm test     # node:test pure-function tests, no DSH runtime dependency

Publishing

cd plugins/dsh-workspace-sort
pnpm publish --access public