@burdenoff/mcp-libs 2026.1107.5 → 2026.1110.1

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.
Files changed (38) hide show
  1. package/dist/modules/botmanor/index.cjs +2018 -0
  2. package/dist/modules/botmanor/index.cjs.map +1 -0
  3. package/dist/modules/botmanor/index.d.ts +3 -0
  4. package/dist/modules/botmanor/index.js +1940 -0
  5. package/dist/modules/botmanor/index.js.map +1 -0
  6. package/dist/modules/botmanor/operations.d.ts +62 -0
  7. package/dist/modules/botmanor/prompts.d.ts +3 -0
  8. package/dist/modules/botmanor/resources.d.ts +3 -0
  9. package/dist/modules/botmanor/tool-annotations.d.ts +2 -0
  10. package/dist/modules/botmanor/tools/agents.d.ts +3 -0
  11. package/dist/modules/botmanor/tools/app-agents.d.ts +3 -0
  12. package/dist/modules/botmanor/tools/apps.d.ts +3 -0
  13. package/dist/modules/botmanor/tools/channels.d.ts +3 -0
  14. package/dist/modules/botmanor/tools/chat.d.ts +3 -0
  15. package/dist/modules/botmanor/tools/executions.d.ts +3 -0
  16. package/dist/modules/botmanor/tools/knowledge.d.ts +3 -0
  17. package/dist/modules/botmanor/tools/shared.d.ts +142 -0
  18. package/dist/modules/botmanor/tools/store.d.ts +3 -0
  19. package/dist/modules/cosmicintersection/tools/shared.d.ts +1 -1
  20. package/dist/modules/ggnomad/tools/shared.d.ts +1 -1
  21. package/dist/modules/headshotmarketing/tools/shared.d.ts +5 -5
  22. package/dist/modules/intelwatchtower/tools/shared.d.ts +1 -1
  23. package/dist/modules/mybodyshield/tools/shared.d.ts +2 -2
  24. package/dist/modules/planmagnet/tools/shared.d.ts +2 -2
  25. package/dist/modules/proserviceworld/index.cjs +59 -0
  26. package/dist/modules/proserviceworld/index.cjs.map +1 -1
  27. package/dist/modules/proserviceworld/index.js +59 -0
  28. package/dist/modules/proserviceworld/index.js.map +1 -1
  29. package/dist/modules/proserviceworld/operations.d.ts +1 -0
  30. package/dist/modules/proserviceworld/tools/precedents.d.ts +3 -0
  31. package/dist/modules/semanticfed/index.cjs +127 -20
  32. package/dist/modules/semanticfed/index.cjs.map +1 -1
  33. package/dist/modules/semanticfed/index.d.ts +1 -1
  34. package/dist/modules/semanticfed/index.js +110 -19
  35. package/dist/modules/semanticfed/index.js.map +1 -1
  36. package/dist/modules/semanticfed/tool-annotations.d.ts +4 -0
  37. package/dist/modules/subscriberbot/tools/shared.d.ts +4 -4
  38. package/package.json +1 -1
@@ -170,6 +170,18 @@ var CLOSE_MATTER = `
170
170
  }
171
171
  }
172
172
  `;
173
+ var PRECEDENT_MATCH_FIELDS = `
174
+ sourceType sourceId matterId engagementId clientId title snippet
175
+ matchedFields score isPrivileged updatedAt
176
+ `;
177
+ var FIND_PRECEDENTS = `
178
+ query PswFindPrecedents($input: PswFindPrecedentsInput!, $pagination: PaginationInput) {
179
+ pswFindPrecedents(input: $input, pagination: $pagination) {
180
+ items { ${PRECEDENT_MATCH_FIELDS} }
181
+ ${PAGE_INFO}
182
+ }
183
+ }
184
+ `;
173
185
  var LIST_INVOICES = `
174
186
  query PswListInvoices(
175
187
  $clientId: ID
@@ -1054,6 +1066,52 @@ function registerHealthTools(server, ctx, track) {
1054
1066
  }
1055
1067
  );
1056
1068
  }
1069
+ var PrecedentEntityTypeEnum = z.enum(["MATTER", "ENGAGEMENT", "DELIVERABLE", "DOCUMENT"]);
1070
+ function registerPrecedentTools(server, ctx, track) {
1071
+ server.registerTool(
1072
+ track(mcpToolName(ctx.productName, "precedents_find")),
1073
+ {
1074
+ title: "Find Precedents",
1075
+ description: `Search the firm's own prior work \u2014 matters, engagements, deliverables, and documents \u2014 for precedents matching a free-text query or an existing matter ("have we done this before?"). Returns ranked hits with cited evidence (source entity, matter/engagement/client ids, matched fields, excerpt). Results are access-scoped: matters the caller is walled off from never appear.`,
1076
+ inputSchema: {
1077
+ query: z.string().optional().describe("Free-text search query. Omit only when matterId is given."),
1078
+ matterId: z.string().optional().describe(
1079
+ "Derive the search text from this matter (the matter itself is excluded from results)"
1080
+ ),
1081
+ entityTypes: z.array(PrecedentEntityTypeEnum).optional().describe("Restrict to specific source types (default: all)"),
1082
+ practiceAreaId: z.string().optional().describe("Filter by practice-area ID"),
1083
+ clientId: z.string().optional().describe("Filter by client ID"),
1084
+ status: z.string().optional().describe("Filter by source entity status"),
1085
+ limit: z.number().int().optional().describe("Page size (default 20)"),
1086
+ offset: z.number().int().optional().describe("Pagination offset (default 0)")
1087
+ }
1088
+ },
1089
+ async ({ query, matterId, entityTypes, practiceAreaId, clientId, status, limit, offset }) => {
1090
+ try {
1091
+ if (query === void 0 && matterId === void 0) {
1092
+ return errorResult("Provide either query or matterId");
1093
+ }
1094
+ const input = {};
1095
+ if (query !== void 0) input.query = query;
1096
+ if (matterId !== void 0) input.matterId = matterId;
1097
+ if (entityTypes !== void 0) input.entityTypes = entityTypes;
1098
+ if (practiceAreaId !== void 0) input.practiceAreaId = practiceAreaId;
1099
+ if (clientId !== void 0) input.clientId = clientId;
1100
+ if (status !== void 0) input.status = status;
1101
+ const data = await ctx.gql.workspace.request(FIND_PRECEDENTS, {
1102
+ input,
1103
+ pagination: { limit: limit ?? 20, offset: offset ?? 0 }
1104
+ });
1105
+ return jsonResult(data.pswFindPrecedents);
1106
+ } catch (error) {
1107
+ ctx.logger.error("proserviceworld precedents_find failed", { error: String(error) });
1108
+ return errorResult(
1109
+ `Failed to find precedents: ${error instanceof Error ? error.message : String(error)}`
1110
+ );
1111
+ }
1112
+ }
1113
+ );
1114
+ }
1057
1115
 
1058
1116
  // src/modules/proserviceworld/resources.ts
1059
1117
  function registerProserviceworldResources(server, ctx, track) {
@@ -1331,6 +1389,7 @@ var proserviceworldModule = {
1331
1389
  registerComplianceTools(server, ctx, trackTool);
1332
1390
  registerPracticeTools(server, ctx, trackTool);
1333
1391
  registerHealthTools(server, ctx, trackTool);
1392
+ registerPrecedentTools(server, ctx, trackTool);
1334
1393
  registerProserviceworldResources(server, ctx, trackResource);
1335
1394
  registerProserviceworldPrompts(server, ctx, trackPrompt);
1336
1395
  return { tools, resources, prompts };