Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

fix(routines): the limits' shape is imported where it is defined

David Neyra419cde0a2736
diff --git a/server/routine-bounds.ts b/server/routine-bounds.ts
index 523eaa772b..29428b917d 100644
--- a/server/routine-bounds.ts
+++ b/server/routine-bounds.ts
@@ -2,10 +2,11 @@
// scheduled run queued behind its busy bot is given up after an hour, and stopping a turn never keeps the scheduler
// from its other routines. Each ends with its reason on the run's row. The work and the busy wait are added up one
// scheduler pass at a time, each step capped, so the hours a computer slept, or a clock that jumped, are in neither.
+import type { RoutineRunLimits } from "../shared/routines.ts";
import { DUE_CLOCK_MS } from "./due-timer.ts";
import { codedLine, type RoutineLine } from "./routine-lines.ts";
import { ROUTINE_BUSY_WAIT_MS } from "./routine-recovery.ts";
-import { routineRunLimits, type RoutineRunLimits } from "./routine-run-limits.ts";
+import { routineRunLimits } from "./routine-run-limits.ts";
import { activeMs } from "./routine-waits.ts";
import type { RoutineManagerOptions, RoutineRun } from "./routines.ts";
diff --git a/server/routine-run-limits.ts b/server/routine-run-limits.ts
index ad0f31c629..c2d3680fd7 100644
--- a/server/routine-run-limits.ts
+++ b/server/routine-run-limits.ts
@@ -5,8 +5,6 @@
import { ROUTINE_GOAL_RUN_LIMIT_MINUTES, ROUTINE_RUN_LIMIT_MINUTES, type RoutineRunLimits } from "../shared/routines.ts";
import { envWhole } from "./env-limits.ts";
-export type { RoutineRunLimits };
-
/** The longest limit the environment may name, in hours: the longest a routine may set for itself (1,440 minutes). */
export const RUN_LIMIT_HOURS_MAX = 24;