ciceroyang/dsh-trajectory

ciceroyang★ 0JavaScript最后同步: 2026-08-16

在 GitHub 打开

Render a DeepSeek Harness session log into a shareable HTML trajectory document

README 摘要

dsh-trajectory Renders a DeepSeek Harness session log into a shareable HTML trajectory document — the offline, zero-dependency cousin of the official Trajectory view. "Every run leaves a trace", made portable. Usage node trajectory.mjs node trajectory.mjs newest log wins node trajectory.mjs --all merge every session into one chronological volume node trajectory.mjs --out report.html Output: one self-contained HTML file (inline CSS, no external assets) plus the first 16 hex chars of its SHA-256. What the document contains - session metadata (id / workspace / time range / turn count / token ledger) - per-turn timeline: user asks, tool calls (argument briefs + error markers), assistant excerpts - end-reason annotations (completed / blocked / error / …) Technical notes - multi-frame zstd frame scan + per-frame decode (the single-shot-decompress pitfall, algorithm ported from the official format.ts) - zero dependencies, plain ESM; the HTML renderer is a pure function, fully unit-testable - all output is HTML-escaped, so hostile log text cannot become script Use cases - delivery audit: hand the trajectory to a reviewer with a checkable SHA-256 - incident review: tool errors visible in th…

在 GitHub 查看完整 README →
工具/开发deepseek-harnessdsh-pluginsession-logtrajectory

分类