Files
edgeever/migrations/0049_companion_agent_run.sql
T
tianma-if 36f11471d3 feat(ai): give Agent a timeline, pinned context, and resumable runs
Show tool receipts in chat, pin notes with @, wire saved memory, and
let interrupted Agent turns continue. Split tool-side narration from
the user-facing answer.
2026-09-16 16:58:27 +08:00

9 lines
619 B
SQL

-- Agent-run timeline, pinned mentions, todos, and pause/resume state.
-- Additive JSON columns; existing turns stay valid with empty arrays.
ALTER TABLE companion_turns ADD COLUMN tools_json TEXT NOT NULL DEFAULT '[]';
ALTER TABLE companion_turns ADD COLUMN todos_json TEXT NOT NULL DEFAULT '[]';
ALTER TABLE companion_turns ADD COLUMN questions_json TEXT NOT NULL DEFAULT '[]';
ALTER TABLE companion_turns ADD COLUMN mentions_json TEXT NOT NULL DEFAULT '[]';
ALTER TABLE companion_turns ADD COLUMN focus_json TEXT NOT NULL DEFAULT '{}';
ALTER TABLE companion_turns ADD COLUMN answers_json TEXT NOT NULL DEFAULT '[]';