@productbrain/mcp 0.0.1-beta.2131 → 0.0.1-beta.2140
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.
|
@@ -12002,11 +12002,6 @@ function domainDetailFromRetrieval(retrieval) {
|
|
|
12002
12002
|
const evidenceGap = typeof retrieval.evidenceGap === "string" ? retrieval.evidenceGap : null;
|
|
12003
12003
|
return reason || nextAction || evidenceGap ? { reason, nextAction, evidenceGap } : null;
|
|
12004
12004
|
}
|
|
12005
|
-
var NON_MEANINGFUL_TASK_RE = /^[\s]*$/u;
|
|
12006
|
-
function taskIsMeaningful(task) {
|
|
12007
|
-
if (typeof task !== "string") return false;
|
|
12008
|
-
return !NON_MEANINGFUL_TASK_RE.test(task);
|
|
12009
|
-
}
|
|
12010
12005
|
function reportOrientWrapperBytes(toolResult, truncated, tier, taskProvided) {
|
|
12011
12006
|
try {
|
|
12012
12007
|
const fullToolOutput = JSON.stringify({ content: toolResult.content ?? [] });
|
|
@@ -12086,7 +12081,6 @@ function registerOrientTool(server) {
|
|
|
12086
12081
|
async function _handleOrient({ mode = "full", tier, task, scope }) {
|
|
12087
12082
|
const errors = [];
|
|
12088
12083
|
const callTier = tier ?? (mode === "brief" ? "summary" : void 0);
|
|
12089
|
-
const resolvedTier = callTier ?? (taskIsMeaningful(task) ? "summary" : "standard");
|
|
12090
12084
|
if (scope && !task) {
|
|
12091
12085
|
errors.push("--scope requires --task to filter governance. Scope was ignored.");
|
|
12092
12086
|
}
|
|
@@ -12130,6 +12124,8 @@ async function _handleOrient({ mode = "full", tier, task, scope }) {
|
|
|
12130
12124
|
orientView = await kernelQuery("chain.getOrientView", orientArgs);
|
|
12131
12125
|
} catch {
|
|
12132
12126
|
}
|
|
12127
|
+
const resolvedTier = orientView?.resolvedTier ?? callTier ?? "standard";
|
|
12128
|
+
const taskMeaningful = orientView?.taskMeaningful ?? false;
|
|
12133
12129
|
let vocabCtx;
|
|
12134
12130
|
try {
|
|
12135
12131
|
const vocab = await kernelQuery("chain.getVocabulary", {});
|
|
@@ -12203,7 +12199,7 @@ async function _handleOrient({ mode = "full", tier, task, scope }) {
|
|
|
12203
12199
|
[{ tool: "start_pb", description: "Guided workspace setup", parameters: {} }]
|
|
12204
12200
|
)
|
|
12205
12201
|
};
|
|
12206
|
-
reportOrientWrapperBytes(blankResult, false, resolvedTier,
|
|
12202
|
+
reportOrientWrapperBytes(blankResult, false, resolvedTier, taskMeaningful);
|
|
12207
12203
|
return blankResult;
|
|
12208
12204
|
}
|
|
12209
12205
|
const lines = [];
|
|
@@ -12399,7 +12395,7 @@ async function _handleOrient({ mode = "full", tier, task, scope }) {
|
|
|
12399
12395
|
}
|
|
12400
12396
|
)
|
|
12401
12397
|
};
|
|
12402
|
-
reportOrientWrapperBytes(briefResult, briefTruncated, resolvedTier,
|
|
12398
|
+
reportOrientWrapperBytes(briefResult, briefTruncated, resolvedTier, taskMeaningful);
|
|
12403
12399
|
return briefResult;
|
|
12404
12400
|
}
|
|
12405
12401
|
const orientStage = readiness?.stage ?? "seeded";
|
|
@@ -12823,7 +12819,7 @@ async function _handleOrient({ mode = "full", tier, task, scope }) {
|
|
|
12823
12819
|
}
|
|
12824
12820
|
)
|
|
12825
12821
|
};
|
|
12826
|
-
reportOrientWrapperBytes(fullResult, fullTruncated, resolvedTier,
|
|
12822
|
+
reportOrientWrapperBytes(fullResult, fullTruncated, resolvedTier, taskMeaningful);
|
|
12827
12823
|
return fullResult;
|
|
12828
12824
|
}
|
|
12829
12825
|
|
|
@@ -14712,4 +14708,4 @@ export {
|
|
|
14712
14708
|
createProductBrainServer,
|
|
14713
14709
|
initFeatureFlags
|
|
14714
14710
|
};
|
|
14715
|
-
//# sourceMappingURL=chunk-
|
|
14711
|
+
//# sourceMappingURL=chunk-C3AA44PZ.js.map
|