Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 29 lines 865 Bytes
Raw
1 /**
2 * Map of experimental feature flags used to gate CLI commands and skill output.
3 *
4 * Extracted into its own module so that the skill build/validate scripts
5 * (`skills-src/`) can import it without pulling in `@composio/core` (which
6 * requires a prior build step).
7 */
8 export const CLI_EXPERIMENTAL_FEATURES = {
9 LISTEN: 'listen',
10 } as const;
11
12 export const CLI_RELEASE_CHANNELS = ['stable', 'beta'] as const;
13
14 export type CliReleaseChannel = (typeof CLI_RELEASE_CHANNELS)[number];
15
16 export type CliExperimentalFeature =
17 (typeof CLI_EXPERIMENTAL_FEATURES)[keyof typeof CLI_EXPERIMENTAL_FEATURES];
18
19 export const isExperimentalFeatureEnabledByDefault = (
20 feature: string,
21 channel: CliReleaseChannel
22 ) => {
23 switch (feature) {
24 case CLI_EXPERIMENTAL_FEATURES.LISTEN:
25 return channel === 'beta';
26 default:
27 return channel === 'beta';
28 }
29 };