@struktoai/mirage-node 0.0.5 → 0.0.6

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 (1787) hide show
  1. package/README.md +137 -79
  2. package/dist/accessor/disk.d.ts +6 -0
  3. package/dist/accessor/disk.d.ts.map +1 -0
  4. package/dist/accessor/disk.js +22 -0
  5. package/dist/accessor/disk.js.map +1 -0
  6. package/dist/accessor/email.d.ts +11 -0
  7. package/dist/accessor/email.d.ts.map +1 -0
  8. package/dist/accessor/email.js +57 -0
  9. package/dist/accessor/email.js.map +1 -0
  10. package/dist/accessor/gridfs.d.ts +13 -0
  11. package/dist/accessor/gridfs.d.ts.map +1 -0
  12. package/dist/accessor/gridfs.js +48 -0
  13. package/dist/accessor/gridfs.js.map +1 -0
  14. package/dist/accessor/hf.d.ts +38 -0
  15. package/dist/accessor/hf.d.ts.map +1 -0
  16. package/dist/accessor/hf.js +101 -0
  17. package/dist/accessor/hf.js.map +1 -0
  18. package/dist/accessor/hf_hub.d.ts +80 -0
  19. package/dist/accessor/hf_hub.d.ts.map +1 -0
  20. package/dist/accessor/hf_hub.js +122 -0
  21. package/dist/accessor/hf_hub.js.map +1 -0
  22. package/dist/accessor/nextcloud.d.ts +12 -0
  23. package/dist/accessor/nextcloud.d.ts.map +1 -0
  24. package/dist/accessor/nextcloud.js +26 -0
  25. package/dist/accessor/nextcloud.js.map +1 -0
  26. package/dist/accessor/ssh.d.ts +14 -0
  27. package/dist/accessor/ssh.d.ts.map +1 -0
  28. package/dist/accessor/ssh.js +105 -0
  29. package/dist/accessor/ssh.js.map +1 -0
  30. package/dist/cache/file/add.lua +16 -0
  31. package/dist/cache/file/redis.d.ts +41 -0
  32. package/dist/cache/file/redis.d.ts.map +1 -0
  33. package/dist/cache/file/redis.js +191 -0
  34. package/dist/cache/file/redis.js.map +1 -0
  35. package/dist/commands/builtin/disk/index.d.ts +3 -0
  36. package/dist/commands/builtin/disk/index.d.ts.map +1 -0
  37. package/dist/commands/builtin/disk/index.js +20 -0
  38. package/dist/commands/builtin/disk/index.js.map +1 -0
  39. package/dist/commands/builtin/disk/io.d.ts +4 -0
  40. package/dist/commands/builtin/disk/io.d.ts.map +1 -0
  41. package/dist/commands/builtin/disk/io.js +57 -0
  42. package/dist/commands/builtin/disk/io.js.map +1 -0
  43. package/dist/commands/builtin/email/_provision.d.ts +7 -0
  44. package/dist/commands/builtin/email/_provision.d.ts.map +1 -0
  45. package/dist/commands/builtin/email/_provision.js +42 -0
  46. package/dist/commands/builtin/email/_provision.js.map +1 -0
  47. package/dist/commands/builtin/email/find.d.ts +2 -0
  48. package/dist/commands/builtin/email/find.d.ts.map +1 -0
  49. package/dist/commands/builtin/email/find.js +51 -0
  50. package/dist/commands/builtin/email/find.js.map +1 -0
  51. package/dist/commands/builtin/email/grep.d.ts +4 -0
  52. package/dist/commands/builtin/email/grep.d.ts.map +1 -0
  53. package/dist/commands/builtin/email/grep.js +108 -0
  54. package/dist/commands/builtin/email/grep.js.map +1 -0
  55. package/dist/commands/builtin/email/index.d.ts +3 -0
  56. package/dist/commands/builtin/email/index.d.ts.map +1 -0
  57. package/dist/commands/builtin/email/index.js +31 -0
  58. package/dist/commands/builtin/email/index.js.map +1 -0
  59. package/dist/commands/builtin/email/io.d.ts +4 -0
  60. package/dist/commands/builtin/email/io.d.ts.map +1 -0
  61. package/dist/commands/builtin/email/io.js +28 -0
  62. package/dist/commands/builtin/email/io.js.map +1 -0
  63. package/dist/commands/builtin/email/rg.d.ts +2 -0
  64. package/dist/commands/builtin/email/rg.d.ts.map +1 -0
  65. package/dist/commands/builtin/email/rg.js +93 -0
  66. package/dist/commands/builtin/email/rg.js.map +1 -0
  67. package/dist/commands/builtin/gridfs/index.d.ts +3 -0
  68. package/dist/commands/builtin/gridfs/index.d.ts.map +1 -0
  69. package/dist/commands/builtin/gridfs/index.js +24 -0
  70. package/dist/commands/builtin/gridfs/index.js.map +1 -0
  71. package/dist/commands/builtin/gridfs/io.d.ts +4 -0
  72. package/dist/commands/builtin/gridfs/io.d.ts.map +1 -0
  73. package/dist/commands/builtin/gridfs/io.js +54 -0
  74. package/dist/commands/builtin/gridfs/io.js.map +1 -0
  75. package/dist/commands/builtin/hf/find.d.ts +2 -0
  76. package/dist/commands/builtin/hf/find.d.ts.map +1 -0
  77. package/dist/commands/builtin/hf/find.js +31 -0
  78. package/dist/commands/builtin/hf/find.js.map +1 -0
  79. package/dist/commands/builtin/hf/index.d.ts +3 -0
  80. package/dist/commands/builtin/hf/index.d.ts.map +1 -0
  81. package/dist/commands/builtin/hf/index.js +25 -0
  82. package/dist/commands/builtin/hf/index.js.map +1 -0
  83. package/dist/commands/builtin/hf/io.d.ts +4 -0
  84. package/dist/commands/builtin/hf/io.d.ts.map +1 -0
  85. package/dist/commands/builtin/hf/io.js +44 -0
  86. package/dist/commands/builtin/hf/io.js.map +1 -0
  87. package/dist/commands/builtin/hf_hub/index.d.ts +4 -0
  88. package/dist/commands/builtin/hf_hub/index.d.ts.map +1 -0
  89. package/dist/commands/builtin/hf_hub/index.js +30 -0
  90. package/dist/commands/builtin/hf_hub/index.js.map +1 -0
  91. package/dist/commands/builtin/hf_hub/io.d.ts +4 -0
  92. package/dist/commands/builtin/hf_hub/io.d.ts.map +1 -0
  93. package/dist/commands/builtin/hf_hub/io.js +54 -0
  94. package/dist/commands/builtin/hf_hub/io.js.map +1 -0
  95. package/dist/commands/builtin/nextcloud/index.d.ts +3 -0
  96. package/dist/commands/builtin/nextcloud/index.d.ts.map +1 -0
  97. package/dist/commands/builtin/nextcloud/index.js +7 -0
  98. package/dist/commands/builtin/nextcloud/index.js.map +1 -0
  99. package/dist/commands/builtin/nextcloud/io.d.ts +4 -0
  100. package/dist/commands/builtin/nextcloud/io.d.ts.map +1 -0
  101. package/dist/commands/builtin/nextcloud/io.js +41 -0
  102. package/dist/commands/builtin/nextcloud/io.js.map +1 -0
  103. package/dist/commands/builtin/ssh/index.d.ts +3 -0
  104. package/dist/commands/builtin/ssh/index.d.ts.map +1 -0
  105. package/dist/commands/builtin/ssh/index.js +20 -0
  106. package/dist/commands/builtin/ssh/index.js.map +1 -0
  107. package/dist/commands/builtin/ssh/io.d.ts +4 -0
  108. package/dist/commands/builtin/ssh/io.d.ts.map +1 -0
  109. package/dist/commands/builtin/ssh/io.js +58 -0
  110. package/dist/commands/builtin/ssh/io.js.map +1 -0
  111. package/dist/commands/cli/builtin/hf/accessor.d.ts +37 -0
  112. package/dist/commands/cli/builtin/hf/accessor.d.ts.map +1 -0
  113. package/dist/commands/cli/builtin/hf/accessor.js +80 -0
  114. package/dist/commands/cli/builtin/hf/accessor.js.map +1 -0
  115. package/dist/commands/cli/builtin/hf/auth.d.ts +14 -0
  116. package/dist/commands/cli/builtin/hf/auth.d.ts.map +1 -0
  117. package/dist/commands/cli/builtin/hf/auth.js +77 -0
  118. package/dist/commands/cli/builtin/hf/auth.js.map +1 -0
  119. package/dist/commands/cli/builtin/hf/download.d.ts +46 -0
  120. package/dist/commands/cli/builtin/hf/download.d.ts.map +1 -0
  121. package/dist/commands/cli/builtin/hf/download.js +296 -0
  122. package/dist/commands/cli/builtin/hf/download.js.map +1 -0
  123. package/dist/commands/cli/builtin/hf/env.d.ts +12 -0
  124. package/dist/commands/cli/builtin/hf/env.d.ts.map +1 -0
  125. package/dist/commands/cli/builtin/hf/env.js +37 -0
  126. package/dist/commands/cli/builtin/hf/env.js.map +1 -0
  127. package/dist/commands/cli/builtin/hf/files.d.ts +11 -0
  128. package/dist/commands/cli/builtin/hf/files.d.ts.map +1 -0
  129. package/dist/commands/cli/builtin/hf/files.js +43 -0
  130. package/dist/commands/cli/builtin/hf/files.js.map +1 -0
  131. package/dist/commands/cli/builtin/hf/index.d.ts +3 -0
  132. package/dist/commands/cli/builtin/hf/index.d.ts.map +1 -0
  133. package/dist/commands/cli/builtin/hf/index.js +286 -0
  134. package/dist/commands/cli/builtin/hf/index.js.map +1 -0
  135. package/dist/commands/cli/builtin/hf/repo.d.ts +16 -0
  136. package/dist/commands/cli/builtin/hf/repo.d.ts.map +1 -0
  137. package/dist/commands/cli/builtin/hf/repo.js +97 -0
  138. package/dist/commands/cli/builtin/hf/repo.js.map +1 -0
  139. package/dist/commands/cli/builtin/hf/upload.d.ts +21 -0
  140. package/dist/commands/cli/builtin/hf/upload.d.ts.map +1 -0
  141. package/dist/commands/cli/builtin/hf/upload.js +178 -0
  142. package/dist/commands/cli/builtin/hf/upload.js.map +1 -0
  143. package/dist/commands/cli/builtin/himalaya/builder.d.ts +65 -0
  144. package/dist/commands/cli/builtin/himalaya/builder.d.ts.map +1 -0
  145. package/dist/commands/cli/builtin/himalaya/builder.js +197 -0
  146. package/dist/commands/cli/builtin/himalaya/builder.js.map +1 -0
  147. package/dist/commands/cli/builtin/himalaya/compose.d.ts +4 -0
  148. package/dist/commands/cli/builtin/himalaya/compose.d.ts.map +1 -0
  149. package/dist/commands/cli/builtin/himalaya/compose.js +19 -0
  150. package/dist/commands/cli/builtin/himalaya/compose.js.map +1 -0
  151. package/dist/commands/cli/builtin/himalaya/deliver.d.ts +49 -0
  152. package/dist/commands/cli/builtin/himalaya/deliver.d.ts.map +1 -0
  153. package/dist/commands/cli/builtin/himalaya/deliver.js +94 -0
  154. package/dist/commands/cli/builtin/himalaya/deliver.js.map +1 -0
  155. package/dist/commands/cli/builtin/himalaya/forward.d.ts +4 -0
  156. package/dist/commands/cli/builtin/himalaya/forward.d.ts.map +1 -0
  157. package/dist/commands/cli/builtin/himalaya/forward.js +37 -0
  158. package/dist/commands/cli/builtin/himalaya/forward.js.map +1 -0
  159. package/dist/commands/cli/builtin/himalaya/index.d.ts +3 -0
  160. package/dist/commands/cli/builtin/himalaya/index.d.ts.map +1 -0
  161. package/dist/commands/cli/builtin/himalaya/index.js +201 -0
  162. package/dist/commands/cli/builtin/himalaya/index.js.map +1 -0
  163. package/dist/commands/cli/builtin/himalaya/list.d.ts +5 -0
  164. package/dist/commands/cli/builtin/himalaya/list.d.ts.map +1 -0
  165. package/dist/commands/cli/builtin/himalaya/list.js +41 -0
  166. package/dist/commands/cli/builtin/himalaya/list.js.map +1 -0
  167. package/dist/commands/cli/builtin/himalaya/query.d.ts +38 -0
  168. package/dist/commands/cli/builtin/himalaya/query.d.ts.map +1 -0
  169. package/dist/commands/cli/builtin/himalaya/query.js +296 -0
  170. package/dist/commands/cli/builtin/himalaya/query.js.map +1 -0
  171. package/dist/commands/cli/builtin/himalaya/read.d.ts +4 -0
  172. package/dist/commands/cli/builtin/himalaya/read.d.ts.map +1 -0
  173. package/dist/commands/cli/builtin/himalaya/read.js +40 -0
  174. package/dist/commands/cli/builtin/himalaya/read.js.map +1 -0
  175. package/dist/commands/cli/builtin/himalaya/reply.d.ts +4 -0
  176. package/dist/commands/cli/builtin/himalaya/reply.d.ts.map +1 -0
  177. package/dist/commands/cli/builtin/himalaya/reply.js +37 -0
  178. package/dist/commands/cli/builtin/himalaya/reply.js.map +1 -0
  179. package/dist/commands/cli/builtin/himalaya/search.d.ts +4 -0
  180. package/dist/commands/cli/builtin/himalaya/search.d.ts.map +1 -0
  181. package/dist/commands/cli/builtin/himalaya/search.js +44 -0
  182. package/dist/commands/cli/builtin/himalaya/search.js.map +1 -0
  183. package/dist/commands/cli/builtin/himalaya/send.d.ts +4 -0
  184. package/dist/commands/cli/builtin/himalaya/send.d.ts.map +1 -0
  185. package/dist/commands/cli/builtin/himalaya/send.js +43 -0
  186. package/dist/commands/cli/builtin/himalaya/send.js.map +1 -0
  187. package/dist/commands/cli/builtin/himalaya/smtp.d.ts +20 -0
  188. package/dist/commands/cli/builtin/himalaya/smtp.d.ts.map +1 -0
  189. package/dist/commands/cli/builtin/himalaya/smtp.js +116 -0
  190. package/dist/commands/cli/builtin/himalaya/smtp.js.map +1 -0
  191. package/dist/commands/cli/builtin/himalaya/util.d.ts +17 -0
  192. package/dist/commands/cli/builtin/himalaya/util.d.ts.map +1 -0
  193. package/dist/commands/cli/builtin/himalaya/util.js +120 -0
  194. package/dist/commands/cli/builtin/himalaya/util.js.map +1 -0
  195. package/dist/commands/native_fixture.d.ts +25 -0
  196. package/dist/commands/native_fixture.d.ts.map +1 -0
  197. package/dist/commands/native_fixture.js +186 -0
  198. package/dist/commands/native_fixture.js.map +1 -0
  199. package/dist/compression_codecs.d.ts +2 -0
  200. package/dist/compression_codecs.d.ts.map +1 -0
  201. package/dist/compression_codecs.js +34 -0
  202. package/dist/compression_codecs.js.map +1 -0
  203. package/dist/config.d.ts +191 -0
  204. package/dist/config.d.ts.map +1 -0
  205. package/dist/config.js +967 -0
  206. package/dist/config.js.map +1 -0
  207. package/dist/core/disk/append.d.ts +4 -0
  208. package/dist/core/disk/append.d.ts.map +1 -0
  209. package/dist/core/disk/append.js +33 -0
  210. package/dist/core/disk/append.js.map +1 -0
  211. package/dist/core/disk/constants.d.ts +3 -0
  212. package/dist/core/disk/constants.d.ts.map +1 -0
  213. package/dist/core/disk/constants.js +16 -0
  214. package/dist/core/disk/constants.js.map +1 -0
  215. package/dist/core/disk/copy.d.ts +4 -0
  216. package/dist/core/disk/copy.d.ts.map +1 -0
  217. package/dist/core/disk/copy.js +38 -0
  218. package/dist/core/disk/copy.js.map +1 -0
  219. package/dist/core/disk/create.d.ts +4 -0
  220. package/dist/core/disk/create.d.ts.map +1 -0
  221. package/dist/core/disk/create.js +18 -0
  222. package/dist/core/disk/create.js.map +1 -0
  223. package/dist/core/disk/dest.d.ts +4 -0
  224. package/dist/core/disk/dest.d.ts.map +1 -0
  225. package/dist/core/disk/dest.js +44 -0
  226. package/dist/core/disk/dest.js.map +1 -0
  227. package/dist/core/disk/du/entries.d.ts +4 -0
  228. package/dist/core/disk/du/entries.d.ts.map +1 -0
  229. package/dist/core/disk/du/entries.js +25 -0
  230. package/dist/core/disk/du/entries.js.map +1 -0
  231. package/dist/core/disk/du/index.d.ts +3 -0
  232. package/dist/core/disk/du/index.d.ts.map +1 -0
  233. package/dist/core/disk/du/index.js +16 -0
  234. package/dist/core/disk/du/index.js.map +1 -0
  235. package/dist/core/disk/du/size.d.ts +4 -0
  236. package/dist/core/disk/du/size.d.ts.map +1 -0
  237. package/dist/core/disk/du/size.js +21 -0
  238. package/dist/core/disk/du/size.js.map +1 -0
  239. package/dist/core/disk/du/walk.d.ts +4 -0
  240. package/dist/core/disk/du/walk.d.ts.map +1 -0
  241. package/dist/core/disk/du/walk.js +82 -0
  242. package/dist/core/disk/du/walk.js.map +1 -0
  243. package/dist/core/disk/entry.d.ts +11 -0
  244. package/dist/core/disk/entry.d.ts.map +1 -0
  245. package/dist/core/disk/entry.js +42 -0
  246. package/dist/core/disk/entry.js.map +1 -0
  247. package/dist/core/disk/errors.d.ts +3 -0
  248. package/dist/core/disk/errors.d.ts.map +1 -0
  249. package/dist/core/disk/errors.js +31 -0
  250. package/dist/core/disk/errors.js.map +1 -0
  251. package/dist/core/disk/exists.d.ts +4 -0
  252. package/dist/core/disk/exists.d.ts.map +1 -0
  253. package/dist/core/disk/exists.js +26 -0
  254. package/dist/core/disk/exists.js.map +1 -0
  255. package/dist/core/disk/find.d.ts +21 -0
  256. package/dist/core/disk/find.d.ts.map +1 -0
  257. package/dist/core/disk/find.js +143 -0
  258. package/dist/core/disk/find.js.map +1 -0
  259. package/dist/core/disk/mkdir.d.ts +4 -0
  260. package/dist/core/disk/mkdir.d.ts.map +1 -0
  261. package/dist/core/disk/mkdir.js +51 -0
  262. package/dist/core/disk/mkdir.js.map +1 -0
  263. package/dist/core/disk/read.d.ts +18 -0
  264. package/dist/core/disk/read.d.ts.map +1 -0
  265. package/dist/core/disk/read.js +92 -0
  266. package/dist/core/disk/read.js.map +1 -0
  267. package/dist/core/disk/readdir.d.ts +5 -0
  268. package/dist/core/disk/readdir.d.ts.map +1 -0
  269. package/dist/core/disk/readdir.js +73 -0
  270. package/dist/core/disk/readdir.js.map +1 -0
  271. package/dist/core/disk/rename.d.ts +4 -0
  272. package/dist/core/disk/rename.d.ts.map +1 -0
  273. package/dist/core/disk/rename.js +36 -0
  274. package/dist/core/disk/rename.js.map +1 -0
  275. package/dist/core/disk/rm.d.ts +4 -0
  276. package/dist/core/disk/rm.d.ts.map +1 -0
  277. package/dist/core/disk/rm.js +22 -0
  278. package/dist/core/disk/rm.js.map +1 -0
  279. package/dist/core/disk/rmdir.d.ts +4 -0
  280. package/dist/core/disk/rmdir.d.ts.map +1 -0
  281. package/dist/core/disk/rmdir.js +29 -0
  282. package/dist/core/disk/rmdir.js.map +1 -0
  283. package/dist/core/disk/set_attrs.d.ts +11 -0
  284. package/dist/core/disk/set_attrs.d.ts.map +1 -0
  285. package/dist/core/disk/set_attrs.js +53 -0
  286. package/dist/core/disk/set_attrs.js.map +1 -0
  287. package/dist/core/disk/stat.d.ts +5 -0
  288. package/dist/core/disk/stat.d.ts.map +1 -0
  289. package/dist/core/disk/stat.js +58 -0
  290. package/dist/core/disk/stat.js.map +1 -0
  291. package/dist/core/disk/stream.d.ts +4 -0
  292. package/dist/core/disk/stream.d.ts.map +1 -0
  293. package/dist/core/disk/stream.js +40 -0
  294. package/dist/core/disk/stream.js.map +1 -0
  295. package/dist/core/disk/truncate.d.ts +4 -0
  296. package/dist/core/disk/truncate.d.ts.map +1 -0
  297. package/dist/core/disk/truncate.js +40 -0
  298. package/dist/core/disk/truncate.js.map +1 -0
  299. package/dist/core/disk/unlink.d.ts +4 -0
  300. package/dist/core/disk/unlink.d.ts.map +1 -0
  301. package/dist/core/disk/unlink.js +29 -0
  302. package/dist/core/disk/unlink.js.map +1 -0
  303. package/dist/core/disk/utils.d.ts +3 -0
  304. package/dist/core/disk/utils.d.ts.map +1 -0
  305. package/dist/core/disk/utils.js +26 -0
  306. package/dist/core/disk/utils.js.map +1 -0
  307. package/dist/core/disk/watch/constants.d.ts +3 -0
  308. package/dist/core/disk/watch/constants.d.ts.map +1 -0
  309. package/dist/core/disk/watch/constants.js +20 -0
  310. package/dist/core/disk/watch/constants.js.map +1 -0
  311. package/dist/core/disk/watch/hook.d.ts +54 -0
  312. package/dist/core/disk/watch/hook.d.ts.map +1 -0
  313. package/dist/core/disk/watch/hook.js +108 -0
  314. package/dist/core/disk/watch/hook.js.map +1 -0
  315. package/dist/core/disk/watch/index.d.ts +2 -0
  316. package/dist/core/disk/watch/index.d.ts.map +1 -0
  317. package/dist/core/disk/watch/index.js +15 -0
  318. package/dist/core/disk/watch/index.js.map +1 -0
  319. package/dist/core/disk/watch/walk.d.ts +22 -0
  320. package/dist/core/disk/watch/walk.d.ts.map +1 -0
  321. package/dist/core/disk/watch/walk.js +100 -0
  322. package/dist/core/disk/watch/walk.js.map +1 -0
  323. package/dist/core/disk/write.d.ts +4 -0
  324. package/dist/core/disk/write.d.ts.map +1 -0
  325. package/dist/core/disk/write.js +36 -0
  326. package/dist/core/disk/write.js.map +1 -0
  327. package/dist/core/email/_parse.d.ts +32 -0
  328. package/dist/core/email/_parse.d.ts.map +1 -0
  329. package/dist/core/email/_parse.js +87 -0
  330. package/dist/core/email/_parse.js.map +1 -0
  331. package/dist/core/email/client.d.ts +58 -0
  332. package/dist/core/email/client.d.ts.map +1 -0
  333. package/dist/core/email/client.js +328 -0
  334. package/dist/core/email/client.js.map +1 -0
  335. package/dist/core/email/config.d.ts +21 -0
  336. package/dist/core/email/config.d.ts.map +1 -0
  337. package/dist/core/email/config.js +55 -0
  338. package/dist/core/email/config.js.map +1 -0
  339. package/dist/core/email/folders.d.ts +3 -0
  340. package/dist/core/email/folders.d.ts.map +1 -0
  341. package/dist/core/email/folders.js +18 -0
  342. package/dist/core/email/folders.js.map +1 -0
  343. package/dist/core/email/read.d.ts +5 -0
  344. package/dist/core/email/read.d.ts.map +1 -0
  345. package/dist/core/email/read.js +41 -0
  346. package/dist/core/email/read.js.map +1 -0
  347. package/dist/core/email/readdir.d.ts +16 -0
  348. package/dist/core/email/readdir.d.ts.map +1 -0
  349. package/dist/core/email/readdir.js +222 -0
  350. package/dist/core/email/readdir.js.map +1 -0
  351. package/dist/core/email/render.d.ts +5 -0
  352. package/dist/core/email/render.d.ts.map +1 -0
  353. package/dist/core/email/render.js +42 -0
  354. package/dist/core/email/render.js.map +1 -0
  355. package/dist/core/email/scope.d.ts +3 -0
  356. package/dist/core/email/scope.d.ts.map +1 -0
  357. package/dist/core/email/scope.js +49 -0
  358. package/dist/core/email/scope.js.map +1 -0
  359. package/dist/core/email/search.d.ts +5 -0
  360. package/dist/core/email/search.d.ts.map +1 -0
  361. package/dist/core/email/search.js +67 -0
  362. package/dist/core/email/search.js.map +1 -0
  363. package/dist/core/email/stat.d.ts +5 -0
  364. package/dist/core/email/stat.d.ts.map +1 -0
  365. package/dist/core/email/stat.js +56 -0
  366. package/dist/core/email/stat.js.map +1 -0
  367. package/dist/core/gridfs/client.d.ts +37 -0
  368. package/dist/core/gridfs/client.d.ts.map +1 -0
  369. package/dist/core/gridfs/client.js +129 -0
  370. package/dist/core/gridfs/client.js.map +1 -0
  371. package/dist/core/gridfs/constants.d.ts +2 -0
  372. package/dist/core/gridfs/constants.d.ts.map +1 -0
  373. package/dist/core/gridfs/constants.js +15 -0
  374. package/dist/core/gridfs/constants.js.map +1 -0
  375. package/dist/core/gridfs/copy.d.ts +2 -0
  376. package/dist/core/gridfs/copy.d.ts.map +1 -0
  377. package/dist/core/gridfs/copy.js +18 -0
  378. package/dist/core/gridfs/copy.js.map +1 -0
  379. package/dist/core/gridfs/create.d.ts +2 -0
  380. package/dist/core/gridfs/create.d.ts.map +1 -0
  381. package/dist/core/gridfs/create.js +17 -0
  382. package/dist/core/gridfs/create.js.map +1 -0
  383. package/dist/core/gridfs/driver.d.ts +20 -0
  384. package/dist/core/gridfs/driver.d.ts.map +1 -0
  385. package/dist/core/gridfs/driver.js +284 -0
  386. package/dist/core/gridfs/driver.js.map +1 -0
  387. package/dist/core/gridfs/du/entries.d.ts +2 -0
  388. package/dist/core/gridfs/du/entries.d.ts.map +1 -0
  389. package/dist/core/gridfs/du/entries.js +17 -0
  390. package/dist/core/gridfs/du/entries.js.map +1 -0
  391. package/dist/core/gridfs/du/index.d.ts +3 -0
  392. package/dist/core/gridfs/du/index.d.ts.map +1 -0
  393. package/dist/core/gridfs/du/index.js +16 -0
  394. package/dist/core/gridfs/du/index.js.map +1 -0
  395. package/dist/core/gridfs/du/size.d.ts +2 -0
  396. package/dist/core/gridfs/du/size.d.ts.map +1 -0
  397. package/dist/core/gridfs/du/size.js +17 -0
  398. package/dist/core/gridfs/du/size.js.map +1 -0
  399. package/dist/core/gridfs/exists.d.ts +2 -0
  400. package/dist/core/gridfs/exists.d.ts.map +1 -0
  401. package/dist/core/gridfs/exists.js +17 -0
  402. package/dist/core/gridfs/exists.js.map +1 -0
  403. package/dist/core/gridfs/find.d.ts +2 -0
  404. package/dist/core/gridfs/find.d.ts.map +1 -0
  405. package/dist/core/gridfs/find.js +17 -0
  406. package/dist/core/gridfs/find.js.map +1 -0
  407. package/dist/core/gridfs/mkdir.d.ts +2 -0
  408. package/dist/core/gridfs/mkdir.d.ts.map +1 -0
  409. package/dist/core/gridfs/mkdir.js +17 -0
  410. package/dist/core/gridfs/mkdir.js.map +1 -0
  411. package/dist/core/gridfs/read.d.ts +12 -0
  412. package/dist/core/gridfs/read.d.ts.map +1 -0
  413. package/dist/core/gridfs/read.js +99 -0
  414. package/dist/core/gridfs/read.js.map +1 -0
  415. package/dist/core/gridfs/readdir.d.ts +2 -0
  416. package/dist/core/gridfs/readdir.d.ts.map +1 -0
  417. package/dist/core/gridfs/readdir.js +17 -0
  418. package/dist/core/gridfs/readdir.js.map +1 -0
  419. package/dist/core/gridfs/rename.d.ts +2 -0
  420. package/dist/core/gridfs/rename.d.ts.map +1 -0
  421. package/dist/core/gridfs/rename.js +18 -0
  422. package/dist/core/gridfs/rename.js.map +1 -0
  423. package/dist/core/gridfs/rm.d.ts +2 -0
  424. package/dist/core/gridfs/rm.d.ts.map +1 -0
  425. package/dist/core/gridfs/rm.js +17 -0
  426. package/dist/core/gridfs/rm.js.map +1 -0
  427. package/dist/core/gridfs/rmdir.d.ts +2 -0
  428. package/dist/core/gridfs/rmdir.d.ts.map +1 -0
  429. package/dist/core/gridfs/rmdir.js +17 -0
  430. package/dist/core/gridfs/rmdir.js.map +1 -0
  431. package/dist/core/gridfs/stat.d.ts +2 -0
  432. package/dist/core/gridfs/stat.d.ts.map +1 -0
  433. package/dist/core/gridfs/stat.js +17 -0
  434. package/dist/core/gridfs/stat.js.map +1 -0
  435. package/dist/core/gridfs/stream.d.ts +17 -0
  436. package/dist/core/gridfs/stream.d.ts.map +1 -0
  437. package/dist/core/gridfs/stream.js +75 -0
  438. package/dist/core/gridfs/stream.js.map +1 -0
  439. package/dist/core/gridfs/truncate.d.ts +2 -0
  440. package/dist/core/gridfs/truncate.d.ts.map +1 -0
  441. package/dist/core/gridfs/truncate.js +17 -0
  442. package/dist/core/gridfs/truncate.js.map +1 -0
  443. package/dist/core/gridfs/unlink.d.ts +2 -0
  444. package/dist/core/gridfs/unlink.d.ts.map +1 -0
  445. package/dist/core/gridfs/unlink.js +17 -0
  446. package/dist/core/gridfs/unlink.js.map +1 -0
  447. package/dist/core/gridfs/watch.d.ts +4 -0
  448. package/dist/core/gridfs/watch.d.ts.map +1 -0
  449. package/dist/core/gridfs/watch.js +68 -0
  450. package/dist/core/gridfs/watch.js.map +1 -0
  451. package/dist/core/gridfs/write.d.ts +2 -0
  452. package/dist/core/gridfs/write.d.ts.map +1 -0
  453. package/dist/core/gridfs/write.js +17 -0
  454. package/dist/core/gridfs/write.js.map +1 -0
  455. package/dist/core/hf/constants.d.ts +3 -0
  456. package/dist/core/hf/constants.d.ts.map +1 -0
  457. package/dist/core/hf/constants.js +16 -0
  458. package/dist/core/hf/constants.js.map +1 -0
  459. package/dist/core/hf/create.d.ts +2 -0
  460. package/dist/core/hf/create.d.ts.map +1 -0
  461. package/dist/core/hf/create.js +17 -0
  462. package/dist/core/hf/create.js.map +1 -0
  463. package/dist/core/hf/driver.d.ts +5 -0
  464. package/dist/core/hf/driver.d.ts.map +1 -0
  465. package/dist/core/hf/driver.js +222 -0
  466. package/dist/core/hf/driver.js.map +1 -0
  467. package/dist/core/hf/du/entries.d.ts +2 -0
  468. package/dist/core/hf/du/entries.d.ts.map +1 -0
  469. package/dist/core/hf/du/entries.js +17 -0
  470. package/dist/core/hf/du/entries.js.map +1 -0
  471. package/dist/core/hf/du/index.d.ts +3 -0
  472. package/dist/core/hf/du/index.d.ts.map +1 -0
  473. package/dist/core/hf/du/index.js +16 -0
  474. package/dist/core/hf/du/index.js.map +1 -0
  475. package/dist/core/hf/du/size.d.ts +2 -0
  476. package/dist/core/hf/du/size.d.ts.map +1 -0
  477. package/dist/core/hf/du/size.js +17 -0
  478. package/dist/core/hf/du/size.js.map +1 -0
  479. package/dist/core/hf/exists.d.ts +2 -0
  480. package/dist/core/hf/exists.d.ts.map +1 -0
  481. package/dist/core/hf/exists.js +17 -0
  482. package/dist/core/hf/exists.js.map +1 -0
  483. package/dist/core/hf/find.d.ts +2 -0
  484. package/dist/core/hf/find.d.ts.map +1 -0
  485. package/dist/core/hf/find.js +17 -0
  486. package/dist/core/hf/find.js.map +1 -0
  487. package/dist/core/hf/mkdir.d.ts +2 -0
  488. package/dist/core/hf/mkdir.d.ts.map +1 -0
  489. package/dist/core/hf/mkdir.js +17 -0
  490. package/dist/core/hf/mkdir.js.map +1 -0
  491. package/dist/core/hf/mock.d.ts +34 -0
  492. package/dist/core/hf/mock.d.ts.map +1 -0
  493. package/dist/core/hf/mock.js +147 -0
  494. package/dist/core/hf/mock.js.map +1 -0
  495. package/dist/core/hf/read.d.ts +9 -0
  496. package/dist/core/hf/read.d.ts.map +1 -0
  497. package/dist/core/hf/read.js +53 -0
  498. package/dist/core/hf/read.js.map +1 -0
  499. package/dist/core/hf/readdir.d.ts +2 -0
  500. package/dist/core/hf/readdir.d.ts.map +1 -0
  501. package/dist/core/hf/readdir.js +17 -0
  502. package/dist/core/hf/readdir.js.map +1 -0
  503. package/dist/core/hf/rm.d.ts +2 -0
  504. package/dist/core/hf/rm.d.ts.map +1 -0
  505. package/dist/core/hf/rm.js +17 -0
  506. package/dist/core/hf/rm.js.map +1 -0
  507. package/dist/core/hf/stat.d.ts +2 -0
  508. package/dist/core/hf/stat.d.ts.map +1 -0
  509. package/dist/core/hf/stat.js +17 -0
  510. package/dist/core/hf/stat.js.map +1 -0
  511. package/dist/core/hf/stream.d.ts +6 -0
  512. package/dist/core/hf/stream.d.ts.map +1 -0
  513. package/dist/core/hf/stream.js +48 -0
  514. package/dist/core/hf/stream.js.map +1 -0
  515. package/dist/core/hf/unlink.d.ts +2 -0
  516. package/dist/core/hf/unlink.d.ts.map +1 -0
  517. package/dist/core/hf/unlink.js +17 -0
  518. package/dist/core/hf/unlink.js.map +1 -0
  519. package/dist/core/hf/util.d.ts +5 -0
  520. package/dist/core/hf/util.d.ts.map +1 -0
  521. package/dist/core/hf/util.js +30 -0
  522. package/dist/core/hf/util.js.map +1 -0
  523. package/dist/core/hf/watch.d.ts +12 -0
  524. package/dist/core/hf/watch.d.ts.map +1 -0
  525. package/dist/core/hf/watch.js +28 -0
  526. package/dist/core/hf/watch.js.map +1 -0
  527. package/dist/core/hf/write.d.ts +2 -0
  528. package/dist/core/hf/write.d.ts.map +1 -0
  529. package/dist/core/hf/write.js +17 -0
  530. package/dist/core/hf/write.js.map +1 -0
  531. package/dist/core/hf_hub/account.d.ts +4 -0
  532. package/dist/core/hf_hub/account.d.ts.map +1 -0
  533. package/dist/core/hf_hub/account.js +22 -0
  534. package/dist/core/hf_hub/account.js.map +1 -0
  535. package/dist/core/hf_hub/admin.d.ts +41 -0
  536. package/dist/core/hf_hub/admin.d.ts.map +1 -0
  537. package/dist/core/hf_hub/admin.js +98 -0
  538. package/dist/core/hf_hub/admin.js.map +1 -0
  539. package/dist/core/hf_hub/cache.d.ts +47 -0
  540. package/dist/core/hf_hub/cache.d.ts.map +1 -0
  541. package/dist/core/hf_hub/cache.js +81 -0
  542. package/dist/core/hf_hub/cache.js.map +1 -0
  543. package/dist/core/hf_hub/client.d.ts +81 -0
  544. package/dist/core/hf_hub/client.d.ts.map +1 -0
  545. package/dist/core/hf_hub/client.js +197 -0
  546. package/dist/core/hf_hub/client.js.map +1 -0
  547. package/dist/core/hf_hub/commit.d.ts +54 -0
  548. package/dist/core/hf_hub/commit.d.ts.map +1 -0
  549. package/dist/core/hf_hub/commit.js +124 -0
  550. package/dist/core/hf_hub/commit.js.map +1 -0
  551. package/dist/core/hf_hub/config.d.ts +18 -0
  552. package/dist/core/hf_hub/config.d.ts.map +1 -0
  553. package/dist/core/hf_hub/config.js +33 -0
  554. package/dist/core/hf_hub/config.js.map +1 -0
  555. package/dist/core/hf_hub/constants.d.ts +18 -0
  556. package/dist/core/hf_hub/constants.d.ts.map +1 -0
  557. package/dist/core/hf_hub/constants.js +80 -0
  558. package/dist/core/hf_hub/constants.js.map +1 -0
  559. package/dist/core/hf_hub/exists.d.ts +6 -0
  560. package/dist/core/hf_hub/exists.d.ts.map +1 -0
  561. package/dist/core/hf_hub/exists.js +25 -0
  562. package/dist/core/hf_hub/exists.js.map +1 -0
  563. package/dist/core/hf_hub/lookup.d.ts +33 -0
  564. package/dist/core/hf_hub/lookup.d.ts.map +1 -0
  565. package/dist/core/hf_hub/lookup.js +80 -0
  566. package/dist/core/hf_hub/lookup.js.map +1 -0
  567. package/dist/core/hf_hub/read.d.ts +18 -0
  568. package/dist/core/hf_hub/read.d.ts.map +1 -0
  569. package/dist/core/hf_hub/read.js +54 -0
  570. package/dist/core/hf_hub/read.js.map +1 -0
  571. package/dist/core/hf_hub/readdir.d.ts +10 -0
  572. package/dist/core/hf_hub/readdir.d.ts.map +1 -0
  573. package/dist/core/hf_hub/readdir.js +35 -0
  574. package/dist/core/hf_hub/readdir.js.map +1 -0
  575. package/dist/core/hf_hub/repo.d.ts +40 -0
  576. package/dist/core/hf_hub/repo.d.ts.map +1 -0
  577. package/dist/core/hf_hub/repo.js +80 -0
  578. package/dist/core/hf_hub/repo.js.map +1 -0
  579. package/dist/core/hf_hub/stat.d.ts +6 -0
  580. package/dist/core/hf_hub/stat.d.ts.map +1 -0
  581. package/dist/core/hf_hub/stat.js +66 -0
  582. package/dist/core/hf_hub/stat.js.map +1 -0
  583. package/dist/core/hf_hub/stream.d.ts +7 -0
  584. package/dist/core/hf_hub/stream.d.ts.map +1 -0
  585. package/dist/core/hf_hub/stream.js +32 -0
  586. package/dist/core/hf_hub/stream.js.map +1 -0
  587. package/dist/core/hf_hub/tree.d.ts +105 -0
  588. package/dist/core/hf_hub/tree.d.ts.map +1 -0
  589. package/dist/core/hf_hub/tree.js +334 -0
  590. package/dist/core/hf_hub/tree.js.map +1 -0
  591. package/dist/core/hf_hub/tree_entry.d.ts +31 -0
  592. package/dist/core/hf_hub/tree_entry.d.ts.map +1 -0
  593. package/dist/core/hf_hub/tree_entry.js +17 -0
  594. package/dist/core/hf_hub/tree_entry.js.map +1 -0
  595. package/dist/core/hf_hub/watch.d.ts +4 -0
  596. package/dist/core/hf_hub/watch.d.ts.map +1 -0
  597. package/dist/core/hf_hub/watch.js +63 -0
  598. package/dist/core/hf_hub/watch.js.map +1 -0
  599. package/dist/core/nextcloud/constants.d.ts +3 -0
  600. package/dist/core/nextcloud/constants.d.ts.map +1 -0
  601. package/dist/core/nextcloud/constants.js +3 -0
  602. package/dist/core/nextcloud/constants.js.map +1 -0
  603. package/dist/core/nextcloud/copy.d.ts +4 -0
  604. package/dist/core/nextcloud/copy.d.ts.map +1 -0
  605. package/dist/core/nextcloud/copy.js +16 -0
  606. package/dist/core/nextcloud/copy.js.map +1 -0
  607. package/dist/core/nextcloud/create.d.ts +5 -0
  608. package/dist/core/nextcloud/create.d.ts.map +1 -0
  609. package/dist/core/nextcloud/create.js +5 -0
  610. package/dist/core/nextcloud/create.js.map +1 -0
  611. package/dist/core/nextcloud/du/entries.d.ts +4 -0
  612. package/dist/core/nextcloud/du/entries.d.ts.map +1 -0
  613. package/dist/core/nextcloud/du/entries.js +36 -0
  614. package/dist/core/nextcloud/du/entries.js.map +1 -0
  615. package/dist/core/nextcloud/du/index.d.ts +3 -0
  616. package/dist/core/nextcloud/du/index.d.ts.map +1 -0
  617. package/dist/core/nextcloud/du/index.js +3 -0
  618. package/dist/core/nextcloud/du/index.js.map +1 -0
  619. package/dist/core/nextcloud/du/size.d.ts +4 -0
  620. package/dist/core/nextcloud/du/size.d.ts.map +1 -0
  621. package/dist/core/nextcloud/du/size.js +28 -0
  622. package/dist/core/nextcloud/du/size.js.map +1 -0
  623. package/dist/core/nextcloud/du/walk.d.ts +4 -0
  624. package/dist/core/nextcloud/du/walk.d.ts.map +1 -0
  625. package/dist/core/nextcloud/du/walk.js +12 -0
  626. package/dist/core/nextcloud/du/walk.js.map +1 -0
  627. package/dist/core/nextcloud/exists.d.ts +4 -0
  628. package/dist/core/nextcloud/exists.d.ts.map +1 -0
  629. package/dist/core/nextcloud/exists.js +13 -0
  630. package/dist/core/nextcloud/exists.js.map +1 -0
  631. package/dist/core/nextcloud/find.d.ts +5 -0
  632. package/dist/core/nextcloud/find.d.ts.map +1 -0
  633. package/dist/core/nextcloud/find.js +230 -0
  634. package/dist/core/nextcloud/find.js.map +1 -0
  635. package/dist/core/nextcloud/mkdir.d.ts +15 -0
  636. package/dist/core/nextcloud/mkdir.d.ts.map +1 -0
  637. package/dist/core/nextcloud/mkdir.js +22 -0
  638. package/dist/core/nextcloud/mkdir.js.map +1 -0
  639. package/dist/core/nextcloud/mock.d.ts +28 -0
  640. package/dist/core/nextcloud/mock.d.ts.map +1 -0
  641. package/dist/core/nextcloud/mock.js +117 -0
  642. package/dist/core/nextcloud/mock.js.map +1 -0
  643. package/dist/core/nextcloud/read.d.ts +9 -0
  644. package/dist/core/nextcloud/read.d.ts.map +1 -0
  645. package/dist/core/nextcloud/read.js +46 -0
  646. package/dist/core/nextcloud/read.js.map +1 -0
  647. package/dist/core/nextcloud/readdir.d.ts +5 -0
  648. package/dist/core/nextcloud/readdir.d.ts.map +1 -0
  649. package/dist/core/nextcloud/readdir.js +120 -0
  650. package/dist/core/nextcloud/readdir.js.map +1 -0
  651. package/dist/core/nextcloud/rename.d.ts +4 -0
  652. package/dist/core/nextcloud/rename.d.ts.map +1 -0
  653. package/dist/core/nextcloud/rename.js +17 -0
  654. package/dist/core/nextcloud/rename.js.map +1 -0
  655. package/dist/core/nextcloud/rm.d.ts +4 -0
  656. package/dist/core/nextcloud/rm.d.ts.map +1 -0
  657. package/dist/core/nextcloud/rm.js +18 -0
  658. package/dist/core/nextcloud/rm.js.map +1 -0
  659. package/dist/core/nextcloud/rmdir.d.ts +18 -0
  660. package/dist/core/nextcloud/rmdir.d.ts.map +1 -0
  661. package/dist/core/nextcloud/rmdir.js +39 -0
  662. package/dist/core/nextcloud/rmdir.js.map +1 -0
  663. package/dist/core/nextcloud/search/client.d.ts +5 -0
  664. package/dist/core/nextcloud/search/client.d.ts.map +1 -0
  665. package/dist/core/nextcloud/search/client.js +51 -0
  666. package/dist/core/nextcloud/search/client.js.map +1 -0
  667. package/dist/core/nextcloud/search/constants.d.ts +18 -0
  668. package/dist/core/nextcloud/search/constants.d.ts.map +1 -0
  669. package/dist/core/nextcloud/search/constants.js +38 -0
  670. package/dist/core/nextcloud/search/constants.js.map +1 -0
  671. package/dist/core/nextcloud/search/index.d.ts +4 -0
  672. package/dist/core/nextcloud/search/index.d.ts.map +1 -0
  673. package/dist/core/nextcloud/search/index.js +3 -0
  674. package/dist/core/nextcloud/search/index.js.map +1 -0
  675. package/dist/core/nextcloud/search/query.d.ts +6 -0
  676. package/dist/core/nextcloud/search/query.d.ts.map +1 -0
  677. package/dist/core/nextcloud/search/query.js +181 -0
  678. package/dist/core/nextcloud/search/query.js.map +1 -0
  679. package/dist/core/nextcloud/search/response.d.ts +3 -0
  680. package/dist/core/nextcloud/search/response.d.ts.map +1 -0
  681. package/dist/core/nextcloud/search/response.js +108 -0
  682. package/dist/core/nextcloud/search/response.js.map +1 -0
  683. package/dist/core/nextcloud/search/target.d.ts +6 -0
  684. package/dist/core/nextcloud/search/target.d.ts.map +1 -0
  685. package/dist/core/nextcloud/search/target.js +54 -0
  686. package/dist/core/nextcloud/search/target.js.map +1 -0
  687. package/dist/core/nextcloud/search/types.d.ts +49 -0
  688. package/dist/core/nextcloud/search/types.d.ts.map +1 -0
  689. package/dist/core/nextcloud/search/types.js +16 -0
  690. package/dist/core/nextcloud/search/types.js.map +1 -0
  691. package/dist/core/nextcloud/stat.d.ts +6 -0
  692. package/dist/core/nextcloud/stat.d.ts.map +1 -0
  693. package/dist/core/nextcloud/stat.js +78 -0
  694. package/dist/core/nextcloud/stat.js.map +1 -0
  695. package/dist/core/nextcloud/stream.d.ts +6 -0
  696. package/dist/core/nextcloud/stream.d.ts.map +1 -0
  697. package/dist/core/nextcloud/stream.js +32 -0
  698. package/dist/core/nextcloud/stream.js.map +1 -0
  699. package/dist/core/nextcloud/truncate.d.ts +4 -0
  700. package/dist/core/nextcloud/truncate.d.ts.map +1 -0
  701. package/dist/core/nextcloud/truncate.js +24 -0
  702. package/dist/core/nextcloud/truncate.js.map +1 -0
  703. package/dist/core/nextcloud/unlink.d.ts +4 -0
  704. package/dist/core/nextcloud/unlink.d.ts.map +1 -0
  705. package/dist/core/nextcloud/unlink.js +20 -0
  706. package/dist/core/nextcloud/unlink.js.map +1 -0
  707. package/dist/core/nextcloud/util.d.ts +5 -0
  708. package/dist/core/nextcloud/util.d.ts.map +1 -0
  709. package/dist/core/nextcloud/util.js +15 -0
  710. package/dist/core/nextcloud/util.js.map +1 -0
  711. package/dist/core/nextcloud/watch.d.ts +6 -0
  712. package/dist/core/nextcloud/watch.d.ts.map +1 -0
  713. package/dist/core/nextcloud/watch.js +22 -0
  714. package/dist/core/nextcloud/watch.js.map +1 -0
  715. package/dist/core/nextcloud/write.d.ts +5 -0
  716. package/dist/core/nextcloud/write.d.ts.map +1 -0
  717. package/dist/core/nextcloud/write.js +20 -0
  718. package/dist/core/nextcloud/write.js.map +1 -0
  719. package/dist/core/opendal/types.d.ts +5 -0
  720. package/dist/core/opendal/types.d.ts.map +1 -0
  721. package/dist/core/opendal/types.js +15 -0
  722. package/dist/core/opendal/types.js.map +1 -0
  723. package/dist/core/opendal/watch.d.ts +23 -0
  724. package/dist/core/opendal/watch.d.ts.map +1 -0
  725. package/dist/core/opendal/watch.js +96 -0
  726. package/dist/core/opendal/watch.js.map +1 -0
  727. package/dist/core/ssh/append.d.ts +4 -0
  728. package/dist/core/ssh/append.d.ts.map +1 -0
  729. package/dist/core/ssh/append.js +30 -0
  730. package/dist/core/ssh/append.js.map +1 -0
  731. package/dist/core/ssh/constants.d.ts +3 -0
  732. package/dist/core/ssh/constants.d.ts.map +1 -0
  733. package/dist/core/ssh/constants.js +16 -0
  734. package/dist/core/ssh/constants.js.map +1 -0
  735. package/dist/core/ssh/copy.d.ts +4 -0
  736. package/dist/core/ssh/copy.d.ts.map +1 -0
  737. package/dist/core/ssh/copy.js +20 -0
  738. package/dist/core/ssh/copy.js.map +1 -0
  739. package/dist/core/ssh/create.d.ts +4 -0
  740. package/dist/core/ssh/create.d.ts.map +1 -0
  741. package/dist/core/ssh/create.js +18 -0
  742. package/dist/core/ssh/create.js.map +1 -0
  743. package/dist/core/ssh/du/entries.d.ts +4 -0
  744. package/dist/core/ssh/du/entries.d.ts.map +1 -0
  745. package/dist/core/ssh/du/entries.js +25 -0
  746. package/dist/core/ssh/du/entries.js.map +1 -0
  747. package/dist/core/ssh/du/index.d.ts +3 -0
  748. package/dist/core/ssh/du/index.d.ts.map +1 -0
  749. package/dist/core/ssh/du/index.js +16 -0
  750. package/dist/core/ssh/du/index.js.map +1 -0
  751. package/dist/core/ssh/du/size.d.ts +4 -0
  752. package/dist/core/ssh/du/size.d.ts.map +1 -0
  753. package/dist/core/ssh/du/size.js +20 -0
  754. package/dist/core/ssh/du/size.js.map +1 -0
  755. package/dist/core/ssh/du/walk.d.ts +4 -0
  756. package/dist/core/ssh/du/walk.d.ts.map +1 -0
  757. package/dist/core/ssh/du/walk.js +105 -0
  758. package/dist/core/ssh/du/walk.js.map +1 -0
  759. package/dist/core/ssh/entry.d.ts +11 -0
  760. package/dist/core/ssh/entry.d.ts.map +1 -0
  761. package/dist/core/ssh/entry.js +61 -0
  762. package/dist/core/ssh/entry.js.map +1 -0
  763. package/dist/core/ssh/exists.d.ts +4 -0
  764. package/dist/core/ssh/exists.d.ts.map +1 -0
  765. package/dist/core/ssh/exists.js +24 -0
  766. package/dist/core/ssh/exists.js.map +1 -0
  767. package/dist/core/ssh/find.d.ts +21 -0
  768. package/dist/core/ssh/find.d.ts.map +1 -0
  769. package/dist/core/ssh/find.js +142 -0
  770. package/dist/core/ssh/find.js.map +1 -0
  771. package/dist/core/ssh/mkdir.d.ts +4 -0
  772. package/dist/core/ssh/mkdir.d.ts.map +1 -0
  773. package/dist/core/ssh/mkdir.js +76 -0
  774. package/dist/core/ssh/mkdir.js.map +1 -0
  775. package/dist/core/ssh/read.d.ts +21 -0
  776. package/dist/core/ssh/read.d.ts.map +1 -0
  777. package/dist/core/ssh/read.js +65 -0
  778. package/dist/core/ssh/read.js.map +1 -0
  779. package/dist/core/ssh/readdir.d.ts +4 -0
  780. package/dist/core/ssh/readdir.d.ts.map +1 -0
  781. package/dist/core/ssh/readdir.js +80 -0
  782. package/dist/core/ssh/readdir.js.map +1 -0
  783. package/dist/core/ssh/rename.d.ts +4 -0
  784. package/dist/core/ssh/rename.d.ts.map +1 -0
  785. package/dist/core/ssh/rename.js +50 -0
  786. package/dist/core/ssh/rename.js.map +1 -0
  787. package/dist/core/ssh/rm.d.ts +4 -0
  788. package/dist/core/ssh/rm.d.ts.map +1 -0
  789. package/dist/core/ssh/rm.js +86 -0
  790. package/dist/core/ssh/rm.js.map +1 -0
  791. package/dist/core/ssh/rmdir.d.ts +4 -0
  792. package/dist/core/ssh/rmdir.d.ts.map +1 -0
  793. package/dist/core/ssh/rmdir.js +69 -0
  794. package/dist/core/ssh/rmdir.js.map +1 -0
  795. package/dist/core/ssh/set_attrs.d.ts +11 -0
  796. package/dist/core/ssh/set_attrs.d.ts.map +1 -0
  797. package/dist/core/ssh/set_attrs.js +81 -0
  798. package/dist/core/ssh/set_attrs.js.map +1 -0
  799. package/dist/core/ssh/stat.d.ts +4 -0
  800. package/dist/core/ssh/stat.d.ts.map +1 -0
  801. package/dist/core/ssh/stat.js +40 -0
  802. package/dist/core/ssh/stat.js.map +1 -0
  803. package/dist/core/ssh/stream.d.ts +7 -0
  804. package/dist/core/ssh/stream.d.ts.map +1 -0
  805. package/dist/core/ssh/stream.js +83 -0
  806. package/dist/core/ssh/stream.js.map +1 -0
  807. package/dist/core/ssh/truncate.d.ts +4 -0
  808. package/dist/core/ssh/truncate.d.ts.map +1 -0
  809. package/dist/core/ssh/truncate.js +33 -0
  810. package/dist/core/ssh/truncate.js.map +1 -0
  811. package/dist/core/ssh/unlink.d.ts +4 -0
  812. package/dist/core/ssh/unlink.d.ts.map +1 -0
  813. package/dist/core/ssh/unlink.js +35 -0
  814. package/dist/core/ssh/unlink.js.map +1 -0
  815. package/dist/core/ssh/utils.d.ts +12 -0
  816. package/dist/core/ssh/utils.d.ts.map +1 -0
  817. package/dist/core/ssh/utils.js +63 -0
  818. package/dist/core/ssh/utils.js.map +1 -0
  819. package/dist/core/ssh/watch.d.ts +4 -0
  820. package/dist/core/ssh/watch.d.ts.map +1 -0
  821. package/dist/core/ssh/watch.js +89 -0
  822. package/dist/core/ssh/watch.js.map +1 -0
  823. package/dist/core/ssh/write.d.ts +4 -0
  824. package/dist/core/ssh/write.d.ts.map +1 -0
  825. package/dist/core/ssh/write.js +34 -0
  826. package/dist/core/ssh/write.js.map +1 -0
  827. package/dist/fs_monkey.d.ts +11 -0
  828. package/dist/fs_monkey.d.ts.map +1 -0
  829. package/dist/fs_monkey.js +187 -0
  830. package/dist/fs_monkey.js.map +1 -0
  831. package/dist/fuse/backend.d.ts +73 -0
  832. package/dist/fuse/backend.d.ts.map +1 -0
  833. package/dist/fuse/backend.js +170 -0
  834. package/dist/fuse/backend.js.map +1 -0
  835. package/dist/fuse/core.d.ts +157 -0
  836. package/dist/fuse/core.d.ts.map +1 -0
  837. package/dist/fuse/core.js +478 -0
  838. package/dist/fuse/core.js.map +1 -0
  839. package/dist/fuse/errors.d.ts +31 -0
  840. package/dist/fuse/errors.d.ts.map +1 -0
  841. package/dist/fuse/errors.js +102 -0
  842. package/dist/fuse/errors.js.map +1 -0
  843. package/dist/fuse/fs.d.ts +58 -0
  844. package/dist/fuse/fs.d.ts.map +1 -0
  845. package/dist/fuse/fs.js +280 -0
  846. package/dist/fuse/fs.js.map +1 -0
  847. package/dist/fuse/mount.d.ts +74 -0
  848. package/dist/fuse/mount.d.ts.map +1 -0
  849. package/dist/fuse/mount.js +180 -0
  850. package/dist/fuse/mount.js.map +1 -0
  851. package/dist/fuse/platform/macos.d.ts +2 -0
  852. package/dist/fuse/platform/macos.d.ts.map +1 -0
  853. package/dist/fuse/platform/macos.js +23 -0
  854. package/dist/fuse/platform/macos.js.map +1 -0
  855. package/dist/index.d.ts +199 -2923
  856. package/dist/index.d.ts.map +1 -0
  857. package/dist/index.js +208 -4624
  858. package/dist/index.js.map +1 -1
  859. package/dist/observe/disk_store.d.ts +17 -0
  860. package/dist/observe/disk_store.d.ts.map +1 -0
  861. package/dist/observe/disk_store.js +98 -0
  862. package/dist/observe/disk_store.js.map +1 -0
  863. package/dist/observe/redis_store.d.ts +28 -0
  864. package/dist/observe/redis_store.d.ts.map +1 -0
  865. package/dist/observe/redis_store.js +100 -0
  866. package/dist/observe/redis_store.js.map +1 -0
  867. package/dist/ops/disk/index.d.ts +3 -0
  868. package/dist/ops/disk/index.d.ts.map +1 -0
  869. package/dist/ops/disk/index.js +20 -0
  870. package/dist/ops/disk/index.js.map +1 -0
  871. package/dist/ops/email/index.d.ts +3 -0
  872. package/dist/ops/email/index.d.ts.map +1 -0
  873. package/dist/ops/email/index.js +18 -0
  874. package/dist/ops/email/index.js.map +1 -0
  875. package/dist/ops/gridfs/index.d.ts +3 -0
  876. package/dist/ops/gridfs/index.d.ts.map +1 -0
  877. package/dist/ops/gridfs/index.js +18 -0
  878. package/dist/ops/gridfs/index.js.map +1 -0
  879. package/dist/ops/hf/index.d.ts +3 -0
  880. package/dist/ops/hf/index.d.ts.map +1 -0
  881. package/dist/ops/hf/index.js +18 -0
  882. package/dist/ops/hf/index.js.map +1 -0
  883. package/dist/ops/hf_hub/index.d.ts +3 -0
  884. package/dist/ops/hf_hub/index.d.ts.map +1 -0
  885. package/dist/ops/hf_hub/index.js +18 -0
  886. package/dist/ops/hf_hub/index.js.map +1 -0
  887. package/dist/ops/nextcloud/index.d.ts +3 -0
  888. package/dist/ops/nextcloud/index.d.ts.map +1 -0
  889. package/dist/ops/nextcloud/index.js +5 -0
  890. package/dist/ops/nextcloud/index.js.map +1 -0
  891. package/dist/ops/ssh/index.d.ts +3 -0
  892. package/dist/ops/ssh/index.d.ts.map +1 -0
  893. package/dist/ops/ssh/index.js +20 -0
  894. package/dist/ops/ssh/index.js.map +1 -0
  895. package/dist/optional_peer.d.ts +2 -0
  896. package/dist/optional_peer.d.ts.map +1 -0
  897. package/dist/optional_peer.js +15 -0
  898. package/dist/optional_peer.js.map +1 -0
  899. package/dist/resource/aliyun/aliyun.d.ts +8 -0
  900. package/dist/resource/aliyun/aliyun.d.ts.map +1 -0
  901. package/dist/resource/aliyun/aliyun.js +24 -0
  902. package/dist/resource/aliyun/aliyun.js.map +1 -0
  903. package/dist/resource/aliyun/config.d.ts +10 -0
  904. package/dist/resource/aliyun/config.d.ts.map +1 -0
  905. package/dist/resource/aliyun/config.js +20 -0
  906. package/dist/resource/aliyun/config.js.map +1 -0
  907. package/dist/resource/aliyun/prompt.d.ts +2 -0
  908. package/dist/resource/aliyun/prompt.d.ts.map +1 -0
  909. package/dist/resource/aliyun/prompt.js +19 -0
  910. package/dist/resource/aliyun/prompt.js.map +1 -0
  911. package/dist/resource/backblaze/backblaze.d.ts +8 -0
  912. package/dist/resource/backblaze/backblaze.d.ts.map +1 -0
  913. package/dist/resource/backblaze/backblaze.js +24 -0
  914. package/dist/resource/backblaze/backblaze.js.map +1 -0
  915. package/dist/resource/backblaze/config.d.ts +10 -0
  916. package/dist/resource/backblaze/config.d.ts.map +1 -0
  917. package/dist/resource/backblaze/config.js +20 -0
  918. package/dist/resource/backblaze/config.js.map +1 -0
  919. package/dist/resource/backblaze/prompt.d.ts +2 -0
  920. package/dist/resource/backblaze/prompt.d.ts.map +1 -0
  921. package/dist/resource/backblaze/prompt.js +19 -0
  922. package/dist/resource/backblaze/prompt.js.map +1 -0
  923. package/dist/resource/box/box.d.ts +34 -0
  924. package/dist/resource/box/box.d.ts.map +1 -0
  925. package/dist/resource/box/box.js +99 -0
  926. package/dist/resource/box/box.js.map +1 -0
  927. package/dist/resource/box/config.d.ts +43 -0
  928. package/dist/resource/box/config.d.ts.map +1 -0
  929. package/dist/resource/box/config.js +39 -0
  930. package/dist/resource/box/config.js.map +1 -0
  931. package/dist/resource/ceph/ceph.d.ts +8 -0
  932. package/dist/resource/ceph/ceph.d.ts.map +1 -0
  933. package/dist/resource/ceph/ceph.js +24 -0
  934. package/dist/resource/ceph/ceph.js.map +1 -0
  935. package/dist/resource/ceph/config.d.ts +9 -0
  936. package/dist/resource/ceph/config.d.ts.map +1 -0
  937. package/dist/resource/ceph/config.js +19 -0
  938. package/dist/resource/ceph/config.js.map +1 -0
  939. package/dist/resource/ceph/prompt.d.ts +2 -0
  940. package/dist/resource/ceph/prompt.d.ts.map +1 -0
  941. package/dist/resource/ceph/prompt.js +19 -0
  942. package/dist/resource/ceph/prompt.js.map +1 -0
  943. package/dist/resource/databricks_volume/config.d.ts +3 -0
  944. package/dist/resource/databricks_volume/config.d.ts.map +1 -0
  945. package/dist/resource/databricks_volume/config.js +15 -0
  946. package/dist/resource/databricks_volume/config.js.map +1 -0
  947. package/dist/resource/databricks_volume/databricks_volume.d.ts +45 -0
  948. package/dist/resource/databricks_volume/databricks_volume.d.ts.map +1 -0
  949. package/dist/resource/databricks_volume/databricks_volume.js +186 -0
  950. package/dist/resource/databricks_volume/databricks_volume.js.map +1 -0
  951. package/dist/resource/databricks_volume/profile.d.ts +7 -0
  952. package/dist/resource/databricks_volume/profile.d.ts.map +1 -0
  953. package/dist/resource/databricks_volume/profile.js +55 -0
  954. package/dist/resource/databricks_volume/profile.js.map +1 -0
  955. package/dist/resource/digitalocean/config.d.ts +10 -0
  956. package/dist/resource/digitalocean/config.d.ts.map +1 -0
  957. package/dist/resource/digitalocean/config.js +20 -0
  958. package/dist/resource/digitalocean/config.js.map +1 -0
  959. package/dist/resource/digitalocean/digitalocean.d.ts +8 -0
  960. package/dist/resource/digitalocean/digitalocean.d.ts.map +1 -0
  961. package/dist/resource/digitalocean/digitalocean.js +24 -0
  962. package/dist/resource/digitalocean/digitalocean.js.map +1 -0
  963. package/dist/resource/digitalocean/prompt.d.ts +2 -0
  964. package/dist/resource/digitalocean/prompt.d.ts.map +1 -0
  965. package/dist/resource/digitalocean/prompt.js +19 -0
  966. package/dist/resource/digitalocean/prompt.js.map +1 -0
  967. package/dist/resource/discord/discord.d.ts +33 -0
  968. package/dist/resource/discord/discord.d.ts.map +1 -0
  969. package/dist/resource/discord/discord.js +87 -0
  970. package/dist/resource/discord/discord.js.map +1 -0
  971. package/dist/resource/disk/disk.d.ts +55 -0
  972. package/dist/resource/disk/disk.d.ts.map +1 -0
  973. package/dist/resource/disk/disk.js +218 -0
  974. package/dist/resource/disk/disk.js.map +1 -0
  975. package/dist/resource/disk/prompt.d.ts +2 -0
  976. package/dist/resource/disk/prompt.d.ts.map +1 -0
  977. package/dist/resource/disk/prompt.js +17 -0
  978. package/dist/resource/disk/prompt.js.map +1 -0
  979. package/dist/resource/dropbox/config.d.ts +34 -0
  980. package/dist/resource/dropbox/config.d.ts.map +1 -0
  981. package/dist/resource/dropbox/config.js +31 -0
  982. package/dist/resource/dropbox/config.js.map +1 -0
  983. package/dist/resource/dropbox/dropbox.d.ts +34 -0
  984. package/dist/resource/dropbox/dropbox.d.ts.map +1 -0
  985. package/dist/resource/dropbox/dropbox.js +95 -0
  986. package/dist/resource/dropbox/dropbox.js.map +1 -0
  987. package/dist/resource/email/email.d.ts +33 -0
  988. package/dist/resource/email/email.d.ts.map +1 -0
  989. package/dist/resource/email/email.js +89 -0
  990. package/dist/resource/email/email.js.map +1 -0
  991. package/dist/resource/email/index.d.ts +3 -0
  992. package/dist/resource/email/index.d.ts.map +1 -0
  993. package/dist/resource/email/index.js +16 -0
  994. package/dist/resource/email/index.js.map +1 -0
  995. package/dist/resource/email/prompt.d.ts +3 -0
  996. package/dist/resource/email/prompt.d.ts.map +1 -0
  997. package/dist/resource/email/prompt.js +26 -0
  998. package/dist/resource/email/prompt.js.map +1 -0
  999. package/dist/resource/gcal/gcal.d.ts +32 -0
  1000. package/dist/resource/gcal/gcal.d.ts.map +1 -0
  1001. package/dist/resource/gcal/gcal.js +87 -0
  1002. package/dist/resource/gcal/gcal.js.map +1 -0
  1003. package/dist/resource/gcs/config.d.ts +36 -0
  1004. package/dist/resource/gcs/config.d.ts.map +1 -0
  1005. package/dist/resource/gcs/config.js +55 -0
  1006. package/dist/resource/gcs/config.js.map +1 -0
  1007. package/dist/resource/gcs/gcs.d.ts +8 -0
  1008. package/dist/resource/gcs/gcs.d.ts.map +1 -0
  1009. package/dist/resource/gcs/gcs.js +24 -0
  1010. package/dist/resource/gcs/gcs.js.map +1 -0
  1011. package/dist/resource/gcs/prompt.d.ts +2 -0
  1012. package/dist/resource/gcs/prompt.d.ts.map +1 -0
  1013. package/dist/resource/gcs/prompt.js +19 -0
  1014. package/dist/resource/gcs/prompt.js.map +1 -0
  1015. package/dist/resource/gdocs/gdocs.d.ts +32 -0
  1016. package/dist/resource/gdocs/gdocs.d.ts.map +1 -0
  1017. package/dist/resource/gdocs/gdocs.js +84 -0
  1018. package/dist/resource/gdocs/gdocs.js.map +1 -0
  1019. package/dist/resource/gdrive/gdrive.d.ts +34 -0
  1020. package/dist/resource/gdrive/gdrive.d.ts.map +1 -0
  1021. package/dist/resource/gdrive/gdrive.js +89 -0
  1022. package/dist/resource/gdrive/gdrive.js.map +1 -0
  1023. package/dist/resource/github/github.d.ts +37 -0
  1024. package/dist/resource/github/github.d.ts.map +1 -0
  1025. package/dist/resource/github/github.js +119 -0
  1026. package/dist/resource/github/github.js.map +1 -0
  1027. package/dist/resource/gmail/gmail.d.ts +33 -0
  1028. package/dist/resource/gmail/gmail.d.ts.map +1 -0
  1029. package/dist/resource/gmail/gmail.js +88 -0
  1030. package/dist/resource/gmail/gmail.js.map +1 -0
  1031. package/dist/resource/gridfs/config.d.ts +20 -0
  1032. package/dist/resource/gridfs/config.d.ts.map +1 -0
  1033. package/dist/resource/gridfs/config.js +42 -0
  1034. package/dist/resource/gridfs/config.js.map +1 -0
  1035. package/dist/resource/gridfs/gridfs.d.ts +50 -0
  1036. package/dist/resource/gridfs/gridfs.d.ts.map +1 -0
  1037. package/dist/resource/gridfs/gridfs.js +190 -0
  1038. package/dist/resource/gridfs/gridfs.js.map +1 -0
  1039. package/dist/resource/gridfs/prompt.d.ts +2 -0
  1040. package/dist/resource/gridfs/prompt.d.ts.map +1 -0
  1041. package/dist/resource/gridfs/prompt.js +19 -0
  1042. package/dist/resource/gridfs/prompt.js.map +1 -0
  1043. package/dist/resource/gsheets/gsheets.d.ts +32 -0
  1044. package/dist/resource/gsheets/gsheets.d.ts.map +1 -0
  1045. package/dist/resource/gsheets/gsheets.js +84 -0
  1046. package/dist/resource/gsheets/gsheets.js.map +1 -0
  1047. package/dist/resource/gslides/gslides.d.ts +32 -0
  1048. package/dist/resource/gslides/gslides.d.ts.map +1 -0
  1049. package/dist/resource/gslides/gslides.js +84 -0
  1050. package/dist/resource/gslides/gslides.js.map +1 -0
  1051. package/dist/resource/hf_buckets/base.d.ts +34 -0
  1052. package/dist/resource/hf_buckets/base.d.ts.map +1 -0
  1053. package/dist/resource/hf_buckets/base.js +117 -0
  1054. package/dist/resource/hf_buckets/base.js.map +1 -0
  1055. package/dist/resource/hf_buckets/config.d.ts +58 -0
  1056. package/dist/resource/hf_buckets/config.d.ts.map +1 -0
  1057. package/dist/resource/hf_buckets/config.js +89 -0
  1058. package/dist/resource/hf_buckets/config.js.map +1 -0
  1059. package/dist/resource/hf_buckets/hf_buckets.d.ts +16 -0
  1060. package/dist/resource/hf_buckets/hf_buckets.d.ts.map +1 -0
  1061. package/dist/resource/hf_buckets/hf_buckets.js +46 -0
  1062. package/dist/resource/hf_buckets/hf_buckets.js.map +1 -0
  1063. package/dist/resource/hf_buckets/prompt.d.ts +2 -0
  1064. package/dist/resource/hf_buckets/prompt.d.ts.map +1 -0
  1065. package/dist/resource/hf_buckets/prompt.js +18 -0
  1066. package/dist/resource/hf_buckets/prompt.js.map +1 -0
  1067. package/dist/resource/hf_datasets/hf_datasets.d.ts +16 -0
  1068. package/dist/resource/hf_datasets/hf_datasets.d.ts.map +1 -0
  1069. package/dist/resource/hf_datasets/hf_datasets.js +46 -0
  1070. package/dist/resource/hf_datasets/hf_datasets.js.map +1 -0
  1071. package/dist/resource/hf_datasets/prompt.d.ts +2 -0
  1072. package/dist/resource/hf_datasets/prompt.d.ts.map +1 -0
  1073. package/dist/resource/hf_datasets/prompt.js +18 -0
  1074. package/dist/resource/hf_datasets/prompt.js.map +1 -0
  1075. package/dist/resource/hf_hub/base.d.ts +43 -0
  1076. package/dist/resource/hf_hub/base.d.ts.map +1 -0
  1077. package/dist/resource/hf_hub/base.js +111 -0
  1078. package/dist/resource/hf_hub/base.js.map +1 -0
  1079. package/dist/resource/hf_models/config.d.ts +6 -0
  1080. package/dist/resource/hf_models/config.d.ts.map +1 -0
  1081. package/dist/resource/hf_models/config.js +17 -0
  1082. package/dist/resource/hf_models/config.js.map +1 -0
  1083. package/dist/resource/hf_models/hf_models.d.ts +16 -0
  1084. package/dist/resource/hf_models/hf_models.d.ts.map +1 -0
  1085. package/dist/resource/hf_models/hf_models.js +46 -0
  1086. package/dist/resource/hf_models/hf_models.js.map +1 -0
  1087. package/dist/resource/hf_models/prompt.d.ts +2 -0
  1088. package/dist/resource/hf_models/prompt.d.ts.map +1 -0
  1089. package/dist/resource/hf_models/prompt.js +18 -0
  1090. package/dist/resource/hf_models/prompt.js.map +1 -0
  1091. package/dist/resource/hf_spaces/hf_spaces.d.ts +16 -0
  1092. package/dist/resource/hf_spaces/hf_spaces.d.ts.map +1 -0
  1093. package/dist/resource/hf_spaces/hf_spaces.js +46 -0
  1094. package/dist/resource/hf_spaces/hf_spaces.js.map +1 -0
  1095. package/dist/resource/hf_spaces/prompt.d.ts +2 -0
  1096. package/dist/resource/hf_spaces/prompt.d.ts.map +1 -0
  1097. package/dist/resource/hf_spaces/prompt.js +18 -0
  1098. package/dist/resource/hf_spaces/prompt.js.map +1 -0
  1099. package/dist/resource/jaeger/config.d.ts +15 -0
  1100. package/dist/resource/jaeger/config.d.ts.map +1 -0
  1101. package/dist/resource/jaeger/config.js +28 -0
  1102. package/dist/resource/jaeger/config.js.map +1 -0
  1103. package/dist/resource/jaeger/jaeger.d.ts +32 -0
  1104. package/dist/resource/jaeger/jaeger.d.ts.map +1 -0
  1105. package/dist/resource/jaeger/jaeger.js +101 -0
  1106. package/dist/resource/jaeger/jaeger.js.map +1 -0
  1107. package/dist/resource/lancedb/lancedb.d.ts +37 -0
  1108. package/dist/resource/lancedb/lancedb.d.ts.map +1 -0
  1109. package/dist/resource/lancedb/lancedb.js +85 -0
  1110. package/dist/resource/lancedb/lancedb.js.map +1 -0
  1111. package/dist/resource/lancedb/store.d.ts +29 -0
  1112. package/dist/resource/lancedb/store.d.ts.map +1 -0
  1113. package/dist/resource/lancedb/store.js +159 -0
  1114. package/dist/resource/lancedb/store.js.map +1 -0
  1115. package/dist/resource/langfuse/config.d.ts +16 -0
  1116. package/dist/resource/langfuse/config.d.ts.map +1 -0
  1117. package/dist/resource/langfuse/config.js +29 -0
  1118. package/dist/resource/langfuse/config.js.map +1 -0
  1119. package/dist/resource/langfuse/langfuse.d.ts +31 -0
  1120. package/dist/resource/langfuse/langfuse.d.ts.map +1 -0
  1121. package/dist/resource/langfuse/langfuse.js +98 -0
  1122. package/dist/resource/langfuse/langfuse.js.map +1 -0
  1123. package/dist/resource/linear/linear.d.ts +33 -0
  1124. package/dist/resource/linear/linear.d.ts.map +1 -0
  1125. package/dist/resource/linear/linear.js +93 -0
  1126. package/dist/resource/linear/linear.js.map +1 -0
  1127. package/dist/resource/loader.d.ts +46 -0
  1128. package/dist/resource/loader.d.ts.map +1 -0
  1129. package/dist/resource/loader.js +127 -0
  1130. package/dist/resource/loader.js.map +1 -0
  1131. package/dist/resource/minio/config.d.ts +9 -0
  1132. package/dist/resource/minio/config.d.ts.map +1 -0
  1133. package/dist/resource/minio/config.js +19 -0
  1134. package/dist/resource/minio/config.js.map +1 -0
  1135. package/dist/resource/minio/minio.d.ts +8 -0
  1136. package/dist/resource/minio/minio.d.ts.map +1 -0
  1137. package/dist/resource/minio/minio.js +24 -0
  1138. package/dist/resource/minio/minio.js.map +1 -0
  1139. package/dist/resource/minio/prompt.d.ts +2 -0
  1140. package/dist/resource/minio/prompt.d.ts.map +1 -0
  1141. package/dist/resource/minio/prompt.js +19 -0
  1142. package/dist/resource/minio/prompt.js.map +1 -0
  1143. package/dist/resource/mongodb/mongodb.d.ts +39 -0
  1144. package/dist/resource/mongodb/mongodb.d.ts.map +1 -0
  1145. package/dist/resource/mongodb/mongodb.js +100 -0
  1146. package/dist/resource/mongodb/mongodb.js.map +1 -0
  1147. package/dist/resource/mongodb/store.d.ts +71 -0
  1148. package/dist/resource/mongodb/store.d.ts.map +1 -0
  1149. package/dist/resource/mongodb/store.js +148 -0
  1150. package/dist/resource/mongodb/store.js.map +1 -0
  1151. package/dist/resource/nextcloud/config.d.ts +14 -0
  1152. package/dist/resource/nextcloud/config.d.ts.map +1 -0
  1153. package/dist/resource/nextcloud/config.js +17 -0
  1154. package/dist/resource/nextcloud/config.js.map +1 -0
  1155. package/dist/resource/nextcloud/nextcloud.d.ts +48 -0
  1156. package/dist/resource/nextcloud/nextcloud.d.ts.map +1 -0
  1157. package/dist/resource/nextcloud/nextcloud.js +157 -0
  1158. package/dist/resource/nextcloud/nextcloud.js.map +1 -0
  1159. package/dist/resource/nextcloud/prompt.d.ts +2 -0
  1160. package/dist/resource/nextcloud/prompt.d.ts.map +1 -0
  1161. package/dist/resource/nextcloud/prompt.js +2 -0
  1162. package/dist/resource/nextcloud/prompt.js.map +1 -0
  1163. package/dist/resource/notion/notion.d.ts +32 -0
  1164. package/dist/resource/notion/notion.d.ts.map +1 -0
  1165. package/dist/resource/notion/notion.js +90 -0
  1166. package/dist/resource/notion/notion.js.map +1 -0
  1167. package/dist/resource/oci/config.d.ts +37 -0
  1168. package/dist/resource/oci/config.d.ts.map +1 -0
  1169. package/dist/resource/oci/config.js +60 -0
  1170. package/dist/resource/oci/config.js.map +1 -0
  1171. package/dist/resource/oci/oci.d.ts +8 -0
  1172. package/dist/resource/oci/oci.d.ts.map +1 -0
  1173. package/dist/resource/oci/oci.js +24 -0
  1174. package/dist/resource/oci/oci.js.map +1 -0
  1175. package/dist/resource/oci/prompt.d.ts +2 -0
  1176. package/dist/resource/oci/prompt.d.ts.map +1 -0
  1177. package/dist/resource/oci/prompt.js +19 -0
  1178. package/dist/resource/oci/prompt.js.map +1 -0
  1179. package/dist/resource/postgres/postgres.d.ts +39 -0
  1180. package/dist/resource/postgres/postgres.d.ts.map +1 -0
  1181. package/dist/resource/postgres/postgres.js +98 -0
  1182. package/dist/resource/postgres/postgres.js.map +1 -0
  1183. package/dist/resource/postgres/store.d.ts +21 -0
  1184. package/dist/resource/postgres/store.d.ts.map +1 -0
  1185. package/dist/resource/postgres/store.js +53 -0
  1186. package/dist/resource/postgres/store.js.map +1 -0
  1187. package/dist/resource/qingstor/config.d.ts +10 -0
  1188. package/dist/resource/qingstor/config.d.ts.map +1 -0
  1189. package/dist/resource/qingstor/config.js +20 -0
  1190. package/dist/resource/qingstor/config.js.map +1 -0
  1191. package/dist/resource/qingstor/prompt.d.ts +2 -0
  1192. package/dist/resource/qingstor/prompt.d.ts.map +1 -0
  1193. package/dist/resource/qingstor/prompt.js +19 -0
  1194. package/dist/resource/qingstor/prompt.js.map +1 -0
  1195. package/dist/resource/qingstor/qingstor.d.ts +8 -0
  1196. package/dist/resource/qingstor/qingstor.d.ts.map +1 -0
  1197. package/dist/resource/qingstor/qingstor.js +24 -0
  1198. package/dist/resource/qingstor/qingstor.js.map +1 -0
  1199. package/dist/resource/r2/config.d.ts +37 -0
  1200. package/dist/resource/r2/config.d.ts.map +1 -0
  1201. package/dist/resource/r2/config.js +63 -0
  1202. package/dist/resource/r2/config.js.map +1 -0
  1203. package/dist/resource/r2/prompt.d.ts +2 -0
  1204. package/dist/resource/r2/prompt.d.ts.map +1 -0
  1205. package/dist/resource/r2/prompt.js +19 -0
  1206. package/dist/resource/r2/prompt.js.map +1 -0
  1207. package/dist/resource/r2/r2.d.ts +8 -0
  1208. package/dist/resource/r2/r2.d.ts.map +1 -0
  1209. package/dist/resource/r2/r2.js +24 -0
  1210. package/dist/resource/r2/r2.js.map +1 -0
  1211. package/dist/resource/redis/redis.d.ts +30 -0
  1212. package/dist/resource/redis/redis.d.ts.map +1 -0
  1213. package/dist/resource/redis/redis.js +37 -0
  1214. package/dist/resource/redis/redis.js.map +1 -0
  1215. package/dist/resource/redis/store.d.ts +63 -0
  1216. package/dist/resource/redis/store.d.ts.map +1 -0
  1217. package/dist/resource/redis/store.js +243 -0
  1218. package/dist/resource/redis/store.js.map +1 -0
  1219. package/dist/resource/registry.d.ts +42 -0
  1220. package/dist/resource/registry.d.ts.map +1 -0
  1221. package/dist/resource/registry.js +405 -0
  1222. package/dist/resource/registry.js.map +1 -0
  1223. package/dist/resource/s3/config.d.ts +36 -0
  1224. package/dist/resource/s3/config.d.ts.map +1 -0
  1225. package/dist/resource/s3/config.js +61 -0
  1226. package/dist/resource/s3/config.js.map +1 -0
  1227. package/dist/resource/s3/mock.d.ts +17 -0
  1228. package/dist/resource/s3/mock.d.ts.map +1 -0
  1229. package/dist/resource/s3/mock.js +214 -0
  1230. package/dist/resource/s3/mock.js.map +1 -0
  1231. package/dist/resource/s3/s3.d.ts +50 -0
  1232. package/dist/resource/s3/s3.d.ts.map +1 -0
  1233. package/dist/resource/s3/s3.js +201 -0
  1234. package/dist/resource/s3/s3.js.map +1 -0
  1235. package/dist/resource/s3_alias.d.ts +112 -0
  1236. package/dist/resource/s3_alias.d.ts.map +1 -0
  1237. package/dist/resource/s3_alias.js +155 -0
  1238. package/dist/resource/s3_alias.js.map +1 -0
  1239. package/dist/resource/scaleway/config.d.ts +10 -0
  1240. package/dist/resource/scaleway/config.d.ts.map +1 -0
  1241. package/dist/resource/scaleway/config.js +20 -0
  1242. package/dist/resource/scaleway/config.js.map +1 -0
  1243. package/dist/resource/scaleway/prompt.d.ts +2 -0
  1244. package/dist/resource/scaleway/prompt.d.ts.map +1 -0
  1245. package/dist/resource/scaleway/prompt.js +19 -0
  1246. package/dist/resource/scaleway/prompt.js.map +1 -0
  1247. package/dist/resource/scaleway/scaleway.d.ts +8 -0
  1248. package/dist/resource/scaleway/scaleway.d.ts.map +1 -0
  1249. package/dist/resource/scaleway/scaleway.js +24 -0
  1250. package/dist/resource/scaleway/scaleway.js.map +1 -0
  1251. package/dist/resource/seaweedfs/config.d.ts +9 -0
  1252. package/dist/resource/seaweedfs/config.d.ts.map +1 -0
  1253. package/dist/resource/seaweedfs/config.js +19 -0
  1254. package/dist/resource/seaweedfs/config.js.map +1 -0
  1255. package/dist/resource/seaweedfs/prompt.d.ts +2 -0
  1256. package/dist/resource/seaweedfs/prompt.d.ts.map +1 -0
  1257. package/dist/resource/seaweedfs/prompt.js +19 -0
  1258. package/dist/resource/seaweedfs/prompt.js.map +1 -0
  1259. package/dist/resource/seaweedfs/seaweedfs.d.ts +8 -0
  1260. package/dist/resource/seaweedfs/seaweedfs.d.ts.map +1 -0
  1261. package/dist/resource/seaweedfs/seaweedfs.js +24 -0
  1262. package/dist/resource/seaweedfs/seaweedfs.js.map +1 -0
  1263. package/dist/resource/slack/slack.d.ts +33 -0
  1264. package/dist/resource/slack/slack.d.ts.map +1 -0
  1265. package/dist/resource/slack/slack.js +88 -0
  1266. package/dist/resource/slack/slack.js.map +1 -0
  1267. package/dist/resource/ssh/config.d.ts +20 -0
  1268. package/dist/resource/ssh/config.d.ts.map +1 -0
  1269. package/dist/resource/ssh/config.js +33 -0
  1270. package/dist/resource/ssh/config.js.map +1 -0
  1271. package/dist/resource/ssh/prompt.d.ts +2 -0
  1272. package/dist/resource/ssh/prompt.d.ts.map +1 -0
  1273. package/dist/resource/ssh/prompt.js +18 -0
  1274. package/dist/resource/ssh/prompt.js.map +1 -0
  1275. package/dist/resource/ssh/ssh.d.ts +51 -0
  1276. package/dist/resource/ssh/ssh.d.ts.map +1 -0
  1277. package/dist/resource/ssh/ssh.js +169 -0
  1278. package/dist/resource/ssh/ssh.js.map +1 -0
  1279. package/dist/resource/supabase/config.d.ts +38 -0
  1280. package/dist/resource/supabase/config.d.ts.map +1 -0
  1281. package/dist/resource/supabase/config.js +63 -0
  1282. package/dist/resource/supabase/config.js.map +1 -0
  1283. package/dist/resource/supabase/prompt.d.ts +2 -0
  1284. package/dist/resource/supabase/prompt.d.ts.map +1 -0
  1285. package/dist/resource/supabase/prompt.js +19 -0
  1286. package/dist/resource/supabase/prompt.js.map +1 -0
  1287. package/dist/resource/supabase/supabase.d.ts +8 -0
  1288. package/dist/resource/supabase/supabase.d.ts.map +1 -0
  1289. package/dist/resource/supabase/supabase.js +24 -0
  1290. package/dist/resource/supabase/supabase.js.map +1 -0
  1291. package/dist/resource/tencent/config.d.ts +10 -0
  1292. package/dist/resource/tencent/config.d.ts.map +1 -0
  1293. package/dist/resource/tencent/config.js +20 -0
  1294. package/dist/resource/tencent/config.js.map +1 -0
  1295. package/dist/resource/tencent/prompt.d.ts +2 -0
  1296. package/dist/resource/tencent/prompt.d.ts.map +1 -0
  1297. package/dist/resource/tencent/prompt.js +19 -0
  1298. package/dist/resource/tencent/prompt.js.map +1 -0
  1299. package/dist/resource/tencent/tencent.d.ts +8 -0
  1300. package/dist/resource/tencent/tencent.d.ts.map +1 -0
  1301. package/dist/resource/tencent/tencent.js +24 -0
  1302. package/dist/resource/tencent/tencent.js.map +1 -0
  1303. package/dist/resource/trello/config.d.ts +15 -0
  1304. package/dist/resource/trello/config.d.ts.map +1 -0
  1305. package/dist/resource/trello/config.js +28 -0
  1306. package/dist/resource/trello/config.js.map +1 -0
  1307. package/dist/resource/trello/trello.d.ts +32 -0
  1308. package/dist/resource/trello/trello.d.ts.map +1 -0
  1309. package/dist/resource/trello/trello.js +94 -0
  1310. package/dist/resource/trello/trello.js.map +1 -0
  1311. package/dist/resource/wasabi/config.d.ts +36 -0
  1312. package/dist/resource/wasabi/config.d.ts.map +1 -0
  1313. package/dist/resource/wasabi/config.js +60 -0
  1314. package/dist/resource/wasabi/config.js.map +1 -0
  1315. package/dist/resource/wasabi/prompt.d.ts +2 -0
  1316. package/dist/resource/wasabi/prompt.d.ts.map +1 -0
  1317. package/dist/resource/wasabi/prompt.js +19 -0
  1318. package/dist/resource/wasabi/prompt.js.map +1 -0
  1319. package/dist/resource/wasabi/wasabi.d.ts +8 -0
  1320. package/dist/resource/wasabi/wasabi.d.ts.map +1 -0
  1321. package/dist/resource/wasabi/wasabi.js +24 -0
  1322. package/dist/resource/wasabi/wasabi.js.map +1 -0
  1323. package/dist/runtime/python/local.d.ts +23 -0
  1324. package/dist/runtime/python/local.d.ts.map +1 -0
  1325. package/dist/runtime/python/local.js +98 -0
  1326. package/dist/runtime/python/local.js.map +1 -0
  1327. package/dist/runtime/sandbox/daytona/config.d.ts +14 -0
  1328. package/dist/runtime/sandbox/daytona/config.d.ts.map +1 -0
  1329. package/dist/runtime/sandbox/daytona/config.js +15 -0
  1330. package/dist/runtime/sandbox/daytona/config.js.map +1 -0
  1331. package/dist/runtime/sandbox/daytona/runtime.d.ts +28 -0
  1332. package/dist/runtime/sandbox/daytona/runtime.d.ts.map +1 -0
  1333. package/dist/runtime/sandbox/daytona/runtime.js +89 -0
  1334. package/dist/runtime/sandbox/daytona/runtime.js.map +1 -0
  1335. package/dist/runtime/sandbox/docker/config.d.ts +13 -0
  1336. package/dist/runtime/sandbox/docker/config.d.ts.map +1 -0
  1337. package/dist/runtime/sandbox/docker/config.js +15 -0
  1338. package/dist/runtime/sandbox/docker/config.js.map +1 -0
  1339. package/dist/runtime/sandbox/docker/constants.d.ts +2 -0
  1340. package/dist/runtime/sandbox/docker/constants.d.ts.map +1 -0
  1341. package/dist/runtime/sandbox/docker/constants.js +15 -0
  1342. package/dist/runtime/sandbox/docker/constants.js.map +1 -0
  1343. package/dist/runtime/sandbox/docker/runtime.d.ts +27 -0
  1344. package/dist/runtime/sandbox/docker/runtime.d.ts.map +1 -0
  1345. package/dist/runtime/sandbox/docker/runtime.js +95 -0
  1346. package/dist/runtime/sandbox/docker/runtime.js.map +1 -0
  1347. package/dist/runtime/sandbox/e2b/config.d.ts +13 -0
  1348. package/dist/runtime/sandbox/e2b/config.d.ts.map +1 -0
  1349. package/dist/runtime/sandbox/e2b/config.js +15 -0
  1350. package/dist/runtime/sandbox/e2b/config.js.map +1 -0
  1351. package/dist/runtime/sandbox/e2b/runtime.d.ts +27 -0
  1352. package/dist/runtime/sandbox/e2b/runtime.d.ts.map +1 -0
  1353. package/dist/runtime/sandbox/e2b/runtime.js +93 -0
  1354. package/dist/runtime/sandbox/e2b/runtime.js.map +1 -0
  1355. package/dist/runtime/sandbox/smolvm/config.d.ts +15 -0
  1356. package/dist/runtime/sandbox/smolvm/config.d.ts.map +1 -0
  1357. package/dist/runtime/sandbox/smolvm/config.js +15 -0
  1358. package/dist/runtime/sandbox/smolvm/config.js.map +1 -0
  1359. package/dist/runtime/sandbox/smolvm/constants.d.ts +11 -0
  1360. package/dist/runtime/sandbox/smolvm/constants.d.ts.map +1 -0
  1361. package/dist/runtime/sandbox/smolvm/constants.js +39 -0
  1362. package/dist/runtime/sandbox/smolvm/constants.js.map +1 -0
  1363. package/dist/runtime/sandbox/smolvm/runtime.d.ts +39 -0
  1364. package/dist/runtime/sandbox/smolvm/runtime.d.ts.map +1 -0
  1365. package/dist/runtime/sandbox/smolvm/runtime.js +111 -0
  1366. package/dist/runtime/sandbox/smolvm/runtime.js.map +1 -0
  1367. package/dist/runtime/sandbox/ssh/config.d.ts +25 -0
  1368. package/dist/runtime/sandbox/ssh/config.d.ts.map +1 -0
  1369. package/dist/runtime/sandbox/ssh/config.js +23 -0
  1370. package/dist/runtime/sandbox/ssh/config.js.map +1 -0
  1371. package/dist/runtime/sandbox/ssh/constants.d.ts +12 -0
  1372. package/dist/runtime/sandbox/ssh/constants.d.ts.map +1 -0
  1373. package/dist/runtime/sandbox/ssh/constants.js +32 -0
  1374. package/dist/runtime/sandbox/ssh/constants.js.map +1 -0
  1375. package/dist/runtime/sandbox/ssh/runtime.d.ts +40 -0
  1376. package/dist/runtime/sandbox/ssh/runtime.d.ts.map +1 -0
  1377. package/dist/runtime/sandbox/ssh/runtime.js +139 -0
  1378. package/dist/runtime/sandbox/ssh/runtime.js.map +1 -0
  1379. package/dist/secrets/aws.d.ts +22 -0
  1380. package/dist/secrets/aws.d.ts.map +1 -0
  1381. package/dist/secrets/aws.js +80 -0
  1382. package/dist/secrets/aws.js.map +1 -0
  1383. package/dist/secrets/config.d.ts +39 -0
  1384. package/dist/secrets/config.d.ts.map +1 -0
  1385. package/dist/secrets/config.js +95 -0
  1386. package/dist/secrets/config.js.map +1 -0
  1387. package/dist/secrets/constants.d.ts +3 -0
  1388. package/dist/secrets/constants.d.ts.map +1 -0
  1389. package/dist/secrets/constants.js +58 -0
  1390. package/dist/secrets/constants.js.map +1 -0
  1391. package/dist/secrets/dotenv.d.ts +13 -0
  1392. package/dist/secrets/dotenv.d.ts.map +1 -0
  1393. package/dist/secrets/dotenv.js +40 -0
  1394. package/dist/secrets/dotenv.js.map +1 -0
  1395. package/dist/secrets/env.d.ts +10 -0
  1396. package/dist/secrets/env.d.ts.map +1 -0
  1397. package/dist/secrets/env.js +32 -0
  1398. package/dist/secrets/env.js.map +1 -0
  1399. package/dist/secrets/onepassword.d.ts +79 -0
  1400. package/dist/secrets/onepassword.d.ts.map +1 -0
  1401. package/dist/secrets/onepassword.js +141 -0
  1402. package/dist/secrets/onepassword.js.map +1 -0
  1403. package/dist/shell/console/redis/constants.d.ts +3 -0
  1404. package/dist/shell/console/redis/constants.d.ts.map +1 -0
  1405. package/dist/shell/console/redis/constants.js +22 -0
  1406. package/dist/shell/console/redis/constants.js.map +1 -0
  1407. package/dist/shell/console/redis/index.d.ts +2 -0
  1408. package/dist/shell/console/redis/index.d.ts.map +1 -0
  1409. package/dist/shell/console/redis/index.js +15 -0
  1410. package/dist/shell/console/redis/index.js.map +1 -0
  1411. package/dist/shell/console/redis/store.d.ts +67 -0
  1412. package/dist/shell/console/redis/store.d.ts.map +1 -0
  1413. package/dist/shell/console/redis/store.js +176 -0
  1414. package/dist/shell/console/redis/store.js.map +1 -0
  1415. package/dist/test-utils.d.ts +11 -0
  1416. package/dist/test-utils.d.ts.map +1 -0
  1417. package/dist/test-utils.js +38 -0
  1418. package/dist/test-utils.js.map +1 -0
  1419. package/dist/version.d.ts +2 -0
  1420. package/dist/version.d.ts.map +1 -0
  1421. package/dist/version.js +21 -0
  1422. package/dist/version.js.map +1 -0
  1423. package/dist/workspace/fuse.d.ts +11 -0
  1424. package/dist/workspace/fuse.d.ts.map +1 -0
  1425. package/dist/workspace/fuse.js +129 -0
  1426. package/dist/workspace/fuse.js.map +1 -0
  1427. package/dist/workspace/namespace/disk.d.ts +28 -0
  1428. package/dist/workspace/namespace/disk.d.ts.map +1 -0
  1429. package/dist/workspace/namespace/disk.js +110 -0
  1430. package/dist/workspace/namespace/disk.js.map +1 -0
  1431. package/dist/workspace/namespace/redis.d.ts +31 -0
  1432. package/dist/workspace/namespace/redis.d.ts.map +1 -0
  1433. package/dist/workspace/namespace/redis.js +99 -0
  1434. package/dist/workspace/namespace/redis.js.map +1 -0
  1435. package/dist/workspace/record/disk.d.ts +47 -0
  1436. package/dist/workspace/record/disk.d.ts.map +1 -0
  1437. package/dist/workspace/record/disk.js +229 -0
  1438. package/dist/workspace/record/disk.js.map +1 -0
  1439. package/dist/workspace/session/disk.d.ts +22 -0
  1440. package/dist/workspace/session/disk.d.ts.map +1 -0
  1441. package/dist/workspace/session/disk.js +54 -0
  1442. package/dist/workspace/session/disk.js.map +1 -0
  1443. package/dist/workspace/session/redis.d.ts +32 -0
  1444. package/dist/workspace/session/redis.d.ts.map +1 -0
  1445. package/dist/workspace/session/redis.js +106 -0
  1446. package/dist/workspace/session/redis.js.map +1 -0
  1447. package/dist/workspace/store/disk.d.ts +46 -0
  1448. package/dist/workspace/store/disk.d.ts.map +1 -0
  1449. package/dist/workspace/store/disk.js +119 -0
  1450. package/dist/workspace/store/disk.js.map +1 -0
  1451. package/dist/workspace/store/redis.d.ts +43 -0
  1452. package/dist/workspace/store/redis.d.ts.map +1 -0
  1453. package/dist/workspace/store/redis.js +126 -0
  1454. package/dist/workspace/store/redis.js.map +1 -0
  1455. package/dist/workspace/workspace/kernel_mounts.d.ts +48 -0
  1456. package/dist/workspace/workspace/kernel_mounts.d.ts.map +1 -0
  1457. package/dist/workspace/workspace/kernel_mounts.js +117 -0
  1458. package/dist/workspace/workspace/kernel_mounts.js.map +1 -0
  1459. package/dist/workspace.d.ts +44 -0
  1460. package/dist/workspace.d.ts.map +1 -0
  1461. package/dist/workspace.js +127 -0
  1462. package/dist/workspace.js.map +1 -0
  1463. package/package.json +24 -9
  1464. package/dist/aliyun-S62BR3TB.js +0 -11
  1465. package/dist/aliyun-S62BR3TB.js.map +0 -1
  1466. package/dist/backblaze-4EKSW63F.js +0 -11
  1467. package/dist/backblaze-4EKSW63F.js.map +0 -1
  1468. package/dist/box-ZPLZAGMK.js +0 -8
  1469. package/dist/box-ZPLZAGMK.js.map +0 -1
  1470. package/dist/ceph-ALKLD3MO.js +0 -11
  1471. package/dist/ceph-ALKLD3MO.js.map +0 -1
  1472. package/dist/chunk-2A4YGVBM.js +0 -81
  1473. package/dist/chunk-2A4YGVBM.js.map +0 -1
  1474. package/dist/chunk-2HCYLVGY.js +0 -28
  1475. package/dist/chunk-2HCYLVGY.js.map +0 -1
  1476. package/dist/chunk-2VPZAH5Q.js +0 -20
  1477. package/dist/chunk-2VPZAH5Q.js.map +0 -1
  1478. package/dist/chunk-3JZQ6VSZ.js +0 -38
  1479. package/dist/chunk-3JZQ6VSZ.js.map +0 -1
  1480. package/dist/chunk-4IF4TGAI.js +0 -11
  1481. package/dist/chunk-4IF4TGAI.js.map +0 -1
  1482. package/dist/chunk-5H6KNEPP.js +0 -56
  1483. package/dist/chunk-5H6KNEPP.js.map +0 -1
  1484. package/dist/chunk-5K2MWDCE.js +0 -56
  1485. package/dist/chunk-5K2MWDCE.js.map +0 -1
  1486. package/dist/chunk-6SVXWRKX.js +0 -56
  1487. package/dist/chunk-6SVXWRKX.js.map +0 -1
  1488. package/dist/chunk-6VOIUGAD.js +0 -68
  1489. package/dist/chunk-6VOIUGAD.js.map +0 -1
  1490. package/dist/chunk-7JYHFXXC.js +0 -82
  1491. package/dist/chunk-7JYHFXXC.js.map +0 -1
  1492. package/dist/chunk-7VQQFWV6.js +0 -20
  1493. package/dist/chunk-7VQQFWV6.js.map +0 -1
  1494. package/dist/chunk-7ZP6TPHX.js +0 -87
  1495. package/dist/chunk-7ZP6TPHX.js.map +0 -1
  1496. package/dist/chunk-ADEXNSYU.js +0 -87
  1497. package/dist/chunk-ADEXNSYU.js.map +0 -1
  1498. package/dist/chunk-AQSYAXL4.js +0 -16
  1499. package/dist/chunk-AQSYAXL4.js.map +0 -1
  1500. package/dist/chunk-ATLXMNKD.js +0 -34
  1501. package/dist/chunk-ATLXMNKD.js.map +0 -1
  1502. package/dist/chunk-BYCUGFRF.js +0 -86
  1503. package/dist/chunk-BYCUGFRF.js.map +0 -1
  1504. package/dist/chunk-BZTVYOES.js +0 -50
  1505. package/dist/chunk-BZTVYOES.js.map +0 -1
  1506. package/dist/chunk-CRC4YWXB.js +0 -79
  1507. package/dist/chunk-CRC4YWXB.js.map +0 -1
  1508. package/dist/chunk-CTGXJHO5.js +0 -39
  1509. package/dist/chunk-CTGXJHO5.js.map +0 -1
  1510. package/dist/chunk-DCDBIXVZ.js +0 -35
  1511. package/dist/chunk-DCDBIXVZ.js.map +0 -1
  1512. package/dist/chunk-DDAFNROK.js +0 -750
  1513. package/dist/chunk-DDAFNROK.js.map +0 -1
  1514. package/dist/chunk-DQIEWEAW.js +0 -85
  1515. package/dist/chunk-DQIEWEAW.js.map +0 -1
  1516. package/dist/chunk-EBI4IHDC.js +0 -73
  1517. package/dist/chunk-EBI4IHDC.js.map +0 -1
  1518. package/dist/chunk-EIUTZ6N7.js +0 -84
  1519. package/dist/chunk-EIUTZ6N7.js.map +0 -1
  1520. package/dist/chunk-EJZG5VUF.js +0 -190
  1521. package/dist/chunk-EJZG5VUF.js.map +0 -1
  1522. package/dist/chunk-ENW5BVYN.js +0 -50
  1523. package/dist/chunk-ENW5BVYN.js.map +0 -1
  1524. package/dist/chunk-ETIAW4YD.js +0 -56
  1525. package/dist/chunk-ETIAW4YD.js.map +0 -1
  1526. package/dist/chunk-EUPXAYPB.js +0 -20
  1527. package/dist/chunk-EUPXAYPB.js.map +0 -1
  1528. package/dist/chunk-FA6YNU75.js +0 -56
  1529. package/dist/chunk-FA6YNU75.js.map +0 -1
  1530. package/dist/chunk-FFH6R5VQ.js +0 -28
  1531. package/dist/chunk-FFH6R5VQ.js.map +0 -1
  1532. package/dist/chunk-GE6H2COM.js +0 -82
  1533. package/dist/chunk-GE6H2COM.js.map +0 -1
  1534. package/dist/chunk-GMMQ3ZK4.js +0 -56
  1535. package/dist/chunk-GMMQ3ZK4.js.map +0 -1
  1536. package/dist/chunk-GSGE3M5P.js +0 -82
  1537. package/dist/chunk-GSGE3M5P.js.map +0 -1
  1538. package/dist/chunk-HCRYAFBI.js +0 -50
  1539. package/dist/chunk-HCRYAFBI.js.map +0 -1
  1540. package/dist/chunk-HOPUP6LA.js +0 -982
  1541. package/dist/chunk-HOPUP6LA.js.map +0 -1
  1542. package/dist/chunk-HS24BL6W.js +0 -160
  1543. package/dist/chunk-HS24BL6W.js.map +0 -1
  1544. package/dist/chunk-HVYVG5KQ.js +0 -16
  1545. package/dist/chunk-HVYVG5KQ.js.map +0 -1
  1546. package/dist/chunk-I7CPLZNW.js +0 -56
  1547. package/dist/chunk-I7CPLZNW.js.map +0 -1
  1548. package/dist/chunk-IFUCGI4I.js +0 -35
  1549. package/dist/chunk-IFUCGI4I.js.map +0 -1
  1550. package/dist/chunk-IFYXSSKR.js +0 -227
  1551. package/dist/chunk-IFYXSSKR.js.map +0 -1
  1552. package/dist/chunk-IXA4DQE4.js +0 -20
  1553. package/dist/chunk-IXA4DQE4.js.map +0 -1
  1554. package/dist/chunk-IZMKMD3O.js +0 -11
  1555. package/dist/chunk-IZMKMD3O.js.map +0 -1
  1556. package/dist/chunk-JJERW2BI.js +0 -56
  1557. package/dist/chunk-JJERW2BI.js.map +0 -1
  1558. package/dist/chunk-JQR4HVUX.js +0 -94
  1559. package/dist/chunk-JQR4HVUX.js.map +0 -1
  1560. package/dist/chunk-JXOMDLFS.js +0 -87
  1561. package/dist/chunk-JXOMDLFS.js.map +0 -1
  1562. package/dist/chunk-KIX6N7NT.js +0 -1001
  1563. package/dist/chunk-KIX6N7NT.js.map +0 -1
  1564. package/dist/chunk-L42UTDFK.js +0 -40
  1565. package/dist/chunk-L42UTDFK.js.map +0 -1
  1566. package/dist/chunk-LPDLPRPS.js +0 -11
  1567. package/dist/chunk-LPDLPRPS.js.map +0 -1
  1568. package/dist/chunk-M2UF2JHJ.js +0 -11
  1569. package/dist/chunk-M2UF2JHJ.js.map +0 -1
  1570. package/dist/chunk-MONC734W.js +0 -36
  1571. package/dist/chunk-MONC734W.js.map +0 -1
  1572. package/dist/chunk-N72RLCMU.js +0 -56
  1573. package/dist/chunk-N72RLCMU.js.map +0 -1
  1574. package/dist/chunk-ND4IWJ4V.js +0 -29
  1575. package/dist/chunk-ND4IWJ4V.js.map +0 -1
  1576. package/dist/chunk-NZ3EKGW4.js +0 -1312
  1577. package/dist/chunk-NZ3EKGW4.js.map +0 -1
  1578. package/dist/chunk-OAE57MNL.js +0 -68
  1579. package/dist/chunk-OAE57MNL.js.map +0 -1
  1580. package/dist/chunk-OHKGIQB4.js +0 -87
  1581. package/dist/chunk-OHKGIQB4.js.map +0 -1
  1582. package/dist/chunk-OQKNDS66.js +0 -7
  1583. package/dist/chunk-OQKNDS66.js.map +0 -1
  1584. package/dist/chunk-OXEQSPND.js +0 -50
  1585. package/dist/chunk-OXEQSPND.js.map +0 -1
  1586. package/dist/chunk-PKNE5J2B.js +0 -82
  1587. package/dist/chunk-PKNE5J2B.js.map +0 -1
  1588. package/dist/chunk-PSXXEGYQ.js +0 -16
  1589. package/dist/chunk-PSXXEGYQ.js.map +0 -1
  1590. package/dist/chunk-QAOVABCR.js +0 -79
  1591. package/dist/chunk-QAOVABCR.js.map +0 -1
  1592. package/dist/chunk-QQ7FP4GD.js +0 -56
  1593. package/dist/chunk-QQ7FP4GD.js.map +0 -1
  1594. package/dist/chunk-QYLVMC6B.js +0 -94
  1595. package/dist/chunk-QYLVMC6B.js.map +0 -1
  1596. package/dist/chunk-RX3XR65X.js +0 -56
  1597. package/dist/chunk-RX3XR65X.js.map +0 -1
  1598. package/dist/chunk-RYQJJB4C.js +0 -30
  1599. package/dist/chunk-RYQJJB4C.js.map +0 -1
  1600. package/dist/chunk-TUF7TCN7.js +0 -56
  1601. package/dist/chunk-TUF7TCN7.js.map +0 -1
  1602. package/dist/chunk-TUX36JY5.js +0 -56
  1603. package/dist/chunk-TUX36JY5.js.map +0 -1
  1604. package/dist/chunk-TWRQCQWU.js +0 -1153
  1605. package/dist/chunk-TWRQCQWU.js.map +0 -1
  1606. package/dist/chunk-U6DFQRG3.js +0 -20
  1607. package/dist/chunk-U6DFQRG3.js.map +0 -1
  1608. package/dist/chunk-VI5YTKNY.js +0 -20
  1609. package/dist/chunk-VI5YTKNY.js.map +0 -1
  1610. package/dist/chunk-VQDF2UH5.js +0 -335
  1611. package/dist/chunk-VQDF2UH5.js.map +0 -1
  1612. package/dist/chunk-WG5YS6TC.js +0 -872
  1613. package/dist/chunk-WG5YS6TC.js.map +0 -1
  1614. package/dist/chunk-WMJJ4WGF.js +0 -56
  1615. package/dist/chunk-WMJJ4WGF.js.map +0 -1
  1616. package/dist/chunk-WY4FNH42.js +0 -113
  1617. package/dist/chunk-WY4FNH42.js.map +0 -1
  1618. package/dist/chunk-XIG5BWWH.js +0 -75
  1619. package/dist/chunk-XIG5BWWH.js.map +0 -1
  1620. package/dist/chunk-XJBC3OYX.js +0 -11
  1621. package/dist/chunk-XJBC3OYX.js.map +0 -1
  1622. package/dist/chunk-XPRDXWK7.js +0 -93
  1623. package/dist/chunk-XPRDXWK7.js.map +0 -1
  1624. package/dist/chunk-YKRQSZS7.js +0 -96
  1625. package/dist/chunk-YKRQSZS7.js.map +0 -1
  1626. package/dist/chunk-YMBL3VJB.js +0 -87
  1627. package/dist/chunk-YMBL3VJB.js.map +0 -1
  1628. package/dist/chunk-YUJBXFYK.js +0 -1205
  1629. package/dist/chunk-YUJBXFYK.js.map +0 -1
  1630. package/dist/chunk-YZ4ZJNOL.js +0 -72
  1631. package/dist/chunk-YZ4ZJNOL.js.map +0 -1
  1632. package/dist/chunk-ZTHVEXIV.js +0 -11
  1633. package/dist/chunk-ZTHVEXIV.js.map +0 -1
  1634. package/dist/chunk-ZVSYUCYS.js +0 -120
  1635. package/dist/chunk-ZVSYUCYS.js.map +0 -1
  1636. package/dist/config-2YBCHU2W.js +0 -13
  1637. package/dist/config-2YBCHU2W.js.map +0 -1
  1638. package/dist/config-3YRGRW72.js +0 -14
  1639. package/dist/config-3YRGRW72.js.map +0 -1
  1640. package/dist/config-4GSOMUMF.js +0 -9
  1641. package/dist/config-4GSOMUMF.js.map +0 -1
  1642. package/dist/config-5YBUWFUP.js +0 -9
  1643. package/dist/config-5YBUWFUP.js.map +0 -1
  1644. package/dist/config-5ZRKJTKG.js +0 -12
  1645. package/dist/config-5ZRKJTKG.js.map +0 -1
  1646. package/dist/config-A25LTL5W.js +0 -11
  1647. package/dist/config-A25LTL5W.js.map +0 -1
  1648. package/dist/config-CLU7JABG.js +0 -9
  1649. package/dist/config-CLU7JABG.js.map +0 -1
  1650. package/dist/config-D2RF7L3N.js +0 -9
  1651. package/dist/config-D2RF7L3N.js.map +0 -1
  1652. package/dist/config-E55TKM6K.js +0 -9
  1653. package/dist/config-E55TKM6K.js.map +0 -1
  1654. package/dist/config-ELDOFRJW.js +0 -9
  1655. package/dist/config-ELDOFRJW.js.map +0 -1
  1656. package/dist/config-FPC3RBFD.js +0 -13
  1657. package/dist/config-FPC3RBFD.js.map +0 -1
  1658. package/dist/config-FPM3LAW7.js +0 -9
  1659. package/dist/config-FPM3LAW7.js.map +0 -1
  1660. package/dist/config-G3F54CS4.js +0 -14
  1661. package/dist/config-G3F54CS4.js.map +0 -1
  1662. package/dist/config-G43HRUI3.js +0 -9
  1663. package/dist/config-G43HRUI3.js.map +0 -1
  1664. package/dist/config-GG3WO5PB.js +0 -14
  1665. package/dist/config-GG3WO5PB.js.map +0 -1
  1666. package/dist/config-JUYBWAZE.js +0 -9
  1667. package/dist/config-JUYBWAZE.js.map +0 -1
  1668. package/dist/config-LJ5T6TVA.js +0 -17
  1669. package/dist/config-LJ5T6TVA.js.map +0 -1
  1670. package/dist/config-MDSAE4O3.js +0 -11
  1671. package/dist/config-MDSAE4O3.js.map +0 -1
  1672. package/dist/config-NRIOKK5T.js +0 -9
  1673. package/dist/config-NRIOKK5T.js.map +0 -1
  1674. package/dist/config-OYK2BSJK.js +0 -9
  1675. package/dist/config-OYK2BSJK.js.map +0 -1
  1676. package/dist/config-PB3KA2CE.js +0 -9
  1677. package/dist/config-PB3KA2CE.js.map +0 -1
  1678. package/dist/config-QY4IL3PH.js +0 -12
  1679. package/dist/config-QY4IL3PH.js.map +0 -1
  1680. package/dist/config-R4LAOEDS.js +0 -9
  1681. package/dist/config-R4LAOEDS.js.map +0 -1
  1682. package/dist/config-RIAAD6RW.js +0 -14
  1683. package/dist/config-RIAAD6RW.js.map +0 -1
  1684. package/dist/config-SYNEQAUB.js +0 -9
  1685. package/dist/config-SYNEQAUB.js.map +0 -1
  1686. package/dist/config-TJKGYA2B.js +0 -14
  1687. package/dist/config-TJKGYA2B.js.map +0 -1
  1688. package/dist/config-UU27ALAA.js +0 -9
  1689. package/dist/config-UU27ALAA.js.map +0 -1
  1690. package/dist/config-UURRGA7U.js +0 -13
  1691. package/dist/config-UURRGA7U.js.map +0 -1
  1692. package/dist/config-VPLHQXVE.js +0 -13
  1693. package/dist/config-VPLHQXVE.js.map +0 -1
  1694. package/dist/config-WRACCRPN.js +0 -9
  1695. package/dist/config-WRACCRPN.js.map +0 -1
  1696. package/dist/config-WVHKXEVE.js +0 -12
  1697. package/dist/config-WVHKXEVE.js.map +0 -1
  1698. package/dist/config-XU7R36IE.js +0 -14
  1699. package/dist/config-XU7R36IE.js.map +0 -1
  1700. package/dist/config-Y2KOUYSS.js +0 -9
  1701. package/dist/config-Y2KOUYSS.js.map +0 -1
  1702. package/dist/databricks_volume-CNCPTZHS.js +0 -7
  1703. package/dist/databricks_volume-CNCPTZHS.js.map +0 -1
  1704. package/dist/digitalocean-DJZOUB6Q.js +0 -11
  1705. package/dist/digitalocean-DJZOUB6Q.js.map +0 -1
  1706. package/dist/discord-ETB2CADR.js +0 -7
  1707. package/dist/discord-ETB2CADR.js.map +0 -1
  1708. package/dist/disk-WEHSTK3F.js +0 -7
  1709. package/dist/disk-WEHSTK3F.js.map +0 -1
  1710. package/dist/dropbox-XN6PGLNE.js +0 -8
  1711. package/dist/dropbox-XN6PGLNE.js.map +0 -1
  1712. package/dist/email-OV7XCP3T.js +0 -8
  1713. package/dist/email-OV7XCP3T.js.map +0 -1
  1714. package/dist/gcal-P56MRCGU.js +0 -8
  1715. package/dist/gcal-P56MRCGU.js.map +0 -1
  1716. package/dist/gcs-HFBIAE2C.js +0 -10
  1717. package/dist/gcs-HFBIAE2C.js.map +0 -1
  1718. package/dist/gdocs-LQ3UXP3J.js +0 -8
  1719. package/dist/gdocs-LQ3UXP3J.js.map +0 -1
  1720. package/dist/gdrive-N6UBYLON.js +0 -8
  1721. package/dist/gdrive-N6UBYLON.js.map +0 -1
  1722. package/dist/github-BPZREGPI.js +0 -8
  1723. package/dist/github-BPZREGPI.js.map +0 -1
  1724. package/dist/github_ci-7A4LUIZ7.js +0 -8
  1725. package/dist/github_ci-7A4LUIZ7.js.map +0 -1
  1726. package/dist/gmail-YED2MF6H.js +0 -8
  1727. package/dist/gmail-YED2MF6H.js.map +0 -1
  1728. package/dist/gridfs-CPLQ4G62.js +0 -9
  1729. package/dist/gridfs-CPLQ4G62.js.map +0 -1
  1730. package/dist/gsheets-4BNIJPQ6.js +0 -8
  1731. package/dist/gsheets-4BNIJPQ6.js.map +0 -1
  1732. package/dist/gslides-GDBYLO5A.js +0 -8
  1733. package/dist/gslides-GDBYLO5A.js.map +0 -1
  1734. package/dist/hf_buckets-FTJITQ3P.js +0 -10
  1735. package/dist/hf_buckets-FTJITQ3P.js.map +0 -1
  1736. package/dist/hf_datasets-6GXVKQD7.js +0 -10
  1737. package/dist/hf_datasets-6GXVKQD7.js.map +0 -1
  1738. package/dist/hf_models-PJPGZAC5.js +0 -10
  1739. package/dist/hf_models-PJPGZAC5.js.map +0 -1
  1740. package/dist/hf_spaces-LFNFOLBF.js +0 -10
  1741. package/dist/hf_spaces-LFNFOLBF.js.map +0 -1
  1742. package/dist/jaeger-GCA6MJ6E.js +0 -8
  1743. package/dist/jaeger-GCA6MJ6E.js.map +0 -1
  1744. package/dist/lancedb-TJ5YSJY5.js +0 -7
  1745. package/dist/lancedb-TJ5YSJY5.js.map +0 -1
  1746. package/dist/langfuse-RUMTUMXS.js +0 -8
  1747. package/dist/langfuse-RUMTUMXS.js.map +0 -1
  1748. package/dist/linear-BCE4KEAC.js +0 -7
  1749. package/dist/linear-BCE4KEAC.js.map +0 -1
  1750. package/dist/minio-5SO6KBTK.js +0 -11
  1751. package/dist/minio-5SO6KBTK.js.map +0 -1
  1752. package/dist/mongodb-7C5MBESV.js +0 -7
  1753. package/dist/mongodb-7C5MBESV.js.map +0 -1
  1754. package/dist/nextcloud-4O2LZVW2.js +0 -9
  1755. package/dist/nextcloud-4O2LZVW2.js.map +0 -1
  1756. package/dist/notion-RVKEAQ2M.js +0 -7
  1757. package/dist/notion-RVKEAQ2M.js.map +0 -1
  1758. package/dist/oci-OQXOIC62.js +0 -10
  1759. package/dist/oci-OQXOIC62.js.map +0 -1
  1760. package/dist/postgres-AV45GNRS.js +0 -7
  1761. package/dist/postgres-AV45GNRS.js.map +0 -1
  1762. package/dist/qingstor-W277YA4K.js +0 -11
  1763. package/dist/qingstor-W277YA4K.js.map +0 -1
  1764. package/dist/r2-FUA4IORE.js +0 -10
  1765. package/dist/r2-FUA4IORE.js.map +0 -1
  1766. package/dist/redis-LPS357NF.js +0 -8
  1767. package/dist/redis-LPS357NF.js.map +0 -1
  1768. package/dist/s3-FPNWWIVM.js +0 -8
  1769. package/dist/s3-FPNWWIVM.js.map +0 -1
  1770. package/dist/scaleway-BP3732U7.js +0 -11
  1771. package/dist/scaleway-BP3732U7.js.map +0 -1
  1772. package/dist/seaweedfs-MC6HIEP4.js +0 -11
  1773. package/dist/seaweedfs-MC6HIEP4.js.map +0 -1
  1774. package/dist/slack-JFGW7VLN.js +0 -7
  1775. package/dist/slack-JFGW7VLN.js.map +0 -1
  1776. package/dist/ssh-UYPG42LM.js +0 -8
  1777. package/dist/ssh-UYPG42LM.js.map +0 -1
  1778. package/dist/supabase-A3KUFMDC.js +0 -10
  1779. package/dist/supabase-A3KUFMDC.js.map +0 -1
  1780. package/dist/tencent-5464UQ2X.js +0 -11
  1781. package/dist/tencent-5464UQ2X.js.map +0 -1
  1782. package/dist/trello-O2KB3FUO.js +0 -8
  1783. package/dist/trello-O2KB3FUO.js.map +0 -1
  1784. package/dist/wasabi-2IKBIWNO.js +0 -10
  1785. package/dist/wasabi-2IKBIWNO.js.map +0 -1
  1786. /package/dist/{append.lua → shell/console/redis/append.lua} +0 -0
  1787. /package/dist/{cas.lua → workspace/session/cas.lua} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,2924 +1,200 @@
