Expand description
Session management for ACP Agent
This module handles:
- Session lifecycle (create, get, remove)
- Token usage tracking
- Permission handling
- Session state management
- Interactive permission requests
- Background process management
Structs§
- Background
Process Manager - Manager for background terminal processes
- Pending
Permission Request - Pending permission request from hook
- Permission
Handler - Permission handler for tool execution
- Permission
Manager - Permission Manager - handles permission requests in background tasks
- Permission
Request Builder - Builder for creating permission requests
- Prompt
Manager - Prompt manager
- Prompt
Task - Prompt task wrapper
- Session
- An active Claude session
- Session
Manager - Manager for active sessions
- Usage
Tracker - Tracks token usage across a session
- Wrapped
Child - Wrapper around Box
that provides a stable interface compatible with Arc<Mutex<>>
Enums§
- Background
Terminal - Background terminal state
- Child
Handle - Child process handle that can be either wrapped or unwrapped
- Permission
Manager Decision - Permission decision result
- Permission
Mode - Permission mode for tool execution
- Permission
Outcome - Permission request outcome after user interaction
- Terminal
Exit Status - Terminal exit status
- Tool
Permission Result - Permission check result from the handler
Functions§
- stable_
cache_ key - Generate a stable cache key from JSON value
Type Aliases§
- Prompt
Id - Prompt task identifier