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>
This commit is contained in:
Forgotten
2026-02-19 13:02:25 -06:00
parent 778b39d3b5
commit db0b19bf9d
10 changed files with 61 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ export const createApprovalSchema = z.object({
type: z.enum(APPROVAL_TYPES),
requestedByAgentId: z.string().uuid().optional().nullable(),
payload: z.record(z.unknown()),
issueIds: z.array(z.string().uuid()).optional(),
});
export type CreateApproval = z.infer<typeof createApprovalSchema>;