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
This commit is contained in:
scottgl 2026-03-17 21:58:03 -05:00 committed by Scott Glover
parent f5cacfe528
commit e1ab5a4679

View File

@ -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<CronAgentTurnPayloadFields>;