import { type ToolDefinition } from "@opencode-ai/plugin"; /** * PTY (Pseudo-Terminal) tools * * Requires: bun-pty package * * These tools provide interactive PTY management for running background processes, * sending interactive input, and reading output on demand. * * Use cases: * - Running dev servers (npm run dev, cargo watch) * - Watch modes (npm test -- --watch) * - Interactive programs (REPLs, prompts) * - Long-running processes * * bun-pty is auto-installed when the plugin loads. * You can also install it manually: npm install -g bun-pty * * Note: These tools provide a wrapper around the opencode-pty functionality. * For full PTY support, consider using the opencode-pty plugin directly. */ export interface PtyStartArgs { command: string; cwd?: string; env?: Record; } export interface PtySendArgs { id: string; input: string; } export interface PtyReadArgs { id: string; clear?: boolean; } export interface PtyKillArgs { id: string; } export interface PtyListArgs { } export declare const ptyStartTool: ToolDefinition; export declare const ptySendTool: ToolDefinition; export declare const ptyReadTool: ToolDefinition; export declare const ptyKillTool: ToolDefinition; export declare const ptyListTool: ToolDefinition;