Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chain ¶
func Chain(rules ...Rule) agentcore.PermissionFunc
Chain composes rules in order and returns a PermissionFunc for WithPermission.
func ReadOnlyProfile ¶
func ReadOnlyProfile(root string) agentcore.PermissionFunc
ReadOnlyProfile allows read-only tools and limits paths to root.
func WorkspaceProfile ¶
func WorkspaceProfile(root string) agentcore.PermissionFunc
WorkspaceProfile allows common workspace file tools and excludes bash.
Types ¶
type Rule ¶
Rule is a lightweight permission rule for a single tool call.
func AllowTools ¶
AllowTools permits only the listed tools and rejects all others.
func RestrictPaths ¶
RestrictPaths limits tool paths to stay within root. If no tool names are provided, it applies to the built-in path-based tools.
Click to show internal directories.
Click to hide internal directories.