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
fix(cli): match setup skill to running release
Kshitij Jhunjhunwala28c9dd7dc752
diff --git a/ts/packages/cli/src/services/setup-skill-installer.ts b/ts/packages/cli/src/services/setup-skill-installer.tsindex 031b47f0a..58df943fa 100644--- a/ts/packages/cli/src/services/setup-skill-installer.ts+++ b/ts/packages/cli/src/services/setup-skill-installer.ts@@ -1,7 +1,7 @@import { FileSystem } from '@effect/platform';import { Effect } from 'effect';import path from 'node:path';-import { inferSkillReleaseChannel, installSkill } from 'src/effects/install-skill';+import { installSkill } from 'src/effects/install-skill';import { APP_VERSION } from 'src/constants';import { NodeOs } from './node-os';@@ -22,7 +22,7 @@ export class SetupSkillInstaller extends Effect.Service<SetupSkillInstaller>()(yield* installSkill({target: 'claude',- channel: inferSkillReleaseChannel(APP_VERSION),+ releaseTag: `@composio/cli@${APP_VERSION}`,});return true;}),diff --git a/ts/packages/cli/test/src/effects/install-skill.test.ts b/ts/packages/cli/test/src/effects/install-skill.test.tsindex b804ba8e2..51d92599a 100644--- a/ts/packages/cli/test/src/effects/install-skill.test.ts+++ b/ts/packages/cli/test/src/effects/install-skill.test.ts@@ -80,6 +80,16 @@ describe('install-skill', () => {).toBe('/tmp/test-home/.openclaw/skills/composio-cli');});+ it('prefers an explicit running release tag over channel discovery', async () => {+ const releaseTag = '@composio/[email protected]';+ const tag = await makeResolveEffect([], {+ channel: 'stable',+ releaseTag,+ }).pipe(Effect.runPromise);++ expect(tag).toBe(releaseTag);+ });+it('resolves the latest stable release when the stable channel is requested', async () => {vi.stubGlobal('Bun', { which: vi.fn(() => null) });