Skip to content

feat: richText resource extraction and streaming downloadFileToFile (superseded by #4) - #3

Closed
typefield wants to merge 1 commit into
DingTalk-Real-AI:mainfrom
typefield:feat/port-lark-features
Closed

typefield wants to merge 1 commit into
DingTalk-Real-AI:mainfrom
typefield:feat/port-lark-features

Conversation

@typefield

@typefield typefield commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by #4 — same change resubmitted from a cleanly named branch.

…ark channel-sdk

- normalize: richText picture/file segments now extract into
  IncomingMessage.resources (analog of lark's post attachment zone) with
  strict typeof narrowing and per-message download-code dedup.
- DingTalkChannel.downloadFileToFile: streaming media download to a local
  path (Readable.fromWeb + pipeline, no whole-file buffering), SSRF-guarded
  like downloadFile, same-dir temp file + atomic rename, parent dir must
  exist, no partial file left behind. Returns bytes written.
- Tests: resource extraction/dedup/dirty-data; streaming download success,
  non-200 status, and missing-parent-dir regressions.
@typefield

Copy link
Copy Markdown
Contributor Author

Superseded by #4.

@typefield typefield closed this Sep 16, 2026
@typefield typefield changed the title feat: port richText resource extraction and downloadFileToFile from lark channel-sdk feat: richText resource extraction and streaming downloadFileToFile (superseded by #4) Sep 16, 2026
@typefield
typefield deleted the feat/port-lark-features branch September 16, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant