@productbrain/mcp 0.0.1-beta.16761 → 0.0.1-beta.16771

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.
@@ -337,6 +337,8 @@ function listCutLine(shown) {
337
337
  }
338
338
  var LIST_COUNTS_OF_ROWS_READ = "The counts here are of the rows read.";
339
339
  var ORIENT_TRUST_SCAN_LIMIT = 100;
340
+ var JOURNEY_MAX_SEEDS = 10;
341
+ var ROLE_ENTRIES_PAGE = 200;
340
342
 
341
343
  // src/lib/checklist.ts
342
344
  var FIRST_SPINE_SUBJECT = "work_package";
@@ -545,7 +547,7 @@ function isPreviewCreateEntryResult(result2) {
545
547
  var NARROW_IN_MCP = "Narrow it with context action=list collection=<slug> or status=<word>.";
546
548
  function searchStatusTip(cut, query, collection, status2) {
547
549
  const statusNamed = Array.isArray(status2) ? status2.length > 0 : !!status2;
548
- return cut && collection && !statusNamed ? `Narrow it with context action=search query="${query}" collection="${collection}" status=<word>.` : null;
550
+ return cut && collection && !statusNamed ? `Narrow it with context action=search query=${JSON.stringify(query)} collection=${JSON.stringify(collection)} status=<word>.` : null;
549
551
  }
550
552
  async function listEntriesWithCut(args, next = LIST_COUNTS_OF_ROWS_READ) {
551
553
  const { rows, truncated } = await kernelQuery("chain.listEntriesBounded", args);
@@ -3475,7 +3477,8 @@ var relationsActionUnion = z14.discriminatedUnion("action", [
3475
3477
  ]);
3476
3478
  var RELATIONS_ACTION_SPECS = {
3477
3479
  create: { params: ["from", "to", "type", "preview", "move"], description: "from, to, and type are required." },
3478
- "batch-create": { params: ["relations"], description: "relations (1-20 items) is required." },
3480
+ "batch-create": { params: ["relations"], description: `relations (1-${RELATION_BATCH_MAX} items) is required.` },
3481
+ // TASK-2309: the cap the server refuses past
3479
3482
  delete: { params: ["from", "to", "type"], description: "from, to, and type are required." }
3480
3483
  };
3481
3484
  function registerRelationsTools(server) {
@@ -4415,7 +4418,7 @@ function formatRow(row) {
4415
4418
  function formatSection(label2, rows, truncated, cursorHint) {
4416
4419
  if (rows.length === 0 && !truncated) return [` ${label2}: not recorded yet`];
4417
4420
  const lines = rows.length === 0 ? [` ${label2}: not recorded yet, but the scan is incomplete`] : [` ${label2}:`, ...rows.map(formatRow)];
4418
- if (truncated) lines.push(` (scan incomplete, more may exist \u2014 ${cursorHint ?? "raise limit (capped at 200, no cursor for this list)"})`);
4421
+ if (truncated) lines.push(` (scan incomplete, more may exist \u2014 ${cursorHint ?? `raise limit (capped at ${ROLE_ENTRIES_PAGE}, no cursor for this list)`})`);
4419
4422
  return lines;
4420
4423
  }
4421
4424
  function formatRoleAccountable(result2) {
@@ -5236,7 +5239,7 @@ No editing path is currently available \u2014 the \`map\` MCP tool and the Corte
5236
5239
  const lines = [
5237
5240
  `# Journey Context: ${result2.map.name}`,
5238
5241
  `**Template:** ${result2.map.templateName} | **Map ID:** ${result2.map.entryId}`,
5239
- `**Steps scanned:** ${result2.seedCount}${result2.truncated ? ` (capped at 10 \u2014 ${result2.stages.flatMap((s) => s.ingredients).length} total ingredients)` : ""}`,
5242
+ `**Steps scanned:** ${result2.seedCount}${result2.truncated ? ` (capped at ${JOURNEY_MAX_SEEDS} \u2014 ${result2.stages.flatMap((s) => s.ingredients).length} total ingredients)` : ""}`,
5240
5243
  `**Related knowledge:** ${result2.totalFound} entries`,
5241
5244
  "",
5242
5245
  "## Journey Stages"
@@ -12532,4 +12535,4 @@ export {
12532
12535
  SERVER_VERSION,
12533
12536
  createProductBrainServer
12534
12537
  };
12535
- //# sourceMappingURL=chunk-GSMNWDWV.js.map
12538
+ //# sourceMappingURL=chunk-GW5Z5CMQ.js.map