From eaaab098fbbdd91ac78331c8f14ad5abc9111dee Mon Sep 17 00:00:00 2001 From: Ayaan Zaidi Date: Sat, 18 Apr 2026 14:36:16 +0530 Subject: [PATCH] test(cron): use CronDeliveryMode in policy helpers --- src/cron/isolated-agent/run.message-tool-policy.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cron/isolated-agent/run.message-tool-policy.test.ts b/src/cron/isolated-agent/run.message-tool-policy.test.ts index 43a74f65837..6c1071ab6c9 100644 --- a/src/cron/isolated-agent/run.message-tool-policy.test.ts +++ b/src/cron/isolated-agent/run.message-tool-policy.test.ts @@ -1,4 +1,5 @@ import { afterEach, beforeEach, describe, expect, it } from "vitest"; +import type { CronDeliveryMode } from "../types.js"; import { clearFastTestEnv, dispatchCronDeliveryMock, @@ -36,7 +37,7 @@ describe("runCronIsolatedAgentTurn message tool policy", () => { async function expectMessageToolDisabledForPlan(plan: { requested: boolean; - mode: "none" | "announce"; + mode: CronDeliveryMode; channel?: string; to?: string; }) { @@ -49,7 +50,7 @@ describe("runCronIsolatedAgentTurn message tool policy", () => { async function expectMessageToolEnabledForPlan(plan: { requested: boolean; - mode: "none" | "announce"; + mode: CronDeliveryMode; channel?: string; to?: string; }) {