mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 06:59:56 +00:00
fix: update doctor tool schema import
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user