sync local pi changes

This commit is contained in:
alex wiesner
2026-04-09 23:14:57 +01:00
parent 18245c778e
commit ec378ebd28
128 changed files with 22510 additions and 3436 deletions

View File

@@ -0,0 +1,15 @@
import test from "node:test";
import assert from "node:assert/strict";
import { createSetupSuggestTool } from "./setup-suggest.ts";
test("dev_tools_suggest_setup returns a concrete recommendation string", async () => {
const tool = createSetupSuggestTool({
suggestSetup: async () => "TypeScript project detected. Recommended: bunx biome init and npm i -D typescript-language-server.",
});
const result = await tool.execute("tool-1", {}, undefined, undefined, undefined);
const text = result.content[0]?.type === "text" ? result.content[0].text : "";
assert.match(text, /TypeScript project detected/);
assert.match(text, /biome/);
});