@struktoai/mirage-node 0.0.5-alpha.1 → 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.
- package/README.md +137 -79
- package/dist/accessor/disk.d.ts +6 -0
- package/dist/accessor/disk.d.ts.map +1 -0
- package/dist/accessor/disk.js +22 -0
- package/dist/accessor/disk.js.map +1 -0
- package/dist/accessor/email.d.ts +11 -0
- package/dist/accessor/email.d.ts.map +1 -0
- package/dist/accessor/email.js +57 -0
- package/dist/accessor/email.js.map +1 -0
- package/dist/accessor/gridfs.d.ts +13 -0
- package/dist/accessor/gridfs.d.ts.map +1 -0
- package/dist/accessor/gridfs.js +48 -0
- package/dist/accessor/gridfs.js.map +1 -0
- package/dist/accessor/hf.d.ts +38 -0
- package/dist/accessor/hf.d.ts.map +1 -0
- package/dist/accessor/hf.js +101 -0
- package/dist/accessor/hf.js.map +1 -0
- package/dist/accessor/hf_hub.d.ts +80 -0
- package/dist/accessor/hf_hub.d.ts.map +1 -0
- package/dist/accessor/hf_hub.js +122 -0
- package/dist/accessor/hf_hub.js.map +1 -0
- package/dist/accessor/nextcloud.d.ts +12 -0
- package/dist/accessor/nextcloud.d.ts.map +1 -0
- package/dist/accessor/nextcloud.js +26 -0
- package/dist/accessor/nextcloud.js.map +1 -0
- package/dist/accessor/ssh.d.ts +14 -0
- package/dist/accessor/ssh.d.ts.map +1 -0
- package/dist/accessor/ssh.js +105 -0
- package/dist/accessor/ssh.js.map +1 -0
- package/dist/cache/file/add.lua +16 -0
- package/dist/cache/file/redis.d.ts +41 -0
- package/dist/cache/file/redis.d.ts.map +1 -0
- package/dist/cache/file/redis.js +191 -0
- package/dist/cache/file/redis.js.map +1 -0
- package/dist/commands/builtin/disk/index.d.ts +3 -0
- package/dist/commands/builtin/disk/index.d.ts.map +1 -0
- package/dist/commands/builtin/disk/index.js +20 -0
- package/dist/commands/builtin/disk/index.js.map +1 -0
- package/dist/commands/builtin/disk/io.d.ts +4 -0
- package/dist/commands/builtin/disk/io.d.ts.map +1 -0
- package/dist/commands/builtin/disk/io.js +57 -0
- package/dist/commands/builtin/disk/io.js.map +1 -0
- package/dist/commands/builtin/email/_provision.d.ts +7 -0
- package/dist/commands/builtin/email/_provision.d.ts.map +1 -0
- package/dist/commands/builtin/email/_provision.js +42 -0
- package/dist/commands/builtin/email/_provision.js.map +1 -0
- package/dist/commands/builtin/email/find.d.ts +2 -0
- package/dist/commands/builtin/email/find.d.ts.map +1 -0
- package/dist/commands/builtin/email/find.js +51 -0
- package/dist/commands/builtin/email/find.js.map +1 -0
- package/dist/commands/builtin/email/grep.d.ts +4 -0
- package/dist/commands/builtin/email/grep.d.ts.map +1 -0
- package/dist/commands/builtin/email/grep.js +108 -0
- package/dist/commands/builtin/email/grep.js.map +1 -0
- package/dist/commands/builtin/email/index.d.ts +3 -0
- package/dist/commands/builtin/email/index.d.ts.map +1 -0
- package/dist/commands/builtin/email/index.js +31 -0
- package/dist/commands/builtin/email/index.js.map +1 -0
- package/dist/commands/builtin/email/io.d.ts +4 -0
- package/dist/commands/builtin/email/io.d.ts.map +1 -0
- package/dist/commands/builtin/email/io.js +28 -0
- package/dist/commands/builtin/email/io.js.map +1 -0
- package/dist/commands/builtin/email/rg.d.ts +2 -0
- package/dist/commands/builtin/email/rg.d.ts.map +1 -0
- package/dist/commands/builtin/email/rg.js +93 -0
- package/dist/commands/builtin/email/rg.js.map +1 -0
- package/dist/commands/builtin/gridfs/index.d.ts +3 -0
- package/dist/commands/builtin/gridfs/index.d.ts.map +1 -0
- package/dist/commands/builtin/gridfs/index.js +24 -0
- package/dist/commands/builtin/gridfs/index.js.map +1 -0
- package/dist/commands/builtin/gridfs/io.d.ts +4 -0
- package/dist/commands/builtin/gridfs/io.d.ts.map +1 -0
- package/dist/commands/builtin/gridfs/io.js +54 -0
- package/dist/commands/builtin/gridfs/io.js.map +1 -0
- package/dist/commands/builtin/hf/find.d.ts +2 -0
- package/dist/commands/builtin/hf/find.d.ts.map +1 -0
- package/dist/commands/builtin/hf/find.js +31 -0
- package/dist/commands/builtin/hf/find.js.map +1 -0
- package/dist/commands/builtin/hf/index.d.ts +3 -0
- package/dist/commands/builtin/hf/index.d.ts.map +1 -0
- package/dist/commands/builtin/hf/index.js +25 -0
- package/dist/commands/builtin/hf/index.js.map +1 -0
- package/dist/commands/builtin/hf/io.d.ts +4 -0
- package/dist/commands/builtin/hf/io.d.ts.map +1 -0
- package/dist/commands/builtin/hf/io.js +44 -0
- package/dist/commands/builtin/hf/io.js.map +1 -0
- package/dist/commands/builtin/hf_hub/index.d.ts +4 -0
- package/dist/commands/builtin/hf_hub/index.d.ts.map +1 -0
- package/dist/commands/builtin/hf_hub/index.js +30 -0
- package/dist/commands/builtin/hf_hub/index.js.map +1 -0
- package/dist/commands/builtin/hf_hub/io.d.ts +4 -0
- package/dist/commands/builtin/hf_hub/io.d.ts.map +1 -0
- package/dist/commands/builtin/hf_hub/io.js +54 -0
- package/dist/commands/builtin/hf_hub/io.js.map +1 -0
- package/dist/commands/builtin/nextcloud/index.d.ts +3 -0
- package/dist/commands/builtin/nextcloud/index.d.ts.map +1 -0
- package/dist/commands/builtin/nextcloud/index.js +7 -0
- package/dist/commands/builtin/nextcloud/index.js.map +1 -0
- package/dist/commands/builtin/nextcloud/io.d.ts +4 -0
- package/dist/commands/builtin/nextcloud/io.d.ts.map +1 -0
- package/dist/commands/builtin/nextcloud/io.js +41 -0
- package/dist/commands/builtin/nextcloud/io.js.map +1 -0
- package/dist/commands/builtin/ssh/index.d.ts +3 -0
- package/dist/commands/builtin/ssh/index.d.ts.map +1 -0
- package/dist/commands/builtin/ssh/index.js +20 -0
- package/dist/commands/builtin/ssh/index.js.map +1 -0
- package/dist/commands/builtin/ssh/io.d.ts +4 -0
- package/dist/commands/builtin/ssh/io.d.ts.map +1 -0
- package/dist/commands/builtin/ssh/io.js +58 -0
- package/dist/commands/builtin/ssh/io.js.map +1 -0
- package/dist/commands/cli/builtin/hf/accessor.d.ts +37 -0
- package/dist/commands/cli/builtin/hf/accessor.d.ts.map +1 -0
- package/dist/commands/cli/builtin/hf/accessor.js +80 -0
- package/dist/commands/cli/builtin/hf/accessor.js.map +1 -0
- package/dist/commands/cli/builtin/hf/auth.d.ts +14 -0
- package/dist/commands/cli/builtin/hf/auth.d.ts.map +1 -0
- package/dist/commands/cli/builtin/hf/auth.js +77 -0
- package/dist/commands/cli/builtin/hf/auth.js.map +1 -0
- package/dist/commands/cli/builtin/hf/download.d.ts +46 -0
- package/dist/commands/cli/builtin/hf/download.d.ts.map +1 -0
- package/dist/commands/cli/builtin/hf/download.js +296 -0
- package/dist/commands/cli/builtin/hf/download.js.map +1 -0
- package/dist/commands/cli/builtin/hf/env.d.ts +12 -0
- package/dist/commands/cli/builtin/hf/env.d.ts.map +1 -0
- package/dist/commands/cli/builtin/hf/env.js +37 -0
- package/dist/commands/cli/builtin/hf/env.js.map +1 -0
- package/dist/commands/cli/builtin/hf/files.d.ts +11 -0
- package/dist/commands/cli/builtin/hf/files.d.ts.map +1 -0
- package/dist/commands/cli/builtin/hf/files.js +43 -0
- package/dist/commands/cli/builtin/hf/files.js.map +1 -0
- package/dist/commands/cli/builtin/hf/index.d.ts +3 -0
- package/dist/commands/cli/builtin/hf/index.d.ts.map +1 -0
- package/dist/commands/cli/builtin/hf/index.js +286 -0
- package/dist/commands/cli/builtin/hf/index.js.map +1 -0
- package/dist/commands/cli/builtin/hf/repo.d.ts +16 -0
- package/dist/commands/cli/builtin/hf/repo.d.ts.map +1 -0
- package/dist/commands/cli/builtin/hf/repo.js +97 -0
- package/dist/commands/cli/builtin/hf/repo.js.map +1 -0
- package/dist/commands/cli/builtin/hf/upload.d.ts +21 -0
- package/dist/commands/cli/builtin/hf/upload.d.ts.map +1 -0
- package/dist/commands/cli/builtin/hf/upload.js +178 -0
- package/dist/commands/cli/builtin/hf/upload.js.map +1 -0
- package/dist/commands/cli/builtin/himalaya/builder.d.ts +65 -0
- package/dist/commands/cli/builtin/himalaya/builder.d.ts.map +1 -0
- package/dist/commands/cli/builtin/himalaya/builder.js +197 -0
- package/dist/commands/cli/builtin/himalaya/builder.js.map +1 -0
- package/dist/commands/cli/builtin/himalaya/compose.d.ts +4 -0
- package/dist/commands/cli/builtin/himalaya/compose.d.ts.map +1 -0
- package/dist/commands/cli/builtin/himalaya/compose.js +19 -0
- package/dist/commands/cli/builtin/himalaya/compose.js.map +1 -0
- package/dist/commands/cli/builtin/himalaya/deliver.d.ts +49 -0
- package/dist/commands/cli/builtin/himalaya/deliver.d.ts.map +1 -0
- package/dist/commands/cli/builtin/himalaya/deliver.js +94 -0
- package/dist/commands/cli/builtin/himalaya/deliver.js.map +1 -0
- package/dist/commands/cli/builtin/himalaya/forward.d.ts +4 -0
- package/dist/commands/cli/builtin/himalaya/forward.d.ts.map +1 -0
- package/dist/commands/cli/builtin/himalaya/forward.js +37 -0
- package/dist/commands/cli/builtin/himalaya/forward.js.map +1 -0
- package/dist/commands/cli/builtin/himalaya/index.d.ts +3 -0
- package/dist/commands/cli/builtin/himalaya/index.d.ts.map +1 -0
- package/dist/commands/cli/builtin/himalaya/index.js +201 -0
- package/dist/commands/cli/builtin/himalaya/index.js.map +1 -0
- package/dist/commands/cli/builtin/himalaya/list.d.ts +5 -0
- package/dist/commands/cli/builtin/himalaya/list.d.ts.map +1 -0
- package/dist/commands/cli/builtin/himalaya/list.js +41 -0
- package/dist/commands/cli/builtin/himalaya/list.js.map +1 -0
- package/dist/commands/cli/builtin/himalaya/query.d.ts +38 -0
- package/dist/commands/cli/builtin/himalaya/query.d.ts.map +1 -0
- package/dist/commands/cli/builtin/himalaya/query.js +296 -0
- package/dist/commands/cli/builtin/himalaya/query.js.map +1 -0
- package/dist/commands/cli/builtin/himalaya/read.d.ts +4 -0
- package/dist/commands/cli/builtin/himalaya/read.d.ts.map +1 -0
- package/dist/commands/cli/builtin/himalaya/read.js +40 -0
- package/dist/commands/cli/builtin/himalaya/read.js.map +1 -0
- package/dist/commands/cli/builtin/himalaya/reply.d.ts +4 -0
- package/dist/commands/cli/builtin/himalaya/reply.d.ts.map +1 -0
- package/dist/commands/cli/builtin/himalaya/reply.js +37 -0
- package/dist/commands/cli/builtin/himalaya/reply.js.map +1 -0
- package/dist/commands/cli/builtin/himalaya/search.d.ts +4 -0
- package/dist/commands/cli/builtin/himalaya/search.d.ts.map +1 -0
- package/dist/commands/cli/builtin/himalaya/search.js +44 -0
- package/dist/commands/cli/builtin/himalaya/search.js.map +1 -0
- package/dist/commands/cli/builtin/himalaya/send.d.ts +4 -0
- package/dist/commands/cli/builtin/himalaya/send.d.ts.map +1 -0
- package/dist/commands/cli/builtin/himalaya/send.js +43 -0
- package/dist/commands/cli/builtin/himalaya/send.js.map +1 -0
- package/dist/commands/cli/builtin/himalaya/smtp.d.ts +20 -0
- package/dist/commands/cli/builtin/himalaya/smtp.d.ts.map +1 -0
- package/dist/commands/cli/builtin/himalaya/smtp.js +116 -0
- package/dist/commands/cli/builtin/himalaya/smtp.js.map +1 -0
- package/dist/commands/cli/builtin/himalaya/util.d.ts +17 -0
- package/dist/commands/cli/builtin/himalaya/util.d.ts.map +1 -0
- package/dist/commands/cli/builtin/himalaya/util.js +120 -0
- package/dist/commands/cli/builtin/himalaya/util.js.map +1 -0
- package/dist/commands/native_fixture.d.ts +25 -0
- package/dist/commands/native_fixture.d.ts.map +1 -0
- package/dist/commands/native_fixture.js +186 -0
- package/dist/commands/native_fixture.js.map +1 -0
- package/dist/compression_codecs.d.ts +2 -0
- package/dist/compression_codecs.d.ts.map +1 -0
- package/dist/compression_codecs.js +34 -0
- package/dist/compression_codecs.js.map +1 -0
- package/dist/config.d.ts +191 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +967 -0
- package/dist/config.js.map +1 -0
- package/dist/core/disk/append.d.ts +4 -0
- package/dist/core/disk/append.d.ts.map +1 -0
- package/dist/core/disk/append.js +33 -0
- package/dist/core/disk/append.js.map +1 -0
- package/dist/core/disk/constants.d.ts +3 -0
- package/dist/core/disk/constants.d.ts.map +1 -0
- package/dist/core/disk/constants.js +16 -0
- package/dist/core/disk/constants.js.map +1 -0
- package/dist/core/disk/copy.d.ts +4 -0
- package/dist/core/disk/copy.d.ts.map +1 -0
- package/dist/core/disk/copy.js +38 -0
- package/dist/core/disk/copy.js.map +1 -0
- package/dist/core/disk/create.d.ts +4 -0
- package/dist/core/disk/create.d.ts.map +1 -0
- package/dist/core/disk/create.js +18 -0
- package/dist/core/disk/create.js.map +1 -0
- package/dist/core/disk/dest.d.ts +4 -0
- package/dist/core/disk/dest.d.ts.map +1 -0
- package/dist/core/disk/dest.js +44 -0
- package/dist/core/disk/dest.js.map +1 -0
- package/dist/core/disk/du/entries.d.ts +4 -0
- package/dist/core/disk/du/entries.d.ts.map +1 -0
- package/dist/core/disk/du/entries.js +25 -0
- package/dist/core/disk/du/entries.js.map +1 -0
- package/dist/core/disk/du/index.d.ts +3 -0
- package/dist/core/disk/du/index.d.ts.map +1 -0
- package/dist/core/disk/du/index.js +16 -0
- package/dist/core/disk/du/index.js.map +1 -0
- package/dist/core/disk/du/size.d.ts +4 -0
- package/dist/core/disk/du/size.d.ts.map +1 -0
- package/dist/core/disk/du/size.js +21 -0
- package/dist/core/disk/du/size.js.map +1 -0
- package/dist/core/disk/du/walk.d.ts +4 -0
- package/dist/core/disk/du/walk.d.ts.map +1 -0
- package/dist/core/disk/du/walk.js +82 -0
- package/dist/core/disk/du/walk.js.map +1 -0
- package/dist/core/disk/entry.d.ts +11 -0
- package/dist/core/disk/entry.d.ts.map +1 -0
- package/dist/core/disk/entry.js +42 -0
- package/dist/core/disk/entry.js.map +1 -0
- package/dist/core/disk/errors.d.ts +3 -0
- package/dist/core/disk/errors.d.ts.map +1 -0
- package/dist/core/disk/errors.js +31 -0
- package/dist/core/disk/errors.js.map +1 -0
- package/dist/core/disk/exists.d.ts +4 -0
- package/dist/core/disk/exists.d.ts.map +1 -0
- package/dist/core/disk/exists.js +26 -0
- package/dist/core/disk/exists.js.map +1 -0
- package/dist/core/disk/find.d.ts +21 -0
- package/dist/core/disk/find.d.ts.map +1 -0
- package/dist/core/disk/find.js +143 -0
- package/dist/core/disk/find.js.map +1 -0
- package/dist/core/disk/mkdir.d.ts +4 -0
- package/dist/core/disk/mkdir.d.ts.map +1 -0
- package/dist/core/disk/mkdir.js +51 -0
- package/dist/core/disk/mkdir.js.map +1 -0
- package/dist/core/disk/read.d.ts +18 -0
- package/dist/core/disk/read.d.ts.map +1 -0
- package/dist/core/disk/read.js +92 -0
- package/dist/core/disk/read.js.map +1 -0
- package/dist/core/disk/readdir.d.ts +5 -0
- package/dist/core/disk/readdir.d.ts.map +1 -0
- package/dist/core/disk/readdir.js +73 -0
- package/dist/core/disk/readdir.js.map +1 -0
- package/dist/core/disk/rename.d.ts +4 -0
- package/dist/core/disk/rename.d.ts.map +1 -0
- package/dist/core/disk/rename.js +36 -0
- package/dist/core/disk/rename.js.map +1 -0
- package/dist/core/disk/rm.d.ts +4 -0
- package/dist/core/disk/rm.d.ts.map +1 -0
- package/dist/core/disk/rm.js +22 -0
- package/dist/core/disk/rm.js.map +1 -0
- package/dist/core/disk/rmdir.d.ts +4 -0
- package/dist/core/disk/rmdir.d.ts.map +1 -0
- package/dist/core/disk/rmdir.js +29 -0
- package/dist/core/disk/rmdir.js.map +1 -0
- package/dist/core/disk/set_attrs.d.ts +11 -0
- package/dist/core/disk/set_attrs.d.ts.map +1 -0
- package/dist/core/disk/set_attrs.js +53 -0
- package/dist/core/disk/set_attrs.js.map +1 -0
- package/dist/core/disk/stat.d.ts +5 -0
- package/dist/core/disk/stat.d.ts.map +1 -0
- package/dist/core/disk/stat.js +58 -0
- package/dist/core/disk/stat.js.map +1 -0
- package/dist/core/disk/stream.d.ts +4 -0
- package/dist/core/disk/stream.d.ts.map +1 -0
- package/dist/core/disk/stream.js +40 -0
- package/dist/core/disk/stream.js.map +1 -0
- package/dist/core/disk/truncate.d.ts +4 -0
- package/dist/core/disk/truncate.d.ts.map +1 -0
- package/dist/core/disk/truncate.js +40 -0
- package/dist/core/disk/truncate.js.map +1 -0
- package/dist/core/disk/unlink.d.ts +4 -0
- package/dist/core/disk/unlink.d.ts.map +1 -0
- package/dist/core/disk/unlink.js +29 -0
- package/dist/core/disk/unlink.js.map +1 -0
- package/dist/core/disk/utils.d.ts +3 -0
- package/dist/core/disk/utils.d.ts.map +1 -0
- package/dist/core/disk/utils.js +26 -0
- package/dist/core/disk/utils.js.map +1 -0
- package/dist/core/disk/watch/constants.d.ts +3 -0
- package/dist/core/disk/watch/constants.d.ts.map +1 -0
- package/dist/core/disk/watch/constants.js +20 -0
- package/dist/core/disk/watch/constants.js.map +1 -0
- package/dist/core/disk/watch/hook.d.ts +54 -0
- package/dist/core/disk/watch/hook.d.ts.map +1 -0
- package/dist/core/disk/watch/hook.js +108 -0
- package/dist/core/disk/watch/hook.js.map +1 -0
- package/dist/core/disk/watch/index.d.ts +2 -0
- package/dist/core/disk/watch/index.d.ts.map +1 -0
- package/dist/core/disk/watch/index.js +15 -0
- package/dist/core/disk/watch/index.js.map +1 -0
- package/dist/core/disk/watch/walk.d.ts +22 -0
- package/dist/core/disk/watch/walk.d.ts.map +1 -0
- package/dist/core/disk/watch/walk.js +100 -0
- package/dist/core/disk/watch/walk.js.map +1 -0
- package/dist/core/disk/write.d.ts +4 -0
- package/dist/core/disk/write.d.ts.map +1 -0
- package/dist/core/disk/write.js +36 -0
- package/dist/core/disk/write.js.map +1 -0
- package/dist/core/email/_parse.d.ts +32 -0
- package/dist/core/email/_parse.d.ts.map +1 -0
- package/dist/core/email/_parse.js +87 -0
- package/dist/core/email/_parse.js.map +1 -0
- package/dist/core/email/client.d.ts +58 -0
- package/dist/core/email/client.d.ts.map +1 -0
- package/dist/core/email/client.js +328 -0
- package/dist/core/email/client.js.map +1 -0
- package/dist/core/email/config.d.ts +21 -0
- package/dist/core/email/config.d.ts.map +1 -0
- package/dist/core/email/config.js +55 -0
- package/dist/core/email/config.js.map +1 -0
- package/dist/core/email/folders.d.ts +3 -0
- package/dist/core/email/folders.d.ts.map +1 -0
- package/dist/core/email/folders.js +18 -0
- package/dist/core/email/folders.js.map +1 -0
- package/dist/core/email/read.d.ts +5 -0
- package/dist/core/email/read.d.ts.map +1 -0
- package/dist/core/email/read.js +41 -0
- package/dist/core/email/read.js.map +1 -0
- package/dist/core/email/readdir.d.ts +16 -0
- package/dist/core/email/readdir.d.ts.map +1 -0
- package/dist/core/email/readdir.js +222 -0
- package/dist/core/email/readdir.js.map +1 -0
- package/dist/core/email/render.d.ts +5 -0
- package/dist/core/email/render.d.ts.map +1 -0
- package/dist/core/email/render.js +42 -0
- package/dist/core/email/render.js.map +1 -0
- package/dist/core/email/scope.d.ts +3 -0
- package/dist/core/email/scope.d.ts.map +1 -0
- package/dist/core/email/scope.js +49 -0
- package/dist/core/email/scope.js.map +1 -0
- package/dist/core/email/search.d.ts +5 -0
- package/dist/core/email/search.d.ts.map +1 -0
- package/dist/core/email/search.js +67 -0
- package/dist/core/email/search.js.map +1 -0
- package/dist/core/email/stat.d.ts +5 -0
- package/dist/core/email/stat.d.ts.map +1 -0
- package/dist/core/email/stat.js +56 -0
- package/dist/core/email/stat.js.map +1 -0
- package/dist/core/gridfs/client.d.ts +37 -0
- package/dist/core/gridfs/client.d.ts.map +1 -0
- package/dist/core/gridfs/client.js +129 -0
- package/dist/core/gridfs/client.js.map +1 -0
- package/dist/core/gridfs/constants.d.ts +2 -0
- package/dist/core/gridfs/constants.d.ts.map +1 -0
- package/dist/core/gridfs/constants.js +15 -0
- package/dist/core/gridfs/constants.js.map +1 -0
- package/dist/core/gridfs/copy.d.ts +2 -0
- package/dist/core/gridfs/copy.d.ts.map +1 -0
- package/dist/core/gridfs/copy.js +18 -0
- package/dist/core/gridfs/copy.js.map +1 -0
- package/dist/core/gridfs/create.d.ts +2 -0
- package/dist/core/gridfs/create.d.ts.map +1 -0
- package/dist/core/gridfs/create.js +17 -0
- package/dist/core/gridfs/create.js.map +1 -0
- package/dist/core/gridfs/driver.d.ts +20 -0
- package/dist/core/gridfs/driver.d.ts.map +1 -0
- package/dist/core/gridfs/driver.js +284 -0
- package/dist/core/gridfs/driver.js.map +1 -0
- package/dist/core/gridfs/du/entries.d.ts +2 -0
- package/dist/core/gridfs/du/entries.d.ts.map +1 -0
- package/dist/core/gridfs/du/entries.js +17 -0
- package/dist/core/gridfs/du/entries.js.map +1 -0
- package/dist/core/gridfs/du/index.d.ts +3 -0
- package/dist/core/gridfs/du/index.d.ts.map +1 -0
- package/dist/core/gridfs/du/index.js +16 -0
- package/dist/core/gridfs/du/index.js.map +1 -0
- package/dist/core/gridfs/du/size.d.ts +2 -0
- package/dist/core/gridfs/du/size.d.ts.map +1 -0
- package/dist/core/gridfs/du/size.js +17 -0
- package/dist/core/gridfs/du/size.js.map +1 -0
- package/dist/core/gridfs/exists.d.ts +2 -0
- package/dist/core/gridfs/exists.d.ts.map +1 -0
- package/dist/core/gridfs/exists.js +17 -0
- package/dist/core/gridfs/exists.js.map +1 -0
- package/dist/core/gridfs/find.d.ts +2 -0
- package/dist/core/gridfs/find.d.ts.map +1 -0
- package/dist/core/gridfs/find.js +17 -0
- package/dist/core/gridfs/find.js.map +1 -0
- package/dist/core/gridfs/mkdir.d.ts +2 -0
- package/dist/core/gridfs/mkdir.d.ts.map +1 -0
- package/dist/core/gridfs/mkdir.js +17 -0
- package/dist/core/gridfs/mkdir.js.map +1 -0
- package/dist/core/gridfs/read.d.ts +12 -0
- package/dist/core/gridfs/read.d.ts.map +1 -0
- package/dist/core/gridfs/read.js +99 -0
- package/dist/core/gridfs/read.js.map +1 -0
- package/dist/core/gridfs/readdir.d.ts +2 -0
- package/dist/core/gridfs/readdir.d.ts.map +1 -0
- package/dist/core/gridfs/readdir.js +17 -0
- package/dist/core/gridfs/readdir.js.map +1 -0
- package/dist/core/gridfs/rename.d.ts +2 -0
- package/dist/core/gridfs/rename.d.ts.map +1 -0
- package/dist/core/gridfs/rename.js +18 -0
- package/dist/core/gridfs/rename.js.map +1 -0
- package/dist/core/gridfs/rm.d.ts +2 -0
- package/dist/core/gridfs/rm.d.ts.map +1 -0
- package/dist/core/gridfs/rm.js +17 -0
- package/dist/core/gridfs/rm.js.map +1 -0
- package/dist/core/gridfs/rmdir.d.ts +2 -0
- package/dist/core/gridfs/rmdir.d.ts.map +1 -0
- package/dist/core/gridfs/rmdir.js +17 -0
- package/dist/core/gridfs/rmdir.js.map +1 -0
- package/dist/core/gridfs/stat.d.ts +2 -0
- package/dist/core/gridfs/stat.d.ts.map +1 -0
- package/dist/core/gridfs/stat.js +17 -0
- package/dist/core/gridfs/stat.js.map +1 -0
- package/dist/core/gridfs/stream.d.ts +17 -0
- package/dist/core/gridfs/stream.d.ts.map +1 -0
- package/dist/core/gridfs/stream.js +75 -0
- package/dist/core/gridfs/stream.js.map +1 -0
- package/dist/core/gridfs/truncate.d.ts +2 -0
- package/dist/core/gridfs/truncate.d.ts.map +1 -0
- package/dist/core/gridfs/truncate.js +17 -0
- package/dist/core/gridfs/truncate.js.map +1 -0
- package/dist/core/gridfs/unlink.d.ts +2 -0
- package/dist/core/gridfs/unlink.d.ts.map +1 -0
- package/dist/core/gridfs/unlink.js +17 -0
- package/dist/core/gridfs/unlink.js.map +1 -0
- package/dist/core/gridfs/watch.d.ts +4 -0
- package/dist/core/gridfs/watch.d.ts.map +1 -0
- package/dist/core/gridfs/watch.js +68 -0
- package/dist/core/gridfs/watch.js.map +1 -0
- package/dist/core/gridfs/write.d.ts +2 -0
- package/dist/core/gridfs/write.d.ts.map +1 -0
- package/dist/core/gridfs/write.js +17 -0
- package/dist/core/gridfs/write.js.map +1 -0
- package/dist/core/hf/constants.d.ts +3 -0
- package/dist/core/hf/constants.d.ts.map +1 -0
- package/dist/core/hf/constants.js +16 -0
- package/dist/core/hf/constants.js.map +1 -0
- package/dist/core/hf/create.d.ts +2 -0
- package/dist/core/hf/create.d.ts.map +1 -0
- package/dist/core/hf/create.js +17 -0
- package/dist/core/hf/create.js.map +1 -0
- package/dist/core/hf/driver.d.ts +5 -0
- package/dist/core/hf/driver.d.ts.map +1 -0
- package/dist/core/hf/driver.js +222 -0
- package/dist/core/hf/driver.js.map +1 -0
- package/dist/core/hf/du/entries.d.ts +2 -0
- package/dist/core/hf/du/entries.d.ts.map +1 -0
- package/dist/core/hf/du/entries.js +17 -0
- package/dist/core/hf/du/entries.js.map +1 -0
- package/dist/core/hf/du/index.d.ts +3 -0
- package/dist/core/hf/du/index.d.ts.map +1 -0
- package/dist/core/hf/du/index.js +16 -0
- package/dist/core/hf/du/index.js.map +1 -0
- package/dist/core/hf/du/size.d.ts +2 -0
- package/dist/core/hf/du/size.d.ts.map +1 -0
- package/dist/core/hf/du/size.js +17 -0
- package/dist/core/hf/du/size.js.map +1 -0
- package/dist/core/hf/exists.d.ts +2 -0
- package/dist/core/hf/exists.d.ts.map +1 -0
- package/dist/core/hf/exists.js +17 -0
- package/dist/core/hf/exists.js.map +1 -0
- package/dist/core/hf/find.d.ts +2 -0
- package/dist/core/hf/find.d.ts.map +1 -0
- package/dist/core/hf/find.js +17 -0
- package/dist/core/hf/find.js.map +1 -0
- package/dist/core/hf/mkdir.d.ts +2 -0
- package/dist/core/hf/mkdir.d.ts.map +1 -0
- package/dist/core/hf/mkdir.js +17 -0
- package/dist/core/hf/mkdir.js.map +1 -0
- package/dist/core/hf/mock.d.ts +34 -0
- package/dist/core/hf/mock.d.ts.map +1 -0
- package/dist/core/hf/mock.js +147 -0
- package/dist/core/hf/mock.js.map +1 -0
- package/dist/core/hf/read.d.ts +9 -0
- package/dist/core/hf/read.d.ts.map +1 -0
- package/dist/core/hf/read.js +53 -0
- package/dist/core/hf/read.js.map +1 -0
- package/dist/core/hf/readdir.d.ts +2 -0
- package/dist/core/hf/readdir.d.ts.map +1 -0
- package/dist/core/hf/readdir.js +17 -0
- package/dist/core/hf/readdir.js.map +1 -0
- package/dist/core/hf/rm.d.ts +2 -0
- package/dist/core/hf/rm.d.ts.map +1 -0
- package/dist/core/hf/rm.js +17 -0
- package/dist/core/hf/rm.js.map +1 -0
- package/dist/core/hf/stat.d.ts +2 -0
- package/dist/core/hf/stat.d.ts.map +1 -0
- package/dist/core/hf/stat.js +17 -0
- package/dist/core/hf/stat.js.map +1 -0
- package/dist/core/hf/stream.d.ts +6 -0
- package/dist/core/hf/stream.d.ts.map +1 -0
- package/dist/core/hf/stream.js +48 -0
- package/dist/core/hf/stream.js.map +1 -0
- package/dist/core/hf/unlink.d.ts +2 -0
- package/dist/core/hf/unlink.d.ts.map +1 -0
- package/dist/core/hf/unlink.js +17 -0
- package/dist/core/hf/unlink.js.map +1 -0
- package/dist/core/hf/util.d.ts +5 -0
- package/dist/core/hf/util.d.ts.map +1 -0
- package/dist/core/hf/util.js +30 -0
- package/dist/core/hf/util.js.map +1 -0
- package/dist/core/hf/watch.d.ts +12 -0
- package/dist/core/hf/watch.d.ts.map +1 -0
- package/dist/core/hf/watch.js +28 -0
- package/dist/core/hf/watch.js.map +1 -0
- package/dist/core/hf/write.d.ts +2 -0
- package/dist/core/hf/write.d.ts.map +1 -0
- package/dist/core/hf/write.js +17 -0
- package/dist/core/hf/write.js.map +1 -0
- package/dist/core/hf_hub/account.d.ts +4 -0
- package/dist/core/hf_hub/account.d.ts.map +1 -0
- package/dist/core/hf_hub/account.js +22 -0
- package/dist/core/hf_hub/account.js.map +1 -0
- package/dist/core/hf_hub/admin.d.ts +41 -0
- package/dist/core/hf_hub/admin.d.ts.map +1 -0
- package/dist/core/hf_hub/admin.js +98 -0
- package/dist/core/hf_hub/admin.js.map +1 -0
- package/dist/core/hf_hub/cache.d.ts +47 -0
- package/dist/core/hf_hub/cache.d.ts.map +1 -0
- package/dist/core/hf_hub/cache.js +81 -0
- package/dist/core/hf_hub/cache.js.map +1 -0
- package/dist/core/hf_hub/client.d.ts +81 -0
- package/dist/core/hf_hub/client.d.ts.map +1 -0
- package/dist/core/hf_hub/client.js +197 -0
- package/dist/core/hf_hub/client.js.map +1 -0
- package/dist/core/hf_hub/commit.d.ts +54 -0
- package/dist/core/hf_hub/commit.d.ts.map +1 -0
- package/dist/core/hf_hub/commit.js +124 -0
- package/dist/core/hf_hub/commit.js.map +1 -0
- package/dist/core/hf_hub/config.d.ts +18 -0
- package/dist/core/hf_hub/config.d.ts.map +1 -0
- package/dist/core/hf_hub/config.js +33 -0
- package/dist/core/hf_hub/config.js.map +1 -0
- package/dist/core/hf_hub/constants.d.ts +18 -0
- package/dist/core/hf_hub/constants.d.ts.map +1 -0
- package/dist/core/hf_hub/constants.js +80 -0
- package/dist/core/hf_hub/constants.js.map +1 -0
- package/dist/core/hf_hub/exists.d.ts +6 -0
- package/dist/core/hf_hub/exists.d.ts.map +1 -0
- package/dist/core/hf_hub/exists.js +25 -0
- package/dist/core/hf_hub/exists.js.map +1 -0
- package/dist/core/hf_hub/lookup.d.ts +33 -0
- package/dist/core/hf_hub/lookup.d.ts.map +1 -0
- package/dist/core/hf_hub/lookup.js +80 -0
- package/dist/core/hf_hub/lookup.js.map +1 -0
- package/dist/core/hf_hub/read.d.ts +18 -0
- package/dist/core/hf_hub/read.d.ts.map +1 -0
- package/dist/core/hf_hub/read.js +54 -0
- package/dist/core/hf_hub/read.js.map +1 -0
- package/dist/core/hf_hub/readdir.d.ts +10 -0
- package/dist/core/hf_hub/readdir.d.ts.map +1 -0
- package/dist/core/hf_hub/readdir.js +35 -0
- package/dist/core/hf_hub/readdir.js.map +1 -0
- package/dist/core/hf_hub/repo.d.ts +40 -0
- package/dist/core/hf_hub/repo.d.ts.map +1 -0
- package/dist/core/hf_hub/repo.js +80 -0
- package/dist/core/hf_hub/repo.js.map +1 -0
- package/dist/core/hf_hub/stat.d.ts +6 -0
- package/dist/core/hf_hub/stat.d.ts.map +1 -0
- package/dist/core/hf_hub/stat.js +66 -0
- package/dist/core/hf_hub/stat.js.map +1 -0
- package/dist/core/hf_hub/stream.d.ts +7 -0
- package/dist/core/hf_hub/stream.d.ts.map +1 -0
- package/dist/core/hf_hub/stream.js +32 -0
- package/dist/core/hf_hub/stream.js.map +1 -0
- package/dist/core/hf_hub/tree.d.ts +105 -0
- package/dist/core/hf_hub/tree.d.ts.map +1 -0
- package/dist/core/hf_hub/tree.js +334 -0
- package/dist/core/hf_hub/tree.js.map +1 -0
- package/dist/core/hf_hub/tree_entry.d.ts +31 -0
- package/dist/core/hf_hub/tree_entry.d.ts.map +1 -0
- package/dist/core/hf_hub/tree_entry.js +17 -0
- package/dist/core/hf_hub/tree_entry.js.map +1 -0
- package/dist/core/hf_hub/watch.d.ts +4 -0
- package/dist/core/hf_hub/watch.d.ts.map +1 -0
- package/dist/core/hf_hub/watch.js +63 -0
- package/dist/core/hf_hub/watch.js.map +1 -0
- package/dist/core/nextcloud/constants.d.ts +3 -0
- package/dist/core/nextcloud/constants.d.ts.map +1 -0
- package/dist/core/nextcloud/constants.js +3 -0
- package/dist/core/nextcloud/constants.js.map +1 -0
- package/dist/core/nextcloud/copy.d.ts +4 -0
- package/dist/core/nextcloud/copy.d.ts.map +1 -0
- package/dist/core/nextcloud/copy.js +16 -0
- package/dist/core/nextcloud/copy.js.map +1 -0
- package/dist/core/nextcloud/create.d.ts +5 -0
- package/dist/core/nextcloud/create.d.ts.map +1 -0
- package/dist/core/nextcloud/create.js +5 -0
- package/dist/core/nextcloud/create.js.map +1 -0
- package/dist/core/nextcloud/du/entries.d.ts +4 -0
- package/dist/core/nextcloud/du/entries.d.ts.map +1 -0
- package/dist/core/nextcloud/du/entries.js +36 -0
- package/dist/core/nextcloud/du/entries.js.map +1 -0
- package/dist/core/nextcloud/du/index.d.ts +3 -0
- package/dist/core/nextcloud/du/index.d.ts.map +1 -0
- package/dist/core/nextcloud/du/index.js +3 -0
- package/dist/core/nextcloud/du/index.js.map +1 -0
- package/dist/core/nextcloud/du/size.d.ts +4 -0
- package/dist/core/nextcloud/du/size.d.ts.map +1 -0
- package/dist/core/nextcloud/du/size.js +28 -0
- package/dist/core/nextcloud/du/size.js.map +1 -0
- package/dist/core/nextcloud/du/walk.d.ts +4 -0
- package/dist/core/nextcloud/du/walk.d.ts.map +1 -0
- package/dist/core/nextcloud/du/walk.js +12 -0
- package/dist/core/nextcloud/du/walk.js.map +1 -0
- package/dist/core/nextcloud/exists.d.ts +4 -0
- package/dist/core/nextcloud/exists.d.ts.map +1 -0
- package/dist/core/nextcloud/exists.js +13 -0
- package/dist/core/nextcloud/exists.js.map +1 -0
- package/dist/core/nextcloud/find.d.ts +5 -0
- package/dist/core/nextcloud/find.d.ts.map +1 -0
- package/dist/core/nextcloud/find.js +230 -0
- package/dist/core/nextcloud/find.js.map +1 -0
- package/dist/core/nextcloud/mkdir.d.ts +15 -0
- package/dist/core/nextcloud/mkdir.d.ts.map +1 -0
- package/dist/core/nextcloud/mkdir.js +22 -0
- package/dist/core/nextcloud/mkdir.js.map +1 -0
- package/dist/core/nextcloud/mock.d.ts +28 -0
- package/dist/core/nextcloud/mock.d.ts.map +1 -0
- package/dist/core/nextcloud/mock.js +117 -0
- package/dist/core/nextcloud/mock.js.map +1 -0
- package/dist/core/nextcloud/read.d.ts +9 -0
- package/dist/core/nextcloud/read.d.ts.map +1 -0
- package/dist/core/nextcloud/read.js +46 -0
- package/dist/core/nextcloud/read.js.map +1 -0
- package/dist/core/nextcloud/readdir.d.ts +5 -0
- package/dist/core/nextcloud/readdir.d.ts.map +1 -0
- package/dist/core/nextcloud/readdir.js +120 -0
- package/dist/core/nextcloud/readdir.js.map +1 -0
- package/dist/core/nextcloud/rename.d.ts +4 -0
- package/dist/core/nextcloud/rename.d.ts.map +1 -0
- package/dist/core/nextcloud/rename.js +17 -0
- package/dist/core/nextcloud/rename.js.map +1 -0
- package/dist/core/nextcloud/rm.d.ts +4 -0
- package/dist/core/nextcloud/rm.d.ts.map +1 -0
- package/dist/core/nextcloud/rm.js +18 -0
- package/dist/core/nextcloud/rm.js.map +1 -0
- package/dist/core/nextcloud/rmdir.d.ts +18 -0
- package/dist/core/nextcloud/rmdir.d.ts.map +1 -0
- package/dist/core/nextcloud/rmdir.js +39 -0
- package/dist/core/nextcloud/rmdir.js.map +1 -0
- package/dist/core/nextcloud/search/client.d.ts +5 -0
- package/dist/core/nextcloud/search/client.d.ts.map +1 -0
- package/dist/core/nextcloud/search/client.js +51 -0
- package/dist/core/nextcloud/search/client.js.map +1 -0
- package/dist/core/nextcloud/search/constants.d.ts +18 -0
- package/dist/core/nextcloud/search/constants.d.ts.map +1 -0
- package/dist/core/nextcloud/search/constants.js +38 -0
- package/dist/core/nextcloud/search/constants.js.map +1 -0
- package/dist/core/nextcloud/search/index.d.ts +4 -0
- package/dist/core/nextcloud/search/index.d.ts.map +1 -0
- package/dist/core/nextcloud/search/index.js +3 -0
- package/dist/core/nextcloud/search/index.js.map +1 -0
- package/dist/core/nextcloud/search/query.d.ts +6 -0
- package/dist/core/nextcloud/search/query.d.ts.map +1 -0
- package/dist/core/nextcloud/search/query.js +181 -0
- package/dist/core/nextcloud/search/query.js.map +1 -0
- package/dist/core/nextcloud/search/response.d.ts +3 -0
- package/dist/core/nextcloud/search/response.d.ts.map +1 -0
- package/dist/core/nextcloud/search/response.js +108 -0
- package/dist/core/nextcloud/search/response.js.map +1 -0
- package/dist/core/nextcloud/search/target.d.ts +6 -0
- package/dist/core/nextcloud/search/target.d.ts.map +1 -0
- package/dist/core/nextcloud/search/target.js +54 -0
- package/dist/core/nextcloud/search/target.js.map +1 -0
- package/dist/core/nextcloud/search/types.d.ts +49 -0
- package/dist/core/nextcloud/search/types.d.ts.map +1 -0
- package/dist/core/nextcloud/search/types.js +16 -0
- package/dist/core/nextcloud/search/types.js.map +1 -0
- package/dist/core/nextcloud/stat.d.ts +6 -0
- package/dist/core/nextcloud/stat.d.ts.map +1 -0
- package/dist/core/nextcloud/stat.js +78 -0
- package/dist/core/nextcloud/stat.js.map +1 -0
- package/dist/core/nextcloud/stream.d.ts +6 -0
- package/dist/core/nextcloud/stream.d.ts.map +1 -0
- package/dist/core/nextcloud/stream.js +32 -0
- package/dist/core/nextcloud/stream.js.map +1 -0
- package/dist/core/nextcloud/truncate.d.ts +4 -0
- package/dist/core/nextcloud/truncate.d.ts.map +1 -0
- package/dist/core/nextcloud/truncate.js +24 -0
- package/dist/core/nextcloud/truncate.js.map +1 -0
- package/dist/core/nextcloud/unlink.d.ts +4 -0
- package/dist/core/nextcloud/unlink.d.ts.map +1 -0
- package/dist/core/nextcloud/unlink.js +20 -0
- package/dist/core/nextcloud/unlink.js.map +1 -0
- package/dist/core/nextcloud/util.d.ts +5 -0
- package/dist/core/nextcloud/util.d.ts.map +1 -0
- package/dist/core/nextcloud/util.js +15 -0
- package/dist/core/nextcloud/util.js.map +1 -0
- package/dist/core/nextcloud/watch.d.ts +6 -0
- package/dist/core/nextcloud/watch.d.ts.map +1 -0
- package/dist/core/nextcloud/watch.js +22 -0
- package/dist/core/nextcloud/watch.js.map +1 -0
- package/dist/core/nextcloud/write.d.ts +5 -0
- package/dist/core/nextcloud/write.d.ts.map +1 -0
- package/dist/core/nextcloud/write.js +20 -0
- package/dist/core/nextcloud/write.js.map +1 -0
- package/dist/core/opendal/types.d.ts +5 -0
- package/dist/core/opendal/types.d.ts.map +1 -0
- package/dist/core/opendal/types.js +15 -0
- package/dist/core/opendal/types.js.map +1 -0
- package/dist/core/opendal/watch.d.ts +23 -0
- package/dist/core/opendal/watch.d.ts.map +1 -0
- package/dist/core/opendal/watch.js +96 -0
- package/dist/core/opendal/watch.js.map +1 -0
- package/dist/core/ssh/append.d.ts +4 -0
- package/dist/core/ssh/append.d.ts.map +1 -0
- package/dist/core/ssh/append.js +30 -0
- package/dist/core/ssh/append.js.map +1 -0
- package/dist/core/ssh/constants.d.ts +3 -0
- package/dist/core/ssh/constants.d.ts.map +1 -0
- package/dist/core/ssh/constants.js +16 -0
- package/dist/core/ssh/constants.js.map +1 -0
- package/dist/core/ssh/copy.d.ts +4 -0
- package/dist/core/ssh/copy.d.ts.map +1 -0
- package/dist/core/ssh/copy.js +20 -0
- package/dist/core/ssh/copy.js.map +1 -0
- package/dist/core/ssh/create.d.ts +4 -0
- package/dist/core/ssh/create.d.ts.map +1 -0
- package/dist/core/ssh/create.js +18 -0
- package/dist/core/ssh/create.js.map +1 -0
- package/dist/core/ssh/du/entries.d.ts +4 -0
- package/dist/core/ssh/du/entries.d.ts.map +1 -0
- package/dist/core/ssh/du/entries.js +25 -0
- package/dist/core/ssh/du/entries.js.map +1 -0
- package/dist/core/ssh/du/index.d.ts +3 -0
- package/dist/core/ssh/du/index.d.ts.map +1 -0
- package/dist/core/ssh/du/index.js +16 -0
- package/dist/core/ssh/du/index.js.map +1 -0
- package/dist/core/ssh/du/size.d.ts +4 -0
- package/dist/core/ssh/du/size.d.ts.map +1 -0
- package/dist/core/ssh/du/size.js +20 -0
- package/dist/core/ssh/du/size.js.map +1 -0
- package/dist/core/ssh/du/walk.d.ts +4 -0
- package/dist/core/ssh/du/walk.d.ts.map +1 -0
- package/dist/core/ssh/du/walk.js +105 -0
- package/dist/core/ssh/du/walk.js.map +1 -0
- package/dist/core/ssh/entry.d.ts +11 -0
- package/dist/core/ssh/entry.d.ts.map +1 -0
- package/dist/core/ssh/entry.js +61 -0
- package/dist/core/ssh/entry.js.map +1 -0
- package/dist/core/ssh/exists.d.ts +4 -0
- package/dist/core/ssh/exists.d.ts.map +1 -0
- package/dist/core/ssh/exists.js +24 -0
- package/dist/core/ssh/exists.js.map +1 -0
- package/dist/core/ssh/find.d.ts +21 -0
- package/dist/core/ssh/find.d.ts.map +1 -0
- package/dist/core/ssh/find.js +142 -0
- package/dist/core/ssh/find.js.map +1 -0
- package/dist/core/ssh/mkdir.d.ts +4 -0
- package/dist/core/ssh/mkdir.d.ts.map +1 -0
- package/dist/core/ssh/mkdir.js +76 -0
- package/dist/core/ssh/mkdir.js.map +1 -0
- package/dist/core/ssh/read.d.ts +21 -0
- package/dist/core/ssh/read.d.ts.map +1 -0
- package/dist/core/ssh/read.js +65 -0
- package/dist/core/ssh/read.js.map +1 -0
- package/dist/core/ssh/readdir.d.ts +4 -0
- package/dist/core/ssh/readdir.d.ts.map +1 -0
- package/dist/core/ssh/readdir.js +80 -0
- package/dist/core/ssh/readdir.js.map +1 -0
- package/dist/core/ssh/rename.d.ts +4 -0
- package/dist/core/ssh/rename.d.ts.map +1 -0
- package/dist/core/ssh/rename.js +50 -0
- package/dist/core/ssh/rename.js.map +1 -0
- package/dist/core/ssh/rm.d.ts +4 -0
- package/dist/core/ssh/rm.d.ts.map +1 -0
- package/dist/core/ssh/rm.js +86 -0
- package/dist/core/ssh/rm.js.map +1 -0
- package/dist/core/ssh/rmdir.d.ts +4 -0
- package/dist/core/ssh/rmdir.d.ts.map +1 -0
- package/dist/core/ssh/rmdir.js +69 -0
- package/dist/core/ssh/rmdir.js.map +1 -0
- package/dist/core/ssh/set_attrs.d.ts +11 -0
- package/dist/core/ssh/set_attrs.d.ts.map +1 -0
- package/dist/core/ssh/set_attrs.js +81 -0
- package/dist/core/ssh/set_attrs.js.map +1 -0
- package/dist/core/ssh/stat.d.ts +4 -0
- package/dist/core/ssh/stat.d.ts.map +1 -0
- package/dist/core/ssh/stat.js +40 -0
- package/dist/core/ssh/stat.js.map +1 -0
- package/dist/core/ssh/stream.d.ts +7 -0
- package/dist/core/ssh/stream.d.ts.map +1 -0
- package/dist/core/ssh/stream.js +83 -0
- package/dist/core/ssh/stream.js.map +1 -0
- package/dist/core/ssh/truncate.d.ts +4 -0
- package/dist/core/ssh/truncate.d.ts.map +1 -0
- package/dist/core/ssh/truncate.js +33 -0
- package/dist/core/ssh/truncate.js.map +1 -0
- package/dist/core/ssh/unlink.d.ts +4 -0
- package/dist/core/ssh/unlink.d.ts.map +1 -0
- package/dist/core/ssh/unlink.js +35 -0
- package/dist/core/ssh/unlink.js.map +1 -0
- package/dist/core/ssh/utils.d.ts +12 -0
- package/dist/core/ssh/utils.d.ts.map +1 -0
- package/dist/core/ssh/utils.js +63 -0
- package/dist/core/ssh/utils.js.map +1 -0
- package/dist/core/ssh/watch.d.ts +4 -0
- package/dist/core/ssh/watch.d.ts.map +1 -0
- package/dist/core/ssh/watch.js +89 -0
- package/dist/core/ssh/watch.js.map +1 -0
- package/dist/core/ssh/write.d.ts +4 -0
- package/dist/core/ssh/write.d.ts.map +1 -0
- package/dist/core/ssh/write.js +34 -0
- package/dist/core/ssh/write.js.map +1 -0
- package/dist/fs_monkey.d.ts +11 -0
- package/dist/fs_monkey.d.ts.map +1 -0
- package/dist/fs_monkey.js +187 -0
- package/dist/fs_monkey.js.map +1 -0
- package/dist/fuse/backend.d.ts +73 -0
- package/dist/fuse/backend.d.ts.map +1 -0
- package/dist/fuse/backend.js +170 -0
- package/dist/fuse/backend.js.map +1 -0
- package/dist/fuse/core.d.ts +157 -0
- package/dist/fuse/core.d.ts.map +1 -0
- package/dist/fuse/core.js +478 -0
- package/dist/fuse/core.js.map +1 -0
- package/dist/fuse/errors.d.ts +31 -0
- package/dist/fuse/errors.d.ts.map +1 -0
- package/dist/fuse/errors.js +102 -0
- package/dist/fuse/errors.js.map +1 -0
- package/dist/fuse/fs.d.ts +58 -0
- package/dist/fuse/fs.d.ts.map +1 -0
- package/dist/fuse/fs.js +280 -0
- package/dist/fuse/fs.js.map +1 -0
- package/dist/fuse/mount.d.ts +74 -0
- package/dist/fuse/mount.d.ts.map +1 -0
- package/dist/fuse/mount.js +180 -0
- package/dist/fuse/mount.js.map +1 -0
- package/dist/fuse/platform/macos.d.ts +2 -0
- package/dist/fuse/platform/macos.d.ts.map +1 -0
- package/dist/fuse/platform/macos.js +23 -0
- package/dist/fuse/platform/macos.js.map +1 -0
- package/dist/index.d.ts +199 -2923
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +208 -4624
- package/dist/index.js.map +1 -1
- package/dist/observe/disk_store.d.ts +17 -0
- package/dist/observe/disk_store.d.ts.map +1 -0
- package/dist/observe/disk_store.js +98 -0
- package/dist/observe/disk_store.js.map +1 -0
- package/dist/observe/redis_store.d.ts +28 -0
- package/dist/observe/redis_store.d.ts.map +1 -0
- package/dist/observe/redis_store.js +100 -0
- package/dist/observe/redis_store.js.map +1 -0
- package/dist/ops/disk/index.d.ts +3 -0
- package/dist/ops/disk/index.d.ts.map +1 -0
- package/dist/ops/disk/index.js +20 -0
- package/dist/ops/disk/index.js.map +1 -0
- package/dist/ops/email/index.d.ts +3 -0
- package/dist/ops/email/index.d.ts.map +1 -0
- package/dist/ops/email/index.js +18 -0
- package/dist/ops/email/index.js.map +1 -0
- package/dist/ops/gridfs/index.d.ts +3 -0
- package/dist/ops/gridfs/index.d.ts.map +1 -0
- package/dist/ops/gridfs/index.js +18 -0
- package/dist/ops/gridfs/index.js.map +1 -0
- package/dist/ops/hf/index.d.ts +3 -0
- package/dist/ops/hf/index.d.ts.map +1 -0
- package/dist/ops/hf/index.js +18 -0
- package/dist/ops/hf/index.js.map +1 -0
- package/dist/ops/hf_hub/index.d.ts +3 -0
- package/dist/ops/hf_hub/index.d.ts.map +1 -0
- package/dist/ops/hf_hub/index.js +18 -0
- package/dist/ops/hf_hub/index.js.map +1 -0
- package/dist/ops/nextcloud/index.d.ts +3 -0
- package/dist/ops/nextcloud/index.d.ts.map +1 -0
- package/dist/ops/nextcloud/index.js +5 -0
- package/dist/ops/nextcloud/index.js.map +1 -0
- package/dist/ops/ssh/index.d.ts +3 -0
- package/dist/ops/ssh/index.d.ts.map +1 -0
- package/dist/ops/ssh/index.js +20 -0
- package/dist/ops/ssh/index.js.map +1 -0
- package/dist/optional_peer.d.ts +2 -0
- package/dist/optional_peer.d.ts.map +1 -0
- package/dist/optional_peer.js +15 -0
- package/dist/optional_peer.js.map +1 -0
- package/dist/resource/aliyun/aliyun.d.ts +8 -0
- package/dist/resource/aliyun/aliyun.d.ts.map +1 -0
- package/dist/resource/aliyun/aliyun.js +24 -0
- package/dist/resource/aliyun/aliyun.js.map +1 -0
- package/dist/resource/aliyun/config.d.ts +10 -0
- package/dist/resource/aliyun/config.d.ts.map +1 -0
- package/dist/resource/aliyun/config.js +20 -0
- package/dist/resource/aliyun/config.js.map +1 -0
- package/dist/resource/aliyun/prompt.d.ts +2 -0
- package/dist/resource/aliyun/prompt.d.ts.map +1 -0
- package/dist/resource/aliyun/prompt.js +19 -0
- package/dist/resource/aliyun/prompt.js.map +1 -0
- package/dist/resource/backblaze/backblaze.d.ts +8 -0
- package/dist/resource/backblaze/backblaze.d.ts.map +1 -0
- package/dist/resource/backblaze/backblaze.js +24 -0
- package/dist/resource/backblaze/backblaze.js.map +1 -0
- package/dist/resource/backblaze/config.d.ts +10 -0
- package/dist/resource/backblaze/config.d.ts.map +1 -0
- package/dist/resource/backblaze/config.js +20 -0
- package/dist/resource/backblaze/config.js.map +1 -0
- package/dist/resource/backblaze/prompt.d.ts +2 -0
- package/dist/resource/backblaze/prompt.d.ts.map +1 -0
- package/dist/resource/backblaze/prompt.js +19 -0
- package/dist/resource/backblaze/prompt.js.map +1 -0
- package/dist/resource/box/box.d.ts +34 -0
- package/dist/resource/box/box.d.ts.map +1 -0
- package/dist/resource/box/box.js +99 -0
- package/dist/resource/box/box.js.map +1 -0
- package/dist/resource/box/config.d.ts +43 -0
- package/dist/resource/box/config.d.ts.map +1 -0
- package/dist/resource/box/config.js +39 -0
- package/dist/resource/box/config.js.map +1 -0
- package/dist/resource/ceph/ceph.d.ts +8 -0
- package/dist/resource/ceph/ceph.d.ts.map +1 -0
- package/dist/resource/ceph/ceph.js +24 -0
- package/dist/resource/ceph/ceph.js.map +1 -0
- package/dist/resource/ceph/config.d.ts +9 -0
- package/dist/resource/ceph/config.d.ts.map +1 -0
- package/dist/resource/ceph/config.js +19 -0
- package/dist/resource/ceph/config.js.map +1 -0
- package/dist/resource/ceph/prompt.d.ts +2 -0
- package/dist/resource/ceph/prompt.d.ts.map +1 -0
- package/dist/resource/ceph/prompt.js +19 -0
- package/dist/resource/ceph/prompt.js.map +1 -0
- package/dist/resource/databricks_volume/config.d.ts +3 -0
- package/dist/resource/databricks_volume/config.d.ts.map +1 -0
- package/dist/resource/databricks_volume/config.js +15 -0
- package/dist/resource/databricks_volume/config.js.map +1 -0
- package/dist/resource/databricks_volume/databricks_volume.d.ts +45 -0
- package/dist/resource/databricks_volume/databricks_volume.d.ts.map +1 -0
- package/dist/resource/databricks_volume/databricks_volume.js +186 -0
- package/dist/resource/databricks_volume/databricks_volume.js.map +1 -0
- package/dist/resource/databricks_volume/profile.d.ts +7 -0
- package/dist/resource/databricks_volume/profile.d.ts.map +1 -0
- package/dist/resource/databricks_volume/profile.js +55 -0
- package/dist/resource/databricks_volume/profile.js.map +1 -0
- package/dist/resource/digitalocean/config.d.ts +10 -0
- package/dist/resource/digitalocean/config.d.ts.map +1 -0
- package/dist/resource/digitalocean/config.js +20 -0
- package/dist/resource/digitalocean/config.js.map +1 -0
- package/dist/resource/digitalocean/digitalocean.d.ts +8 -0
- package/dist/resource/digitalocean/digitalocean.d.ts.map +1 -0
- package/dist/resource/digitalocean/digitalocean.js +24 -0
- package/dist/resource/digitalocean/digitalocean.js.map +1 -0
- package/dist/resource/digitalocean/prompt.d.ts +2 -0
- package/dist/resource/digitalocean/prompt.d.ts.map +1 -0
- package/dist/resource/digitalocean/prompt.js +19 -0
- package/dist/resource/digitalocean/prompt.js.map +1 -0
- package/dist/resource/discord/discord.d.ts +33 -0
- package/dist/resource/discord/discord.d.ts.map +1 -0
- package/dist/resource/discord/discord.js +87 -0
- package/dist/resource/discord/discord.js.map +1 -0
- package/dist/resource/disk/disk.d.ts +55 -0
- package/dist/resource/disk/disk.d.ts.map +1 -0
- package/dist/resource/disk/disk.js +218 -0
- package/dist/resource/disk/disk.js.map +1 -0
- package/dist/resource/disk/prompt.d.ts +2 -0
- package/dist/resource/disk/prompt.d.ts.map +1 -0
- package/dist/resource/disk/prompt.js +17 -0
- package/dist/resource/disk/prompt.js.map +1 -0
- package/dist/resource/dropbox/config.d.ts +34 -0
- package/dist/resource/dropbox/config.d.ts.map +1 -0
- package/dist/resource/dropbox/config.js +31 -0
- package/dist/resource/dropbox/config.js.map +1 -0
- package/dist/resource/dropbox/dropbox.d.ts +34 -0
- package/dist/resource/dropbox/dropbox.d.ts.map +1 -0
- package/dist/resource/dropbox/dropbox.js +95 -0
- package/dist/resource/dropbox/dropbox.js.map +1 -0
- package/dist/resource/email/email.d.ts +33 -0
- package/dist/resource/email/email.d.ts.map +1 -0
- package/dist/resource/email/email.js +89 -0
- package/dist/resource/email/email.js.map +1 -0
- package/dist/resource/email/index.d.ts +3 -0
- package/dist/resource/email/index.d.ts.map +1 -0
- package/dist/resource/email/index.js +16 -0
- package/dist/resource/email/index.js.map +1 -0
- package/dist/resource/email/prompt.d.ts +3 -0
- package/dist/resource/email/prompt.d.ts.map +1 -0
- package/dist/resource/email/prompt.js +26 -0
- package/dist/resource/email/prompt.js.map +1 -0
- package/dist/resource/gcal/gcal.d.ts +32 -0
- package/dist/resource/gcal/gcal.d.ts.map +1 -0
- package/dist/resource/gcal/gcal.js +87 -0
- package/dist/resource/gcal/gcal.js.map +1 -0
- package/dist/resource/gcs/config.d.ts +36 -0
- package/dist/resource/gcs/config.d.ts.map +1 -0
- package/dist/resource/gcs/config.js +55 -0
- package/dist/resource/gcs/config.js.map +1 -0
- package/dist/resource/gcs/gcs.d.ts +8 -0
- package/dist/resource/gcs/gcs.d.ts.map +1 -0
- package/dist/resource/gcs/gcs.js +24 -0
- package/dist/resource/gcs/gcs.js.map +1 -0
- package/dist/resource/gcs/prompt.d.ts +2 -0
- package/dist/resource/gcs/prompt.d.ts.map +1 -0
- package/dist/resource/gcs/prompt.js +19 -0
- package/dist/resource/gcs/prompt.js.map +1 -0
- package/dist/resource/gdocs/gdocs.d.ts +32 -0
- package/dist/resource/gdocs/gdocs.d.ts.map +1 -0
- package/dist/resource/gdocs/gdocs.js +84 -0
- package/dist/resource/gdocs/gdocs.js.map +1 -0
- package/dist/resource/gdrive/gdrive.d.ts +34 -0
- package/dist/resource/gdrive/gdrive.d.ts.map +1 -0
- package/dist/resource/gdrive/gdrive.js +89 -0
- package/dist/resource/gdrive/gdrive.js.map +1 -0
- package/dist/resource/github/github.d.ts +37 -0
- package/dist/resource/github/github.d.ts.map +1 -0
- package/dist/resource/github/github.js +119 -0
- package/dist/resource/github/github.js.map +1 -0
- package/dist/resource/gmail/gmail.d.ts +33 -0
- package/dist/resource/gmail/gmail.d.ts.map +1 -0
- package/dist/resource/gmail/gmail.js +88 -0
- package/dist/resource/gmail/gmail.js.map +1 -0
- package/dist/resource/gridfs/config.d.ts +20 -0
- package/dist/resource/gridfs/config.d.ts.map +1 -0
- package/dist/resource/gridfs/config.js +42 -0
- package/dist/resource/gridfs/config.js.map +1 -0
- package/dist/resource/gridfs/gridfs.d.ts +50 -0
- package/dist/resource/gridfs/gridfs.d.ts.map +1 -0
- package/dist/resource/gridfs/gridfs.js +190 -0
- package/dist/resource/gridfs/gridfs.js.map +1 -0
- package/dist/resource/gridfs/prompt.d.ts +2 -0
- package/dist/resource/gridfs/prompt.d.ts.map +1 -0
- package/dist/resource/gridfs/prompt.js +19 -0
- package/dist/resource/gridfs/prompt.js.map +1 -0
- package/dist/resource/gsheets/gsheets.d.ts +32 -0
- package/dist/resource/gsheets/gsheets.d.ts.map +1 -0
- package/dist/resource/gsheets/gsheets.js +84 -0
- package/dist/resource/gsheets/gsheets.js.map +1 -0
- package/dist/resource/gslides/gslides.d.ts +32 -0
- package/dist/resource/gslides/gslides.d.ts.map +1 -0
- package/dist/resource/gslides/gslides.js +84 -0
- package/dist/resource/gslides/gslides.js.map +1 -0
- package/dist/resource/hf_buckets/base.d.ts +34 -0
- package/dist/resource/hf_buckets/base.d.ts.map +1 -0
- package/dist/resource/hf_buckets/base.js +117 -0
- package/dist/resource/hf_buckets/base.js.map +1 -0
- package/dist/resource/hf_buckets/config.d.ts +58 -0
- package/dist/resource/hf_buckets/config.d.ts.map +1 -0
- package/dist/resource/hf_buckets/config.js +89 -0
- package/dist/resource/hf_buckets/config.js.map +1 -0
- package/dist/resource/hf_buckets/hf_buckets.d.ts +16 -0
- package/dist/resource/hf_buckets/hf_buckets.d.ts.map +1 -0
- package/dist/resource/hf_buckets/hf_buckets.js +46 -0
- package/dist/resource/hf_buckets/hf_buckets.js.map +1 -0
- package/dist/resource/hf_buckets/prompt.d.ts +2 -0
- package/dist/resource/hf_buckets/prompt.d.ts.map +1 -0
- package/dist/resource/hf_buckets/prompt.js +18 -0
- package/dist/resource/hf_buckets/prompt.js.map +1 -0
- package/dist/resource/hf_datasets/hf_datasets.d.ts +16 -0
- package/dist/resource/hf_datasets/hf_datasets.d.ts.map +1 -0
- package/dist/resource/hf_datasets/hf_datasets.js +46 -0
- package/dist/resource/hf_datasets/hf_datasets.js.map +1 -0
- package/dist/resource/hf_datasets/prompt.d.ts +2 -0
- package/dist/resource/hf_datasets/prompt.d.ts.map +1 -0
- package/dist/resource/hf_datasets/prompt.js +18 -0
- package/dist/resource/hf_datasets/prompt.js.map +1 -0
- package/dist/resource/hf_hub/base.d.ts +43 -0
- package/dist/resource/hf_hub/base.d.ts.map +1 -0
- package/dist/resource/hf_hub/base.js +111 -0
- package/dist/resource/hf_hub/base.js.map +1 -0
- package/dist/resource/hf_models/config.d.ts +6 -0
- package/dist/resource/hf_models/config.d.ts.map +1 -0
- package/dist/resource/hf_models/config.js +17 -0
- package/dist/resource/hf_models/config.js.map +1 -0
- package/dist/resource/hf_models/hf_models.d.ts +16 -0
- package/dist/resource/hf_models/hf_models.d.ts.map +1 -0
- package/dist/resource/hf_models/hf_models.js +46 -0
- package/dist/resource/hf_models/hf_models.js.map +1 -0
- package/dist/resource/hf_models/prompt.d.ts +2 -0
- package/dist/resource/hf_models/prompt.d.ts.map +1 -0
- package/dist/resource/hf_models/prompt.js +18 -0
- package/dist/resource/hf_models/prompt.js.map +1 -0
- package/dist/resource/hf_spaces/hf_spaces.d.ts +16 -0
- package/dist/resource/hf_spaces/hf_spaces.d.ts.map +1 -0
- package/dist/resource/hf_spaces/hf_spaces.js +46 -0
- package/dist/resource/hf_spaces/hf_spaces.js.map +1 -0
- package/dist/resource/hf_spaces/prompt.d.ts +2 -0
- package/dist/resource/hf_spaces/prompt.d.ts.map +1 -0
- package/dist/resource/hf_spaces/prompt.js +18 -0
- package/dist/resource/hf_spaces/prompt.js.map +1 -0
- package/dist/resource/jaeger/config.d.ts +15 -0
- package/dist/resource/jaeger/config.d.ts.map +1 -0
- package/dist/resource/jaeger/config.js +28 -0
- package/dist/resource/jaeger/config.js.map +1 -0
- package/dist/resource/jaeger/jaeger.d.ts +32 -0
- package/dist/resource/jaeger/jaeger.d.ts.map +1 -0
- package/dist/resource/jaeger/jaeger.js +101 -0
- package/dist/resource/jaeger/jaeger.js.map +1 -0
- package/dist/resource/lancedb/lancedb.d.ts +37 -0
- package/dist/resource/lancedb/lancedb.d.ts.map +1 -0
- package/dist/resource/lancedb/lancedb.js +85 -0
- package/dist/resource/lancedb/lancedb.js.map +1 -0
- package/dist/resource/lancedb/store.d.ts +29 -0
- package/dist/resource/lancedb/store.d.ts.map +1 -0
- package/dist/resource/lancedb/store.js +159 -0
- package/dist/resource/lancedb/store.js.map +1 -0
- package/dist/resource/langfuse/config.d.ts +16 -0
- package/dist/resource/langfuse/config.d.ts.map +1 -0
- package/dist/resource/langfuse/config.js +29 -0
- package/dist/resource/langfuse/config.js.map +1 -0
- package/dist/resource/langfuse/langfuse.d.ts +31 -0
- package/dist/resource/langfuse/langfuse.d.ts.map +1 -0
- package/dist/resource/langfuse/langfuse.js +98 -0
- package/dist/resource/langfuse/langfuse.js.map +1 -0
- package/dist/resource/linear/linear.d.ts +33 -0
- package/dist/resource/linear/linear.d.ts.map +1 -0
- package/dist/resource/linear/linear.js +93 -0
- package/dist/resource/linear/linear.js.map +1 -0
- package/dist/resource/loader.d.ts +46 -0
- package/dist/resource/loader.d.ts.map +1 -0
- package/dist/resource/loader.js +127 -0
- package/dist/resource/loader.js.map +1 -0
- package/dist/resource/minio/config.d.ts +9 -0
- package/dist/resource/minio/config.d.ts.map +1 -0
- package/dist/resource/minio/config.js +19 -0
- package/dist/resource/minio/config.js.map +1 -0
- package/dist/resource/minio/minio.d.ts +8 -0
- package/dist/resource/minio/minio.d.ts.map +1 -0
- package/dist/resource/minio/minio.js +24 -0
- package/dist/resource/minio/minio.js.map +1 -0
- package/dist/resource/minio/prompt.d.ts +2 -0
- package/dist/resource/minio/prompt.d.ts.map +1 -0
- package/dist/resource/minio/prompt.js +19 -0
- package/dist/resource/minio/prompt.js.map +1 -0
- package/dist/resource/mongodb/mongodb.d.ts +39 -0
- package/dist/resource/mongodb/mongodb.d.ts.map +1 -0
- package/dist/resource/mongodb/mongodb.js +100 -0
- package/dist/resource/mongodb/mongodb.js.map +1 -0
- package/dist/resource/mongodb/store.d.ts +71 -0
- package/dist/resource/mongodb/store.d.ts.map +1 -0
- package/dist/resource/mongodb/store.js +148 -0
- package/dist/resource/mongodb/store.js.map +1 -0
- package/dist/resource/nextcloud/config.d.ts +14 -0
- package/dist/resource/nextcloud/config.d.ts.map +1 -0
- package/dist/resource/nextcloud/config.js +17 -0
- package/dist/resource/nextcloud/config.js.map +1 -0
- package/dist/resource/nextcloud/nextcloud.d.ts +48 -0
- package/dist/resource/nextcloud/nextcloud.d.ts.map +1 -0
- package/dist/resource/nextcloud/nextcloud.js +157 -0
- package/dist/resource/nextcloud/nextcloud.js.map +1 -0
- package/dist/resource/nextcloud/prompt.d.ts +2 -0
- package/dist/resource/nextcloud/prompt.d.ts.map +1 -0
- package/dist/resource/nextcloud/prompt.js +2 -0
- package/dist/resource/nextcloud/prompt.js.map +1 -0
- package/dist/resource/notion/notion.d.ts +32 -0
- package/dist/resource/notion/notion.d.ts.map +1 -0
- package/dist/resource/notion/notion.js +90 -0
- package/dist/resource/notion/notion.js.map +1 -0
- package/dist/resource/oci/config.d.ts +37 -0
- package/dist/resource/oci/config.d.ts.map +1 -0
- package/dist/resource/oci/config.js +60 -0
- package/dist/resource/oci/config.js.map +1 -0
- package/dist/resource/oci/oci.d.ts +8 -0
- package/dist/resource/oci/oci.d.ts.map +1 -0
- package/dist/resource/oci/oci.js +24 -0
- package/dist/resource/oci/oci.js.map +1 -0
- package/dist/resource/oci/prompt.d.ts +2 -0
- package/dist/resource/oci/prompt.d.ts.map +1 -0
- package/dist/resource/oci/prompt.js +19 -0
- package/dist/resource/oci/prompt.js.map +1 -0
- package/dist/resource/postgres/postgres.d.ts +39 -0
- package/dist/resource/postgres/postgres.d.ts.map +1 -0
- package/dist/resource/postgres/postgres.js +98 -0
- package/dist/resource/postgres/postgres.js.map +1 -0
- package/dist/resource/postgres/store.d.ts +21 -0
- package/dist/resource/postgres/store.d.ts.map +1 -0
- package/dist/resource/postgres/store.js +53 -0
- package/dist/resource/postgres/store.js.map +1 -0
- package/dist/resource/qingstor/config.d.ts +10 -0
- package/dist/resource/qingstor/config.d.ts.map +1 -0
- package/dist/resource/qingstor/config.js +20 -0
- package/dist/resource/qingstor/config.js.map +1 -0
- package/dist/resource/qingstor/prompt.d.ts +2 -0
- package/dist/resource/qingstor/prompt.d.ts.map +1 -0
- package/dist/resource/qingstor/prompt.js +19 -0
- package/dist/resource/qingstor/prompt.js.map +1 -0
- package/dist/resource/qingstor/qingstor.d.ts +8 -0
- package/dist/resource/qingstor/qingstor.d.ts.map +1 -0
- package/dist/resource/qingstor/qingstor.js +24 -0
- package/dist/resource/qingstor/qingstor.js.map +1 -0
- package/dist/resource/r2/config.d.ts +37 -0
- package/dist/resource/r2/config.d.ts.map +1 -0
- package/dist/resource/r2/config.js +63 -0
- package/dist/resource/r2/config.js.map +1 -0
- package/dist/resource/r2/prompt.d.ts +2 -0
- package/dist/resource/r2/prompt.d.ts.map +1 -0
- package/dist/resource/r2/prompt.js +19 -0
- package/dist/resource/r2/prompt.js.map +1 -0
- package/dist/resource/r2/r2.d.ts +8 -0
- package/dist/resource/r2/r2.d.ts.map +1 -0
- package/dist/resource/r2/r2.js +24 -0
- package/dist/resource/r2/r2.js.map +1 -0
- package/dist/resource/redis/redis.d.ts +30 -0
- package/dist/resource/redis/redis.d.ts.map +1 -0
- package/dist/resource/redis/redis.js +37 -0
- package/dist/resource/redis/redis.js.map +1 -0
- package/dist/resource/redis/store.d.ts +63 -0
- package/dist/resource/redis/store.d.ts.map +1 -0
- package/dist/resource/redis/store.js +243 -0
- package/dist/resource/redis/store.js.map +1 -0
- package/dist/resource/registry.d.ts +42 -0
- package/dist/resource/registry.d.ts.map +1 -0
- package/dist/resource/registry.js +405 -0
- package/dist/resource/registry.js.map +1 -0
- package/dist/resource/s3/config.d.ts +36 -0
- package/dist/resource/s3/config.d.ts.map +1 -0
- package/dist/resource/s3/config.js +61 -0
- package/dist/resource/s3/config.js.map +1 -0
- package/dist/resource/s3/mock.d.ts +17 -0
- package/dist/resource/s3/mock.d.ts.map +1 -0
- package/dist/resource/s3/mock.js +214 -0
- package/dist/resource/s3/mock.js.map +1 -0
- package/dist/resource/s3/s3.d.ts +50 -0
- package/dist/resource/s3/s3.d.ts.map +1 -0
- package/dist/resource/s3/s3.js +201 -0
- package/dist/resource/s3/s3.js.map +1 -0
- package/dist/resource/s3_alias.d.ts +112 -0
- package/dist/resource/s3_alias.d.ts.map +1 -0
- package/dist/resource/s3_alias.js +155 -0
- package/dist/resource/s3_alias.js.map +1 -0
- package/dist/resource/scaleway/config.d.ts +10 -0
- package/dist/resource/scaleway/config.d.ts.map +1 -0
- package/dist/resource/scaleway/config.js +20 -0
- package/dist/resource/scaleway/config.js.map +1 -0
- package/dist/resource/scaleway/prompt.d.ts +2 -0
- package/dist/resource/scaleway/prompt.d.ts.map +1 -0
- package/dist/resource/scaleway/prompt.js +19 -0
- package/dist/resource/scaleway/prompt.js.map +1 -0
- package/dist/resource/scaleway/scaleway.d.ts +8 -0
- package/dist/resource/scaleway/scaleway.d.ts.map +1 -0
- package/dist/resource/scaleway/scaleway.js +24 -0
- package/dist/resource/scaleway/scaleway.js.map +1 -0
- package/dist/resource/seaweedfs/config.d.ts +9 -0
- package/dist/resource/seaweedfs/config.d.ts.map +1 -0
- package/dist/resource/seaweedfs/config.js +19 -0
- package/dist/resource/seaweedfs/config.js.map +1 -0
- package/dist/resource/seaweedfs/prompt.d.ts +2 -0
- package/dist/resource/seaweedfs/prompt.d.ts.map +1 -0
- package/dist/resource/seaweedfs/prompt.js +19 -0
- package/dist/resource/seaweedfs/prompt.js.map +1 -0
- package/dist/resource/seaweedfs/seaweedfs.d.ts +8 -0
- package/dist/resource/seaweedfs/seaweedfs.d.ts.map +1 -0
- package/dist/resource/seaweedfs/seaweedfs.js +24 -0
- package/dist/resource/seaweedfs/seaweedfs.js.map +1 -0
- package/dist/resource/slack/slack.d.ts +33 -0
- package/dist/resource/slack/slack.d.ts.map +1 -0
- package/dist/resource/slack/slack.js +88 -0
- package/dist/resource/slack/slack.js.map +1 -0
- package/dist/resource/ssh/config.d.ts +20 -0
- package/dist/resource/ssh/config.d.ts.map +1 -0
- package/dist/resource/ssh/config.js +33 -0
- package/dist/resource/ssh/config.js.map +1 -0
- package/dist/resource/ssh/prompt.d.ts +2 -0
- package/dist/resource/ssh/prompt.d.ts.map +1 -0
- package/dist/resource/ssh/prompt.js +18 -0
- package/dist/resource/ssh/prompt.js.map +1 -0
- package/dist/resource/ssh/ssh.d.ts +51 -0
- package/dist/resource/ssh/ssh.d.ts.map +1 -0
- package/dist/resource/ssh/ssh.js +169 -0
- package/dist/resource/ssh/ssh.js.map +1 -0
- package/dist/resource/supabase/config.d.ts +38 -0
- package/dist/resource/supabase/config.d.ts.map +1 -0
- package/dist/resource/supabase/config.js +63 -0
- package/dist/resource/supabase/config.js.map +1 -0
- package/dist/resource/supabase/prompt.d.ts +2 -0
- package/dist/resource/supabase/prompt.d.ts.map +1 -0
- package/dist/resource/supabase/prompt.js +19 -0
- package/dist/resource/supabase/prompt.js.map +1 -0
- package/dist/resource/supabase/supabase.d.ts +8 -0
- package/dist/resource/supabase/supabase.d.ts.map +1 -0
- package/dist/resource/supabase/supabase.js +24 -0
- package/dist/resource/supabase/supabase.js.map +1 -0
- package/dist/resource/tencent/config.d.ts +10 -0
- package/dist/resource/tencent/config.d.ts.map +1 -0
- package/dist/resource/tencent/config.js +20 -0
- package/dist/resource/tencent/config.js.map +1 -0
- package/dist/resource/tencent/prompt.d.ts +2 -0
- package/dist/resource/tencent/prompt.d.ts.map +1 -0
- package/dist/resource/tencent/prompt.js +19 -0
- package/dist/resource/tencent/prompt.js.map +1 -0
- package/dist/resource/tencent/tencent.d.ts +8 -0
- package/dist/resource/tencent/tencent.d.ts.map +1 -0
- package/dist/resource/tencent/tencent.js +24 -0
- package/dist/resource/tencent/tencent.js.map +1 -0
- package/dist/resource/trello/config.d.ts +15 -0
- package/dist/resource/trello/config.d.ts.map +1 -0
- package/dist/resource/trello/config.js +28 -0
- package/dist/resource/trello/config.js.map +1 -0
- package/dist/resource/trello/trello.d.ts +32 -0
- package/dist/resource/trello/trello.d.ts.map +1 -0
- package/dist/resource/trello/trello.js +94 -0
- package/dist/resource/trello/trello.js.map +1 -0
- package/dist/resource/wasabi/config.d.ts +36 -0
- package/dist/resource/wasabi/config.d.ts.map +1 -0
- package/dist/resource/wasabi/config.js +60 -0
- package/dist/resource/wasabi/config.js.map +1 -0
- package/dist/resource/wasabi/prompt.d.ts +2 -0
- package/dist/resource/wasabi/prompt.d.ts.map +1 -0
- package/dist/resource/wasabi/prompt.js +19 -0
- package/dist/resource/wasabi/prompt.js.map +1 -0
- package/dist/resource/wasabi/wasabi.d.ts +8 -0
- package/dist/resource/wasabi/wasabi.d.ts.map +1 -0
- package/dist/resource/wasabi/wasabi.js +24 -0
- package/dist/resource/wasabi/wasabi.js.map +1 -0
- package/dist/runtime/python/local.d.ts +23 -0
- package/dist/runtime/python/local.d.ts.map +1 -0
- package/dist/runtime/python/local.js +98 -0
- package/dist/runtime/python/local.js.map +1 -0
- package/dist/runtime/sandbox/daytona/config.d.ts +14 -0
- package/dist/runtime/sandbox/daytona/config.d.ts.map +1 -0
- package/dist/runtime/sandbox/daytona/config.js +15 -0
- package/dist/runtime/sandbox/daytona/config.js.map +1 -0
- package/dist/runtime/sandbox/daytona/runtime.d.ts +28 -0
- package/dist/runtime/sandbox/daytona/runtime.d.ts.map +1 -0
- package/dist/runtime/sandbox/daytona/runtime.js +89 -0
- package/dist/runtime/sandbox/daytona/runtime.js.map +1 -0
- package/dist/runtime/sandbox/docker/config.d.ts +13 -0
- package/dist/runtime/sandbox/docker/config.d.ts.map +1 -0
- package/dist/runtime/sandbox/docker/config.js +15 -0
- package/dist/runtime/sandbox/docker/config.js.map +1 -0
- package/dist/runtime/sandbox/docker/constants.d.ts +2 -0
- package/dist/runtime/sandbox/docker/constants.d.ts.map +1 -0
- package/dist/runtime/sandbox/docker/constants.js +15 -0
- package/dist/runtime/sandbox/docker/constants.js.map +1 -0
- package/dist/runtime/sandbox/docker/runtime.d.ts +27 -0
- package/dist/runtime/sandbox/docker/runtime.d.ts.map +1 -0
- package/dist/runtime/sandbox/docker/runtime.js +95 -0
- package/dist/runtime/sandbox/docker/runtime.js.map +1 -0
- package/dist/runtime/sandbox/e2b/config.d.ts +13 -0
- package/dist/runtime/sandbox/e2b/config.d.ts.map +1 -0
- package/dist/runtime/sandbox/e2b/config.js +15 -0
- package/dist/runtime/sandbox/e2b/config.js.map +1 -0
- package/dist/runtime/sandbox/e2b/runtime.d.ts +27 -0
- package/dist/runtime/sandbox/e2b/runtime.d.ts.map +1 -0
- package/dist/runtime/sandbox/e2b/runtime.js +93 -0
- package/dist/runtime/sandbox/e2b/runtime.js.map +1 -0
- package/dist/runtime/sandbox/smolvm/config.d.ts +15 -0
- package/dist/runtime/sandbox/smolvm/config.d.ts.map +1 -0
- package/dist/runtime/sandbox/smolvm/config.js +15 -0
- package/dist/runtime/sandbox/smolvm/config.js.map +1 -0
- package/dist/runtime/sandbox/smolvm/constants.d.ts +11 -0
- package/dist/runtime/sandbox/smolvm/constants.d.ts.map +1 -0
- package/dist/runtime/sandbox/smolvm/constants.js +39 -0
- package/dist/runtime/sandbox/smolvm/constants.js.map +1 -0
- package/dist/runtime/sandbox/smolvm/runtime.d.ts +39 -0
- package/dist/runtime/sandbox/smolvm/runtime.d.ts.map +1 -0
- package/dist/runtime/sandbox/smolvm/runtime.js +111 -0
- package/dist/runtime/sandbox/smolvm/runtime.js.map +1 -0
- package/dist/runtime/sandbox/ssh/config.d.ts +25 -0
- package/dist/runtime/sandbox/ssh/config.d.ts.map +1 -0
- package/dist/runtime/sandbox/ssh/config.js +23 -0
- package/dist/runtime/sandbox/ssh/config.js.map +1 -0
- package/dist/runtime/sandbox/ssh/constants.d.ts +12 -0
- package/dist/runtime/sandbox/ssh/constants.d.ts.map +1 -0
- package/dist/runtime/sandbox/ssh/constants.js +32 -0
- package/dist/runtime/sandbox/ssh/constants.js.map +1 -0
- package/dist/runtime/sandbox/ssh/runtime.d.ts +40 -0
- package/dist/runtime/sandbox/ssh/runtime.d.ts.map +1 -0
- package/dist/runtime/sandbox/ssh/runtime.js +139 -0
- package/dist/runtime/sandbox/ssh/runtime.js.map +1 -0
- package/dist/secrets/aws.d.ts +22 -0
- package/dist/secrets/aws.d.ts.map +1 -0
- package/dist/secrets/aws.js +80 -0
- package/dist/secrets/aws.js.map +1 -0
- package/dist/secrets/config.d.ts +39 -0
- package/dist/secrets/config.d.ts.map +1 -0
- package/dist/secrets/config.js +95 -0
- package/dist/secrets/config.js.map +1 -0
- package/dist/secrets/constants.d.ts +3 -0
- package/dist/secrets/constants.d.ts.map +1 -0
- package/dist/secrets/constants.js +58 -0
- package/dist/secrets/constants.js.map +1 -0
- package/dist/secrets/dotenv.d.ts +13 -0
- package/dist/secrets/dotenv.d.ts.map +1 -0
- package/dist/secrets/dotenv.js +40 -0
- package/dist/secrets/dotenv.js.map +1 -0
- package/dist/secrets/env.d.ts +10 -0
- package/dist/secrets/env.d.ts.map +1 -0
- package/dist/secrets/env.js +32 -0
- package/dist/secrets/env.js.map +1 -0
- package/dist/secrets/onepassword.d.ts +79 -0
- package/dist/secrets/onepassword.d.ts.map +1 -0
- package/dist/secrets/onepassword.js +141 -0
- package/dist/secrets/onepassword.js.map +1 -0
- package/dist/shell/console/redis/constants.d.ts +3 -0
- package/dist/shell/console/redis/constants.d.ts.map +1 -0
- package/dist/shell/console/redis/constants.js +22 -0
- package/dist/shell/console/redis/constants.js.map +1 -0
- package/dist/shell/console/redis/index.d.ts +2 -0
- package/dist/shell/console/redis/index.d.ts.map +1 -0
- package/dist/shell/console/redis/index.js +15 -0
- package/dist/shell/console/redis/index.js.map +1 -0
- package/dist/shell/console/redis/store.d.ts +67 -0
- package/dist/shell/console/redis/store.d.ts.map +1 -0
- package/dist/shell/console/redis/store.js +176 -0
- package/dist/shell/console/redis/store.js.map +1 -0
- package/dist/test-utils.d.ts +11 -0
- package/dist/test-utils.d.ts.map +1 -0
- package/dist/test-utils.js +38 -0
- package/dist/test-utils.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +21 -0
- package/dist/version.js.map +1 -0
- package/dist/workspace/fuse.d.ts +11 -0
- package/dist/workspace/fuse.d.ts.map +1 -0
- package/dist/workspace/fuse.js +129 -0
- package/dist/workspace/fuse.js.map +1 -0
- package/dist/workspace/namespace/disk.d.ts +28 -0
- package/dist/workspace/namespace/disk.d.ts.map +1 -0
- package/dist/workspace/namespace/disk.js +110 -0
- package/dist/workspace/namespace/disk.js.map +1 -0
- package/dist/workspace/namespace/redis.d.ts +31 -0
- package/dist/workspace/namespace/redis.d.ts.map +1 -0
- package/dist/workspace/namespace/redis.js +99 -0
- package/dist/workspace/namespace/redis.js.map +1 -0
- package/dist/workspace/record/disk.d.ts +47 -0
- package/dist/workspace/record/disk.d.ts.map +1 -0
- package/dist/workspace/record/disk.js +229 -0
- package/dist/workspace/record/disk.js.map +1 -0
- package/dist/workspace/session/disk.d.ts +22 -0
- package/dist/workspace/session/disk.d.ts.map +1 -0
- package/dist/workspace/session/disk.js +54 -0
- package/dist/workspace/session/disk.js.map +1 -0
- package/dist/workspace/session/redis.d.ts +32 -0
- package/dist/workspace/session/redis.d.ts.map +1 -0
- package/dist/workspace/session/redis.js +106 -0
- package/dist/workspace/session/redis.js.map +1 -0
- package/dist/workspace/store/disk.d.ts +46 -0
- package/dist/workspace/store/disk.d.ts.map +1 -0
- package/dist/workspace/store/disk.js +119 -0
- package/dist/workspace/store/disk.js.map +1 -0
- package/dist/workspace/store/redis.d.ts +43 -0
- package/dist/workspace/store/redis.d.ts.map +1 -0
- package/dist/workspace/store/redis.js +126 -0
- package/dist/workspace/store/redis.js.map +1 -0
- package/dist/workspace/workspace/kernel_mounts.d.ts +48 -0
- package/dist/workspace/workspace/kernel_mounts.d.ts.map +1 -0
- package/dist/workspace/workspace/kernel_mounts.js +117 -0
- package/dist/workspace/workspace/kernel_mounts.js.map +1 -0
- package/dist/workspace.d.ts +44 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +127 -0
- package/dist/workspace.js.map +1 -0
- package/package.json +24 -9
- package/dist/aliyun-S62BR3TB.js +0 -11
- package/dist/aliyun-S62BR3TB.js.map +0 -1
- package/dist/backblaze-4EKSW63F.js +0 -11
- package/dist/backblaze-4EKSW63F.js.map +0 -1
- package/dist/box-ZPLZAGMK.js +0 -8
- package/dist/box-ZPLZAGMK.js.map +0 -1
- package/dist/ceph-ALKLD3MO.js +0 -11
- package/dist/ceph-ALKLD3MO.js.map +0 -1
- package/dist/chunk-2A4YGVBM.js +0 -81
- package/dist/chunk-2A4YGVBM.js.map +0 -1
- package/dist/chunk-2HCYLVGY.js +0 -28
- package/dist/chunk-2HCYLVGY.js.map +0 -1
- package/dist/chunk-2VPZAH5Q.js +0 -20
- package/dist/chunk-2VPZAH5Q.js.map +0 -1
- package/dist/chunk-3JZQ6VSZ.js +0 -38
- package/dist/chunk-3JZQ6VSZ.js.map +0 -1
- package/dist/chunk-4IF4TGAI.js +0 -11
- package/dist/chunk-4IF4TGAI.js.map +0 -1
- package/dist/chunk-5H6KNEPP.js +0 -56
- package/dist/chunk-5H6KNEPP.js.map +0 -1
- package/dist/chunk-5K2MWDCE.js +0 -56
- package/dist/chunk-5K2MWDCE.js.map +0 -1
- package/dist/chunk-6SVXWRKX.js +0 -56
- package/dist/chunk-6SVXWRKX.js.map +0 -1
- package/dist/chunk-6VOIUGAD.js +0 -68
- package/dist/chunk-6VOIUGAD.js.map +0 -1
- package/dist/chunk-7JYHFXXC.js +0 -82
- package/dist/chunk-7JYHFXXC.js.map +0 -1
- package/dist/chunk-7VQQFWV6.js +0 -20
- package/dist/chunk-7VQQFWV6.js.map +0 -1
- package/dist/chunk-7ZP6TPHX.js +0 -87
- package/dist/chunk-7ZP6TPHX.js.map +0 -1
- package/dist/chunk-ADEXNSYU.js +0 -87
- package/dist/chunk-ADEXNSYU.js.map +0 -1
- package/dist/chunk-AQSYAXL4.js +0 -16
- package/dist/chunk-AQSYAXL4.js.map +0 -1
- package/dist/chunk-ATLXMNKD.js +0 -34
- package/dist/chunk-ATLXMNKD.js.map +0 -1
- package/dist/chunk-BYCUGFRF.js +0 -86
- package/dist/chunk-BYCUGFRF.js.map +0 -1
- package/dist/chunk-BZTVYOES.js +0 -50
- package/dist/chunk-BZTVYOES.js.map +0 -1
- package/dist/chunk-CRC4YWXB.js +0 -79
- package/dist/chunk-CRC4YWXB.js.map +0 -1
- package/dist/chunk-CTGXJHO5.js +0 -39
- package/dist/chunk-CTGXJHO5.js.map +0 -1
- package/dist/chunk-DCDBIXVZ.js +0 -35
- package/dist/chunk-DCDBIXVZ.js.map +0 -1
- package/dist/chunk-DDAFNROK.js +0 -750
- package/dist/chunk-DDAFNROK.js.map +0 -1
- package/dist/chunk-DQIEWEAW.js +0 -85
- package/dist/chunk-DQIEWEAW.js.map +0 -1
- package/dist/chunk-EBI4IHDC.js +0 -73
- package/dist/chunk-EBI4IHDC.js.map +0 -1
- package/dist/chunk-EIUTZ6N7.js +0 -84
- package/dist/chunk-EIUTZ6N7.js.map +0 -1
- package/dist/chunk-EJZG5VUF.js +0 -190
- package/dist/chunk-EJZG5VUF.js.map +0 -1
- package/dist/chunk-ENW5BVYN.js +0 -50
- package/dist/chunk-ENW5BVYN.js.map +0 -1
- package/dist/chunk-ETIAW4YD.js +0 -56
- package/dist/chunk-ETIAW4YD.js.map +0 -1
- package/dist/chunk-EUPXAYPB.js +0 -20
- package/dist/chunk-EUPXAYPB.js.map +0 -1
- package/dist/chunk-FA6YNU75.js +0 -56
- package/dist/chunk-FA6YNU75.js.map +0 -1
- package/dist/chunk-FFH6R5VQ.js +0 -28
- package/dist/chunk-FFH6R5VQ.js.map +0 -1
- package/dist/chunk-GE6H2COM.js +0 -82
- package/dist/chunk-GE6H2COM.js.map +0 -1
- package/dist/chunk-GMMQ3ZK4.js +0 -56
- package/dist/chunk-GMMQ3ZK4.js.map +0 -1
- package/dist/chunk-GSGE3M5P.js +0 -82
- package/dist/chunk-GSGE3M5P.js.map +0 -1
- package/dist/chunk-H64SB6VO.js +0 -335
- package/dist/chunk-H64SB6VO.js.map +0 -1
- package/dist/chunk-HCRYAFBI.js +0 -50
- package/dist/chunk-HCRYAFBI.js.map +0 -1
- package/dist/chunk-HOPUP6LA.js +0 -982
- package/dist/chunk-HOPUP6LA.js.map +0 -1
- package/dist/chunk-HS24BL6W.js +0 -160
- package/dist/chunk-HS24BL6W.js.map +0 -1
- package/dist/chunk-HVYVG5KQ.js +0 -16
- package/dist/chunk-HVYVG5KQ.js.map +0 -1
- package/dist/chunk-I7CPLZNW.js +0 -56
- package/dist/chunk-I7CPLZNW.js.map +0 -1
- package/dist/chunk-IFUCGI4I.js +0 -35
- package/dist/chunk-IFUCGI4I.js.map +0 -1
- package/dist/chunk-IFYXSSKR.js +0 -227
- package/dist/chunk-IFYXSSKR.js.map +0 -1
- package/dist/chunk-IXA4DQE4.js +0 -20
- package/dist/chunk-IXA4DQE4.js.map +0 -1
- package/dist/chunk-IZMKMD3O.js +0 -11
- package/dist/chunk-IZMKMD3O.js.map +0 -1
- package/dist/chunk-JJERW2BI.js +0 -56
- package/dist/chunk-JJERW2BI.js.map +0 -1
- package/dist/chunk-JQR4HVUX.js +0 -94
- package/dist/chunk-JQR4HVUX.js.map +0 -1
- package/dist/chunk-JXOMDLFS.js +0 -87
- package/dist/chunk-JXOMDLFS.js.map +0 -1
- package/dist/chunk-KIX6N7NT.js +0 -1001
- package/dist/chunk-KIX6N7NT.js.map +0 -1
- package/dist/chunk-L42UTDFK.js +0 -40
- package/dist/chunk-L42UTDFK.js.map +0 -1
- package/dist/chunk-LPDLPRPS.js +0 -11
- package/dist/chunk-LPDLPRPS.js.map +0 -1
- package/dist/chunk-M2UF2JHJ.js +0 -11
- package/dist/chunk-M2UF2JHJ.js.map +0 -1
- package/dist/chunk-MONC734W.js +0 -36
- package/dist/chunk-MONC734W.js.map +0 -1
- package/dist/chunk-N72RLCMU.js +0 -56
- package/dist/chunk-N72RLCMU.js.map +0 -1
- package/dist/chunk-ND4IWJ4V.js +0 -29
- package/dist/chunk-ND4IWJ4V.js.map +0 -1
- package/dist/chunk-NZ3EKGW4.js +0 -1312
- package/dist/chunk-NZ3EKGW4.js.map +0 -1
- package/dist/chunk-OAE57MNL.js +0 -68
- package/dist/chunk-OAE57MNL.js.map +0 -1
- package/dist/chunk-OHKGIQB4.js +0 -87
- package/dist/chunk-OHKGIQB4.js.map +0 -1
- package/dist/chunk-OQKNDS66.js +0 -7
- package/dist/chunk-OQKNDS66.js.map +0 -1
- package/dist/chunk-OXEQSPND.js +0 -50
- package/dist/chunk-OXEQSPND.js.map +0 -1
- package/dist/chunk-PKNE5J2B.js +0 -82
- package/dist/chunk-PKNE5J2B.js.map +0 -1
- package/dist/chunk-PSXXEGYQ.js +0 -16
- package/dist/chunk-PSXXEGYQ.js.map +0 -1
- package/dist/chunk-QAOVABCR.js +0 -79
- package/dist/chunk-QAOVABCR.js.map +0 -1
- package/dist/chunk-QQ7FP4GD.js +0 -56
- package/dist/chunk-QQ7FP4GD.js.map +0 -1
- package/dist/chunk-QYLVMC6B.js +0 -94
- package/dist/chunk-QYLVMC6B.js.map +0 -1
- package/dist/chunk-RX3XR65X.js +0 -56
- package/dist/chunk-RX3XR65X.js.map +0 -1
- package/dist/chunk-RYQJJB4C.js +0 -30
- package/dist/chunk-RYQJJB4C.js.map +0 -1
- package/dist/chunk-TUF7TCN7.js +0 -56
- package/dist/chunk-TUF7TCN7.js.map +0 -1
- package/dist/chunk-TUX36JY5.js +0 -56
- package/dist/chunk-TUX36JY5.js.map +0 -1
- package/dist/chunk-TWRQCQWU.js +0 -1153
- package/dist/chunk-TWRQCQWU.js.map +0 -1
- package/dist/chunk-U6DFQRG3.js +0 -20
- package/dist/chunk-U6DFQRG3.js.map +0 -1
- package/dist/chunk-VI5YTKNY.js +0 -20
- package/dist/chunk-VI5YTKNY.js.map +0 -1
- package/dist/chunk-WG5YS6TC.js +0 -872
- package/dist/chunk-WG5YS6TC.js.map +0 -1
- package/dist/chunk-WMJJ4WGF.js +0 -56
- package/dist/chunk-WMJJ4WGF.js.map +0 -1
- package/dist/chunk-WY4FNH42.js +0 -113
- package/dist/chunk-WY4FNH42.js.map +0 -1
- package/dist/chunk-XIG5BWWH.js +0 -75
- package/dist/chunk-XIG5BWWH.js.map +0 -1
- package/dist/chunk-XJBC3OYX.js +0 -11
- package/dist/chunk-XJBC3OYX.js.map +0 -1
- package/dist/chunk-XPRDXWK7.js +0 -93
- package/dist/chunk-XPRDXWK7.js.map +0 -1
- package/dist/chunk-YKRQSZS7.js +0 -96
- package/dist/chunk-YKRQSZS7.js.map +0 -1
- package/dist/chunk-YMBL3VJB.js +0 -87
- package/dist/chunk-YMBL3VJB.js.map +0 -1
- package/dist/chunk-YUJBXFYK.js +0 -1205
- package/dist/chunk-YUJBXFYK.js.map +0 -1
- package/dist/chunk-YZ4ZJNOL.js +0 -72
- package/dist/chunk-YZ4ZJNOL.js.map +0 -1
- package/dist/chunk-ZTHVEXIV.js +0 -11
- package/dist/chunk-ZTHVEXIV.js.map +0 -1
- package/dist/chunk-ZVSYUCYS.js +0 -120
- package/dist/chunk-ZVSYUCYS.js.map +0 -1
- package/dist/config-2YBCHU2W.js +0 -13
- package/dist/config-2YBCHU2W.js.map +0 -1
- package/dist/config-3YRGRW72.js +0 -14
- package/dist/config-3YRGRW72.js.map +0 -1
- package/dist/config-4GSOMUMF.js +0 -9
- package/dist/config-4GSOMUMF.js.map +0 -1
- package/dist/config-5YBUWFUP.js +0 -9
- package/dist/config-5YBUWFUP.js.map +0 -1
- package/dist/config-5ZRKJTKG.js +0 -12
- package/dist/config-5ZRKJTKG.js.map +0 -1
- package/dist/config-A25LTL5W.js +0 -11
- package/dist/config-A25LTL5W.js.map +0 -1
- package/dist/config-CLU7JABG.js +0 -9
- package/dist/config-CLU7JABG.js.map +0 -1
- package/dist/config-D2RF7L3N.js +0 -9
- package/dist/config-D2RF7L3N.js.map +0 -1
- package/dist/config-E55TKM6K.js +0 -9
- package/dist/config-E55TKM6K.js.map +0 -1
- package/dist/config-ELDOFRJW.js +0 -9
- package/dist/config-ELDOFRJW.js.map +0 -1
- package/dist/config-FPC3RBFD.js +0 -13
- package/dist/config-FPC3RBFD.js.map +0 -1
- package/dist/config-FPM3LAW7.js +0 -9
- package/dist/config-FPM3LAW7.js.map +0 -1
- package/dist/config-G3F54CS4.js +0 -14
- package/dist/config-G3F54CS4.js.map +0 -1
- package/dist/config-G43HRUI3.js +0 -9
- package/dist/config-G43HRUI3.js.map +0 -1
- package/dist/config-GG3WO5PB.js +0 -14
- package/dist/config-GG3WO5PB.js.map +0 -1
- package/dist/config-JUYBWAZE.js +0 -9
- package/dist/config-JUYBWAZE.js.map +0 -1
- package/dist/config-LJ5T6TVA.js +0 -17
- package/dist/config-LJ5T6TVA.js.map +0 -1
- package/dist/config-MDSAE4O3.js +0 -11
- package/dist/config-MDSAE4O3.js.map +0 -1
- package/dist/config-NRIOKK5T.js +0 -9
- package/dist/config-NRIOKK5T.js.map +0 -1
- package/dist/config-OYK2BSJK.js +0 -9
- package/dist/config-OYK2BSJK.js.map +0 -1
- package/dist/config-PB3KA2CE.js +0 -9
- package/dist/config-PB3KA2CE.js.map +0 -1
- package/dist/config-QY4IL3PH.js +0 -12
- package/dist/config-QY4IL3PH.js.map +0 -1
- package/dist/config-R4LAOEDS.js +0 -9
- package/dist/config-R4LAOEDS.js.map +0 -1
- package/dist/config-RIAAD6RW.js +0 -14
- package/dist/config-RIAAD6RW.js.map +0 -1
- package/dist/config-SYNEQAUB.js +0 -9
- package/dist/config-SYNEQAUB.js.map +0 -1
- package/dist/config-TJKGYA2B.js +0 -14
- package/dist/config-TJKGYA2B.js.map +0 -1
- package/dist/config-UU27ALAA.js +0 -9
- package/dist/config-UU27ALAA.js.map +0 -1
- package/dist/config-UURRGA7U.js +0 -13
- package/dist/config-UURRGA7U.js.map +0 -1
- package/dist/config-VPLHQXVE.js +0 -13
- package/dist/config-VPLHQXVE.js.map +0 -1
- package/dist/config-WRACCRPN.js +0 -9
- package/dist/config-WRACCRPN.js.map +0 -1
- package/dist/config-WVHKXEVE.js +0 -12
- package/dist/config-WVHKXEVE.js.map +0 -1
- package/dist/config-XU7R36IE.js +0 -14
- package/dist/config-XU7R36IE.js.map +0 -1
- package/dist/config-Y2KOUYSS.js +0 -9
- package/dist/config-Y2KOUYSS.js.map +0 -1
- package/dist/databricks_volume-CNCPTZHS.js +0 -7
- package/dist/databricks_volume-CNCPTZHS.js.map +0 -1
- package/dist/digitalocean-DJZOUB6Q.js +0 -11
- package/dist/digitalocean-DJZOUB6Q.js.map +0 -1
- package/dist/discord-ETB2CADR.js +0 -7
- package/dist/discord-ETB2CADR.js.map +0 -1
- package/dist/disk-WEHSTK3F.js +0 -7
- package/dist/disk-WEHSTK3F.js.map +0 -1
- package/dist/dropbox-XN6PGLNE.js +0 -8
- package/dist/dropbox-XN6PGLNE.js.map +0 -1
- package/dist/email-OV7XCP3T.js +0 -8
- package/dist/email-OV7XCP3T.js.map +0 -1
- package/dist/gcal-P56MRCGU.js +0 -8
- package/dist/gcal-P56MRCGU.js.map +0 -1
- package/dist/gcs-HFBIAE2C.js +0 -10
- package/dist/gcs-HFBIAE2C.js.map +0 -1
- package/dist/gdocs-LQ3UXP3J.js +0 -8
- package/dist/gdocs-LQ3UXP3J.js.map +0 -1
- package/dist/gdrive-N6UBYLON.js +0 -8
- package/dist/gdrive-N6UBYLON.js.map +0 -1
- package/dist/github-BPZREGPI.js +0 -8
- package/dist/github-BPZREGPI.js.map +0 -1
- package/dist/github_ci-7A4LUIZ7.js +0 -8
- package/dist/github_ci-7A4LUIZ7.js.map +0 -1
- package/dist/gmail-YED2MF6H.js +0 -8
- package/dist/gmail-YED2MF6H.js.map +0 -1
- package/dist/gridfs-CPLQ4G62.js +0 -9
- package/dist/gridfs-CPLQ4G62.js.map +0 -1
- package/dist/gsheets-4BNIJPQ6.js +0 -8
- package/dist/gsheets-4BNIJPQ6.js.map +0 -1
- package/dist/gslides-GDBYLO5A.js +0 -8
- package/dist/gslides-GDBYLO5A.js.map +0 -1
- package/dist/hf_buckets-FTJITQ3P.js +0 -10
- package/dist/hf_buckets-FTJITQ3P.js.map +0 -1
- package/dist/hf_datasets-6GXVKQD7.js +0 -10
- package/dist/hf_datasets-6GXVKQD7.js.map +0 -1
- package/dist/hf_models-PJPGZAC5.js +0 -10
- package/dist/hf_models-PJPGZAC5.js.map +0 -1
- package/dist/hf_spaces-LFNFOLBF.js +0 -10
- package/dist/hf_spaces-LFNFOLBF.js.map +0 -1
- package/dist/jaeger-GCA6MJ6E.js +0 -8
- package/dist/jaeger-GCA6MJ6E.js.map +0 -1
- package/dist/lancedb-TJ5YSJY5.js +0 -7
- package/dist/lancedb-TJ5YSJY5.js.map +0 -1
- package/dist/langfuse-RUMTUMXS.js +0 -8
- package/dist/langfuse-RUMTUMXS.js.map +0 -1
- package/dist/linear-BCE4KEAC.js +0 -7
- package/dist/linear-BCE4KEAC.js.map +0 -1
- package/dist/minio-5SO6KBTK.js +0 -11
- package/dist/minio-5SO6KBTK.js.map +0 -1
- package/dist/mongodb-L5CMN2EE.js +0 -7
- package/dist/mongodb-L5CMN2EE.js.map +0 -1
- package/dist/nextcloud-4O2LZVW2.js +0 -9
- package/dist/nextcloud-4O2LZVW2.js.map +0 -1
- package/dist/notion-RVKEAQ2M.js +0 -7
- package/dist/notion-RVKEAQ2M.js.map +0 -1
- package/dist/oci-OQXOIC62.js +0 -10
- package/dist/oci-OQXOIC62.js.map +0 -1
- package/dist/postgres-AV45GNRS.js +0 -7
- package/dist/postgres-AV45GNRS.js.map +0 -1
- package/dist/qingstor-W277YA4K.js +0 -11
- package/dist/qingstor-W277YA4K.js.map +0 -1
- package/dist/r2-FUA4IORE.js +0 -10
- package/dist/r2-FUA4IORE.js.map +0 -1
- package/dist/redis-LPS357NF.js +0 -8
- package/dist/redis-LPS357NF.js.map +0 -1
- package/dist/s3-FPNWWIVM.js +0 -8
- package/dist/s3-FPNWWIVM.js.map +0 -1
- package/dist/scaleway-BP3732U7.js +0 -11
- package/dist/scaleway-BP3732U7.js.map +0 -1
- package/dist/seaweedfs-MC6HIEP4.js +0 -11
- package/dist/seaweedfs-MC6HIEP4.js.map +0 -1
- package/dist/slack-JFGW7VLN.js +0 -7
- package/dist/slack-JFGW7VLN.js.map +0 -1
- package/dist/ssh-UYPG42LM.js +0 -8
- package/dist/ssh-UYPG42LM.js.map +0 -1
- package/dist/supabase-A3KUFMDC.js +0 -10
- package/dist/supabase-A3KUFMDC.js.map +0 -1
- package/dist/tencent-5464UQ2X.js +0 -11
- package/dist/tencent-5464UQ2X.js.map +0 -1
- package/dist/trello-O2KB3FUO.js +0 -8
- package/dist/trello-O2KB3FUO.js.map +0 -1
- package/dist/wasabi-2IKBIWNO.js +0 -10
- package/dist/wasabi-2IKBIWNO.js.map +0 -1
- /package/dist/{append.lua → shell/console/redis/append.lua} +0 -0
- /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 {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
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
|