@capgo/cli 8.25.0 → 8.25.2

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.
@@ -3,6 +3,7 @@ export interface SupportUploadInput {
3
3
  apikey: string;
4
4
  appId?: string;
5
5
  jobId?: string;
6
+ platform?: 'ios' | 'android';
6
7
  gzPath: string;
7
8
  }
8
9
  export interface SupportUploadResult {
@@ -314,6 +314,8 @@ export type Database = {
314
314
  ios_store_url: string | null;
315
315
  last_version: string | null;
316
316
  manifest_bundle_count: number;
317
+ rollout_channel_count: number;
318
+ rollout_paused_version_names: string[];
317
319
  name: string | null;
318
320
  need_onboarding: boolean;
319
321
  owner_org: string;
@@ -342,6 +344,8 @@ export type Database = {
342
344
  ios_store_url?: string | null;
343
345
  last_version?: string | null;
344
346
  manifest_bundle_count?: number;
347
+ rollout_channel_count?: number;
348
+ rollout_paused_version_names?: string[];
345
349
  name?: string | null;
346
350
  need_onboarding?: boolean;
347
351
  owner_org: string;
@@ -370,6 +374,8 @@ export type Database = {
370
374
  ios_store_url?: string | null;
371
375
  last_version?: string | null;
372
376
  manifest_bundle_count?: number;
377
+ rollout_channel_count?: number;
378
+ rollout_paused_version_names?: string[];
373
379
  name?: string | null;
374
380
  need_onboarding?: boolean;
375
381
  owner_org?: string;
@@ -794,6 +800,23 @@ export type Database = {
794
800
  name: string;
795
801
  owner_org: string;
796
802
  public: boolean;
803
+ auto_pause_action: string;
804
+ auto_pause_confidence: number;
805
+ auto_pause_cooldown_minutes: number;
806
+ auto_pause_enabled: boolean;
807
+ auto_pause_failure_rate_bps: number | null;
808
+ auto_pause_last_checked_at: string | null;
809
+ auto_pause_last_triggered_at: string | null;
810
+ auto_pause_min_attempts: number | null;
811
+ auto_pause_min_failures: number | null;
812
+ auto_pause_window_minutes: number;
813
+ rollout_cache_ttl_seconds: number;
814
+ rollout_enabled: boolean;
815
+ rollout_id: string;
816
+ rollout_pause_reason: string | null;
817
+ rollout_paused_at: string | null;
818
+ rollout_percentage_bps: number;
819
+ rollout_version: number | null;
797
820
  rbac_id: string;
798
821
  updated_at: string;
799
822
  version: number | null;
@@ -816,6 +839,23 @@ export type Database = {
816
839
  name: string;
817
840
  owner_org: string;
818
841
  public?: boolean;
842
+ auto_pause_action?: string;
843
+ auto_pause_confidence?: number;
844
+ auto_pause_cooldown_minutes?: number;
845
+ auto_pause_enabled?: boolean;
846
+ auto_pause_failure_rate_bps?: number | null;
847
+ auto_pause_last_checked_at?: string | null;
848
+ auto_pause_last_triggered_at?: string | null;
849
+ auto_pause_min_attempts?: number | null;
850
+ auto_pause_min_failures?: number | null;
851
+ auto_pause_window_minutes?: number;
852
+ rollout_cache_ttl_seconds?: number;
853
+ rollout_enabled?: boolean;
854
+ rollout_id?: string;
855
+ rollout_pause_reason?: string | null;
856
+ rollout_paused_at?: string | null;
857
+ rollout_percentage_bps?: number;
858
+ rollout_version?: number | null;
819
859
  rbac_id?: string;
820
860
  updated_at?: string;
821
861
  version?: number | null;
@@ -838,6 +878,23 @@ export type Database = {
838
878
  name?: string;
839
879
  owner_org?: string;
840
880
  public?: boolean;
881
+ auto_pause_action?: string;
882
+ auto_pause_confidence?: number;
883
+ auto_pause_cooldown_minutes?: number;
884
+ auto_pause_enabled?: boolean;
885
+ auto_pause_failure_rate_bps?: number | null;
886
+ auto_pause_last_checked_at?: string | null;
887
+ auto_pause_last_triggered_at?: string | null;
888
+ auto_pause_min_attempts?: number | null;
889
+ auto_pause_min_failures?: number | null;
890
+ auto_pause_window_minutes?: number;
891
+ rollout_cache_ttl_seconds?: number;
892
+ rollout_enabled?: boolean;
893
+ rollout_id?: string;
894
+ rollout_pause_reason?: string | null;
895
+ rollout_paused_at?: string | null;
896
+ rollout_percentage_bps?: number;
897
+ rollout_version?: number | null;
841
898
  rbac_id?: string;
842
899
  updated_at?: string;
843
900
  version?: number | null;
@@ -850,6 +907,13 @@ export type Database = {
850
907
  referencedRelation: "apps";
851
908
  referencedColumns: ["app_id"];
852
909
  },
910
+ {
911
+ foreignKeyName: "channels_rollout_version_fkey";
912
+ columns: ["rollout_version"];
913
+ isOneToOne: false;
914
+ referencedRelation: "app_versions";
915
+ referencedColumns: ["id"];
916
+ },
853
917
  {
854
918
  foreignKeyName: "channels_version_fkey";
855
919
  columns: ["version"];
@@ -3068,6 +3132,7 @@ export type Database = {
3068
3132
  Row: {
3069
3133
  action: Database["public"]["Enums"]["version_action"];
3070
3134
  app_id: string;
3135
+ channel_name: string | null;
3071
3136
  timestamp: string;
3072
3137
  version_id: number | null;
3073
3138
  version_name: string | null;
@@ -3075,6 +3140,7 @@ export type Database = {
3075
3140
  Insert: {
3076
3141
  action: Database["public"]["Enums"]["version_action"];
3077
3142
  app_id: string;
3143
+ channel_name?: string | null;
3078
3144
  timestamp?: string;
3079
3145
  version_id?: number | null;
3080
3146
  version_name?: string | null;
@@ -3082,6 +3148,7 @@ export type Database = {
3082
3148
  Update: {
3083
3149
  action?: Database["public"]["Enums"]["version_action"];
3084
3150
  app_id?: string;
3151
+ channel_name?: string | null;
3085
3152
  timestamp?: string;
3086
3153
  version_id?: number | null;
3087
3154
  version_name?: string | null;
@@ -5391,6 +5458,7 @@ export type Database = {
5391
5458
  read_version_usage: {
5392
5459
  Args: {
5393
5460
  p_app_id: string;
5461
+ p_channel_name?: string | null;
5394
5462
  p_period_end: string;
5395
5463
  p_period_start: string;
5396
5464
  };
@@ -422,6 +422,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
422
422
  ios_store_url: string | null;
423
423
  last_version: string | null;
424
424
  manifest_bundle_count: number;
425
+ rollout_channel_count: number;
426
+ rollout_paused_version_names: string[];
425
427
  name: string | null;
426
428
  need_onboarding: boolean;
427
429
  owner_org: string;
@@ -450,6 +452,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
450
452
  ios_store_url?: string | null;
451
453
  last_version?: string | null;
452
454
  manifest_bundle_count?: number;
455
+ rollout_channel_count?: number;
456
+ rollout_paused_version_names?: string[];
453
457
  name?: string | null;
454
458
  need_onboarding?: boolean;
455
459
  owner_org: string;
@@ -478,6 +482,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
478
482
  ios_store_url?: string | null;
479
483
  last_version?: string | null;
480
484
  manifest_bundle_count?: number;
485
+ rollout_channel_count?: number;
486
+ rollout_paused_version_names?: string[];
481
487
  name?: string | null;
482
488
  need_onboarding?: boolean;
483
489
  owner_org?: string;
@@ -881,6 +887,23 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
881
887
  name: string;
882
888
  owner_org: string;
883
889
  public: boolean;
890
+ auto_pause_action: string;
891
+ auto_pause_confidence: number;
892
+ auto_pause_cooldown_minutes: number;
893
+ auto_pause_enabled: boolean;
894
+ auto_pause_failure_rate_bps: number | null;
895
+ auto_pause_last_checked_at: string | null;
896
+ auto_pause_last_triggered_at: string | null;
897
+ auto_pause_min_attempts: number | null;
898
+ auto_pause_min_failures: number | null;
899
+ auto_pause_window_minutes: number;
900
+ rollout_cache_ttl_seconds: number;
901
+ rollout_enabled: boolean;
902
+ rollout_id: string;
903
+ rollout_pause_reason: string | null;
904
+ rollout_paused_at: string | null;
905
+ rollout_percentage_bps: number;
906
+ rollout_version: number | null;
884
907
  rbac_id: string;
885
908
  updated_at: string;
886
909
  version: number | null;
@@ -903,6 +926,23 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
903
926
  name: string;
904
927
  owner_org: string;
905
928
  public?: boolean;
929
+ auto_pause_action?: string;
930
+ auto_pause_confidence?: number;
931
+ auto_pause_cooldown_minutes?: number;
932
+ auto_pause_enabled?: boolean;
933
+ auto_pause_failure_rate_bps?: number | null;
934
+ auto_pause_last_checked_at?: string | null;
935
+ auto_pause_last_triggered_at?: string | null;
936
+ auto_pause_min_attempts?: number | null;
937
+ auto_pause_min_failures?: number | null;
938
+ auto_pause_window_minutes?: number;
939
+ rollout_cache_ttl_seconds?: number;
940
+ rollout_enabled?: boolean;
941
+ rollout_id?: string;
942
+ rollout_pause_reason?: string | null;
943
+ rollout_paused_at?: string | null;
944
+ rollout_percentage_bps?: number;
945
+ rollout_version?: number | null;
906
946
  rbac_id?: string;
907
947
  updated_at?: string;
908
948
  version?: number | null;
@@ -925,6 +965,23 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
925
965
  name?: string;
926
966
  owner_org?: string;
927
967
  public?: boolean;
968
+ auto_pause_action?: string;
969
+ auto_pause_confidence?: number;
970
+ auto_pause_cooldown_minutes?: number;
971
+ auto_pause_enabled?: boolean;
972
+ auto_pause_failure_rate_bps?: number | null;
973
+ auto_pause_last_checked_at?: string | null;
974
+ auto_pause_last_triggered_at?: string | null;
975
+ auto_pause_min_attempts?: number | null;
976
+ auto_pause_min_failures?: number | null;
977
+ auto_pause_window_minutes?: number;
978
+ rollout_cache_ttl_seconds?: number;
979
+ rollout_enabled?: boolean;
980
+ rollout_id?: string;
981
+ rollout_pause_reason?: string | null;
982
+ rollout_paused_at?: string | null;
983
+ rollout_percentage_bps?: number;
984
+ rollout_version?: number | null;
928
985
  rbac_id?: string;
929
986
  updated_at?: string;
930
987
  version?: number | null;
@@ -935,6 +992,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
935
992
  isOneToOne: false;
936
993
  referencedRelation: "apps";
937
994
  referencedColumns: ["app_id"];
995
+ }, {
996
+ foreignKeyName: "channels_rollout_version_fkey";
997
+ columns: ["rollout_version"];
998
+ isOneToOne: false;
999
+ referencedRelation: "app_versions";
1000
+ referencedColumns: ["id"];
938
1001
  }, {
939
1002
  foreignKeyName: "channels_version_fkey";
940
1003
  columns: ["version"];
@@ -3077,6 +3140,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
3077
3140
  Row: {
3078
3141
  action: Database["public"]["Enums"]["version_action"];
3079
3142
  app_id: string;
3143
+ channel_name: string | null;
3080
3144
  timestamp: string;
3081
3145
  version_id: number | null;
3082
3146
  version_name: string | null;
@@ -3084,6 +3148,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
3084
3148
  Insert: {
3085
3149
  action: Database["public"]["Enums"]["version_action"];
3086
3150
  app_id: string;
3151
+ channel_name?: string | null;
3087
3152
  timestamp?: string;
3088
3153
  version_id?: number | null;
3089
3154
  version_name?: string | null;
@@ -3091,6 +3156,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
3091
3156
  Update: {
3092
3157
  action?: Database["public"]["Enums"]["version_action"];
3093
3158
  app_id?: string;
3159
+ channel_name?: string | null;
3094
3160
  timestamp?: string;
3095
3161
  version_id?: number | null;
3096
3162
  version_name?: string | null;
@@ -5392,6 +5458,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
5392
5458
  read_version_usage: {
5393
5459
  Args: {
5394
5460
  p_app_id: string;
5461
+ p_channel_name?: string | null;
5395
5462
  p_period_end: string;
5396
5463
  p_period_start: string;
5397
5464
  };
@@ -5872,6 +5939,23 @@ export declare function updateOrCreateChannel(supabase: SupabaseClient<Database>
5872
5939
  name: string;
5873
5940
  owner_org: string;
5874
5941
  public: boolean;
5942
+ auto_pause_action: string;
5943
+ auto_pause_confidence: number;
5944
+ auto_pause_cooldown_minutes: number;
5945
+ auto_pause_enabled: boolean;
5946
+ auto_pause_failure_rate_bps: number | null;
5947
+ auto_pause_last_checked_at: string | null;
5948
+ auto_pause_last_triggered_at: string | null;
5949
+ auto_pause_min_attempts: number | null;
5950
+ auto_pause_min_failures: number | null;
5951
+ auto_pause_window_minutes: number;
5952
+ rollout_cache_ttl_seconds: number;
5953
+ rollout_enabled: boolean;
5954
+ rollout_id: string;
5955
+ rollout_pause_reason: string | null;
5956
+ rollout_paused_at: string | null;
5957
+ rollout_percentage_bps: number;
5958
+ rollout_version: number | null;
5875
5959
  rbac_id: string;
5876
5960
  updated_at: string;
5877
5961
  version: number | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "8.25.0",
4
+ "version": "8.25.2",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -37,6 +37,7 @@ Use this skill for OTA update workflows in Capgo Cloud.
37
37
 
38
38
  - Alias: `u`
39
39
  - Example: `npx @capgo/cli@latest bundle upload com.example.app --path ./dist --channel production,beta`
40
+ - Progressive rollout example: `npx @capgo/cli@latest bundle upload com.example.app --path ./dist --channel production --rollout 10`
40
41
  - Key behavior:
41
42
  - Bundle version must be greater than `0.0.0` and unique.
42
43
  - Deleted versions cannot be reused.
@@ -50,6 +51,9 @@ Use this skill for OTA update workflows in Capgo Cloud.
50
51
  - Important options:
51
52
  - `-p, --path <path>`
52
53
  - `-c, --channel <channel[,channel...]>`
54
+ - `--rollout <percentage>`
55
+ - `--rollout-percentage-bps <basisPoints>`
56
+ - `--rollout-cache-ttl-seconds <seconds>`
53
57
  - `-e, --external <url>`
54
58
  - `--iv-session-key <key>`
55
59
  - `-b, --bundle <bundle>`