## LLM 공급자 어댑터 (B)
- sister-agent/src/llm/ 에 LlmAdapter 인터페이스 신설. 어댑터 5종:
openclaw (기존), openai, anthropic, ollama, mock
- 선택은 LLM_PROVIDER 환경변수로. 기본값 mock.
- 모델명은 LLM_MODEL_{MANAGER,PRINCIPAL,LEAD,JUNIOR} 로 외부화.
OpenClaw 내부 네이밍이 기본값이지만 env 로 얼마든지 갈아끼움.
- openai 어댑터는 OPENAI_BASE_URL 로 OpenRouter / Azure / 로컬 llama.cpp
서버까지 커버.
## In-process 단일 프로세스 모드 (C)
- sister-agent/src/core.ts 로 executeInvocation 을 library-export
- rails 에 InProcessTransport 추가. 동적 import 로 sister-agent core 를
로드해 같은 Node 프로세스에서 함수 호출로 실행.
- DirectRailsClient 로 HTTP 루프백 없이 DB 에 직접 쓰기 — 단일
프로세스에서도 observability 동일.
- RailsConfig 에 transport: "in-process" 추가.
- buildTransports 가 RAILS_TRANSPORT 와 per-stage override 를 지원하도록
확장. 레거시 RAILS_TRANSPORT_MODE + RAILS_AGENT_*_HOST 도 그대로 호환.
## Git push 외부화 + allowlist env 화
- spawn.ts 의 ENABLE_GIT_PUSH 를 "GITEA_TOKEN 있으면 auto on" 으로 변경.
기존 Dev 토폴로지는 sister LXC 들에 이미 토큰이 있어서 행동 변화 없음.
- rails.service.ts 의 파일 프록시 allowlist 를 GIT_RAW_ALLOWED_HOSTS
env 로 외부화. 기본값은 기존 Gitea 호스트 유지.
## Docker / 배포
- Dockerfile 추가. 단일 이미지로 rails + sister-agent 둘 다 빌드.
- docker-compose.yml (기본): mariadb + rails 한 컨테이너 = in-process.
docker compose up 한 줄로 로컬 E2E 가능.
- docker-compose.full.yml: rails + 4 개 독립 sister 컨테이너 = 분산.
## 설정 샘플 + 문서
- .env.example 완전 재작성: 필수/LLM/토폴로지/Gitea/Discord 5 섹션
- rails.config.local.yaml: in-process 샘플
- rails.config.distributed.yaml: http 분산 샘플
- docs/LOCAL-SETUP.md: 30분 퀵스타트 (Docker + 네이티브 두 경로)
- README 에 "5분 퀵스타트" + 토폴로지 표 + LLM 공급자 목록 추가
## 테스트
- tests/transport-build.test.ts (6 테스트): 기본값 / in-process /
per-stage override / http 엔드포인트 누락 / env 기반 wiring / 레거시
env 호환
- 전체 테스트 105 → 111 통과
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
# ────────────────────────────────────────────────────────────────
|
|
# rails.config.local.yaml
|
|
#
|
|
# Single-host / single-process configuration. Every stage runs the
|
|
# sister-agent core directly inside the rails Node process — no separate
|
|
# daemons, no networking between agents, just one binary.
|
|
#
|
|
# This is the fastest way to try rails on your laptop.
|
|
#
|
|
# Usage:
|
|
# cp rails.config.local.yaml rails.config.yaml
|
|
# cp .env.example .env # then set LLM_PROVIDER + any API keys
|
|
# pnpm rails serve -c rails.config.yaml
|
|
#
|
|
# Env vars (RAILS_TRANSPORT, SISTER_ENDPOINT_*, etc.) always override
|
|
# whatever is in this file.
|
|
# ────────────────────────────────────────────────────────────────
|
|
|
|
pipeline:
|
|
stages:
|
|
- plan
|
|
- implement
|
|
- review
|
|
- deploy
|
|
|
|
agents:
|
|
plan:
|
|
role: plan
|
|
displayName: Planner
|
|
agentName: harang
|
|
transport: in-process
|
|
timeoutMs: 600000
|
|
|
|
implement:
|
|
role: implement
|
|
displayName: Generator
|
|
agentName: narang
|
|
transport: in-process
|
|
timeoutMs: 600000
|
|
|
|
review:
|
|
role: review
|
|
displayName: Evaluator
|
|
agentName: darang
|
|
transport: in-process
|
|
timeoutMs: 600000
|
|
|
|
deploy:
|
|
role: deploy
|
|
displayName: Deploy
|
|
agentName: erang
|
|
transport: in-process
|
|
timeoutMs: 600000
|
|
|
|
discord:
|
|
enabled: false
|