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:
Max
2026-01-27 11:25:41 +07:00
parent 83ca7c6cd7
commit 7084ebff05
4 changed files with 187 additions and 3342 deletions

3526
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -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",

View File

@@ -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: []

View File

@@ -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;