chore: one tool experiment (#746)

This commit is contained in:
Pavel Feldman 2025-07-24 10:09:01 -07:00 committed by GitHub
parent 31a4fb3d07
commit da8a244f33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 112 additions and 21 deletions

View file

@ -31,6 +31,7 @@ import wait from './tools/wait.js';
import mouse from './tools/mouse.js';
import type { Tool } from './tools/tool.js';
import type { FullConfig } from './config.js';
export const allTools: Tool<any>[] = [
...common,
@ -49,3 +50,7 @@ export const allTools: Tool<any>[] = [
...tabs,
...wait,
];
export function filteredTools(config: FullConfig) {
return allTools.filter(tool => tool.capability.startsWith('core') || config.capabilities?.includes(tool.capability));
}