@capgo/cli 8.99.1 → 8.100.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/README.md +64 -0
- package/dist/index.js +790 -777
- package/dist/notify-app-ready-worker.js +100 -100
- package/dist/onboarding-worker.js +170 -170
- package/dist/package.json +2 -2
- package/dist/src/app/info.d.ts +3 -0
- package/dist/src/build/queue-priority.d.ts +14 -0
- package/dist/src/init/command.d.ts +1 -0
- package/dist/src/init/mcp/engine.d.ts +3 -0
- package/dist/src/init/mcp/explanations.d.ts +1 -0
- package/dist/src/init/mcp/live-update-tools.d.ts +2 -0
- package/dist/src/run/ios-compatibility.d.ts +19 -0
- package/dist/src/sdk.js +332 -331
- package/dist/src/simulator/session.d.ts +41 -0
- package/dist/updater-installed-worker.js +76 -76
- package/package.json +2 -2
- package/skills/native-builds/SKILL.md +33 -1
- package/skills/release-management/SKILL.md +1 -1
- package/skills/usage/SKILL.md +3 -0
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.100.0",
|
|
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",
|
package/dist/src/app/info.d.ts
CHANGED
|
@@ -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 {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type NativeBuildQueueTier = 'standard' | 'elevated' | 'high' | 'highest';
|
|
2
|
+
export interface BuildQueuePriorityInfo {
|
|
3
|
+
queue_priority: number;
|
|
4
|
+
queue_priority_tier: NativeBuildQueueTier;
|
|
5
|
+
upgrade_url?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function formatNativeBuildQueueTierLabel(tier: NativeBuildQueueTier): string;
|
|
8
|
+
export declare function isTopNativeBuildQueueTier(tier: NativeBuildQueueTier): boolean;
|
|
9
|
+
export declare function buildQueuePriorityUserLines(input: BuildQueuePriorityInfo): string[];
|
|
10
|
+
export declare const buildQueuePriorityTestUtils: {
|
|
11
|
+
buildQueuePriorityUserLines: typeof buildQueuePriorityUserLines;
|
|
12
|
+
formatNativeBuildQueueTierLabel: typeof formatNativeBuildQueueTierLabel;
|
|
13
|
+
isTopNativeBuildQueueTier: typeof isTopNativeBuildQueueTier;
|
|
14
|
+
};
|
|
@@ -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,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 {};
|