@mgsoftwarebv/mcp-server-bridge 3.3.5 → 3.3.6

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/index.js CHANGED
@@ -119809,6 +119809,10 @@ function tiptapToPlainText(content) {
119809
119809
  if (doc?.type !== "doc" || !Array.isArray(doc.content)) return content;
119810
119810
  return doc.content.map(renderNode).join("").trim();
119811
119811
  }
119812
+ function descriptionPlainText(content) {
119813
+ const text3 = tiptapToPlainText(content).trim();
119814
+ return text3 || null;
119815
+ }
119812
119816
 
119813
119817
  // src/tools/ticket-comments.ts
119814
119818
  async function handleAddTicketComment(input) {
@@ -120587,6 +120591,7 @@ ${text3.split("\n").map((l4) => ` ${l4}`).join("\n")}`;
120587
120591
  const tagsLine = ticketTags2.length > 0 ? `Tags: ${formatTagList(ticketTags2)}
120588
120592
  ` : `Tags: (none)
120589
120593
  `;
120594
+ const descriptionText = descriptionPlainText(ticketRow.description);
120590
120595
  const content = [
120591
120596
  {
120592
120597
  type: "text",
@@ -120599,7 +120604,7 @@ Status: ${ticketRow.status}
120599
120604
  Priority: ${ticketRow.priority}
120600
120605
  Type: ${ticketRow.type}
120601
120606
  ${ticketRow.dueDate ? `Deadline: ${new Date(ticketRow.dueDate).toLocaleDateString()}
120602
- ` : ""}${ticketRow.description ? `Description: ${tiptapToPlainText(ticketRow.description)}
120607
+ ` : ""}${descriptionText ? `Description: ${descriptionText}
120603
120608
  ` : ""}${ticketRow.project?.name ? `Project: ${ticketRow.project.name}
120604
120609
  ` : ""}${ticketRow.customer?.name ? `Customer: ${ticketRow.customer.name}
120605
120610
  ` : ""}` + tagsLine + assigneeLine + requesterLine + `Created: ${new Date(ticketRow.createdAt).toLocaleDateString()}
@@ -120743,7 +120748,7 @@ async function handleCreateTicket(input) {
120743
120748
  teamId: resolvedTeamId,
120744
120749
  ticketNumber,
120745
120750
  title,
120746
- description: description ?? null,
120751
+ description: ensureTipTapFormat(description),
120747
120752
  status,
120748
120753
  priority,
120749
120754
  type,