chore: fix lint warnings

This commit is contained in:
Peter Steinberger
2026-01-12 22:06:54 +00:00
parent 59c8d2d17f
commit 5bc4971432
3 changed files with 14 additions and 8 deletions

View File

@@ -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/);

View File

@@ -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;

View File

@@ -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}_`;