@capgo/cli 7.95.12 → 7.95.14-beta.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/dist/index.js +479 -490
- package/dist/package.json +1 -1
- package/dist/src/api/channels.d.ts +4 -5147
- package/dist/src/api/crypto.d.ts +5 -2
- package/dist/src/build/request.d.ts +1 -1
- package/dist/src/bundle/unlink.d.ts +8 -1
- package/dist/src/key.d.ts +0 -2
- package/dist/src/schemas/build.d.ts +0 -15
- package/dist/src/schemas/bundle.d.ts +0 -8
- package/dist/src/schemas/common.d.ts +0 -9
- package/dist/src/schemas/index.d.ts +7 -9
- package/dist/src/schemas/sdk.d.ts +0 -8
- package/dist/src/sdk.js +229 -229
- package/dist/src/utils.d.ts +2 -6
- package/package.json +1 -1
- package/skills/_artifacts/domain_map.yaml +32 -0
- package/skills/_artifacts/skill_spec.md +30 -0
- package/skills/_artifacts/skill_tree.yaml +17 -0
package/dist/src/utils.d.ts
CHANGED
|
@@ -5259,7 +5259,6 @@ export declare function isPayingOrg(supabase: SupabaseClient<Database>, orgId: s
|
|
|
5259
5259
|
export declare function isTrialOrg(supabase: SupabaseClient<Database>, orgId: string): Promise<number>;
|
|
5260
5260
|
export declare function isAllowedActionOrg(supabase: SupabaseClient<Database>, orgId: string): Promise<boolean>;
|
|
5261
5261
|
export declare function isAllowedActionAppIdApiKey(supabase: SupabaseClient<Database>, appId: string, apikey: string): Promise<boolean>;
|
|
5262
|
-
export declare function isAllowedApp(supabase: SupabaseClient<Database>, apikey: string, appId: string): Promise<boolean>;
|
|
5263
5262
|
export declare enum OrganizationPerm {
|
|
5264
5263
|
none = 0,
|
|
5265
5264
|
read = 1,
|
|
@@ -5288,7 +5287,7 @@ export declare function findProjectType(options?: {
|
|
|
5288
5287
|
export declare function findMainFileForProjectType(projectType: string, isTypeScript: boolean): string | null;
|
|
5289
5288
|
export declare function findBuildCommandForProjectType(projectType: string): Promise<"build" | "generate">;
|
|
5290
5289
|
export declare function findMainFile(silent?: boolean): Promise<string>;
|
|
5291
|
-
export declare function updateOrCreateVersion(supabase: SupabaseClient<Database>, update: Database['public']['Tables']['app_versions']['Insert']): Promise<import("@supabase/
|
|
5290
|
+
export declare function updateOrCreateVersion(supabase: SupabaseClient<Database>, update: Database['public']['Tables']['app_versions']['Insert']): Promise<import("@supabase/supabase-js").PostgrestSingleResponse<null>>;
|
|
5292
5291
|
export declare function uploadUrl(supabase: SupabaseClient<Database>, appId: string, name: string): Promise<string>;
|
|
5293
5292
|
export declare const BROTLI_MIN_UPDATER_VERSION_V5 = "5.10.0";
|
|
5294
5293
|
export declare const BROTLI_MIN_UPDATER_VERSION_V6 = "6.25.0";
|
|
@@ -5299,13 +5298,12 @@ export declare function generateManifest(path: string): Promise<{
|
|
|
5299
5298
|
hash: string;
|
|
5300
5299
|
}[]>;
|
|
5301
5300
|
export type manifestType = Awaited<ReturnType<typeof generateManifest>>;
|
|
5302
|
-
export type { uploadUrlsType } from './schemas/common';
|
|
5303
5301
|
export declare function zipFile(filePath: string): Promise<Buffer>;
|
|
5304
5302
|
export declare function zipFileUnix(filePath: string): Buffer<ArrayBuffer>;
|
|
5305
5303
|
export declare function zipFileWindows(filePath: string): Promise<Buffer>;
|
|
5306
5304
|
export declare function uploadTUS(apikey: string, data: Buffer, orgId: string, appId: string, name: string, spinner: ReturnType<typeof spinnerC>, localConfig: CapgoConfig, chunkSize: number): Promise<boolean>;
|
|
5307
5305
|
export declare function deletedFailedVersion(supabase: SupabaseClient<Database>, appId: string, name: string): Promise<void>;
|
|
5308
|
-
export declare function updateOrCreateChannel(supabase: SupabaseClient<Database>, update: Database['public']['Tables']['channels']['Insert']): Promise<import("@supabase/
|
|
5306
|
+
export declare function updateOrCreateChannel(supabase: SupabaseClient<Database>, update: Database['public']['Tables']['channels']['Insert']): Promise<import("@supabase/supabase-js").PostgrestSingleResponse<{
|
|
5309
5307
|
allow_dev: boolean;
|
|
5310
5308
|
allow_device: boolean;
|
|
5311
5309
|
allow_device_self_set: boolean;
|
|
@@ -5331,7 +5329,6 @@ export declare function sendEvent(capgkey: string, payload: TrackOptions & {
|
|
|
5331
5329
|
notifyConsole?: boolean;
|
|
5332
5330
|
}, verbose?: boolean): Promise<void>;
|
|
5333
5331
|
export declare function show2FADeniedError(organizationName?: string): never;
|
|
5334
|
-
export declare function getOrganization(supabase: SupabaseClient<Database>, roles: string[]): Promise<Organization>;
|
|
5335
5332
|
export declare function filterOrgsByPermission(supabase: SupabaseClient<Database>, apikey: string, orgs: Organization[], permissionKey: string): Promise<Organization[]>;
|
|
5336
5333
|
export declare function getOrganizationListWithPermission(supabase: SupabaseClient<Database>, apikey: string, permissionKey: string): Promise<{
|
|
5337
5334
|
allOrganizations: Organization[];
|
|
@@ -5351,7 +5348,6 @@ export declare function assertCliPermission(supabase: SupabaseClient<Database>,
|
|
|
5351
5348
|
}): Promise<void>;
|
|
5352
5349
|
export declare function assertOrgPermission(supabase: SupabaseClient<Database>, apikey: string, permissionKey: string, orgId: string, message: string, silent: boolean): Promise<void>;
|
|
5353
5350
|
export declare function getOrganizationId(supabase: SupabaseClient<Database>, appId: string): Promise<string>;
|
|
5354
|
-
export declare function requireUpdateMetadata(supabase: SupabaseClient<Database>, channel: string, appId: string): Promise<boolean>;
|
|
5355
5351
|
export declare function getHumanDate(createdA: string | null): string;
|
|
5356
5352
|
export declare function getPMAndCommand(): {
|
|
5357
5353
|
pm: PackageManagerType;
|
package/package.json
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
domains:
|
|
2
|
+
- name: cli-usage
|
|
3
|
+
summary: High-level command routing, setup, diagnostics, app management, docs generation, MCP, and GitHub support commands.
|
|
4
|
+
primary_sources:
|
|
5
|
+
- webdocs/init.mdx
|
|
6
|
+
- webdocs/doctor.mdx
|
|
7
|
+
- webdocs/login.mdx
|
|
8
|
+
- webdocs/app.mdx
|
|
9
|
+
- webdocs/account.mdx
|
|
10
|
+
- webdocs/probe.mdx
|
|
11
|
+
- webdocs/star.mdx
|
|
12
|
+
- webdocs/star-all.mdx
|
|
13
|
+
- src/index.ts
|
|
14
|
+
- name: ota-release-management
|
|
15
|
+
summary: OTA bundle uploads, channel operations, compatibility checks, cleanup, and encryption-key workflows.
|
|
16
|
+
primary_sources:
|
|
17
|
+
- webdocs/bundle.mdx
|
|
18
|
+
- webdocs/channel.mdx
|
|
19
|
+
- webdocs/key.mdx
|
|
20
|
+
- src/index.ts
|
|
21
|
+
- name: native-builds
|
|
22
|
+
summary: Native cloud build requests and local build credential management for iOS and Android.
|
|
23
|
+
primary_sources:
|
|
24
|
+
- webdocs/build.mdx
|
|
25
|
+
- src/index.ts
|
|
26
|
+
- name: organization-management
|
|
27
|
+
summary: Account lookup, organization administration, and deprecated organisation aliases.
|
|
28
|
+
primary_sources:
|
|
29
|
+
- webdocs/account.mdx
|
|
30
|
+
- webdocs/organization.mdx
|
|
31
|
+
- webdocs/organisation.mdx
|
|
32
|
+
- src/index.ts
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Capgo CLI skill spec
|
|
2
|
+
|
|
3
|
+
## Goal
|
|
4
|
+
|
|
5
|
+
Provide a small Capgo CLI skill set that helps an agent choose and invoke the correct CLI commands for app setup, OTA release operations, organization administration, MCP setup, GitHub support commands, and native cloud builds without exceeding TanStack Intent size limits.
|
|
6
|
+
|
|
7
|
+
## Sources
|
|
8
|
+
|
|
9
|
+
- `webdocs/*.mdx` for published command descriptions, examples, and option tables.
|
|
10
|
+
- `src/index.ts` for the currently registered commands, aliases, and flags that may not yet be fully reflected in the web docs.
|
|
11
|
+
- `AGENTS.md` for repository-specific maintenance requirements.
|
|
12
|
+
|
|
13
|
+
## Skill set
|
|
14
|
+
|
|
15
|
+
- `usage`: routing, setup, diagnostics, app commands, docs generation, MCP, and GitHub support commands.
|
|
16
|
+
- `release-management`: bundle, channel, compatibility, cleanup, and encryption-key workflows.
|
|
17
|
+
- `native-builds`: native cloud build requests and build credential storage/update flows.
|
|
18
|
+
- `organization-management`: account ID lookup, organization admin flows, and deprecated `organisation` aliases.
|
|
19
|
+
|
|
20
|
+
## Scope
|
|
21
|
+
|
|
22
|
+
- Include the documented command purpose, invocation patterns, key options, and important caveats.
|
|
23
|
+
- Prefer the public user-facing examples already used by the project.
|
|
24
|
+
- Keep the skills aligned with the published docs and current CLI registration.
|
|
25
|
+
|
|
26
|
+
## Maintenance rules
|
|
27
|
+
|
|
28
|
+
- Any CLI command or option change should update the relevant `skills/*/SKILL.md` file in the same pull request.
|
|
29
|
+
- Use `webdocs/` as the primary wording source and `src/index.ts` as the completeness check.
|
|
30
|
+
- Validate the skills with `bunx @tanstack/intent@latest validate` before release.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
skills:
|
|
2
|
+
- name: usage
|
|
3
|
+
path: skills/usage/SKILL.md
|
|
4
|
+
domain: cli-usage
|
|
5
|
+
focus: High-level routing and shared invocation rules.
|
|
6
|
+
- name: release-management
|
|
7
|
+
path: skills/release-management/SKILL.md
|
|
8
|
+
domain: ota-release-management
|
|
9
|
+
focus: OTA bundle, channel, compatibility, cleanup, and encryption workflows.
|
|
10
|
+
- name: native-builds
|
|
11
|
+
path: skills/native-builds/SKILL.md
|
|
12
|
+
domain: native-builds
|
|
13
|
+
focus: Native build request flows and local build credential management.
|
|
14
|
+
- name: organization-management
|
|
15
|
+
path: skills/organization-management/SKILL.md
|
|
16
|
+
domain: organization-management
|
|
17
|
+
focus: Account and organization administration commands, including deprecated aliases.
|