From e758b17cf66e5032d768b784acbc00b995799905 Mon Sep 17 00:00:00 2001 From: peppa-bot Date: Tue, 24 Nov 2026 14:54:37 +0000 Subject: [PATCH] =?UTF-8?q?PEP-262:=20openspec=20=D0=B2=20=D0=BE=D0=B1?= =?UTF-8?q?=D1=80=D0=B0=D0=B7=D0=B0=D1=85=20=D0=BF=D0=BB=D0=B0=D1=82=D1=84?= =?UTF-8?q?=D0=BE=D1=80=D0=BC=D1=8B=20=D0=B8=20=D0=B0=D0=B3=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit После переезда в Docker «Создать проект» падал на openspec init (ENOENT). Co-Authored-By: Claude Opus 5.5 --- infra/platform/Dockerfile | 4 +++- infra/runner/Dockerfile | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/infra/platform/Dockerfile b/infra/platform/Dockerfile index f0752ef7..468e1caa 100644 --- a/infra/platform/Dockerfile +++ b/infra/platform/Dockerfile @@ -23,7 +23,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends git tmux openss # `codex login`) запускают CLI в самом сервисе, не в контейнере агента. ARG CLAUDE_CODE_VERSION=latest ARG CODEX_VERSION=latest -RUN npm install -g --no-fund --no-audit "@anthropic-ai/claude-code@${CLAUDE_CODE_VERSION}" "@openai/codex@${CODEX_VERSION}" +# openspec: проект создаётся с `openspec init` (runner/provision.ts) — без него «Создать проект» падает с ENOENT. +ARG OPENSPEC_VERSION=2.0.0 +RUN npm install -g --no-fund --no-audit "@anthropic-ai/claude-code@${CLAUDE_CODE_VERSION}" "@openai/codex@${CODEX_VERSION}" "@fission-ai/openspec@${OPENSPEC_VERSION}" COPY --from=build /app /app WORKDIR /app ENV NODE_ENV=production PEPPA_COMMIT=${PEPPA_COMMIT} PEPPA_ROOT=/app PATH=/app/packages/cli/bin:/app/packages/runner/bin:/app/packages/mcp/bin:$PATH diff --git a/infra/runner/Dockerfile b/infra/runner/Dockerfile index ebe17134..662d731d 100644 --- a/infra/runner/Dockerfile +++ b/infra/runner/Dockerfile @@ -6,6 +6,7 @@ FROM node:22-bookworm-slim ARG CLAUDE_CODE_VERSION=latest ARG CODEX_VERSION=latest +ARG OPENSPEC_VERSION=2.0.0 ARG OPENCODE_VERSION=latest ARG PNPM_VERSION=10 @@ -18,6 +19,7 @@ RUN npm install -g --no-fund --no-audit \ "@openai/codex@${CODEX_VERSION}" \ "opencode-ai@${OPENCODE_VERSION}" \ "pnpm@${PNPM_VERSION}" \ + "@fission-ai/openspec@${OPENSPEC_VERSION}" \ && npm cache clean --force COPY peppa-agent.mjs bin/peppa-hook bin/peppa-mcp /usr/local/bin/ -- 2.45.2