@capgo/cli 8.34.0 → 8.36.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 +1 -0
- package/dist/index.js +610 -608
- package/dist/package.json +1 -1
- package/dist/src/api/app.d.ts +12 -0
- package/dist/src/api/channels.d.ts +1 -0
- package/dist/src/init/mcp/engine.d.ts +1 -0
- package/dist/src/init/onboarding-report.d.ts +13 -0
- package/dist/src/init/onboarding-source.d.ts +3 -0
- package/dist/src/init/onboarding-steps.d.ts +9 -0
- package/dist/src/init/ui.d.ts +2 -6
- package/dist/src/schemas/build.d.ts +1 -1
- package/dist/src/schemas/channel.d.ts +7 -0
- package/dist/src/schemas/sdk.d.ts +16 -2
- package/dist/src/sdk.js +281 -280
- package/dist/src/types/supabase.types.d.ts +5 -0
- package/dist/src/utils.d.ts +6 -0
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/src/api/app.d.ts
CHANGED
|
@@ -18,6 +18,18 @@ export declare function completePendingOnboardingApp(_supabase: SupabaseClient<D
|
|
|
18
18
|
supaHost?: string;
|
|
19
19
|
supaAnon?: string;
|
|
20
20
|
}): Promise<void>;
|
|
21
|
+
export interface AppOnboardingProgressPatch {
|
|
22
|
+
source?: 'manual' | 'cli' | 'mcp' | 'ai';
|
|
23
|
+
outcome?: 'in_progress' | 'completed' | 'skipped' | 'switched_to_manual';
|
|
24
|
+
steps?: Record<string, {
|
|
25
|
+
status: 'done' | 'skipped';
|
|
26
|
+
at?: string;
|
|
27
|
+
}>;
|
|
28
|
+
}
|
|
29
|
+
export declare function reportAppOnboardingProgress(apikey: string, appId: string, onboarding: AppOnboardingProgressPatch, options?: {
|
|
30
|
+
supaHost?: string;
|
|
31
|
+
supaAnon?: string;
|
|
32
|
+
}): Promise<void>;
|
|
21
33
|
/**
|
|
22
34
|
* Check multiple app IDs at once for batch validation (e.g., for suggestions)
|
|
23
35
|
*/
|
|
@@ -69,6 +69,7 @@ export declare function findChannel(supabase: SupabaseClient<Database>, appId: s
|
|
|
69
69
|
rollout_percentage_bps: number;
|
|
70
70
|
rollout_version: number | null;
|
|
71
71
|
rbac_id: string;
|
|
72
|
+
update_package: Database["public"]["Enums"]["channel_update_package"];
|
|
72
73
|
updated_at: string;
|
|
73
74
|
version: number | null;
|
|
74
75
|
}, false>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { InitOnboardingStepId } from './onboarding-steps';
|
|
2
|
+
export declare function reportInitOnboardingStep(apikey: string, appId: string | undefined, stepNumber: number, status?: 'done' | 'skipped', options?: {
|
|
3
|
+
supaHost?: string;
|
|
4
|
+
supaAnon?: string;
|
|
5
|
+
outcome?: 'completed' | 'skipped' | 'in_progress';
|
|
6
|
+
}): Promise<void>;
|
|
7
|
+
export declare function reportInitOnboarding(apikey: string, appId: string, steps: Partial<Record<InitOnboardingStepId, {
|
|
8
|
+
status: 'done' | 'skipped';
|
|
9
|
+
}>>, options?: {
|
|
10
|
+
supaHost?: string;
|
|
11
|
+
supaAnon?: string;
|
|
12
|
+
outcome?: 'completed' | 'skipped' | 'in_progress' | 'switched_to_manual';
|
|
13
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const INIT_ONBOARDING_STEP_IDS: readonly ["add_app", "add_channel", "add_updater", "add_code", "add_encryption", "select_platform", "build_project", "run_device", "add_code_change", "upload_bundle", "test_update", "completion"];
|
|
2
|
+
export type InitOnboardingStepId = typeof INIT_ONBOARDING_STEP_IDS[number];
|
|
3
|
+
export interface InitOnboardingStepDefinition {
|
|
4
|
+
id: InitOnboardingStepId;
|
|
5
|
+
title: string;
|
|
6
|
+
summary: string;
|
|
7
|
+
phase: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const initOnboardingSteps: InitOnboardingStepDefinition[];
|
package/dist/src/init/ui.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
summary: string;
|
|
4
|
-
phase: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const initOnboardingSteps: InitOnboardingStepDefinition[];
|
|
1
|
+
import { initOnboardingSteps } from './onboarding-steps';
|
|
2
|
+
export { initOnboardingSteps };
|
|
7
3
|
export declare function renderInitOnboardingWelcome(totalSteps: number, analyticsEnabled?: boolean): void;
|
|
8
4
|
export declare function renderInitOnboardingFrame(currentStepNumber: number, totalSteps: number, options?: {
|
|
9
5
|
resumed?: boolean;
|
|
@@ -72,8 +72,8 @@ export declare const buildRequestOptionsSchema: z.ZodObject<{
|
|
|
72
72
|
production: "production";
|
|
73
73
|
}>>;
|
|
74
74
|
androidReleaseStatus: z.ZodOptional<z.ZodEnum<{
|
|
75
|
-
draft: "draft";
|
|
76
75
|
completed: "completed";
|
|
76
|
+
draft: "draft";
|
|
77
77
|
inProgress: "inProgress";
|
|
78
78
|
halted: "halted";
|
|
79
79
|
}>>;
|
|
@@ -54,6 +54,13 @@ export declare const optionsSetChannelSchema: z.ZodObject<{
|
|
|
54
54
|
android: z.ZodOptional<z.ZodBoolean>;
|
|
55
55
|
selfAssign: z.ZodOptional<z.ZodBoolean>;
|
|
56
56
|
disableAutoUpdate: z.ZodOptional<z.ZodString>;
|
|
57
|
+
updatePackage: z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
all: "all";
|
|
59
|
+
zip: "zip";
|
|
60
|
+
delta: "delta";
|
|
61
|
+
zip_from_builtin: "zip_from_builtin";
|
|
62
|
+
delta_from_builtin: "delta_from_builtin";
|
|
63
|
+
}>>;
|
|
57
64
|
dev: z.ZodOptional<z.ZodBoolean>;
|
|
58
65
|
emulator: z.ZodOptional<z.ZodBoolean>;
|
|
59
66
|
device: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -70,8 +70,8 @@ export declare const uploadOptionsSchema: z.ZodObject<{
|
|
|
70
70
|
minor: "minor";
|
|
71
71
|
patch: "patch";
|
|
72
72
|
metadata: "metadata";
|
|
73
|
-
fix: "fix";
|
|
74
73
|
ai: "ai";
|
|
74
|
+
fix: "fix";
|
|
75
75
|
}>]>>;
|
|
76
76
|
selfAssign: z.ZodOptional<z.ZodBoolean>;
|
|
77
77
|
packageJsonPaths: z.ZodOptional<z.ZodString>;
|
|
@@ -159,6 +159,13 @@ export declare const updateChannelOptionsBaseSchema: z.ZodObject<{
|
|
|
159
159
|
android: z.ZodOptional<z.ZodBoolean>;
|
|
160
160
|
selfAssign: z.ZodOptional<z.ZodBoolean>;
|
|
161
161
|
disableAutoUpdate: z.ZodOptional<z.ZodString>;
|
|
162
|
+
updatePackage: z.ZodOptional<z.ZodEnum<{
|
|
163
|
+
all: "all";
|
|
164
|
+
zip: "zip";
|
|
165
|
+
delta: "delta";
|
|
166
|
+
zip_from_builtin: "zip_from_builtin";
|
|
167
|
+
delta_from_builtin: "delta_from_builtin";
|
|
168
|
+
}>>;
|
|
162
169
|
dev: z.ZodOptional<z.ZodBoolean>;
|
|
163
170
|
emulator: z.ZodOptional<z.ZodBoolean>;
|
|
164
171
|
device: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -200,6 +207,13 @@ export declare const updateChannelOptionsSchema: z.ZodObject<{
|
|
|
200
207
|
android: z.ZodOptional<z.ZodBoolean>;
|
|
201
208
|
selfAssign: z.ZodOptional<z.ZodBoolean>;
|
|
202
209
|
disableAutoUpdate: z.ZodOptional<z.ZodString>;
|
|
210
|
+
updatePackage: z.ZodOptional<z.ZodEnum<{
|
|
211
|
+
all: "all";
|
|
212
|
+
zip: "zip";
|
|
213
|
+
delta: "delta";
|
|
214
|
+
zip_from_builtin: "zip_from_builtin";
|
|
215
|
+
delta_from_builtin: "delta_from_builtin";
|
|
216
|
+
}>>;
|
|
203
217
|
dev: z.ZodOptional<z.ZodBoolean>;
|
|
204
218
|
emulator: z.ZodOptional<z.ZodBoolean>;
|
|
205
219
|
device: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -370,8 +384,8 @@ export declare const requestBuildOptionsSchema: z.ZodObject<{
|
|
|
370
384
|
production: "production";
|
|
371
385
|
}>>;
|
|
372
386
|
androidReleaseStatus: z.ZodOptional<z.ZodEnum<{
|
|
373
|
-
draft: "draft";
|
|
374
387
|
completed: "completed";
|
|
388
|
+
draft: "draft";
|
|
375
389
|
inProgress: "inProgress";
|
|
376
390
|
halted: "halted";
|
|
377
391
|
}>>;
|