mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-05-31 04:39:29 +02:00
181f24cfcc
Restructure into apps/worker, apps/cli, packages/mcp-server with Turborepo task orchestration, pnpm workspaces, Biome linting/formatting, and tsdown CLI bundling. Key changes: - src/ -> apps/worker/src/, cli/ -> apps/cli/, mcp-server/ -> packages/mcp-server/ - prompts/ and configs/ moved into apps/worker/ - npm replaced with pnpm, package-lock.json replaced with pnpm-lock.yaml - Dockerfile updated for pnpm-based builds - CLI logs command rewritten with chokidar for cross-platform reliability - Router health checking added for auto-detected router mode - Centralized path resolution via apps/worker/src/paths.ts
32 lines
785 B
JSON
32 lines
785 B
JSON
{
|
|
"HOST": "0.0.0.0",
|
|
"APIKEY": "shannon-router-key",
|
|
"LOG": true,
|
|
"LOG_LEVEL": "info",
|
|
"NON_INTERACTIVE_MODE": true,
|
|
"API_TIMEOUT_MS": 600000,
|
|
"Providers": [
|
|
{
|
|
"name": "openai",
|
|
"api_base_url": "https://api.openai.com/v1/chat/completions",
|
|
"api_key": "$OPENAI_API_KEY",
|
|
"models": ["gpt-5.2", "gpt-5-mini"],
|
|
"transformer": {
|
|
"use": [["maxcompletiontokens", { "max_completion_tokens": 16384 }]]
|
|
}
|
|
},
|
|
{
|
|
"name": "openrouter",
|
|
"api_base_url": "https://openrouter.ai/api/v1/chat/completions",
|
|
"api_key": "$OPENROUTER_API_KEY",
|
|
"models": ["google/gemini-3-flash-preview"],
|
|
"transformer": {
|
|
"use": ["openrouter"]
|
|
}
|
|
}
|
|
],
|
|
"Router": {
|
|
"default": "$ROUTER_DEFAULT"
|
|
}
|
|
}
|