@productbrain/mcp 0.0.1-beta.8626 → 0.0.1-beta.8633
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.
|
@@ -7582,11 +7582,11 @@ function formatRuleListRow(row) {
|
|
|
7582
7582
|
function formatRuleListBucketLines(label, bucket, truncated) {
|
|
7583
7583
|
if (!bucket || bucket.rows.length === 0) return [];
|
|
7584
7584
|
const lines = [`${label}:`, ...bucket.rows.map((r) => ` - ${formatRuleListRow(r)}`)];
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7585
|
+
if (bucket.overCap > 0) {
|
|
7586
|
+
const cap = bucket.rows.length - bucket.overCap;
|
|
7587
|
+
const atLeast = truncated ? "at least " : "";
|
|
7588
|
+
lines.push(` (${atLeast}${bucket.rows.length} rules on a list capped at ${cap}: retire ${atLeast}${bucket.overCap} to fit; until then accept refuses new rules here.)`);
|
|
7589
|
+
}
|
|
7590
7590
|
return lines;
|
|
7591
7591
|
}
|
|
7592
7592
|
function formatRuleListTrailers(ruleLists) {
|
|
@@ -7594,6 +7594,9 @@ function formatRuleListTrailers(ruleLists) {
|
|
|
7594
7594
|
if (ruleLists.truncated) {
|
|
7595
7595
|
lines.push("(Some Current rules may be missing from these lists \u2014 the underlying read was truncated.)");
|
|
7596
7596
|
}
|
|
7597
|
+
if (ruleLists.namesTruncated) {
|
|
7598
|
+
lines.push("(Some rules show no owner or verifier: this serve looked up at most 100 distinct names.)");
|
|
7599
|
+
}
|
|
7597
7600
|
if (ruleLists.unassigned > 0) {
|
|
7598
7601
|
const atLeast = ruleLists.truncated ? "at least " : "";
|
|
7599
7602
|
lines.push(`(${atLeast}${ruleLists.unassigned} current rule(s) on no list reach no agent: a rule needs applies and one owner role; an everyone rule needs the root Team Lead as owner, a team rule an owner placed in a team.)`);
|
|
@@ -7616,7 +7619,14 @@ var RULE_LISTS_EVERYONE_ONLY_LABEL = "Rules (everyone list only; run `orient mod
|
|
|
7616
7619
|
var RULE_LISTS_UNAVAILABLE_LINE = "Rules: unavailable \u2014 rule list fetch failed, retry `orient mode=full`";
|
|
7617
7620
|
function buildEveryoneOnlyRuleListsLines(ruleLists) {
|
|
7618
7621
|
if (!ruleLists) return [];
|
|
7619
|
-
const everyoneOnly = {
|
|
7622
|
+
const everyoneOnly = {
|
|
7623
|
+
everyone: ruleLists.everyone,
|
|
7624
|
+
team: null,
|
|
7625
|
+
role: { rows: [], overCap: 0 },
|
|
7626
|
+
unassigned: ruleLists.unassigned,
|
|
7627
|
+
truncated: ruleLists.truncated,
|
|
7628
|
+
...ruleLists.namesTruncated ? { namesTruncated: true } : {}
|
|
7629
|
+
};
|
|
7620
7630
|
const bucketLines = formatRuleListsLines(everyoneOnly);
|
|
7621
7631
|
return [RULE_LISTS_EVERYONE_ONLY_LABEL, bucketLines.length > 0 ? bucketLines.join("\n") : "(none currently served)"];
|
|
7622
7632
|
}
|
|
@@ -7778,7 +7788,12 @@ async function buildAlreadyOrientedResult(kernelQuery2, agentSessionId, taskGrou
|
|
|
7778
7788
|
// and `ruleListsScope` says explicitly why, rather than shipping a shape a consumer could
|
|
7779
7789
|
// misread as "this session has no team/role rules".
|
|
7780
7790
|
...ruleLists ? {
|
|
7781
|
-
ruleLists: {
|
|
7791
|
+
ruleLists: {
|
|
7792
|
+
everyone: ruleLists.everyone,
|
|
7793
|
+
unassigned: ruleLists.unassigned,
|
|
7794
|
+
truncated: ruleLists.truncated,
|
|
7795
|
+
...ruleLists.namesTruncated ? { namesTruncated: true } : {}
|
|
7796
|
+
},
|
|
7782
7797
|
ruleListsScope: "everyone-only"
|
|
7783
7798
|
} : {},
|
|
7784
7799
|
// Round 1 review (PRRT_kwDORS4ils6mOeU8, TEN-3912): explicit `true` only on the rejection
|
|
@@ -14546,4 +14561,4 @@ export {
|
|
|
14546
14561
|
createProductBrainServer,
|
|
14547
14562
|
initFeatureFlags
|
|
14548
14563
|
};
|
|
14549
|
-
//# sourceMappingURL=chunk-
|
|
14564
|
+
//# sourceMappingURL=chunk-LDWP3UNV.js.map
|