@struktoai/mirage-browser 0.0.5 → 0.0.7-alpha.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 (610) hide show
  1. package/README.md +138 -80
  2. package/dist/accessor/opfs.d.ts +10 -0
  3. package/dist/accessor/opfs.d.ts.map +1 -0
  4. package/dist/accessor/opfs.js +25 -0
  5. package/dist/accessor/opfs.js.map +1 -0
  6. package/dist/commands/builtin/opfs/index.d.ts +3 -0
  7. package/dist/commands/builtin/opfs/index.d.ts.map +1 -0
  8. package/dist/commands/builtin/opfs/index.js +20 -0
  9. package/dist/commands/builtin/opfs/index.js.map +1 -0
  10. package/dist/commands/builtin/opfs/io.d.ts +4 -0
  11. package/dist/commands/builtin/opfs/io.d.ts.map +1 -0
  12. package/dist/commands/builtin/opfs/io.js +56 -0
  13. package/dist/commands/builtin/opfs/io.js.map +1 -0
  14. package/dist/core/opfs/append.d.ts +4 -0
  15. package/dist/core/opfs/append.d.ts.map +1 -0
  16. package/dist/core/opfs/append.js +38 -0
  17. package/dist/core/opfs/append.js.map +1 -0
  18. package/dist/core/opfs/constants.d.ts +3 -0
  19. package/dist/core/opfs/constants.d.ts.map +1 -0
  20. package/dist/core/opfs/constants.js +16 -0
  21. package/dist/core/opfs/constants.js.map +1 -0
  22. package/dist/core/opfs/copy.d.ts +4 -0
  23. package/dist/core/opfs/copy.d.ts.map +1 -0
  24. package/dist/core/opfs/copy.js +40 -0
  25. package/dist/core/opfs/copy.js.map +1 -0
  26. package/dist/core/opfs/create.d.ts +4 -0
  27. package/dist/core/opfs/create.d.ts.map +1 -0
  28. package/dist/core/opfs/create.js +18 -0
  29. package/dist/core/opfs/create.js.map +1 -0
  30. package/dist/core/opfs/du/entries.d.ts +4 -0
  31. package/dist/core/opfs/du/entries.d.ts.map +1 -0
  32. package/dist/core/opfs/du/entries.js +56 -0
  33. package/dist/core/opfs/du/entries.js.map +1 -0
  34. package/dist/core/opfs/du/index.d.ts +3 -0
  35. package/dist/core/opfs/du/index.d.ts.map +1 -0
  36. package/dist/core/opfs/du/index.js +16 -0
  37. package/dist/core/opfs/du/index.js.map +1 -0
  38. package/dist/core/opfs/du/size.d.ts +4 -0
  39. package/dist/core/opfs/du/size.d.ts.map +1 -0
  40. package/dist/core/opfs/du/size.js +18 -0
  41. package/dist/core/opfs/du/size.js.map +1 -0
  42. package/dist/core/opfs/du/walk.d.ts +3 -0
  43. package/dist/core/opfs/du/walk.d.ts.map +1 -0
  44. package/dist/core/opfs/du/walk.js +98 -0
  45. package/dist/core/opfs/du/walk.js.map +1 -0
  46. package/dist/core/opfs/entry.d.ts +11 -0
  47. package/dist/core/opfs/entry.d.ts.map +1 -0
  48. package/dist/core/opfs/entry.js +42 -0
  49. package/dist/core/opfs/entry.js.map +1 -0
  50. package/dist/core/opfs/exists.d.ts +4 -0
  51. package/dist/core/opfs/exists.d.ts.map +1 -0
  52. package/dist/core/opfs/exists.js +64 -0
  53. package/dist/core/opfs/exists.js.map +1 -0
  54. package/dist/core/opfs/find.d.ts +21 -0
  55. package/dist/core/opfs/find.d.ts.map +1 -0
  56. package/dist/core/opfs/find.js +154 -0
  57. package/dist/core/opfs/find.js.map +1 -0
  58. package/dist/core/opfs/mkdir.d.ts +4 -0
  59. package/dist/core/opfs/mkdir.d.ts.map +1 -0
  60. package/dist/core/opfs/mkdir.js +64 -0
  61. package/dist/core/opfs/mkdir.js.map +1 -0
  62. package/dist/core/opfs/read.d.ts +22 -0
  63. package/dist/core/opfs/read.d.ts.map +1 -0
  64. package/dist/core/opfs/read.js +57 -0
  65. package/dist/core/opfs/read.js.map +1 -0
  66. package/dist/core/opfs/readdir.d.ts +4 -0
  67. package/dist/core/opfs/readdir.d.ts.map +1 -0
  68. package/dist/core/opfs/readdir.js +50 -0
  69. package/dist/core/opfs/readdir.js.map +1 -0
  70. package/dist/core/opfs/rename.d.ts +4 -0
  71. package/dist/core/opfs/rename.d.ts.map +1 -0
  72. package/dist/core/opfs/rename.js +97 -0
  73. package/dist/core/opfs/rename.js.map +1 -0
  74. package/dist/core/opfs/rm.d.ts +4 -0
  75. package/dist/core/opfs/rm.d.ts.map +1 -0
  76. package/dist/core/opfs/rm.js +40 -0
  77. package/dist/core/opfs/rm.js.map +1 -0
  78. package/dist/core/opfs/rmdir.d.ts +4 -0
  79. package/dist/core/opfs/rmdir.d.ts.map +1 -0
  80. package/dist/core/opfs/rmdir.js +48 -0
  81. package/dist/core/opfs/rmdir.js.map +1 -0
  82. package/dist/core/opfs/stat.d.ts +5 -0
  83. package/dist/core/opfs/stat.d.ts.map +1 -0
  84. package/dist/core/opfs/stat.js +88 -0
  85. package/dist/core/opfs/stat.js.map +1 -0
  86. package/dist/core/opfs/stream.d.ts +4 -0
  87. package/dist/core/opfs/stream.d.ts.map +1 -0
  88. package/dist/core/opfs/stream.js +44 -0
  89. package/dist/core/opfs/stream.js.map +1 -0
  90. package/dist/core/opfs/truncate.d.ts +4 -0
  91. package/dist/core/opfs/truncate.d.ts.map +1 -0
  92. package/dist/core/opfs/truncate.js +49 -0
  93. package/dist/core/opfs/truncate.js.map +1 -0
  94. package/dist/core/opfs/unlink.d.ts +4 -0
  95. package/dist/core/opfs/unlink.d.ts.map +1 -0
  96. package/dist/core/opfs/unlink.js +40 -0
  97. package/dist/core/opfs/unlink.js.map +1 -0
  98. package/dist/core/opfs/utils.d.ts +20 -0
  99. package/dist/core/opfs/utils.d.ts.map +1 -0
  100. package/dist/core/opfs/utils.js +149 -0
  101. package/dist/core/opfs/utils.js.map +1 -0
  102. package/dist/core/opfs/write.d.ts +4 -0
  103. package/dist/core/opfs/write.d.ts.map +1 -0
  104. package/dist/core/opfs/write.js +33 -0
  105. package/dist/core/opfs/write.js.map +1 -0
  106. package/dist/generated/wasm.d.ts +3 -0
  107. package/dist/generated/wasm.d.ts.map +1 -0
  108. package/dist/generated/wasm.js +4 -0
  109. package/dist/generated/wasm.js.map +1 -0
  110. package/dist/index.d.ts +121 -1246
  111. package/dist/index.d.ts.map +1 -0
  112. package/dist/index.js +132 -698
  113. package/dist/index.js.map +1 -1
  114. package/dist/ops/opfs/index.d.ts +3 -0
  115. package/dist/ops/opfs/index.d.ts.map +1 -0
  116. package/dist/ops/opfs/index.js +23 -0
  117. package/dist/ops/opfs/index.js.map +1 -0
  118. package/dist/resource/aliyun/aliyun.d.ts +8 -0
  119. package/dist/resource/aliyun/aliyun.d.ts.map +1 -0
  120. package/dist/resource/aliyun/aliyun.js +24 -0
  121. package/dist/resource/aliyun/aliyun.js.map +1 -0
  122. package/dist/resource/aliyun/config.d.ts +17 -0
  123. package/dist/resource/aliyun/config.d.ts.map +1 -0
  124. package/dist/resource/aliyun/config.js +24 -0
  125. package/dist/resource/aliyun/config.js.map +1 -0
  126. package/dist/resource/aliyun/prompt.d.ts +2 -0
  127. package/dist/resource/aliyun/prompt.d.ts.map +1 -0
  128. package/dist/resource/aliyun/prompt.js +19 -0
  129. package/dist/resource/aliyun/prompt.js.map +1 -0
  130. package/dist/resource/backblaze/backblaze.d.ts +8 -0
  131. package/dist/resource/backblaze/backblaze.d.ts.map +1 -0
  132. package/dist/resource/backblaze/backblaze.js +24 -0
  133. package/dist/resource/backblaze/backblaze.js.map +1 -0
  134. package/dist/resource/backblaze/config.d.ts +17 -0
  135. package/dist/resource/backblaze/config.d.ts.map +1 -0
  136. package/dist/resource/backblaze/config.js +24 -0
  137. package/dist/resource/backblaze/config.js.map +1 -0
  138. package/dist/resource/backblaze/prompt.d.ts +2 -0
  139. package/dist/resource/backblaze/prompt.d.ts.map +1 -0
  140. package/dist/resource/backblaze/prompt.js +19 -0
  141. package/dist/resource/backblaze/prompt.js.map +1 -0
  142. package/dist/resource/box/box.d.ts +34 -0
  143. package/dist/resource/box/box.d.ts.map +1 -0
  144. package/dist/resource/box/box.js +99 -0
  145. package/dist/resource/box/box.js.map +1 -0
  146. package/dist/resource/box/config.d.ts +41 -0
  147. package/dist/resource/box/config.d.ts.map +1 -0
  148. package/dist/resource/box/config.js +38 -0
  149. package/dist/resource/box/config.js.map +1 -0
  150. package/dist/resource/ceph/ceph.d.ts +8 -0
  151. package/dist/resource/ceph/ceph.d.ts.map +1 -0
  152. package/dist/resource/ceph/ceph.js +24 -0
  153. package/dist/resource/ceph/ceph.js.map +1 -0
  154. package/dist/resource/ceph/config.d.ts +16 -0
  155. package/dist/resource/ceph/config.d.ts.map +1 -0
  156. package/dist/resource/ceph/config.js +22 -0
  157. package/dist/resource/ceph/config.js.map +1 -0
  158. package/dist/resource/ceph/prompt.d.ts +2 -0
  159. package/dist/resource/ceph/prompt.d.ts.map +1 -0
  160. package/dist/resource/ceph/prompt.js +19 -0
  161. package/dist/resource/ceph/prompt.js.map +1 -0
  162. package/dist/resource/digitalocean/config.d.ts +17 -0
  163. package/dist/resource/digitalocean/config.d.ts.map +1 -0
  164. package/dist/resource/digitalocean/config.js +24 -0
  165. package/dist/resource/digitalocean/config.js.map +1 -0
  166. package/dist/resource/digitalocean/digitalocean.d.ts +8 -0
  167. package/dist/resource/digitalocean/digitalocean.d.ts.map +1 -0
  168. package/dist/resource/digitalocean/digitalocean.js +24 -0
  169. package/dist/resource/digitalocean/digitalocean.js.map +1 -0
  170. package/dist/resource/digitalocean/prompt.d.ts +2 -0
  171. package/dist/resource/digitalocean/prompt.d.ts.map +1 -0
  172. package/dist/resource/digitalocean/prompt.js +19 -0
  173. package/dist/resource/digitalocean/prompt.js.map +1 -0
  174. package/dist/resource/discord/config.d.ts +20 -0
  175. package/dist/resource/discord/config.d.ts.map +1 -0
  176. package/dist/resource/discord/config.js +32 -0
  177. package/dist/resource/discord/config.js.map +1 -0
  178. package/dist/resource/discord/discord.d.ts +33 -0
  179. package/dist/resource/discord/discord.d.ts.map +1 -0
  180. package/dist/resource/discord/discord.js +90 -0
  181. package/dist/resource/discord/discord.js.map +1 -0
  182. package/dist/resource/dropbox/config.d.ts +34 -0
  183. package/dist/resource/dropbox/config.d.ts.map +1 -0
  184. package/dist/resource/dropbox/config.js +31 -0
  185. package/dist/resource/dropbox/config.js.map +1 -0
  186. package/dist/resource/dropbox/dropbox.d.ts +34 -0
  187. package/dist/resource/dropbox/dropbox.d.ts.map +1 -0
  188. package/dist/resource/dropbox/dropbox.js +95 -0
  189. package/dist/resource/dropbox/dropbox.js.map +1 -0
  190. package/dist/resource/gcal/gcal.d.ts +32 -0
  191. package/dist/resource/gcal/gcal.d.ts.map +1 -0
  192. package/dist/resource/gcal/gcal.js +87 -0
  193. package/dist/resource/gcal/gcal.js.map +1 -0
  194. package/dist/resource/gcs/config.d.ts +16 -0
  195. package/dist/resource/gcs/config.d.ts.map +1 -0
  196. package/dist/resource/gcs/config.js +24 -0
  197. package/dist/resource/gcs/config.js.map +1 -0
  198. package/dist/resource/gcs/gcs.d.ts +8 -0
  199. package/dist/resource/gcs/gcs.d.ts.map +1 -0
  200. package/dist/resource/gcs/gcs.js +24 -0
  201. package/dist/resource/gcs/gcs.js.map +1 -0
  202. package/dist/resource/gcs/prompt.d.ts +2 -0
  203. package/dist/resource/gcs/prompt.d.ts.map +1 -0
  204. package/dist/resource/gcs/prompt.js +19 -0
  205. package/dist/resource/gcs/prompt.js.map +1 -0
  206. package/dist/resource/gdocs/gdocs.d.ts +32 -0
  207. package/dist/resource/gdocs/gdocs.d.ts.map +1 -0
  208. package/dist/resource/gdocs/gdocs.js +84 -0
  209. package/dist/resource/gdocs/gdocs.js.map +1 -0
  210. package/dist/resource/gdrive/gdrive.d.ts +34 -0
  211. package/dist/resource/gdrive/gdrive.d.ts.map +1 -0
  212. package/dist/resource/gdrive/gdrive.js +89 -0
  213. package/dist/resource/gdrive/gdrive.js.map +1 -0
  214. package/dist/resource/github/github.d.ts +38 -0
  215. package/dist/resource/github/github.d.ts.map +1 -0
  216. package/dist/resource/github/github.js +121 -0
  217. package/dist/resource/github/github.js.map +1 -0
  218. package/dist/resource/gmail/gmail.d.ts +33 -0
  219. package/dist/resource/gmail/gmail.d.ts.map +1 -0
  220. package/dist/resource/gmail/gmail.js +88 -0
  221. package/dist/resource/gmail/gmail.js.map +1 -0
  222. package/dist/resource/gsheets/gsheets.d.ts +32 -0
  223. package/dist/resource/gsheets/gsheets.d.ts.map +1 -0
  224. package/dist/resource/gsheets/gsheets.js +84 -0
  225. package/dist/resource/gsheets/gsheets.js.map +1 -0
  226. package/dist/resource/gslides/gslides.d.ts +32 -0
  227. package/dist/resource/gslides/gslides.d.ts.map +1 -0
  228. package/dist/resource/gslides/gslides.js +84 -0
  229. package/dist/resource/gslides/gslides.js.map +1 -0
  230. package/dist/resource/langfuse/config.d.ts +23 -0
  231. package/dist/resource/langfuse/config.d.ts.map +1 -0
  232. package/dist/resource/langfuse/config.js +36 -0
  233. package/dist/resource/langfuse/config.js.map +1 -0
  234. package/dist/resource/langfuse/langfuse.d.ts +31 -0
  235. package/dist/resource/langfuse/langfuse.d.ts.map +1 -0
  236. package/dist/resource/langfuse/langfuse.js +98 -0
  237. package/dist/resource/langfuse/langfuse.js.map +1 -0
  238. package/dist/resource/linear/linear.d.ts +33 -0
  239. package/dist/resource/linear/linear.d.ts.map +1 -0
  240. package/dist/resource/linear/linear.js +93 -0
  241. package/dist/resource/linear/linear.js.map +1 -0
  242. package/dist/resource/minio/config.d.ts +16 -0
  243. package/dist/resource/minio/config.d.ts.map +1 -0
  244. package/dist/resource/minio/config.js +22 -0
  245. package/dist/resource/minio/config.js.map +1 -0
  246. package/dist/resource/minio/minio.d.ts +8 -0
  247. package/dist/resource/minio/minio.d.ts.map +1 -0
  248. package/dist/resource/minio/minio.js +24 -0
  249. package/dist/resource/minio/minio.js.map +1 -0
  250. package/dist/resource/minio/prompt.d.ts +2 -0
  251. package/dist/resource/minio/prompt.d.ts.map +1 -0
  252. package/dist/resource/minio/prompt.js +19 -0
  253. package/dist/resource/minio/prompt.js.map +1 -0
  254. package/dist/resource/mongodb/http_driver.d.ts +27 -0
  255. package/dist/resource/mongodb/http_driver.d.ts.map +1 -0
  256. package/dist/resource/mongodb/http_driver.js +96 -0
  257. package/dist/resource/mongodb/http_driver.js.map +1 -0
  258. package/dist/resource/mongodb/mongodb.d.ts +41 -0
  259. package/dist/resource/mongodb/mongodb.d.ts.map +1 -0
  260. package/dist/resource/mongodb/mongodb.js +100 -0
  261. package/dist/resource/mongodb/mongodb.js.map +1 -0
  262. package/dist/resource/notion/config.d.ts +20 -0
  263. package/dist/resource/notion/config.d.ts.map +1 -0
  264. package/dist/resource/notion/config.js +32 -0
  265. package/dist/resource/notion/config.js.map +1 -0
  266. package/dist/resource/notion/notion.d.ts +32 -0
  267. package/dist/resource/notion/notion.d.ts.map +1 -0
  268. package/dist/resource/notion/notion.js +86 -0
  269. package/dist/resource/notion/notion.js.map +1 -0
  270. package/dist/resource/oci/config.d.ts +20 -0
  271. package/dist/resource/oci/config.d.ts.map +1 -0
  272. package/dist/resource/oci/config.js +30 -0
  273. package/dist/resource/oci/config.js.map +1 -0
  274. package/dist/resource/oci/oci.d.ts +8 -0
  275. package/dist/resource/oci/oci.d.ts.map +1 -0
  276. package/dist/resource/oci/oci.js +24 -0
  277. package/dist/resource/oci/oci.js.map +1 -0
  278. package/dist/resource/oci/prompt.d.ts +2 -0
  279. package/dist/resource/oci/prompt.d.ts.map +1 -0
  280. package/dist/resource/oci/prompt.js +19 -0
  281. package/dist/resource/oci/prompt.js.map +1 -0
  282. package/dist/resource/opfs/opfs.d.ts +57 -0
  283. package/dist/resource/opfs/opfs.d.ts.map +1 -0
  284. package/dist/resource/opfs/opfs.js +236 -0
  285. package/dist/resource/opfs/opfs.js.map +1 -0
  286. package/dist/resource/opfs/prompt.d.ts +2 -0
  287. package/dist/resource/opfs/prompt.d.ts.map +1 -0
  288. package/dist/resource/opfs/prompt.js +17 -0
  289. package/dist/resource/opfs/prompt.js.map +1 -0
  290. package/dist/resource/postgres/neon_driver.d.ts +8 -0
  291. package/dist/resource/postgres/neon_driver.d.ts.map +1 -0
  292. package/dist/resource/postgres/neon_driver.js +28 -0
  293. package/dist/resource/postgres/neon_driver.js.map +1 -0
  294. package/dist/resource/postgres/postgres.d.ts +40 -0
  295. package/dist/resource/postgres/postgres.d.ts.map +1 -0
  296. package/dist/resource/postgres/postgres.js +98 -0
  297. package/dist/resource/postgres/postgres.js.map +1 -0
  298. package/dist/resource/qingstor/config.d.ts +17 -0
  299. package/dist/resource/qingstor/config.d.ts.map +1 -0
  300. package/dist/resource/qingstor/config.js +24 -0
  301. package/dist/resource/qingstor/config.js.map +1 -0
  302. package/dist/resource/qingstor/prompt.d.ts +2 -0
  303. package/dist/resource/qingstor/prompt.d.ts.map +1 -0
  304. package/dist/resource/qingstor/prompt.js +19 -0
  305. package/dist/resource/qingstor/prompt.js.map +1 -0
  306. package/dist/resource/qingstor/qingstor.d.ts +8 -0
  307. package/dist/resource/qingstor/qingstor.d.ts.map +1 -0
  308. package/dist/resource/qingstor/qingstor.js +24 -0
  309. package/dist/resource/qingstor/qingstor.js.map +1 -0
  310. package/dist/resource/r2/config.d.ts +20 -0
  311. package/dist/resource/r2/config.d.ts.map +1 -0
  312. package/dist/resource/r2/config.js +26 -0
  313. package/dist/resource/r2/config.js.map +1 -0
  314. package/dist/resource/r2/prompt.d.ts +2 -0
  315. package/dist/resource/r2/prompt.d.ts.map +1 -0
  316. package/dist/resource/r2/prompt.js +19 -0
  317. package/dist/resource/r2/prompt.js.map +1 -0
  318. package/dist/resource/r2/r2.d.ts +8 -0
  319. package/dist/resource/r2/r2.d.ts.map +1 -0
  320. package/dist/resource/r2/r2.js +24 -0
  321. package/dist/resource/r2/r2.js.map +1 -0
  322. package/dist/resource/redis/redis.d.ts +17 -0
  323. package/dist/resource/redis/redis.d.ts.map +1 -0
  324. package/dist/resource/redis/redis.js +29 -0
  325. package/dist/resource/redis/redis.js.map +1 -0
  326. package/dist/resource/redis/store.d.ts +75 -0
  327. package/dist/resource/redis/store.d.ts.map +1 -0
  328. package/dist/resource/redis/store.js +381 -0
  329. package/dist/resource/redis/store.js.map +1 -0
  330. package/dist/resource/registry.d.ts +25 -0
  331. package/dist/resource/registry.d.ts.map +1 -0
  332. package/dist/resource/registry.js +279 -0
  333. package/dist/resource/registry.js.map +1 -0
  334. package/dist/resource/s3/config.d.ts +7 -0
  335. package/dist/resource/s3/config.d.ts.map +1 -0
  336. package/dist/resource/s3/config.js +26 -0
  337. package/dist/resource/s3/config.js.map +1 -0
  338. package/dist/resource/s3/s3.d.ts +53 -0
  339. package/dist/resource/s3/s3.d.ts.map +1 -0
  340. package/dist/resource/s3/s3.js +182 -0
  341. package/dist/resource/s3/s3.js.map +1 -0
  342. package/dist/resource/s3_alias.d.ts +113 -0
  343. package/dist/resource/s3_alias.d.ts.map +1 -0
  344. package/dist/resource/s3_alias.js +133 -0
  345. package/dist/resource/s3_alias.js.map +1 -0
  346. package/dist/resource/scaleway/config.d.ts +17 -0
  347. package/dist/resource/scaleway/config.d.ts.map +1 -0
  348. package/dist/resource/scaleway/config.js +24 -0
  349. package/dist/resource/scaleway/config.js.map +1 -0
  350. package/dist/resource/scaleway/prompt.d.ts +2 -0
  351. package/dist/resource/scaleway/prompt.d.ts.map +1 -0
  352. package/dist/resource/scaleway/prompt.js +19 -0
  353. package/dist/resource/scaleway/prompt.js.map +1 -0
  354. package/dist/resource/scaleway/scaleway.d.ts +8 -0
  355. package/dist/resource/scaleway/scaleway.d.ts.map +1 -0
  356. package/dist/resource/scaleway/scaleway.js +24 -0
  357. package/dist/resource/scaleway/scaleway.js.map +1 -0
  358. package/dist/resource/seaweedfs/config.d.ts +16 -0
  359. package/dist/resource/seaweedfs/config.d.ts.map +1 -0
  360. package/dist/resource/seaweedfs/config.js +22 -0
  361. package/dist/resource/seaweedfs/config.js.map +1 -0
  362. package/dist/resource/seaweedfs/prompt.d.ts +2 -0
  363. package/dist/resource/seaweedfs/prompt.d.ts.map +1 -0
  364. package/dist/resource/seaweedfs/prompt.js +19 -0
  365. package/dist/resource/seaweedfs/prompt.js.map +1 -0
  366. package/dist/resource/seaweedfs/seaweedfs.d.ts +8 -0
  367. package/dist/resource/seaweedfs/seaweedfs.d.ts.map +1 -0
  368. package/dist/resource/seaweedfs/seaweedfs.js +24 -0
  369. package/dist/resource/seaweedfs/seaweedfs.js.map +1 -0
  370. package/dist/resource/slack/config.d.ts +20 -0
  371. package/dist/resource/slack/config.d.ts.map +1 -0
  372. package/dist/resource/slack/config.js +32 -0
  373. package/dist/resource/slack/config.js.map +1 -0
  374. package/dist/resource/slack/slack.d.ts +33 -0
  375. package/dist/resource/slack/slack.d.ts.map +1 -0
  376. package/dist/resource/slack/slack.js +91 -0
  377. package/dist/resource/slack/slack.js.map +1 -0
  378. package/dist/resource/supabase/config.d.ts +20 -0
  379. package/dist/resource/supabase/config.d.ts.map +1 -0
  380. package/dist/resource/supabase/config.js +26 -0
  381. package/dist/resource/supabase/config.js.map +1 -0
  382. package/dist/resource/supabase/prompt.d.ts +2 -0
  383. package/dist/resource/supabase/prompt.d.ts.map +1 -0
  384. package/dist/resource/supabase/prompt.js +19 -0
  385. package/dist/resource/supabase/prompt.js.map +1 -0
  386. package/dist/resource/supabase/supabase.d.ts +8 -0
  387. package/dist/resource/supabase/supabase.d.ts.map +1 -0
  388. package/dist/resource/supabase/supabase.js +24 -0
  389. package/dist/resource/supabase/supabase.js.map +1 -0
  390. package/dist/resource/tencent/config.d.ts +17 -0
  391. package/dist/resource/tencent/config.d.ts.map +1 -0
  392. package/dist/resource/tencent/config.js +24 -0
  393. package/dist/resource/tencent/config.js.map +1 -0
  394. package/dist/resource/tencent/prompt.d.ts +2 -0
  395. package/dist/resource/tencent/prompt.d.ts.map +1 -0
  396. package/dist/resource/tencent/prompt.js +19 -0
  397. package/dist/resource/tencent/prompt.js.map +1 -0
  398. package/dist/resource/tencent/tencent.d.ts +8 -0
  399. package/dist/resource/tencent/tencent.d.ts.map +1 -0
  400. package/dist/resource/tencent/tencent.js +24 -0
  401. package/dist/resource/tencent/tencent.js.map +1 -0
  402. package/dist/resource/trello/config.d.ts +22 -0
  403. package/dist/resource/trello/config.d.ts.map +1 -0
  404. package/dist/resource/trello/config.js +35 -0
  405. package/dist/resource/trello/config.js.map +1 -0
  406. package/dist/resource/trello/trello.d.ts +32 -0
  407. package/dist/resource/trello/trello.d.ts.map +1 -0
  408. package/dist/resource/trello/trello.js +94 -0
  409. package/dist/resource/trello/trello.js.map +1 -0
  410. package/dist/resource/wasabi/config.d.ts +17 -0
  411. package/dist/resource/wasabi/config.d.ts.map +1 -0
  412. package/dist/resource/wasabi/config.js +29 -0
  413. package/dist/resource/wasabi/config.js.map +1 -0
  414. package/dist/resource/wasabi/prompt.d.ts +2 -0
  415. package/dist/resource/wasabi/prompt.d.ts.map +1 -0
  416. package/dist/resource/wasabi/prompt.js +19 -0
  417. package/dist/resource/wasabi/prompt.js.map +1 -0
  418. package/dist/resource/wasabi/wasabi.d.ts +8 -0
  419. package/dist/resource/wasabi/wasabi.d.ts.map +1 -0
  420. package/dist/resource/wasabi/wasabi.js +24 -0
  421. package/dist/resource/wasabi/wasabi.js.map +1 -0
  422. package/dist/runtime/sandbox/e2b/config.d.ts +2 -0
  423. package/dist/runtime/sandbox/e2b/config.d.ts.map +1 -0
  424. package/dist/runtime/sandbox/e2b/config.js +15 -0
  425. package/dist/runtime/sandbox/e2b/config.js.map +1 -0
  426. package/dist/runtime/sandbox/e2b/runtime.d.ts +2 -0
  427. package/dist/runtime/sandbox/e2b/runtime.d.ts.map +1 -0
  428. package/dist/runtime/sandbox/e2b/runtime.js +15 -0
  429. package/dist/runtime/sandbox/e2b/runtime.js.map +1 -0
  430. package/dist/test-utils.d.ts +37 -0
  431. package/dist/test-utils.d.ts.map +1 -0
  432. package/dist/test-utils.js +518 -0
  433. package/dist/test-utils.js.map +1 -0
  434. package/dist/workspace.d.ts +10 -0
  435. package/dist/workspace.d.ts.map +1 -0
  436. package/dist/workspace.js +62 -0
  437. package/dist/workspace.js.map +1 -0
  438. package/package.json +22 -6
  439. package/dist/aliyun-DR6KT3H6.js +0 -8
  440. package/dist/aliyun-DR6KT3H6.js.map +0 -1
  441. package/dist/backblaze-XCLZXTES.js +0 -8
  442. package/dist/backblaze-XCLZXTES.js.map +0 -1
  443. package/dist/box-XBCSU3AA.js +0 -8
  444. package/dist/box-XBCSU3AA.js.map +0 -1
  445. package/dist/ceph-F5S2NMTO.js +0 -8
  446. package/dist/ceph-F5S2NMTO.js.map +0 -1
  447. package/dist/chunk-2J35WXX5.js +0 -28
  448. package/dist/chunk-2J35WXX5.js.map +0 -1
  449. package/dist/chunk-2WNXK742.js +0 -89
  450. package/dist/chunk-2WNXK742.js.map +0 -1
  451. package/dist/chunk-2WSKXBSV.js +0 -139
  452. package/dist/chunk-2WSKXBSV.js.map +0 -1
  453. package/dist/chunk-37WKCB2E.js +0 -95
  454. package/dist/chunk-37WKCB2E.js.map +0 -1
  455. package/dist/chunk-3IYCVC7W.js +0 -96
  456. package/dist/chunk-3IYCVC7W.js.map +0 -1
  457. package/dist/chunk-46HNNKFR.js +0 -95
  458. package/dist/chunk-46HNNKFR.js.map +0 -1
  459. package/dist/chunk-4IF4TGAI.js +0 -11
  460. package/dist/chunk-4IF4TGAI.js.map +0 -1
  461. package/dist/chunk-5OZJMTYW.js +0 -113
  462. package/dist/chunk-5OZJMTYW.js.map +0 -1
  463. package/dist/chunk-5UM6EBVW.js +0 -108
  464. package/dist/chunk-5UM6EBVW.js.map +0 -1
  465. package/dist/chunk-6HRSCX2U.js +0 -98
  466. package/dist/chunk-6HRSCX2U.js.map +0 -1
  467. package/dist/chunk-7HWQAYXR.js +0 -85
  468. package/dist/chunk-7HWQAYXR.js.map +0 -1
  469. package/dist/chunk-AUZNQ7EI.js +0 -85
  470. package/dist/chunk-AUZNQ7EI.js.map +0 -1
  471. package/dist/chunk-BGA2F226.js +0 -182
  472. package/dist/chunk-BGA2F226.js.map +0 -1
  473. package/dist/chunk-BV372CUO.js +0 -90
  474. package/dist/chunk-BV372CUO.js.map +0 -1
  475. package/dist/chunk-C4THTILY.js +0 -95
  476. package/dist/chunk-C4THTILY.js.map +0 -1
  477. package/dist/chunk-D4MEOKNQ.js +0 -95
  478. package/dist/chunk-D4MEOKNQ.js.map +0 -1
  479. package/dist/chunk-D4RAMWYH.js +0 -88
  480. package/dist/chunk-D4RAMWYH.js.map +0 -1
  481. package/dist/chunk-EHIT6WCY.js +0 -95
  482. package/dist/chunk-EHIT6WCY.js.map +0 -1
  483. package/dist/chunk-EN6TZYT2.js +0 -95
  484. package/dist/chunk-EN6TZYT2.js.map +0 -1
  485. package/dist/chunk-FTDVV7EQ.js +0 -85
  486. package/dist/chunk-FTDVV7EQ.js.map +0 -1
  487. package/dist/chunk-G67Q2Z6I.js +0 -95
  488. package/dist/chunk-G67Q2Z6I.js.map +0 -1
  489. package/dist/chunk-GM2QMJAY.js +0 -85
  490. package/dist/chunk-GM2QMJAY.js.map +0 -1
  491. package/dist/chunk-HRWLHJX2.js +0 -84
  492. package/dist/chunk-HRWLHJX2.js.map +0 -1
  493. package/dist/chunk-INEXV2PN.js +0 -91
  494. package/dist/chunk-INEXV2PN.js.map +0 -1
  495. package/dist/chunk-IZMKMD3O.js +0 -11
  496. package/dist/chunk-IZMKMD3O.js.map +0 -1
  497. package/dist/chunk-JUVMJ5GI.js +0 -85
  498. package/dist/chunk-JUVMJ5GI.js.map +0 -1
  499. package/dist/chunk-KL2VFYUV.js +0 -159
  500. package/dist/chunk-KL2VFYUV.js.map +0 -1
  501. package/dist/chunk-L64GRKOD.js +0 -38
  502. package/dist/chunk-L64GRKOD.js.map +0 -1
  503. package/dist/chunk-LPDLPRPS.js +0 -11
  504. package/dist/chunk-LPDLPRPS.js.map +0 -1
  505. package/dist/chunk-M2UF2JHJ.js +0 -11
  506. package/dist/chunk-M2UF2JHJ.js.map +0 -1
  507. package/dist/chunk-NVHPJ5CV.js +0 -109
  508. package/dist/chunk-NVHPJ5CV.js.map +0 -1
  509. package/dist/chunk-OSTDTTWI.js +0 -35
  510. package/dist/chunk-OSTDTTWI.js.map +0 -1
  511. package/dist/chunk-PQCRGTSA.js +0 -85
  512. package/dist/chunk-PQCRGTSA.js.map +0 -1
  513. package/dist/chunk-QE7QNA45.js +0 -114
  514. package/dist/chunk-QE7QNA45.js.map +0 -1
  515. package/dist/chunk-QG2NUNCY.js +0 -95
  516. package/dist/chunk-QG2NUNCY.js.map +0 -1
  517. package/dist/chunk-UFHBDBZD.js +0 -1212
  518. package/dist/chunk-UFHBDBZD.js.map +0 -1
  519. package/dist/chunk-UY22T4AC.js +0 -112
  520. package/dist/chunk-UY22T4AC.js.map +0 -1
  521. package/dist/chunk-XJBC3OYX.js +0 -11
  522. package/dist/chunk-XJBC3OYX.js.map +0 -1
  523. package/dist/chunk-Y6DYUK6J.js +0 -85
  524. package/dist/chunk-Y6DYUK6J.js.map +0 -1
  525. package/dist/chunk-YOCTIHQZ.js +0 -89
  526. package/dist/chunk-YOCTIHQZ.js.map +0 -1
  527. package/dist/chunk-ZDJPUXYH.js +0 -101
  528. package/dist/chunk-ZDJPUXYH.js.map +0 -1
  529. package/dist/chunk-ZKCOSE3R.js +0 -90
  530. package/dist/chunk-ZKCOSE3R.js.map +0 -1
  531. package/dist/chunk-ZTHVEXIV.js +0 -11
  532. package/dist/chunk-ZTHVEXIV.js.map +0 -1
  533. package/dist/config-2Y6LZKLV.js +0 -9
  534. package/dist/config-2Y6LZKLV.js.map +0 -1
  535. package/dist/config-4GSOMUMF.js +0 -9
  536. package/dist/config-4GSOMUMF.js.map +0 -1
  537. package/dist/config-5YBUWFUP.js +0 -9
  538. package/dist/config-5YBUWFUP.js.map +0 -1
  539. package/dist/config-DE5OZ4I7.js +0 -9
  540. package/dist/config-DE5OZ4I7.js.map +0 -1
  541. package/dist/config-ELDOFRJW.js +0 -9
  542. package/dist/config-ELDOFRJW.js.map +0 -1
  543. package/dist/config-FPM3LAW7.js +0 -9
  544. package/dist/config-FPM3LAW7.js.map +0 -1
  545. package/dist/config-JY557MA6.js +0 -9
  546. package/dist/config-JY557MA6.js.map +0 -1
  547. package/dist/config-UU27ALAA.js +0 -9
  548. package/dist/config-UU27ALAA.js.map +0 -1
  549. package/dist/config-WRACCRPN.js +0 -9
  550. package/dist/config-WRACCRPN.js.map +0 -1
  551. package/dist/digitalocean-QDHTRS2W.js +0 -8
  552. package/dist/digitalocean-QDHTRS2W.js.map +0 -1
  553. package/dist/discord-ERUI7OAQ.js +0 -7
  554. package/dist/discord-ERUI7OAQ.js.map +0 -1
  555. package/dist/dropbox-3U6D4HLE.js +0 -8
  556. package/dist/dropbox-3U6D4HLE.js.map +0 -1
  557. package/dist/gcal-MTBSDG34.js +0 -8
  558. package/dist/gcal-MTBSDG34.js.map +0 -1
  559. package/dist/gcs-KNGRBBET.js +0 -8
  560. package/dist/gcs-KNGRBBET.js.map +0 -1
  561. package/dist/gdocs-RUIOIRKP.js +0 -8
  562. package/dist/gdocs-RUIOIRKP.js.map +0 -1
  563. package/dist/gdrive-5JB7ZKEP.js +0 -8
  564. package/dist/gdrive-5JB7ZKEP.js.map +0 -1
  565. package/dist/github-CIXBFBVO.js +0 -7
  566. package/dist/github-CIXBFBVO.js.map +0 -1
  567. package/dist/github_ci-HR6YOYAO.js +0 -8
  568. package/dist/github_ci-HR6YOYAO.js.map +0 -1
  569. package/dist/gmail-JHGWTQU5.js +0 -8
  570. package/dist/gmail-JHGWTQU5.js.map +0 -1
  571. package/dist/gsheets-N54JO2RS.js +0 -8
  572. package/dist/gsheets-N54JO2RS.js.map +0 -1
  573. package/dist/gslides-B4VMNLMB.js +0 -8
  574. package/dist/gslides-B4VMNLMB.js.map +0 -1
  575. package/dist/langfuse-HEUJGDOC.js +0 -7
  576. package/dist/langfuse-HEUJGDOC.js.map +0 -1
  577. package/dist/linear-J4QQ3CA6.js +0 -7
  578. package/dist/linear-J4QQ3CA6.js.map +0 -1
  579. package/dist/minio-BXWHJ6K5.js +0 -8
  580. package/dist/minio-BXWHJ6K5.js.map +0 -1
  581. package/dist/mongodb-YZP643ZU.js +0 -7
  582. package/dist/mongodb-YZP643ZU.js.map +0 -1
  583. package/dist/notion-I5S5SRLO.js +0 -7
  584. package/dist/notion-I5S5SRLO.js.map +0 -1
  585. package/dist/oci-XOPKH4AE.js +0 -8
  586. package/dist/oci-XOPKH4AE.js.map +0 -1
  587. package/dist/opfs-36QO72Y5.js +0 -7
  588. package/dist/opfs-36QO72Y5.js.map +0 -1
  589. package/dist/postgres-HPOMN2AR.js +0 -7
  590. package/dist/postgres-HPOMN2AR.js.map +0 -1
  591. package/dist/qingstor-JKAHLK62.js +0 -8
  592. package/dist/qingstor-JKAHLK62.js.map +0 -1
  593. package/dist/r2-L3QXQ76M.js +0 -8
  594. package/dist/r2-L3QXQ76M.js.map +0 -1
  595. package/dist/s3-LRZJPGHK.js +0 -9
  596. package/dist/s3-LRZJPGHK.js.map +0 -1
  597. package/dist/scaleway-CGNDYNKS.js +0 -8
  598. package/dist/scaleway-CGNDYNKS.js.map +0 -1
  599. package/dist/seaweedfs-BSQWCBIR.js +0 -8
  600. package/dist/seaweedfs-BSQWCBIR.js.map +0 -1
  601. package/dist/slack-62ECSENR.js +0 -7
  602. package/dist/slack-62ECSENR.js.map +0 -1
  603. package/dist/supabase-J66NXWAF.js +0 -8
  604. package/dist/supabase-J66NXWAF.js.map +0 -1
  605. package/dist/tencent-AC667LV3.js +0 -8
  606. package/dist/tencent-AC667LV3.js.map +0 -1
  607. package/dist/trello-SUPG6VDF.js +0 -7
  608. package/dist/trello-SUPG6VDF.js.map +0 -1
  609. package/dist/wasabi-5KKPW6LH.js +0 -8
  610. package/dist/wasabi-5KKPW6LH.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,1247 +1,122 @@
