@cortexkit/opencode-anthropic-auth 2.9.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.
@@ -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;