tuna-agent 0.1.169 → 0.1.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,13 +16,7 @@ export declare const TaskAssignmentSchema: z.ZodObject<{
|
|
|
16
16
|
file_type: z.ZodString;
|
|
17
17
|
file_name: z.ZodString;
|
|
18
18
|
}, z.core.$strip>>>;
|
|
19
|
-
source: z.ZodDefault<z.ZodOptional<z.
|
|
20
|
-
manual: "manual";
|
|
21
|
-
skill: "skill";
|
|
22
|
-
scheduled: "scheduled";
|
|
23
|
-
workflow: "workflow";
|
|
24
|
-
api: "api";
|
|
25
|
-
}>>>;
|
|
19
|
+
source: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
26
20
|
agentId: z.ZodOptional<z.ZodString>;
|
|
27
21
|
enableReflection: z.ZodOptional<z.ZodBoolean>;
|
|
28
22
|
}, z.core.$strip>;
|
|
@@ -14,7 +14,10 @@ export const TaskAssignmentSchema = z.object({
|
|
|
14
14
|
mode: z.enum(['tuna', 'agent_team']),
|
|
15
15
|
confirmBeforeEdit: z.boolean().optional().default(false),
|
|
16
16
|
attachments: z.array(ChatAttachmentSchema).optional(),
|
|
17
|
-
source
|
|
17
|
+
// Accept any source string — it is metadata only. A strict enum here rejected
|
|
18
|
+
// the WHOLE task_assigned message for any new source (e.g. 'discord'), silently
|
|
19
|
+
// stranding tasks in 'queued'.
|
|
20
|
+
source: z.string().optional().default('manual'),
|
|
18
21
|
agentId: z.string().optional(),
|
|
19
22
|
enableReflection: z.boolean().optional(),
|
|
20
23
|
}),
|