UNPKG

smooth-operator-agent-tools

Version:

Node.js client library for Smooth Operator Agent Tools - a toolkit for programmers developing Computer Use Agents on Windows systems

43 lines (42 loc) 1.77 kB
import { OverviewResponse, SimpleResponse, WindowDetailInfosDTO } from '../models/models'; import { SmoothOperatorClient } from '../smooth-operator-client'; /** * API endpoints for system operations */ export declare class SystemApi { private client; /** * Creates a new instance of the SystemApi * @param client The SmoothOperatorClient instance */ constructor(client: SmoothOperatorClient); /** * Gets detailed overview of computer state including open applications and windows * @returns OverviewResponse with FocusInfo, Windows array and Chrome details */ getOverview(): Promise<OverviewResponse>; /** * Gets detailed UI automation information for a window * @param windowId Window ID from getOverview * @returns WindowDetailInfosDTO with element hierarchy and properties */ getWindowDetails(windowId: string): Promise<WindowDetailInfosDTO>; /** * Opens Chrome browser (Playwright-managed instance) * @param url Optional URL to navigate to immediately * @param strategy Optional strategy for opening Chrome * @returns SimpleResponse indicating success or failure */ openChrome(url?: string, strategy?: string): Promise<SimpleResponse>; /** * Launches an application by path or name * @param appNameOrPath Full path to executable or application name, alternatively exe name if in path (e.g. notepad, calc). For chrome don't use this, use openChrome instead. * @returns SimpleResponse indicating success or failure */ openApplication(appNameOrPath: string): Promise<SimpleResponse>; /** * Returns a string representation of the SystemApi class. * @returns The string "SystemApi". */ toString(): string; }