@b4run/permissions
v0.13.1
Published
Permission matching, approval gates, and access-control stores for B4.run agents.
Maintainers
Readme
@b4run/permissions
Permission matching and approval-store contracts for B4.run agents.
Use this when: You are building permission matching or approval-store integrations for a B4.run agent.
Install
pnpm add @b4run/permissionsExample
import { matchPermission } from "@b4run/permissions"
const decision = matchPermission(
"bash",
"pnpm test",
{ bash: ["pnpm"] },
{ bash: ["pnpm publish"] },
)Runtime and stability
@b4run/permissionsis an edge-safe, supported integration surface.@b4run/permissions/nodeis a node-only, supported integration surface.
The root entry owns matching and portable contracts. Use the Node entry only for filesystem-backed approval-store integration.
Related
- Permissions API reference — exact matching and store contracts.
- Permissions guide — application policy and approval workflows.
@b4run/postgres-storage— shared Postgres-backed permission decisions.
Maturity and support
B4.run is pre-1.0, and its public surface can change. All publishable B4.run packages release together as a fixed group; review the @b4run/permissions changelog and upgrading guide before upgrading. For support, use GitHub Discussions; report defects in GitHub Issues.
License
MIT. See the repository license.
