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

@@ -2,14 +2,19 @@ import test from "node:test";
import assert from "node:assert/strict";
import webSearchExtension from "../index.ts";
test("the extension entrypoint registers both web_search and web_fetch", () => {
test("the extension entrypoint registers both tools and the config command", () => {
const registeredTools: string[] = [];
const registeredCommands: string[] = [];
webSearchExtension({
registerTool(tool: { name: string }) {
registeredTools.push(tool.name);
},
registerCommand(name: string) {
registeredCommands.push(name);
},
} as any);
assert.deepEqual(registeredTools, ["web_search", "web_fetch"]);
assert.deepEqual(registeredCommands, ["web-search-config"]);
});