0.2.5Circuit breaker states
Circuit breaker for protecting against repeated failures
(Object
= {})
| Name | Description |
|---|---|
$0.name any
(default 'default')
|
|
$0.failureThreshold any
(default 5)
|
|
$0.resetTimeMs any
(default 30000)
|
|
$0.halfOpenMaxAttempts any
(default 1)
|
(object)
Get ACP-compliant tool kind for a given tool name
(any)
Get display title for a tool, including context from input when available
(any)
(any)
(any)
Shorten a file path for display (show last 2-3 components)
(any)
Truncate string with ellipsis
(any)
(any)
Extract file locations from tool input for ACP locations array
(any)
(any)
Get a short inline description for embedding child tool calls in parent content
(any)
(any)
Build environment for spawning amp process
Wrapper for sessionUpdate with severity classification
Validate that a thread exists by checking with amp threads show
Promise<boolean>:
True if thread exists
Two-phase graceful kill: SIGTERM first, then SIGKILL after timeout
(ChildProcess)
The process to kill
(number
= 5000)
Grace period before SIGKILL (default: 5000ms)
Promise<("exited" | "killed")>:
State tracker for nested tool call handling Tracks mapping between Amp tool_use_id and child tool metadata Also tracks per-parent progress counters for consolidated display
Get full content array for a parent tool (ACP replaces content on each update) Returns array of content objects ready for ACP tool_call_update
(any)
Generate a session-unique ACP tool call ID from an Amp tool_use_id If the ID already exists, generate a unique replacement and track the mapping
(string)
Original Amp tool_use_id
string:
Session-unique ACP tool call ID
Find the ACP tool call ID for a given Amp tool_use_id Handles both direct matches and ampId->acpId mappings
(string)
Original Amp tool_use_id from tool_result
(string | null):
ACP tool call ID or null if not found
Check if a message chunk is a Bash tool_use
(any)
Extract tool result info from a tool_result chunk
(any)