@capgo/cli 8.35.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/dist/index.js +582 -581
- package/dist/package.json +1 -1
- package/dist/src/api/app.d.ts +12 -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/sdk.d.ts +2 -2
- package/dist/src/sdk.js +225 -225
- 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
|
*/
|
|
@@ -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
|
}>>;
|
|
@@ -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>;
|
|
@@ -384,8 +384,8 @@ export declare const requestBuildOptionsSchema: z.ZodObject<{
|
|
|
384
384
|
production: "production";
|
|
385
385
|
}>>;
|
|
386
386
|
androidReleaseStatus: z.ZodOptional<z.ZodEnum<{
|
|
387
|
-
draft: "draft";
|
|
388
387
|
completed: "completed";
|
|
388
|
+
draft: "draft";
|
|
389
389
|
inProgress: "inProgress";
|
|
390
390
|
halted: "halted";
|
|
391
391
|
}>>;
|