chore: one tool experiment (#746)
This commit is contained in:
parent
31a4fb3d07
commit
da8a244f33
11 changed files with 112 additions and 21 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue