@cortexkit/opencode-anthropic-auth 2.8.0 → 2.9.1
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/cli.js +46 -46
- package/dist/index-h492wy6c.js +45 -0
- package/dist/index.js +1 -1
- package/dist/setup/native-enrollment.d.ts +4 -0
- package/dist/transform.d.ts +4 -1
- package/dist/v2/adapter.d.ts +2 -2
- package/dist/v2/server.js +9 -9
- package/package.json +3 -2
- package/src/rpc/rpc-server.ts +34 -3
- package/src/tui/quota-sidebar.js +296 -258
- package/src/tui-compiled/quota-sidebar.js +296 -258
- package/dist/index-m901y2pg.js +0 -45
package/dist/transform.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BillingLineageFields, type Cache1hMode, type ClaudeCodeIdentity, type ClaudeCodeRequestClass, type ThinkingPrefixMismatchBehavior } from '@cortexkit/anthropic-auth-core';
|
|
1
|
+
import { type BillingLineageFields, type Cache1hMode, type ClaudeCodeIdentity, type ClaudeCodeRequestClass, type IncompleteStreamDiagnostics, type ThinkingPrefixMismatchBehavior } from '@cortexkit/anthropic-auth-core';
|
|
2
2
|
import { type OpenCodeEffortMarkerPlan } from './effort-history';
|
|
3
3
|
import { type ServerSideFallbackOutcome } from './server-fallback';
|
|
4
4
|
export declare const NON_STREAMING_DIAGNOSTICS_MAX_BYTES: number;
|
|
@@ -159,6 +159,9 @@ export declare function createStrippedStream(response: Response, options?: {
|
|
|
159
159
|
onRelayUpstreamError?: (status: RelayUpstreamStatus) => void;
|
|
160
160
|
onStreamEnd?: () => void | Promise<void>;
|
|
161
161
|
responseMode?: 'json';
|
|
162
|
+
/** Whole Anthropic responses must terminate with message_stop; fragment rewriting need not. */
|
|
163
|
+
requireMessageStop?: boolean;
|
|
164
|
+
onIncompleteStream?: (diagnostics: IncompleteStreamDiagnostics) => void | Promise<void>;
|
|
162
165
|
laneStart?: boolean;
|
|
163
166
|
laneStartOAuthServed?: boolean;
|
|
164
167
|
}): Response;
|
package/dist/v2/adapter.d.ts
CHANGED
|
@@ -244,8 +244,8 @@ export interface NativeAnthropicAdapterDeps<Q, P> {
|
|
|
244
244
|
*/
|
|
245
245
|
readonly attemptEndTimeoutMs?: number;
|
|
246
246
|
/**
|
|
247
|
-
* Remembers a rejected gzipped body. Defaults to the latch
|
|
248
|
-
* OpenCode
|
|
247
|
+
* Remembers a rejected gzipped body. Defaults to the latch in the state
|
|
248
|
+
* layout OpenCode chose at host startup.
|
|
249
249
|
*/
|
|
250
250
|
readonly requestGzipLatch?: RequestGzipLatch;
|
|
251
251
|
readonly fetch?: typeof fetch;
|