From 7055df5d8eaf080e0bc715c94c62822e28ef7b27 Mon Sep 17 00:00:00 2001 From: Brayan Jules Date: Tue, 17 Feb 2026 01:44:44 -0300 Subject: [PATCH] fix: Route copilot install to .github/ instead of opencode default Add copilot case to resolveTargetOutputRoot so `install --to copilot` writes to .github/ in the current directory instead of falling through to the opencode default (~/.config/opencode). Co-Authored-By: Claude Opus 4.6 --- src/commands/install.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/install.ts b/src/commands/install.ts index 35506e8..c2412bb 100644 --- a/src/commands/install.ts +++ b/src/commands/install.ts @@ -25,7 +25,7 @@ export default defineCommand({ to: { type: "string", default: "opencode", - description: "Target format (opencode | codex | droid | cursor | pi | gemini)", + description: "Target format (opencode | codex | droid | cursor | pi | copilot | gemini)", }, output: { type: "string", @@ -187,6 +187,10 @@ function resolveTargetOutputRoot( const base = hasExplicitOutput ? outputRoot : process.cwd() return path.join(base, ".gemini") } + if (targetName === "copilot") { + const base = hasExplicitOutput ? outputRoot : process.cwd() + return path.join(base, ".github") + } return outputRoot }