@capgo/cli 7.93.3 → 7.94.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 +286 -77
- package/dist/index.js +479 -475
- package/dist/package.json +11 -7
- package/dist/src/api/channels.d.ts +2 -0
- package/dist/src/bundle/upload.d.ts +1 -1
- package/dist/src/init/command.d.ts +23 -0
- package/dist/src/init/runtime.d.ts +1 -0
- package/dist/src/init/ui/components.d.ts +3 -1
- package/dist/src/run/device.d.ts +5 -0
- package/dist/src/sdk.js +315 -324
- package/dist/src/utils.d.ts +20 -3
- package/package.json +11 -7
- package/skills/usage/SKILL.md +3 -1
- package/skills/_artifacts/domain_map.yaml +0 -32
- package/skills/_artifacts/skill_spec.md +0 -30
- package/skills/_artifacts/skill_tree.yaml +0 -17
package/dist/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.94.0",
|
|
5
5
|
"description": "A CLI to upload to capgo servers",
|
|
6
6
|
"author": "Martin martin@capgo.app",
|
|
7
7
|
"license": "Apache 2.0",
|
|
8
|
-
"homepage": "https://github.com/Cap-go/
|
|
8
|
+
"homepage": "https://github.com/Cap-go/capgo/tree/main/cli#readme",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/Cap-go/
|
|
11
|
+
"url": "git+https://github.com/Cap-go/capgo.git",
|
|
12
|
+
"directory": "cli"
|
|
12
13
|
},
|
|
13
14
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/Cap-go/
|
|
15
|
+
"url": "https://github.com/Cap-go/capgo/issues"
|
|
15
16
|
},
|
|
16
17
|
"keywords": [
|
|
17
18
|
"appflow alternative",
|
|
@@ -56,9 +57,10 @@
|
|
|
56
57
|
"no-debug": "node dist/index.js",
|
|
57
58
|
"dev-build": "SUPA_DB=development ncc build",
|
|
58
59
|
"pack": "pkg",
|
|
59
|
-
"types": "
|
|
60
|
+
"types": "bunx --bun supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",
|
|
60
61
|
"typecheck": "tsc --noEmit",
|
|
61
|
-
"lint": "eslint \"src/**/*.ts\"
|
|
62
|
+
"lint": "eslint \"src/**/*.ts\"",
|
|
63
|
+
"lint:fix": "eslint \"src/**/*.ts\" --fix",
|
|
62
64
|
"check-posix-paths": "node test/check-posix-paths.js",
|
|
63
65
|
"generate-docs": "node dist/index.js generate-docs README.md",
|
|
64
66
|
"test:bundle": "bun test/test-bundle.mjs",
|
|
@@ -73,6 +75,8 @@
|
|
|
73
75
|
"test:checksum": "bun test/test-checksum-algorithm.mjs",
|
|
74
76
|
"test:ci-prompts": "bun test/test-ci-prompts.mjs",
|
|
75
77
|
"test:onboarding-recovery": "bun test/test-onboarding-recovery.mjs",
|
|
78
|
+
"test:onboarding-run-targets": "bun test/test-onboarding-run-targets.mjs",
|
|
79
|
+
"test:run-device-command": "bun test/test-run-device-command.mjs",
|
|
76
80
|
"test:init-app-conflict": "bun test/test-init-app-conflict.mjs",
|
|
77
81
|
"test:prompt-preferences": "bun test/test-prompt-preferences.mjs",
|
|
78
82
|
"test:esm-sdk": "node test/test-sdk-esm.mjs",
|
|
@@ -81,7 +85,7 @@
|
|
|
81
85
|
"test:version-detection:setup": "./test/fixtures/setup-test-projects.sh",
|
|
82
86
|
"test:platform-paths": "bun test/test-platform-paths.mjs",
|
|
83
87
|
"test:payload-split": "bun test/test-payload-split.mjs",
|
|
84
|
-
"test": "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:credentials && bun run test:credentials-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:ci-prompts && bun run test:onboarding-recovery && bun run test:init-app-conflict && 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"
|
|
88
|
+
"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:credentials && bun run test:credentials-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:ci-prompts && bun run test:onboarding-recovery && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-app-conflict && 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"
|
|
85
89
|
},
|
|
86
90
|
"devDependencies": {
|
|
87
91
|
"@antfu/eslint-config": "^7.0.0",
|
|
@@ -3,6 +3,8 @@ import type { Database } from '../types/supabase.types';
|
|
|
3
3
|
interface CheckVersionOptions {
|
|
4
4
|
silent?: boolean;
|
|
5
5
|
autoUnlink?: boolean;
|
|
6
|
+
channelName?: string;
|
|
7
|
+
requireMatch?: boolean;
|
|
6
8
|
}
|
|
7
9
|
export declare function checkVersionNotUsedInChannel(supabase: SupabaseClient<Database>, appid: string, versionData: Database['public']['Tables']['app_versions']['Row'], options?: CheckVersionOptions): Promise<void>;
|
|
8
10
|
interface FindUnknownOptions {
|
|
@@ -3,7 +3,7 @@ import type { OptionsUpload } from './upload_interface';
|
|
|
3
3
|
import { createSupabaseClient } from '../utils';
|
|
4
4
|
type SupabaseType = Awaited<ReturnType<typeof createSupabaseClient>>;
|
|
5
5
|
export type { UploadBundleResult };
|
|
6
|
-
export declare function getDefaultUploadChannel(appId: string, supabase: SupabaseType, hostWeb: string): Promise<string
|
|
6
|
+
export declare function getDefaultUploadChannel(appId: string, supabase: SupabaseType, hostWeb: string): Promise<string>;
|
|
7
7
|
export declare function uploadBundleInternal(preAppid: string, options: OptionsUpload, silent?: boolean): Promise<UploadBundleResult>;
|
|
8
8
|
export declare function uploadBundle(appid: string, options: OptionsUpload): Promise<{
|
|
9
9
|
success: boolean;
|
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
import type { Options } from '../api/app';
|
|
2
|
+
import { spawnSync } from 'node:child_process';
|
|
3
|
+
import { getPMAndCommand } from '../utils';
|
|
2
4
|
interface SuperOptions extends Options {
|
|
3
5
|
local: boolean;
|
|
4
6
|
}
|
|
7
|
+
export type RunDeviceCancelHandler = () => Promise<never>;
|
|
8
|
+
type PackageManagerInfo = ReturnType<typeof getPMAndCommand>;
|
|
9
|
+
export type PlatformChoice = 'ios' | 'android';
|
|
10
|
+
export type RunDeviceStepOutcome = {
|
|
11
|
+
args: string[];
|
|
12
|
+
command: string;
|
|
13
|
+
} | {
|
|
14
|
+
args: undefined;
|
|
15
|
+
command: string;
|
|
16
|
+
};
|
|
17
|
+
export interface CapacitorRunTarget {
|
|
18
|
+
name: string;
|
|
19
|
+
api: string | undefined;
|
|
20
|
+
id: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function runPackageRunnerSync(runner: string, args: string[], options: Parameters<typeof spawnSync>[2]): import("node:child_process").SpawnSyncReturns<string | NonSharedBuffer>;
|
|
23
|
+
export declare function parseCapacitorRunTargetList(output: string): CapacitorRunTarget[];
|
|
24
|
+
export declare function getPhysicalIosRunTargets(targets: CapacitorRunTarget[]): CapacitorRunTarget[];
|
|
25
|
+
export declare function getSimulatorIosRunTargets(targets: CapacitorRunTarget[]): CapacitorRunTarget[];
|
|
26
|
+
export declare function resolveRunDeviceCommand(cancelHandler: RunDeviceCancelHandler, pm: PackageManagerInfo, platformName: PlatformChoice): Promise<RunDeviceStepOutcome>;
|
|
27
|
+
export declare function normalizeRunDevicePlatform(platformName: string): PlatformChoice;
|
|
5
28
|
export declare function initApp(apikeyCommand: string, appId: string, options: SuperOptions): Promise<void>;
|
|
6
29
|
export {};
|
|
@@ -2,6 +2,7 @@ export declare const INIT_CANCEL: unique symbol;
|
|
|
2
2
|
export type InitLogTone = 'cyan' | 'yellow' | 'green' | 'red';
|
|
3
3
|
export type InitScreenTone = 'cyan' | 'blue' | 'green' | 'yellow';
|
|
4
4
|
export interface InitScreen {
|
|
5
|
+
headerTitle?: string;
|
|
5
6
|
title?: string;
|
|
6
7
|
introLines?: string[];
|
|
7
8
|
phaseLabel?: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ConfirmPrompt, InitScreen, PromptRequest, SelectPrompt, TextPrompt } from '../runtime';
|
|
2
|
-
export declare function InitHeader(
|
|
2
|
+
export declare function InitHeader({ title }: Readonly<{
|
|
3
|
+
title?: string;
|
|
4
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
3
5
|
export declare function ScreenIntro({ screen }: Readonly<{
|
|
4
6
|
screen: InitScreen;
|
|
5
7
|
}>): import("react/jsx-runtime").JSX.Element;
|