archondev 2.19.42 → 2.19.45

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.
@@ -79,6 +79,40 @@ var DEFAULT_TIER_CONFIG = {
79
79
  google: "gemini-3-flash-preview"
80
80
  }
81
81
  };
82
+ var CHEAP_TIER_CONFIG = {
83
+ PLANNING: {
84
+ anthropic: "claude-haiku-4-5",
85
+ openai: "gpt-4o-mini",
86
+ google: "gemini-3-flash-preview"
87
+ },
88
+ REASONING: {
89
+ anthropic: "claude-haiku-4-5",
90
+ openai: "gpt-4o-mini",
91
+ google: "gemini-3-flash-preview"
92
+ },
93
+ EXECUTION: {
94
+ anthropic: "claude-haiku-4-5",
95
+ openai: "gpt-4o-mini",
96
+ google: "gemini-3-flash-preview"
97
+ }
98
+ };
99
+ var MAX_QUALITY_TIER_CONFIG = {
100
+ PLANNING: {
101
+ anthropic: "claude-opus-4-6",
102
+ openai: "gpt-5.3-codex",
103
+ google: "gemini-3.1-pro-preview"
104
+ },
105
+ REASONING: {
106
+ anthropic: "claude-opus-4-6",
107
+ openai: "gpt-5.3-codex",
108
+ google: "gemini-3.1-pro-preview"
109
+ },
110
+ EXECUTION: {
111
+ anthropic: "claude-sonnet-4-6",
112
+ openai: "gpt-5.3-codex",
113
+ google: "gemini-3.1-pro-preview"
114
+ }
115
+ };
82
116
  var FREE_TIER_MODELS = {
83
117
  anthropic: "gpt-5-nano",
84
118
  // No free Anthropic, fall back to OpenAI
@@ -144,7 +178,7 @@ var SmartModelRouter = class {
144
178
  };
145
179
  }
146
180
  }
147
- const tierConfig = await this.getTierConfiguration();
181
+ const tierConfig = await this.getTierConfiguration(preferences?.routingProfile);
148
182
  return this.selectFromTierConfig(tier, tierConfig, availableProviders, preferences);
149
183
  }
150
184
  /**
@@ -270,7 +304,13 @@ var SmartModelRouter = class {
270
304
  /**
271
305
  * Get tier configuration (from database or fallback)
272
306
  */
273
- static async getTierConfiguration() {
307
+ static async getTierConfiguration(routingProfile = "balanced") {
308
+ if (routingProfile === "cheap") {
309
+ return CHEAP_TIER_CONFIG;
310
+ }
311
+ if (routingProfile === "max_quality") {
312
+ return MAX_QUALITY_TIER_CONFIG;
313
+ }
274
314
  const now = Date.now();
275
315
  if (cachedTierConfig && now - cacheTimestamp < CACHE_TTL_MS) {
276
316
  return cachedTierConfig;