1
- import * as _struktoai_mirage_core from '@struktoai/mirage-core';
2
- import { Resource, MountMode, MountBackend, Limit, SandboxConfig, RemoteSandbox, RuntimeOptions, RunResult, WorkspaceOptions, Workspace as Workspace$1, MountSpec, ExecuteOptions, ExecuteResult, ProvisionResult, Accessor, BaseResource, CapacityResult, RegisteredOp, RegisteredCommand, PathSpec, FileStat, FindOptions, ObserverStoreBase, ConsoleStore, Channel, ConsoleChunk, ReadResult, NamespaceStore, NodeFields, SessionStore, SessionFields, WorkspaceStateStore, WorkspaceStateStoreOverrides, ObserverStore, WorkspaceFields, REDACTED_SECRET, CommandOpts, FileCache, Session, Ops, FileTable, OpRecord, S3Config as S3Config$1, RedactedConfig, ConfigOf, z, S3Accessor, DatabricksVolumeConfig, DatabricksVolumeAccessor, DatabricksVolumeConfigRedacted, ResourceName, PgDriver, PostgresConfigResolved, PgQueryResult, PostgresAccessor, PostgresConfig, MongoDriver, EntityKind, MongoCollectionSpec, MongoFindOptions, MongoIterOptions, MongoIndexAccess, MongoDBConfigResolved, MongoDBAccessor, MongoDBConfig, LanceDriver, LanceDBConfigResolved, LanceRow, LanceDBAccessor, LanceDBConfig, SlackConfig, SlackAccessor, SlackConfigRedacted, DeltaHook, WalkEntry, DiscordConfig, DiscordAccessor, DiscordConfigRedacted, TrelloAccessor, LinearConfig, LinearAccessor, LinearConfigRedacted, NotionConfig, NotionAccessor, NotionConfigRedacted, LangfuseAccessor, JaegerAccessor, GitHubAccessor, GitHubCIAccessor, GoogleConfig, GDocsAccessor, GoogleConfigRedacted, GSheetsAccessor, GSlidesAccessor, GDriveAccessor, DropboxAccessor, BoxAccessor, GmailAccessor, GCalAccessor, CLISpec, PythonRuntime, RunArgs } from '@struktoai/mirage-core';
3
1
  export * from '@struktoai/mirage-core';
