@fifthrevision/axle 0.30.2 → 0.32.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.
package/dist/models.d.ts CHANGED
@@ -1,12 +1,13 @@
1
1
  //#region src/models.d.ts
2
- interface ModelMetadata {
2
+ export interface ModelMetadata {
3
3
  contextWindow?: number;
4
4
  maxOutputTokens?: number;
5
5
  multimodal: boolean;
6
6
  }
7
- declare const Models: {
7
+ export declare const Models: {
8
8
  readonly Anthropic: {
9
9
  readonly CLAUDE_FABLE_5: "anthropic/claude-fable-5";
10
+ readonly CLAUDE_FABLE_5_1: "anthropic/claude-fable-5-1";
10
11
  readonly CLAUDE_HAIKU_4_5: "anthropic/claude-haiku-4-5";
11
12
  readonly CLAUDE_HAIKU_4_5_20251001: "anthropic/claude-haiku-4-5-20251001";
12
13
  readonly CLAUDE_OPUS_4_5: "anthropic/claude-opus-4-5";
@@ -22,6 +23,7 @@ declare const Models: {
22
23
  };
23
24
  readonly DeepSeek: {
24
25
  readonly DEEPSEEK_V4_FLASH: "deepseek/deepseek-v4-flash";
26
+ readonly DEEPSEEK_V4_FLASH_VISION_EXP: "deepseek/deepseek-v4-flash-vision-exp";
25
27
  readonly DEEPSEEK_V4_PRO: "deepseek/deepseek-v4-pro";
26
28
  };
27
29
  readonly Google: {
@@ -29,7 +31,8 @@ declare const Models: {
29
31
  readonly GEMINI_2_5_FLASH_LITE: "google/gemini-2.5-flash-lite";
30
32
  readonly GEMINI_2_5_PRO: "google/gemini-2.5-pro";
31
33
  readonly GEMINI_3_FLASH_PREVIEW: "google/gemini-3-flash-preview";
32
- readonly GEMINI_3_1_FLASH_LITE: "google/gemini-3.1-flash-lite"; /** @deprecated Deprecated by its publisher. */
34
+ readonly GEMINI_3_1_FLASH_LITE: "google/gemini-3.1-flash-lite";
35
+ /** @deprecated Deprecated by its publisher. */
33
36
  readonly GEMINI_3_1_FLASH_LITE_PREVIEW: "google/gemini-3.1-flash-lite-preview";
34
37
  readonly GEMINI_3_1_PRO_PREVIEW: "google/gemini-3.1-pro-preview";
35
38
  readonly GEMINI_3_1_PRO_PREVIEW_CUSTOMTOOLS: "google/gemini-3.1-pro-preview-customtools";
@@ -37,6 +40,7 @@ declare const Models: {
37
40
  readonly GEMINI_3_5_FLASH_LITE: "google/gemini-3.5-flash-lite";
38
41
  readonly GEMINI_3_6_FLASH: "google/gemini-3.6-flash";
39
42
  readonly GEMINI_3_7_FLASH: "google/gemini-3.7-flash";
43
+ readonly GEMINI_3_8_FLASH: "google/gemini-3.8-flash";
40
44
  readonly GEMINI_FLASH_LATEST: "google/gemini-flash-latest";
41
45
  readonly GEMINI_FLASH_LITE_LATEST: "google/gemini-flash-lite-latest";
42
46
  readonly GEMMA_4_26B_A4B_IT: "google/gemma-4-26b-a4b-it";
@@ -64,7 +68,8 @@ declare const Models: {
64
68
  };
65
69
  readonly OpenAI: {
66
70
  readonly GPT_4_1: "openai/gpt-4.1";
67
- readonly GPT_4_1_MINI: "openai/gpt-4.1-mini"; /** @deprecated Deprecated by its publisher. */
71
+ readonly GPT_4_1_MINI: "openai/gpt-4.1-mini";
72
+ /** @deprecated Deprecated by its publisher. */
68
73
  readonly GPT_4_1_NANO: "openai/gpt-4.1-nano";
69
74
  readonly GPT_4O_2024_08_06: "openai/gpt-4o-2024-08-06";
70
75
  readonly GPT_4O_2024_11_20: "openai/gpt-4o-2024-11-20";
@@ -75,8 +80,10 @@ declare const Models: {
75
80
  readonly GPT_5_PRO: "openai/gpt-5-pro";
76
81
  readonly GPT_5_1: "openai/gpt-5.1";
77
82
  readonly GPT_5_2: "openai/gpt-5.2";
83
+ /** @deprecated Deprecated by its publisher. */
78
84
  readonly GPT_5_2_CHAT_LATEST: "openai/gpt-5.2-chat-latest";
79
85
  readonly GPT_5_2_PRO: "openai/gpt-5.2-pro";
86
+ /** @deprecated Deprecated by its publisher. */
80
87
  readonly GPT_5_3_CHAT_LATEST: "openai/gpt-5.3-chat-latest";
81
88
  readonly GPT_5_3_CODEX: "openai/gpt-5.3-codex";
82
89
  readonly GPT_5_3_CODEX_SPARK: "openai/gpt-5.3-codex-spark";
@@ -89,12 +96,16 @@ declare const Models: {
89
96
  readonly GPT_5_6: "openai/gpt-5.6";
90
97
  readonly GPT_5_6_LUNA: "openai/gpt-5.6-luna";
91
98
  readonly GPT_5_6_SOL: "openai/gpt-5.6-sol";
92
- readonly GPT_5_6_TERRA: "openai/gpt-5.6-terra"; /** @deprecated Deprecated by its publisher. */
93
- readonly O1: "openai/o1"; /** @deprecated Deprecated by its publisher. */
99
+ readonly GPT_5_6_TERRA: "openai/gpt-5.6-terra";
100
+ /** @deprecated Deprecated by its publisher. */
101
+ readonly O1: "openai/o1";
102
+ /** @deprecated Deprecated by its publisher. */
94
103
  readonly O1_PRO: "openai/o1-pro";
95
- readonly O3: "openai/o3"; /** @deprecated Deprecated by its publisher. */
104
+ readonly O3: "openai/o3";
105
+ /** @deprecated Deprecated by its publisher. */
96
106
  readonly O3_MINI: "openai/o3-mini";
97
- readonly O3_PRO: "openai/o3-pro"; /** @deprecated Deprecated by its publisher. */
107
+ readonly O3_PRO: "openai/o3-pro";
108
+ /** @deprecated Deprecated by its publisher. */
98
109
  readonly O4_MINI: "openai/o4-mini";
99
110
  };
100
111
  readonly Qwen: {
@@ -115,13 +126,16 @@ declare const Models: {
115
126
  readonly QWEN3_7_MAX: "qwen/qwen3.7-max";
116
127
  readonly QWEN3_7_PLUS: "qwen/qwen3.7-plus";
117
128
  readonly QWEN3_8_2_4T_A95B: "qwen/qwen3.8-2.4t-a95b";
129
+ readonly QWEN3_8_27B: "qwen/qwen3.8-27b";
130
+ readonly QWEN3_8_FLASH: "qwen/qwen3.8-flash";
118
131
  readonly QWEN3_8_MAX: "qwen/qwen3.8-max";
119
132
  };
120
133
  readonly ZAI: {
121
134
  readonly GLM_5_1: "zai/glm-5.1";
122
135
  readonly GLM_5_2: "zai/glm-5.2";
136
+ readonly GLM_5_3: "zai/glm-5.3";
137
+ readonly GLM_5_3_FLASH: "zai/glm-5.3-flash";
123
138
  };
124
139
  };
125
- declare const ModelInfo: Readonly<Record<string, ModelMetadata>>;
126
- //#endregion
127
- export { ModelInfo, ModelMetadata, Models };
140
+ export declare const ModelInfo: Readonly<Record<string, ModelMetadata>>;
141
+ //#endregion
package/dist/models.js CHANGED
@@ -1 +1 @@
1
- const e={Anthropic:{CLAUDE_FABLE_5:`anthropic/claude-fable-5`,CLAUDE_HAIKU_4_5:`anthropic/claude-haiku-4-5`,CLAUDE_HAIKU_4_5_20251001:`anthropic/claude-haiku-4-5-20251001`,CLAUDE_OPUS_4_5:`anthropic/claude-opus-4-5`,CLAUDE_OPUS_4_5_20251101:`anthropic/claude-opus-4-5-20251101`,CLAUDE_OPUS_4_6:`anthropic/claude-opus-4-6`,CLAUDE_OPUS_4_7:`anthropic/claude-opus-4-7`,CLAUDE_OPUS_4_8:`anthropic/claude-opus-4-8`,CLAUDE_OPUS_5:`anthropic/claude-opus-5`,CLAUDE_SONNET_4_5:`anthropic/claude-sonnet-4-5`,CLAUDE_SONNET_4_5_20250929:`anthropic/claude-sonnet-4-5-20250929`,CLAUDE_SONNET_4_6:`anthropic/claude-sonnet-4-6`,CLAUDE_SONNET_5:`anthropic/claude-sonnet-5`},DeepSeek:{DEEPSEEK_V4_FLASH:`deepseek/deepseek-v4-flash`,DEEPSEEK_V4_PRO:`deepseek/deepseek-v4-pro`},Google:{GEMINI_2_5_FLASH:`google/gemini-2.5-flash`,GEMINI_2_5_FLASH_LITE:`google/gemini-2.5-flash-lite`,GEMINI_2_5_PRO:`google/gemini-2.5-pro`,GEMINI_3_FLASH_PREVIEW:`google/gemini-3-flash-preview`,GEMINI_3_1_FLASH_LITE:`google/gemini-3.1-flash-lite`,GEMINI_3_1_FLASH_LITE_PREVIEW:`google/gemini-3.1-flash-lite-preview`,GEMINI_3_1_PRO_PREVIEW:`google/gemini-3.1-pro-preview`,GEMINI_3_1_PRO_PREVIEW_CUSTOMTOOLS:`google/gemini-3.1-pro-preview-customtools`,GEMINI_3_5_FLASH:`google/gemini-3.5-flash`,GEMINI_3_5_FLASH_LITE:`google/gemini-3.5-flash-lite`,GEMINI_3_6_FLASH:`google/gemini-3.6-flash`,GEMINI_3_7_FLASH:`google/gemini-3.7-flash`,GEMINI_FLASH_LATEST:`google/gemini-flash-latest`,GEMINI_FLASH_LITE_LATEST:`google/gemini-flash-lite-latest`,GEMMA_4_26B_A4B_IT:`google/gemma-4-26b-a4b-it`,GEMMA_4_31B_IT:`google/gemma-4-31b-it`},MiniMax:{MINIMAX_M2_7:`minimax/MiniMax-M2.7`,MINIMAX_M2_7_HIGHSPEED:`minimax/MiniMax-M2.7-highspeed`,MINIMAX_M3:`minimax/MiniMax-M3`},Mistral:{MAGISTRAL_MEDIUM_LATEST:`mistral/magistral-medium-latest`,MAGISTRAL_SMALL:`mistral/magistral-small`,MINISTRAL_3B_LATEST:`mistral/ministral-3b-latest`,MINISTRAL_8B_LATEST:`mistral/ministral-8b-latest`,MISTRAL_LARGE_LATEST:`mistral/mistral-large-latest`,MISTRAL_MEDIUM_LATEST:`mistral/mistral-medium-latest`,MISTRAL_SMALL_LATEST:`mistral/mistral-small-latest`},Moonshot:{KIMI_K2_6:`moonshotai/kimi-k2.6`,KIMI_K2_7_CODE:`moonshotai/kimi-k2.7-code`,KIMI_K2_7_CODE_HIGHSPEED:`moonshotai/kimi-k2.7-code-highspeed`,KIMI_K3:`moonshotai/kimi-k3`},OpenAI:{GPT_4_1:`openai/gpt-4.1`,GPT_4_1_MINI:`openai/gpt-4.1-mini`,GPT_4_1_NANO:`openai/gpt-4.1-nano`,GPT_4O_2024_08_06:`openai/gpt-4o-2024-08-06`,GPT_4O_2024_11_20:`openai/gpt-4o-2024-11-20`,GPT_4O_MINI:`openai/gpt-4o-mini`,GPT_5:`openai/gpt-5`,GPT_5_MINI:`openai/gpt-5-mini`,GPT_5_NANO:`openai/gpt-5-nano`,GPT_5_PRO:`openai/gpt-5-pro`,GPT_5_1:`openai/gpt-5.1`,GPT_5_2:`openai/gpt-5.2`,GPT_5_2_CHAT_LATEST:`openai/gpt-5.2-chat-latest`,GPT_5_2_PRO:`openai/gpt-5.2-pro`,GPT_5_3_CHAT_LATEST:`openai/gpt-5.3-chat-latest`,GPT_5_3_CODEX:`openai/gpt-5.3-codex`,GPT_5_3_CODEX_SPARK:`openai/gpt-5.3-codex-spark`,GPT_5_4:`openai/gpt-5.4`,GPT_5_4_MINI:`openai/gpt-5.4-mini`,GPT_5_4_NANO:`openai/gpt-5.4-nano`,GPT_5_4_PRO:`openai/gpt-5.4-pro`,GPT_5_5:`openai/gpt-5.5`,GPT_5_5_PRO:`openai/gpt-5.5-pro`,GPT_5_6:`openai/gpt-5.6`,GPT_5_6_LUNA:`openai/gpt-5.6-luna`,GPT_5_6_SOL:`openai/gpt-5.6-sol`,GPT_5_6_TERRA:`openai/gpt-5.6-terra`,O1:`openai/o1`,O1_PRO:`openai/o1-pro`,O3:`openai/o3`,O3_MINI:`openai/o3-mini`,O3_PRO:`openai/o3-pro`,O4_MINI:`openai/o4-mini`},Qwen:{QWEN3_5_122B_A10B:`qwen/qwen3.5-122b-a10b`,QWEN3_5_27B:`qwen/qwen3.5-27b`,QWEN3_5_35B_A3B:`qwen/qwen3.5-35b-a3b`,QWEN3_5_397B_A17B:`qwen/qwen3.5-397b-a17b`,QWEN3_5_9B:`qwen/qwen3.5-9b`,QWEN3_5_FLASH_02_23:`qwen/qwen3.5-flash-02-23`,QWEN3_5_PLUS_02_15:`qwen/qwen3.5-plus-02-15`,QWEN3_5_PLUS_20260420:`qwen/qwen3.5-plus-20260420`,QWEN3_6_27B:`qwen/qwen3.6-27b`,QWEN3_6_35B_A3B:`qwen/qwen3.6-35b-a3b`,QWEN3_6_FLASH:`qwen/qwen3.6-flash`,QWEN3_6_MAX_PREVIEW:`qwen/qwen3.6-max-preview`,QWEN3_6_PLUS:`qwen/qwen3.6-plus`,QWEN3_7_FLASH:`qwen/qwen3.7-flash`,QWEN3_7_MAX:`qwen/qwen3.7-max`,QWEN3_7_PLUS:`qwen/qwen3.7-plus`,QWEN3_8_2_4T_A95B:`qwen/qwen3.8-2.4t-a95b`,QWEN3_8_MAX:`qwen/qwen3.8-max`},ZAI:{GLM_5_1:`zai/glm-5.1`,GLM_5_2:`zai/glm-5.2`}},t={[e.Anthropic.CLAUDE_FABLE_5]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.Anthropic.CLAUDE_HAIKU_4_5]:{contextWindow:2e5,maxOutputTokens:64e3,multimodal:!0},[e.Anthropic.CLAUDE_HAIKU_4_5_20251001]:{contextWindow:2e5,maxOutputTokens:64e3,multimodal:!0},[e.Anthropic.CLAUDE_OPUS_4_5]:{contextWindow:2e5,maxOutputTokens:64e3,multimodal:!0},[e.Anthropic.CLAUDE_OPUS_4_5_20251101]:{contextWindow:2e5,maxOutputTokens:64e3,multimodal:!0},[e.Anthropic.CLAUDE_OPUS_4_6]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.Anthropic.CLAUDE_OPUS_4_7]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.Anthropic.CLAUDE_OPUS_4_8]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.Anthropic.CLAUDE_OPUS_5]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.Anthropic.CLAUDE_SONNET_4_5]:{contextWindow:1e6,maxOutputTokens:64e3,multimodal:!0},[e.Anthropic.CLAUDE_SONNET_4_5_20250929]:{contextWindow:1e6,maxOutputTokens:64e3,multimodal:!0},[e.Anthropic.CLAUDE_SONNET_4_6]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.Anthropic.CLAUDE_SONNET_5]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.DeepSeek.DEEPSEEK_V4_FLASH]:{contextWindow:1e6,maxOutputTokens:384e3,multimodal:!1},[e.DeepSeek.DEEPSEEK_V4_PRO]:{contextWindow:1e6,maxOutputTokens:384e3,multimodal:!1},[e.Google.GEMINI_2_5_FLASH]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_2_5_FLASH_LITE]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_2_5_PRO]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_FLASH_PREVIEW]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_1_FLASH_LITE]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_1_FLASH_LITE_PREVIEW]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_1_PRO_PREVIEW]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_1_PRO_PREVIEW_CUSTOMTOOLS]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_5_FLASH]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_5_FLASH_LITE]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_6_FLASH]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_7_FLASH]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_FLASH_LATEST]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_FLASH_LITE_LATEST]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMMA_4_26B_A4B_IT]:{contextWindow:262144,maxOutputTokens:32768,multimodal:!0},[e.Google.GEMMA_4_31B_IT]:{contextWindow:262144,maxOutputTokens:32768,multimodal:!0},[e.MiniMax.MINIMAX_M2_7]:{contextWindow:204800,maxOutputTokens:131072,multimodal:!1},[e.MiniMax.MINIMAX_M2_7_HIGHSPEED]:{contextWindow:204800,maxOutputTokens:131072,multimodal:!1},[e.MiniMax.MINIMAX_M3]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.Mistral.MAGISTRAL_MEDIUM_LATEST]:{contextWindow:128e3,maxOutputTokens:16384,multimodal:!1},[e.Mistral.MAGISTRAL_SMALL]:{contextWindow:128e3,maxOutputTokens:128e3,multimodal:!1},[e.Mistral.MINISTRAL_3B_LATEST]:{contextWindow:128e3,maxOutputTokens:128e3,multimodal:!1},[e.Mistral.MINISTRAL_8B_LATEST]:{contextWindow:128e3,maxOutputTokens:128e3,multimodal:!1},[e.Mistral.MISTRAL_LARGE_LATEST]:{contextWindow:262144,maxOutputTokens:262144,multimodal:!0},[e.Mistral.MISTRAL_MEDIUM_LATEST]:{contextWindow:262144,maxOutputTokens:262144,multimodal:!0},[e.Mistral.MISTRAL_SMALL_LATEST]:{contextWindow:256e3,maxOutputTokens:256e3,multimodal:!0},[e.Moonshot.KIMI_K2_6]:{contextWindow:262144,maxOutputTokens:262144,multimodal:!0},[e.Moonshot.KIMI_K2_7_CODE]:{contextWindow:262144,maxOutputTokens:262144,multimodal:!0},[e.Moonshot.KIMI_K2_7_CODE_HIGHSPEED]:{contextWindow:262144,maxOutputTokens:262144,multimodal:!0},[e.Moonshot.KIMI_K3]:{contextWindow:1048576,maxOutputTokens:131072,multimodal:!0},[e.OpenAI.GPT_4_1]:{contextWindow:1047576,maxOutputTokens:32768,multimodal:!0},[e.OpenAI.GPT_4_1_MINI]:{contextWindow:1047576,maxOutputTokens:32768,multimodal:!0},[e.OpenAI.GPT_4_1_NANO]:{contextWindow:1047576,maxOutputTokens:32768,multimodal:!0},[e.OpenAI.GPT_4O_2024_08_06]:{contextWindow:128e3,maxOutputTokens:16384,multimodal:!0},[e.OpenAI.GPT_4O_2024_11_20]:{contextWindow:128e3,maxOutputTokens:16384,multimodal:!0},[e.OpenAI.GPT_4O_MINI]:{contextWindow:128e3,maxOutputTokens:16384,multimodal:!0},[e.OpenAI.GPT_5]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_MINI]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_NANO]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_PRO]:{contextWindow:4e5,maxOutputTokens:272e3,multimodal:!0},[e.OpenAI.GPT_5_1]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_2]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_2_CHAT_LATEST]:{contextWindow:128e3,maxOutputTokens:16384,multimodal:!0},[e.OpenAI.GPT_5_2_PRO]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_3_CHAT_LATEST]:{contextWindow:128e3,maxOutputTokens:16384,multimodal:!0},[e.OpenAI.GPT_5_3_CODEX]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_3_CODEX_SPARK]:{contextWindow:128e3,maxOutputTokens:32e3,multimodal:!0},[e.OpenAI.GPT_5_4]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_4_MINI]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_4_NANO]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_4_PRO]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_5]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_5_PRO]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_6]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_6_LUNA]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_6_SOL]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_6_TERRA]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.O1]:{contextWindow:2e5,maxOutputTokens:1e5,multimodal:!0},[e.OpenAI.O1_PRO]:{contextWindow:2e5,maxOutputTokens:1e5,multimodal:!0},[e.OpenAI.O3]:{contextWindow:2e5,maxOutputTokens:1e5,multimodal:!0},[e.OpenAI.O3_MINI]:{contextWindow:2e5,maxOutputTokens:1e5,multimodal:!1},[e.OpenAI.O3_PRO]:{contextWindow:2e5,maxOutputTokens:1e5,multimodal:!0},[e.OpenAI.O4_MINI]:{contextWindow:2e5,maxOutputTokens:1e5,multimodal:!0},[e.Qwen.QWEN3_5_122B_A10B]:{contextWindow:262144,maxOutputTokens:81920,multimodal:!0},[e.Qwen.QWEN3_5_27B]:{contextWindow:262144,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_5_35B_A3B]:{contextWindow:262144,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_5_397B_A17B]:{contextWindow:262144,maxOutputTokens:262144,multimodal:!0},[e.Qwen.QWEN3_5_9B]:{contextWindow:262144,maxOutputTokens:262144,multimodal:!0},[e.Qwen.QWEN3_5_FLASH_02_23]:{contextWindow:1e6,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_5_PLUS_02_15]:{contextWindow:1e6,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_5_PLUS_20260420]:{contextWindow:1e6,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_6_27B]:{contextWindow:262144,maxOutputTokens:262144,multimodal:!0},[e.Qwen.QWEN3_6_35B_A3B]:{contextWindow:262144,maxOutputTokens:262144,multimodal:!0},[e.Qwen.QWEN3_6_FLASH]:{contextWindow:1e6,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_6_MAX_PREVIEW]:{contextWindow:262144,maxOutputTokens:65536,multimodal:!1},[e.Qwen.QWEN3_6_PLUS]:{contextWindow:1e6,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_7_FLASH]:{contextWindow:1e6,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_7_MAX]:{contextWindow:1e6,maxOutputTokens:131072,multimodal:!1},[e.Qwen.QWEN3_7_PLUS]:{contextWindow:1e6,maxOutputTokens:131072,multimodal:!0},[e.Qwen.QWEN3_8_2_4T_A95B]:{contextWindow:1048576,maxOutputTokens:262144,multimodal:!1},[e.Qwen.QWEN3_8_MAX]:{contextWindow:1e6,maxOutputTokens:131072,multimodal:!0},[e.ZAI.GLM_5_1]:{contextWindow:2e5,maxOutputTokens:131072,multimodal:!1},[e.ZAI.GLM_5_2]:{contextWindow:1e6,maxOutputTokens:131072,multimodal:!1}};export{t as ModelInfo,e as Models};
1
+ const e={Anthropic:{CLAUDE_FABLE_5:`anthropic/claude-fable-5`,CLAUDE_FABLE_5_1:`anthropic/claude-fable-5-1`,CLAUDE_HAIKU_4_5:`anthropic/claude-haiku-4-5`,CLAUDE_HAIKU_4_5_20251001:`anthropic/claude-haiku-4-5-20251001`,CLAUDE_OPUS_4_5:`anthropic/claude-opus-4-5`,CLAUDE_OPUS_4_5_20251101:`anthropic/claude-opus-4-5-20251101`,CLAUDE_OPUS_4_6:`anthropic/claude-opus-4-6`,CLAUDE_OPUS_4_7:`anthropic/claude-opus-4-7`,CLAUDE_OPUS_4_8:`anthropic/claude-opus-4-8`,CLAUDE_OPUS_5:`anthropic/claude-opus-5`,CLAUDE_SONNET_4_5:`anthropic/claude-sonnet-4-5`,CLAUDE_SONNET_4_5_20250929:`anthropic/claude-sonnet-4-5-20250929`,CLAUDE_SONNET_4_6:`anthropic/claude-sonnet-4-6`,CLAUDE_SONNET_5:`anthropic/claude-sonnet-5`},DeepSeek:{DEEPSEEK_V4_FLASH:`deepseek/deepseek-v4-flash`,DEEPSEEK_V4_FLASH_VISION_EXP:`deepseek/deepseek-v4-flash-vision-exp`,DEEPSEEK_V4_PRO:`deepseek/deepseek-v4-pro`},Google:{GEMINI_2_5_FLASH:`google/gemini-2.5-flash`,GEMINI_2_5_FLASH_LITE:`google/gemini-2.5-flash-lite`,GEMINI_2_5_PRO:`google/gemini-2.5-pro`,GEMINI_3_FLASH_PREVIEW:`google/gemini-3-flash-preview`,GEMINI_3_1_FLASH_LITE:`google/gemini-3.1-flash-lite`,GEMINI_3_1_FLASH_LITE_PREVIEW:`google/gemini-3.1-flash-lite-preview`,GEMINI_3_1_PRO_PREVIEW:`google/gemini-3.1-pro-preview`,GEMINI_3_1_PRO_PREVIEW_CUSTOMTOOLS:`google/gemini-3.1-pro-preview-customtools`,GEMINI_3_5_FLASH:`google/gemini-3.5-flash`,GEMINI_3_5_FLASH_LITE:`google/gemini-3.5-flash-lite`,GEMINI_3_6_FLASH:`google/gemini-3.6-flash`,GEMINI_3_7_FLASH:`google/gemini-3.7-flash`,GEMINI_3_8_FLASH:`google/gemini-3.8-flash`,GEMINI_FLASH_LATEST:`google/gemini-flash-latest`,GEMINI_FLASH_LITE_LATEST:`google/gemini-flash-lite-latest`,GEMMA_4_26B_A4B_IT:`google/gemma-4-26b-a4b-it`,GEMMA_4_31B_IT:`google/gemma-4-31b-it`},MiniMax:{MINIMAX_M2_7:`minimax/MiniMax-M2.7`,MINIMAX_M2_7_HIGHSPEED:`minimax/MiniMax-M2.7-highspeed`,MINIMAX_M3:`minimax/MiniMax-M3`},Mistral:{MAGISTRAL_MEDIUM_LATEST:`mistral/magistral-medium-latest`,MAGISTRAL_SMALL:`mistral/magistral-small`,MINISTRAL_3B_LATEST:`mistral/ministral-3b-latest`,MINISTRAL_8B_LATEST:`mistral/ministral-8b-latest`,MISTRAL_LARGE_LATEST:`mistral/mistral-large-latest`,MISTRAL_MEDIUM_LATEST:`mistral/mistral-medium-latest`,MISTRAL_SMALL_LATEST:`mistral/mistral-small-latest`},Moonshot:{KIMI_K2_6:`moonshotai/kimi-k2.6`,KIMI_K2_7_CODE:`moonshotai/kimi-k2.7-code`,KIMI_K2_7_CODE_HIGHSPEED:`moonshotai/kimi-k2.7-code-highspeed`,KIMI_K3:`moonshotai/kimi-k3`},OpenAI:{GPT_4_1:`openai/gpt-4.1`,GPT_4_1_MINI:`openai/gpt-4.1-mini`,GPT_4_1_NANO:`openai/gpt-4.1-nano`,GPT_4O_2024_08_06:`openai/gpt-4o-2024-08-06`,GPT_4O_2024_11_20:`openai/gpt-4o-2024-11-20`,GPT_4O_MINI:`openai/gpt-4o-mini`,GPT_5:`openai/gpt-5`,GPT_5_MINI:`openai/gpt-5-mini`,GPT_5_NANO:`openai/gpt-5-nano`,GPT_5_PRO:`openai/gpt-5-pro`,GPT_5_1:`openai/gpt-5.1`,GPT_5_2:`openai/gpt-5.2`,GPT_5_2_CHAT_LATEST:`openai/gpt-5.2-chat-latest`,GPT_5_2_PRO:`openai/gpt-5.2-pro`,GPT_5_3_CHAT_LATEST:`openai/gpt-5.3-chat-latest`,GPT_5_3_CODEX:`openai/gpt-5.3-codex`,GPT_5_3_CODEX_SPARK:`openai/gpt-5.3-codex-spark`,GPT_5_4:`openai/gpt-5.4`,GPT_5_4_MINI:`openai/gpt-5.4-mini`,GPT_5_4_NANO:`openai/gpt-5.4-nano`,GPT_5_4_PRO:`openai/gpt-5.4-pro`,GPT_5_5:`openai/gpt-5.5`,GPT_5_5_PRO:`openai/gpt-5.5-pro`,GPT_5_6:`openai/gpt-5.6`,GPT_5_6_LUNA:`openai/gpt-5.6-luna`,GPT_5_6_SOL:`openai/gpt-5.6-sol`,GPT_5_6_TERRA:`openai/gpt-5.6-terra`,O1:`openai/o1`,O1_PRO:`openai/o1-pro`,O3:`openai/o3`,O3_MINI:`openai/o3-mini`,O3_PRO:`openai/o3-pro`,O4_MINI:`openai/o4-mini`},Qwen:{QWEN3_5_122B_A10B:`qwen/qwen3.5-122b-a10b`,QWEN3_5_27B:`qwen/qwen3.5-27b`,QWEN3_5_35B_A3B:`qwen/qwen3.5-35b-a3b`,QWEN3_5_397B_A17B:`qwen/qwen3.5-397b-a17b`,QWEN3_5_9B:`qwen/qwen3.5-9b`,QWEN3_5_FLASH_02_23:`qwen/qwen3.5-flash-02-23`,QWEN3_5_PLUS_02_15:`qwen/qwen3.5-plus-02-15`,QWEN3_5_PLUS_20260420:`qwen/qwen3.5-plus-20260420`,QWEN3_6_27B:`qwen/qwen3.6-27b`,QWEN3_6_35B_A3B:`qwen/qwen3.6-35b-a3b`,QWEN3_6_FLASH:`qwen/qwen3.6-flash`,QWEN3_6_MAX_PREVIEW:`qwen/qwen3.6-max-preview`,QWEN3_6_PLUS:`qwen/qwen3.6-plus`,QWEN3_7_FLASH:`qwen/qwen3.7-flash`,QWEN3_7_MAX:`qwen/qwen3.7-max`,QWEN3_7_PLUS:`qwen/qwen3.7-plus`,QWEN3_8_2_4T_A95B:`qwen/qwen3.8-2.4t-a95b`,QWEN3_8_27B:`qwen/qwen3.8-27b`,QWEN3_8_FLASH:`qwen/qwen3.8-flash`,QWEN3_8_MAX:`qwen/qwen3.8-max`},ZAI:{GLM_5_1:`zai/glm-5.1`,GLM_5_2:`zai/glm-5.2`,GLM_5_3:`zai/glm-5.3`,GLM_5_3_FLASH:`zai/glm-5.3-flash`}},t={[e.Anthropic.CLAUDE_FABLE_5]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.Anthropic.CLAUDE_FABLE_5_1]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.Anthropic.CLAUDE_HAIKU_4_5]:{contextWindow:2e5,maxOutputTokens:64e3,multimodal:!0},[e.Anthropic.CLAUDE_HAIKU_4_5_20251001]:{contextWindow:2e5,maxOutputTokens:64e3,multimodal:!0},[e.Anthropic.CLAUDE_OPUS_4_5]:{contextWindow:2e5,maxOutputTokens:64e3,multimodal:!0},[e.Anthropic.CLAUDE_OPUS_4_5_20251101]:{contextWindow:2e5,maxOutputTokens:64e3,multimodal:!0},[e.Anthropic.CLAUDE_OPUS_4_6]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.Anthropic.CLAUDE_OPUS_4_7]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.Anthropic.CLAUDE_OPUS_4_8]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.Anthropic.CLAUDE_OPUS_5]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.Anthropic.CLAUDE_SONNET_4_5]:{contextWindow:1e6,maxOutputTokens:64e3,multimodal:!0},[e.Anthropic.CLAUDE_SONNET_4_5_20250929]:{contextWindow:1e6,maxOutputTokens:64e3,multimodal:!0},[e.Anthropic.CLAUDE_SONNET_4_6]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.Anthropic.CLAUDE_SONNET_5]:{contextWindow:1e6,maxOutputTokens:128e3,multimodal:!0},[e.DeepSeek.DEEPSEEK_V4_FLASH]:{contextWindow:1e6,maxOutputTokens:384e3,multimodal:!1},[e.DeepSeek.DEEPSEEK_V4_FLASH_VISION_EXP]:{contextWindow:1e6,maxOutputTokens:384e3,multimodal:!0},[e.DeepSeek.DEEPSEEK_V4_PRO]:{contextWindow:1e6,maxOutputTokens:384e3,multimodal:!1},[e.Google.GEMINI_2_5_FLASH]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_2_5_FLASH_LITE]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_2_5_PRO]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_FLASH_PREVIEW]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_1_FLASH_LITE]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_1_FLASH_LITE_PREVIEW]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_1_PRO_PREVIEW]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_1_PRO_PREVIEW_CUSTOMTOOLS]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_5_FLASH]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_5_FLASH_LITE]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_6_FLASH]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_7_FLASH]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_3_8_FLASH]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_FLASH_LATEST]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMINI_FLASH_LITE_LATEST]:{contextWindow:1048576,maxOutputTokens:65536,multimodal:!0},[e.Google.GEMMA_4_26B_A4B_IT]:{contextWindow:262144,maxOutputTokens:32768,multimodal:!0},[e.Google.GEMMA_4_31B_IT]:{contextWindow:262144,maxOutputTokens:32768,multimodal:!0},[e.MiniMax.MINIMAX_M2_7]:{contextWindow:204800,maxOutputTokens:131072,multimodal:!1},[e.MiniMax.MINIMAX_M2_7_HIGHSPEED]:{contextWindow:204800,maxOutputTokens:131072,multimodal:!1},[e.MiniMax.MINIMAX_M3]:{contextWindow:1048576,maxOutputTokens:512e3,multimodal:!0},[e.Mistral.MAGISTRAL_MEDIUM_LATEST]:{contextWindow:128e3,maxOutputTokens:16384,multimodal:!1},[e.Mistral.MAGISTRAL_SMALL]:{contextWindow:128e3,maxOutputTokens:128e3,multimodal:!1},[e.Mistral.MINISTRAL_3B_LATEST]:{contextWindow:128e3,maxOutputTokens:128e3,multimodal:!1},[e.Mistral.MINISTRAL_8B_LATEST]:{contextWindow:128e3,maxOutputTokens:128e3,multimodal:!1},[e.Mistral.MISTRAL_LARGE_LATEST]:{contextWindow:262144,maxOutputTokens:262144,multimodal:!0},[e.Mistral.MISTRAL_MEDIUM_LATEST]:{contextWindow:262144,maxOutputTokens:262144,multimodal:!0},[e.Mistral.MISTRAL_SMALL_LATEST]:{contextWindow:256e3,maxOutputTokens:256e3,multimodal:!0},[e.Moonshot.KIMI_K2_6]:{contextWindow:262144,maxOutputTokens:262144,multimodal:!0},[e.Moonshot.KIMI_K2_7_CODE]:{contextWindow:262144,maxOutputTokens:262144,multimodal:!0},[e.Moonshot.KIMI_K2_7_CODE_HIGHSPEED]:{contextWindow:262144,maxOutputTokens:262144,multimodal:!0},[e.Moonshot.KIMI_K3]:{contextWindow:1048576,maxOutputTokens:131072,multimodal:!0},[e.OpenAI.GPT_4_1]:{contextWindow:1047576,maxOutputTokens:32768,multimodal:!0},[e.OpenAI.GPT_4_1_MINI]:{contextWindow:1047576,maxOutputTokens:32768,multimodal:!0},[e.OpenAI.GPT_4_1_NANO]:{contextWindow:1047576,maxOutputTokens:32768,multimodal:!0},[e.OpenAI.GPT_4O_2024_08_06]:{contextWindow:128e3,maxOutputTokens:16384,multimodal:!0},[e.OpenAI.GPT_4O_2024_11_20]:{contextWindow:128e3,maxOutputTokens:16384,multimodal:!0},[e.OpenAI.GPT_4O_MINI]:{contextWindow:128e3,maxOutputTokens:16384,multimodal:!0},[e.OpenAI.GPT_5]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_MINI]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_NANO]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_PRO]:{contextWindow:4e5,maxOutputTokens:272e3,multimodal:!0},[e.OpenAI.GPT_5_1]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_2]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_2_CHAT_LATEST]:{contextWindow:128e3,maxOutputTokens:16384,multimodal:!0},[e.OpenAI.GPT_5_2_PRO]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_3_CHAT_LATEST]:{contextWindow:128e3,maxOutputTokens:16384,multimodal:!0},[e.OpenAI.GPT_5_3_CODEX]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_3_CODEX_SPARK]:{contextWindow:128e3,maxOutputTokens:32e3,multimodal:!0},[e.OpenAI.GPT_5_4]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_4_MINI]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_4_NANO]:{contextWindow:4e5,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_4_PRO]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_5]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_5_PRO]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_6]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_6_LUNA]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_6_SOL]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.GPT_5_6_TERRA]:{contextWindow:105e4,maxOutputTokens:128e3,multimodal:!0},[e.OpenAI.O1]:{contextWindow:2e5,maxOutputTokens:1e5,multimodal:!0},[e.OpenAI.O1_PRO]:{contextWindow:2e5,maxOutputTokens:1e5,multimodal:!0},[e.OpenAI.O3]:{contextWindow:2e5,maxOutputTokens:1e5,multimodal:!0},[e.OpenAI.O3_MINI]:{contextWindow:2e5,maxOutputTokens:1e5,multimodal:!1},[e.OpenAI.O3_PRO]:{contextWindow:2e5,maxOutputTokens:1e5,multimodal:!0},[e.OpenAI.O4_MINI]:{contextWindow:2e5,maxOutputTokens:1e5,multimodal:!0},[e.Qwen.QWEN3_5_122B_A10B]:{contextWindow:262144,maxOutputTokens:81920,multimodal:!0},[e.Qwen.QWEN3_5_27B]:{contextWindow:262144,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_5_35B_A3B]:{contextWindow:262144,maxOutputTokens:16384,multimodal:!0},[e.Qwen.QWEN3_5_397B_A17B]:{contextWindow:262144,maxOutputTokens:235929,multimodal:!0},[e.Qwen.QWEN3_5_9B]:{contextWindow:262144,maxOutputTokens:235929,multimodal:!0},[e.Qwen.QWEN3_5_FLASH_02_23]:{contextWindow:1e6,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_5_PLUS_02_15]:{contextWindow:1e6,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_5_PLUS_20260420]:{contextWindow:1e6,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_6_27B]:{contextWindow:262144,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_6_35B_A3B]:{contextWindow:262144,maxOutputTokens:235929,multimodal:!0},[e.Qwen.QWEN3_6_FLASH]:{contextWindow:1e6,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_6_MAX_PREVIEW]:{contextWindow:262144,maxOutputTokens:65536,multimodal:!1},[e.Qwen.QWEN3_6_PLUS]:{contextWindow:1e6,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_7_FLASH]:{contextWindow:1e6,maxOutputTokens:65536,multimodal:!0},[e.Qwen.QWEN3_7_MAX]:{contextWindow:1e6,maxOutputTokens:131072,multimodal:!1},[e.Qwen.QWEN3_7_PLUS]:{contextWindow:1e6,maxOutputTokens:131072,multimodal:!0},[e.Qwen.QWEN3_8_2_4T_A95B]:{contextWindow:1048576,maxOutputTokens:262144,multimodal:!1},[e.Qwen.QWEN3_8_27B]:{contextWindow:1e6,maxOutputTokens:131072,multimodal:!0},[e.Qwen.QWEN3_8_FLASH]:{contextWindow:1e6,maxOutputTokens:131072,multimodal:!0},[e.Qwen.QWEN3_8_MAX]:{contextWindow:1e6,maxOutputTokens:131072,multimodal:!0},[e.ZAI.GLM_5_1]:{contextWindow:2e5,maxOutputTokens:131072,multimodal:!1},[e.ZAI.GLM_5_2]:{contextWindow:1e6,maxOutputTokens:131072,multimodal:!1},[e.ZAI.GLM_5_3]:{contextWindow:1e6,maxOutputTokens:131072,multimodal:!1},[e.ZAI.GLM_5_3_FLASH]:{contextWindow:1e6,maxOutputTokens:131072,multimodal:!0}};export{t as ModelInfo,e as Models};
@@ -0,0 +1 @@
1
+ const e=new Set(Object.keys({"turn:user":!0,"turn:start":!0,"turn:end":!0,"compaction:update":!0,"compaction:complete":!0,"compaction:error":!0,"part:start":!0,"text:delta":!0,"text:citation":!0,"thinking:raw-delta":!0,"thinking:summary-delta":!0,"thinking:update":!0,"part:end":!0,"action:args-delta":!0,"action:running":!0,"action:progress":!0,"action:complete":!0,"action:error":!0,"action:child-event":!0,"annotation:start":!0,"annotation:update":!0,"annotation:end":!0,error:!0}));function t(t){return e.has(t.type)}var n=class e{_turns;constructor(e=[]){this._turns=[...e]}get turns(){return this._turns}getTurn(e){return this._turns.find(t=>t.id===e)}apply(e){return t(e)?this.applyTurnEvent(e):{handled:!1,event:e}}applyTurnEvent(t){switch(t.type){case`compaction:update`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`compaction`?{...e,...t.update.summary===void 0?{}:{summary:t.update.summary},...t.update.progress===void 0?{}:{progress:t.update.progress}}:e);case`compaction:complete`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`compaction`?{...e,status:`complete`,progress:1,...t.summary===void 0?{}:{summary:t.summary},timing:t.timing??e.timing}:e);case`compaction:error`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`compaction`?{...e,status:`error`,error:t.error,timing:t.timing??e.timing}:e);case`turn:user`:return this.replaceTurns([...this._turns,t.turn],t);case`turn:start`:{let e={id:t.turnId,owner:`agent`,parts:[],status:`streaming`,...t.timing?{timing:t.timing}:{}};return this.replaceTurns([...this._turns,e],t)}case`part:start`:return this.updateTurn(t.turnId,t,e=>({...e,parts:[...e.parts,t.part]}));case`text:delta`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`text`?{...e,text:e.text+t.delta}:e);case`text:citation`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`text`?{...e,citations:[...e.citations??[],t.citation]}:e);case`thinking:raw-delta`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`thinking`?{...e,raw:(e.raw??``)+t.delta}:e);case`thinking:summary-delta`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`thinking`?{...e,summary:(e.summary??``)+t.delta}:e);case`thinking:update`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`thinking`?{...e,...t.continuity?{continuity:t.continuity}:{},...t.providerMetadata?{providerMetadata:t.providerMetadata}:{}}:e);case`part:end`:return this.updatePart(t.turnId,t.partId,t,e=>({...e,timing:t.timing??e.timing}));case`action:args-delta`:return this.updatePart(t.turnId,t.partId,t,e=>e.type!==`action`||e.kind!==`tool`?e:{...e,detail:{...e.detail,pendingArgs:t.accumulated}});case`action:running`:return this.updatePart(t.turnId,t.partId,t,e=>{if(e.type!==`action`)return e;if(e.kind===`tool`){let{pendingArgs:n,...r}=e.detail;return{...e,status:`running`,detail:t.parameters?{...r,parameters:t.parameters}:r}}return{...e,status:`running`}});case`action:progress`:return this.updatePart(t.turnId,t.partId,t,e=>{if(e.type!==`action`)return e;let n=e.detail.result,r=n?.type===`in-progress`?n.content:``;return{...e,detail:{...e.detail,result:{type:`in-progress`,content:r+t.chunk}}}});case`action:complete`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`action`?{...e,status:`complete`,detail:{...e.detail,result:t.result},timing:t.timing??e.timing}:e);case`action:error`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`action`?{...e,status:`error`,detail:{...e.detail,result:{type:`error`,error:t.error}},timing:t.timing??e.timing}:e);case`turn:end`:return this.updateTurn(t.turnId,t,e=>({...e,status:t.status,usage:t.usage,timing:t.timing??e.timing}));case`annotation:start`:return this.addAnnotation(t);case`annotation:update`:return this.replaceAnnotation(t,!1);case`annotation:end`:return this.replaceAnnotation(t,!0);case`error`:return t.turnId?this.updateTurn(t.turnId,t,e=>({...e,error:t.error})):this.handled(t);case`action:child-event`:return this.updatePart(t.turnId,t.partId,t,n=>{if(n.type!==`action`||n.kind!==`agent`)return n;let r=new e(n.detail.children);return r.apply(t.event),{...n,detail:{...n.detail,children:[...r.turns]}}});default:return this.handled(t)}}replaceTurns(e,t){return this._turns=e,this.handled(t)}updateTurn(e,t,n){let r=!1,i=this._turns.map(t=>{if(t.id!==e)return t;let i=n(t);return i===t?t:(r=!0,i)});return r?this.replaceTurns(i,t):this.handled(t)}updatePart(e,t,n,r){return this.updateTurn(e,n,e=>{let n=!1,i=e.parts.map(e=>{if(e.id!==t)return e;let i=r(e);return i===e?e:(n=!0,i)});return n?{...e,parts:i}:e})}addAnnotation(e){let t=e.target,n=r(e.annotation);return n?t.type===`turn`?this.updateTurn(t.turnId,e,e=>({...e,annotations:[...e.annotations??[],n]})):this.updatePart(t.turnId,t.partId,e,e=>({...e,annotations:[...e.annotations??[],n]})):this.handled(e)}replaceAnnotation(e,t){let n=e.target,a=r(e.annotation,t);return a?n.type===`turn`?this.updateTurn(n.turnId,e,e=>{let t=i(e.annotations,a);return t?{...e,annotations:t}:e}):this.updatePart(n.turnId,n.partId,e,e=>{let t=i(e.annotations,a);return t?{...e,annotations:t}:e}):this.handled(e)}handled(e){return{handled:!0,event:e}}};function r(e,t=!1){if(!e)return;let n=t?e.status??`complete`:e.status,r={...e,placement:e.placement??`after`};return n?{...r,status:n}:r}function i(e,t){if(!e)return;let n=!1,r=e.map(e=>e.id===t.id?(n=!0,t):e);return n?r:void 0}export{n as t};
@@ -1,5 +1,4 @@
1
- import { ZodObject, z } from "zod";
2
-
1
+ import { ZodObject, z as z$1 } from "zod";
3
2
  //#region src/observability/types.d.ts
