xarleyn/dsh-plugins--plugins-dsh-cas-results ↗★ 1
@yadsh/dsh-cas-results
将大体积工具结果按内容哈希离线存储,超阈值自动迁移减负载 适合返回数据臃肿的会话链路,按阈值与目录配置 offload 行为
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xarleyn/dsh-plugins#fd3cdd95651ec4eafe52d510751ba3aba3c9248d&path:plugins/dsh-cas-results说明文档
阅读完整 README ↗Configuration
Configuration lives in the plugin's composition entry (cordis.patch.yml
override layers or profile patches). All fields are optional.
| Option | Type | Default | Description |
|---|---|---|---|
enabled | boolean | true | Master switch; false passes every result through. |
storeDir | string | "" | Store root; empty resolves to /storages/dsh-cas-results. |
thresholds.textBytes | number | 16384 | Offload threshold for generic text in bytes. |
thresholds.htmlBytes | number | 8192 | Offload threshold for HTML in bytes. |
thresholds.logBytes | number | 16384 | Offload threshold for log-like output in bytes. |
preview.maxChars | number | 4096 | Character budget for preview bodies. |
preview.keepHeadLines | number | 20 | Head lines kept in text/log previews. |
preview.keepTailLines | number | 30 | Tail lines kept in text/log previews. |
preview.keepPatterns | string[] | error, warn, … | Case-insensitive substrings kept from the middle of logs. |
base64.enabled | boolean | true | Decode and deduplicate base64/binary payloads. |
base64.minChars | number | 8192 | Minimum candidate length before detection runs. |
base64.requireStrongDetection | boolean | true | Require 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.maxBytes | number | 10737418240 | Logical-byte quota enforced by GC. |
retrieval.defaultBytes | number | 32768 | Default chunk size for dsh_cas_retrieve. |
retrieval.maxBytes | number | 262144 | Hard upper bound for one retrieval chunk. |
gc.enabled | boolean | true | Run background garbage collection. |
gc.intervalMs | number | 3600000 | GC interval in milliseconds. |
gc.ttlMs | number | 2592000000 | Objects untouched for this long become eligible. |
gc.minAgeMs | number | 86400000 | Routine GC never deletes objects younger than this. |
includeErrors | boolean | false | Also preview oversized text inside failed results. |
excludeTools | string[] | ["write", "edit", "str_replace_editor"] | Tools whose results are never transformed. |
tools..thresholdBytes | number | — | Per-tool offload threshold override. |
tools..preview | "auto" | "text" | "log" | "html" | "auto" | Forced preview style for the tool. |
tools..base64 | boolean | — | Per-tool base64 on/off override. |
tools..disabled | boolean | — | Skip transformation for this tool entirely. |
exposeGcTool | boolean | false | Register the model-facing dsh_cas_gc tool. |