Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
Merge PR 3927 fixes into telemetry taxonomy
Kshitij Jhunjhunwalae0d184ede25a
diff --cc ts/packages/cli/src/cli-main.tsindex 93fcb1c22,e06400576..eed493748--- a/ts/packages/cli/src/cli-main.ts+++ b/ts/packages/cli/src/cli-main.ts@@@ -42,8 -37,7 +38,8 @@@ importgetPrimaryLifecycleInvokedEvent,getPrimaryLifecycleSucceededEvent,} from 'src/analytics/events';- import { ensureAnalyticsIdentity, trackCliEventEffect } from 'src/analytics/dispatch';+ import { trackCliEventEffect } from 'src/analytics/dispatch';+import { getVersion } from 'src/effects/version';import { mapOnlyComposioOverrideError } from 'src/services/composio-error-overrides';import { SetupSkillInstaller } from 'src/services/setup-skill-installer';import { SetupCommandError } from 'src/services/setup';@@@ -151,21 -145,11 +147,9 @@@ const runWithTelemetry = Effect.gen(funconst ui = yield* TerminalUI;const terminal = yield* ui.capabilities;- // Stitch the analytics identity for installs whose credential (env or- // keyring) resolved without ever passing through a login-time link.- const userContext = yield* ComposioUserContext;- const resolvedApiKey = Option.getOrUndefined(userContext.data.apiKey);- if (resolvedApiKey) {- yield* ensureAnalyticsIdentity({- apiKey: resolvedApiKey,- baseURL: userContext.data.baseURL,- fetchSessionInfo: getSessionInfoByUserApiKey,- });- }-- const commandTelemetryContext = createCliCommandTelemetryContext(- process.argv,- constants.APP_VERSION,- terminal- );+ const version = yield* getVersion;+ configureCliAnalyticsReleaseVersion(version);+ const commandTelemetryContext = createCliCommandTelemetryContext(process.argv, version, terminal);if (commandTelemetryContext.commandPath === 'run' && commandTelemetryContext.runId) {// effect/Config is read-only; the run id must be written into the environment so the run// command and the child processes it spawns observe the same telemetry run id.