4
3
  type SpanStatus = "ok" | "error" | "cancelled";
5
4
  type EventLevel = "trace" | "debug" | "info" | "warn" | "error";
@@ -116,7 +115,7 @@ interface Stats extends TokenStats {
116
115
  //#endregion
117
116
  //#region src/messages/stream.d.ts
118
117
  interface StreamChunk {
119
- type: "start" | "text-start" | "text-delta" | "text-citation" | "citation" | "text-complete" | "tool-call-start" | "tool-call-args-delta" | "tool-call-complete" | "thinking-start" | "thinking-delta" | "thinking-summary-delta" | "thinking-metadata" | "thinking-complete" | "provider-tool-start" | "provider-tool-complete" | "complete" | "error";
118
+ type: "start" | "text-start" | "text-delta" | "text-citation" | "citation" | "text-complete" | "tool-call-start" | "tool-call-args-delta" | "tool-call-complete" | "thinking-start" | "thinking-raw-delta" | "thinking-summary-delta" | "thinking-metadata" | "thinking-complete" | "provider-tool-start" | "provider-tool-complete" | "complete" | "error";
120
119
  id?: string;
121
120
  data?: any;
122
121
  }
@@ -188,8 +187,8 @@ interface StreamThinkingStartChunk extends StreamChunk {
188
187
  providerMetadata?: Record<string, unknown>;
189
188
  };
190
189
  }
