wsz987/dsh-channels--packages-channel-files ↗★ 2
@wsz987/channel-files
dsh-channels 的可选通用文件存储与文档提取插件
AI 分析
核心用途是为 DeepSeek Harness 渠道提供私有文件存储和文档(PDF/DOCX/XLSX/TXT)内容提取,并通过工具暴露给模型。适合需要处理非图片通道附件的用户。
安裝
此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗
說明文件
閱讀完整 README ↗@wsz987/channel-files
Optional generic-file extension for DeepSeek Harness Channels.
Adds a private channel asset store and document extraction on top of the
Harness-native image path. Inbound PDF / DOCX / XLSX / text files are stored,
extracted, and exposed to the model through the read_channel_attachment
tool — without routing raw platform payloads through the prompt.
Install
pnpm add @wsz987/channel-files
It is included in the @wsz987/dsh-channels bundle by default. To disable the
extension, remove the channels-files plugin from the bundle patch; Harness
native images and plain text messages keep working.
Features
| Area | Detail |
|---|---|
| Storage | Private file-backed asset store under the channel data directory |
| Extraction | PDF (unpdf), DOCX (mammoth), XLSX (xlsx), plain text |
| Tool | read_channel_attachment installs on the agent so models can read stored files |
| Limits | 100 MiB inbound per file · 32 MiB parser input · 5 MiB extracted text output |
How it works
ChannelFileService implements the ChannelFileProvider port from
@wsz987/channel-harness:
ctx.channelFiles.store(channelFileContext, binaryPart); // store + extract
ctx.channelFiles.resolveAttachment(attachmentId, sessionId);
await ctx.channelFiles.installTools(agentContext); // add the read tool
Development
pnpm --filter @wsz987/channel-files build
pnpm --filter @wsz987/channel-files typecheck
pnpm --filter @wsz987/channel-files test