Replace Vercel AI SDK with Anthropic Claude Agent SDK. Add standalone agent server (packages/agent-server/) with MCP tools, JWT auth, and SSE streaming. Introduce bridge API routes (src/app/api/compass/) and custom SSE hooks (use-agent, use-compass-chat) replacing useChat. Remove provider.ts, tools.ts, system-prompt.ts, github-tools.ts, usage.ts, and old agent route.
11 lines
331 B
SQL
11 lines
331 B
SQL
CREATE TABLE `user_provider_config` (
|
|
`user_id` text PRIMARY KEY NOT NULL,
|
|
`provider_type` text NOT NULL,
|
|
`api_key` text,
|
|
`base_url` text,
|
|
`model_overrides` text,
|
|
`is_active` integer DEFAULT 1 NOT NULL,
|
|
`updated_at` text NOT NULL,
|
|
FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action
|
|
);
|