llmist 0.2.0 → 0.2.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/index.d.cts CHANGED
@@ -728,7 +728,7 @@ interface ResolveModelOptions {
728
728
  * @example
729
729
  * ```typescript
730
730
  * resolveModel('gpt5') // → 'openai:gpt-5'
731
- * resolveModel('sonnet') // → 'anthropic:claude-3-5-sonnet-latest'
731
+ * resolveModel('sonnet') // → 'anthropic:claude-sonnet-4-5'
732
732
  * resolveModel('gpt-5-nano') // → 'openai:gpt-5-nano'
733
733
  * resolveModel('openai:gpt-5') // → 'openai:gpt-5' (passthrough)
734
734
  * resolveModel('claude-3-5-sonnet') // → 'anthropic:claude-3-5-sonnet'
package/dist/index.d.ts CHANGED
@@ -728,7 +728,7 @@ interface ResolveModelOptions {
728
728
  * @example
729
729
  * ```typescript
730
730
  * resolveModel('gpt5') // → 'openai:gpt-5'
731
- * resolveModel('sonnet') // → 'anthropic:claude-3-5-sonnet-latest'
731
+ * resolveModel('sonnet') // → 'anthropic:claude-sonnet-4-5'
732
732
  * resolveModel('gpt-5-nano') // → 'openai:gpt-5-nano'
733
733
  * resolveModel('openai:gpt-5') // → 'openai:gpt-5' (passthrough)
734
734
  * resolveModel('claude-3-5-sonnet') // → 'anthropic:claude-3-5-sonnet'
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createGadget
3
- } from "./chunk-MO5ONHPZ.js";
3
+ } from "./chunk-I55AV3WV.js";
4
4
  import {
5
5
  MockBuilder,
6
6
  MockManager,
@@ -13,7 +13,7 @@ import {
13
13
  mockLLM,
14
14
  validateAndApplyDefaults,
15
15
  validateGadgetParams
16
- } from "./chunk-PVHHXDCV.js";
16
+ } from "./chunk-VRTKJK2X.js";
17
17
  import {
18
18
  AgentBuilder,
19
19
  AnthropicMessagesProvider,
@@ -70,7 +70,7 @@ import {
70
70
  resolveRulesTemplate,
71
71
  runWithHandlers,
72
72
  stream
73
- } from "./chunk-J3NCIWMY.js";
73
+ } from "./chunk-VYBRYR2S.js";
74
74
 
75
75
  // src/index.ts
76
76
  init_builder();
