@cortexkit/opencode-anthropic-auth 2.7.3 → 2.9.0

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 +1 @@
1
- import{$ as r,K as a,L as b,M as c,N as d,O as e,P as f,Q as g,R as h,S as i,T as j,U as k,V as l,W as m,X as n,Y as o,Z as p,_ as q,aa as s,ba as t,ca as u,da as v,ea as w,fa as x,ga as y,ha as z,ia as A}from"./index-d4e8qj37.js";import"./index-n8xr16kr.js";export{i as setSidebarState,r as scopedQuotaShortNames,k as resolveActiveAccount,s as quotaLabelColumnWidth,c as normalizeSidebarState,a as getSidebarStateFile,h as getSidebarState,f as getInitialSidebarRoutingTestHooks,p as getFableRecoverySummary,w as getCollapsedQuotaSummary,x as getCollapsedAccounts,q as formatQuotaRowLabel,m as formatPrimeTime,n as formatPrimeCost,o as formatPrimeAccountValue,l as formatFallbackModelLabel,u as fitQuotaRow,v as fitPaceLine,j as drainSidebarWrites,A as computeQuotaPacing,d as __setSidebarStateWriteTestHooks,e as __setInitialSidebarRoutingTestHooks,g as __acquireSidebarStateLockForTest,z as SEVEN_DAY_MS,t as QUOTA_BAR_MIN_CELLS,y as FIVE_HOUR_MS,b as DEFAULT_SIDEBAR_STATE};
1
+ import{$ as r,K as a,L as b,M as c,N as d,O as e,P as f,Q as g,R as h,S as i,T as j,U as k,V as l,W as m,X as n,Y as o,Z as p,_ as q,aa as s,ba as t,ca as u,da as v,ea as w,fa as x,ga as y,ha as z,ia as A}from"./index-pxnn7mg1.js";import"./index-n8xr16kr.js";export{i as setSidebarState,r as scopedQuotaShortNames,k as resolveActiveAccount,s as quotaLabelColumnWidth,c as normalizeSidebarState,a as getSidebarStateFile,h as getSidebarState,f as getInitialSidebarRoutingTestHooks,p as getFableRecoverySummary,w as getCollapsedQuotaSummary,x as getCollapsedAccounts,q as formatQuotaRowLabel,m as formatPrimeTime,n as formatPrimeCost,o as formatPrimeAccountValue,l as formatFallbackModelLabel,u as fitQuotaRow,v as fitPaceLine,j as drainSidebarWrites,A as computeQuotaPacing,d as __setSidebarStateWriteTestHooks,e as __setInitialSidebarRoutingTestHooks,g as __acquireSidebarStateLockForTest,z as SEVEN_DAY_MS,t as QUOTA_BAR_MIN_CELLS,y as FIVE_HOUR_MS,b as DEFAULT_SIDEBAR_STATE};
@@ -37,7 +37,9 @@ export declare function setOAuthHeaders(headers: Headers, accessToken: string, o
37
37
  * Add TOOL_PREFIX to tool names in the request body.
38
38
  * Prefixes both tool definitions and tool_use blocks in messages.
39
39
  */
40
- export declare function prefixToolNames(parsed: Record<string, unknown>): string;
40
+ export declare function prefixToolNames(parsed: Record<string, unknown>, options?: {
41
+ isOAuth?: boolean;
42
+ }): string;
41
43
  /**
42
44
  * Use the map supplied to onToolNameMap by rewriteRequestBody for this response's request.
43
45
  * Unmatched or ambiguous names stay unchanged for the host to handle.
@@ -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 next to the
248
- * OpenCode account storage file.
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;
@@ -1,6 +1,7 @@
1
1
  import type { Plugin } from '@opencode/plugin';
2
- /** Each model variant supplies request settings for adaptive thinking and its selected reasoning effort. */
2
+ /** Supply missing catalogue rows and adaptive-thinking effort variants. */
3
3
  export declare function createNativeClaudeModelRules(): {
4
4
  install: (ctx: Pick<Plugin.Context, 'model'>) => Promise<import("@opencode/plugin/promise/registration").Registration>;
5
+ installProviderModels: (ctx: Pick<Plugin.Context, 'provider'>) => Promise<import("@opencode/plugin/promise/registration").Registration>;
5
6
  modelId: (id: string) => string;
6
7
  };