@agenteract/cli
Version:
The unified command-line interface for Agenteract
33 lines (32 loc) • 1.18 kB
TypeScript
export declare class MissingConfigError extends Error {
constructor(message: string);
}
export interface ProjectConfig {
name: string;
path: string;
type: 'expo' | 'vite' | 'flutter' | 'native' | 'auto';
ptyPort: number;
}
export interface AgenteractConfig {
port: number;
projects: ProjectConfig[];
}
export declare function loadConfig(rootDir: string): Promise<AgenteractConfig>;
/**
* Find the root directory containing agenteract.config.js
* Searches upward from the current working directory
*/
export declare function findConfigRoot(startDir?: string): Promise<string | null>;
/**
* Get the URL for the agent server
*/
export declare function getAgentServerUrl(config: AgenteractConfig): string;
/**
* Get the URL for a project's dev server
*/
export declare function getProjectServerUrl(config: AgenteractConfig, projectName: string): string | null;
/**
* Get the URL for a dev server by type
*/
export declare function getDevServerUrlByType(config: AgenteractConfig, type: 'expo' | 'vite' | 'flutter'): string | null;
export declare function addConfig(rootDir: string, projectPath: string, name: string, type: string): Promise<void>;