@zavudev/sdk-mcp 0.15.1 → 0.17.0

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 (476) hide show
  1. package/README.md +13 -228
  2. package/code-tool.d.mts +2 -44
  3. package/code-tool.d.mts.map +1 -1
  4. package/code-tool.d.ts +2 -44
  5. package/code-tool.d.ts.map +1 -1
  6. package/code-tool.js +2 -2
  7. package/code-tool.js.map +1 -1
  8. package/code-tool.mjs +2 -2
  9. package/code-tool.mjs.map +1 -1
  10. package/docs-search-tool.d.mts +3 -3
  11. package/docs-search-tool.d.mts.map +1 -1
  12. package/docs-search-tool.d.ts +3 -3
  13. package/docs-search-tool.d.ts.map +1 -1
  14. package/docs-search-tool.js +1 -1
  15. package/docs-search-tool.js.map +1 -1
  16. package/docs-search-tool.mjs +1 -1
  17. package/http.d.mts.map +1 -1
  18. package/http.d.ts.map +1 -1
  19. package/http.js +1 -18
  20. package/http.js.map +1 -1
  21. package/http.mjs +1 -18
  22. package/http.mjs.map +1 -1
  23. package/index.js +4 -40
  24. package/index.js.map +1 -1
  25. package/index.mjs +4 -40
  26. package/index.mjs.map +1 -1
  27. package/options.d.mts +0 -9
  28. package/options.d.mts.map +1 -1
  29. package/options.d.ts +0 -9
  30. package/options.d.ts.map +1 -1
  31. package/options.js +4 -359
  32. package/options.js.map +1 -1
  33. package/options.mjs +4 -359
  34. package/options.mjs.map +1 -1
  35. package/package.json +9 -49
  36. package/server.d.mts +3 -8
  37. package/server.d.mts.map +1 -1
  38. package/server.d.ts +3 -8
  39. package/server.d.ts.map +1 -1
  40. package/server.js +12 -65
  41. package/server.js.map +1 -1
  42. package/server.mjs +11 -62
  43. package/server.mjs.map +1 -1
  44. package/src/code-tool.ts +2 -2
  45. package/src/docs-search-tool.ts +1 -1
  46. package/src/http.ts +1 -19
  47. package/src/index.ts +5 -52
  48. package/src/options.ts +5 -386
  49. package/src/server.ts +12 -72
  50. package/src/stdio.ts +2 -3
  51. package/src/{tools/types.ts → types.ts} +1 -1
  52. package/stdio.d.mts +1 -2
  53. package/stdio.d.mts.map +1 -1
  54. package/stdio.d.ts +1 -2
  55. package/stdio.d.ts.map +1 -1
  56. package/stdio.js +2 -2
  57. package/stdio.js.map +1 -1
  58. package/stdio.mjs +2 -2
  59. package/stdio.mjs.map +1 -1
  60. package/{tools/types.d.mts → types.d.mts} +1 -1
  61. package/types.d.mts.map +1 -0
  62. package/{tools/types.d.ts → types.d.ts} +1 -1
  63. package/types.d.ts.map +1 -0
  64. package/types.js.map +1 -0
  65. package/types.mjs.map +1 -0
  66. package/compat.d.mts +0 -58
  67. package/compat.d.mts.map +0 -1
  68. package/compat.d.ts +0 -58
  69. package/compat.d.ts.map +0 -1
  70. package/compat.js +0 -387
  71. package/compat.js.map +0 -1
  72. package/compat.mjs +0 -378
  73. package/compat.mjs.map +0 -1
  74. package/dynamic-tools.d.mts +0 -12
  75. package/dynamic-tools.d.mts.map +0 -1
  76. package/dynamic-tools.d.ts +0 -12
  77. package/dynamic-tools.d.ts.map +0 -1
  78. package/dynamic-tools.js +0 -135
  79. package/dynamic-tools.js.map +0 -1
  80. package/dynamic-tools.mjs +0 -132
  81. package/dynamic-tools.mjs.map +0 -1
  82. package/filtering.d.mts +0 -3
  83. package/filtering.d.mts.map +0 -1
  84. package/filtering.d.ts +0 -3
  85. package/filtering.d.ts.map +0 -1
  86. package/filtering.js +0 -24
  87. package/filtering.js.map +0 -1
  88. package/filtering.mjs +0 -16
  89. package/filtering.mjs.map +0 -1
  90. package/src/compat.ts +0 -483
  91. package/src/dynamic-tools.ts +0 -153
  92. package/src/filtering.ts +0 -18
  93. package/src/tools/broadcasts/cancel-broadcasts.ts +0 -52
  94. package/src/tools/broadcasts/contacts/add-broadcasts-contacts.ts +0 -73
  95. package/src/tools/broadcasts/contacts/list-broadcasts-contacts.ts +0 -71
  96. package/src/tools/broadcasts/contacts/remove-broadcasts-contacts.ts +0 -43
  97. package/src/tools/broadcasts/create-broadcasts.ts +0 -134
  98. package/src/tools/broadcasts/delete-broadcasts.ts +0 -40
  99. package/src/tools/broadcasts/list-broadcasts.ts +0 -68
  100. package/src/tools/broadcasts/progress-broadcasts.ts +0 -54
  101. package/src/tools/broadcasts/retrieve-broadcasts.ts +0 -54
  102. package/src/tools/broadcasts/send-broadcasts.ts +0 -57
  103. package/src/tools/broadcasts/update-broadcasts.ts +0 -106
  104. package/src/tools/contacts/list-contacts.ts +0 -61
  105. package/src/tools/contacts/retrieve-by-phone-contacts.ts +0 -56
  106. package/src/tools/contacts/retrieve-contacts.ts +0 -54
  107. package/src/tools/contacts/update-contacts.ts +0 -61
  108. package/src/tools/index.ts +0 -149
  109. package/src/tools/introspect/validate-phone-introspect.ts +0 -52
  110. package/src/tools/messages/list-messages.ts +0 -78
  111. package/src/tools/messages/react-messages.ts +0 -59
  112. package/src/tools/messages/retrieve-messages.ts +0 -54
  113. package/src/tools/messages/send-messages.ts +0 -233
  114. package/src/tools/phone-numbers/list-phone-numbers.ts +0 -68
  115. package/src/tools/phone-numbers/purchase-phone-numbers.ts +0 -57
  116. package/src/tools/phone-numbers/release-phone-numbers.ts +0 -40
  117. package/src/tools/phone-numbers/retrieve-phone-numbers.ts +0 -56
  118. package/src/tools/phone-numbers/search-available-phone-numbers.ts +0 -72
  119. package/src/tools/phone-numbers/update-phone-numbers.ts +0 -62
  120. package/src/tools/senders/create-senders.ts +0 -86
  121. package/src/tools/senders/delete-senders.ts +0 -40
  122. package/src/tools/senders/get-profile-senders.ts +0 -54
  123. package/src/tools/senders/list-senders.ts +0 -58
  124. package/src/tools/senders/regenerate-webhook-secret-senders.ts +0 -54
  125. package/src/tools/senders/retrieve-senders.ts +0 -54
  126. package/src/tools/senders/update-profile-senders.ts +0 -107
  127. package/src/tools/senders/update-senders.ts +0 -90
  128. package/src/tools/senders/upload-profile-picture-senders.ts +0 -63
  129. package/src/tools/templates/create-templates.ts +0 -74
  130. package/src/tools/templates/delete-templates.ts +0 -40
  131. package/src/tools/templates/list-templates.ts +0 -58
  132. package/src/tools/templates/retrieve-templates.ts +0 -54
  133. package/src/tools/templates/submit-templates.ts +0 -66
  134. package/src/tools.ts +0 -1
  135. package/tools/broadcasts/cancel-broadcasts.d.mts +0 -51
  136. package/tools/broadcasts/cancel-broadcasts.d.mts.map +0 -1
  137. package/tools/broadcasts/cancel-broadcasts.d.ts +0 -51
  138. package/tools/broadcasts/cancel-broadcasts.d.ts.map +0 -1
  139. package/tools/broadcasts/cancel-broadcasts.js +0 -52
  140. package/tools/broadcasts/cancel-broadcasts.js.map +0 -1
  141. package/tools/broadcasts/cancel-broadcasts.mjs +0 -45
  142. package/tools/broadcasts/cancel-broadcasts.mjs.map +0 -1
  143. package/tools/broadcasts/contacts/add-broadcasts-contacts.d.mts +0 -51
  144. package/tools/broadcasts/contacts/add-broadcasts-contacts.d.mts.map +0 -1
  145. package/tools/broadcasts/contacts/add-broadcasts-contacts.d.ts +0 -51
  146. package/tools/broadcasts/contacts/add-broadcasts-contacts.d.ts.map +0 -1
  147. package/tools/broadcasts/contacts/add-broadcasts-contacts.js +0 -71
  148. package/tools/broadcasts/contacts/add-broadcasts-contacts.js.map +0 -1
  149. package/tools/broadcasts/contacts/add-broadcasts-contacts.mjs +0 -64
  150. package/tools/broadcasts/contacts/add-broadcasts-contacts.mjs.map +0 -1
  151. package/tools/broadcasts/contacts/list-broadcasts-contacts.d.mts +0 -51
  152. package/tools/broadcasts/contacts/list-broadcasts-contacts.d.mts.map +0 -1
  153. package/tools/broadcasts/contacts/list-broadcasts-contacts.d.ts +0 -51
  154. package/tools/broadcasts/contacts/list-broadcasts-contacts.d.ts.map +0 -1
  155. package/tools/broadcasts/contacts/list-broadcasts-contacts.js +0 -71
  156. package/tools/broadcasts/contacts/list-broadcasts-contacts.js.map +0 -1
  157. package/tools/broadcasts/contacts/list-broadcasts-contacts.mjs +0 -64
  158. package/tools/broadcasts/contacts/list-broadcasts-contacts.mjs.map +0 -1
  159. package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.mts +0 -51
  160. package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.mts.map +0 -1
  161. package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.ts +0 -51
  162. package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.ts.map +0 -1
  163. package/tools/broadcasts/contacts/remove-broadcasts-contacts.js +0 -40
  164. package/tools/broadcasts/contacts/remove-broadcasts-contacts.js.map +0 -1
  165. package/tools/broadcasts/contacts/remove-broadcasts-contacts.mjs +0 -36
  166. package/tools/broadcasts/contacts/remove-broadcasts-contacts.mjs.map +0 -1
  167. package/tools/broadcasts/create-broadcasts.d.mts +0 -51
  168. package/tools/broadcasts/create-broadcasts.d.mts.map +0 -1
  169. package/tools/broadcasts/create-broadcasts.d.ts +0 -51
  170. package/tools/broadcasts/create-broadcasts.d.ts.map +0 -1
  171. package/tools/broadcasts/create-broadcasts.js +0 -134
  172. package/tools/broadcasts/create-broadcasts.js.map +0 -1
  173. package/tools/broadcasts/create-broadcasts.mjs +0 -127
  174. package/tools/broadcasts/create-broadcasts.mjs.map +0 -1
  175. package/tools/broadcasts/delete-broadcasts.d.mts +0 -51
  176. package/tools/broadcasts/delete-broadcasts.d.mts.map +0 -1
  177. package/tools/broadcasts/delete-broadcasts.d.ts +0 -51
  178. package/tools/broadcasts/delete-broadcasts.d.ts.map +0 -1
  179. package/tools/broadcasts/delete-broadcasts.js +0 -37
  180. package/tools/broadcasts/delete-broadcasts.js.map +0 -1
  181. package/tools/broadcasts/delete-broadcasts.mjs +0 -33
  182. package/tools/broadcasts/delete-broadcasts.mjs.map +0 -1
  183. package/tools/broadcasts/list-broadcasts.d.mts +0 -51
  184. package/tools/broadcasts/list-broadcasts.d.mts.map +0 -1
  185. package/tools/broadcasts/list-broadcasts.d.ts +0 -51
  186. package/tools/broadcasts/list-broadcasts.d.ts.map +0 -1
  187. package/tools/broadcasts/list-broadcasts.js +0 -68
  188. package/tools/broadcasts/list-broadcasts.js.map +0 -1
  189. package/tools/broadcasts/list-broadcasts.mjs +0 -61
  190. package/tools/broadcasts/list-broadcasts.mjs.map +0 -1
  191. package/tools/broadcasts/progress-broadcasts.d.mts +0 -51
  192. package/tools/broadcasts/progress-broadcasts.d.mts.map +0 -1
  193. package/tools/broadcasts/progress-broadcasts.d.ts +0 -51
  194. package/tools/broadcasts/progress-broadcasts.d.ts.map +0 -1
  195. package/tools/broadcasts/progress-broadcasts.js +0 -54
  196. package/tools/broadcasts/progress-broadcasts.js.map +0 -1
  197. package/tools/broadcasts/progress-broadcasts.mjs +0 -47
  198. package/tools/broadcasts/progress-broadcasts.mjs.map +0 -1
  199. package/tools/broadcasts/retrieve-broadcasts.d.mts +0 -51
  200. package/tools/broadcasts/retrieve-broadcasts.d.mts.map +0 -1
  201. package/tools/broadcasts/retrieve-broadcasts.d.ts +0 -51
  202. package/tools/broadcasts/retrieve-broadcasts.d.ts.map +0 -1
  203. package/tools/broadcasts/retrieve-broadcasts.js +0 -54
  204. package/tools/broadcasts/retrieve-broadcasts.js.map +0 -1
  205. package/tools/broadcasts/retrieve-broadcasts.mjs +0 -47
  206. package/tools/broadcasts/retrieve-broadcasts.mjs.map +0 -1
  207. package/tools/broadcasts/send-broadcasts.d.mts +0 -51
  208. package/tools/broadcasts/send-broadcasts.d.mts.map +0 -1
  209. package/tools/broadcasts/send-broadcasts.d.ts +0 -51
  210. package/tools/broadcasts/send-broadcasts.d.ts.map +0 -1
  211. package/tools/broadcasts/send-broadcasts.js +0 -57
  212. package/tools/broadcasts/send-broadcasts.js.map +0 -1
  213. package/tools/broadcasts/send-broadcasts.mjs +0 -50
  214. package/tools/broadcasts/send-broadcasts.mjs.map +0 -1
  215. package/tools/broadcasts/update-broadcasts.d.mts +0 -51
  216. package/tools/broadcasts/update-broadcasts.d.mts.map +0 -1
  217. package/tools/broadcasts/update-broadcasts.d.ts +0 -51
  218. package/tools/broadcasts/update-broadcasts.d.ts.map +0 -1
  219. package/tools/broadcasts/update-broadcasts.js +0 -104
  220. package/tools/broadcasts/update-broadcasts.js.map +0 -1
  221. package/tools/broadcasts/update-broadcasts.mjs +0 -97
  222. package/tools/broadcasts/update-broadcasts.mjs.map +0 -1
  223. package/tools/contacts/list-contacts.d.mts +0 -51
  224. package/tools/contacts/list-contacts.d.mts.map +0 -1
  225. package/tools/contacts/list-contacts.d.ts +0 -51
  226. package/tools/contacts/list-contacts.d.ts.map +0 -1
  227. package/tools/contacts/list-contacts.js +0 -61
  228. package/tools/contacts/list-contacts.js.map +0 -1
  229. package/tools/contacts/list-contacts.mjs +0 -54
  230. package/tools/contacts/list-contacts.mjs.map +0 -1
  231. package/tools/contacts/retrieve-by-phone-contacts.d.mts +0 -51
  232. package/tools/contacts/retrieve-by-phone-contacts.d.mts.map +0 -1
  233. package/tools/contacts/retrieve-by-phone-contacts.d.ts +0 -51
  234. package/tools/contacts/retrieve-by-phone-contacts.d.ts.map +0 -1
  235. package/tools/contacts/retrieve-by-phone-contacts.js +0 -54
  236. package/tools/contacts/retrieve-by-phone-contacts.js.map +0 -1
  237. package/tools/contacts/retrieve-by-phone-contacts.mjs +0 -47
  238. package/tools/contacts/retrieve-by-phone-contacts.mjs.map +0 -1
  239. package/tools/contacts/retrieve-contacts.d.mts +0 -51
  240. package/tools/contacts/retrieve-contacts.d.mts.map +0 -1
  241. package/tools/contacts/retrieve-contacts.d.ts +0 -51
  242. package/tools/contacts/retrieve-contacts.d.ts.map +0 -1
  243. package/tools/contacts/retrieve-contacts.js +0 -54
  244. package/tools/contacts/retrieve-contacts.js.map +0 -1
  245. package/tools/contacts/retrieve-contacts.mjs +0 -47
  246. package/tools/contacts/retrieve-contacts.mjs.map +0 -1
  247. package/tools/contacts/update-contacts.d.mts +0 -51
  248. package/tools/contacts/update-contacts.d.mts.map +0 -1
  249. package/tools/contacts/update-contacts.d.ts +0 -51
  250. package/tools/contacts/update-contacts.d.ts.map +0 -1
  251. package/tools/contacts/update-contacts.js +0 -61
  252. package/tools/contacts/update-contacts.js.map +0 -1
  253. package/tools/contacts/update-contacts.mjs +0 -54
  254. package/tools/contacts/update-contacts.mjs.map +0 -1
  255. package/tools/index.d.mts +0 -10
  256. package/tools/index.d.mts.map +0 -1
  257. package/tools/index.d.ts +0 -10
  258. package/tools/index.d.ts.map +0 -1
  259. package/tools/index.js +0 -133
  260. package/tools/index.js.map +0 -1
  261. package/tools/index.mjs +0 -126
  262. package/tools/index.mjs.map +0 -1
  263. package/tools/introspect/validate-phone-introspect.d.mts +0 -51
  264. package/tools/introspect/validate-phone-introspect.d.mts.map +0 -1
  265. package/tools/introspect/validate-phone-introspect.d.ts +0 -51
  266. package/tools/introspect/validate-phone-introspect.d.ts.map +0 -1
  267. package/tools/introspect/validate-phone-introspect.js +0 -52
  268. package/tools/introspect/validate-phone-introspect.js.map +0 -1
  269. package/tools/introspect/validate-phone-introspect.mjs +0 -45
  270. package/tools/introspect/validate-phone-introspect.mjs.map +0 -1
  271. package/tools/messages/list-messages.d.mts +0 -51
  272. package/tools/messages/list-messages.d.mts.map +0 -1
  273. package/tools/messages/list-messages.d.ts +0 -51
  274. package/tools/messages/list-messages.d.ts.map +0 -1
  275. package/tools/messages/list-messages.js +0 -78
  276. package/tools/messages/list-messages.js.map +0 -1
  277. package/tools/messages/list-messages.mjs +0 -71
  278. package/tools/messages/list-messages.mjs.map +0 -1
  279. package/tools/messages/react-messages.d.mts +0 -51
  280. package/tools/messages/react-messages.d.mts.map +0 -1
  281. package/tools/messages/react-messages.d.ts +0 -51
  282. package/tools/messages/react-messages.d.ts.map +0 -1
  283. package/tools/messages/react-messages.js +0 -59
  284. package/tools/messages/react-messages.js.map +0 -1
  285. package/tools/messages/react-messages.mjs +0 -52
  286. package/tools/messages/react-messages.mjs.map +0 -1
  287. package/tools/messages/retrieve-messages.d.mts +0 -51
  288. package/tools/messages/retrieve-messages.d.mts.map +0 -1
  289. package/tools/messages/retrieve-messages.d.ts +0 -51
  290. package/tools/messages/retrieve-messages.d.ts.map +0 -1
  291. package/tools/messages/retrieve-messages.js +0 -54
  292. package/tools/messages/retrieve-messages.js.map +0 -1
  293. package/tools/messages/retrieve-messages.mjs +0 -47
  294. package/tools/messages/retrieve-messages.mjs.map +0 -1
  295. package/tools/messages/send-messages.d.mts +0 -51
  296. package/tools/messages/send-messages.d.mts.map +0 -1
  297. package/tools/messages/send-messages.d.ts +0 -51
  298. package/tools/messages/send-messages.d.ts.map +0 -1
  299. package/tools/messages/send-messages.js +0 -233
  300. package/tools/messages/send-messages.js.map +0 -1
  301. package/tools/messages/send-messages.mjs +0 -226
  302. package/tools/messages/send-messages.mjs.map +0 -1
  303. package/tools/phone-numbers/list-phone-numbers.d.mts +0 -51
  304. package/tools/phone-numbers/list-phone-numbers.d.mts.map +0 -1
  305. package/tools/phone-numbers/list-phone-numbers.d.ts +0 -51
  306. package/tools/phone-numbers/list-phone-numbers.d.ts.map +0 -1
  307. package/tools/phone-numbers/list-phone-numbers.js +0 -68
  308. package/tools/phone-numbers/list-phone-numbers.js.map +0 -1
  309. package/tools/phone-numbers/list-phone-numbers.mjs +0 -61
  310. package/tools/phone-numbers/list-phone-numbers.mjs.map +0 -1
  311. package/tools/phone-numbers/purchase-phone-numbers.d.mts +0 -51
  312. package/tools/phone-numbers/purchase-phone-numbers.d.mts.map +0 -1
  313. package/tools/phone-numbers/purchase-phone-numbers.d.ts +0 -51
  314. package/tools/phone-numbers/purchase-phone-numbers.d.ts.map +0 -1
  315. package/tools/phone-numbers/purchase-phone-numbers.js +0 -57
  316. package/tools/phone-numbers/purchase-phone-numbers.js.map +0 -1
  317. package/tools/phone-numbers/purchase-phone-numbers.mjs +0 -50
  318. package/tools/phone-numbers/purchase-phone-numbers.mjs.map +0 -1
  319. package/tools/phone-numbers/release-phone-numbers.d.mts +0 -51
  320. package/tools/phone-numbers/release-phone-numbers.d.mts.map +0 -1
  321. package/tools/phone-numbers/release-phone-numbers.d.ts +0 -51
  322. package/tools/phone-numbers/release-phone-numbers.d.ts.map +0 -1
  323. package/tools/phone-numbers/release-phone-numbers.js +0 -37
  324. package/tools/phone-numbers/release-phone-numbers.js.map +0 -1
  325. package/tools/phone-numbers/release-phone-numbers.mjs +0 -33
  326. package/tools/phone-numbers/release-phone-numbers.mjs.map +0 -1
  327. package/tools/phone-numbers/retrieve-phone-numbers.d.mts +0 -51
  328. package/tools/phone-numbers/retrieve-phone-numbers.d.mts.map +0 -1
  329. package/tools/phone-numbers/retrieve-phone-numbers.d.ts +0 -51
  330. package/tools/phone-numbers/retrieve-phone-numbers.d.ts.map +0 -1
  331. package/tools/phone-numbers/retrieve-phone-numbers.js +0 -54
  332. package/tools/phone-numbers/retrieve-phone-numbers.js.map +0 -1
  333. package/tools/phone-numbers/retrieve-phone-numbers.mjs +0 -47
  334. package/tools/phone-numbers/retrieve-phone-numbers.mjs.map +0 -1
  335. package/tools/phone-numbers/search-available-phone-numbers.d.mts +0 -51
  336. package/tools/phone-numbers/search-available-phone-numbers.d.mts.map +0 -1
  337. package/tools/phone-numbers/search-available-phone-numbers.d.ts +0 -51
  338. package/tools/phone-numbers/search-available-phone-numbers.d.ts.map +0 -1
  339. package/tools/phone-numbers/search-available-phone-numbers.js +0 -72
  340. package/tools/phone-numbers/search-available-phone-numbers.js.map +0 -1
  341. package/tools/phone-numbers/search-available-phone-numbers.mjs +0 -65
  342. package/tools/phone-numbers/search-available-phone-numbers.mjs.map +0 -1
  343. package/tools/phone-numbers/update-phone-numbers.d.mts +0 -51
  344. package/tools/phone-numbers/update-phone-numbers.d.mts.map +0 -1
  345. package/tools/phone-numbers/update-phone-numbers.d.ts +0 -51
  346. package/tools/phone-numbers/update-phone-numbers.d.ts.map +0 -1
  347. package/tools/phone-numbers/update-phone-numbers.js +0 -60
  348. package/tools/phone-numbers/update-phone-numbers.js.map +0 -1
  349. package/tools/phone-numbers/update-phone-numbers.mjs +0 -53
  350. package/tools/phone-numbers/update-phone-numbers.mjs.map +0 -1
  351. package/tools/senders/create-senders.d.mts +0 -51
  352. package/tools/senders/create-senders.d.mts.map +0 -1
  353. package/tools/senders/create-senders.d.ts +0 -51
  354. package/tools/senders/create-senders.d.ts.map +0 -1
  355. package/tools/senders/create-senders.js +0 -85
  356. package/tools/senders/create-senders.js.map +0 -1
  357. package/tools/senders/create-senders.mjs +0 -78
  358. package/tools/senders/create-senders.mjs.map +0 -1
  359. package/tools/senders/delete-senders.d.mts +0 -51
  360. package/tools/senders/delete-senders.d.mts.map +0 -1
  361. package/tools/senders/delete-senders.d.ts +0 -51
  362. package/tools/senders/delete-senders.d.ts.map +0 -1
  363. package/tools/senders/delete-senders.js +0 -37
  364. package/tools/senders/delete-senders.js.map +0 -1
  365. package/tools/senders/delete-senders.mjs +0 -33
  366. package/tools/senders/delete-senders.mjs.map +0 -1
  367. package/tools/senders/get-profile-senders.d.mts +0 -51
  368. package/tools/senders/get-profile-senders.d.mts.map +0 -1
  369. package/tools/senders/get-profile-senders.d.ts +0 -51
  370. package/tools/senders/get-profile-senders.d.ts.map +0 -1
  371. package/tools/senders/get-profile-senders.js +0 -54
  372. package/tools/senders/get-profile-senders.js.map +0 -1
  373. package/tools/senders/get-profile-senders.mjs +0 -47
  374. package/tools/senders/get-profile-senders.mjs.map +0 -1
  375. package/tools/senders/list-senders.d.mts +0 -51
  376. package/tools/senders/list-senders.d.mts.map +0 -1
  377. package/tools/senders/list-senders.d.ts +0 -51
  378. package/tools/senders/list-senders.d.ts.map +0 -1
  379. package/tools/senders/list-senders.js +0 -58
  380. package/tools/senders/list-senders.js.map +0 -1
  381. package/tools/senders/list-senders.mjs +0 -51
  382. package/tools/senders/list-senders.mjs.map +0 -1
  383. package/tools/senders/regenerate-webhook-secret-senders.d.mts +0 -51
  384. package/tools/senders/regenerate-webhook-secret-senders.d.mts.map +0 -1
  385. package/tools/senders/regenerate-webhook-secret-senders.d.ts +0 -51
  386. package/tools/senders/regenerate-webhook-secret-senders.d.ts.map +0 -1
  387. package/tools/senders/regenerate-webhook-secret-senders.js +0 -52
  388. package/tools/senders/regenerate-webhook-secret-senders.js.map +0 -1
  389. package/tools/senders/regenerate-webhook-secret-senders.mjs +0 -45
  390. package/tools/senders/regenerate-webhook-secret-senders.mjs.map +0 -1
  391. package/tools/senders/retrieve-senders.d.mts +0 -51
  392. package/tools/senders/retrieve-senders.d.mts.map +0 -1
  393. package/tools/senders/retrieve-senders.d.ts +0 -51
  394. package/tools/senders/retrieve-senders.d.ts.map +0 -1
  395. package/tools/senders/retrieve-senders.js +0 -54
  396. package/tools/senders/retrieve-senders.js.map +0 -1
  397. package/tools/senders/retrieve-senders.mjs +0 -47
  398. package/tools/senders/retrieve-senders.mjs.map +0 -1
  399. package/tools/senders/update-profile-senders.d.mts +0 -51
  400. package/tools/senders/update-profile-senders.d.mts.map +0 -1
  401. package/tools/senders/update-profile-senders.d.ts +0 -51
  402. package/tools/senders/update-profile-senders.d.ts.map +0 -1
  403. package/tools/senders/update-profile-senders.js +0 -105
  404. package/tools/senders/update-profile-senders.js.map +0 -1
  405. package/tools/senders/update-profile-senders.mjs +0 -98
  406. package/tools/senders/update-profile-senders.mjs.map +0 -1
  407. package/tools/senders/update-senders.d.mts +0 -51
  408. package/tools/senders/update-senders.d.mts.map +0 -1
  409. package/tools/senders/update-senders.d.ts +0 -51
  410. package/tools/senders/update-senders.d.ts.map +0 -1
  411. package/tools/senders/update-senders.js +0 -89
  412. package/tools/senders/update-senders.js.map +0 -1
  413. package/tools/senders/update-senders.mjs +0 -82
  414. package/tools/senders/update-senders.mjs.map +0 -1
  415. package/tools/senders/upload-profile-picture-senders.d.mts +0 -51
  416. package/tools/senders/upload-profile-picture-senders.d.mts.map +0 -1
  417. package/tools/senders/upload-profile-picture-senders.d.ts +0 -51
  418. package/tools/senders/upload-profile-picture-senders.d.ts.map +0 -1
  419. package/tools/senders/upload-profile-picture-senders.js +0 -61
  420. package/tools/senders/upload-profile-picture-senders.js.map +0 -1
  421. package/tools/senders/upload-profile-picture-senders.mjs +0 -54
  422. package/tools/senders/upload-profile-picture-senders.mjs.map +0 -1
  423. package/tools/templates/create-templates.d.mts +0 -51
  424. package/tools/templates/create-templates.d.mts.map +0 -1
  425. package/tools/templates/create-templates.d.ts +0 -51
  426. package/tools/templates/create-templates.d.ts.map +0 -1
  427. package/tools/templates/create-templates.js +0 -74
  428. package/tools/templates/create-templates.js.map +0 -1
  429. package/tools/templates/create-templates.mjs +0 -67
  430. package/tools/templates/create-templates.mjs.map +0 -1
  431. package/tools/templates/delete-templates.d.mts +0 -51
  432. package/tools/templates/delete-templates.d.mts.map +0 -1
  433. package/tools/templates/delete-templates.d.ts +0 -51
  434. package/tools/templates/delete-templates.d.ts.map +0 -1
  435. package/tools/templates/delete-templates.js +0 -37
  436. package/tools/templates/delete-templates.js.map +0 -1
  437. package/tools/templates/delete-templates.mjs +0 -33
  438. package/tools/templates/delete-templates.mjs.map +0 -1
  439. package/tools/templates/list-templates.d.mts +0 -51
  440. package/tools/templates/list-templates.d.mts.map +0 -1
  441. package/tools/templates/list-templates.d.ts +0 -51
  442. package/tools/templates/list-templates.d.ts.map +0 -1
  443. package/tools/templates/list-templates.js +0 -58
  444. package/tools/templates/list-templates.js.map +0 -1
  445. package/tools/templates/list-templates.mjs +0 -51
  446. package/tools/templates/list-templates.mjs.map +0 -1
  447. package/tools/templates/retrieve-templates.d.mts +0 -51
  448. package/tools/templates/retrieve-templates.d.mts.map +0 -1
  449. package/tools/templates/retrieve-templates.d.ts +0 -51
  450. package/tools/templates/retrieve-templates.d.ts.map +0 -1
  451. package/tools/templates/retrieve-templates.js +0 -54
  452. package/tools/templates/retrieve-templates.js.map +0 -1
  453. package/tools/templates/retrieve-templates.mjs +0 -47
  454. package/tools/templates/retrieve-templates.mjs.map +0 -1
  455. package/tools/templates/submit-templates.d.mts +0 -51
  456. package/tools/templates/submit-templates.d.mts.map +0 -1
  457. package/tools/templates/submit-templates.d.ts +0 -51
  458. package/tools/templates/submit-templates.d.ts.map +0 -1
  459. package/tools/templates/submit-templates.js +0 -66
  460. package/tools/templates/submit-templates.js.map +0 -1
  461. package/tools/templates/submit-templates.mjs +0 -59
  462. package/tools/templates/submit-templates.mjs.map +0 -1
  463. package/tools/types.d.mts.map +0 -1
  464. package/tools/types.d.ts.map +0 -1
  465. package/tools/types.js.map +0 -1
  466. package/tools/types.mjs.map +0 -1
  467. package/tools.d.mts +0 -2
  468. package/tools.d.mts.map +0 -1
  469. package/tools.d.ts +0 -2
  470. package/tools.d.ts.map +0 -1
  471. package/tools.js +0 -18
  472. package/tools.js.map +0 -1
  473. package/tools.mjs +0 -2
  474. package/tools.mjs.map +0 -1
  475. /package/{tools/types.js → types.js} +0 -0
  476. /package/{tools/types.mjs → types.mjs} +0 -0
