fix: compile dist from source in Docker, fix ChatResult interface

- Dockerfile now runs tsc during build so committed dist/ is never stale
- ChatResult interface was missing history[] and memoryUpdates[] fields
- Re-add missing MemoryUpdate import in orchestrator.ts
- Rebuild dist/ with all new fields included

Made-with: Cursor
This commit is contained in:
2026-02-27 19:27:42 -08:00
parent 837b6e8b8d
commit d9368e4abd
14 changed files with 675 additions and 259 deletions

View File

@@ -9,12 +9,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
WORKDIR /app
# Install dependencies first (layer cache)
# Install all deps (including devDeps for tsc)
COPY package*.json ./
RUN npm ci --omit=dev
RUN npm ci
# Copy compiled output (build before docker build, or use multi-stage)
COPY dist/ ./dist/
# Copy source and compile
COPY tsconfig.json ./
COPY src/ ./src/
RUN npm run build
# Prune dev deps after build
RUN npm prune --omit=dev
# Create workspace dir and non-root user
RUN useradd -r -m -s /bin/bash agent && \