@burdenoff/mcp-libs 2026.1014.4 → 2026.1026.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 (829) hide show
  1. package/dist/{chunk-G76DKEPI.js → chunk-FHXCNP2U.js} +36 -4
  2. package/dist/chunk-FHXCNP2U.js.map +1 -0
  3. package/dist/{chunk-SX6IGKZH.js → chunk-S2DM4KCX.js} +3 -3
  4. package/dist/{chunk-SX6IGKZH.js.map → chunk-S2DM4KCX.js.map} +1 -1
  5. package/dist/core/auth/device-code.d.ts +50 -0
  6. package/dist/core/auth/index.d.ts +2 -0
  7. package/dist/core/auth/store.d.ts +26 -0
  8. package/dist/core/capabilities.d.ts +16 -0
  9. package/dist/core/config/store.d.ts +39 -0
  10. package/dist/core/context.d.ts +35 -0
  11. package/dist/core/errors.d.ts +15 -0
  12. package/dist/core/gql/client.d.ts +14 -0
  13. package/dist/core/index.cjs +35 -1
  14. package/dist/core/index.cjs.map +1 -1
  15. package/dist/core/index.d.ts +14 -59
  16. package/dist/core/index.js +1 -1
  17. package/dist/core/logger.d.ts +18 -0
  18. package/dist/core/module.d.ts +33 -0
  19. package/dist/core/progress.d.ts +5 -0
  20. package/dist/core/result.d.ts +29 -0
  21. package/dist/core/server.d.ts +15 -0
  22. package/dist/core/tool-governance.d.ts +14 -0
  23. package/dist/core/tool-name.d.ts +7 -0
  24. package/dist/index.cjs +19 -1
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.ts +3 -7
  27. package/dist/index.js +1 -1
  28. package/dist/modules/adaptercloud/index.cjs.map +1 -1
  29. package/dist/modules/adaptercloud/index.d.ts +2 -7
  30. package/dist/modules/adaptercloud/index.js +1 -1
  31. package/dist/modules/adaptercloud/operations.d.ts +47 -0
  32. package/dist/modules/adaptercloud/prompts.d.ts +3 -0
  33. package/dist/modules/adaptercloud/resources.d.ts +3 -0
  34. package/dist/modules/adaptercloud/tools/adapters.d.ts +3 -0
  35. package/dist/modules/adaptercloud/tools/connections.d.ts +3 -0
  36. package/dist/modules/adaptercloud/tools/cost.d.ts +3 -0
  37. package/dist/modules/adaptercloud/tools/drift.d.ts +3 -0
  38. package/dist/modules/adaptercloud/tools/health.d.ts +3 -0
  39. package/dist/modules/adaptercloud/tools/policies.d.ts +3 -0
  40. package/dist/modules/adaptercloud/tools/resources.d.ts +3 -0
  41. package/dist/modules/adaptercloud/tools/shared.d.ts +25 -0
  42. package/dist/modules/adaptercloud/tools/sync.d.ts +3 -0
  43. package/dist/modules/adaptercloud/tools/topology.d.ts +3 -0
  44. package/dist/modules/adaptercloud/tools/violations.d.ts +3 -0
  45. package/dist/modules/artistrybase/index.cjs.map +1 -1
  46. package/dist/modules/artistrybase/index.d.ts +2 -7
  47. package/dist/modules/artistrybase/index.js +1 -1
  48. package/dist/modules/artistrybase/operations.d.ts +63 -0
  49. package/dist/modules/artistrybase/prompts.d.ts +3 -0
  50. package/dist/modules/artistrybase/resources.d.ts +3 -0
  51. package/dist/modules/artistrybase/tools/health.d.ts +3 -0
  52. package/dist/modules/artistrybase/tools/library.d.ts +3 -0
  53. package/dist/modules/artistrybase/tools/portfolio.d.ts +3 -0
  54. package/dist/modules/artistrybase/tools/production.d.ts +3 -0
  55. package/dist/modules/artistrybase/tools/review.d.ts +3 -0
  56. package/dist/modules/artistrybase/tools/shared.d.ts +14 -0
  57. package/dist/modules/assethandler/index.cjs.map +1 -1
  58. package/dist/modules/assethandler/index.d.ts +2 -7
  59. package/dist/modules/assethandler/index.js +1 -1
  60. package/dist/modules/assethandler/operations.d.ts +57 -0
  61. package/dist/modules/assethandler/prompts.d.ts +3 -0
  62. package/dist/modules/assethandler/resources.d.ts +3 -0
  63. package/dist/modules/assethandler/tools/analytics.d.ts +3 -0
  64. package/dist/modules/assethandler/tools/assets.d.ts +3 -0
  65. package/dist/modules/assethandler/tools/finance.d.ts +3 -0
  66. package/dist/modules/assethandler/tools/governance.d.ts +3 -0
  67. package/dist/modules/assethandler/tools/innovation.d.ts +3 -0
  68. package/dist/modules/assethandler/tools/service.d.ts +3 -0
  69. package/dist/modules/assethandler/tools/shared.d.ts +18 -0
  70. package/dist/modules/atheletebridge/index.cjs.map +1 -1
  71. package/dist/modules/atheletebridge/index.d.ts +2 -7
  72. package/dist/modules/atheletebridge/index.js +1 -1
  73. package/dist/modules/atheletebridge/operations.d.ts +42 -0
  74. package/dist/modules/atheletebridge/prompts.d.ts +3 -0
  75. package/dist/modules/atheletebridge/resources.d.ts +3 -0
  76. package/dist/modules/atheletebridge/tools/fixtures.d.ts +3 -0
  77. package/dist/modules/atheletebridge/tools/health.d.ts +3 -0
  78. package/dist/modules/atheletebridge/tools/programs.d.ts +3 -0
  79. package/dist/modules/atheletebridge/tools/sessions.d.ts +3 -0
  80. package/dist/modules/atheletebridge/tools/shared.d.ts +14 -0
  81. package/dist/modules/atheletebridge/tools/teams.d.ts +3 -0
  82. package/dist/modules/atheletebridge/tools/workouts.d.ts +3 -0
  83. package/dist/modules/auth/extra-tools.d.ts +3 -0
  84. package/dist/modules/auth/index.cjs +3 -1
  85. package/dist/modules/auth/index.cjs.map +1 -1
  86. package/dist/modules/auth/index.d.ts +3 -50
  87. package/dist/modules/auth/index.js +6 -4
  88. package/dist/modules/auth/index.js.map +1 -1
  89. package/dist/modules/auth/{index.d.cts → legacy-auth.d.ts} +6 -14
  90. package/dist/modules/auth/more-tools.d.ts +3 -0
  91. package/dist/modules/auth/operations.d.ts +35 -0
  92. package/dist/modules/auth/tools.d.ts +3 -0
  93. package/dist/modules/billing/index.cjs.map +1 -1
  94. package/dist/modules/billing/index.d.ts +2 -7
  95. package/dist/modules/billing/index.js +1 -1
  96. package/dist/modules/billing/operations.d.ts +17 -0
  97. package/dist/modules/billing/tools.d.ts +3 -0
  98. package/dist/modules/brainyrich/index.cjs.map +1 -1
  99. package/dist/modules/brainyrich/index.d.ts +2 -7
  100. package/dist/modules/brainyrich/index.js +1 -1
  101. package/dist/modules/brainyrich/operations.d.ts +57 -0
  102. package/dist/modules/brainyrich/prompts.d.ts +3 -0
  103. package/dist/modules/brainyrich/resources.d.ts +3 -0
  104. package/dist/modules/brainyrich/tools/accounts.d.ts +3 -0
  105. package/dist/modules/brainyrich/tools/analytics.d.ts +3 -0
  106. package/dist/modules/brainyrich/tools/goals.d.ts +3 -0
  107. package/dist/modules/brainyrich/tools/holdings.d.ts +3 -0
  108. package/dist/modules/brainyrich/tools/households.d.ts +3 -0
  109. package/dist/modules/brainyrich/tools/insights.d.ts +3 -0
  110. package/dist/modules/brainyrich/tools/modelPortfolios.d.ts +3 -0
  111. package/dist/modules/brainyrich/tools/portfolios.d.ts +3 -0
  112. package/dist/modules/brainyrich/tools/rebalance.d.ts +3 -0
  113. package/dist/modules/brainyrich/tools/shared.d.ts +16 -0
  114. package/dist/modules/brainyrich/tools/transactions.d.ts +3 -0
  115. package/dist/modules/buildmyiq/index.cjs.map +1 -1
  116. package/dist/modules/buildmyiq/index.d.ts +2 -7
  117. package/dist/modules/buildmyiq/index.js +1 -1
  118. package/dist/modules/buildmyiq/operations.d.ts +43 -0
  119. package/dist/modules/buildmyiq/prompts.d.ts +3 -0
  120. package/dist/modules/buildmyiq/resources.d.ts +3 -0
  121. package/dist/modules/buildmyiq/tools/assessments.d.ts +3 -0
  122. package/dist/modules/buildmyiq/tools/certificates.d.ts +3 -0
  123. package/dist/modules/buildmyiq/tools/cohorts.d.ts +3 -0
  124. package/dist/modules/buildmyiq/tools/courses.d.ts +3 -0
  125. package/dist/modules/buildmyiq/tools/enrollments.d.ts +3 -0
  126. package/dist/modules/buildmyiq/tools/health.d.ts +3 -0
  127. package/dist/modules/buildmyiq/tools/lessons.d.ts +3 -0
  128. package/dist/modules/buildmyiq/tools/modules.d.ts +3 -0
  129. package/dist/modules/buildmyiq/tools/shared.d.ts +14 -0
  130. package/dist/modules/buildmyiq/tools/skills.d.ts +3 -0
  131. package/dist/modules/buildmyiq/tools/submissions.d.ts +3 -0
  132. package/dist/modules/channels/index.cjs.map +1 -1
  133. package/dist/modules/channels/index.d.ts +2 -7
  134. package/dist/modules/channels/index.js +1 -1
  135. package/dist/modules/channels/operations.d.ts +12 -0
  136. package/dist/modules/channels/tools.d.ts +3 -0
  137. package/dist/modules/collabkin/index.cjs.map +1 -1
  138. package/dist/modules/collabkin/index.d.ts +2 -7
  139. package/dist/modules/collabkin/index.js +1 -1
  140. package/dist/modules/collabkin/operations.d.ts +41 -0
  141. package/dist/modules/collabkin/prompts.d.ts +3 -0
  142. package/dist/modules/collabkin/resources.d.ts +3 -0
  143. package/dist/modules/collabkin/tools/comments.d.ts +3 -0
  144. package/dist/modules/collabkin/tools/health.d.ts +3 -0
  145. package/dist/modules/collabkin/tools/memberships.d.ts +3 -0
  146. package/dist/modules/collabkin/tools/memories.d.ts +3 -0
  147. package/dist/modules/collabkin/tools/people.d.ts +3 -0
  148. package/dist/modules/collabkin/tools/relationships.d.ts +3 -0
  149. package/dist/modules/collabkin/tools/shared.d.ts +12 -0
  150. package/dist/modules/collabkin/tools/stories.d.ts +3 -0
  151. package/dist/modules/collabkin/tools/timeline.d.ts +3 -0
  152. package/dist/modules/collabkin/tools/trees.d.ts +3 -0
  153. package/dist/modules/comradecircle/index.cjs.map +1 -1
  154. package/dist/modules/comradecircle/index.d.ts +2 -7
  155. package/dist/modules/comradecircle/index.js +1 -1
  156. package/dist/modules/comradecircle/operations.d.ts +53 -0
  157. package/dist/modules/comradecircle/prompts.d.ts +3 -0
  158. package/dist/modules/comradecircle/resources.d.ts +3 -0
  159. package/dist/modules/comradecircle/tools/channels.d.ts +3 -0
  160. package/dist/modules/comradecircle/tools/circles.d.ts +3 -0
  161. package/dist/modules/comradecircle/tools/comments.d.ts +3 -0
  162. package/dist/modules/comradecircle/tools/events.d.ts +3 -0
  163. package/dist/modules/comradecircle/tools/feed.d.ts +3 -0
  164. package/dist/modules/comradecircle/tools/health.d.ts +3 -0
  165. package/dist/modules/comradecircle/tools/memberships.d.ts +3 -0
  166. package/dist/modules/comradecircle/tools/polls.d.ts +3 -0
  167. package/dist/modules/comradecircle/tools/posts.d.ts +3 -0
  168. package/dist/modules/comradecircle/tools/profiles.d.ts +3 -0
  169. package/dist/modules/comradecircle/tools/shared.d.ts +16 -0
  170. package/dist/modules/conversations/index.cjs +6 -2
  171. package/dist/modules/conversations/index.cjs.map +1 -1
  172. package/dist/modules/conversations/index.d.ts +2 -7
  173. package/dist/modules/conversations/index.js +7 -3
  174. package/dist/modules/conversations/index.js.map +1 -1
  175. package/dist/modules/conversations/operations.d.ts +50 -0
  176. package/dist/modules/conversations/tools.d.ts +3 -0
  177. package/dist/modules/coolandlovely/index.cjs.map +1 -1
  178. package/dist/modules/coolandlovely/index.d.ts +2 -7
  179. package/dist/modules/coolandlovely/index.js +1 -1
  180. package/dist/modules/coolandlovely/operations.d.ts +50 -0
  181. package/dist/modules/coolandlovely/prompts.d.ts +3 -0
  182. package/dist/modules/coolandlovely/resources.d.ts +3 -0
  183. package/dist/modules/coolandlovely/tools/brands.d.ts +3 -0
  184. package/dist/modules/coolandlovely/tools/collaborations.d.ts +3 -0
  185. package/dist/modules/coolandlovely/tools/collections.d.ts +3 -0
  186. package/dist/modules/coolandlovely/tools/health.d.ts +3 -0
  187. package/dist/modules/coolandlovely/tools/lookbooks.d.ts +3 -0
  188. package/dist/modules/coolandlovely/tools/looks.d.ts +3 -0
  189. package/dist/modules/coolandlovely/tools/profile.d.ts +3 -0
  190. package/dist/modules/coolandlovely/tools/shared.d.ts +25 -0
  191. package/dist/modules/coolandlovely/tools/style-items.d.ts +3 -0
  192. package/dist/modules/coolandlovely/tools/wardrobe.d.ts +3 -0
  193. package/dist/modules/cosmicintersection/index.cjs.map +1 -1
  194. package/dist/modules/cosmicintersection/index.d.ts +2 -7
  195. package/dist/modules/cosmicintersection/index.js +1 -1
  196. package/dist/modules/cosmicintersection/operations.d.ts +53 -0
  197. package/dist/modules/cosmicintersection/prompts.d.ts +3 -0
  198. package/dist/modules/cosmicintersection/resources.d.ts +3 -0
  199. package/dist/modules/cosmicintersection/tools/analyses.d.ts +3 -0
  200. package/dist/modules/cosmicintersection/tools/collections.d.ts +3 -0
  201. package/dist/modules/cosmicintersection/tools/datasets.d.ts +3 -0
  202. package/dist/modules/cosmicintersection/tools/grants.d.ts +3 -0
  203. package/dist/modules/cosmicintersection/tools/health.d.ts +3 -0
  204. package/dist/modules/cosmicintersection/tools/notebooks.d.ts +3 -0
  205. package/dist/modules/cosmicintersection/tools/pipelines.d.ts +3 -0
  206. package/dist/modules/cosmicintersection/tools/releases.d.ts +3 -0
  207. package/dist/modules/cosmicintersection/tools/runs.d.ts +3 -0
  208. package/dist/modules/cosmicintersection/tools/shared.d.ts +15 -0
  209. package/dist/modules/cosmicintersection/tools/sources.d.ts +3 -0
  210. package/dist/modules/crewfoundry/index.cjs.map +1 -1
  211. package/dist/modules/crewfoundry/index.d.ts +2 -7
  212. package/dist/modules/crewfoundry/index.js +1 -1
  213. package/dist/modules/crewfoundry/operations.d.ts +49 -0
  214. package/dist/modules/crewfoundry/prompts.d.ts +3 -0
  215. package/dist/modules/crewfoundry/resources.d.ts +3 -0
  216. package/dist/modules/crewfoundry/tools/attendance.d.ts +3 -0
  217. package/dist/modules/crewfoundry/tools/clients.d.ts +3 -0
  218. package/dist/modules/crewfoundry/tools/engagement.d.ts +3 -0
  219. package/dist/modules/crewfoundry/tools/learning.d.ts +3 -0
  220. package/dist/modules/crewfoundry/tools/overview.d.ts +3 -0
  221. package/dist/modules/crewfoundry/tools/people.d.ts +3 -0
  222. package/dist/modules/crewfoundry/tools/recruitment.d.ts +3 -0
  223. package/dist/modules/crewfoundry/tools/shared.d.ts +2 -0
  224. package/dist/modules/devportal/index.cjs.map +1 -1
  225. package/dist/modules/devportal/index.d.ts +2 -7
  226. package/dist/modules/devportal/index.js +1 -1
  227. package/dist/modules/devportal/operations.d.ts +26 -0
  228. package/dist/modules/devportal/tools.d.ts +3 -0
  229. package/dist/modules/ecoimpacthub/index.cjs.map +1 -1
  230. package/dist/modules/ecoimpacthub/index.d.ts +2 -7
  231. package/dist/modules/ecoimpacthub/index.js +1 -1
  232. package/dist/modules/ecoimpacthub/operations.d.ts +53 -0
  233. package/dist/modules/ecoimpacthub/prompts.d.ts +3 -0
  234. package/dist/modules/ecoimpacthub/resources.d.ts +3 -0
  235. package/dist/modules/ecoimpacthub/tools/carbon.d.ts +3 -0
  236. package/dist/modules/ecoimpacthub/tools/emissions.d.ts +3 -0
  237. package/dist/modules/ecoimpacthub/tools/habitat.d.ts +3 -0
  238. package/dist/modules/ecoimpacthub/tools/health.d.ts +3 -0
  239. package/dist/modules/ecoimpacthub/tools/measurements.d.ts +3 -0
  240. package/dist/modules/ecoimpacthub/tools/observations.d.ts +3 -0
  241. package/dist/modules/ecoimpacthub/tools/reports.d.ts +3 -0
  242. package/dist/modules/ecoimpacthub/tools/sensors.d.ts +3 -0
  243. package/dist/modules/ecoimpacthub/tools/shared.d.ts +28 -0
  244. package/dist/modules/ecoimpacthub/tools/sites.d.ts +3 -0
  245. package/dist/modules/ecoimpacthub/tools/species.d.ts +3 -0
  246. package/dist/modules/ecoimpacthub/tools/targets.d.ts +3 -0
  247. package/dist/modules/ecoimpacthub/tools/thresholds.d.ts +3 -0
  248. package/dist/modules/eventfullymanaged/index.cjs.map +1 -1
  249. package/dist/modules/eventfullymanaged/index.d.ts +2 -7
  250. package/dist/modules/eventfullymanaged/index.js +1 -1
  251. package/dist/modules/eventfullymanaged/operations.d.ts +96 -0
  252. package/dist/modules/eventfullymanaged/prompts.d.ts +3 -0
  253. package/dist/modules/eventfullymanaged/resources.d.ts +3 -0
  254. package/dist/modules/eventfullymanaged/tools/agenda.d.ts +3 -0
  255. package/dist/modules/eventfullymanaged/tools/attendees.d.ts +3 -0
  256. package/dist/modules/eventfullymanaged/tools/checkin.d.ts +3 -0
  257. package/dist/modules/eventfullymanaged/tools/content.d.ts +3 -0
  258. package/dist/modules/eventfullymanaged/tools/events.d.ts +3 -0
  259. package/dist/modules/eventfullymanaged/tools/networking.d.ts +3 -0
  260. package/dist/modules/eventfullymanaged/tools/shared.d.ts +9 -0
  261. package/dist/modules/eventfullymanaged/tools/sponsorship.d.ts +3 -0
  262. package/dist/modules/eventfullymanaged/tools/ticketing.d.ts +3 -0
  263. package/dist/modules/eventfullymanaged/tools/venues.d.ts +3 -0
  264. package/dist/modules/export/index.cjs.map +1 -1
  265. package/dist/modules/export/index.d.ts +2 -7
  266. package/dist/modules/export/index.js +1 -1
  267. package/dist/modules/export/operations.d.ts +13 -0
  268. package/dist/modules/export/tools.d.ts +3 -0
  269. package/dist/modules/files/index.cjs.map +1 -1
  270. package/dist/modules/files/index.d.ts +2 -7
  271. package/dist/modules/files/index.js +1 -1
  272. package/dist/modules/files/operations.d.ts +9 -0
  273. package/dist/modules/files/tools.d.ts +3 -0
  274. package/dist/modules/fluidgrids/index.cjs +38 -19
  275. package/dist/modules/fluidgrids/index.cjs.map +1 -1
  276. package/dist/modules/fluidgrids/index.d.ts +2 -7
  277. package/dist/modules/fluidgrids/index.js +39 -20
  278. package/dist/modules/fluidgrids/index.js.map +1 -1
  279. package/dist/modules/fluidgrids/operations.d.ts +46 -0
  280. package/dist/modules/fluidgrids/prompts.d.ts +3 -0
  281. package/dist/modules/fluidgrids/resources.d.ts +3 -0
  282. package/dist/modules/fluidgrids/tools/credentials.d.ts +3 -0
  283. package/dist/modules/fluidgrids/tools/helpers.d.ts +5 -0
  284. package/dist/modules/fluidgrids/tools/insights.d.ts +3 -0
  285. package/dist/modules/fluidgrids/tools/nodes.d.ts +3 -0
  286. package/dist/modules/fluidgrids/tools/runs.d.ts +3 -0
  287. package/dist/modules/fluidgrids/tools/scheduled-jobs.d.ts +3 -0
  288. package/dist/modules/fluidgrids/tools/webhooks.d.ts +3 -0
  289. package/dist/modules/fluidgrids/tools/workflows.d.ts +3 -0
  290. package/dist/modules/ggnomad/index.cjs.map +1 -1
  291. package/dist/modules/ggnomad/index.d.ts +2 -7
  292. package/dist/modules/ggnomad/index.js +1 -1
  293. package/dist/modules/ggnomad/operations.d.ts +29 -0
  294. package/dist/modules/ggnomad/prompts.d.ts +3 -0
  295. package/dist/modules/ggnomad/resources.d.ts +3 -0
  296. package/dist/modules/ggnomad/tools/activities.d.ts +3 -0
  297. package/dist/modules/ggnomad/tools/analytics.d.ts +3 -0
  298. package/dist/modules/ggnomad/tools/bookings.d.ts +3 -0
  299. package/dist/modules/ggnomad/tools/events.d.ts +3 -0
  300. package/dist/modules/ggnomad/tools/favorites.d.ts +3 -0
  301. package/dist/modules/ggnomad/tools/properties.d.ts +3 -0
  302. package/dist/modules/ggnomad/tools/providers.d.ts +3 -0
  303. package/dist/modules/ggnomad/tools/shared.d.ts +5 -0
  304. package/dist/modules/ggnomad/tools/tours.d.ts +3 -0
  305. package/dist/modules/ggnomad/tools/trips.d.ts +3 -0
  306. package/dist/modules/govcitizenhub/index.cjs.map +1 -1
  307. package/dist/modules/govcitizenhub/index.d.ts +2 -7
  308. package/dist/modules/govcitizenhub/index.js +1 -1
  309. package/dist/modules/govcitizenhub/operations.d.ts +43 -0
  310. package/dist/modules/govcitizenhub/prompts.d.ts +3 -0
  311. package/dist/modules/govcitizenhub/resources.d.ts +3 -0
  312. package/dist/modules/govcitizenhub/tools/agencies.d.ts +3 -0
  313. package/dist/modules/govcitizenhub/tools/applications.d.ts +3 -0
  314. package/dist/modules/govcitizenhub/tools/documents.d.ts +3 -0
  315. package/dist/modules/govcitizenhub/tools/grievances.d.ts +3 -0
  316. package/dist/modules/govcitizenhub/tools/health.d.ts +3 -0
  317. package/dist/modules/govcitizenhub/tools/notes.d.ts +3 -0
  318. package/dist/modules/govcitizenhub/tools/payments.d.ts +3 -0
  319. package/dist/modules/govcitizenhub/tools/permits.d.ts +3 -0
  320. package/dist/modules/govcitizenhub/tools/services.d.ts +3 -0
  321. package/dist/modules/govcitizenhub/tools/shared.d.ts +17 -0
  322. package/dist/modules/groups/index.cjs.map +1 -1
  323. package/dist/modules/groups/index.d.ts +2 -7
  324. package/dist/modules/groups/index.js +1 -1
  325. package/dist/modules/groups/operations.d.ts +11 -0
  326. package/dist/modules/groups/tools.d.ts +3 -0
  327. package/dist/modules/headshotmarketing/index.cjs.map +1 -1
  328. package/dist/modules/headshotmarketing/index.d.ts +2 -7
  329. package/dist/modules/headshotmarketing/index.js +1 -1
  330. package/dist/modules/headshotmarketing/operations.d.ts +206 -0
  331. package/dist/modules/headshotmarketing/prompts.d.ts +3 -0
  332. package/dist/modules/headshotmarketing/resources.d.ts +3 -0
  333. package/dist/modules/headshotmarketing/tools/ads.d.ts +3 -0
  334. package/dist/modules/headshotmarketing/tools/analytics.d.ts +3 -0
  335. package/dist/modules/headshotmarketing/tools/campaigns.d.ts +3 -0
  336. package/dist/modules/headshotmarketing/tools/contacts.d.ts +3 -0
  337. package/dist/modules/headshotmarketing/tools/content.d.ts +3 -0
  338. package/dist/modules/headshotmarketing/tools/deals.d.ts +3 -0
  339. package/dist/modules/headshotmarketing/tools/events.d.ts +3 -0
  340. package/dist/modules/headshotmarketing/tools/helpers.d.ts +6 -0
  341. package/dist/modules/headshotmarketing/tools/influencers.d.ts +3 -0
  342. package/dist/modules/headshotmarketing/tools/landing_pages.d.ts +3 -0
  343. package/dist/modules/headshotmarketing/tools/leads.d.ts +3 -0
  344. package/dist/modules/headshotmarketing/tools/seo.d.ts +3 -0
  345. package/dist/modules/headshotmarketing/tools/shared.d.ts +48 -0
  346. package/dist/modules/headshotmarketing/tools/social.d.ts +3 -0
  347. package/dist/modules/headshotmarketing/tools/workflows.d.ts +3 -0
  348. package/dist/modules/health/index.cjs.map +1 -1
  349. package/dist/modules/health/index.d.ts +2 -7
  350. package/dist/modules/health/index.js +1 -1
  351. package/dist/modules/healthybowl/index.cjs.map +1 -1
  352. package/dist/modules/healthybowl/index.d.ts +2 -7
  353. package/dist/modules/healthybowl/index.js +1 -1
  354. package/dist/modules/healthybowl/operations.d.ts +13 -0
  355. package/dist/modules/healthybowl/prompts.d.ts +3 -0
  356. package/dist/modules/healthybowl/resources.d.ts +3 -0
  357. package/dist/modules/healthybowl/tools/advisory.d.ts +3 -0
  358. package/dist/modules/healthybowl/tools/farm.d.ts +3 -0
  359. package/dist/modules/healthybowl/tools/guardrails.d.ts +3 -0
  360. package/dist/modules/healthybowl/tools/pestissue.d.ts +3 -0
  361. package/dist/modules/healthybowl/tools/shared.d.ts +4 -0
  362. package/dist/modules/hookmovies/index.cjs.map +1 -1
  363. package/dist/modules/hookmovies/index.d.ts +2 -7
  364. package/dist/modules/hookmovies/index.js +1 -1
  365. package/dist/modules/hookmovies/operations.d.ts +57 -0
  366. package/dist/modules/hookmovies/prompts.d.ts +3 -0
  367. package/dist/modules/hookmovies/resources.d.ts +3 -0
  368. package/dist/modules/hookmovies/tools/auditions.d.ts +3 -0
  369. package/dist/modules/hookmovies/tools/entitlements.d.ts +3 -0
  370. package/dist/modules/hookmovies/tools/episodes.d.ts +3 -0
  371. package/dist/modules/hookmovies/tools/health.d.ts +3 -0
  372. package/dist/modules/hookmovies/tools/lists.d.ts +3 -0
  373. package/dist/modules/hookmovies/tools/people.d.ts +3 -0
  374. package/dist/modules/hookmovies/tools/productions.d.ts +3 -0
  375. package/dist/modules/hookmovies/tools/progress.d.ts +3 -0
  376. package/dist/modules/hookmovies/tools/reviews.d.ts +3 -0
  377. package/dist/modules/hookmovies/tools/rights.d.ts +3 -0
  378. package/dist/modules/hookmovies/tools/shared.d.ts +15 -0
  379. package/dist/modules/hookmovies/tools/studios.d.ts +3 -0
  380. package/dist/modules/hookmovies/tools/titles.d.ts +3 -0
  381. package/dist/modules/housingvista/index.cjs.map +1 -1
  382. package/dist/modules/housingvista/index.d.ts +2 -7
  383. package/dist/modules/housingvista/index.js +1 -1
  384. package/dist/modules/housingvista/operations.d.ts +32 -0
  385. package/dist/modules/housingvista/prompts.d.ts +3 -0
  386. package/dist/modules/housingvista/resources.d.ts +3 -0
  387. package/dist/modules/housingvista/tools/analytics.d.ts +3 -0
  388. package/dist/modules/housingvista/tools/assets.d.ts +3 -0
  389. package/dist/modules/housingvista/tools/investments.d.ts +3 -0
  390. package/dist/modules/housingvista/tools/leasing.d.ts +3 -0
  391. package/dist/modules/housingvista/tools/market.d.ts +3 -0
  392. package/dist/modules/housingvista/tools/marketplace.d.ts +3 -0
  393. package/dist/modules/housingvista/tools/properties.d.ts +3 -0
  394. package/dist/modules/housingvista/tools/shared.d.ts +4 -0
  395. package/dist/modules/housingvista/tools/transactions.d.ts +3 -0
  396. package/dist/modules/housingvista/tools/verification.d.ts +3 -0
  397. package/dist/modules/integrations/index.cjs +3 -1
  398. package/dist/modules/integrations/index.cjs.map +1 -1
  399. package/dist/modules/integrations/index.d.ts +2 -7
  400. package/dist/modules/integrations/index.js +4 -2
  401. package/dist/modules/integrations/index.js.map +1 -1
  402. package/dist/modules/integrations/operations.d.ts +27 -0
  403. package/dist/modules/integrations/tools.d.ts +3 -0
  404. package/dist/modules/intelwatchtower/index.cjs.map +1 -1
  405. package/dist/modules/intelwatchtower/index.d.ts +2 -7
  406. package/dist/modules/intelwatchtower/index.js +1 -1
  407. package/dist/modules/intelwatchtower/operations.d.ts +48 -0
  408. package/dist/modules/intelwatchtower/prompts.d.ts +3 -0
  409. package/dist/modules/intelwatchtower/resources.d.ts +3 -0
  410. package/dist/modules/intelwatchtower/tools/alerts.d.ts +3 -0
  411. package/dist/modules/intelwatchtower/tools/cases.d.ts +3 -0
  412. package/dist/modules/intelwatchtower/tools/entities.d.ts +3 -0
  413. package/dist/modules/intelwatchtower/tools/feeds.d.ts +3 -0
  414. package/dist/modules/intelwatchtower/tools/health.d.ts +3 -0
  415. package/dist/modules/intelwatchtower/tools/indicators.d.ts +3 -0
  416. package/dist/modules/intelwatchtower/tools/missions.d.ts +3 -0
  417. package/dist/modules/intelwatchtower/tools/observations.d.ts +3 -0
  418. package/dist/modules/intelwatchtower/tools/reports.d.ts +3 -0
  419. package/dist/modules/intelwatchtower/tools/requirements.d.ts +3 -0
  420. package/dist/modules/intelwatchtower/tools/shared.d.ts +23 -0
  421. package/dist/modules/intelwatchtower/tools/sources.d.ts +3 -0
  422. package/dist/modules/intelwatchtower/tools/tasks.d.ts +3 -0
  423. package/dist/modules/kadaikodi/index.cjs.map +1 -1
  424. package/dist/modules/kadaikodi/index.d.ts +2 -7
  425. package/dist/modules/kadaikodi/index.js +1 -1
  426. package/dist/modules/kadaikodi/operations.d.ts +35 -0
  427. package/dist/modules/kadaikodi/prompts.d.ts +3 -0
  428. package/dist/modules/kadaikodi/resources.d.ts +3 -0
  429. package/dist/modules/kadaikodi/tools/analytics.d.ts +3 -0
  430. package/dist/modules/kadaikodi/tools/investments.d.ts +3 -0
  431. package/dist/modules/kadaikodi/tools/offerings.d.ts +3 -0
  432. package/dist/modules/kadaikodi/tools/orders.d.ts +3 -0
  433. package/dist/modules/kadaikodi/tools/providers.d.ts +3 -0
  434. package/dist/modules/kadaikodi/tools/reviews.d.ts +3 -0
  435. package/dist/modules/kadaikodi/tools/shared.d.ts +9 -0
  436. package/dist/modules/kadaikodi/tools/tasks.d.ts +3 -0
  437. package/dist/modules/kadaikodi/tools/workers.d.ts +3 -0
  438. package/dist/modules/labsofscience/index.cjs.map +1 -1
  439. package/dist/modules/labsofscience/index.d.ts +2 -7
  440. package/dist/modules/labsofscience/index.js +1 -1
  441. package/dist/modules/labsofscience/operations.d.ts +58 -0
  442. package/dist/modules/labsofscience/prompts.d.ts +3 -0
  443. package/dist/modules/labsofscience/resources.d.ts +3 -0
  444. package/dist/modules/labsofscience/tools/datasets.d.ts +3 -0
  445. package/dist/modules/labsofscience/tools/experiments.d.ts +3 -0
  446. package/dist/modules/labsofscience/tools/health.d.ts +3 -0
  447. package/dist/modules/labsofscience/tools/instruments.d.ts +3 -0
  448. package/dist/modules/labsofscience/tools/inventory.d.ts +3 -0
  449. package/dist/modules/labsofscience/tools/notebook.d.ts +3 -0
  450. package/dist/modules/labsofscience/tools/pipelines.d.ts +3 -0
  451. package/dist/modules/labsofscience/tools/projects.d.ts +3 -0
  452. package/dist/modules/labsofscience/tools/protocols.d.ts +3 -0
  453. package/dist/modules/labsofscience/tools/runs.d.ts +3 -0
  454. package/dist/modules/labsofscience/tools/shared.d.ts +15 -0
  455. package/dist/modules/manufacturedops/index.cjs.map +1 -1
  456. package/dist/modules/manufacturedops/index.d.ts +2 -7
  457. package/dist/modules/manufacturedops/index.js +1 -1
  458. package/dist/modules/manufacturedops/operations.d.ts +45 -0
  459. package/dist/modules/manufacturedops/prompts.d.ts +3 -0
  460. package/dist/modules/manufacturedops/resources.d.ts +3 -0
  461. package/dist/modules/manufacturedops/tools/health.d.ts +3 -0
  462. package/dist/modules/manufacturedops/tools/maintenance.d.ts +3 -0
  463. package/dist/modules/manufacturedops/tools/production.d.ts +3 -0
  464. package/dist/modules/manufacturedops/tools/quality.d.ts +3 -0
  465. package/dist/modules/manufacturedops/tools/shared.d.ts +27 -0
  466. package/dist/modules/movethewheels/index.cjs.map +1 -1
  467. package/dist/modules/movethewheels/index.d.ts +2 -7
  468. package/dist/modules/movethewheels/index.js +1 -1
  469. package/dist/modules/movethewheels/operations.d.ts +105 -0
  470. package/dist/modules/movethewheels/prompts.d.ts +3 -0
  471. package/dist/modules/movethewheels/resources.d.ts +3 -0
  472. package/dist/modules/movethewheels/tools/analytics.d.ts +3 -0
  473. package/dist/modules/movethewheels/tools/customers.d.ts +3 -0
  474. package/dist/modules/movethewheels/tools/drivers.d.ts +3 -0
  475. package/dist/modules/movethewheels/tools/inventory.d.ts +3 -0
  476. package/dist/modules/movethewheels/tools/marketplace.d.ts +3 -0
  477. package/dist/modules/movethewheels/tools/orders.d.ts +3 -0
  478. package/dist/modules/movethewheels/tools/products.d.ts +3 -0
  479. package/dist/modules/movethewheels/tools/reports.d.ts +3 -0
  480. package/dist/modules/movethewheels/tools/routes.d.ts +3 -0
  481. package/dist/modules/movethewheels/tools/shared.d.ts +14 -0
  482. package/dist/modules/movethewheels/tools/shipments.d.ts +3 -0
  483. package/dist/modules/movethewheels/tools/tracking.d.ts +3 -0
  484. package/dist/modules/movethewheels/tools/vehicles.d.ts +3 -0
  485. package/dist/modules/movethewheels/tools/warehouses.d.ts +3 -0
  486. package/dist/modules/mybodyshield/index.cjs.map +1 -1
  487. package/dist/modules/mybodyshield/index.d.ts +2 -7
  488. package/dist/modules/mybodyshield/index.js +1 -1
  489. package/dist/modules/mybodyshield/operations.d.ts +49 -0
  490. package/dist/modules/mybodyshield/prompts.d.ts +3 -0
  491. package/dist/modules/mybodyshield/resources.d.ts +3 -0
  492. package/dist/modules/mybodyshield/tools/coaching.d.ts +3 -0
  493. package/dist/modules/mybodyshield/tools/goals.d.ts +3 -0
  494. package/dist/modules/mybodyshield/tools/health.d.ts +3 -0
  495. package/dist/modules/mybodyshield/tools/meals.d.ts +3 -0
  496. package/dist/modules/mybodyshield/tools/metrics.d.ts +3 -0
  497. package/dist/modules/mybodyshield/tools/nutrition.d.ts +3 -0
  498. package/dist/modules/mybodyshield/tools/programs.d.ts +3 -0
  499. package/dist/modules/mybodyshield/tools/recovery.d.ts +3 -0
  500. package/dist/modules/mybodyshield/tools/sessions.d.ts +3 -0
  501. package/dist/modules/mybodyshield/tools/shared.d.ts +13 -0
  502. package/dist/modules/mybodyshield/tools/workouts.d.ts +3 -0
  503. package/dist/modules/notifications/index.cjs.map +1 -1
  504. package/dist/modules/notifications/index.d.ts +2 -7
  505. package/dist/modules/notifications/index.js +1 -1
  506. package/dist/modules/notifications/operations.d.ts +4 -0
  507. package/dist/modules/notifications/tools.d.ts +3 -0
  508. package/dist/modules/organizations/index.cjs.map +1 -1
  509. package/dist/modules/organizations/index.d.ts +2 -7
  510. package/dist/modules/organizations/index.js +1 -1
  511. package/dist/modules/organizations/operations.d.ts +9 -0
  512. package/dist/modules/organizations/tools.d.ts +3 -0
  513. package/dist/modules/planmagnet/destructive-gate.d.ts +4 -0
  514. package/dist/modules/planmagnet/index.cjs.map +1 -1
  515. package/dist/modules/planmagnet/index.d.ts +2 -7
  516. package/dist/modules/planmagnet/index.js +1 -1
  517. package/dist/modules/planmagnet/operations.d.ts +182 -0
  518. package/dist/modules/planmagnet/prompts.d.ts +3 -0
  519. package/dist/modules/planmagnet/resources.d.ts +3 -0
  520. package/dist/modules/planmagnet/tools/automations.d.ts +3 -0
  521. package/dist/modules/planmagnet/tools/boards.d.ts +3 -0
  522. package/dist/modules/planmagnet/tools/budgets.d.ts +3 -0
  523. package/dist/modules/planmagnet/tools/customfields.d.ts +3 -0
  524. package/dist/modules/planmagnet/tools/dependencies.d.ts +3 -0
  525. package/dist/modules/planmagnet/tools/features.d.ts +3 -0
  526. package/dist/modules/planmagnet/tools/milestones.d.ts +3 -0
  527. package/dist/modules/planmagnet/tools/projects.d.ts +3 -0
  528. package/dist/modules/planmagnet/tools/qualitygates.d.ts +3 -0
  529. package/dist/modules/planmagnet/tools/releases.d.ts +3 -0
  530. package/dist/modules/planmagnet/tools/risks.d.ts +3 -0
  531. package/dist/modules/planmagnet/tools/roadmaps.d.ts +3 -0
  532. package/dist/modules/planmagnet/tools/shared.d.ts +41 -0
  533. package/dist/modules/planmagnet/tools/sprints.d.ts +3 -0
  534. package/dist/modules/planmagnet/tools/sync.d.ts +3 -0
  535. package/dist/modules/planmagnet/tools/templates.d.ts +3 -0
  536. package/dist/modules/planmagnet/tools/timetracking.d.ts +3 -0
  537. package/dist/modules/planmagnet/tools/workitems.d.ts +3 -0
  538. package/dist/modules/products/index.cjs.map +1 -1
  539. package/dist/modules/products/index.d.ts +2 -7
  540. package/dist/modules/products/index.js +1 -1
  541. package/dist/modules/products/operations.d.ts +22 -0
  542. package/dist/modules/products/tools.d.ts +3 -0
  543. package/dist/modules/proserviceworld/index.cjs.map +1 -1
  544. package/dist/modules/proserviceworld/index.d.ts +2 -7
  545. package/dist/modules/proserviceworld/index.js +1 -1
  546. package/dist/modules/proserviceworld/operations.d.ts +33 -0
  547. package/dist/modules/proserviceworld/prompts.d.ts +3 -0
  548. package/dist/modules/proserviceworld/resources.d.ts +3 -0
  549. package/dist/modules/proserviceworld/tools/clients.d.ts +3 -0
  550. package/dist/modules/proserviceworld/tools/compliance.d.ts +3 -0
  551. package/dist/modules/proserviceworld/tools/engagements.d.ts +3 -0
  552. package/dist/modules/proserviceworld/tools/health.d.ts +3 -0
  553. package/dist/modules/proserviceworld/tools/invoices.d.ts +3 -0
  554. package/dist/modules/proserviceworld/tools/matters.d.ts +3 -0
  555. package/dist/modules/proserviceworld/tools/practice.d.ts +3 -0
  556. package/dist/modules/proserviceworld/tools/shared.d.ts +11 -0
  557. package/dist/modules/proserviceworld/tools/time.d.ts +3 -0
  558. package/dist/modules/rbac/index.cjs.map +1 -1
  559. package/dist/modules/rbac/index.d.ts +2 -7
  560. package/dist/modules/rbac/index.js +1 -1
  561. package/dist/modules/rbac/operations.d.ts +9 -0
  562. package/dist/modules/rbac/tools.d.ts +3 -0
  563. package/dist/modules/sandbox/index.cjs.map +1 -1
  564. package/dist/modules/sandbox/index.d.ts +2 -7
  565. package/dist/modules/sandbox/index.js +1 -1
  566. package/dist/modules/sandbox/tools.d.ts +3 -0
  567. package/dist/modules/scheduler/index.cjs +3 -1
  568. package/dist/modules/scheduler/index.cjs.map +1 -1
  569. package/dist/modules/scheduler/index.d.ts +2 -7
  570. package/dist/modules/scheduler/index.js +4 -2
  571. package/dist/modules/scheduler/index.js.map +1 -1
  572. package/dist/modules/scheduler/operations.d.ts +31 -0
  573. package/dist/modules/scheduler/tools.d.ts +3 -0
  574. package/dist/modules/security/index.cjs.map +1 -1
  575. package/dist/modules/security/index.d.ts +2 -7
  576. package/dist/modules/security/index.js +1 -1
  577. package/dist/modules/security/operations.d.ts +13 -0
  578. package/dist/modules/security/tools.d.ts +3 -0
  579. package/dist/modules/semanticfed/index.cjs +65 -1
  580. package/dist/modules/semanticfed/index.cjs.map +1 -1
  581. package/dist/modules/semanticfed/index.d.ts +2 -7
  582. package/dist/modules/semanticfed/index.js +66 -2
  583. package/dist/modules/semanticfed/index.js.map +1 -1
  584. package/dist/modules/semanticfed/operations.d.ts +53 -0
  585. package/dist/modules/semanticfed/prompts.d.ts +3 -0
  586. package/dist/modules/semanticfed/resources.d.ts +3 -0
  587. package/dist/modules/semanticfed/tools/connections.d.ts +3 -0
  588. package/dist/modules/semanticfed/tools/connectors.d.ts +3 -0
  589. package/dist/modules/semanticfed/tools/datasources.d.ts +3 -0
  590. package/dist/modules/semanticfed/tools/dimensions.d.ts +3 -0
  591. package/dist/modules/semanticfed/tools/entities.d.ts +3 -0
  592. package/dist/modules/semanticfed/tools/health.d.ts +3 -0
  593. package/dist/modules/semanticfed/tools/metrics.d.ts +3 -0
  594. package/dist/modules/semanticfed/tools/models.d.ts +3 -0
  595. package/dist/modules/semanticfed/tools/policies.d.ts +3 -0
  596. package/dist/modules/semanticfed/tools/queries.d.ts +3 -0
  597. package/dist/modules/semanticfed/tools/relationships.d.ts +3 -0
  598. package/dist/modules/semanticfed/tools/runs.d.ts +3 -0
  599. package/dist/modules/semanticfed/tools/shared.d.ts +14 -0
  600. package/dist/modules/store/index.cjs.map +1 -1
  601. package/dist/modules/store/index.d.ts +2 -7
  602. package/dist/modules/store/index.js +1 -1
  603. package/dist/modules/store/operations.d.ts +15 -0
  604. package/dist/modules/store/tools.d.ts +3 -0
  605. package/dist/modules/subscriberbot/index.cjs.map +1 -1
  606. package/dist/modules/subscriberbot/index.d.ts +2 -7
  607. package/dist/modules/subscriberbot/index.js +1 -1
  608. package/dist/modules/subscriberbot/operations.d.ts +53 -0
  609. package/dist/modules/subscriberbot/prompts.d.ts +3 -0
  610. package/dist/modules/subscriberbot/resources.d.ts +3 -0
  611. package/dist/modules/subscriberbot/tools/agents.d.ts +3 -0
  612. package/dist/modules/subscriberbot/tools/assets.d.ts +3 -0
  613. package/dist/modules/subscriberbot/tools/channels.d.ts +3 -0
  614. package/dist/modules/subscriberbot/tools/entitlements.d.ts +3 -0
  615. package/dist/modules/subscriberbot/tools/health.d.ts +3 -0
  616. package/dist/modules/subscriberbot/tools/inbox.d.ts +3 -0
  617. package/dist/modules/subscriberbot/tools/invoices.d.ts +3 -0
  618. package/dist/modules/subscriberbot/tools/payment-instruments.d.ts +3 -0
  619. package/dist/modules/subscriberbot/tools/plans.d.ts +3 -0
  620. package/dist/modules/subscriberbot/tools/policies.d.ts +3 -0
  621. package/dist/modules/subscriberbot/tools/providers.d.ts +3 -0
  622. package/dist/modules/subscriberbot/tools/relationships.d.ts +3 -0
  623. package/dist/modules/subscriberbot/tools/renewals.d.ts +3 -0
  624. package/dist/modules/subscriberbot/tools/shared.d.ts +21 -0
  625. package/dist/modules/subscriberbot/tools/workflows.d.ts +3 -0
  626. package/dist/modules/support/index.cjs.map +1 -1
  627. package/dist/modules/support/index.d.ts +2 -7
  628. package/dist/modules/support/index.js +1 -1
  629. package/dist/modules/support/operations.d.ts +7 -0
  630. package/dist/modules/support/tools.d.ts +3 -0
  631. package/dist/modules/tags/index.cjs.map +1 -1
  632. package/dist/modules/tags/index.d.ts +2 -7
  633. package/dist/modules/tags/index.js +1 -1
  634. package/dist/modules/tags/operations.d.ts +9 -0
  635. package/dist/modules/tags/tools.d.ts +3 -0
  636. package/dist/modules/technospam/index.cjs.map +1 -1
  637. package/dist/modules/technospam/index.d.ts +2 -7
  638. package/dist/modules/technospam/index.js +1 -1
  639. package/dist/modules/technospam/operations.d.ts +54 -0
  640. package/dist/modules/technospam/prompts.d.ts +3 -0
  641. package/dist/modules/technospam/resources.d.ts +3 -0
  642. package/dist/modules/technospam/tools/certificates.d.ts +3 -0
  643. package/dist/modules/technospam/tools/courses.d.ts +3 -0
  644. package/dist/modules/technospam/tools/enrollments.d.ts +3 -0
  645. package/dist/modules/technospam/tools/hackathons.d.ts +3 -0
  646. package/dist/modules/technospam/tools/health.d.ts +3 -0
  647. package/dist/modules/technospam/tools/lessons.d.ts +3 -0
  648. package/dist/modules/technospam/tools/mentors.d.ts +3 -0
  649. package/dist/modules/technospam/tools/problems.d.ts +3 -0
  650. package/dist/modules/technospam/tools/sessions.d.ts +3 -0
  651. package/dist/modules/technospam/tools/shared.d.ts +12 -0
  652. package/dist/modules/technospam/tools/submissions.d.ts +3 -0
  653. package/dist/modules/technospam/tools/teams.d.ts +3 -0
  654. package/dist/modules/theculturepost/index.cjs.map +1 -1
  655. package/dist/modules/theculturepost/index.d.ts +2 -7
  656. package/dist/modules/theculturepost/index.js +1 -1
  657. package/dist/modules/theculturepost/operations.d.ts +40 -0
  658. package/dist/modules/theculturepost/prompts.d.ts +3 -0
  659. package/dist/modules/theculturepost/resources.d.ts +3 -0
  660. package/dist/modules/theculturepost/tools/archive.d.ts +3 -0
  661. package/dist/modules/theculturepost/tools/citations.d.ts +3 -0
  662. package/dist/modules/theculturepost/tools/collections.d.ts +3 -0
  663. package/dist/modules/theculturepost/tools/discussions.d.ts +3 -0
  664. package/dist/modules/theculturepost/tools/oralhistories.d.ts +3 -0
  665. package/dist/modules/theculturepost/tools/replies.d.ts +3 -0
  666. package/dist/modules/theculturepost/tools/shared.d.ts +19 -0
  667. package/dist/modules/theculturepost/tools/stories.d.ts +3 -0
  668. package/dist/modules/theculturepost/tools/system.d.ts +3 -0
  669. package/dist/modules/theculturepost/tools/topics.d.ts +3 -0
  670. package/dist/modules/theglobalfuel/index.cjs.map +1 -1
  671. package/dist/modules/theglobalfuel/index.d.ts +2 -7
  672. package/dist/modules/theglobalfuel/index.js +1 -1
  673. package/dist/modules/theglobalfuel/operations.d.ts +38 -0
  674. package/dist/modules/theglobalfuel/prompts.d.ts +3 -0
  675. package/dist/modules/theglobalfuel/resources.d.ts +3 -0
  676. package/dist/modules/theglobalfuel/tools/assets.d.ts +3 -0
  677. package/dist/modules/theglobalfuel/tools/compliance.d.ts +3 -0
  678. package/dist/modules/theglobalfuel/tools/contracts.d.ts +3 -0
  679. package/dist/modules/theglobalfuel/tools/emissions.d.ts +3 -0
  680. package/dist/modules/theglobalfuel/tools/health.d.ts +3 -0
  681. package/dist/modules/theglobalfuel/tools/inventory.d.ts +3 -0
  682. package/dist/modules/theglobalfuel/tools/production.d.ts +3 -0
  683. package/dist/modules/theglobalfuel/tools/reserves.d.ts +3 -0
  684. package/dist/modules/theglobalfuel/tools/shared.d.ts +16 -0
  685. package/dist/modules/theglobalfuel/tools/shipments.d.ts +3 -0
  686. package/dist/modules/timecampus/index.cjs +3 -1
  687. package/dist/modules/timecampus/index.cjs.map +1 -1
  688. package/dist/modules/timecampus/index.d.ts +2 -7
  689. package/dist/modules/timecampus/index.js +4 -2
  690. package/dist/modules/timecampus/index.js.map +1 -1
  691. package/dist/modules/timecampus/operations.d.ts +187 -0
  692. package/dist/modules/timecampus/prompts.d.ts +3 -0
  693. package/dist/modules/timecampus/resources.d.ts +3 -0
  694. package/dist/modules/timecampus/tools/approvals.d.ts +3 -0
  695. package/dist/modules/timecampus/tools/appusage.d.ts +3 -0
  696. package/dist/modules/timecampus/tools/channels.d.ts +3 -0
  697. package/dist/modules/timecampus/tools/clientportal.d.ts +3 -0
  698. package/dist/modules/timecampus/tools/config.d.ts +3 -0
  699. package/dist/modules/timecampus/tools/email.d.ts +3 -0
  700. package/dist/modules/timecampus/tools/expenses.d.ts +3 -0
  701. package/dist/modules/timecampus/tools/focus.d.ts +3 -0
  702. package/dist/modules/timecampus/tools/location.d.ts +3 -0
  703. package/dist/modules/timecampus/tools/meetings.d.ts +3 -0
  704. package/dist/modules/timecampus/tools/pomodoro.d.ts +3 -0
  705. package/dist/modules/timecampus/tools/projects.d.ts +3 -0
  706. package/dist/modules/timecampus/tools/resourcing.d.ts +3 -0
  707. package/dist/modules/timecampus/tools/shared.d.ts +23 -0
  708. package/dist/modules/timecampus/tools/tasks.d.ts +3 -0
  709. package/dist/modules/timecampus/tools/timeentries.d.ts +3 -0
  710. package/dist/modules/timecampus/tools/workpatterns.d.ts +3 -0
  711. package/dist/modules/tours/index.cjs.map +1 -1
  712. package/dist/modules/tours/index.d.ts +2 -7
  713. package/dist/modules/tours/index.js +1 -1
  714. package/dist/modules/tours/operations.d.ts +4 -0
  715. package/dist/modules/tours/tools.d.ts +3 -0
  716. package/dist/modules/vibecontrols/index.cjs +364 -29
  717. package/dist/modules/vibecontrols/index.cjs.map +1 -1
  718. package/dist/modules/vibecontrols/index.d.ts +2 -7
  719. package/dist/modules/vibecontrols/index.js +348 -29
  720. package/dist/modules/vibecontrols/index.js.map +1 -1
  721. package/dist/modules/vibecontrols/operations.d.ts +327 -0
  722. package/dist/modules/vibecontrols/prompts.d.ts +3 -0
  723. package/dist/modules/vibecontrols/resources.d.ts +3 -0
  724. package/dist/modules/vibecontrols/tool-annotations.d.ts +3 -0
  725. package/dist/modules/vibecontrols/tools/actions.d.ts +3 -0
  726. package/dist/modules/vibecontrols/tools/agents.d.ts +3 -0
  727. package/dist/modules/vibecontrols/tools/ai-events.d.ts +3 -0
  728. package/dist/modules/vibecontrols/tools/ai-prompts.d.ts +3 -0
  729. package/dist/modules/vibecontrols/tools/analytics.d.ts +3 -0
  730. package/dist/modules/vibecontrols/tools/audit.d.ts +3 -0
  731. package/dist/modules/vibecontrols/tools/catalogs.d.ts +3 -0
  732. package/dist/modules/vibecontrols/tools/components.d.ts +3 -0
  733. package/dist/modules/vibecontrols/tools/config-ci.d.ts +3 -0
  734. package/dist/modules/vibecontrols/tools/config-gitops.d.ts +3 -0
  735. package/dist/modules/vibecontrols/tools/config-security.d.ts +3 -0
  736. package/dist/modules/vibecontrols/tools/config-settings.d.ts +3 -0
  737. package/dist/modules/vibecontrols/tools/configuration.d.ts +3 -0
  738. package/dist/modules/vibecontrols/tools/docs.d.ts +3 -0
  739. package/dist/modules/vibecontrols/tools/notes.d.ts +3 -0
  740. package/dist/modules/vibecontrols/tools/sandboxes.d.ts +3 -0
  741. package/dist/modules/vibecontrols/tools/scorecards.d.ts +3 -0
  742. package/dist/modules/vibecontrols/tools/session-sharing.d.ts +3 -0
  743. package/dist/modules/vibecontrols/tools/sessions.d.ts +3 -0
  744. package/dist/modules/vibecontrols/tools/targets.d.ts +3 -0
  745. package/dist/modules/vibecontrols/tools/templates.d.ts +3 -0
  746. package/dist/modules/vibecontrols/tools/tunnels.d.ts +3 -0
  747. package/dist/modules/vibecontrols/tools/ui-session.d.ts +3 -0
  748. package/dist/modules/vibecontrols/tools/vibedeck-share-links.d.ts +3 -0
  749. package/dist/modules/vibecontrols/tools/vibedecks.d.ts +3 -0
  750. package/dist/modules/vibecontrols/tools/vibes.d.ts +3 -0
  751. package/dist/modules/vibecontrols/tools/webhooks.d.ts +3 -0
  752. package/dist/modules/workspaces/index.cjs.map +1 -1
  753. package/dist/modules/workspaces/index.d.ts +2 -7
  754. package/dist/modules/workspaces/index.js +1 -1
  755. package/dist/modules/workspaces/operations.d.ts +14 -0
  756. package/dist/modules/workspaces/tools.d.ts +3 -0
  757. package/dist/transports/http.d.ts +14 -0
  758. package/dist/transports/index.d.ts +3 -13
  759. package/dist/transports/security.d.ts +6 -0
  760. package/dist/transports/stdio.d.ts +6 -0
  761. package/package.json +2 -2
  762. package/dist/chunk-G76DKEPI.js.map +0 -1
  763. package/dist/context-DGO4h-Pd.d.cts +0 -139
  764. package/dist/context-DGO4h-Pd.d.ts +0 -139
  765. package/dist/core/index.d.cts +0 -59
  766. package/dist/http-Wj1WM6ji.d.ts +0 -22
  767. package/dist/http-uAT9KeBa.d.cts +0 -22
  768. package/dist/index.d.cts +0 -7
  769. package/dist/module-CfnM2XHg.d.cts +0 -67
  770. package/dist/module-VpgjAf8m.d.ts +0 -67
  771. package/dist/modules/adaptercloud/index.d.cts +0 -8
  772. package/dist/modules/artistrybase/index.d.cts +0 -8
  773. package/dist/modules/assethandler/index.d.cts +0 -8
  774. package/dist/modules/atheletebridge/index.d.cts +0 -8
  775. package/dist/modules/billing/index.d.cts +0 -8
  776. package/dist/modules/brainyrich/index.d.cts +0 -8
  777. package/dist/modules/buildmyiq/index.d.cts +0 -8
  778. package/dist/modules/channels/index.d.cts +0 -8
  779. package/dist/modules/collabkin/index.d.cts +0 -8
  780. package/dist/modules/comradecircle/index.d.cts +0 -8
  781. package/dist/modules/conversations/index.d.cts +0 -8
  782. package/dist/modules/coolandlovely/index.d.cts +0 -8
  783. package/dist/modules/cosmicintersection/index.d.cts +0 -8
  784. package/dist/modules/crewfoundry/index.d.cts +0 -8
  785. package/dist/modules/devportal/index.d.cts +0 -8
  786. package/dist/modules/ecoimpacthub/index.d.cts +0 -8
  787. package/dist/modules/eventfullymanaged/index.d.cts +0 -8
  788. package/dist/modules/export/index.d.cts +0 -8
  789. package/dist/modules/files/index.d.cts +0 -8
  790. package/dist/modules/fluidgrids/index.d.cts +0 -8
  791. package/dist/modules/ggnomad/index.d.cts +0 -8
  792. package/dist/modules/govcitizenhub/index.d.cts +0 -8
  793. package/dist/modules/groups/index.d.cts +0 -8
  794. package/dist/modules/headshotmarketing/index.d.cts +0 -8
  795. package/dist/modules/health/index.d.cts +0 -8
  796. package/dist/modules/healthybowl/index.d.cts +0 -8
  797. package/dist/modules/hookmovies/index.d.cts +0 -8
  798. package/dist/modules/housingvista/index.d.cts +0 -8
  799. package/dist/modules/integrations/index.d.cts +0 -8
  800. package/dist/modules/intelwatchtower/index.d.cts +0 -8
  801. package/dist/modules/kadaikodi/index.d.cts +0 -8
  802. package/dist/modules/labsofscience/index.d.cts +0 -8
  803. package/dist/modules/manufacturedops/index.d.cts +0 -8
  804. package/dist/modules/movethewheels/index.d.cts +0 -8
  805. package/dist/modules/mybodyshield/index.d.cts +0 -8
  806. package/dist/modules/notifications/index.d.cts +0 -8
  807. package/dist/modules/organizations/index.d.cts +0 -8
  808. package/dist/modules/planmagnet/index.d.cts +0 -8
  809. package/dist/modules/products/index.d.cts +0 -8
  810. package/dist/modules/proserviceworld/index.d.cts +0 -8
  811. package/dist/modules/rbac/index.d.cts +0 -8
  812. package/dist/modules/sandbox/index.d.cts +0 -8
  813. package/dist/modules/scheduler/index.d.cts +0 -8
  814. package/dist/modules/security/index.d.cts +0 -8
  815. package/dist/modules/semanticfed/index.d.cts +0 -8
  816. package/dist/modules/store/index.d.cts +0 -8
  817. package/dist/modules/subscriberbot/index.d.cts +0 -8
  818. package/dist/modules/support/index.d.cts +0 -8
  819. package/dist/modules/tags/index.d.cts +0 -8
  820. package/dist/modules/technospam/index.d.cts +0 -8
  821. package/dist/modules/theculturepost/index.d.cts +0 -8
  822. package/dist/modules/theglobalfuel/index.d.cts +0 -8
  823. package/dist/modules/timecampus/index.d.cts +0 -8
  824. package/dist/modules/tours/index.d.cts +0 -8
  825. package/dist/modules/vibecontrols/index.d.cts +0 -8
  826. package/dist/modules/workspaces/index.d.cts +0 -8
  827. package/dist/tool-name-BFdQwYrv.d.ts +0 -63
  828. package/dist/tool-name-DzP7TA0l.d.cts +0 -63
  829. package/dist/transports/index.d.cts +0 -13
