r-ayin/dsh-req-capture ↗★ 0

dsh-req-capture

Diagnostic plugin: wraps global fetch to log requests and capture bodies whose URL matches a configurable substring to disk. 适合需要调试网络请求、捕获请求体并保存到磁盘的开发者。

パッケージ
dsh-req-capture
互換性
未検証
バージョン
0.0.1
ライセンス
MIT
最終更新
2026/10/15

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:r-ayin/dsh-req-capture

ドキュメント

README 全文を読む ↗

Configuration

envmeaningdefault
REQ_CAPTURE_MATCHURL substring; bodies of requests whose URL contains it are written to the capture dirempty (capture nothing, log only)
REQ_CAPTURE_DIRcapture directory/tmp/dsh-req-capture

Every fetch call is logged to /fetch-log.txt (timestamp, method, truncated URL, body size); matching bodies are written as req--.json. A self-probe fetch runs once on apply to verify the wrapper is live in the host realm.

Warning — captured bodies are raw request payloads and may contain prompt content. Treat the capture directory as sensitive and delete it when done.