/** * Higherup Local Agent v2.0 * * This agent runs on your local PC and connects to the Higherup service, * enabling secure remote command execution, file operations, and screen capture * from cloud-based AI coding platforms. */ /** * HigherupAgent handles the connection between the local machine and the cloud relay. * It manages heartbeats, command polling, and executes actions received from the API. */ export declare class HigherupAgent { private workspacePath; private workspaceId; private sessionId; private apiToken; private agentName; private isRunning; private commandCount; private pollTimer; private heartbeatTimer; private autonomousMode; private mcpMode; private mcpProcess; private reconnectAttempts; private maxReconnectAttempts; private startTime; private bytesTransferred; private pollInterval; private maxRetries; constructor(); /** * Connects the agent to the Higherup service for a specific workspace. * * @param workspacePath The local filesystem path to the workspace. * @param workspaceId The UUID of the workspace in the platform. * @param apiToken The authentication token for the agent. * @param agentName Optional custom name for this agent instance. * @param autonomous Whether to allow autonomous execution without prompt. * @param autoReconnect Whether to attempt automatic reconnection on failure. * @param mcp Whether to start the Model Context Protocol (MCP) server. */ connect(workspacePath: string, workspaceId: string, apiToken: string, agentName?: string, autonomous?: boolean, autoReconnect?: boolean, mcp?: boolean): Promise; private loadRemoteConfig; /** * Internal helper for making authenticated API calls to the relay service. * * @param action The relay action to perform (e.g., 'register', 'poll', 'heartbeat'). * @param body The payload for the action. * @returns The parsed JSON response from the API. */ private apiCall; private logThought; /** * Starts the command polling loop. */ private startPolling; private attemptReconnect; private startMcpServer; /** * Starts the heartbeat interval to keep the session active in the UI. */ private startHeartbeat; private printBanner; private setupKeyboardListener; private printHelp; private printStats; private processCommand; private checkSkillRegistry; private handleInternalCommand; private handleSyncSkills; private handleFileRead; private handleFileWrite; private handleFileList; private handleFileDelete; private handleFileCopy; private handleFileMove; private handleSearchFiles; private searchInDirectory; private handleProcessList; private handleEnvVars; private listDirectory; private handleScreenCapture; private handleScreenStreamStart; private handleSystemInfo; private executeStreamingCommand; private executeCommand; private executeShellCommand; private attemptSelfHeal; private reportResult; /** * Gracefully disconnects the agent, clears timers, and notifies the service. */ disconnect(): Promise; } //# sourceMappingURL=agent.d.ts.map