Module tool_store

Module tool_store 

Source
Expand description

Tool store: ensures CLI tools (jq, rg, etc.) are available to agent subprocesses. Reads a bundled catalog JSON, checks system/bundled/managed install paths, and can download + verify tools on demand.

Structsยง

PlatformSpec
ToolCatalog
ToolSpec
ToolStatusEntry

Enumsยง

ToolStatus

Constantsยง

CATALOG_JSON ๐Ÿ”’

Functionsยง

bundled_tools_dir
Returns the bundled tools bin dir: <exe_dir>/tools/bin/.
current_platform
Returns the platform key for the current compile target.
downloads_dir ๐Ÿ”’
Returns ~/.agentmux/tools/downloads/.
get_tool_statuses
Get the install status of every tool in the catalog.
install_tool
Download, verify, and install a single tool by ID into the user-managed store (~/.agentmux/tools/bin/).
load_catalog
Load and parse the embedded catalog.
probe_system_path ๐Ÿ”’
Returns true if name can be found on the system PATH.
probe_version ๐Ÿ”’
Run cmd --version-arg and extract the first version-looking token. Returns Some(version_string) on success, None if the command fails or the output contains no recognisable version token.
system_path_of ๐Ÿ”’
Returns the system PATH location of name, or None.
user_tools_dir
Returns ~/.agentmux/tools/bin/.