@capgo/cli
Version:
A CLI to upload to capgo servers
15 lines (14 loc) • 787 B
TypeScript
export declare function getLogCapturePath(jobId: string): string;
export declare function getAiPromptPath(jobId: string): string;
export declare function shouldCaptureLogs(): boolean;
export declare function startCaptureForJob(jobId: string): Promise<void>;
export declare function appendCapturedLine(jobId: string, line: string): Promise<void>;
export interface CleanupOptions {
keepAiPromptFile: boolean;
}
export declare function cleanupCapturedJobFiles(jobId: string, opts: CleanupOptions): Promise<void>;
/**
* Register process-level cleanup handlers. Returns a function that removes
* the handlers (call from request.ts after the build flow finishes normally).
*/
export declare function registerCleanupHandlers(jobId: string, getKeepPromptFile: () => boolean): () => void;