Skip to content

Commit d46f684

Browse files
committed
test(agents): fix tsgo typing regressions
1 parent 3bb69ed commit d46f684

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/agents/bash-tools.exec.script-preflight.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function expectSymlinkSwapDuringPreflightToAvoidErrors(params: {
3030

3131
let swapped = false;
3232
__setFsSafeTestHooksForTest({
33-
[params.hookName]: async (target) => {
33+
[params.hookName]: async (target: string) => {
3434
if (swapped || path.resolve(target) !== scriptRealPath) {
3535
return;
3636
}

‎src/agents/model-auth.profiles.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import os from "node:os";
33
import path from "node:path";
44
import type { Api, Model } from "@mariozechner/pi-ai";
55
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
6+
import type { OpenClawConfig } from "../config/types.openclaw.js";
67
import { withEnvAsync } from "../test-utils/env.js";
78
import { clearRuntimeAuthProfileStoreSnapshots, ensureAuthProfileStore } from "./auth-profiles.js";
89
import {
@@ -147,7 +148,7 @@ function buildOllamaStore(keys: string[]) {
147148
};
148149
}
149150

150-
function buildOllamaProviderCfg(apiKey: string) {
151+
function buildOllamaProviderCfg(apiKey: string): OpenClawConfig {
151152
return {
152153
models: {
153154
providers: {

0 commit comments

Comments
 (0)