mcard-js
Version:
MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers
35 lines • 958 B
TypeScript
/**
* Static Server builtin for CLM execution.
*
* Provides deploy, status, and stop actions for HTTP static file servers.
* Uses Node.js 'http' module.
*/
/**
* Configuration for static server builtin.
*/
export interface StaticServerConfig {
action?: 'deploy' | 'status' | 'stop';
root_dir?: string;
port?: number | string;
host?: string;
}
/**
* Result from static server operations.
*/
export interface StaticServerResult {
success: boolean;
message?: string;
error?: string;
pid?: number | null;
saved_pid?: number | null;
port?: number;
url?: string | null;
root_dir?: string;
status?: 'running' | 'stopped' | 'already_running';
running?: boolean;
}
/**
* Execute static server builtin.
*/
export declare function executeStaticServer(config: StaticServerConfig, context: Record<string, any>, chapterDir: string): Promise<StaticServerResult>;
//# sourceMappingURL=static-server.d.ts.map