@algosuite/vo-mcp 0.2.0-beta.7 → 0.2.0-beta.8

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.js CHANGED
@@ -5935,6 +5935,9 @@ function createClaimClassifier(model, options = {}) {
5935
5935
  };
5936
5936
  }
5937
5937
 
5938
+ // src/constants/consensus-models.ts
5939
+ var XAI_CONSENSUS_MODEL = "grok-4.5";
5940
+
5938
5941
  // src/consensus/engine-client.ts
5939
5942
  function raceAbort(signal) {
5940
5943
  return new Promise((_, reject) => {
@@ -6085,6 +6088,7 @@ var DEFAULT_MODELS = {
6085
6088
  // Flash is also ~10x cheaper. 2026-06-02.
6086
6089
  google: "gemini-2.5-flash",
6087
6090
  deepseek: "deepseek-chat",
6091
+ xai: XAI_CONSENSUS_MODEL,
6088
6092
  meta: META_CONSENSUS_MODEL
6089
6093
  };
6090
6094
  function probeProviders(env = process.env) {
@@ -6093,6 +6097,7 @@ function probeProviders(env = process.env) {
6093
6097
  if ((env["OPENAI_API_KEY"] ?? "").trim().length > 0) out.push("openai");
6094
6098
  if ((env["GOOGLE_API_KEY"] ?? "").trim().length > 0) out.push("google");
6095
6099
  if ((env["DEEPSEEK_API_KEY"] ?? "").trim().length > 0) out.push("deepseek");
6100
+ if ((env["XAI_API_KEY"] ?? "").trim().length > 0) out.push("xai");
6096
6101
  if ((env[META_MODEL_API_KEY_ENV] ?? "").trim().length > 0 || (env[META_MODEL_API_KEY_ALIAS] ?? "").trim().length > 0) out.push("meta");
6097
6102
  return out;
6098
6103
  }
@@ -6116,7 +6121,7 @@ async function loadFactoryAndCallers(injectedEngine, injectedShared) {
6116
6121
  return { ok: false, reason: ENGINE_UNAVAILABLE_REASONS.FUNCTIONS_SHARED_NOT_INSTALLED };
6117
6122
  }
6118
6123
  }
6119
- if (sharedMod === null || typeof sharedMod !== "object" || typeof sharedMod.callAnthropicWithMetrics !== "function" || typeof sharedMod.callOpenAIWithMetrics !== "function" || typeof sharedMod.callGeminiWithMetrics !== "function") {
6124
+ if (sharedMod === null || typeof sharedMod !== "object" || typeof sharedMod.callAnthropicWithMetrics !== "function" || typeof sharedMod.callOpenAIWithMetrics !== "function" || typeof sharedMod.callGeminiWithMetrics !== "function" || typeof sharedMod.callXAIWithMetrics !== "function") {
6120
6125
  return { ok: false, reason: ENGINE_UNAVAILABLE_REASONS.FUNCTIONS_SHARED_NOT_INSTALLED };
6121
6126
  }
6122
6127
  return {
@@ -6140,6 +6145,7 @@ async function tryCreateEngineConsensusClientFromEnvAsync(options = {}) {
6140
6145
  openai: loaded.shared.callOpenAIWithMetrics,
6141
6146
  google: loaded.shared.callGeminiWithMetrics,
6142
6147
  deepseek: loaded.shared.callDeepSeekWithMetrics,
6148
+ xai: loaded.shared.callXAIWithMetrics,
6143
6149
  meta: options.metaCaller ?? callMetaWithMetrics
6144
6150
  };
6145
6151
  const modelByProvider = {
@@ -6147,6 +6153,7 @@ async function tryCreateEngineConsensusClientFromEnvAsync(options = {}) {
6147
6153
  openai: options.models?.openai ?? DEFAULT_MODELS.openai,
6148
6154
  google: options.models?.google ?? DEFAULT_MODELS.google,
6149
6155
  deepseek: options.models?.deepseek ?? DEFAULT_MODELS.deepseek,
6156
+ xai: options.models?.xai ?? DEFAULT_MODELS.xai,
6150
6157
  meta: options.models?.meta ?? DEFAULT_MODELS.meta
6151
6158
  };
6152
6159
  const adapterEnv = !(env[META_MODEL_API_KEY_ENV] ?? "").trim() && (env[META_MODEL_API_KEY_ALIAS] ?? "").trim() ? { ...env, [META_MODEL_API_KEY_ENV]: env[META_MODEL_API_KEY_ALIAS] } : env;