diff --git a/src/infra/heartbeat-runner.ts b/src/infra/heartbeat-runner.ts index 791102c3376..64441b23fa0 100644 --- a/src/infra/heartbeat-runner.ts +++ b/src/infra/heartbeat-runner.ts @@ -11,6 +11,7 @@ import { } from "../agents/agent-scope.js"; import { appendCronStyleCurrentTimeLine } from "../agents/current-time.js"; import { resolveEffectiveMessagesConfig } from "../agents/identity.js"; +import { resolveEmbeddedSessionLane } from "../agents/pi-embedded-runner.js"; import { DEFAULT_HEARTBEAT_FILENAME } from "../agents/workspace.js"; import { resolveHeartbeatReplyPayload } from "../auto-reply/heartbeat-reply-payload.js"; import { @@ -48,7 +49,6 @@ import { } from "../routing/session-key.js"; import { defaultRuntime, type RuntimeEnv } from "../runtime.js"; import { escapeRegExp } from "../utils.js"; -import { resolveEmbeddedSessionLane } from "../agents/pi-embedded-runner.js"; import { formatErrorMessage, hasErrnoCode } from "./errors.js"; import { isWithinActiveHours } from "./heartbeat-active-hours.js"; import { diff --git a/src/infra/windows-task-restart.test.ts b/src/infra/windows-task-restart.test.ts index 6519ce9e3aa..91a5cc1e216 100644 --- a/src/infra/windows-task-restart.test.ts +++ b/src/infra/windows-task-restart.test.ts @@ -26,7 +26,8 @@ vi.mock("./tmp-openclaw-dir.js", () => ({ resolvePreferredOpenClawTmpDir: () => resolvePreferredOpenClawTmpDirMock(), })); vi.mock("../daemon/schtasks.js", () => ({ - resolveTaskScriptPath: (env: Record) => resolveTaskScriptPathMock(env), + resolveTaskScriptPath: (env: Record) => + resolveTaskScriptPathMock(env), })); type WindowsTaskRestartModule = typeof import("./windows-task-restart.js"); diff --git a/src/infra/windows-task-restart.ts b/src/infra/windows-task-restart.ts index 584cd10bfeb..9cd139958b9 100644 --- a/src/infra/windows-task-restart.ts +++ b/src/infra/windows-task-restart.ts @@ -19,10 +19,7 @@ function resolveWindowsTaskName(env: NodeJS.ProcessEnv): string { return resolveGatewayWindowsTaskName(env.OPENCLAW_PROFILE); } -function buildScheduledTaskRestartScript( - taskName: string, - taskScriptPath?: string, -): string { +function buildScheduledTaskRestartScript(taskName: string, taskScriptPath?: string): string { const quotedTaskName = quoteCmdScriptArg(taskName); const lines = [ "@echo off", @@ -41,11 +38,7 @@ function buildScheduledTaskRestartScript( ]; if (taskScriptPath) { const quotedScript = quoteCmdScriptArg(taskScriptPath); - lines.push( - `if exist ${quotedScript} (`, - ` start "" /min cmd.exe /d /c ${quotedScript}`, - ")", - ); + lines.push(`if exist ${quotedScript} (`, ` start "" /min cmd.exe /d /c ${quotedScript}`, ")"); } lines.push(":cleanup", 'del "%~f0" >nul 2>&1'); return lines.join("\r\n"); diff --git a/src/plugins/contracts/runtime-import-side-effects.contract.test.ts b/src/plugins/contracts/runtime-import-side-effects.contract.test.ts index 5255548759c..6defeaf34b6 100644 --- a/src/plugins/contracts/runtime-import-side-effects.contract.test.ts +++ b/src/plugins/contracts/runtime-import-side-effects.contract.test.ts @@ -20,10 +20,9 @@ const BOOTSTRAP_FIX = function mockBootstrapRegistry() { vi.doMock("../../channels/plugins/bootstrap-registry.js", async () => { - const actual = - await vi.importActual( - "../../channels/plugins/bootstrap-registry.js", - ); + const actual = await vi.importActual< + typeof import("../../channels/plugins/bootstrap-registry.js") + >("../../channels/plugins/bootstrap-registry.js"); return { ...actual, listBootstrapChannelPlugins, diff --git a/src/web-fetch/runtime.ts b/src/web-fetch/runtime.ts index 122ef8ec154..77a687d9df3 100644 --- a/src/web-fetch/runtime.ts +++ b/src/web-fetch/runtime.ts @@ -7,8 +7,8 @@ import type { } from "../plugins/types.js"; import { resolvePluginWebFetchProviders } from "../plugins/web-fetch-providers.runtime.js"; import { sortWebFetchProvidersForAutoDetect } from "../plugins/web-fetch-providers.shared.js"; -import type { RuntimeWebFetchMetadata } from "../secrets/runtime-web-tools.types.js"; import { getActiveRuntimeWebToolsMetadata } from "../secrets/runtime-web-tools-state.js"; +import type { RuntimeWebFetchMetadata } from "../secrets/runtime-web-tools.types.js"; import { normalizeSecretInput } from "../utils/normalize-secret-input.js"; type WebFetchConfig = NonNullable["web"] extends infer Web diff --git a/src/web-search/runtime.ts b/src/web-search/runtime.ts index b9389bfb86b..9dc79f4c72e 100644 --- a/src/web-search/runtime.ts +++ b/src/web-search/runtime.ts @@ -8,8 +8,8 @@ import type { import { resolvePluginWebSearchProviders } from "../plugins/web-search-providers.runtime.js"; import { resolveRuntimeWebSearchProviders } from "../plugins/web-search-providers.runtime.js"; import { sortWebSearchProvidersForAutoDetect } from "../plugins/web-search-providers.shared.js"; -import type { RuntimeWebSearchMetadata } from "../secrets/runtime-web-tools.types.js"; import { getActiveRuntimeWebToolsMetadata } from "../secrets/runtime-web-tools-state.js"; +import type { RuntimeWebSearchMetadata } from "../secrets/runtime-web-tools.types.js"; import { normalizeSecretInput } from "../utils/normalize-secret-input.js"; type WebSearchConfig = NonNullable["web"] extends infer Web