Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix(core): stop misclassifying local paths starting with "http" as URLs (#3766)
This PR: - fixes a `startsWith('http')` check in the TypeScript SDK that misclassified local paths such as `http_export/report.csv` or `http_backup/.ssh/id_rsa` as URLs - the misclassification routed those paths through the URL-fetch branch, which skips both the upload allowlist (`assertPathInsideUploadDirs`) and the sensitive-path denylist (`assertSafeFileUploadPath`, added in #3763 for GHSA-hp3h-89pf-5q58) - replaces the naive prefix check with `isHttpUrl()`, a `new URL()`-based check in `fileUtils.node.ts`, matching the Python SDK's existing `_is_url()` behavior (`urlparse` + scheme check), which was not affected by this bug - updates the three call sites that used the naive check: `fileUtils.node.ts` (`readFile`, `getFileDataAfterUploadingToS3`) and `FileToolModifier.node.ts` (`beforeFileUpload` source classification) - adds a regression test asserting a path like `http_export/.aws/creds` is still blocked by the sensitive-path denylist rather than routed to `fetch`