@capgo/cli 8.16.0 → 8.17.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.
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "8.16.0",
4
+ "version": "8.17.2",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -5,7 +5,7 @@ export interface DecideInput {
5
5
  sendLogsFlag: boolean;
6
6
  }
7
7
  export declare function decideAnalyzeBehavior(input: DecideInput): AnalyzeBehavior;
8
- export declare const CI_FAILURE_TIP = "Build failed. Tip: re-run with --ai-analytics for an AI-powered diagnosis, or --send-logs to upload the build logs to Capgo support.";
8
+ export declare const CI_FAILURE_TIP = "Build failed. Tip: re-run with --ai-analytics for an AI-powered diagnosis, or --send-logs-to-support to upload the build logs to Capgo support.";
9
9
  export interface CiFailureActionsInput {
10
10
  aiAnalyticsFlag: boolean;
11
11
  sendLogsFlag: boolean;
@@ -44,9 +44,15 @@ export interface PrescanGateOptions {
44
44
  print?: (msg: string) => void;
45
45
  warn?: (msg: string) => void;
46
46
  }
47
+ export interface PrescanGateResult {
48
+ decision: 'proceed' | 'block';
49
+ /** null when the gate was disabled or the scan crashed (no scan ran) */
50
+ report: PrescanReport | null;
51
+ crashed: boolean;
52
+ }
47
53
  /**
48
54
  * Used by build request. Runs the scan via the provided thunk, prints the report,
49
55
  * and resolves to 'proceed' | 'block'. NEVER throws: a crashing scanner proceeds with a notice
50
56
  * (the scanner must never be worse than no scanner).
51
57
  */
52
- export declare function runPrescanGate(opts: PrescanGateOptions, scan: () => Promise<PrescanReport>): Promise<'proceed' | 'block'>;
58
+ export declare function runPrescanGate(opts: PrescanGateOptions, scan: () => Promise<PrescanReport>): Promise<PrescanGateResult>;
@@ -65,6 +65,7 @@ export declare const buildRequestOptionsSchema: z.ZodObject<{
65
65
  playstoreUpload: z.ZodOptional<z.ZodBoolean>;
66
66
  verbose: z.ZodOptional<z.ZodBoolean>;
67
67
  aiAnalytics: z.ZodOptional<z.ZodBoolean>;
68
+ sendLogsToSupport: z.ZodOptional<z.ZodBoolean>;
68
69
  sendLogs: z.ZodOptional<z.ZodBoolean>;
69
70
  aiAnalysisMode: z.ZodOptional<z.ZodEnum<{
70
71
  skip: "skip";