@cortexkit/opencode-anthropic-auth 2.11.0 → 2.11.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/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{t as a}from"./index-q2wk9wtw.js";import"./index-2ra790fx.js";import"./index-jc8zwxvw.js";import"./index-k6303ymz.js";import"./index-m7k9zxem.js";import"./index-crx0xd9j.js";import"./index-n8xr16kr.js";export{a as AnthropicAuthPlugin};
1
+ import{t as a}from"./index-7bgz11xf.js";import"./index-2ra790fx.js";import"./index-jc8zwxvw.js";import"./index-k6303ymz.js";import"./index-m7k9zxem.js";import"./index-crx0xd9j.js";import"./index-n8xr16kr.js";export{a as AnthropicAuthPlugin};
@@ -95,6 +95,14 @@ export declare function extractLatestHybridMessageCacheAnchor(bodyText: string):
95
95
  export declare function hybridUserMessageCacheAnchorFingerprints(bodyText: string): string[];
96
96
  /** Match a continuation's last cache marker to the full body kept for warming. */
97
97
  export declare function sourceCacheAnchorMatchesWire(templateBody: string, wireBody: string): boolean;
98
+ /**
99
+ * The marker a full request after a thread may give up for the previous full
100
+ * request's cache boundary: the system marker, or the lookback bridge's marker
101
+ * on the previous user or tool-result message. Returns nothing when the bridge
102
+ * is the Opus standby bridge, which must keep reaching the cache an Opus
103
+ * recovery turn will read.
104
+ */
105
+ export declare function hybridThreadCacheSlot(body: Record<string, unknown>, standbyAnchor?: HybridMessageCacheAnchor): Record<string, unknown> | undefined;
98
106
  /**
99
107
  * Rewrite the full request body: sanitize system prompt and prefix tool names.
100
108
  */
@@ -108,6 +116,7 @@ export declare function rewriteRequestBody(body: string, options?: {
108
116
  fastModeEnabled?: boolean;
109
117
  /** Leave the billing signature placeholder for the transport to finalize. */
110
118
  deferSigning?: boolean;
119
+ onThreadCacheSlot?: (slot: ((body: Record<string, unknown>) => Record<string, unknown> | undefined) | undefined) => void;
111
120
  identity?: ClaudeCodeIdentity;
112
121
  sessionId?: string;
113
122
  /** Raw model id supplied by the host, not the wire body model. */