feat: support codex runner in reviewer container

- Build both agent-runner and codex-runner into container image
- Select runner path based on group.agentType at docker exec time
- Update README to role-centric overview, generic MoA references
- Add MoA reference opinions guidance to arbiter prompt
This commit is contained in:
Eyejoker
2026-04-01 04:50:05 +09:00
parent 73156bf375
commit 404cbd6b04
4 changed files with 41 additions and 20 deletions

View File

@@ -52,18 +52,24 @@ RUN curl -fsSL https://bun.sh/install | bash
# Create app directory
WORKDIR /app
# Copy host's agent-runner (same code, same SDK version)
COPY runners/agent-runner/package*.json ./
RUN bun install
COPY runners/agent-runner/ ./
RUN bun run build
# Copy agent-runner (Claude Code)
COPY runners/agent-runner/package*.json ./agent/
RUN bun install --cwd ./agent
COPY runners/agent-runner/ ./agent/
RUN bun run --cwd ./agent build
# Copy codex-runner
COPY runners/codex-runner/package*.json ./codex/
RUN bun install --cwd ./codex
COPY runners/codex-runner/ ./codex/
RUN bun run --cwd ./codex build
# Create workspace directories
RUN mkdir -p /workspace/project /workspace/group /workspace/global \
/workspace/ipc/messages /workspace/ipc/input
# Create entrypoint script
RUN printf '#!/bin/bash\nset -e\ncat > /tmp/input.json\nbun /app/dist/index.js < /tmp/input.json\n' \
# Entrypoint (fallback — persistent containers use docker exec with explicit runner path)
RUN printf '#!/bin/bash\nset -e\ncat > /tmp/input.json\nbun /app/agent/dist/index.js < /tmp/input.json\n' \
> /app/entrypoint.sh && chmod +x /app/entrypoint.sh
# Set ownership to node user (non-root)