mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
fix: restore web tools to coding profile (#43436)
* fix: restore web tools to coding profile * fix: tighten tool catalog regression assertion
This commit is contained in:
11
src/agents/tool-catalog.test.ts
Normal file
11
src/agents/tool-catalog.test.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { resolveCoreToolProfilePolicy } from "./tool-catalog.js";
|
||||
|
||||
describe("tool-catalog", () => {
|
||||
it("includes web_search and web_fetch in the coding profile policy", () => {
|
||||
const policy = resolveCoreToolProfilePolicy("coding");
|
||||
expect(policy).toBeDefined();
|
||||
expect(policy!.allow).toContain("web_search");
|
||||
expect(policy!.allow).toContain("web_fetch");
|
||||
});
|
||||
});
|
||||
@@ -86,7 +86,7 @@ const CORE_TOOL_DEFINITIONS: CoreToolDefinition[] = [
|
||||
label: "web_search",
|
||||
description: "Search the web",
|
||||
sectionId: "web",
|
||||
profiles: [],
|
||||
profiles: ["coding"],
|
||||
includeInOpenClawGroup: true,
|
||||
},
|
||||
{
|
||||
@@ -94,7 +94,7 @@ const CORE_TOOL_DEFINITIONS: CoreToolDefinition[] = [
|
||||
label: "web_fetch",
|
||||
description: "Fetch web content",
|
||||
sectionId: "web",
|
||||
profiles: [],
|
||||
profiles: ["coding"],
|
||||
includeInOpenClawGroup: true,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user