From a45c92b9927b8266826498f9569ab79a475fb68b Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 1 May 2026 22:27:33 +0100 Subject: [PATCH] refactor: trim cron and rescue exports --- src/crestodian/assistant-backends.ts | 6 +++--- src/crestodian/rescue-policy.ts | 4 ++-- src/cron/run-log.ts | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/crestodian/assistant-backends.ts b/src/crestodian/assistant-backends.ts index 2b5372ac632..f857f213ffd 100644 --- a/src/crestodian/assistant-backends.ts +++ b/src/crestodian/assistant-backends.ts @@ -1,10 +1,10 @@ import type { OpenClawConfig } from "../config/types.openclaw.js"; import type { CrestodianOverview } from "./overview.js"; -export const CRESTODIAN_CLAUDE_CLI_MODEL = "claude-opus-4-7"; -export const CRESTODIAN_CODEX_MODEL = "gpt-5.5"; +const CRESTODIAN_CLAUDE_CLI_MODEL = "claude-opus-4-7"; +const CRESTODIAN_CODEX_MODEL = "gpt-5.5"; -export type CrestodianLocalPlannerBackend = { +type CrestodianLocalPlannerBackend = { kind: "claude-cli" | "codex-app-server" | "codex-cli"; label: string; runner: "cli" | "embedded"; diff --git a/src/crestodian/rescue-policy.ts b/src/crestodian/rescue-policy.ts index 98cdd4d272e..44b0fb930bf 100644 --- a/src/crestodian/rescue-policy.ts +++ b/src/crestodian/rescue-policy.ts @@ -1,7 +1,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js"; import { normalizeAgentId } from "../routing/session-key.js"; -export type CrestodianRescueDecision = +type CrestodianRescueDecision = | { allowed: true; enabled: true; @@ -21,7 +21,7 @@ export type CrestodianRescueDecision = message: string; }; -export type CrestodianRescuePolicyInput = { +type CrestodianRescuePolicyInput = { cfg: OpenClawConfig; agentId?: string; senderIsOwner: boolean; diff --git a/src/cron/run-log.ts b/src/cron/run-log.ts index 95ff8864e37..0bca59f4aca 100644 --- a/src/cron/run-log.ts +++ b/src/cron/run-log.ts @@ -34,10 +34,10 @@ export type CronRunLogEntry = { nextRunAtMs?: number; } & CronRunTelemetry; -export type CronRunLogSortDir = "asc" | "desc"; -export type CronRunLogStatusFilter = "all" | "ok" | "error" | "skipped"; +type CronRunLogSortDir = "asc" | "desc"; +type CronRunLogStatusFilter = "all" | "ok" | "error" | "skipped"; -export type ReadCronRunLogPageOptions = { +type ReadCronRunLogPageOptions = { limit?: number; offset?: number; jobId?: string; @@ -49,7 +49,7 @@ export type ReadCronRunLogPageOptions = { sortDir?: CronRunLogSortDir; }; -export type CronRunLogPageResult = { +type CronRunLogPageResult = { entries: CronRunLogEntry[]; total: number; offset: number;