@capgo/cli 8.41.4 → 8.42.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 +504 -504
- package/dist/package.json +2 -1
- package/dist/src/analytics/global-props.d.ts +4 -1
- package/dist/src/sdk.js +235 -235
- package/dist/src/utils.d.ts +1 -1
- package/package.json +2 -1
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.42.0",
|
|
5
5
|
"description": "A CLI to upload to capgo servers",
|
|
6
6
|
"author": "Martin martin@capgo.app",
|
|
7
7
|
"license": "Apache 2.0",
|
|
@@ -223,6 +223,7 @@
|
|
|
223
223
|
"@xmldom/xmldom": "^0.9.10",
|
|
224
224
|
"@xterm/addon-serialize": "^0.14.0",
|
|
225
225
|
"@xterm/headless": "^6.0.0",
|
|
226
|
+
"agent-cli-detector": "^0.1.6",
|
|
226
227
|
"happy-dom": "^20.11.0",
|
|
227
228
|
"ink": "^7.1.1",
|
|
228
229
|
"ink-spinner": "^5.0.0",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type DetectedAgent } from 'agent-cli-detector';
|
|
1
2
|
export type InvocationSource = 'cli' | 'mcp';
|
|
2
3
|
export declare function setInvocationSource(source: InvocationSource): void;
|
|
3
4
|
export declare function getInvocationSource(): InvocationSource;
|
|
@@ -11,6 +12,8 @@ export interface GlobalAnalyticsProps {
|
|
|
11
12
|
is_ci: boolean;
|
|
12
13
|
is_tty: boolean;
|
|
13
14
|
invocation_source: InvocationSource;
|
|
15
|
+
agent_invoker: boolean;
|
|
16
|
+
agent_identity?: DetectedAgent;
|
|
14
17
|
ci_provider?: string;
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
@@ -19,4 +22,4 @@ export interface GlobalAnalyticsProps {
|
|
|
19
22
|
* many direct sendEvent() callers are tagged with the runtime OS, arch, OS
|
|
20
23
|
* release, timezone, CLI/Node versions and CI context.
|
|
21
24
|
*/
|
|
22
|
-
export declare function getGlobalAnalyticsProps(): GlobalAnalyticsProps;
|
|
25
|
+
export declare function getGlobalAnalyticsProps(environment?: NodeJS.ProcessEnv): GlobalAnalyticsProps;
|