From 086a9dbbd870b631f8b5d70c04acceededb943e3 Mon Sep 17 00:00:00 2001 From: Dotta Date: Sun, 11 Oct 2026 03:08:05 -0500 Subject: [PATCH] fix: expose computer retirement grace through module boundary --- server/src/modules/computers/index.ts | 2 +- server/src/services/heartbeat/recovery.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/modules/computers/index.ts b/server/src/modules/computers/index.ts index 5d42d275719..5ae73890c5a 100644 --- a/server/src/modules/computers/index.ts +++ b/server/src/modules/computers/index.ts @@ -3,7 +3,7 @@ import { secretService } from "../../services/secrets.js"; import { computerRepository } from "./adapters/repository.js"; import { boatBackend } from "./adapters/boat.js"; import { createComputerService } from "./application/service.js"; -export { ComputerError, ComputerStopPendingError } from "./domain/ledger.js"; +export { COMPUTER_RETIREMENT_GRACE_MS, ComputerError, ComputerStopPendingError } from "./domain/ledger.js"; export type { OwnerRef as ComputerOwnerRef, ProcessClaim as ComputerProcessClaim, diff --git a/server/src/services/heartbeat/recovery.ts b/server/src/services/heartbeat/recovery.ts index 95cd90b00ea..f6a84bfba6d 100644 --- a/server/src/services/heartbeat/recovery.ts +++ b/server/src/services/heartbeat/recovery.ts @@ -1,4 +1,4 @@ -import { COMPUTER_RETIREMENT_GRACE_MS } from "../../modules/computers/domain/ledger.js"; +import { COMPUTER_RETIREMENT_GRACE_MS } from "../../modules/computers/index.js"; import { preserveWorkspaceRestoreRecoveryMetadataSql } from "../legacy-workspace-restore-recovery.js"; import { pendingNativeWorkspaceFinalizationCondition } from "../native-runtime/native-workspace-finalization-state.js"; import { CHAT_COMPLETION_WAKE_REASON } from "../chat-completion-delivery.js";