@productbrain/mcp 0.0.1-beta.14218 → 0.0.1-beta.14233
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-KT4RGUWI.js → chunk-F4FYLPGO.js} +3 -2
- package/dist/chunk-F4FYLPGO.js.map +1 -0
- package/dist/{chunk-V5WZ3G7W.js → chunk-RX4OW3OO.js} +13 -10
- package/dist/{chunk-V5WZ3G7W.js.map → chunk-RX4OW3OO.js.map} +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/http.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{setup-XNQM4Q3E.js → setup-23QCEKGB.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-KT4RGUWI.js.map +0 -1
- /package/dist/{setup-XNQM4Q3E.js.map → setup-23QCEKGB.js.map} +0 -0
|
@@ -211,9 +211,10 @@ function formatRuleListRow(row) {
|
|
|
211
211
|
const date = row.date ? `, ${sanitizeRuleListField(row.date)}` : "";
|
|
212
212
|
return `${entryId} \u2014 ${sentence}${why} \u2014 ${role}${team}${date}${servedAt}`;
|
|
213
213
|
}
|
|
214
|
+
var formatRuleBodyLines = (body) => (body?.replace(RULE_LIST_CONTROL_CHARS_RE, "").trim() || null)?.split("\n").map((l) => l.trimEnd() && ` ${l.trimEnd()}`) ?? [];
|
|
214
215
|
function formatRuleListBucketLines(label, bucket, truncated) {
|
|
215
216
|
if (!bucket || bucket.rows.length === 0) return [];
|
|
216
|
-
const lines = [`${label}:`, ...bucket.rows.
|
|
217
|
+
const lines = [`${label}:`, ...bucket.rows.flatMap((r) => [` - ${formatRuleListRow(r)}`, ...formatRuleBodyLines(r.body)])];
|
|
217
218
|
if (bucket.overCap > 0) {
|
|
218
219
|
const cap = bucket.rows.length - bucket.overCap;
|
|
219
220
|
const atLeast = truncated ? "at least " : "";
|
|
@@ -1858,4 +1859,4 @@ export {
|
|
|
1858
1859
|
appUrl,
|
|
1859
1860
|
apiKeysUrl
|
|
1860
1861
|
};
|
|
1861
|
-
//# sourceMappingURL=chunk-
|
|
1862
|
+
//# sourceMappingURL=chunk-F4FYLPGO.js.map
|