feat: add announce delivery mode for automation runs

This commit is contained in:
William Valentin
2026-02-18 10:14:45 -08:00
parent f38fc063d2
commit 865068b71c
9 changed files with 85 additions and 9 deletions
+10
View File
@@ -1059,6 +1059,16 @@ describe('configSchema automation', () => {
expect(result.automation.delivery_mode).toBe('isolated_job');
});
it('accepts announce automation delivery mode', () => {
const result = configSchema.parse({
...baseConfig,
automation: {
delivery_mode: 'announce',
},
});
expect(result.automation.delivery_mode).toBe('announce');
});
it('accepts config with cron jobs', () => {
const result = configSchema.parse({
...baseConfig,
+1 -1
View File
@@ -417,7 +417,7 @@ const minioSyncAutomationSchema = z.object({
notify_on_success: z.boolean().default(false),
}).default({});
const automationDeliveryModeSchema = z.enum(['shared_session', 'isolated_job']);
const automationDeliveryModeSchema = z.enum(['shared_session', 'isolated_job', 'announce']);
const automationSchema = z.object({
/** Session strategy for automation-triggered runs (cron/webhooks/gmail). */