@capgo/cli
Version:
A CLI to upload to capgo servers
23 lines (22 loc) • 847 B
TypeScript
export type InvocationSource = 'cli' | 'mcp';
export declare function setInvocationSource(source: InvocationSource): void;
export declare function getInvocationSource(): InvocationSource;
export interface GlobalAnalyticsProps {
cli_version: string;
node_version: string;
os_platform: string;
os_arch: string;
os_release: string;
timezone: string;
is_ci: boolean;
is_tty: boolean;
invocation_source: InvocationSource;
ci_provider?: string;
}
/**
* Properties attached to every CLI telemetry event. Injected at the shared
* sendEvent() send path (see cli/src/utils.ts) so both trackEvent() and the
* many direct sendEvent() callers are tagged with the runtime OS, arch, OS
* release, timezone, CLI/Node versions and CI context.
*/
export declare function getGlobalAnalyticsProps(): GlobalAnalyticsProps;