@capgo/cli 7.89.2 → 7.89.5
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 +390 -389
- package/dist/package.json +4 -2
- package/dist/src/promptPreferences.d.ts +13 -0
- package/dist/src/sdk.js +278 -277
- package/dist/src/utils.d.ts +7 -0
- package/package.json +4 -2
- package/skills/release-management/SKILL.md +2 -0
package/dist/src/utils.d.ts
CHANGED
|
@@ -82,6 +82,13 @@ interface TrackOptions {
|
|
|
82
82
|
}
|
|
83
83
|
export type { OptionsBase } from './schemas/base';
|
|
84
84
|
export declare function wait(ms: number): Promise<unknown>;
|
|
85
|
+
interface PromptInteractivityOptions {
|
|
86
|
+
silent?: boolean;
|
|
87
|
+
stdinIsTTY?: boolean;
|
|
88
|
+
stdoutIsTTY?: boolean;
|
|
89
|
+
ci?: boolean;
|
|
90
|
+
}
|
|
91
|
+
export declare function canPromptInteractively({ silent, stdinIsTTY, stdoutIsTTY, ci, }?: PromptInteractivityOptions): boolean;
|
|
85
92
|
export declare function projectIsMonorepo(dir: string): boolean;
|
|
86
93
|
export declare function findRoot(dir: string): string;
|
|
87
94
|
export declare function getPackageScripts(f?: string, file?: string | undefined): Record<string, string>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.89.
|
|
4
|
+
"version": "7.89.5",
|
|
5
5
|
"description": "A CLI to upload to capgo servers",
|
|
6
6
|
"author": "Martin martin@capgo.app",
|
|
7
7
|
"license": "Apache 2.0",
|
|
@@ -71,13 +71,15 @@
|
|
|
71
71
|
"test:credentials-validation": "bun test/test-credentials-validation.mjs",
|
|
72
72
|
"test:build-zip-filter": "bun test/test-build-zip-filter.mjs",
|
|
73
73
|
"test:checksum": "bun test/test-checksum-algorithm.mjs",
|
|
74
|
+
"test:ci-prompts": "bun test/test-ci-prompts.mjs",
|
|
75
|
+
"test:prompt-preferences": "bun test/test-prompt-preferences.mjs",
|
|
74
76
|
"test:esm-sdk": "node test/test-sdk-esm.mjs",
|
|
75
77
|
"test:mcp": "node test/test-mcp.mjs",
|
|
76
78
|
"test:version-detection": "node test/test-get-installed-version.mjs",
|
|
77
79
|
"test:version-detection:setup": "./test/fixtures/setup-test-projects.sh",
|
|
78
80
|
"test:platform-paths": "bun test/test-platform-paths.mjs",
|
|
79
81
|
"test:payload-split": "bun test/test-payload-split.mjs",
|
|
80
|
-
"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:esm-sdk && bun run test:mcp && bun run test:version-detection && bun run test:platform-paths && bun run test:payload-split"
|
|
82
|
+
"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: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"
|
|
81
83
|
},
|
|
82
84
|
"devDependencies": {
|
|
83
85
|
"@antfu/eslint-config": "^7.0.0",
|
|
@@ -24,6 +24,8 @@ Use this skill for OTA update workflows in Capgo Cloud.
|
|
|
24
24
|
- Deleted versions cannot be reused.
|
|
25
25
|
- External URL mode is useful for very large or privacy-sensitive bundles.
|
|
26
26
|
- Encryption is recommended for trustless distribution.
|
|
27
|
+
- Interactive prompts are disabled automatically in CI and other non-interactive sessions so uploads do not block automation.
|
|
28
|
+
- Optional upload prompts can remember the user's answer on the current machine so future uploads can skip the same question.
|
|
27
29
|
- Important options:
|
|
28
30
|
- `-p, --path <path>`
|
|
29
31
|
- `-c, --channel <channel>`
|