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

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;