Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
export const COMPANY_STATUSES = ["active", "paused", "archived"] as const;
|
|
|
|
|
export type CompanyStatus = (typeof COMPANY_STATUSES)[number];
|
|
|
|
|
|
|
|
|
|
export const AGENT_STATUSES = [
|
|
|
|
|
"active",
|
|
|
|
|
"paused",
|
|
|
|
|
"idle",
|
|
|
|
|
"running",
|
|
|
|
|
"error",
|
2026-02-19 09:10:38 -06:00
|
|
|
"pending_approval",
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
"terminated",
|
|
|
|
|
] as const;
|
2026-02-16 13:31:47 -06:00
|
|
|
export type AgentStatus = (typeof AGENT_STATUSES)[number];
|
|
|
|
|
|
2026-02-17 12:24:38 -06:00
|
|
|
export const AGENT_ADAPTER_TYPES = ["process", "http", "claude_local", "codex_local"] as const;
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
export type AgentAdapterType = (typeof AGENT_ADAPTER_TYPES)[number];
|
|
|
|
|
|
2026-02-16 13:31:47 -06:00
|
|
|
export const AGENT_ROLES = [
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
"ceo",
|
|
|
|
|
"cto",
|
|
|
|
|
"cmo",
|
|
|
|
|
"cfo",
|
2026-02-16 13:31:47 -06:00
|
|
|
"engineer",
|
|
|
|
|
"designer",
|
|
|
|
|
"pm",
|
|
|
|
|
"qa",
|
|
|
|
|
"devops",
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
"researcher",
|
2026-02-16 13:31:47 -06:00
|
|
|
"general",
|
|
|
|
|
] as const;
|
|
|
|
|
export type AgentRole = (typeof AGENT_ROLES)[number];
|
|
|
|
|
|
|
|
|
|
export const ISSUE_STATUSES = [
|
|
|
|
|
"backlog",
|
|
|
|
|
"todo",
|
|
|
|
|
"in_progress",
|
|
|
|
|
"in_review",
|
|
|
|
|
"done",
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
"blocked",
|
2026-02-16 13:31:47 -06:00
|
|
|
"cancelled",
|
|
|
|
|
] as const;
|
|
|
|
|
export type IssueStatus = (typeof ISSUE_STATUSES)[number];
|
|
|
|
|
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
export const ISSUE_PRIORITIES = ["critical", "high", "medium", "low"] as const;
|
2026-02-16 13:31:47 -06:00
|
|
|
export type IssuePriority = (typeof ISSUE_PRIORITIES)[number];
|
|
|
|
|
|
|
|
|
|
export const GOAL_LEVELS = ["company", "team", "agent", "task"] as const;
|
|
|
|
|
export type GoalLevel = (typeof GOAL_LEVELS)[number];
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
|
|
|
|
|
export const GOAL_STATUSES = ["planned", "active", "achieved", "cancelled"] as const;
|
|
|
|
|
export type GoalStatus = (typeof GOAL_STATUSES)[number];
|
|
|
|
|
|
|
|
|
|
export const PROJECT_STATUSES = [
|
|
|
|
|
"backlog",
|
|
|
|
|
"planned",
|
|
|
|
|
"in_progress",
|
|
|
|
|
"completed",
|
|
|
|
|
"cancelled",
|
|
|
|
|
] as const;
|
|
|
|
|
export type ProjectStatus = (typeof PROJECT_STATUSES)[number];
|
|
|
|
|
|
|
|
|
|
export const APPROVAL_TYPES = ["hire_agent", "approve_ceo_strategy"] as const;
|
|
|
|
|
export type ApprovalType = (typeof APPROVAL_TYPES)[number];
|
|
|
|
|
|
2026-02-19 09:10:38 -06:00
|
|
|
export const APPROVAL_STATUSES = [
|
|
|
|
|
"pending",
|
|
|
|
|
"revision_requested",
|
|
|
|
|
"approved",
|
|
|
|
|
"rejected",
|
|
|
|
|
"cancelled",
|
|
|
|
|
] as const;
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
export type ApprovalStatus = (typeof APPROVAL_STATUSES)[number];
|
|
|
|
|
|
2026-02-19 15:43:43 -06:00
|
|
|
export const SECRET_PROVIDERS = [
|
|
|
|
|
"local_encrypted",
|
|
|
|
|
"aws_secrets_manager",
|
|
|
|
|
"gcp_secret_manager",
|
|
|
|
|
"vault",
|
|
|
|
|
] as const;
|
|
|
|
|
export type SecretProvider = (typeof SECRET_PROVIDERS)[number];
|
|
|
|
|
|
2026-02-20 10:31:56 -06:00
|
|
|
export const STORAGE_PROVIDERS = ["local_disk", "s3"] as const;
|
|
|
|
|
export type StorageProvider = (typeof STORAGE_PROVIDERS)[number];
|
|
|
|
|
|
2026-02-17 12:24:38 -06:00
|
|
|
export const HEARTBEAT_INVOCATION_SOURCES = [
|
|
|
|
|
"timer",
|
|
|
|
|
"assignment",
|
|
|
|
|
"on_demand",
|
|
|
|
|
"automation",
|
|
|
|
|
] as const;
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
export type HeartbeatInvocationSource = (typeof HEARTBEAT_INVOCATION_SOURCES)[number];
|
|
|
|
|
|
2026-02-17 12:24:38 -06:00
|
|
|
export const WAKEUP_TRIGGER_DETAILS = ["manual", "ping", "callback", "system"] as const;
|
|
|
|
|
export type WakeupTriggerDetail = (typeof WAKEUP_TRIGGER_DETAILS)[number];
|
|
|
|
|
|
|
|
|
|
export const WAKEUP_REQUEST_STATUSES = [
|
|
|
|
|
"queued",
|
2026-02-20 15:48:22 -06:00
|
|
|
"deferred_issue_execution",
|
2026-02-17 12:24:38 -06:00
|
|
|
"claimed",
|
|
|
|
|
"coalesced",
|
|
|
|
|
"skipped",
|
|
|
|
|
"completed",
|
|
|
|
|
"failed",
|
|
|
|
|
"cancelled",
|
|
|
|
|
] as const;
|
|
|
|
|
export type WakeupRequestStatus = (typeof WAKEUP_REQUEST_STATUSES)[number];
|
|
|
|
|
|
Expand data model with companies, approvals, costs, and heartbeats
Add new DB schemas: companies, agent_api_keys, approvals, cost_events,
heartbeat_runs, issue_comments. Add corresponding shared types and
validators. Update existing schemas (agents, goals, issues, projects)
with new fields for company association, budgets, and richer metadata.
Generate initial Drizzle migration. Update seed data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:22 -06:00
|
|
|
export const HEARTBEAT_RUN_STATUSES = [
|
|
|
|
|
"queued",
|
|
|
|
|
"running",
|
|
|
|
|
"succeeded",
|
|
|
|
|
"failed",
|
|
|
|
|
"cancelled",
|
|
|
|
|
"timed_out",
|
|
|
|
|
] as const;
|
|
|
|
|
export type HeartbeatRunStatus = (typeof HEARTBEAT_RUN_STATUSES)[number];
|
2026-02-17 12:24:38 -06:00
|
|
|
|
|
|
|
|
export const LIVE_EVENT_TYPES = [
|
|
|
|
|
"heartbeat.run.queued",
|
|
|
|
|
"heartbeat.run.status",
|
|
|
|
|
"heartbeat.run.event",
|
|
|
|
|
"heartbeat.run.log",
|
|
|
|
|
"agent.status",
|
|
|
|
|
"activity.logged",
|
|
|
|
|
] as const;
|
|
|
|
|
export type LiveEventType = (typeof LIVE_EVENT_TYPES)[number];
|