@capgo/cli
Version:
A CLI to upload to capgo servers
18 lines (17 loc) • 757 B
TypeScript
export declare const SUPPORT_UPLOAD_PROMPT = "Also upload these logs to Capgo support so our team can help? They'll follow up by email.";
export declare function supportUploadConfirmation(url?: string): string;
export type SupportUploadOutcome = 'declined' | 'uploaded' | 'unavailable' | 'failed';
export interface OfferSupportUploadDeps {
confirm: (message: string) => Promise<boolean>;
buildFiles: () => ({
gzPath: string;
} | null) | Promise<{
gzPath: string;
} | null>;
upload: (gzPath: string) => Promise<{
id: string;
url: string;
} | null>;
print: (message: string) => void;
}
export declare function offerSupportUploadBeforeAi(deps: OfferSupportUploadDeps): Promise<SupportUploadOutcome>;