feat: support Codex goal slash command

This commit is contained in:
weishu
2026-05-15 22:15:17 +08:00
parent a099ae9199
commit 089ddad476
24 changed files with 808 additions and 6 deletions
+16
View File
@@ -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(),
+2
View File
@@ -11,6 +11,8 @@ export type {
TeamMessage,
TeamState,
TeamTask,
ThreadGoal,
ThreadGoalStatus,
TodoItem,
WorktreeMetadata
} from './schemas'