Scaffold web frontend: mock-backed chat + PDF split-view, Tailwind/shadcn
This commit is contained in:
@@ -2,5 +2,9 @@
|
||||
"name": "@duoc-thu/shared-types",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"main": "src/index.ts"
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"devDependencies": {
|
||||
"typescript": "^5.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
export interface Citation {
|
||||
drugName: string;
|
||||
sectionType: string;
|
||||
sourcePageRange: [number, number];
|
||||
}
|
||||
|
||||
export interface ChatMessage {
|
||||
id: string;
|
||||
role: "user" | "assistant";
|
||||
content: string;
|
||||
citations?: Citation[];
|
||||
disclaimer?: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface SendMessageResponse {
|
||||
message: ChatMessage;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
export {};
|
||||
export * from "./dto/chat";
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "../config/tsconfig-base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src"
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
Reference in New Issue
Block a user