@capgo/cli 8.87.3 → 8.89.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 +7 -3
- package/dist/index.js +842 -839
- package/dist/notify-app-ready-worker.js +1 -1
- package/dist/onboarding-worker.js +1 -1
- package/dist/package.json +3 -3
- package/dist/src/app/builder-checklist.d.ts +15 -0
- package/dist/src/app/todo-tabs.d.ts +17 -0
- package/dist/src/app/todo.d.ts +16 -2
- package/dist/src/build/build-env.d.ts +8 -0
- package/dist/src/build/output-record.d.ts +5 -0
- package/dist/src/schemas/build.d.ts +1 -0
- package/dist/src/sdk.js +408 -408
- package/dist/updater-installed-worker.js +1 -1
- package/package.json +3 -3
- package/skills/native-builds/SKILL.md +1 -1
- package/skills/usage/SKILL.md +1 -1
package/dist/src/app/todo.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { OptionsBase } from '../schemas/base';
|
|
2
|
+
export type AppTodoList = 'builder' | 'ota';
|
|
3
|
+
interface AppTodoOptions extends Partial<OptionsBase> {
|
|
4
|
+
list?: string;
|
|
5
|
+
}
|
|
2
6
|
export interface AppTodoProgress {
|
|
3
7
|
onboarding: unknown;
|
|
4
8
|
hasChannel?: boolean;
|
|
@@ -6,7 +10,15 @@ export interface AppTodoProgress {
|
|
|
6
10
|
}
|
|
7
11
|
export declare const TODO_BACKGROUND_WAIT_MS = 10000;
|
|
8
12
|
export declare function waitForTodoBackgroundChecks(checks: readonly Promise<void>[], onCountdown?: (remainingSeconds: number) => void, timeoutMs?: number): Promise<boolean>;
|
|
9
|
-
export declare function
|
|
13
|
+
export declare function getAvailableAppTodoLists(progress: AppTodoProgress): AppTodoList[];
|
|
14
|
+
export declare function resolveAppTodoView(progress: AppTodoProgress, options: {
|
|
15
|
+
list?: string;
|
|
16
|
+
interactive: boolean;
|
|
17
|
+
}): {
|
|
18
|
+
list: AppTodoList;
|
|
19
|
+
tabs: boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare function getAppTodoSteps(progress: AppTodoProgress, list?: AppTodoList): {
|
|
10
22
|
version: number;
|
|
11
23
|
path: "builder";
|
|
12
24
|
selectedPlatform: "android" | "ios" | undefined;
|
|
@@ -32,6 +44,8 @@ export declare function getAppTodoSteps(progress: AppTodoProgress): {
|
|
|
32
44
|
};
|
|
33
45
|
export declare function formatAppTodoList(appId: string, progress: AppTodoProgress, options?: {
|
|
34
46
|
color?: boolean;
|
|
47
|
+
list?: AppTodoList;
|
|
35
48
|
}): string;
|
|
36
49
|
export declare function readAppTodoProgress(appId: string, options: OptionsBase): Promise<AppTodoProgress>;
|
|
37
|
-
export declare function appTodo(appId: string | undefined, options:
|
|
50
|
+
export declare function appTodo(appId: string | undefined, options: AppTodoOptions): Promise<void>;
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom env vars for the cloud build, from repeatable `--build-env` entries and the
|
|
3
|
+
* CAPGO_BUILD_ENV env var (comma-separated). `KEY` takes the value from this process's
|
|
4
|
+
* environment (CI secrets stay out of the command line); `KEY=VALUE` sets it literally.
|
|
5
|
+
* They reach the build as credentials: Gradle and Xcode build phases see them as env vars
|
|
6
|
+
* (e.g. SENTRY_AUTH_TOKEN for the Sentry Gradle plugin).
|
|
7
|
+
*/
|
|
8
|
+
export declare function parseBuildEnv(entries: string[] | undefined, env?: NodeJS.ProcessEnv): Record<string, string>;
|
|
@@ -7,6 +7,8 @@ export interface BuildOutputRecord {
|
|
|
7
7
|
buildMode: 'debug' | 'release';
|
|
8
8
|
status: string;
|
|
9
9
|
outputUrl: string | null;
|
|
10
|
+
/** Debug symbols for crash reporters: iOS dSYMs zip or Android R8/ProGuard mapping.txt. */
|
|
11
|
+
symbolsUrl: string | null;
|
|
10
12
|
qrCodeAscii: string | null;
|
|
11
13
|
qrCodePngPath: string | null;
|
|
12
14
|
finishedAt: string;
|
|
@@ -18,7 +20,10 @@ export interface WriteBuildOutputRecordInput {
|
|
|
18
20
|
buildMode: 'debug' | 'release';
|
|
19
21
|
status: string;
|
|
20
22
|
outputUrl: string | null;
|
|
23
|
+
symbolsUrl?: string | null;
|
|
21
24
|
}
|
|
25
|
+
/** Download URL of the debug symbols from a build log line, or null. */
|
|
26
|
+
export declare function parseDebugSymbolsUrl(line: string): string | null;
|
|
22
27
|
/**
|
|
23
28
|
* Write a build-output record to `recordPath` (JSON) and, when a URL is available,
|
|
24
29
|
* a PNG QR code to `<recordPath>.qr.png`. Returns the parsed record exactly as
|
|
@@ -113,6 +113,7 @@ export declare const buildRequestOptionsSchema: z.ZodObject<{
|
|
|
113
113
|
builderJourneyId: z.ZodOptional<z.ZodString>;
|
|
114
114
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
115
115
|
cacheKey: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
116
|
+
buildEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
116
117
|
}, z.core.$strip>;
|
|
117
118
|
export type BuildRequestOptions = z.infer<typeof buildRequestOptionsSchema>;
|
|
118
119
|
export declare const buildNeededOptionsSchema: z.ZodObject<{
|