Replaces the single-base-URL LLM settings with the new providers lib (OpenAI, Anthropic, DeepSeek, Qwen, LM Studio). Settings/LLM hosts the catalog-aware card; the /ai route builds adapters via buildAdapter() and resolves API keys from the arcadia vault per-call (direct mode). Anthropic skips the /v1/models probe (no such endpoint) and uses catalog defaults; failed probes for keyed providers fall back to the catalog instead of dropping to mock. AI conversation now persists across navigation and refresh via a new crema.ai.live localStorage key (separate from the compact-snapshot key). useChat hydrates from initialMessages on mount, saves on every change, and "Clear conversation" wipes both state and storage. Vite needs explicit resolve.alias for @crema/llm-ui and @crema/llm-providers-ui — when a sibling lib imports another @crema/*, tsconfigPaths can't resolve it (the importing file isn't in this project's tsconfig scope). Adds docs/LLM_PROXY_CONTRACT.md describing the POST /api/v1/ai/llm/chat endpoint the backend needs for proxy mode (keys never leave the server). Direct mode works against today's arcadia; proxy mode unblocks once that endpoint ships. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
66 lines
2.8 KiB
JSON
66 lines
2.8 KiB
JSON
{
|
|
"include": [
|
|
"**/*",
|
|
"**/.server/**/*",
|
|
"**/.client/**/*",
|
|
".react-router/types/**/*"
|
|
],
|
|
"compilerOptions": {
|
|
"lib": ["DOM", "DOM.Iterable", "ES2022"],
|
|
"types": ["node", "vite/client"],
|
|
"target": "ES2022",
|
|
"module": "ES2022",
|
|
"moduleResolution": "bundler",
|
|
"jsx": "react-jsx",
|
|
"rootDirs": [".", "./.react-router/types"],
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"~/*": ["./app/*"],
|
|
"@crema/notification-ui": ["../lib-notification-ui/src/index.tsx"],
|
|
"@crema/notification-ui/*": ["../lib-notification-ui/src/*"],
|
|
"@crema/chat-ui": ["../lib-chat-ui/src/index.tsx"],
|
|
"@crema/chat-ui/*": ["../lib-chat-ui/src/*"],
|
|
"@crema/aifirst-ui": ["../lib-aifirst-ui/src/index.tsx"],
|
|
"@crema/aifirst-ui/*": ["../lib-aifirst-ui/src/*"],
|
|
"@crema/llm-ui": ["../lib-llm-ui/src/index.tsx"],
|
|
"@crema/llm-ui/*": ["../lib-llm-ui/src/*"],
|
|
"@crema/action-bus": ["../lib-action-bus/src/index.tsx"],
|
|
"@crema/action-bus/*": ["../lib-action-bus/src/*"],
|
|
"@crema/arcadia-client": ["../lib-arcadia-client/src/index.tsx"],
|
|
"@crema/arcadia-client/*": ["../lib-arcadia-client/src/*"],
|
|
"@crema/arcadia-auth-ui": ["../lib-arcadia-auth-ui/src/index.tsx"],
|
|
"@crema/arcadia-auth-ui/*": ["../lib-arcadia-auth-ui/src/*"],
|
|
"@crema/table-ui": ["../lib-table-ui/src/index.tsx"],
|
|
"@crema/table-ui/*": ["../lib-table-ui/src/*"],
|
|
"@crema/search-ui": ["../lib-search-ui/src/index.tsx"],
|
|
"@crema/search-ui/*": ["../lib-search-ui/src/*"],
|
|
"@crema/feedback-ui": ["../lib-feedback-ui/src/index.tsx"],
|
|
"@crema/feedback-ui/*": ["../lib-feedback-ui/src/*"],
|
|
"@crema/auth-ui": ["../lib-auth-ui/src/index.tsx"],
|
|
"@crema/auth-ui/*": ["../lib-auth-ui/src/*"],
|
|
"@crema/agent-ui": ["../lib-agent-ui/src/index.tsx"],
|
|
"@crema/agent-ui/*": ["../lib-agent-ui/src/*"],
|
|
"@crema/llm-providers-ui": ["../lib-llm-providers-ui/src/index.tsx"],
|
|
"@crema/llm-providers-ui/*": ["../lib-llm-providers-ui/src/*"],
|
|
"// CREMA:PATHS": [""],
|
|
"react": ["./node_modules/@types/react"],
|
|
"react/*": ["./node_modules/@types/react/*"],
|
|
"react-dom": ["./node_modules/@types/react-dom"],
|
|
"react-dom/*": ["./node_modules/@types/react-dom/*"],
|
|
"clsx": ["./node_modules/clsx"],
|
|
"tailwind-merge": ["./node_modules/tailwind-merge"],
|
|
"lucide-react": ["./node_modules/lucide-react"],
|
|
"openapi-fetch": ["./node_modules/openapi-fetch"],
|
|
"openapi-fetch/*": ["./node_modules/openapi-fetch/*"],
|
|
"phoenix": ["./node_modules/@types/phoenix"],
|
|
"phoenix/*": ["./node_modules/@types/phoenix/*"]
|
|
},
|
|
"esModuleInterop": true,
|
|
"verbatimModuleSyntax": true,
|
|
"noEmit": true,
|
|
"resolveJsonModule": true,
|
|
"skipLibCheck": true,
|
|
"strict": true
|
|
}
|
|
}
|