@flue/sdk
2.3.1 · 18 Nov 2026Apache-2.0309.1k / weekRepositoryHomepagenpmAtom feed
Upgrading @flue/sdk From 2.1.1 to 2.2.0
1 release in betweenevery note read
- 0
- changes to make
- 0
- advisories fixed
- 3
- new
- 0
- fixes
Release by release
- New
Add bounded conversation history reads so long-running chats no longer transfer the whole transcript on every page load or reconnect.
- New
Support document attachments (PDFs) on user messages.
DeliveredAttachmentis now a union of image and document attachments —{ type: 'document', data, mimeType: 'application/pdf', filename? }— accepted ondispatch(), theinit()handle, and direct HTTP prompts.session.prompt(),skill(), andtask()gain adocumentsoption alongsideimages, and@flue/react'ssendMessage()gains adocumentsoption. Documents are forwarded to the model as native document content: Anthropicdocumentblocks, OpenAI (and Azure OpenAI) Responsesinput_fileparts, and GoogleinlineData. On other model APIs the document is replaced in model context with a text placeholder saying it was omitted. Documents are stored like images — as canonical attachments projected asfileparts withmediaType: 'application/pdf'— so existing conversations and persistence adapters need no migration. The SDK also exportsDeliveredImageAttachmentandDeliveredDocumentAttachment. - New
Conversation messages now carry a server-authored
timestamp(ISO 8601 capture time of the underlying durable record) inhistory(),observe(), anduseFlueAgent. It works for every role and for existing conversations.metadataremains entirely agent-authored. Conversation settlements carry the sametimestampfor when the submission settled.
- New
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.