// bttask types — task board system

import type { AgentId, GroupId } from './ids';

export type TaskStatus = 'todo' | 'progress' | 'review' | 'done' | 'blocked';
export type TaskPriority = 'low' | 'medium' | 'high' | 'critical';

export interface Task {
  id: string;
  title: string;
  description: string;
  status: TaskStatus;
  priority: TaskPriority;
  assignedTo: AgentId | null;
  createdBy: AgentId;
  groupId: GroupId;
  parentTaskId: string | null;
  sortOrder: number;
  createdAt: string;
  updatedAt: string;
  version: number;
}

export interface TaskComment {
  id: string;
  taskId: string;
  agentId: AgentId;
  content: string;
  createdAt: string;
}
