@struktoai/mirage-browser 0.0.2-alpha.0 → 0.0.2
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 +61 -127
- package/dist/aliyun-F2ORS3KZ.js +8 -0
- package/dist/backblaze-HOVWPSV7.js +8 -0
- package/dist/box-VJSE5N7P.js +8 -0
- package/dist/ceph-CQKQ4NWW.js +8 -0
- package/dist/chunk-2H4KUUFP.js +26 -0
- package/dist/chunk-2H4KUUFP.js.map +1 -0
- package/dist/chunk-32VC36P4.js +89 -0
- package/dist/chunk-32VC36P4.js.map +1 -0
- package/dist/{chunk-MSNVGH6T.js → chunk-4YJMDF2S.js} +2 -4
- package/dist/chunk-4YJMDF2S.js.map +1 -0
- package/dist/chunk-54NTYJEO.js +13 -0
- package/dist/chunk-54NTYJEO.js.map +1 -0
- package/dist/chunk-63GZEZW4.js +79 -0
- package/dist/chunk-63GZEZW4.js.map +1 -0
- package/dist/{chunk-UW3D2AF6.js → chunk-6K57U6CM.js} +2 -4
- package/dist/chunk-6K57U6CM.js.map +1 -0
- package/dist/chunk-72GY5B23.js +89 -0
- package/dist/chunk-72GY5B23.js.map +1 -0
- package/dist/{chunk-QYFCHCGX.js → chunk-ATLYBQSC.js} +14 -29
- package/dist/chunk-ATLYBQSC.js.map +1 -0
- package/dist/{chunk-ONQ5JGPR.js → chunk-BUXWUKN7.js} +9 -6
- package/dist/chunk-BUXWUKN7.js.map +1 -0
- package/dist/chunk-CAKSQ2LV.js +85 -0
- package/dist/chunk-CAKSQ2LV.js.map +1 -0
- package/dist/chunk-CO4FMKOF.js +89 -0
- package/dist/chunk-CO4FMKOF.js.map +1 -0
- package/dist/{chunk-5Q5GJUAF.js → chunk-D3JDGGKO.js} +19 -18
- package/dist/chunk-D3JDGGKO.js.map +1 -0
- package/dist/{chunk-DDM2Z7YA.js → chunk-D6HF462C.js} +2 -4
- package/dist/chunk-D6HF462C.js.map +1 -0
- package/dist/{chunk-27UVUTJH.js → chunk-EH2BN4JC.js} +34 -3
- package/dist/chunk-EH2BN4JC.js.map +1 -0
- package/dist/chunk-EUKHGXCE.js +89 -0
- package/dist/chunk-EUKHGXCE.js.map +1 -0
- package/dist/chunk-GHKX2BA3.js +89 -0
- package/dist/chunk-GHKX2BA3.js.map +1 -0
- package/dist/{chunk-FL7YLP7D.js → chunk-HGSTRD7H.js} +10 -8
- package/dist/chunk-HGSTRD7H.js.map +1 -0
- package/dist/chunk-HYUESAQS.js +24 -0
- package/dist/chunk-HYUESAQS.js.map +1 -0
- package/dist/{chunk-ZJ6ROCTP.js → chunk-INLL7LRM.js} +11 -14
- package/dist/chunk-INLL7LRM.js.map +1 -0
- package/dist/chunk-J54OBIJA.js +29 -0
- package/dist/chunk-J54OBIJA.js.map +1 -0
- package/dist/{chunk-DPC7QRYO.js → chunk-JCS5EG5A.js} +9 -6
- package/dist/chunk-JCS5EG5A.js.map +1 -0
- package/dist/chunk-JSAQMYPK.js +26 -0
- package/dist/chunk-JSAQMYPK.js.map +1 -0
- package/dist/{chunk-CZOTICOC.js → chunk-JVTKE6DB.js} +2 -4
- package/dist/chunk-JVTKE6DB.js.map +1 -0
- package/dist/{chunk-3PWPFOPS.js → chunk-MO5DGX42.js} +19 -18
- package/dist/chunk-MO5DGX42.js.map +1 -0
- package/dist/{chunk-LZRPA2P7.js → chunk-N43C6XFP.js} +9 -6
- package/dist/chunk-N43C6XFP.js.map +1 -0
- package/dist/chunk-NMZBJOFW.js +26 -0
- package/dist/chunk-NMZBJOFW.js.map +1 -0
- package/dist/chunk-O5ONB7QT.js +26 -0
- package/dist/chunk-O5ONB7QT.js.map +1 -0
- package/dist/{chunk-LSSB3AEW.js → chunk-RD7ED27I.js} +5 -12
- package/dist/chunk-RD7ED27I.js.map +1 -0
- package/dist/chunk-RJ4RR3BR.js +92 -0
- package/dist/chunk-RJ4RR3BR.js.map +1 -0
- package/dist/chunk-RJ5FBBL6.js +79 -0
- package/dist/chunk-RJ5FBBL6.js.map +1 -0
- package/dist/{chunk-SQQI4A6Y.js → chunk-RZRXEXHM.js} +2 -4
- package/dist/chunk-RZRXEXHM.js.map +1 -0
- package/dist/{chunk-CQJTW45B.js → chunk-SBAUYZJB.js} +2 -4
- package/dist/chunk-SBAUYZJB.js.map +1 -0
- package/dist/chunk-SJB2KXDM.js +2109 -0
- package/dist/chunk-SJB2KXDM.js.map +1 -0
- package/dist/{chunk-33SBWNB4.js → chunk-T43CZ3IZ.js} +9 -8
- package/dist/chunk-T43CZ3IZ.js.map +1 -0
- package/dist/{chunk-LG6GVNOL.js → chunk-TPFH5V4D.js} +2 -4
- package/dist/chunk-TPFH5V4D.js.map +1 -0
- package/dist/{chunk-LUDXUYIA.js → chunk-WEJGUCCL.js} +19 -18
- package/dist/chunk-WEJGUCCL.js.map +1 -0
- package/dist/{chunk-UFXEZ56G.js → chunk-WZ53HLH6.js} +18 -18
- package/dist/chunk-WZ53HLH6.js.map +1 -0
- package/dist/{chunk-VLFE4FGD.js → chunk-XFREXNA2.js} +2 -3
- package/dist/chunk-XFREXNA2.js.map +1 -0
- package/dist/chunk-YEDSFMWK.js +79 -0
- package/dist/chunk-YEDSFMWK.js.map +1 -0
- package/dist/chunk-YGRKFONX.js +26 -0
- package/dist/chunk-YGRKFONX.js.map +1 -0
- package/dist/config-7IZCGWKX.js +11 -0
- package/dist/config-AT74FARJ.js +11 -0
- package/dist/config-C2AYHACT.js +11 -0
- package/dist/{config-U4UI4OKA.js → config-ET26F632.js} +4 -2
- package/dist/config-GHJOYNM6.js +11 -0
- package/dist/config-L55UXIF4.js +11 -0
- package/dist/config-NV5WXP64.js +11 -0
- package/dist/config-V7BLK5WP.js +11 -0
- package/dist/digitalocean-KC7VIWZK.js +8 -0
- package/dist/discord-W3DSEXKN.js +7 -0
- package/dist/dropbox-GI273OVA.js +8 -0
- package/dist/gcs-WRQTU27E.js +8 -0
- package/dist/gdocs-EI2EFVKG.js +8 -0
- package/dist/gdrive-62HD67IP.js +8 -0
- package/dist/github-SWLYD3LS.js +7 -0
- package/dist/github_ci-7P7VGBKM.js +8 -0
- package/dist/gmail-B7HXHZ7D.js +8 -0
- package/dist/gsheets-OTBW2JWG.js +8 -0
- package/dist/gslides-MXSR4HRY.js +8 -0
- package/dist/index.d.ts +342 -166
- package/dist/index.js +264 -373
- package/dist/index.js.map +1 -1
- package/dist/langfuse-FWKU6E3F.js +7 -0
- package/dist/linear-SHVG3XVT.js +7 -0
- package/dist/minio-246KOHBJ.js +8 -0
- package/dist/mongodb-2ITJUDCF.js +7 -0
- package/dist/notion-BOBBSJSG.js +7 -0
- package/dist/oci-T7VREPQW.js +8 -0
- package/dist/opfs-3XNAXR5B.js +7 -0
- package/dist/qingstor-WIC27LS3.js +8 -0
- package/dist/qingstor-WIC27LS3.js.map +1 -0
- package/dist/r2-EAX6KHEI.js +8 -0
- package/dist/r2-EAX6KHEI.js.map +1 -0
- package/dist/{s3-A4XFE6QV.js → s3-GD2WKLWR.js} +2 -2
- package/dist/s3-GD2WKLWR.js.map +1 -0
- package/dist/scaleway-OVFRZBKW.js +8 -0
- package/dist/scaleway-OVFRZBKW.js.map +1 -0
- package/dist/seaweedfs-EOJVO432.js +8 -0
- package/dist/seaweedfs-EOJVO432.js.map +1 -0
- package/dist/slack-RNXMU5OC.js +7 -0
- package/dist/slack-RNXMU5OC.js.map +1 -0
- package/dist/supabase-VSUNLIJ6.js +8 -0
- package/dist/supabase-VSUNLIJ6.js.map +1 -0
- package/dist/tencent-YYM5WUVU.js +8 -0
- package/dist/tencent-YYM5WUVU.js.map +1 -0
- package/dist/trello-MNR3VPTT.js +7 -0
- package/dist/trello-MNR3VPTT.js.map +1 -0
- package/dist/wasabi-K5ANTZ2C.js +8 -0
- package/dist/wasabi-K5ANTZ2C.js.map +1 -0
- package/package.json +3 -3
- package/dist/box-Y2SJWAAO.js +0 -8
- package/dist/chunk-27UVUTJH.js.map +0 -1
- package/dist/chunk-33SBWNB4.js.map +0 -1
- package/dist/chunk-3PWPFOPS.js.map +0 -1
- package/dist/chunk-5Q5GJUAF.js.map +0 -1
- package/dist/chunk-7GZXXXAS.js +0 -24
- package/dist/chunk-7GZXXXAS.js.map +0 -1
- package/dist/chunk-B4SYG2FD.js +0 -24
- package/dist/chunk-B4SYG2FD.js.map +0 -1
- package/dist/chunk-BIZONEJC.js +0 -24
- package/dist/chunk-BIZONEJC.js.map +0 -1
- package/dist/chunk-CQJTW45B.js.map +0 -1
- package/dist/chunk-CZOTICOC.js.map +0 -1
- package/dist/chunk-DDM2Z7YA.js.map +0 -1
- package/dist/chunk-DPC7QRYO.js.map +0 -1
- package/dist/chunk-FL7YLP7D.js.map +0 -1
- package/dist/chunk-GFWWDQUZ.js +0 -24
- package/dist/chunk-GFWWDQUZ.js.map +0 -1
- package/dist/chunk-LG6GVNOL.js.map +0 -1
- package/dist/chunk-LSSB3AEW.js.map +0 -1
- package/dist/chunk-LUDXUYIA.js.map +0 -1
- package/dist/chunk-LZRPA2P7.js.map +0 -1
- package/dist/chunk-ML57VOCK.js +0 -7590
- package/dist/chunk-ML57VOCK.js.map +0 -1
- package/dist/chunk-MSNVGH6T.js.map +0 -1
- package/dist/chunk-NBWTZXH2.js +0 -27
- package/dist/chunk-NBWTZXH2.js.map +0 -1
- package/dist/chunk-ONQ5JGPR.js.map +0 -1
- package/dist/chunk-OPROOV6J.js +0 -24
- package/dist/chunk-OPROOV6J.js.map +0 -1
- package/dist/chunk-QARIHW3I.js +0 -23
- package/dist/chunk-QARIHW3I.js.map +0 -1
- package/dist/chunk-QYFCHCGX.js.map +0 -1
- package/dist/chunk-SQQI4A6Y.js.map +0 -1
- package/dist/chunk-UFXEZ56G.js.map +0 -1
- package/dist/chunk-UW3D2AF6.js.map +0 -1
- package/dist/chunk-VLFE4FGD.js.map +0 -1
- package/dist/chunk-XIURBEVZ.js +0 -24
- package/dist/chunk-XIURBEVZ.js.map +0 -1
- package/dist/chunk-ZJ6ROCTP.js.map +0 -1
- package/dist/config-4FABMWVK.js +0 -9
- package/dist/config-DGIUMGBB.js +0 -9
- package/dist/config-G3TTNXLY.js +0 -9
- package/dist/config-GPCEEKCB.js +0 -9
- package/dist/config-KQ5VR2KZ.js +0 -9
- package/dist/config-LPMMVXLS.js +0 -9
- package/dist/config-VZGK63Z5.js +0 -9
- package/dist/discord-RG6URXXS.js +0 -7
- package/dist/dropbox-P7SOL7GN.js +0 -8
- package/dist/gcs-2QHB4CBT.js +0 -8
- package/dist/gdocs-JNZTOZ33.js +0 -8
- package/dist/gdrive-6MEIVN2F.js +0 -8
- package/dist/github-M7WODJR2.js +0 -7
- package/dist/github_ci-4XELEFSZ.js +0 -8
- package/dist/gmail-AO6A3URH.js +0 -8
- package/dist/gsheets-RFOKXMOJ.js +0 -8
- package/dist/gslides-GTVZPLLB.js +0 -8
- package/dist/langfuse-CDOLELMB.js +0 -7
- package/dist/linear-SXOQGG6B.js +0 -7
- package/dist/mongodb-HA7FAKDJ.js +0 -7
- package/dist/notion-ANZNMM3L.js +0 -7
- package/dist/oci-ML5ZRVZ2.js +0 -8
- package/dist/opfs-57XFMWWE.js +0 -7
- package/dist/r2-56O4Q2J4.js +0 -8
- package/dist/slack-QA7H7WLM.js +0 -7
- package/dist/supabase-NNK2RWG3.js +0 -8
- package/dist/trello-H6PZT2IT.js +0 -7
- /package/dist/{box-Y2SJWAAO.js.map → aliyun-F2ORS3KZ.js.map} +0 -0
- /package/dist/{config-4FABMWVK.js.map → backblaze-HOVWPSV7.js.map} +0 -0
- /package/dist/{config-DGIUMGBB.js.map → box-VJSE5N7P.js.map} +0 -0
- /package/dist/{config-G3TTNXLY.js.map → ceph-CQKQ4NWW.js.map} +0 -0
- /package/dist/{config-GPCEEKCB.js.map → config-7IZCGWKX.js.map} +0 -0
- /package/dist/{config-KQ5VR2KZ.js.map → config-AT74FARJ.js.map} +0 -0
- /package/dist/{config-LPMMVXLS.js.map → config-C2AYHACT.js.map} +0 -0
- /package/dist/{config-U4UI4OKA.js.map → config-ET26F632.js.map} +0 -0
- /package/dist/{config-VZGK63Z5.js.map → config-GHJOYNM6.js.map} +0 -0
- /package/dist/{discord-RG6URXXS.js.map → config-L55UXIF4.js.map} +0 -0
- /package/dist/{dropbox-P7SOL7GN.js.map → config-NV5WXP64.js.map} +0 -0
- /package/dist/{gcs-2QHB4CBT.js.map → config-V7BLK5WP.js.map} +0 -0
- /package/dist/{gdocs-JNZTOZ33.js.map → digitalocean-KC7VIWZK.js.map} +0 -0
- /package/dist/{gdrive-6MEIVN2F.js.map → discord-W3DSEXKN.js.map} +0 -0
- /package/dist/{github-M7WODJR2.js.map → dropbox-GI273OVA.js.map} +0 -0
- /package/dist/{github_ci-4XELEFSZ.js.map → gcs-WRQTU27E.js.map} +0 -0
- /package/dist/{gmail-AO6A3URH.js.map → gdocs-EI2EFVKG.js.map} +0 -0
- /package/dist/{gsheets-RFOKXMOJ.js.map → gdrive-62HD67IP.js.map} +0 -0
- /package/dist/{gslides-GTVZPLLB.js.map → github-SWLYD3LS.js.map} +0 -0
- /package/dist/{langfuse-CDOLELMB.js.map → github_ci-7P7VGBKM.js.map} +0 -0
- /package/dist/{linear-SXOQGG6B.js.map → gmail-B7HXHZ7D.js.map} +0 -0
- /package/dist/{mongodb-HA7FAKDJ.js.map → gsheets-OTBW2JWG.js.map} +0 -0
- /package/dist/{notion-ANZNMM3L.js.map → gslides-MXSR4HRY.js.map} +0 -0
- /package/dist/{oci-ML5ZRVZ2.js.map → langfuse-FWKU6E3F.js.map} +0 -0
- /package/dist/{opfs-57XFMWWE.js.map → linear-SHVG3XVT.js.map} +0 -0
- /package/dist/{r2-56O4Q2J4.js.map → minio-246KOHBJ.js.map} +0 -0
- /package/dist/{s3-A4XFE6QV.js.map → mongodb-2ITJUDCF.js.map} +0 -0
- /package/dist/{slack-QA7H7WLM.js.map → notion-BOBBSJSG.js.map} +0 -0
- /package/dist/{supabase-NNK2RWG3.js.map → oci-T7VREPQW.js.map} +0 -0
- /package/dist/{trello-H6PZT2IT.js.map → opfs-3XNAXR5B.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Workspace as Workspace$1, Resource, WorkspaceOptions, Accessor, RegisteredOp, RegisteredCommand, PathSpec, FileStat, FindOptions, S3Config, S3Accessor, IndexCacheStore, S3ConfigRedacted, S3BrowserPresignedUrlProvider, SlackAccessor, DiscordAccessor, PostgresConfigResolved, PgDriver, PostgresAccessor, PostgresConfig, PgQueryResult, MongoDBConfigResolved, MongoDriver, MongoDBAccessor, MongoDBConfig,
|
|
1
|
+
import { Workspace as Workspace$1, Resource, WorkspaceOptions, Accessor, RegisteredOp, RegisteredCommand, PathSpec, FileStat, FindOptions, S3Config, S3Accessor, IndexCacheStore, S3ConfigRedacted, S3BrowserPresignedUrlProvider, SlackAccessor, DiscordAccessor, PostgresConfigResolved, PgDriver, PostgresAccessor, PostgresConfig, PgQueryResult, MongoDBConfigResolved, MongoDriver, MongoDBAccessor, MongoDBConfig, EntityKind, MongoCollectionSpec, MongoFindOptions, MongoIterOptions, MongoIndexAccess, TrelloAccessor, LinearAccessor, NotionAccessor, LangfuseAccessor, GitHubAccessor, GitHubCIAccessor, GDocsAccessor, GSheetsAccessor, GSlidesAccessor, GDriveAccessor, DropboxAccessor, BoxAccessor, GoogleConfig, GmailAccessor, GoogleConfigRedacted } from '@struktoai/mirage-core';
|
|
2
2
|
export * from '@struktoai/mirage-core';
|
|
3
|
-
export {
|
|
3
|
+
export { GoogleConfig as GmailConfig, GoogleConfigRedacted as GmailConfigRedacted, MountMode, S3BrowserOperation, S3BrowserPresignedUrlProvider, S3BrowserSignOptions, S3Config, S3ConfigRedacted, normalizeGoogleConfig as normalizeGmailConfig, redactGoogleConfig as redactGmailConfig, redactS3Config } from '@struktoai/mirage-core';
|
|
4
4
|
import { OAuthClientProvider } from '@modelcontextprotocol/sdk/client/auth.js';
|
|
5
5
|
|
|
6
6
|
declare class Workspace extends Workspace$1 {
|
|
@@ -21,7 +21,6 @@ interface OPFSResourceOptions {
|
|
|
21
21
|
}
|
|
22
22
|
interface OPFSResourceState {
|
|
23
23
|
type: string;
|
|
24
|
-
needsOverride: boolean;
|
|
25
24
|
files: Record<string, Uint8Array>;
|
|
26
25
|
dirs: string[];
|
|
27
26
|
}
|
|
@@ -76,11 +75,10 @@ declare const OPFS_COMMANDS: readonly RegisteredCommand[];
|
|
|
76
75
|
declare const S3_BROWSER_PROMPT = "{prefix}\n Remote S3 bucket accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
|
|
77
76
|
interface S3ResourceState {
|
|
78
77
|
type: string;
|
|
79
|
-
needsOverride: boolean;
|
|
80
|
-
redactedFields: readonly string[];
|
|
81
78
|
config: S3ConfigRedacted;
|
|
82
79
|
}
|
|
83
80
|
declare class S3Resource implements Resource {
|
|
81
|
+
readonly supportsSnapshot: boolean;
|
|
84
82
|
readonly kind: string;
|
|
85
83
|
readonly isRemote: boolean;
|
|
86
84
|
readonly indexTtl: number;
|
|
@@ -113,7 +111,7 @@ declare class S3Resource implements Resource {
|
|
|
113
111
|
fingerprint(p: PathSpec): Promise<string | null>;
|
|
114
112
|
getState(): Promise<S3ResourceState>;
|
|
115
113
|
loadState(_state: S3ResourceState): Promise<void>;
|
|
116
|
-
_duAll(p: PathSpec): Promise<[string, number][]>;
|
|
114
|
+
_duAll(p: PathSpec): Promise<[[string, number][], number]>;
|
|
117
115
|
_rangeRead(p: PathSpec, offset: number, size: number): Promise<Uint8Array>;
|
|
118
116
|
_create(p: PathSpec): Promise<void>;
|
|
119
117
|
}
|
|
@@ -133,8 +131,6 @@ declare function redactGcsConfig(config: GCSConfig): GCSConfigRedacted;
|
|
|
133
131
|
|
|
134
132
|
interface GCSResourceState {
|
|
135
133
|
type: string;
|
|
136
|
-
needsOverride: boolean;
|
|
137
|
-
redactedFields: readonly string[];
|
|
138
134
|
config: GCSConfigRedacted;
|
|
139
135
|
}
|
|
140
136
|
declare class GCSResource extends S3Resource {
|
|
@@ -169,8 +165,6 @@ declare function redactR2Config(config: R2Config): R2ConfigRedacted;
|
|
|
169
165
|
|
|
170
166
|
interface R2ResourceState {
|
|
171
167
|
type: string;
|
|
172
|
-
needsOverride: boolean;
|
|
173
|
-
redactedFields: readonly string[];
|
|
174
168
|
config: R2ConfigRedacted;
|
|
175
169
|
}
|
|
176
170
|
declare class R2Resource extends S3Resource {
|
|
@@ -205,8 +199,6 @@ declare function redactOciConfig(config: OCIConfig): OCIConfigRedacted;
|
|
|
205
199
|
|
|
206
200
|
interface OCIResourceState {
|
|
207
201
|
type: string;
|
|
208
|
-
needsOverride: boolean;
|
|
209
|
-
redactedFields: readonly string[];
|
|
210
202
|
config: OCIConfigRedacted;
|
|
211
203
|
}
|
|
212
204
|
declare class OCIResource extends S3Resource {
|
|
@@ -241,8 +233,6 @@ declare function redactSupabaseConfig(config: SupabaseConfig): SupabaseConfigRed
|
|
|
241
233
|
|
|
242
234
|
interface SupabaseResourceState {
|
|
243
235
|
type: string;
|
|
244
|
-
needsOverride: boolean;
|
|
245
|
-
redactedFields: readonly string[];
|
|
246
236
|
config: SupabaseConfigRedacted;
|
|
247
237
|
}
|
|
248
238
|
declare class SupabaseResource extends S3Resource {
|
|
@@ -260,6 +250,333 @@ declare class SupabaseResource extends S3Resource {
|
|
|
260
250
|
|
|
261
251
|
declare const SUPABASE_BROWSER_PROMPT = "{prefix}\n Remote Supabase Storage bucket accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
|
|
262
252
|
|
|
253
|
+
interface MinIOConfig {
|
|
254
|
+
bucket: string;
|
|
255
|
+
presignedUrlProvider: S3BrowserPresignedUrlProvider;
|
|
256
|
+
endpoint?: string;
|
|
257
|
+
region?: string;
|
|
258
|
+
defaultContentType?: string;
|
|
259
|
+
}
|
|
260
|
+
interface MinIOConfigRedacted extends Omit<MinIOConfig, 'presignedUrlProvider'> {
|
|
261
|
+
presignedUrlProvider: '<REDACTED>';
|
|
262
|
+
}
|
|
263
|
+
declare function minioToS3Config(config: MinIOConfig): S3Config;
|
|
264
|
+
declare function redactMinIOConfig(config: MinIOConfig): MinIOConfigRedacted;
|
|
265
|
+
|
|
266
|
+
interface MinIOResourceState {
|
|
267
|
+
type: string;
|
|
268
|
+
config: MinIOConfigRedacted;
|
|
269
|
+
}
|
|
270
|
+
declare class MinIOResource extends S3Resource {
|
|
271
|
+
readonly kind: string;
|
|
272
|
+
readonly prompt: string;
|
|
273
|
+
readonly minioConfig: MinIOConfig;
|
|
274
|
+
private readonly minioOps;
|
|
275
|
+
private readonly minioCommands;
|
|
276
|
+
constructor(config: MinIOConfig);
|
|
277
|
+
ops(): readonly RegisteredOp[];
|
|
278
|
+
commands(): readonly RegisteredCommand[];
|
|
279
|
+
getState(): Promise<MinIOResourceState>;
|
|
280
|
+
loadState(_state: MinIOResourceState): Promise<void>;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
declare const MINIO_BROWSER_PROMPT = "{prefix}\n Remote MinIO bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
|
|
284
|
+
|
|
285
|
+
interface SeaweedFSConfig {
|
|
286
|
+
bucket: string;
|
|
287
|
+
presignedUrlProvider: S3BrowserPresignedUrlProvider;
|
|
288
|
+
endpoint?: string;
|
|
289
|
+
region?: string;
|
|
290
|
+
defaultContentType?: string;
|
|
291
|
+
}
|
|
292
|
+
interface SeaweedFSConfigRedacted extends Omit<SeaweedFSConfig, 'presignedUrlProvider'> {
|
|
293
|
+
presignedUrlProvider: '<REDACTED>';
|
|
294
|
+
}
|
|
295
|
+
declare function seaweedfsToS3Config(config: SeaweedFSConfig): S3Config;
|
|
296
|
+
declare function redactSeaweedFSConfig(config: SeaweedFSConfig): SeaweedFSConfigRedacted;
|
|
297
|
+
|
|
298
|
+
interface SeaweedFSResourceState {
|
|
299
|
+
type: string;
|
|
300
|
+
config: SeaweedFSConfigRedacted;
|
|
301
|
+
}
|
|
302
|
+
declare class SeaweedFSResource extends S3Resource {
|
|
303
|
+
readonly kind: string;
|
|
304
|
+
readonly prompt: string;
|
|
305
|
+
readonly seaweedfsConfig: SeaweedFSConfig;
|
|
306
|
+
private readonly seaweedfsOps;
|
|
307
|
+
private readonly seaweedfsCommands;
|
|
308
|
+
constructor(config: SeaweedFSConfig);
|
|
309
|
+
ops(): readonly RegisteredOp[];
|
|
310
|
+
commands(): readonly RegisteredCommand[];
|
|
311
|
+
getState(): Promise<SeaweedFSResourceState>;
|
|
312
|
+
loadState(_state: SeaweedFSResourceState): Promise<void>;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
declare const SEAWEEDFS_BROWSER_PROMPT = "{prefix}\n Remote SeaweedFS bucket (S3-compatible gateway) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
|
|
316
|
+
|
|
317
|
+
interface CephConfig {
|
|
318
|
+
bucket: string;
|
|
319
|
+
presignedUrlProvider: S3BrowserPresignedUrlProvider;
|
|
320
|
+
endpoint?: string;
|
|
321
|
+
region?: string;
|
|
322
|
+
defaultContentType?: string;
|
|
323
|
+
}
|
|
324
|
+
interface CephConfigRedacted extends Omit<CephConfig, 'presignedUrlProvider'> {
|
|
325
|
+
presignedUrlProvider: '<REDACTED>';
|
|
326
|
+
}
|
|
327
|
+
declare function cephToS3Config(config: CephConfig): S3Config;
|
|
328
|
+
declare function redactCephConfig(config: CephConfig): CephConfigRedacted;
|
|
329
|
+
|
|
330
|
+
interface CephResourceState {
|
|
331
|
+
type: string;
|
|
332
|
+
config: CephConfigRedacted;
|
|
333
|
+
}
|
|
334
|
+
declare class CephResource extends S3Resource {
|
|
335
|
+
readonly kind: string;
|
|
336
|
+
readonly prompt: string;
|
|
337
|
+
readonly cephConfig: CephConfig;
|
|
338
|
+
private readonly cephOps;
|
|
339
|
+
private readonly cephCommands;
|
|
340
|
+
constructor(config: CephConfig);
|
|
341
|
+
ops(): readonly RegisteredOp[];
|
|
342
|
+
commands(): readonly RegisteredCommand[];
|
|
343
|
+
getState(): Promise<CephResourceState>;
|
|
344
|
+
loadState(_state: CephResourceState): Promise<void>;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
declare const CEPH_BROWSER_PROMPT = "{prefix}\n Remote Ceph Rados Gateway bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
|
|
348
|
+
|
|
349
|
+
interface WasabiConfig {
|
|
350
|
+
bucket: string;
|
|
351
|
+
presignedUrlProvider: S3BrowserPresignedUrlProvider;
|
|
352
|
+
region?: string;
|
|
353
|
+
endpoint?: string;
|
|
354
|
+
defaultContentType?: string;
|
|
355
|
+
}
|
|
356
|
+
interface WasabiConfigRedacted extends Omit<WasabiConfig, 'presignedUrlProvider'> {
|
|
357
|
+
presignedUrlProvider: '<REDACTED>';
|
|
358
|
+
}
|
|
359
|
+
declare function resolvedWasabiEndpoint(config: WasabiConfig): string;
|
|
360
|
+
declare function wasabiToS3Config(config: WasabiConfig): S3Config;
|
|
361
|
+
declare function redactWasabiConfig(config: WasabiConfig): WasabiConfigRedacted;
|
|
362
|
+
|
|
363
|
+
interface WasabiResourceState {
|
|
364
|
+
type: string;
|
|
365
|
+
config: WasabiConfigRedacted;
|
|
366
|
+
}
|
|
367
|
+
declare class WasabiResource extends S3Resource {
|
|
368
|
+
readonly kind: string;
|
|
369
|
+
readonly prompt: string;
|
|
370
|
+
readonly wasabiConfig: WasabiConfig;
|
|
371
|
+
private readonly wasabiOps;
|
|
372
|
+
private readonly wasabiCommands;
|
|
373
|
+
constructor(config: WasabiConfig);
|
|
374
|
+
ops(): readonly RegisteredOp[];
|
|
375
|
+
commands(): readonly RegisteredCommand[];
|
|
376
|
+
getState(): Promise<WasabiResourceState>;
|
|
377
|
+
loadState(_state: WasabiResourceState): Promise<void>;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
declare const WASABI_BROWSER_PROMPT = "{prefix}\n Remote Wasabi bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
|
|
381
|
+
|
|
382
|
+
interface BackblazeConfig {
|
|
383
|
+
bucket: string;
|
|
384
|
+
presignedUrlProvider: S3BrowserPresignedUrlProvider;
|
|
385
|
+
region?: string;
|
|
386
|
+
endpoint?: string;
|
|
387
|
+
defaultContentType?: string;
|
|
388
|
+
}
|
|
389
|
+
interface BackblazeConfigRedacted extends Omit<BackblazeConfig, 'presignedUrlProvider'> {
|
|
390
|
+
presignedUrlProvider: '<REDACTED>';
|
|
391
|
+
}
|
|
392
|
+
declare function resolvedBackblazeEndpoint(config: BackblazeConfig): string | undefined;
|
|
393
|
+
declare function backblazeToS3Config(config: BackblazeConfig): S3Config;
|
|
394
|
+
declare function redactBackblazeConfig(config: BackblazeConfig): BackblazeConfigRedacted;
|
|
395
|
+
|
|
396
|
+
interface BackblazeResourceState {
|
|
397
|
+
type: string;
|
|
398
|
+
config: BackblazeConfigRedacted;
|
|
399
|
+
}
|
|
400
|
+
declare class BackblazeResource extends S3Resource {
|
|
401
|
+
readonly kind: string;
|
|
402
|
+
readonly prompt: string;
|
|
403
|
+
readonly backblazeConfig: BackblazeConfig;
|
|
404
|
+
private readonly backblazeOps;
|
|
405
|
+
private readonly backblazeCommands;
|
|
406
|
+
constructor(config: BackblazeConfig);
|
|
407
|
+
ops(): readonly RegisteredOp[];
|
|
408
|
+
commands(): readonly RegisteredCommand[];
|
|
409
|
+
getState(): Promise<BackblazeResourceState>;
|
|
410
|
+
loadState(_state: BackblazeResourceState): Promise<void>;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
declare const BACKBLAZE_BROWSER_PROMPT = "{prefix}\n Remote Backblaze B2 bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
|
|
414
|
+
|
|
415
|
+
interface DigitalOceanConfig {
|
|
416
|
+
bucket: string;
|
|
417
|
+
presignedUrlProvider: S3BrowserPresignedUrlProvider;
|
|
418
|
+
region?: string;
|
|
419
|
+
endpoint?: string;
|
|
420
|
+
defaultContentType?: string;
|
|
421
|
+
}
|
|
422
|
+
interface DigitalOceanConfigRedacted extends Omit<DigitalOceanConfig, 'presignedUrlProvider'> {
|
|
423
|
+
presignedUrlProvider: '<REDACTED>';
|
|
424
|
+
}
|
|
425
|
+
declare function resolvedDigitalOceanEndpoint(config: DigitalOceanConfig): string | undefined;
|
|
426
|
+
declare function digitalOceanToS3Config(config: DigitalOceanConfig): S3Config;
|
|
427
|
+
declare function redactDigitalOceanConfig(config: DigitalOceanConfig): DigitalOceanConfigRedacted;
|
|
428
|
+
|
|
429
|
+
interface DigitalOceanResourceState {
|
|
430
|
+
type: string;
|
|
431
|
+
config: DigitalOceanConfigRedacted;
|
|
432
|
+
}
|
|
433
|
+
declare class DigitalOceanResource extends S3Resource {
|
|
434
|
+
readonly kind: string;
|
|
435
|
+
readonly prompt: string;
|
|
436
|
+
readonly digitalOceanConfig: DigitalOceanConfig;
|
|
437
|
+
private readonly digitalOceanOps;
|
|
438
|
+
private readonly digitalOceanCommands;
|
|
439
|
+
constructor(config: DigitalOceanConfig);
|
|
440
|
+
ops(): readonly RegisteredOp[];
|
|
441
|
+
commands(): readonly RegisteredCommand[];
|
|
442
|
+
getState(): Promise<DigitalOceanResourceState>;
|
|
443
|
+
loadState(_state: DigitalOceanResourceState): Promise<void>;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
declare const DIGITALOCEAN_BROWSER_PROMPT = "{prefix}\n Remote DigitalOcean Spaces bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
|
|
447
|
+
|
|
448
|
+
interface TencentConfig {
|
|
449
|
+
bucket: string;
|
|
450
|
+
presignedUrlProvider: S3BrowserPresignedUrlProvider;
|
|
451
|
+
region?: string;
|
|
452
|
+
endpoint?: string;
|
|
453
|
+
defaultContentType?: string;
|
|
454
|
+
}
|
|
455
|
+
interface TencentConfigRedacted extends Omit<TencentConfig, 'presignedUrlProvider'> {
|
|
456
|
+
presignedUrlProvider: '<REDACTED>';
|
|
457
|
+
}
|
|
458
|
+
declare function resolvedTencentEndpoint(config: TencentConfig): string | undefined;
|
|
459
|
+
declare function tencentToS3Config(config: TencentConfig): S3Config;
|
|
460
|
+
declare function redactTencentConfig(config: TencentConfig): TencentConfigRedacted;
|
|
461
|
+
|
|
462
|
+
interface TencentResourceState {
|
|
463
|
+
type: string;
|
|
464
|
+
config: TencentConfigRedacted;
|
|
465
|
+
}
|
|
466
|
+
declare class TencentResource extends S3Resource {
|
|
467
|
+
readonly kind: string;
|
|
468
|
+
readonly prompt: string;
|
|
469
|
+
readonly tencentConfig: TencentConfig;
|
|
470
|
+
private readonly tencentOps;
|
|
471
|
+
private readonly tencentCommands;
|
|
472
|
+
constructor(config: TencentConfig);
|
|
473
|
+
ops(): readonly RegisteredOp[];
|
|
474
|
+
commands(): readonly RegisteredCommand[];
|
|
475
|
+
getState(): Promise<TencentResourceState>;
|
|
476
|
+
loadState(_state: TencentResourceState): Promise<void>;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
declare const TENCENT_BROWSER_PROMPT = "{prefix}\n Remote Tencent Cloud COS bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
|
|
480
|
+
|
|
481
|
+
interface AliyunConfig {
|
|
482
|
+
bucket: string;
|
|
483
|
+
presignedUrlProvider: S3BrowserPresignedUrlProvider;
|
|
484
|
+
region?: string;
|
|
485
|
+
endpoint?: string;
|
|
486
|
+
defaultContentType?: string;
|
|
487
|
+
}
|
|
488
|
+
interface AliyunConfigRedacted extends Omit<AliyunConfig, 'presignedUrlProvider'> {
|
|
489
|
+
presignedUrlProvider: '<REDACTED>';
|
|
490
|
+
}
|
|
491
|
+
declare function resolvedAliyunEndpoint(config: AliyunConfig): string | undefined;
|
|
492
|
+
declare function aliyunToS3Config(config: AliyunConfig): S3Config;
|
|
493
|
+
declare function redactAliyunConfig(config: AliyunConfig): AliyunConfigRedacted;
|
|
494
|
+
|
|
495
|
+
interface AliyunResourceState {
|
|
496
|
+
type: string;
|
|
497
|
+
config: AliyunConfigRedacted;
|
|
498
|
+
}
|
|
499
|
+
declare class AliyunResource extends S3Resource {
|
|
500
|
+
readonly kind: string;
|
|
501
|
+
readonly prompt: string;
|
|
502
|
+
readonly aliyunConfig: AliyunConfig;
|
|
503
|
+
private readonly aliyunOps;
|
|
504
|
+
private readonly aliyunCommands;
|
|
505
|
+
constructor(config: AliyunConfig);
|
|
506
|
+
ops(): readonly RegisteredOp[];
|
|
507
|
+
commands(): readonly RegisteredCommand[];
|
|
508
|
+
getState(): Promise<AliyunResourceState>;
|
|
509
|
+
loadState(_state: AliyunResourceState): Promise<void>;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
declare const ALIYUN_BROWSER_PROMPT = "{prefix}\n Remote Alibaba Cloud OSS bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
|
|
513
|
+
|
|
514
|
+
interface ScalewayConfig {
|
|
515
|
+
bucket: string;
|
|
516
|
+
presignedUrlProvider: S3BrowserPresignedUrlProvider;
|
|
517
|
+
region?: string;
|
|
518
|
+
endpoint?: string;
|
|
519
|
+
defaultContentType?: string;
|
|
520
|
+
}
|
|
521
|
+
interface ScalewayConfigRedacted extends Omit<ScalewayConfig, 'presignedUrlProvider'> {
|
|
522
|
+
presignedUrlProvider: '<REDACTED>';
|
|
523
|
+
}
|
|
524
|
+
declare function resolvedScalewayEndpoint(config: ScalewayConfig): string | undefined;
|
|
525
|
+
declare function scalewayToS3Config(config: ScalewayConfig): S3Config;
|
|
526
|
+
declare function redactScalewayConfig(config: ScalewayConfig): ScalewayConfigRedacted;
|
|
527
|
+
|
|
528
|
+
interface ScalewayResourceState {
|
|
529
|
+
type: string;
|
|
530
|
+
config: ScalewayConfigRedacted;
|
|
531
|
+
}
|
|
532
|
+
declare class ScalewayResource extends S3Resource {
|
|
533
|
+
readonly kind: string;
|
|
534
|
+
readonly prompt: string;
|
|
535
|
+
readonly scalewayConfig: ScalewayConfig;
|
|
536
|
+
private readonly scalewayOps;
|
|
537
|
+
private readonly scalewayCommands;
|
|
538
|
+
constructor(config: ScalewayConfig);
|
|
539
|
+
ops(): readonly RegisteredOp[];
|
|
540
|
+
commands(): readonly RegisteredCommand[];
|
|
541
|
+
getState(): Promise<ScalewayResourceState>;
|
|
542
|
+
loadState(_state: ScalewayResourceState): Promise<void>;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
declare const SCALEWAY_BROWSER_PROMPT = "{prefix}\n Remote Scaleway Object Storage bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
|
|
546
|
+
|
|
547
|
+
interface QingStorConfig {
|
|
548
|
+
bucket: string;
|
|
549
|
+
presignedUrlProvider: S3BrowserPresignedUrlProvider;
|
|
550
|
+
region?: string;
|
|
551
|
+
endpoint?: string;
|
|
552
|
+
defaultContentType?: string;
|
|
553
|
+
}
|
|
554
|
+
interface QingStorConfigRedacted extends Omit<QingStorConfig, 'presignedUrlProvider'> {
|
|
555
|
+
presignedUrlProvider: '<REDACTED>';
|
|
556
|
+
}
|
|
557
|
+
declare function resolvedQingStorEndpoint(config: QingStorConfig): string | undefined;
|
|
558
|
+
declare function qingStorToS3Config(config: QingStorConfig): S3Config;
|
|
559
|
+
declare function redactQingStorConfig(config: QingStorConfig): QingStorConfigRedacted;
|
|
560
|
+
|
|
561
|
+
interface QingStorResourceState {
|
|
562
|
+
type: string;
|
|
563
|
+
config: QingStorConfigRedacted;
|
|
564
|
+
}
|
|
565
|
+
declare class QingStorResource extends S3Resource {
|
|
566
|
+
readonly kind: string;
|
|
567
|
+
readonly prompt: string;
|
|
568
|
+
readonly qingStorConfig: QingStorConfig;
|
|
569
|
+
private readonly qingStorOps;
|
|
570
|
+
private readonly qingStorCommands;
|
|
571
|
+
constructor(config: QingStorConfig);
|
|
572
|
+
ops(): readonly RegisteredOp[];
|
|
573
|
+
commands(): readonly RegisteredCommand[];
|
|
574
|
+
getState(): Promise<QingStorResourceState>;
|
|
575
|
+
loadState(_state: QingStorResourceState): Promise<void>;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
declare const QINGSTOR_BROWSER_PROMPT = "{prefix}\n Remote QingStor bucket (S3-compatible) accessed via presigned URLs (browser runtime).\n Supports the full filesystem command set: ls/tree/cat/grep/find/du/cp/mv/rm/etc.\n Listing operations require the presigner to sign LIST/COPY operations in\n addition to GET/PUT/HEAD/DELETE \u2014 see S3BrowserPresignedUrlProvider docs.";
|
|
579
|
+
|
|
263
580
|
interface SlackConfig {
|
|
264
581
|
proxyUrl: string;
|
|
265
582
|
getHeaders?: () => Promise<Record<string, string>> | Record<string, string>;
|
|
@@ -272,8 +589,6 @@ declare function redactSlackConfig(config: SlackConfig): SlackConfigRedacted;
|
|
|
272
589
|
|
|
273
590
|
interface SlackResourceState {
|
|
274
591
|
type: string;
|
|
275
|
-
needsOverride: boolean;
|
|
276
|
-
redactedFields: readonly string[];
|
|
277
592
|
config: SlackConfigRedacted;
|
|
278
593
|
}
|
|
279
594
|
declare class SlackResource implements Resource {
|
|
@@ -311,8 +626,6 @@ declare function redactDiscordConfig(config: DiscordConfig): DiscordConfigRedact
|
|
|
311
626
|
|
|
312
627
|
interface DiscordResourceState {
|
|
313
628
|
type: string;
|
|
314
|
-
needsOverride: boolean;
|
|
315
|
-
redactedFields: readonly string[];
|
|
316
629
|
config: DiscordConfigRedacted;
|
|
317
630
|
}
|
|
318
631
|
declare class DiscordResource implements Resource {
|
|
@@ -408,113 +721,19 @@ declare class HttpMongoDriver implements MongoDriver {
|
|
|
408
721
|
constructor(options: HttpMongoDriverOptions);
|
|
409
722
|
private post;
|
|
410
723
|
listDatabases(): Promise<string[]>;
|
|
411
|
-
listCollections(database: string): Promise<string[]>;
|
|
724
|
+
listCollections(database: string, kind?: EntityKind | null): Promise<string[]>;
|
|
725
|
+
listCollectionsDetailed(database: string, filter?: {
|
|
726
|
+
name?: string;
|
|
727
|
+
}): Promise<MongoCollectionSpec[]>;
|
|
412
728
|
findDocuments<T = Record<string, unknown>>(database: string, collection: string, filter?: Record<string, unknown>, options?: MongoFindOptions): Promise<T[]>;
|
|
729
|
+
iterDocuments<T = Record<string, unknown>>(database: string, collection: string, options?: MongoIterOptions): AsyncIterableIterator<T>;
|
|
730
|
+
iterInserts<T = Record<string, unknown>>(_database: string, _collection: string): AsyncIterableIterator<T>;
|
|
413
731
|
countDocuments(database: string, collection: string, filter?: Record<string, unknown>): Promise<number>;
|
|
414
732
|
listIndexes(database: string, collection: string): Promise<Record<string, unknown>[]>;
|
|
733
|
+
getIndexStats(database: string, collection: string): Promise<Record<string, MongoIndexAccess>>;
|
|
415
734
|
close(): Promise<void>;
|
|
416
735
|
}
|
|
417
736
|
|
|
418
|
-
interface SSCholarPaperResourceOptions {
|
|
419
|
-
config?: SSCholarConfig;
|
|
420
|
-
prefix?: string;
|
|
421
|
-
driver?: SSCholarDriver;
|
|
422
|
-
}
|
|
423
|
-
declare class SSCholarPaperResource implements Resource {
|
|
424
|
-
readonly kind: string;
|
|
425
|
-
readonly isRemote: boolean;
|
|
426
|
-
readonly indexTtl: number;
|
|
427
|
-
readonly prompt: string;
|
|
428
|
-
readonly config: SSCholarConfigResolved;
|
|
429
|
-
readonly driver: SSCholarDriver;
|
|
430
|
-
readonly accessor: SSCholarAccessor;
|
|
431
|
-
readonly index: IndexCacheStore;
|
|
432
|
-
constructor(options?: SSCholarPaperResourceOptions | SSCholarConfig);
|
|
433
|
-
open(): Promise<void>;
|
|
434
|
-
close(): Promise<void>;
|
|
435
|
-
ops(): readonly RegisteredOp[];
|
|
436
|
-
commands(): readonly RegisteredCommand[];
|
|
437
|
-
readFile(p: PathSpec): Promise<Uint8Array>;
|
|
438
|
-
readdir(p: PathSpec): Promise<string[]>;
|
|
439
|
-
stat(p: PathSpec): Promise<FileStat>;
|
|
440
|
-
glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
interface SSCholarAuthorResourceOptions {
|
|
444
|
-
config?: SSCholarConfig;
|
|
445
|
-
prefix?: string;
|
|
446
|
-
driver?: SSCholarDriver;
|
|
447
|
-
}
|
|
448
|
-
declare class SSCholarAuthorResource implements Resource {
|
|
449
|
-
readonly kind: string;
|
|
450
|
-
readonly isRemote: boolean;
|
|
451
|
-
readonly indexTtl: number;
|
|
452
|
-
readonly prompt: string;
|
|
453
|
-
readonly config: SSCholarConfigResolved;
|
|
454
|
-
readonly driver: SSCholarDriver;
|
|
455
|
-
readonly accessor: SSCholarAccessor;
|
|
456
|
-
readonly index: IndexCacheStore;
|
|
457
|
-
constructor(options?: SSCholarAuthorResourceOptions | SSCholarConfig);
|
|
458
|
-
open(): Promise<void>;
|
|
459
|
-
close(): Promise<void>;
|
|
460
|
-
ops(): readonly RegisteredOp[];
|
|
461
|
-
commands(): readonly RegisteredCommand[];
|
|
462
|
-
readFile(p: PathSpec): Promise<Uint8Array>;
|
|
463
|
-
readdir(p: PathSpec): Promise<string[]>;
|
|
464
|
-
stat(p: PathSpec): Promise<FileStat>;
|
|
465
|
-
glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
interface VercelResourceOptions {
|
|
469
|
-
config?: VercelConfig;
|
|
470
|
-
prefix?: string;
|
|
471
|
-
driver?: VercelDriver;
|
|
472
|
-
}
|
|
473
|
-
declare class VercelResource implements Resource {
|
|
474
|
-
readonly kind: string;
|
|
475
|
-
readonly isRemote: boolean;
|
|
476
|
-
readonly indexTtl: number;
|
|
477
|
-
readonly prompt: string;
|
|
478
|
-
readonly config: VercelConfigResolved;
|
|
479
|
-
readonly driver: VercelDriver;
|
|
480
|
-
readonly accessor: VercelAccessor;
|
|
481
|
-
readonly index: IndexCacheStore;
|
|
482
|
-
constructor(options?: VercelResourceOptions | VercelConfig);
|
|
483
|
-
open(): Promise<void>;
|
|
484
|
-
close(): Promise<void>;
|
|
485
|
-
ops(): readonly RegisteredOp[];
|
|
486
|
-
commands(): readonly RegisteredCommand[];
|
|
487
|
-
readFile(p: PathSpec): Promise<Uint8Array>;
|
|
488
|
-
readdir(p: PathSpec): Promise<string[]>;
|
|
489
|
-
stat(p: PathSpec): Promise<FileStat>;
|
|
490
|
-
glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
interface PostHogResourceOptions {
|
|
494
|
-
config?: PostHogConfig;
|
|
495
|
-
prefix?: string;
|
|
496
|
-
driver?: PostHogDriver;
|
|
497
|
-
}
|
|
498
|
-
declare class PostHogResource implements Resource {
|
|
499
|
-
readonly kind: string;
|
|
500
|
-
readonly isRemote: boolean;
|
|
501
|
-
readonly indexTtl: number;
|
|
502
|
-
readonly prompt: string;
|
|
503
|
-
readonly config: PostHogConfigResolved;
|
|
504
|
-
readonly driver: PostHogDriver;
|
|
505
|
-
readonly accessor: PostHogAccessor;
|
|
506
|
-
readonly index: IndexCacheStore;
|
|
507
|
-
constructor(options?: PostHogResourceOptions | PostHogConfig);
|
|
508
|
-
open(): Promise<void>;
|
|
509
|
-
close(): Promise<void>;
|
|
510
|
-
ops(): readonly RegisteredOp[];
|
|
511
|
-
commands(): readonly RegisteredCommand[];
|
|
512
|
-
readFile(p: PathSpec): Promise<Uint8Array>;
|
|
513
|
-
readdir(p: PathSpec): Promise<string[]>;
|
|
514
|
-
stat(p: PathSpec): Promise<FileStat>;
|
|
515
|
-
glob(paths: readonly PathSpec[], prefix?: string): Promise<PathSpec[]>;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
737
|
interface TrelloConfig {
|
|
519
738
|
apiKey: string;
|
|
520
739
|
apiToken: string;
|
|
@@ -533,8 +752,6 @@ declare function redactTrelloConfig(config: TrelloConfig): TrelloConfigRedacted;
|
|
|
533
752
|
|
|
534
753
|
interface TrelloResourceState {
|
|
535
754
|
type: string;
|
|
536
|
-
needsOverride: boolean;
|
|
537
|
-
redactedFields: readonly string[];
|
|
538
755
|
config: TrelloConfigRedacted;
|
|
539
756
|
}
|
|
540
757
|
declare class TrelloResource implements Resource {
|
|
@@ -577,8 +794,6 @@ declare function redactLinearConfig(config: LinearConfig): LinearConfigRedacted;
|
|
|
577
794
|
|
|
578
795
|
interface LinearResourceState {
|
|
579
796
|
type: string;
|
|
580
|
-
needsOverride: boolean;
|
|
581
|
-
redactedFields: readonly string[];
|
|
582
797
|
config: LinearConfigRedacted;
|
|
583
798
|
}
|
|
584
799
|
declare class LinearResource implements Resource {
|
|
@@ -617,8 +832,6 @@ declare function redactNotionConfig(config: NotionConfig): NotionConfigRedacted;
|
|
|
617
832
|
|
|
618
833
|
interface NotionResourceState {
|
|
619
834
|
type: string;
|
|
620
|
-
needsOverride: boolean;
|
|
621
|
-
redactedFields: readonly string[];
|
|
622
835
|
config: NotionConfigRedacted;
|
|
623
836
|
}
|
|
624
837
|
declare class NotionResource implements Resource {
|
|
@@ -664,8 +877,6 @@ declare function redactLangfuseConfig(config: LangfuseConfig): LangfuseConfigRed
|
|
|
664
877
|
|
|
665
878
|
interface LangfuseResourceState {
|
|
666
879
|
type: string;
|
|
667
|
-
needsOverride: boolean;
|
|
668
|
-
redactedFields: readonly string[];
|
|
669
880
|
config: LangfuseConfigRedacted;
|
|
670
881
|
}
|
|
671
882
|
declare class LangfuseResource implements Resource {
|
|
@@ -709,8 +920,6 @@ declare function normalizeGitHubConfig(input: Record<string, unknown>): GitHubCo
|
|
|
709
920
|
|
|
710
921
|
interface GitHubResourceState {
|
|
711
922
|
type: string;
|
|
712
|
-
needsOverride: boolean;
|
|
713
|
-
redactedFields: readonly string[];
|
|
714
923
|
config: GitHubConfigRedacted;
|
|
715
924
|
defaultBranch: string;
|
|
716
925
|
truncated: boolean;
|
|
@@ -757,8 +966,6 @@ declare function normalizeGitHubCIConfig(input: Record<string, unknown>): GitHub
|
|
|
757
966
|
|
|
758
967
|
interface GitHubCIResourceState {
|
|
759
968
|
type: string;
|
|
760
|
-
needsOverride: boolean;
|
|
761
|
-
redactedFields: readonly string[];
|
|
762
969
|
config: GitHubCIConfigRedacted;
|
|
763
970
|
}
|
|
764
971
|
declare class GitHubCIResource implements Resource {
|
|
@@ -802,8 +1009,6 @@ declare function normalizeGDocsConfig(input: Record<string, unknown>): GDocsConf
|
|
|
802
1009
|
|
|
803
1010
|
interface GDocsResourceState {
|
|
804
1011
|
type: string;
|
|
805
|
-
needsOverride: boolean;
|
|
806
|
-
redactedFields: readonly string[];
|
|
807
1012
|
config: GDocsConfigRedacted;
|
|
808
1013
|
}
|
|
809
1014
|
declare class GDocsResource implements Resource {
|
|
@@ -848,8 +1053,6 @@ declare function normalizeGSheetsConfig(input: Record<string, unknown>): GSheets
|
|
|
848
1053
|
|
|
849
1054
|
interface GSheetsResourceState {
|
|
850
1055
|
type: string;
|
|
851
|
-
needsOverride: boolean;
|
|
852
|
-
redactedFields: readonly string[];
|
|
853
1056
|
config: GSheetsConfigRedacted;
|
|
854
1057
|
}
|
|
855
1058
|
declare class GSheetsResource implements Resource {
|
|
@@ -894,8 +1097,6 @@ declare function normalizeGSlidesConfig(input: Record<string, unknown>): GSlides
|
|
|
894
1097
|
|
|
895
1098
|
interface GSlidesResourceState {
|
|
896
1099
|
type: string;
|
|
897
|
-
needsOverride: boolean;
|
|
898
|
-
redactedFields: readonly string[];
|
|
899
1100
|
config: GSlidesConfigRedacted;
|
|
900
1101
|
}
|
|
901
1102
|
declare class GSlidesResource implements Resource {
|
|
@@ -940,8 +1141,6 @@ declare function normalizeGDriveConfig(input: Record<string, unknown>): GDriveCo
|
|
|
940
1141
|
|
|
941
1142
|
interface GDriveResourceState {
|
|
942
1143
|
type: string;
|
|
943
|
-
needsOverride: boolean;
|
|
944
|
-
redactedFields: readonly string[];
|
|
945
1144
|
config: GDriveConfigRedacted;
|
|
946
1145
|
}
|
|
947
1146
|
declare class GDriveResource implements Resource {
|
|
@@ -985,8 +1184,6 @@ declare function normalizeDropboxConfig(input: Record<string, unknown>): Dropbox
|
|
|
985
1184
|
|
|
986
1185
|
interface DropboxResourceState {
|
|
987
1186
|
type: string;
|
|
988
|
-
needsOverride: boolean;
|
|
989
|
-
redactedFields: readonly string[];
|
|
990
1187
|
config: DropboxConfigRedacted;
|
|
991
1188
|
}
|
|
992
1189
|
declare class DropboxResource implements Resource {
|
|
@@ -1034,8 +1231,6 @@ declare function normalizeBoxConfig(input: Record<string, unknown>): BoxConfig;
|
|
|
1034
1231
|
|
|
1035
1232
|
interface BoxResourceState {
|
|
1036
1233
|
type: string;
|
|
1037
|
-
needsOverride: boolean;
|
|
1038
|
-
redactedFields: readonly string[];
|
|
1039
1234
|
config: BoxConfigRedacted;
|
|
1040
1235
|
}
|
|
1041
1236
|
declare class BoxResource implements Resource {
|
|
@@ -1060,28 +1255,9 @@ declare class BoxResource implements Resource {
|
|
|
1060
1255
|
loadState(_state: BoxResourceState): Promise<void>;
|
|
1061
1256
|
}
|
|
1062
1257
|
|
|
1063
|
-
interface GmailConfig {
|
|
1064
|
-
clientId: string;
|
|
1065
|
-
clientSecret?: string;
|
|
1066
|
-
refreshToken: string;
|
|
1067
|
-
refreshFn?: (refreshToken: string) => Promise<{
|
|
1068
|
-
accessToken: string;
|
|
1069
|
-
expiresIn: number;
|
|
1070
|
-
}>;
|
|
1071
|
-
}
|
|
1072
|
-
interface GmailConfigRedacted {
|
|
1073
|
-
clientId: string;
|
|
1074
|
-
clientSecret?: '<REDACTED>';
|
|
1075
|
-
refreshToken: '<REDACTED>';
|
|
1076
|
-
}
|
|
1077
|
-
declare function redactGmailConfig(config: GmailConfig): GmailConfigRedacted;
|
|
1078
|
-
declare function normalizeGmailConfig(input: Record<string, unknown>): GmailConfig;
|
|
1079
|
-
|
|
1080
1258
|
interface GmailResourceState {
|
|
1081
1259
|
type: string;
|
|
1082
|
-
|
|
1083
|
-
redactedFields: readonly string[];
|
|
1084
|
-
config: GmailConfigRedacted;
|
|
1260
|
+
config: GoogleConfigRedacted;
|
|
1085
1261
|
}
|
|
1086
1262
|
declare class GmailResource implements Resource {
|
|
1087
1263
|
readonly kind: string;
|
|
@@ -1089,10 +1265,10 @@ declare class GmailResource implements Resource {
|
|
|
1089
1265
|
readonly indexTtl: number;
|
|
1090
1266
|
readonly prompt: string;
|
|
1091
1267
|
readonly writePrompt: string;
|
|
1092
|
-
readonly config:
|
|
1268
|
+
readonly config: GoogleConfig;
|
|
1093
1269
|
readonly accessor: GmailAccessor;
|
|
1094
1270
|
readonly index: IndexCacheStore;
|
|
1095
|
-
constructor(config:
|
|
1271
|
+
constructor(config: GoogleConfig);
|
|
1096
1272
|
open(): Promise<void>;
|
|
1097
1273
|
close(): Promise<void>;
|
|
1098
1274
|
commands(): readonly RegisteredCommand[];
|
|
@@ -1124,4 +1300,4 @@ declare function knownResources(): string[];
|
|
|
1124
1300
|
declare function register(name: string, factory: ResourceFactory): void;
|
|
1125
1301
|
declare function buildResource(name: string, config?: Record<string, unknown>): Promise<Resource>;
|
|
1126
1302
|
|
|
1127
|
-
export { type BoxConfig, type BoxConfigRedacted, BoxResource, type BoxResourceState, type DiscordConfig, type DiscordConfigRedacted, DiscordResource, type DiscordResourceState, type DropboxConfig, type DropboxConfigRedacted, DropboxResource, type DropboxResourceState, type GCSConfig, type GCSConfigRedacted, GCSResource, type GCSResourceState, GCS_BROWSER_PROMPT, type GDocsConfig, type GDocsConfigRedacted, GDocsResource, type GDocsResourceState, type GDriveConfig, type GDriveConfigRedacted, GDriveResource, type GDriveResourceState, type GSheetsConfig, type GSheetsConfigRedacted, GSheetsResource, type GSheetsResourceState, type GSlidesConfig, type GSlidesConfigRedacted, GSlidesResource, type GSlidesResourceState, type GitHubCIConfig, type GitHubCIConfigRedacted, GitHubCIResource, type GitHubCIResourceState, type GitHubConfig, type GitHubConfigRedacted, GitHubResource, type GitHubResourceState,
|
|
1303
|
+
export { ALIYUN_BROWSER_PROMPT, type AliyunConfig, type AliyunConfigRedacted, AliyunResource, type AliyunResourceState, BACKBLAZE_BROWSER_PROMPT, type BackblazeConfig, type BackblazeConfigRedacted, BackblazeResource, type BackblazeResourceState, type BoxConfig, type BoxConfigRedacted, BoxResource, type BoxResourceState, CEPH_BROWSER_PROMPT, type CephConfig, type CephConfigRedacted, CephResource, type CephResourceState, DIGITALOCEAN_BROWSER_PROMPT, type DigitalOceanConfig, type DigitalOceanConfigRedacted, DigitalOceanResource, type DigitalOceanResourceState, type DiscordConfig, type DiscordConfigRedacted, DiscordResource, type DiscordResourceState, type DropboxConfig, type DropboxConfigRedacted, DropboxResource, type DropboxResourceState, type GCSConfig, type GCSConfigRedacted, GCSResource, type GCSResourceState, GCS_BROWSER_PROMPT, type GDocsConfig, type GDocsConfigRedacted, GDocsResource, type GDocsResourceState, type GDriveConfig, type GDriveConfigRedacted, GDriveResource, type GDriveResourceState, type GSheetsConfig, type GSheetsConfigRedacted, GSheetsResource, type GSheetsResourceState, type GSlidesConfig, type GSlidesConfigRedacted, GSlidesResource, type GSlidesResourceState, type GitHubCIConfig, type GitHubCIConfigRedacted, GitHubCIResource, type GitHubCIResourceState, type GitHubConfig, type GitHubConfigRedacted, GitHubResource, type GitHubResourceState, GmailResource, type GmailResourceState, HttpMongoDriver, type HttpMongoDriverOptions, type LangfuseConfig, type LangfuseConfigRedacted, LangfuseResource, type LangfuseResourceState, type LinearConfig, type LinearConfigRedacted, LinearResource, type LinearResourceState, MINIO_BROWSER_PROMPT, type MinIOConfig, type MinIOConfigRedacted, MinIOResource, type MinIOResourceState, MongoDBResource, type MongoDBResourceOptions, NeonPgDriver, type NotionConfig, type NotionConfigRedacted, NotionResource, type NotionResourceState, type OCIConfig, type OCIConfigRedacted, OCIResource, type OCIResourceState, OCI_BROWSER_PROMPT, OPFSAccessor, OPFSResource, type OPFSResourceOptions, type OPFSResourceState, OPFS_COMMANDS, OPFS_OPS, OPFS_PROMPT, PostgresResource, type PostgresResourceOptions, QINGSTOR_BROWSER_PROMPT, type QingStorConfig, type QingStorConfigRedacted, QingStorResource, type QingStorResourceState, type R2Config, type R2ConfigRedacted, R2Resource, type R2ResourceState, R2_BROWSER_PROMPT, type ResourceFactory, S3Resource, type S3ResourceState, S3_BROWSER_PROMPT, SCALEWAY_BROWSER_PROMPT, SEAWEEDFS_BROWSER_PROMPT, SUPABASE_BROWSER_PROMPT, type ScalewayConfig, type ScalewayConfigRedacted, ScalewayResource, type ScalewayResourceState, type SeaweedFSConfig, type SeaweedFSConfigRedacted, SeaweedFSResource, type SeaweedFSResourceState, type SlackConfig, type SlackConfigRedacted, SlackResource, type SlackResourceState, type SupabaseConfig, type SupabaseConfigRedacted, SupabaseResource, type SupabaseResourceState, TENCENT_BROWSER_PROMPT, type TencentConfig, type TencentConfigRedacted, TencentResource, type TencentResourceState, type TrelloConfig, type TrelloConfigRedacted, TrelloResource, type TrelloResourceState, WASABI_BROWSER_PROMPT, type WasabiConfig, type WasabiConfigRedacted, WasabiResource, type WasabiResourceState, Workspace, aliyunToS3Config, backblazeToS3Config, buildResource, cephToS3Config, digitalOceanToS3Config, gcsToS3Config, knownResources, minioToS3Config, normalizeBoxConfig, normalizeDropboxConfig, normalizeGDocsConfig, normalizeGDriveConfig, normalizeGSheetsConfig, normalizeGSlidesConfig, normalizeGitHubCIConfig, normalizeGitHubConfig, ociToS3Config, qingStorToS3Config, r2ToS3Config, redactAliyunConfig, redactBackblazeConfig, redactBoxConfig, redactCephConfig, redactDigitalOceanConfig, redactDiscordConfig, redactDropboxConfig, redactGDocsConfig, redactGDriveConfig, redactGSheetsConfig, redactGSlidesConfig, redactGcsConfig, redactGitHubCIConfig, redactGitHubConfig, redactLangfuseConfig, redactLinearConfig, redactMinIOConfig, redactNotionConfig, redactOciConfig, redactQingStorConfig, redactR2Config, redactScalewayConfig, redactSeaweedFSConfig, redactSlackConfig, redactSupabaseConfig, redactTencentConfig, redactTrelloConfig, redactWasabiConfig, register as registerResourceFactory, resolvedAliyunEndpoint, resolvedBackblazeEndpoint, resolvedDigitalOceanEndpoint, resolvedOciEndpoint, resolvedQingStorEndpoint, resolvedR2Endpoint, resolvedScalewayEndpoint, resolvedSupabaseEndpoint, resolvedTencentEndpoint, resolvedWasabiEndpoint, scalewayToS3Config, seaweedfsToS3Config, supabaseToS3Config, tencentToS3Config, wasabiToS3Config };
|