@productbrain/mcp 0.0.1-beta.15613 → 0.0.1-beta.15618

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.
@@ -284,7 +284,7 @@ var REASON_MAX_LENGTH = 200;
284
284
  var REASON_LENGTH_FIX = `Keep the reason to one line of at most ${REASON_MAX_LENGTH} characters.`;
285
285
  var REASON_WITHOUT_REPLACES = "A reason goes only with the entry this one replaces. Nothing was accepted.";
286
286
  var RELATION_BATCH_MAX = 25;
287
- var BATCH_GET_CHUNK = 4;
287
+ var BATCH_GET_CHUNK = 2;
288
288
  async function readInChunks(ids, read) {
289
289
  const chunks = Array.from({ length: Math.ceil(ids.length / BATCH_GET_CHUNK) }, (_, i) => ids.slice(i * BATCH_GET_CHUNK, (i + 1) * BATCH_GET_CHUNK));
290
290
  return (await Promise.all(chunks.map(read))).flat();
@@ -4818,10 +4818,10 @@ async function handleOpenTasks(roleId, cursor, entryId) {
4818
4818
  var LOOKUP_ACTIONS = ["get", "batch", "history", "list", "search", "find", "people", "outcome", "readings", "accountable", "tasks", "preflight"];
4819
4819
  var statusFilterSchema = z19.union([z19.string().max(200), z19.array(z19.enum(ENTRY_STATUS_READ_WORDS)).max(5)]);
4820
4820
  var preflightLinks = z19.array(z19.object({ type: z19.string().max(200), entryId: z19.string().max(200) })).max(50).optional();
4821
- var LOOKUP_ACTION_DESCRIBE = `'get': entries in full by ID (entryIds: up to 20, one call). 'batch': get with entryIds. 'history': audit trail for an entry. 'list': browse entries with filters (${TRUST_STATUS_LABELS.current.toLowerCase()} entries by default). 'search': full-text search across entries. 'find': an entry's direct relations (see direction). 'people': the workspace's members with name, email and status. 'outcome': a key result's view with its objective and siblings. 'readings': its readings, newest first. 'accountable': a role's work and holders. 'tasks': your role's due tasks, then those in no live package, or roleId's; entryId: every task under it. 'preflight': a collection's requirements. `;
4822
- var LOOKUP_TOOL_LINES = "- **get**: Full entries by ID: data, labels, relations, history. entryIds reads up to 20 in one call.\n- **batch**: get with entryIds.\n- **history**: Audit trail for an entry.\n- **list**: Browse entries by collection, status, tag or label; collections action=list names the slugs.\n- **search**: Full-text search; scope by collection or status.\n- **find**: An entry's direct relations, both ways; not text search.\n- **people**: The workspace's members: name, email, status, role. Max 200.\n- **outcome**: A key result's derived view (current, progress, pace, staleness, completion), its objective and up to 5 sibling key results.\n- **readings**: A key result's readings, newest first; a replaced row names its replacement. Record with `outcome action=record`.\n- **accountable**: What a role owns, reports on, and who holds it; no roleId: every seat.\n- **preflight**: What an entry in a collection needs; saves nothing.\n";
4821
+ var LOOKUP_ACTION_DESCRIBE = `'get': entries in full by ID (entryIds: up to 20). 'batch': get with entryIds. 'history': audit trail for an entry. 'list': browse entries with filters (${TRUST_STATUS_LABELS.current.toLowerCase()} entries by default). 'search': full-text search across entries. 'find': an entry's direct relations (see direction). 'people': the workspace's members with name, email and status. 'outcome': a key result's view with its objective and siblings. 'readings': its readings, newest first. 'accountable': a role's work and holders. 'tasks': your role's due tasks, then those in no live package, or roleId's; entryId: every task under it. 'preflight': a collection's requirements. `;
4822
+ var LOOKUP_TOOL_LINES = "- **get**: Full entries by ID: data, labels, relations, history. entryIds reads up to 20.\n- **batch**: get with entryIds.\n- **history**: Audit trail for an entry.\n- **list**: Browse entries by collection, status, tag or label; collections action=list names the slugs.\n- **search**: Full-text search; scope by collection or status.\n- **find**: An entry's direct relations, both ways; not text search.\n- **people**: The workspace's members: name, email, status, role. Max 200.\n- **outcome**: A key result's derived view (current, progress, pace, staleness, completion), its objective and up to 5 sibling key results.\n- **readings**: A key result's readings, newest first; a replaced row names its replacement. Record with `outcome action=record`.\n- **accountable**: What a role owns, reports on, and who holds it; no roleId: every seat.\n- **preflight**: What an entry in a collection needs; saves nothing.\n";
4823
4823
  var lookupParams = {
4824
- entryIds: z19.array(z19.string().max(200)).min(1).max(20).optional().describe("For 'get'/'batch': up to 20 entry IDs, one call."),
4824
+ entryIds: z19.array(z19.string().max(200)).min(1).max(20).optional().describe("For 'get'/'batch': up to 20 entry IDs."),
4825
4825
  collection: z19.string().max(200).optional().describe("For 'list'/'search': collection slug, e.g. 'glossary', 'tensions'. Required for 'preflight'."),
4826
4826
  query: z19.string().min(2).max(500).optional().describe("For 'search': search text."),
4827
4827
  // 'active'/'accepted'/'current' are the same trust level (DEC-1575/DEC-1788) — all enumerated, never one substituted.
@@ -4878,7 +4878,7 @@ var lookupVariants = [
4878
4878
  })
4879
4879
  ];
4880
4880
  var LOOKUP_ACTION_SPECS = {
4881
- get: { params: ["entryId", "entryIds"], description: "entryId, or entryIds (1-20) to read several in one call; one of the two." },
4881
+ get: { params: ["entryId", "entryIds"], description: "entryId, or entryIds (1-20) to read several; one of the two." },
4882
4882
  batch: { params: ["entryIds"], description: "entryIds (1-20) is required." },
4883
4883
  history: { params: ["entryId"], description: "entryId is required." },
4884
4884
  list: {
@@ -12650,4 +12650,4 @@ export {
12650
12650
  SERVER_VERSION,
12651
12651
  createProductBrainServer
12652
12652
  };
12653
- //# sourceMappingURL=chunk-BVGENCGC.js.map
12653
+ //# sourceMappingURL=chunk-SWO3JQ5V.js.map