@devries-cameron20 / composio Mirror · read-only / commits / 60423d5da
Fork 0

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, 07:15 UTC

docs: add Firewall page and a Governance section (#5059)

## Summary Adds a docs page for Firewall, the session hooks from #4958, and a new **Governance** section in the sidebar for it. Replaces #5058. Designated PR reviewer: [@jkomyno](mailto:alberto@composio.dev). ## Changes - New page `docs/firewall` (`content/docs/firewall.mdx`), with Python and TypeScript examples: - Custom prompt checks with the `condition_check` hook, with one `before_execute` and one `after_execute` example - What `session.execute()` returns when a hook blocks a call (`resultType`, `error`, `blockReason`, `hookResults`) - Writing a condition, and how we evaluate one - Prompt injection detection with the `prompt_injection_check` hook - Hook IDs and names, which tool calls are checked, and updating checks - New **Governance** group in the platform sidebar (`lib/home-navigation.ts`) with the Firewall page. Approvals stays under Sessions for now. - The same section in `content/docs/meta.json`, plus the navigation test that lists the sidebar sections. - Caps Next.js build workers at 15 (`experimental.cpus` in `next.config.mjs`). Static generation started one worker per core (29 on Vercel), and each toolkit page holds megabytes of tool and trigger data, so the Vercel build was running out of memory and getting killed. That happened on `next` as well, not only on this branch. Page URLs don't change, so no redirects are needed. ## Type of change - [ ] Bug fix - [ ] New feature - [ ] Refactor/Chore - [x] Documentation - [ ] Breaking change ## How Has This Been Tested? Run from `docs/`: - `bun run build` passes, including the Twoslash type checks. - `bun run types:check`, `bun run lint` and `bun run lint:links` pass. - `bun test tests/static`: 727 pass, 5 fail. The 5 failures are all in `content-freshness.test.ts` and come from its temporary git fixtures. They don't touch these files. The TypeScript blocks use `// @noErrors`, like the Approvals page, because the docs' `@composio/core` devDependency is a published version from before hooks. That can be removed once the SDK with hooks is released and the pin is bumped. ## 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 - [ ] I added a changeset if this change affects published packages 🤖 Generated with [Claude Code](https://claude.com/claude-code)

mukund-composio committed Oct 22, 2026 at 18:42 UTC 60423d5da461a6f074b9561c40968db1566e83ab

No changes.