/** * pi-automation * * Automation toolkit for the pi coding agent. Aggregates several capabilities into * one extension: * * 1. Web access (from `pi-web-access`): * - web_search, source_check, fetch_content, get_search_content * - commands: /websearch, /curator, /google-account, /search * 2. Browser (CDP) -> `browser` * 3. Screen & window -> `take_screenshot`, `hide_window` * 4. Windows UI Automation -> `ui_automation` * * The package reuses `pi-web-access` as an npm dependency (calls its default * extension export) and wires the remaining tools from local modules. */ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; import webAccess from "pi-web-access"; import { registerBrowser } from "./browser.ts"; import { registerScreen } from "./screen.ts"; import { registerUiAutomation } from "./ui-automation.ts"; export default function (pi: ExtensionAPI) { // 1. Reuse pi-web-access (registers web_search / source_check / fetch_content / // get_search_content tools and their commands). webAccess(pi); // 2. Browser automation via CDP. registerBrowser(pi); // 3. Screen capture + window hide/show (Windows). registerScreen(pi); // 4. Windows UI Automation (read/operate native controls). registerUiAutomation(pi); }