From d46f68489834500ee96256de61c3f8ab22324d7b Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 12 Apr 2026 17:00:33 +0100 Subject: [PATCH] test(agents): fix tsgo typing regressions --- src/agents/bash-tools.exec.script-preflight.test.ts | 2 +- src/agents/model-auth.profiles.test.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/agents/bash-tools.exec.script-preflight.test.ts b/src/agents/bash-tools.exec.script-preflight.test.ts index d031f8e1e78..ecc70e774ec 100644 --- a/src/agents/bash-tools.exec.script-preflight.test.ts +++ b/src/agents/bash-tools.exec.script-preflight.test.ts @@ -30,7 +30,7 @@ async function expectSymlinkSwapDuringPreflightToAvoidErrors(params: { let swapped = false; __setFsSafeTestHooksForTest({ - [params.hookName]: async (target) => { + [params.hookName]: async (target: string) => { if (swapped || path.resolve(target) !== scriptRealPath) { return; } diff --git a/src/agents/model-auth.profiles.test.ts b/src/agents/model-auth.profiles.test.ts index a828501ec3f..1d3f72fca6b 100644 --- a/src/agents/model-auth.profiles.test.ts +++ b/src/agents/model-auth.profiles.test.ts @@ -3,6 +3,7 @@ import os from "node:os"; import path from "node:path"; import type { Api, Model } from "@mariozechner/pi-ai"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; +import type { OpenClawConfig } from "../config/types.openclaw.js"; import { withEnvAsync } from "../test-utils/env.js"; import { clearRuntimeAuthProfileStoreSnapshots, ensureAuthProfileStore } from "./auth-profiles.js"; import { @@ -147,7 +148,7 @@ function buildOllamaStore(keys: string[]) { }; } -function buildOllamaProviderCfg(apiKey: string) { +function buildOllamaProviderCfg(apiKey: string): OpenClawConfig { return { models: { providers: {