wsz987/dsh-channels--packages-channel-files2

@wsz987/channel-files

Optional generic file storage and document extraction for dsh-channels

AI 분석

核心用途是为 DeepSeek Harness 渠道提供私有文件存储和文档(PDF/DOCX/XLSX/TXT)内容提取,并通过工具暴露给模型。适合需要处理非图片通道附件的用户。

패키지
@wsz987/channel-files
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 16.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 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

AreaDetail
StoragePrivate file-backed asset store under the channel data directory
ExtractionPDF (unpdf), DOCX (mammoth), XLSX (xlsx), plain text
Toolread_channel_attachment installs on the agent so models can read stored files
Limits100 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

Related

License

MIT