Structs§
Constants§
- WARDEN_
PLATFORM - The platform warden uses for all containers.
Warden hardcodes
--platform linux/amd64on everydocker run/docker create, so all image operations must target the same platform for consistency.
Functions§
- agent_
knowledge_ store_ path - Canonical path of the AK knowledge store inside the agent container.
Both the default mount and the
AK_STORE-override mount land here so the in-containerakresolves to the same path regardless of host layout. - ensure_
named_ volumes_ exist - Pre-create any Docker named volumes found in
stakpak_agent_default_mounts. - expand_
volume_ path - Expand
~to$HOMEin a volume mount string. - find_
available_ port - get_
container_ host_ port - image_
exists_ locally - Checks if a Docker image exists locally
- is_
docker_ available - Checks if Docker is installed and accessible
- is_
named_ volume - Check whether the host-side part of a volume mount is a Docker named volume (as opposed to a bind mount path).
- pull_
warden_ image - Pull a Docker image for the warden platform (linux/amd64) with visible progress.
- remove_
container - resolve_
ak_ store_ for_ sandbox - Resolve the host-side AK knowledge store directory for a sandboxed subagent.
- run_
container_ detached - stakpak_
agent_ default_ mounts - Default volume mounts for the stakpak agent container.
- stakpak_
agent_ image - The container image used for sandboxed agent sessions. Override at runtime with STAKPAK_AGENT_IMAGE env var for local testing.
- stop_
container - volume_
container_ part - Container-side path of a volume mount (segment after the first
:). Falls back to the whole string when the format is unexpected. - volume_
host_ part - Host-side part of a volume mount (everything before the first
:). - warden_
ak_ store_ args - Warden CLI flags that pin the AK knowledge store inside the sandboxed
container. Returns an empty Vec when no host override is supplied — the
caller then relies on the default mount in
stakpak_agent_default_mounts. - warden_
image_ exists_ locally - Checks if a Docker image for the warden platform (linux/amd64) exists locally.