test: cover mixed directive fast-lane

This commit is contained in:
Peter Steinberger
2026-01-12 21:56:50 +00:00
parent 877bc61b53
commit 5d83be76c9
2 changed files with 56 additions and 11 deletions

View File

@@ -256,6 +256,14 @@ const TelegramTopicSchema = z.object({
systemPrompt: z.string().optional(),
});
const NativeCommandsSettingSchema = z.union([z.boolean(), z.literal("auto")]);
const ProviderCommandsSchema = z
.object({
native: NativeCommandsSettingSchema.optional(),
})
.optional();
const TelegramGroupSchema = z.object({
requireMention: z.boolean().optional(),
skills: z.array(z.string()).optional(),
@@ -712,17 +720,6 @@ const MessagesSchema = z
})
.optional();
const NativeCommandsSettingSchema = z.union([
z.boolean(),
z.literal("auto"),
]);
const ProviderCommandsSchema = z
.object({
native: NativeCommandsSettingSchema.optional(),
})
.optional();
const CommandsSchema = z
.object({
native: NativeCommandsSettingSchema.optional().default("auto"),