@capgo/cli
Version:
A CLI to upload to capgo servers
26 lines (25 loc) • 999 B
TypeScript
import { type DetectedAgent } from 'agent-cli-detector';
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;
agent_invoker: boolean;
agent_identity?: DetectedAgent;
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(environment?: NodeJS.ProcessEnv): GlobalAnalyticsProps;