{"_id":"@coopah/bentley-provider-copilot","_rev":"4-57c1955a885c9bfcce01da41a5c48a0f","name":"@coopah/bentley-provider-copilot","dist-tags":{"latest":"0.3.0"},"versions":{"0.2.0":{"name":"@coopah/bentley-provider-copilot","version":"0.2.0","keywords":["ai","agent","llm","bentley"],"license":"MIT","_id":"@coopah/bentley-provider-copilot@0.2.0","maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"homepage":"https://github.com/CoopahG/bentley#readme","bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"dist":{"shasum":"b0143e4e2745fcc9225418f7f15f33eed9696f1d","tarball":"https://registry.npmjs.org/@coopah/bentley-provider-copilot/-/bentley-provider-copilot-0.2.0.tgz","fileCount":14,"integrity":"sha512-Ni2dB8zlwZZoPvy9wLPKkSPw7LafjpLkDq4Omjdjyc8eK7qbOA+l8RZ/zEUmAkwEib+i6Ayt/Gn5TG7bNDWoCg==","signatures":[{"sig":"MEYCIQDmoPxnMUMxYhDwn7a2DAVASTeUfW1GD1ZP9fmXpKjP/gIhALOsS3bnefX+bUyRqbr6WaJ3UEdYl4jgCKjThsOXXUbi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18446},"main":"dist/index.js","type":"module","_from":"file:coopah-bentley-provider-copilot-0.2.0.tgz","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"coopah","email":"tibo6c04@gmail.com"},"_resolved":"/private/var/folders/k4/9fdyr38j4gv59whg5k3w4fgm0000gn/T/d9f44542754e895c8e486fd7aa2d15a5/coopah-bentley-provider-copilot-0.2.0.tgz","_integrity":"sha512-Ni2dB8zlwZZoPvy9wLPKkSPw7LafjpLkDq4Omjdjyc8eK7qbOA+l8RZ/zEUmAkwEib+i6Ayt/Gn5TG7bNDWoCg==","repository":{"url":"git+https://github.com/CoopahG/bentley.git","type":"git","directory":"packages/providers/copilot"},"_npmVersion":"10.9.4","description":"GitHub Copilot LLM provider for Bentley","directories":{},"_nodeVersion":"22.22.0","dependencies":{"ai":"^6.0.116","@ai-sdk/openai":"^3.0.41","@coopah/bentley-core":"0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.3.5"},"_npmOperationalInternal":{"tmp":"tmp/bentley-provider-copilot_0.2.0_1773093157593_0.48987202103468985","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@coopah/bentley-provider-copilot","version":"0.2.1","keywords":["ai","agent","llm","bentley"],"license":"MIT","_id":"@coopah/bentley-provider-copilot@0.2.1","maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"homepage":"https://github.com/CoopahG/bentley#readme","bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"dist":{"shasum":"404cd404018b7261b934894822c036eba339324b","tarball":"https://registry.npmjs.org/@coopah/bentley-provider-copilot/-/bentley-provider-copilot-0.2.1.tgz","fileCount":15,"integrity":"sha512-1PZSfse/aPncfuvKy182lIDJDvPo24AKZEQdAGKCEeRjOvdv2llQgbR0mZgirroEEMz2FiYrp6PVMWMf0bnk7w==","signatures":[{"sig":"MEUCICKyQ57w03ZXETMbsbwVZ+EFNeq03UKNSt4d8DWopzcVAiEA2bKpVUoIoHZQnLyd9N2ouH88FfQkXUAb7NSimzOeYZk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19110},"main":"dist/index.js","type":"module","_from":"file:coopah-bentley-provider-copilot-0.2.1.tgz","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"coopah","email":"tibo6c04@gmail.com"},"_resolved":"/private/var/folders/k4/9fdyr38j4gv59whg5k3w4fgm0000gn/T/1a8f5c5ae1418b0660da9382213723d2/coopah-bentley-provider-copilot-0.2.1.tgz","_integrity":"sha512-1PZSfse/aPncfuvKy182lIDJDvPo24AKZEQdAGKCEeRjOvdv2llQgbR0mZgirroEEMz2FiYrp6PVMWMf0bnk7w==","repository":{"url":"git+https://github.com/CoopahG/bentley.git","type":"git","directory":"packages/providers/copilot"},"_npmVersion":"10.9.4","description":"GitHub Copilot LLM provider for Bentley","directories":{},"_nodeVersion":"22.22.0","dependencies":{"ai":"^6.0.116","@ai-sdk/openai":"^3.0.41","@coopah/bentley-core":"0.2.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.3.5"},"_npmOperationalInternal":{"tmp":"tmp/bentley-provider-copilot_0.2.1_1773093589895_0.10593143246238079","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@coopah/bentley-provider-copilot","version":"0.2.2","keywords":["ai","agent","llm","bentley"],"license":"MIT","_id":"@coopah/bentley-provider-copilot@0.2.2","maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"homepage":"https://github.com/CoopahG/bentley#readme","bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"dist":{"shasum":"b850a3050dae08520076d75637e5a945904a08c2","tarball":"https://registry.npmjs.org/@coopah/bentley-provider-copilot/-/bentley-provider-copilot-0.2.2.tgz","fileCount":15,"integrity":"sha512-ReJfEq37sxXWqN2FO8xljSrrSLurjY7S+Oz7bjNeziru3VO5rzCDQ32Hn/oBei9hp6EWI6gQk2mwRc8KhRBSQg==","signatures":[{"sig":"MEQCIFUkVtq35PpuwBMJylZ2zH0/6jTZjgohNpDuZ0JRz3D2AiBWkNL9zbwL3RYcMVDjT9rjKVJKpCHGIAGXi+60r7qK+A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20232},"main":"dist/index.js","type":"module","_from":"file:coopah-bentley-provider-copilot-0.2.2.tgz","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"eslint src","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"coopah","email":"tibo6c04@gmail.com"},"_resolved":"/private/var/folders/k4/9fdyr38j4gv59whg5k3w4fgm0000gn/T/cfb869e84457b62216f0f214313903c6/coopah-bentley-provider-copilot-0.2.2.tgz","_integrity":"sha512-ReJfEq37sxXWqN2FO8xljSrrSLurjY7S+Oz7bjNeziru3VO5rzCDQ32Hn/oBei9hp6EWI6gQk2mwRc8KhRBSQg==","repository":{"url":"git+https://github.com/CoopahG/bentley.git","type":"git","directory":"packages/providers/copilot"},"_npmVersion":"10.9.4","description":"GitHub Copilot LLM provider for Bentley","directories":{},"_nodeVersion":"22.22.0","dependencies":{"ai":"^6.0.116","@ai-sdk/openai":"^3.0.41","@coopah/bentley-core":"0.2.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.3.5"},"_npmOperationalInternal":{"tmp":"tmp/bentley-provider-copilot_0.2.2_1773093913956_0.7596118197499873","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@coopah/bentley-provider-copilot","version":"0.3.0","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"@ai-sdk/openai":"^3.0.41","ai":"^6.0.116","@coopah/bentley-core":"0.3.0"},"devDependencies":{"@types/node":"^25.4.0","typescript":"^5.9.3"},"description":"GitHub Copilot LLM provider for Bentley","license":"MIT","repository":{"type":"git","url":"git+https://github.com/CoopahG/bentley.git","directory":"packages/providers/copilot"},"engines":{"node":">=20.0.0"},"keywords":["ai","agent","llm","bentley"],"scripts":{"build":"tsc","dev":"tsc --watch","lint":"eslint src","typecheck":"tsc --noEmit","clean":"rm -rf dist"},"_id":"@coopah/bentley-provider-copilot@0.3.0","bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"homepage":"https://github.com/CoopahG/bentley#readme","_integrity":"sha512-DvO33E9JK441T4ecg0bdc3yR9fANwUtoH+avXx09sIpVi6zKJT9iizeXowMRv4X5TJ/FhUZiGzzCHoUr1LUYUg==","_resolved":"/private/var/folders/k4/9fdyr38j4gv59whg5k3w4fgm0000gn/T/103378c8564ef53631abf950f20edb29/coopah-bentley-provider-copilot-0.3.0.tgz","_from":"file:coopah-bentley-provider-copilot-0.3.0.tgz","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-DvO33E9JK441T4ecg0bdc3yR9fANwUtoH+avXx09sIpVi6zKJT9iizeXowMRv4X5TJ/FhUZiGzzCHoUr1LUYUg==","shasum":"a8121fe76b146bd3a4c74b0c894a679d81bd64f0","tarball":"https://registry.npmjs.org/@coopah/bentley-provider-copilot/-/bentley-provider-copilot-0.3.0.tgz","fileCount":15,"unpackedSize":20232,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD19+fyC5khLNbyjso+yUxHiB0NlKAy2XwWFV3mrijjzAIhAMAe0QvEpociJsIN5HPStMAccAI0hps/ITRbykJDf/9n"}]},"_npmUser":{"name":"coopah","email":"tibo6c04@gmail.com"},"directories":{},"maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bentley-provider-copilot_0.3.0_1773178075645_0.23341650275438064"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-09T21:52:37.531Z","modified":"2026-03-10T21:27:55.906Z","0.2.0":"2026-03-09T21:52:37.726Z","0.2.1":"2026-03-09T21:59:50.025Z","0.2.2":"2026-03-09T22:05:14.132Z","0.3.0":"2026-03-10T21:27:55.774Z"},"bugs":{"url":"https://github.com/CoopahG/bentley/issues"},"license":"MIT","homepage":"https://github.com/CoopahG/bentley#readme","keywords":["ai","agent","llm","bentley"],"repository":{"type":"git","url":"git+https://github.com/CoopahG/bentley.git","directory":"packages/providers/copilot"},"description":"GitHub Copilot LLM provider for Bentley","maintainers":[{"name":"coopah","email":"tibo6c04@gmail.com"}],"readme":"# @coopah/bentley-provider-copilot\n\nGitHub Copilot LLM provider for [Bentley](https://github.com/CoopahG/bentley). Uses the Copilot API (OpenAI-compatible) with automatic token refresh and Copilot-specific request headers.\n\n## Install\n\n```bash\npnpm add @coopah/bentley-provider-copilot\n```\n\n### Dependencies\n\n- [`@coopah/bentley-core`](https://www.npmjs.com/package/@coopah/bentley-core)\n- `@ai-sdk/openai` ^3.0.41 (Copilot exposes an OpenAI-compatible API)\n- `ai` ^6.0.116\n\n## Usage\n\n```ts\nimport { createBentley } from \"@coopah/bentley-core\";\nimport { bentleyCopilotPlugin } from \"@coopah/bentley-provider-copilot\";\n\nconst bentley = createBentley({\n  plugins: [bentleyCopilotPlugin()],\n});\n```\n\nAuthentication is handled automatically via `CopilotAuth`, which manages GitHub Copilot session tokens and refresh cycles. Requests include Copilot-specific headers (`Editor-Version`, `Editor-Plugin-Version`, `Copilot-Integration-Id`).\n\n## API\n\n- **`bentleyCopilotPlugin()`** — `BentleyPlugin` that registers GitHub Copilot as an LLM provider\n- **`createBentleyCopilotProvider()`** — Low-level factory with dynamic token refresh (Proxy-based lazy resolution)\n- **`CopilotAuth`** — Session token management class\n\n## Related Packages\n\n| Package | Role |\n|---------|------|\n| [`@coopah/bentley-core`](https://www.npmjs.com/package/@coopah/bentley-core) | Core runtime (required) |\n| [`@coopah/bentley-provider-openai`](https://www.npmjs.com/package/@coopah/bentley-provider-openai) | OpenAI provider |\n| [`@coopah/bentley-provider-anthropic`](https://www.npmjs.com/package/@coopah/bentley-provider-anthropic) | Anthropic provider |\n| [`@coopah/bentley-provider-ollama`](https://www.npmjs.com/package/@coopah/bentley-provider-ollama) | Ollama provider (local models) |\n\n## License\n\nMIT\n","readmeFilename":"README.md"}