191
- interface StreamThinkingDeltaChunk extends StreamChunk {
192
- type: "thinking-delta";
190
+ interface StreamThinkingRawDeltaChunk extends StreamChunk {
191
+ type: "thinking-raw-delta";
193
192
  data: {
194
193
  index: number;
195
194
  text: string;
@@ -267,7 +266,7 @@ interface StreamProviderToolCompleteChunk extends StreamChunk {
267
266
  output?: unknown;
268
267
  };
269
268
  }
270
- type AnyStreamChunk = StreamStartChunk | StreamCompleteChunk | StreamErrorChunk | StreamTextStartChunk | StreamTextDeltaChunk | StreamTextCitationChunk | StreamCitationChunk | StreamTextCompleteChunk | StreamThinkingStartChunk | StreamThinkingDeltaChunk | StreamThinkingSummaryDeltaChunk | StreamThinkingMetadataChunk | StreamThinkingCompleteChunk | StreamToolCallStartChunk | StreamToolCallArgsDeltaChunk | StreamToolCallCompleteChunk | StreamProviderToolStartChunk | StreamProviderToolCompleteChunk;
269
+ type AnyStreamChunk = StreamStartChunk | StreamCompleteChunk | StreamErrorChunk | StreamTextStartChunk | StreamTextDeltaChunk | StreamTextCitationChunk | StreamCitationChunk | StreamTextCompleteChunk | StreamThinkingStartChunk | StreamThinkingRawDeltaChunk | StreamThinkingSummaryDeltaChunk | StreamThinkingMetadataChunk | StreamThinkingCompleteChunk | StreamToolCallStartChunk | StreamToolCallArgsDeltaChunk | StreamToolCallCompleteChunk | StreamProviderToolStartChunk | StreamProviderToolCompleteChunk;
271
270
  //#endregion
272
271
  //#region src/utils/file.d.ts
273
272
  type FileKind = "image" | "document" | "text";
@@ -365,6 +364,29 @@ declare function loadFileContent(filePath: string): Promise<FileInfo>;
365
364
  declare function loadFileContent(filePath: string, encoding: "utf-8"): Promise<InlineTextFile>;
366
365
  declare function loadFileContent(filePath: string, encoding: "base64"): Promise<InlineBinaryFile>;
367
366
  //#endregion
367
+ //#region src/providers/reasoning.d.ts
368
+ /**
369
+ * Named reasoning depth. Relative within a model, not comparable compute or
370
+ * token spend across models.
371
+ */
372
+ type ReasoningEffort = "low" | "medium" | "high";
373
+ /**
374
+ * Whether the provider should disclose its thinking. The form that comes
375
+ * back (summary or raw) is the model's, not the caller's.
376
+ */
377
+ type ReasoningDisplay = "visible" | "hidden";
378
+ /**
379
+ * Provider-portable reasoning control. `"default"` (or omission) sends no
380
+ * reasoning fields; `"off"` sends the provider's explicit disable shape;
381
+ * `"on"` is `{ effort: "medium" }`. `display` (default `"visible"`) asks the
382
+ * provider to disclose its thinking wherever a request field exists.
383
+ * Normative in docs/architecture/reasoning.md.
384
+ */
385
+ type ReasoningSetting = "default" | "off" | "on" | {
386
+ effort: ReasoningEffort;
387
+ display?: ReasoningDisplay;
388
+ };
389
+ //#endregion
368
390
  //#region src/providers/types.d.ts
369
391
  /**
370
392
  * Internal services available to provider adapters while executing a model request.
@@ -399,8 +421,13 @@ type ToolChoice = "auto" | "none" | "required" | {
399
421
  * represented here.
400
422
  */
401
423
  interface AxleModelRequestOptions {
402
- /** Enables or disables provider reasoning/thinking controls where supported. */
403
- reasoning?: boolean;
424
+ /**
425
+ * Portable reasoning control: `"default"` inherits the model's behavior,
426
+ * `"off"` sends the provider's explicit disable, `"on"` is medium effort,
427
+ * `{ effort, display? }` picks a named level or legacy budget preset and
428
+ * whether the provider should disclose its thinking (default `"visible"`).
429
+ */
430
+ reasoning?: ReasoningSetting;
404
431
  /** Maximum output tokens to request from the model. */
405
432
  maxOutputTokens?: number;
406
433
  /** Sampling temperature, when supported by the provider/model. */
@@ -429,17 +456,15 @@ interface AIProvider {
429
456
  */
430
457
  resolveProviderToolName?(name: string, model: string): string | undefined;
431
458
  /** @internal */
432
- createGenerationRequest(model: string, params: ProviderGenerationParams): Promise<ModelResult>;
433
- /** @internal */
434
459
  createStreamingRequest(model: string, params: ProviderStreamParams): AsyncGenerator<AnyStreamChunk, void, unknown>;
435
460
  }
436
461
  interface ResolvedProviderTool extends ProviderTool {
437
462
  nativeName?: string;
438
463
  }
439
464
  /**
440
- * Parameters passed to provider adapters for one non-streaming generation call.
465
+ * Parameters passed to provider adapters for one streaming generation call.
441
466
  */
442
- interface ProviderGenerationParams extends AxleModelRequestOptions {
467
+ interface ProviderStreamParams extends AxleModelRequestOptions {
443
468
  /** Conversation messages to send to the provider. */
444
469
  messages: Array<AxleMessage>;
445
470
  /** Optional system/developer instruction for the request. */
@@ -451,21 +476,6 @@ interface ProviderGenerationParams extends AxleModelRequestOptions {
451
476
  /** Internal services available during provider request creation. */
452
477
  runtime: ProviderRuntime;
453
478
  }
454
- /**
455
- * Parameters passed to provider adapters for one streaming generation call.
456
- */
457
- interface ProviderStreamParams extends ProviderGenerationParams {}
458
- interface ModelResponse {
459
- type: "success";
460
- role: "assistant";
461
- id: string;
462
- model: string;
463
- text: string;
464
- content: Array<ContentPartText | ContentPartThinking | ContentPartToolCall | ContentPartCitation>;
465
- finishReason: AxleStopReason;
466
- usage: Stats;
467
- raw: any;
468
- }
469
479
  interface ModelError {
470
480
  type: "error";
471
481
  error: {
@@ -475,7 +485,6 @@ interface ModelError {
475
485
  usage?: Stats;
476
486
  raw?: any;
477
487
  }
478
- type ModelResult = ModelResponse | ModelError;
479
488
  interface ContextUsage {
480
489
  total: number;
481
490
  system: number;
@@ -630,11 +639,11 @@ interface ContentPartThinking {
630
639
  type: "thinking";
631
640
  /** Provider thinking block id, when supplied. */
632
641
  id?: string;
633
- /** Renderable reasoning text content, when the provider exposes it. */
642
+ /** The provider's block content as sent, echoed back verbatim under its signature. */
634
643
  text?: string;
635
- /** Optional provider-supplied reasoning summary. */
644
+ /** The provider's reasoning summary, echoed back where the provider accepts it. */
636
645
  summary?: string;
637
- /** Whether the provider redacted the reasoning content. */
646
+ /** The provider substituted an opaque payload for the content and wants it echoed. */
638
647
  redacted?: boolean;
639
648
  /** Provider continuity payload that should be preserved for future requests. */
640
649
  continuity?: ThinkingContinuity;
@@ -727,6 +736,14 @@ type ThinkingContinuity = {
727
736
  } | {
728
737
  provider: "gemini";
729
738
  thoughtSignature: string;
739
+ } | {
740
+ provider: "openrouter";
741
+ type: string;
742
+ id?: string;
743
+ format?: string;
744
+ index?: number;
745
+ signature?: string;
746
+ data?: string;
730
747
  };
731
748
  /**
732
749
  * Axle-managed tool call request emitted by the assistant.
@@ -928,12 +945,10 @@ interface ThinkingPart<TAnnotation extends Annotation = Annotation> {
928
945
  id: string;
929
946
  /** Part discriminator. */
930
947
  type: "thinking";
931
- /** Accumulated renderable thinking text, when the provider exposes it. */
932
- text?: string;
933
- /** Optional provider-supplied summary. */
948
+ /** The provider's condensed account of its reasoning, when it disclosed one. */
934
949
  summary?: string;
935
- /** Whether the provider marked the thinking content as redacted. */
936
- redacted?: boolean;
950
+ /** The chain of thought itself; effectively open-weight models only. */
951
+ raw?: string;
937
952
  /** Provider continuity payload that should be preserved for future requests. */
938
953
  continuity?: ThinkingContinuity;
939
954
  /** Provider-specific metadata that is not part of Axle's normalized contract. */
@@ -1011,9 +1026,13 @@ interface ToolAction<TAnnotation extends Annotation = Annotation> extends Action
1011
1026
  kind: "tool";
1012
1027
  /** Tool display and execution details. */
1013
1028
  detail: {
1014
- /** Tool name. */name: string; /** Parsed tool parameters once execution starts. */
1015
- parameters: Record<string, unknown>; /** Accumulated JSON argument text before parameters are parsed. */
1016
- pendingArgs?: string; /** Tool result or in-progress output. */
1029
+ /** Tool name. */
1030
+ name: string;
1031
+ /** Parsed tool parameters once execution starts. */
1032
+ parameters: Record<string, unknown>;
1033
+ /** Accumulated JSON argument text before parameters are parsed. */
1034
+ pendingArgs?: string;
1035
+ /** Tool result or in-progress output. */
1017
1036
  result?: ActionResult;
1018
1037
  };
1019
1038
  }
@@ -1025,9 +1044,13 @@ interface SubagentAction<TAnnotation extends Annotation = Annotation> extends Ac
1025
1044
  kind: "agent";
1026
1045
  /** Subagent display and result details. */
1027
1046
  detail: {
1028
- /** Subagent name. */name: string; /** Optional subagent configuration shown to renderers. */
1029
- config?: Record<string, unknown>; /** Child turns produced by the subagent. */
1030
- children: Turn<TAnnotation>[]; /** Final subagent result, when available. */
1047
+ /** Subagent name. */
1048
+ name: string;
1049
+ /** Optional subagent configuration shown to renderers. */
1050
+ config?: Record<string, unknown>;
1051
+ /** Child turns produced by the subagent. */
1052
+ children: Turn<TAnnotation>[];
1053
+ /** Final subagent result, when available. */
1031
1054
  result?: ActionResult;
1032
1055
  };
1033
1056
  }
@@ -1040,8 +1063,11 @@ interface ProviderToolAction<TAnnotation extends Annotation = Annotation> extend
1040
1063
  kind: "provider-tool";
1041
1064
  /** Provider tool display and result details. */
1042
1065
  detail: {
1043
- /** Provider tool name. */name: string; /** Provider-specific input, when surfaced. */
1044
- input?: unknown; /** Provider tool result, when surfaced. */
1066
+ /** Provider tool name. */
1067
+ name: string;
1068
+ /** Provider-specific input, when surfaced. */
1069
+ input?: unknown;
1070
+ /** Provider tool result, when surfaced. */
1045
1071
  result?: ActionResult;
1046
1072
  };
1047
1073
  }
@@ -1133,7 +1159,7 @@ type TurnEvent<TAnnotation extends Annotation = Annotation> = {
1133
1159
  partId: string;
1134
1160
  citation: Citation;
1135
1161
  } | {
1136
- type: "thinking:delta";
1162
+ type: "thinking:raw-delta";
1137
1163
  turnId: string;
1138
1164
  partId: string;
1139
1165
  delta: string;
@@ -1146,7 +1172,6 @@ type TurnEvent<TAnnotation extends Annotation = Annotation> = {
1146
1172
  type: "thinking:update";
1147
1173
  turnId: string;
1148
1174
  partId: string;
1149
- redacted?: boolean;
1150
1175
  continuity?: ThinkingContinuity;
1151
1176
  providerMetadata?: Record<string, unknown>;
1152
1177
  } | {
@@ -1250,9 +1275,9 @@ interface ExecutableTool<TSchema extends ZodObject<any> = ZodObject<any>> {
1250
1275
  name: string;
1251
1276
  description: string;
1252
1277
  schema: TSchema;
1253
- execute(input: z.infer<TSchema>, ctx: ToolContext): Promise<string | ToolResultPart[]>;
1278
+ execute(input: z$1.infer<TSchema>, ctx: ToolContext): Promise<string | ToolResultPart[]>;
1254
1279
  configure?(config: Record<string, any>): void;
1255
- summarize?(input: z.infer<TSchema>): string;
1280
+ summarize?(input: z$1.infer<TSchema>): string;
1256
1281
  }
1257
1282
  interface ProviderTool {
1258
1283
  type: "provider";
@@ -1327,4 +1352,4 @@ declare class Transcript<TAnnotation extends Annotation = Annotation, THostEvent
1327
1352
  private handled;
1328
1353
  }
1329
1354
  //#endregion
1330
- export { ThinkingContinuity as $, TimingInfo as A, SpanOptions as At, AxleUserMessage as B, CompactionPart as C, EventLevel as Ct, SubagentAction as D, Span as Dt, ProviderToolAction as E, LLMResult as Et, TurnStatus as F, ToolResult as Ft, ContentPartCitation as G, CitationOutputSpan as H, AxleAssistantMessage as I, TraceWriter as It, ContentPartText as J, ContentPartFile as K, AxleMessage as L, Turn as M, SpanStatus as Mt, TurnMetadata as N, SpanType as Nt, TextPart as O, SpanData as Ot, TurnPart as P, TokenUsage as Pt, MessageMetadata as Q, AxleToolCallMessage as R, CitationPart as S, UsageEntry as St, FilePart as T, LLMResponse as Tt, CitationSource as U, Citation as V, ContentPart as W, ContentPartToolCall as X, ContentPartThinking as Y, DocumentLocator as Z, ActionPart as _, FileResolver as _t, CompactionStamp as a, ModelError as at, AnnotationPlacement as b, Stats as bt, ExecutableTool as c, ProviderOptions as ct, ToolDefinition as d, DeferredFileInfo as dt, ToolResultPart as et, ToolProgressChunk as f, FileInfo as ft, TurnEvent as g, FileResolveRequest as gt, AnnotationTarget as h, FileResolveFormat as ht, UnknownEvent as i, ContextUsage as it, ToolAction as j, SpanResult as jt, ThinkingPart as k, SpanEvent as kt, ProviderTool as l, ResolvedProviderTool as lt, AnnotationEvent as m, FileProviderId as mt, TranscriptApplyResult as n, AxleModelRequestOptions as nt, getCompactionStamp as o, ModelResult as ot, ToolRegistry as p, FileKind as pt, ContentPartProviderTool as q, TranscriptInput as r, AxleStopReason as rt, validateCompactedMessages as s, ProviderClientOptions as st, Transcript as t, AIProvider as tt, ToolContext as u, ToolChoice as ut, ActionResult as v, ResolvedFileSource as vt, CompactionUpdate as w, LLMRequest as wt, AnnotationStatus as x, TokenStats as xt, Annotation as y, loadFileContent as yt, AxleToolCallResult as z };
1355
+ export { ThinkingContinuity as $, TimingInfo as A, SpanOptions as At, AxleUserMessage as B, CompactionPart as C, EventLevel as Ct, SubagentAction as D, Span as Dt, ProviderToolAction as E, LLMResult as Et, TurnStatus as F, ToolResult as Ft, ContentPartCitation as G, CitationOutputSpan as H, AxleAssistantMessage as I, TraceWriter as It, ContentPartText as J, ContentPartFile as K, AxleMessage as L, Turn as M, SpanStatus as Mt, TurnMetadata as N, SpanType as Nt, TextPart as O, SpanData as Ot, TurnPart as P, TokenUsage as Pt, MessageMetadata as Q, AxleToolCallMessage as R, CitationPart as S, UsageEntry as St, FilePart as T, LLMResponse as Tt, CitationSource as U, Citation as V, ContentPart as W, ContentPartToolCall as X, ContentPartThinking as Y, DocumentLocator as Z, ActionPart as _, FileResolver as _t, CompactionStamp as a, ModelError as at, AnnotationPlacement as b, Stats as bt, ExecutableTool as c, ToolChoice as ct, ToolDefinition as d, DeferredFileInfo as dt, ToolResultPart as et, ToolProgressChunk as f, FileInfo as ft, TurnEvent as g, FileResolveRequest as gt, AnnotationTarget as h, FileResolveFormat as ht, UnknownEvent as i, ContextUsage as it, ToolAction as j, SpanResult as jt, ThinkingPart as k, SpanEvent as kt, ProviderTool as l, ReasoningEffort as lt, AnnotationEvent as m, FileProviderId as mt, TranscriptApplyResult as n, AxleModelRequestOptions as nt, getCompactionStamp as o, ProviderClientOptions as ot, ToolRegistry as p, FileKind as pt, ContentPartProviderTool as q, TranscriptInput as r, AxleStopReason as rt, validateCompactedMessages as s, ProviderOptions as st, Transcript as t, AIProvider as tt, ToolContext as u, ReasoningSetting as ut, ActionResult as v, ResolvedFileSource as vt, CompactionUpdate as w, LLMRequest as wt, AnnotationStatus as x, TokenStats as xt, Annotation as y, loadFileContent as yt, AxleToolCallResult as z };
package/dist/ui.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as ThinkingContinuity, A as TimingInfo, C as CompactionPart, D as SubagentAction, E as ProviderToolAction, F as TurnStatus, H as CitationOutputSpan, M as Turn, N as TurnMetadata, O as TextPart, P as TurnPart, S as CitationPart, St as UsageEntry, T as FilePart, U as CitationSource, V as Citation, Z as DocumentLocator, _ as ActionPart, a as CompactionStamp, b as AnnotationPlacement, bt as Stats, ft as FileInfo, g as TurnEvent, h as AnnotationTarget, i as UnknownEvent, j as ToolAction, k as ThinkingPart, m as AnnotationEvent, n as TranscriptApplyResult, r as TranscriptInput, t as Transcript, v as ActionResult, w as CompactionUpdate, x as AnnotationStatus, xt as TokenStats, y as Annotation } from "./transcript-D69LP3XR.js";
1
+ import { $ as ThinkingContinuity, A as TimingInfo, C as CompactionPart, D as SubagentAction, E as ProviderToolAction, F as TurnStatus, H as CitationOutputSpan, M as Turn, N as TurnMetadata, O as TextPart, P as TurnPart, S as CitationPart, St as UsageEntry, T as FilePart, U as CitationSource, V as Citation, Z as DocumentLocator, _ as ActionPart, a as CompactionStamp, b as AnnotationPlacement, bt as Stats, ft as FileInfo, g as TurnEvent, h as AnnotationTarget, i as UnknownEvent, j as ToolAction, k as ThinkingPart, m as AnnotationEvent, n as TranscriptApplyResult, r as TranscriptInput, t as Transcript, v as ActionResult, w as CompactionUpdate, x as AnnotationStatus, xt as TokenStats, y as Annotation } from "./transcript-IlzS5MWE.js";
2
2
  export { type ActionPart, type ActionResult, type Annotation, type AnnotationEvent, type AnnotationPlacement, type AnnotationStatus, type AnnotationTarget, type Citation, type CitationOutputSpan, type CitationPart, type CitationSource, type CompactionPart, type CompactionStamp, type CompactionUpdate, type DocumentLocator, type FileInfo, type FilePart, type ProviderToolAction, type Stats, type SubagentAction, type TextPart, type ThinkingContinuity, type ThinkingPart, type TimingInfo, type TokenStats, type ToolAction, Transcript, type TranscriptApplyResult, type TranscriptInput, type Turn, type TurnEvent, type TurnMetadata, type TurnPart, type TurnStatus, type UnknownEvent, type UsageEntry };
package/dist/ui.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./transcript-BzpiXJtU.js";export{e as Transcript};
1
+ import{t as e}from"./transcript-DUuis-20.js";export{e as Transcript};
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@fifthrevision/axle",
3
- "version": "0.30.2",
3
+ "version": "0.32.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/johncch/axle.git"
7
7
  },
8
8
  "description": "Axle core runtime for building agentic LLM applications.",
9
9
  "type": "module",
10
+ "engines": {
11
+ "node": ">=22"
12
+ },
10
13
  "exports": {
11
14
  ".": {
12
15
  "types": "./dist/index.d.ts",
@@ -27,20 +30,20 @@
27
30
  "author": "Chong Han Chua",
28
31
  "license": "ISC",
29
32
  "dependencies": {
30
- "@anthropic-ai/sdk": "^0.98.0",
31
- "@google/genai": "^2.6.0",
32
- "@modelcontextprotocol/sdk": "^1.29.0",
33
- "chalk": "^5.6.2",
33
+ "@anthropic-ai/sdk": "^0.125.0",
34
+ "@google/genai": "^2.22.0",
35
+ "@modelcontextprotocol/sdk": "^1.30.0",
36
+ "chalk": "^6.0.0",
34
37
  "glob": "^13.0.6",
35
- "marked": "^18.0.4",
38
+ "marked": "^18.0.12",
36
39
  "mime": "^4.1.0",
37
- "openai": "^6.39.0",
38
- "zod": "^4.4.3"
40
+ "openai": "^7.15.0",
41
+ "zod": "^4.6.2"
39
42
  },
40
43
  "devDependencies": {
41
- "@arethetypeswrong/core": "^0.18.2",
42
- "publint": "^0.3.21",
43
- "tsdown": "^0.22.0",
44
+ "@arethetypeswrong/core": "^0.18.5",
45
+ "publint": "^0.3.24",
46
+ "tsdown": "^0.23.0",
44
47
  "typescript": "^6.0.3"
45
48
  },
46
49
  "scripts": {
@@ -1 +0,0 @@
1
- const e=new Set(Object.keys({"turn:user":!0,"turn:start":!0,"turn:end":!0,"compaction:update":!0,"compaction:complete":!0,"compaction:error":!0,"part:start":!0,"text:delta":!0,"text:citation":!0,"thinking:delta":!0,"thinking:summary-delta":!0,"thinking:update":!0,"part:end":!0,"action:args-delta":!0,"action:running":!0,"action:progress":!0,"action:complete":!0,"action:error":!0,"action:child-event":!0,"annotation:start":!0,"annotation:update":!0,"annotation:end":!0,error:!0}));function t(t){return e.has(t.type)}var n=class e{_turns;constructor(e=[]){this._turns=[...e]}get turns(){return this._turns}getTurn(e){return this._turns.find(t=>t.id===e)}apply(e){return t(e)?this.applyTurnEvent(e):{handled:!1,event:e}}applyTurnEvent(t){switch(t.type){case`compaction:update`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`compaction`?{...e,...t.update.summary===void 0?{}:{summary:t.update.summary},...t.update.progress===void 0?{}:{progress:t.update.progress}}:e);case`compaction:complete`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`compaction`?{...e,status:`complete`,progress:1,...t.summary===void 0?{}:{summary:t.summary},timing:t.timing??e.timing}:e);case`compaction:error`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`compaction`?{...e,status:`error`,error:t.error,timing:t.timing??e.timing}:e);case`turn:user`:return this.replaceTurns([...this._turns,t.turn],t);case`turn:start`:{let e={id:t.turnId,owner:`agent`,parts:[],status:`streaming`,...t.timing?{timing:t.timing}:{}};return this.replaceTurns([...this._turns,e],t)}case`part:start`:return this.updateTurn(t.turnId,t,e=>({...e,parts:[...e.parts,t.part]}));case`text:delta`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`text`?{...e,text:e.text+t.delta}:e);case`text:citation`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`text`?{...e,citations:[...e.citations??[],t.citation]}:e);case`thinking:delta`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`thinking`?{...e,text:(e.text??``)+t.delta}:e);case`thinking:summary-delta`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`thinking`?{...e,summary:(e.summary??``)+t.delta}:e);case`thinking:update`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`thinking`?{...e,...t.redacted===void 0?{}:{redacted:t.redacted},...t.continuity?{continuity:t.continuity}:{},...t.providerMetadata?{providerMetadata:t.providerMetadata}:{}}:e);case`part:end`:return this.updatePart(t.turnId,t.partId,t,e=>({...e,timing:t.timing??e.timing}));case`action:args-delta`:return this.updatePart(t.turnId,t.partId,t,e=>e.type!==`action`||e.kind!==`tool`?e:{...e,detail:{...e.detail,pendingArgs:t.accumulated}});case`action:running`:return this.updatePart(t.turnId,t.partId,t,e=>{if(e.type!==`action`)return e;if(e.kind===`tool`){let{pendingArgs:n,...r}=e.detail;return{...e,status:`running`,detail:t.parameters?{...r,parameters:t.parameters}:r}}return{...e,status:`running`}});case`action:progress`:return this.updatePart(t.turnId,t.partId,t,e=>{if(e.type!==`action`)return e;let n=e.detail.result,r=n?.type===`in-progress`?n.content:``;return{...e,detail:{...e.detail,result:{type:`in-progress`,content:r+t.chunk}}}});case`action:complete`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`action`?{...e,status:`complete`,detail:{...e.detail,result:t.result},timing:t.timing??e.timing}:e);case`action:error`:return this.updatePart(t.turnId,t.partId,t,e=>e.type===`action`?{...e,status:`error`,detail:{...e.detail,result:{type:`error`,error:t.error}},timing:t.timing??e.timing}:e);case`turn:end`:return this.updateTurn(t.turnId,t,e=>({...e,status:t.status,usage:t.usage,timing:t.timing??e.timing}));case`annotation:start`:return this.addAnnotation(t);case`annotation:update`:return this.replaceAnnotation(t,!1);case`annotation:end`:return this.replaceAnnotation(t,!0);case`error`:return t.turnId?this.updateTurn(t.turnId,t,e=>({...e,error:t.error})):this.handled(t);case`action:child-event`:return this.updatePart(t.turnId,t.partId,t,n=>{if(n.type!==`action`||n.kind!==`agent`)return n;let r=new e(n.detail.children);return r.apply(t.event),{...n,detail:{...n.detail,children:[...r.turns]}}});default:return this.handled(t)}}replaceTurns(e,t){return this._turns=e,this.handled(t)}updateTurn(e,t,n){let r=!1,i=this._turns.map(t=>{if(t.id!==e)return t;let i=n(t);return i===t?t:(r=!0,i)});return r?this.replaceTurns(i,t):this.handled(t)}updatePart(e,t,n,r){return this.updateTurn(e,n,e=>{let n=!1,i=e.parts.map(e=>{if(e.id!==t)return e;let i=r(e);return i===e?e:(n=!0,i)});return n?{...e,parts:i}:e})}addAnnotation(e){let t=e.target,n=r(e.annotation);return n?t.type===`turn`?this.updateTurn(t.turnId,e,e=>({...e,annotations:[...e.annotations??[],n]})):this.updatePart(t.turnId,t.partId,e,e=>({...e,annotations:[...e.annotations??[],n]})):this.handled(e)}replaceAnnotation(e,t){let n=e.target,a=r(e.annotation,t);return a?n.type===`turn`?this.updateTurn(n.turnId,e,e=>{let t=i(e.annotations,a);return t?{...e,annotations:t}:e}):this.updatePart(n.turnId,n.partId,e,e=>{let t=i(e.annotations,a);return t?{...e,annotations:t}:e}):this.handled(e)}handled(e){return{handled:!0,event:e}}};function r(e,t=!1){if(!e)return;let n=t?e.status??`complete`:e.status,r={...e,placement:e.placement??`after`};return n?{...r,status:n}:r}function i(e,t){if(!e)return;let n=!1,r=e.map(e=>e.id===t.id?(n=!0,t):e);return n?r:void 0}export{n as t};