Documentation
¶
Overview ¶
Package permissions holds Alaska's per-tool permission policy.
For each tool the model wants to invoke, the policy is consulted:
- Allow — run silently
- Deny — refuse with a tool_result error, don't ask
- Ask — prompt the user once, optionally remember their answer
Rules live in config.toml under permissions; the REPL has a /permissions slash command to tweak them interactively.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Policy ¶
Policy is the user's current per-tool rules. Unknown tools fall back to DefaultMode (ask).
func (*Policy) SetDefault ¶
SetDefault changes the fallback for unrecognised tools.
func (*Policy) SortedTools ¶
SortedTools returns the configured tool rules in a stable order.
Click to show internal directories.
Click to hide internal directories.