@@ -1,8 +1,3 @@
1
- import { c as McpModule } from '../../module-VpgjAf8m.js';
2
- import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-DGO4h-Pd.js';
4
- import 'graphql-request';
5
-
1
+ import type { McpModule } from '../../core/index.js';
6
2
  declare const govcitizenhubModule: McpModule;
7
-
8
- export { govcitizenhubModule as default };
3
+ export default govcitizenhubModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-G76DKEPI.js';
1
+ import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-FHXCNP2U.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/modules/govcitizenhub/operations.ts
@@ -0,0 +1,43 @@
1
+ export declare const AGENCY_FIELDS = "\n id code name description jurisdiction contactEmail contactPhone\n isActive tags workspaceId createdAt updatedAt\n";
2
+ export declare const SERVICE_FIELDS = "\n id agencyId name slug category status summary eligibility\n feeType feeAmount currency slaDays requiredDocuments formSchema\n tags publishedAt workspaceId createdAt updatedAt\n";
3
+ export declare const APPLICATION_FIELDS = "\n id reference serviceId citizenId assignedToId status priority\n formData tags submittedAt dueDate decidedAt decisionReason\n workspaceId createdAt updatedAt\n";
4
+ export declare const DOCUMENT_FIELDS = "\n id applicationId name requirement status rejectionReason\n file { id } workspaceId createdAt updatedAt\n";
5
+ export declare const CASE_NOTE_FIELDS = "\n id applicationId authorId body type workspaceId createdAt updatedAt\n";
6
+ export declare const PERMIT_FIELDS = "\n id title serviceId holderId applicationId status verificationCode\n issuedAt expiresAt revokedAt revokeReason file { id }\n workspaceId createdAt updatedAt\n";
7
+ export declare const GRIEVANCE_FIELDS = "\n id title description category status priority reporterId assignedToId\n agencyId location latitude longitude photoFileIds resolution resolvedAt\n tags workspaceId createdAt updatedAt\n";
8
+ export declare const PAYMENT_FIELDS = "\n id applicationId payerId amount currency status providerRef\n receiptNumber lineItems paidAt refundedAt workspaceId createdAt updatedAt\n";
9
+ export declare const PAGE_INFO_FIELDS = "cursor hasMore";
10
+ export declare const GET_AGENCY = "\n query GovGetAgency($id: ID!) {\n govAgency(id: $id) {\n \n id code name description jurisdiction contactEmail contactPhone\n isActive tags workspaceId createdAt updatedAt\n\n services { id name slug category status }\n }\n }\n";
11
+ export declare const LIST_AGENCIES = "\n query GovListAgencies($isActive: Boolean, $pagination: PaginationInput) {\n govListAgencies(isActive: $isActive, pagination: $pagination) {\n \n id code name description jurisdiction contactEmail contactPhone\n isActive tags workspaceId createdAt updatedAt\n\n }\n }\n";
12
+ export declare const CREATE_AGENCY = "\n mutation GovCreateAgency($input: GovCreateAgencyInput!) {\n govCreateAgency(input: $input) {\n \n id code name description jurisdiction contactEmail contactPhone\n isActive tags workspaceId createdAt updatedAt\n\n }\n }\n";
13
+ export declare const UPDATE_AGENCY = "\n mutation GovUpdateAgency($id: ID!, $input: GovUpdateAgencyInput!) {\n govUpdateAgency(id: $id, input: $input) {\n \n id code name description jurisdiction contactEmail contactPhone\n isActive tags workspaceId createdAt updatedAt\n\n }\n }\n";
14
+ export declare const ARCHIVE_AGENCY = "\n mutation GovArchiveAgency($id: ID!) {\n govArchiveAgency(id: $id)\n }\n";
15
+ export declare const GET_SERVICE = "\n query GovGetService($id: ID!) {\n govService(id: $id) {\n \n id agencyId name slug category status summary eligibility\n feeType feeAmount currency slaDays requiredDocuments formSchema\n tags publishedAt workspaceId createdAt updatedAt\n\n agency { id name code }\n }\n }\n";
16
+ export declare const LIST_SERVICES = "\n query GovListServices(\n $agencyId: ID\n $category: GovServiceCategory\n $status: GovServiceStatus\n $pagination: PaginationInput\n ) {\n govListServices(\n agencyId: $agencyId\n category: $category\n status: $status\n pagination: $pagination\n ) {\n items { \n id agencyId name slug category status summary eligibility\n feeType feeAmount currency slaDays requiredDocuments formSchema\n tags publishedAt workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }\n";
17
+ export declare const CREATE_SERVICE = "\n mutation GovCreateService($input: GovCreateServiceInput!) {\n govCreateService(input: $input) {\n \n id agencyId name slug category status summary eligibility\n feeType feeAmount currency slaDays requiredDocuments formSchema\n tags publishedAt workspaceId createdAt updatedAt\n\n }\n }\n";
18
+ export declare const UPDATE_SERVICE = "\n mutation GovUpdateService($id: ID!, $input: GovUpdateServiceInput!) {\n govUpdateService(id: $id, input: $input) {\n \n id agencyId name slug category status summary eligibility\n feeType feeAmount currency slaDays requiredDocuments formSchema\n tags publishedAt workspaceId createdAt updatedAt\n\n }\n }\n";
19
+ export declare const TRANSITION_SERVICE = "\n mutation GovTransitionService($id: ID!, $status: GovServiceStatus!) {\n govTransitionService(id: $id, status: $status) {\n \n id agencyId name slug category status summary eligibility\n feeType feeAmount currency slaDays requiredDocuments formSchema\n tags publishedAt workspaceId createdAt updatedAt\n\n }\n }\n";
20
+ export declare const GET_APPLICATION = "\n query GovGetApplication($id: ID!) {\n govApplication(id: $id) {\n \n id reference serviceId citizenId assignedToId status priority\n formData tags submittedAt dueDate decidedAt decisionReason\n workspaceId createdAt updatedAt\n\n documents { \n id applicationId name requirement status rejectionReason\n file { id } workspaceId createdAt updatedAt\n }\n notes { \n id applicationId authorId body type workspaceId createdAt updatedAt\n }\n permits { \n id title serviceId holderId applicationId status verificationCode\n issuedAt expiresAt revokedAt revokeReason file { id }\n workspaceId createdAt updatedAt\n }\n }\n }\n";
21
+ export declare const LIST_APPLICATIONS = "\n query GovListApplications(\n $assignedToId: ID\n $citizenId: ID\n $serviceId: ID\n $status: GovApplicationStatus\n $pagination: PaginationInput\n ) {\n govListApplications(\n assignedToId: $assignedToId\n citizenId: $citizenId\n serviceId: $serviceId\n status: $status\n pagination: $pagination\n ) {\n items { \n id reference serviceId citizenId assignedToId status priority\n formData tags submittedAt dueDate decidedAt decisionReason\n workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }\n";
22
+ export declare const CREATE_APPLICATION = "\n mutation GovCreateApplication($input: GovCreateApplicationInput!) {\n govCreateApplication(input: $input) {\n \n id reference serviceId citizenId assignedToId status priority\n formData tags submittedAt dueDate decidedAt decisionReason\n workspaceId createdAt updatedAt\n\n }\n }\n";
23
+ export declare const UPDATE_APPLICATION = "\n mutation GovUpdateApplication($id: ID!, $input: GovUpdateApplicationInput!) {\n govUpdateApplication(id: $id, input: $input) {\n \n id reference serviceId citizenId assignedToId status priority\n formData tags submittedAt dueDate decidedAt decisionReason\n workspaceId createdAt updatedAt\n\n }\n }\n";
24
+ export declare const SUBMIT_APPLICATION = "\n mutation GovSubmitApplication($id: ID!) {\n govSubmitApplication(id: $id) {\n \n id reference serviceId citizenId assignedToId status priority\n formData tags submittedAt dueDate decidedAt decisionReason\n workspaceId createdAt updatedAt\n\n }\n }\n";
25
+ export declare const TRANSITION_APPLICATION = "\n mutation GovTransitionApplication(\n $id: ID!\n $status: GovApplicationStatus!\n $reason: String\n ) {\n govTransitionApplication(id: $id, status: $status, reason: $reason) {\n \n id reference serviceId citizenId assignedToId status priority\n formData tags submittedAt dueDate decidedAt decisionReason\n workspaceId createdAt updatedAt\n\n }\n }\n";
26
+ export declare const ADD_DOCUMENT = "\n mutation GovAddDocument($input: GovAddDocumentInput!) {\n govAddDocument(input: $input) {\n \n id applicationId name requirement status rejectionReason\n file { id } workspaceId createdAt updatedAt\n\n }\n }\n";
27
+ export declare const REVIEW_DOCUMENT = "\n mutation GovReviewDocument(\n $id: ID!\n $status: GovDocumentStatus!\n $rejectionReason: String\n ) {\n govReviewDocument(id: $id, status: $status, rejectionReason: $rejectionReason) {\n \n id applicationId name requirement status rejectionReason\n file { id } workspaceId createdAt updatedAt\n\n }\n }\n";
28
+ export declare const ADD_CASE_NOTE = "\n mutation GovAddCaseNote($input: GovAddCaseNoteInput!) {\n govAddCaseNote(input: $input) {\n \n id applicationId authorId body type workspaceId createdAt updatedAt\n\n }\n }\n";
29
+ export declare const LIST_PERMITS = "\n query GovListPermits($holderId: ID, $serviceId: ID, $status: GovPermitStatus) {\n govListPermits(holderId: $holderId, serviceId: $serviceId, status: $status) {\n \n id title serviceId holderId applicationId status verificationCode\n issuedAt expiresAt revokedAt revokeReason file { id }\n workspaceId createdAt updatedAt\n\n }\n }\n";
30
+ export declare const VERIFY_PERMIT = "\n query GovVerifyPermit($verificationCode: String!) {\n govVerifyPermit(verificationCode: $verificationCode) {\n \n id title serviceId holderId applicationId status verificationCode\n issuedAt expiresAt revokedAt revokeReason file { id }\n workspaceId createdAt updatedAt\n\n }\n }\n";
31
+ export declare const ISSUE_PERMIT = "\n mutation GovIssuePermit($input: GovIssuePermitInput!) {\n govIssuePermit(input: $input) {\n \n id title serviceId holderId applicationId status verificationCode\n issuedAt expiresAt revokedAt revokeReason file { id }\n workspaceId createdAt updatedAt\n\n }\n }\n";
32
+ export declare const REVOKE_PERMIT = "\n mutation GovRevokePermit($id: ID!, $reason: String) {\n govRevokePermit(id: $id, reason: $reason) {\n \n id title serviceId holderId applicationId status verificationCode\n issuedAt expiresAt revokedAt revokeReason file { id }\n workspaceId createdAt updatedAt\n\n }\n }\n";
33
+ export declare const GET_GRIEVANCE = "\n query GovGetGrievance($id: ID!) {\n govGrievance(id: $id) {\n \n id title description category status priority reporterId assignedToId\n agencyId location latitude longitude photoFileIds resolution resolvedAt\n tags workspaceId createdAt updatedAt\n\n }\n }\n";
34
+ export declare const LIST_GRIEVANCES = "\n query GovListGrievances(\n $agencyId: ID\n $reporterId: ID\n $status: GovGrievanceStatus\n $pagination: PaginationInput\n ) {\n govListGrievances(\n agencyId: $agencyId\n reporterId: $reporterId\n status: $status\n pagination: $pagination\n ) {\n items { \n id title description category status priority reporterId assignedToId\n agencyId location latitude longitude photoFileIds resolution resolvedAt\n tags workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }\n";
35
+ export declare const REPORT_GRIEVANCE = "\n mutation GovReportGrievance($input: GovReportGrievanceInput!) {\n govReportGrievance(input: $input) {\n \n id title description category status priority reporterId assignedToId\n agencyId location latitude longitude photoFileIds resolution resolvedAt\n tags workspaceId createdAt updatedAt\n\n }\n }\n";
36
+ export declare const UPDATE_GRIEVANCE = "\n mutation GovUpdateGrievance($id: ID!, $input: GovUpdateGrievanceInput!) {\n govUpdateGrievance(id: $id, input: $input) {\n \n id title description category status priority reporterId assignedToId\n agencyId location latitude longitude photoFileIds resolution resolvedAt\n tags workspaceId createdAt updatedAt\n\n }\n }\n";
37
+ export declare const TRANSITION_GRIEVANCE = "\n mutation GovTransitionGrievance(\n $id: ID!\n $status: GovGrievanceStatus!\n $resolution: String\n ) {\n govTransitionGrievance(id: $id, status: $status, resolution: $resolution) {\n \n id title description category status priority reporterId assignedToId\n agencyId location latitude longitude photoFileIds resolution resolvedAt\n tags workspaceId createdAt updatedAt\n\n }\n }\n";
38
+ export declare const GET_PAYMENT = "\n query GovGetPayment($id: ID!) {\n govPayment(id: $id) {\n \n id applicationId payerId amount currency status providerRef\n receiptNumber lineItems paidAt refundedAt workspaceId createdAt updatedAt\n\n }\n }\n";
39
+ export declare const LIST_PAYMENTS = "\n query GovListPayments(\n $applicationId: ID\n $payerId: ID\n $status: GovPaymentStatus\n $pagination: PaginationInput\n ) {\n govListPayments(\n applicationId: $applicationId\n payerId: $payerId\n status: $status\n pagination: $pagination\n ) {\n items { \n id applicationId payerId amount currency status providerRef\n receiptNumber lineItems paidAt refundedAt workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }\n";
40
+ export declare const CREATE_PAYMENT = "\n mutation GovCreatePayment($input: GovCreatePaymentInput!) {\n govCreatePayment(input: $input) {\n \n id applicationId payerId amount currency status providerRef\n receiptNumber lineItems paidAt refundedAt workspaceId createdAt updatedAt\n\n }\n }\n";
41
+ export declare const MARK_PAYMENT_PAID = "\n mutation GovMarkPaymentPaid($id: ID!, $providerRef: String) {\n govMarkPaymentPaid(id: $id, providerRef: $providerRef) {\n \n id applicationId payerId amount currency status providerRef\n receiptNumber lineItems paidAt refundedAt workspaceId createdAt updatedAt\n\n }\n }\n";
42
+ export declare const REFUND_PAYMENT = "\n mutation GovRefundPayment($id: ID!) {\n govRefundPayment(id: $id) {\n \n id applicationId payerId amount currency status providerRef\n receiptNumber lineItems paidAt refundedAt workspaceId createdAt updatedAt\n\n }\n }\n";
43
+ export declare const HEALTH = "\n query GovHealth {\n govHealth\n }\n";
@@ -0,0 +1,3 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type McpContext } from '../../core/index.js';
3
+ export declare function registerGovcitizenhubPrompts(server: McpServer, ctx: McpContext, track: (n: string) => string): void;
@@ -0,0 +1,3 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type McpContext } from '../../core/index.js';
3
+ export declare function registerGovcitizenhubResources(server: McpServer, ctx: McpContext, track: (uri: string) => string): void;
@@ -0,0 +1,3 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type McpContext } from '../../../core/index.js';
3
+ export declare function registerAgencyTools(server: McpServer, ctx: McpContext, track: (n: string) => string): void;
@@ -0,0 +1,3 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type McpContext } from '../../../core/index.js';
3
+ export declare function registerApplicationTools(server: McpServer, ctx: McpContext, track: (n: string) => string): void;
@@ -0,0 +1,3 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type McpContext } from '../../../core/index.js';
3
+ export declare function registerDocumentTools(server: McpServer, ctx: McpContext, track: (n: string) => string): void;
@@ -0,0 +1,3 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type McpContext } from '../../../core/index.js';
3
+ export declare function registerGrievanceTools(server: McpServer, ctx: McpContext, track: (n: string) => string): void;
@@ -0,0 +1,3 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type McpContext } from '../../../core/index.js';
3
+ export declare function registerHealthTools(server: McpServer, ctx: McpContext, track: (n: string) => string): void;
@@ -0,0 +1,3 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type McpContext } from '../../../core/index.js';
3
+ export declare function registerNoteTools(server: McpServer, ctx: McpContext, track: (n: string) => string): void;
@@ -0,0 +1,3 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type McpContext } from '../../../core/index.js';
3
+ export declare function registerPaymentTools(server: McpServer, ctx: McpContext, track: (n: string) => string): void;
@@ -0,0 +1,3 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type McpContext } from '../../../core/index.js';
3
+ export declare function registerPermitTools(server: McpServer, ctx: McpContext, track: (n: string) => string): void;
@@ -0,0 +1,3 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type McpContext } from '../../../core/index.js';
3
+ export declare function registerServiceTools(server: McpServer, ctx: McpContext, track: (n: string) => string): void;
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ export declare const ServiceCategoryEnum: z.ZodEnum<["CERTIFICATES", "EDUCATION", "GRIEVANCES", "HEALTH", "LICENCES_AND_PERMITS", "OTHER", "SOCIAL_WELFARE", "TAXES_AND_PAYMENTS", "UTILITIES"]>;
3
+ export declare const ServiceStatusEnum: z.ZodEnum<["DRAFT", "PUBLISHED", "RETIRED", "SUSPENDED"]>;
4
+ export declare const FeeTypeEnum: z.ZodEnum<["FIXED", "FREE", "VARIABLE"]>;
5
+ export declare const ApplicationStatusEnum: z.ZodEnum<["APPROVED", "DRAFT", "INFO_REQUESTED", "IN_REVIEW", "REJECTED", "SUBMITTED", "WITHDRAWN"]>;
6
+ export declare const CasePriorityEnum: z.ZodEnum<["HIGH", "LOW", "NORMAL", "URGENT"]>;
7
+ export declare const CaseNoteTypeEnum: z.ZodEnum<["CITIZEN_MESSAGE", "DECISION", "INFO_REQUEST", "INTERNAL"]>;
8
+ export declare const DocumentStatusEnum: z.ZodEnum<["ACCEPTED", "PENDING", "REJECTED"]>;
9
+ export declare const GrievanceStatusEnum: z.ZodEnum<["ACKNOWLEDGED", "CLOSED", "IN_PROGRESS", "OPEN", "REJECTED", "RESOLVED"]>;
10
+ export declare const PaymentStatusEnum: z.ZodEnum<["FAILED", "PAID", "PENDING", "REFUNDED"]>;
11
+ export declare const PermitStatusEnum: z.ZodEnum<["ACTIVE", "EXPIRED", "ISSUED", "REVOKED"]>;
12
+ export declare const JsonObject: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13
+ export declare function buildPagination(args: {
14
+ limit?: number;
15
+ offset?: number;
16
+ cursor?: string;
17
+ }): Record<string, unknown> | undefined;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/core/errors.ts","../../../src/core/tool-name.ts","../../../src/core/result.ts","../../../src/modules/groups/operations.ts","../../../src/modules/groups/tools.ts","../../../src/modules/groups/index.ts"],"names":["z","data"],"mappings":";;;;;;;;;;;AA8BO,IAAM,gBAAA,GAAN,cAA+B,KAAA,CAAM;AAAA,EACjB,KAAA;AAAA,EAEzB,WAAA,CAAY,SAAiB,KAAA,EAAiB;AAC5C,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,IAAA,CAAK,IAAA,GAAO,kBAAA;AACZ,IAAA,IAAA,CAAK,KAAA,GAAQ,KAAA;AAAA,EACf;AACF,CAAA;;;AC1BA,IAAM,oBAAA,GAAuB,EAAA;AAE7B,SAAS,cAAA,CAAe,MAAc,I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cAAc,CAAA;AAAA,MACvC,SAAS,KAAA,EAAO;AACd,QAAA,GAAA,CAAI,MAAA,CAAO,MAAM,wBAAA,EAA0B,EAAE,OAAO,MAAA,CAAO,KAAK,GAAG,CAAA;AACnE,QAAA,OAAO,WAAA;AAAA,UACL,iCAAiC,KAAA,YAAiB,KAAA,GAAQ,MAAM,OAAA,GAAU,MAAA,CAAO,KAAK,CAAC,CAAA;AAAA,SACzF;AAAA,MACF;AAAA,IACF;AAAA,GACF;AACF;;;AC9XA,IAAM,YAAA,GAA0B;AAAA,EAC9B,EAAA,EAAI,QAAA;AAAA,EACJ,OAAA,EAAS,OAAA;AAAA,EACT,WAAA,EAAa,QAAA;AAAA,EACb,SAAA,EAAW,CAAC,MAAM,CAAA;AAAA,EAClB,YAAA,EAAc,EAAE,KAAA,EAAO,EAAC,EAAE;AAAA,EAE1B,QAAA,CAAS,QAAmB,GAAA,EAAqC;AAC/D,IAAA,MAAM,QAAkB,EAAC;AACzB,IAAA,MAAM,KAAA,GAAQ,CAAC,CAAA,KAAsB;AACnC,MAAA,KAAA,CAAM,KAAK,CAAC,CAAA;AACZ,MAAA,OAAO,CAAA;AAAA,IACT,CAAA;AAEA,IAAA,mBAAA,CAAoB,MAAA,EAAQ,KAAK,KAAK,CAAA;AAEtC,IAAA,OAAO,EAAE,KAAA,EAAO,SAAA,EAAW,EAAC,EAAG,OAAA,EAAS,EAAC,EAAE;AAAA,EAC7C;AACF,CAAA;AAEA,IAAO,cAAA,GAAQ","file":"index.cjs","sourcesContent":["/**\n * Error classes for MCP SDK.\n *\n * Modules MUST throw these instead of throwing raw Errors. The registerTool\n * wrapper in result.ts catches and maps them to MCP-protocol-compliant\n * `{ isError: true, content: [...] }` responses.\n *\n * Throwing past the wrapper to the protocol surfaces as JSON-RPC -32603 to\n * the client and is a protocol bug.\n */\n\nexport class McpUserError extends Error {\n public readonly hint: string | undefined;\n\n constructor(message: string, opts?: { hint?: string }) {\n super(message);\n this.name = 'McpUserError';\n this.hint = opts?.hint;\n }\n}\n\nexport class McpAuthError extends McpUserError {\n constructor(message: string, opts?: { hint?: string }) {\n super(message, {\n hint: opts?.hint ?? 'Run the auth_login tool to authenticate.',\n });\n this.name = 'McpAuthError';\n }\n}\n\nexport class McpInternalError extends Error {\n public override readonly cause: unknown;\n\n constructor(message: string, cause?: unknown) {\n super(message);\n this.name = 'McpInternalError';\n this.cause = cause;\n }\n}\n","/**\n * Tool / resource / prompt naming helpers.\n *\n * Mandatory product prefix avoids collisions when Claude Desktop runs\n * multiple MCP servers concurrently (typical setup is ~6).\n *\n * Tool names are capped at 63 characters — Claude Desktop pre-1.x\n * truncated at 64 in some versions.\n */\n\nimport { McpInternalError } from './errors.js';\n\nconst MAX_TOOL_NAME_LENGTH = 63;\n\nfunction assertSafeName(name: string, kind: 'tool' | 'resource' | 'prompt'): string {\n if (kind === 'tool' && name.length > MAX_TOOL_NAME_LENGTH) {\n throw new McpInternalError(\n `Tool name '${name}' exceeds ${MAX_TOOL_NAME_LENGTH} characters (some MCP clients truncate at 64).`,\n );\n }\n return name;\n}\n\n/**\n * Build a tool name. Format: `<productName>_<...parts>` (snake_case).\n * Example: mcpToolName('vibecontrols', 'vibes', 'list') -> 'vibecontrols_vibes_list'\n */\nexport function mcpToolName(productName: string, ...parts: string[]): string {\n if (!productName) {\n throw new McpInternalError('mcpToolName: productName is required');\n }\n const name = [productName, ...parts].filter(Boolean).join('_');\n return assertSafeName(name, 'tool');\n}\n\n/**\n * Build a resource URI. Format: `<productName>://<...parts>`.\n * Example: mcpResourceUri('vibecontrols', 'schema') -> 'vibecontrols://schema'\n */\nexport function mcpResourceUri(productName: string, ...parts: string[]): string {\n if (!productName) {\n throw new McpInternalError('mcpResourceUri: productName is required');\n }\n return `${productName}://${parts.filter(Boolean).join('/')}`;\n}\n\n/**\n * Build a prompt name. Format: `<productName>-<...parts>` (kebab-case).\n * Example: mcpPromptName('vibecontrols', 'setup') -> 'vibecontrols-setup'\n */\nexport function mcpPromptName(productName: string, ...parts: string[]): string {\n if (!productName) {\n throw new McpInternalError('mcpPromptName: productName is required');\n }\n return [productName, ...parts].filter(Boolean).join('-');\n}\n\nexport const TOOL_NAME_LIMIT = MAX_TOOL_NAME_LENGTH;\n\n/**\n * Name-based hint heuristics for MCP `annotations` (readOnlyHint /\n * destructiveHint). Used by tool-governance.ts to auto-fill annotations for\n * the fleet of product modules that call `server.registerTool` directly\n * (bypassing the `registerTool()` core helper) and so never set them\n * explicitly today (BOFF-3903). Deliberately conservative — matched against\n * whole `_`-delimited segments so e.g. `timeentries_delete` and\n * `pomodoro_delete_goal` match, but a hypothetical `undeletable_check`\n * would not.\n *\n * A module can always override the inference by passing an explicit\n * `annotations` object to `registerTool()` / `server.registerTool()`.\n */\nconst DESTRUCTIVE_NAME_SEGMENT = /(?:^|_)delete(?:_|$)/i;\nconst READ_ONLY_NAME_SEGMENT = /(?:^|_)(?:list|get|search|check|read|count|stats|by_date)(?:_|$)/i;\n\n/** True when a tool name looks destructive (irreversibly deletes data) by naming convention. */\nexport function inferDestructiveHint(toolName: string): boolean {\n return DESTRUCTIVE_NAME_SEGMENT.test(toolName);\n}\n\n/**\n * True when a tool name looks read-only by naming convention. Never true for\n * a name that also looks destructive (a tool can't be both).\n */\nexport function inferReadOnlyHint(toolName: string): boolean {\n return !inferDestructiveHint(toolName) && READ_ONLY_NAME_SEGMENT.test(toolName);\n}\n","/**\n * MCP tool result helpers + central handler.\n *\n * Modules NEVER call server.registerTool directly — they use registerTool()\n * from this module so the central try/catch wraps the handler and:\n * - maps thrown McpUserError / McpAuthError / McpInternalError to\n * MCP-protocol-compliant `{ isError: true, content: [...] }` shapes\n * - threads `_meta.progressToken` into ctx.progress for long ops\n * - emits a structured log line on every error\n * - never leaks `cause` from McpInternalError to the client\n *\n * This is the analog of cli-sdk's createProgram() central error handler.\n */\n\nimport type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { ZodRawShape } from 'zod';\nimport type { McpContext } from './context.js';\nimport { McpAuthError, McpInternalError, McpUserError } from './errors.js';\nimport type { ToolAnnotations } from './tool-governance.js';\n\nexport interface ToolTextContent {\n type: 'text';\n text: string;\n [k: string]: unknown;\n}\n\nexport interface ToolResult {\n content: ToolTextContent[];\n isError?: boolean;\n structuredContent?: Record<string, unknown>;\n [k: string]: unknown;\n}\n\nexport interface ToolMeta {\n progressToken?: string | number;\n}\n\n/**\n * Build a successful tool result with JSON content (pretty-printed).\n */\nexport function jsonResult(data: unknown, structured?: Record<string, unknown>): ToolResult {\n const result: ToolResult = {\n content: [{ type: 'text', text: JSON.stringify(data, null, 2) }],\n };\n if (structured !== undefined) {\n result.structuredContent = structured;\n }\n return result;\n}\n\n/**\n * Build a successful tool result with plain text content.\n */\nexport function textResult(text: string): ToolResult {\n return { content: [{ type: 'text', text }] };\n}\n\n/**\n * Build an error tool result. Honors MCP's `{ isError: true, content }` shape.\n * Optional hint is appended on a new line so the LLM can react.\n */\nexport function errorResult(message: string, hint?: string): ToolResult {\n const text = hint ? `${message}\\n\\nHint: ${hint}` : message;\n return { content: [{ type: 'text', text }], isError: true };\n}\n\nexport interface ToolMetadata {\n title: string;\n description: string;\n inputSchema?: ZodRawShape;\n /**\n * Explicit MCP annotations (readOnlyHint / destructiveHint / ...). Optional\n * — when omitted, `wrapServerWithToolGovernance` (applied centrally in\n * `createMcpServer`) infers them from the tool name. Set this to override\n * the inference for a tool whose name doesn't match the naming convention.\n */\n annotations?: ToolAnnotations;\n}\n\nexport type ToolHandler<TArgs = Record<string, unknown>> = (\n args: TArgs,\n ctx: McpContext,\n meta: ToolMeta,\n) => Promise<unknown>;\n\n/**\n * Register a tool with the central error wrapper.\n *\n * The handler returns a plain value or void. The wrapper:\n * - wraps non-undefined returns in jsonResult()\n * - if the value already looks like a ToolResult (has `content`), passes through\n * - catches McpAuthError / McpUserError / McpInternalError / generic Error\n * - logs every error via ctx.logger.error\n */\nexport function registerTool<TArgs extends Record<string, unknown>>(\n server: McpServer,\n ctx: McpContext,\n name: string,\n metadata: ToolMetadata,\n handler: ToolHandler<TArgs>,\n): void {\n const sdkConfig = {\n title: metadata.title,\n description: metadata.description,\n ...(metadata.inputSchema ? { inputSchema: metadata.inputSchema } : {}),\n ...(metadata.annotations ? { annotations: metadata.annotations } : {}),\n };\n\n // The MCP SDK's registerTool signature is `(name, config, handler)`. The\n // handler arity depends on whether inputSchema is present (1-arg without,\n // 2-arg with). We accept a unified handler shape and dispatch at runtime.\n // The SDK's typing is strict and conditional on the inputSchema generic;\n // bypass with a cast since runtime acceptance is unconditional.\n const wrapped = async (...callbackArgs: unknown[]): Promise<ToolResult> => {\n const hasArgs = callbackArgs.length === 2;\n const args = (hasArgs ? callbackArgs[0] : {}) as TArgs;\n const extra = (hasArgs ? callbackArgs[1] : callbackArgs[0]) as\n { _meta?: { progressToken?: string | number } } | undefined;\n\n const progressToken = extra?._meta?.progressToken;\n const meta: ToolMeta = progressToken !== undefined ? { progressToken } : {};\n\n try {\n const result = await handler(args, ctx, meta);\n if (isToolResult(result)) return result;\n if (result === undefined) return textResult('OK');\n return jsonResult(result);\n } catch (error) {\n return mapErrorToResult(error, ctx, name);\n }\n };\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (server as any).registerTool(name, sdkConfig, wrapped);\n}\n\nfunction isToolResult(value: unknown): value is ToolResult {\n return (\n !!value &&\n typeof value === 'object' &&\n 'content' in value &&\n Array.isArray((value as ToolResult).content)\n );\n}\n\nfunction mapErrorToResult(error: unknown, ctx: McpContext, toolName: string): ToolResult {\n if (error instanceof McpAuthError) {\n ctx.logger.warn(`${toolName}: auth required`, { message: error.message });\n return errorResult(error.message, error.hint);\n }\n if (error instanceof McpUserError) {\n ctx.logger.info(`${toolName}: user error`, { message: error.message });\n return errorResult(error.message, error.hint);\n }\n if (error instanceof McpInternalError) {\n ctx.logger.error(`${toolName}: internal error`, {\n message: error.message,\n cause: stringifyCause(error.cause),\n });\n return errorResult(`Internal error in ${toolName}.`);\n }\n const message = error instanceof Error ? error.message : String(error);\n ctx.logger.error(`${toolName}: unhandled error`, { message });\n return errorResult(`${toolName}: ${message}`);\n}\n\nfunction stringifyCause(cause: unknown): string | undefined {\n if (cause === undefined || cause === null) return undefined;\n if (cause instanceof Error) return cause.message;\n try {\n return JSON.stringify(cause);\n } catch {\n return String(cause);\n }\n}\n","/**\n * Groups module GraphQL operations.\n * Aligned with wspace-groups-svc origin/main (BOFF-8194).\n */\n\nexport const LIST_GROUPS = `\n query ListGroups($filter: GroupFilter, $first: Int, $after: String, $sort: GroupSort) {\n groups(filter: $filter, first: $first, after: $after, sort: $sort) {\n edges { node { id name groupType visibility status memberCount createdAt } }\n pageInfo { hasNextPage endCursor }\n }\n }\n`;\n\nexport const GET_GROUP = `\n query GetGroup($id: ID!) {\n group(id: $id) {\n id name description groupType visibility status scope membershipType memberCount createdAt updatedAt\n }\n }\n`;\n\nexport const CREATE_GROUP = `\n mutation CreateGroup($input: CreateGroupInput!) {\n createGroup(input: $input) {\n id name groupType visibility status\n }\n }\n`;\n\nexport const UPDATE_GROUP = `\n mutation UpdateGroup($id: ID!, $input: UpdateGroupInput!) {\n updateGroup(id: $id, input: $input) {\n id name description visibility status updatedAt\n }\n }\n`;\n\nexport const DELETE_GROUP = `\n mutation DeleteGroup($id: ID!) {\n deleteGroup(id: $id)\n }\n`;\n\nexport const ARCHIVE_GROUP = `\n mutation ArchiveGroup($id: ID!) {\n archiveGroup(id: $id) { id status }\n }\n`;\n\nexport const LIST_GROUP_MEMBERS = `\n query ListGroupMembers($groupId: ID!, $first: Int, $after: String) {\n groupMembers(groupId: $groupId, first: $first, after: $after) {\n edges { node { id entityId entityType role invitationStatus membershipType joinedAt } }\n pageInfo { hasNextPage endCursor }\n }\n }\n`;\n\nexport const ADD_GROUP_MEMBERS = `\n mutation AddGroupMembers($groupId: ID!, $members: [AddMemberInput!]!) {\n addGroupMembers(groupId: $groupId, members: $members) {\n successCount failedCount\n added { id entityId entityType role }\n failed { entityId entityType error }\n }\n }\n`;\n\nexport const REMOVE_GROUP_MEMBERS = `\n mutation RemoveGroupMembers($groupId: ID!, $membershipIds: [ID!]!) {\n removeGroupMembers(groupId: $groupId, membershipIds: $membershipIds) {\n successCount failedCount\n removed\n failed\n }\n }\n`;\n\nexport const GROUP_AUDIT_LOGS = `\n query GroupAuditLogs($groupId: ID!, $first: Int, $after: String) {\n groupAuditLogs(groupId: $groupId, first: $first, after: $after) {\n id eventType actorId actorType description createdAt\n }\n }\n`;\n\nexport const ENTITY_GROUPS = `\n query EntityGroups($entityId: ID!, $entityType: String!, $first: Int) {\n entityGroups(entityId: $entityId, entityType: $entityType, first: $first) {\n edges { node { id name groupType visibility memberCount } }\n }\n }\n`;\n","/**\n * Groups MCP tools — CRUD + members.{list,add,remove} + hierarchy + activity.\n * Surface mirrors cli-sdk/src/modules/groups/commands.ts.\n */\n\nimport { z } from 'zod';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { jsonResult, errorResult, mcpToolName, type McpContext } from '../../core/index.js';\nimport * as ops from './operations.js';\n\ninterface GroupNode {\n id: string;\n name: string;\n groupType?: string;\n visibility?: string;\n status?: string;\n memberCount?: number;\n createdAt?: string;\n}\n\ninterface MembershipNode {\n id: string;\n entityId: string;\n entityType?: string;\n role?: string;\n invitationStatus?: string;\n membershipType?: string;\n joinedAt?: string;\n}\n\n// Enum values pinned to wspace-groups-svc origin/main (BOFF-8194).\nconst GroupTypeEnum = z\n .enum([\n 'AUDIENCE',\n 'BETA_PROGRAM',\n 'CHANNEL_GROUP',\n 'CUSTOM',\n 'DYNAMIC_AUDIENCE',\n 'FEATURE_FLAG_GROUP',\n 'PROJECT_GROUP',\n 'RESOURCE_COLLECTION',\n 'SECURITY_GROUP',\n 'TEAM',\n ])\n .describe('Group classification');\nconst VisibilityEnum = z.enum(['INTERNAL', 'PRIVATE', 'PUBLIC_LINK']).describe('Group visibility');\nconst ScopeEnum = z\n .enum(['GLOBAL', 'PRIVATE', 'TENANT', 'WORKSPACE'])\n .describe('Scope of the group');\nconst MembershipTypeEnum = z\n .enum(['DYNAMIC', 'HYBRID', 'STATIC'])\n .describe('How membership is granted');\nconst StatusEnum = z.string().describe('Group status (will be uppercased)');\nconst EntityTypeEnum = z\n .enum(['USER', 'GROUP', 'BOT', 'APP'])\n .describe('Entity type for membership');\nconst MemberRoleEnum = z\n .enum(['ADMIN', 'BOT', 'GUEST', 'MEMBER', 'MODERATOR', 'OBSERVER', 'OWNER'])\n .describe('Role within the group');\n\nexport function registerGroupsTools(\n server: McpServer,\n ctx: McpContext,\n track: (n: string) => string,\n): void {\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_list')),\n {\n title: 'List Groups',\n description: 'List groups with optional type/status filters and pagination.',\n inputSchema: {\n type: GroupTypeEnum.optional().describe('Filter by groupType'),\n status: z.string().optional().describe('Filter by status (will be uppercased)'),\n limit: z.number().optional().describe('Page size (default 50)'),\n },\n },\n async ({ type, status, limit }) => {\n try {\n const filter: Record<string, unknown> = {};\n if (type !== undefined) filter.groupType = type;\n if (status !== undefined) filter.status = status.toUpperCase();\n\n const data = await ctx.gql.workspace.request<{\n groups: { edges: Array<{ node: GroupNode }>; pageInfo: { hasNextPage: boolean } };\n }>(ops.LIST_GROUPS, {\n filter: Object.keys(filter).length > 0 ? filter : undefined,\n first: limit ?? 50,\n });\n return jsonResult({\n items: data.groups.edges.map((e) => e.node),\n pageInfo: data.groups.pageInfo,\n });\n } catch (error) {\n ctx.logger.error('groups_list failed', { error: String(error) });\n return errorResult(\n `Failed to list groups: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_get')),\n {\n title: 'Get Group',\n description: 'Get a group by its ID.',\n inputSchema: { id: z.string().describe('Group ID') },\n },\n async ({ id }) => {\n try {\n const data = await ctx.gql.workspace.request<{ group: GroupNode | null }>(ops.GET_GROUP, {\n id,\n });\n if (!data.group) {\n return errorResult(`Group ${id} not found`);\n }\n return jsonResult(data.group);\n } catch (error) {\n ctx.logger.error('groups_get failed', { error: String(error) });\n return errorResult(\n `Failed to get group: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_create')),\n {\n title: 'Create Group',\n description: 'Create a new group.',\n inputSchema: {\n name: z.string().describe('Group name'),\n description: z.string().optional().describe('Group description'),\n groupType: GroupTypeEnum.optional().describe('Group type (default TEAM)'),\n visibility: VisibilityEnum.optional().describe('Visibility (default PRIVATE)'),\n scope: ScopeEnum.optional().describe('Scope (default WORKSPACE)'),\n membershipType: MembershipTypeEnum.optional().describe('Membership type (default STATIC)'),\n },\n },\n async ({ name, description, groupType, visibility, scope, membershipType }) => {\n try {\n const input: Record<string, unknown> = {\n name,\n groupType: groupType ?? 'TEAM',\n visibility: visibility ?? 'PRIVATE',\n scope: scope ?? 'WORKSPACE',\n membershipType: membershipType ?? 'STATIC',\n };\n if (description !== undefined) input.description = description;\n\n const data = await ctx.gql.workspace.request<{ createGroup: GroupNode }>(ops.CREATE_GROUP, {\n input,\n });\n return jsonResult(data.createGroup);\n } catch (error) {\n ctx.logger.error('groups_create failed', { error: String(error) });\n return errorResult(\n `Failed to create group: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_update')),\n {\n title: 'Update Group',\n description: 'Update a group. At least one mutable field must be provided.',\n inputSchema: {\n id: z.string().describe('Group ID'),\n name: z.string().optional().describe('Updated name'),\n description: z.string().optional().describe('Updated description'),\n visibility: VisibilityEnum.optional().describe('Updated visibility'),\n status: StatusEnum.optional(),\n },\n },\n async ({ id, name, description, visibility, status }) => {\n try {\n const input: Record<string, unknown> = {};\n if (name !== undefined) input.name = name;\n if (description !== undefined) input.description = description;\n if (visibility !== undefined) input.visibility = visibility;\n if (status !== undefined) input.status = status.toUpperCase();\n if (Object.keys(input).length === 0) {\n return errorResult(\n 'No updates specified — provide at least one of name/description/visibility/status',\n );\n }\n const data = await ctx.gql.workspace.request<{ updateGroup: GroupNode }>(ops.UPDATE_GROUP, {\n id,\n input,\n });\n return jsonResult(data.updateGroup);\n } catch (error) {\n ctx.logger.error('groups_update failed', { error: String(error) });\n return errorResult(\n `Failed to update group: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_delete')),\n {\n title: 'Delete Group',\n description: 'Delete a group. Use archive=true for a soft delete (status change only).',\n inputSchema: {\n id: z.string().describe('Group ID'),\n archive: z.boolean().optional().describe('Archive instead of hard delete (default false)'),\n },\n },\n async ({ id, archive }) => {\n try {\n if (archive === true) {\n const data = await ctx.gql.workspace.request<{\n archiveGroup: { id: string; status: string };\n }>(ops.ARCHIVE_GROUP, { id });\n return jsonResult({ archived: true, group: data.archiveGroup });\n }\n const data = await ctx.gql.workspace.request<{ deleteGroup: boolean }>(ops.DELETE_GROUP, {\n id,\n });\n return jsonResult({ deleted: data.deleteGroup, groupId: id });\n } catch (error) {\n ctx.logger.error('groups_delete failed', { error: String(error) });\n return errorResult(\n `Failed to delete group: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Members ─────────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_members_list')),\n {\n title: 'List Group Members',\n description: 'List members of a group.',\n inputSchema: {\n groupId: z.string().describe('Group ID'),\n limit: z.number().optional().describe('Page size (default 100)'),\n },\n },\n async ({ groupId, limit }) => {\n try {\n const data = await ctx.gql.workspace.request<{\n groupMembers: {\n edges: Array<{ node: MembershipNode }>;\n pageInfo: { hasNextPage: boolean; endCursor?: string };\n };\n }>(ops.LIST_GROUP_MEMBERS, { groupId, first: limit ?? 100 });\n return jsonResult({\n items: data.groupMembers.edges.map((e) => e.node),\n pageInfo: data.groupMembers.pageInfo,\n });\n } catch (error) {\n ctx.logger.error('groups_members_list failed', { error: String(error) });\n return errorResult(\n `Failed to list group members: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_members_add')),\n {\n title: 'Add Group Member',\n description: 'Add a single member to a group.',\n inputSchema: {\n groupId: z.string().describe('Group ID'),\n entityId: z.string().describe('Entity (user/group/bot/integration) ID to add'),\n entityType: EntityTypeEnum.optional().describe('Entity type (default USER)'),\n role: MemberRoleEnum.optional().describe('Role (default MEMBER)'),\n },\n },\n async ({ groupId, entityId, entityType, role }) => {\n try {\n const member: Record<string, unknown> = {\n entityId,\n entityType: entityType ?? 'USER',\n role: role ?? 'MEMBER',\n };\n const data = await ctx.gql.workspace.request<{\n addGroupMembers: {\n successCount: number;\n failedCount: number;\n added: MembershipNode[];\n failed: Array<{ entityId: string; entityType?: string; error: string }>;\n };\n }>(ops.ADD_GROUP_MEMBERS, { groupId, members: [member] });\n return jsonResult(data.addGroupMembers);\n } catch (error) {\n ctx.logger.error('groups_members_add failed', { error: String(error) });\n return errorResult(\n `Failed to add group member: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_members_remove')),\n {\n title: 'Remove Group Members',\n description: 'Remove one or more members from a group by membership ID.',\n inputSchema: {\n groupId: z.string().describe('Group ID'),\n membershipIds: z.array(z.string()).describe('Membership IDs to remove'),\n },\n },\n async ({ groupId, membershipIds }) => {\n try {\n if (membershipIds.length === 0) {\n return errorResult('At least one membershipId is required');\n }\n const data = await ctx.gql.workspace.request<{\n removeGroupMembers: {\n successCount: number;\n failedCount: number;\n removed: string[];\n failed: string[];\n };\n }>(ops.REMOVE_GROUP_MEMBERS, { groupId, membershipIds });\n return jsonResult(data.removeGroupMembers);\n } catch (error) {\n ctx.logger.error('groups_members_remove failed', { error: String(error) });\n return errorResult(\n `Failed to remove group members: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Hierarchy & activity ────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_hierarchy')),\n {\n title: 'Entity Group Hierarchy',\n description: 'Show all groups an entity (user/group) belongs to.',\n inputSchema: {\n entityId: z.string().describe('Entity ID (user/group)'),\n entityType: z.enum(['USER', 'GROUP']).optional().describe('Entity type (default USER)'),\n limit: z.number().optional().describe('Page size (default 100)'),\n },\n },\n async ({ entityId, entityType, limit }) => {\n try {\n const data = await ctx.gql.workspace.request<{\n entityGroups: { edges: Array<{ node: GroupNode }> };\n }>(ops.ENTITY_GROUPS, {\n entityId,\n entityType: entityType ?? 'USER',\n first: limit ?? 100,\n });\n return jsonResult(data.entityGroups.edges.map((e) => e.node));\n } catch (error) {\n ctx.logger.error('groups_hierarchy failed', { error: String(error) });\n return errorResult(\n `Failed to get group hierarchy: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_activity')),\n {\n title: 'Group Audit Log',\n description: 'Audit log for a group.',\n inputSchema: {\n groupId: z.string().describe('Group ID'),\n limit: z.number().optional().describe('Page size (default 100)'),\n },\n },\n async ({ groupId, limit }) => {\n try {\n const data = await ctx.gql.workspace.request<{\n groupAuditLogs: Array<Record<string, unknown>>;\n }>(ops.GROUP_AUDIT_LOGS, { groupId, first: limit ?? 100 });\n return jsonResult(data.groupAuditLogs);\n } catch (error) {\n ctx.logger.error('groups_activity failed', { error: String(error) });\n return errorResult(\n `Failed to get group activity: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n}\n","/**\n * Groups module — workspace groups CRUD + members + hierarchy + activity.\n * Surface mirrors cli-sdk/src/modules/groups/.\n */\n\nimport type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { McpContext, McpModule, ModuleRegistration } from '../../core/index.js';\nimport { registerGroupsTools } from './tools.js';\n\nconst groupsModule: McpModule = {\n id: 'groups',\n version: '0.0.1',\n displayName: 'Groups',\n dependsOn: ['auth'],\n capabilities: { tools: {} },\n\n register(server: McpServer, ctx: McpContext): ModuleRegistration {\n const tools: string[] = [];\n const track = (n: string): string => {\n tools.push(n);\n return n;\n };\n\n registerGroupsTools(server, ctx, track);\n\n return { tools, resources: [], prompts: [] };\n },\n};\n\nexport default groupsModule;\n"]}
1
+ {"version":3,"sources":["../../../src/core/errors.ts","../../../src/core/tool-name.ts","../../../src/core/result.ts","../../../src/modules/groups/operations.ts","../../../src/modules/groups/tools.ts","../../../src/modules/groups/index.ts"],"names":["z","data"],"mappings":";;;;;;;;;;;AA8BO,IAAM,gBAAA,GAAN,cAA+B,KAAA,CAAM;AAAA,EACjB,KAAA;AAAA,EAEzB,WAAA,CAAY,SAAiB,KAAA,EAAiB;AAC5C,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,IAAA,CAAK,IAAA,GAAO,kBAAA;AACZ,IAAA,IAAA,CAAK,KAAA,GAAQ,KAAA;AAAA,EACf;AACF,CAAA;;;AC1BA,IAAM,oBAAA,GAAuB,EAAA;AAE7B,SAAS,cAAA,CAAe,MAAc,IAAA,EAA8C;AAClF,EAAA,IAAuB,IAAA,CAAK,MAAA,GAAS,oBAAA,EAAsB;AACzD,IAAA,MAAM,IAAI,gBAAA;AAAA,MACR,CAAA,WAAA,EAAc,IAAI,CAAA,UAAA,EAAa,oBAAoB,CAAA,8CAAA;AAAA,KACrD;AAAA,EACF;AACA,EAAA,OAAO,IAAA;AACT;AAMO,SAAS,WAAA,CAAY,gBAAwB,KAAA,EAAyB;AAC3E,EAAA,IAAI,CAAC,WAAA,EAAa;AAChB,IAAA,MAAM,IAAI,iBAAiB,sCAAsC,CAAA;AAAA,EACnE;AACA,EAAA,MAAM,IAAA,GAAO,CAAC,WAAA,EAAa,GAAG,KAAK,EAAE,MAAA,CAAO,OAAO,CAAA,CAAE,IAAA,CAAK,GAAG,CAAA;AAC7D,EAAA,OAAO,cAAA,CAAe,IAAY,CAAA;AACpC;;;ACOO,SAAS,UAAA,CAAW,MAAe,UAAA,EAAkD;AAC1F,EAAA,MAAM,MAAA,GAAqB;AAAA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AA,GAAQ,CAAC,CAAA,KAAsB;AACnC,MAAA,KAAA,CAAM,KAAK,CAAC,CAAA;AACZ,MAAA,OAAO,CAAA;AAAA,IACT,CAAA;AAEA,IAAA,mBAAA,CAAoB,MAAA,EAAQ,KAAK,KAAK,CAAA;AAEtC,IAAA,OAAO,EAAE,KAAA,EAAO,SAAA,EAAW,EAAC,EAAG,OAAA,EAAS,EAAC,EAAE;AAAA,EAC7C;AACF,CAAA;AAEA,IAAO,cAAA,GAAQ","file":"index.cjs","sourcesContent":["/**\n * Error classes for MCP SDK.\n *\n * Modules MUST throw these instead of throwing raw Errors. The registerTool\n * wrapper in result.ts catches and maps them to MCP-protocol-compliant\n * `{ isError: true, content: [...] }` responses.\n *\n * Throwing past the wrapper to the protocol surfaces as JSON-RPC -32603 to\n * the client and is a protocol bug.\n */\n\nexport class McpUserError extends Error {\n public readonly hint: string | undefined;\n\n constructor(message: string, opts?: { hint?: string }) {\n super(message);\n this.name = 'McpUserError';\n this.hint = opts?.hint;\n }\n}\n\nexport class McpAuthError extends McpUserError {\n constructor(message: string, opts?: { hint?: string }) {\n super(message, {\n hint: opts?.hint ?? 'Run the auth_login tool to authenticate.',\n });\n this.name = 'McpAuthError';\n }\n}\n\nexport class McpInternalError extends Error {\n public override readonly cause: unknown;\n\n constructor(message: string, cause?: unknown) {\n super(message);\n this.name = 'McpInternalError';\n this.cause = cause;\n }\n}\n","/**\n * Tool / resource / prompt naming helpers.\n *\n * Mandatory product prefix avoids collisions when Claude Desktop runs\n * multiple MCP servers concurrently (typical setup is ~6).\n *\n * Tool names are capped at 63 characters — Claude Desktop pre-1.x\n * truncated at 64 in some versions.\n */\n\nimport { McpInternalError } from './errors.js';\n\nconst MAX_TOOL_NAME_LENGTH = 63;\n\nfunction assertSafeName(name: string, kind: 'tool' | 'resource' | 'prompt'): string {\n if (kind === 'tool' && name.length > MAX_TOOL_NAME_LENGTH) {\n throw new McpInternalError(\n `Tool name '${name}' exceeds ${MAX_TOOL_NAME_LENGTH} characters (some MCP clients truncate at 64).`,\n );\n }\n return name;\n}\n\n/**\n * Build a tool name. Format: `<productName>_<...parts>` (snake_case).\n * Example: mcpToolName('vibecontrols', 'vibes', 'list') -> 'vibecontrols_vibes_list'\n */\nexport function mcpToolName(productName: string, ...parts: string[]): string {\n if (!productName) {\n throw new McpInternalError('mcpToolName: productName is required');\n }\n const name = [productName, ...parts].filter(Boolean).join('_');\n return assertSafeName(name, 'tool');\n}\n\n/**\n * Build a resource URI. Format: `<productName>://<...parts>`.\n * Example: mcpResourceUri('vibecontrols', 'schema') -> 'vibecontrols://schema'\n */\nexport function mcpResourceUri(productName: string, ...parts: string[]): string {\n if (!productName) {\n throw new McpInternalError('mcpResourceUri: productName is required');\n }\n return `${productName}://${parts.filter(Boolean).join('/')}`;\n}\n\n/**\n * Build a prompt name. Format: `<productName>-<...parts>` (kebab-case).\n * Example: mcpPromptName('vibecontrols', 'setup') -> 'vibecontrols-setup'\n */\nexport function mcpPromptName(productName: string, ...parts: string[]): string {\n if (!productName) {\n throw new McpInternalError('mcpPromptName: productName is required');\n }\n return [productName, ...parts].filter(Boolean).join('-');\n}\n\nexport const TOOL_NAME_LIMIT = MAX_TOOL_NAME_LENGTH;\n\n/**\n * Name-based hint heuristics for MCP `annotations` (readOnlyHint /\n * destructiveHint). Used by tool-governance.ts to auto-fill annotations for\n * the fleet of product modules that call `server.registerTool` directly\n * (bypassing the `registerTool()` core helper) and so never set them\n * explicitly today (BOFF-3903). Deliberately conservative — matched against\n * whole `_`-delimited segments so e.g. `timeentries_delete` and\n * `pomodoro_delete_goal` match, but a hypothetical `undeletable_check`\n * would not.\n *\n * The destructive verb set covers more than `delete`: stopping, killing or\n * terminating a running process, revoking or rotating a credential/share,\n * resetting settings and removing/purging/uninstalling are all actions an\n * MCP client must not auto-run without the user's intent (VC/FG parity G57 —\n * e.g. `vibecontrols_sessions_kill`, `vibecontrols_tunnels_rotate_credentials`\n * were previously reported as non-destructive).\n *\n * A module can always override the inference by passing an explicit\n * `annotations` object to `registerTool()` / `server.registerTool()` — do\n * that for the rare verb match that is harmless (e.g. a typing indicator's\n * `typing_stop`).\n */\nexport const DESTRUCTIVE_NAME_VERBS = [\n 'delete',\n 'destroy',\n 'erase',\n 'kill',\n 'purge',\n 'remove',\n 'reset',\n 'revoke',\n 'rotate',\n 'stop',\n 'terminate',\n 'uninstall',\n 'wipe',\n] as const;\nconst DESTRUCTIVE_NAME_SEGMENT = new RegExp(\n `(?:^|_)(?:${DESTRUCTIVE_NAME_VERBS.join('|')})(?:_|$)`,\n 'i',\n);\nconst READ_ONLY_NAME_SEGMENT = /(?:^|_)(?:list|get|search|check|read|count|stats|by_date)(?:_|$)/i;\n\n/** True when a tool name looks destructive (irreversibly deletes data) by naming convention. */\nexport function inferDestructiveHint(toolName: string): boolean {\n return DESTRUCTIVE_NAME_SEGMENT.test(toolName);\n}\n\n/**\n * True when a tool name looks read-only by naming convention. Never true for\n * a name that also looks destructive (a tool can't be both).\n */\nexport function inferReadOnlyHint(toolName: string): boolean {\n return !inferDestructiveHint(toolName) && READ_ONLY_NAME_SEGMENT.test(toolName);\n}\n","/**\n * MCP tool result helpers + central handler.\n *\n * Modules NEVER call server.registerTool directly — they use registerTool()\n * from this module so the central try/catch wraps the handler and:\n * - maps thrown McpUserError / McpAuthError / McpInternalError to\n * MCP-protocol-compliant `{ isError: true, content: [...] }` shapes\n * - threads `_meta.progressToken` into ctx.progress for long ops\n * - emits a structured log line on every error\n * - never leaks `cause` from McpInternalError to the client\n *\n * This is the analog of cli-sdk's createProgram() central error handler.\n */\n\nimport type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { ZodRawShape } from 'zod';\nimport type { McpContext } from './context.js';\nimport { McpAuthError, McpInternalError, McpUserError } from './errors.js';\nimport type { ToolAnnotations } from './tool-governance.js';\n\nexport interface ToolTextContent {\n type: 'text';\n text: string;\n [k: string]: unknown;\n}\n\nexport interface ToolResult {\n content: ToolTextContent[];\n isError?: boolean;\n structuredContent?: Record<string, unknown>;\n [k: string]: unknown;\n}\n\nexport interface ToolMeta {\n progressToken?: string | number;\n}\n\n/**\n * Build a successful tool result with JSON content (pretty-printed).\n */\nexport function jsonResult(data: unknown, structured?: Record<string, unknown>): ToolResult {\n const result: ToolResult = {\n content: [{ type: 'text', text: JSON.stringify(data, null, 2) }],\n };\n if (structured !== undefined) {\n result.structuredContent = structured;\n }\n return result;\n}\n\n/**\n * Build a successful tool result with plain text content.\n */\nexport function textResult(text: string): ToolResult {\n return { content: [{ type: 'text', text }] };\n}\n\n/**\n * Build an error tool result. Honors MCP's `{ isError: true, content }` shape.\n * Optional hint is appended on a new line so the LLM can react.\n */\nexport function errorResult(message: string, hint?: string): ToolResult {\n const text = hint ? `${message}\\n\\nHint: ${hint}` : message;\n return { content: [{ type: 'text', text }], isError: true };\n}\n\nexport interface ToolMetadata {\n title: string;\n description: string;\n inputSchema?: ZodRawShape;\n /**\n * Explicit MCP annotations (readOnlyHint / destructiveHint / ...). Optional\n * — when omitted, `wrapServerWithToolGovernance` (applied centrally in\n * `createMcpServer`) infers them from the tool name. Set this to override\n * the inference for a tool whose name doesn't match the naming convention.\n */\n annotations?: ToolAnnotations;\n}\n\nexport type ToolHandler<TArgs = Record<string, unknown>> = (\n args: TArgs,\n ctx: McpContext,\n meta: ToolMeta,\n) => Promise<unknown>;\n\n/**\n * Register a tool with the central error wrapper.\n *\n * The handler returns a plain value or void. The wrapper:\n * - wraps non-undefined returns in jsonResult()\n * - if the value already looks like a ToolResult (has `content`), passes through\n * - catches McpAuthError / McpUserError / McpInternalError / generic Error\n * - logs every error via ctx.logger.error\n */\nexport function registerTool<TArgs extends Record<string, unknown>>(\n server: McpServer,\n ctx: McpContext,\n name: string,\n metadata: ToolMetadata,\n handler: ToolHandler<TArgs>,\n): void {\n const sdkConfig = {\n title: metadata.title,\n description: metadata.description,\n ...(metadata.inputSchema ? { inputSchema: metadata.inputSchema } : {}),\n ...(metadata.annotations ? { annotations: metadata.annotations } : {}),\n };\n\n // The MCP SDK's registerTool signature is `(name, config, handler)`. The\n // handler arity depends on whether inputSchema is present (1-arg without,\n // 2-arg with). We accept a unified handler shape and dispatch at runtime.\n // The SDK's typing is strict and conditional on the inputSchema generic;\n // bypass with a cast since runtime acceptance is unconditional.\n const wrapped = async (...callbackArgs: unknown[]): Promise<ToolResult> => {\n const hasArgs = callbackArgs.length === 2;\n const args = (hasArgs ? callbackArgs[0] : {}) as TArgs;\n const extra = (hasArgs ? callbackArgs[1] : callbackArgs[0]) as\n { _meta?: { progressToken?: string | number } } | undefined;\n\n const progressToken = extra?._meta?.progressToken;\n const meta: ToolMeta = progressToken !== undefined ? { progressToken } : {};\n\n try {\n const result = await handler(args, ctx, meta);\n if (isToolResult(result)) return result;\n if (result === undefined) return textResult('OK');\n return jsonResult(result);\n } catch (error) {\n return mapErrorToResult(error, ctx, name);\n }\n };\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (server as any).registerTool(name, sdkConfig, wrapped);\n}\n\nfunction isToolResult(value: unknown): value is ToolResult {\n return (\n !!value &&\n typeof value === 'object' &&\n 'content' in value &&\n Array.isArray((value as ToolResult).content)\n );\n}\n\nfunction mapErrorToResult(error: unknown, ctx: McpContext, toolName: string): ToolResult {\n if (error instanceof McpAuthError) {\n ctx.logger.warn(`${toolName}: auth required`, { message: error.message });\n return errorResult(error.message, error.hint);\n }\n if (error instanceof McpUserError) {\n ctx.logger.info(`${toolName}: user error`, { message: error.message });\n return errorResult(error.message, error.hint);\n }\n if (error instanceof McpInternalError) {\n ctx.logger.error(`${toolName}: internal error`, {\n message: error.message,\n cause: stringifyCause(error.cause),\n });\n return errorResult(`Internal error in ${toolName}.`);\n }\n const message = error instanceof Error ? error.message : String(error);\n ctx.logger.error(`${toolName}: unhandled error`, { message });\n return errorResult(`${toolName}: ${message}`);\n}\n\nfunction stringifyCause(cause: unknown): string | undefined {\n if (cause === undefined || cause === null) return undefined;\n if (cause instanceof Error) return cause.message;\n try {\n return JSON.stringify(cause);\n } catch {\n return String(cause);\n }\n}\n","/**\n * Groups module GraphQL operations.\n * Aligned with wspace-groups-svc origin/main (BOFF-8194).\n */\n\nexport const LIST_GROUPS = `\n query ListGroups($filter: GroupFilter, $first: Int, $after: String, $sort: GroupSort) {\n groups(filter: $filter, first: $first, after: $after, sort: $sort) {\n edges { node { id name groupType visibility status memberCount createdAt } }\n pageInfo { hasNextPage endCursor }\n }\n }\n`;\n\nexport const GET_GROUP = `\n query GetGroup($id: ID!) {\n group(id: $id) {\n id name description groupType visibility status scope membershipType memberCount createdAt updatedAt\n }\n }\n`;\n\nexport const CREATE_GROUP = `\n mutation CreateGroup($input: CreateGroupInput!) {\n createGroup(input: $input) {\n id name groupType visibility status\n }\n }\n`;\n\nexport const UPDATE_GROUP = `\n mutation UpdateGroup($id: ID!, $input: UpdateGroupInput!) {\n updateGroup(id: $id, input: $input) {\n id name description visibility status updatedAt\n }\n }\n`;\n\nexport const DELETE_GROUP = `\n mutation DeleteGroup($id: ID!) {\n deleteGroup(id: $id)\n }\n`;\n\nexport const ARCHIVE_GROUP = `\n mutation ArchiveGroup($id: ID!) {\n archiveGroup(id: $id) { id status }\n }\n`;\n\nexport const LIST_GROUP_MEMBERS = `\n query ListGroupMembers($groupId: ID!, $first: Int, $after: String) {\n groupMembers(groupId: $groupId, first: $first, after: $after) {\n edges { node { id entityId entityType role invitationStatus membershipType joinedAt } }\n pageInfo { hasNextPage endCursor }\n }\n }\n`;\n\nexport const ADD_GROUP_MEMBERS = `\n mutation AddGroupMembers($groupId: ID!, $members: [AddMemberInput!]!) {\n addGroupMembers(groupId: $groupId, members: $members) {\n successCount failedCount\n added { id entityId entityType role }\n failed { entityId entityType error }\n }\n }\n`;\n\nexport const REMOVE_GROUP_MEMBERS = `\n mutation RemoveGroupMembers($groupId: ID!, $membershipIds: [ID!]!) {\n removeGroupMembers(groupId: $groupId, membershipIds: $membershipIds) {\n successCount failedCount\n removed\n failed\n }\n }\n`;\n\nexport const GROUP_AUDIT_LOGS = `\n query GroupAuditLogs($groupId: ID!, $first: Int, $after: String) {\n groupAuditLogs(groupId: $groupId, first: $first, after: $after) {\n id eventType actorId actorType description createdAt\n }\n }\n`;\n\nexport const ENTITY_GROUPS = `\n query EntityGroups($entityId: ID!, $entityType: String!, $first: Int) {\n entityGroups(entityId: $entityId, entityType: $entityType, first: $first) {\n edges { node { id name groupType visibility memberCount } }\n }\n }\n`;\n","/**\n * Groups MCP tools — CRUD + members.{list,add,remove} + hierarchy + activity.\n * Surface mirrors cli-sdk/src/modules/groups/commands.ts.\n */\n\nimport { z } from 'zod';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { jsonResult, errorResult, mcpToolName, type McpContext } from '../../core/index.js';\nimport * as ops from './operations.js';\n\ninterface GroupNode {\n id: string;\n name: string;\n groupType?: string;\n visibility?: string;\n status?: string;\n memberCount?: number;\n createdAt?: string;\n}\n\ninterface MembershipNode {\n id: string;\n entityId: string;\n entityType?: string;\n role?: string;\n invitationStatus?: string;\n membershipType?: string;\n joinedAt?: string;\n}\n\n// Enum values pinned to wspace-groups-svc origin/main (BOFF-8194).\nconst GroupTypeEnum = z\n .enum([\n 'AUDIENCE',\n 'BETA_PROGRAM',\n 'CHANNEL_GROUP',\n 'CUSTOM',\n 'DYNAMIC_AUDIENCE',\n 'FEATURE_FLAG_GROUP',\n 'PROJECT_GROUP',\n 'RESOURCE_COLLECTION',\n 'SECURITY_GROUP',\n 'TEAM',\n ])\n .describe('Group classification');\nconst VisibilityEnum = z.enum(['INTERNAL', 'PRIVATE', 'PUBLIC_LINK']).describe('Group visibility');\nconst ScopeEnum = z\n .enum(['GLOBAL', 'PRIVATE', 'TENANT', 'WORKSPACE'])\n .describe('Scope of the group');\nconst MembershipTypeEnum = z\n .enum(['DYNAMIC', 'HYBRID', 'STATIC'])\n .describe('How membership is granted');\nconst StatusEnum = z.string().describe('Group status (will be uppercased)');\nconst EntityTypeEnum = z\n .enum(['USER', 'GROUP', 'BOT', 'APP'])\n .describe('Entity type for membership');\nconst MemberRoleEnum = z\n .enum(['ADMIN', 'BOT', 'GUEST', 'MEMBER', 'MODERATOR', 'OBSERVER', 'OWNER'])\n .describe('Role within the group');\n\nexport function registerGroupsTools(\n server: McpServer,\n ctx: McpContext,\n track: (n: string) => string,\n): void {\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_list')),\n {\n title: 'List Groups',\n description: 'List groups with optional type/status filters and pagination.',\n inputSchema: {\n type: GroupTypeEnum.optional().describe('Filter by groupType'),\n status: z.string().optional().describe('Filter by status (will be uppercased)'),\n limit: z.number().optional().describe('Page size (default 50)'),\n },\n },\n async ({ type, status, limit }) => {\n try {\n const filter: Record<string, unknown> = {};\n if (type !== undefined) filter.groupType = type;\n if (status !== undefined) filter.status = status.toUpperCase();\n\n const data = await ctx.gql.workspace.request<{\n groups: { edges: Array<{ node: GroupNode }>; pageInfo: { hasNextPage: boolean } };\n }>(ops.LIST_GROUPS, {\n filter: Object.keys(filter).length > 0 ? filter : undefined,\n first: limit ?? 50,\n });\n return jsonResult({\n items: data.groups.edges.map((e) => e.node),\n pageInfo: data.groups.pageInfo,\n });\n } catch (error) {\n ctx.logger.error('groups_list failed', { error: String(error) });\n return errorResult(\n `Failed to list groups: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_get')),\n {\n title: 'Get Group',\n description: 'Get a group by its ID.',\n inputSchema: { id: z.string().describe('Group ID') },\n },\n async ({ id }) => {\n try {\n const data = await ctx.gql.workspace.request<{ group: GroupNode | null }>(ops.GET_GROUP, {\n id,\n });\n if (!data.group) {\n return errorResult(`Group ${id} not found`);\n }\n return jsonResult(data.group);\n } catch (error) {\n ctx.logger.error('groups_get failed', { error: String(error) });\n return errorResult(\n `Failed to get group: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_create')),\n {\n title: 'Create Group',\n description: 'Create a new group.',\n inputSchema: {\n name: z.string().describe('Group name'),\n description: z.string().optional().describe('Group description'),\n groupType: GroupTypeEnum.optional().describe('Group type (default TEAM)'),\n visibility: VisibilityEnum.optional().describe('Visibility (default PRIVATE)'),\n scope: ScopeEnum.optional().describe('Scope (default WORKSPACE)'),\n membershipType: MembershipTypeEnum.optional().describe('Membership type (default STATIC)'),\n },\n },\n async ({ name, description, groupType, visibility, scope, membershipType }) => {\n try {\n const input: Record<string, unknown> = {\n name,\n groupType: groupType ?? 'TEAM',\n visibility: visibility ?? 'PRIVATE',\n scope: scope ?? 'WORKSPACE',\n membershipType: membershipType ?? 'STATIC',\n };\n if (description !== undefined) input.description = description;\n\n const data = await ctx.gql.workspace.request<{ createGroup: GroupNode }>(ops.CREATE_GROUP, {\n input,\n });\n return jsonResult(data.createGroup);\n } catch (error) {\n ctx.logger.error('groups_create failed', { error: String(error) });\n return errorResult(\n `Failed to create group: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_update')),\n {\n title: 'Update Group',\n description: 'Update a group. At least one mutable field must be provided.',\n inputSchema: {\n id: z.string().describe('Group ID'),\n name: z.string().optional().describe('Updated name'),\n description: z.string().optional().describe('Updated description'),\n visibility: VisibilityEnum.optional().describe('Updated visibility'),\n status: StatusEnum.optional(),\n },\n },\n async ({ id, name, description, visibility, status }) => {\n try {\n const input: Record<string, unknown> = {};\n if (name !== undefined) input.name = name;\n if (description !== undefined) input.description = description;\n if (visibility !== undefined) input.visibility = visibility;\n if (status !== undefined) input.status = status.toUpperCase();\n if (Object.keys(input).length === 0) {\n return errorResult(\n 'No updates specified — provide at least one of name/description/visibility/status',\n );\n }\n const data = await ctx.gql.workspace.request<{ updateGroup: GroupNode }>(ops.UPDATE_GROUP, {\n id,\n input,\n });\n return jsonResult(data.updateGroup);\n } catch (error) {\n ctx.logger.error('groups_update failed', { error: String(error) });\n return errorResult(\n `Failed to update group: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_delete')),\n {\n title: 'Delete Group',\n description: 'Delete a group. Use archive=true for a soft delete (status change only).',\n inputSchema: {\n id: z.string().describe('Group ID'),\n archive: z.boolean().optional().describe('Archive instead of hard delete (default false)'),\n },\n },\n async ({ id, archive }) => {\n try {\n if (archive === true) {\n const data = await ctx.gql.workspace.request<{\n archiveGroup: { id: string; status: string };\n }>(ops.ARCHIVE_GROUP, { id });\n return jsonResult({ archived: true, group: data.archiveGroup });\n }\n const data = await ctx.gql.workspace.request<{ deleteGroup: boolean }>(ops.DELETE_GROUP, {\n id,\n });\n return jsonResult({ deleted: data.deleteGroup, groupId: id });\n } catch (error) {\n ctx.logger.error('groups_delete failed', { error: String(error) });\n return errorResult(\n `Failed to delete group: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Members ─────────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_members_list')),\n {\n title: 'List Group Members',\n description: 'List members of a group.',\n inputSchema: {\n groupId: z.string().describe('Group ID'),\n limit: z.number().optional().describe('Page size (default 100)'),\n },\n },\n async ({ groupId, limit }) => {\n try {\n const data = await ctx.gql.workspace.request<{\n groupMembers: {\n edges: Array<{ node: MembershipNode }>;\n pageInfo: { hasNextPage: boolean; endCursor?: string };\n };\n }>(ops.LIST_GROUP_MEMBERS, { groupId, first: limit ?? 100 });\n return jsonResult({\n items: data.groupMembers.edges.map((e) => e.node),\n pageInfo: data.groupMembers.pageInfo,\n });\n } catch (error) {\n ctx.logger.error('groups_members_list failed', { error: String(error) });\n return errorResult(\n `Failed to list group members: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_members_add')),\n {\n title: 'Add Group Member',\n description: 'Add a single member to a group.',\n inputSchema: {\n groupId: z.string().describe('Group ID'),\n entityId: z.string().describe('Entity (user/group/bot/integration) ID to add'),\n entityType: EntityTypeEnum.optional().describe('Entity type (default USER)'),\n role: MemberRoleEnum.optional().describe('Role (default MEMBER)'),\n },\n },\n async ({ groupId, entityId, entityType, role }) => {\n try {\n const member: Record<string, unknown> = {\n entityId,\n entityType: entityType ?? 'USER',\n role: role ?? 'MEMBER',\n };\n const data = await ctx.gql.workspace.request<{\n addGroupMembers: {\n successCount: number;\n failedCount: number;\n added: MembershipNode[];\n failed: Array<{ entityId: string; entityType?: string; error: string }>;\n };\n }>(ops.ADD_GROUP_MEMBERS, { groupId, members: [member] });\n return jsonResult(data.addGroupMembers);\n } catch (error) {\n ctx.logger.error('groups_members_add failed', { error: String(error) });\n return errorResult(\n `Failed to add group member: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_members_remove')),\n {\n title: 'Remove Group Members',\n description: 'Remove one or more members from a group by membership ID.',\n inputSchema: {\n groupId: z.string().describe('Group ID'),\n membershipIds: z.array(z.string()).describe('Membership IDs to remove'),\n },\n },\n async ({ groupId, membershipIds }) => {\n try {\n if (membershipIds.length === 0) {\n return errorResult('At least one membershipId is required');\n }\n const data = await ctx.gql.workspace.request<{\n removeGroupMembers: {\n successCount: number;\n failedCount: number;\n removed: string[];\n failed: string[];\n };\n }>(ops.REMOVE_GROUP_MEMBERS, { groupId, membershipIds });\n return jsonResult(data.removeGroupMembers);\n } catch (error) {\n ctx.logger.error('groups_members_remove failed', { error: String(error) });\n return errorResult(\n `Failed to remove group members: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Hierarchy & activity ────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_hierarchy')),\n {\n title: 'Entity Group Hierarchy',\n description: 'Show all groups an entity (user/group) belongs to.',\n inputSchema: {\n entityId: z.string().describe('Entity ID (user/group)'),\n entityType: z.enum(['USER', 'GROUP']).optional().describe('Entity type (default USER)'),\n limit: z.number().optional().describe('Page size (default 100)'),\n },\n },\n async ({ entityId, entityType, limit }) => {\n try {\n const data = await ctx.gql.workspace.request<{\n entityGroups: { edges: Array<{ node: GroupNode }> };\n }>(ops.ENTITY_GROUPS, {\n entityId,\n entityType: entityType ?? 'USER',\n first: limit ?? 100,\n });\n return jsonResult(data.entityGroups.edges.map((e) => e.node));\n } catch (error) {\n ctx.logger.error('groups_hierarchy failed', { error: String(error) });\n return errorResult(\n `Failed to get group hierarchy: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'groups_activity')),\n {\n title: 'Group Audit Log',\n description: 'Audit log for a group.',\n inputSchema: {\n groupId: z.string().describe('Group ID'),\n limit: z.number().optional().describe('Page size (default 100)'),\n },\n },\n async ({ groupId, limit }) => {\n try {\n const data = await ctx.gql.workspace.request<{\n groupAuditLogs: Array<Record<string, unknown>>;\n }>(ops.GROUP_AUDIT_LOGS, { groupId, first: limit ?? 100 });\n return jsonResult(data.groupAuditLogs);\n } catch (error) {\n ctx.logger.error('groups_activity failed', { error: String(error) });\n return errorResult(\n `Failed to get group activity: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n}\n","/**\n * Groups module — workspace groups CRUD + members + hierarchy + activity.\n * Surface mirrors cli-sdk/src/modules/groups/.\n */\n\nimport type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { McpContext, McpModule, ModuleRegistration } from '../../core/index.js';\nimport { registerGroupsTools } from './tools.js';\n\nconst groupsModule: McpModule = {\n id: 'groups',\n version: '0.0.1',\n displayName: 'Groups',\n dependsOn: ['auth'],\n capabilities: { tools: {} },\n\n register(server: McpServer, ctx: McpContext): ModuleRegistration {\n const tools: string[] = [];\n const track = (n: string): string => {\n tools.push(n);\n return n;\n };\n\n registerGroupsTools(server, ctx, track);\n\n return { tools, resources: [], prompts: [] };\n },\n};\n\nexport default groupsModule;\n"]}
@@ -1,8 +1,3 @@
1
- import { c as McpModule } from '../../module-VpgjAf8m.js';
2
- import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-DGO4h-Pd.js';
4
- import 'graphql-request';
5
-
1
+ import type { McpModule } from '../../core/index.js';
6
2
  declare const groupsModule: McpModule;
7
-
8
- export { groupsModule as default };
3
+ export default groupsModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, jsonResult, errorResult } from '../../chunk-G76DKEPI.js';
1
+ import { mcpToolName, jsonResult, errorResult } from '../../chunk-FHXCNP2U.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/modules/groups/operations.ts
@@ -0,0 +1,11 @@
1
+ export declare const LIST_GROUPS = "\n query ListGroups($filter: GroupFilter, $first: Int, $after: String, $sort: GroupSort) {\n groups(filter: $filter, first: $first, after: $after, sort: $sort) {\n edges { node { id name groupType visibility status memberCount createdAt } }\n pageInfo { hasNextPage endCursor }\n }\n }\n";
2
+ export declare const GET_GROUP = "\n query GetGroup($id: ID!) {\n group(id: $id) {\n id name description groupType visibility status scope membershipType memberCount createdAt updatedAt\n }\n }\n";
3
+ export declare const CREATE_GROUP = "\n mutation CreateGroup($input: CreateGroupInput!) {\n createGroup(input: $input) {\n id name groupType visibility status\n }\n }\n";
4
+ export declare const UPDATE_GROUP = "\n mutation UpdateGroup($id: ID!, $input: UpdateGroupInput!) {\n updateGroup(id: $id, input: $input) {\n id name description visibility status updatedAt\n }\n }\n";
5
+ export declare const DELETE_GROUP = "\n mutation DeleteGroup($id: ID!) {\n deleteGroup(id: $id)\n }\n";
6
+ export declare const ARCHIVE_GROUP = "\n mutation ArchiveGroup($id: ID!) {\n archiveGroup(id: $id) { id status }\n }\n";
7
+ export declare const LIST_GROUP_MEMBERS = "\n query ListGroupMembers($groupId: ID!, $first: Int, $after: String) {\n groupMembers(groupId: $groupId, first: $first, after: $after) {\n edges { node { id entityId entityType role invitationStatus membershipType joinedAt } }\n pageInfo { hasNextPage endCursor }\n }\n }\n";
8
+ export declare const ADD_GROUP_MEMBERS = "\n mutation AddGroupMembers($groupId: ID!, $members: [AddMemberInput!]!) {\n addGroupMembers(groupId: $groupId, members: $members) {\n successCount failedCount\n added { id entityId entityType role }\n failed { entityId entityType error }\n }\n }\n";
9
+ export declare const REMOVE_GROUP_MEMBERS = "\n mutation RemoveGroupMembers($groupId: ID!, $membershipIds: [ID!]!) {\n removeGroupMembers(groupId: $groupId, membershipIds: $membershipIds) {\n successCount failedCount\n removed\n failed\n }\n }\n";
10
+ export declare const GROUP_AUDIT_LOGS = "\n query GroupAuditLogs($groupId: ID!, $first: Int, $after: String) {\n groupAuditLogs(groupId: $groupId, first: $first, after: $after) {\n id eventType actorId actorType description createdAt\n }\n }\n";
11
+ export declare const ENTITY_GROUPS = "\n query EntityGroups($entityId: ID!, $entityType: String!, $first: Int) {\n entityGroups(entityId: $entityId, entityType: $entityType, first: $first) {\n edges { node { id name groupType visibility memberCount } }\n }\n }\n";
@@ -0,0 +1,3 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type McpContext } from '../../core/index.js';
3
+ export declare function registerGroupsTools(server: McpServer, ctx: McpContext, track: (n: string) => string): void;