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 | diff --git a/dist/node-utils.js b/dist/node-utils.js |
| 2 | index 96a483d44c9ca066a5128dc40abcffdb8a3aee4b..e7c5906264e4a073bcceafc359031f56b1a204b6 100644 |
| 3 | --- a/dist/node-utils.js |
| 4 | +++ b/dist/node-utils.js |
| 5 | @@ -316,6 +316,7 @@ function discoverFiles(rootDir, controller) { |
| 6 | } |
| 7 | function glob(pattern, root, options = {}) { |
| 8 | const mini = new Minimatch2(pattern); |
| 9 | + const recurseMini = new Minimatch2(pattern, { flipNegate: true }); |
| 10 | const shouldIncludeNodeModules = pattern.includes("node_modules"); |
| 11 | const controller = { |
| 12 | matches(path) { |
| 13 | @@ -325,12 +326,7 @@ function glob(pattern, root, options = {}) { |
| 14 | if (childPath[childPath.length - 1] === "node_modules" && !shouldIncludeNodeModules) { |
| 15 | return false; |
| 16 | } |
| 17 | - return mini.set.some((row) => mini.matchOne( |
| 18 | - childPath, |
| 19 | - row, |
| 20 | - /* partial */ |
| 21 | - true |
| 22 | - )); |
| 23 | + return recurseMini.match(childPath.join("/"), /* partial */ true); |
| 24 | }, |
| 25 | matchDirectories: options.includeDirectories, |
| 26 | followSymlinks: options.followSymlinks |