fix(build): remove next-pwa and fix type errors
- Remove unused next-pwa dependency to eliminate workbox/rimraf warnings - Fix DraftRecord type error by removing invalid updatedAt property - Fix LLMService.getTeacherResponseStream type by adding optional onIntent callback
This commit is contained in:
3526
package-lock.json
generated
3526
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -27,7 +27,6 @@
|
||||
"dexie-react-hooks": "^4.2.0",
|
||||
"lucide-react": "^0.562.0",
|
||||
"next": "16.1.4",
|
||||
"next-pwa": "^5.6.0",
|
||||
"next-themes": "^0.4.6",
|
||||
"react": "19.2.3",
|
||||
"react-dom": "19.2.3",
|
||||
|
||||
@@ -42,7 +42,6 @@ export function DraftSheet() {
|
||||
// We should probably save the raw JSON or a formatted textual representation.
|
||||
// Let's save formatted text.
|
||||
createdAt: Date.now(),
|
||||
updatedAt: Date.now(),
|
||||
status: 'completed',
|
||||
completedAt: Date.now(),
|
||||
tags: []
|
||||
|
||||
@@ -173,6 +173,7 @@ export class LLMService {
|
||||
content: string,
|
||||
history: { role: string; content: string }[],
|
||||
callbacks: {
|
||||
onIntent?: (intent: import('@/lib/llm/intent-detector').Intent) => void;
|
||||
onToken: (token: string) => void;
|
||||
onComplete: (fullText: string) => void;
|
||||
onError: (error: any) => void;
|
||||
|
||||
Reference in New Issue
Block a user