@opeoginni/opencode-copilot-auto 0.1.3 → 0.1.5

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +0 -23
  2. package/dist/index.js +139 -25595
  3. package/package.json +1 -4
package/dist/index.d.ts CHANGED
@@ -1,26 +1,3 @@
1
- import type { LanguageModelV3 } from "@ai-sdk/provider";
2
1
  import type { Plugin } from "@opencode-ai/plugin";
3
- type CopilotEndpoint = "chat" | "responses" | "messages";
4
- type CopilotSDK = {
5
- chat?: (modelID: string) => LanguageModelV3;
6
- responses?: (modelID: string) => LanguageModelV3;
7
- languageModel?: (modelID: string) => LanguageModelV3;
8
- };
9
2
  export declare const CopilotAutoPlugin: Plugin;
10
- export declare function createCopilotAutoProvider(options: {
11
- baseURL?: string;
12
- apiKey?: string;
13
- headers?: Record<string, string>;
14
- fetch?: typeof fetch;
15
- endpoints?: Record<string, CopilotEndpoint>;
16
- }): {
17
- languageModel(modelID: string): LanguageModelV3;
18
- };
19
- export declare function makeCopilotAutoModel(input: {
20
- sdk: CopilotSDK;
21
- baseURL: string;
22
- fetch?: typeof fetch;
23
- sessionID?: string;
24
- endpoints?: Record<string, CopilotEndpoint>;
25
- }): LanguageModelV3;
26
3
  export default CopilotAutoPlugin;