@cortexkit/anthropic-auth-core 2.2.2 → 2.2.3
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/claude-code.d.ts +2 -1
- package/dist/constants.d.ts +5 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1038 -658
- package/dist/internal-types/claustrum/enrollment.d.ts +5 -0
- package/dist/internal-types/fs/private-files.d.ts +2 -0
- package/dist/internal-types/setup/enroll.d.ts +34 -0
- package/dist/internal-types/setup/index.d.ts +1 -0
- package/dist/internal-types/setup/process-fence.d.ts +7 -0
- package/dist/internal-types/setup/types.d.ts +5 -0
- package/dist/mid-conversation-output-config.d.ts +19 -15
- package/dist/model-capabilities.d.ts +136 -0
- package/dist/models.d.ts +28 -59
- package/dist/native-enrollment-authority.d.ts +19 -0
- package/dist/native-ui.d.ts +10 -1
- package/dist/turn-end-note.d.ts +4 -3
- package/package.json +2 -2
package/dist/claude-code.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CLAUDE_CODE_FULL_AGENT_BETAS } from './model-capabilities.ts';
|
|
1
2
|
export type ProviderAccountUuid = string & {
|
|
2
3
|
readonly __providerAccountUuid: unique symbol;
|
|
3
4
|
};
|
|
@@ -32,7 +33,7 @@ export declare class ClaudeUnsupportedAccessError extends Error {
|
|
|
32
33
|
export declare function resolveClaudeCodeAccountIdentity(accessToken: string, model: string | undefined, accountIdentity: string | undefined): Promise<ClaudeCodeIdentity>;
|
|
33
34
|
export declare function buildClaudeCodeMetadataUserId(identity: ClaudeCodeIdentity): string | null;
|
|
34
35
|
export declare function applyClaudeCodeMetadata(body: Record<string, unknown>, identity: ClaudeCodeIdentity): boolean;
|
|
35
|
-
export
|
|
36
|
+
export { CLAUDE_CODE_FULL_AGENT_BETAS };
|
|
36
37
|
export declare function selectClaudeCodeBetas(body?: Record<string, unknown> | null, extraBetas?: string[], requestClass?: ClaudeCodeRequestClass): string;
|
|
37
38
|
export type ClaudeCodeRequestClass = 'main' | 'auxiliary';
|
|
38
39
|
export declare function applyClaudeCodeHeaders(headers: Headers, accessToken: string, options?: {
|
package/dist/constants.d.ts
CHANGED
|
@@ -13,6 +13,11 @@ export declare const TOOL_PREFIX = "mcp_";
|
|
|
13
13
|
export declare const REQUIRED_BETAS: string[];
|
|
14
14
|
export declare const FAST_MODE_BETA = "fast-mode-2026-02-01";
|
|
15
15
|
export declare function mergeAnthropicBetas(existing: string | null | undefined, betas: string[]): string;
|
|
16
|
+
/**
|
|
17
|
+
* Fast mode is offered on capability rows with `fastMode`, and on any id that
|
|
18
|
+
* starts with `claude-opus-4-8` or `claude-opus-5`, a looser older rule kept
|
|
19
|
+
* so ids outside the table (Opus 4.8) keep fast mode.
|
|
20
|
+
*/
|
|
16
21
|
export declare function isFastModeSupportedModel(model: unknown): boolean;
|
|
17
22
|
export declare const OPENCODE_IDENTITY_PREFIX = "You are OpenCode";
|
|
18
23
|
export declare const CLAUDE_CODE_IDENTITY = "You are Claude Code, Anthropic's official CLI for Claude.";
|
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export * from './killswitch.ts';
|
|
|
19
19
|
export * from './logger.ts';
|
|
20
20
|
export * from './logging.ts';
|
|
21
21
|
export * from './mid-conversation-output-config.ts';
|
|
22
|
+
export type { ClaudeCodeBetaLists, ClaudeModelCapabilities, ClaudeModelCatalogue, ClaudeModelFamily, ClaudeModelPricing, ClaudeRefusalRecoveryFamily, } from './model-capabilities.ts';
|
|
23
|
+
export { CLAUDE_CODE_DEFAULT_BETAS, CLAUDE_MODEL_CAPABILITIES, getClaudeModelCapabilities, getClaudeModelCatalogue, pinsEffortOnEveryRequest, resolveClaudeModelCapabilities, } from './model-capabilities.ts';
|
|
22
24
|
export * from './model-remap.ts';
|
|
23
25
|
export * from './models.ts';
|
|
24
26
|
export type { NativeAccountRuntime, NativeAccountRuntimeOptions, NativeAccountWriteInput, NativeApiSubject, NativeLocalAuthorizeOptions, NativeRelayUpdate, } from './native-account-runtime.ts';
|
|
@@ -30,7 +32,7 @@ export type { NativeCustody, NativeCustodyClient, NativeCustodyErrorCode, Native
|
|
|
30
32
|
export { createNativeCustody, NativeCustodyError } from './native-custody.ts';
|
|
31
33
|
export type { NativeCustodyActivationErrorCode, NativeCustodyActivationHooks, NativeCustodyActivationOptions, NativeCustodyActivationResult, } from './native-custody-activation.ts';
|
|
32
34
|
export { NativeCustodyActivationError, runNativeCustodyActivation, } from './native-custody-activation.ts';
|
|
33
|
-
export { readNativeEnrollmentMode } from './native-enrollment-authority.ts';
|
|
35
|
+
export { NativePrivateFilesUnavailableError, PRIVATE_FILES_UNAVAILABLE_MESSAGE, readNativeEnrollmentMode, } from './native-enrollment-authority.ts';
|
|
34
36
|
export { inspectNativeHostAuthEntry, NativeHostAuthError, requireNoSupervisedAuthContentSnapshot, } from './native-host-auth.ts';
|
|
35
37
|
export { readNativeHostAuthKind } from './native-host-auth-read.ts';
|
|
36
38
|
export type { NativeHostAuthWriteHooks, NativeHostAuthWriteInput, NativeHostAuthWriteOutcome, } from './native-host-auth-write.ts';
|
|
@@ -52,7 +54,7 @@ export { NativeRuntimeError } from './native-runtime.ts';
|
|
|
52
54
|
export { nativeRuntimeOptionIdentity } from './native-runtime-registry.ts';
|
|
53
55
|
export * from './native-settings.ts';
|
|
54
56
|
export { isNativeTransientAccountError, NativeTransientAccountError, } from './native-transient-account.ts';
|
|
55
|
-
export type { CommandApplyRequest, CommandApplyResult, CommandDialogPayload, CommandInvocation, CommandMenu, CommandMenuModel, KnobValue, KnobValues, MenuAction, MenuItem, MenuKnob, MenuSection, NativeUiOptions, NotifyKind, SectionSlot, } from './native-ui.ts';
|
|
57
|
+
export type { CommandApplyRequest, CommandApplyResult, CommandDialogPayload, CommandInvocation, CommandMenu, CommandMenuModel, KnobValue, KnobValues, MenuAction, MenuItem, MenuKnob, MenuSection, NativeCommandApplyResult, NativeUiOptions, NotifyKind, SectionSlot, } from './native-ui.ts';
|
|
56
58
|
export { createNativeUi, parseApplyRequest, runPiCommandMenu, } from './native-ui.ts';
|
|
57
59
|
export * from './native-usage-publication.ts';
|
|
58
60
|
export { NATIVE_VAULT_NO_ACCOUNT_MESSAGE, NativeVaultNoAccountError, readNativeAccountsForRequest, } from './native-vault-admission.ts';
|