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 toolchainVersions from '../../../../toolchain-versions.json' with { type: 'json' }; |
| 2 | |
| 3 | /** |
| 4 | * Environment variables to automatically pass through to Docker containers. |
| 5 | */ |
| 6 | export const WELL_KNOWN_ENV_VARS = [ |
| 7 | 'ANTHROPIC_API_KEY', |
| 8 | 'COMPOSIO_API_KEY', |
| 9 | 'COMPOSIO_BASE_URL', |
| 10 | 'OPENAI_API_KEY', |
| 11 | ] as const; |
| 12 | |
| 13 | /** |
| 14 | * Node.js versions that are well-known to the CI matrix strategy. |
| 15 | * `current` refers to the Node.js version specified in mise.toml. |
| 16 | */ |
| 17 | export const WELL_KNOWN_NODE_VERSIONS = [...toolchainVersions.node, 'current'] as const; |
| 18 | |
| 19 | /** |
| 20 | * Returns the sha256 digest pinned for a Node.js version in toolchain-versions.json. |
| 21 | * Throws when the version has no pinned digest, so an unpinned image build fails |
| 22 | * loudly instead of silently floating on a mutable base image tag. |
| 23 | */ |
| 24 | export function nodeDigestFor(nodeVersion: string): string { |
| 25 | const digests = toolchainVersions.nodeDigests as Record<string, string>; |
| 26 | const digest = digests[nodeVersion]; |
| 27 | if (!digest) { |
| 28 | throw new Error( |
| 29 | `No digest pin found for Node.js ${nodeVersion} in toolchain-versions.json (nodeDigests). ` + |
| 30 | 'Add a digest pin for this version, or builds would float on an untagged base image.' |
| 31 | ); |
| 32 | } |
| 33 | return digest; |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * CLI versions that are well-known to the CI strategy. |
| 38 | * `current` refers to the version in ts/packages/cli/package.json. |
| 39 | */ |
| 40 | export const WELL_KNOWN_CLI_VERSIONS = ['current'] as const; |
| 41 | |
| 42 | export const INSTALL_E2E_SHELLS = ['bash', 'zsh', 'fish'] as const; |
| 43 | |
| 44 | export const INSTALL_E2E_MODES = ['local', 'prod'] as const; |
| 45 | |
| 46 | export const INSTALL_E2E_LOCAL_RELEASE_TAG = '@composio/cli@98.0.0'; |
| 47 | |
| 48 | export const TIMEOUTS = { |
| 49 | DEFAULT: 5_000, |
| 50 | FIXTURE: 120_000, |
| 51 | LLM_SHORT: 30_000, |
| 52 | LLM_LONG: 60_000, |
| 53 | } as const; |