Files
paperclip/packages/shared/src/index.ts
Forgotten db0b19bf9d Add shared types for agent hiring, config revisions, costs breakdown, and sidebar badges
Add AgentConfigRevision, CostByAgent, SidebarBadges types. Add createAgentHireSchema
with source issue linking and linkIssueApprovalSchema. Extend approval validator with
issueIds. Update cost summary to generic period naming. Add sidebar badges API path.

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

129 lines
2.6 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,
AgentConfigRevision,
Project,
Issue,
IssueComment,
Goal,
Approval,
ApprovalComment,
CostEvent,
CostSummary,
CostByAgent,
HeartbeatRun,
HeartbeatRunEvent,
AgentRuntimeState,
AgentWakeupRequest,
LiveEvent,
DashboardSummary,
ActivityEvent,
SidebarBadges,
} from "./types/index.js";
export {
createCompanySchema,
updateCompanySchema,
type CreateCompany,
type UpdateCompany,
createAgentSchema,
createAgentHireSchema,
updateAgentSchema,
createAgentKeySchema,
wakeAgentSchema,
agentPermissionsSchema,
updateAgentPermissionsSchema,
type CreateAgent,
type CreateAgentHire,
type UpdateAgent,
type CreateAgentKey,
type WakeAgent,
type UpdateAgentPermissions,
createProjectSchema,
updateProjectSchema,
type CreateProject,
type UpdateProject,
createIssueSchema,
updateIssueSchema,
checkoutIssueSchema,
addIssueCommentSchema,
linkIssueApprovalSchema,
type CreateIssue,
type UpdateIssue,
type CheckoutIssue,
type AddIssueComment,
type LinkIssueApproval,
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";