DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

light-cheng /

light-cheng/DSH-Slate

仅 Topic 仓库

Workspace-isolated, evidence-backed project progress tracker in the DeepSeek Harness right sidebar.

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@086c5534

DSH-Slate

English | 简体中文

DSH-Slate icon

A workspace-isolated, evidence-backed project progress tracker in the DeepSeek Harness (DSH) right sidebar (项目进度).

Repository: https://github.com/light-cheng/DSH-Slate

One project often spans multiple DSH sessions. Instead of opening past chats one by one to figure out what is done, what broke, and what ships next, DSH-Slate maintains a persistent, workspace-scoped project board that survives session switches, browser reloads, and DSH restarts.

Features

  • Workspace-isolated persistent state: stores each project by canonicalized (realpath) workspace path under ${DSH_HOME}/storages/dsh-slate/projects/, guarded by an in-process queue, O_EXCL cross-process file lock, stale-lock eviction, atomic temp+rename writes, and filesystem watchers. Concurrent Web and Headless sessions write without losing updates.
  • Automatic progress sync (systemPrompt.section): conditionally injects a compact workspace snapshot (dsh-slate:project-progress) listing active taskIds, project acceptance criteria, locked goal flags, pending todo checks, and open issues whenever project_progress_report is available. Models update progress proactively after substantive edits/tests, skip read-only Q&A turns, and avoid overwriting project-level acceptance criteria on subtask reports.
  • Completion is not acceptance (FR-05 evidence verification): project_progress_report resolves authoritative sessionId and cwd directly from DSH's exec.agent context (no spoofable sessionId argument). When an agent reports a check as passed, the host cross-checks actual tool/call and tool/result shell executions (exitCode === 0, covering built-in bash/pwsh/shell as well as dsh-ops ops_bash with normalized Windows path/quote matching): unexecuted claims downgrade to todo, failures/aborts/policy refusals record as failed, long outputs spill safely to outputs/<hash>/chk-<hash>.txt (64 KiB cap), same-session TDD red-to-green renames reuse the active unverified task, and cross-session real executions clear stale todo placeholders and superseded failed checks on the same task.
  • Zero-token bootstrap hints & bounded Quick Init: empty workspaces display read-only Git facts (branch, latestTag, uncommitted file count, latest commit) and an expandable vertical list of real sidebar sessions (filtering archived, blank, deleted, and subagent sessions) at 0 model tokens, plus a one-click 快速初始化 button (typertGateway) that reads at most 1–2 root overview files to bootstrap a concise 1-sentence goal and todo baseline checks in seconds.
  • Manual overrides, task deletion & instant restore: project goal, acceptance criteria, task priority, per-task progress estimate, and next deliverable can all be edited in-place inside a neutral grayscale editor. Locked fields show · 手动调整, resist subsequent session reports (while still collecting live test evidence), and can be unlocked via 恢复会话汇报. Obsolete or orphaned task cards can be removed via an inline two-step 删除任务 confirmation (preserving workspace issues).
  • Cross-session navigation guard & persistence: clicking any historical session, task title, or 最近通过 item checks live session availability, falls back to another surviving live session on multi-session tasks, avoids bouncing to the DSH Home screen when a session is deleted or archived (showing an inline notice plus 会话已删除 / 会话已归档), and keeps the Slate rightbar tab mounted across valid switches.
  • Native monochrome DSH UI: built on --dsw-* semantic theme variables and DSH typography (no green, no blue in neutral controls/editors; red reserved strictly for failures/severe issues and amber for waiting/blocked states), requesting ~420px initial width without overriding user-dragged widths, paired with dual-theme light/dark 16px tab icons.

Interface

Opening a fresh workspace shows zero-token Git status, existing session shortcuts, and one-click Quick Init or manual goal editing:

Empty workspace bootstrap hints

In active projects, the sidebar stacks the concise project goal, three action counters (without fake overall project percentages), optional 优先处理 and 最近通过 cards, a vertical task axis, expandable verification checks with real commands/exit codes, and deduplicated open issues:

DSH-Slate light mode overview

Dark mode switches both --dsw-* surfaces and the mineral slate 16px sidebar tab icon automatically:

DSH-Slate dark mode overview

Inline editing stays strictly grayscale and preserves manual adjustments across subsequent session reports until 恢复会话汇报 is clicked:

Neutral grayscale inline editor

Clicking any failed or passed check reveals the actual shell command, exit code, bounded output reference, and source session link:

Verification evidence details

Clicking a task navigates directly to its real source session while keeping the project progress rightbar open:

Cross-session navigation

Architecture

DSH Agent Sessions (Web / Desktop / Headless)
  ├─ systemPrompt.section  ──► Injects active taskIds, project criteria & sync rules
  └─ project_progress_report ─► Binds real exec.agent sessionId + cwd
                               Verifies shell tool/call + tool/result exitCode === 0
                                        │
                                        ▼
                       Workspace Store (src/store.js)
                       realpath key · O_EXCL cross-process lock · atomic rename
                       ${DSH_HOME}/storages/dsh-slate/projects/<hash>.json
                                        │
                                        ├──► Authenticated Fetch RPC (/api/dsh-slate/rpc)
                                        └──► Authenticated SSE Feed  (/api/dsh-slate/events)
                                                 │
                                                 ▼
                       Right Sidebar UI (src/client.js + src/styles.css)
                       ~420px initial width · dual-theme icon · openSession nav

Installation

From npm

dsh plugin --profile desktop add @lightcheng/dsh-slate

From a local checkout (development / linking)

git clone https://github.com/light-cheng/DSH-Slate.git
cd DSH-Slate
cd plugin && npm run build && cd ..
dsh plugin --profile desktop add link:"$(pwd)/plugin"

If DSH reports restart-required, restart DeepSeek Harness so the desktop app reloads the plugin bundle and sidebar tab.

The formal publishable plugin package lives under plugin/. prototype-plugin/ is preserved strictly as a historical reference and is never loaded or published.

Security & Boundaries

  • Authenticated transport only: sidebar RPC and live SSE routes register via ctx.connection.fetch behind DSH's /api BrowserAuth, Host/Origin checks, and owner Peer verification (401 on unauthenticated calls).
  • Authoritative identity & evidence: project_progress_report does not accept a sessionId parameter and refuses missing exec.agent context; shell evidence verification matches actual commands executed inside the reporting session.
  • No external network calls: zero telemetry, zero remote fonts or CDN assets, and zero background LLM polling (only read-only local Git execFile without shell interpolation plus explicit user clicks).

Development & Verification

cd plugin
npm run verify      # Build client bundle, verify icons/colors, run 18 unit & concurrency tests
npm pack --dry-run  # Inspect publishable tarball contents

Full isolated real-DSH end-to-end verification (spawns throwaway DSH_HOME, profiles, and temp repos while asserting ~/.dsh/profiles/{desktop,web} checksums remain unchanged):

node plugin/scripts/e2e-dsh.mjs       # Full AC-01..AC-08 acceptance suite
node plugin/scripts/e2e-autoflow.mjs  # Proactive auto-report & Quick Init suite

See SPEC.md, TESTING.md, RELEASE.md, and MARKETPLACE.md for detailed specifications and release workflow docs.

License

MIT

—/ 5

暂无评分

需要先验证清单

Commit 086c55346856

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于