xarleyn/dsh-plugins--plugins-dsh-cas-results ↗★ 1

@yadsh/dsh-cas-results

将大体积工具结果按内容哈希离线存储,超阈值自动迁移减负载 适合返回数据臃肿的会话链路,按阈值与目录配置 offload 行为

套件
@yadsh/dsh-cas-results
相容性
待驗證
Harness 依賴範圍
catalog:dsh
Cordis 依賴範圍
catalog:dsh
版本
0.1.0
授權
MIT
最近更新
2026年9月13日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xarleyn/dsh-plugins#fd3cdd95651ec4eafe52d510751ba3aba3c9248d&path:plugins/dsh-cas-results

Configuration

Configuration lives in the plugin's composition entry (cordis.patch.yml override layers or profile patches). All fields are optional.

OptionTypeDefaultDescription
enabledbooleantrueMaster switch; false passes every result through.
storeDirstring""Store root; empty resolves to /storages/dsh-cas-results.
thresholds.textBytesnumber16384Offload threshold for generic text in bytes.
thresholds.htmlBytesnumber8192Offload threshold for HTML in bytes.
thresholds.logBytesnumber16384Offload threshold for log-like output in bytes.
preview.maxCharsnumber4096Character budget for preview bodies.
preview.keepHeadLinesnumber20Head lines kept in text/log previews.
preview.keepTailLinesnumber30Tail lines kept in text/log previews.
preview.keepPatternsstring[]error, warn, …Case-insensitive substrings kept from the middle of logs.
base64.enabledbooleantrueDecode and deduplicate base64/binary payloads.
base64.minCharsnumber8192Minimum candidate length before detection runs.
base64.requireStrongDetectionbooleantrueRequire data-URI context or binary evidence for raw candidates.
storage.compression"none" | "gzip" | "auto""auto"On-disk codec; identity is always computed over logical bytes.
storage.maxBytesnumber10737418240Logical-byte quota enforced by GC.
retrieval.defaultBytesnumber32768Default chunk size for dsh_cas_retrieve.
retrieval.maxBytesnumber262144Hard upper bound for one retrieval chunk.
gc.enabledbooleantrueRun background garbage collection.
gc.intervalMsnumber3600000GC interval in milliseconds.
gc.ttlMsnumber2592000000Objects untouched for this long become eligible.
gc.minAgeMsnumber86400000Routine GC never deletes objects younger than this.
includeErrorsbooleanfalseAlso preview oversized text inside failed results.
excludeToolsstring[]["write", "edit", "str_replace_editor"]Tools whose results are never transformed.
tools..thresholdBytesnumber—Per-tool offload threshold override.
tools..preview"auto" | "text" | "log" | "html""auto"Forced preview style for the tool.
tools..base64boolean—Per-tool base64 on/off override.
tools..disabledboolean—Skip transformation for this tool entirely.
exposeGcToolbooleanfalseRegister the model-facing dsh_cas_gc tool.