Skip to main content

Crate arcan_commands

Crate arcan_commands 

Source
Expand description

Slash command system for the Arcan agent runtime.

Provides a CommandRegistry that dispatches /-prefixed user input to built-in commands (/help, /clear, /cost, /quit, /diff).

Structs§

CommandContext
Mutable context passed to every command invocation.
CommandRegistry
Registry of slash commands with dispatch by name or alias.

Enums§

CommandResult
Result of executing a slash command.
PermissionMode
Permission mode governing tool approval in the shell.

Traits§

Command
Trait implemented by each slash command.

Functions§

is_tool_auto_approved
Determine whether a tool requires user permission before execution.
prompt_tool_permission
Prompt the user for permission to execute a tool.