8a9510603c
Phase 1 of Kilocode config migration: - Add ModesMigrator to read custom modes from: - VSCode extension global storage (platform-specific paths) - Project .kilocodemodes files - Home directory .kilocodemodes - Convert Kilocode mode groups to Opencode permissions: - read → read: allow - edit → edit: allow (with fileRegex support) - command/browser → bash: allow - mcp → mcp: allow - Missing groups are explicitly denied (not ask) - Skip default modes (code, architect, ask, debug, orchestrator) as they map to native Opencode agents - Add KilocodeConfigInjector for building OPENCODE_CONFIG_CONTENT - Integration in config.ts to auto-load Kilocode modes - 27 unit tests with 100% function coverage - Documentation in kilocode/docs/modes-migration.md