@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "8.35.0",
4
+ "version": "8.36.0",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -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
  */
@@ -62,6 +62,7 @@ export interface EngineDeps {
62
62
  cwd?: string;
63
63
  };
64
64
  getGitStatus: (cwd?: string) => GitRepoStatus;
65
+ reportOnboardingStep?: (appId: string, stepDone: number) => void;
65
66
  }
66
67
  export interface LiveUpdateFacts {
67
68
  capacitorProject: boolean;
@@ -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,3 @@
1
+ export type ReportedOnboardingSource = 'cli' | 'mcp' | 'ai';
2
+ export declare function detectOnboardingSource(): ReportedOnboardingSource;
3
+ export declare function isAiAgentEnvironment(environment?: NodeJS.ProcessEnv): boolean;
@@ -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[];
@@ -1,9 +1,5 @@
1
- export interface InitOnboardingStepDefinition {
2
- title: string;
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
  }>>;