nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:qwased/DSH-deleted-and-history-button
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Add archived session list + permanent session delete (with confirmation) to the DeepSeek Harness Web UI.
This is a community source patch for a DeepSeek Harness checkout, not an npm-installable plugin: the feature spans core capability seams (a new
session.deleteRPC, persistence delete, Workspace accounting cleanup, the client sessions service, and the workspace-browser UI), which a standalone plugin cannot reach. It follows the same "patch repo" convention as other community DSH extensions.
Archived session list
Permanent session delete
agent-busy) to protect delegation.Everything lands on existing plugin seams — no shell/kernel changes:
| Layer | Seam | What the patch adds |
|---|---|---|
| Persistence | ctx.sessionPersistence (JSONL / SQLite swappable backends) |
SessionPersistence.delete abstract → coordinator delete → backend PersistenceBackend.deleteStored |
| Workspace accounting | ctx.workspaceRegistry |
WorkspaceRegistry.deleteSession (detach entities + clear archive set + forget indexes) |
| Wire contract | SessionsApi |
session.delete RPC (schema / rpc-map / fetch client+handler / api-proxy + agent-handle retention) |
| Client service | ctx.sessions (ISessions face) |
deleteSession — RPC + local row removal (cold sessions emit no frame) |
| Web UI | ui-workspace (runtime-loaded bundle, sidebar.workspaces slot) |
archived grouping + delete action/modal; injected via the owner contract |
| Test doubles | connection fixture / TestSessions / fake APIs |
synchronized implementations (compile-time contract lock) |
Dynamic-loading notes: the Web shell never bundles UI plugins (they arrive as runtime bundles through the client module system), so this patch only rebuilds the ui-workspace bundle plus the libs; the shell bundle is untouched. The client list stays live because the host pushes host/session-removed, host/workspace-changed, and host/archived-sessions-changed frames.
deepseek-harness git checkout at or after base commit 47f9438 (Merge pull request #2519).# 1. Clone the harness (or use an existing checkout at a compatible revision)
git clone https://github.com/deepseek-ai/deepseek-harness.git
cd deepseek-harness
pnpm install
# 2. Apply this patch (from this repo)
bash /path/to/DSH-deleted-and-history-button/apply.sh "$(pwd)"
# 3. Rebuild (no dev server is assumed; HMR is not available for core changes)
pnpm run build:lib:host
pnpm run build:lib:client
pnpm --filter @deepseek-ai/dsh-web-frontend run build
# 4. Start the Web UI
node apps/cli/lib/bin.js web --port 3080
Windows: use apply.ps1 instead (PowerShell):
powershell -ExecutionPolicy Bypass -File .\apply.ps1 -CheckoutPath C:\path\to\deepseek-harness
The apply script checks the base revision and refuses to run on an already-patched tree. Use verify to confirm the feature markers are present:
bash verify.sh /path/to/deepseek-harness
# or
powershell -ExecutionPolicy Bypass -File .\verify.ps1 -CheckoutPath C:\path\to\deepseek-harness
⋯ → Delete session → confirm. The row disappears immediately; on-disk logs under ~/.dsh/sessions are removed; Workspace accounting and the archive set are updated.| Path | Purpose |
|---|---|
patch/dsh-deleted-and-history-button.patch |
The complete unified diff (39 files) against base commit 47f9438 |
patch/FILES.md |
File-by-file change manifest |
apply.sh / apply.ps1 |
Apply the patch into a harness checkout (with base-revision check) |
verify.sh / verify.ps1 |
Verify the feature is present in a checkout |
README.md / README.zh.md |
This documentation |
WorkspaceRuntime.project() cleared the selection whenever the current session was a member of the archive set — so deliberately opening an already-archived session from the Archived view was immediately re-cleared into the empty state. The sweep is now a transition rule: it only clears when the current session just entered the archive set (archiving the open session via the local echo, a remote tab's frame, or a reconnect baseline), never when an already-archived session is opened on purpose. The first ready baseline seeds the tracked set so a persisted archived selection survives a reload.~/.dsh data (settings, credentials, session logs), node_modules, build output, or anything containing a real session id / local machine path when forking this repo.pnpm run build:lib:host and pnpm run build:lib:client type-check and bundle cleanly.packages/client/runtime (344 tests) and packages/client/ui-workspace (123 tests) suites pass with the new "opening an already-archived session keeps it current" test.MIT — see LICENSE. Community contribution, not affiliated with DeepSeek.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session-management。