@anthonyhaussman/opencode-agy-auth 1.3.5-alpha.1 → 1.3.5
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.
|
@@ -24,12 +24,5 @@ export declare function cacheSignature(sessionId: string, text: string, signatur
|
|
|
24
24
|
* Recovers and retrieves the most recently cached signature for a session (supports signature recovery).
|
|
25
25
|
*/
|
|
26
26
|
export declare function getLatestSignature(sessionId: string): string | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Retrieves a cached signature for a specific text in a session.
|
|
29
|
-
* Checks memory cache first, then falls back to disk cache.
|
|
30
|
-
*/
|
|
31
|
-
export declare function getSignatureForText(sessionId: string, text: string): string | undefined;
|
|
32
|
-
export declare function getDiskSignatureCache(): SignatureCache | null;
|
|
33
|
-
export declare function resetDiskSignatureCacheForTesting(): void;
|
|
34
27
|
export type { SignatureCache } from "../sdk/cache/signature-cache";
|
|
35
28
|
export type { SignatureCacheConfig } from "../sdk/cache/signature-cache";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export interface V2SessionHooksState {
|
|
2
2
|
lastInterceptedModel?: string;
|
|
3
|
-
lastSessionId?: string;
|
|
4
3
|
}
|
|
5
4
|
export declare function createV2HttpRequestHook(state?: V2SessionHooksState): (event: any) => Promise<void>;
|
|
6
5
|
export declare function createV2HttpResponseHook(state?: V2SessionHooksState): (event: any) => Promise<void>;
|
package/dist/src/plugin/v2.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { AGY_V2_QUOTA_SUMMARY_COMMAND, AGY_V2_QUOTA_SUMMARY_COMMAND_TEMPLATE } f
|
|
|
3
3
|
import { type OpenCodeV2PluginContext, type OpenCodeV2PluginDefinition } from './types';
|
|
4
4
|
export { getSafeHeader, setSafeHeaders, toUrlString } from './headers';
|
|
5
5
|
export { resolveModelTier } from './tier';
|
|
6
|
-
export { getDiskSignatureCache, resetDiskSignatureCacheForTesting } from './cache';
|
|
7
6
|
export { loadStoredAuthFromJson, saveStoredAuthToJson, setStoredAuthOverrideForTesting, } from './v2-storage';
|
|
8
7
|
export { createV2FetchInterceptor } from './v2-fetch';
|
|
9
8
|
export { AGY_V2_QUOTA_COMMAND, AGY_V2_QUOTA_SUMMARY_COMMAND, AGY_V2_QUOTA_COMMAND_TEMPLATE, AGY_V2_QUOTA_SUMMARY_COMMAND_TEMPLATE, };
|
|
@@ -13,5 +13,5 @@ export declare function prepareAgyRequest(input: RequestInfo, init: RequestInit
|
|
|
13
13
|
sessionId?: string;
|
|
14
14
|
};
|
|
15
15
|
export declare function isClaudeModel(model: string): boolean;
|
|
16
|
-
export declare function sanitizeClaudeThinkingParts(contents: any[], model: string
|
|
16
|
+
export declare function sanitizeClaudeThinkingParts(contents: any[], model: string): void;
|
|
17
17
|
export declare function ensureTrailingUserTurn(contents: any[]): any[];
|