@cortexkit/opencode-anthropic-auth 2.10.0 → 2.11.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,4 +1,4 @@
1
- import { type NativeAccountRefusalReason, type NativeAccountRuntime, type NativeAccountSnapshot, type NativeAccountView, type NativeApiSubject, type NativeLocalCredentialValidation as NativeKnownCredentialSubject, type NativePoolPaths, type OAuthQuotaSnapshot } from '@cortexkit/anthropic-auth-core';
1
+ import { type AnthropicBillingWarming, type NativeAccountRefusalReason, type NativeAccountRuntime, type NativeAccountSnapshot, type NativeAccountView, type NativeApiSubject, type NativeLocalCredentialValidation as NativeKnownCredentialSubject, type NativePoolPaths, type OAuthQuotaSnapshot } from '@cortexkit/anthropic-auth-core';
2
2
  import type { RequestScope } from '@cortexkit/common-auth/opencode2';
3
3
  import { type NativeAnthropicAttemptContext, type NativeAnthropicAuthorization, type NativeAnthropicBodyOptions, type NativeAnthropicRequestContext, type NativeAnthropicResponseContext, type NativeAnthropicResponseOptions, type NativeAnthropicSource } from './adapter';
4
4
  /**
@@ -47,6 +47,14 @@ export interface NativeSourceOptions {
47
47
  ttlMs?: number;
48
48
  acceptedUsage?: Record<string, number>;
49
49
  }) => void;
50
+ /**
51
+ * Keep-warm state for a model request's billing report, read from memory
52
+ * once its response finishes; `undefined` leaves the state out.
53
+ */
54
+ readonly billingWarming?: (input: {
55
+ sessionID: string;
56
+ route: string;
57
+ }) => AnthropicBillingWarming | undefined;
50
58
  readonly fetch?: typeof fetch;
51
59
  /** Resolve a host model alias to the upstream ID before request-local policy. */
52
60
  readonly resolveModelId?: (scope: RequestScope) => Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/opencode-anthropic-auth",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -77,19 +77,19 @@
77
77
  },
78
78
  "dependencies": {
79
79
  "@clack/prompts": "^1.6.0",
80
- "@cortexkit/anthropic-auth-core": "2.10.0",
80
+ "@cortexkit/anthropic-auth-core": "2.11.0",
81
81
  "@cortexkit/claustrum-client": "0.18.0",
82
82
  "@cortexkit/private-files": "0.2.2",
83
83
  "@cortexkit/subc-client": "^0.24",
84
- "@opentui/core": "0.8.1",
85
- "@opentui/solid": "0.8.1",
84
+ "@opentui/core": "0.8.3",
85
+ "@opentui/solid": "0.8.3",
86
86
  "jsonc-parser": "^3.3.1",
87
87
  "solid-js": "1.9.18",
88
88
  "xxhash-wasm": "^1.1.0"
89
89
  },
90
90
  "devDependencies": {
91
- "@ai-sdk/anthropic": "4.0.94",
91
+ "@ai-sdk/anthropic": "4.0.99",
92
92
  "@cortexkit/opencode-sidebar": "0.1.0",
93
- "@opencode/plugin": "2.2.5"
93
+ "@opencode/plugin": "2.2.6"
94
94
  }
95
95
  }