@productbrain/mcp 0.0.1-beta.3322 → 0.0.1-beta.3332

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.
@@ -14750,23 +14750,35 @@ async function handleShapeList(disposition, outcome, limit) {
14750
14750
  const noFiltersGiven = disposition === void 0 && outcome === void 0;
14751
14751
  const effectiveDisposition = disposition ?? (noFiltersGiven ? "pending" : void 0);
14752
14752
  const effectiveOutcome = outcome ?? (noFiltersGiven ? "compound" : void 0);
14753
- const items = await kernelQuery("chain.shapeAdvisories", {
14753
+ const workspaceId = await getWorkspaceId();
14754
+ const envelope = await kernelCallEnvelope("chain.shapeAdvisories", {
14754
14755
  ...effectiveDisposition ? { disposition: effectiveDisposition } : {},
14755
14756
  ...effectiveOutcome ? { outcome: effectiveOutcome } : {},
14756
- ...limit ? { limit } : {}
14757
+ ...limit ? { limit } : {},
14758
+ workspaceId
14757
14759
  });
14760
+ const items = envelope.data;
14761
+ const truncated = Boolean(envelope._meta?.truncated);
14762
+ const truncationNote = "Note: this list may be incomplete \u2014 the scan stopped at its safety bound before finding every match. Narrow disposition/outcome or raise limit and re-run.";
14758
14763
  if (items.length === 0) {
14759
- return successResult("No shape advisories match.", "No shape advisories found.", { items: [], count: 0 });
14764
+ return successResult(
14765
+ truncated ? `No shape advisories match.
14766
+
14767
+ ${truncationNote}` : "No shape advisories match.",
14768
+ truncated ? "No shape advisories found (result may be incomplete \u2014 safety bound reached)." : "No shape advisories found.",
14769
+ { items: [], count: 0, truncated }
14770
+ );
14760
14771
  }
14761
14772
  const lines = ["# Shape Advisories", ""];
14762
14773
  for (const item of items) {
14763
14774
  const verdict = item.outcome === "unavailable" && item.unavailableReason ? `unavailable(${item.unavailableReason})` : item.outcome;
14764
14775
  lines.push(`- \`${item.id}\` \u2014 ${item.subjectEntryId} \xB7 ${verdict} \xB7 disposition:${item.disposition} \xB7 ${item.source}`);
14765
14776
  }
14777
+ if (truncated) lines.push("", truncationNote);
14766
14778
  return successResult(
14767
14779
  lines.join("\n"),
14768
- `Found ${items.length} shape advisor${items.length === 1 ? "y" : "ies"}.`,
14769
- { items, count: items.length },
14780
+ `Found ${items.length} shape advisor${items.length === 1 ? "y" : "ies"}.${truncated ? " (list may be incomplete \u2014 safety bound reached)" : ""}`,
14781
+ { items, count: items.length, truncated },
14770
14782
  [{ tool: "shape", description: "Show one advisory in full", parameters: { action: "show", rowId: items[0].id } }]
14771
14783
  );
14772
14784
  }
@@ -15798,4 +15810,4 @@ export {
15798
15810
  createProductBrainServer,
15799
15811
  initFeatureFlags
15800
15812
  };
15801
- //# sourceMappingURL=chunk-AWDYYGKN.js.map
15813
+ //# sourceMappingURL=chunk-ELT5HIZ4.js.map