baa-conductor


baa-conductor / packages / schemas / src
codex@macbookpro  ·  2026-03-26

index.ts

 1export type AutomationMode = "running" | "draining" | "paused";
 2export type TaskStatus = "queued" | "planning" | "running" | "paused" | "done" | "failed" | "canceled";
 3export type StepStatus = "pending" | "running" | "done" | "failed" | "timeout";
 4export type StepKind = "planner" | "codex" | "shell" | "git" | "review" | "finalize";
 5export type BrowserLoginStateStatus = "fresh" | "stale" | "lost";
 6
 7export interface TaskRecord {
 8  taskId: string;
 9  repo: string;
10  taskType: string;
11  title: string;
12  goal: string;
13  status: TaskStatus;
14  branchName: string | null;
15  baseRef: string | null;
16}
17
18export interface StepRecord {
19  stepId: string;
20  taskId: string;
21  stepIndex: number;
22  stepName: string;
23  stepKind: StepKind;
24  status: StepStatus;
25  timeoutSec: number;
26}
27
28export interface BrowserSessionKey {
29  platform: string;
30  clientId: string;
31  account: string;
32}
33
34export interface BrowserLoginStateRecord extends BrowserSessionKey {
35  host: string;
36  browser: string;
37  credentialFingerprint: string;
38  capturedAt: number;
39  lastSeenAt: number;
40  status: BrowserLoginStateStatus;
41}
42
43export interface BrowserEndpointMetadataRecord extends BrowserSessionKey {
44  endpoints: string[];
45  updatedAt: number;
46  lastVerifiedAt: number | null;
47}