Expand description
The host’s private CLIs (secrets, deploy) for a container agent that has AWS grants.
They are private packages (GitHub Packages), so they can’t be in the public image and no registry token ever
enters a container. Instead srv copies the host’s installed packages into one folder under the AgentMux root and
mounts it read-only at CONTAINER_TOOLS_DIR; two small sh launchers in bin/ (on the image’s PATH) run them
with the image’s own node. A host that doesn’t have a CLI installed gets a launcher that says so in one sentence,
so the container then has the AWS CLI only. Spec: docs/specs/SPEC_CONTAINER_AGENT_AWS_CREDENTIALS_2026_10_31.md.
Structs§
- Found
- An installed package on the host.
- Tool
- One private CLI: the command the agent types, its npm package, and the script (inside the package) that runs it.
Constants§
- CONTAINER_
TOOLS_ DIR - Where the folder is mounted, read-only, in the container. Its
bin/is on the image’sPATH. - TOOLS
Functions§
- config_
dir_ for - The host folder to mount for the agent
slug, freshly put in order, orNone: this host shares no AWS with that agent, or the folder can’t be written (the container then has no tools folder, as before). - find
- Find the host’s install of
command’s package, from wherewhichputs the command: on Unix the command is a link into<prefix>/lib/node_modules/<package>, on Windows a.cmdbesidenode_modules\<package>. No program is run. - render_
into - Put the tools folder under
root(container-tools/) in order and return it: each found package copied once (a new version gets its own folder, so a running command keeps the files it started from), and a launcher per tool. - write_
replacing - Replace
filewithtextin one step (a container reading the mount never sees half of it), unless it already says that.executablesets the mode on Unix hosts; Docker shows a Windows host’s files as executable.