@productbrain/mcp 0.0.1-beta.7330 → 0.0.1-beta.7347
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.
|
@@ -14226,7 +14226,6 @@ async function buildOrientationResourceText(kernelQuery2) {
|
|
|
14226
14226
|
kernelQuery2("chain.listEntries", { collectionSlug: "principles" }),
|
|
14227
14227
|
kernelQuery2("chain.getOrientView", {
|
|
14228
14228
|
tier: "summary",
|
|
14229
|
-
renderMode: "json",
|
|
14230
14229
|
invocationPath: "unknown"
|
|
14231
14230
|
})
|
|
14232
14231
|
]);
|
|
@@ -14234,8 +14233,16 @@ async function buildOrientationResourceText(kernelQuery2) {
|
|
|
14234
14233
|
const standards = standardsResult.status === "fulfilled" ? standardsResult.value : null;
|
|
14235
14234
|
const businessRules = rulesResult.status === "fulfilled" ? rulesResult.value : null;
|
|
14236
14235
|
const principles = principlesResult.status === "fulfilled" ? principlesResult.value : null;
|
|
14237
|
-
|
|
14238
|
-
|
|
14236
|
+
let directionLines;
|
|
14237
|
+
if (orientViewResult.status === "rejected") {
|
|
14238
|
+
const reason = orientViewResult.reason instanceof Error ? orientViewResult.reason.message : String(orientViewResult.reason);
|
|
14239
|
+
const normalized = sanitizeSingleLineField(reason);
|
|
14240
|
+
const truncated = normalized.length > 120 ? `${normalized.slice(0, 120)}\u2026` : normalized;
|
|
14241
|
+
directionLines = [`_Strategic context unavailable: the spine read failed (${truncated})_`];
|
|
14242
|
+
} else {
|
|
14243
|
+
const orientView = orientViewResult.value;
|
|
14244
|
+
directionLines = buildDirectionLines(orientView);
|
|
14245
|
+
}
|
|
14239
14246
|
return buildOrientationMarkdown(collections, standards, businessRules, principles, directionLines);
|
|
14240
14247
|
}
|
|
14241
14248
|
|
|
@@ -14888,4 +14895,4 @@ export {
|
|
|
14888
14895
|
createProductBrainServer,
|
|
14889
14896
|
initFeatureFlags
|
|
14890
14897
|
};
|
|
14891
|
-
//# sourceMappingURL=chunk-
|
|
14898
|
+
//# sourceMappingURL=chunk-GCBQCCDK.js.map
|