- Rewrite agent loop as Planning→Executing(N)→Completed state machine with per-step context isolation to prevent token explosion - Split tools and prompts by phase (planning vs execution) - Add advance_step/save_memo tools for step transitions and cross-step memory - Unify LLM interface: remove duplicate types, single chat_with_tools path - Add UTF-8 safe truncation (truncate_str) to prevent panics on Chinese text - Extract CreateForm component, add auto-scroll to execution log - Add report generation with app access URL, non-blocking title generation - Add timer system, file serving, app proxy, exec module - Update Dockerfile with uv, deployment config Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
531 B
Docker
22 lines
531 B
Docker
# Stage 1: Build frontend
|
|
FROM node:22-alpine AS frontend
|
|
WORKDIR /app/web
|
|
COPY web/package.json web/package-lock.json ./
|
|
RUN npm ci
|
|
COPY web/ ./
|
|
RUN npm run build
|
|
|
|
# Stage 2: Runtime
|
|
FROM alpine:3.21
|
|
RUN apk add --no-cache ca-certificates curl bash
|
|
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
ENV PATH="/root/.local/bin:$PATH"
|
|
RUN mkdir -p /app/data/workspaces
|
|
WORKDIR /app
|
|
COPY target/aarch64-unknown-linux-musl/release/tori .
|
|
COPY --from=frontend /app/web/dist ./web/dist/
|
|
COPY config.yaml .
|
|
|
|
EXPOSE 3000
|
|
CMD ["./tori"]
|