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 { Effect } from 'effect'; |
| 2 | import { DEBUG_CONFIG } from 'src/config'; |
| 3 | import * as constants from 'src/constants'; |
| 4 | import { resolveRunningCliVersion } from 'src/services/run-companion-modules'; |
| 5 | |
| 6 | export const getVersion = Effect.flatMap(DEBUG_CONFIG.VERSION, version => |
| 7 | version === undefined |
| 8 | ? resolveRunningCliVersion(process.execPath, constants.APP_VERSION) |
| 9 | : Effect.succeed(version) |
| 10 | ); |