Update Runtimes
update_runtimesKeep language runtimes current by checking for updates; dry-run by default and apply changes only after confirmation.
Instructions
Update language runtimes. SAFE BY DEFAULT: with apply=False this is a dry run — it returns the update commands that WOULD run without changing anything. Pass apply=True to actually execute them (mise up, rustup update, swiftly update, apt-get upgrade of language packages, npm -g update, uv tool upgrade).
apply=True asks the caller to confirm first (a protocol-level gate, not
just the anthropic/requiresUserInteraction _meta hint — see
codecalc/confirmation.py); apply=False is never gated, since nothing runs.
PRIVILEGE: the apt manager updates system packages and its command begins
with sudo. Those commands do NOT run unless the HOST has set
CODECALC_ALLOW_RUNTIME_APPLY=1; without it they are reported as skipped
with ok: false and the variable named, and the rest still run. Every
entry carries an elevated flag either way. mise/rustup/swiftly/npm/uv
touch user-owned toolchains and are never gated.
NETWORK: yes, on both paths. apply=False still asks each manager what the latest version is, which is a remote lookup; apply=True additionally downloads and installs. "Dry run" bounds what changes on disk, not what is sent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | False (default) is a dry run reporting commands only; True actually runs them and asks for confirmation first | |
| timeout | No | Wall-clock seconds allowed for the update commands to complete | |
| languages | No | Comma-separated languages to update, e.g. 'python3,node,rust'; empty updates all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||