@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/README.md +30 -0
- package/dist/index.js +411 -392
- package/dist/package.json +1 -1
- package/dist/src/build/last-output-command.d.ts +6 -0
- package/dist/src/build/output-record.d.ts +30 -0
- package/dist/src/schemas/build.d.ts +1 -0
- package/dist/src/sdk.js +231 -230
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -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>;
|