@cortexkit/anthropic-auth-core 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/dump.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { ProviderErrorSummary } from './provider-error.ts';
2
+ import { type IncompleteStreamDiagnostics } from './stream-completion.ts';
2
3
  type DumpHeaders = ConstructorParameters<typeof Headers>[0];
3
4
  export declare const CLAUDE_DUMP_COMMAND_NAME = "claude-dump";
4
5
  export type DumpCommandAction = {
@@ -81,7 +82,7 @@ export type ReplyTextEdge = {
81
82
  export declare function createDumpResponseObserver(handle: DumpHandle | null, status: number): {
82
83
  observe(event: Record<string, unknown>): void;
83
84
  replyTextEdges: () => ReplyTextEdge[] | undefined;
84
- fail(): void;
85
+ fail(diagnostics?: IncompleteStreamDiagnostics): void;
85
86
  finish(): Promise<void>;
86
87
  };
87
88
  export declare function dumpResponseArtifact(handle: DumpHandle | null, input: {
@@ -90,5 +91,6 @@ export declare function dumpResponseArtifact(handle: DumpHandle | null, input: {
90
91
  complete?: boolean;
91
92
  provider_error?: ProviderErrorSummary['provider_error'];
92
93
  reply_text_edges?: readonly ReplyTextEdge[];
94
+ incomplete_stream?: IncompleteStreamDiagnostics;
93
95
  }): Promise<void>;
94
96
  export {};
package/dist/index.d.ts CHANGED
@@ -110,5 +110,7 @@ export * from './state-layout-errors.ts';
110
110
  export * from './state-layout-paths.ts';
111
111
  export * from './state-layout-restore.ts';
112
112
  export * from './sticky-routing.ts';
113
+ export type { IncompleteStreamDiagnostics } from './stream-completion.ts';
114
+ export { copyStreamResponseTiming, createAnthropicStreamCompletion, guardAnthropicStreamResponse, } from './stream-completion.ts';
113
115
  export * from './thinking-binding.ts';
114
116
  export * from './turn-end-note.ts';