Remove all ControlPlaneClient infrastructure, WorkOS auth, managed proxy, platform profile loading, org policy enforcement, and credits UI. Config is now fully local — only file-based config.yaml and .env secrets. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
19 lines
587 B
TypeScript
19 lines
587 B
TypeScript
import { expect, test } from "vitest";
|
|
import { BuiltInToolNames } from "./builtIn";
|
|
import { getConfigDependentToolDefinitions } from "./index";
|
|
|
|
test("searchWeb tool is always available", async () => {
|
|
const tools = await getConfigDependentToolDefinitions({
|
|
rules: [],
|
|
enableExperimentalTools: false,
|
|
isRemote: false,
|
|
modelName: "",
|
|
ide: {} as any,
|
|
});
|
|
|
|
const searchWebTool = tools.find(
|
|
(tool) => tool.function.name === BuiltInToolNames.SearchWeb,
|
|
);
|
|
expect(searchWebTool).toBeDefined();
|
|
expect(searchWebTool?.displayTitle).toBe("Search Web");
|
|
});
|