@capgo/cli 7.93.4 → 7.94.1
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 +254 -77
- package/dist/index.js +464 -466
- package/dist/package.json +10 -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 +29 -0
- package/dist/src/sdk.js +321 -330
- package/dist/src/utils.d.ts +20 -3
- package/package.json +10 -7
- 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.1",
|
|
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",
|
|
@@ -76,6 +78,7 @@
|
|
|
76
78
|
"test:onboarding-run-targets": "bun test/test-onboarding-run-targets.mjs",
|
|
77
79
|
"test:run-device-command": "bun test/test-run-device-command.mjs",
|
|
78
80
|
"test:init-app-conflict": "bun test/test-init-app-conflict.mjs",
|
|
81
|
+
"test:init-guardrails": "bun test/test-init-guardrails.mjs",
|
|
79
82
|
"test:prompt-preferences": "bun test/test-prompt-preferences.mjs",
|
|
80
83
|
"test:esm-sdk": "node test/test-sdk-esm.mjs",
|
|
81
84
|
"test:mcp": "node test/test-mcp.mjs",
|
|
@@ -83,7 +86,7 @@
|
|
|
83
86
|
"test:version-detection:setup": "./test/fixtures/setup-test-projects.sh",
|
|
84
87
|
"test:platform-paths": "bun test/test-platform-paths.mjs",
|
|
85
88
|
"test:payload-split": "bun test/test-payload-split.mjs",
|
|
86
|
-
"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: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"
|
|
89
|
+
"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: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"
|
|
87
90
|
},
|
|
88
91
|
"devDependencies": {
|
|
89
92
|
"@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;
|
|
@@ -5,6 +5,35 @@ interface SuperOptions extends Options {
|
|
|
5
5
|
local: boolean;
|
|
6
6
|
}
|
|
7
7
|
export type RunDeviceCancelHandler = () => Promise<never>;
|
|
8
|
+
type InitAutoTestChangeKind = 'html-banner' | 'vue-banner' | 'css-background';
|
|
9
|
+
interface GitRepoStatus {
|
|
10
|
+
inRepo: boolean;
|
|
11
|
+
clean: boolean;
|
|
12
|
+
repoRoot?: string;
|
|
13
|
+
entries: string[];
|
|
14
|
+
error?: string;
|
|
15
|
+
}
|
|
16
|
+
interface InitAutoTestChange {
|
|
17
|
+
filePath: string;
|
|
18
|
+
displayPath: string;
|
|
19
|
+
kind: InitAutoTestChangeKind;
|
|
20
|
+
}
|
|
21
|
+
export declare function getGitRepoStatus(startDir?: string): GitRepoStatus;
|
|
22
|
+
export declare function getInitUpdaterPluginConfig(appId: string, directInstall: boolean): {
|
|
23
|
+
directUpdate?: string | undefined;
|
|
24
|
+
autoSplashscreen?: boolean | undefined;
|
|
25
|
+
version: string;
|
|
26
|
+
appId: string;
|
|
27
|
+
autoUpdate: boolean;
|
|
28
|
+
};
|
|
29
|
+
export declare function getInitOtaVersionBase(pkgVersion: string): string;
|
|
30
|
+
export declare function getInitSuggestedOtaVersion(pkgVersion: string): string;
|
|
31
|
+
export declare function applyInitAutoTestChange(filePath: string, content: string): {
|
|
32
|
+
kind: InitAutoTestChangeKind;
|
|
33
|
+
content: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
export declare function revertInitAutoTestChangeContent(kind: InitAutoTestChangeKind, content: string): string | undefined;
|
|
36
|
+
export declare function isOnlyAllowedInitAutoTestChange(status: GitRepoStatus, allowedChange?: InitAutoTestChange): boolean;
|
|
8
37
|
type PackageManagerInfo = ReturnType<typeof getPMAndCommand>;
|
|
9
38
|
export type PlatformChoice = 'ios' | 'android';
|
|
10
39
|
export type RunDeviceStepOutcome = {
|