@capgo/cli 7.104.0 → 7.105.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "7.104.0",
4
+ "version": "7.105.0",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -0,0 +1,6 @@
1
+ export interface LastOutputOptions {
2
+ path: string;
3
+ field?: string;
4
+ qr?: boolean;
5
+ }
6
+ export declare function lastOutputCommand(options: LastOutputOptions): Promise<void>;
@@ -0,0 +1,30 @@
1
+ /** Stable shape written to disk; bump schemaVersion if breaking changes are made. */
2
+ export interface BuildOutputRecord {
3
+ schemaVersion: 1;
4
+ jobId: string;
5
+ appId: string;
6
+ platform: 'ios' | 'android';
7
+ buildMode: 'debug' | 'release';
8
+ status: string;
9
+ outputUrl: string | null;
10
+ qrCodeAscii: string | null;
11
+ qrCodePngPath: string | null;
12
+ finishedAt: string;
13
+ }
14
+ export interface WriteBuildOutputRecordInput {
15
+ jobId: string;
16
+ appId: string;
17
+ platform: 'ios' | 'android';
18
+ buildMode: 'debug' | 'release';
19
+ status: string;
20
+ outputUrl: string | null;
21
+ }
22
+ /**
23
+ * Write a build-output record to `recordPath` (JSON) and, when a URL is available,
24
+ * a PNG QR code to `<recordPath>.qr.png`. Returns the parsed record exactly as
25
+ * written so callers can log a summary without re-reading the file.
26
+ *
27
+ * Failures rendering the PNG are non-fatal — the JSON is always written. The
28
+ * record's `qrCodePngPath` field is null when the PNG could not be produced.
29
+ */
30
+ export declare function writeBuildOutputRecord(recordPath: string, input: WriteBuildOutputRecordInput, onWarn?: (msg: string) => void): Promise<BuildOutputRecord>;
@@ -54,6 +54,7 @@ export declare const buildRequestOptionsSchema: z.ZodObject<{
54
54
  inAppUpdatePriority: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
55
55
  outputUpload: z.ZodOptional<z.ZodBoolean>;
56
56
  outputRetention: z.ZodOptional<z.ZodString>;
57
+ outputRecord: z.ZodOptional<z.ZodString>;
57
58
  skipBuildNumberBump: z.ZodOptional<z.ZodBoolean>;
58
59
  playstoreUpload: z.ZodOptional<z.ZodBoolean>;
59
60
  verbose: z.ZodOptional<z.ZodBoolean>;