2025-05-06 14:27:28 -07:00
|
|
|
/**
|
|
|
|
* Copyright (c) Microsoft Corporation.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
import common from './tools/common.js';
|
|
|
|
import console from './tools/console.js';
|
|
|
|
import dialogs from './tools/dialogs.js';
|
|
|
|
import files from './tools/files.js';
|
|
|
|
import install from './tools/install.js';
|
|
|
|
import keyboard from './tools/keyboard.js';
|
|
|
|
import navigate from './tools/navigate.js';
|
|
|
|
import network from './tools/network.js';
|
|
|
|
import pdf from './tools/pdf.js';
|
|
|
|
import snapshot from './tools/snapshot.js';
|
|
|
|
import tabs from './tools/tabs.js';
|
2025-05-12 16:42:47 -07:00
|
|
|
import screenshot from './tools/screenshot.js';
|
2025-05-06 14:27:28 -07:00
|
|
|
import testing from './tools/testing.js';
|
2025-05-12 16:42:47 -07:00
|
|
|
import vision from './tools/vision.js';
|
|
|
|
import wait from './tools/wait.js';
|
2025-05-06 14:27:28 -07:00
|
|
|
|
|
|
|
import type { Tool } from './tools/tool.js';
|
|
|
|
|
|
|
|
export const snapshotTools: Tool<any>[] = [
|
|
|
|
...common(true),
|
|
|
|
...console,
|
|
|
|
...dialogs(true),
|
|
|
|
...files(true),
|
|
|
|
...install,
|
|
|
|
...keyboard(true),
|
|
|
|
...navigate(true),
|
|
|
|
...network,
|
|
|
|
...pdf,
|
2025-05-12 16:42:47 -07:00
|
|
|
...screenshot,
|
2025-05-06 14:27:28 -07:00
|
|
|
...snapshot,
|
|
|
|
...tabs(true),
|
|
|
|
...testing,
|
2025-05-12 16:42:47 -07:00
|
|
|
...wait(true),
|
2025-05-06 14:27:28 -07:00
|
|
|
];
|
|
|
|
|
2025-05-12 16:42:47 -07:00
|
|
|
export const visionTools: Tool<any>[] = [
|
2025-05-06 14:27:28 -07:00
|
|
|
...common(false),
|
|
|
|
...console,
|
|
|
|
...dialogs(false),
|
|
|
|
...files(false),
|
|
|
|
...install,
|
|
|
|
...keyboard(false),
|
|
|
|
...navigate(false),
|
|
|
|
...network,
|
|
|
|
...pdf,
|
|
|
|
...tabs(false),
|
|
|
|
...testing,
|
2025-05-12 16:42:47 -07:00
|
|
|
...vision,
|
|
|
|
...wait(false),
|
2025-05-06 14:27:28 -07:00
|
|
|
];
|