@productbrain/mcp 0.0.1-beta.8617 → 0.0.1-beta.8626
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-FB2VAQOX.js → chunk-66OMK2AA.js} +1 -1
- package/dist/{chunk-FB2VAQOX.js.map → chunk-66OMK2AA.js.map} +1 -1
- package/dist/{chunk-WVXG6HXT.js → chunk-KZI7DTMP.js} +14 -5
- package/dist/chunk-KZI7DTMP.js.map +1 -0
- package/dist/cli/index.js +1 -1
- package/dist/http.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{setup-4HRTIJQA.js → setup-SM4BGXPL.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-WVXG6HXT.js.map +0 -1
- /package/dist/{setup-4HRTIJQA.js.map → setup-SM4BGXPL.js.map} +0 -0
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
trackQualityVerdict,
|
|
39
39
|
trackSessionCaptureRate,
|
|
40
40
|
trackZeroCaptureAuditFired
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-66OMK2AA.js";
|
|
42
42
|
|
|
43
43
|
// src/server.ts
|
|
44
44
|
import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -7569,15 +7569,24 @@ function sanitizeRuleListField(value) {
|
|
|
7569
7569
|
}
|
|
7570
7570
|
function formatRuleListRow(row) {
|
|
7571
7571
|
const entryId = sanitizeRuleListField(row.entryId);
|
|
7572
|
-
const owner = row.ownerRoleId ? sanitizeRuleListField(row.ownerRoleId) : "\u2014";
|
|
7573
7572
|
const team = row.teamId ? ` (team ${sanitizeRuleListField(row.teamId)})` : "";
|
|
7574
7573
|
const servedAt = row.servedAt ? ` \u2014 served ${new Date(row.servedAt).toISOString()}` : "";
|
|
7575
|
-
|
|
7574
|
+
const name = row.name ? sanitizeRuleListField(row.name) : "";
|
|
7575
|
+
if (!name) return `${entryId} \u2014 owner ${row.ownerRoleId ? sanitizeRuleListField(row.ownerRoleId) : "\u2014"}${team}${servedAt}`;
|
|
7576
|
+
const sentence = /[.!?]$/.test(name) ? name : `${name}.`;
|
|
7577
|
+
const why = row.why ? ` Why: ${sanitizeRuleListField(row.why)}` : "";
|
|
7578
|
+
const role = sanitizeRuleListField(row.ownerRoleName ?? row.ownerRoleId ?? "\u2014");
|
|
7579
|
+
const date = row.date ? `, ${sanitizeRuleListField(row.date)}` : "";
|
|
7580
|
+
return `${entryId} \u2014 ${sentence}${why} \u2014 ${role}${team}${date}${servedAt}`;
|
|
7576
7581
|
}
|
|
7577
7582
|
function formatRuleListBucketLines(label, bucket, truncated) {
|
|
7578
7583
|
if (!bucket || bucket.rows.length === 0) return [];
|
|
7579
7584
|
const lines = [`${label}:`, ...bucket.rows.map((r) => ` - ${formatRuleListRow(r)}`)];
|
|
7580
|
-
|
|
7585
|
+
const named = (bucket.overCapEntryIds ?? []).map(sanitizeRuleListField);
|
|
7586
|
+
const rest = Math.max(0, bucket.overCap - named.length);
|
|
7587
|
+
const more = rest > 0 ? ` and ${rest} more` : "";
|
|
7588
|
+
if (named.length > 0) lines.push(` (over the cap of ${bucket.rows.length}, not served: ${named.join(", ")}${more}${truncated ? "; the read was truncated, so more may exist" : ""})`);
|
|
7589
|
+
else if (bucket.overCap > 0) lines.push(` (${truncated ? "at least " : ""}+${bucket.overCap} more, capped)`);
|
|
7581
7590
|
return lines;
|
|
7582
7591
|
}
|
|
7583
7592
|
function formatRuleListTrailers(ruleLists) {
|
|
@@ -14537,4 +14546,4 @@ export {
|
|
|
14537
14546
|
createProductBrainServer,
|
|
14538
14547
|
initFeatureFlags
|
|
14539
14548
|
};
|
|
14540
|
-
//# sourceMappingURL=chunk-
|
|
14549
|
+
//# sourceMappingURL=chunk-KZI7DTMP.js.map
|