@productbrain/mcp 0.0.1-beta.12662 → 0.0.1-beta.12671

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.
@@ -4343,7 +4343,7 @@ var LOOKUP_TOOL_LINES = "- **get**: Fetch a single entry by ID \u2014 full recor
4343
4343
  var lookupParams = {
4344
4344
  entryIds: z20.array(z20.string().max(200)).min(1).max(20).optional().describe("For 'batch': entry IDs, e.g. ['TYPE-strategy', 'STR-jljeg7']"),
4345
4345
  collection: z20.string().max(200).optional().describe("For 'list'/'search': collection slug, e.g. 'glossary', 'tracking-events'. Required for 'preflight'."),
4346
- query: z20.string().min(2).max(500).optional().describe("For 'search': search text (min 2 characters)."),
4346
+ query: z20.string().min(2).max(500).optional().describe("For 'search': search text (at least 2 characters)."),
4347
4347
  // 'active'/'accepted'/'current' are the same trust level (DEC-1575/DEC-1788) — all enumerated, never one substituted.
4348
4348
  status: statusFilterSchema.optional().describe(
4349
4349
  `For 'list': defaults to ${TRUST_STATUS_LABELS.current.toLowerCase()} entries (active/accepted/current); use status='draft' to discover drafts. One lifecycle or category value (${ENTRY_STATUS_READ_WORDS.join("|")}). For 'search': one value OR an array of up to 5 (e.g. ['active','accepted']).`
@@ -4404,7 +4404,7 @@ var LOOKUP_ACTION_SPECS = {
4404
4404
  params: ["collection", "status", "tag", "label"],
4405
4405
  description: `Browse ${TRUST_STATUS_LABELS.current.toLowerCase()} entries by default; status='draft' lists drafts; status is one word. All params optional.`
4406
4406
  },
4407
- search: { params: ["query", "collection", "status"], description: "Full-text search; query is required (min 2 chars)." },
4407
+ search: { params: ["query", "collection", "status"], description: "Full-text search; query is required (at least 2 characters)." },
4408
4408
  find: { params: ["entryId", "direction"], description: "entryId is required." },
4409
4409
  people: { params: [], description: "No params." },
4410
4410
  outcome: { params: ["entryId"], description: "entryId is required." },
@@ -5720,7 +5720,7 @@ var collectionsSchema = z23.object({
5720
5720
  ),
5721
5721
  slug: z23.string().max(200).optional().describe("URL-safe identifier for create/update, e.g. 'glossary', 'tech-debt'. For label-*: label slug."),
5722
5722
  name: z23.string().max(ENTRY_NAME_MAX_CHARS).optional().describe("For label-*: the label's name. For update: refused (the catalog's)."),
5723
- description: z23.string().max(2e4).optional().describe("For label-*: what the label means (max 2,000 chars). For update: refused (the catalog's)."),
5723
+ description: z23.string().max(LABEL_DESCRIPTION_MAX_CHARS).optional().describe("For label-*: what the label means (at most 2,000 characters). For update: refused (the catalog's)."),
5724
5724
  purpose: z23.string().max(2e3).optional().describe("Why this collection exists \u2014 strategic reason"),
5725
5725
  icon: z23.string().max(50).optional().describe("For update: always refused \u2014 a collection's icon comes from the platform catalog."),
5726
5726
  navGroup: z23.enum(["daily", "strategic", "governance", "reference", "collections"]).optional().describe("Sidebar placement: 'daily', 'strategic', 'governance', 'reference', 'collections'"),
@@ -5731,7 +5731,7 @@ var collectionsSchema = z23.object({
5731
5731
  defaultWorkflowStatus: z23.string().max(200).optional().describe("Default workflowStatus for new entries. For update: always refused \u2014 the status words come from the platform catalog."),
5732
5732
  validWorkflowStatuses: z23.array(z23.string().max(200)).max(50).optional().describe("The allowed workflowStatus values for entries in this collection. For update: always refused \u2014 the status words come from the platform catalog."),
5733
5733
  // ENT-65, FEAT-200
5734
- classificationCheck: z23.string().max(500).optional().describe("LLM decision-tree check for this collection (3\u2013500 chars). Guides the classifier in routing entries here."),
5734
+ classificationCheck: z23.string().max(500).optional().describe("LLM decision-tree check for this collection (3 to 500 characters). Guides the classifier in routing entries here."),
5735
5735
  classificationPriority: z23.number().optional().describe("Classifier priority (1\u20139, lower = higher priority). Used with classificationCheck to order the decision tree."),
5736
5736
  qualityCriteria: z23.array(qualityCriterionSchema).max(50).optional().describe("Per-collection accept gate rules. 'required' rule hard-blocks accepts on empty fields; 'min_length'/'pattern' rules warn. Pass an empty array to clear all criteria."),
5737
5737
  statusList: z23.array(statusListEntrySchema).max(50).optional().describe("Ordered status vocabulary: {label, category, archiveDefault?}[]. For update: always refused \u2014 the status words come from the platform catalog."),
@@ -6629,7 +6629,7 @@ function checkDocCompleteness(collections, checkedAt) {
6629
6629
  field: "classificationCheck",
6630
6630
  message: `"${slug}" has classificationPriority but missing classificationCheck`,
6631
6631
  severity: "error",
6632
- fix: `Set classificationCheck (3\u2013500 chars) on the "${slug}" collection document`
6632
+ fix: `Set classificationCheck (3 to 500 characters) on the "${slug}" collection document`
6633
6633
  });
6634
6634
  }
6635
6635
  if (Array.isArray(col.validWorkflowStatuses) && col.validWorkflowStatuses.length === 0) {
@@ -10982,17 +10982,17 @@ var MESSAGE_DISPLAY_LIMIT = 1e3;
10982
10982
  var FULL_MESSAGE_MAX_LIMIT = 5;
10983
10983
  var feedbackSchema = z32.object({
10984
10984
  action: z32.enum(actions).describe("submit requires message; list returns your own workspace's feedback (all statuses); queue is the vendor triage queue (system admins only) and accepts filters; note requires feedbackId+note; group requires feedbackIds+groupId (null clears); status requires feedbackId+status and may carry tensionId and answer."),
10985
- message: z32.string().max(1e4).optional().describe("Required for submit: the product feedback text (max 10,000 characters)."),
10985
+ message: z32.string().max(1e4).optional().describe("Required for submit: the product feedback text (at most 10,000 characters)."),
10986
10986
  category: category.optional().describe("Submit/queue category; submit defaults to other."),
10987
10987
  command: z32.string().max(1e3).optional().describe("Optional submit command context; argument values are scrubbed server-side."),
10988
10988
  route: z32.string().max(500).optional().describe("Optional submit route context."),
10989
10989
  client: z32.string().max(100).optional().describe("Optional submit client label."),
10990
10990
  feedbackId: z32.string().max(200).optional().describe("Required for note/status: target feedback ID."),
10991
10991
  feedbackIds: z32.array(z32.string().max(200)).max(100).optional().describe("Required for group: 1\u2013100 target feedback IDs."),
10992
- note: z32.string().max(4e3).optional().describe("Required for note: replacement triage note (max 4,000 characters)."),
10992
+ note: z32.string().max(4e3).optional().describe("Required for note: replacement triage note (at most 4,000 characters)."),
10993
10993
  status: status.optional().describe("list/queue filter (any status, including 'screening'); the status action's required target value excludes 'screening' (system-only)."),
10994
10994
  tensionId: tensionId.optional().describe("status only: the tension the report joined, its display id TEN- and a number (vendor-only, never shown to the reporter)."),
10995
- answer: answer.optional().describe(`status only: the one sentence the reporter reads under their report, dated (max ${MAX_FEEDBACK_ANSWER_LENGTH} characters).`),
10995
+ answer: answer.optional().describe(`status only: the one sentence the reporter reads under their report, dated (at most ${MAX_FEEDBACK_ANSWER_LENGTH} characters).`),
10996
10996
  groupId: z32.string().min(1).max(200).nullable().optional().describe("Group filter, or required group destination; null explicitly clears grouping."),
10997
10997
  workspaceId: z32.string().max(200).optional().describe("Queue-only filter (vendor cross-workspace triage); omitted means all workspaces. Has no effect on list \u2014 your own workspace is always injected server-side."),
10998
10998
  since: z32.number().optional().describe("Queue-only lower createdAt window bound (inclusive) in epoch milliseconds."),
@@ -11070,7 +11070,7 @@ function truncateListItems(items, full) {
11070
11070
  if (typeof row.message !== "string" || row.message.length <= MESSAGE_DISPLAY_LIMIT) return item;
11071
11071
  return {
11072
11072
  ...row,
11073
- message: `${row.message.slice(0, MESSAGE_DISPLAY_LIMIT)}\u2026 (truncated, ${row.message.length} chars total)`
11073
+ message: `${row.message.slice(0, MESSAGE_DISPLAY_LIMIT)}\u2026 (truncated, ${row.message.length} characters total)`
11074
11074
  };
11075
11075
  });
11076
11076
  }
@@ -11198,7 +11198,7 @@ var questionSchema = z34.object({
11198
11198
  "'create': create a new routed question from text \u2014 the dedicated birth action; every question is born escalated to the team lead (generic entry creation and move-and-retype also pair a routing facet). 'assign': reassign ownership to a role (toRole required \u2014 no bare self-confirm, no toPerson). 'answer': close the loop \u2014 writes the answer on the question and moves it to answered; --entry links an existing decision instead. 'force-close': Team-Lead-only escape hatch \u2014 reason required. 'list': the ack-gate read model \u2014 what you owe (or, with mine:true, every question you asked, including closed ones)."
11199
11199
  ),
11200
11200
  entryId: z34.string().max(200).optional().describe("Target question's id (human TEN-nnn form or a raw entry id). Required for every action except 'create'/'list'."),
11201
- text: z34.string().max(5e3).optional().describe("'create': the question text. 'answer': the answer text (mutually exclusive with answerEntryId, max 2000 chars)."),
11201
+ text: z34.string().max(5e3).optional().describe("'create': the question text. 'answer': the answer text (mutually exclusive with answerEntryId, at most 2,000 characters)."),
11202
11202
  blocks: z34.array(z34.string().max(200)).max(50).optional().describe("'create': entry ids this question is blocking (repeatable)."),
11203
11203
  toRole: z34.string().max(200).optional().describe("'assign': reassign to this role (human ROL-nnn form or a raw entry id) \u2014 required."),
11204
11204
  reason: z34.string().max(2e3).optional().describe("'force-close': required reason."),
@@ -11981,4 +11981,4 @@ export {
11981
11981
  SERVER_VERSION,
11982
11982
  createProductBrainServer
11983
11983
  };
11984
- //# sourceMappingURL=chunk-HULJJZV4.js.map
11984
+ //# sourceMappingURL=chunk-2ZGIDGVQ.js.map