Expand description
Shared agent-mode capability declarations and filtering helpers.
Structs§
- Agent
Capability - Declarative capability group for agent-mode visibility.
- Agent
Mode Context - Shared process-level agent-mode context.
- Agent
Skill Error - Error returned when rendering a single agent capability view fails.
- Agent
Surface Spec - Declarative capability surface for a tool.
- Command
Selector - Declarative selector for a command path.
- Flag
Selector - Declarative selector for a long flag on a command path.
Enums§
- Agent
Dispatch - Shared parse result for agent-aware entrypoints.
Constants§
- AGENT_
TOKEN_ ENV - Environment variable containing the presented agent token.
- AGENT_
TOKEN_ EXPECTED_ ENV - Environment variable containing the expected agent token.
Functions§
- apply_
agent_ surface - Apply the visible agent surface to a
clapcommand tree. - parse_
with_ agent_ surface - Parse process argv against the normal or agent-filtered surface for a clap CLI.
- parse_
with_ agent_ surface_ from - Parse argv against the normal or agent-filtered surface for a clap CLI.
- render_
agent_ help - Render the visible agent capability surface as structured text.
- render_
agent_ skill - Render the visible contract for one agent capability.
- visible_
capabilities - Return the capabilities visible in the current agent-mode context.