@cortexkit/anthropic-auth-core 1.12.0 → 1.12.1

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/models.d.ts CHANGED
@@ -22,4 +22,16 @@ export declare const CLAUDE_FABLE_MYTHOS_5_MODEL_SPECS: Record<ClaudeFableMythos
22
22
  limited?: boolean;
23
23
  }>;
24
24
  export declare function isClaudeFableOrMythos5Model(model: unknown): boolean;
25
+ export declare const CLAUDE_SONNET_5_MODEL_ID = "claude-sonnet-5";
26
+ /**
27
+ * Sonnet 5 enables adaptive thinking by default but ships `display: "omitted"`,
28
+ * so the `thinking` field returns empty and the user sees nothing. Injecting
29
+ * this makes the adaptive thinking summary visible. Reuses the Fable/Mythos
30
+ * shape because the API contract is identical.
31
+ */
32
+ export declare const CLAUDE_SONNET_5_ADAPTIVE_THINKING: {
33
+ readonly type: "adaptive";
34
+ readonly display: "summarized";
35
+ };
36
+ export declare function isClaudeSonnet5Model(model: unknown): boolean;
25
37
  export declare function isOpenAIReasoningSignature(value: unknown): boolean;
package/dist/models.js CHANGED
@@ -33,6 +33,19 @@ export function isClaudeFableOrMythos5Model(model) {
33
33
  return (typeof model === 'string' &&
34
34
  CLAUDE_FABLE_MYTHOS_5_MODEL_IDS.some((id) => model === id || model.startsWith(`${id}-`)));
35
35
  }
36
+ export const CLAUDE_SONNET_5_MODEL_ID = 'claude-sonnet-5';
37
+ /**
38
+ * Sonnet 5 enables adaptive thinking by default but ships `display: "omitted"`,
39
+ * so the `thinking` field returns empty and the user sees nothing. Injecting
40
+ * this makes the adaptive thinking summary visible. Reuses the Fable/Mythos
41
+ * shape because the API contract is identical.
42
+ */
43
+ export const CLAUDE_SONNET_5_ADAPTIVE_THINKING = CLAUDE_FABLE_MYTHOS_5_SUMMARIZED_THINKING;
44
+ export function isClaudeSonnet5Model(model) {
45
+ return (typeof model === 'string' &&
46
+ (model === CLAUDE_SONNET_5_MODEL_ID ||
47
+ model.startsWith(`${CLAUDE_SONNET_5_MODEL_ID}-`)));
48
+ }
36
49
  export function isOpenAIReasoningSignature(value) {
37
50
  if (typeof value !== 'string')
38
51
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/anthropic-auth-core",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",