Forked from OpenCode v1.17.4 with multi-agent system: - 5 agents: aircoding, scheduler, worker, architect, reviewer - Deterministic DAG scheduling engine (coordinator_tick) - Tool whitelists as hard enforcement - AirCoding validation plugin - System prompt injection for routing - V1 requirements: C4 docs, ADR, AGENTS.md, debug-log.md - Design documents in docs/
27 lines
572 B
TypeScript
27 lines
572 B
TypeScript
const keybinds: Record<string, string> = {
|
|
"file.attach": "mod+u",
|
|
"prompt.mode.shell": "mod+shift+x",
|
|
"prompt.mode.normal": "mod+shift+e",
|
|
"permissions.autoaccept": "mod+shift+a",
|
|
"agent.cycle": "mod+.",
|
|
"model.choose": "mod+m",
|
|
"model.variant.cycle": "mod+shift+m",
|
|
}
|
|
|
|
export function formatKeybind(config: string) {
|
|
return config === "none" ? "" : config
|
|
}
|
|
|
|
export function useCommand() {
|
|
return {
|
|
options: [],
|
|
register() {
|
|
return () => undefined
|
|
},
|
|
trigger() {},
|
|
keybind(id: string) {
|
|
return keybinds[id]
|
|
},
|
|
}
|
|
}
|