feat(foundry): checkpoint actor and workspace refactor

This commit is contained in:
Nathan Flurry 2026-03-15 10:20:27 -07:00
parent 32f3c6c3bc
commit dbe57d45b9
81 changed files with 3441 additions and 2332 deletions

View file

@ -54,7 +54,6 @@ export const CreateTaskInputSchema = z.object({
explicitTitle: z.string().trim().min(1).optional(),
explicitBranchName: z.string().trim().min(1).optional(),
sandboxProviderId: SandboxProviderIdSchema.optional(),
agentType: AgentTypeSchema.optional(),
onBranch: z.string().trim().min(1).optional(),
});
export type CreateTaskInput = z.infer<typeof CreateTaskInputSchema>;
@ -69,9 +68,7 @@ export const TaskRecordSchema = z.object({
task: z.string().min(1),
sandboxProviderId: SandboxProviderIdSchema,
status: TaskStatusSchema,
statusMessage: z.string().nullable(),
activeSandboxId: z.string().nullable(),
activeSessionId: z.string().nullable(),
sandboxes: z.array(
z.object({
sandboxId: z.string().min(1),
@ -83,17 +80,12 @@ export const TaskRecordSchema = z.object({
updatedAt: z.number().int(),
}),
),
agentType: z.string().nullable(),
prSubmitted: z.boolean(),
diffStat: z.string().nullable(),
prUrl: z.string().nullable(),
prAuthor: z.string().nullable(),
ciStatus: z.string().nullable(),
reviewStatus: z.string().nullable(),
reviewer: z.string().nullable(),
conflictsWithMain: z.string().nullable(),
hasUnpushed: z.string().nullable(),
parentBranch: z.string().nullable(),
createdAt: z.number().int(),
updatedAt: z.number().int(),
});
@ -112,6 +104,7 @@ export type TaskSummary = z.infer<typeof TaskSummarySchema>;
export const TaskActionInputSchema = z.object({
organizationId: OrganizationIdSchema,
repoId: RepoIdSchema,
taskId: z.string().min(1),
});
export type TaskActionInput = z.infer<typeof TaskActionInputSchema>;
@ -180,7 +173,7 @@ export const HistoryQueryInputSchema = z.object({
});
export type HistoryQueryInput = z.infer<typeof HistoryQueryInputSchema>;
export const HistoryEventSchema = z.object({
export const AuditLogEventSchema = z.object({
id: z.number().int(),
organizationId: OrganizationIdSchema,
repoId: z.string().nullable(),
@ -190,7 +183,7 @@ export const HistoryEventSchema = z.object({
payloadJson: z.string().min(1),
createdAt: z.number().int(),
});
export type HistoryEvent = z.infer<typeof HistoryEventSchema>;
export type AuditLogEvent = z.infer<typeof AuditLogEventSchema>;
export const PruneInputSchema = z.object({
organizationId: OrganizationIdSchema,
@ -201,6 +194,7 @@ export type PruneInput = z.infer<typeof PruneInputSchema>;
export const KillInputSchema = z.object({
organizationId: OrganizationIdSchema,
repoId: RepoIdSchema,
taskId: z.string().min(1),
deleteBranch: z.boolean(),
abandon: z.boolean(),