@productbrain/mcp 0.0.1-beta.12084 → 0.0.1-beta.12095

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.
@@ -877,8 +877,8 @@ import { AsyncLocalStorage as AsyncLocalStorage3 } from "async_hooks";
877
877
  function spineKindPlaceholder(kind) {
878
878
  return `<${kind.toUpperCase().replace(/_/g, "-")}-ID>`;
879
879
  }
880
- function spineNextOf(details) {
881
- return details?.map((d) => d?.spineNext).find(Boolean) ?? null;
880
+ function spineNextsOf(details) {
881
+ return (details ?? []).map((d) => d?.spineNext).filter((n) => Boolean(n));
882
882
  }
883
883
  var SPINE_RUNG_SEQUENCE = [
884
884
  { relationType: "validates", targetKey: "key_result", gapIfMissing: "key_result_missing" },
@@ -969,11 +969,13 @@ function authorityRecovery(refusal) {
969
969
  return typeof refusal?.requiredAction === "string" ? refusal.requiredAction : void 0;
970
970
  }
971
971
  function spineNextLine(details) {
972
- const next = spineNextOf(details);
973
- if (!next) return null;
974
- if (next.action === "accept") return `Next: ${acceptCall(next.entryId, next.replaces)}.`;
975
- const to = next.to ?? spineKindPlaceholder(next.toKind);
976
- return `Next: \`relations action=create from="${next.from}" type="${next.type}" to="${to}"\`.`;
972
+ const lines = spineNextsOf(details).map((next) => {
973
+ if (next.action === "accept") return `Next: ${acceptCall(next.entryId, next.replaces)}.`;
974
+ const to = next.to ?? spineKindPlaceholder(next.toKind);
975
+ if (next.move) return `Add \`move: true\` to move it. Next: \`relations action=create from="${next.from}" type="${next.type}" to="${to}" move=true\`.`;
976
+ return `Next: \`relations action=create from="${next.from}" type="${next.type}" to="${to}"\`.`;
977
+ });
978
+ return lines.length ? lines.join("\n") : null;
977
979
  }
978
980
  function roleRetireNextLine(details) {
979
981
  const retire = roleRetireDetailOf(details);
@@ -1782,4 +1784,4 @@ export {
1782
1784
  appUrl,
1783
1785
  apiKeysUrl
1784
1786
  };
1785
- //# sourceMappingURL=chunk-4DVP3ALV.js.map
1787
+ //# sourceMappingURL=chunk-PD5WOI5O.js.map