chore: Fix types in tests 43/N.

This commit is contained in:
cpojer
2026-02-17 15:48:44 +09:00
parent 7d2ef131c1
commit 688f86bf28
18 changed files with 81 additions and 84 deletions

View File

@@ -1,4 +1,5 @@
import type { AgentTool, AgentToolResult } from "@mariozechner/pi-agent-core";
import { Type } from "@sinclair/typebox";
import { describe, expect, it } from "vitest";
import type { OpenClawConfig } from "../config/config.js";
import {
@@ -7,12 +8,12 @@ import {
resolveSubagentToolPolicy,
} from "./pi-tools.policy.js";
function createStubTool(name: string): AgentTool<unknown, unknown> {
function createStubTool(name: string): AgentTool {
return {
name,
label: name,
description: "",
parameters: {},
parameters: Type.Object({}),
execute: async () => ({}) as AgentToolResult<unknown>,
};
}