From e1ab5a4679a3725c40193c0bcf9ed333fbc3ab2a Mon Sep 17 00:00:00 2001 From: scottgl Date: Tue, 17 Mar 2026 21:58:03 -0500 Subject: [PATCH] fix: remove duplicate CronPayload declaration and unused imports - Removed duplicate CronPayload type declaration that was causing lint error - Removed unused CronJobBase import - Removed unused CronAgentTurnPayload type alias --- src/cron/types.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/cron/types.ts b/src/cron/types.ts index 29d1f183095..4deae0a7c4e 100644 --- a/src/cron/types.ts +++ b/src/cron/types.ts @@ -1,6 +1,5 @@ import type { FailoverReason } from "../agents/pi-embedded-helpers.js"; import type { ChannelId } from "../channels/plugins/types.js"; -import type { CronJobBase } from "./types-shared.js"; export type CronSchedule = | { kind: "at"; at: string } @@ -117,8 +116,6 @@ export type CronFailureAlert = { accountId?: string; }; -export type CronPayload = { kind: "systemEvent"; text: string } | CronAgentTurnPayload; - export type CronPayloadPatch = { kind: "systemEvent"; text?: string } | CronAgentTurnPayloadPatch; type CronAgentTurnPayloadFields = { @@ -138,10 +135,6 @@ type CronAgentTurnPayloadFields = { bestEffortDeliver?: boolean; }; -type CronAgentTurnPayload = { - kind: "agentTurn"; -} & CronAgentTurnPayloadFields; - type CronAgentTurnPayloadPatch = { kind: "agentTurn"; } & Partial;