mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-02-12 09:12:50 +00:00
* feat: upgrade claude-agent-sdk to 0.2.38 and adapt to new SDK types - Bump @anthropic-ai/claude-agent-sdk from 0.1.x to 0.2.38 (both root and mcp-server) - Bump zod from 3.x to 4.x (SDK peer dependency) - Add allowDangerouslySkipPermissions to query options (required for bypassPermissions) - Suppress new SDK message types (tool_progress, tool_use_summary, auth_status) - Use structured error field on assistant messages instead of text-sniffing - Add stop_reason to result message handling for diagnostics - Add SDKAssistantMessageError type matching SDK's string literal union * chore: remove CLAUDE_CODE_MAX_OUTPUT_TOKENS from all config and docs
72 lines
2.5 KiB
YAML
72 lines
2.5 KiB
YAML
services:
|
|
temporal:
|
|
image: temporalio/temporal:latest
|
|
command: ["server", "start-dev", "--db-filename", "/home/temporal/temporal.db", "--ip", "0.0.0.0"]
|
|
ports:
|
|
- "7233:7233" # gRPC
|
|
- "8233:8233" # Web UI (built-in)
|
|
volumes:
|
|
- temporal-data:/home/temporal
|
|
healthcheck:
|
|
test: ["CMD", "temporal", "operator", "cluster", "health", "--address", "localhost:7233"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 30s
|
|
|
|
worker:
|
|
build: .
|
|
entrypoint: ["node", "dist/temporal/worker.js"]
|
|
environment:
|
|
- TEMPORAL_ADDRESS=temporal:7233
|
|
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
|
|
- ANTHROPIC_BASE_URL=${ANTHROPIC_BASE_URL:-} # Optional: route through claude-code-router
|
|
- ANTHROPIC_AUTH_TOKEN=${ANTHROPIC_AUTH_TOKEN:-} # Auth token for router
|
|
- ROUTER_DEFAULT=${ROUTER_DEFAULT:-} # Model name when using router (e.g., "gemini,gemini-2.5-pro")
|
|
- CLAUDE_CODE_OAUTH_TOKEN=${CLAUDE_CODE_OAUTH_TOKEN:-}
|
|
depends_on:
|
|
temporal:
|
|
condition: service_healthy
|
|
volumes:
|
|
- ./configs:/app/configs
|
|
- ./prompts:/app/prompts
|
|
- ./audit-logs:/app/audit-logs
|
|
- ${OUTPUT_DIR:-./audit-logs}:/app/output
|
|
- ./repos:/repos
|
|
- ${BENCHMARKS_BASE:-.}:/benchmarks
|
|
shm_size: 2gb
|
|
ipc: host
|
|
security_opt:
|
|
- seccomp:unconfined
|
|
|
|
# Optional: claude-code-router for multi-model support
|
|
# Start with: ROUTER=true ./shannon start ...
|
|
router:
|
|
image: node:20-slim
|
|
profiles: ["router"] # Only starts when explicitly requested
|
|
command: >
|
|
sh -c "apt-get update && apt-get install -y gettext-base &&
|
|
npm install -g @musistudio/claude-code-router &&
|
|
mkdir -p /root/.claude-code-router &&
|
|
envsubst < /config/router-config.json > /root/.claude-code-router/config.json &&
|
|
ccr start"
|
|
ports:
|
|
- "3456:3456"
|
|
volumes:
|
|
- ./configs/router-config.json:/config/router-config.json:ro
|
|
environment:
|
|
- HOST=0.0.0.0
|
|
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
|
|
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
|
|
- ROUTER_DEFAULT=${ROUTER_DEFAULT:-openai,gpt-4o}
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3456/health', r => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 30s
|
|
|
|
volumes:
|
|
temporal-data:
|