feat: 階段一 - 改用 Node.js 實作基本流程骨架

- Dockerfile: 改用 node:20-slim
- entrypoint.sh: 執行 app/main.js
- app/package.json: axios + js-yaml + openai
- app/config.js: 環境變數與 LLM 自動偵測(10 種服務)
- app/llm.js: OpenAI-compatible 統一介面
- app/gitea.js: PR diff 取得與 comment 發布
- app/roles.js: 從 prompts/roles/*.yaml 載入角色
- app/main.js: pipeline 骨架,log 每個主要階段
This commit is contained in:
2026-05-11 07:24:47 +00:00
parent 1324f1575d
commit ec1f6c96e7
14 changed files with 179 additions and 210 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
FROM python:3.11-slim
FROM node:20-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
@@ -9,7 +9,7 @@ WORKDIR /action
COPY app/ /action/app/
COPY entrypoint.sh /entrypoint.sh
RUN pip install --no-cache-dir -r /action/app/requirements.txt && \
RUN cd /action/app && npm install && \
chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]