@antonbabenko/deliberation-mcp 3.7.0 → 3.7.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -632,9 +632,14 @@ var require_orchestrate = __commonJS({
632
632
  async function askOne2(provider, req, opts = {}) {
633
633
  return callProvider(provider, req, opts.logger || NULL_LOGGER, opts.tool || "ask-one", opts.cache, opts.orientationFiles);
634
634
  }
635
+ var MAX_PEER_OPINION_CHARS = 2e3;
636
+ function capPeerOpinion(text) {
637
+ if (typeof text !== "string" || text.length <= MAX_PEER_OPINION_CHARS) return text;
638
+ return text.slice(0, MAX_PEER_OPINION_CHARS) + "\n...[truncated]";
639
+ }
635
640
  function buildArbiterPrompt(question, opinions) {
636
641
  const blocks = opinions.map((o, i) => `### Opinion ${i + 1}
637
- ${o.text}`).join("\n\n");
642
+ ${capPeerOpinion(o.text)}`).join("\n\n");
638
643
  return [
639
644
  "You are the arbiter. Below are independent expert opinions on the same question.",
640
645
  "Cross-review them: note where they agree, where they disagree, and which view is best supported.",
@@ -688,7 +693,7 @@ ${blocks}`,
688
693
  const peerBlocks = results.map((r) => {
689
694
  if (r.isError) return `Peer ${r.source}: ERRORED`;
690
695
  const issues = (r.criticalIssues || []).map((i) => ` - [${i.category}] ${i.description}`).join("\n");
691
- return `Peer ${r.source}: ${r.verdict || "UNKNOWN"}${issues ? "\n" + issues : ""}`;
696
+ return capPeerOpinion(`Peer ${r.source}: ${r.verdict || "UNKNOWN"}${issues ? "\n" + issues : ""}`);
692
697
  }).join("\n");
693
698
  return [
694
699
  "ADJUDICATE the peer reviews below and give ONE overall verdict.",
@@ -790,7 +795,7 @@ ${feedback || "(reviewers gave no specific issues; tighten the weakest part)"}`
790
795
  opinions: lastResults
791
796
  };
792
797
  }
793
- module2.exports = { askAll: askAll2, askOne: askOne2, consensus: consensus2, buildArbiterPrompt, runToConvergence: runToConvergence2 };
798
+ module2.exports = { askAll: askAll2, askOne: askOne2, consensus: consensus2, buildArbiterPrompt, buildAdjudicationPrompt, runToConvergence: runToConvergence2 };
794
799
  }
795
800
  });
796
801
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antonbabenko/deliberation-mcp",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "description": "Deliberation for Claude Code and any MCP host - GPT, Gemini, Grok, and OpenRouter expert subagents.",
5
5
  "mcpName": "io.github.antonbabenko/deliberation",
6
6
  "repository": { "type": "git", "url": "git+https://github.com/antonbabenko/deliberation.git", "directory": "server/mcp" },