@cortexkit/opencode-anthropic-auth 2.15.2 → 2.16.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,5 +1,5 @@
1
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
- import type { RequestScope } from '@cortexkit/common-auth/opencode2';
2
+ import { type ChooseAccountResult, type RequestScope, type RetryHold } 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
  /**
5
5
  * Identifies the account and credential version that served a send, so a
@@ -19,6 +19,7 @@ export type NativeSourceProvenance = {
19
19
  };
20
20
  type Authorization = NativeAnthropicAuthorization<NativeSourceProvenance>;
21
21
  type OnAccountRefusal = (reason: NativeAccountRefusalReason) => void;
22
+ export declare function isTerminalPoolHold(choice: ChooseAccountResult): choice is RetryHold;
22
23
  export type NativeCacheRequestPrepared = Parameters<NonNullable<NativeSource['onRequestPrepared']>>[0] & {
23
24
  readonly admission?: {
24
25
  readonly snapshot: NativeAccountSnapshot;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/opencode-anthropic-auth",
3
- "version": "2.15.2",
3
+ "version": "2.16.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -77,7 +77,7 @@
77
77
  },
78
78
  "dependencies": {
79
79
  "@clack/prompts": "^1.6.0",
80
- "@cortexkit/anthropic-auth-core": "2.15.2",
80
+ "@cortexkit/anthropic-auth-core": "2.16.0",
81
81
  "@cortexkit/claustrum-client": "0.18.0",
82
82
  "@cortexkit/private-files": "0.2.2",
83
83
  "@cortexkit/subc-client": "^0.24",