feat: 작업(VTODO) 파이프라인 구현 — n8n todo intent + Handle Todo 노드

- Qwen 분류기에 todo intent 추가 (프롬프트 + keyword fallback)
- Route by Intent switch에 Todo case 추가
- Handle Todo 코드 노드 신규: Qwen 추출 → CalDAV create-todo → DB 저장
- migrate-v7.sql: calendar_events에 event_type 컬럼 + start_time nullable

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-03-19 15:06:00 +09:00
parent de5dde43ab
commit 323de7afbe
2 changed files with 77 additions and 2 deletions

8
init/migrate-v7.sql Normal file
View File

@@ -0,0 +1,8 @@
-- migrate-v7.sql: calendar_events에 todo 지원 추가
-- 실행: docker exec -i bot-postgres psql -U bot -d chatbot < init/migrate-v7.sql
-- event_type: 'event' (VEVENT) | 'todo' (VTODO)
ALTER TABLE calendar_events ADD COLUMN IF NOT EXISTS event_type VARCHAR(10) DEFAULT 'event';
-- start_time을 nullable로 변경 (todo는 시작시간 없이 due만 가질 수 있음)
ALTER TABLE calendar_events ALTER COLUMN start_time DROP NOT NULL;

File diff suppressed because one or more lines are too long