mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
85a37c896f
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @chat-adapter/gchat@4.40.0 ### Minor Changes -f485255: Harden webhook tenant isolation, require explicit Google Chat bot identity for reliable mention handling, use native Google Chat pagination, isolate Slack caches, and bound recording storage. ### Patch Changes - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 - @chat-adapter/shared@4.40.0 ## @chat-adapter/slack@4.40.0 ### Minor Changes -51322dd: Decode the bot's own mention in incoming Slack messages. The adapter now resolves `<@U_BOT>` to the bot's display name (`@<DisplayName>`) the same way it resolves every other user mention, instead of leaving the raw user-ID markup in place, and sets `isMention` on the parsed message by detecting the bot's ID in the raw event text. This keeps `message.text` self-describing for downstream consumers (LLM prompts, classifiers) while preserving mention detection, which previously depended on the raw ID markup surviving in the text. -d4a1f03: Rotate long-running native Slack streams before Slack expires them. Once a stream segment passes `streamSegmentMaxAgeMs` (default four minutes) the adapter finalizes it at the next paragraph break and continues the reply in a new message, closing and reopening code fences, repeating table headers, replaying open task cards and the plan title, and keeping the agent session in `processing`. A segment Slack already expired during an idle gap is recovered the same way instead of failing the reply. -2cc8cc3: Surface custom status text in the Agent messaging experience. `startTyping` and `setAssistantStatus` with a custom status now call the legacy `assistant.threads.setStatus` endpoint, whose compatibility bridge renders the text in the agent-session loading UX — instead of silently dropping the text and showing the generic "Working…" indicator. Clearing (empty status) still transitions the session to `active` via the Agent Sessions lifecycle. ### Patch Changes -78021c0: pass workspace context to suggested prompt resolvers in Agent view -8b6d7f3: Reactivate Slack Agent Sessions when `startTyping` receives an empty status. -c2b6bff: Use the Slack bot user ID for bot-authored messages when a bot profile is available. -f485255: Harden webhook tenant isolation, require explicit Google Chat bot identity for reliable mention handling, use native Google Chat pagination, isolate Slack caches, and bound recording storage. -8fdaf4a: Stream post-and-edit fallback updates through Slack's `markdown_text` field instead of `text`, so live-updating messages render markdown while the stream is in progress (and get the 12,000-character ceiling rather than 4,000) -7609d8f: Validate external request targets before sending credentials, message content, or attachment requests. - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 - @chat-adapter/shared@4.40.0 ## @chat-adapter/teams@4.40.0 ### Minor Changes -aaeede7: emit Teams bot-join events and expose the bot user ID -4a0b5c0: Add `tooltip` to `Button` and `LinkButton`, and a `width` hint to `Card`. The Teams adapter and the `@chat-adapter/teams/cards` subpath render them as the Adaptive Card action `tooltip` and the `msteams` full-width card property; other adapters ignore them. Emitted Adaptive Cards now declare schema version 1.5, which is the version that introduced action tooltips. Buttons with a `callbackUrl` keep their `tooltip` and other fields when the URL is swapped for a callback token. ### Patch Changes -a8de95b: Fall back to Teams activity group metadata when the explicit conversation type is missing. -f485255: Harden webhook tenant isolation, require explicit Google Chat bot identity for reliable mention handling, use native Google Chat pagination, isolate Slack caches, and bound recording storage. -7062c39: preserve outgoing @names as plain text instead of generating mention markup without matching entities -7609d8f: Validate external request targets before sending credentials, message content, or attachment requests. - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 - @chat-adapter/shared@4.40.0 ## @chat-adapter/telegram@4.40.0 ### Minor Changes -043386b: Add Telegram Business mode support. Opt in via `businessMode: true`. The adapter handles `business_connection`, `business_message`, and `edited_business_message` updates, encodes business threads as `telegram:biz:{connectionId}:{chatId}`, and passes `business_connection_id` on outbound sends, edits, typing, file uploads, and inline-keyboard callbacks. Business threads are their own channel, slash commands route through `onSlashCommand`, deletes use `deleteBusinessMessages`, and connection state is cached in the state adapter so a revoked connection is honoured by every instance. Reactions on business threads throw a `NotImplementedError`, since the Bot API has no business variant of `setMessageReaction`. ### Patch Changes -43dba3d: Skip unused plain-text conversion for rich and Markdown native draft updates. Plain-text fallback and final delivery keep their existing behavior. - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 - @chat-adapter/shared@4.40.0 ## @chat-adapter/whatsapp@4.40.0 ### Minor Changes -31bce0a: export `WhatsAppApiError` for non-2xx Graph API responses. It carries Meta's numeric `errorCode`, `providerMessage`, `type`, `details`, `subcode`, `traceId`, the HTTP `status`, and the `raw` envelope, and maps `code` onto the shared `AdapterError` taxonomy (`RATE_LIMITED`, `AUTH_FAILED`, `PERMISSION_DENIED`, `NOT_FOUND`). Transport failures and unparseable response bodies now throw `NetworkError` instead of leaking raw fetch errors, and error messages carry Meta's message or a bounded excerpt instead of the full response body. ### Patch Changes - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 - @chat-adapter/shared@4.40.0 ## chat@4.40.0 ### Minor Changes -4a0b5c0: Add `tooltip` to `Button` and `LinkButton`, and a `width` hint to `Card`. The Teams adapter and the `@chat-adapter/teams/cards` subpath render them as the Adaptive Card action `tooltip` and the `msteams` full-width card property; other adapters ignore them. Emitted Adaptive Cards now declare schema version 1.5, which is the version that introduced action tooltips. Buttons with a `callbackUrl` keep their `tooltip` and other fields when the URL is swapped for a callback token. ### Patch Changes -f485255: Harden webhook tenant isolation, require explicit Google Chat bot identity for reliable mention handling, use native Google Chat pagination, isolate Slack caches, and bound recording storage. -b7c9316: Tighten AI tool and queued-message scoping, isolate direct-message conversations, preserve ephemeral follow-ups, consume callback tokens once, and mark external link metadata as untrusted. ## @chat-adapter/discord@4.40.0 ### Patch Changes -b7c9316: Tighten AI tool and queued-message scoping, isolate direct-message conversations, preserve ephemeral follow-ups, consume callback tokens once, and mark external link metadata as untrusted. - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 - @chat-adapter/shared@4.40.0 ## @chat-adapter/github@4.40.0 ### Patch Changes - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 - @chat-adapter/shared@4.40.0 ## @chat-adapter/instagram@4.40.0 ### Patch Changes -7609d8f: Validate external request targets before sending credentials, message content, or attachment requests. - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 - @chat-adapter/shared@4.40.0 ## @chat-adapter/linear@4.40.0 ### Patch Changes -3d2cb22: Keep Linear agent-session events on one stable thread and handle sessions created by automation or without a root comment. - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 - @chat-adapter/shared@4.40.0 ## @chat-adapter/messenger@4.40.0 ### Patch Changes - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 - @chat-adapter/shared@4.40.0 ## @chat-adapter/notion@4.40.0 ### Patch Changes - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 - @chat-adapter/shared@4.40.0 ## @chat-adapter/shared@4.40.0 ### Patch Changes - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 ## @chat-adapter/twilio@4.40.0 ### Patch Changes -b7c9316: Tighten AI tool and queued-message scoping, isolate direct-message conversations, preserve ephemeral follow-ups, consume callback tokens once, and mark external link metadata as untrusted. - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 - @chat-adapter/shared@4.40.0 ## @chat-adapter/web@4.40.0 ### Patch Changes - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 - @chat-adapter/shared@4.40.0 ## @chat-adapter/x@4.40.0 ### Patch Changes -7609d8f: Validate external request targets before sending credentials, message content, or attachment requests. - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 - @chat-adapter/shared@4.40.0 ## @chat-adapter/state-ioredis@4.40.0 ### Patch Changes - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 ## @chat-adapter/state-memory@4.40.0 ### Patch Changes - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 ## @chat-adapter/state-pg@4.40.0 ### Patch Changes - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 ## @chat-adapter/state-redis@4.40.0 ### Patch Changes - Updated dependencies [f485255] - Updated dependencies [b7c9316] - Updated dependencies [4a0b5c0] - chat@4.40.0 ## @chat-adapter/tests@4.40.0 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
128 lines
2.9 KiB
JSON
128 lines
2.9 KiB
JSON
{
|
|
"name": "chat",
|
|
"version": "4.40.0",
|
|
"description": "Chat SDK — universal TypeScript toolkit for building multi-platform chat bots and AI agents on Slack, Teams, Google Chat, Discord, WhatsApp, and more",
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
},
|
|
"./ai": {
|
|
"types": "./dist/ai/index.d.ts",
|
|
"import": "./dist/ai/index.js"
|
|
},
|
|
"./adapters": {
|
|
"types": "./dist/adapters/index.d.ts",
|
|
"import": "./dist/adapters/index.js"
|
|
},
|
|
"./workflow": {
|
|
"types": "./dist/workflow/index.d.ts",
|
|
"import": "./dist/workflow/index.js"
|
|
},
|
|
"./serialization": {
|
|
"types": "./dist/serialization.d.ts",
|
|
"import": "./dist/serialization.js"
|
|
},
|
|
"./jsx-runtime": {
|
|
"types": "./dist/jsx-runtime.d.ts",
|
|
"import": "./dist/jsx-runtime.js"
|
|
},
|
|
"./jsx-dev-runtime": {
|
|
"types": "./dist/jsx-runtime.d.ts",
|
|
"import": "./dist/jsx-runtime.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"docs",
|
|
"resources"
|
|
],
|
|
"scripts": {
|
|
"build": "pnpm clean && tsup && node scripts/check-workflow-serialization-bundle.mjs && cp -r ../../apps/docs/content/docs ./docs",
|
|
"dev": "tsup --watch",
|
|
"test": "vitest run --coverage",
|
|
"test:watch": "vitest",
|
|
"typecheck": "tsc --noEmit",
|
|
"clean": "rm -rf dist docs"
|
|
},
|
|
"dependencies": {
|
|
"@workflow/serde": "4.1.0-beta.2",
|
|
"mdast-util-to-string": "^4.0.0",
|
|
"remark-gfm": "^4.0.0",
|
|
"remark-parse": "^11.0.0",
|
|
"remark-stringify": "^11.0.0",
|
|
"remend": "^1.2.1",
|
|
"unified": "^11.0.5"
|
|
},
|
|
"devDependencies": {
|
|
"@types/mdast": "^4.0.4",
|
|
"@types/node": "^25.3.2",
|
|
"ai": "^7.0.0",
|
|
"es-module-lexer": "^2.3.0",
|
|
"tsup": "^8.3.5",
|
|
"typescript": "^5.7.2",
|
|
"vitest": "^4.0.18",
|
|
"workflow": "5.0.0-beta.40",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"peerDependencies": {
|
|
"ai": "^6.0.182 || ^7.0.0",
|
|
"workflow": "^5.0.0-beta.35",
|
|
"zod": "^3.0.0 || ^4.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"ai": {
|
|
"optional": true
|
|
},
|
|
"workflow": {
|
|
"optional": true
|
|
},
|
|
"zod": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/vercel/chat.git",
|
|
"directory": "packages/chat"
|
|
},
|
|
"homepage": "https://chat-sdk.dev/docs",
|
|
"bugs": {
|
|
"url": "https://github.com/vercel/chat/issues"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"keywords": [
|
|
"chat",
|
|
"chat-sdk",
|
|
"chatbot",
|
|
"chat-bot",
|
|
"bot",
|
|
"bot-framework",
|
|
"messaging",
|
|
"multi-platform",
|
|
"slack",
|
|
"teams",
|
|
"microsoft-teams",
|
|
"discord",
|
|
"google-chat",
|
|
"telegram",
|
|
"whatsapp",
|
|
"github",
|
|
"webhook",
|
|
"ai-agent",
|
|
"ai-sdk",
|
|
"typescript",
|
|
"vercel"
|
|
],
|
|
"license": "MIT"
|
|
}
|