@5ss/ai-tools 2.11.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 (342) hide show
  1. package/CHANGELOG.md +112 -0
  2. package/LICENSE +21 -0
  3. package/README.md +221 -0
  4. package/dist/ai-sdk/index.d.ts +15 -0
  5. package/dist/ai-sdk/index.d.ts.map +1 -0
  6. package/dist/ai-sdk/index.js +24 -0
  7. package/dist/ai-sdk/index.js.map +1 -0
  8. package/dist/artifact-D064mHfK.js +44 -0
  9. package/dist/artifact-D064mHfK.js.map +1 -0
  10. package/dist/artifacts-O8g-40Pw.js +404 -0
  11. package/dist/artifacts-O8g-40Pw.js.map +1 -0
  12. package/dist/aws-json-CecFqzqX.js +23 -0
  13. package/dist/aws-json-CecFqzqX.js.map +1 -0
  14. package/dist/aws-service-msttbPrz.js +58 -0
  15. package/dist/aws-service-msttbPrz.js.map +1 -0
  16. package/dist/batch-BMM5dXqL.d.ts +22 -0
  17. package/dist/batch-BMM5dXqL.d.ts.map +1 -0
  18. package/dist/batch-Co1ujeAW.js +67 -0
  19. package/dist/batch-Co1ujeAW.js.map +1 -0
  20. package/dist/bedrock-agentcore-browser-a_qOs-NR.js +182 -0
  21. package/dist/bedrock-agentcore-browser-a_qOs-NR.js.map +1 -0
  22. package/dist/bedrock-agentcore-code-interpreter-MWK-8RhA.js +357 -0
  23. package/dist/bedrock-agentcore-code-interpreter-MWK-8RhA.js.map +1 -0
  24. package/dist/bytes-BxpimpQx.js +45 -0
  25. package/dist/bytes-BxpimpQx.js.map +1 -0
  26. package/dist/client-CCKGsTeI.js +743 -0
  27. package/dist/client-CCKGsTeI.js.map +1 -0
  28. package/dist/cloudflare/index.d.ts +37 -0
  29. package/dist/cloudflare/index.d.ts.map +1 -0
  30. package/dist/cloudflare/index.js +41 -0
  31. package/dist/cloudflare/index.js.map +1 -0
  32. package/dist/cloudflare-browser-B6Yolpin.js +428 -0
  33. package/dist/cloudflare-browser-B6Yolpin.js.map +1 -0
  34. package/dist/cloudflare-email-Dy0KHeDf.js +197 -0
  35. package/dist/cloudflare-email-Dy0KHeDf.js.map +1 -0
  36. package/dist/cloudflare-sandbox-Dp_uNaqW.js +982 -0
  37. package/dist/cloudflare-sandbox-Dp_uNaqW.js.map +1 -0
  38. package/dist/content-type-CORxaxcv.js +49 -0
  39. package/dist/content-type-CORxaxcv.js.map +1 -0
  40. package/dist/core/index.d.ts +4 -0
  41. package/dist/core/index.js +204 -0
  42. package/dist/core/index.js.map +1 -0
  43. package/dist/define-CvpJ_pNP.js +115 -0
  44. package/dist/define-CvpJ_pNP.js.map +1 -0
  45. package/dist/errors-DoSpNHvs.js +20 -0
  46. package/dist/errors-DoSpNHvs.js.map +1 -0
  47. package/dist/errors-aKhko9T1.d.ts +18 -0
  48. package/dist/errors-aKhko9T1.d.ts.map +1 -0
  49. package/dist/eventbridge-scheduler-Bh6GqZY2.js +349 -0
  50. package/dist/eventbridge-scheduler-Bh6GqZY2.js.map +1 -0
  51. package/dist/framework-context-DVIIY8ZO.js +24 -0
  52. package/dist/framework-context-DVIIY8ZO.js.map +1 -0
  53. package/dist/gotenberg-NuJjxyln.js +291 -0
  54. package/dist/gotenberg-NuJjxyln.js.map +1 -0
  55. package/dist/http/index.d.ts +47 -0
  56. package/dist/http/index.d.ts.map +1 -0
  57. package/dist/http/index.js +3 -0
  58. package/dist/http-service-DDNCO1s4.js +254 -0
  59. package/dist/http-service-DDNCO1s4.js.map +1 -0
  60. package/dist/http-service-T7E5UjP8.d.ts +80 -0
  61. package/dist/http-service-T7E5UjP8.d.ts.map +1 -0
  62. package/dist/imessage-BSAFOI8Z.js +154 -0
  63. package/dist/imessage-BSAFOI8Z.js.map +1 -0
  64. package/dist/index-BU4gmYO8.d.ts +254 -0
  65. package/dist/index-BU4gmYO8.d.ts.map +1 -0
  66. package/dist/index-CCivzmxO.d.ts +188 -0
  67. package/dist/index-CCivzmxO.d.ts.map +1 -0
  68. package/dist/index-CLmTrcu5.d.ts +22 -0
  69. package/dist/index-CLmTrcu5.d.ts.map +1 -0
  70. package/dist/index-CZX5OeOF.d.ts +235 -0
  71. package/dist/index-CZX5OeOF.d.ts.map +1 -0
  72. package/dist/index-CdFmEfZO.d.ts +359 -0
  73. package/dist/index-CdFmEfZO.d.ts.map +1 -0
  74. package/dist/index-Cuh6eMWc.d.ts +285 -0
  75. package/dist/index-Cuh6eMWc.d.ts.map +1 -0
  76. package/dist/index-DuOGj7vc.d.ts +107 -0
  77. package/dist/index-DuOGj7vc.d.ts.map +1 -0
  78. package/dist/index-ccZ1XOHw.d.ts +69 -0
  79. package/dist/index-ccZ1XOHw.d.ts.map +1 -0
  80. package/dist/index-n8JTpNf1.d.ts +247 -0
  81. package/dist/index-n8JTpNf1.d.ts.map +1 -0
  82. package/dist/index-pwW1OsOx.d.ts +134 -0
  83. package/dist/index-pwW1OsOx.d.ts.map +1 -0
  84. package/dist/index-zK1ZwS4m.d.ts +347 -0
  85. package/dist/index-zK1ZwS4m.d.ts.map +1 -0
  86. package/dist/limits-hjrO8zUG.js +80 -0
  87. package/dist/limits-hjrO8zUG.js.map +1 -0
  88. package/dist/mastra/index.d.ts +14 -0
  89. package/dist/mastra/index.d.ts.map +1 -0
  90. package/dist/mastra/index.js +26 -0
  91. package/dist/mastra/index.js.map +1 -0
  92. package/dist/mastra-vector-Dhc6XZ8l.js +234 -0
  93. package/dist/mastra-vector-Dhc6XZ8l.js.map +1 -0
  94. package/dist/mcp/index.d.ts +80 -0
  95. package/dist/mcp/index.d.ts.map +1 -0
  96. package/dist/mcp/index.js +97 -0
  97. package/dist/mcp/index.js.map +1 -0
  98. package/dist/modules/artifacts/index.d.ts +337 -0
  99. package/dist/modules/artifacts/index.d.ts.map +1 -0
  100. package/dist/modules/artifacts/index.js +348 -0
  101. package/dist/modules/artifacts/index.js.map +1 -0
  102. package/dist/modules/browser/index.d.ts +516 -0
  103. package/dist/modules/browser/index.d.ts.map +1 -0
  104. package/dist/modules/browser/index.js +475 -0
  105. package/dist/modules/browser/index.js.map +1 -0
  106. package/dist/modules/calendar/index.d.ts +93 -0
  107. package/dist/modules/calendar/index.d.ts.map +1 -0
  108. package/dist/modules/calendar/index.js +131 -0
  109. package/dist/modules/calendar/index.js.map +1 -0
  110. package/dist/modules/code-sandbox/index.d.ts +317 -0
  111. package/dist/modules/code-sandbox/index.d.ts.map +1 -0
  112. package/dist/modules/code-sandbox/index.js +537 -0
  113. package/dist/modules/code-sandbox/index.js.map +1 -0
  114. package/dist/modules/content-type/index.d.ts +22 -0
  115. package/dist/modules/content-type/index.d.ts.map +1 -0
  116. package/dist/modules/content-type/index.js +66 -0
  117. package/dist/modules/content-type/index.js.map +1 -0
  118. package/dist/modules/crypto/index.d.ts +115 -0
  119. package/dist/modules/crypto/index.d.ts.map +1 -0
  120. package/dist/modules/crypto/index.js +139 -0
  121. package/dist/modules/crypto/index.js.map +1 -0
  122. package/dist/modules/document/index.d.ts +575 -0
  123. package/dist/modules/document/index.d.ts.map +1 -0
  124. package/dist/modules/document/index.js +444 -0
  125. package/dist/modules/document/index.js.map +1 -0
  126. package/dist/modules/document-extract/index.d.ts +438 -0
  127. package/dist/modules/document-extract/index.d.ts.map +1 -0
  128. package/dist/modules/document-extract/index.js +127 -0
  129. package/dist/modules/document-extract/index.js.map +1 -0
  130. package/dist/modules/document-render/index.d.ts +336 -0
  131. package/dist/modules/document-render/index.d.ts.map +1 -0
  132. package/dist/modules/document-render/index.js +155 -0
  133. package/dist/modules/document-render/index.js.map +1 -0
  134. package/dist/modules/email/index.d.ts +311 -0
  135. package/dist/modules/email/index.d.ts.map +1 -0
  136. package/dist/modules/email/index.js +167 -0
  137. package/dist/modules/email/index.js.map +1 -0
  138. package/dist/modules/email-message/index.d.ts +95 -0
  139. package/dist/modules/email-message/index.d.ts.map +1 -0
  140. package/dist/modules/email-message/index.js +264 -0
  141. package/dist/modules/email-message/index.js.map +1 -0
  142. package/dist/modules/file-convert/index.d.ts +273 -0
  143. package/dist/modules/file-convert/index.d.ts.map +1 -0
  144. package/dist/modules/file-convert/index.js +103 -0
  145. package/dist/modules/file-convert/index.js.map +1 -0
  146. package/dist/modules/files/index.d.ts +452 -0
  147. package/dist/modules/files/index.d.ts.map +1 -0
  148. package/dist/modules/files/index.js +733 -0
  149. package/dist/modules/files/index.js.map +1 -0
  150. package/dist/modules/image/index.d.ts +342 -0
  151. package/dist/modules/image/index.d.ts.map +1 -0
  152. package/dist/modules/image/index.js +281 -0
  153. package/dist/modules/image/index.js.map +1 -0
  154. package/dist/modules/messaging/index.d.ts +608 -0
  155. package/dist/modules/messaging/index.d.ts.map +1 -0
  156. package/dist/modules/messaging/index.js +1067 -0
  157. package/dist/modules/messaging/index.js.map +1 -0
  158. package/dist/modules/pdf/index.d.ts +287 -0
  159. package/dist/modules/pdf/index.d.ts.map +1 -0
  160. package/dist/modules/pdf/index.js +259 -0
  161. package/dist/modules/pdf/index.js.map +1 -0
  162. package/dist/modules/presentation/index.d.ts +247 -0
  163. package/dist/modules/presentation/index.d.ts.map +1 -0
  164. package/dist/modules/presentation/index.js +12657 -0
  165. package/dist/modules/presentation/index.js.map +1 -0
  166. package/dist/modules/queue/index.d.ts +129 -0
  167. package/dist/modules/queue/index.d.ts.map +1 -0
  168. package/dist/modules/queue/index.js +131 -0
  169. package/dist/modules/queue/index.js.map +1 -0
  170. package/dist/modules/rag/index.d.ts +250 -0
  171. package/dist/modules/rag/index.d.ts.map +1 -0
  172. package/dist/modules/rag/index.js +366 -0
  173. package/dist/modules/rag/index.js.map +1 -0
  174. package/dist/modules/scheduler/index.d.ts +216 -0
  175. package/dist/modules/scheduler/index.d.ts.map +1 -0
  176. package/dist/modules/scheduler/index.js +153 -0
  177. package/dist/modules/scheduler/index.js.map +1 -0
  178. package/dist/modules/skills/index.d.ts +205 -0
  179. package/dist/modules/skills/index.d.ts.map +1 -0
  180. package/dist/modules/skills/index.js +203 -0
  181. package/dist/modules/skills/index.js.map +1 -0
  182. package/dist/modules/tasks/index.d.ts +287 -0
  183. package/dist/modules/tasks/index.d.ts.map +1 -0
  184. package/dist/modules/tasks/index.js +207 -0
  185. package/dist/modules/tasks/index.js.map +1 -0
  186. package/dist/modules/vector-store/index.d.ts +3 -0
  187. package/dist/modules/vector-store/index.js +3 -0
  188. package/dist/modules/web-fetch/index.d.ts +99 -0
  189. package/dist/modules/web-fetch/index.d.ts.map +1 -0
  190. package/dist/modules/web-fetch/index.js +242 -0
  191. package/dist/modules/web-fetch/index.js.map +1 -0
  192. package/dist/object-artifact-store-CMTzCm_G.d.ts +7 -0
  193. package/dist/object-artifact-store-CMTzCm_G.d.ts.map +1 -0
  194. package/dist/object-artifact-store-wZ2j9cto.js +28 -0
  195. package/dist/object-artifact-store-wZ2j9cto.js.map +1 -0
  196. package/dist/pinecone-umY4t6OF.js +190 -0
  197. package/dist/pinecone-umY4t6OF.js.map +1 -0
  198. package/dist/provider-CgDAlg6K.js +34 -0
  199. package/dist/provider-CgDAlg6K.js.map +1 -0
  200. package/dist/qdrant-DMp4NhKR.js +253 -0
  201. package/dist/qdrant-DMp4NhKR.js.map +1 -0
  202. package/dist/resend-BAC38_dA.js +155 -0
  203. package/dist/resend-BAC38_dA.js.map +1 -0
  204. package/dist/s3-CsOaPWMP.js +955 -0
  205. package/dist/s3-CsOaPWMP.js.map +1 -0
  206. package/dist/schemas-ChOAhdo9.js +192 -0
  207. package/dist/schemas-ChOAhdo9.js.map +1 -0
  208. package/dist/slack-Di5BBNpt.js +1455 -0
  209. package/dist/slack-Di5BBNpt.js.map +1 -0
  210. package/dist/sqs-DCwS1i2N.js +225 -0
  211. package/dist/sqs-DCwS1i2N.js.map +1 -0
  212. package/dist/supabase-vector-Dpp9mmJR.js +218 -0
  213. package/dist/supabase-vector-Dpp9mmJR.js.map +1 -0
  214. package/dist/tanstack/index.d.ts +15 -0
  215. package/dist/tanstack/index.d.ts.map +1 -0
  216. package/dist/tanstack/index.js +28 -0
  217. package/dist/tanstack/index.js.map +1 -0
  218. package/dist/teams-DYAHNb39.js +835 -0
  219. package/dist/teams-DYAHNb39.js.map +1 -0
  220. package/dist/telegram-DDXWzkfL.js +734 -0
  221. package/dist/telegram-DDXWzkfL.js.map +1 -0
  222. package/dist/textract-CPLiB22H.js +554 -0
  223. package/dist/textract-CPLiB22H.js.map +1 -0
  224. package/dist/transport-B4vn-XiQ.js +157 -0
  225. package/dist/transport-B4vn-XiQ.js.map +1 -0
  226. package/dist/transport-i96ACAI_.d.ts +46 -0
  227. package/dist/transport-i96ACAI_.d.ts.map +1 -0
  228. package/dist/types-Ccb0DXY9.d.ts +150 -0
  229. package/dist/types-Ccb0DXY9.d.ts.map +1 -0
  230. package/dist/unique-EwBH1JPB.js +19 -0
  231. package/dist/unique-EwBH1JPB.js.map +1 -0
  232. package/dist/vector-store-C3nEO80e.js +193 -0
  233. package/dist/vector-store-C3nEO80e.js.map +1 -0
  234. package/dist/vendors/amazon-sp-api/index.d.ts +526 -0
  235. package/dist/vendors/amazon-sp-api/index.d.ts.map +1 -0
  236. package/dist/vendors/amazon-sp-api/index.js +975 -0
  237. package/dist/vendors/amazon-sp-api/index.js.map +1 -0
  238. package/dist/vendors/bedrock-agentcore-browser/index.d.ts +2 -0
  239. package/dist/vendors/bedrock-agentcore-browser/index.js +2 -0
  240. package/dist/vendors/bedrock-agentcore-code-interpreter/index.d.ts +228 -0
  241. package/dist/vendors/bedrock-agentcore-code-interpreter/index.d.ts.map +1 -0
  242. package/dist/vendors/bedrock-agentcore-code-interpreter/index.js +2 -0
  243. package/dist/vendors/cloudflare-browser/index.d.ts +2 -0
  244. package/dist/vendors/cloudflare-browser/index.js +2 -0
  245. package/dist/vendors/cloudflare-email/index.d.ts +260 -0
  246. package/dist/vendors/cloudflare-email/index.d.ts.map +1 -0
  247. package/dist/vendors/cloudflare-email/index.js +3 -0
  248. package/dist/vendors/cloudflare-sandbox/index.d.ts +565 -0
  249. package/dist/vendors/cloudflare-sandbox/index.d.ts.map +1 -0
  250. package/dist/vendors/cloudflare-sandbox/index.js +2 -0
  251. package/dist/vendors/eventbridge-scheduler/index.d.ts +2 -0
  252. package/dist/vendors/eventbridge-scheduler/index.js +2 -0
  253. package/dist/vendors/gotenberg/index.d.ts +306 -0
  254. package/dist/vendors/gotenberg/index.d.ts.map +1 -0
  255. package/dist/vendors/gotenberg/index.js +2 -0
  256. package/dist/vendors/imessage/index.d.ts +420 -0
  257. package/dist/vendors/imessage/index.d.ts.map +1 -0
  258. package/dist/vendors/imessage/index.js +4 -0
  259. package/dist/vendors/katana/index.d.ts +1570 -0
  260. package/dist/vendors/katana/index.d.ts.map +1 -0
  261. package/dist/vendors/katana/index.js +1639 -0
  262. package/dist/vendors/katana/index.js.map +1 -0
  263. package/dist/vendors/mastra-vector/index.d.ts +120 -0
  264. package/dist/vendors/mastra-vector/index.d.ts.map +1 -0
  265. package/dist/vendors/mastra-vector/index.js +3 -0
  266. package/dist/vendors/pinecone/index.d.ts +75 -0
  267. package/dist/vendors/pinecone/index.d.ts.map +1 -0
  268. package/dist/vendors/pinecone/index.js +3 -0
  269. package/dist/vendors/qdrant/index.d.ts +75 -0
  270. package/dist/vendors/qdrant/index.d.ts.map +1 -0
  271. package/dist/vendors/qdrant/index.js +3 -0
  272. package/dist/vendors/resend/index.d.ts +3 -0
  273. package/dist/vendors/resend/index.js +3 -0
  274. package/dist/vendors/s3/index.d.ts +2 -0
  275. package/dist/vendors/s3/index.js +2 -0
  276. package/dist/vendors/slack/index.d.ts +576 -0
  277. package/dist/vendors/slack/index.d.ts.map +1 -0
  278. package/dist/vendors/slack/index.js +3 -0
  279. package/dist/vendors/sqs/index.d.ts +2 -0
  280. package/dist/vendors/sqs/index.js +2 -0
  281. package/dist/vendors/supabase-vector/index.d.ts +89 -0
  282. package/dist/vendors/supabase-vector/index.d.ts.map +1 -0
  283. package/dist/vendors/supabase-vector/index.js +3 -0
  284. package/dist/vendors/teams/index.d.ts +303 -0
  285. package/dist/vendors/teams/index.d.ts.map +1 -0
  286. package/dist/vendors/teams/index.js +3 -0
  287. package/dist/vendors/telegram/index.d.ts +319 -0
  288. package/dist/vendors/telegram/index.d.ts.map +1 -0
  289. package/dist/vendors/telegram/index.js +3 -0
  290. package/dist/vendors/textract/index.d.ts +2 -0
  291. package/dist/vendors/textract/index.js +2 -0
  292. package/dist/vendors/woocommerce/index.d.ts +1700 -0
  293. package/dist/vendors/woocommerce/index.d.ts.map +1 -0
  294. package/dist/vendors/woocommerce/index.js +1427 -0
  295. package/dist/vendors/woocommerce/index.js.map +1 -0
  296. package/dist/with-auth-CpKqTrGK.js +240 -0
  297. package/dist/with-auth-CpKqTrGK.js.map +1 -0
  298. package/logos/LUCIDE-ATTRIBUTION.txt +4 -0
  299. package/logos/README.md +89 -0
  300. package/logos/amazon.svg +6 -0
  301. package/logos/artifacts.svg +9 -0
  302. package/logos/browser.svg +9 -0
  303. package/logos/calendar.svg +15 -0
  304. package/logos/cloudflare-browser.svg +5 -0
  305. package/logos/cloudflare-email.svg +5 -0
  306. package/logos/cloudflare.svg +4 -0
  307. package/logos/code-sandbox.svg +8 -0
  308. package/logos/content-type.svg +10 -0
  309. package/logos/crypto.svg +7 -0
  310. package/logos/document-extract.svg +12 -0
  311. package/logos/document-render.svg +8 -0
  312. package/logos/document.svg +10 -0
  313. package/logos/email-message.svg +8 -0
  314. package/logos/email.svg +7 -0
  315. package/logos/file-convert.svg +9 -0
  316. package/logos/files.svg +6 -0
  317. package/logos/gotenberg.svg +340 -0
  318. package/logos/image.svg +8 -0
  319. package/logos/imessage.svg +7 -0
  320. package/logos/katana.svg +13 -0
  321. package/logos/mastra.svg +7 -0
  322. package/logos/messaging.svg +7 -0
  323. package/logos/pack-logos.json +48 -0
  324. package/logos/pdf.svg +10 -0
  325. package/logos/pinecone.svg +25 -0
  326. package/logos/presentation.svg +8 -0
  327. package/logos/qdrant.svg +4 -0
  328. package/logos/queue.svg +11 -0
  329. package/logos/rag.svg +18 -0
  330. package/logos/resend.svg +5 -0
  331. package/logos/scheduler.svg +7 -0
  332. package/logos/skills.svg +10 -0
  333. package/logos/slack.svg +14 -0
  334. package/logos/supabase.svg +4 -0
  335. package/logos/tasks.svg +10 -0
  336. package/logos/teams.svg +6 -0
  337. package/logos/telegram.svg +10 -0
  338. package/logos/textract.svg +5 -0
  339. package/logos/vector-store.svg +8 -0
  340. package/logos/web-fetch.svg +8 -0
  341. package/logos/woocommerce.svg +4 -0
  342. package/package.json +373 -0
