{"_id":"@beautiful-ccg/adapter-copilot","_rev":"3-de6710718c18f0baa63e645bf6f661aa","name":"@beautiful-ccg/adapter-copilot","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@beautiful-ccg/adapter-copilot","version":"0.1.0","_id":"@beautiful-ccg/adapter-copilot@0.1.0","maintainers":[{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"}],"dist":{"shasum":"f36a4293d241fbfde6a496e893b3da37cde78b88","tarball":"https://registry.npmjs.org/@beautiful-ccg/adapter-copilot/-/adapter-copilot-0.1.0.tgz","fileCount":7,"integrity":"sha512-EgBd8FC5LkRA04UXh+jTX+RWFXq2vw0AlkismnS0oSLi42qaUoXB208467vxad29K3Unm4VJqpezy923ciOukQ==","signatures":[{"sig":"MEQCICs/R18Uunr2A9eVEw8h//tWviZAuD3mBq0TP7hXvJHPAiBXcavVVq2hSusPXsnoBONFpAKe8dK1Iu9irSKfOjPVpQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16106},"main":"./dist/index.cjs","type":"module","_from":"file:beautiful-ccg-adapter-copilot-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup"},"_npmUser":{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"},"_resolved":"/private/var/folders/n2/l33b5mwj3zq8bqgzq8m6pjx00000gn/T/fe99505b9228e48762796a208b27709f/beautiful-ccg-adapter-copilot-0.1.0.tgz","_integrity":"sha512-EgBd8FC5LkRA04UXh+jTX+RWFXq2vw0AlkismnS0oSLi42qaUoXB208467vxad29K3Unm4VJqpezy923ciOukQ==","_npmVersion":"11.9.0","description":"bccg adapter for [GitHub Copilot CLI](https://docs.github.com/en/copilot/github-copilot-in-the-cli). This is the project's core adapter — the only CLI with `--model` flag for intra-CLI model routing.","directories":{},"_nodeVersion":"24.14.0","dependencies":{"execa":"^9.5.0","@beautiful-ccg/adapter-base":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-copilot_0.1.0_1775528150386_0.8251041819305265","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@beautiful-ccg/adapter-copilot","version":"0.2.0","_id":"@beautiful-ccg/adapter-copilot@0.2.0","maintainers":[{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"}],"dist":{"shasum":"394eac6a350d8aa9f92283acd9811183da8e0431","tarball":"https://registry.npmjs.org/@beautiful-ccg/adapter-copilot/-/adapter-copilot-0.2.0.tgz","fileCount":7,"integrity":"sha512-zKxD5btKl2T/Nw8zpDSaKz9bPOlZW1ydAlEL42dGikz/+9h56k6nACgc3kjQulZcU4rFLMjNgHTaNyLiJ8gs+w==","signatures":[{"sig":"MEYCIQDyUtgqgpevpxwaxovP3pbMCozyee/f2o2p3F4AqFv8DwIhALzbDbZtToQvFwVMmfypoIA6riysek3fnyvJPcyw/1/i","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18886},"main":"./dist/index.cjs","type":"module","_from":"file:beautiful-ccg-adapter-copilot-0.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup"},"_npmUser":{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"},"_resolved":"/private/var/folders/n2/l33b5mwj3zq8bqgzq8m6pjx00000gn/T/1fe1c623b1c67d47a50e9221f835c98e/beautiful-ccg-adapter-copilot-0.2.0.tgz","_integrity":"sha512-zKxD5btKl2T/Nw8zpDSaKz9bPOlZW1ydAlEL42dGikz/+9h56k6nACgc3kjQulZcU4rFLMjNgHTaNyLiJ8gs+w==","_npmVersion":"11.9.0","description":"bccg adapter for [GitHub Copilot CLI](https://docs.github.com/en/copilot/github-copilot-in-the-cli). This is the project's core adapter — the only CLI with `--model` flag for intra-CLI model routing.","directories":{},"_nodeVersion":"24.14.0","dependencies":{"execa":"^9.5.0","@beautiful-ccg/adapter-base":"0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-copilot_0.2.0_1775535842832_0.5520628509999921","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@beautiful-ccg/adapter-copilot","version":"0.3.0","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"publishConfig":{"access":"public"},"dependencies":{"execa":"^9.5.0","@beautiful-ccg/adapter-base":"0.3.0"},"devDependencies":{"@types/node":"^22.0.0","tsup":"^8.4.0","typescript":"^5.8.0"},"scripts":{"build":"tsup","test":"vitest run"},"_id":"@beautiful-ccg/adapter-copilot@0.3.0","description":"bccg adapter for [GitHub Copilot CLI](https://docs.github.com/en/copilot/github-copilot-in-the-cli). This is the project's core adapter — the only CLI with `--model` flag for intra-CLI model routing.","_integrity":"sha512-Y6/j8NjT12g6Ox6Lj1yhjFZJ6dQUXGb5oXitKQMTBLfda1y0Z2DqLX5zUkXXHYH9DAA5LOZyyM8bjaof7P79jQ==","_resolved":"/private/var/folders/n2/l33b5mwj3zq8bqgzq8m6pjx00000gn/T/0d8e3c45528543302e0a065b7c8415a6/beautiful-ccg-adapter-copilot-0.3.0.tgz","_from":"file:beautiful-ccg-adapter-copilot-0.3.0.tgz","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-Y6/j8NjT12g6Ox6Lj1yhjFZJ6dQUXGb5oXitKQMTBLfda1y0Z2DqLX5zUkXXHYH9DAA5LOZyyM8bjaof7P79jQ==","shasum":"64450f23596112aa64941d8b8e8c4baf1880b872","tarball":"https://registry.npmjs.org/@beautiful-ccg/adapter-copilot/-/adapter-copilot-0.3.0.tgz","fileCount":7,"unpackedSize":18886,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCyWnyFRm30BeQEBZRWxhlyYnCz5Wx2fTrJS6ugV3B/WQIgLWEmdWztSTu33OMPF0uovqa1fl6u9HVEZ+4XfHOKPPQ="}]},"_npmUser":{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"},"directories":{},"maintainers":[{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adapter-copilot_0.3.0_1775542753045_0.45540626822912356"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-07T02:15:50.109Z","modified":"2026-04-07T06:19:13.375Z","0.1.0":"2026-04-07T02:15:50.546Z","0.2.0":"2026-04-07T04:24:02.983Z","0.3.0":"2026-04-07T06:19:13.241Z"},"description":"bccg adapter for [GitHub Copilot CLI](https://docs.github.com/en/copilot/github-copilot-in-the-cli). This is the project's core adapter — the only CLI with `--model` flag for intra-CLI model routing.","maintainers":[{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"}],"readme":"# @beautiful-ccg/adapter-copilot\n\nbccg adapter for [GitHub Copilot CLI](https://docs.github.com/en/copilot/github-copilot-in-the-cli). This is the project's core adapter — the only CLI with `--model` flag for intra-CLI model routing.\n\n## Usage\n\n```typescript\nimport { CopilotAdapter } from \"@beautiful-ccg/adapter-copilot\";\n\nconst adapter = new CopilotAdapter();\n\n// Run with default model\nconst result = await adapter.run(\"explain this code\");\n\n// Run with a specific model\nconst result2 = await adapter.run(\"analyze complexity\", { model: \"opus\" });\n\n// List available models\nconst models = await adapter.getSupportedModels();\n```\n\n## Properties\n\n| Property | Value |\n|---|---|\n| `name` | `\"copilot\"` |\n| `costTier` | `\"medium\"` |\n| `multiModel` | `true` |\n\n## CLI Command\n\n```bash\ncopilot -p <prompt> -s --output-format json --allow-all-tools [--model <model>]\n```\n\nOutput is JSONL. The parser handles `session.tools_updated` (model detection), `assistant.message` (content + reasoning), `assistant.message_delta` (streaming fallback), and `result` (exit code + usage).\n\n## Multi-Model Support\n\nThe Copilot CLI supports multiple backend models via `--model`. Short aliases are available:\n\n| Alias | Full Model Name |\n|---|---|\n| `opus` | `claude-opus-4.6` |\n| `sonnet` | `claude-sonnet-4.5` |\n| `codex` | `gpt-5.3-codex` |\n| `gemini` | `gemini-3-pro` |\n| `haiku` | `claude-haiku-4.5` |\n\n```typescript\nimport { resolveModel, COPILOT_MODELS, MODEL_ALIASES } from \"@beautiful-ccg/adapter-copilot\";\n\nresolveModel(\"opus\");   // \"claude-opus-4.6\"\nresolveModel(\"sonnet\"); // \"claude-sonnet-4.5\"\n```\n\n## Exports\n\n- `CopilotAdapter` — `ModelAdapter` implementation\n- `parseCopilotOutput(stdout: string): CopilotParsed` — standalone parser\n- `CopilotParsed` — `{ content, model, exitCode, premiumRequests?, reasoningText? }`\n- `COPILOT_MODELS` — supported model names (const array)\n- `MODEL_ALIASES` — short alias → full model name mapping\n- `resolveModel(input: string): string` — resolve aliases\n- `CopilotModel` — union type of supported models\n","readmeFilename":"README.md"}