@cortexkit/anthropic-auth-core 2.1.1 → 2.2.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.
@@ -226,6 +226,14 @@ export type AccountStorage = {
226
226
  thinkingBinding?: {
227
227
  prefixMismatchBehavior?: 'account-default' | 'error' | 'drop_block';
228
228
  };
229
+ /**
230
+ * Tool names (as the host names them) whose calls after a long reply get a
231
+ * system note telling the model not to repeat that reply. Unset means the
232
+ * `board` and `ctx_reduce` tools; an empty list turns the note off.
233
+ */
234
+ turnEndNote?: {
235
+ tools: string[];
236
+ };
229
237
  /**
230
238
  * Zero out Anthropic OAuth model costs in the provider hook. Default: enabled
231
239
  * (OAuth usage is quota-based, not per-token billed, so costs show as $0).
@@ -32,7 +32,7 @@ export declare class ClaudeUnsupportedAccessError extends Error {
32
32
  export declare function resolveClaudeCodeAccountIdentity(accessToken: string, model: string | undefined, accountIdentity: string | undefined): Promise<ClaudeCodeIdentity>;
33
33
  export declare function buildClaudeCodeMetadataUserId(identity: ClaudeCodeIdentity): string | null;
34
34
  export declare function applyClaudeCodeMetadata(body: Record<string, unknown>, identity: ClaudeCodeIdentity): boolean;
35
- export declare const CLAUDE_CODE_FULL_AGENT_BETAS: readonly ['claude-code-20250219', 'oauth-2025-04-20', 'interleaved-thinking-2025-05-14', 'thinking-token-count-2026-05-13', 'context-management-2025-06-27', 'prompt-caching-scope-2026-01-05', 'mid-conversation-tool-changes-2026-07-01', 'advanced-tool-use-2025-11-20', 'mid-conversation-system-clear-at-2026-08-21', 'effort-2025-11-24', 'thinking-binding-controls-2026-08-01', 'thinking-display-updates-2026-08-18', 'extended-cache-ttl-2025-04-11', 'cache-diagnosis-2026-04-07'];
35
+ export declare const CLAUDE_CODE_FULL_AGENT_BETAS: readonly ['claude-code-20250219', 'oauth-2025-04-20', 'interleaved-thinking-2025-05-14', 'thinking-token-count-2026-05-13', 'context-management-2025-06-27', 'prompt-caching-scope-2026-01-05', 'mid-conversation-tool-changes-2026-07-01', 'advanced-tool-use-2025-11-20', "mid-conversation-system-clear-at-2026-08-21", 'effort-2025-11-24', 'thinking-binding-controls-2026-08-01', 'thinking-display-updates-2026-08-18', 'extended-cache-ttl-2025-04-11', 'cache-diagnosis-2026-04-07'];
36
36
  export declare function selectClaudeCodeBetas(body?: Record<string, unknown> | null, extraBetas?: string[], requestClass?: ClaudeCodeRequestClass): string;
37
37
  export type ClaudeCodeRequestClass = 'main' | 'auxiliary';
38
38
  export declare function applyClaudeCodeHeaders(headers: Headers, accessToken: string, options?: {
package/dist/index.d.ts CHANGED
@@ -38,6 +38,7 @@ export { writeNativeHostAuth } from './native-host-auth-write.ts';
38
38
  export type { NativeLocalAttributedFailure, NativeLocalCredentialService, NativeLocalCredentialServiceOptions, NativeLocalFailurePolicyInput, } from './native-local-credential-service.ts';
39
39
  export { createNativeLocalCredentialService } from './native-local-credential-service.ts';
40
40
  export type { NativeLocalExternalPolicy } from './native-local-runtime-readers.ts';
41
+ export type { NativeLockEvent } from './native-lock-observer.ts';
41
42
  export type { NativeMenuActionValues, NativeMenuCapabilityOutcome, NativeMenuDispatch, NativeMenuDispatchActionId, NativeMenuDispatchOptions, NativeMenuDispatchRequest, NativeMenuDispatchValues, NativeMenuExecutionContext, NativeMenuExecutionResult, NativeMenuExecutor, NativeMenuExecutorOptions, NativeMenuExecutorRefusalCode, NativeMenuKillswitchEntry, NativeMenuNoValues, NativeMenuRequest, NativeMenuSessionActionId, } from './native-menu-executor.ts';
42
43
  export { createNativeMenuExecutor } from './native-menu-executor.ts';
43
44
  export type { NativeMenuAction, NativeMenuActionId, NativeMenuCacheMode, NativeMenuChoiceParameter, NativeMenuCommandId, NativeMenuCustodyMode, NativeMenuGroup, NativeMenuGroupId, NativeMenuHost, NativeMenuLogLevel, NativeMenuModel, NativeMenuParameter, NativeMenuParameterId, NativeMenuRefusalCode, NativeMenuRoutingMode, NativeMenuStatus, } from './native-menu-model.ts';
@@ -47,6 +48,7 @@ export { NativeMigrationError, nativePoolHoldsAccountData, prepareNativeMigratio
47
48
  export * from './native-quota-observations.ts';
48
49
  export type { NativeCommittedMaterial, NativeIdentityBootstrap, NativeRefreshContext, NativeRefreshDispatchVersion, NativeRefreshFailure, NativeRefreshHandoff, NativeRefreshObservation, NativeRefreshRequest, NativeRefreshRestriction, NativeRefreshResult, NativeRefreshSubject, NativeServingAdmission, } from './native-refresh-coordinator.ts';
49
50
  export type { NativeLocalFailureAttribution, NativeLocalFailurePolicy, NativeLocalFailureSkipReason, } from './native-runtime.ts';
51
+ export { NativeRuntimeError } from './native-runtime.ts';
50
52
  export { nativeRuntimeOptionIdentity } from './native-runtime-registry.ts';
51
53
  export * from './native-settings.ts';
52
54
  export { isNativeTransientAccountError, NativeTransientAccountError, } from './native-transient-account.ts';
@@ -84,3 +86,4 @@ export { createSseFramer, DEFAULT_SSE_MAX_FRAME_BYTES, decodeSseFrame, isSseCand
84
86
  export * from './start.ts';
85
87
  export * from './sticky-routing.ts';
86
88
  export * from './thinking-binding.ts';
89
+ export * from './turn-end-note.ts';