package/stdio.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
2
2
  import { initMcpServer, newMcpServer } from "./server.mjs";
3
- export const launchStdioServer = async (options) => {
3
+ export const launchStdioServer = async () => {
4
4
  const server = newMcpServer();
5
- initMcpServer({ server, mcpOptions: options });
5
+ initMcpServer({ server });
6
6
  const transport = new StdioServerTransport();
7
7
  await server.connect(transport);
8
8
  console.error('MCP Server running on stdio');
package/stdio.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"stdio.mjs","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C;OACzE,EAAE,aAAa,EAAE,YAAY,EAAE;AAGtC,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EAAE,OAAmB,EAAE,EAAE;IAC7D,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;IAE9B,aAAa,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;IAE/C,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAC/C,CAAC,CAAC"}
1
+ {"version":3,"file":"stdio.mjs","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C;OACzE,EAAE,aAAa,EAAE,YAAY,EAAE;AAEtC,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,IAAI,EAAE;IAC1C,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;IAE9B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAE1B,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAC/C,CAAC,CAAC"}
@@ -43,7 +43,7 @@ export type Metadata = {
43
43
  httpPath?: string;
44
44
  operationId?: string;
45
45
  };
46
- export type Endpoint = {
46
+ export type McpTool = {
47
47
  metadata: Metadata;
48
48
  tool: Tool;
49
49
  handler: HandlerFunction;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"OAEO,OAAO,MAAM,cAAc;OAC3B,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EACJ;QACE,GAAG,EAAE,MAAM,CAAC;Q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type Endpoint = {
46
+ export type McpTool = {
47
47
  metadata: Metadata;
48
48
  tool: Tool;
49
49
  handler: HandlerFunction;
package/types.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"OAEO,OAAO,MAAM,cAAc;OAC3B,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EACJ;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,GACD;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACP,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;AAE3G,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAC5B,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,KACtC,OAAO,CAAC,cAAc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,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;IAC3B,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACtE,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAClC,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;SAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzC,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,UAAU;oBAChB,QAAQ,EAAE;wBACR,uEAAuE;wBACvE,GAAG,EAAE,0BAA0B;wBAC/B,QAAQ;wBACR,IAAI,EAAE,IAAI;qBACX;iBACF;aACF;SACF,CAAC;IACJ,CAAC;AACH,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,OAAe;IAC3C,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;aACd;SACF;QACD,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC"}
package/compat.d.mts DELETED
@@ -1,58 +0,0 @@
1
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
- import { z } from 'zod';
3
- import { Endpoint } from "./tools.mjs";
4
- export interface ClientCapabilities {
5
- topLevelUnions: boolean;
6
- validJson: boolean;
7
- refs: boolean;
8
- unions: boolean;
9
- formats: boolean;
10
- toolNameLength: number | undefined;
11
- }
12
- export declare const defaultClientCapabilities: ClientCapabilities;
13
- export declare const ClientType: z.ZodEnum<["openai-agents", "claude", "claude-code", "cursor", "infer"]>;
14
- export type ClientType = z.infer<typeof ClientType>;
15
- export declare const knownClients: Record<Exclude<ClientType, 'infer'>, ClientCapabilities>;
16
- /**
17
- * Attempts to parse strings into JSON objects
18
- */
19
- export declare function parseEmbeddedJSON(args: Record<string, unknown>, schema: Record<string, unknown>): Record<string, unknown>;
20
- export type JSONSchema = {
21
- type?: string;
22
- properties?: Record<string, JSONSchema>;
23
- required?: string[];
24
- anyOf?: JSONSchema[];
25
- $ref?: string;
26
- $defs?: Record<string, JSONSchema>;
27
- [key: string]: any;
28
- };
29
- /**
30
- * Truncates tool names to the specified length while ensuring uniqueness.
31
- * If truncation would cause duplicate names, appends a number to make them unique.
32
- */
33
- export declare function truncateToolNames(names: string[], maxLength: number): Map<string, string>;
34
- /**
35
- * Removes top-level unions from a tool by splitting it into multiple tools,
36
- * one for each variant in the union.
37
- */
38
- export declare function removeTopLevelUnions(tool: Tool): Tool[];
39
- declare function findUsedDefs(schema: JSONSchema, defs: Record<string, JSONSchema>, visited?: Set<string>): Record<string, JSONSchema>;
40
- export { findUsedDefs };
41
- /**
42
- * Inlines all $refs in a schema, eliminating $defs.
43
- * If a circular reference is detected, the circular property is removed.
44
- */
45
- export declare function inlineRefs(schema: JSONSchema): JSONSchema;
46
- /**
47
- * Removes anyOf fields from a schema, using only the first variant.
48
- */
49
- export declare function removeAnyOf(schema: JSONSchema): JSONSchema;
50
- /**
51
- * Removes format fields from a schema and appends them to the description.
52
- */
53
- export declare function removeFormats(schema: JSONSchema, formatsCapability: boolean): JSONSchema;
54
- /**
55
- * Applies all compatibility transformations to the endpoints based on the provided capabilities.
56
- */
57
- export declare function applyCompatibilityTransformations(endpoints: Endpoint[], capabilities: ClientCapabilities): Endpoint[];
58
- //# sourceMappingURL=compat.d.mts.map
package/compat.d.mts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"compat.d.mts","sourceRoot":"","sources":["src/compat.ts"],"names":[],"mappings":"OAAO,EAAE,IAAI,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,CAAC,CAwCzF;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,CAyCvD;AAED,iBAAS,YAAY,CACnB,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EAChC,OAAO,GAAE,GAAG,CAAC,MAAM,CAAa,GAC/B,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CA6B5B;AAGD,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAazD;AAoED;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CA0C1D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,GAAG,UAAU,CAkCxF;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,SAAS,EAAE,QAAQ,EAAE,EACrB,YAAY,EAAE,kBAAkB,GAC/B,QAAQ,EAAE,CAiEZ"}
package/compat.d.ts DELETED
@@ -1,58 +0,0 @@
1
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
- import { z } from 'zod';
3
- import { Endpoint } from "./tools.js";
4
- export interface ClientCapabilities {
5
- topLevelUnions: boolean;
6
- validJson: boolean;
7
- refs: boolean;
8
- unions: boolean;
9
- formats: boolean;
10
- toolNameLength: number | undefined;
11
- }
12
- export declare const defaultClientCapabilities: ClientCapabilities;
13
- export declare const ClientType: z.ZodEnum<["openai-agents", "claude", "claude-code", "cursor", "infer"]>;
14
- export type ClientType = z.infer<typeof ClientType>;
15
- export declare const knownClients: Record<Exclude<ClientType, 'infer'>, ClientCapabilities>;
16
- /**
17
- * Attempts to parse strings into JSON objects
18
- */
19
- export declare function parseEmbeddedJSON(args: Record<string, unknown>, schema: Record<string, unknown>): Record<string, unknown>;
20
- export type JSONSchema = {
21
- type?: string;
22
- properties?: Record<string, JSONSchema>;
23
- required?: string[];
24
- anyOf?: JSONSchema[];
25
- $ref?: string;
26
- $defs?: Record<string, JSONSchema>;
27
- [key: string]: any;
28
- };
29
- /**
30
- * Truncates tool names to the specified length while ensuring uniqueness.
31
- * If truncation would cause duplicate names, appends a number to make them unique.
32
- */
33
- export declare function truncateToolNames(names: string[], maxLength: number): Map<string, string>;
34
- /**
35
- * Removes top-level unions from a tool by splitting it into multiple tools,
36
- * one for each variant in the union.
37
- */
38
- export declare function removeTopLevelUnions(tool: Tool): Tool[];
39
- declare function findUsedDefs(schema: JSONSchema, defs: Record<string, JSONSchema>, visited?: Set<string>): Record<string, JSONSchema>;
40
- export { findUsedDefs };
41
- /**
42
- * Inlines all $refs in a schema, eliminating $defs.
43
- * If a circular reference is detected, the circular property is removed.
44
- */
45
- export declare function inlineRefs(schema: JSONSchema): JSONSchema;
46
- /**
47
- * Removes anyOf fields from a schema, using only the first variant.
48
- */
49
- export declare function removeAnyOf(schema: JSONSchema): JSONSchema;
50
- /**
51
- * Removes format fields from a schema and appends them to the description.
52
- */
53
- export declare function removeFormats(schema: JSONSchema, formatsCapability: boolean): JSONSchema;
54
- /**
55
- * Applies all compatibility transformations to the endpoints based on the provided capabilities.
56
- */
57
- export declare function applyCompatibilityTransformations(endpoints: Endpoint[], capabilities: ClientCapabilities): Endpoint[];
58
- //# sourceMappingURL=compat.d.ts.map
package/compat.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["src/compat.ts"],"names":[],"mappings":"OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,EAAE,CAAC,EAAE,MAAM,KAAK;OAChB,EAAE,QAAQ,EAAE;AAEnB,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAA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,MAAM,CAAa,GAC/B,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CA6B5B;AAGD,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAazD;AAoED;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CA0C1D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,GAAG,UAAU,CAkCxF;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,SAAS,EAAE,QAAQ,EAAE,EACrB,YAAY,EAAE,kBAAkB,GAC/B,QAAQ,EAAE,CAiEZ"}
package/compat.js DELETED
@@ -1,387 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.knownClients = exports.ClientType = exports.defaultClientCapabilities = void 0;
4
- exports.parseEmbeddedJSON = parseEmbeddedJSON;
5
- exports.truncateToolNames = truncateToolNames;
6
- exports.removeTopLevelUnions = removeTopLevelUnions;
7
- exports.findUsedDefs = findUsedDefs;
8
- exports.inlineRefs = inlineRefs;
9
- exports.removeAnyOf = removeAnyOf;
10
- exports.removeFormats = removeFormats;
11
- exports.applyCompatibilityTransformations = applyCompatibilityTransformations;
12
- const zod_1 = require("zod");
13
- exports.defaultClientCapabilities = {
14
- topLevelUnions: true,
15
- validJson: true,
16
- refs: true,
17
- unions: true,
18
- formats: true,
19
- toolNameLength: undefined,
20
- };
21
- exports.ClientType = zod_1.z.enum(['openai-agents', 'claude', 'claude-code', 'cursor', 'infer']);
22
- // Client presets for compatibility
23
- // Note that these could change over time as models get better, so this is
24
- // a best effort.
25
- exports.knownClients = {
26
- 'openai-agents': {
27
- topLevelUnions: false,
28
- validJson: true,
29
- refs: true,
30
- unions: true,
31
- formats: true,
32
- toolNameLength: undefined,
33
- },
34
- claude: {
35
- topLevelUnions: true,
36
- validJson: false,
37
- refs: true,
38
- unions: true,
39
- formats: true,
40
- toolNameLength: undefined,
41
- },
42
- 'claude-code': {
43
- topLevelUnions: false,
44
- validJson: true,
45
- refs: true,
46
- unions: true,
47
- formats: true,
48
- toolNameLength: undefined,
49
- },
50
- cursor: {
51
- topLevelUnions: false,
52
- validJson: true,
53
- refs: false,
54
- unions: false,
55
- formats: false,
56
- toolNameLength: 50,
57
- },
58
- };
59
- /**
60
- * Attempts to parse strings into JSON objects
61
- */
62
- function parseEmbeddedJSON(args, schema) {
63
- let updated = false;
64
- const newArgs = Object.assign({}, args);
65
- for (const [key, value] of Object.entries(newArgs)) {
66
- if (typeof value === 'string') {
67
- try {
68
- const parsed = JSON.parse(value);
69
- // Only parse if result is a plain object (not array, null, or primitive)
70
- if (parsed && typeof parsed === 'object' && !Array.isArray(parsed)) {
71
- newArgs[key] = parsed;
72
- updated = true;
73
- }
74
- }
75
- catch (e) {
76
- // Not valid JSON, leave as is
77
- }
78
- }
79
- }
80
- if (updated) {
81
- return newArgs;
82
- }
83
- return args;
84
- }
85
- /**
86
- * Truncates tool names to the specified length while ensuring uniqueness.
87
- * If truncation would cause duplicate names, appends a number to make them unique.
88
- */
89
- function truncateToolNames(names, maxLength) {
90
- if (maxLength <= 0) {
91
- return new Map();
92
- }
93
- const renameMap = new Map();
94
- const usedNames = new Set();
95
- const toTruncate = names.filter((name) => name.length > maxLength);
96
- if (toTruncate.length === 0) {
97
- return renameMap;
98
- }
99
- const willCollide = new Set(toTruncate.map((name) => name.slice(0, maxLength - 1))).size < toTruncate.length;
100
- if (!willCollide) {
101
- for (const name of toTruncate) {
102
- const truncatedName = name.slice(0, maxLength);
103
- renameMap.set(name, truncatedName);
104
- }
105
- }
106
- else {
107
- const baseLength = maxLength - 1;
108
- for (const name of toTruncate) {
109
- const baseName = name.slice(0, baseLength);
110
- let counter = 1;
111
- while (usedNames.has(baseName + counter)) {
112
- counter++;
113
- }
114
- const finalName = baseName + counter;
115
- renameMap.set(name, finalName);
116
- usedNames.add(finalName);
117
- }
118
- }
119
- return renameMap;
120
- }
121
- /**
122
- * Removes top-level unions from a tool by splitting it into multiple tools,
123
- * one for each variant in the union.
124
- */
125
- function removeTopLevelUnions(tool) {
126
- const inputSchema = tool.inputSchema;
127
- const variants = inputSchema.anyOf;
128
- if (!variants || !Array.isArray(variants) || variants.length === 0) {
129
- return [tool];
130
- }
131
- const defs = inputSchema.$defs || {};
132
- return variants.map((variant, index) => {
133
- const variantSchema = {
134
- ...inputSchema,
135
- ...variant,
136
- type: 'object',
137
- properties: {
138
- ...(inputSchema.properties || {}),
139
- ...(variant.properties || {}),
140
- },
141
- };
142
- delete variantSchema.anyOf;
143
- if (!variantSchema['description']) {
144
- variantSchema['description'] = tool.description;
145
- }
146
- const usedDefs = findUsedDefs(variant, defs);
147
- if (Object.keys(usedDefs).length > 0) {
148
- variantSchema.$defs = usedDefs;
149
- }
150
- else {
151
- delete variantSchema.$defs;
152
- }
153
- return {
154
- ...tool,
155
- name: `${tool.name}_${toSnakeCase(variant['title'] || `variant${index + 1}`)}`,
156
- description: variant['description'] || tool.description,
157
- inputSchema: variantSchema,
158
- };
159
- });
160
- }
161
- function findUsedDefs(schema, defs, visited = new Set()) {
162
- const usedDefs = {};
163
- if (typeof schema !== 'object' || schema === null) {
164
- return usedDefs;
165
- }
166
- if (schema.$ref) {
167
- const refParts = schema.$ref.split('/');
168
- if (refParts[0] === '#' && refParts[1] === '$defs' && refParts[2]) {
169
- const defName = refParts[2];
170
- const def = defs[defName];
171
- if (def && !visited.has(schema.$ref)) {
172
- usedDefs[defName] = def;
173
- visited.add(schema.$ref);
174
- Object.assign(usedDefs, findUsedDefs(def, defs, visited));
175
- visited.delete(schema.$ref);
176
- }
177
- }
178
- return usedDefs;
179
- }
180
- for (const key in schema) {
181
- if (key !== '$defs' && typeof schema[key] === 'object' && schema[key] !== null) {
182
- Object.assign(usedDefs, findUsedDefs(schema[key], defs, visited));
183
- }
184
- }
185
- return usedDefs;
186
- }
187
- /**
188
- * Inlines all $refs in a schema, eliminating $defs.
189
- * If a circular reference is detected, the circular property is removed.
190
- */
191
- function inlineRefs(schema) {
192
- if (!schema || typeof schema !== 'object') {
193
- return schema;
194
- }
195
- const clonedSchema = { ...schema };
196
- const defs = schema.$defs || {};
197
- delete clonedSchema.$defs;
198
- const result = inlineRefsRecursive(clonedSchema, defs, new Set());
199
- // The top level can never be null
200
- return result === null ? {} : result;
201
- }
202
- function inlineRefsRecursive(schema, defs, refPath) {
203
- if (!schema || typeof schema !== 'object') {
204
- return schema;
205
- }
206
- if (Array.isArray(schema)) {
207
- return schema.map((item) => {
208
- const processed = inlineRefsRecursive(item, defs, refPath);
209
- return processed === null ? {} : processed;
210
- });
211
- }
212
- const result = { ...schema };
213
- if ('$ref' in result && typeof result.$ref === 'string') {
214
- if (result.$ref.startsWith('#/$defs/')) {
215
- const refName = result.$ref.split('/').pop();
216
- const def = defs[refName];
217
- // If we've already seen this ref in our path, we have a circular reference
218
- if (refPath.has(result.$ref)) {
219
- // For circular references, we completely remove the property
220
- // by returning null. The parent will remove it.
221
- return null;
222
- }
223
- if (def) {
224
- const newRefPath = new Set(refPath);
225
- newRefPath.add(result.$ref);
226
- const inlinedDef = inlineRefsRecursive({ ...def }, defs, newRefPath);
227
- if (inlinedDef === null) {
228
- return { ...result };
229
- }
230
- // Merge the inlined definition with the original schema's properties
231
- // but preserve things like description, etc.
232
- const { $ref, ...rest } = result;
233
- return { ...inlinedDef, ...rest };
234
- }
235
- }
236
- // Keep external refs as-is
237
- return result;
238
- }
239
- for (const key in result) {
240
- if (result[key] && typeof result[key] === 'object') {
241
- const processed = inlineRefsRecursive(result[key], defs, refPath);
242
- if (processed === null) {
243
- // Remove properties that would cause circular references
244
- delete result[key];
245
- }
246
- else {
247
- result[key] = processed;
248
- }
249
- }
250
- }
251
- return result;
252
- }
253
- /**
254
- * Removes anyOf fields from a schema, using only the first variant.
255
- */
256
- function removeAnyOf(schema) {
257
- if (!schema || typeof schema !== 'object') {
258
- return schema;
259
- }
260
- if (Array.isArray(schema)) {
261
- return schema.map((item) => removeAnyOf(item));
262
- }
263
- const result = { ...schema };
264
- if ('anyOf' in result && Array.isArray(result.anyOf) && result.anyOf.length > 0) {
265
- const firstVariant = result.anyOf[0];
266
- if (firstVariant && typeof firstVariant === 'object') {
267
- // Special handling for properties to ensure deep merge
268
- if (firstVariant.properties && result.properties) {
269
- result.properties = {
270
- ...result.properties,
271
- ...firstVariant.properties,
272
- };
273
- }
274
- else if (firstVariant.properties) {
275
- result.properties = { ...firstVariant.properties };
276
- }
277
- for (const key in firstVariant) {
278
- if (key !== 'properties') {
279
- result[key] = firstVariant[key];
280
- }
281
- }
282
- }
283
- delete result.anyOf;
284
- }
285
- for (const key in result) {
286
- if (result[key] && typeof result[key] === 'object') {
287
- result[key] = removeAnyOf(result[key]);
288
- }
289
- }
290
- return result;
291
- }
292
- /**
293
- * Removes format fields from a schema and appends them to the description.
294
- */
295
- function removeFormats(schema, formatsCapability) {
296
- if (formatsCapability) {
297
- return schema;
298
- }
299
- if (!schema || typeof schema !== 'object') {
300
- return schema;
301
- }
302
- if (Array.isArray(schema)) {
303
- return schema.map((item) => removeFormats(item, formatsCapability));
304
- }
305
- const result = { ...schema };
306
- if ('format' in result && typeof result['format'] === 'string') {
307
- const formatStr = `(format: "${result['format']}")`;
308
- if ('description' in result && typeof result['description'] === 'string') {
309
- result['description'] = `${result['description']} ${formatStr}`;
310
- }
311
- else {
312
- result['description'] = formatStr;
313
- }
314
- delete result['format'];
315
- }
316
- for (const key in result) {
317
- if (result[key] && typeof result[key] === 'object') {
318
- result[key] = removeFormats(result[key], formatsCapability);
319
- }
320
- }
321
- return result;
322
- }
323
- /**
324
- * Applies all compatibility transformations to the endpoints based on the provided capabilities.
325
- */
326
- function applyCompatibilityTransformations(endpoints, capabilities) {
327
- let transformedEndpoints = [...endpoints];
328
- // Handle top-level unions first as this changes tool names
329
- if (!capabilities.topLevelUnions) {
330
- const newEndpoints = [];
331
- for (const endpoint of transformedEndpoints) {
332
- const variantTools = removeTopLevelUnions(endpoint.tool);
333
- if (variantTools.length === 1) {
334
- newEndpoints.push(endpoint);
335
- }
336
- else {
337
- for (const variantTool of variantTools) {
338
- newEndpoints.push({
339
- ...endpoint,
340
- tool: variantTool,
341
- });
342
- }
343
- }
344
- }
345
- transformedEndpoints = newEndpoints;
346
- }
347
- if (capabilities.toolNameLength) {
348
- const toolNames = transformedEndpoints.map((endpoint) => endpoint.tool.name);
349
- const renameMap = truncateToolNames(toolNames, capabilities.toolNameLength);
350
- transformedEndpoints = transformedEndpoints.map((endpoint) => ({
351
- ...endpoint,
352
- tool: {
353
- ...endpoint.tool,
354
- name: renameMap.get(endpoint.tool.name) ?? endpoint.tool.name,
355
- },
356
- }));
357
- }
358
- if (!capabilities.refs || !capabilities.unions || !capabilities.formats) {
359
- transformedEndpoints = transformedEndpoints.map((endpoint) => {
360
- let schema = endpoint.tool.inputSchema;
361
- if (!capabilities.refs) {
362
- schema = inlineRefs(schema);
363
- }
364
- if (!capabilities.unions) {
365
- schema = removeAnyOf(schema);
366
- }
367
- if (!capabilities.formats) {
368
- schema = removeFormats(schema, capabilities.formats);
369
- }
370
- return {
371
- ...endpoint,
372
- tool: {
373
- ...endpoint.tool,
374
- inputSchema: schema,
375
- },
376
- };
377
- });
378
- }
379
- return transformedEndpoints;
380
- }
381
- function toSnakeCase(str) {
382
- return str
383
- .replace(/\s+/g, '_')
384
- .replace(/([a-z])([A-Z])/g, '$1_$2')
385
- .toLowerCase();
386
- }
387
- //# sourceMappingURL=compat.js.map
package/compat.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"compat.js","sourceRoot":"","sources":["src/compat.ts"],"names":[],"mappings":";;;AAkEA,8CAwBC;AAgBD,8CAwCC;AAMD,oDAyCC;AAsCQ,oCAAY;AAMrB,gCAaC;AAuED,kCA0CC;AAKD,sCAkCC;AAKD,8EAoEC;AA1dD,6BAAwB;AAYX,QAAA,yBAAyB,GAAu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