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; }) {