@capgo/cli
Version:
A CLI to upload to capgo servers
19 lines (18 loc) • 1.17 kB
TypeScript
/** Google Play service-account JSON keys are small; cap well above typical size. */
export declare const MAX_SERVICE_ACCOUNT_JSON_BYTES: number;
/** App Store Connect .p8 PEM files are a few hundred bytes; allow headroom. */
export declare const MAX_P8_BYTES: number;
/** Android keystores (.jks / .keystore / .p12) for MCP-provided paths. */
export declare const MAX_KEYSTORE_BYTES: number;
/** Provisioning profiles are small XML/plist payloads. */
export declare const MAX_MOBILEPROVISION_BYTES: number;
export declare const MCP_IN_PROJECT_PATH_HINT = "Copy the file into the project directory (for example ./credentials/your-file) and use that relative path.";
export type ScopedCredentialKind = 'service-account-json' | 'p8' | 'keystore' | 'mobileprovision';
export declare class ScopedCredentialPathError extends Error {
constructor(message: string);
}
/**
* Read a user-supplied credential file for the MCP builder onboarding engine.
* Confines paths to `scopeRoot` (the engine cwd / Capacitor project directory).
*/
export declare function readScopedMcpCredentialFile(userPath: string, kind: ScopedCredentialKind, scopeRoot: string): Promise<Buffer>;