@capgo/cli 8.99.1 → 8.99.3

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.99.1",
4
+ "version": "8.99.3",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -135,7 +135,7 @@
135
135
  "test:no-redirect-error": "bun test/test-no-redirect-error.mjs",
136
136
  "test:onboarding-recovery": "bun test/test-onboarding-recovery.mjs",
137
137
  "test:onboarding-progress": "bun test/test-onboarding-progress.mjs",
138
- "test:onboarding-run-targets": "bun test/test-onboarding-run-targets.mjs",
138
+ "test:onboarding-run-targets": "bun test/test-onboarding-run-targets.mjs && bun test ./test/test-ios-simulator-compatibility.mjs",
139
139
  "test:run-device-command": "bun test/test-run-device-command.mjs",
140
140
  "test:init-app-conflict": "bun test/test-init-app-conflict.mjs",
141
141
  "test:channel-add-exists": "bun test/test-channel-add-exists.mjs",
@@ -1,3 +1,4 @@
1
+ import type { IosSimulatorCompatibility } from '../run/ios-compatibility';
1
2
  import { getPMAndCommand } from '../utils';
2
3
  export declare const OUTDATED_DEPENDENCIES_ERROR = "Some dependencies are not up to date";
3
4
  export interface OutdatedDependency {
@@ -49,6 +50,7 @@ export declare function getInfoInternal(options: DoctorInfoOptions, silent?: boo
49
50
  webDir: string;
50
51
  installedDependencies: Record<string, string>;
51
52
  latestDependencies: Record<string, string>;
53
+ iosSimulatorCompatibility: IosSimulatorCompatibility;
52
54
  }>;
53
55
  export declare function getInfo(options: DoctorInfoOptions): Promise<{
54
56
  appName: string;
@@ -57,5 +59,6 @@ export declare function getInfo(options: DoctorInfoOptions): Promise<{
57
59
  webDir: string;
58
60
  installedDependencies: Record<string, string>;
59
61
  latestDependencies: Record<string, string>;
62
+ iosSimulatorCompatibility: IosSimulatorCompatibility;
60
63
  }>;
61
64
  export {};
@@ -89,6 +89,7 @@ export type RunDeviceStepOutcome = {
89
89
  } | {
90
90
  args: undefined;
91
91
  command: string;
92
+ manualInstructions?: string;
92
93
  };
93
94
  export interface CapacitorRunTarget {
94
95
  name: string;
@@ -1,6 +1,7 @@
1
1
  import type { LiveUpdateNextStepInput } from '../../schemas/live-update-onboarding.js';
2
2
  import type { NextStepResult, Platform } from './contract.js';
3
3
  import type { LiveUpdateProgress } from './progress.js';
4
+ import type { IosSimulatorCompatibility } from '../../run/ios-compatibility.js';
4
5
  export interface GitRepoStatus {
5
6
  inRepo: boolean;
6
7
  clean: boolean;
@@ -61,6 +62,8 @@ export interface EngineDeps {
61
62
  getRunDeviceCommand: (platform: Platform) => {
62
63
  command: string;
63
64
  cwd?: string;
65
+ manualInstructions?: string;
66
+ iosSimulatorCompatibility?: IosSimulatorCompatibility;
64
67
  };
65
68
  getGitStatus: (cwd?: string) => GitRepoStatus;
66
69
  reportOnboardingStep?: (appId: string, stepDone: number) => void;
@@ -1 +1,2 @@
1
+ export declare const BUNDLE_ENCRYPTION_GUIDANCE: string;
1
2
  export declare function explainForState(state: string): string;
@@ -1,6 +1,7 @@
1
1
  import type { CapgoSDK } from '../../sdk.js';
2
2
  import type { LiveUpdateStartInput } from '../../schemas/live-update-onboarding.js';
3
3
  import type { McpRegistrar } from '../../mcp/registrar.js';
4
+ import type { Platform } from './contract.js';
4
5
  import type { EngineDeps } from './engine.js';
5
6
  export interface LiveUpdateProjectTarget {
6
7
  packageJsonPath?: string;
@@ -8,6 +9,7 @@ export interface LiveUpdateProjectTarget {
8
9
  }
9
10
  type LiveUpdateProjectTargetInput = Pick<LiveUpdateStartInput, 'packageJson' | 'mainFile'>;
10
11
  export declare function resolveLiveUpdateProjectTarget(input: LiveUpdateProjectTargetInput, initialCwd?: string): LiveUpdateProjectTarget;
12
+ export declare function getRunDeviceCommandForPlatform(platform: Platform, projectDir: string, initialCwd: string): ReturnType<EngineDeps['getRunDeviceCommand']>;
11
13
  export declare function buildDeps(sdkOrGetter: CapgoSDK | (() => CapgoSDK), cwd?: string, getProjectTarget?: () => LiveUpdateProjectTarget | undefined): EngineDeps;
12
14
  export declare function registerLiveUpdateTools(server: McpRegistrar, sdk: CapgoSDK | (() => CapgoSDK), depsOverride?: EngineDeps): void;
13
15
  export {};
@@ -0,0 +1,19 @@
1
+ export declare const IOS_SIMULATOR_ISSUE_URL = "https://github.com/ionic-team/capacitor/issues/8620";
2
+ export declare const LAST_UNSUPPORTED_NATIVE_RUN_VERSION = "2.0.3";
3
+ interface IosSimulatorVersions {
4
+ capacitorCliVersion: string | null;
5
+ nativeRunVersion: string | null;
6
+ }
7
+ export type IosSimulatorCompatibility = {
8
+ kind: 'unaffected';
9
+ } | ({
10
+ kind: 'supported' | 'unsupported' | 'unknown';
11
+ } & IosSimulatorVersions);
12
+ export declare function checkIosSimulatorCompatibility(projectDir: string, { hostPlatform, developerDir }?: {
13
+ hostPlatform?: NodeJS.Platform;
14
+ developerDir?: string;
15
+ }): IosSimulatorCompatibility;
16
+ export declare function formatIosSimulatorGuidance(compatibility: Exclude<IosSimulatorCompatibility, {
17
+ kind: 'unaffected';
18
+ }>): string;
19
+ export {};