@productbrain/mcp 0.0.1-beta.14218 → 0.0.1-beta.14227

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.
@@ -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.map((r) => ` - ${formatRuleListRow(r)}`)];
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-KT4RGUWI.js.map
1862
+ //# sourceMappingURL=chunk-F4FYLPGO.js.map