Add support for MCP in export mode

This commit is contained in:
YISH
2025-05-08 13:27:04 +08:00
parent 3809375694
commit d1baabae14
8 changed files with 198 additions and 51 deletions

View File

@@ -1,3 +1,7 @@
declare global {
const EXPORT_MODE: boolean;
}
export type Updater<T> = (updater: (value: T) => void) => void;
export const ROLES = ["system", "user", "assistant"] as const;