Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 04:45 UTC
| 1 | import { describe, expect, it } from '@effect/vitest'; |
| 2 | import cliPackageJson from '../../../package.json' with { type: 'json' }; |
| 3 | import { |
| 4 | buildCliReleaseVersionDefineArgs, |
| 5 | extractCliReleaseVersion, |
| 6 | } from 'src/utils/cli-release-version'; |
| 7 | |
| 8 | describe('CLI release version authority', () => { |
| 9 | it('uses a non-release development sentinel', () => { |
| 10 | expect(cliPackageJson.version).toBe('0.0.0-development'); |
| 11 | }); |
| 12 | |
| 13 | it('derives the exact GitHub release version', () => { |
| 14 | expect(extractCliReleaseVersion('@composio/cli@0.2.33-beta.322')).toBe('0.2.33-beta.322'); |
| 15 | expect(extractCliReleaseVersion('@composio/core@0.2.33')).toBeUndefined(); |
| 16 | expect(buildCliReleaseVersionDefineArgs('@composio/cli@0.2.33-beta.322')).toEqual([ |
| 17 | '--define', |
| 18 | '__COMPOSIO_CLI_RELEASE_VERSION__="0.2.33-beta.322"', |
| 19 | ]); |
| 20 | }); |
| 21 | }); |