DeepSHPlugins
bites-the-dsh 專案預覽
GITHUB / COMMUNITY PROJECT

bites-the-dsh

會話與訊息TypeScriptMIT

為 DSH 原生會話加入完全只讀、可指令碼控制的歷史回放,支援模擬使用者輸入、正放與倒放、逐事件移動、變速、空閒間隔壓縮,以及按事件、輪次或記錄時間直接跳轉。

2 StarsCH4ACKO3 更新時間 2026-08-21
訪問 GitHub 倉庫
bites-the-dsh 專案預覽

專案介紹

中文

為 DSH 原生會話加入完全只讀、可指令碼控制的歷史回放,支援模擬使用者輸入、正放與倒放、逐事件移動、變速、空閒間隔壓縮,以及按事件、輪次或記錄時間直接跳轉。

English

Adds read-only, scriptable playback to native DSH conversations, with simulated user typing, forward and reverse playback, event stepping, speed control, idle-gap compression, and direct seeking by event, turn, or recorded time.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
CH4ACKO3
倉庫
CH4ACKO3/bites-the-dsh
GitHub Stars
2
Forks
0
開發語言
TypeScript
許可證
MIT
最近推送
2026-08-21
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

57/ 100
維護活躍
86
文件與實用資訊
85
生態關注度
14
安裝便捷訊號
100
專案宣告訊號
100

近 21 天仍在更新;README 含完整安裝與使用說明;關注度尚低(2)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add @ch4acko3/bites-the-dsh

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

Bites the DSH

English | 简体中文

Powered by Harmony

Read-only, scriptable session playback for the DeepSeek Harness WebUI.

https://github.com/user-attachments/assets/3c9dfdcf-a454-4750-9edf-76771ed5a9a6

The demo shows Bites the DSH together with dsh-turn-fold.

The plugin turns the native conversation into a replay view without opening a separate panel. A single native session-header control enters replay. While replay is active, the conversation is fully read-only: the native composer and session-changing interactions are blocked, while UI and scripts may move time without mutating the source session.

Current implementation

  • Native session-header entry and compact playback controls.
  • Pause, forward play, reverse play, event stepping, speed selection, adjustable idle-gap compression, and direct event/turn/time seeking.
  • Optional simulated typing previews the next direct user message in the native read-only composer without touching its live draft.
  • A per-session observable controller exposed as ctx.sessionPlayback for time-only scripting.
  • Historical projection through DSH's native ChatView; the source session and live head continue independently.
  • Historical timelines expose playbackClock: { kind: 'historical', time: cursorTime } so projection consumers never treat an open historical turn as live wall-clock work.
  • Native composer, model, stop, branch, and assistant write actions are disabled during replay; viewing controls remain interactive.
  • English and Chinese labels using DSH theme tokens, without a separate panel.

The current compatibility target is DSH 0.1.0-rc.8. Harmony selector drift fails the automated test instead of silently changing the wrong component.

Install

dsh plugin --profile web add @ch4acko3/bites-the-dsh
dsh harmony status --profile web

All four Bites the DSH patches should report bound. Reload the WebUI, open a session, then use Replay session in the native session header.

Script control

Other DSH plugins can use the same per-session clock through the provided Cordis service:

const playback = ctx.sessionPlayback

playback.enter(sessionId)
playback.seekTime(sessionId, Date.parse('2026-08-20T12:00:00Z'))
playback.play(sessionId, 1)
playback.pause(sessionId)
playback.exit(sessionId)

Time values such as the argument to seekTime use Unix epoch milliseconds, matching JavaScript Date values and recorded event timestamps.

The service also supports event and turn seeking, reverse playback, rate and idle-gap settings, subscriptions, and position reads. It deliberately exposes no operation that mutates the source session.

Development

Requires Node.js ^22.22.3 || >=24.11.1 and pnpm 11.

pnpm install
pnpm check

CI/CD

Every push to main and every pull request runs pnpm check and verifies the npm package contents. Pushing a v<package.json version> tag runs the same checks, creates the matching GitHub Release, and publishes the public package to npm through Trusted Publishing (OIDC), with automatic provenance and no npm token stored in GitHub.

License

MIT

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案