Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAutoAllow ¶
func NewAutoAllow(cfg AutoAllowConfig) (agentkit.Approval, error)
NewAutoAllow registers approval/auto-allow: Allow every ask decision, for unattended runs.
Best practices:
- Never use alone. It filters nothing, so the Policy plane is the only enforcement left: pair it with policy/shell-allowlist and policy/path-denylist.
- Every decision is logged and audited, so an unattended run stays reviewable after the fact.
func NewAutoDeny ¶
NewAutoDeny registers approval/auto-deny: Deny every ask decision. For tests and CI.
Types ¶
type AutoAllowConfig ¶
type AutoAllowConfig struct {
// Reason is text recorded on each decision; defaults to "auto-allowed: unattended run".
Reason string `json:"reason"`
}
AutoAllowConfig configures unattended approval.
Click to show internal directories.
Click to hide internal directories.