@capgo/cli 8.6.0 → 8.7.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/dist/index.js +391 -391
- package/dist/package.json +1 -1
- package/dist/src/analytics/global-props.d.ts +22 -0
- package/dist/src/analytics/track.d.ts +2 -14
- package/dist/src/sdk.js +225 -225
- package/dist/src/utils.d.ts +27 -6
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type InvocationSource = 'cli' | 'mcp';
|
|
2
|
+
export declare function setInvocationSource(source: InvocationSource): void;
|
|
3
|
+
export declare function getInvocationSource(): InvocationSource;
|
|
4
|
+
export interface GlobalAnalyticsProps {
|
|
5
|
+
cli_version: string;
|
|
6
|
+
node_version: string;
|
|
7
|
+
os_platform: string;
|
|
8
|
+
os_arch: string;
|
|
9
|
+
os_release: string;
|
|
10
|
+
timezone: string;
|
|
11
|
+
is_ci: boolean;
|
|
12
|
+
is_tty: boolean;
|
|
13
|
+
invocation_source: InvocationSource;
|
|
14
|
+
ci_provider?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Properties attached to every CLI telemetry event. Injected at the shared
|
|
18
|
+
* sendEvent() send path (see cli/src/utils.ts) so both trackEvent() and the
|
|
19
|
+
* many direct sendEvent() callers are tagged with the runtime OS, arch, OS
|
|
20
|
+
* release, timezone, CLI/Node versions and CI context.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getGlobalAnalyticsProps(): GlobalAnalyticsProps;
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import { withSupabaseSource } from './supabase-perf';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export declare function getInvocationSource(): InvocationSource;
|
|
2
|
+
export { getGlobalAnalyticsProps, getInvocationSource, setInvocationSource } from './global-props';
|
|
3
|
+
export type { GlobalAnalyticsProps, InvocationSource } from './global-props';
|
|
5
4
|
export declare function isTelemetryDisabled(): boolean;
|
|
6
|
-
export interface GlobalAnalyticsProps {
|
|
7
|
-
cli_version: string;
|
|
8
|
-
node_version: string;
|
|
9
|
-
os_platform: string;
|
|
10
|
-
os_arch: string;
|
|
11
|
-
is_ci: boolean;
|
|
12
|
-
is_tty: boolean;
|
|
13
|
-
invocation_source: InvocationSource;
|
|
14
|
-
ci_provider?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare function getGlobalAnalyticsProps(): GlobalAnalyticsProps;
|
|
17
5
|
export declare function flushAnalytics(timeoutMs?: number): Promise<void>;
|
|
18
6
|
export declare function resolveTrackingContext(apikey: string, signal?: AbortSignal): Promise<{
|
|
19
7
|
appId?: string;
|