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ยง
Enumsยง
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
namecan be found on the system PATH. - probe_
version ๐ - Run
cmd --version-argand extract the first version-looking token. ReturnsSome(version_string)on success,Noneif 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/.