@@ -0,0 +1,287 @@
1
+ import { a as ModuleDefinition, o as ToolContext, s as ToolDefinition } from "../../types-Ccb0DXY9.js";
2
+ import "../../index-CZX5OeOF.js";
3
+ import { z } from "zod";
4
+ //#region src/modules/tasks/contracts.d.ts
5
+ declare const MAX_TASK_REF = 512;
6
+ declare const MAX_TASK_INSTRUCTIONS_CHARS = 100000;
7
+ declare const MAX_TASK_LIST_RESULTS = 100;
8
+ declare const taskDefinitionSchema: z.ZodObject<{
9
+ task_ref: z.ZodString;
10
+ title: z.ZodString;
11
+ instructions: z.ZodString;
12
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
+ created_at: z.ZodOptional<z.ZodString>;
15
+ updated_at: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ declare const taskSummarySchema: z.ZodObject<{
18
+ task_ref: z.ZodString;
19
+ title: z.ZodString;
20
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
+ created_at: z.ZodOptional<z.ZodString>;
22
+ updated_at: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>;
24
+ declare const tasksCreateInputSchema: z.ZodObject<{
25
+ title: z.ZodString;
26
+ instructions: z.ZodString;
27
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
28
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
29
+ }, z.core.$strip>;
30
+ declare const tasksCreateOutputSchema: z.ZodObject<{
31
+ task: z.ZodObject<{
32
+ task_ref: z.ZodString;
33
+ title: z.ZodString;
34
+ instructions: z.ZodString;
35
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
36
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
+ created_at: z.ZodOptional<z.ZodString>;
38
+ updated_at: z.ZodOptional<z.ZodString>;
39
+ }, z.core.$strip>;
40
+ }, z.core.$strip>;
41
+ declare const tasksGetInputSchema: z.ZodObject<{
42
+ task_ref: z.ZodString;
43
+ }, z.core.$strip>;
44
+ declare const tasksGetOutputSchema: z.ZodObject<{
45
+ task: z.ZodObject<{
46
+ task_ref: z.ZodString;
47
+ title: z.ZodString;
48
+ instructions: z.ZodString;
49
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
50
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
+ created_at: z.ZodOptional<z.ZodString>;
52
+ updated_at: z.ZodOptional<z.ZodString>;
53
+ }, z.core.$strip>;
54
+ }, z.core.$strip>;
55
+ declare const tasksUpdateInputSchema: z.ZodObject<{
56
+ task_ref: z.ZodString;
57
+ title: z.ZodOptional<z.ZodString>;
58
+ instructions: z.ZodOptional<z.ZodString>;
59
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
60
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
+ }, z.core.$strip>;
62
+ declare const tasksUpdateOutputSchema: z.ZodObject<{
63
+ task: z.ZodObject<{
64
+ task_ref: z.ZodString;
65
+ title: z.ZodString;
66
+ instructions: z.ZodString;
67
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
68
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
69
+ created_at: z.ZodOptional<z.ZodString>;
70
+ updated_at: z.ZodOptional<z.ZodString>;
71
+ }, z.core.$strip>;
72
+ }, z.core.$strip>;
73
+ declare const tasksListInputSchema: z.ZodObject<{
74
+ query: z.ZodOptional<z.ZodString>;
75
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
76
+ limit: z.ZodOptional<z.ZodInt>;
77
+ cursor: z.ZodOptional<z.ZodString>;
78
+ }, z.core.$strip>;
79
+ declare const tasksListOutputSchema: z.ZodObject<{
80
+ tasks: z.ZodArray<z.ZodObject<{
81
+ task_ref: z.ZodString;
82
+ title: z.ZodString;
83
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
84
+ created_at: z.ZodOptional<z.ZodString>;
85
+ updated_at: z.ZodOptional<z.ZodString>;
86
+ }, z.core.$strip>>;
87
+ next_cursor: z.ZodOptional<z.ZodString>;
88
+ }, z.core.$strip>;
89
+ declare const tasksDeleteOutputSchema: z.ZodObject<{
90
+ task_ref: z.ZodString;
91
+ deleted: z.ZodLiteral<true>;
92
+ }, z.core.$strip>;
93
+ type TaskDefinition = z.infer<typeof taskDefinitionSchema>;
94
+ type TaskSummary = z.infer<typeof taskSummarySchema>;
95
+ type TasksCreateInput = z.infer<typeof tasksCreateInputSchema>;
96
+ type TasksCreateOutput = z.infer<typeof tasksCreateOutputSchema>;
97
+ type TasksGetInput = z.infer<typeof tasksGetInputSchema>;
98
+ type TasksGetOutput = z.infer<typeof tasksGetOutputSchema>;
99
+ type TasksUpdateInput = z.infer<typeof tasksUpdateInputSchema>;
100
+ type TasksUpdateOutput = z.infer<typeof tasksUpdateOutputSchema>;
101
+ type TasksListInput = z.infer<typeof tasksListInputSchema>;
102
+ type TasksListOutput = z.infer<typeof tasksListOutputSchema>;
103
+ type TasksDeleteOutput = z.infer<typeof tasksDeleteOutputSchema>;
104
+ type TasksOps = {
105
+ create(input: TasksCreateInput): Promise<TasksCreateOutput>;
106
+ get(input: TasksGetInput): Promise<TasksGetOutput>;
107
+ list(input?: TasksListInput): Promise<TasksListOutput>;
108
+ update(input: TasksUpdateInput): Promise<TasksUpdateOutput>;
109
+ delete(input: TasksGetInput): Promise<TasksDeleteOutput>;
110
+ };
111
+ declare const tasksBackendSchema: z.ZodObject<{
112
+ create: z.ZodCustom<(input: TasksCreateInput) => Promise<TasksCreateOutput>, (input: TasksCreateInput) => Promise<TasksCreateOutput>>;
113
+ get: z.ZodCustom<(input: TasksGetInput) => Promise<TasksGetOutput>, (input: TasksGetInput) => Promise<TasksGetOutput>>;
114
+ list: z.ZodCustom<(input?: TasksListInput) => Promise<TasksListOutput>, (input?: TasksListInput) => Promise<TasksListOutput>>;
115
+ update: z.ZodCustom<(input: TasksUpdateInput) => Promise<TasksUpdateOutput>, (input: TasksUpdateInput) => Promise<TasksUpdateOutput>>;
116
+ delete: z.ZodCustom<(input: TasksGetInput) => Promise<TasksDeleteOutput>, (input: TasksGetInput) => Promise<TasksDeleteOutput>>;
117
+ }, z.core.$strip>;
118
+ declare const hostTasksAuthSchema: z.ZodObject<{
119
+ provider: z.ZodLiteral<"host">;
120
+ backend: z.ZodObject<{
121
+ create: z.ZodCustom<(input: TasksCreateInput) => Promise<TasksCreateOutput>, (input: TasksCreateInput) => Promise<TasksCreateOutput>>;
122
+ get: z.ZodCustom<(input: TasksGetInput) => Promise<TasksGetOutput>, (input: TasksGetInput) => Promise<TasksGetOutput>>;
123
+ list: z.ZodCustom<(input?: TasksListInput) => Promise<TasksListOutput>, (input?: TasksListInput) => Promise<TasksListOutput>>;
124
+ update: z.ZodCustom<(input: TasksUpdateInput) => Promise<TasksUpdateOutput>, (input: TasksUpdateInput) => Promise<TasksUpdateOutput>>;
125
+ delete: z.ZodCustom<(input: TasksGetInput) => Promise<TasksDeleteOutput>, (input: TasksGetInput) => Promise<TasksDeleteOutput>>;
126
+ }, z.core.$strip>;
127
+ }, z.core.$strip>;
128
+ declare const tasksAuthSchema: z.ZodObject<{
129
+ provider: z.ZodLiteral<"host">;
130
+ backend: z.ZodObject<{
131
+ create: z.ZodCustom<(input: TasksCreateInput) => Promise<TasksCreateOutput>, (input: TasksCreateInput) => Promise<TasksCreateOutput>>;
132
+ get: z.ZodCustom<(input: TasksGetInput) => Promise<TasksGetOutput>, (input: TasksGetInput) => Promise<TasksGetOutput>>;
133
+ list: z.ZodCustom<(input?: TasksListInput) => Promise<TasksListOutput>, (input?: TasksListInput) => Promise<TasksListOutput>>;
134
+ update: z.ZodCustom<(input: TasksUpdateInput) => Promise<TasksUpdateOutput>, (input: TasksUpdateInput) => Promise<TasksUpdateOutput>>;
135
+ delete: z.ZodCustom<(input: TasksGetInput) => Promise<TasksDeleteOutput>, (input: TasksGetInput) => Promise<TasksDeleteOutput>>;
136
+ }, z.core.$strip>;
137
+ }, z.core.$strip>;
138
+ type HostTasksAuth = z.infer<typeof hostTasksAuthSchema>;
139
+ type TasksAuth = z.infer<typeof tasksAuthSchema>;
140
+ //#endregion
141
+ //#region src/modules/tasks/client.d.ts
142
+ declare class TasksClient implements TasksOps {
143
+ #private;
144
+ constructor(ops: TasksOps);
145
+ static fromContext(ctx: ToolContext): TasksClient;
146
+ static fromAuth(auth: TasksAuth): TasksClient;
147
+ create(input: TasksCreateInput): Promise<{
148
+ task: {
149
+ task_ref: string;
150
+ title: string;
151
+ instructions: string;
152
+ payload?: Record<string, unknown> | undefined;
153
+ tags?: string[] | undefined;
154
+ created_at?: string | undefined;
155
+ updated_at?: string | undefined;
156
+ };
157
+ }>;
158
+ get(input: TasksGetInput): Promise<{
159
+ task: {
160
+ task_ref: string;
161
+ title: string;
162
+ instructions: string;
163
+ payload?: Record<string, unknown> | undefined;
164
+ tags?: string[] | undefined;
165
+ created_at?: string | undefined;
166
+ updated_at?: string | undefined;
167
+ };
168
+ }>;
169
+ list(input?: TasksListInput): Promise<{
170
+ tasks: {
171
+ task_ref: string;
172
+ title: string;
173
+ tags?: string[] | undefined;
174
+ created_at?: string | undefined;
175
+ updated_at?: string | undefined;
176
+ }[];
177
+ next_cursor?: string | undefined;
178
+ }>;
179
+ update(input: TasksUpdateInput): Promise<{
180
+ task: {
181
+ task_ref: string;
182
+ title: string;
183
+ instructions: string;
184
+ payload?: Record<string, unknown> | undefined;
185
+ tags?: string[] | undefined;
186
+ created_at?: string | undefined;
187
+ updated_at?: string | undefined;
188
+ };
189
+ }>;
190
+ delete(input: TasksGetInput): Promise<{
191
+ task_ref: string;
192
+ deleted: true;
193
+ }>;
194
+ }
195
+ //#endregion
196
+ //#region src/modules/tasks/module.d.ts
197
+ declare const tasksCreateTool: ToolDefinition<{
198
+ title: string;
199
+ instructions: string;
200
+ payload?: Record<string, unknown> | undefined;
201
+ tags?: string[] | undefined;
202
+ }, {
203
+ task: {
204
+ task_ref: string;
205
+ title: string;
206
+ instructions: string;
207
+ payload?: Record<string, unknown> | undefined;
208
+ tags?: string[] | undefined;
209
+ created_at?: string | undefined;
210
+ updated_at?: string | undefined;
211
+ };
212
+ }>;
213
+ declare const tasksGetTool: ToolDefinition<{
214
+ task_ref: string;
215
+ }, {
216
+ task: {
217
+ task_ref: string;
218
+ title: string;
219
+ instructions: string;
220
+ payload?: Record<string, unknown> | undefined;
221
+ tags?: string[] | undefined;
222
+ created_at?: string | undefined;
223
+ updated_at?: string | undefined;
224
+ };
225
+ }>;
226
+ declare const tasksListTool: ToolDefinition<{
227
+ query?: string | undefined;
228
+ tags?: string[] | undefined;
229
+ limit?: number | undefined;
230
+ cursor?: string | undefined;
231
+ }, {
232
+ tasks: {
233
+ task_ref: string;
234
+ title: string;
235
+ tags?: string[] | undefined;
236
+ created_at?: string | undefined;
237
+ updated_at?: string | undefined;
238
+ }[];
239
+ next_cursor?: string | undefined;
240
+ }>;
241
+ declare const tasksUpdateTool: ToolDefinition<{
242
+ task_ref: string;
243
+ title?: string | undefined;
244
+ instructions?: string | undefined;
245
+ payload?: Record<string, unknown> | undefined;
246
+ tags?: string[] | undefined;
247
+ }, {
248
+ task: {
249
+ task_ref: string;
250
+ title: string;
251
+ instructions: string;
252
+ payload?: Record<string, unknown> | undefined;
253
+ tags?: string[] | undefined;
254
+ created_at?: string | undefined;
255
+ updated_at?: string | undefined;
256
+ };
257
+ }>;
258
+ declare const tasksDeleteTool: ToolDefinition<{
259
+ task_ref: string;
260
+ }, {
261
+ task_ref: string;
262
+ deleted: true;
263
+ }>;
264
+ declare const tasksModule: ModuleDefinition<{
265
+ provider: "host";
266
+ backend: {
267
+ create: (input: TasksCreateInput) => Promise<TasksCreateOutput>;
268
+ get: (input: TasksGetInput) => Promise<TasksGetOutput>;
269
+ list: (input?: TasksListInput) => Promise<TasksListOutput>;
270
+ update: (input: TasksUpdateInput) => Promise<TasksUpdateOutput>;
271
+ delete: (input: TasksGetInput) => Promise<TasksDeleteOutput>;
272
+ };
273
+ }>;
274
+ //#endregion
275
+ //#region src/modules/tasks/providers/host.d.ts
276
+ declare class HostTasksProvider implements TasksOps {
277
+ #private;
278
+ constructor(auth: HostTasksAuth);
279
+ create(input: TasksCreateInput): Promise<TasksGetOutput>;
280
+ get(input: TasksGetInput): Promise<TasksGetOutput>;
281
+ list(input?: TasksListInput): Promise<TasksListOutput>;
282
+ update(input: TasksUpdateInput): Promise<TasksUpdateOutput>;
283
+ delete(input: TasksGetInput): Promise<TasksDeleteOutput>;
284
+ }
285
+ //#endregion
286
+ export { type HostTasksAuth, HostTasksProvider, MAX_TASK_INSTRUCTIONS_CHARS, MAX_TASK_LIST_RESULTS, MAX_TASK_REF, type TaskDefinition, type TaskSummary, type TasksAuth, TasksClient, type TasksCreateInput, type TasksCreateOutput, type TasksDeleteOutput, type TasksGetInput, type TasksGetOutput, type TasksListInput, type TasksListOutput, type TasksOps, type TasksUpdateInput, type TasksUpdateOutput, hostTasksAuthSchema, taskDefinitionSchema, taskSummarySchema, tasksAuthSchema, tasksBackendSchema, tasksCreateInputSchema, tasksCreateOutputSchema, tasksCreateTool, tasksDeleteOutputSchema, tasksDeleteTool, tasksGetInputSchema, tasksGetOutputSchema, tasksGetTool, tasksListInputSchema, tasksListOutputSchema, tasksListTool, tasksModule, tasksUpdateInputSchema, tasksUpdateOutputSchema, tasksUpdateTool };
287
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/modules/tasks/contracts.ts","../../../src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B;;;;;;;;;;;EAI9B,IAAI,OAAO,gBAAa;;;;;;;;;;;EAIxB,KAAK,QAAO,iBAAmB;;;;;;;;;;EAI/B,OAAO,OAAO,mBAAgB;;;;;;;;;;;EAI9B,OAAO,OAAO,gBAAa;;;;;;;cCrCf;;;;;;;;;;;;;;;;cAYA,cAAA;;;;;;;cAAA;;;;;;cAYA,eAAA;;;;;;;;;;;;;;;cAWA;;;;;;;;;;;;;;;;;cAWA,iBAAA;;;;;;cAYA;;;oBAAA;;;;;;;;;cCrDA,6BAA6B;;EAGzC,YAAY,MAAM;EAIZ,OAAO,OAAO,mBAAmB,QAAQ;EAIzC,IAAI,OAAO,gBAAgB,QAAQ;EAInC,KAAK,QAAO,iBAAsB,QAAQ;EAI1C,OAAO,OAAO,mBAAmB,QAAQ;EAIzC,OAAO,OAAO,gBAAgB,QAAQ"}
@@ -0,0 +1,207 @@
1
+ import { n as defineModule, r as defineTool } from "../../define-CvpJ_pNP.js";
2
+ import { n as requireAuth } from "../../provider-CgDAlg6K.js";
3
+ import { z } from "zod";
4
+ //#region src/modules/tasks/contracts.ts
5
+ /**
6
+ * Portable task-definition contracts.
7
+ * Persistence, tenancy, execution, and authorization stay on the host backend.
8
+ */
9
+ const MAX_TASK_REF = 512;
10
+ const MAX_TASK_INSTRUCTIONS_CHARS = 1e5;
11
+ const MAX_TASK_LIST_RESULTS = 100;
12
+ const taskRef = z.string().min(1).max(512).describe("Opaque task definition reference");
13
+ const taskTags = z.array(z.string().min(1).max(64)).max(50);
14
+ const taskPayload = z.record(z.string(), z.unknown());
15
+ const taskDefinitionSchema = z.object({
16
+ task_ref: taskRef,
17
+ title: z.string().min(1).max(200).describe("Short task title"),
18
+ instructions: z.string().min(1).max(MAX_TASK_INSTRUCTIONS_CHARS).describe("Instructions the host should execute when this task is invoked"),
19
+ payload: taskPayload.optional().describe("Default JSON payload for the task"),
20
+ tags: taskTags.optional().describe("Searchable task tags"),
21
+ created_at: z.string().min(1).optional().describe("Creation timestamp when supplied by the host"),
22
+ updated_at: z.string().min(1).optional().describe("Last update timestamp when supplied by the host")
23
+ });
24
+ const taskSummarySchema = taskDefinitionSchema.pick({
25
+ task_ref: true,
26
+ title: true,
27
+ tags: true,
28
+ created_at: true,
29
+ updated_at: true
30
+ });
31
+ const tasksCreateInputSchema = taskDefinitionSchema.pick({
32
+ title: true,
33
+ instructions: true,
34
+ payload: true,
35
+ tags: true
36
+ });
37
+ const tasksCreateOutputSchema = z.object({ task: taskDefinitionSchema });
38
+ const tasksGetInputSchema = z.object({ task_ref: taskRef });
39
+ const tasksGetOutputSchema = tasksCreateOutputSchema;
40
+ const tasksUpdateInputSchema = z.object({
41
+ task_ref: taskRef,
42
+ title: z.string().min(1).max(200).optional().describe("Replacement title"),
43
+ instructions: z.string().min(1).max(MAX_TASK_INSTRUCTIONS_CHARS).optional().describe("Replacement instructions"),
44
+ payload: taskPayload.optional().describe("Replacement default payload"),
45
+ tags: taskTags.optional().describe("Replacement task tags")
46
+ }).refine((input) => input.title !== void 0 || input.instructions !== void 0 || input.payload !== void 0 || input.tags !== void 0, { message: "Provide at least one task field to update" });
47
+ const tasksUpdateOutputSchema = tasksCreateOutputSchema;
48
+ const tasksListInputSchema = z.object({
49
+ query: z.string().min(1).max(500).optional().describe("Optional host-defined text search"),
50
+ tags: z.array(z.string().min(1).max(64)).max(20).optional().describe("Optional required tags"),
51
+ limit: z.int().min(1).max(100).optional().describe("Maximum tasks to return"),
52
+ cursor: z.string().min(1).optional().describe("Pagination cursor from a prior list call")
53
+ });
54
+ const tasksListOutputSchema = z.object({
55
+ tasks: z.array(taskSummarySchema),
56
+ next_cursor: z.string().optional().describe("Pagination cursor when more tasks are available")
57
+ });
58
+ const tasksDeleteOutputSchema = z.object({
59
+ task_ref: taskRef,
60
+ deleted: z.literal(true)
61
+ });
62
+ const tasksBackendSchema = z.object({
63
+ create: z.custom((value) => typeof value === "function", "create must be a function"),
64
+ get: z.custom((value) => typeof value === "function", "get must be a function"),
65
+ list: z.custom((value) => typeof value === "function", "list must be a function"),
66
+ update: z.custom((value) => typeof value === "function", "update must be a function"),
67
+ delete: z.custom((value) => typeof value === "function", "delete must be a function")
68
+ });
69
+ const hostTasksAuthSchema = z.object({
70
+ provider: z.literal("host"),
71
+ backend: tasksBackendSchema.describe("Host task-definition backend")
72
+ });
73
+ const tasksAuthSchema = hostTasksAuthSchema;
74
+ //#endregion
75
+ //#region src/modules/tasks/providers/host.ts
76
+ var HostTasksProvider = class {
77
+ #backend;
78
+ constructor(auth) {
79
+ this.#backend = auth.backend;
80
+ }
81
+ async create(input) {
82
+ return tasksCreateOutputSchema.parse(await this.#backend.create(input));
83
+ }
84
+ async get(input) {
85
+ return tasksGetOutputSchema.parse(await this.#backend.get(input));
86
+ }
87
+ async list(input = {}) {
88
+ return tasksListOutputSchema.parse(await this.#backend.list(input));
89
+ }
90
+ async update(input) {
91
+ return tasksUpdateOutputSchema.parse(await this.#backend.update(input));
92
+ }
93
+ async delete(input) {
94
+ return tasksDeleteOutputSchema.parse(await this.#backend.delete(input));
95
+ }
96
+ };
97
+ //#endregion
98
+ //#region src/modules/tasks/client.ts
99
+ function providerFor(auth) {
100
+ switch (auth.provider) {
101
+ case "host": return new HostTasksProvider(auth);
102
+ }
103
+ }
104
+ var TasksClient = class TasksClient {
105
+ #ops;
106
+ constructor(ops) {
107
+ this.#ops = ops;
108
+ }
109
+ static fromContext(ctx) {
110
+ const auth = requireAuth(ctx, tasksAuthSchema);
111
+ return new TasksClient(providerFor(auth));
112
+ }
113
+ static fromAuth(auth) {
114
+ return new TasksClient(providerFor(auth));
115
+ }
116
+ create(input) {
117
+ return this.#ops.create(input);
118
+ }
119
+ get(input) {
120
+ return this.#ops.get(input);
121
+ }
122
+ list(input = {}) {
123
+ return this.#ops.list(input);
124
+ }
125
+ update(input) {
126
+ return this.#ops.update(input);
127
+ }
128
+ delete(input) {
129
+ return this.#ops.delete(input);
130
+ }
131
+ };
132
+ //#endregion
133
+ //#region src/modules/tasks/module.ts
134
+ const tasksCreateTool = defineTool({
135
+ id: "tasks-create",
136
+ name: "createTask",
137
+ description: "Create a reusable task definition in the bound task catalog. Returns an opaque task_ref for later lookup, scheduling, or invocation; this tool does not run the task.",
138
+ inputSchema: tasksCreateInputSchema,
139
+ outputSchema: tasksCreateOutputSchema,
140
+ sideEffect: "write",
141
+ runtime: "both",
142
+ execute: async (input, ctx) => TasksClient.fromContext(ctx).create(input)
143
+ });
144
+ const tasksGetTool = defineTool({
145
+ id: "tasks-get",
146
+ name: "getTask",
147
+ description: "Load one task definition from the bound task catalog by its opaque task_ref. This does not run the task.",
148
+ inputSchema: tasksGetInputSchema,
149
+ outputSchema: tasksGetOutputSchema,
150
+ sideEffect: "read",
151
+ runtime: "both",
152
+ execute: async (input, ctx) => TasksClient.fromContext(ctx).get(input)
153
+ });
154
+ const tasksListTool = defineTool({
155
+ id: "tasks-list",
156
+ name: "listTasks",
157
+ description: "List task definitions from the bound task catalog with optional text, tag, and pagination filters.",
158
+ inputSchema: tasksListInputSchema,
159
+ outputSchema: tasksListOutputSchema,
160
+ sideEffect: "read",
161
+ runtime: "both",
162
+ execute: async (input, ctx) => TasksClient.fromContext(ctx).list(input)
163
+ });
164
+ const tasksUpdateTool = defineTool({
165
+ id: "tasks-update",
166
+ name: "updateTask",
167
+ description: "Update selected fields of an existing task definition identified by task_ref.",
168
+ inputSchema: tasksUpdateInputSchema,
169
+ outputSchema: tasksUpdateOutputSchema,
170
+ sideEffect: "write",
171
+ runtime: "both",
172
+ execute: async (input, ctx) => TasksClient.fromContext(ctx).update(input)
173
+ });
174
+ const tasksDeleteTool = defineTool({
175
+ id: "tasks-delete",
176
+ name: "deleteTask",
177
+ description: "Delete one task definition from the bound task catalog by task_ref. This does not stop an already-running task.",
178
+ inputSchema: tasksGetInputSchema,
179
+ outputSchema: tasksDeleteOutputSchema,
180
+ sideEffect: "delete",
181
+ runtime: "both",
182
+ execute: async (input, ctx) => TasksClient.fromContext(ctx).delete(input)
183
+ });
184
+ const tasksModule = defineModule({
185
+ id: "tasks",
186
+ title: "Tasks",
187
+ description: "Create, inspect, list, update, and delete reusable task definitions. These tools define tasks; they do not run them.",
188
+ runtime: "both",
189
+ auth: {
190
+ type: "custom",
191
+ schema: tasksAuthSchema
192
+ },
193
+ categories: ["agent", "tasks"],
194
+ classification: "standard",
195
+ tags: ["task-definition"],
196
+ tools: [
197
+ tasksCreateTool,
198
+ tasksGetTool,
199
+ tasksListTool,
200
+ tasksUpdateTool,
201
+ tasksDeleteTool
202
+ ]
203
+ });
204
+ //#endregion
205
+ export { HostTasksProvider, MAX_TASK_INSTRUCTIONS_CHARS, MAX_TASK_LIST_RESULTS, MAX_TASK_REF, TasksClient, hostTasksAuthSchema, taskDefinitionSchema, taskSummarySchema, tasksAuthSchema, tasksBackendSchema, tasksCreateInputSchema, tasksCreateOutputSchema, tasksCreateTool, tasksDeleteOutputSchema, tasksDeleteTool, tasksGetInputSchema, tasksGetOutputSchema, tasksGetTool, tasksListInputSchema, tasksListOutputSchema, tasksListTool, tasksModule, tasksUpdateInputSchema, tasksUpdateOutputSchema, tasksUpdateTool };
206
+
207
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["#backend","#ops"],"sources":["../../../src/modules/tasks/contracts.ts","../../../src/modules/tasks/providers/host.ts","../../../src/modules/tasks/client.ts","../../../src/modules/tasks/module.ts"],"sourcesContent":["/**\n * Portable task-definition contracts.\n * Persistence, tenancy, execution, and authorization stay on the host backend.\n */\n\nimport { z } from 'zod'\n\nexport const MAX_TASK_REF = 512\nexport const MAX_TASK_INSTRUCTIONS_CHARS = 100_000\nexport const MAX_TASK_LIST_RESULTS = 100\n\nconst taskRef = z.string().min(1).max(MAX_TASK_REF).describe('Opaque task definition reference')\nconst taskTags = z.array(z.string().min(1).max(64)).max(50)\nconst taskPayload = z.record(z.string(), z.unknown())\n\nexport const taskDefinitionSchema = z.object({\n\ttask_ref: taskRef,\n\ttitle: z.string().min(1).max(200).describe('Short task title'),\n\tinstructions: z\n\t\t.string()\n\t\t.min(1)\n\t\t.max(MAX_TASK_INSTRUCTIONS_CHARS)\n\t\t.describe('Instructions the host should execute when this task is invoked'),\n\tpayload: taskPayload.optional().describe('Default JSON payload for the task'),\n\ttags: taskTags.optional().describe('Searchable task tags'),\n\tcreated_at: z.string().min(1).optional().describe('Creation timestamp when supplied by the host'),\n\tupdated_at: z.string().min(1).optional().describe('Last update timestamp when supplied by the host')\n})\n\nexport const taskSummarySchema = taskDefinitionSchema.pick({\n\ttask_ref: true,\n\ttitle: true,\n\ttags: true,\n\tcreated_at: true,\n\tupdated_at: true\n})\n\nexport const tasksCreateInputSchema = taskDefinitionSchema.pick({\n\ttitle: true,\n\tinstructions: true,\n\tpayload: true,\n\ttags: true\n})\n\nexport const tasksCreateOutputSchema = z.object({\n\ttask: taskDefinitionSchema\n})\n\nexport const tasksGetInputSchema = z.object({\n\ttask_ref: taskRef\n})\n\nexport const tasksGetOutputSchema = tasksCreateOutputSchema\n\nexport const tasksUpdateInputSchema = z\n\t.object({\n\t\ttask_ref: taskRef,\n\t\ttitle: z.string().min(1).max(200).optional().describe('Replacement title'),\n\t\tinstructions: z.string().min(1).max(MAX_TASK_INSTRUCTIONS_CHARS).optional().describe('Replacement instructions'),\n\t\tpayload: taskPayload.optional().describe('Replacement default payload'),\n\t\ttags: taskTags.optional().describe('Replacement task tags')\n\t})\n\t.refine(\n\t\t(input) =>\n\t\t\tinput.title !== undefined ||\n\t\t\tinput.instructions !== undefined ||\n\t\t\tinput.payload !== undefined ||\n\t\t\tinput.tags !== undefined,\n\t\t{ message: 'Provide at least one task field to update' }\n\t)\n\nexport const tasksUpdateOutputSchema = tasksCreateOutputSchema\n\nexport const tasksListInputSchema = z.object({\n\tquery: z.string().min(1).max(500).optional().describe('Optional host-defined text search'),\n\ttags: z.array(z.string().min(1).max(64)).max(20).optional().describe('Optional required tags'),\n\tlimit: z.int().min(1).max(MAX_TASK_LIST_RESULTS).optional().describe('Maximum tasks to return'),\n\tcursor: z.string().min(1).optional().describe('Pagination cursor from a prior list call')\n})\n\nexport const tasksListOutputSchema = z.object({\n\ttasks: z.array(taskSummarySchema),\n\tnext_cursor: z.string().optional().describe('Pagination cursor when more tasks are available')\n})\n\nexport const tasksDeleteOutputSchema = z.object({\n\ttask_ref: taskRef,\n\tdeleted: z.literal(true)\n})\n\nexport type TaskDefinition = z.infer<typeof taskDefinitionSchema>\nexport type TaskSummary = z.infer<typeof taskSummarySchema>\nexport type TasksCreateInput = z.infer<typeof tasksCreateInputSchema>\nexport type TasksCreateOutput = z.infer<typeof tasksCreateOutputSchema>\nexport type TasksGetInput = z.infer<typeof tasksGetInputSchema>\nexport type TasksGetOutput = z.infer<typeof tasksGetOutputSchema>\nexport type TasksUpdateInput = z.infer<typeof tasksUpdateInputSchema>\nexport type TasksUpdateOutput = z.infer<typeof tasksUpdateOutputSchema>\nexport type TasksListInput = z.infer<typeof tasksListInputSchema>\nexport type TasksListOutput = z.infer<typeof tasksListOutputSchema>\nexport type TasksDeleteOutput = z.infer<typeof tasksDeleteOutputSchema>\n\nexport type TasksOps = {\n\tcreate(input: TasksCreateInput): Promise<TasksCreateOutput>\n\tget(input: TasksGetInput): Promise<TasksGetOutput>\n\tlist(input?: TasksListInput): Promise<TasksListOutput>\n\tupdate(input: TasksUpdateInput): Promise<TasksUpdateOutput>\n\tdelete(input: TasksGetInput): Promise<TasksDeleteOutput>\n}\n\nexport const tasksBackendSchema = z.object({\n\tcreate: z.custom<TasksOps['create']>((value) => typeof value === 'function', 'create must be a function'),\n\tget: z.custom<TasksOps['get']>((value) => typeof value === 'function', 'get must be a function'),\n\tlist: z.custom<TasksOps['list']>((value) => typeof value === 'function', 'list must be a function'),\n\tupdate: z.custom<TasksOps['update']>((value) => typeof value === 'function', 'update must be a function'),\n\tdelete: z.custom<TasksOps['delete']>((value) => typeof value === 'function', 'delete must be a function')\n})\n\nexport const hostTasksAuthSchema = z.object({\n\tprovider: z.literal('host'),\n\tbackend: tasksBackendSchema.describe('Host task-definition backend')\n})\n\nexport const tasksAuthSchema = hostTasksAuthSchema\n\nexport type HostTasksAuth = z.infer<typeof hostTasksAuthSchema>\nexport type TasksAuth = z.infer<typeof tasksAuthSchema>\n","import type {\n\tHostTasksAuth,\n\tTasksCreateInput,\n\tTasksDeleteOutput,\n\tTasksGetInput,\n\tTasksGetOutput,\n\tTasksListInput,\n\tTasksListOutput,\n\tTasksOps,\n\tTasksUpdateInput,\n\tTasksUpdateOutput\n} from '../contracts'\nimport {\n\ttasksCreateOutputSchema,\n\ttasksDeleteOutputSchema,\n\ttasksGetOutputSchema,\n\ttasksListOutputSchema,\n\ttasksUpdateOutputSchema\n} from '../contracts'\n\nexport class HostTasksProvider implements TasksOps {\n\treadonly #backend: TasksOps\n\n\tconstructor(auth: HostTasksAuth) {\n\t\tthis.#backend = auth.backend\n\t}\n\n\tasync create(input: TasksCreateInput): Promise<TasksGetOutput> {\n\t\treturn tasksCreateOutputSchema.parse(await this.#backend.create(input))\n\t}\n\n\tasync get(input: TasksGetInput): Promise<TasksGetOutput> {\n\t\treturn tasksGetOutputSchema.parse(await this.#backend.get(input))\n\t}\n\n\tasync list(input: TasksListInput = {}): Promise<TasksListOutput> {\n\t\treturn tasksListOutputSchema.parse(await this.#backend.list(input))\n\t}\n\n\tasync update(input: TasksUpdateInput): Promise<TasksUpdateOutput> {\n\t\treturn tasksUpdateOutputSchema.parse(await this.#backend.update(input))\n\t}\n\n\tasync delete(input: TasksGetInput): Promise<TasksDeleteOutput> {\n\t\treturn tasksDeleteOutputSchema.parse(await this.#backend.delete(input))\n\t}\n}\n","import { requireAuth } from '../../core/provider'\nimport type { ToolContext } from '../../core/types'\nimport type {\n\tTasksAuth,\n\tTasksCreateInput,\n\tTasksGetInput,\n\tTasksListInput,\n\tTasksOps,\n\tTasksUpdateInput\n} from './contracts'\nimport { tasksAuthSchema } from './contracts'\nimport { HostTasksProvider } from './providers/host'\n\nfunction providerFor(auth: TasksAuth): TasksOps {\n\tswitch (auth.provider) {\n\t\tcase 'host':\n\t\t\treturn new HostTasksProvider(auth)\n\t}\n}\n\nexport class TasksClient implements TasksOps {\n\treadonly #ops: TasksOps\n\n\tconstructor(ops: TasksOps) {\n\t\tthis.#ops = ops\n\t}\n\n\tstatic fromContext(ctx: ToolContext): TasksClient {\n\t\tconst auth = requireAuth(ctx, tasksAuthSchema)\n\t\treturn new TasksClient(providerFor(auth))\n\t}\n\n\tstatic fromAuth(auth: TasksAuth): TasksClient {\n\t\treturn new TasksClient(providerFor(auth))\n\t}\n\n\tcreate(input: TasksCreateInput) {\n\t\treturn this.#ops.create(input)\n\t}\n\n\tget(input: TasksGetInput) {\n\t\treturn this.#ops.get(input)\n\t}\n\n\tlist(input: TasksListInput = {}) {\n\t\treturn this.#ops.list(input)\n\t}\n\n\tupdate(input: TasksUpdateInput) {\n\t\treturn this.#ops.update(input)\n\t}\n\n\tdelete(input: TasksGetInput) {\n\t\treturn this.#ops.delete(input)\n\t}\n}\n","import { defineModule, defineTool } from '../../core/define'\nimport { TasksClient } from './client'\nimport {\n\ttasksAuthSchema,\n\ttasksCreateInputSchema,\n\ttasksCreateOutputSchema,\n\ttasksDeleteOutputSchema,\n\ttasksGetInputSchema,\n\ttasksGetOutputSchema,\n\ttasksListInputSchema,\n\ttasksListOutputSchema,\n\ttasksUpdateInputSchema,\n\ttasksUpdateOutputSchema\n} from './contracts'\n\nexport const tasksCreateTool = defineTool({\n\tid: 'tasks-create',\n\tname: 'createTask',\n\tdescription:\n\t\t'Create a reusable task definition in the bound task catalog. Returns an opaque task_ref for later lookup, scheduling, or invocation; this tool does not run the task.',\n\tinputSchema: tasksCreateInputSchema,\n\toutputSchema: tasksCreateOutputSchema,\n\tsideEffect: 'write',\n\truntime: 'both',\n\texecute: async (input, ctx) => TasksClient.fromContext(ctx).create(input)\n})\n\nexport const tasksGetTool = defineTool({\n\tid: 'tasks-get',\n\tname: 'getTask',\n\tdescription:\n\t\t'Load one task definition from the bound task catalog by its opaque task_ref. This does not run the task.',\n\tinputSchema: tasksGetInputSchema,\n\toutputSchema: tasksGetOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'both',\n\texecute: async (input, ctx) => TasksClient.fromContext(ctx).get(input)\n})\n\nexport const tasksListTool = defineTool({\n\tid: 'tasks-list',\n\tname: 'listTasks',\n\tdescription: 'List task definitions from the bound task catalog with optional text, tag, and pagination filters.',\n\tinputSchema: tasksListInputSchema,\n\toutputSchema: tasksListOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'both',\n\texecute: async (input, ctx) => TasksClient.fromContext(ctx).list(input)\n})\n\nexport const tasksUpdateTool = defineTool({\n\tid: 'tasks-update',\n\tname: 'updateTask',\n\tdescription: 'Update selected fields of an existing task definition identified by task_ref.',\n\tinputSchema: tasksUpdateInputSchema,\n\toutputSchema: tasksUpdateOutputSchema,\n\tsideEffect: 'write',\n\truntime: 'both',\n\texecute: async (input, ctx) => TasksClient.fromContext(ctx).update(input)\n})\n\nexport const tasksDeleteTool = defineTool({\n\tid: 'tasks-delete',\n\tname: 'deleteTask',\n\tdescription:\n\t\t'Delete one task definition from the bound task catalog by task_ref. This does not stop an already-running task.',\n\tinputSchema: tasksGetInputSchema,\n\toutputSchema: tasksDeleteOutputSchema,\n\tsideEffect: 'delete',\n\truntime: 'both',\n\texecute: async (input, ctx) => TasksClient.fromContext(ctx).delete(input)\n})\n\nexport const tasksModule = defineModule({\n\tid: 'tasks',\n\ttitle: 'Tasks',\n\tdescription:\n\t\t'Create, inspect, list, update, and delete reusable task definitions. These tools define tasks; they do not run them.',\n\truntime: 'both',\n\tauth: { type: 'custom', schema: tasksAuthSchema },\n\tcategories: ['agent', 'tasks'],\n\tclassification: 'standard',\n\ttags: ['task-definition'],\n\ttools: [tasksCreateTool, tasksGetTool, tasksListTool, tasksUpdateTool, tasksDeleteTool]\n})\n"],"mappings":";;;;;;;;AAOA,MAAa,eAAe;AAC5B,MAAa,8BAA8B;AAC3C,MAAa,wBAAwB;AAErC,MAA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ACT,SAAS,OAAO,OAAO,QAAQ,YAAY,YAAY,GAAG,CAAC,CAAC,OAAO,KAAK;AACzE,CAAC;AAED,MAAa,kBAAkB,WAAW;CACzC,IAAI;CACJ,MAAM;CACN,aACC;CACD,aAAa;CACb,cAAc;CACd,YAAY;CACZ,SAAS;CACT,SAAS,OAAO,OAAO,QAAQ,YAAY,YAAY,GAAG,CAAC,CAAC,OAAO,KAAK;AACzE,CAAC;AAED,MAAa,cAAc,aAAa;CACvC,IAAI;CACJ,OAAO;CACP,aACC;CACD,SAAS;CACT,MAAM;EAAE,MAAM;EAAU,QAAQ;CAAgB;CAChD,YAAY,CAAC,SAAS,OAAO;CAC7B,gBAAgB;CAChB,MAAM,CAAC,iBAAiB;CACxB,OAAO;EAAC;EAAiB;EAAc;EAAe;EAAiB;CAAe;AACvF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { _ as upsertVectorsInputSchema, a as MAX_VECTOR_DIMENSIONS, b as vectorMetadataSchema, c as UpsertVectorsInput, d as VectorMetadata, f as VectorPoint, g as queryVectorsOutputSchema, h as queryVectorsInputSchema, i as MAX_VECTOR_BATCH, l as UpsertVectorsOutput, m as deleteVectorsOutputSchema, n as DeleteVectorsOutput, o as QueryVectorsInput, p as deleteVectorsInputSchema, r as MAX_TOP_K, s as QueryVectorsOutput, t as DeleteVectorsInput, u as VectorMatch, v as upsertVectorsOutputSchema, x as vectorPointSchema, y as vectorMatchSchema } from "../../index-ccZ1XOHw.js";
2
+ import { a as VectorStoreClient, c as QdrantVectorAuth, d as VectorStoreOps, f as mastraVectorSeamAuthSchema, g as vectorStoreAuthSchema, h as supabaseVectorSeamAuthSchema, i as vectorStoreUpsertTool, l as SupabaseVectorSeamAuth, m as qdrantVectorAuthSchema, n as vectorStoreModule, o as MastraVectorSeamAuth, p as pineconeVectorAuthSchema, r as vectorStoreQueryTool, s as PineconeVectorAuth, t as vectorStoreDeleteTool, u as VectorStoreAuth } from "../../index-CCivzmxO.js";
3
+ export { type DeleteVectorsInput, type DeleteVectorsOutput, MAX_TOP_K, MAX_VECTOR_BATCH, MAX_VECTOR_DIMENSIONS, type MastraVectorSeamAuth, type PineconeVectorAuth, type QdrantVectorAuth, type QueryVectorsInput, type QueryVectorsOutput, type SupabaseVectorSeamAuth, type UpsertVectorsInput, type UpsertVectorsOutput, type VectorMatch, type VectorMetadata, type VectorPoint, type VectorStoreAuth, VectorStoreClient, type VectorStoreOps, deleteVectorsInputSchema, deleteVectorsOutputSchema, mastraVectorSeamAuthSchema, pineconeVectorAuthSchema, qdrantVectorAuthSchema, queryVectorsInputSchema, queryVectorsOutputSchema, supabaseVectorSeamAuthSchema, upsertVectorsInputSchema, upsertVectorsOutputSchema, vectorMatchSchema, vectorMetadataSchema, vectorPointSchema, vectorStoreAuthSchema, vectorStoreDeleteTool, vectorStoreModule, vectorStoreQueryTool, vectorStoreUpsertTool };
@@ -0,0 +1,3 @@
1
+ import { a as deleteVectorsOutputSchema, c as upsertVectorsInputSchema, d as vectorMatchSchema, f as vectorMetadataSchema, i as deleteVectorsInputSchema, l as upsertVectorsOutputSchema, n as MAX_VECTOR_BATCH, o as queryVectorsInputSchema, p as vectorPointSchema, r as MAX_VECTOR_DIMENSIONS, s as queryVectorsOutputSchema, t as MAX_TOP_K } from "../../schemas-ChOAhdo9.js";
2
+ import { a as VectorStoreClient, c as qdrantVectorAuthSchema, i as vectorStoreUpsertTool, l as supabaseVectorSeamAuthSchema, n as vectorStoreModule, o as mastraVectorSeamAuthSchema, r as vectorStoreQueryTool, s as pineconeVectorAuthSchema, t as vectorStoreDeleteTool, u as vectorStoreAuthSchema } from "../../vector-store-C3nEO80e.js";
3
+ export { MAX_TOP_K, MAX_VECTOR_BATCH, MAX_VECTOR_DIMENSIONS, VectorStoreClient, deleteVectorsInputSchema, deleteVectorsOutputSchema, mastraVectorSeamAuthSchema, pineconeVectorAuthSchema, qdrantVectorAuthSchema, queryVectorsInputSchema, queryVectorsOutputSchema, supabaseVectorSeamAuthSchema, upsertVectorsInputSchema, upsertVectorsOutputSchema, vectorMatchSchema, vectorMetadataSchema, vectorPointSchema, vectorStoreAuthSchema, vectorStoreDeleteTool, vectorStoreModule, vectorStoreQueryTool, vectorStoreUpsertTool };
@@ -0,0 +1,99 @@
1
+ import { a as ModuleDefinition, o as ToolContext, s as ToolDefinition } from "../../types-Ccb0DXY9.js";
2
+ import "../../index-CZX5OeOF.js";
3
+ import { z } from "zod";
4
+ //#region src/modules/web-fetch/contracts.d.ts
5
+ declare const webFetchAuthSchema: z.ZodObject<{
6
+ allowed_origins: z.ZodArray<z.ZodString>;
7
+ default_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8
+ require_https: z.ZodOptional<z.ZodBoolean>;
9
+ timeout_ms: z.ZodOptional<z.ZodInt>;
10
+ }, z.core.$strip>;
11
+ type WebFetchAuth = z.infer<typeof webFetchAuthSchema>;
12
+ declare const webFetchGetInputSchema: z.ZodObject<{
13
+ url: z.ZodURL;
14
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
15
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
16
+ timeout_ms: z.ZodOptional<z.ZodInt>;
17
+ method: z.ZodOptional<z.ZodEnum<{
18
+ GET: "GET";
19
+ HEAD: "HEAD";
20
+ }>>;
21
+ }, z.core.$strip>;
22
+ declare const webFetchRequestInputSchema: z.ZodObject<{
23
+ url: z.ZodURL;
24
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
25
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
26
+ timeout_ms: z.ZodOptional<z.ZodInt>;
27
+ method: z.ZodOptional<z.ZodEnum<{
28
+ DELETE: "DELETE";
29
+ PATCH: "PATCH";
30
+ POST: "POST";
31
+ PUT: "PUT";
32
+ }>>;
33
+ body: z.ZodOptional<z.ZodUnknown>;
34
+ }, z.core.$strip>;
35
+ declare const webFetchRequestOutputSchema: z.ZodObject<{
36
+ url: z.ZodString;
37
+ status: z.ZodInt;
38
+ ok: z.ZodBoolean;
39
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
40
+ content_type: z.ZodOptional<z.ZodString>;
41
+ body: z.ZodUnknown;
42
+ }, z.core.$strip>;
43
+ type WebFetchGetInput = z.infer<typeof webFetchGetInputSchema>;
44
+ type WebFetchRequestInput = z.infer<typeof webFetchRequestInputSchema>;
45
+ type WebFetchRequestOutput = z.infer<typeof webFetchRequestOutputSchema>;
46
+ //#endregion
47
+ //#region src/modules/web-fetch/client.d.ts
48
+ type WebFetchClientOptions = {
49
+ fetch?: ToolContext['fetch'];
50
+ signal?: ToolContext['signal'];
51
+ };
52
+ declare class WebFetchClient {
53
+ #private;
54
+ constructor(auth: WebFetchAuth, options?: WebFetchClientOptions);
55
+ static fromContext(ctx: ToolContext): WebFetchClient;
56
+ static fromAuth(auth: WebFetchAuth, ctx?: ToolContext): WebFetchClient;
57
+ get(input: WebFetchGetInput): Promise<WebFetchRequestOutput>;
58
+ request(input: WebFetchRequestInput): Promise<WebFetchRequestOutput>;
59
+ }
60
+ //#endregion
61
+ //#region src/modules/web-fetch/module.d.ts
62
+ declare const webFetchGetTool: ToolDefinition<{
63
+ url: string;
64
+ headers?: Record<string, string> | undefined;
65
+ query?: Record<string, string | number | boolean> | undefined;
66
+ timeout_ms?: number | undefined;
67
+ method?: "GET" | "HEAD" | undefined;
68
+ }, {
69
+ url: string;
70
+ status: number;
71
+ ok: boolean;
72
+ headers: Record<string, string>;
73
+ content_type?: string | undefined;
74
+ body: unknown;
75
+ }>;
76
+ declare const webFetchRequestTool: ToolDefinition<{
77
+ url: string;
78
+ headers?: Record<string, string> | undefined;
79
+ query?: Record<string, string | number | boolean> | undefined;
80
+ timeout_ms?: number | undefined;
81
+ method?: "DELETE" | "PATCH" | "POST" | "PUT" | undefined;
82
+ body?: unknown;
83
+ }, {
84
+ url: string;
85
+ status: number;
86
+ ok: boolean;
87
+ headers: Record<string, string>;
88
+ content_type?: string | undefined;
89
+ body: unknown;
90
+ }>;
91
+ declare const webFetchModule: ModuleDefinition<{
92
+ allowed_origins: string[];
93
+ default_headers?: Record<string, string> | undefined;
94
+ require_https?: boolean | undefined;
95
+ timeout_ms?: number | undefined;
96
+ }>;
97
+ //#endregion
98
+ export { type WebFetchAuth, WebFetchClient, type WebFetchGetInput, type WebFetchRequestInput, type WebFetchRequestOutput, webFetchAuthSchema, webFetchGetTool, webFetchModule, webFetchRequestTool };
99
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/modules/web-fetch/contracts.ts","../../../src/modules/web-fetch/client.ts","../../../src/modules/web-fetch/module.ts"],"mappings":";;;;cAIa,oBAAkB,EAAA;;;;;GAY7B,EAAA,KAAA;KAEU,eAAe,EAAE,aAAa;cAY7B,wBAAsB,EAAA;;;;;;;;;GAGjC,EAAA,KAAA;cAEW,4BAA0B,EAAA;;;;;;;;;;;;GAOrC,EAAA,KAAA;cAEW,6BAA2B,EAAA;;;;;;;GAQtC,EAAA,KAAA;KAEU,mBAAmB,EAAE,aAAa;KAClC,uBAAuB,EAAE,aAAa;KACtC,wBAAwB,EAAE,aAAa;;;KClCvC;EACX,QAAQ;EACR,SAAS;;cAYG;;EAIZ,YAAY,MAAM,cAAc,UAAS;SASlC,YAAY,KAAK,cAAc;SAQ/B,SAAS,MAAM,cAAc,MAAK,cAAmB;EAO5D,IAAI,OAAO,mBAAmB,QAAQ;EAUtC,QAAQ,OAAO,uBAAuB,QAAQ;;;;cC9DlC;;;;;;;;;;;;;;cAYA;;;;;;;;;;;;;;;cAYA,gBAAA;;oBAAA"}