fix: update doctor tool schema import

This commit is contained in:
Peter Steinberger
2026-05-27 08:25:07 +01:00
parent 02eb0e2801
commit 69fabf46db
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { createOpenClawCodingTools } from "../../../agents/pi-tools.js";
import type { createOpenClawCodingTools } from "../../../agents/agent-tools.js";
import type { AnyAgentTool } from "../../../agents/tools/common.js";
const toolState = vi.hoisted(() => ({
@@ -9,7 +9,7 @@ const toolState = vi.hoisted(() => ({
createTools: vi.fn<typeof createOpenClawCodingTools>(),
}));
vi.mock("../../../agents/pi-tools.js", () => ({
vi.mock("../../../agents/agent-tools.js", () => ({
createOpenClawCodingTools: (options?: Parameters<typeof createOpenClawCodingTools>[0]) => {
toolState.createTools(options);
if (toolState.throwError) {

View File

@@ -4,9 +4,9 @@ import {
resolveAgentDir,
resolveAgentWorkspaceDir,
} from "../../../agents/agent-scope.js";
import { createOpenClawCodingTools } from "../../../agents/agent-tools.js";
import { DEFAULT_MODEL, DEFAULT_PROVIDER } from "../../../agents/defaults.js";
import { parseModelRef } from "../../../agents/model-selection-normalize.js";
import { createOpenClawCodingTools } from "../../../agents/pi-tools.js";
import {
filterRuntimeCompatibleTools,
type RuntimeToolSchemaDiagnostic,