mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat: support Codex goal slash command
This commit is contained in:
@@ -138,6 +138,22 @@ export const TeamStateSchema = z.object({
|
||||
|
||||
export type TeamState = z.infer<typeof TeamStateSchema>
|
||||
|
||||
export const ThreadGoalStatusSchema = z.enum(['active', 'paused', 'budgetLimited', 'complete'])
|
||||
export type ThreadGoalStatus = z.infer<typeof ThreadGoalStatusSchema>
|
||||
|
||||
export const ThreadGoalSchema = z.object({
|
||||
threadId: z.string(),
|
||||
objective: z.string(),
|
||||
status: ThreadGoalStatusSchema,
|
||||
tokenBudget: z.number().nullable().optional(),
|
||||
tokensUsed: z.number().optional().default(0),
|
||||
timeUsedSeconds: z.number().optional().default(0),
|
||||
createdAt: z.number().optional().default(0),
|
||||
updatedAt: z.number().optional().default(0)
|
||||
})
|
||||
|
||||
export type ThreadGoal = z.infer<typeof ThreadGoalSchema>
|
||||
|
||||
export const AttachmentMetadataSchema = z.object({
|
||||
id: z.string(),
|
||||
filename: z.string(),
|
||||
|
||||
@@ -11,6 +11,8 @@ export type {
|
||||
TeamMessage,
|
||||
TeamState,
|
||||
TeamTask,
|
||||
ThreadGoal,
|
||||
ThreadGoalStatus,
|
||||
TodoItem,
|
||||
WorktreeMetadata
|
||||
} from './schemas'
|
||||
|
||||
Reference in New Issue
Block a user