pty-agent 0.1.0

An observable PTY-backed coding agent built with Rig.
FROM archlinux:latest

ARG PTY_AGENT_VERSION=
ARG PTY_AGENT_INSTALL_SOURCE=crates

ENV CARGO_HOME=/usr/local/cargo
ENV RUSTUP_HOME=/usr/local/rustup
ENV PATH=/usr/local/cargo/bin:/usr/bin:/bin
ENV SHELL=/bin/bash

RUN pacman -Syu --noconfirm archlinux-keyring \
    && pacman -Syu --noconfirm \
        base-devel \
        bash \
        ca-certificates \
        cmake \
        curl \
        git \
        openssl \
        pkgconf \
        rust \
        cargo \
    && pacman -Scc --noconfirm

WORKDIR /workspace

RUN if [ "$PTY_AGENT_INSTALL_SOURCE" = "crates" ]; then \
        if [ -n "$PTY_AGENT_VERSION" ]; then \
            cargo install pty-agent --version "$PTY_AGENT_VERSION"; \
        else \
            cargo install pty-agent; \
        fi; \
    fi

CMD ["pty-agent", "--help"]