4
- export { DiscordConfig, DiscordConfigRedacted, 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, LinearConfig, LinearConfigRedacted, Mem0Config, Mem0Resource, NotionConfig, NotionConfigRedacted, OneDriveConfig, OneDriveResource, SharePointConfig, SharePointResource, SlackConfig, SlackConfigRedacted, normalizeDiscordConfig, normalizeGoogleConfig as normalizeGCalConfig, normalizeGoogleConfig as normalizeGDocsConfig, normalizeGoogleConfig as normalizeGDriveConfig, normalizeGoogleConfig as normalizeGSheetsConfig, normalizeGoogleConfig as normalizeGSlidesConfig, normalizeGoogleConfig as normalizeGmailConfig, normalizeLinearConfig, normalizeNotionConfig, normalizeSlackConfig, redactDiscordConfig, redactGoogleConfig as redactGCalConfig, redactGoogleConfig as redactGDocsConfig, redactGoogleConfig as redactGDriveConfig, redactGoogleConfig as redactGSheetsConfig, redactGoogleConfig as redactGSlidesConfig, redactGoogleConfig as redactGmailConfig, redactLinearConfig, redactNotionConfig, redactSlackConfig } from '@struktoai/mirage-core';
5
- import { FileHandle } from 'node:fs/promises';
6
- import { RedisClientType } from 'redis';
7
- import { MongoClient, Db } from 'mongodb';
8
- import { Operator } from 'opendal';
9
- import { SFTPWrapper } from 'ssh2';
10
- import { ImapFlow } from 'imapflow';
11
- import * as daytonaSdk from '@daytonaio/sdk';
12
- import * as e2bSdk from 'e2b';
13
-
14
- interface MountSpecOptions {
15
- /** Per-mount mode override; falls back to the workspace default when unset. */
16
- mode?: MountMode;
17
- /**
18
- * How the mount is exposed. `vfs` (the default) keeps it inside mirage's
19
- * own filesystem; `fuse` and `fskit` also register a real mountpoint.
20
- */
21
- backend?: MountBackend;
22
- /**
23
- * Where to mount, for the kernel backends. Omitted picks a temporary
24
- * directory appropriate for the backend. Ignored when backend is `vfs`.
25
- */
26
- mountpoint?: string;
27
- commandLimits?: Record<string, Limit>;
28
- }
29
- declare class Mount {
30
- readonly resource: Resource;
31
- readonly options: MountSpecOptions;
32
- constructor(resource: Resource, options?: MountSpecOptions);
33
- }
34
-
35
- /** How to reach the user's live Daytona sandbox. */
36
- interface DaytonaConfig extends SandboxConfig {
37
- /**
38
- * Id of a sandbox you created (dashboard, `daytona sandbox create`,
39
- * or the SDK). Boot it from an image or snapshot with fuse3 and
40
- * mirage installed.
41
- */
42
- sandboxId: string;
43
- /** Daytona credential; absent reads DAYTONA_API_KEY. */
44
- apiKey?: string;
45
- }
46
- declare const DAYTONA_CONFIG_KEYS: readonly string[];
47
-
48
- type DaytonaSdk = typeof daytonaSdk;
49
- /**
50
- * A Daytona sandbox the user runs as a whole-line runtime.
51
- *
52
- * You create the sandbox yourself (dashboard, `daytona sandbox
53
- * create`, or the SDK); mirage only connects by `sandboxId` and execs
54
- * lines. `apiKey` falls back to DAYTONA_API_KEY. Daytona's exec has
55
- * no stdin and reports combined output, so piped bytes are uploaded
56
- * and redirected in, and stderr comes back null. close() releases the
57
- * SDK client and never touches the sandbox.
58
- */
59
- declare class DaytonaRuntime extends RemoteSandbox<DaytonaConfig> {
60
- readonly name = "daytona";
61
- private client;
62
- private sandbox;
63
- constructor(options?: RuntimeOptions<DaytonaConfig> | Record<string, unknown>);
64
- protected loadSdk(): Promise<DaytonaSdk>;
65
- connect(): Promise<void>;
66
- execLine(line: string, stdin: Uint8Array | null, env: Record<string, string>, cwd: string): Promise<RunResult>;
67
- private upload;
68
- /** Release the SDK client; the sandbox itself is the user's. */
69
- close(): Promise<void>;
70
- }
71
-
72
- type NodeWorkspaceOptions = WorkspaceOptions;
73
- declare class Workspace extends Workspace$1 {
74
- private fuseSetupPromise;
75
- private readonly fuseMountpointsMap;
76
- private readonly fuseManagers;
77
- constructor(resources: Record<string, MountSpec | Mount>, options?: NodeWorkspaceOptions);
78
- private registerFuseMount;
79
- /**
80
- * Mount a workspace subtree under FUSE and own its lifecycle. Each mount gets
81
- * its own {@link FuseManager}, so a workspace can expose any number of FUSE
82
- * subtrees at once. A pinned mountpoint is collision-checked BEFORE mounting,
83
- * so a clash never leaves a partial kernel mount.
84
- *
85
- * A session-bound mount (`sessionId` given) runs every op under that
86
- * session's mount grants (the kernel-tier primitive: bind-mount the tree
87
- * into a container and the narrowing travels with it); it is keyed
88
- * separately so the same prefix can also be exposed unbound.
89
- */
90
- addFuseMount(prefix: string, mountpoint?: string, sessionId?: string, backend?: MountBackend): Promise<string>;
91
- removeFuseMount(prefix: string, sessionId?: string): Promise<void>;
92
- get fuseMountpoints(): Record<string, string>;
93
- get fuseMountpoint(): string | null;
94
- /** Await the eager per-mount fuse mounts started in the constructor. */
95
- fuseReady(): Promise<void>;
96
- execute(command: string, options?: ExecuteOptions & {
97
- provision?: false | undefined;
98
- }): Promise<ExecuteResult>;
99
- execute(command: string, options: ExecuteOptions & {
100
- provision: true;
101
- }): Promise<ProvisionResult>;
102
- execute(command: string, options: ExecuteOptions): Promise<ExecuteResult | ProvisionResult>;
103
- close(): Promise<void>;
104
- }
105
-
106
- declare class DiskAccessor extends Accessor {
107
- readonly root: string;
108
- constructor(root: string);
109
- }
110
-
111
- interface DiskResourceOptions {
112
- root: string;
113
- }
114
- interface DiskResourceState {
115
- type: string;
116
- files: Record<string, Uint8Array>;
117
- modes?: Record<string, number>;
118
- }
119
- declare class DiskResource extends BaseResource implements Resource {
120
- readonly kind: "disk";
121
- readonly cachesReads: boolean;
122
- readonly sizesAlwaysKnown: boolean;
123
- readonly indexTtl: number;
124
- readonly prompt = "{prefix}\n Local disk filesystem. Mirrors the configured root directory.\n Standard commands: ls, cat, head, tail, grep, wc, find, tree, mkdir, touch, cp, mv, rm, tee.";
125
- readonly root: string;
126
- readonly accessor: DiskAccessor;
127
- readonly opsMap: Record<string, unknown>;
128
- constructor(options: DiskResourceOptions);
129
- storageId(): string;
130
- open(): Promise<void>;
131
- statfs(): Promise<CapacityResult>;
132
- ops(): readonly RegisteredOp[];
133
- commands(): readonly RegisteredCommand[];
134
- streamPath(p: PathSpec): AsyncIterable<Uint8Array>;
135
- readFile(p: PathSpec): Promise<Uint8Array>;
136
- writeFile(p: PathSpec, data: Uint8Array): Promise<void>;
137
- appendFile(p: PathSpec, data: Uint8Array): Promise<void>;
138
- readdir(p: PathSpec): Promise<string[]>;
139
- stat(p: PathSpec): Promise<FileStat>;
140
- exists(p: PathSpec): Promise<boolean>;
141
- mkdir(p: PathSpec, options?: {
142
- recursive?: boolean;
143
- }): Promise<void>;
144
- rmdir(p: PathSpec): Promise<void>;
145
- unlink(p: PathSpec): Promise<void>;
146
- rename(src: PathSpec, dst: PathSpec): Promise<void>;
147
- truncate(p: PathSpec, length: number): Promise<void>;
148
- copy(src: PathSpec, dst: PathSpec): Promise<void>;
149
- rmR(p: PathSpec): Promise<void>;
150
- du(p: PathSpec): Promise<number>;
151
- find(p: PathSpec, options?: FindOptions): Promise<string[]>;
152
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
153
- getState(): Promise<DiskResourceState>;
154
- loadState(state: DiskResourceState): Promise<void>;
155
- }
156
-
157
- declare const DISK_PROMPT = "{prefix}\n Local disk filesystem. Mirrors the configured root directory.\n Standard commands: ls, cat, head, tail, grep, wc, find, tree, mkdir, touch, cp, mv, rm, tee.";
158
-
159
- declare const DISK_OPS: readonly RegisteredOp[];
160
-
161
- /**
162
- * ObserverStore backed by a directory of JSONL files. Created lazily on
163
- * first append. Mirrors the Python DiskObserverStore.
164
- */
165
- declare class DiskObserverStore extends ObserverStoreBase {
166
- private readonly root;
167
- constructor(root: string);
168
- private abs;
169
- append(key: string, data: Uint8Array): Promise<void>;
170
- write(key: string, data: Uint8Array): Promise<void>;
171
- readMatching(suffix: string): Promise<Map<string, Uint8Array>>;
172
- clear(): Promise<void>;
173
- private rootIsDir;
174
- private walk;
175
- }
176
-
177
- interface RedisObserverStoreOptions {
178
- url?: string;
179
- keyPrefix?: string;
180
- }
181
- /**
182
- * ObserverStore backed by Redis strings (one key per JSONL file).
183
- *
184
- * Appends use the atomic Redis APPEND command; an index set tracks which
185
- * file keys exist so readAll needs no SCAN. Mirrors the Python
186
- * RedisObserverStore.
187
- */
188
- declare class RedisObserverStore extends ObserverStoreBase {
189
- readonly url: string;
190
- private readonly prefix;
191
- private readonly indexKey;
192
- private clientPromise;
193
- constructor(options?: RedisObserverStoreOptions);
194
- private client;
195
- append(key: string, data: Uint8Array): Promise<void>;
196
- write(key: string, data: Uint8Array): Promise<void>;
197
- readMatching(suffix: string): Promise<Map<string, Uint8Array>>;
198
- private indexedPaths;
199
- private readPaths;
200
- clear(): Promise<void>;
201
- close(): Promise<void>;
202
- }
203
-
204
- interface RedisConsoleStoreOptions {
205
- url?: string;
206
- keyPrefix?: string;
207
- /** Expire the keys this long after the last append; absent keeps them. */
208
- ttlSeconds?: number;
209
- }
210
- /**
211
- * Console storage on a Redis stream, for readers in other processes.
212
- *
213
- * One stream per job: chunk seq maps to stream id `(seq+1)-0`, with the
214
- * channel, payload and timestamp as entry fields (`c`/`d`/`t`). The
215
- * job's process appends through its store instance; a reader anywhere
216
- * else attaches its own instance on the same keyPrefix and follows
217
- * live, which is what RAM cannot offer. The schema matches the Python
218
- * RedisConsoleStore byte for byte, so the reader does not have to be
219
- * the writer's language.
220
- *
221
- * The job owns its keys: a factory must hand every job a prefix nothing
222
- * else has written, because a reused stream replays the previous job's
223
- * chunks, ending chunk included. `keyPrefix` stays public because it is
224
- * the console's address: an embedder reads it off a job's store and
225
- * hands it to the process that should attach.
226
- *
227
- * The ending chunk is terminal in the store itself, not only in this
228
- * process: the append script refuses any append once a CONTROL chunk
229
- * landed, so an emit that raced a kill past `JobConsole`'s local guard
230
- * is dropped server-side instead of landing after the ending.
231
- *
232
- * `wait` polls the seq counter rather than blocking server-side the way
233
- * Python's XREAD BLOCK does: node-redis serializes commands on one
234
- * connection, so a blocking read would wedge the job's own appends
235
- * behind it, and a second connection costs more than a short poll.
236
- * There is no retention trim, so readFrom never reports a truncated
237
- * cursor; retention is bounded by `ttlSeconds` instead, refreshed on
238
- * every append, so a console expires that long after its job's last
239
- * write.
240
- */
241
- declare class RedisConsoleStore implements ConsoleStore {
242
- readonly url: string;
243
- readonly keyPrefix: string;
244
- private readonly streamKey;
245
- private readonly counterKey;
246
- private readonly endedKey;
247
- private readonly ttlSeconds;
248
- private clientPromise;
249
- private isClosed;
250
- constructor(options?: RedisConsoleStoreOptions);
251
- get closed(): boolean;
252
- private client;
253
- /**
254
- * Append one chunk, atomically against the console's ending.
255
- *
256
- * A dropped append (the console already ended) reports the last real
257
- * chunk's seq; `JobConsole.emit` ignores the return and the drop is
258
- * exactly its documented after-the-ending semantics.
259
- */
260
- append(channel: Channel, data: Uint8Array): Promise<ConsoleChunk>;
261
- readFrom(seq: number, limit?: number): Promise<ReadResult>;
262
- wait(seq: number): Promise<void>;
263
- close(): Promise<void>;
264
- /** Delete the console's keys (test and integ teardown only). */
265
- clear(): Promise<void>;
266
- private chunk;
267
- }
268
-
269
- /**
270
- * NamespaceStore backed by one `namespace.json` per workspace.
271
- *
272
- * The whole plane is one human-readable record
273
- * `{"nodes": {path: fields}, "user": ...}`: the namespace is bound to
274
- * the workspace, so it serializes as one JSON file, not per-node
275
- * files. Read-modify-writes take the record's lockfile so concurrent
276
- * local processes never lose a node upsert; the write itself stays
277
- * tmp-then-rename atomic, so readers never see a torn file. Mirrors
278
- * the Python DiskNamespaceStore byte-for-byte on disk.
279
- */
280
- declare class DiskNamespaceStore extends NamespaceStore {
281
- private readonly records;
282
- constructor(root: string);
283
- private state;
284
- private write;
285
- load(): Promise<Map<string, NodeFields>>;
286
- set(path: string, fields: NodeFields): Promise<void>;
287
- delete(paths: readonly string[]): Promise<void>;
288
- replaceAll(entries: Map<string, NodeFields>): Promise<void>;
289
- loadUser(): Promise<string | null>;
290
- setUser(user: string): Promise<void>;
291
- clear(): Promise<void>;
292
- close(): Promise<void>;
293
- }
294
-
295
- interface RedisNamespaceStoreOptions {
296
- url?: string;
297
- keyPrefix?: string;
298
- }
299
- /**
300
- * NamespaceStore backed by one Redis hash (path -> JSON fields).
301
- *
302
- * Symlinks and attribute overlays survive process restarts and are visible
303
- * to any workspace pointed at the same key prefix. Writes are
304
- * single-command (HSET/HDEL) so mutations stay one round trip. Mirrors the
305
- * Python RedisNamespaceStore.
306
- */
307
- declare class RedisNamespaceStore extends NamespaceStore {
308
- readonly url: string;
309
- private readonly key;
310
- private readonly userKey;
311
- private clientPromise;
312
- constructor(options?: RedisNamespaceStoreOptions);
313
- private client;
314
- load(): Promise<Map<string, NodeFields>>;
315
- set(path: string, fields: NodeFields): Promise<void>;
316
- delete(paths: readonly string[]): Promise<void>;
317
- replaceAll(entries: Map<string, NodeFields>): Promise<void>;
318
- loadUser(): Promise<string | null>;
319
- setUser(user: string): Promise<void>;
320
- clear(): Promise<void>;
321
- close(): Promise<void>;
322
- }
323
-
324
- /**
325
- * One JSON-record-per-file client with lockfile CAS.
326
- *
327
- * The disk twin of `S3RecordClient`: a record is one file at
328
- * `{root}/{prefix}{name}.json`, written atomically (tmp then rename(2))
329
- * so readers never see a torn record. The conditional write serializes
330
- * on a `{record}.lock` created with O_CREAT|O_EXCL, so compare and
331
- * write hit the same stored version. Record names are percent-encoded
332
- * into filenames, so any id is safe. Mirrors the Python
333
- * DiskRecordClient byte-for-byte on disk.
334
- */
335
- declare class DiskRecordClient {
336
- private readonly dir;
337
- constructor(root: string, prefix: string);
338
- recordPath(name: string): string;
339
- get(name: string): Promise<[Record<string, unknown> | null, string]>;
340
- put(name: string, fields: Record<string, unknown>): Promise<void>;
341
- /**
342
- * Write one record iff its stored generation matches.
343
- *
344
- * Take the record's lockfile, re-read under the lock, check the
345
- * generation, then tmp-write + rename. Losing the lock race or the
346
- * generation check resolves false; the caller adopts and retries.
347
- */
348
- casPut(name: string, fields: Record<string, unknown>, expectedGeneration: number): Promise<boolean>;
349
- listNames(): Promise<string[]>;
350
- loadAll(): Promise<Map<string, Record<string, unknown>>>;
351
- delete(names: Iterable<string>): Promise<void>;
352
- clear(): Promise<void>;
353
- close(): Promise<void>;
354
- /**
355
- * Block until this record's lockfile is held; handle to release.
356
- *
357
- * For callers doing a read-modify-write that is not generation-CAS
358
- * (e.g. the single-file namespace plane); spins past contention and
359
- * reclaims stale locks, throwing only if a live writer holds the
360
- * lock for the whole retry budget (~10s).
361
- */
362
- lock(name: string): Promise<FileHandle>;
363
- unlock(name: string, fh: FileHandle): Promise<void>;
364
- private acquireLock;
365
- private reclaimStaleLock;
366
- private releaseLock;
367
- private writeRecord;
368
- }
369
-
370
- /**
371
- * SessionStore backed by per-session files under one directory.
372
- *
373
- * One file per session at `{root}/sessions/{session_id}.json`, lockfile
374
- * CAS per record, so multiple local processes share one session table
375
- * with the same generation contract as the Redis Lua script, with zero
376
- * infrastructure. Mirrors the Python DiskSessionStore.
377
- */
378
- declare class DiskSessionStore extends SessionStore {
379
- private readonly records;
380
- constructor(root: string);
381
- load(): Promise<Map<string, SessionFields>>;
382
- set(sessionId: string, fields: SessionFields): Promise<void>;
383
- casSet(sessionId: string, fields: SessionFields, expectedGeneration: number): Promise<boolean>;
384
- delete(sessionIds: readonly string[]): Promise<void>;
385
- replaceAll(entries: Map<string, SessionFields>): Promise<void>;
386
- clear(): Promise<void>;
387
- close(): Promise<void>;
388
- }
389
-
390
- interface RedisSessionStoreOptions {
391
- url?: string;
392
- keyPrefix?: string;
393
- }
394
- /**
395
- * SessionStore backed by one Redis hash (session id -> JSON fields).
396
- *
397
- * Sessions and the mount grants they carry survive restarts and are
398
- * visible to every workspace pointed at the same key prefix — the seam
399
- * that lets one process create a session and another (a kernel tier, a
400
- * sibling daemon) bind a mountpoint to it. Writes are single-command
401
- * (HSET/HDEL) so mutations stay one round trip. Mirrors the Python
402
- * RedisSessionStore.
403
- */
404
- declare class RedisSessionStore extends SessionStore {
405
- readonly url: string;
406
- private readonly key;
407
- private clientPromise;
408
- constructor(options?: RedisSessionStoreOptions);
409
- private client;
410
- casSet(sessionId: string, fields: SessionFields, expectedGeneration: number): Promise<boolean>;
411
- load(): Promise<Map<string, SessionFields>>;
412
- set(sessionId: string, fields: SessionFields): Promise<void>;
413
- delete(sessionIds: readonly string[]): Promise<void>;
414
- replaceAll(entries: Map<string, SessionFields>): Promise<void>;
415
- clear(): Promise<void>;
416
- close(): Promise<void>;
417
- }
418
-
419
- declare const DEFAULT_STATE_ROOT = "~/.mirage/state";
420
- interface DiskWorkspaceStateStoreOptions extends WorkspaceStateStoreOverrides {
421
- root?: string;
422
- }
423
- /**
424
- * WorkspaceStateStore backed by a directory tree.
425
- *
426
- * Each workspace is one self-contained directory (delete a workspace
427
- * by removing its folder):
428
- *
429
- * - `{root}/workspaces/{ws}/workspace.json` — metadata record
430
- * - `{root}/workspaces/{ws}/sessions/{sid}.json` — session table
431
- * - `{root}/workspaces/{ws}/namespace.json` — nodes + user, one JSON
432
- * - `{root}/workspaces/{ws}/history/<day>/<sid>.jsonl` — history
433
- *
434
- * The layout mirrors the S3 store file-for-object; mutable records get
435
- * the same generation-CAS contract via the lockfile protocol
436
- * (O_CREAT|O_EXCL mutex, tmp write, rename(2)), so multiple local
437
- * processes share one workspace with zero infrastructure: a CLI-created
438
- * workspace survives restart like `git init`. Local filesystems only;
439
- * anything cross-machine belongs on redis or s3. Mirrors the Python
440
- * DiskWorkspaceStateStore byte-for-byte on disk.
441
- */
442
- declare class DiskWorkspaceStateStore extends WorkspaceStateStore {
443
- private readonly root;
444
- private readonly meta;
445
- private readonly namespaces;
446
- private readonly observers;
447
- private readonly sessionTables;
448
- constructor(options?: DiskWorkspaceStateStoreOptions);
449
- private wsRoot;
450
- private metaClient;
451
- protected makeNamespace(workspaceId: string): NamespaceStore;
452
- protected makeObserver(workspaceId: string): ObserverStore;
453
- protected makeSessions(workspaceId: string): SessionStore;
454
- protected readMeta(workspaceId: string): Promise<WorkspaceFields | null>;
455
- protected writeMeta(workspaceId: string, fields: WorkspaceFields): Promise<void>;
456
- protected casWriteMeta(workspaceId: string, fields: WorkspaceFields, expectedGeneration: number): Promise<boolean>;
457
- protected closeSelf(): Promise<void>;
458
- }
459
-
460
- interface RedisWorkspaceStateStoreOptions extends WorkspaceStateStoreOverrides {
461
- url?: string;
462
- keyPrefix?: string;
463
- }
464
- /**
465
- * WorkspaceStateStore backed by one Redis server.
466
- *
467
- * Key layout under one prefix, everything scoped by workspace id:
468
- *
469
- * - `{prefix}workspaces` — hash, workspace id -> metadata JSON
470
- * - `{prefix}{ws}:namespace:nodes` (+ `:user`) — namespace plane
471
- * - `{prefix}{ws}:observer:*` — observer plane
472
- * - `{prefix}{ws}:sessions` — session table
473
- *
474
- * All plane state survives restarts and is visible to every process
475
- * pointed at the same url and prefix, so a workspace rebuilt from its
476
- * config alone gets identical overlays, history, sessions, and grants.
477
- * Mirrors the Python RedisWorkspaceStateStore.
478
- */
479
- declare class RedisWorkspaceStateStore extends WorkspaceStateStore {
480
- readonly url: string;
481
- private readonly prefix;
482
- private readonly metaKey;
483
- private clientPromise;
484
- private readonly namespaces;
485
- private readonly observers;
486
- private readonly sessionTables;
487
- constructor(options?: RedisWorkspaceStateStoreOptions);
488
- private client;
489
- protected makeNamespace(workspaceId: string): NamespaceStore;
490
- protected makeObserver(workspaceId: string): ObserverStore;
491
- protected makeSessions(workspaceId: string): SessionStore;
492
- protected readMeta(workspaceId: string): Promise<WorkspaceFields | null>;
493
- protected writeMeta(workspaceId: string, fields: WorkspaceFields): Promise<void>;
494
- protected casWriteMeta(workspaceId: string, fields: WorkspaceFields, expectedGeneration: number): Promise<boolean>;
495
- protected closeSelf(): Promise<void>;
496
- }
497
-
498
- /**
499
- * Monkey-patch Node's `fs` module so that paths under any mirage mount
500
- * route through the workspace. Paths NOT under a mount fall through to
501
- * the real native fs. CJS-friendly; for ESM code you still need to use
502
- * `ws.fs.*` directly since ESM bindings are frozen.
503
- *
504
- * Returns a `restore()` function that undoes the patch.
505
- */
506
- declare function patchNodeFs(ws: Workspace$1): () => void;
507
-
508
- interface RedisStoreOptions {
509
- url?: string;
510
- client?: RedisClientType;
511
- keyPrefix?: string;
512
- }
513
- declare class RedisStore {
514
- readonly url: string;
515
- readonly keyPrefix: string;
516
- private readonly providedClient;
517
- private clientPromise;
518
- constructor(options?: RedisStoreOptions);
519
- fk(path: string): string;
520
- dk(): string;
521
- mk(path: string): string;
522
- ak(path: string): string;
523
- client(): Promise<RedisClientType>;
524
- getFile(path: string): Promise<Uint8Array | null>;
525
- setFile(path: string, data: Uint8Array): Promise<void>;
526
- delFile(path: string): Promise<void>;
527
- hasFile(path: string): Promise<boolean>;
528
- listFiles(prefix?: string): Promise<string[]>;
529
- fileLen(path: string): Promise<number>;
530
- hasDir(path: string): Promise<boolean>;
531
- addDir(path: string): Promise<void>;
532
- removeDir(path: string): Promise<void>;
533
- listDirs(): Promise<Set<string>>;
534
- getModified(path: string): Promise<string | null>;
535
- setModified(path: string, ts: string): Promise<void>;
536
- delModified(path: string): Promise<void>;
537
- getAttrs(path: string): Promise<Record<string, string>>;
538
- setAttrs(path: string, fields: Record<string, string>): Promise<void>;
539
- delAttrs(path: string): Promise<void>;
540
- clear(): Promise<void>;
541
- close(): Promise<void>;
542
- }
543
-
544
- declare class RedisAccessor extends Accessor {
545
- readonly store: RedisStore;
546
- constructor(store: RedisStore);
547
- }
548
-
549
- interface RedisResourceOptions {
550
- url?: string;
551
- keyPrefix?: string;
552
- }
553
- interface RedisModule {
554
- createClient: (options: {
555
- url: string;
556
- }) => RedisClientType;
557
- RESP_TYPES: {
558
- readonly BLOB_STRING: number;
559
- };
560
- }
561
- interface RedisResourceState {
562
- type: string;
563
- config: {
564
- url: typeof REDACTED_SECRET;
565
- keyPrefix: string;
566
- };
567
- keyPrefix: string;
568
- files: Record<string, Uint8Array>;
569
- dirs: string[];
570
- attrs?: Record<string, Record<string, string>>;
571
- modified?: Record<string, string>;
572
- }
573
- declare class RedisResource extends BaseResource implements Resource {
574
- readonly kind: string;
575
- readonly cachesReads: boolean;
576
- readonly sizesAlwaysKnown: boolean;
577
- readonly indexTtl: number;
578
- readonly prompt: string;
579
- readonly url: string;
580
- readonly keyPrefix: string;
581
- readonly store: RedisStore;
582
- readonly accessor: RedisAccessor;
583
- readonly opsMap: Record<string, unknown>;
584
- constructor(options?: RedisResourceOptions);
585
- storageId(): string;
586
- open(): Promise<void>;
587
- close(): Promise<void>;
588
- client(): Promise<RedisClientType>;
589
- protected module(): Promise<RedisModule>;
590
- ops(): readonly RegisteredOp[];
591
- commands(): readonly RegisteredCommand[];
592
- streamPath(p: PathSpec): AsyncIterable<Uint8Array>;
593
- readFile(p: PathSpec): Promise<Uint8Array>;
594
- writeFile(p: PathSpec, data: Uint8Array): Promise<void>;
595
- appendFile(p: PathSpec, data: Uint8Array): Promise<void>;
596
- readdir(p: PathSpec): Promise<string[]>;
597
- stat(p: PathSpec): Promise<FileStat>;
598
- exists(p: PathSpec): Promise<boolean>;
599
- mkdir(p: PathSpec, options?: {
600
- recursive?: boolean;
601
- }): Promise<void>;
602
- rmdir(p: PathSpec): Promise<void>;
603
- unlink(p: PathSpec): Promise<void>;
604
- rename(src: PathSpec, dst: PathSpec): Promise<void>;
605
- truncate(p: PathSpec, length: number): Promise<void>;
606
- copy(src: PathSpec, dst: PathSpec): Promise<void>;
607
- rmR(p: PathSpec): Promise<void>;
608
- du(p: PathSpec): Promise<number>;
609
- find(p: PathSpec, options?: FindOptions): Promise<string[]>;
610
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
611
- getState(): Promise<RedisResourceState>;
612
- loadState(state: RedisResourceState): Promise<void>;
613
- }
614
-
615
- declare const REDIS_PROMPT = "Redis-backed persistent filesystem. Behaves like a standard filesystem.\nStandard commands: ls, cat, head, tail, grep, wc, find, tree, mkdir, touch, cp, mv, rm, tee.";
616
-
617
- declare const REDIS_OPS: readonly RegisteredOp[];
618
-
619
- interface RedisResourceLike extends Resource {
620
- readonly accessor: RedisAccessor;
621
- }
622
- declare function fileReadProvision(accessor: Accessor, paths: PathSpec[], _texts: string[], _opts: CommandOpts): Promise<ProvisionResult>;
623
- declare function headTailProvision(accessor: Accessor, paths: PathSpec[], _texts: string[], _opts: CommandOpts): Promise<ProvisionResult>;
624
- declare function metadataProvision(_accessor: Accessor, paths: PathSpec[], _texts: string[], _opts: CommandOpts): ProvisionResult;
625
-
626
- interface RedisFileCacheOptions extends RedisResourceOptions {
627
- cacheLimit?: string | number;
628
- maxDrainBytes?: number | null;
629
- }
630
- declare class RedisFileCacheStore extends RedisResource implements FileCache {
631
- private readonly limit;
632
- private readonly dataPrefix;
633
- private readonly metaPrefix;
634
- private maxDrainBytesValue;
635
- readonly drainTasks: Map<string, Promise<void>>;
636
- constructor(options?: RedisFileCacheOptions);
637
- get maxDrainBytes(): number | null;
638
- set maxDrainBytes(value: number | null);
639
- readonly cacheSize: number | null;
640
- readonly cacheEntries: number | null;
641
- get cacheLimit(): number;
642
- cacheClient(): Promise<RedisClientType>;
643
- get(key: string): Promise<Uint8Array | null>;
644
- set(key: string, data: Uint8Array, options?: {
645
- fingerprint?: string | null;
646
- ttl?: number | null;
647
- }): Promise<void>;
648
- add(key: string, data: Uint8Array, options?: {
649
- fingerprint?: string | null;
650
- ttl?: number | null;
651
- }): Promise<boolean>;
652
- remove(key: string): Promise<void>;
653
- exists(key: string | PathSpec): Promise<boolean>;
654
- isFresh(key: string, remoteFingerprint: string): Promise<boolean>;
655
- evictPrefix(prefix: string): Promise<void>;
656
- evictPaths(_paths: Iterable<string>): void;
657
- clear(): Promise<void>;
658
- allCached(keys: readonly string[]): Promise<boolean>;
659
- multiGet(keys: readonly string[]): Promise<(Uint8Array | null)[]>;
660
- }
661
-
662
- interface FuseHandle {
663
- mountpoint: string;
664
- /** Whether Mirage created this mountpoint directory and may remove it later. */
665
- ownsMountpoint: boolean;
666
- unmount: () => Promise<void>;
667
- }
668
- interface MountOptions {
669
- /** Caller/deployment-owned mountpoint. Mirage mounts here but does not delete it. */
670
- mountpoint?: string;
671
- /** Scope the mount to a single workspace mount prefix (subtree exposure). */
672
- rootPrefix?: string;
673
- /** Run every op under this session's mount grants (session-bound mountpoint). */
674
- session?: Session;
675
- /**
676
- * When true, `@zkochan/fuse-native`'s `autoUnmount` flag is set so the
677
- * kernel releases the mount if the process exits abnormally. Defaults to
678
- * `true` on Linux, `false` on darwin — macFUSE rejects the option with
679
- * "unknown option `auto_unmount'". On darwin the SIGINT cleanup in
680
- * FuseManager runs `diskutil unmount force` instead.
681
- */
682
- autoUnmount?: boolean;
683
- /**
684
- * Extra options forwarded verbatim to `@zkochan/fuse-native`.
685
- * `directIO: false` additionally skips the `direct_io` mount option that
686
- * Mirage appends by default (see appendDirectIO).
687
- */
688
- fuseOptions?: Record<string, unknown>;
689
- /**
690
- * Which kernel interface serves the mount: 'fuse' (default) or 'fskit'.
691
- * 'fskit' routes through macFUSE 5.x's FSKit backend (no kernel
692
- * extension); macOS-only, mounts under /Volumes, and every mounted
693
- * resource must report exact sizes. See backend.ts for the guards.
694
- */
695
- backend?: MountBackend;
696
- }
697
- declare function mount(ws: Workspace$1, options?: MountOptions): Promise<FuseHandle>;
698
- declare function mountBackground(ws: Workspace$1, options?: MountOptions): Promise<FuseHandle>;
699
-
700
- declare class FuseManager {
701
- private handle;
702
- private cleanupEntry;
703
- get mountpoint(): string | null;
704
- setup(ws: Workspace$1, options?: MountOptions): Promise<string>;
705
- unmount(): Promise<void>;
706
- close(): Promise<void>;
707
- }
708
-
709
- interface FuseAttr {
710
- mtime: Date;
711
- atime: Date;
712
- ctime: Date;
713
- nlink: number;
714
- size: number;
715
- mode: number;
716
- uid: number;
717
- gid: number;
718
- }
719
- interface Handle {
720
- path: string;
721
- data?: Uint8Array;
722
- writeBuf?: [number, Uint8Array][];
723
- }
724
- interface PrefetchEntry {
725
- data: Uint8Array;
726
- expires: number;
727
- }
728
- interface MountCoreOptions {
729
- rootPrefix?: string;
730
- /**
731
- * Bind every op to this session's mount grants. The kernel-tier
732
- * primitive: bind-mount the tree into a container and the narrowing
733
- * travels with it. Enforcement happens inside dispatch/Ops via the
734
- * session context, so binding at the op entry point is sufficient.
735
- */
736
- session?: Session;
737
- }
738
- /**
739
- * Protocol-neutral mount logic shared by every kernel adapter.
740
- *
741
- * Everything here is expressed in POSIX terms (attribute records, ordinary
742
- * thrown errors) and imports nothing from `@zkochan/fuse-native`, so it is
743
- * reusable by a non-FUSE adapter and unit-testable without a kernel.
744
- *
745
- * The division of labour: this class decides *what* the filesystem
746
- * contains, an adapter decides *how* to say it to a particular kernel
747
- * interface. Adapters translate the errors thrown here into their own
748
- * error codes with `classifyErrno`. Mirrors Python's `MountCore`.
749
- *
750
- * Every op goes through `ws.fs`, which delegates to the dispatcher, so
751
- * a mount walks the same door as a shell line (mount modes, policies,
752
- * cache, invalidation) and every op it runs lands in `ws.records` for
753
- * `drainOps`. Reaching `ws.dispatch` from here instead would skip the
754
- * record; reaching a backend directly would skip the door.
755
- */
756
- declare class MountCore {
757
- readonly ops: Ops;
758
- readonly session: Session | null;
759
- private readonly now;
760
- private readonly root;
761
- readonly handles: FileTable<Handle>;
762
- readonly xattrs: Map<string, Map<string, Buffer<ArrayBufferLike>>>;
763
- readonly prefetchCache: Map<string, PrefetchEntry>;
764
- private readonly prefetchInflight;
765
- private readonly uid;
766
- private readonly gid;
767
- constructor(ops: Ops, options?: MountCoreOptions);
768
- resolve(path: string): string;
769
- dirStat(): FuseAttr;
770
- fileStat(size: number): FuseAttr;
771
- /**
772
- * Fold merged stat attributes into an attr record. The workspace stat
773
- * already carries the namespace overlay (chmod bits, chown ids, touched
774
- * mtime), so honoring these fields here is what makes metadata ops
775
- * visible through a mount. String uid/gid (names) are skipped: the kernel
776
- * wants numeric ids and there is no user db to map against.
777
- */
778
- applyStatAttrs(entry: FuseAttr, s: FileStat): FuseAttr;
779
- /**
780
- * The target to present for a namespace link at a mount path, or null
781
- * when not a link. Relative targets are stored verbatim and returned
782
- * as-is. Absolute targets name virtual paths, so they are rewritten
783
- * relative to the link's directory: returned raw, the kernel would
784
- * resolve them against the host root and escape the mountpoint.
785
- */
786
- linkTarget(path: string): string | null;
787
- linkStat(target: string): FuseAttr;
788
- cachedSize(path: string): number | null;
789
- cachedData(path: string): Uint8Array | null;
790
- /**
791
- * Fetch bytes for a size-unknown file and cache them so the open → read →
792
- * fstat burst (and subsequent stats within the TTL) reuse the same fetch.
793
- * With getattr reporting 0 pre-open, this hydration is what lets fgetattr
794
- * answer with the real byte length after open (mirrors Python's
795
- * `prefetch_read`).
796
- */
797
- prefetch(path: string): Promise<Uint8Array | null>;
798
- /** Drain and return accumulated op records (mirrors Python's drainOps). */
799
- drainOps(): OpRecord[];
800
- private writeFile;
801
- /**
802
- * Merge buffered writes over the raw base and persist the result.
803
- * The base is read raw so a flush never stores a rendered view back
804
- * into the mount.
805
- */
806
- private applyWrites;
807
- getattr(path: string): Promise<FuseAttr>;
808
- /** Attributes through an open handle, or path-based when not hydrated. */
809
- fgetattr(path: string, fd: number): Promise<FuseAttr>;
810
- readdir(path: string): Promise<string[]>;
811
- read(path: string, fd: number, pos: number, len: number): Promise<Uint8Array>;
812
- /** Buffer a write on its handle, or apply it directly when there is none. */
813
- write(path: string, fd: number, data: Uint8Array, pos: number): Promise<void>;
814
- create(path: string): Promise<number>;
815
- mkdir(path: string): Promise<void>;
816
- readlink(path: string): string;
817
- /**
818
- * Create namespace link `dest -> src` (ln -s src dest; libfuse passes
819
- * the pointee first). Relative sources are stored verbatim (resolved
820
- * at follow time, exactly like the shell `ln -s`); absolute sources
821
- * are mapped into virtual space so a scoped mount stores the path it
822
- * will later follow.
823
- */
824
- symlink(src: string, dest: string): Promise<void>;
825
- unlink(path: string): Promise<void>;
826
- rename(src: string, dst: string): Promise<void>;
827
- rmdir(path: string): Promise<void>;
828
- truncate(path: string, size: number): Promise<void>;
829
- statfs(): Record<string, number>;
830
- setxattr(path: string, name: string, value: Buffer): void;
831
- getxattr(path: string, name: string): Buffer | undefined;
832
- listxattr(path: string): string[];
833
- removexattr(path: string, name: string): void;
834
- open(path: string): Promise<number>;
835
- release(fd: number): Promise<void>;
836
- flush(path: string, fd: number): Promise<void>;
837
- }
838
-
839
- interface MirageFSOptions {
840
- rootPrefix?: string;
841
- /**
842
- * Bind every FUSE op to this session's mount grants. The kernel-tier
843
- * primitive: bind-mount the tree into a container and the narrowing
844
- * travels with it. Enforcement happens inside dispatch/Ops via the
845
- * session context, so binding at the op entry point is sufficient.
846
- */
847
- session?: Session;
848
- }
849
- /**
850
- * libfuse adapter over MountCore.
851
- *
852
- * Owns exactly the FUSE-specific concerns: the `@zkochan/fuse-native`
853
- * callback signatures and the translation of mirage-native errors into
854
- * negative errno codes. All filesystem semantics live in MountCore, so a
855
- * non-FUSE adapter can reuse them unchanged. Mirrors Python's `MirageFS`.
856
- */
857
- declare class MirageFS {
858
- readonly core: MountCore;
859
- constructor(ops: Ops, options?: MirageFSOptions);
860
- /** Drain and return accumulated op records (mirrors Python's drainOps). */
861
- drainOps(): OpRecord[];
862
- ops(): Record<string, unknown>;
863
- private getattr;
864
- private fgetattr;
865
- private readdir;
866
- private read;
867
- private write;
868
- private create;
869
- private mkdir;
870
- private readlink;
871
- private symlink;
872
- private unlink;
873
- private rename;
874
- private rmdir;
875
- private truncate;
876
- private statfs;
877
- private chmod;
878
- private chown;
879
- private utimens;
880
- private access;
881
- private setxattr;
882
- private getxattr;
883
- private listxattr;
884
- private removexattr;
885
- private validate;
886
- private open;
887
- private release;
888
- private flush;
889
- private fsync;
890
- }
891
-
892
- /**
893
- * Map a mirage-native error onto a positive POSIX errno.
894
- *
895
- * Mirrors Python's `mirage.fuse.errors.classify_error` so both languages
896
- * report the same errno for the same backend failure. The naming lives in
897
- * core's `classify` (shared with the wasi shim and the monty encoders);
898
- * this adapter only renders the condition in host numbers. A stamped code
899
- * outside the vocabulary is passed through in the host's own numbering
900
- * (Python's raw OSError.errno passthrough), and the message needles are a
901
- * last resort for unstamped errors, not a classification channel.
902
- */
903
- declare function classifyErrno(err: unknown): number;
904
- /** Same classification, negated for `@zkochan/fuse-native` callbacks. */
905
- declare function classifyError(err: unknown): number;
906
-
907
- /**
908
- * FSKit mounts only under /Volumes. Anywhere else the mount fails with an
909
- * opaque driver error, so the rule is enforced up front rather than
910
- * discovered at run time (github.com/strukto-ai/mirage#82).
911
- */
912
- declare const FSKIT_MOUNT_ROOT = "/Volumes";
913
- /**
914
- * Coerce a user-supplied backend name into a MountBackend.
915
- *
916
- * Missing means vfs, everywhere: an absent `backend` in YAML, `undefined`
917
- * here, and the `MountSpecOptions` default all resolve to the same thing.
918
- * Callers that need a kernel mount say so explicitly rather than relying on
919
- * this function to reinterpret an absent value.
920
- */
921
- declare function resolveBackend(value?: string | null): MountBackend;
922
- /** Reject a backend that registers nothing with the kernel. */
923
- declare function requireKernelBackend(backend: MountBackend): void;
924
- /**
925
- * Reject a backend the current platform cannot serve.
926
- *
927
- * FSKit works from TypeScript: `fuse.node` links `/usr/local/lib/
928
- * libfuse.2.dylib` by absolute path (the `libosxfuse.2.dylib` it ships is a
929
- * stub with that install name), so on a machine with macFUSE 5.x the
930
- * `backend=fskit` option reaches the same libfuse Python uses. Verified
931
- * with a live mount; see examples/typescript/fuse/fskit.ts.
932
- */
933
- declare function checkPlatform(backend: MountBackend): void;
934
- /** Reject a mountpoint the backend cannot mount on. */
935
- declare function checkMountpoint(backend: MountBackend, mountpoint: string): void;
936
- /**
937
- * Mounts under `rootPrefix` whose files cannot be sized without reading
938
- * them. Mirrors Python's `Ops.unsized_mounts`.
939
- */
940
- declare function unsizedMounts(ws: Workspace$1, rootPrefix?: string): [string, string][];
941
- /**
942
- * Warn when an fskit mount will serve size-unknown files as empty.
943
- *
944
- * FSKit drives reads from the size the filesystem reports and has no
945
- * `direct_io` escape hatch, so a resource that cannot size a file without
946
- * fetching it reports 0, the kernel issues no reads, and every such file
947
- * comes back empty with exit code 0 (verified on a live fskit mount: the
948
- * read clamp is pinned at lookup-time size and never refreshed). The mount
949
- * proceeds anyway: per-backend size push-down is closing this gap, so the
950
- * degraded mounts are named loudly here rather than refused.
951
- */
952
- declare function checkSizes(backend: MountBackend, ws: Workspace$1, rootPrefix?: string): void;
953
- /**
954
- * Resolve a backend for a kernel mount and run every guard it implies.
955
- *
956
- * One entry point, so a new mount path cannot pick up fskit support while
957
- * silently skipping the macOS, /Volumes, or size checks.
958
- */
959
- declare function prepareBackend(value: string | undefined, ws?: Workspace$1, mountpoint?: string, rootPrefix?: string): MountBackend;
960
-
961
- declare function isMacosMetadata(name: string): boolean;
962
-
963
- interface S3Config extends S3Config$1 {
964
- profile?: string;
965
- proxy?: string;
966
- }
967
- declare const S3ConfigSchema: z.ZodObject<{
968
- bucket: z.ZodString;
969
- region: z.ZodOptional<z.ZodString>;
970
- endpoint: z.ZodOptional<z.ZodString>;
971
- accessKeyId: z.ZodOptional<z.ZodString>;
972
- secretAccessKey: z.ZodOptional<z.ZodString>;
973
- sessionToken: z.ZodOptional<z.ZodString>;
974
- forcePathStyle: z.ZodOptional<z.ZodBoolean>;
975
- timeoutMs: z.ZodOptional<z.ZodNumber>;
976
- presignedUrlProvider: z.ZodOptional<z.ZodCustom<_struktoai_mirage_core.S3BrowserPresignedUrlProvider, _struktoai_mirage_core.S3BrowserPresignedUrlProvider>>;
977
- httpAgentProvider: z.ZodOptional<z.ZodCustom<_struktoai_mirage_core.S3HttpAgentProvider, _struktoai_mirage_core.S3HttpAgentProvider>>;
978
- defaultContentType: z.ZodOptional<z.ZodString>;
979
- keyPrefix: z.ZodOptional<z.ZodString>;
980
- profile: z.ZodOptional<z.ZodString>;
981
- proxy: z.ZodOptional<z.ZodString>;
982
- }, z.core.$strip>;
983
- type S3ConfigRedacted = RedactedConfig<ConfigOf<typeof S3ConfigSchema>, 'accessKeyId' | 'secretAccessKey' | 'sessionToken' | 'presignedUrlProvider' | 'httpAgentProvider' | 'proxy'>;
984
- declare function redactConfig(config: S3Config): S3ConfigRedacted;
985
- /**
986
- * Translate Python-style snake_case keys (as used in YAML configs and the
987
- * Python `S3Config`) to the TS-idiomatic camelCase fields. Already-camelCase
988
- * keys pass through unchanged so user code that constructs `S3Config`
989
- * directly keeps working.
990
- *
991
- * Python ↔ TS mapping:
992
- * aws_access_key_id ↔ accessKeyId
993
- * aws_secret_access_key ↔ secretAccessKey
994
- * aws_session_token ↔ sessionToken
995
- * aws_profile ↔ profile
996
- * endpoint_url ↔ endpoint
997
- * path_style ↔ forcePathStyle
998
- * timeout (sec, int) ↔ timeoutMs (ms, number — converted ×1000)
999
- * proxy ↔ proxy
1000
- */
1001
- declare function normalizeS3Config(input: Record<string, unknown>): S3Config;
1002
-
1003
- interface S3ResourceState {
1004
- type: string;
1005
- config: S3ConfigRedacted;
1006
- }
1007
- declare class S3Resource extends BaseResource implements Resource {
1008
- readonly kind: string;
1009
- readonly cachesReads: boolean;
1010
- readonly supportsSnapshot: boolean;
1011
- readonly sizesAlwaysKnown: boolean;
1012
- readonly indexTtl: number;
1013
- readonly prompt: string;
1014
- readonly config: S3Config;
1015
- readonly accessor: S3Accessor;
1016
- readonly opsMap: Record<string, unknown>;
1017
- constructor(config: S3Config);
1018
- storageId(): string;
1019
- open(): Promise<void>;
1020
- commands(): readonly RegisteredCommand[];
1021
- ops(): readonly RegisteredOp[];
1022
- streamPath(p: PathSpec): AsyncIterable<Uint8Array>;
1023
- readFile(p: PathSpec): Promise<Uint8Array>;
1024
- writeFile(p: PathSpec, data: Uint8Array): Promise<void>;
1025
- appendFile(p: PathSpec, data: Uint8Array): Promise<void>;
1026
- readdir(p: PathSpec): Promise<string[]>;
1027
- stat(p: PathSpec): Promise<FileStat>;
1028
- exists(p: PathSpec): Promise<boolean>;
1029
- mkdir(p: PathSpec): Promise<void>;
1030
- rmdir(p: PathSpec): Promise<void>;
1031
- unlink(p: PathSpec): Promise<void>;
1032
- rename(src: PathSpec, dst: PathSpec): Promise<void>;
1033
- truncate(p: PathSpec, length: number): Promise<void>;
1034
- copy(src: PathSpec, dst: PathSpec): Promise<void>;
1035
- rmR(p: PathSpec): Promise<void>;
1036
- du(p: PathSpec): Promise<number>;
1037
- find(p: PathSpec, options?: FindOptions): Promise<string[]>;
1038
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
1039
- getState(): Promise<S3ResourceState>;
1040
- loadState(_state: S3ResourceState): Promise<void>;
1041
- }
1042
-
1043
- declare const GridFSConfigSchema: z.ZodObject<{
1044
- uri: z.ZodString;
1045
- database: z.ZodString;
1046
- bucket: z.ZodOptional<z.ZodString>;
1047
- keyPrefix: z.ZodOptional<z.ZodString>;
1048
- chunkSizeBytes: z.ZodOptional<z.ZodNumber>;
1049
- }, z.core.$strip>;
1050
- type GridFSConfig = ConfigOf<typeof GridFSConfigSchema>;
1051
- type GridFSConfigRedacted = RedactedConfig<GridFSConfig, 'uri'>;
1052
- /**
1053
- * Translate Python-style snake_case keys (as used in YAML configs and the
1054
- * Python `GridFSConfig`) to the TS-idiomatic camelCase fields, and
1055
- * normalize the key prefix the way the accessor expects.
1056
- */
1057
- declare function normalizeGridFSConfig(input: Record<string, unknown>): GridFSConfig;
1058
-
1059
- declare class GridFSAccessor extends Accessor {
1060
- readonly config: GridFSConfig;
1061
- private clientPromise;
1062
- constructor(config: GridFSConfig);
1063
- client(): Promise<MongoClient>;
1064
- db(): Promise<Db>;
1065
- private _connect;
1066
- close(): Promise<void>;
1067
- }
1068
-
1069
- interface GridFSResourceState {
1070
- type: string;
1071
- config: GridFSConfigRedacted;
1072
- }
1073
- declare class GridFSResource extends BaseResource implements Resource {
1074
- readonly kind: string;
1075
- readonly cachesReads: boolean;
1076
- readonly supportsSnapshot: boolean;
1077
- readonly sizesAlwaysKnown: boolean;
1078
- readonly indexTtl: number;
1079
- readonly prompt: string;
1080
- readonly config: GridFSConfig;
1081
- readonly accessor: GridFSAccessor;
1082
- readonly opsMap: Record<string, unknown>;
1083
- constructor(config: GridFSConfig);
1084
- open(): Promise<void>;
1085
- close(): Promise<void>;
1086
- commands(): readonly RegisteredCommand[];
1087
- ops(): readonly RegisteredOp[];
1088
- streamPath(p: PathSpec): AsyncIterable<Uint8Array>;
1089
- readFile(p: PathSpec): Promise<Uint8Array>;
1090
- writeFile(p: PathSpec, data: Uint8Array): Promise<void>;
1091
- appendFile(p: PathSpec, data: Uint8Array): Promise<void>;
1092
- readdir(p: PathSpec): Promise<string[]>;
1093
- stat(p: PathSpec): Promise<FileStat>;
1094
- exists(p: PathSpec): Promise<boolean>;
1095
- mkdir(p: PathSpec): Promise<void>;
1096
- rmdir(p: PathSpec): Promise<void>;
1097
- unlink(p: PathSpec): Promise<void>;
1098
- rename(src: PathSpec, dst: PathSpec): Promise<void>;
1099
- truncate(p: PathSpec, length: number): Promise<void>;
1100
- copy(src: PathSpec, dst: PathSpec): Promise<void>;
1101
- rmR(p: PathSpec): Promise<void>;
1102
- du(p: PathSpec): Promise<number>;
1103
- find(p: PathSpec, options?: FindOptions): Promise<string[]>;
1104
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
1105
- getState(): Promise<GridFSResourceState>;
1106
- loadState(_state: GridFSResourceState): Promise<void>;
1107
- }
1108
-
1109
- interface DatabricksVolumeResourceState {
1110
- type: string;
1111
- config: DatabricksVolumeConfigRedacted;
1112
- }
1113
- declare class DatabricksVolumeResource extends BaseResource implements Resource {
1114
- readonly kind: string;
1115
- readonly cachesReads: boolean;
1116
- readonly sizesAlwaysKnown: boolean;
1117
- readonly indexTtl: number;
1118
- readonly prompt: string;
1119
- readonly config: DatabricksVolumeConfig;
1120
- readonly accessor: DatabricksVolumeAccessor;
1121
- readonly opsMap: Record<string, unknown>;
1122
- private constructor();
1123
- static create(config: DatabricksVolumeConfig): Promise<DatabricksVolumeResource>;
1124
- open(): Promise<void>;
1125
- commands(): readonly RegisteredCommand[];
1126
- ops(): readonly RegisteredOp[];
1127
- streamPath(p: PathSpec): AsyncIterable<Uint8Array>;
1128
- readFile(p: PathSpec): Promise<Uint8Array>;
1129
- writeFile(p: PathSpec, data: Uint8Array): Promise<void>;
1130
- appendFile(p: PathSpec, data: Uint8Array): Promise<void>;
1131
- readdir(p: PathSpec): Promise<string[]>;
1132
- stat(p: PathSpec): Promise<FileStat>;
1133
- exists(p: PathSpec): Promise<boolean>;
1134
- mkdir(p: PathSpec): Promise<void>;
1135
- rmdir(p: PathSpec): Promise<void>;
1136
- unlink(p: PathSpec): Promise<void>;
1137
- rename(src: PathSpec, dst: PathSpec): Promise<void>;
1138
- copy(src: PathSpec, dst: PathSpec): Promise<void>;
1139
- rmR(p: PathSpec): Promise<void>;
1140
- find(p: PathSpec, options?: FindOptions): Promise<string[]>;
1141
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
1142
- getState(): Promise<DatabricksVolumeResourceState>;
1143
- loadState(_state: DatabricksVolumeResourceState): Promise<void>;
1144
- }
1145
-
1146
- interface DatabricksProfile {
1147
- host?: string;
1148
- token?: string;
1149
- }
1150
- declare function parseDatabricksCfg(content: string, profile: string): DatabricksProfile;
1151
- declare function loadDatabricksProfile(profile: string): Promise<DatabricksProfile>;
1152
-
1153
- declare const GCS_ENDPOINT = "https://storage.googleapis.com";
1154
- interface GCSConfig {
1155
- bucket: string;
1156
- accessKeyId?: string;
1157
- secretAccessKey?: string;
1158
- sessionToken?: string;
1159
- profile?: string;
1160
- endpoint?: string;
1161
- region?: string;
1162
- timeoutMs?: number;
1163
- forcePathStyle?: boolean;
1164
- keyPrefix?: string;
1165
- proxy?: string;
1166
- }
1167
- declare const GCSConfigSchema: z.ZodObject<{
1168
- bucket: z.ZodString;
1169
- accessKeyId: z.ZodOptional<z.ZodString>;
1170
- secretAccessKey: z.ZodOptional<z.ZodString>;
1171
- sessionToken: z.ZodOptional<z.ZodString>;
1172
- profile: z.ZodOptional<z.ZodString>;
1173
- endpoint: z.ZodString;
1174
- region: z.ZodString;
1175
- timeoutMs: z.ZodOptional<z.ZodNumber>;
1176
- forcePathStyle: z.ZodOptional<z.ZodBoolean>;
1177
- keyPrefix: z.ZodOptional<z.ZodString>;
1178
- proxy: z.ZodOptional<z.ZodString>;
1179
- }, z.core.$strip>;
1180
- type GCSConfigRedacted = RedactedConfig<ConfigOf<typeof GCSConfigSchema>, 'accessKeyId' | 'secretAccessKey' | 'sessionToken' | 'proxy'>;
1181
- declare function redactGcsConfig(config: GCSConfig): GCSConfigRedacted;
1182
-
1183
- interface GCSResourceState {
1184
- type: string;
1185
- config: GCSConfigRedacted;
1186
- }
1187
- declare class GCSResource extends S3Resource {
1188
- readonly kind: string;
1189
- readonly prompt: string;
1190
- readonly gcsConfig: GCSConfig;
1191
- private readonly gcsOps;
1192
- private readonly gcsCommands;
1193
- constructor(config: GCSConfig);
1194
- ops(): readonly RegisteredOp[];
1195
- commands(): readonly RegisteredCommand[];
1196
- getState(): Promise<GCSResourceState>;
1197
- loadState(_state: GCSResourceState): Promise<void>;
1198
- }
1199
-
1200
- declare const GCS_PROMPT = "{prefix}\n Remote Google Cloud Storage bucket.\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1201
-
1202
- interface OCIConfig {
1203
- bucket: string;
1204
- namespace: string;
1205
- region: string;
1206
- accessKeyId?: string;
1207
- secretAccessKey?: string;
1208
- sessionToken?: string;
1209
- profile?: string;
1210
- endpoint?: string;
1211
- keyPrefix?: string;
1212
- timeoutMs?: number;
1213
- proxy?: string;
1214
- }
1215
- declare const OCIConfigSchema: z.ZodObject<{
1216
- bucket: z.ZodString;
1217
- namespace: z.ZodString;
1218
- region: z.ZodString;
1219
- accessKeyId: z.ZodOptional<z.ZodString>;
1220
- secretAccessKey: z.ZodOptional<z.ZodString>;
1221
- sessionToken: z.ZodOptional<z.ZodString>;
1222
- profile: z.ZodOptional<z.ZodString>;
1223
- endpoint: z.ZodString;
1224
- keyPrefix: z.ZodOptional<z.ZodString>;
1225
- timeoutMs: z.ZodOptional<z.ZodNumber>;
1226
- proxy: z.ZodOptional<z.ZodString>;
1227
- }, z.core.$strip>;
1228
- type OCIConfigRedacted = RedactedConfig<ConfigOf<typeof OCIConfigSchema>, 'accessKeyId' | 'secretAccessKey' | 'sessionToken' | 'proxy'>;
1229
- declare function redactOciConfig(config: OCIConfig): OCIConfigRedacted;
1230
-
1231
- interface OCIResourceState {
1232
- type: string;
1233
- config: OCIConfigRedacted;
1234
- }
1235
- declare class OCIResource extends S3Resource {
1236
- readonly kind: string;
1237
- readonly prompt: string;
1238
- readonly ociConfig: OCIConfig;
1239
- private readonly ociOps;
1240
- private readonly ociCommands;
1241
- constructor(config: OCIConfig);
1242
- ops(): readonly RegisteredOp[];
1243
- commands(): readonly RegisteredCommand[];
1244
- getState(): Promise<OCIResourceState>;
1245
- loadState(_state: OCIResourceState): Promise<void>;
1246
- }
1247
-
1248
- declare const OCI_PROMPT = "{prefix}\n Remote Oracle Cloud Object Storage.\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1249
-
1250
- interface R2Config {
1251
- bucket: string;
1252
- accessKeyId?: string;
1253
- secretAccessKey?: string;
1254
- sessionToken?: string;
1255
- accountId?: string;
1256
- endpoint?: string;
1257
- region?: string;
1258
- profile?: string;
1259
- forcePathStyle?: boolean;
1260
- keyPrefix?: string;
1261
- timeoutMs?: number;
1262
- proxy?: string;
1263
- }
1264
- declare const R2ConfigSchema: z.ZodObject<{
1265
- bucket: z.ZodString;
1266
- accessKeyId: z.ZodOptional<z.ZodString>;
1267
- secretAccessKey: z.ZodOptional<z.ZodString>;
1268
- sessionToken: z.ZodOptional<z.ZodString>;
1269
- accountId: z.ZodOptional<z.ZodString>;
1270
- endpoint: z.ZodString;
1271
- region: z.ZodString;
1272
- profile: z.ZodOptional<z.ZodString>;
1273
- forcePathStyle: z.ZodOptional<z.ZodBoolean>;
1274
- keyPrefix: z.ZodOptional<z.ZodString>;
1275
- timeoutMs: z.ZodOptional<z.ZodNumber>;
1276
- proxy: z.ZodOptional<z.ZodString>;
1277
- }, z.core.$strip>;
1278
- type R2ConfigRedacted = RedactedConfig<ConfigOf<typeof R2ConfigSchema>, 'accessKeyId' | 'secretAccessKey' | 'sessionToken' | 'proxy'>;
1279
- declare function redactR2Config(config: R2Config): R2ConfigRedacted;
1280
-
1281
- interface R2ResourceState {
1282
- type: string;
1283
- config: R2ConfigRedacted;
1284
- }
1285
- declare class R2Resource extends S3Resource {
1286
- readonly kind: string;
1287
- readonly prompt: string;
1288
- readonly r2Config: R2Config;
1289
- private readonly r2Ops;
1290
- private readonly r2Commands;
1291
- constructor(config: R2Config);
1292
- ops(): readonly RegisteredOp[];
1293
- commands(): readonly RegisteredCommand[];
1294
- getState(): Promise<R2ResourceState>;
1295
- loadState(_state: R2ResourceState): Promise<void>;
1296
- }
1297
-
1298
- declare const R2_PROMPT = "{prefix}\n Remote Cloudflare R2 bucket.\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1299
-
1300
- interface SupabaseConfig {
1301
- bucket: string;
1302
- region: string;
1303
- accessKeyId?: string;
1304
- secretAccessKey?: string;
1305
- projectRef?: string;
1306
- endpoint?: string;
1307
- sessionToken?: string;
1308
- profile?: string;
1309
- keyPrefix?: string;
1310
- timeoutMs?: number;
1311
- proxy?: string;
1312
- }
1313
- declare const SupabaseConfigSchema: z.ZodObject<{
1314
- bucket: z.ZodString;
1315
- region: z.ZodString;
1316
- projectRef: z.ZodOptional<z.ZodString>;
1317
- endpoint: z.ZodString;
1318
- accessKeyId: z.ZodOptional<z.ZodString>;
1319
- secretAccessKey: z.ZodOptional<z.ZodString>;
1320
- sessionToken: z.ZodOptional<z.ZodString>;
1321
- profile: z.ZodOptional<z.ZodString>;
1322
- keyPrefix: z.ZodOptional<z.ZodString>;
1323
- timeoutMs: z.ZodOptional<z.ZodNumber>;
1324
- proxy: z.ZodOptional<z.ZodString>;
1325
- }, z.core.$strip>;
1326
- type SupabaseConfigRedacted = RedactedConfig<ConfigOf<typeof SupabaseConfigSchema>, 'accessKeyId' | 'secretAccessKey' | 'sessionToken' | 'proxy'>;
1327
- declare function resolvedSupabaseEndpoint(config: SupabaseConfig): string;
1328
- declare function redactSupabaseConfig(config: SupabaseConfig): SupabaseConfigRedacted;
1329
-
1330
- interface SupabaseResourceState {
1331
- type: string;
1332
- config: SupabaseConfigRedacted;
1333
- }
1334
- declare class SupabaseResource extends S3Resource {
1335
- readonly kind: string;
1336
- readonly prompt: string;
1337
- readonly supabaseConfig: SupabaseConfig;
1338
- private readonly supabaseOps;
1339
- private readonly supabaseCommands;
1340
- constructor(config: SupabaseConfig);
1341
- ops(): readonly RegisteredOp[];
1342
- commands(): readonly RegisteredCommand[];
1343
- getState(): Promise<SupabaseResourceState>;
1344
- loadState(_state: SupabaseResourceState): Promise<void>;
1345
- }
1346
-
1347
- declare const SUPABASE_PROMPT = "{prefix}\n Remote Supabase Storage bucket.\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, wc, find, stat.";
1348
-
1349
- declare const HF_ENDPOINT = "https://huggingface.co";
1350
- declare function assertHfRepoId(value: string, field: string): string;
1351
- interface HfBucketsConfig {
1352
- bucket: string;
1353
- token?: string;
1354
- endpoint?: string;
1355
- timeoutMs?: number;
1356
- keyPrefix?: string;
1357
- }
1358
- declare const HfBucketsConfigSchema: z.ZodObject<{
1359
- bucket: z.ZodString;
1360
- token: z.ZodOptional<z.ZodString>;
1361
- endpoint: z.ZodString;
1362
- timeoutMs: z.ZodOptional<z.ZodNumber>;
1363
- keyPrefix: z.ZodOptional<z.ZodString>;
1364
- }, z.core.$strip>;
1365
- type HfBucketsConfigRedacted = RedactedConfig<ConfigOf<typeof HfBucketsConfigSchema>, 'token'>;
1366
- declare function redactHfBucketsConfig(config: HfBucketsConfig): HfBucketsConfigRedacted;
1367
- declare function normalizeHfBucketsConfig(input: Record<string, unknown>): HfBucketsConfig;
1368
- interface HfRepoConfig {
1369
- repoId: string;
1370
- token?: string;
1371
- endpoint?: string;
1372
- timeoutMs?: number;
1373
- keyPrefix?: string;
1374
- revision?: string;
1375
- }
1376
- declare const HfRepoConfigSchema: z.ZodObject<{
1377
- repoId: z.ZodString;
1378
- token: z.ZodOptional<z.ZodString>;
1379
- endpoint: z.ZodString;
1380
- timeoutMs: z.ZodOptional<z.ZodNumber>;
1381
- keyPrefix: z.ZodOptional<z.ZodString>;
1382
- revision: z.ZodOptional<z.ZodString>;
1383
- }, z.core.$strip>;
1384
- type HfRepoConfigRedacted = RedactedConfig<ConfigOf<typeof HfRepoConfigSchema>, 'token'>;
1385
- declare function redactHfRepoConfig(config: HfRepoConfig): HfRepoConfigRedacted;
1386
- declare function normalizeHfRepoConfig(input: Record<string, unknown>): HfRepoConfig;
1387
-
1388
- declare const HF_RESOURCES: readonly ["hf_buckets", "hf_datasets", "hf_models", "hf_spaces"];
1389
- declare abstract class HfAccessor extends Accessor {
1390
- readonly config: HfBucketsConfig | HfRepoConfig;
1391
- abstract readonly repoType: string;
1392
- abstract readonly resourceName: ResourceName;
1393
- private operatorPromise;
1394
- constructor(config: HfBucketsConfig | HfRepoConfig);
1395
- get repoId(): string;
1396
- abstract get bucketUri(): string;
1397
- operatorOptions(): Record<string, string>;
1398
- operator(): Promise<Operator>;
1399
- private createOperator;
1400
- }
1401
- declare class HfBucketsAccessor extends HfAccessor {
1402
- readonly repoType: string;
1403
- readonly resourceName: ResourceName;
1404
- get bucketUri(): string;
1405
- }
1406
- declare class HfDatasetsAccessor extends HfAccessor {
1407
- readonly repoType: string;
1408
- readonly resourceName: ResourceName;
1409
- get bucketUri(): string;
1410
- }
1411
- declare class HfModelsAccessor extends HfAccessor {
1412
- readonly repoType: string;
1413
- readonly resourceName: ResourceName;
1414
- get bucketUri(): string;
1415
- }
1416
- declare class HfSpacesAccessor extends HfAccessor {
1417
- readonly repoType: string;
1418
- readonly resourceName: ResourceName;
1419
- get bucketUri(): string;
1420
- }
1421
-
1422
- declare abstract class HfResource extends BaseResource implements Resource {
1423
- abstract readonly kind: string;
1424
- abstract readonly prompt: string;
1425
- abstract readonly accessor: HfAccessor;
1426
- readonly cachesReads: boolean;
1427
- readonly sizesAlwaysKnown: boolean;
1428
- readonly supportsSnapshot: boolean;
1429
- readonly opsMap: Record<string, unknown>;
1430
- open(): Promise<void>;
1431
- commands(): readonly RegisteredCommand[];
1432
- ops(): readonly RegisteredOp[];
1433
- streamPath(p: PathSpec): AsyncIterable<Uint8Array>;
1434
- readFile(p: PathSpec): Promise<Uint8Array>;
1435
- writeFile(p: PathSpec, data: Uint8Array): Promise<void>;
1436
- readdir(p: PathSpec): Promise<string[]>;
1437
- stat(p: PathSpec): Promise<FileStat>;
1438
- exists(p: PathSpec): Promise<boolean>;
1439
- mkdir(p: PathSpec): Promise<void>;
1440
- unlink(p: PathSpec): Promise<void>;
1441
- du(p: PathSpec): Promise<number>;
1442
- find(p: PathSpec, options?: FindOptions): Promise<string[]>;
1443
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
1444
- loadState(_state: unknown): Promise<void>;
1445
- }
1446
-
1447
- interface HfBucketsResourceState {
1448
- type: string;
1449
- config: HfBucketsConfigRedacted;
1450
- }
1451
- declare class HfBucketsResource extends HfResource {
1452
- readonly kind: string;
1453
- readonly prompt: string;
1454
- readonly config: HfBucketsConfig;
1455
- readonly accessor: HfBucketsAccessor;
1456
- constructor(config: HfBucketsConfig);
1457
- getState(): Promise<HfBucketsResourceState>;
1458
- }
1459
-
1460
- declare const HF_BUCKETS_PROMPT = "{prefix}\n Remote Hugging Face Bucket (read-only). Maps bucket object keys to virtual paths.\n IMPORTANT: This is a remote mount. Prefer targeted reads (grep, head) over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1461
-
1462
- interface HfDatasetsResourceState {
1463
- type: string;
1464
- config: HfRepoConfigRedacted;
1465
- }
1466
- declare class HfDatasetsResource extends HfResource {
1467
- readonly kind: string;
1468
- readonly prompt: string;
1469
- readonly config: HfRepoConfig;
1470
- readonly accessor: HfDatasetsAccessor;
1471
- constructor(config: HfRepoConfig);
1472
- getState(): Promise<HfDatasetsResourceState>;
1473
- }
1474
-
1475
- declare const HF_DATASETS_PROMPT = "{prefix}\n Remote Hugging Face Dataset. Maps dataset repo files to virtual paths.\n IMPORTANT: This is a remote mount. Prefer targeted reads (grep, head) over full scans. Large parquet/safetensors files stream lazily via byte-range reads.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1476
-
1477
- interface HfModelsResourceState {
1478
- type: string;
1479
- config: HfRepoConfigRedacted;
1480
- }
1481
- declare class HfModelsResource extends HfResource {
1482
- readonly kind: string;
1483
- readonly prompt: string;
1484
- readonly config: HfRepoConfig;
1485
- readonly accessor: HfModelsAccessor;
1486
- constructor(config: HfRepoConfig);
1487
- getState(): Promise<HfModelsResourceState>;
1488
- }
1489
-
1490
- type HfModelsConfig = HfRepoConfig;
1491
- type HfModelsConfigRedacted = HfRepoConfigRedacted;
1492
- declare const normalizeHfModelsConfig: typeof normalizeHfRepoConfig;
1493
- declare const redactHfModelsConfig: typeof redactHfRepoConfig;
1494
-
1495
- declare const HF_MODELS_PROMPT = "{prefix}\n Remote Hugging Face Model. Maps model repo files (weights, configs, tokenizer) to virtual paths.\n IMPORTANT: This is a remote mount. Prefer config/tokenizer inspection over downloading full weights. Safetensors/bin files stream lazily via byte-range reads.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1496
-
1497
- interface HfSpacesResourceState {
1498
- type: string;
1499
- config: HfRepoConfigRedacted;
1500
- }
1501
- declare class HfSpacesResource extends HfResource {
1502
- readonly kind: string;
1503
- readonly prompt: string;
1504
- readonly config: HfRepoConfig;
1505
- readonly accessor: HfSpacesAccessor;
1506
- constructor(config: HfRepoConfig);
1507
- getState(): Promise<HfSpacesResourceState>;
1508
- }
1509
-
1510
- declare const HF_SPACES_PROMPT = "{prefix}\n Remote Hugging Face Space. Maps the space's repo files (app code, README, requirements) to virtual paths.\n IMPORTANT: This is a remote mount. Prefer targeted reads (grep, head) over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1511
-
1512
- declare const HF_COMMANDS: readonly RegisteredCommand[];
1513
-
1514
- declare const HF_OPS: readonly RegisteredOp[];
1515
-
1516
- /**
1517
- * Shared shape for the S3-compatible providers.
1518
- *
1519
- * Every alias is the same credentials plus one endpoint rule, so the
1520
- * fields, the zod schema that drives redaction, the snake_case mapping and
1521
- * the conversion to S3Config live here once. A provider declares only its
1522
- * endpoint rule and whatever it genuinely adds. Mirrors Python's
1523
- * `mirage/resource/s3_alias.py`.
1524
- *
1525
- * Only `bucket` and whatever the endpoint genuinely needs are required.
1526
- * Credentials are optional because `S3Config` leaves them optional too, so
1527
- * omitting them falls through to the usual AWS resolution order: `profile`,
1528
- * then the `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` environment
1529
- * variables, then the shared credentials file, then an instance role.
1530
- * `sessionToken` and `profile` live here rather than on the one provider
1531
- * that first needed them, so every alias accepts them.
1532
- */
1533
- interface S3AliasConfig {
1534
- bucket: string;
1535
- accessKeyId?: string;
1536
- secretAccessKey?: string;
1537
- sessionToken?: string;
1538
- profile?: string;
1539
- region?: string;
1540
- endpoint?: string;
1541
- forcePathStyle?: boolean;
1542
- keyPrefix?: string;
1543
- timeoutMs?: number;
1544
- proxy?: string;
1545
- }
1546
- declare const ALIAS_SCHEMA: z.ZodObject<{
1547
- bucket: z.ZodString;
1548
- accessKeyId: z.ZodOptional<z.ZodString>;
1549
- secretAccessKey: z.ZodOptional<z.ZodString>;
1550
- sessionToken: z.ZodOptional<z.ZodString>;
1551
- profile: z.ZodOptional<z.ZodString>;
1552
- region: z.ZodString;
1553
- endpoint: z.ZodString;
1554
- forcePathStyle: z.ZodOptional<z.ZodBoolean>;
1555
- keyPrefix: z.ZodOptional<z.ZodString>;
1556
- timeoutMs: z.ZodOptional<z.ZodNumber>;
1557
- proxy: z.ZodOptional<z.ZodString>;
1558
- }, z.core.$strip>;
1559
- type S3AliasConfigRedacted = RedactedConfig<ConfigOf<typeof ALIAS_SCHEMA>, 'accessKeyId' | 'secretAccessKey' | 'sessionToken' | 'proxy'>;
1560
-
1561
- interface MinIOConfig extends S3AliasConfig {
1562
- endpoint: string;
1563
- }
1564
- type MinIOConfigRedacted = S3AliasConfigRedacted;
1565
- declare const redactMinIOConfig: (config: MinIOConfig) => S3AliasConfigRedacted;
1566
-
1567
- interface MinIOResourceState {
1568
- type: string;
1569
- config: MinIOConfigRedacted;
1570
- }
1571
- declare class MinIOResource extends S3Resource {
1572
- readonly kind: string;
1573
- readonly prompt: string;
1574
- readonly minioConfig: MinIOConfig;
1575
- private readonly minioOps;
1576
- private readonly minioCommands;
1577
- constructor(config: MinIOConfig);
1578
- ops(): readonly RegisteredOp[];
1579
- commands(): readonly RegisteredCommand[];
1580
- getState(): Promise<MinIOResourceState>;
1581
- loadState(_state: MinIOResourceState): Promise<void>;
1582
- }
1583
-
1584
- declare const MINIO_PROMPT = "{prefix}\n Remote MinIO bucket (S3-compatible).\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1585
-
1586
- interface SeaweedFSConfig extends S3AliasConfig {
1587
- endpoint: string;
1588
- }
1589
- type SeaweedFSConfigRedacted = S3AliasConfigRedacted;
1590
- declare const redactSeaweedFSConfig: (config: SeaweedFSConfig) => S3AliasConfigRedacted;
1591
-
1592
- interface SeaweedFSResourceState {
1593
- type: string;
1594
- config: SeaweedFSConfigRedacted;
1595
- }
1596
- declare class SeaweedFSResource extends S3Resource {
1597
- readonly kind: string;
1598
- readonly prompt: string;
1599
- readonly seaweedfsConfig: SeaweedFSConfig;
1600
- private readonly seaweedfsOps;
1601
- private readonly seaweedfsCommands;
1602
- constructor(config: SeaweedFSConfig);
1603
- ops(): readonly RegisteredOp[];
1604
- commands(): readonly RegisteredCommand[];
1605
- getState(): Promise<SeaweedFSResourceState>;
1606
- loadState(_state: SeaweedFSResourceState): Promise<void>;
1607
- }
1608
-
1609
- declare const SEAWEEDFS_PROMPT = "{prefix}\n Remote SeaweedFS bucket (S3-compatible gateway).\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1610
-
1611
- interface CephConfig extends S3AliasConfig {
1612
- endpoint: string;
1613
- }
1614
- type CephConfigRedacted = S3AliasConfigRedacted;
1615
- declare const redactCephConfig: (config: CephConfig) => S3AliasConfigRedacted;
1616
-
1617
- interface CephResourceState {
1618
- type: string;
1619
- config: CephConfigRedacted;
1620
- }
1621
- declare class CephResource extends S3Resource {
1622
- readonly kind: string;
1623
- readonly prompt: string;
1624
- readonly cephConfig: CephConfig;
1625
- private readonly cephOps;
1626
- private readonly cephCommands;
1627
- constructor(config: CephConfig);
1628
- ops(): readonly RegisteredOp[];
1629
- commands(): readonly RegisteredCommand[];
1630
- getState(): Promise<CephResourceState>;
1631
- loadState(_state: CephResourceState): Promise<void>;
1632
- }
1633
-
1634
- declare const CEPH_PROMPT = "{prefix}\n Remote Ceph Rados Gateway bucket (S3-compatible).\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1635
-
1636
- interface WasabiConfig {
1637
- bucket: string;
1638
- accessKeyId?: string;
1639
- secretAccessKey?: string;
1640
- sessionToken?: string;
1641
- profile?: string;
1642
- region?: string;
1643
- endpoint?: string;
1644
- forcePathStyle?: boolean;
1645
- keyPrefix?: string;
1646
- timeoutMs?: number;
1647
- proxy?: string;
1648
- }
1649
- declare const WasabiConfigSchema: z.ZodObject<{
1650
- bucket: z.ZodString;
1651
- accessKeyId: z.ZodOptional<z.ZodString>;
1652
- secretAccessKey: z.ZodOptional<z.ZodString>;
1653
- sessionToken: z.ZodOptional<z.ZodString>;
1654
- profile: z.ZodOptional<z.ZodString>;
1655
- region: z.ZodString;
1656
- endpoint: z.ZodString;
1657
- forcePathStyle: z.ZodOptional<z.ZodBoolean>;
1658
- keyPrefix: z.ZodOptional<z.ZodString>;
1659
- timeoutMs: z.ZodOptional<z.ZodNumber>;
1660
- proxy: z.ZodOptional<z.ZodString>;
1661
- }, z.core.$strip>;
1662
- type WasabiConfigRedacted = RedactedConfig<ConfigOf<typeof WasabiConfigSchema>, 'accessKeyId' | 'secretAccessKey' | 'sessionToken' | 'proxy'>;
1663
- declare function resolvedWasabiEndpoint(config: WasabiConfig): string;
1664
- declare function redactWasabiConfig(config: WasabiConfig): WasabiConfigRedacted;
1665
-
1666
- interface WasabiResourceState {
1667
- type: string;
1668
- config: WasabiConfigRedacted;
1669
- }
1670
- declare class WasabiResource extends S3Resource {
1671
- readonly kind: string;
1672
- readonly prompt: string;
1673
- readonly wasabiConfig: WasabiConfig;
1674
- private readonly wasabiOps;
1675
- private readonly wasabiCommands;
1676
- constructor(config: WasabiConfig);
1677
- ops(): readonly RegisteredOp[];
1678
- commands(): readonly RegisteredCommand[];
1679
- getState(): Promise<WasabiResourceState>;
1680
- loadState(_state: WasabiResourceState): Promise<void>;
1681
- }
1682
-
1683
- declare const WASABI_PROMPT = "{prefix}\n Remote Wasabi bucket (S3-compatible).\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1684
-
1685
- interface BackblazeConfig extends S3AliasConfig {
1686
- region: string;
1687
- }
1688
- type BackblazeConfigRedacted = S3AliasConfigRedacted;
1689
- declare const resolvedBackblazeEndpoint: (config: BackblazeConfig) => string;
1690
- declare const redactBackblazeConfig: (config: BackblazeConfig) => S3AliasConfigRedacted;
1691
-
1692
- interface BackblazeResourceState {
1693
- type: string;
1694
- config: BackblazeConfigRedacted;
1695
- }
1696
- declare class BackblazeResource extends S3Resource {
1697
- readonly kind: string;
1698
- readonly prompt: string;
1699
- readonly backblazeConfig: BackblazeConfig;
1700
- private readonly backblazeOps;
1701
- private readonly backblazeCommands;
1702
- constructor(config: BackblazeConfig);
1703
- ops(): readonly RegisteredOp[];
1704
- commands(): readonly RegisteredCommand[];
1705
- getState(): Promise<BackblazeResourceState>;
1706
- loadState(_state: BackblazeResourceState): Promise<void>;
1707
- }
1708
-
1709
- declare const BACKBLAZE_PROMPT = "{prefix}\n Remote Backblaze B2 bucket (S3-compatible).\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1710
-
1711
- interface DigitalOceanConfig extends S3AliasConfig {
1712
- region: string;
1713
- }
1714
- type DigitalOceanConfigRedacted = S3AliasConfigRedacted;
1715
- declare const resolvedDigitalOceanEndpoint: (config: DigitalOceanConfig) => string;
1716
- declare const redactDigitalOceanConfig: (config: DigitalOceanConfig) => S3AliasConfigRedacted;
1717
-
1718
- interface DigitalOceanResourceState {
1719
- type: string;
1720
- config: DigitalOceanConfigRedacted;
1721
- }
1722
- declare class DigitalOceanResource extends S3Resource {
1723
- readonly kind: string;
1724
- readonly prompt: string;
1725
- readonly digitalOceanConfig: DigitalOceanConfig;
1726
- private readonly digitalOceanOps;
1727
- private readonly digitalOceanCommands;
1728
- constructor(config: DigitalOceanConfig);
1729
- ops(): readonly RegisteredOp[];
1730
- commands(): readonly RegisteredCommand[];
1731
- getState(): Promise<DigitalOceanResourceState>;
1732
- loadState(_state: DigitalOceanResourceState): Promise<void>;
1733
- }
1734
-
1735
- declare const DIGITALOCEAN_PROMPT = "{prefix}\n Remote DigitalOcean Spaces bucket (S3-compatible).\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1736
-
1737
- interface TencentConfig extends S3AliasConfig {
1738
- region: string;
1739
- }
1740
- type TencentConfigRedacted = S3AliasConfigRedacted;
1741
- declare const resolvedTencentEndpoint: (config: TencentConfig) => string;
1742
- declare const redactTencentConfig: (config: TencentConfig) => S3AliasConfigRedacted;
1743
-
1744
- interface TencentResourceState {
1745
- type: string;
1746
- config: TencentConfigRedacted;
1747
- }
1748
- declare class TencentResource extends S3Resource {
1749
- readonly kind: string;
1750
- readonly prompt: string;
1751
- readonly tencentConfig: TencentConfig;
1752
- private readonly tencentOps;
1753
- private readonly tencentCommands;
1754
- constructor(config: TencentConfig);
1755
- ops(): readonly RegisteredOp[];
1756
- commands(): readonly RegisteredCommand[];
1757
- getState(): Promise<TencentResourceState>;
1758
- loadState(_state: TencentResourceState): Promise<void>;
1759
- }
1760
-
1761
- declare const TENCENT_PROMPT = "{prefix}\n Remote Tencent Cloud COS bucket (S3-compatible).\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1762
-
1763
- interface AliyunConfig extends S3AliasConfig {
1764
- region: string;
1765
- }
1766
- type AliyunConfigRedacted = S3AliasConfigRedacted;
1767
- declare const resolvedAliyunEndpoint: (config: AliyunConfig) => string;
1768
- declare const redactAliyunConfig: (config: AliyunConfig) => S3AliasConfigRedacted;
1769
-
1770
- interface AliyunResourceState {
1771
- type: string;
1772
- config: AliyunConfigRedacted;
1773
- }
1774
- declare class AliyunResource extends S3Resource {
1775
- readonly kind: string;
1776
- readonly prompt: string;
1777
- readonly aliyunConfig: AliyunConfig;
1778
- private readonly aliyunOps;
1779
- private readonly aliyunCommands;
1780
- constructor(config: AliyunConfig);
1781
- ops(): readonly RegisteredOp[];
1782
- commands(): readonly RegisteredCommand[];
1783
- getState(): Promise<AliyunResourceState>;
1784
- loadState(_state: AliyunResourceState): Promise<void>;
1785
- }
1786
-
1787
- declare const ALIYUN_PROMPT = "{prefix}\n Remote Alibaba Cloud OSS bucket (S3-compatible).\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1788
-
1789
- interface ScalewayConfig extends S3AliasConfig {
1790
- region: string;
1791
- }
1792
- type ScalewayConfigRedacted = S3AliasConfigRedacted;
1793
- declare const resolvedScalewayEndpoint: (config: ScalewayConfig) => string;
1794
- declare const redactScalewayConfig: (config: ScalewayConfig) => S3AliasConfigRedacted;
1795
-
1796
- interface ScalewayResourceState {
1797
- type: string;
1798
- config: ScalewayConfigRedacted;
1799
- }
1800
- declare class ScalewayResource extends S3Resource {
1801
- readonly kind: string;
1802
- readonly prompt: string;
1803
- readonly scalewayConfig: ScalewayConfig;
1804
- private readonly scalewayOps;
1805
- private readonly scalewayCommands;
1806
- constructor(config: ScalewayConfig);
1807
- ops(): readonly RegisteredOp[];
1808
- commands(): readonly RegisteredCommand[];
1809
- getState(): Promise<ScalewayResourceState>;
1810
- loadState(_state: ScalewayResourceState): Promise<void>;
1811
- }
1812
-
1813
- declare const SCALEWAY_PROMPT = "{prefix}\n Remote Scaleway Object Storage bucket (S3-compatible).\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1814
-
1815
- interface QingStorConfig extends S3AliasConfig {
1816
- region: string;
1817
- }
1818
- type QingStorConfigRedacted = S3AliasConfigRedacted;
1819
- declare const resolvedQingStorEndpoint: (config: QingStorConfig) => string;
1820
- declare const redactQingStorConfig: (config: QingStorConfig) => S3AliasConfigRedacted;
1821
-
1822
- interface QingStorResourceState {
1823
- type: string;
1824
- config: QingStorConfigRedacted;
1825
- }
1826
- declare class QingStorResource extends S3Resource {
1827
- readonly kind: string;
1828
- readonly prompt: string;
1829
- readonly qingStorConfig: QingStorConfig;
1830
- private readonly qingStorOps;
1831
- private readonly qingStorCommands;
1832
- constructor(config: QingStorConfig);
1833
- ops(): readonly RegisteredOp[];
1834
- commands(): readonly RegisteredCommand[];
1835
- getState(): Promise<QingStorResourceState>;
1836
- loadState(_state: QingStorResourceState): Promise<void>;
1837
- }
1838
-
1839
- declare const QINGSTOR_PROMPT = "{prefix}\n Remote QingStor bucket (S3-compatible).\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, jq, stat.";
1840
-
1841
- interface PgPoolLike {
1842
- query: (sql: string, params?: readonly unknown[]) => Promise<{
1843
- rows: unknown[];
1844
- rowCount: number | null;
1845
- }>;
1846
- end: () => Promise<void>;
1847
- }
1848
- declare class PostgresStore implements PgDriver {
1849
- readonly config: PostgresConfigResolved;
1850
- private poolPromise;
1851
- constructor(config: PostgresConfigResolved);
1852
- query<R = Record<string, unknown>>(sql: string, params?: readonly unknown[]): Promise<PgQueryResult<R>>;
1853
- databaseName(): Promise<string>;
1854
- close(): Promise<void>;
1855
- private _pool;
1856
- protected _connect(): Promise<PgPoolLike>;
1857
- }
1858
-
1859
- interface PostgresResourceOptions {
1860
- config: PostgresConfig;
1861
- prefix?: string;
1862
- }
1863
- declare class PostgresResource extends BaseResource implements Resource {
1864
- readonly kind: string;
1865
- readonly cachesReads: boolean;
1866
- readonly indexTtl: number;
1867
- readonly prompt: string;
1868
- readonly config: PostgresConfigResolved;
1869
- readonly store: PostgresStore;
1870
- readonly accessor: PostgresAccessor;
1871
- constructor(options: PostgresResourceOptions | PostgresConfig);
1872
- open(): Promise<void>;
1873
- close(): Promise<void>;
1874
- ops(): readonly RegisteredOp[];
1875
- commands(): readonly RegisteredCommand[];
1876
- readFile(p: PathSpec): Promise<Uint8Array>;
1877
- readdir(p: PathSpec): Promise<string[]>;
1878
- stat(p: PathSpec): Promise<FileStat>;
1879
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
1880
- }
1881
-
1882
- interface MongoCollectionLike {
1883
- find: (filter: Record<string, unknown>, options?: {
1884
- projection?: Record<string, unknown>;
1885
- }) => {
1886
- sort: (sort: Record<string, 1 | -1>) => MongoCursorLike;
1887
- skip: (n: number) => MongoCursorLike;
1888
- limit: (n: number) => MongoCursorLike;
1889
- batchSize: (n: number) => MongoCursorLike;
1890
- toArray: () => Promise<Record<string, unknown>[]>;
1891
- [Symbol.asyncIterator]?: () => AsyncIterableIterator<Record<string, unknown>>;
1892
- };
1893
- countDocuments: (filter?: Record<string, unknown>) => Promise<number>;
1894
- listIndexes: () => {
1895
- toArray: () => Promise<Record<string, unknown>[]>;
1896
- };
1897
- aggregate: (pipeline: unknown[]) => {
1898
- toArray: () => Promise<Record<string, unknown>[]>;
1899
- };
1900
- watch: (pipeline?: unknown[]) => AsyncIterableIterator<Record<string, unknown>> & {
1901
- close: () => Promise<void>;
1902
- };
1903
- }
1904
- interface MongoCursorLike {
1905
- sort: (sort: Record<string, 1 | -1>) => MongoCursorLike;
1906
- skip: (n: number) => MongoCursorLike;
1907
- limit: (n: number) => MongoCursorLike;
1908
- batchSize: (n: number) => MongoCursorLike;
1909
- toArray: () => Promise<Record<string, unknown>[]>;
1910
- [Symbol.asyncIterator]?: () => AsyncIterableIterator<Record<string, unknown>>;
1911
- }
1912
- interface MongoDbLike {
1913
- listCollections: (filter?: Record<string, unknown>) => {
1914
- toArray: () => Promise<Record<string, unknown>[]>;
1915
- };
1916
- collection: (name: string) => MongoCollectionLike;
1917
- admin: () => {
1918
- listDatabases: () => Promise<{
1919
- databases: {
1920
- name: string;
1921
- }[];
1922
- }>;
1923
- };
1924
- }
1925
- interface MongoClientLike {
1926
- connect: () => Promise<MongoClientLike>;
1927
- db: (name?: string) => MongoDbLike;
1928
- close: () => Promise<void>;
1929
- }
1930
- declare class MongoDBStore implements MongoDriver {
1931
- readonly uri: string;
1932
- private clientPromise;
1933
- constructor(uri: string);
1934
- listDatabases(): Promise<string[]>;
1935
- listCollections(database: string, kind?: EntityKind | null): Promise<string[]>;
1936
- listCollectionsDetailed(database: string, filter?: {
1937
- name?: string;
1938
- }): Promise<MongoCollectionSpec[]>;
1939
- findDocuments<T = Record<string, unknown>>(database: string, collection: string, filter?: Record<string, unknown>, options?: MongoFindOptions): Promise<T[]>;
1940
- iterDocuments<T = Record<string, unknown>>(database: string, collection: string, options?: MongoIterOptions): AsyncIterableIterator<T>;
1941
- iterInserts<T = Record<string, unknown>>(database: string, collection: string): AsyncIterableIterator<T>;
1942
- countDocuments(database: string, collection: string, filter?: Record<string, unknown>): Promise<number>;
1943
- listIndexes(database: string, collection: string): Promise<Record<string, unknown>[]>;
1944
- getIndexStats(database: string, collection: string): Promise<Record<string, MongoIndexAccess>>;
1945
- close(): Promise<void>;
1946
- private _client;
1947
- protected _connect(): Promise<MongoClientLike>;
1948
- }
1949
-
1950
- interface MongoDBResourceOptions {
1951
- config: MongoDBConfig;
1952
- prefix?: string;
1953
- }
1954
- declare class MongoDBResource extends BaseResource implements Resource {
1955
- readonly kind: string;
1956
- readonly cachesReads: boolean;
1957
- readonly indexTtl: number;
1958
- readonly prompt: string;
1959
- readonly config: MongoDBConfigResolved;
1960
- readonly store: MongoDBStore;
1961
- readonly accessor: MongoDBAccessor;
1962
- constructor(options: MongoDBResourceOptions | MongoDBConfig);
1963
- open(): Promise<void>;
1964
- close(): Promise<void>;
1965
- ops(): readonly RegisteredOp[];
1966
- commands(): readonly RegisteredCommand[];
1967
- readFile(p: PathSpec): Promise<Uint8Array>;
1968
- readdir(p: PathSpec): Promise<string[]>;
1969
- stat(p: PathSpec): Promise<FileStat>;
1970
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
1971
- }
1972
-
1973
- declare class LanceDBStore implements LanceDriver {
1974
- private readonly config;
1975
- private db;
1976
- private readonly tables;
1977
- constructor(config: LanceDBConfigResolved);
1978
- private connection;
1979
- private table;
1980
- listTables(): Promise<string[]>;
1981
- distinct(table: string, column: string, filters: Record<string, string>, limit: number): Promise<string[]>;
1982
- tableColumns(table: string): Promise<string[]>;
1983
- rowsMatching(table: string, filters: Record<string, string>, columns: string[], limit: number): Promise<LanceRow[]>;
1984
- rowRecord(table: string, idColumn: string, rowId: string): Promise<LanceRow | null>;
1985
- search(table: string, query: string, limit: number): Promise<LanceRow[]>;
1986
- close(): Promise<void>;
1987
- }
1988
-
1989
- interface LanceDBResourceOptions {
1990
- config: LanceDBConfig;
1991
- }
1992
- declare class LanceDBResource extends BaseResource implements Resource {
1993
- readonly kind: string;
1994
- readonly cachesReads: boolean;
1995
- readonly sizesAlwaysKnown: boolean;
1996
- readonly indexTtl: number;
1997
- readonly prompt: string;
1998
- readonly config: LanceDBConfigResolved;
1999
- readonly store: LanceDBStore;
2000
- readonly accessor: LanceDBAccessor;
2001
- constructor(options: LanceDBResourceOptions | LanceDBConfig);
2002
- open(): Promise<void>;
2003
- close(): Promise<void>;
2004
- ops(): readonly RegisteredOp[];
2005
- commands(): readonly RegisteredCommand[];
2006
- readFile(p: PathSpec): Promise<Uint8Array>;
2007
- readdir(p: PathSpec): Promise<string[]>;
2008
- stat(p: PathSpec): Promise<FileStat>;
2009
- }
2010
-
2011
- interface SlackResourceState {
2012
- type: string;
2013
- config: SlackConfigRedacted;
2014
- }
2015
- declare class SlackResource extends BaseResource implements Resource {
2016
- readonly kind: string;
2017
- readonly cachesReads: boolean;
2018
- readonly sizesAlwaysKnown: boolean;
2019
- readonly indexTtl: number;
2020
- readonly prompt: string;
2021
- readonly writePrompt: string;
2022
- readonly config: SlackConfig;
2023
- readonly accessor: SlackAccessor;
2024
- constructor(config: SlackConfig);
2025
- open(): Promise<void>;
2026
- commands(): readonly RegisteredCommand[];
2027
- ops(): readonly RegisteredOp[];
2028
- readFile(p: PathSpec): Promise<Uint8Array>;
2029
- readdir(p: PathSpec): Promise<string[]>;
2030
- stat(p: PathSpec): Promise<FileStat>;
2031
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2032
- getState(): Promise<SlackResourceState>;
2033
- loadState(_state: SlackResourceState): Promise<void>;
2034
- }
2035
-
2036
- declare const SSHConfigSchema: z.ZodObject<{
2037
- host: z.ZodString;
2038
- hostname: z.ZodOptional<z.ZodString>;
2039
- port: z.ZodOptional<z.ZodNumber>;
2040
- username: z.ZodOptional<z.ZodString>;
2041
- password: z.ZodOptional<z.ZodString>;
2042
- identityFile: z.ZodOptional<z.ZodString>;
2043
- passphrase: z.ZodOptional<z.ZodString>;
2044
- root: z.ZodOptional<z.ZodString>;
2045
- timeout: z.ZodOptional<z.ZodNumber>;
2046
- knownHosts: z.ZodOptional<z.ZodString>;
2047
- }, z.core.$strip>;
2048
- type SSHConfig = ConfigOf<typeof SSHConfigSchema>;
2049
- type SSHConfigRedacted = RedactedConfig<SSHConfig, 'password' | 'passphrase'>;
2050
- declare function redactSshConfig(config: SSHConfig): SSHConfigRedacted;
2051
- declare function normalizeSshConfig(input: Record<string, unknown>): SSHConfig;
2052
-
2053
- declare class SSHAccessor extends Accessor {
2054
- readonly config: SSHConfig;
2055
- private client;
2056
- private sftpClient;
2057
- private connectPromise;
2058
- constructor(config: SSHConfig);
2059
- sftp(): Promise<SFTPWrapper>;
2060
- private connect;
2061
- close(): Promise<void>;
2062
- }
2063
-
2064
- interface SSHResourceState {
2065
- type: string;
2066
- config: SSHConfigRedacted;
2067
- }
2068
- declare class SSHResource extends BaseResource implements Resource {
2069
- readonly kind: "ssh";
2070
- readonly cachesReads: boolean;
2071
- readonly sizesAlwaysKnown: boolean;
2072
- readonly indexTtl: number;
2073
- readonly prompt = "{prefix}\n Remote filesystem via SSH/SFTP.\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, stat, mkdir, touch, cp, mv, rm, tee.";
2074
- readonly config: SSHConfig;
2075
- readonly accessor: SSHAccessor;
2076
- readonly opsMap: Record<string, unknown>;
2077
- constructor(config: SSHConfig);
2078
- open(): Promise<void>;
2079
- close(): Promise<void>;
2080
- ops(): readonly RegisteredOp[];
2081
- commands(): readonly RegisteredCommand[];
2082
- streamPath(p: PathSpec): AsyncIterable<Uint8Array>;
2083
- readFile(p: PathSpec): Promise<Uint8Array>;
2084
- writeFile(p: PathSpec, data: Uint8Array): Promise<void>;
2085
- appendFile(p: PathSpec, data: Uint8Array): Promise<void>;
2086
- readdir(p: PathSpec): Promise<string[]>;
2087
- stat(p: PathSpec): Promise<FileStat>;
2088
- exists(p: PathSpec): Promise<boolean>;
2089
- mkdir(p: PathSpec, options?: {
2090
- recursive?: boolean;
2091
- }): Promise<void>;
2092
- rmdir(p: PathSpec): Promise<void>;
2093
- unlink(p: PathSpec): Promise<void>;
2094
- rename(src: PathSpec, dst: PathSpec): Promise<void>;
2095
- truncate(p: PathSpec, length: number): Promise<void>;
2096
- copy(src: PathSpec, dst: PathSpec): Promise<void>;
2097
- rmR(p: PathSpec): Promise<void>;
2098
- du(p: PathSpec): Promise<number>;
2099
- find(p: PathSpec, options?: FindOptions): Promise<string[]>;
2100
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2101
- getState(): Promise<SSHResourceState>;
2102
- loadState(_state: SSHResourceState): Promise<void>;
2103
- }
2104
-
2105
- declare const SSH_PROMPT = "{prefix}\n Remote filesystem via SSH/SFTP.\n IMPORTANT: This is a remote mount. Prefer targeted reads over full scans.\n Supports: ls, cat, head, tail, grep, rg, wc, find, tree, stat, mkdir, touch, cp, mv, rm, tee.";
2106
-
2107
- declare const SSH_COMMANDS: readonly RegisteredCommand[];
2108
-
2109
- declare const SSH_OPS: readonly RegisteredOp[];
2110
-
2111
- interface NextcloudConfig {
2112
- url: string;
2113
- username?: string;
2114
- password?: string;
2115
- verifySsl?: boolean;
2116
- timeout?: number;
2117
- }
2118
- type NextcloudConfigRedacted = RedactedConfig<NextcloudConfig, 'password'>;
2119
- declare function normalizeNextcloudConfig(config: Record<string, unknown>): NextcloudConfig;
2120
- declare function redactNextcloudConfig(config: NextcloudConfig): NextcloudConfigRedacted;
2121
-
2122
- declare class NextcloudAccessor extends Accessor {
2123
- readonly config: NextcloudConfig;
2124
- readonly resourceName: "nextcloud";
2125
- private operatorPromise;
2126
- constructor(config: NextcloudConfig);
2127
- operator(): Promise<Operator>;
2128
- private createOperator;
2129
- }
2130
-
2131
- interface NextcloudResourceState {
2132
- type: string;
2133
- config: NextcloudConfigRedacted;
2134
- }
2135
- declare class NextcloudResource extends BaseResource implements Resource {
2136
- readonly config: NextcloudConfig;
2137
- readonly kind: "nextcloud";
2138
- readonly cachesReads = true;
2139
- readonly sizesAlwaysKnown: boolean;
2140
- readonly supportsSnapshot = true;
2141
- readonly prompt = "You have access to files stored in Nextcloud.";
2142
- readonly accessor: NextcloudAccessor;
2143
- readonly opsMap: Record<string, unknown>;
2144
- constructor(config: NextcloudConfig);
2145
- open(): Promise<void>;
2146
- commands(): readonly RegisteredCommand[];
2147
- ops(): readonly RegisteredOp[];
2148
- streamPath(path: PathSpec): AsyncIterable<Uint8Array>;
2149
- readFile(path: PathSpec): Promise<Uint8Array>;
2150
- writeFile(path: PathSpec, data: Uint8Array): Promise<void>;
2151
- appendFile(path: PathSpec, data: Uint8Array): Promise<void>;
2152
- readdir(path: PathSpec): Promise<string[]>;
2153
- stat(path: PathSpec): Promise<FileStat>;
2154
- exists(path: PathSpec): Promise<boolean>;
2155
- mkdir(path: PathSpec): Promise<void>;
2156
- rmdir(path: PathSpec): Promise<void>;
2157
- unlink(path: PathSpec): Promise<void>;
2158
- rename(source: PathSpec, destination: PathSpec): Promise<void>;
2159
- truncate(path: PathSpec, length: number): Promise<void>;
2160
- copy(source: PathSpec, destination: PathSpec): Promise<void>;
2161
- rmR(path: PathSpec): Promise<void>;
2162
- du(path: PathSpec): Promise<number>;
2163
- find(path: PathSpec, options?: FindOptions): Promise<string[]>;
2164
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2165
- deltaHook(): DeltaHook;
2166
- getState(): Promise<NextcloudResourceState>;
2167
- loadState(_state: NextcloudResourceState): Promise<void>;
2168
- }
2169
-
2170
- declare const NEXTCLOUD_PROMPT = "You have access to files stored in Nextcloud.";
2171
-
2172
- declare const NEXTCLOUD_COMMANDS: readonly RegisteredCommand[];
2173
-
2174
- declare const NEXTCLOUD_OPS: readonly RegisteredOp[];
2175
-
2176
- declare class NextcloudWalk {
2177
- private readonly accessor;
2178
- constructor(accessor: NextcloudAccessor);
2179
- walk(root: PathSpec): AsyncGenerator<WalkEntry>;
2180
- }
2181
- declare function buildDeltaHook(accessor: NextcloudAccessor): DeltaHook;
2182
-
2183
- interface DiscordResourceState {
2184
- type: string;
2185
- config: DiscordConfigRedacted;
2186
- }
2187
- declare class DiscordResource extends BaseResource implements Resource {
2188
- readonly kind: string;
2189
- readonly cachesReads: boolean;
2190
- readonly sizesAlwaysKnown: boolean;
2191
- readonly indexTtl: number;
2192
- readonly prompt: string;
2193
- readonly writePrompt: string;
2194
- readonly config: DiscordConfig;
2195
- readonly accessor: DiscordAccessor;
2196
- constructor(config: DiscordConfig);
2197
- open(): Promise<void>;
2198
- commands(): readonly RegisteredCommand[];
2199
- ops(): readonly RegisteredOp[];
2200
- readFile(p: PathSpec): Promise<Uint8Array>;
2201
- readdir(p: PathSpec): Promise<string[]>;
2202
- stat(p: PathSpec): Promise<FileStat>;
2203
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2204
- getState(): Promise<DiscordResourceState>;
2205
- loadState(_state: DiscordResourceState): Promise<void>;
2206
- }
2207
-
2208
- declare const TrelloConfigSchema: z.ZodObject<{
2209
- apiKey: z.ZodString;
2210
- apiToken: z.ZodString;
2211
- workspaceId: z.ZodOptional<z.ZodString>;
2212
- boardIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
2213
- baseUrl: z.ZodOptional<z.ZodString>;
2214
- }, z.core.$strip>;
2215
- type TrelloConfig = ConfigOf<typeof TrelloConfigSchema>;
2216
- type TrelloConfigRedacted = RedactedConfig<TrelloConfig, 'apiKey' | 'apiToken'>;
2217
- declare function redactTrelloConfig(config: TrelloConfig): TrelloConfigRedacted;
2218
- declare function normalizeTrelloConfig(input: Record<string, unknown>): TrelloConfig;
2219
-
2220
- interface TrelloResourceState {
2221
- type: string;
2222
- config: TrelloConfigRedacted;
2223
- }
2224
- declare class TrelloResource extends BaseResource implements Resource {
2225
- readonly kind: string;
2226
- readonly cachesReads: boolean;
2227
- readonly indexTtl: number;
2228
- readonly prompt: string;
2229
- readonly writePrompt: string;
2230
- readonly config: TrelloConfig;
2231
- readonly accessor: TrelloAccessor;
2232
- constructor(config: TrelloConfig);
2233
- open(): Promise<void>;
2234
- commands(): readonly RegisteredCommand[];
2235
- ops(): readonly RegisteredOp[];
2236
- private filter;
2237
- readFile(p: PathSpec): Promise<Uint8Array>;
2238
- readdir(p: PathSpec): Promise<string[]>;
2239
- stat(p: PathSpec): Promise<FileStat>;
2240
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2241
- getState(): Promise<TrelloResourceState>;
2242
- loadState(_state: TrelloResourceState): Promise<void>;
2243
- }
2244
-
2245
- interface LinearResourceState {
2246
- type: string;
2247
- config: LinearConfigRedacted;
2248
- }
2249
- declare class LinearResource extends BaseResource implements Resource {
2250
- readonly kind: string;
2251
- readonly cachesReads: boolean;
2252
- readonly sizesAlwaysKnown: boolean;
2253
- readonly indexTtl: number;
2254
- readonly prompt: string;
2255
- readonly writePrompt: string;
2256
- readonly config: LinearConfig;
2257
- readonly accessor: LinearAccessor;
2258
- constructor(config: LinearConfig);
2259
- open(): Promise<void>;
2260
- commands(): readonly RegisteredCommand[];
2261
- ops(): readonly RegisteredOp[];
2262
- private filter;
2263
- readFile(p: PathSpec): Promise<Uint8Array>;
2264
- readdir(p: PathSpec): Promise<string[]>;
2265
- stat(p: PathSpec): Promise<FileStat>;
2266
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2267
- getState(): Promise<LinearResourceState>;
2268
- loadState(_state: LinearResourceState): Promise<void>;
2269
- }
2270
-
2271
- interface NotionResourceState {
2272
- type: string;
2273
- config: NotionConfigRedacted;
2274
- }
2275
- declare class NotionResource extends BaseResource implements Resource {
2276
- readonly kind: string;
2277
- readonly cachesReads: boolean;
2278
- readonly indexTtl: number;
2279
- readonly prompt: string;
2280
- readonly writePrompt: string;
2281
- readonly config: NotionConfig;
2282
- readonly accessor: NotionAccessor;
2283
- constructor(config: NotionConfig);
2284
- open(): Promise<void>;
2285
- commands(): readonly RegisteredCommand[];
2286
- ops(): readonly RegisteredOp[];
2287
- readFile(p: PathSpec): Promise<Uint8Array>;
2288
- readdir(p: PathSpec): Promise<string[]>;
2289
- stat(p: PathSpec): Promise<FileStat>;
2290
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2291
- getState(): Promise<NotionResourceState>;
2292
- loadState(_state: NotionResourceState): Promise<void>;
2293
- }
2294
-
2295
- declare const LangfuseConfigSchema: z.ZodObject<{
2296
- publicKey: z.ZodString;
2297
- secretKey: z.ZodString;
2298
- host: z.ZodOptional<z.ZodString>;
2299
- defaultTraceLimit: z.ZodOptional<z.ZodNumber>;
2300
- defaultSearchLimit: z.ZodOptional<z.ZodNumber>;
2301
- defaultFromTimestamp: z.ZodOptional<z.ZodString>;
2302
- }, z.core.$strip>;
2303
- type LangfuseConfig = ConfigOf<typeof LangfuseConfigSchema>;
2304
- type LangfuseConfigRedacted = RedactedConfig<LangfuseConfig, 'secretKey'>;
2305
- declare function redactLangfuseConfig(config: LangfuseConfig): LangfuseConfigRedacted;
2306
- declare function normalizeLangfuseConfig(input: Record<string, unknown>): LangfuseConfig;
2307
-
2308
- interface LangfuseResourceState {
2309
- type: string;
2310
- config: LangfuseConfigRedacted;
2311
- }
2312
- declare class LangfuseResource extends BaseResource implements Resource {
2313
- readonly kind: string;
2314
- readonly cachesReads: boolean;
2315
- readonly indexTtl: number;
2316
- readonly prompt: string;
2317
- readonly config: LangfuseConfig;
2318
- readonly accessor: LangfuseAccessor;
2319
- constructor(config: LangfuseConfig);
2320
- open(): Promise<void>;
2321
- commands(): readonly RegisteredCommand[];
2322
- ops(): readonly RegisteredOp[];
2323
- readFile(p: PathSpec): Promise<Uint8Array>;
2324
- readdir(p: PathSpec): Promise<string[]>;
2325
- stat(p: PathSpec): Promise<FileStat>;
2326
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2327
- getState(): Promise<LangfuseResourceState>;
2328
- loadState(_state: LangfuseResourceState): Promise<void>;
2329
- }
2330
-
2331
- declare const JaegerConfigSchema: z.ZodObject<{
2332
- host: z.ZodOptional<z.ZodString>;
2333
- defaultTraceLimit: z.ZodOptional<z.ZodNumber>;
2334
- defaultFromTimestamp: z.ZodOptional<z.ZodString>;
2335
- defaultToTimestamp: z.ZodOptional<z.ZodString>;
2336
- requestTimeout: z.ZodOptional<z.ZodNumber>;
2337
- }, z.core.$strip>;
2338
- type JaegerConfig = ConfigOf<typeof JaegerConfigSchema>;
2339
- type JaegerConfigRedacted = JaegerConfig;
2340
-
2341
- interface JaegerResourceState {
2342
- type: string;
2343
- config: JaegerConfigRedacted;
2344
- }
2345
- declare class JaegerResource extends BaseResource implements Resource {
2346
- readonly kind: string;
2347
- readonly cachesReads: boolean;
2348
- readonly sizesAlwaysKnown: boolean;
2349
- readonly indexTtl: number;
2350
- readonly prompt: string;
2351
- readonly config: JaegerConfig;
2352
- readonly accessor: JaegerAccessor;
2353
- constructor(config: JaegerConfig);
2354
- open(): Promise<void>;
2355
- commands(): readonly RegisteredCommand[];
2356
- ops(): readonly RegisteredOp[];
2357
- readFile(p: PathSpec): Promise<Uint8Array>;
2358
- readdir(p: PathSpec): Promise<string[]>;
2359
- stat(p: PathSpec): Promise<FileStat>;
2360
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2361
- getState(): Promise<JaegerResourceState>;
2362
- loadState(_state: JaegerResourceState): Promise<void>;
2363
- }
2364
-
2365
- declare const GitHubConfigSchema: z.ZodObject<{
2366
- token: z.ZodString;
2367
- owner: z.ZodString;
2368
- repo: z.ZodString;
2369
- ref: z.ZodOptional<z.ZodString>;
2370
- baseUrl: z.ZodOptional<z.ZodString>;
2371
- }, z.core.$strip>;
2372
- type GitHubConfig = ConfigOf<typeof GitHubConfigSchema>;
2373
- type GitHubConfigRedacted = RedactedConfig<GitHubConfig, 'token'>;
2374
- declare function redactGitHubConfig(config: GitHubConfig): GitHubConfigRedacted;
2375
- declare function normalizeGitHubConfig(input: Record<string, unknown>): GitHubConfig;
2376
-
2377
- interface GitHubResourceState {
2378
- type: string;
2379
- config: GitHubConfigRedacted;
2380
- defaultBranch: string;
2381
- truncated: boolean;
2382
- }
2383
- declare class GitHubResource extends BaseResource implements Resource {
2384
- readonly kind: string;
2385
- readonly cachesReads: boolean;
2386
- readonly sizesAlwaysKnown: boolean;
2387
- readonly supportsSnapshot: boolean;
2388
- readonly indexTtl: number;
2389
- readonly config: GitHubConfig;
2390
- readonly accessor: GitHubAccessor;
2391
- private constructor();
2392
- static create(config: GitHubConfig): Promise<GitHubResource>;
2393
- open(): Promise<void>;
2394
- commands(): readonly RegisteredCommand[];
2395
- ops(): readonly RegisteredOp[];
2396
- readFile(p: PathSpec): Promise<Uint8Array>;
2397
- readdir(p: PathSpec): Promise<string[]>;
2398
- stat(p: PathSpec): Promise<FileStat>;
2399
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2400
- getState(): Promise<GitHubResourceState>;
2401
- loadState(_state: GitHubResourceState): Promise<void>;
2402
- }
2403
-
2404
- declare const GitHubCIConfigSchema: z.ZodObject<{
2405
- token: z.ZodString;
2406
- owner: z.ZodString;
2407
- repo: z.ZodString;
2408
- days: z.ZodOptional<z.ZodNumber>;
2409
- maxRuns: z.ZodOptional<z.ZodNumber>;
2410
- baseUrl: z.ZodOptional<z.ZodString>;
2411
- }, z.core.$strip>;
2412
- type GitHubCIConfig = ConfigOf<typeof GitHubCIConfigSchema>;
2413
- type GitHubCIConfigRedacted = RedactedConfig<GitHubCIConfig, 'token'>;
2414
- declare function redactGitHubCIConfig(config: GitHubCIConfig): GitHubCIConfigRedacted;
2415
- declare function normalizeGitHubCIConfig(input: Record<string, unknown>): GitHubCIConfig;
2416
-
2417
- interface GitHubCIResourceState {
2418
- type: string;
2419
- config: GitHubCIConfigRedacted;
2420
- }
2421
- declare class GitHubCIResource extends BaseResource implements Resource {
2422
- readonly kind: string;
2423
- readonly cachesReads: boolean;
2424
- readonly indexTtl: number;
2425
- readonly prompt: string;
2426
- readonly config: GitHubCIConfig;
2427
- readonly accessor: GitHubCIAccessor;
2428
- constructor(config: GitHubCIConfig);
2429
- open(): Promise<void>;
2430
- commands(): readonly RegisteredCommand[];
2431
- ops(): readonly RegisteredOp[];
2432
- readFile(p: PathSpec): Promise<Uint8Array>;
2433
- readdir(p: PathSpec): Promise<string[]>;
2434
- stat(p: PathSpec): Promise<FileStat>;
2435
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2436
- getState(): Promise<GitHubCIResourceState>;
2437
- loadState(_state: GitHubCIResourceState): Promise<void>;
2438
- }
2439
-
2440
- interface GDocsResourceState {
2441
- type: string;
2442
- config: GoogleConfigRedacted;
2443
- }
2444
- declare class GDocsResource extends BaseResource implements Resource {
2445
- readonly kind: string;
2446
- readonly cachesReads: boolean;
2447
- readonly indexTtl: number;
2448
- readonly prompt: string;
2449
- readonly writePrompt: string;
2450
- readonly config: GoogleConfig;
2451
- readonly accessor: GDocsAccessor;
2452
- constructor(config: GoogleConfig);
2453
- open(): Promise<void>;
2454
- commands(): readonly RegisteredCommand[];
2455
- ops(): readonly RegisteredOp[];
2456
- readFile(p: PathSpec): Promise<Uint8Array>;
2457
- readdir(p: PathSpec): Promise<string[]>;
2458
- stat(p: PathSpec): Promise<FileStat>;
2459
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2460
- getState(): Promise<GDocsResourceState>;
2461
- loadState(_state: GDocsResourceState): Promise<void>;
2462
- }
2463
-
2464
- interface GSheetsResourceState {
2465
- type: string;
2466
- config: GoogleConfigRedacted;
2467
- }
2468
- declare class GSheetsResource extends BaseResource implements Resource {
2469
- readonly kind: string;
2470
- readonly cachesReads: boolean;
2471
- readonly indexTtl: number;
2472
- readonly prompt: string;
2473
- readonly writePrompt: string;
2474
- readonly config: GoogleConfig;
2475
- readonly accessor: GSheetsAccessor;
2476
- constructor(config: GoogleConfig);
2477
- open(): Promise<void>;
2478
- commands(): readonly RegisteredCommand[];
2479
- ops(): readonly RegisteredOp[];
2480
- readFile(p: PathSpec): Promise<Uint8Array>;
2481
- readdir(p: PathSpec): Promise<string[]>;
2482
- stat(p: PathSpec): Promise<FileStat>;
2483
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2484
- getState(): Promise<GSheetsResourceState>;
2485
- loadState(_state: GSheetsResourceState): Promise<void>;
2486
- }
2487
-
2488
- interface GSlidesResourceState {
2489
- type: string;
2490
- config: GoogleConfigRedacted;
2491
- }
2492
- declare class GSlidesResource extends BaseResource implements Resource {
2493
- readonly kind: string;
2494
- readonly cachesReads: boolean;
2495
- readonly indexTtl: number;
2496
- readonly prompt: string;
2497
- readonly writePrompt: string;
2498
- readonly config: GoogleConfig;
2499
- readonly accessor: GSlidesAccessor;
2500
- constructor(config: GoogleConfig);
2501
- open(): Promise<void>;
2502
- commands(): readonly RegisteredCommand[];
2503
- ops(): readonly RegisteredOp[];
2504
- readFile(p: PathSpec): Promise<Uint8Array>;
2505
- readdir(p: PathSpec): Promise<string[]>;
2506
- stat(p: PathSpec): Promise<FileStat>;
2507
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2508
- getState(): Promise<GSlidesResourceState>;
2509
- loadState(_state: GSlidesResourceState): Promise<void>;
2510
- }
2511
-
2512
- interface GDriveResourceState {
2513
- type: string;
2514
- config: GoogleConfigRedacted;
2515
- }
2516
- declare class GDriveResource extends BaseResource implements Resource {
2517
- readonly kind: string;
2518
- readonly cachesReads: boolean;
2519
- readonly supportsSnapshot: boolean;
2520
- readonly indexTtl: number;
2521
- readonly prompt: string;
2522
- readonly config: GoogleConfig;
2523
- readonly accessor: GDriveAccessor;
2524
- constructor(config: GoogleConfig);
2525
- open(): Promise<void>;
2526
- commands(): readonly RegisteredCommand[];
2527
- ops(): readonly RegisteredOp[];
2528
- readFile(p: PathSpec): Promise<Uint8Array>;
2529
- readdir(p: PathSpec): Promise<string[]>;
2530
- stat(p: PathSpec): Promise<FileStat>;
2531
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2532
- getState(): Promise<GDriveResourceState>;
2533
- loadState(_state: GDriveResourceState): Promise<void>;
2534
- }
2535
-
2536
- interface DropboxConfig {
2537
- clientId: string;
2538
- clientSecret: string;
2539
- refreshToken: string;
2540
- rootPath?: string;
2541
- contentSearch?: boolean;
2542
- endpoint?: string;
2543
- refreshFn?: (refreshToken: string) => Promise<{
2544
- accessToken: string;
2545
- expiresIn: number;
2546
- }>;
2547
- }
2548
- declare const DropboxConfigSchema: z.ZodObject<{
2549
- clientId: z.ZodString;
2550
- clientSecret: z.ZodString;
2551
- refreshToken: z.ZodString;
2552
- rootPath: z.ZodOptional<z.ZodString>;
2553
- contentSearch: z.ZodOptional<z.ZodBoolean>;
2554
- endpoint: z.ZodOptional<z.ZodString>;
2555
- }, z.core.$strip>;
2556
- type DropboxConfigRedacted = RedactedConfig<ConfigOf<typeof DropboxConfigSchema>, 'clientSecret' | 'refreshToken'>;
2557
- declare function redactDropboxConfig(config: DropboxConfig): DropboxConfigRedacted;
2558
- declare function normalizeDropboxConfig(input: Record<string, unknown>): DropboxConfig;
2559
-
2560
- interface DropboxResourceState {
2561
- type: string;
2562
- config: DropboxConfigRedacted;
2563
- }
2564
- declare class DropboxResource extends BaseResource implements Resource {
2565
- readonly kind: string;
2566
- readonly cachesReads: boolean;
2567
- readonly sizesAlwaysKnown: boolean;
2568
- readonly indexTtl: number;
2569
- readonly prompt: string;
2570
- readonly config: DropboxConfig;
2571
- readonly accessor: DropboxAccessor;
2572
- constructor(config: DropboxConfig);
2573
- open(): Promise<void>;
2574
- commands(): readonly RegisteredCommand[];
2575
- ops(): readonly RegisteredOp[];
2576
- readFile(p: PathSpec): Promise<Uint8Array>;
2577
- readdir(p: PathSpec): Promise<string[]>;
2578
- stat(p: PathSpec): Promise<FileStat>;
2579
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2580
- getState(): Promise<DropboxResourceState>;
2581
- loadState(_state: DropboxResourceState): Promise<void>;
2582
- }
2583
-
2584
- interface BoxConfig {
2585
- endpoint?: string;
2586
- rootFolderId?: string;
2587
- contentSearch?: boolean;
2588
- clientId?: string;
2589
- clientSecret?: string;
2590
- refreshToken?: string;
2591
- enterpriseId?: string;
2592
- accessToken?: string;
2593
- refreshFn?: (refreshToken: string) => Promise<{
2594
- accessToken: string;
2595
- refreshToken: string;
2596
- expiresIn: number;
2597
- }>;
2598
- onRefreshTokenRotated?: (newRefreshToken: string) => void | Promise<void>;
2599
- }
2600
- declare const BoxConfigSchema: z.ZodObject<{
2601
- endpoint: z.ZodOptional<z.ZodString>;
2602
- rootFolderId: z.ZodOptional<z.ZodString>;
2603
- contentSearch: z.ZodOptional<z.ZodBoolean>;
2604
- clientId: z.ZodOptional<z.ZodString>;
2605
- clientSecret: z.ZodOptional<z.ZodString>;
2606
- refreshToken: z.ZodOptional<z.ZodString>;
2607
- enterpriseId: z.ZodOptional<z.ZodString>;
2608
- accessToken: z.ZodOptional<z.ZodString>;
2609
- }, z.core.$strip>;
2610
- type BoxConfigRedacted = RedactedConfig<ConfigOf<typeof BoxConfigSchema>, 'clientSecret' | 'refreshToken' | 'accessToken'>;
2611
- declare function redactBoxConfig(config: BoxConfig): BoxConfigRedacted;
2612
- declare function normalizeBoxConfig(input: Record<string, unknown>): BoxConfig;
2613
-
2614
- interface BoxResourceState {
2615
- type: string;
2616
- config: BoxConfigRedacted;
2617
- }
2618
- declare class BoxResource extends BaseResource implements Resource {
2619
- readonly kind: string;
2620
- readonly cachesReads: boolean;
2621
- readonly sizesAlwaysKnown: boolean;
2622
- readonly indexTtl: number;
2623
- readonly prompt: string;
2624
- readonly config: BoxConfig;
2625
- readonly accessor: BoxAccessor;
2626
- constructor(config: BoxConfig);
2627
- open(): Promise<void>;
2628
- commands(): readonly RegisteredCommand[];
2629
- ops(): readonly RegisteredOp[];
2630
- readFile(p: PathSpec): Promise<Uint8Array>;
2631
- readdir(p: PathSpec): Promise<string[]>;
2632
- stat(p: PathSpec): Promise<FileStat>;
2633
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2634
- getState(): Promise<BoxResourceState>;
2635
- loadState(_state: BoxResourceState): Promise<void>;
2636
- }
2637
-
2638
- interface GmailResourceState {
2639
- type: string;
2640
- config: GoogleConfigRedacted;
2641
- }
2642
- declare class GmailResource extends BaseResource implements Resource {
2643
- readonly kind: string;
2644
- readonly cachesReads: boolean;
2645
- readonly sizesAlwaysKnown: boolean;
2646
- readonly indexTtl: number;
2647
- readonly prompt: string;
2648
- readonly writePrompt: string;
2649
- readonly config: GoogleConfig;
2650
- readonly accessor: GmailAccessor;
2651
- constructor(config: GoogleConfig);
2652
- open(): Promise<void>;
2653
- commands(): readonly RegisteredCommand[];
2654
- ops(): readonly RegisteredOp[];
2655
- readFile(p: PathSpec): Promise<Uint8Array>;
2656
- readdir(p: PathSpec): Promise<string[]>;
2657
- stat(p: PathSpec): Promise<FileStat>;
2658
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2659
- getState(): Promise<GmailResourceState>;
2660
- loadState(_state: GmailResourceState): Promise<void>;
2661
- }
2662
-
2663
- interface GCalResourceState {
2664
- type: string;
2665
- config: GoogleConfigRedacted;
2666
- }
2667
- declare class GCalResource extends BaseResource implements Resource {
2668
- readonly kind: string;
2669
- readonly cachesReads: boolean;
2670
- readonly indexTtl: number;
2671
- readonly prompt: string;
2672
- readonly writePrompt: string;
2673
- readonly config: GoogleConfig;
2674
- readonly accessor: GCalAccessor;
2675
- constructor(config: GoogleConfig);
2676
- open(): Promise<void>;
2677
- commands(): readonly RegisteredCommand[];
2678
- ops(): readonly RegisteredOp[];
2679
- readFile(p: PathSpec): Promise<Uint8Array>;
2680
- readdir(p: PathSpec): Promise<string[]>;
2681
- stat(p: PathSpec): Promise<FileStat>;
2682
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2683
- getState(): Promise<GCalResourceState>;
2684
- loadState(_state: GCalResourceState): Promise<void>;
2685
- }
2686
-
2687
- declare const EmailConfigSchema: z.ZodObject<{
2688
- imapHost: z.ZodString;
2689
- imapPort: z.ZodDefault<z.ZodNumber>;
2690
- smtpHost: z.ZodString;
2691
- smtpPort: z.ZodDefault<z.ZodNumber>;
2692
- username: z.ZodString;
2693
- password: z.ZodString;
2694
- useSsl: z.ZodDefault<z.ZodBoolean>;
2695
- maxMessages: z.ZodDefault<z.ZodNumber>;
2696
- saveCopy: z.ZodDefault<z.ZodBoolean>;
2697
- sentFolder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2698
- }, z.core.$strip>;
2699
- type EmailConfig = ConfigOf<typeof EmailConfigSchema>;
2700
- type EmailConfigRedacted = RedactedConfig<EmailConfig, 'password'>;
2701
- declare function redactEmailConfig(config: EmailConfig): EmailConfigRedacted;
2702
- type EmailConfigInput = z.input<typeof EmailConfigSchema>;
2703
- declare function buildEmailConfig(input: EmailConfigInput): EmailConfig;
2704
- declare function normalizeEmailConfig(input: Record<string, unknown>): EmailConfig;
2705
-
2706
- declare class EmailAccessor extends Accessor {
2707
- readonly config: EmailConfig;
2708
- private clientPromise;
2709
- constructor(config: EmailConfig);
2710
- getImap(): Promise<ImapFlow>;
2711
- close(): Promise<void>;
2712
- }
2713
-
2714
- interface EmailResourceState {
2715
- type: string;
2716
- config: EmailConfigRedacted;
2717
- }
2718
- declare class EmailResource extends BaseResource implements Resource {
2719
- readonly kind: string;
2720
- readonly cachesReads: boolean;
2721
- readonly sizesAlwaysKnown: boolean;
2722
- readonly indexTtl: number;
2723
- readonly prompt: string;
2724
- readonly config: EmailConfig;
2725
- readonly accessor: EmailAccessor;
2726
- constructor(config: EmailConfig);
2727
- open(): Promise<void>;
2728
- close(): Promise<void>;
2729
- commands(): readonly RegisteredCommand[];
2730
- ops(): readonly RegisteredOp[];
2731
- readFile(p: PathSpec): Promise<Uint8Array>;
2732
- readdir(p: PathSpec): Promise<string[]>;
2733
- stat(p: PathSpec): Promise<FileStat>;
2734
- glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
2735
- getState(): Promise<EmailResourceState>;
2736
- loadState(_state: EmailResourceState): Promise<void>;
2737
- }
2738
-
2739
- declare const EMAIL_PROMPT = "{prefix}\n <folder>/\n <yyyy-mm-dd>/\n <subject>__<uid>.email.json\n <subject>__<uid>/ # if attachments exist\n <attachment-filename>\n Folders include: INBOX, Sent, Drafts, etc. cat shows email as JSON.\n\n To act on mail (list/read/send/reply/forward), use the himalaya CLI\n if installed: himalaya --help";
2740
- declare const EMAIL_WRITE_PROMPT = " Sending mail goes through the himalaya CLI if installed:\n himalaya message send --to \"to@email.com\" --subject \"Hi\" --body \"...\"";
2741
-
2742
- declare const EMAIL_COMMANDS: readonly RegisteredCommand[];
2743
-
2744
- declare const HIMALAYA: CLISpec;
2745
-
2746
- declare const EMAIL_OPS: readonly RegisteredOp[];
2747
-
2748
- /**
2749
- * Run Python code on a host interpreter as a subprocess.
2750
- *
2751
- * Each run spawns `<interpreter> -c <code>`; the code sees the host
2752
- * filesystem and environment, not the workspace mounts. Mirrors the
2753
- * python LocalRuntime: the interpreter defaults to `python3` on PATH
2754
- * (node has no embedded python, unlike the python package which
2755
- * defaults to its own interpreter); point the config `home` or the
2756
- * MIRAGE_LOCAL_HOME environment variable at another binary, e.g. a
2757
- * project venv whose packages the code needs.
2758
- */
2759
- declare class LocalRuntime extends PythonRuntime {
2760
- readonly name = "local";
2761
- readonly reach = "process";
2762
- private readonly python;
2763
- private readonly children;
2764
- constructor(options?: RuntimeOptions);
2765
- run(args: RunArgs): Promise<RunResult>;
2766
- close(): Promise<void>;
2767
- }
2768
-
2769
- /** How to reach the user's live E2B sandbox. */
2770
- interface E2BConfig extends SandboxConfig {
2771
- /**
2772
- * Id of a sandbox you created (`e2b sandbox spawn` or the SDK),
2773
- * booted from a template with fuse3 and mirage installed.
2774
- */
2775
- sandboxId: string;
2776
- /** E2B credential; absent reads E2B_API_KEY. */
2777
- apiKey?: string;
2778
- }
2779
- declare const E2B_CONFIG_KEYS: readonly string[];
2780
-
2781
- type E2bSdk = typeof e2bSdk;
2782
- /**
2783
- * An E2B sandbox the user runs as a whole-line runtime.
2784
- *
2785
- * You create the sandbox yourself (`e2b sandbox spawn` or the SDK);
2786
- * mirage only connects by `sandboxId` and execs lines. `apiKey` falls
2787
- * back to E2B_API_KEY. E2B's exec reports stdout and stderr
2788
- * separately, so both stream back real; it takes no stdin, so piped
2789
- * bytes are uploaded and redirected in.
2790
- */
2791
- declare class E2BRuntime extends RemoteSandbox<E2BConfig> {
2792
- readonly name = "e2b";
2793
- private sdk;
2794
- private sandbox;
2795
- constructor(options?: RuntimeOptions<E2BConfig> | Record<string, unknown>);
2796
- protected loadSdk(): Promise<E2bSdk>;
2797
- private ensureSdk;
2798
- private apiParams;
2799
- connect(): Promise<void>;
2800
- execLine(line: string, stdin: Uint8Array | null, env: Record<string, string>, cwd: string): Promise<RunResult>;
2801
- private upload;
2802
- }
2803
-
2804
- /** How to reach the user's running container. */
2805
- interface DockerConfig extends SandboxConfig {
2806
- /**
2807
- * Id or name of a running container. You start it yourself
2808
- * (`docker run -d ... sleep infinity`); live FUSE mounts need
2809
- * `--cap-add SYS_ADMIN --device /dev/fuse` and an image with mirage
2810
- * installed.
2811
- */
2812
- container: string;
2813
- }
2814
- declare const DOCKER_CONFIG_KEYS: readonly string[];
2815
-
2816
- interface DockerResult {
2817
- stdout: Uint8Array;
2818
- stderr: Uint8Array;
2819
- code: number;
2820
- }
2821
- /**
2822
- * A container the user runs as a whole-line runtime.
2823
- *
2824
- * You start the container yourself; mirage only connects to it and
2825
- * execs lines. The docker CLI is the transport (Docker Desktop,
2826
- * colima, or a podman alias all work), so there is no SDK dependency
2827
- * and no daemon socket wiring; each line is one `docker exec -i` with
2828
- * the merged environment, the rebased cwd, real stdin, and separated
2829
- * stderr.
2830
- */
2831
- declare class DockerRuntime extends RemoteSandbox<DockerConfig> {
2832
- readonly name = "docker";
2833
- constructor(options?: RuntimeOptions<DockerConfig> | Record<string, unknown>);
2834
- protected docker(args: string[], stdin?: Uint8Array | null): Promise<DockerResult>;
2835
- connect(): Promise<void>;
2836
- execLine(line: string, stdin: Uint8Array | null, env: Record<string, string>, cwd: string): Promise<RunResult>;
2837
- }
2838
-
2839
- /**
2840
- * Construct a resource by registry name. Mirrors Python's
2841
- * `mirage.resource.registry.build_resource`.
2842
- *
2843
- * Each entry is an async factory that lazy-imports its module so that
2844
- * importing this file doesn't pull in every backend's dependencies.
2845
- * Only the resource you actually request gets loaded — important for
2846
- * S3/Redis whose peer deps (`@aws-sdk/client-s3`, `redis`) are optional.
2847
- *
2848
- * Configs are normalized from Python-style snake_case (used in YAML and
2849
- * by the Python `mirage.config` loader) to TS-idiomatic camelCase. So
2850
- * the same YAML file works in both Python and TS.
2851
- */
2852
- type ResourceFactory = (config: Record<string, unknown>) => Promise<Resource>;
2853
- /**
2854
- * Look up every constructible name: builtins plus whatever `register()`
2855
- * has added.
2856
- */
2857
- declare function knownResources(): string[];
2858
- /**
2859
- * Register a custom resource factory under `name`. Builtin names cannot
2860
- * be shadowed; re-registering a custom name replaces it. Mirrors
2861
- * Python's `mirage.resource.registry.register_resource`, which keeps
2862
- * builtins in REGISTRY and custom entries in a separate _CUSTOM dict so
2863
- * a plugin cannot replace the builtin `s3` factory.
2864
- */
2865
- declare function register(name: string, factory: ResourceFactory): void;
2866
- /**
2867
- * Build a resource instance by registry name. Builtins win over custom
2868
- * registrations. Throws if the name is unknown.
2869
- */
2870
- declare function buildResource(name: string, config?: Record<string, unknown>): Promise<Resource>;
2871
-
2872
- /**
2873
- * Extensions Node will import from disk. Python's twin tests for a
2874
- * single one (`.py`) because it has one module language; here `.ts` and
2875
- * `.mts` ride on Node's own type stripping, which is strip-only: a file
2876
- * using `enum`, a parameter property, a runtime `namespace` or a legacy
2877
- * decorator is refused at load with ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX.
2878
- * `.mjs` is the spelling with no caveats.
2879
- */
2880
- declare const MODULE_SUFFIXES: string[];
2881
- /**
2882
- * True when a ref's source is a file on disk rather than a package
2883
- * specifier Node resolves for itself.
2884
- *
2885
- * This is Node's own rule, deliberately NOT Python's. Python's twin asks
2886
- * `"/" in source`, which is sound there because a module dotpath is
2887
- * dotted, so a slash can only mean a path. In Node a bare specifier
2888
- * carries slashes all the time (`@scope/pkg`, `pkg/subpath`), so the
2889
- * same test would rebase an installed package under the config
2890
- * directory and then report it as a missing file. A path is what Node
2891
- * calls a path: relative (`./`, `../`) or absolute. The one addition is
2892
- * a bare filename carrying a module suffix (`tool.mjs`), which mirrors
2893
- * the convenience Python allows for `tool.py`; it is restricted to
2894
- * sources with no slash so that `pkg/dist/index.js` stays a subpath
2895
- * export, and `./dist/index.js` says path by saying so.
2896
- *
2897
- * The config loader's `absolutizeCliRef` calls this same function, so
2898
- * the two cannot disagree about what a path is.
2899
- */
2900
- declare function isModulePath(source: string): boolean;
2901
- /** Split a `source:exportName` ref on its last colon. */
2902
- declare function splitRef(spec: string): [string, string];
2903
- /**
2904
- * Load a module export from a `source:exportName` reference.
2905
- *
2906
- * Two forms, auto-detected the way Python's `load_attr` detects them:
2907
- * a file (`"./my_cli.mjs:TALLY"`) or a package specifier
2908
- * (`"my-package/clis:JIRA"`). Only a missing file is reworded; every
2909
- * other load failure propagates with Node's own diagnostic, because a
2910
- * syntax error in the user's file is the message they need to read.
2911
- *
2912
- * A CommonJS file resolves through `default` as well as through named
2913
- * exports, since cjs-module-lexer only detects some assignment shapes
2914
- * and `module.exports = { TALLY }` is one it can miss.
2915
- */
2916
- declare function loadAttr(spec: string): Promise<unknown>;
2917
-
2918
- declare const DISK_COMMANDS: readonly RegisteredCommand[];
2919
-
2920
- declare const REDIS_COMMANDS: readonly RegisteredCommand[];
2921
-
2922
- declare const GRIDFS_COMMANDS: readonly RegisteredCommand[];
2923
-
2924
- export { ALIYUN_PROMPT, type AliyunConfig, type AliyunConfigRedacted, AliyunResource, type AliyunResourceState, BACKBLAZE_PROMPT, type BackblazeConfig, type BackblazeConfigRedacted, BackblazeResource, type BackblazeResourceState, type BoxConfig, type BoxConfigRedacted, BoxResource, type BoxResourceState, CEPH_PROMPT, type CephConfig, type CephConfigRedacted, CephResource, type CephResourceState, DAYTONA_CONFIG_KEYS, DEFAULT_STATE_ROOT, DIGITALOCEAN_PROMPT, DISK_COMMANDS, DISK_OPS, DISK_PROMPT, DOCKER_CONFIG_KEYS, type DatabricksProfile, DatabricksVolumeResource, type DatabricksVolumeResourceState, type DaytonaConfig, DaytonaRuntime, type DigitalOceanConfig, type DigitalOceanConfigRedacted, DigitalOceanResource, type DigitalOceanResourceState, DiscordResource, type DiscordResourceState, DiskNamespaceStore, DiskObserverStore, DiskRecordClient, DiskResource, type DiskResourceOptions, type DiskResourceState, DiskSessionStore, DiskWorkspaceStateStore, type DiskWorkspaceStateStoreOptions, type DockerConfig, DockerRuntime, type DropboxConfig, type DropboxConfigRedacted, DropboxResource, type DropboxResourceState, type E2BConfig, E2BRuntime, E2B_CONFIG_KEYS, EMAIL_COMMANDS, EMAIL_OPS, EMAIL_PROMPT, EMAIL_WRITE_PROMPT, EmailAccessor, type EmailConfig, type EmailConfigInput, type EmailConfigRedacted, EmailResource, type EmailResourceState, FSKIT_MOUNT_ROOT, type FuseAttr, type FuseHandle, FuseManager, type MountOptions as FuseMountOptions, type GCSConfig, type GCSConfigRedacted, GCSResource, type GCSResourceState, GCS_ENDPOINT, GCS_PROMPT, GCalResource, type GCalResourceState, GDocsResource, type GDocsResourceState, GDriveResource, type GDriveResourceState, GRIDFS_COMMANDS, GSheetsResource, type GSheetsResourceState, GSlidesResource, type GSlidesResourceState, type GitHubCIConfig, type GitHubCIConfigRedacted, GitHubCIResource, type GitHubCIResourceState, type GitHubConfig, type GitHubConfigRedacted, GitHubResource, type GitHubResourceState, GmailResource, type GmailResourceState, GridFSAccessor, type GridFSConfig, type GridFSConfigRedacted, GridFSResource, type GridFSResourceState, HF_BUCKETS_PROMPT, HF_COMMANDS, HF_DATASETS_PROMPT, HF_ENDPOINT, HF_MODELS_PROMPT, HF_OPS, HF_RESOURCES, HF_SPACES_PROMPT, HIMALAYA, HfAccessor, HfBucketsAccessor, type HfBucketsConfig, type HfBucketsConfigRedacted, HfBucketsResource, type HfBucketsResourceState, HfDatasetsAccessor, HfDatasetsResource, type HfDatasetsResourceState, HfModelsAccessor, type HfModelsConfig, type HfModelsConfigRedacted, HfModelsResource, type HfModelsResourceState, type HfRepoConfig, type HfRepoConfigRedacted, HfSpacesAccessor, HfSpacesResource, type HfSpacesResourceState, JaegerResource, type JaegerResourceState, LanceDBResource, type LanceDBResourceOptions, LanceDBStore, type LangfuseConfig, type LangfuseConfigRedacted, LangfuseResource, type LangfuseResourceState, LinearResource, type LinearResourceState, LocalRuntime, MINIO_PROMPT, MODULE_SUFFIXES, type MinIOConfig, type MinIOConfigRedacted, MinIOResource, type MinIOResourceState, MirageFS, type MirageFSOptions, MongoDBResource, type MongoDBResourceOptions, MongoDBStore, Mount, MountCore, type MountCoreOptions, type MountSpecOptions, NEXTCLOUD_COMMANDS, NEXTCLOUD_OPS, NEXTCLOUD_PROMPT, NextcloudAccessor, type NextcloudConfig, type NextcloudConfigRedacted, NextcloudResource, type NextcloudResourceState, NextcloudWalk, type NodeWorkspaceOptions, NotionResource, type NotionResourceState, type OCIConfig, type OCIConfigRedacted, OCIResource, type OCIResourceState, OCI_PROMPT, PostgresResource, type PostgresResourceOptions, PostgresStore, QINGSTOR_PROMPT, type QingStorConfig, type QingStorConfigRedacted, QingStorResource, type QingStorResourceState, type R2Config, type R2ConfigRedacted, R2Resource, type R2ResourceState, R2_PROMPT, REDIS_COMMANDS, REDIS_OPS, REDIS_PROMPT, RedisAccessor, RedisConsoleStore, type RedisConsoleStoreOptions, type RedisFileCacheOptions, RedisFileCacheStore, RedisNamespaceStore, type RedisNamespaceStoreOptions, RedisObserverStore, type RedisObserverStoreOptions, RedisResource, type RedisResourceLike, type RedisResourceOptions, type RedisResourceState, RedisSessionStore, type RedisSessionStoreOptions, RedisStore, type RedisStoreOptions, RedisWorkspaceStateStore, type RedisWorkspaceStateStoreOptions, type ResourceFactory, type S3Config, type S3ConfigRedacted, S3Resource, type S3ResourceState, SCALEWAY_PROMPT, SEAWEEDFS_PROMPT, SSHAccessor, type SSHConfig, type SSHConfigRedacted, SSHResource, type SSHResourceState, SSH_COMMANDS, SSH_OPS, SSH_PROMPT, SUPABASE_PROMPT, type ScalewayConfig, type ScalewayConfigRedacted, ScalewayResource, type ScalewayResourceState, type SeaweedFSConfig, type SeaweedFSConfigRedacted, SeaweedFSResource, type SeaweedFSResourceState, SlackResource, type SlackResourceState, type SupabaseConfig, type SupabaseConfigRedacted, SupabaseResource, type SupabaseResourceState, TENCENT_PROMPT, type TencentConfig, type TencentConfigRedacted, TencentResource, type TencentResourceState, type TrelloConfig, type TrelloConfigRedacted, TrelloResource, type TrelloResourceState, WASABI_PROMPT, type WasabiConfig, type WasabiConfigRedacted, WasabiResource, type WasabiResourceState, Workspace, assertHfRepoId, buildEmailConfig, buildDeltaHook as buildNextcloudDeltaHook, buildResource, checkMountpoint, checkPlatform, checkSizes, classifyErrno, classifyError, fileReadProvision, mount as fuseMount, mountBackground as fuseMountBackground, headTailProvision, isMacosMetadata, isModulePath, knownResources, loadAttr, loadDatabricksProfile, metadataProvision, normalizeBoxConfig, normalizeDropboxConfig, normalizeEmailConfig, normalizeGitHubCIConfig, normalizeGitHubConfig, normalizeGridFSConfig, normalizeHfBucketsConfig, normalizeHfModelsConfig, normalizeHfRepoConfig, normalizeLangfuseConfig, normalizeNextcloudConfig, normalizeS3Config, normalizeSshConfig, normalizeTrelloConfig, parseDatabricksCfg, patchNodeFs, prepareBackend, redactAliyunConfig, redactBackblazeConfig, redactBoxConfig, redactCephConfig, redactDigitalOceanConfig, redactDropboxConfig, redactEmailConfig, redactGcsConfig, redactGitHubCIConfig, redactGitHubConfig, redactHfBucketsConfig, redactHfModelsConfig, redactHfRepoConfig, redactLangfuseConfig, redactMinIOConfig, redactNextcloudConfig, redactOciConfig, redactQingStorConfig, redactR2Config, redactConfig as redactS3Config, redactScalewayConfig, redactSeaweedFSConfig, redactSshConfig, redactSupabaseConfig, redactTencentConfig, redactTrelloConfig, redactWasabiConfig, register as registerResourceFactory, requireKernelBackend, resolveBackend, resolvedAliyunEndpoint, resolvedBackblazeEndpoint, resolvedDigitalOceanEndpoint, resolvedQingStorEndpoint, resolvedScalewayEndpoint, resolvedSupabaseEndpoint, resolvedTencentEndpoint, resolvedWasabiEndpoint, splitRef, unsizedMounts };
2
+ export { Workspace, type NodeWorkspaceOptions } from './workspace.ts';
3
+ export { Mount, type MountSpecOptions } from '@struktoai/mirage-core/workspace/mount/spec';
4
+ export { DiskResource, type DiskResourceOptions, type DiskResourceState, } from './resource/disk/disk.ts';
5
+ export { DISK_PROMPT } from './resource/disk/prompt.ts';
6
+ export { DISK_OPS } from './ops/disk/index.ts';
7
+ export { DiskObserverStore } from './observe/disk_store.ts';
8
+ export { RedisObserverStore, type RedisObserverStoreOptions } from './observe/redis_store.ts';
9
+ export { RedisConsoleStore, type RedisConsoleStoreOptions } from './shell/console/redis/index.ts';
10
+ export { DiskNamespaceStore } from './workspace/namespace/disk.ts';
11
+ export { RedisNamespaceStore, type RedisNamespaceStoreOptions, } from './workspace/namespace/redis.ts';
12
+ export { DiskRecordClient } from './workspace/record/disk.ts';
13
+ export { parseSessionProfile, type SessionProfile } from '@struktoai/mirage-core/policy/profile';
14
+ export { DiskSessionStore } from './workspace/session/disk.ts';
15
+ export { RedisSessionStore, type RedisSessionStoreOptions } from './workspace/session/redis.ts';
16
+ export { DEFAULT_STATE_ROOT, DiskWorkspaceStateStore, type DiskWorkspaceStateStoreOptions, } from './workspace/store/disk.ts';
17
+ export { RedisWorkspaceStateStore, type RedisWorkspaceStateStoreOptions, } from './workspace/store/redis.ts';
18
+ export { patchNodeFs } from './fs_monkey.ts';
19
+ export { RedisResource, type RedisResourceOptions, type RedisResourceState, } from './resource/redis/redis.ts';
20
+ export { REDIS_PROMPT } from '@struktoai/mirage-core/resource/redis/prompt';
21
+ export { RedisStore, type RedisStoreOptions } from './resource/redis/store.ts';
22
+ export { RedisAccessor } from '@struktoai/mirage-core/accessor/redis';
23
+ export { REDIS_OPS } from '@struktoai/mirage-core/ops/redis/index';
24
+ export { fileReadProvision, headTailProvision, metadataProvision, type RedisResourceLike, } from '@struktoai/mirage-core/commands/builtin/redis/_provision';
25
+ export { RedisFileCacheStore, type RedisFileCacheOptions } from './cache/file/redis.ts';
26
+ export { FuseManager } from './workspace/fuse.ts';
27
+ export { MirageFS, type MirageFSOptions, type FuseAttr } from './fuse/fs.ts';
28
+ export { MountCore, type MountCoreOptions } from './fuse/core.ts';
29
+ export { classifyErrno, classifyError } from './fuse/errors.ts';
30
+ export { checkMountpoint, checkPlatform, checkSizes, FSKIT_MOUNT_ROOT, prepareBackend, requireKernelBackend, resolveBackend, unsizedMounts, } from './fuse/backend.ts';
31
+ export { mount as fuseMount, mountBackground as fuseMountBackground, type FuseHandle, type MountOptions as FuseMountOptions, } from './fuse/mount.ts';
32
+ export { isMacosMetadata } from './fuse/platform/macos.ts';
33
+ export { S3Resource, type S3ResourceState } from './resource/s3/s3.ts';
34
+ export { S3_COMMANDS } from '@struktoai/mirage-core/commands/builtin/s3/index';
35
+ export { GridFSResource, type GridFSResourceState } from './resource/gridfs/gridfs.ts';
36
+ export { normalizeGridFSConfig, type GridFSConfig, type GridFSConfigRedacted, } from './resource/gridfs/config.ts';
37
+ export { GridFSAccessor } from './accessor/gridfs.ts';
38
+ export { DatabricksVolumeResource, type DatabricksVolumeResourceState, } from './resource/databricks_volume/databricks_volume.ts';
39
+ export { loadDatabricksProfile, parseDatabricksCfg, type DatabricksProfile, } from './resource/databricks_volume/profile.ts';
40
+ export { normalizeS3Config, redactConfig as redactS3Config, type S3Config, type S3ConfigRedacted, } from './resource/s3/config.ts';
41
+ export { GCSResource, type GCSResourceState } from './resource/gcs/gcs.ts';
42
+ export { GCS_ENDPOINT, redactGcsConfig, type GCSConfig, type GCSConfigRedacted, } from './resource/gcs/config.ts';
43
+ export { GCS_PROMPT } from './resource/gcs/prompt.ts';
44
+ export { OCIResource, type OCIResourceState } from './resource/oci/oci.ts';
45
+ export { redactOciConfig, type OCIConfig, type OCIConfigRedacted } from './resource/oci/config.ts';
46
+ export { OCI_PROMPT } from './resource/oci/prompt.ts';
47
+ export { R2Resource, type R2ResourceState } from './resource/r2/r2.ts';
48
+ export { redactR2Config, type R2Config, type R2ConfigRedacted } from './resource/r2/config.ts';
49
+ export { R2_PROMPT } from './resource/r2/prompt.ts';
50
+ export { SupabaseResource, type SupabaseResourceState } from './resource/supabase/supabase.ts';
51
+ export { redactSupabaseConfig, resolvedSupabaseEndpoint, type SupabaseConfig, type SupabaseConfigRedacted, } from './resource/supabase/config.ts';
52
+ export { SUPABASE_PROMPT } from './resource/supabase/prompt.ts';
53
+ export { HF_RESOURCES, HfAccessor, HfBucketsAccessor, HfDatasetsAccessor, HfModelsAccessor, HfSpacesAccessor, } from './accessor/hf.ts';
54
+ export { HfBucketsResource, type HfBucketsResourceState } from './resource/hf_buckets/hf_buckets.ts';
55
+ export { assertHfRepoId, HF_ENDPOINT, normalizeHfBucketsConfig, normalizeHfRepoConfig, redactHfBucketsConfig, redactHfRepoConfig, type HfBucketsConfig, type HfBucketsConfigRedacted, type HfRepoConfig, type HfRepoConfigRedacted, } from './resource/hf_buckets/config.ts';
56
+ export { HF_BUCKETS_PROMPT } from './resource/hf_buckets/prompt.ts';
57
+ export { HfDatasetsResource, type HfDatasetsResourceState, } from './resource/hf_datasets/hf_datasets.ts';
58
+ export { HF_DATASETS_PROMPT } from './resource/hf_datasets/prompt.ts';
59
+ export { HfModelsResource, type HfModelsResourceState } from './resource/hf_models/hf_models.ts';
60
+ export { normalizeHfModelsConfig, redactHfModelsConfig, type HfModelsConfig, type HfModelsConfigRedacted, } from './resource/hf_models/config.ts';
61
+ export { HF_MODELS_PROMPT } from './resource/hf_models/prompt.ts';
62
+ export { HfSpacesResource, type HfSpacesResourceState } from './resource/hf_spaces/hf_spaces.ts';
63
+ export { HF_SPACES_PROMPT } from './resource/hf_spaces/prompt.ts';
64
+ export { HF_COMMANDS } from './commands/builtin/hf/index.ts';
65
+ export { HF_OPS } from './ops/hf/index.ts';
66
+ export { HF_HUB_COMMANDS } from './commands/builtin/hf_hub/index.ts';
67
+ export { HF_HUB_OPS } from './ops/hf_hub/index.ts';
68
+ export { MinIOResource, type MinIOResourceState } from './resource/minio/minio.ts';
69
+ export { redactMinIOConfig, type MinIOConfig, type MinIOConfigRedacted, } from './resource/minio/config.ts';
70
+ export { MINIO_PROMPT } from './resource/minio/prompt.ts';
71
+ export { SeaweedFSResource, type SeaweedFSResourceState } from './resource/seaweedfs/seaweedfs.ts';
72
+ export { redactSeaweedFSConfig, type SeaweedFSConfig, type SeaweedFSConfigRedacted, } from './resource/seaweedfs/config.ts';
73
+ export { SEAWEEDFS_PROMPT } from './resource/seaweedfs/prompt.ts';
74
+ export { CephResource, type CephResourceState } from './resource/ceph/ceph.ts';
75
+ export { redactCephConfig, type CephConfig, type CephConfigRedacted, } from './resource/ceph/config.ts';
76
+ export { CEPH_PROMPT } from './resource/ceph/prompt.ts';
77
+ export { WasabiResource, type WasabiResourceState } from './resource/wasabi/wasabi.ts';
78
+ export { redactWasabiConfig, resolvedWasabiEndpoint, type WasabiConfig, type WasabiConfigRedacted, } from './resource/wasabi/config.ts';
79
+ export { WASABI_PROMPT } from './resource/wasabi/prompt.ts';
80
+ export { BackblazeResource, type BackblazeResourceState } from './resource/backblaze/backblaze.ts';
81
+ export { redactBackblazeConfig, resolvedBackblazeEndpoint, type BackblazeConfig, type BackblazeConfigRedacted, } from './resource/backblaze/config.ts';
82
+ export { BACKBLAZE_PROMPT } from './resource/backblaze/prompt.ts';
83
+ export { DigitalOceanResource, type DigitalOceanResourceState, } from './resource/digitalocean/digitalocean.ts';
84
+ export { redactDigitalOceanConfig, resolvedDigitalOceanEndpoint, type DigitalOceanConfig, type DigitalOceanConfigRedacted, } from './resource/digitalocean/config.ts';
85
+ export { DIGITALOCEAN_PROMPT } from './resource/digitalocean/prompt.ts';
86
+ export { TencentResource, type TencentResourceState } from './resource/tencent/tencent.ts';
87
+ export { redactTencentConfig, resolvedTencentEndpoint, type TencentConfig, type TencentConfigRedacted, } from './resource/tencent/config.ts';
88
+ export { TENCENT_PROMPT } from './resource/tencent/prompt.ts';
89
+ export { AliyunResource, type AliyunResourceState } from './resource/aliyun/aliyun.ts';
90
+ export { redactAliyunConfig, resolvedAliyunEndpoint, type AliyunConfig, type AliyunConfigRedacted, } from './resource/aliyun/config.ts';
91
+ export { ALIYUN_PROMPT } from './resource/aliyun/prompt.ts';
92
+ export { ScalewayResource, type ScalewayResourceState } from './resource/scaleway/scaleway.ts';
93
+ export { redactScalewayConfig, resolvedScalewayEndpoint, type ScalewayConfig, type ScalewayConfigRedacted, } from './resource/scaleway/config.ts';
94
+ export { SCALEWAY_PROMPT } from './resource/scaleway/prompt.ts';
95
+ export { QingStorResource, type QingStorResourceState } from './resource/qingstor/qingstor.ts';
96
+ export { redactQingStorConfig, resolvedQingStorEndpoint, type QingStorConfig, type QingStorConfigRedacted, } from './resource/qingstor/config.ts';
97
+ export { QINGSTOR_PROMPT } from './resource/qingstor/prompt.ts';
98
+ export { PostgresResource, type PostgresResourceOptions } from './resource/postgres/postgres.ts';
99
+ export { PostgresStore } from './resource/postgres/store.ts';
100
+ export { MongoDBResource, type MongoDBResourceOptions } from './resource/mongodb/mongodb.ts';
101
+ export { MongoDBStore } from './resource/mongodb/store.ts';
102
+ export { LanceDBResource, type LanceDBResourceOptions } from './resource/lancedb/lancedb.ts';
103
+ export { LanceDBStore } from './resource/lancedb/store.ts';
104
+ export { SlackResource, type SlackResourceState } from './resource/slack/slack.ts';
105
+ export { normalizeSlackConfig, redactSlackConfig } from '@struktoai/mirage-core/core/slack/config';
106
+ export type { SlackConfig, SlackConfigRedacted } from '@struktoai/mirage-core/core/slack/config';
107
+ export { SSHResource, type SSHResourceState } from './resource/ssh/ssh.ts';
108
+ export { normalizeSshConfig, redactSshConfig, type SSHConfig, type SSHConfigRedacted, } from './resource/ssh/config.ts';
109
+ export { SSHAccessor } from './accessor/ssh.ts';
110
+ export { SSH_PROMPT } from './resource/ssh/prompt.ts';
111
+ export { SSH_COMMANDS } from './commands/builtin/ssh/index.ts';
112
+ export { SSH_OPS } from './ops/ssh/index.ts';
113
+ export { NextcloudAccessor } from './accessor/nextcloud.ts';
114
+ export { NextcloudResource, type NextcloudResourceState } from './resource/nextcloud/nextcloud.ts';
115
+ export { normalizeNextcloudConfig, redactNextcloudConfig, type NextcloudConfig, type NextcloudConfigRedacted, } from './resource/nextcloud/config.ts';
116
+ export { NEXTCLOUD_PROMPT } from './resource/nextcloud/prompt.ts';
117
+ export { NEXTCLOUD_COMMANDS } from './commands/builtin/nextcloud/index.ts';
118
+ export { NEXTCLOUD_OPS } from './ops/nextcloud/index.ts';
119
+ export { buildDeltaHook as buildNextcloudDeltaHook, NextcloudWalk } from './core/nextcloud/watch.ts';
120
+ export { DiscordResource, type DiscordResourceState } from './resource/discord/discord.ts';
121
+ export { normalizeDiscordConfig, redactDiscordConfig, } from '@struktoai/mirage-core/core/discord/config';
122
+ export type { DiscordConfig, DiscordConfigRedacted, } from '@struktoai/mirage-core/core/discord/config';
123
+ export { TrelloResource, type TrelloResourceState } from './resource/trello/trello.ts';
124
+ export { normalizeTrelloConfig, redactTrelloConfig, type TrelloConfig, type TrelloConfigRedacted, } from './resource/trello/config.ts';
125
+ export { LinearResource, type LinearResourceState } from './resource/linear/linear.ts';
126
+ export { normalizeLinearConfig, redactLinearConfig, } from '@struktoai/mirage-core/core/linear/config';
127
+ export type { LinearConfig, LinearConfigRedacted } from '@struktoai/mirage-core/core/linear/config';
128
+ export { NotionResource, type NotionResourceState } from './resource/notion/notion.ts';
129
+ export { normalizeNotionConfig, redactNotionConfig, } from '@struktoai/mirage-core/core/notion/config';
130
+ export type { NotionConfig, NotionConfigRedacted } from '@struktoai/mirage-core/core/notion/config';
131
+ export type { Mem0Config } from '@struktoai/mirage-core/resource/mem0/config';
132
+ export type { OneDriveConfig } from '@struktoai/mirage-core/accessor/onedrive';
133
+ export type { SharePointConfig } from '@struktoai/mirage-core/accessor/sharepoint';
134
+ export { LangfuseResource, type LangfuseResourceState } from './resource/langfuse/langfuse.ts';
135
+ export { JaegerResource, type JaegerResourceState } from './resource/jaeger/jaeger.ts';
136
+ export { normalizeLangfuseConfig, redactLangfuseConfig, type LangfuseConfig, type LangfuseConfigRedacted, } from './resource/langfuse/config.ts';
137
+ export { GitHubResource, type GitHubResourceState } from './resource/github/github.ts';
138
+ export { normalizeGitHubConfig, redactGitHubConfig, type GitHubConfig, type GitHubConfigRedacted, } from '@struktoai/mirage-core/core/github/config';
139
+ export { GDocsResource, type GDocsResourceState } from './resource/gdocs/gdocs.ts';
140
+ export { normalizeGDocsConfig, redactGDocsConfig, type GDocsConfig, type GDocsConfigRedacted, } from '@struktoai/mirage-core/resource/gdocs/config';
141
+ export { GSheetsResource, type GSheetsResourceState } from './resource/gsheets/gsheets.ts';
142
+ export { normalizeGSheetsConfig, redactGSheetsConfig, type GSheetsConfig, type GSheetsConfigRedacted, } from '@struktoai/mirage-core/resource/gsheets/config';
143
+ export { GSlidesResource, type GSlidesResourceState } from './resource/gslides/gslides.ts';
144
+ export { normalizeGSlidesConfig, redactGSlidesConfig, type GSlidesConfig, type GSlidesConfigRedacted, } from '@struktoai/mirage-core/resource/gslides/config';
145
+ export { GDriveResource, type GDriveResourceState } from './resource/gdrive/gdrive.ts';
146
+ export { normalizeGDriveConfig, redactGDriveConfig, type GDriveConfig, type GDriveConfigRedacted, } from '@struktoai/mirage-core/resource/gdrive/config';
147
+ export { DropboxResource, type DropboxResourceState } from './resource/dropbox/dropbox.ts';
148
+ export { normalizeDropboxConfig, redactDropboxConfig, type DropboxConfig, type DropboxConfigRedacted, } from './resource/dropbox/config.ts';
149
+ export { BoxResource, type BoxResourceState } from './resource/box/box.ts';
150
+ export { normalizeBoxConfig, redactBoxConfig, type BoxConfig, type BoxConfigRedacted, } from './resource/box/config.ts';
151
+ export { GmailResource, type GmailResourceState } from './resource/gmail/gmail.ts';
152
+ export { normalizeGmailConfig, redactGmailConfig, type GmailConfig, type GmailConfigRedacted, } from '@struktoai/mirage-core/resource/gmail/config';
153
+ export { GCalResource, type GCalResourceState } from './resource/gcal/gcal.ts';
154
+ export { normalizeGCalConfig, redactGCalConfig, type GCalConfig, type GCalConfigRedacted, } from '@struktoai/mirage-core/resource/gcal/config';
155
+ export { EmailResource, type EmailResourceState } from './resource/email/email.ts';
156
+ export { buildEmailConfig, normalizeEmailConfig, redactEmailConfig, type EmailConfig, type EmailConfigInput, type EmailConfigRedacted, EMAIL_PROMPT, EMAIL_WRITE_PROMPT, } from './resource/email/index.ts';
157
+ export { EmailAccessor } from './accessor/email.ts';
158
+ export { EMAIL_COMMANDS } from './commands/builtin/email/index.ts';
159
+ export { HF } from './commands/cli/builtin/hf/index.ts';
160
+ export { HIMALAYA } from './commands/cli/builtin/himalaya/index.ts';
161
+ export { EMAIL_OPS } from './ops/email/index.ts';
162
+ export { DaytonaRuntime } from './runtime/sandbox/daytona/runtime.ts';
163
+ export { LocalRuntime } from './runtime/python/local.ts';
164
+ export { DAYTONA_CONFIG_KEYS, type DaytonaConfig } from './runtime/sandbox/daytona/config.ts';
165
+ export { E2BRuntime } from './runtime/sandbox/e2b/runtime.ts';
166
+ export { E2B_CONFIG_KEYS, type E2BConfig } from './runtime/sandbox/e2b/config.ts';
167
+ export { DockerRuntime } from './runtime/sandbox/docker/runtime.ts';
168
+ export { DOCKER_CONFIG_KEYS, type DockerConfig } from './runtime/sandbox/docker/config.ts';
169
+ export { SmolvmRuntime } from './runtime/sandbox/smolvm/runtime.ts';
170
+ export { SMOLVM_CONFIG_KEYS, type SmolvmConfig } from './runtime/sandbox/smolvm/config.ts';
171
+ export { SSHRuntime } from './runtime/sandbox/ssh/runtime.ts';
172
+ export { SSH_RUNTIME_CONFIG_KEYS, type SSHRuntimeConfig } from './runtime/sandbox/ssh/config.ts';
173
+ export { buildResource, knownResources, register as registerResourceFactory, type ResourceFactory, } from './resource/registry.ts';
174
+ export { MODULE_SUFFIXES, isModulePath, loadAttr, splitRef } from './resource/loader.ts';
175
+ export { DISK_COMMANDS } from './commands/builtin/disk/index.ts';
176
+ export { REDIS_COMMANDS } from '@struktoai/mirage-core/commands/builtin/redis/index';
177
+ export { GRIDFS_COMMANDS } from './commands/builtin/gridfs/index.ts';
178
+ export { absolutizeScripts, checkWorkspaceConfig, checkWorkspaceConfigFile, configToWorkspaceArgs, interpolateEnv, loadWorkspaceConfig, loadWorkspaceConfigFile, type MountBlock, type WorkspaceArgs, type WorkspaceConfigRaw, } from './config.ts';
179
+ export { BaseResource, recordResourceRef, resourceRefOf, } from '@struktoai/mirage-core/resource/base';
180
+ export { op, type RegisteredOp } from '@struktoai/mirage-core/ops/registry';
181
+ export { makeGenericOps } from '@struktoai/mirage-core/ops/generic/factory';
182
+ export { makeGenericCommands } from '@struktoai/mirage-core/commands/builtin/generic_bind/index';
183
+ export { FlagView, type FlagValue, UsageStyle } from '@struktoai/mirage-core/commands/spec/types';
184
+ export type { CLIDoors } from '@struktoai/mirage-core/commands/cli/types';
185
+ export { UsageError } from '@struktoai/mirage-core/commands/errors';
186
+ export { PolicyDenied, PolicyError } from '@struktoai/mirage-core/policy/errors';
187
+ export { type Ask, type AskHandler, type Decision, Decisions, type Deny, type Explanation, Outcome, Scope, type SessionContext, } from '@struktoai/mirage-core/policy/index';
188
+ export { LanguageRuntime } from '@struktoai/mirage-core/runtime/language';
189
+ export { RemoteSandbox } from '@struktoai/mirage-core/runtime/sandbox/base';
190
+ export type { HomeConfig, RuntimeConfig } from '@struktoai/mirage-core/runtime/config';
191
+ export { knownRuntimes, registerRuntime } from '@struktoai/mirage-core/runtime/table';
192
+ export { type MountResolver, PrefixResolver } from '@struktoai/mirage-core/runtime/resolver';
193
+ export { RuntimeVFS } from '@struktoai/mirage-core/runtime/vfs';
194
+ export { CrossMountError } from '@struktoai/mirage-core/runtime/errors';
195
+ export type { RunArgs, RuntimeReach } from '@struktoai/mirage-core/runtime/types';
196
+ export { DenyResult, type RouteContext, type RoutePolicy, RouteResult, } from '@struktoai/mirage-core/runtime/routing/types';
197
+ export { type ExecuteOptions, ExecuteResult, type WorkspaceOptions, } from '@struktoai/mirage-core/workspace/workspace/types';
198
+ export { Ops } from '@struktoai/mirage-core/ops/ops';
199
+ export { Namespace } from '@struktoai/mirage-core/workspace/mount/namespace/namespace';
200
+ //# sourceMappingURL=index.d.ts.map