Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | import { z } from 'zod'; |
| 2 | import slackBot from './slack-bot-source.json'; |
| 3 | import localWorkbench from './local-workbench-source.json'; |
| 4 | import standup from './standup-bot-source.json'; |
| 5 | import imessage from './imessage-source.json'; |
| 6 | |
| 7 | const sourceFiles = z.array(z.object({ path: z.string(), contents: z.string(), composio: z.boolean() })); |
| 8 | |
| 9 | /** The renderer and example inventory must resolve the same committed files. */ |
| 10 | export const EXAMPLE_SOURCES = { |
| 11 | 'slack-bot': sourceFiles.parse(slackBot), |
| 12 | 'local-workbench': sourceFiles.parse(localWorkbench), |
| 13 | standup: sourceFiles.parse(standup), |
| 14 | imessage: sourceFiles.parse(imessage), |
| 15 | }; |
| 16 | |
| 17 | export const EXAMPLE_SOURCE_REASONS: Record<keyof typeof EXAMPLE_SOURCES, string> = { |
| 18 | 'slack-bot': 'Pi agent runtime and PiProvider are TypeScript-only; this is a complete Pi application, not a standalone REST operation', |
| 19 | 'local-workbench': 'The local-workbench factory is available only in @composio/experimental; its sandbox helper runs Python inside that TypeScript host', |
| 20 | standup: 'The application uses the TypeScript-only Vercel AI SDK runtime and Slack framework handlers', |
| 21 | imessage: 'The local iMessage application uses the TypeScript-only eve provider and macOS automation', |
| 22 | }; |
| 23 | |
| 24 | export const EXAMPLE_BUILD_SOURCES: Record<string, keyof typeof EXAMPLE_SOURCES> = { |
| 25 | bot: 'slack-bot', |
| 26 | install: 'slack-bot', |
| 27 | reviewer: 'local-workbench', |
| 28 | setup: 'standup', |
| 29 | proxy: 'standup', |
| 30 | buttons: 'standup', |
| 31 | draft: 'standup', |
| 32 | wiring: 'imessage', |
| 33 | send: 'imessage', |
| 34 | }; |