diff --git a/src/agents/pi-tools.test.ts b/src/agents/pi-tools.test.ts index 384c12c37..e3797b51e 100644 --- a/src/agents/pi-tools.test.ts +++ b/src/agents/pi-tools.test.ts @@ -1,10 +1,9 @@ import fs from "node:fs/promises"; import os from "node:os"; import path from "node:path"; - +import type { AgentTool } from "@mariozechner/pi-agent-core"; import sharp from "sharp"; import { describe, expect, it, vi } from "vitest"; -import type { AgentTool } from "@mariozechner/pi-agent-core"; import type { ClawdbotConfig } from "../config/config.js"; import { __testing, createClawdbotCodingTools } from "./pi-tools.js"; import { createBrowserTool } from "./tools/browser-tool.js"; @@ -412,9 +411,9 @@ describe("createClawdbotCodingTools", () => { undefined, ); - await expect( - wrapped.execute("tool-2", { content: "x" }), - ).rejects.toThrow(/Missing required parameter/); + await expect(wrapped.execute("tool-2", { content: "x" })).rejects.toThrow( + /Missing required parameter/, + ); await expect( wrapped.execute("tool-3", { file_path: " ", content: "x" }), ).rejects.toThrow(/Missing required parameter/); diff --git a/src/agents/pi-tools.ts b/src/agents/pi-tools.ts index fcc260bab..0db567ce6 100644 --- a/src/agents/pi-tools.ts +++ b/src/agents/pi-tools.ts @@ -440,8 +440,14 @@ const CLAUDE_PARAM_GROUPS = { write: [{ keys: ["path", "file_path"], label: "path (path or file_path)" }], edit: [ { keys: ["path", "file_path"], label: "path (path or file_path)" }, - { keys: ["oldText", "old_string"], label: "oldText (oldText or old_string)" }, - { keys: ["newText", "new_string"], label: "newText (newText or new_string)" }, + { + keys: ["oldText", "old_string"], + label: "oldText (oldText or old_string)", + }, + { + keys: ["newText", "new_string"], + label: "newText (newText or new_string)", + }, ], } as const; diff --git a/src/discord/chunk.test.ts b/src/discord/chunk.test.ts index 188aa92b0..e7feaa658 100644 --- a/src/discord/chunk.test.ts +++ b/src/discord/chunk.test.ts @@ -90,7 +90,8 @@ describe("chunkDiscordText", () => { }); it("keeps reasoning italics balanced when chunks split by char limit", () => { - const longLine = "This is a very long reasoning line that forces char splits."; + const longLine = + "This is a very long reasoning line that forces char splits."; const body = Array.from({ length: 5 }, () => longLine).join("\n"); const text = `Reasoning:\n_${body}_`;