@capgo/cli 8.101.1 → 8.102.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "8.101.1",
4
+ "version": "8.102.0",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -6,6 +6,12 @@ export declare function setCurrentCliCommand(command: string): void;
6
6
  * Throws CliUserError with a user-facing message — never includes the secret value.
7
7
  */
8
8
  export declare function validateCliRequestHeaderValue(headerName: string, value: unknown): string;
9
+ /**
10
+ * `x-cli-ci` value when the CLI runs in CI: the CI name (e.g. "GitHub Actions"),
11
+ * or `ci` when ci-info cannot name it. Capgo uses it to mark the onboarding
12
+ * CI/CD step done. Undefined outside CI.
13
+ */
14
+ export declare function cliCiHeaderValue(ci?: boolean, name?: string | null): string | undefined;
9
15
  /**
10
16
  * Build Capgo API request headers that identify this CLI invocation.
11
17
  * Does not invent an API key — callers merge Authorization/capgkey when available.