@capgo/cli 8.0.0 → 8.0.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.0.0",
4
+ "version": "8.0.2",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -86,6 +86,7 @@
86
86
  "test:analytics-error-category": "bun test/test-analytics-error-category.mjs",
87
87
  "test:analytics-org-resolver": "bun test/test-analytics-org-resolver.mjs",
88
88
  "test:supabase-perf": "bun test/test-supabase-perf.mjs",
89
+ "test:preview-qr": "bun test/test-preview-qr.mjs",
89
90
  "test:mcp-analytics": "bun test/test-mcp-analytics.mjs",
90
91
  "test:app-created-source": "bun test/test-app-created-source.mjs",
91
92
  "test:doctor-analytics": "bun test/test-doctor-analytics.mjs",
@@ -110,7 +111,7 @@
110
111
  "test:app-verification": "bun test/test-app-verification.mjs",
111
112
  "test:pbxproj-parser": "bun test/test-pbxproj-parser.mjs",
112
113
  "test:manifest-path-encoding": "bun test/test-manifest-path-encoding.mjs",
113
- "test": "bun run build && bun run test:version-detection:setup && bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:fail-on-incompatible && bun run test:credentials && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:ci-prompts && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:mcp-analytics && bun run test:app-created-source && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:build-platform-selection && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-app-conflict && bun run test:init-guardrails && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:version-detection && bun run test:platform-paths && bun run test:payload-split && bun run test:manifest-path-encoding && bun run test:macos-signing && bun run test:apple-api-import-helpers && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream",
114
+ "test": "bun run build && bun run test:version-detection:setup && bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:fail-on-incompatible && bun run test:credentials && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:ci-prompts && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:mcp-analytics && bun run test:app-created-source && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:build-platform-selection && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-app-conflict && bun run test:init-guardrails && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:version-detection && bun run test:platform-paths && bun run test:payload-split && bun run test:manifest-path-encoding && bun run test:macos-signing && bun run test:apple-api-import-helpers && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream",
114
115
  "test:build-platform-selection": "bun test/test-build-platform-selection.mjs",
115
116
  "test:ai-log-capture": "bun test/test-ai-log-capture.mjs",
116
117
  "test:ai-analyze-flow": "bun test/test-ai-analyze-flow.mjs",
@@ -0,0 +1,3 @@
1
+ import type { PreviewQrCommandOptions } from '../preview/qr';
2
+ import type { OptionsUpload } from './upload_interface';
3
+ export declare function buildBundleUploadPreviewQrOptions(options: OptionsUpload, bundle: string): PreviewQrCommandOptions;
@@ -0,0 +1,31 @@
1
+ import type { SupabaseClient } from '@supabase/supabase-js';
2
+ import type { OptionsBase } from '../schemas/base';
3
+ import type { Database } from '../types/supabase.types';
4
+ type CapgoSupabaseClient = SupabaseClient<Database>;
5
+ export interface PreviewQrCommandOptions extends OptionsBase {
6
+ bundle?: string;
7
+ channel?: string;
8
+ target?: string;
9
+ type?: 'bundle' | 'channel';
10
+ }
11
+ export type PreviewQrTarget = {
12
+ appId: string;
13
+ bundleName: string;
14
+ kind: 'bundle';
15
+ versionId: number;
16
+ } | {
17
+ appId: string;
18
+ channelId: number;
19
+ channelName: string;
20
+ kind: 'channel';
21
+ };
22
+ export declare function buildPreviewQrUrl(target: PreviewQrTarget): string;
23
+ export declare function renderTerminalQrCode(value: string): Promise<string>;
24
+ export declare function assertAppAllowsPreview(supabase: CapgoSupabaseClient, appId: string): Promise<void>;
25
+ export declare function resolveBundlePreviewTarget(supabase: CapgoSupabaseClient, appId: string, bundleRef: string): Promise<PreviewQrTarget | null>;
26
+ export declare function resolveChannelPreviewTarget(supabase: CapgoSupabaseClient, appId: string, channelRef: string): Promise<PreviewQrTarget | null>;
27
+ export declare function resolvePreviewQrTarget(supabase: CapgoSupabaseClient, appId: string, options: Pick<PreviewQrCommandOptions, 'bundle' | 'channel' | 'target' | 'type'>): Promise<PreviewQrTarget>;
28
+ export declare function printPreviewQrCode(target: PreviewQrTarget): Promise<void>;
29
+ export declare function printPreviewQrForResolvedTarget(supabase: CapgoSupabaseClient, appId: string, target: PreviewQrTarget): Promise<void>;
30
+ export declare function getPreviewQr(appId: string, target: string | undefined, options: PreviewQrCommandOptions): Promise<void>;
31
+ export {};
@@ -7,6 +7,7 @@ export declare const appOptionsSchema: z.ZodObject<{
7
7
  icon: z.ZodOptional<z.ZodString>;
8
8
  retention: z.ZodOptional<z.ZodNumber>;
9
9
  exposeMetadata: z.ZodOptional<z.ZodBoolean>;
10
+ preview: z.ZodOptional<z.ZodBoolean>;
10
11
  }, z.core.$strip>;
11
12
  export type AppOptions = z.infer<typeof appOptionsSchema>;
12
13
  export declare const appDebugOptionsSchema: z.ZodObject<{
@@ -52,6 +52,7 @@ export declare const optionsUploadSchema: z.ZodObject<{
52
52
  selfAssign: z.ZodOptional<z.ZodBoolean>;
53
53
  verbose: z.ZodOptional<z.ZodBoolean>;
54
54
  showReplicationProgress: z.ZodOptional<z.ZodBoolean>;
55
+ qrPreview: z.ZodOptional<z.ZodBoolean>;
55
56
  }, z.core.$strip>;
56
57
  export type OptionsUpload = z.infer<typeof optionsUploadSchema>;
57
58
  export declare const zipResultSchema: z.ZodObject<{
@@ -58,5 +58,6 @@ export declare const optionsSetChannelSchema: z.ZodObject<{
58
58
  prod: z.ZodOptional<z.ZodBoolean>;
59
59
  packageJson: z.ZodOptional<z.ZodString>;
60
60
  ignoreMetadataCheck: z.ZodOptional<z.ZodBoolean>;
61
+ qrPreview: z.ZodOptional<z.ZodBoolean>;
61
62
  }, z.core.$strip>;
62
63
  export type OptionsSetChannel = z.infer<typeof optionsSetChannelSchema>;