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, 03:37 UTC
| 1 | import { defineConfig } from 'vitest/config'; |
| 2 | import path from 'node:path'; |
| 3 | |
| 4 | const __dirname = path.resolve(path.dirname(new URL(import.meta.url).pathname)); |
| 5 | const coreDir = path.resolve(__dirname, '../core'); |
| 6 | const jsonSchemaToZodDir = path.resolve(__dirname, '../json-schema-to-zod'); |
| 7 | |
| 8 | export default defineConfig({ |
| 9 | resolve: { |
| 10 | alias: { |
| 11 | '@composio/core': path.join(coreDir, 'src/index.ts'), |
| 12 | '@composio/json-schema-to-zod': path.join(jsonSchemaToZodDir, 'src/index.ts'), |
| 13 | '#config_defaults': path.join(coreDir, 'src/utils/config-defaults/ConfigDefaults.node.ts'), |
| 14 | '#platform': path.join(coreDir, 'src/platform/node.ts'), |
| 15 | '#files': path.join(coreDir, 'src/models/Files.node.ts'), |
| 16 | '#file_tool_modifier': path.join(coreDir, 'src/utils/modifiers/FileToolModifier.node.ts'), |
| 17 | '#ssrf_guard': path.join(coreDir, 'src/utils/ssrfGuard.node.ts'), |
| 18 | }, |
| 19 | }, |
| 20 | test: { |
| 21 | include: ['test/**/*.test.ts'], |
| 22 | }, |
| 23 | }); |