mirror of
https://github.com/temetro/temetro.git
synced 2026-07-26 11:58:14 +00:00
31d86bb5dd
Replace the mock chat with the live backend agent: - chat-panel uses @ai-sdk/react useChat against /api/chat (credentials included), passing the selected model + effort per send. The `/patient <file#>` fast-path is kept as an instant client-side shortcut. - Renders the agent's streamed data parts: patientCard → record cards (PatientResult), labCard → new LabChartCard (visx area chart with a high/low flag badge in the top-right corner + recent values), importPreview → ImportPreviewCard (the human approval gate: review counts/issues, then commit via POST /api/ai/import — nothing is written until approved). - Veil consent: a one-time dialog before the first send to a cloud model, explaining that identifiers are de-identified before leaving the clinic. - Attached text files (csv/json/txt…) now include their content in the message so the agent can parse an export for import. Shared chat message/data-part types in lib/ai-chat.ts. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
77 lines
2.2 KiB
JSON
77 lines
2.2 KiB
JSON
{
|
|
"name": "frontend",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint"
|
|
},
|
|
"dependencies": {
|
|
"@ai-sdk/react": "^3.0.206",
|
|
"@base-ui/react": "^1.5.0",
|
|
"@number-flow/react": "^0.6.0",
|
|
"@radix-ui/react-use-controllable-state": "^1.2.2",
|
|
"@rive-app/react-webgl2": "^4.28.6",
|
|
"@streamdown/cjk": "^1.0.3",
|
|
"@streamdown/code": "^1.1.1",
|
|
"@streamdown/math": "^1.0.2",
|
|
"@streamdown/mermaid": "^1.0.2",
|
|
"@tiptap/extension-placeholder": "^3.25.0",
|
|
"@tiptap/extension-underline": "^3.25.0",
|
|
"@tiptap/pm": "^3.25.0",
|
|
"@tiptap/react": "^3.25.0",
|
|
"@tiptap/starter-kit": "^3.25.0",
|
|
"@visx/curve": "^4.0.1-alpha.0",
|
|
"@visx/event": "^4.0.1-alpha.0",
|
|
"@visx/gradient": "^4.0.1-alpha.0",
|
|
"@visx/grid": "^4.0.1-alpha.0",
|
|
"@visx/pattern": "^4.0.1-alpha.0",
|
|
"@visx/responsive": "^4.0.1-alpha.0",
|
|
"@visx/scale": "^4.0.1-alpha.0",
|
|
"@visx/shape": "^4.0.1-alpha.0",
|
|
"@xyflow/react": "^12.10.2",
|
|
"ai": "^6.0.193",
|
|
"ansi-to-react": "^6.2.6",
|
|
"better-auth": "^1.6.13",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"d3-array": "^3.2.4",
|
|
"embla-carousel-react": "^8.6.0",
|
|
"framer-motion": "^12.40.0",
|
|
"i18next": "^26.3.1",
|
|
"i18next-browser-languagedetector": "^8.2.1",
|
|
"lucide-react": "^1.17.0",
|
|
"media-chrome": "^4.19.0",
|
|
"motion": "^12.40.0",
|
|
"nanoid": "^5.1.11",
|
|
"next": "16.2.6",
|
|
"next-themes": "^0.4.6",
|
|
"react": "19.2.4",
|
|
"react-day-picker": "^10.0.1",
|
|
"react-dom": "19.2.4",
|
|
"react-i18next": "^17.0.8",
|
|
"react-jsx-parser": "^2.4.1",
|
|
"shadcn": "^4.8.3",
|
|
"shiki": "^4.1.0",
|
|
"socket.io-client": "^4.8.3",
|
|
"streamdown": "^2.5.0",
|
|
"tailwind-merge": "^3.6.0",
|
|
"tokenlens": "^1.3.1",
|
|
"tw-animate-css": "^1.4.0",
|
|
"use-stick-to-bottom": "^1.1.4"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.2.6",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5"
|
|
}
|
|
}
|