@cortexkit/opencode-openai-auth 0.1.0 → 0.1.2
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/README.md +1 -0
- package/dist/config.d.ts +4 -0
- package/dist/index.js +32 -32
- package/dist/response-stream-error.d.ts +12 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { APICallError } from 'ai';
|
|
2
|
+
/**
|
|
3
|
+
* Retryable stream-level provider failure.
|
|
4
|
+
*
|
|
5
|
+
* OpenCode's retry loop recognizes AI SDK APICallError instances and converts
|
|
6
|
+
* retryable ones into SessionRetry attempts. A plain plugin-local Error with
|
|
7
|
+
* the same name as OpenCode's internal ProviderResponseStreamError does not
|
|
8
|
+
* pass that instanceof/marker check across package boundaries, so websocket
|
|
9
|
+
* transport failures must surface as APICallError.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ResponseStreamError extends APICallError {
|
|
2
12
|
readonly name = "ProviderResponseStreamError";
|
|
13
|
+
constructor(message: string, options?: ErrorOptions);
|
|
3
14
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PackageVersion = "0.1.
|
|
1
|
+
export declare const PackageVersion = "0.1.2";
|