@@ -164,17 +164,17 @@ var init_model_shortcuts = __esm({
164
164
  "gpt5-mini": "openai:gpt-5-mini",
165
165
  "gpt5-nano": "openai:gpt-5-nano",
166
166
  // Anthropic aliases
167
- sonnet: "anthropic:claude-3-5-sonnet-latest",
168
- "claude-sonnet": "anthropic:claude-3-5-sonnet-latest",
169
- haiku: "anthropic:claude-3-5-haiku-latest",
170
- "claude-haiku": "anthropic:claude-3-5-haiku-latest",
171
- opus: "anthropic:claude-3-opus-latest",
172
- "claude-opus": "anthropic:claude-3-opus-latest",
167
+ sonnet: "anthropic:claude-sonnet-4-5",
168
+ "claude-sonnet": "anthropic:claude-sonnet-4-5",
169
+ haiku: "anthropic:claude-haiku-4-5",
170
+ "claude-haiku": "anthropic:claude-haiku-4-5",
171
+ opus: "anthropic:claude-opus-4-5",
172
+ "claude-opus": "anthropic:claude-opus-4-5",
173
173
  // Gemini aliases
174
174
  flash: "gemini:gemini-2.0-flash",
175
175
  "gemini-flash": "gemini:gemini-2.0-flash",
176
- "gemini-pro": "gemini:gemini-2.0-pro",
177
- pro: "gemini:gemini-2.0-pro"
176
+ "gemini-pro": "gemini:gemini-2.5-pro",
177
+ pro: "gemini:gemini-2.5-pro"
178
178
  };
179
179
  KNOWN_MODEL_PATTERNS = [
180
180
  /^gpt-?\d/i,
@@ -2581,30 +2581,6 @@ var init_anthropic_models = __esm({
2581
2581
  "src/providers/anthropic-models.ts"() {
2582
2582
  "use strict";
2583
2583
  ANTHROPIC_MODELS = [
2584
- {
2585
- provider: "anthropic",
2586
- modelId: "claude-opus-4-5-20251124",
2587
- displayName: "Claude Opus 4.5",
2588
- contextWindow: 2e5,
2589
- maxOutputTokens: 64e3,
2590
- pricing: {
2591
- input: 5,
2592
- output: 25,
2593
- cachedInput: 0.5
2594
- },
2595
- knowledgeCutoff: "2025-03",
2596
- features: {
2597
- streaming: true,
2598
- functionCalling: true,
2599
- vision: true,
2600
- reasoning: true
2601
- },
2602
- metadata: {
2603
- family: "Claude 4",
2604
- releaseDate: "2025-11-24",
2605
- notes: "Most powerful model. 80.9% SWE-bench Verified, 66.3% OSWorld. Best for coding and computer use."
2606
- }
2607
- },
2608
2584
  {
2609
2585
  provider: "anthropic",
2610
2586
  modelId: "claude-sonnet-4-5-20250929",
@@ -2793,6 +2769,79 @@ var init_anthropic_models = __esm({
2793
2769
  releaseDate: "2024-03-07",
2794
2770
  notes: "Legacy model - upgrade to Haiku 4.5 for better performance"
2795
2771
  }
2772
+ },
2773
+ // Modern aliases (recommended by Anthropic)
2774
+ {
2775
+ provider: "anthropic",
2776
+ modelId: "claude-haiku-4-5",
2777
+ displayName: "Claude Haiku 4.5",
2778
+ contextWindow: 2e5,
2779
+ maxOutputTokens: 64e3,
2780
+ pricing: {
2781
+ input: 1,
2782
+ output: 5,
2783
+ cachedInput: 0.1
2784
+ },
2785
+ knowledgeCutoff: "2025-02",
2786
+ features: {
2787
+ streaming: true,
2788
+ functionCalling: true,
2789
+ vision: true,
2790
+ reasoning: true
2791
+ },
2792
+ metadata: {
2793
+ family: "Claude 4",
2794
+ releaseDate: "2025-10-01",
2795
+ notes: "Alias for claude-haiku-4-5-20251001. Fastest model with near-frontier intelligence."
2796
+ }
2797
+ },
2798
+ {
2799
+ provider: "anthropic",
2800
+ modelId: "claude-sonnet-4-5",
2801
+ displayName: "Claude Sonnet 4.5",
2802
+ contextWindow: 2e5,
2803
+ maxOutputTokens: 64e3,
2804
+ pricing: {
2805
+ input: 3,
2806
+ output: 15,
2807
+ cachedInput: 0.3
2808
+ },
2809
+ knowledgeCutoff: "2025-01",
2810
+ features: {
2811
+ streaming: true,
2812
+ functionCalling: true,
2813
+ vision: true,
2814
+ reasoning: true
2815
+ },
2816
+ metadata: {
2817
+ family: "Claude 4",
2818
+ releaseDate: "2025-09-29",
2819
+ notes: "Alias for claude-sonnet-4-5-20250929. Smartest model for complex agents and coding."
2820
+ }
2821
+ },
2822
+ {
2823
+ provider: "anthropic",
2824
+ modelId: "claude-opus-4-5",
2825
+ displayName: "Claude Opus 4.5",
2826
+ contextWindow: 2e5,
2827
+ maxOutputTokens: 64e3,
2828
+ pricing: {
2829
+ input: 5,
2830
+ output: 25,
2831
+ cachedInput: 0.5
2832
+ },
2833
+ knowledgeCutoff: "2025-03",
2834
+ features: {
2835
+ streaming: true,
2836
+ functionCalling: true,
2837
+ vision: true,
2838
+ reasoning: true
2839
+ },
2840
+ metadata: {
2841
+ family: "Claude 4",
2842
+ releaseDate: "2025-11-24",
2843
+ notes: "Alias for claude-opus-4-5-20251124. Most powerful model for coding and computer use."
2844
+ }
2796
2845
  }
2797
2846
  ];
2798
2847
  }