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 | /** |
| 2 | * Alias manager for pnpm. |
| 3 | */ |
| 4 | function readPackage(pkg, context) { |
| 5 | if (pkg.dependencies) { |
| 6 | // Note: you can use this to alias `@composio/client` to a preview Stainless package URL for local testing. |
| 7 | // if ('@composio/client' in pkg.dependencies) { |
| 8 | // const url = 'https://pkg.stainless.com/s/composio-sdk-typescript/4a53e1ae40ca5a0a3479727eb59d2512110c81cc' |
| 9 | // pkg.dependencies['@composio/client'] = url |
| 10 | // context.log(`@composio/client => ${url} in dependencies of ${pkg.name}`) |
| 11 | // } |
| 12 | } |
| 13 | |
| 14 | return pkg |
| 15 | } |
| 16 | |
| 17 | module.exports = { |
| 18 | hooks: { |
| 19 | readPackage |
| 20 | } |
| 21 | } |