summaryrefslogtreecommitdiffhomepage
path: root/dispatch.toml
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-05-20 15:43:07 +0900
committerAdam Malczewski <[email protected]>2026-05-20 15:43:07 +0900
commit971a8f775d5e89e484e56a575e8ae2706fe2b53f (patch)
treed11f6cbbf230d73e53dee0db09e535dea9717599 /dispatch.toml
parentadc8bd185b54935e7a31aae04da3175b7989927a (diff)
downloaddispatch-971a8f775d5e89e484e56a575e8ae2706fe2b53f.tar.gz
dispatch-971a8f775d5e89e484e56a575e8ae2706fe2b53f.zip
fix: sidebar layout, copilot auth script, config setup
- Sidebar uses absolute inset-0 with overflow-y-auto for proper scrolling - Border moved to inner div so it hides with sidebar - Copilot auth script uses portable sed instead of grep -P (macOS compat) - dispatch.toml with 3 keys, 4 models, fallback order - .env.dispatch with key placeholders and script reference - docker-compose loads .env.dispatch via env_file
Diffstat (limited to 'dispatch.toml')
-rw-r--r--dispatch.toml86
1 files changed, 86 insertions, 0 deletions
diff --git a/dispatch.toml b/dispatch.toml
new file mode 100644
index 0000000..1559578
--- /dev/null
+++ b/dispatch.toml
@@ -0,0 +1,86 @@
+# Dispatch — Model & Key Configuration
+# Keys reference env var names in .env.dispatch
+
+# ─── Fallback Order (highest priority first) ────────────────────
+# Exhaust opencode-1 first, then opencode-2, then copilot.
+# When all keys are exhausted the agent enters wait-for-refresh.
+# Must be declared BEFORE any [[keys]] / [[models]] blocks.
+
+fallback = ["opencode-1", "opencode-2", "copilot"]
+
+# ─── API Keys ───────────────────────────────────────────────────
+
+[[keys]]
+id = "opencode-1"
+provider = "opencode-go"
+env = "OPENCODE_KEY_1"
+base_url = "https://opencode.ai/zen/go/v1"
+
+[[keys]]
+id = "opencode-2"
+provider = "opencode-go"
+env = "OPENCODE_KEY_2"
+base_url = "https://opencode.ai/zen/go/v1"
+
+[[keys]]
+id = "copilot"
+provider = "github-copilot"
+env = "COPILOT_TOKEN"
+base_url = "https://api.githubcopilot.com"
+
+# ─── Models ─────────────────────────────────────────────────────
+
+[[models]]
+id = "deepseek-v4-pro"
+provider = "opencode-go"
+tags = ["heavy", "coding"]
+
+[[models]]
+id = "deepseek-v4-flash"
+provider = "opencode-go"
+tags = ["light", "quick"]
+
+[[models]]
+id = "gpt-4o"
+provider = "github-copilot"
+tags = ["heavy", "coding"]
+
+[[models]]
+id = "claude-3.5-sonnet"
+provider = "github-copilot"
+tags = ["heavy", "coding", "review"]
+
+# ─── Agent Templates ─────────────────────────────────────────────
+
+[agents.default]
+name = "Dispatch"
+description = "Default coding assistant"
+system_prompt = "You are a helpful AI coding assistant."
+tools = ["read_file", "write_file", "list_files", "run_shell", "task_list"]
+model_tag = "heavy"
+
+# ─── Permissions ─────────────────────────────────────────────────
+
+[permissions]
+read = "allow"
+
+[permissions.edit]
+"*" = "ask"
+"src/**" = "allow"
+
+[permissions.bash]
+"npm test" = "allow"
+"npm run *" = "allow"
+"git status" = "allow"
+"git diff" = "allow"
+"git log *" = "allow"
+"git branch *" = "allow"
+"git add *" = "allow"
+"git commit *" = "allow"
+"git push *" = "allow"
+"ls *" = "allow"
+"*" = "ask"
+
+[permissions.external_directory]
+"~/*" = "ask"
+"/tmp/*" = "allow"