Files
paperclip/packages/shared/src/index.ts
Forgotten e0a878f4eb Scaffold agent permissions, approval comments, and hiring governance types
Add pending_approval agent status, permissions jsonb column, and AgentPermissions
type with canCreateAgents flag. Add approval_comments table and ApprovalComment
type. Extend approval statuses with revision_requested. Add validators for
permission updates, approval revision requests, resubmission, and approval
comments. Add requireBoardApprovalForNewAgents to company update schema.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 09:10:48 -06:00

122 lines
2.4 KiB
TypeScript

export {
COMPANY_STATUSES,
AGENT_STATUSES,
AGENT_ADAPTER_TYPES,
AGENT_ROLES,
ISSUE_STATUSES,
ISSUE_PRIORITIES,
GOAL_LEVELS,
GOAL_STATUSES,
PROJECT_STATUSES,
APPROVAL_TYPES,
APPROVAL_STATUSES,
HEARTBEAT_INVOCATION_SOURCES,
HEARTBEAT_RUN_STATUSES,
WAKEUP_TRIGGER_DETAILS,
WAKEUP_REQUEST_STATUSES,
LIVE_EVENT_TYPES,
type CompanyStatus,
type AgentStatus,
type AgentAdapterType,
type AgentRole,
type IssueStatus,
type IssuePriority,
type GoalLevel,
type GoalStatus,
type ProjectStatus,
type ApprovalType,
type ApprovalStatus,
type HeartbeatInvocationSource,
type HeartbeatRunStatus,
type WakeupTriggerDetail,
type WakeupRequestStatus,
type LiveEventType,
} from "./constants.js";
export type {
Company,
Agent,
AgentPermissions,
AgentKeyCreated,
Project,
Issue,
IssueComment,
Goal,
Approval,
ApprovalComment,
CostEvent,
CostSummary,
HeartbeatRun,
HeartbeatRunEvent,
AgentRuntimeState,
AgentWakeupRequest,
LiveEvent,
DashboardSummary,
ActivityEvent,
} from "./types/index.js";
export {
createCompanySchema,
updateCompanySchema,
type CreateCompany,
type UpdateCompany,
createAgentSchema,
updateAgentSchema,
createAgentKeySchema,
wakeAgentSchema,
agentPermissionsSchema,
updateAgentPermissionsSchema,
type CreateAgent,
type UpdateAgent,
type CreateAgentKey,
type WakeAgent,
type UpdateAgentPermissions,
createProjectSchema,
updateProjectSchema,
type CreateProject,
type UpdateProject,
createIssueSchema,
updateIssueSchema,
checkoutIssueSchema,
addIssueCommentSchema,
type CreateIssue,
type UpdateIssue,
type CheckoutIssue,
type AddIssueComment,
createGoalSchema,
updateGoalSchema,
type CreateGoal,
type UpdateGoal,
createApprovalSchema,
resolveApprovalSchema,
requestApprovalRevisionSchema,
resubmitApprovalSchema,
addApprovalCommentSchema,
type CreateApproval,
type ResolveApproval,
type RequestApprovalRevision,
type ResubmitApproval,
type AddApprovalComment,
createCostEventSchema,
updateBudgetSchema,
type CreateCostEvent,
type UpdateBudget,
} from "./validators/index.js";
export { API_PREFIX, API } from "./api.js";
export {
paperclipConfigSchema,
configMetaSchema,
llmConfigSchema,
databaseConfigSchema,
loggingConfigSchema,
serverConfigSchema,
type PaperclipConfig,
type LlmConfig,
type DatabaseConfig,
type LoggingConfig,
type ServerConfig,
type ConfigMeta,
} from "./config-schema.js";