export type { Initiative, Phase, Task, Agent, Message, Page, Project, Account, ChangeSet, ChangeSetEntry } from '../../../src/db/schema.js';
export type { PendingQuestions, QuestionItem } from '../../../src/agent/types.js';

export type ExecutionMode = 'yolo' | 'review_per_phase';
export type PhaseStatus = 'pending' | 'approved' | 'in_progress' | 'completed' | 'blocked' | 'pending_review';

/**
 * Shape of events received from tRPC subscription streams.
 * Used by the frontend in onData callbacks.
 */
export interface SubscriptionEvent {
  id: string;
  type: string;
  payload: unknown;
  timestamp: string;
}
