@productbrain/mcp 0.0.1-beta.12087 → 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.
- package/dist/{chunk-IC37VVQA.js → chunk-PD5WOI5O.js} +10 -9
- package/dist/{chunk-IC37VVQA.js.map → chunk-PD5WOI5O.js.map} +1 -1
- package/dist/{chunk-AT2VBGDM.js → chunk-WLWNFSAV.js} +2 -2
- package/dist/cli/index.js +1 -1
- package/dist/http.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{setup-6FSBINDY.js → setup-MXUCMJIY.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-AT2VBGDM.js.map → chunk-WLWNFSAV.js.map} +0 -0
- /package/dist/{setup-6FSBINDY.js.map → setup-MXUCMJIY.js.map} +0 -0
|
@@ -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
|
|
881
|
-
return details
|
|
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,12 +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
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
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;
|
|
978
979
|
}
|
|
979
980
|
function roleRetireNextLine(details) {
|
|
980
981
|
const retire = roleRetireDetailOf(details);
|
|
@@ -1783,4 +1784,4 @@ export {
|
|
|
1783
1784
|
appUrl,
|
|
1784
1785
|
apiKeysUrl
|
|
1785
1786
|
};
|
|
1786
|
-
//# sourceMappingURL=chunk-
|
|
1787
|
+
//# sourceMappingURL=chunk-PD5WOI5O.js.map
|