mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
268b39e3e0
Add capability-gated surface methods across the bot packages so one handler degrades gracefully per platform: - thread.react / thread.unreact — emoji reactions (Slack, Discord, Telegram) - thread.postEphemeral — only-you messages with a required DM fallback - openModal (interaction/command-scoped) — structured forms (Slack rich, Discord text-only), omitted on surfaces with no live interaction trigger Spans @copilotkit/bot-ui, bot, bot-slack, bot-discord, bot-telegram with per-adapter capability flags. Discord: open modals from slash-command interactions, and never clear registered commands on an empty publish.
6 lines
216 B
TypeScript
6 lines
216 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
export default defineConfig({
|
|
test: { include: ["src/**/*.test.ts", "src/**/*.test.tsx"] },
|
|
esbuild: { jsx: "automatic", jsxImportSource: "@copilotkit/bot-ui" },
|
|
});
|