1
- import { Workspace as Workspace$1, Resource, WorkspaceOptions, Accessor, RegisteredOp, RegisteredCommand, PathSpec, FileStat, FindOptions, S3Config, S3Accessor, IndexCacheStore, S3ConfigRedacted, ConfigOf, z, S3BrowserPresignedUrlProvider, RedactedConfig, SlackAccessor, DiscordAccessor, PostgresConfigResolved, PgDriver, PostgresAccessor, PostgresConfig, PgQueryResult, MongoDBConfigResolved, MongoDriver, MongoDBAccessor, MongoDBConfig, EntityKind, MongoCollectionSpec, MongoFindOptions, MongoIterOptions, MongoIndexAccess, TrelloAccessor, LinearAccessor, NotionAccessor, LangfuseAccessor, GitHubAccessor, GitHubCIAccessor, GoogleConfig, GDocsAccessor, GoogleConfigRedacted, GSheetsAccessor, GSlidesAccessor, GDriveAccessor, DropboxAccessor, BoxAccessor, GmailAccessor, GCalAccessor } from '@struktoai/mirage-core';
2
1
  export * from '@struktoai/mirage-core';
3
- export { GoogleConfig as GCalConfig, GoogleConfigRedacted as GCalConfigRedacted, GoogleConfig as GDocsConfig, GoogleConfigRedacted as GDocsConfigRedacted, GoogleConfig as GDriveConfig, GoogleConfigRedacted as GDriveConfigRedacted, GoogleConfig as GSheetsConfig, GoogleConfigRedacted as GSheetsConfigRedacted, GoogleConfig as GSlidesConfig, GoogleConfigRedacted as GSlidesConfigRedacted, GoogleConfig as GmailConfig, GoogleConfigRedacted as GmailConfigRedacted, Mem0Config, Mem0Resource, MountMode, OneDriveConfig, OneDriveResource, S3BrowserOperation, S3BrowserPresignedUrlProvider, S3BrowserSignOptions, S3Config, S3ConfigRedacted, SharePointConfig, SharePointResource, normalizeGoogleConfig as normalizeGCalConfig, normalizeGoogleConfig as normalizeGDocsConfig, normalizeGoogleConfig as normalizeGDriveConfig, normalizeGoogleConfig as normalizeGSheetsConfig, normalizeGoogleConfig as normalizeGSlidesConfig, normalizeGoogleConfig as normalizeGmailConfig, redactGoogleConfig as redactGCalConfig, redactGoogleConfig as redactGDocsConfig, redactGoogleConfig as redactGDriveConfig, redactGoogleConfig as redactGSheetsConfig, redactGoogleConfig as redactGSlidesConfig, redactGoogleConfig as redactGmailConfig, redactS3Config } from '@struktoai/mirage-core';
4
- import { OAuthClientProvider } from '@modelcontextprotocol/sdk/client/auth.js';
5
-
6
- declare class Workspace extends Workspace$1 {
7
- constructor(resources: Record<string, Resource>, options?: WorkspaceOptions);
8
- }
9
-
10
- interface OPFSHandleProvider {
11
- requireHandle(): FileSystemDirectoryHandle;
12
- }
13
- declare class OPFSAccessor extends Accessor {
14
- private readonly provider;
15
- constructor(provider: OPFSHandleProvider);
16
- get rootHandle(): FileSystemDirectoryHandle;
17
- }
18
-
19
- interface OPFSResourceOptions {
20
- root?: string;
21
- }
22
- interface OPFSResourceState {
23
- type: string;
24
- files: Record<string, Uint8Array>;
25
- dirs: string[];
26
- }
27
- declare class OPFSResource implements Resource {
28
- readonly kind: "opfs";
29
- readonly sizesAlwaysKnown: boolean;
30
- readonly prompt = "{prefix}\n Browser Origin Private File System. Persistent per-origin storage that survives page reloads.\n Standard commands: ls, cat, head, tail, grep, wc, find, tree, mkdir, touch, cp, mv, rm, tee.";
31
- readonly rootName: string;
32
- readonly accessor: OPFSAccessor;
33
- private rootHandle;
34
- private openPromise;
35
- constructor(options?: OPFSResourceOptions);
36
- open(): Promise<void>;
37
- close(): Promise<void>;
38
- /**
39
- * Lazily resolve to a usable root handle. Memoizes `navigator.storage`
40
- * traversal so the resource self-initializes on first method call without
41
- * relying on an external orchestrator.
42
- */
43
- private ensureOpen;
44
- requireHandle(): FileSystemDirectoryHandle;
45
- ops(): readonly RegisteredOp[];
46
- commands(): readonly RegisteredCommand[];
47
- streamPath(p: PathSpec): AsyncIterable<Uint8Array>;
48
- readFile(p: PathSpec): Promise<Uint8Array>;
49
- writeFile(p: PathSpec, data: Uint8Array): Promise<void>;
50
- appendFile(p: PathSpec, data: Uint8Array): Promise<void>;
51
- readdir(p: PathSpec): Promise<string[]>;
52
- stat(p: PathSpec): Promise<FileStat>;
53
- exists(p: PathSpec): Promise<boolean>;
54
- mkdir(p: PathSpec, options?: {
55
- recursive?: boolean;
56
- }): Promise<void>;
57
- rmdir(p: PathSpec): Promise<void>;
58
- unlink(p: PathSpec): Promise<void>;
59
- rename(src: PathSpec, dst: PathSpec): Promise<void>;
60
- truncate(p: PathSpec, length: number): Promise<void>;
61
- copy(src: PathSpec, dst: PathSpec): Promise<void>;
62
- rmR(p: PathSpec): Promise<void>;
63
- du(p: PathSpec): Promise<number>;
64
- find(p: PathSpec, options?: FindOptions): Promise<string[]>;
65
- glob(paths: readonly PathSpec[]): Promise<PathSpec[]>;
66
- getState(): Promise<OPFSResourceState>;
67
- loadState(state: OPFSResourceState): Promise<void>;
68
- }
69
-
70
- declare const OPFS_PROMPT = "{prefix}\n Browser Origin Private File System. Persistent per-origin storage that survives page reloads.\n Standard commands: ls, cat, head, tail, grep, wc, find, tree, mkdir, touch, cp, mv, rm, tee.";
71
-
72
- declare const OPFS_OPS: readonly RegisteredOp[];
73
-
74
- declare const OPFS_COMMANDS: readonly RegisteredCommand[];
75
-
76
- declare const S3_BROWSER_PROMPT = "{prefix}\n Remote S3 bucket accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
77
- interface S3ResourceState {
78
- type: string;
79
- config: S3ConfigRedacted;
80
- }
81
- declare class S3Resource implements Resource {
82
- readonly supportsSnapshot: boolean;
83
- readonly kind: string;
84
- readonly cachesReads: boolean;
85
- readonly sizesAlwaysKnown: boolean;
86
- readonly indexTtl: number;
87
- readonly prompt: string;
88
- readonly config: S3Config;
89
- readonly accessor: S3Accessor;
90
- readonly index: IndexCacheStore;
91
- constructor(config: S3Config);
92
- storageId(): string;
93
- open(): Promise<void>;
94
- close(): Promise<void>;
95
- commands(): readonly RegisteredCommand[];
96
- ops(): readonly RegisteredOp[];
97
- streamPath(p: PathSpec): AsyncIterable<Uint8Array>;
98
- readFile(p: PathSpec): Promise<Uint8Array>;
99
- writeFile(p: PathSpec, data: Uint8Array): Promise<void>;
100
- appendFile(p: PathSpec, data: Uint8Array): Promise<void>;
101
- readdir(p: PathSpec): Promise<string[]>;
102
- stat(p: PathSpec): Promise<FileStat>;
103
- exists(p: PathSpec): Promise<boolean>;
104
- mkdir(p: PathSpec): Promise<void>;
105
- rmdir(p: PathSpec): Promise<void>;
106
- unlink(p: PathSpec): Promise<void>;
107
- rename(src: PathSpec, dst: PathSpec): Promise<void>;
108
- truncate(p: PathSpec, length: number): Promise<void>;
109
- copy(src: PathSpec, dst: PathSpec): Promise<void>;
110
- rmR(p: PathSpec): Promise<void>;
111
- du(p: PathSpec): Promise<number>;
112
- find(p: PathSpec, options?: FindOptions): Promise<string[]>;
113
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
114
- getState(): Promise<S3ResourceState>;
115
- loadState(_state: S3ResourceState): Promise<void>;
116
- _duEntries(p: PathSpec): Promise<[[string, number][], number]>;
117
- _rangeRead(p: PathSpec, offset: number, size: number): Promise<Uint8Array>;
118
- _create(p: PathSpec): Promise<void>;
119
- }
120
-
121
- declare const GCSConfigSchema: z.ZodObject<{
122
- bucket: z.ZodString;
123
- presignedUrlProvider: z.ZodCustom<S3BrowserPresignedUrlProvider, S3BrowserPresignedUrlProvider>;
124
- region: z.ZodOptional<z.ZodString>;
125
- endpoint: z.ZodOptional<z.ZodString>;
126
- defaultContentType: z.ZodOptional<z.ZodString>;
127
- keyPrefix: z.ZodOptional<z.ZodString>;
128
- }, z.core.$strip>;
129
- type GCSConfig = ConfigOf<typeof GCSConfigSchema>;
130
- type GCSConfigRedacted = RedactedConfig<GCSConfig, 'presignedUrlProvider'>;
131
- declare function gcsToS3Config(config: GCSConfig): S3Config;
132
- declare function redactGcsConfig(config: GCSConfig): GCSConfigRedacted;
133
-
134
- interface GCSResourceState {
135
- type: string;
136
- config: GCSConfigRedacted;
137
- }
138
- declare class GCSResource extends S3Resource {
139
- readonly kind: string;
140
- readonly prompt: string;
141
- readonly gcsConfig: GCSConfig;
142
- private readonly gcsOps;
143
- private readonly gcsCommands;
144
- constructor(config: GCSConfig);
145
- ops(): readonly RegisteredOp[];
146
- commands(): readonly RegisteredCommand[];
147
- getState(): Promise<GCSResourceState>;
148
- loadState(_state: GCSResourceState): Promise<void>;
149
- }
150
-
151
- declare const GCS_BROWSER_PROMPT = "{prefix}\n Remote Google Cloud Storage bucket accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
152
-
153
- declare const R2ConfigSchema: z.ZodObject<{
154
- bucket: z.ZodString;
155
- presignedUrlProvider: z.ZodCustom<S3BrowserPresignedUrlProvider, S3BrowserPresignedUrlProvider>;
156
- accountId: z.ZodOptional<z.ZodString>;
157
- region: z.ZodOptional<z.ZodString>;
158
- endpoint: z.ZodOptional<z.ZodString>;
159
- defaultContentType: z.ZodOptional<z.ZodString>;
160
- keyPrefix: z.ZodOptional<z.ZodString>;
161
- }, z.core.$strip>;
162
- type R2Config = ConfigOf<typeof R2ConfigSchema>;
163
- type R2ConfigRedacted = RedactedConfig<R2Config, 'presignedUrlProvider'>;
164
- declare function resolvedR2Endpoint(config: R2Config): string | undefined;
165
- declare function r2ToS3Config(config: R2Config): S3Config;
166
- declare function redactR2Config(config: R2Config): R2ConfigRedacted;
167
-
168
- interface R2ResourceState {
169
- type: string;
170
- config: R2ConfigRedacted;
171
- }
172
- declare class R2Resource extends S3Resource {
173
- readonly kind: string;
174
- readonly prompt: string;
175
- readonly r2Config: R2Config;
176
- private readonly r2Ops;
177
- private readonly r2Commands;
178
- constructor(config: R2Config);
179
- ops(): readonly RegisteredOp[];
180
- commands(): readonly RegisteredCommand[];
181
- getState(): Promise<R2ResourceState>;
182
- loadState(_state: R2ResourceState): Promise<void>;
183
- }
184
-
185
- declare const R2_BROWSER_PROMPT = "{prefix}\n Remote Cloudflare R2 bucket accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
186
-
187
- declare const OCIConfigSchema: z.ZodObject<{
188
- bucket: z.ZodString;
189
- presignedUrlProvider: z.ZodCustom<S3BrowserPresignedUrlProvider, S3BrowserPresignedUrlProvider>;
190
- namespace: z.ZodOptional<z.ZodString>;
191
- region: z.ZodOptional<z.ZodString>;
192
- endpoint: z.ZodOptional<z.ZodString>;
193
- defaultContentType: z.ZodOptional<z.ZodString>;
194
- keyPrefix: z.ZodOptional<z.ZodString>;
195
- }, z.core.$strip>;
196
- type OCIConfig = ConfigOf<typeof OCIConfigSchema>;
197
- type OCIConfigRedacted = RedactedConfig<OCIConfig, 'presignedUrlProvider'>;
198
- declare function resolvedOciEndpoint(config: OCIConfig): string | undefined;
199
- declare function ociToS3Config(config: OCIConfig): S3Config;
200
- declare function redactOciConfig(config: OCIConfig): OCIConfigRedacted;
201
-
202
- interface OCIResourceState {
203
- type: string;
204
- config: OCIConfigRedacted;
205
- }
206
- declare class OCIResource extends S3Resource {
207
- readonly kind: string;
208
- readonly prompt: string;
209
- readonly ociConfig: OCIConfig;
210
- private readonly ociOps;
211
- private readonly ociCommands;
212
- constructor(config: OCIConfig);
213
- ops(): readonly RegisteredOp[];
214
- commands(): readonly RegisteredCommand[];
215
- getState(): Promise<OCIResourceState>;
216
- loadState(_state: OCIResourceState): Promise<void>;
217
- }
218
-
219
- declare const OCI_BROWSER_PROMPT = "{prefix}\n Remote Oracle Cloud Object Storage accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
220
-
221
- declare const SupabaseConfigSchema: z.ZodObject<{
222
- bucket: z.ZodString;
223
- presignedUrlProvider: z.ZodCustom<S3BrowserPresignedUrlProvider, S3BrowserPresignedUrlProvider>;
224
- projectRef: z.ZodOptional<z.ZodString>;
225
- region: z.ZodOptional<z.ZodString>;
226
- endpoint: z.ZodOptional<z.ZodString>;
227
- defaultContentType: z.ZodOptional<z.ZodString>;
228
- keyPrefix: z.ZodOptional<z.ZodString>;
229
- }, z.core.$strip>;
230
- type SupabaseConfig = ConfigOf<typeof SupabaseConfigSchema>;
231
- type SupabaseConfigRedacted = RedactedConfig<SupabaseConfig, 'presignedUrlProvider'>;
232
- declare function resolvedSupabaseEndpoint(config: SupabaseConfig): string | undefined;
233
- declare function supabaseToS3Config(config: SupabaseConfig): S3Config;
234
- declare function redactSupabaseConfig(config: SupabaseConfig): SupabaseConfigRedacted;
235
-
236
- interface SupabaseResourceState {
237
- type: string;
238
- config: SupabaseConfigRedacted;
239
- }
240
- declare class SupabaseResource extends S3Resource {
241
- readonly kind: string;
242
- readonly prompt: string;
243
- readonly supabaseConfig: SupabaseConfig;
244
- private readonly supabaseOps;
245
- private readonly supabaseCommands;
246
- constructor(config: SupabaseConfig);
247
- ops(): readonly RegisteredOp[];
248
- commands(): readonly RegisteredCommand[];
249
- getState(): Promise<SupabaseResourceState>;
250
- loadState(_state: SupabaseResourceState): Promise<void>;
251
- }
252
-
253
- declare const SUPABASE_BROWSER_PROMPT = "{prefix}\n Remote Supabase Storage bucket accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
254
-
255
- declare const MinIOConfigSchema: z.ZodObject<{
256
- bucket: z.ZodString;
257
- presignedUrlProvider: z.ZodCustom<S3BrowserPresignedUrlProvider, S3BrowserPresignedUrlProvider>;
258
- endpoint: z.ZodOptional<z.ZodString>;
259
- region: z.ZodOptional<z.ZodString>;
260
- defaultContentType: z.ZodOptional<z.ZodString>;
261
- keyPrefix: z.ZodOptional<z.ZodString>;
262
- }, z.core.$strip>;
263
- type MinIOConfig = ConfigOf<typeof MinIOConfigSchema>;
264
- type MinIOConfigRedacted = RedactedConfig<MinIOConfig, 'presignedUrlProvider'>;
265
- declare function minioToS3Config(config: MinIOConfig): S3Config;
266
- declare function redactMinIOConfig(config: MinIOConfig): MinIOConfigRedacted;
267
-
268
- interface MinIOResourceState {
269
- type: string;
270
- config: MinIOConfigRedacted;
271
- }
272
- declare class MinIOResource extends S3Resource {
273
- readonly kind: string;
274
- readonly prompt: string;
275
- readonly minioConfig: MinIOConfig;
276
- private readonly minioOps;
277
- private readonly minioCommands;
278
- constructor(config: MinIOConfig);
279
- ops(): readonly RegisteredOp[];
280
- commands(): readonly RegisteredCommand[];
281
- getState(): Promise<MinIOResourceState>;
282
- loadState(_state: MinIOResourceState): Promise<void>;
283
- }
284
-
285
- declare const MINIO_BROWSER_PROMPT = "{prefix}\n Remote MinIO bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
286
-
287
- declare const SeaweedFSConfigSchema: z.ZodObject<{
288
- bucket: z.ZodString;
289
- presignedUrlProvider: z.ZodCustom<S3BrowserPresignedUrlProvider, S3BrowserPresignedUrlProvider>;
290
- endpoint: z.ZodOptional<z.ZodString>;
291
- region: z.ZodOptional<z.ZodString>;
292
- defaultContentType: z.ZodOptional<z.ZodString>;
293
- keyPrefix: z.ZodOptional<z.ZodString>;
294
- }, z.core.$strip>;
295
- type SeaweedFSConfig = ConfigOf<typeof SeaweedFSConfigSchema>;
296
- type SeaweedFSConfigRedacted = RedactedConfig<SeaweedFSConfig, 'presignedUrlProvider'>;
297
- declare function seaweedfsToS3Config(config: SeaweedFSConfig): S3Config;
298
- declare function redactSeaweedFSConfig(config: SeaweedFSConfig): SeaweedFSConfigRedacted;
299
-
300
- interface SeaweedFSResourceState {
301
- type: string;
302
- config: SeaweedFSConfigRedacted;
303
- }
304
- declare class SeaweedFSResource extends S3Resource {
305
- readonly kind: string;
306
- readonly prompt: string;
307
- readonly seaweedfsConfig: SeaweedFSConfig;
308
- private readonly seaweedfsOps;
309
- private readonly seaweedfsCommands;
310
- constructor(config: SeaweedFSConfig);
311
- ops(): readonly RegisteredOp[];
312
- commands(): readonly RegisteredCommand[];
313
- getState(): Promise<SeaweedFSResourceState>;
314
- loadState(_state: SeaweedFSResourceState): Promise<void>;
315
- }
316
-
317
- declare const SEAWEEDFS_BROWSER_PROMPT = "{prefix}\n Remote SeaweedFS bucket (S3-compatible gateway) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
318
-
319
- declare const CephConfigSchema: z.ZodObject<{
320
- bucket: z.ZodString;
321
- presignedUrlProvider: z.ZodCustom<S3BrowserPresignedUrlProvider, S3BrowserPresignedUrlProvider>;
322
- endpoint: z.ZodOptional<z.ZodString>;
323
- region: z.ZodOptional<z.ZodString>;
324
- defaultContentType: z.ZodOptional<z.ZodString>;
325
- keyPrefix: z.ZodOptional<z.ZodString>;
326
- }, z.core.$strip>;
327
- type CephConfig = ConfigOf<typeof CephConfigSchema>;
328
- type CephConfigRedacted = RedactedConfig<CephConfig, 'presignedUrlProvider'>;
329
- declare function cephToS3Config(config: CephConfig): S3Config;
330
- declare function redactCephConfig(config: CephConfig): CephConfigRedacted;
331
-
332
- interface CephResourceState {
333
- type: string;
334
- config: CephConfigRedacted;
335
- }
336
- declare class CephResource extends S3Resource {
337
- readonly kind: string;
338
- readonly prompt: string;
339
- readonly cephConfig: CephConfig;
340
- private readonly cephOps;
341
- private readonly cephCommands;
342
- constructor(config: CephConfig);
343
- ops(): readonly RegisteredOp[];
344
- commands(): readonly RegisteredCommand[];
345
- getState(): Promise<CephResourceState>;
346
- loadState(_state: CephResourceState): Promise<void>;
347
- }
348
-
349
- declare const CEPH_BROWSER_PROMPT = "{prefix}\n Remote Ceph Rados Gateway bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
350
-
351
- declare const WasabiConfigSchema: z.ZodObject<{
352
- bucket: z.ZodString;
353
- presignedUrlProvider: z.ZodCustom<S3BrowserPresignedUrlProvider, S3BrowserPresignedUrlProvider>;
354
- region: z.ZodOptional<z.ZodString>;
355
- endpoint: z.ZodOptional<z.ZodString>;
356
- defaultContentType: z.ZodOptional<z.ZodString>;
357
- keyPrefix: z.ZodOptional<z.ZodString>;
358
- }, z.core.$strip>;
359
- type WasabiConfig = ConfigOf<typeof WasabiConfigSchema>;
360
- type WasabiConfigRedacted = RedactedConfig<WasabiConfig, 'presignedUrlProvider'>;
361
- declare function resolvedWasabiEndpoint(config: WasabiConfig): string;
362
- declare function wasabiToS3Config(config: WasabiConfig): S3Config;
363
- declare function redactWasabiConfig(config: WasabiConfig): WasabiConfigRedacted;
364
-
365
- interface WasabiResourceState {
366
- type: string;
367
- config: WasabiConfigRedacted;
368
- }
369
- declare class WasabiResource extends S3Resource {
370
- readonly kind: string;
371
- readonly prompt: string;
372
- readonly wasabiConfig: WasabiConfig;
373
- private readonly wasabiOps;
374
- private readonly wasabiCommands;
375
- constructor(config: WasabiConfig);
376
- ops(): readonly RegisteredOp[];
377
- commands(): readonly RegisteredCommand[];
378
- getState(): Promise<WasabiResourceState>;
379
- loadState(_state: WasabiResourceState): Promise<void>;
380
- }
381
-
382
- declare const WASABI_BROWSER_PROMPT = "{prefix}\n Remote Wasabi bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
383
-
384
- declare const BackblazeConfigSchema: z.ZodObject<{
385
- bucket: z.ZodString;
386
- presignedUrlProvider: z.ZodCustom<S3BrowserPresignedUrlProvider, S3BrowserPresignedUrlProvider>;
387
- region: z.ZodOptional<z.ZodString>;
388
- endpoint: z.ZodOptional<z.ZodString>;
389
- defaultContentType: z.ZodOptional<z.ZodString>;
390
- keyPrefix: z.ZodOptional<z.ZodString>;
391
- }, z.core.$strip>;
392
- type BackblazeConfig = ConfigOf<typeof BackblazeConfigSchema>;
393
- type BackblazeConfigRedacted = RedactedConfig<BackblazeConfig, 'presignedUrlProvider'>;
394
- declare function resolvedBackblazeEndpoint(config: BackblazeConfig): string | undefined;
395
- declare function backblazeToS3Config(config: BackblazeConfig): S3Config;
396
- declare function redactBackblazeConfig(config: BackblazeConfig): BackblazeConfigRedacted;
397
-
398
- interface BackblazeResourceState {
399
- type: string;
400
- config: BackblazeConfigRedacted;
401
- }
402
- declare class BackblazeResource extends S3Resource {
403
- readonly kind: string;
404
- readonly prompt: string;
405
- readonly backblazeConfig: BackblazeConfig;
406
- private readonly backblazeOps;
407
- private readonly backblazeCommands;
408
- constructor(config: BackblazeConfig);
409
- ops(): readonly RegisteredOp[];
410
- commands(): readonly RegisteredCommand[];
411
- getState(): Promise<BackblazeResourceState>;
412
- loadState(_state: BackblazeResourceState): Promise<void>;
413
- }
414
-
415
- declare const BACKBLAZE_BROWSER_PROMPT = "{prefix}\n Remote Backblaze B2 bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
416
-
417
- declare const DigitalOceanConfigSchema: z.ZodObject<{
418
- bucket: z.ZodString;
419
- presignedUrlProvider: z.ZodCustom<S3BrowserPresignedUrlProvider, S3BrowserPresignedUrlProvider>;
420
- region: z.ZodOptional<z.ZodString>;
421
- endpoint: z.ZodOptional<z.ZodString>;
422
- defaultContentType: z.ZodOptional<z.ZodString>;
423
- keyPrefix: z.ZodOptional<z.ZodString>;
424
- }, z.core.$strip>;
425
- type DigitalOceanConfig = ConfigOf<typeof DigitalOceanConfigSchema>;
426
- type DigitalOceanConfigRedacted = RedactedConfig<DigitalOceanConfig, 'presignedUrlProvider'>;
427
- declare function resolvedDigitalOceanEndpoint(config: DigitalOceanConfig): string | undefined;
428
- declare function digitalOceanToS3Config(config: DigitalOceanConfig): S3Config;
429
- declare function redactDigitalOceanConfig(config: DigitalOceanConfig): DigitalOceanConfigRedacted;
430
-
431
- interface DigitalOceanResourceState {
432
- type: string;
433
- config: DigitalOceanConfigRedacted;
434
- }
435
- declare class DigitalOceanResource extends S3Resource {
436
- readonly kind: string;
437
- readonly prompt: string;
438
- readonly digitalOceanConfig: DigitalOceanConfig;
439
- private readonly digitalOceanOps;
440
- private readonly digitalOceanCommands;
441
- constructor(config: DigitalOceanConfig);
442
- ops(): readonly RegisteredOp[];
443
- commands(): readonly RegisteredCommand[];
444
- getState(): Promise<DigitalOceanResourceState>;
445
- loadState(_state: DigitalOceanResourceState): Promise<void>;
446
- }
447
-
448
- declare const DIGITALOCEAN_BROWSER_PROMPT = "{prefix}\n Remote DigitalOcean Spaces bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
449
-
450
- declare const TencentConfigSchema: z.ZodObject<{
451
- bucket: z.ZodString;
452
- presignedUrlProvider: z.ZodCustom<S3BrowserPresignedUrlProvider, S3BrowserPresignedUrlProvider>;
453
- region: z.ZodOptional<z.ZodString>;
454
- endpoint: z.ZodOptional<z.ZodString>;
455
- defaultContentType: z.ZodOptional<z.ZodString>;
456
- keyPrefix: z.ZodOptional<z.ZodString>;
457
- }, z.core.$strip>;
458
- type TencentConfig = ConfigOf<typeof TencentConfigSchema>;
459
- type TencentConfigRedacted = RedactedConfig<TencentConfig, 'presignedUrlProvider'>;
460
- declare function resolvedTencentEndpoint(config: TencentConfig): string | undefined;
461
- declare function tencentToS3Config(config: TencentConfig): S3Config;
462
- declare function redactTencentConfig(config: TencentConfig): TencentConfigRedacted;
463
-
464
- interface TencentResourceState {
465
- type: string;
466
- config: TencentConfigRedacted;
467
- }
468
- declare class TencentResource extends S3Resource {
469
- readonly kind: string;
470
- readonly prompt: string;
471
- readonly tencentConfig: TencentConfig;
472
- private readonly tencentOps;
473
- private readonly tencentCommands;
474
- constructor(config: TencentConfig);
475
- ops(): readonly RegisteredOp[];
476
- commands(): readonly RegisteredCommand[];
477
- getState(): Promise<TencentResourceState>;
478
- loadState(_state: TencentResourceState): Promise<void>;
479
- }
480
-
481
- declare const TENCENT_BROWSER_PROMPT = "{prefix}\n Remote Tencent Cloud COS bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
482
-
483
- declare const AliyunConfigSchema: z.ZodObject<{
484
- bucket: z.ZodString;
485
- presignedUrlProvider: z.ZodCustom<S3BrowserPresignedUrlProvider, S3BrowserPresignedUrlProvider>;
486
- region: z.ZodOptional<z.ZodString>;
487
- endpoint: z.ZodOptional<z.ZodString>;
488
- defaultContentType: z.ZodOptional<z.ZodString>;
489
- keyPrefix: z.ZodOptional<z.ZodString>;
490
- }, z.core.$strip>;
491
- type AliyunConfig = ConfigOf<typeof AliyunConfigSchema>;
492
- type AliyunConfigRedacted = RedactedConfig<AliyunConfig, 'presignedUrlProvider'>;
493
- declare function resolvedAliyunEndpoint(config: AliyunConfig): string | undefined;
494
- declare function aliyunToS3Config(config: AliyunConfig): S3Config;
495
- declare function redactAliyunConfig(config: AliyunConfig): AliyunConfigRedacted;
496
-
497
- interface AliyunResourceState {
498
- type: string;
499
- config: AliyunConfigRedacted;
500
- }
501
- declare class AliyunResource extends S3Resource {
502
- readonly kind: string;
503
- readonly prompt: string;
504
- readonly aliyunConfig: AliyunConfig;
505
- private readonly aliyunOps;
506
- private readonly aliyunCommands;
507
- constructor(config: AliyunConfig);
508
- ops(): readonly RegisteredOp[];
509
- commands(): readonly RegisteredCommand[];
510
- getState(): Promise<AliyunResourceState>;
511
- loadState(_state: AliyunResourceState): Promise<void>;
512
- }
513
-
514
- declare const ALIYUN_BROWSER_PROMPT = "{prefix}\n Remote Alibaba Cloud OSS bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
515
-
516
- declare const ScalewayConfigSchema: z.ZodObject<{
517
- bucket: z.ZodString;
518
- presignedUrlProvider: z.ZodCustom<S3BrowserPresignedUrlProvider, S3BrowserPresignedUrlProvider>;
519
- region: z.ZodOptional<z.ZodString>;
520
- endpoint: z.ZodOptional<z.ZodString>;
521
- defaultContentType: z.ZodOptional<z.ZodString>;
522
- keyPrefix: z.ZodOptional<z.ZodString>;
523
- }, z.core.$strip>;
524
- type ScalewayConfig = ConfigOf<typeof ScalewayConfigSchema>;
525
- type ScalewayConfigRedacted = RedactedConfig<ScalewayConfig, 'presignedUrlProvider'>;
526
- declare function resolvedScalewayEndpoint(config: ScalewayConfig): string | undefined;
527
- declare function scalewayToS3Config(config: ScalewayConfig): S3Config;
528
- declare function redactScalewayConfig(config: ScalewayConfig): ScalewayConfigRedacted;
529
-
530
- interface ScalewayResourceState {
531
- type: string;
532
- config: ScalewayConfigRedacted;
533
- }
534
- declare class ScalewayResource extends S3Resource {
535
- readonly kind: string;
536
- readonly prompt: string;
537
- readonly scalewayConfig: ScalewayConfig;
538
- private readonly scalewayOps;
539
- private readonly scalewayCommands;
540
- constructor(config: ScalewayConfig);
541
- ops(): readonly RegisteredOp[];
542
- commands(): readonly RegisteredCommand[];
543
- getState(): Promise<ScalewayResourceState>;
544
- loadState(_state: ScalewayResourceState): Promise<void>;
545
- }
546
-
547
- declare const SCALEWAY_BROWSER_PROMPT = "{prefix}\n Remote Scaleway Object Storage bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
548
-
549
- declare const QingStorConfigSchema: z.ZodObject<{
550
- bucket: z.ZodString;
551
- presignedUrlProvider: z.ZodCustom<S3BrowserPresignedUrlProvider, S3BrowserPresignedUrlProvider>;
552
- region: z.ZodOptional<z.ZodString>;
553
- endpoint: z.ZodOptional<z.ZodString>;
554
- defaultContentType: z.ZodOptional<z.ZodString>;
555
- keyPrefix: z.ZodOptional<z.ZodString>;
556
- }, z.core.$strip>;
557
- type QingStorConfig = ConfigOf<typeof QingStorConfigSchema>;
558
- type QingStorConfigRedacted = RedactedConfig<QingStorConfig, 'presignedUrlProvider'>;
559
- declare function resolvedQingStorEndpoint(config: QingStorConfig): string | undefined;
560
- declare function qingStorToS3Config(config: QingStorConfig): S3Config;
561
- declare function redactQingStorConfig(config: QingStorConfig): QingStorConfigRedacted;
562
-
563
- interface QingStorResourceState {
564
- type: string;
565
- config: QingStorConfigRedacted;
566
- }
567
- declare class QingStorResource extends S3Resource {
568
- readonly kind: string;
569
- readonly prompt: string;
570
- readonly qingStorConfig: QingStorConfig;
571
- private readonly qingStorOps;
572
- private readonly qingStorCommands;
573
- constructor(config: QingStorConfig);
574
- ops(): readonly RegisteredOp[];
575
- commands(): readonly RegisteredCommand[];
576
- getState(): Promise<QingStorResourceState>;
577
- loadState(_state: QingStorResourceState): Promise<void>;
578
- }
579
-
580
- declare const QINGSTOR_BROWSER_PROMPT = "{prefix}\n Remote QingStor bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
581
-
582
- type HeaderProvider$1 = () => Promise<Record<string, string>> | Record<string, string>;
583
- declare const SlackConfigSchema: z.ZodObject<{
584
- proxyUrl: z.ZodString;
585
- getHeaders: z.ZodOptional<z.ZodCustom<HeaderProvider$1, HeaderProvider$1>>;
586
- }, z.core.$strip>;
587
- type SlackConfig = ConfigOf<typeof SlackConfigSchema>;
588
- type SlackConfigRedacted = RedactedConfig<SlackConfig, 'getHeaders'>;
589
- declare function redactSlackConfig(config: SlackConfig): SlackConfigRedacted;
590
-
591
- interface SlackResourceState {
592
- type: string;
593
- config: SlackConfigRedacted;
594
- }
595
- declare class SlackResource implements Resource {
596
- readonly kind: string;
597
- readonly cachesReads: boolean;
598
- readonly sizesAlwaysKnown: boolean;
599
- readonly indexTtl: number;
600
- readonly prompt: string;
601
- readonly writePrompt: string;
602
- readonly config: SlackConfig;
603
- readonly accessor: SlackAccessor;
604
- readonly index: IndexCacheStore;
605
- constructor(config: SlackConfig);
606
- open(): Promise<void>;
607
- close(): Promise<void>;
608
- commands(): readonly RegisteredCommand[];
609
- ops(): readonly RegisteredOp[];
610
- readFile(p: PathSpec): Promise<Uint8Array>;
611
- readdir(p: PathSpec): Promise<string[]>;
612
- stat(p: PathSpec): Promise<FileStat>;
613
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
614
- getState(): Promise<SlackResourceState>;
615
- loadState(_state: SlackResourceState): Promise<void>;
616
- }
617
-
618
- type HeaderProvider = () => Promise<Record<string, string>> | Record<string, string>;
619
- declare const DiscordConfigSchema: z.ZodObject<{
620
- proxyUrl: z.ZodString;
621
- getHeaders: z.ZodOptional<z.ZodCustom<HeaderProvider, HeaderProvider>>;
622
- }, z.core.$strip>;
623
- type DiscordConfig = ConfigOf<typeof DiscordConfigSchema>;
624
- type DiscordConfigRedacted = RedactedConfig<DiscordConfig, 'getHeaders'>;
625
- declare function redactDiscordConfig(config: DiscordConfig): DiscordConfigRedacted;
626
-
627
- interface DiscordResourceState {
628
- type: string;
629
- config: DiscordConfigRedacted;
630
- }
631
- declare class DiscordResource implements Resource {
632
- readonly kind: string;
633
- readonly cachesReads: boolean;
634
- readonly sizesAlwaysKnown: boolean;
635
- readonly indexTtl: number;
636
- readonly prompt: string;
637
- readonly writePrompt: string;
638
- readonly config: DiscordConfig;
639
- readonly accessor: DiscordAccessor;
640
- readonly index: IndexCacheStore;
641
- constructor(config: DiscordConfig);
642
- open(): Promise<void>;
643
- close(): Promise<void>;
644
- commands(): readonly RegisteredCommand[];
645
- ops(): readonly RegisteredOp[];
646
- readFile(p: PathSpec): Promise<Uint8Array>;
647
- readdir(p: PathSpec): Promise<string[]>;
648
- stat(p: PathSpec): Promise<FileStat>;
649
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
650
- getState(): Promise<DiscordResourceState>;
651
- loadState(_state: DiscordResourceState): Promise<void>;
652
- }
653
-
654
- interface PostgresResourceOptions {
655
- config: PostgresConfig;
656
- prefix?: string;
657
- driver?: PgDriver;
658
- }
659
- declare class PostgresResource implements Resource {
660
- readonly kind: string;
661
- readonly cachesReads: boolean;
662
- readonly indexTtl: number;
663
- readonly prompt: string;
664
- readonly config: PostgresConfigResolved;
665
- readonly driver: PgDriver;
666
- readonly accessor: PostgresAccessor;
667
- readonly index: IndexCacheStore;
668
- constructor(options: PostgresResourceOptions | PostgresConfig);
669
- open(): Promise<void>;
670
- close(): Promise<void>;
671
- ops(): readonly RegisteredOp[];
672
- commands(): readonly RegisteredCommand[];
673
- readFile(p: PathSpec): Promise<Uint8Array>;
674
- readdir(p: PathSpec): Promise<string[]>;
675
- stat(p: PathSpec): Promise<FileStat>;
676
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
677
- }
678
-
679
- declare class NeonPgDriver implements PgDriver {
680
- private readonly sql;
681
- constructor(dsn: string);
682
- query<R = Record<string, unknown>>(text: string, params?: readonly unknown[]): Promise<PgQueryResult<R>>;
683
- close(): Promise<void>;
684
- }
685
-
686
- interface MongoDBResourceOptions {
687
- config: MongoDBConfig;
688
- prefix?: string;
689
- driver?: MongoDriver;
690
- endpoint?: string;
691
- }
692
- declare class MongoDBResource implements Resource {
693
- readonly kind: string;
694
- readonly cachesReads: boolean;
695
- readonly indexTtl: number;
696
- readonly prompt: string;
697
- readonly config: MongoDBConfigResolved;
698
- readonly driver: MongoDriver;
699
- readonly accessor: MongoDBAccessor;
700
- readonly index: IndexCacheStore;
701
- constructor(options: MongoDBResourceOptions | MongoDBConfig);
702
- open(): Promise<void>;
703
- close(): Promise<void>;
704
- ops(): readonly RegisteredOp[];
705
- commands(): readonly RegisteredCommand[];
706
- readFile(p: PathSpec): Promise<Uint8Array>;
707
- readdir(p: PathSpec): Promise<string[]>;
708
- stat(p: PathSpec): Promise<FileStat>;
709
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
710
- }
711
-
712
- interface HttpMongoDriverOptions {
713
- endpoint: string;
714
- fetchImpl?: typeof fetch;
715
- headers?: Record<string, string>;
716
- }
717
- declare class HttpMongoDriver implements MongoDriver {
718
- readonly endpoint: string;
719
- private readonly fetchImpl;
720
- private readonly headers;
721
- constructor(options: HttpMongoDriverOptions);
722
- private post;
723
- listDatabases(): Promise<string[]>;
724
- listCollections(database: string, kind?: EntityKind | null): Promise<string[]>;
725
- listCollectionsDetailed(database: string, filter?: {
726
- name?: string;
727
- }): Promise<MongoCollectionSpec[]>;
728
- findDocuments<T = Record<string, unknown>>(database: string, collection: string, filter?: Record<string, unknown>, options?: MongoFindOptions): Promise<T[]>;
729
- iterDocuments<T = Record<string, unknown>>(database: string, collection: string, options?: MongoIterOptions): AsyncIterableIterator<T>;
730
- iterInserts<T = Record<string, unknown>>(_database: string, _collection: string): AsyncIterableIterator<T>;
731
- countDocuments(database: string, collection: string, filter?: Record<string, unknown>): Promise<number>;
732
- listIndexes(database: string, collection: string): Promise<Record<string, unknown>[]>;
733
- getIndexStats(database: string, collection: string): Promise<Record<string, MongoIndexAccess>>;
734
- close(): Promise<void>;
735
- }
736
-
737
- declare const TrelloConfigSchema: z.ZodObject<{
738
- apiKey: z.ZodString;
739
- apiToken: z.ZodString;
740
- workspaceId: z.ZodOptional<z.ZodString>;
741
- boardIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
742
- baseUrl: z.ZodOptional<z.ZodString>;
743
- }, z.core.$strip>;
744
- type TrelloConfig = ConfigOf<typeof TrelloConfigSchema>;
745
- type TrelloConfigRedacted = RedactedConfig<TrelloConfig, 'apiKey' | 'apiToken'>;
746
- declare function redactTrelloConfig(config: TrelloConfig): TrelloConfigRedacted;
747
-
748
- interface TrelloResourceState {
749
- type: string;
750
- config: TrelloConfigRedacted;
751
- }
752
- declare class TrelloResource implements Resource {
753
- readonly kind: string;
754
- readonly cachesReads: boolean;
755
- readonly indexTtl: number;
756
- readonly prompt: string;
757
- readonly writePrompt: string;
758
- readonly config: TrelloConfig;
759
- readonly accessor: TrelloAccessor;
760
- readonly index: IndexCacheStore;
761
- constructor(config: TrelloConfig);
762
- open(): Promise<void>;
763
- close(): Promise<void>;
764
- commands(): readonly RegisteredCommand[];
765
- ops(): readonly RegisteredOp[];
766
- private filter;
767
- readFile(p: PathSpec): Promise<Uint8Array>;
768
- readdir(p: PathSpec): Promise<string[]>;
769
- stat(p: PathSpec): Promise<FileStat>;
770
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
771
- getState(): Promise<TrelloResourceState>;
772
- loadState(_state: TrelloResourceState): Promise<void>;
773
- }
774
-
775
- declare const LinearConfigSchema: z.ZodObject<{
776
- apiKey: z.ZodString;
777
- workspace: z.ZodOptional<z.ZodString>;
778
- teamIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
779
- baseUrl: z.ZodOptional<z.ZodString>;
780
- }, z.core.$strip>;
781
- type LinearConfig = ConfigOf<typeof LinearConfigSchema>;
782
- type LinearConfigRedacted = RedactedConfig<LinearConfig, 'apiKey'>;
783
- declare function redactLinearConfig(config: LinearConfig): LinearConfigRedacted;
784
-
785
- interface LinearResourceState {
786
- type: string;
787
- config: LinearConfigRedacted;
788
- }
789
- declare class LinearResource implements Resource {
790
- readonly kind: string;
791
- readonly cachesReads: boolean;
792
- readonly sizesAlwaysKnown: boolean;
793
- readonly indexTtl: number;
794
- readonly prompt: string;
795
- readonly writePrompt: string;
796
- readonly config: LinearConfig;
797
- readonly accessor: LinearAccessor;
798
- readonly index: IndexCacheStore;
799
- constructor(config: LinearConfig);
800
- open(): Promise<void>;
801
- close(): Promise<void>;
802
- commands(): readonly RegisteredCommand[];
803
- ops(): readonly RegisteredOp[];
804
- private filter;
805
- readFile(p: PathSpec): Promise<Uint8Array>;
806
- readdir(p: PathSpec): Promise<string[]>;
807
- stat(p: PathSpec): Promise<FileStat>;
808
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
809
- getState(): Promise<LinearResourceState>;
810
- loadState(_state: LinearResourceState): Promise<void>;
811
- }
812
-
813
- declare const NotionConfigSchema: z.ZodObject<{
814
- authProvider: z.ZodCustom<OAuthClientProvider, OAuthClientProvider>;
815
- serverUrl: z.ZodOptional<z.ZodString>;
816
- }, z.core.$strip>;
817
- type NotionConfig = ConfigOf<typeof NotionConfigSchema>;
818
- type NotionConfigRedacted = RedactedConfig<NotionConfig, 'authProvider'>;
819
- declare function redactNotionConfig(config: NotionConfig): NotionConfigRedacted;
820
-
821
- interface NotionResourceState {
822
- type: string;
823
- config: NotionConfigRedacted;
824
- }
825
- declare class NotionResource implements Resource {
826
- readonly kind: string;
827
- readonly cachesReads: boolean;
828
- readonly indexTtl: number;
829
- readonly prompt: string;
830
- readonly writePrompt: string;
831
- readonly config: NotionConfig;
832
- readonly accessor: NotionAccessor;
833
- readonly index: IndexCacheStore;
834
- constructor(config: NotionConfig);
835
- open(): Promise<void>;
836
- close(): Promise<void>;
837
- commands(): readonly RegisteredCommand[];
838
- ops(): readonly RegisteredOp[];
839
- readFile(p: PathSpec): Promise<Uint8Array>;
840
- readdir(p: PathSpec): Promise<string[]>;
841
- stat(p: PathSpec): Promise<FileStat>;
842
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
843
- getState(): Promise<NotionResourceState>;
844
- loadState(_state: NotionResourceState): Promise<void>;
845
- }
846
-
847
- declare const LangfuseConfigSchema: z.ZodObject<{
848
- publicKey: z.ZodString;
849
- secretKey: z.ZodString;
850
- host: z.ZodOptional<z.ZodString>;
851
- defaultTraceLimit: z.ZodOptional<z.ZodNumber>;
852
- defaultSearchLimit: z.ZodOptional<z.ZodNumber>;
853
- defaultFromTimestamp: z.ZodOptional<z.ZodString>;
854
- }, z.core.$strip>;
855
- type LangfuseConfig = ConfigOf<typeof LangfuseConfigSchema>;
856
- type LangfuseConfigRedacted = RedactedConfig<LangfuseConfig, 'secretKey'>;
857
- declare function redactLangfuseConfig(config: LangfuseConfig): LangfuseConfigRedacted;
858
-
859
- interface LangfuseResourceState {
860
- type: string;
861
- config: LangfuseConfigRedacted;
862
- }
863
- declare class LangfuseResource implements Resource {
864
- readonly kind: string;
865
- readonly cachesReads: boolean;
866
- readonly indexTtl: number;
867
- readonly prompt: string;
868
- readonly config: LangfuseConfig;
869
- readonly accessor: LangfuseAccessor;
870
- readonly index: IndexCacheStore;
871
- constructor(config: LangfuseConfig);
872
- open(): Promise<void>;
873
- close(): Promise<void>;
874
- commands(): readonly RegisteredCommand[];
875
- ops(): readonly RegisteredOp[];
876
- readFile(p: PathSpec): Promise<Uint8Array>;
877
- readdir(p: PathSpec): Promise<string[]>;
878
- stat(p: PathSpec): Promise<FileStat>;
879
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
880
- getState(): Promise<LangfuseResourceState>;
881
- loadState(_state: LangfuseResourceState): Promise<void>;
882
- }
883
-
884
- declare const GitHubConfigSchema: z.ZodObject<{
885
- token: z.ZodString;
886
- owner: z.ZodString;
887
- repo: z.ZodString;
888
- ref: z.ZodOptional<z.ZodString>;
889
- baseUrl: z.ZodOptional<z.ZodString>;
890
- }, z.core.$strip>;
891
- type GitHubConfig = ConfigOf<typeof GitHubConfigSchema>;
892
- type GitHubConfigRedacted = RedactedConfig<GitHubConfig, 'token'>;
893
- declare function redactGitHubConfig(config: GitHubConfig): GitHubConfigRedacted;
894
- declare function normalizeGitHubConfig(input: Record<string, unknown>): GitHubConfig;
895
-
896
- interface GitHubResourceState {
897
- type: string;
898
- config: GitHubConfigRedacted;
899
- defaultBranch: string;
900
- truncated: boolean;
901
- }
902
- declare class GitHubResource implements Resource {
903
- readonly kind: string;
904
- readonly cachesReads: boolean;
905
- readonly sizesAlwaysKnown: boolean;
906
- readonly supportsSnapshot: boolean;
907
- readonly indexTtl: number;
908
- readonly prompt: string;
909
- readonly config: GitHubConfig;
910
- readonly accessor: GitHubAccessor;
911
- readonly index: IndexCacheStore;
912
- private constructor();
913
- static create(config: GitHubConfig): Promise<GitHubResource>;
914
- open(): Promise<void>;
915
- close(): Promise<void>;
916
- commands(): readonly RegisteredCommand[];
917
- ops(): readonly RegisteredOp[];
918
- readFile(p: PathSpec): Promise<Uint8Array>;
919
- readdir(p: PathSpec): Promise<string[]>;
920
- stat(p: PathSpec): Promise<FileStat>;
921
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
922
- getState(): Promise<GitHubResourceState>;
923
- loadState(_state: GitHubResourceState): Promise<void>;
924
- }
925
-
926
- declare const GitHubCIConfigSchema: z.ZodObject<{
927
- token: z.ZodString;
928
- owner: z.ZodString;
929
- repo: z.ZodString;
930
- days: z.ZodOptional<z.ZodNumber>;
931
- baseUrl: z.ZodOptional<z.ZodString>;
932
- }, z.core.$strip>;
933
- type GitHubCIConfig = ConfigOf<typeof GitHubCIConfigSchema>;
934
- type GitHubCIConfigRedacted = RedactedConfig<GitHubCIConfig, 'token'>;
935
- declare function redactGitHubCIConfig(config: GitHubCIConfig): GitHubCIConfigRedacted;
936
- declare function normalizeGitHubCIConfig(input: Record<string, unknown>): GitHubCIConfig;
937
-
938
- interface GitHubCIResourceState {
939
- type: string;
940
- config: GitHubCIConfigRedacted;
941
- }
942
- declare class GitHubCIResource implements Resource {
943
- readonly kind: string;
944
- readonly cachesReads: boolean;
945
- readonly indexTtl: number;
946
- readonly prompt: string;
947
- readonly config: GitHubCIConfig;
948
- readonly accessor: GitHubCIAccessor;
949
- readonly index: IndexCacheStore;
950
- constructor(config: GitHubCIConfig);
951
- open(): Promise<void>;
952
- close(): Promise<void>;
953
- commands(): readonly RegisteredCommand[];
954
- ops(): readonly RegisteredOp[];
955
- readFile(p: PathSpec): Promise<Uint8Array>;
956
- readdir(p: PathSpec): Promise<string[]>;
957
- stat(p: PathSpec): Promise<FileStat>;
958
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
959
- getState(): Promise<GitHubCIResourceState>;
960
- loadState(_state: GitHubCIResourceState): Promise<void>;
961
- }
962
-
963
- interface GDocsResourceState {
964
- type: string;
965
- config: GoogleConfigRedacted;
966
- }
967
- declare class GDocsResource implements Resource {
968
- readonly kind: string;
969
- readonly cachesReads: boolean;
970
- readonly indexTtl: number;
971
- readonly prompt: string;
972
- readonly writePrompt: string;
973
- readonly config: GoogleConfig;
974
- readonly accessor: GDocsAccessor;
975
- readonly index: IndexCacheStore;
976
- constructor(config: GoogleConfig);
977
- open(): Promise<void>;
978
- close(): Promise<void>;
979
- commands(): readonly RegisteredCommand[];
980
- ops(): readonly RegisteredOp[];
981
- readFile(p: PathSpec): Promise<Uint8Array>;
982
- readdir(p: PathSpec): Promise<string[]>;
983
- stat(p: PathSpec): Promise<FileStat>;
984
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
985
- getState(): Promise<GDocsResourceState>;
986
- loadState(_state: GDocsResourceState): Promise<void>;
987
- }
988
-
989
- interface GSheetsResourceState {
990
- type: string;
991
- config: GoogleConfigRedacted;
992
- }
993
- declare class GSheetsResource implements Resource {
994
- readonly kind: string;
995
- readonly cachesReads: boolean;
996
- readonly indexTtl: number;
997
- readonly prompt: string;
998
- readonly writePrompt: string;
999
- readonly config: GoogleConfig;
1000
- readonly accessor: GSheetsAccessor;
1001
- readonly index: IndexCacheStore;
1002
- constructor(config: GoogleConfig);
1003
- open(): Promise<void>;
1004
- close(): Promise<void>;
1005
- commands(): readonly RegisteredCommand[];
1006
- ops(): readonly RegisteredOp[];
1007
- readFile(p: PathSpec): Promise<Uint8Array>;
1008
- readdir(p: PathSpec): Promise<string[]>;
1009
- stat(p: PathSpec): Promise<FileStat>;
1010
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
1011
- getState(): Promise<GSheetsResourceState>;
1012
- loadState(_state: GSheetsResourceState): Promise<void>;
1013
- }
1014
-
1015
- interface GSlidesResourceState {
1016
- type: string;
1017
- config: GoogleConfigRedacted;
1018
- }
1019
- declare class GSlidesResource implements Resource {
1020
- readonly kind: string;
1021
- readonly cachesReads: boolean;
1022
- readonly indexTtl: number;
1023
- readonly prompt: string;
1024
- readonly writePrompt: string;
1025
- readonly config: GoogleConfig;
1026
- readonly accessor: GSlidesAccessor;
1027
- readonly index: IndexCacheStore;
1028
- constructor(config: GoogleConfig);
1029
- open(): Promise<void>;
1030
- close(): Promise<void>;
1031
- commands(): readonly RegisteredCommand[];
1032
- ops(): readonly RegisteredOp[];
1033
- readFile(p: PathSpec): Promise<Uint8Array>;
1034
- readdir(p: PathSpec): Promise<string[]>;
1035
- stat(p: PathSpec): Promise<FileStat>;
1036
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
1037
- getState(): Promise<GSlidesResourceState>;
1038
- loadState(_state: GSlidesResourceState): Promise<void>;
1039
- }
1040
-
1041
- interface GDriveResourceState {
1042
- type: string;
1043
- config: GoogleConfigRedacted;
1044
- }
1045
- declare class GDriveResource implements Resource {
1046
- readonly kind: string;
1047
- readonly cachesReads: boolean;
1048
- readonly supportsSnapshot: boolean;
1049
- readonly indexTtl: number;
1050
- readonly prompt: string;
1051
- readonly config: GoogleConfig;
1052
- readonly accessor: GDriveAccessor;
1053
- readonly index: IndexCacheStore;
1054
- constructor(config: GoogleConfig);
1055
- open(): Promise<void>;
1056
- close(): Promise<void>;
1057
- commands(): readonly RegisteredCommand[];
1058
- ops(): readonly RegisteredOp[];
1059
- readFile(p: PathSpec): Promise<Uint8Array>;
1060
- readdir(p: PathSpec): Promise<string[]>;
1061
- stat(p: PathSpec): Promise<FileStat>;
1062
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
1063
- getState(): Promise<GDriveResourceState>;
1064
- loadState(_state: GDriveResourceState): Promise<void>;
1065
- }
1066
-
1067
- interface DropboxConfig {
1068
- clientId: string;
1069
- clientSecret?: string;
1070
- refreshToken: string;
1071
- rootPath?: string;
1072
- contentSearch?: boolean;
1073
- endpoint?: string;
1074
- refreshFn?: (refreshToken: string) => Promise<{
1075
- accessToken: string;
1076
- expiresIn: number;
1077
- }>;
1078
- }
1079
- declare const DropboxConfigSchema: z.ZodObject<{
1080
- clientId: z.ZodString;
1081
- clientSecret: z.ZodOptional<z.ZodString>;
1082
- refreshToken: z.ZodString;
1083
- rootPath: z.ZodOptional<z.ZodString>;
1084
- contentSearch: z.ZodOptional<z.ZodBoolean>;
1085
- endpoint: z.ZodOptional<z.ZodString>;
1086
- }, z.core.$strip>;
1087
- type DropboxConfigRedacted = RedactedConfig<ConfigOf<typeof DropboxConfigSchema>, 'clientSecret' | 'refreshToken'>;
1088
- declare function redactDropboxConfig(config: DropboxConfig): DropboxConfigRedacted;
1089
- declare function normalizeDropboxConfig(input: Record<string, unknown>): DropboxConfig;
1090
-
1091
- interface DropboxResourceState {
1092
- type: string;
1093
- config: DropboxConfigRedacted;
1094
- }
1095
- declare class DropboxResource implements Resource {
1096
- readonly kind: string;
1097
- readonly cachesReads: boolean;
1098
- readonly sizesAlwaysKnown: boolean;
1099
- readonly indexTtl: number;
1100
- readonly prompt: string;
1101
- readonly config: DropboxConfig;
1102
- readonly accessor: DropboxAccessor;
1103
- readonly index: IndexCacheStore;
1104
- constructor(config: DropboxConfig);
1105
- open(): Promise<void>;
1106
- close(): Promise<void>;
1107
- commands(): readonly RegisteredCommand[];
1108
- ops(): readonly RegisteredOp[];
1109
- readFile(p: PathSpec): Promise<Uint8Array>;
1110
- readdir(p: PathSpec): Promise<string[]>;
1111
- stat(p: PathSpec): Promise<FileStat>;
1112
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
1113
- getState(): Promise<DropboxResourceState>;
1114
- loadState(_state: DropboxResourceState): Promise<void>;
1115
- }
1116
-
1117
- interface BoxConfig {
1118
- endpoint?: string;
1119
- rootFolderId?: string;
1120
- contentSearch?: boolean;
1121
- clientId?: string;
1122
- clientSecret?: string;
1123
- refreshToken?: string;
1124
- accessToken?: string;
1125
- refreshFn?: (refreshToken: string) => Promise<{
1126
- accessToken: string;
1127
- refreshToken: string;
1128
- expiresIn: number;
1129
- }>;
1130
- onRefreshTokenRotated?: (newRefreshToken: string) => void | Promise<void>;
1131
- }
1132
- declare const BoxConfigSchema: z.ZodObject<{
1133
- endpoint: z.ZodOptional<z.ZodString>;
1134
- rootFolderId: z.ZodOptional<z.ZodString>;
1135
- contentSearch: z.ZodOptional<z.ZodBoolean>;
1136
- clientId: z.ZodOptional<z.ZodString>;
1137
- clientSecret: z.ZodOptional<z.ZodString>;
1138
- refreshToken: z.ZodOptional<z.ZodString>;
1139
- accessToken: z.ZodOptional<z.ZodString>;
1140
- }, z.core.$strip>;
1141
- type BoxConfigRedacted = RedactedConfig<ConfigOf<typeof BoxConfigSchema>, 'clientSecret' | 'refreshToken' | 'accessToken'>;
1142
- declare function redactBoxConfig(config: BoxConfig): BoxConfigRedacted;
1143
- declare function normalizeBoxConfig(input: Record<string, unknown>): BoxConfig;
1144
-
1145
- interface BoxResourceState {
1146
- type: string;
1147
- config: BoxConfigRedacted;
1148
- }
1149
- declare class BoxResource implements Resource {
1150
- readonly kind: string;
1151
- readonly cachesReads: boolean;
1152
- readonly sizesAlwaysKnown: boolean;
1153
- readonly indexTtl: number;
1154
- readonly prompt: string;
1155
- readonly config: BoxConfig;
1156
- readonly accessor: BoxAccessor;
1157
- readonly index: IndexCacheStore;
1158
- constructor(config: BoxConfig);
1159
- open(): Promise<void>;
1160
- close(): Promise<void>;
1161
- commands(): readonly RegisteredCommand[];
1162
- ops(): readonly RegisteredOp[];
1163
- readFile(p: PathSpec): Promise<Uint8Array>;
1164
- readdir(p: PathSpec): Promise<string[]>;
1165
- stat(p: PathSpec): Promise<FileStat>;
1166
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
1167
- getState(): Promise<BoxResourceState>;
1168
- loadState(_state: BoxResourceState): Promise<void>;
1169
- }
1170
-
1171
- interface GmailResourceState {
1172
- type: string;
1173
- config: GoogleConfigRedacted;
1174
- }
1175
- declare class GmailResource implements Resource {
1176
- readonly kind: string;
1177
- readonly cachesReads: boolean;
1178
- readonly sizesAlwaysKnown: boolean;
1179
- readonly indexTtl: number;
1180
- readonly prompt: string;
1181
- readonly writePrompt: string;
1182
- readonly config: GoogleConfig;
1183
- readonly accessor: GmailAccessor;
1184
- readonly index: IndexCacheStore;
1185
- constructor(config: GoogleConfig);
1186
- open(): Promise<void>;
1187
- close(): Promise<void>;
1188
- commands(): readonly RegisteredCommand[];
1189
- ops(): readonly RegisteredOp[];
1190
- readFile(p: PathSpec): Promise<Uint8Array>;
1191
- readdir(p: PathSpec): Promise<string[]>;
1192
- stat(p: PathSpec): Promise<FileStat>;
1193
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
1194
- getState(): Promise<GmailResourceState>;
1195
- loadState(_state: GmailResourceState): Promise<void>;
1196
- }
1197
-
1198
- interface GCalResourceState {
1199
- type: string;
1200
- config: GoogleConfigRedacted;
1201
- }
1202
- declare class GCalResource implements Resource {
1203
- readonly kind: string;
1204
- readonly cachesReads: boolean;
1205
- readonly indexTtl: number;
1206
- readonly prompt: string;
1207
- readonly writePrompt: string;
1208
- readonly config: GoogleConfig;
1209
- readonly accessor: GCalAccessor;
1210
- readonly index: IndexCacheStore;
1211
- constructor(config: GoogleConfig);
1212
- open(): Promise<void>;
1213
- close(): Promise<void>;
1214
- commands(): readonly RegisteredCommand[];
1215
- ops(): readonly RegisteredOp[];
1216
- readFile(p: PathSpec): Promise<Uint8Array>;
1217
- readdir(p: PathSpec): Promise<string[]>;
1218
- stat(p: PathSpec): Promise<FileStat>;
1219
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
1220
- getState(): Promise<GCalResourceState>;
1221
- loadState(_state: GCalResourceState): Promise<void>;
1222
- }
1223
-
1224
- /**
1225
- * Construct a resource by registry name in the browser runtime.
1226
- * Mirrors Python's `mirage.resource.registry.build_resource` and the
1227
- * Node TS counterpart at `@struktoai/mirage-node/resource/registry`.
1228
- *
1229
- * Configs are normalized from Python-style snake_case to TS camelCase so
1230
- * the same YAML schema works across both runtimes.
1231
- *
1232
- * The S3 entry expects a browser-shaped config — bucket + a
1233
- * `presignedUrlProvider` function. Since functions can't be encoded
1234
- * in JSON/YAML, browser configs are typically constructed
1235
- * programmatically and passed in directly.
1236
- */
1237
- type ResourceFactory = (config: Record<string, unknown>) => Promise<Resource>;
1238
- declare function knownResources(): string[];
1239
- /**
1240
- * Register a custom resource factory under `name`. Builtin names cannot
1241
- * be shadowed; re-registering a custom name replaces it. Mirrors
1242
- * Python's `register_resource` and the Node counterpart.
1243
- */
1244
- declare function register(name: string, factory: ResourceFactory): void;
1245
- declare function buildResource(name: string, config?: Record<string, unknown>): Promise<Resource>;
1246
-
1247
- export { ALIYUN_BROWSER_PROMPT, type AliyunConfig, type AliyunConfigRedacted, AliyunResource, type AliyunResourceState, BACKBLAZE_BROWSER_PROMPT, type BackblazeConfig, type BackblazeConfigRedacted, BackblazeResource, type BackblazeResourceState, type BoxConfig, type BoxConfigRedacted, BoxResource, type BoxResourceState, CEPH_BROWSER_PROMPT, type CephConfig, type CephConfigRedacted, CephResource, type CephResourceState, DIGITALOCEAN_BROWSER_PROMPT, type DigitalOceanConfig, type DigitalOceanConfigRedacted, DigitalOceanResource, type DigitalOceanResourceState, type DiscordConfig, type DiscordConfigRedacted, DiscordResource, type DiscordResourceState, type DropboxConfig, type DropboxConfigRedacted, DropboxResource, type DropboxResourceState, type GCSConfig, type GCSConfigRedacted, GCSResource, type GCSResourceState, GCS_BROWSER_PROMPT, GCalResource, type GCalResourceState, GDocsResource, type GDocsResourceState, GDriveResource, type GDriveResourceState, GSheetsResource, type GSheetsResourceState, GSlidesResource, type GSlidesResourceState, type GitHubCIConfig, type GitHubCIConfigRedacted, GitHubCIResource, type GitHubCIResourceState, type GitHubConfig, type GitHubConfigRedacted, GitHubResource, type GitHubResourceState, GmailResource, type GmailResourceState, HttpMongoDriver, type HttpMongoDriverOptions, type LangfuseConfig, type LangfuseConfigRedacted, LangfuseResource, type LangfuseResourceState, type LinearConfig, type LinearConfigRedacted, LinearResource, type LinearResourceState, MINIO_BROWSER_PROMPT, type MinIOConfig, type MinIOConfigRedacted, MinIOResource, type MinIOResourceState, MongoDBResource, type MongoDBResourceOptions, NeonPgDriver, type NotionConfig, type NotionConfigRedacted, NotionResource, type NotionResourceState, type OCIConfig, type OCIConfigRedacted, OCIResource, type OCIResourceState, OCI_BROWSER_PROMPT, OPFSAccessor, OPFSResource, type OPFSResourceOptions, type OPFSResourceState, OPFS_COMMANDS, OPFS_OPS, OPFS_PROMPT, PostgresResource, type PostgresResourceOptions, QINGSTOR_BROWSER_PROMPT, type QingStorConfig, type QingStorConfigRedacted, QingStorResource, type QingStorResourceState, type R2Config, type R2ConfigRedacted, R2Resource, type R2ResourceState, R2_BROWSER_PROMPT, type ResourceFactory, S3Resource, type S3ResourceState, S3_BROWSER_PROMPT, SCALEWAY_BROWSER_PROMPT, SEAWEEDFS_BROWSER_PROMPT, SUPABASE_BROWSER_PROMPT, type ScalewayConfig, type ScalewayConfigRedacted, ScalewayResource, type ScalewayResourceState, type SeaweedFSConfig, type SeaweedFSConfigRedacted, SeaweedFSResource, type SeaweedFSResourceState, type SlackConfig, type SlackConfigRedacted, SlackResource, type SlackResourceState, type SupabaseConfig, type SupabaseConfigRedacted, SupabaseResource, type SupabaseResourceState, TENCENT_BROWSER_PROMPT, type TencentConfig, type TencentConfigRedacted, TencentResource, type TencentResourceState, type TrelloConfig, type TrelloConfigRedacted, TrelloResource, type TrelloResourceState, WASABI_BROWSER_PROMPT, type WasabiConfig, type WasabiConfigRedacted, WasabiResource, type WasabiResourceState, Workspace, aliyunToS3Config, backblazeToS3Config, buildResource, cephToS3Config, digitalOceanToS3Config, gcsToS3Config, knownResources, minioToS3Config, normalizeBoxConfig, normalizeDropboxConfig, normalizeGitHubCIConfig, normalizeGitHubConfig, ociToS3Config, qingStorToS3Config, r2ToS3Config, redactAliyunConfig, redactBackblazeConfig, redactBoxConfig, redactCephConfig, redactDigitalOceanConfig, redactDiscordConfig, redactDropboxConfig, redactGcsConfig, redactGitHubCIConfig, redactGitHubConfig, redactLangfuseConfig, redactLinearConfig, redactMinIOConfig, redactNotionConfig, redactOciConfig, redactQingStorConfig, redactR2Config, redactScalewayConfig, redactSeaweedFSConfig, redactSlackConfig, redactSupabaseConfig, redactTencentConfig, redactTrelloConfig, redactWasabiConfig, register as registerResourceFactory, resolvedAliyunEndpoint, resolvedBackblazeEndpoint, resolvedDigitalOceanEndpoint, resolvedOciEndpoint, resolvedQingStorEndpoint, resolvedR2Endpoint, resolvedScalewayEndpoint, resolvedSupabaseEndpoint, resolvedTencentEndpoint, resolvedWasabiEndpoint, scalewayToS3Config, seaweedfsToS3Config, supabaseToS3Config, tencentToS3Config, wasabiToS3Config };
2
+ export type { Mem0Config } from '@struktoai/mirage-core/resource/mem0/config';
3
+ export type { OneDriveConfig } from '@struktoai/mirage-core/accessor/onedrive';
4
+ export type { SharePointConfig } from '@struktoai/mirage-core/accessor/sharepoint';
5
+ export { Workspace } from './workspace.ts';
6
+ export { OPFSResource, type OPFSResourceOptions, type OPFSResourceState, } from './resource/opfs/opfs.ts';
7
+ export { OPFS_PROMPT } from './resource/opfs/prompt.ts';
8
+ export { OPFS_OPS } from './ops/opfs/index.ts';
9
+ export { OPFSAccessor } from './accessor/opfs.ts';
10
+ export { OPFS_COMMANDS } from './commands/builtin/opfs/index.ts';
11
+ export { S3Resource, S3_BROWSER_PROMPT, type S3ResourceState } from './resource/s3/s3.ts';
12
+ export { S3_COMMANDS } from '@struktoai/mirage-core/commands/builtin/s3/index';
13
+ export { normalizeS3Config, redactConfig as redactS3Config, type S3BrowserOperation, type S3BrowserPresignedUrlProvider, type S3BrowserSignOptions, type S3Config, type S3ConfigRedacted, } from './resource/s3/config.ts';
14
+ export { GCSResource, type GCSResourceState } from './resource/gcs/gcs.ts';
15
+ export { GCS_BROWSER_PROMPT } from './resource/gcs/prompt.ts';
16
+ export { redactGcsConfig, gcsToS3Config, type GCSConfig, type GCSConfigRedacted, } from './resource/gcs/config.ts';
17
+ export { R2Resource, type R2ResourceState } from './resource/r2/r2.ts';
18
+ export { R2_BROWSER_PROMPT } from './resource/r2/prompt.ts';
19
+ export { redactR2Config, r2ToS3Config, resolvedR2Endpoint, type R2Config, type R2ConfigRedacted, } from './resource/r2/config.ts';
20
+ export { OCIResource, type OCIResourceState } from './resource/oci/oci.ts';
21
+ export { OCI_BROWSER_PROMPT } from './resource/oci/prompt.ts';
22
+ export { redactOciConfig, ociToS3Config, resolvedOciEndpoint, type OCIConfig, type OCIConfigRedacted, } from './resource/oci/config.ts';
23
+ export { SupabaseResource, type SupabaseResourceState } from './resource/supabase/supabase.ts';
24
+ export { SUPABASE_BROWSER_PROMPT } from './resource/supabase/prompt.ts';
25
+ export { redactSupabaseConfig, supabaseToS3Config, resolvedSupabaseEndpoint, type SupabaseConfig, type SupabaseConfigRedacted, } from './resource/supabase/config.ts';
26
+ export { MinIOResource, type MinIOResourceState } from './resource/minio/minio.ts';
27
+ export { MINIO_BROWSER_PROMPT } from './resource/minio/prompt.ts';
28
+ export { redactMinIOConfig, minioToS3Config, type MinIOConfig, type MinIOConfigRedacted, } from './resource/minio/config.ts';
29
+ export { SeaweedFSResource, type SeaweedFSResourceState } from './resource/seaweedfs/seaweedfs.ts';
30
+ export { SEAWEEDFS_BROWSER_PROMPT } from './resource/seaweedfs/prompt.ts';
31
+ export { redactSeaweedFSConfig, seaweedfsToS3Config, type SeaweedFSConfig, type SeaweedFSConfigRedacted, } from './resource/seaweedfs/config.ts';
32
+ export { CephResource, type CephResourceState } from './resource/ceph/ceph.ts';
33
+ export { CEPH_BROWSER_PROMPT } from './resource/ceph/prompt.ts';
34
+ export { redactCephConfig, cephToS3Config, type CephConfig, type CephConfigRedacted, } from './resource/ceph/config.ts';
35
+ export { WasabiResource, type WasabiResourceState } from './resource/wasabi/wasabi.ts';
36
+ export { WASABI_BROWSER_PROMPT } from './resource/wasabi/prompt.ts';
37
+ export { redactWasabiConfig, wasabiToS3Config, resolvedWasabiEndpoint, type WasabiConfig, type WasabiConfigRedacted, } from './resource/wasabi/config.ts';
38
+ export { BackblazeResource, type BackblazeResourceState } from './resource/backblaze/backblaze.ts';
39
+ export { BACKBLAZE_BROWSER_PROMPT } from './resource/backblaze/prompt.ts';
40
+ export { redactBackblazeConfig, backblazeToS3Config, resolvedBackblazeEndpoint, type BackblazeConfig, type BackblazeConfigRedacted, } from './resource/backblaze/config.ts';
41
+ export { DigitalOceanResource, type DigitalOceanResourceState, } from './resource/digitalocean/digitalocean.ts';
42
+ export { DIGITALOCEAN_BROWSER_PROMPT } from './resource/digitalocean/prompt.ts';
43
+ export { redactDigitalOceanConfig, digitalOceanToS3Config, resolvedDigitalOceanEndpoint, type DigitalOceanConfig, type DigitalOceanConfigRedacted, } from './resource/digitalocean/config.ts';
44
+ export { TencentResource, type TencentResourceState } from './resource/tencent/tencent.ts';
45
+ export { TENCENT_BROWSER_PROMPT } from './resource/tencent/prompt.ts';
46
+ export { redactTencentConfig, tencentToS3Config, resolvedTencentEndpoint, type TencentConfig, type TencentConfigRedacted, } from './resource/tencent/config.ts';
47
+ export { AliyunResource, type AliyunResourceState } from './resource/aliyun/aliyun.ts';
48
+ export { ALIYUN_BROWSER_PROMPT } from './resource/aliyun/prompt.ts';
49
+ export { redactAliyunConfig, aliyunToS3Config, resolvedAliyunEndpoint, type AliyunConfig, type AliyunConfigRedacted, } from './resource/aliyun/config.ts';
50
+ export { ScalewayResource, type ScalewayResourceState } from './resource/scaleway/scaleway.ts';
51
+ export { SCALEWAY_BROWSER_PROMPT } from './resource/scaleway/prompt.ts';
52
+ export { redactScalewayConfig, scalewayToS3Config, resolvedScalewayEndpoint, type ScalewayConfig, type ScalewayConfigRedacted, } from './resource/scaleway/config.ts';
53
+ export { QingStorResource, type QingStorResourceState } from './resource/qingstor/qingstor.ts';
54
+ export { QINGSTOR_BROWSER_PROMPT } from './resource/qingstor/prompt.ts';
55
+ export { redactQingStorConfig, qingStorToS3Config, resolvedQingStorEndpoint, type QingStorConfig, type QingStorConfigRedacted, } from './resource/qingstor/config.ts';
56
+ export { SlackResource, type SlackResourceState } from './resource/slack/slack.ts';
57
+ export { normalizeSlackConfig, redactSlackConfig, type SlackConfig, type SlackConfigRedacted, } from './resource/slack/config.ts';
58
+ export { DiscordResource, type DiscordResourceState } from './resource/discord/discord.ts';
59
+ export { normalizeDiscordConfig, redactDiscordConfig, type DiscordConfig, type DiscordConfigRedacted, } from './resource/discord/config.ts';
60
+ export { PostgresResource, type PostgresResourceOptions } from './resource/postgres/postgres.ts';
61
+ export { NeonPgDriver } from './resource/postgres/neon_driver.ts';
62
+ export { MongoDBResource, type MongoDBResourceOptions } from './resource/mongodb/mongodb.ts';
63
+ export { HttpMongoDriver, type HttpMongoDriverOptions } from './resource/mongodb/http_driver.ts';
64
+ export { TrelloResource, type TrelloResourceState } from './resource/trello/trello.ts';
65
+ export { normalizeTrelloConfig, redactTrelloConfig, type TrelloConfig, type TrelloConfigRedacted, } from './resource/trello/config.ts';
66
+ export { LinearResource, type LinearResourceState } from './resource/linear/linear.ts';
67
+ export { normalizeLinearConfig, redactLinearConfig, } from '@struktoai/mirage-core/core/linear/config';
68
+ export type { LinearConfig, LinearConfigRedacted } from '@struktoai/mirage-core/core/linear/config';
69
+ export { NotionResource, type NotionResourceState } from './resource/notion/notion.ts';
70
+ export { normalizeNotionConfig, redactNotionConfig, type NotionConfig, type NotionConfigRedacted, } from './resource/notion/config.ts';
71
+ export { LangfuseResource, type LangfuseResourceState } from './resource/langfuse/langfuse.ts';
72
+ export { normalizeLangfuseConfig, redactLangfuseConfig, type LangfuseConfig, type LangfuseConfigRedacted, } from './resource/langfuse/config.ts';
73
+ export { GitHubResource, type GitHubResourceState } from './resource/github/github.ts';
74
+ export { normalizeGitHubConfig, redactGitHubConfig, type GitHubConfig, type GitHubConfigRedacted, } from '@struktoai/mirage-core/core/github/config';
75
+ export { GDocsResource, type GDocsResourceState } from './resource/gdocs/gdocs.ts';
76
+ export { normalizeGDocsConfig, redactGDocsConfig, type GDocsConfig, type GDocsConfigRedacted, } from '@struktoai/mirage-core/resource/gdocs/config';
77
+ export { GSheetsResource, type GSheetsResourceState } from './resource/gsheets/gsheets.ts';
78
+ export { normalizeGSheetsConfig, redactGSheetsConfig, type GSheetsConfig, type GSheetsConfigRedacted, } from '@struktoai/mirage-core/resource/gsheets/config';
79
+ export { GSlidesResource, type GSlidesResourceState } from './resource/gslides/gslides.ts';
80
+ export { normalizeGSlidesConfig, redactGSlidesConfig, type GSlidesConfig, type GSlidesConfigRedacted, } from '@struktoai/mirage-core/resource/gslides/config';
81
+ export { GDriveResource, type GDriveResourceState } from './resource/gdrive/gdrive.ts';
82
+ export { normalizeGDriveConfig, redactGDriveConfig, type GDriveConfig, type GDriveConfigRedacted, } from '@struktoai/mirage-core/resource/gdrive/config';
83
+ export { DropboxResource, type DropboxResourceState } from './resource/dropbox/dropbox.ts';
84
+ export { normalizeDropboxConfig, redactDropboxConfig, type DropboxConfig, type DropboxConfigRedacted, } from './resource/dropbox/config.ts';
85
+ export { BoxResource, type BoxResourceState } from './resource/box/box.ts';
86
+ export { normalizeBoxConfig, redactBoxConfig, type BoxConfig, type BoxConfigRedacted, } from './resource/box/config.ts';
87
+ export { GmailResource, type GmailResourceState } from './resource/gmail/gmail.ts';
88
+ export { normalizeGmailConfig, redactGmailConfig, type GmailConfig, type GmailConfigRedacted, } from '@struktoai/mirage-core/resource/gmail/config';
89
+ export { GCalResource, type GCalResourceState } from './resource/gcal/gcal.ts';
90
+ export { normalizeGCalConfig, redactGCalConfig, type GCalConfig, type GCalConfigRedacted, } from '@struktoai/mirage-core/resource/gcal/config';
91
+ export { RedisResource, type RedisResourceOptions, type RedisResourceState, } from './resource/redis/redis.ts';
92
+ export { UpstashRedisStore, type UpstashRedisStoreOptions } from './resource/redis/store.ts';
93
+ export { REDIS_PROMPT } from '@struktoai/mirage-core/resource/redis/prompt';
94
+ export { REDIS_OPS } from '@struktoai/mirage-core/ops/redis/index';
95
+ export { REDIS_COMMANDS } from '@struktoai/mirage-core/commands/builtin/redis/index';
96
+ export { RedisAccessor } from '@struktoai/mirage-core/accessor/redis';
97
+ export { buildResource, knownResources, register as registerResourceFactory, type ResourceFactory, } from './resource/registry.ts';
98
+ export { BaseResource, recordResourceRef, resourceRefOf, } from '@struktoai/mirage-core/resource/base';
99
+ export { op, type RegisteredOp } from '@struktoai/mirage-core/ops/registry';
100
+ export { makeGenericOps } from '@struktoai/mirage-core/ops/generic/factory';
101
+ export { makeGenericCommands } from '@struktoai/mirage-core/commands/builtin/generic_bind/index';
102
+ export { FlagView, type FlagValue, UsageStyle } from '@struktoai/mirage-core/commands/spec/types';
103
+ export type { CLIDoors } from '@struktoai/mirage-core/commands/cli/types';
104
+ export { UsageError } from '@struktoai/mirage-core/commands/errors';
105
+ export { PolicyDenied, PolicyError } from '@struktoai/mirage-core/policy/errors';
106
+ export { type Ask, type AskHandler, type Decision, Decisions, type Deny, type Explanation, Outcome, Scope, type SessionContext, } from '@struktoai/mirage-core/policy/index';
107
+ export { LanguageRuntime } from '@struktoai/mirage-core/runtime/language';
108
+ export { RemoteSandbox } from '@struktoai/mirage-core/runtime/sandbox/base';
109
+ export type { E2BConfig } from './runtime/sandbox/e2b/config.ts';
110
+ export type { HomeConfig, RuntimeConfig } from '@struktoai/mirage-core/runtime/config';
111
+ export { knownRuntimes, registerRuntime } from '@struktoai/mirage-core/runtime/table';
112
+ export { type MountResolver, PrefixResolver } from '@struktoai/mirage-core/runtime/resolver';
113
+ export { RuntimeVFS } from '@struktoai/mirage-core/runtime/vfs';
114
+ export { CrossMountError } from '@struktoai/mirage-core/runtime/errors';
115
+ export type { RunArgs, RuntimeReach } from '@struktoai/mirage-core/runtime/types';
116
+ export { DenyResult, type RouteContext, type RoutePolicy, RouteResult, } from '@struktoai/mirage-core/runtime/routing/types';
117
+ export { type ExecuteOptions, ExecuteResult, type WorkspaceOptions, } from '@struktoai/mirage-core/workspace/workspace/types';
118
+ export { Ops } from '@struktoai/mirage-core/ops/ops';
119
+ export { Namespace } from '@struktoai/mirage-core/workspace/mount/namespace/namespace';
120
+ export { WandbResource } from '@struktoai/mirage-core/resource/wandb/wandb';
121
+ export { normalizeWandbConfig, type WandbConfig } from '@struktoai/mirage-core/core/wandb/config';
122
+ //# sourceMappingURL=index.d.ts.map