opencodekit 0.21.7 → 0.21.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
20
20
 
21
21
  //#endregion
22
22
  //#region package.json
23
- var version = "0.21.7";
23
+ var version = "0.21.8";
24
24
 
25
25
  //#endregion
26
26
  //#region src/utils/license.ts
Binary file
@@ -600,9 +600,12 @@ export const CopilotAuthPlugin: Plugin = async ({ client: sdk, directory }) => {
600
600
  continue;
601
601
  }
602
602
 
603
- // Route OpenAI-compatible Copilot models through the local file-based
604
- // SDK so GPT/Gemini keep the reasoning_opaque and Responses fixes.
605
- model.api.npm = localCopilotSdk;
603
+ // Route OpenAI-compatible Copilot models through the bundled
604
+ // @ai-sdk/github-copilot SDK. This SDK is shipped with OpenCode and
605
+ // supports both /chat/completions (gpt-4*, older) and /v1/responses
606
+ // (gpt-5.x reasoning models), so projects without local @ai-sdk/*
607
+ // dependencies can initialize the provider without ProviderInitError.
608
+ model.api.npm = "@ai-sdk/github-copilot";
606
609
  }
607
610
  }
608
611
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencodekit",
3
- "version": "0.21.7",
3
+ "version": "0.21.8",
4
4
  "description": "CLI tool for bootstrapping and managing OpenCodeKit projects",
5
5
  "keywords": [
6
6
  "agents",