@algosuite/vo-mcp 0.2.0-beta.16 → 0.2.0-beta.17

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/cli.js CHANGED
@@ -6243,59 +6243,15 @@ function createNullConsensusEngineClient(reason = NULL_CLIENT_DEFAULT_REASON) {
6243
6243
  }
6244
6244
 
6245
6245
  // src/consensus/meta-model-caller.ts
6246
- var META_MODEL_API_BASE_URL = "https://api.meta.ai/v1";
6247
6246
  var META_CONSENSUS_MODEL = "muse-spark-1.1";
6248
6247
  var META_MODEL_API_KEY_ENV = "MODEL_API_KEY";
6249
6248
  var META_MODEL_API_KEY_ALIAS = "META_API";
6250
- function resolveMetaKey(env) {
6251
- return String(env[META_MODEL_API_KEY_ENV] || env[META_MODEL_API_KEY_ALIAS] || "").trim();
6252
- }
6253
- function positiveMaxTokens(value) {
6254
- const parsed = Math.floor(Number(value));
6255
- return Number.isFinite(parsed) && parsed > 0 ? parsed : 2048;
6256
- }
6257
6249
  function createMetaModelCaller(options = {}) {
6258
- const fetchImpl = options.fetchImpl ?? fetch;
6259
- const envSource = options.envSource ?? process.env;
6260
- const reasoningEffort = options.reasoningEffort ?? "high";
6261
- return async function callMetaWithMetrics2(prompt, systemPrompt, model, maxTokens, _privacyOptions, signal) {
6262
- const key = resolveMetaKey(envSource);
6263
- if (!key) throw new Error(`Missing ${META_MODEL_API_KEY_ENV} for Meta Model API`);
6264
- const messages = [
6265
- ...systemPrompt ? [{ role: "system", content: systemPrompt }] : [],
6266
- { role: "user", content: prompt }
6267
- ];
6268
- const response = await fetchImpl(`${META_MODEL_API_BASE_URL}/chat/completions`, {
6269
- method: "POST",
6270
- headers: {
6271
- Authorization: `Bearer ${key}`,
6272
- "Content-Type": "application/json"
6273
- },
6274
- body: JSON.stringify({
6275
- model: model || META_CONSENSUS_MODEL,
6276
- messages,
6277
- max_tokens: positiveMaxTokens(maxTokens),
6278
- reasoning_effort: reasoningEffort
6279
- }),
6280
- signal
6281
- });
6282
- const payload = await response.json();
6283
- if (!response.ok) {
6284
- const message = String(payload.error?.message || response.statusText || "request failed").slice(0, 500);
6285
- throw Object.assign(new Error(`Meta Model API ${response.status}: ${message}`), { status: response.status });
6286
- }
6287
- const content = payload.choices?.[0]?.message?.content;
6288
- if (typeof content !== "string" || !content.trim()) {
6289
- throw new Error(`Meta Model API returned no text (finish=${payload.choices?.[0]?.finish_reason || "unknown"})`);
6290
- }
6291
- const inputTokens = Number(payload.usage?.prompt_tokens || 0);
6292
- const outputTokens = Number(payload.usage?.completion_tokens || 0);
6293
- return {
6294
- content,
6295
- inputTokens,
6296
- outputTokens,
6297
- totalTokens: Number(payload.usage?.total_tokens || inputTokens + outputTokens)
6298
- };
6250
+ void options;
6251
+ return async function callMetaWithMetrics2() {
6252
+ throw new Error(
6253
+ "Muse Spark direct consensus is disabled. Use an explicit sanitized task capsule through the AlgoSuite Model Firewall."
6254
+ );
6299
6255
  };
6300
6256
  }
6301
6257
  var callMetaWithMetrics = createMetaModelCaller();
@@ -6602,8 +6558,6 @@ function probeProviders(env = process.env) {
6602
6558
  if ((env["ANTHROPIC_API_KEY"] ?? "").trim().length > 0) out.push("anthropic");
6603
6559
  if ((env["OPENAI_API_KEY"] ?? "").trim().length > 0) out.push("openai");
6604
6560
  if ((env["GOOGLE_API_KEY"] ?? "").trim().length > 0) out.push("google");
6605
- if ((env["DEEPSEEK_API_KEY"] ?? "").trim().length > 0) out.push("deepseek");
6606
- if ((env[META_MODEL_API_KEY_ENV] ?? "").trim().length > 0 || (env[META_MODEL_API_KEY_ALIAS] ?? "").trim().length > 0) out.push("meta");
6607
6561
  return out;
6608
6562
  }
6609
6563
  async function loadFactoryAndCallers(injectedEngine, injectedShared) {