-- Add completion action fields to tasks table
-- These control what happens when a task completes successfully

-- Path to user's local repository (outside ~/.makima)
-- Overrides daemon's default_target_repo if set
ALTER TABLE tasks ADD COLUMN target_repo_path VARCHAR(512);

-- Action to perform on completion: "none", "branch", "merge", or "pr"
-- - branch: Push task branch to target repo (default)
-- - merge: Auto-merge branch into target_branch in target repo
-- - pr: Create GitHub pull request
-- - none: Keep work in worktree only
ALTER TABLE tasks ADD COLUMN completion_action VARCHAR(32) DEFAULT 'branch';
