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 'tsdown'; |
| 2 | import { baseConfig, baseNeverBundle } from '../../../tsdown.config.base.ts'; |
| 3 | |
| 4 | export default defineConfig({ |
| 5 | ...baseConfig, |
| 6 | tsconfig: 'tsconfig.build.json', |
| 7 | copy: [ |
| 8 | { from: 'pack/generated/*', to: '.', flatten: false }, |
| 9 | { from: 'docs/**/*', to: 'dist/docs', flatten: false }, |
| 10 | { |
| 11 | from: '../../../docs/content/reference/sdk-reference/typescript/*', |
| 12 | to: 'dist/docs/reference/sdk-reference/typescript', |
| 13 | flatten: true, |
| 14 | }, |
| 15 | ], |
| 16 | entry: [ |
| 17 | 'src/index.ts', |
| 18 | 'src/experimental/index.ts', |
| 19 | |
| 20 | // #platform |
| 21 | 'src/platform/node.ts', |
| 22 | 'src/platform/workerd.ts', |
| 23 | |
| 24 | // #files |
| 25 | 'src/models/Files.node.ts', |
| 26 | 'src/models/Files.workerd.ts', |
| 27 | |
| 28 | // #file_tool_modifier |
| 29 | 'src/utils/modifiers/FileToolModifier.node.ts', |
| 30 | 'src/utils/modifiers/FileToolModifier.workerd.ts', |
| 31 | |
| 32 | // #config_defaults |
| 33 | 'src/utils/config-defaults/ConfigDefaults.node.ts', |
| 34 | 'src/utils/config-defaults/ConfigDefaults.workerd.ts', |
| 35 | |
| 36 | // #ssrf_guard |
| 37 | 'src/utils/ssrfGuard.node.ts', |
| 38 | 'src/utils/ssrfGuard.workerd.ts', |
| 39 | |
| 40 | // public utility subpaths |
| 41 | 'src/utils/json-schema.ts', |
| 42 | ], |
| 43 | deps: { |
| 44 | ...baseConfig.deps, |
| 45 | /** |
| 46 | * We don't want to accidentally bundle `node:*` packages (e.g., `node:module`) |
| 47 | * as not all of them are available in Cloudflare Workers / Vercel Edge runtimes. |
| 48 | */ |
| 49 | neverBundle: [ |
| 50 | ...baseNeverBundle, |
| 51 | '#client_identity', |
| 52 | '#platform', |
| 53 | '#files', |
| 54 | '#file_tool_modifier', |
| 55 | '#config_defaults', |
| 56 | '#ssrf_guard', |
| 57 | ], |
| 58 | }, |
| 59 | }); |