File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1+ import { describe , expect , it } from "vitest" ;
2+ import { resolveCoreToolProfilePolicy } from "./tool-catalog.js" ;
3+
4+ describe ( "tool-catalog" , ( ) => {
5+ it ( "includes web_search and web_fetch in the coding profile policy" , ( ) => {
6+ const policy = resolveCoreToolProfilePolicy ( "coding" ) ;
7+ expect ( policy ) . toBeDefined ( ) ;
8+ expect ( policy ! . allow ) . toContain ( "web_search" ) ;
9+ expect ( policy ! . allow ) . toContain ( "web_fetch" ) ;
10+ } ) ;
11+ } ) ;
Original file line number Diff line number Diff line change @@ -86,15 +86,15 @@ const CORE_TOOL_DEFINITIONS: CoreToolDefinition[] = [
8686 label : "web_search" ,
8787 description : "Search the web" ,
8888 sectionId : "web" ,
89- profiles : [ ] ,
89+ profiles : [ "coding" ] ,
9090 includeInOpenClawGroup : true ,
9191 } ,
9292 {
9393 id : "web_fetch" ,
9494 label : "web_fetch" ,
9595 description : "Fetch web content" ,
9696 sectionId : "web" ,
97- profiles : [ ] ,
97+ profiles : [ "coding" ] ,
9898 includeInOpenClawGroup : true ,
9999 } ,
100100 {
You can’t perform that action at this time.
0 commit comments