Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
build(deps): let TypeDoc 0.28.20 run on minimatch 11 (#5472)
## Summary The SDK reference drift check fails on every PR to `next` since #5469, including https://github.com/ComposioHQ/composio/pull/5471. #5469 overrides TypeDoc's minimatch to 11.0.3 for [GHSA-g3hv-75wg-m249](https://github.com/advisories/GHSA-g3hv-75wg-m249). TypeDoc 0.28.20, the latest release, declares `minimatch@^10.2.5` and calls `Minimatch#matchOne` when it expands entry points. minimatch 11 made that method private, so `generate:docs` exits with `TypeError: mini.matchOne is not a function`. ## Changes - Patch TypeDoc 0.28.20 so its glob walk uses the public `match(path, true)` partial match instead of `matchOne`, on a second matcher built with `flipNegate` so a negated pattern prunes the same directories as before. That is its only `matchOne` call. The minimatch 11 override and its advisory fix stay. - Run the drift workflow when `patches/**` changes, since a patch can change the generated reference. ## Type of change - [x] Bug fix - [ ] New feature - [x] Refactor/Chore - [ ] Documentation - [ ] Breaking change ## How Has This Been Tested? - On `next`, `pnpm --filter @composio/core generate:docs` reproduces the CI crash locally. - With the patch, it generates all 22 files, and `docs/content/reference/sdk-reference` has no changes. - For 10 patterns (literal paths, globstars, brace sets, relative and absolute globs, and their negations) and 16 directory paths, minimatch 11 `match(path, true)` with `flipNegate` returns the same result as minimatch 10.2.5 `set.some(row => matchOne(parts, row, true))` in all 160 cases. Without `flipNegate`, it differs in 80, every case with a negated pattern. - `pnpm install --frozen-lockfile` passes. ## Checklist - [ ] I have read the Code of Conduct and this PR adheres to it - [ ] I have read and understand every line of this diff, including any LLM-generated code - [x] Any third-party docs links or promotional content follow the [third-party links policy](https://github.com/ComposioHQ/composio/blob/next/CONTRIBUTING.md#third-party-links-in-docs) - [x] I ran linters/tests locally and they passed - [x] I updated documentation as needed - [x] I added tests or explain why not applicable (the drift workflow runs TypeDoc on this change) - [x] I added a changeset if this change affects published packages (dev dependency only, no changeset) ## Additional context Dropping the override would also fix CI, but it would bring back the minimatch advisory alert. Remove the patch once a TypeDoc release supports minimatch 11.