@struktoai/mirage-browser 0.0.1 → 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 +63 -129
- 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.js
CHANGED
|
@@ -1,63 +1,83 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GmailResource
|
|
3
|
+
} from "./chunk-RD7ED27I.js";
|
|
4
|
+
import {
|
|
5
|
+
normalizeGoogleConfig,
|
|
6
|
+
redactGoogleConfig
|
|
7
|
+
} from "./chunk-54NTYJEO.js";
|
|
8
|
+
import {
|
|
9
|
+
GSlidesResource
|
|
10
|
+
} from "./chunk-TPFH5V4D.js";
|
|
11
|
+
import {
|
|
12
|
+
normalizeGSlidesConfig,
|
|
13
|
+
redactGSlidesConfig
|
|
14
|
+
} from "./chunk-JSAQMYPK.js";
|
|
1
15
|
import {
|
|
2
16
|
GDriveResource
|
|
3
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4YJMDF2S.js";
|
|
4
18
|
import {
|
|
5
19
|
normalizeGDriveConfig,
|
|
6
20
|
redactGDriveConfig
|
|
7
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NMZBJOFW.js";
|
|
8
22
|
import {
|
|
9
23
|
DropboxResource
|
|
10
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SBAUYZJB.js";
|
|
11
25
|
import {
|
|
12
26
|
normalizeDropboxConfig,
|
|
13
27
|
redactDropboxConfig
|
|
14
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-O5ONB7QT.js";
|
|
15
29
|
import {
|
|
16
30
|
BoxResource
|
|
17
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-D6HF462C.js";
|
|
18
32
|
import {
|
|
19
33
|
normalizeBoxConfig,
|
|
20
34
|
redactBoxConfig
|
|
21
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-J54OBIJA.js";
|
|
22
36
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
37
|
+
LangfuseResource,
|
|
38
|
+
redactLangfuseConfig
|
|
39
|
+
} from "./chunk-INLL7LRM.js";
|
|
25
40
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
41
|
+
GitHubResource,
|
|
42
|
+
normalizeGitHubConfig,
|
|
43
|
+
redactGitHubConfig
|
|
44
|
+
} from "./chunk-ATLYBQSC.js";
|
|
29
45
|
import {
|
|
30
46
|
GitHubCIResource
|
|
31
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-JVTKE6DB.js";
|
|
32
48
|
import {
|
|
33
49
|
normalizeGitHubCIConfig,
|
|
34
50
|
redactGitHubCIConfig
|
|
35
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-HYUESAQS.js";
|
|
36
52
|
import {
|
|
37
53
|
GDocsResource
|
|
38
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-6K57U6CM.js";
|
|
39
55
|
import {
|
|
40
56
|
normalizeGDocsConfig,
|
|
41
57
|
redactGDocsConfig
|
|
42
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-2H4KUUFP.js";
|
|
43
59
|
import {
|
|
44
60
|
GSheetsResource
|
|
45
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-RZRXEXHM.js";
|
|
46
62
|
import {
|
|
47
63
|
normalizeGSheetsConfig,
|
|
48
64
|
redactGSheetsConfig
|
|
49
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-YGRKFONX.js";
|
|
50
66
|
import {
|
|
51
|
-
|
|
52
|
-
|
|
67
|
+
QINGSTOR_BROWSER_PROMPT,
|
|
68
|
+
QingStorResource,
|
|
69
|
+
qingStorToS3Config,
|
|
70
|
+
redactQingStorConfig,
|
|
71
|
+
resolvedQingStorEndpoint
|
|
72
|
+
} from "./chunk-32VC36P4.js";
|
|
53
73
|
import {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
} from "./chunk-
|
|
74
|
+
SlackResource,
|
|
75
|
+
redactSlackConfig
|
|
76
|
+
} from "./chunk-JCS5EG5A.js";
|
|
57
77
|
import {
|
|
58
78
|
DiscordResource,
|
|
59
79
|
redactDiscordConfig
|
|
60
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-N43C6XFP.js";
|
|
61
81
|
import {
|
|
62
82
|
NeonPgDriver,
|
|
63
83
|
PostgresResource
|
|
@@ -65,71 +85,118 @@ import {
|
|
|
65
85
|
import {
|
|
66
86
|
HttpMongoDriver,
|
|
67
87
|
MongoDBResource
|
|
68
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-EH2BN4JC.js";
|
|
69
89
|
import {
|
|
70
90
|
TrelloResource,
|
|
71
91
|
redactTrelloConfig
|
|
72
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-HGSTRD7H.js";
|
|
73
93
|
import {
|
|
74
94
|
LinearResource,
|
|
75
95
|
redactLinearConfig
|
|
76
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-T43CZ3IZ.js";
|
|
77
97
|
import {
|
|
78
98
|
NotionResource,
|
|
79
99
|
redactNotionConfig
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
100
|
+
} from "./chunk-BUXWUKN7.js";
|
|
101
|
+
import {
|
|
102
|
+
SEAWEEDFS_BROWSER_PROMPT,
|
|
103
|
+
SeaweedFSResource,
|
|
104
|
+
redactSeaweedFSConfig,
|
|
105
|
+
seaweedfsToS3Config
|
|
106
|
+
} from "./chunk-63GZEZW4.js";
|
|
107
|
+
import {
|
|
108
|
+
CEPH_BROWSER_PROMPT,
|
|
109
|
+
CephResource,
|
|
110
|
+
cephToS3Config,
|
|
111
|
+
redactCephConfig
|
|
112
|
+
} from "./chunk-RJ5FBBL6.js";
|
|
113
|
+
import {
|
|
114
|
+
WASABI_BROWSER_PROMPT,
|
|
115
|
+
WasabiResource,
|
|
116
|
+
redactWasabiConfig,
|
|
117
|
+
resolvedWasabiEndpoint,
|
|
118
|
+
wasabiToS3Config
|
|
119
|
+
} from "./chunk-CAKSQ2LV.js";
|
|
120
|
+
import {
|
|
121
|
+
BACKBLAZE_BROWSER_PROMPT,
|
|
122
|
+
BackblazeResource,
|
|
123
|
+
backblazeToS3Config,
|
|
124
|
+
redactBackblazeConfig,
|
|
125
|
+
resolvedBackblazeEndpoint
|
|
126
|
+
} from "./chunk-EUKHGXCE.js";
|
|
127
|
+
import {
|
|
128
|
+
DIGITALOCEAN_BROWSER_PROMPT,
|
|
129
|
+
DigitalOceanResource,
|
|
130
|
+
digitalOceanToS3Config,
|
|
131
|
+
redactDigitalOceanConfig,
|
|
132
|
+
resolvedDigitalOceanEndpoint
|
|
133
|
+
} from "./chunk-RJ4RR3BR.js";
|
|
134
|
+
import {
|
|
135
|
+
TENCENT_BROWSER_PROMPT,
|
|
136
|
+
TencentResource,
|
|
137
|
+
redactTencentConfig,
|
|
138
|
+
resolvedTencentEndpoint,
|
|
139
|
+
tencentToS3Config
|
|
140
|
+
} from "./chunk-CO4FMKOF.js";
|
|
141
|
+
import {
|
|
142
|
+
ALIYUN_BROWSER_PROMPT,
|
|
143
|
+
AliyunResource,
|
|
144
|
+
aliyunToS3Config,
|
|
145
|
+
redactAliyunConfig,
|
|
146
|
+
resolvedAliyunEndpoint
|
|
147
|
+
} from "./chunk-GHKX2BA3.js";
|
|
148
|
+
import {
|
|
149
|
+
SCALEWAY_BROWSER_PROMPT,
|
|
150
|
+
ScalewayResource,
|
|
151
|
+
redactScalewayConfig,
|
|
152
|
+
resolvedScalewayEndpoint,
|
|
153
|
+
scalewayToS3Config
|
|
154
|
+
} from "./chunk-72GY5B23.js";
|
|
90
155
|
import {
|
|
91
156
|
OPFSAccessor,
|
|
92
157
|
OPFSResource,
|
|
93
158
|
OPFS_COMMANDS,
|
|
94
159
|
OPFS_OPS,
|
|
95
160
|
OPFS_PROMPT
|
|
96
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-SJB2KXDM.js";
|
|
97
162
|
import {
|
|
98
163
|
GCSResource,
|
|
99
164
|
GCS_BROWSER_PROMPT,
|
|
100
165
|
gcsToS3Config,
|
|
101
166
|
redactGcsConfig
|
|
102
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-WZ53HLH6.js";
|
|
103
168
|
import {
|
|
104
169
|
R2Resource,
|
|
105
170
|
R2_BROWSER_PROMPT,
|
|
106
171
|
r2ToS3Config,
|
|
107
172
|
redactR2Config,
|
|
108
173
|
resolvedR2Endpoint
|
|
109
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-MO5DGX42.js";
|
|
110
175
|
import {
|
|
111
176
|
OCIResource,
|
|
112
177
|
OCI_BROWSER_PROMPT,
|
|
113
178
|
ociToS3Config,
|
|
114
179
|
redactOciConfig,
|
|
115
180
|
resolvedOciEndpoint
|
|
116
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-D3JDGGKO.js";
|
|
117
182
|
import {
|
|
118
183
|
SUPABASE_BROWSER_PROMPT,
|
|
119
184
|
SupabaseResource,
|
|
120
185
|
redactSupabaseConfig,
|
|
121
186
|
resolvedSupabaseEndpoint,
|
|
122
187
|
supabaseToS3Config
|
|
123
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-WEJGUCCL.js";
|
|
189
|
+
import {
|
|
190
|
+
MINIO_BROWSER_PROMPT,
|
|
191
|
+
MinIOResource,
|
|
192
|
+
minioToS3Config,
|
|
193
|
+
redactMinIOConfig
|
|
194
|
+
} from "./chunk-YEDSFMWK.js";
|
|
124
195
|
import {
|
|
125
196
|
S3Resource,
|
|
126
197
|
S3_BROWSER_PROMPT,
|
|
127
198
|
redactS3Config
|
|
128
|
-
} from "./chunk-
|
|
129
|
-
import {
|
|
130
|
-
SlackResource,
|
|
131
|
-
redactSlackConfig
|
|
132
|
-
} from "./chunk-DPC7QRYO.js";
|
|
199
|
+
} from "./chunk-XFREXNA2.js";
|
|
133
200
|
|
|
134
201
|
// src/index.ts
|
|
135
202
|
export * from "@struktoai/mirage-core";
|
|
@@ -178,292 +245,6 @@ var Workspace = class extends CoreWorkspace {
|
|
|
178
245
|
}
|
|
179
246
|
};
|
|
180
247
|
|
|
181
|
-
// src/resource/sscholar/sscholar.ts
|
|
182
|
-
import {
|
|
183
|
-
PathSpec,
|
|
184
|
-
RAMIndexCacheStore,
|
|
185
|
-
SSCHOLAR_PAPER_COMMANDS,
|
|
186
|
-
SSCHOLAR_PAPER_OPS,
|
|
187
|
-
SSCHOLAR_PAPER_PROMPT,
|
|
188
|
-
SSCholarAccessor,
|
|
189
|
-
ResourceName,
|
|
190
|
-
resolveSSCholarConfig,
|
|
191
|
-
resolveSSCholarPaperGlob,
|
|
192
|
-
sscholarPaperRead,
|
|
193
|
-
sscholarPaperReaddir,
|
|
194
|
-
sscholarPaperStat
|
|
195
|
-
} from "@struktoai/mirage-core";
|
|
196
|
-
|
|
197
|
-
// src/resource/sscholar/http_driver.ts
|
|
198
|
-
import { HttpSSCholarDriver } from "@struktoai/mirage-core";
|
|
199
|
-
|
|
200
|
-
// src/resource/sscholar/sscholar.ts
|
|
201
|
-
var SSCholarPaperResource = class {
|
|
202
|
-
kind = ResourceName.SSCHOLAR_PAPER;
|
|
203
|
-
isRemote = true;
|
|
204
|
-
indexTtl = 0;
|
|
205
|
-
prompt;
|
|
206
|
-
config;
|
|
207
|
-
driver;
|
|
208
|
-
accessor;
|
|
209
|
-
index;
|
|
210
|
-
constructor(options = {}) {
|
|
211
|
-
const opts = "config" in options || "driver" in options || "prefix" in options ? options : { config: options };
|
|
212
|
-
this.config = resolveSSCholarConfig(opts.config ?? {});
|
|
213
|
-
this.driver = opts.driver ?? new HttpSSCholarDriver({ baseUrl: this.config.baseUrl, apiKey: this.config.apiKey });
|
|
214
|
-
this.accessor = new SSCholarAccessor(this.driver, this.config);
|
|
215
|
-
this.index = new RAMIndexCacheStore({ ttl: this.indexTtl });
|
|
216
|
-
this.prompt = SSCHOLAR_PAPER_PROMPT.replace("{prefix}", opts.prefix ?? "");
|
|
217
|
-
}
|
|
218
|
-
open() {
|
|
219
|
-
return Promise.resolve();
|
|
220
|
-
}
|
|
221
|
-
async close() {
|
|
222
|
-
await this.driver.close();
|
|
223
|
-
}
|
|
224
|
-
ops() {
|
|
225
|
-
return SSCHOLAR_PAPER_OPS;
|
|
226
|
-
}
|
|
227
|
-
commands() {
|
|
228
|
-
return SSCHOLAR_PAPER_COMMANDS;
|
|
229
|
-
}
|
|
230
|
-
readFile(p) {
|
|
231
|
-
return sscholarPaperRead(this.accessor, p, this.index);
|
|
232
|
-
}
|
|
233
|
-
readdir(p) {
|
|
234
|
-
return sscholarPaperReaddir(this.accessor, p, this.index);
|
|
235
|
-
}
|
|
236
|
-
stat(p) {
|
|
237
|
-
return sscholarPaperStat(this.accessor, p, this.index);
|
|
238
|
-
}
|
|
239
|
-
glob(paths, prefix = "") {
|
|
240
|
-
const effective = prefix !== "" ? paths.map(
|
|
241
|
-
(p) => p.prefix !== "" ? p : new PathSpec({
|
|
242
|
-
original: p.original,
|
|
243
|
-
directory: p.directory,
|
|
244
|
-
...p.pattern !== null ? { pattern: p.pattern } : {},
|
|
245
|
-
resolved: p.resolved,
|
|
246
|
-
prefix
|
|
247
|
-
})
|
|
248
|
-
) : paths;
|
|
249
|
-
return resolveSSCholarPaperGlob(this.accessor, effective, this.index);
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
// src/resource/sscholar/author.ts
|
|
254
|
-
import {
|
|
255
|
-
HttpSSCholarDriver as HttpSSCholarDriver2,
|
|
256
|
-
PathSpec as PathSpec2,
|
|
257
|
-
RAMIndexCacheStore as RAMIndexCacheStore2,
|
|
258
|
-
ResourceName as ResourceName2,
|
|
259
|
-
SSCHOLAR_AUTHOR_COMMANDS,
|
|
260
|
-
SSCHOLAR_AUTHOR_OPS,
|
|
261
|
-
SSCHOLAR_AUTHOR_PROMPT,
|
|
262
|
-
SSCholarAccessor as SSCholarAccessor2,
|
|
263
|
-
resolveSSCholarAuthorGlob,
|
|
264
|
-
resolveSSCholarConfig as resolveSSCholarConfig2,
|
|
265
|
-
sscholarAuthorRead,
|
|
266
|
-
sscholarAuthorReaddir,
|
|
267
|
-
sscholarAuthorStat
|
|
268
|
-
} from "@struktoai/mirage-core";
|
|
269
|
-
var SSCholarAuthorResource = class {
|
|
270
|
-
kind = ResourceName2.SSCHOLAR_AUTHOR;
|
|
271
|
-
isRemote = true;
|
|
272
|
-
indexTtl = 0;
|
|
273
|
-
prompt;
|
|
274
|
-
config;
|
|
275
|
-
driver;
|
|
276
|
-
accessor;
|
|
277
|
-
index;
|
|
278
|
-
constructor(options = {}) {
|
|
279
|
-
const opts = "config" in options || "driver" in options || "prefix" in options ? options : { config: options };
|
|
280
|
-
this.config = resolveSSCholarConfig2(opts.config ?? {});
|
|
281
|
-
this.driver = opts.driver ?? new HttpSSCholarDriver2({ baseUrl: this.config.baseUrl, apiKey: this.config.apiKey });
|
|
282
|
-
this.accessor = new SSCholarAccessor2(this.driver, this.config);
|
|
283
|
-
this.index = new RAMIndexCacheStore2({ ttl: this.indexTtl });
|
|
284
|
-
this.prompt = SSCHOLAR_AUTHOR_PROMPT.replace("{prefix}", opts.prefix ?? "");
|
|
285
|
-
}
|
|
286
|
-
open() {
|
|
287
|
-
return Promise.resolve();
|
|
288
|
-
}
|
|
289
|
-
async close() {
|
|
290
|
-
await this.driver.close();
|
|
291
|
-
}
|
|
292
|
-
ops() {
|
|
293
|
-
return SSCHOLAR_AUTHOR_OPS;
|
|
294
|
-
}
|
|
295
|
-
commands() {
|
|
296
|
-
return SSCHOLAR_AUTHOR_COMMANDS;
|
|
297
|
-
}
|
|
298
|
-
readFile(p) {
|
|
299
|
-
return sscholarAuthorRead(this.accessor, p, this.index);
|
|
300
|
-
}
|
|
301
|
-
readdir(p) {
|
|
302
|
-
return sscholarAuthorReaddir(this.accessor, p, this.index);
|
|
303
|
-
}
|
|
304
|
-
stat(p) {
|
|
305
|
-
return sscholarAuthorStat(this.accessor, p, this.index);
|
|
306
|
-
}
|
|
307
|
-
glob(paths, prefix = "") {
|
|
308
|
-
const effective = prefix !== "" ? paths.map(
|
|
309
|
-
(p) => p.prefix !== "" ? p : new PathSpec2({
|
|
310
|
-
original: p.original,
|
|
311
|
-
directory: p.directory,
|
|
312
|
-
...p.pattern !== null ? { pattern: p.pattern } : {},
|
|
313
|
-
resolved: p.resolved,
|
|
314
|
-
prefix
|
|
315
|
-
})
|
|
316
|
-
) : paths;
|
|
317
|
-
return resolveSSCholarAuthorGlob(this.accessor, effective, this.index);
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
// src/resource/vercel/vercel.ts
|
|
322
|
-
import {
|
|
323
|
-
HttpVercelDriver,
|
|
324
|
-
PathSpec as PathSpec3,
|
|
325
|
-
RAMIndexCacheStore as RAMIndexCacheStore3,
|
|
326
|
-
ResourceName as ResourceName3,
|
|
327
|
-
VERCEL_COMMANDS,
|
|
328
|
-
VERCEL_OPS,
|
|
329
|
-
VERCEL_PROMPT,
|
|
330
|
-
VercelAccessor,
|
|
331
|
-
resolveVercelConfig,
|
|
332
|
-
resolveVercelGlob,
|
|
333
|
-
vercelRead,
|
|
334
|
-
vercelReaddir,
|
|
335
|
-
vercelStat
|
|
336
|
-
} from "@struktoai/mirage-core";
|
|
337
|
-
var VercelResource = class {
|
|
338
|
-
kind = ResourceName3.VERCEL;
|
|
339
|
-
isRemote = true;
|
|
340
|
-
indexTtl = 60;
|
|
341
|
-
prompt;
|
|
342
|
-
config;
|
|
343
|
-
driver;
|
|
344
|
-
accessor;
|
|
345
|
-
index;
|
|
346
|
-
constructor(options = {}) {
|
|
347
|
-
const opts = "config" in options || "driver" in options || "prefix" in options ? options : { config: options };
|
|
348
|
-
this.config = resolveVercelConfig(opts.config ?? {});
|
|
349
|
-
this.driver = opts.driver ?? new HttpVercelDriver({
|
|
350
|
-
baseUrl: this.config.baseUrl,
|
|
351
|
-
token: this.config.token,
|
|
352
|
-
teamId: this.config.teamId
|
|
353
|
-
});
|
|
354
|
-
this.accessor = new VercelAccessor(this.driver, this.config);
|
|
355
|
-
this.index = new RAMIndexCacheStore3({ ttl: this.indexTtl });
|
|
356
|
-
this.prompt = VERCEL_PROMPT.replace("{prefix}", opts.prefix ?? "");
|
|
357
|
-
}
|
|
358
|
-
open() {
|
|
359
|
-
return Promise.resolve();
|
|
360
|
-
}
|
|
361
|
-
async close() {
|
|
362
|
-
await this.driver.close();
|
|
363
|
-
}
|
|
364
|
-
ops() {
|
|
365
|
-
return VERCEL_OPS;
|
|
366
|
-
}
|
|
367
|
-
commands() {
|
|
368
|
-
return VERCEL_COMMANDS;
|
|
369
|
-
}
|
|
370
|
-
readFile(p) {
|
|
371
|
-
return vercelRead(this.accessor, p, this.index);
|
|
372
|
-
}
|
|
373
|
-
readdir(p) {
|
|
374
|
-
return vercelReaddir(this.accessor, p, this.index);
|
|
375
|
-
}
|
|
376
|
-
stat(p) {
|
|
377
|
-
return vercelStat(this.accessor, p, this.index);
|
|
378
|
-
}
|
|
379
|
-
glob(paths, prefix = "") {
|
|
380
|
-
const effective = prefix !== "" ? paths.map(
|
|
381
|
-
(p) => p.prefix !== "" ? p : new PathSpec3({
|
|
382
|
-
original: p.original,
|
|
383
|
-
directory: p.directory,
|
|
384
|
-
...p.pattern !== null ? { pattern: p.pattern } : {},
|
|
385
|
-
resolved: p.resolved,
|
|
386
|
-
prefix
|
|
387
|
-
})
|
|
388
|
-
) : paths;
|
|
389
|
-
return resolveVercelGlob(this.accessor, effective, this.index);
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
// src/resource/vercel/http_driver.ts
|
|
394
|
-
import { HttpVercelDriver as HttpVercelDriver2 } from "@struktoai/mirage-core";
|
|
395
|
-
|
|
396
|
-
// src/resource/posthog/posthog.ts
|
|
397
|
-
import {
|
|
398
|
-
HttpPostHogDriver,
|
|
399
|
-
PathSpec as PathSpec4,
|
|
400
|
-
RAMIndexCacheStore as RAMIndexCacheStore4,
|
|
401
|
-
ResourceName as ResourceName4,
|
|
402
|
-
POSTHOG_COMMANDS,
|
|
403
|
-
POSTHOG_OPS,
|
|
404
|
-
POSTHOG_PROMPT,
|
|
405
|
-
PostHogAccessor,
|
|
406
|
-
posthogRead,
|
|
407
|
-
posthogReaddir,
|
|
408
|
-
posthogStat,
|
|
409
|
-
resolvePostHogConfig,
|
|
410
|
-
resolvePostHogGlob
|
|
411
|
-
} from "@struktoai/mirage-core";
|
|
412
|
-
var PostHogResource = class {
|
|
413
|
-
kind = ResourceName4.POSTHOG;
|
|
414
|
-
isRemote = true;
|
|
415
|
-
indexTtl = 60;
|
|
416
|
-
prompt;
|
|
417
|
-
config;
|
|
418
|
-
driver;
|
|
419
|
-
accessor;
|
|
420
|
-
index;
|
|
421
|
-
constructor(options = {}) {
|
|
422
|
-
const opts = "config" in options || "driver" in options || "prefix" in options ? options : { config: options };
|
|
423
|
-
this.config = resolvePostHogConfig(opts.config ?? {});
|
|
424
|
-
this.driver = opts.driver ?? new HttpPostHogDriver({ baseUrl: this.config.baseUrl, apiKey: this.config.apiKey });
|
|
425
|
-
this.accessor = new PostHogAccessor(this.driver, this.config);
|
|
426
|
-
this.index = new RAMIndexCacheStore4({ ttl: this.indexTtl });
|
|
427
|
-
this.prompt = POSTHOG_PROMPT.replace("{prefix}", opts.prefix ?? "");
|
|
428
|
-
}
|
|
429
|
-
open() {
|
|
430
|
-
return Promise.resolve();
|
|
431
|
-
}
|
|
432
|
-
async close() {
|
|
433
|
-
await this.driver.close();
|
|
434
|
-
}
|
|
435
|
-
ops() {
|
|
436
|
-
return POSTHOG_OPS;
|
|
437
|
-
}
|
|
438
|
-
commands() {
|
|
439
|
-
return POSTHOG_COMMANDS;
|
|
440
|
-
}
|
|
441
|
-
readFile(p) {
|
|
442
|
-
return posthogRead(this.accessor, p, this.index);
|
|
443
|
-
}
|
|
444
|
-
readdir(p) {
|
|
445
|
-
return posthogReaddir(this.accessor, p, this.index);
|
|
446
|
-
}
|
|
447
|
-
stat(p) {
|
|
448
|
-
return posthogStat(this.accessor, p, this.index);
|
|
449
|
-
}
|
|
450
|
-
glob(paths, prefix = "") {
|
|
451
|
-
const effective = prefix !== "" ? paths.map(
|
|
452
|
-
(p) => p.prefix !== "" ? p : new PathSpec4({
|
|
453
|
-
original: p.original,
|
|
454
|
-
directory: p.directory,
|
|
455
|
-
...p.pattern !== null ? { pattern: p.pattern } : {},
|
|
456
|
-
resolved: p.resolved,
|
|
457
|
-
prefix
|
|
458
|
-
})
|
|
459
|
-
) : paths;
|
|
460
|
-
return resolvePostHogGlob(this.accessor, effective, this.index);
|
|
461
|
-
}
|
|
462
|
-
};
|
|
463
|
-
|
|
464
|
-
// src/resource/posthog/http_driver.ts
|
|
465
|
-
import { HttpPostHogDriver as HttpPostHogDriver2 } from "@struktoai/mirage-core";
|
|
466
|
-
|
|
467
248
|
// src/resource/registry.ts
|
|
468
249
|
import { normalizeFields } from "@struktoai/mirage-core";
|
|
469
250
|
var REGISTRY = {
|
|
@@ -472,61 +253,131 @@ var REGISTRY = {
|
|
|
472
253
|
return new RAMResource();
|
|
473
254
|
},
|
|
474
255
|
opfs: async (config) => {
|
|
475
|
-
const { OPFSResource: OPFSResource2 } = await import("./opfs-
|
|
256
|
+
const { OPFSResource: OPFSResource2 } = await import("./opfs-3XNAXR5B.js");
|
|
476
257
|
const norm = normalizeFields(config);
|
|
477
258
|
return new OPFSResource2(norm);
|
|
478
259
|
},
|
|
479
260
|
s3: async (config) => {
|
|
480
|
-
const { S3Resource: S3Resource2 } = await import("./s3-
|
|
261
|
+
const { S3Resource: S3Resource2 } = await import("./s3-GD2WKLWR.js");
|
|
481
262
|
const norm = normalizeFields(config, {
|
|
482
263
|
rename: { endpoint_url: "endpoint" }
|
|
483
264
|
});
|
|
484
265
|
return new S3Resource2(norm);
|
|
485
266
|
},
|
|
486
267
|
gcs: async (config) => {
|
|
487
|
-
const { GCSResource: GCSResource2 } = await import("./gcs-
|
|
268
|
+
const { GCSResource: GCSResource2 } = await import("./gcs-WRQTU27E.js");
|
|
488
269
|
const norm = normalizeFields(config, {
|
|
489
270
|
rename: { endpoint_url: "endpoint" }
|
|
490
271
|
});
|
|
491
272
|
return new GCSResource2(norm);
|
|
492
273
|
},
|
|
493
274
|
r2: async (config) => {
|
|
494
|
-
const { R2Resource: R2Resource2 } = await import("./r2-
|
|
275
|
+
const { R2Resource: R2Resource2 } = await import("./r2-EAX6KHEI.js");
|
|
495
276
|
const norm = normalizeFields(config, {
|
|
496
277
|
rename: { account_id: "accountId", endpoint_url: "endpoint" }
|
|
497
278
|
});
|
|
498
279
|
return new R2Resource2(norm);
|
|
499
280
|
},
|
|
500
281
|
oci: async (config) => {
|
|
501
|
-
const { OCIResource: OCIResource2 } = await import("./oci-
|
|
282
|
+
const { OCIResource: OCIResource2 } = await import("./oci-T7VREPQW.js");
|
|
502
283
|
const norm = normalizeFields(config, {
|
|
503
284
|
rename: { endpoint_url: "endpoint" }
|
|
504
285
|
});
|
|
505
286
|
return new OCIResource2(norm);
|
|
506
287
|
},
|
|
507
288
|
supabase: async (config) => {
|
|
508
|
-
const { SupabaseResource: SupabaseResource2 } = await import("./supabase-
|
|
289
|
+
const { SupabaseResource: SupabaseResource2 } = await import("./supabase-VSUNLIJ6.js");
|
|
509
290
|
const norm = normalizeFields(config, {
|
|
510
291
|
rename: { project_ref: "projectRef", endpoint_url: "endpoint" }
|
|
511
292
|
});
|
|
512
293
|
return new SupabaseResource2(norm);
|
|
513
294
|
},
|
|
295
|
+
minio: async (config) => {
|
|
296
|
+
const { MinIOResource: MinIOResource2 } = await import("./minio-246KOHBJ.js");
|
|
297
|
+
const norm = normalizeFields(config, {
|
|
298
|
+
rename: { endpoint_url: "endpoint" }
|
|
299
|
+
});
|
|
300
|
+
return new MinIOResource2(norm);
|
|
301
|
+
},
|
|
302
|
+
ceph: async (config) => {
|
|
303
|
+
const { CephResource: CephResource2 } = await import("./ceph-CQKQ4NWW.js");
|
|
304
|
+
const norm = normalizeFields(config, {
|
|
305
|
+
rename: { endpoint_url: "endpoint" }
|
|
306
|
+
});
|
|
307
|
+
return new CephResource2(norm);
|
|
308
|
+
},
|
|
309
|
+
seaweedfs: async (config) => {
|
|
310
|
+
const { SeaweedFSResource: SeaweedFSResource2 } = await import("./seaweedfs-EOJVO432.js");
|
|
311
|
+
const norm = normalizeFields(config, {
|
|
312
|
+
rename: { endpoint_url: "endpoint" }
|
|
313
|
+
});
|
|
314
|
+
return new SeaweedFSResource2(norm);
|
|
315
|
+
},
|
|
316
|
+
wasabi: async (config) => {
|
|
317
|
+
const { WasabiResource: WasabiResource2 } = await import("./wasabi-K5ANTZ2C.js");
|
|
318
|
+
const norm = normalizeFields(config, {
|
|
319
|
+
rename: { endpoint_url: "endpoint" }
|
|
320
|
+
});
|
|
321
|
+
return new WasabiResource2(norm);
|
|
322
|
+
},
|
|
323
|
+
backblaze: async (config) => {
|
|
324
|
+
const { BackblazeResource: BackblazeResource2 } = await import("./backblaze-HOVWPSV7.js");
|
|
325
|
+
const norm = normalizeFields(config, {
|
|
326
|
+
rename: { endpoint_url: "endpoint" }
|
|
327
|
+
});
|
|
328
|
+
return new BackblazeResource2(norm);
|
|
329
|
+
},
|
|
330
|
+
digitalocean: async (config) => {
|
|
331
|
+
const { DigitalOceanResource: DigitalOceanResource2 } = await import("./digitalocean-KC7VIWZK.js");
|
|
332
|
+
const norm = normalizeFields(config, {
|
|
333
|
+
rename: { endpoint_url: "endpoint" }
|
|
334
|
+
});
|
|
335
|
+
return new DigitalOceanResource2(norm);
|
|
336
|
+
},
|
|
337
|
+
tencent: async (config) => {
|
|
338
|
+
const { TencentResource: TencentResource2 } = await import("./tencent-YYM5WUVU.js");
|
|
339
|
+
const norm = normalizeFields(config, {
|
|
340
|
+
rename: { endpoint_url: "endpoint" }
|
|
341
|
+
});
|
|
342
|
+
return new TencentResource2(norm);
|
|
343
|
+
},
|
|
344
|
+
aliyun: async (config) => {
|
|
345
|
+
const { AliyunResource: AliyunResource2 } = await import("./aliyun-F2ORS3KZ.js");
|
|
346
|
+
const norm = normalizeFields(config, {
|
|
347
|
+
rename: { endpoint_url: "endpoint" }
|
|
348
|
+
});
|
|
349
|
+
return new AliyunResource2(norm);
|
|
350
|
+
},
|
|
351
|
+
scaleway: async (config) => {
|
|
352
|
+
const { ScalewayResource: ScalewayResource2 } = await import("./scaleway-OVFRZBKW.js");
|
|
353
|
+
const norm = normalizeFields(config, {
|
|
354
|
+
rename: { endpoint_url: "endpoint" }
|
|
355
|
+
});
|
|
356
|
+
return new ScalewayResource2(norm);
|
|
357
|
+
},
|
|
358
|
+
qingstor: async (config) => {
|
|
359
|
+
const { QingStorResource: QingStorResource2 } = await import("./qingstor-WIC27LS3.js");
|
|
360
|
+
const norm = normalizeFields(config, {
|
|
361
|
+
rename: { endpoint_url: "endpoint" }
|
|
362
|
+
});
|
|
363
|
+
return new QingStorResource2(norm);
|
|
364
|
+
},
|
|
514
365
|
slack: async (config) => {
|
|
515
|
-
const { SlackResource: SlackResource2 } = await import("./slack-
|
|
366
|
+
const { SlackResource: SlackResource2 } = await import("./slack-RNXMU5OC.js");
|
|
516
367
|
const norm = normalizeFields(config, {
|
|
517
368
|
rename: { proxy_url: "proxyUrl", get_headers: "getHeaders" }
|
|
518
369
|
});
|
|
519
370
|
return new SlackResource2(norm);
|
|
520
371
|
},
|
|
521
372
|
discord: async (config) => {
|
|
522
|
-
const { DiscordResource: DiscordResource2 } = await import("./discord-
|
|
373
|
+
const { DiscordResource: DiscordResource2 } = await import("./discord-W3DSEXKN.js");
|
|
523
374
|
const norm = normalizeFields(config, {
|
|
524
375
|
rename: { proxy_url: "proxyUrl", get_headers: "getHeaders" }
|
|
525
376
|
});
|
|
526
377
|
return new DiscordResource2(norm);
|
|
527
378
|
},
|
|
528
379
|
trello: async (config) => {
|
|
529
|
-
const { TrelloResource: TrelloResource2 } = await import("./trello-
|
|
380
|
+
const { TrelloResource: TrelloResource2 } = await import("./trello-MNR3VPTT.js");
|
|
530
381
|
const norm = normalizeFields(config, {
|
|
531
382
|
rename: {
|
|
532
383
|
api_key: "apiKey",
|
|
@@ -539,7 +390,7 @@ var REGISTRY = {
|
|
|
539
390
|
return new TrelloResource2(norm);
|
|
540
391
|
},
|
|
541
392
|
linear: async (config) => {
|
|
542
|
-
const { LinearResource: LinearResource2 } = await import("./linear-
|
|
393
|
+
const { LinearResource: LinearResource2 } = await import("./linear-SHVG3XVT.js");
|
|
543
394
|
const norm = normalizeFields(config, {
|
|
544
395
|
rename: {
|
|
545
396
|
api_key: "apiKey",
|
|
@@ -562,19 +413,19 @@ var REGISTRY = {
|
|
|
562
413
|
return new PostgresResource2(norm);
|
|
563
414
|
},
|
|
564
415
|
mongodb: async (config) => {
|
|
565
|
-
const { MongoDBResource: MongoDBResource2 } = await import("./mongodb-
|
|
416
|
+
const { MongoDBResource: MongoDBResource2 } = await import("./mongodb-2ITJUDCF.js");
|
|
566
417
|
const { normalizeMongoDBConfig } = await import("@struktoai/mirage-core");
|
|
567
418
|
return new MongoDBResource2(normalizeMongoDBConfig(config));
|
|
568
419
|
},
|
|
569
420
|
notion: async (config) => {
|
|
570
|
-
const { NotionResource: NotionResource2 } = await import("./notion-
|
|
421
|
+
const { NotionResource: NotionResource2 } = await import("./notion-BOBBSJSG.js");
|
|
571
422
|
const norm = normalizeFields(config, {
|
|
572
423
|
rename: { auth_provider: "authProvider", server_url: "serverUrl" }
|
|
573
424
|
});
|
|
574
425
|
return new NotionResource2(norm);
|
|
575
426
|
},
|
|
576
427
|
langfuse: async (config) => {
|
|
577
|
-
const { LangfuseResource: LangfuseResource2 } = await import("./langfuse-
|
|
428
|
+
const { LangfuseResource: LangfuseResource2 } = await import("./langfuse-FWKU6E3F.js");
|
|
578
429
|
const norm = normalizeFields(config, {
|
|
579
430
|
rename: {
|
|
580
431
|
public_key: "publicKey",
|
|
@@ -587,51 +438,51 @@ var REGISTRY = {
|
|
|
587
438
|
return new LangfuseResource2(norm);
|
|
588
439
|
},
|
|
589
440
|
github: async (config) => {
|
|
590
|
-
const { GitHubResource: GitHubResource2 } = await import("./github-
|
|
441
|
+
const { GitHubResource: GitHubResource2 } = await import("./github-SWLYD3LS.js");
|
|
591
442
|
const norm = normalizeFields(config, {
|
|
592
443
|
rename: { base_url: "baseUrl" }
|
|
593
444
|
});
|
|
594
445
|
return GitHubResource2.create(norm);
|
|
595
446
|
},
|
|
596
447
|
github_ci: async (config) => {
|
|
597
|
-
const { GitHubCIResource: GitHubCIResource2 } = await import("./github_ci-
|
|
598
|
-
const { normalizeGitHubCIConfig: normalizeGitHubCIConfig2 } = await import("./config-
|
|
448
|
+
const { GitHubCIResource: GitHubCIResource2 } = await import("./github_ci-7P7VGBKM.js");
|
|
449
|
+
const { normalizeGitHubCIConfig: normalizeGitHubCIConfig2 } = await import("./config-ET26F632.js");
|
|
599
450
|
return new GitHubCIResource2(normalizeGitHubCIConfig2(config));
|
|
600
451
|
},
|
|
601
452
|
gdocs: async (config) => {
|
|
602
|
-
const { GDocsResource: GDocsResource2 } = await import("./gdocs-
|
|
603
|
-
const { normalizeGDocsConfig: normalizeGDocsConfig2 } = await import("./config-
|
|
453
|
+
const { GDocsResource: GDocsResource2 } = await import("./gdocs-EI2EFVKG.js");
|
|
454
|
+
const { normalizeGDocsConfig: normalizeGDocsConfig2 } = await import("./config-C2AYHACT.js");
|
|
604
455
|
return new GDocsResource2(normalizeGDocsConfig2(config));
|
|
605
456
|
},
|
|
606
457
|
gsheets: async (config) => {
|
|
607
|
-
const { GSheetsResource: GSheetsResource2 } = await import("./gsheets-
|
|
608
|
-
const { normalizeGSheetsConfig: normalizeGSheetsConfig2 } = await import("./config-
|
|
458
|
+
const { GSheetsResource: GSheetsResource2 } = await import("./gsheets-OTBW2JWG.js");
|
|
459
|
+
const { normalizeGSheetsConfig: normalizeGSheetsConfig2 } = await import("./config-V7BLK5WP.js");
|
|
609
460
|
return new GSheetsResource2(normalizeGSheetsConfig2(config));
|
|
610
461
|
},
|
|
611
462
|
gslides: async (config) => {
|
|
612
|
-
const { GSlidesResource: GSlidesResource2 } = await import("./gslides-
|
|
613
|
-
const { normalizeGSlidesConfig: normalizeGSlidesConfig2 } = await import("./config-
|
|
463
|
+
const { GSlidesResource: GSlidesResource2 } = await import("./gslides-MXSR4HRY.js");
|
|
464
|
+
const { normalizeGSlidesConfig: normalizeGSlidesConfig2 } = await import("./config-AT74FARJ.js");
|
|
614
465
|
return new GSlidesResource2(normalizeGSlidesConfig2(config));
|
|
615
466
|
},
|
|
616
467
|
gdrive: async (config) => {
|
|
617
|
-
const { GDriveResource: GDriveResource2 } = await import("./gdrive-
|
|
618
|
-
const { normalizeGDriveConfig: normalizeGDriveConfig2 } = await import("./config-
|
|
468
|
+
const { GDriveResource: GDriveResource2 } = await import("./gdrive-62HD67IP.js");
|
|
469
|
+
const { normalizeGDriveConfig: normalizeGDriveConfig2 } = await import("./config-7IZCGWKX.js");
|
|
619
470
|
return new GDriveResource2(normalizeGDriveConfig2(config));
|
|
620
471
|
},
|
|
621
472
|
dropbox: async (config) => {
|
|
622
|
-
const { DropboxResource: DropboxResource2 } = await import("./dropbox-
|
|
623
|
-
const { normalizeDropboxConfig: normalizeDropboxConfig2 } = await import("./config-
|
|
473
|
+
const { DropboxResource: DropboxResource2 } = await import("./dropbox-GI273OVA.js");
|
|
474
|
+
const { normalizeDropboxConfig: normalizeDropboxConfig2 } = await import("./config-L55UXIF4.js");
|
|
624
475
|
return new DropboxResource2(normalizeDropboxConfig2(config));
|
|
625
476
|
},
|
|
626
477
|
box: async (config) => {
|
|
627
|
-
const { BoxResource: BoxResource2 } = await import("./box-
|
|
628
|
-
const { normalizeBoxConfig: normalizeBoxConfig2 } = await import("./config-
|
|
478
|
+
const { BoxResource: BoxResource2 } = await import("./box-VJSE5N7P.js");
|
|
479
|
+
const { normalizeBoxConfig: normalizeBoxConfig2 } = await import("./config-GHJOYNM6.js");
|
|
629
480
|
return new BoxResource2(normalizeBoxConfig2(config));
|
|
630
481
|
},
|
|
631
482
|
gmail: async (config) => {
|
|
632
|
-
const { GmailResource: GmailResource2 } = await import("./gmail-
|
|
633
|
-
const { normalizeGmailConfig
|
|
634
|
-
return new GmailResource2(
|
|
483
|
+
const { GmailResource: GmailResource2 } = await import("./gmail-B7HXHZ7D.js");
|
|
484
|
+
const { normalizeGmailConfig } = await import("./config-NV5WXP64.js");
|
|
485
|
+
return new GmailResource2(normalizeGmailConfig(config));
|
|
635
486
|
},
|
|
636
487
|
email: (_config) => {
|
|
637
488
|
return Promise.reject(
|
|
@@ -657,7 +508,15 @@ async function buildResource(name, config = {}) {
|
|
|
657
508
|
return factory(config);
|
|
658
509
|
}
|
|
659
510
|
export {
|
|
511
|
+
ALIYUN_BROWSER_PROMPT,
|
|
512
|
+
AliyunResource,
|
|
513
|
+
BACKBLAZE_BROWSER_PROMPT,
|
|
514
|
+
BackblazeResource,
|
|
660
515
|
BoxResource,
|
|
516
|
+
CEPH_BROWSER_PROMPT,
|
|
517
|
+
CephResource,
|
|
518
|
+
DIGITALOCEAN_BROWSER_PROMPT,
|
|
519
|
+
DigitalOceanResource,
|
|
661
520
|
DiscordResource,
|
|
662
521
|
DropboxResource,
|
|
663
522
|
GCSResource,
|
|
@@ -670,11 +529,10 @@ export {
|
|
|
670
529
|
GitHubResource,
|
|
671
530
|
GmailResource,
|
|
672
531
|
HttpMongoDriver,
|
|
673
|
-
HttpPostHogDriver2 as HttpPostHogDriver,
|
|
674
|
-
HttpSSCholarDriver,
|
|
675
|
-
HttpVercelDriver2 as HttpVercelDriver,
|
|
676
532
|
LangfuseResource,
|
|
677
533
|
LinearResource,
|
|
534
|
+
MINIO_BROWSER_PROMPT,
|
|
535
|
+
MinIOResource,
|
|
678
536
|
MongoDBResource,
|
|
679
537
|
MountMode,
|
|
680
538
|
NeonPgDriver,
|
|
@@ -686,23 +544,34 @@ export {
|
|
|
686
544
|
OPFS_COMMANDS,
|
|
687
545
|
OPFS_OPS,
|
|
688
546
|
OPFS_PROMPT,
|
|
689
|
-
PostHogResource,
|
|
690
547
|
PostgresResource,
|
|
548
|
+
QINGSTOR_BROWSER_PROMPT,
|
|
549
|
+
QingStorResource,
|
|
691
550
|
R2Resource,
|
|
692
551
|
R2_BROWSER_PROMPT,
|
|
693
552
|
S3Resource,
|
|
694
553
|
S3_BROWSER_PROMPT,
|
|
695
|
-
|
|
696
|
-
|
|
554
|
+
SCALEWAY_BROWSER_PROMPT,
|
|
555
|
+
SEAWEEDFS_BROWSER_PROMPT,
|
|
697
556
|
SUPABASE_BROWSER_PROMPT,
|
|
557
|
+
ScalewayResource,
|
|
558
|
+
SeaweedFSResource,
|
|
698
559
|
SlackResource,
|
|
699
560
|
SupabaseResource,
|
|
561
|
+
TENCENT_BROWSER_PROMPT,
|
|
562
|
+
TencentResource,
|
|
700
563
|
TrelloResource,
|
|
701
|
-
|
|
564
|
+
WASABI_BROWSER_PROMPT,
|
|
565
|
+
WasabiResource,
|
|
702
566
|
Workspace,
|
|
567
|
+
aliyunToS3Config,
|
|
568
|
+
backblazeToS3Config,
|
|
703
569
|
buildResource,
|
|
570
|
+
cephToS3Config,
|
|
571
|
+
digitalOceanToS3Config,
|
|
704
572
|
gcsToS3Config,
|
|
705
573
|
knownResources,
|
|
574
|
+
minioToS3Config,
|
|
706
575
|
normalizeBoxConfig,
|
|
707
576
|
normalizeDropboxConfig,
|
|
708
577
|
normalizeGDocsConfig,
|
|
@@ -711,10 +580,15 @@ export {
|
|
|
711
580
|
normalizeGSlidesConfig,
|
|
712
581
|
normalizeGitHubCIConfig,
|
|
713
582
|
normalizeGitHubConfig,
|
|
714
|
-
normalizeGmailConfig,
|
|
583
|
+
normalizeGoogleConfig as normalizeGmailConfig,
|
|
715
584
|
ociToS3Config,
|
|
585
|
+
qingStorToS3Config,
|
|
716
586
|
r2ToS3Config,
|
|
587
|
+
redactAliyunConfig,
|
|
588
|
+
redactBackblazeConfig,
|
|
717
589
|
redactBoxConfig,
|
|
590
|
+
redactCephConfig,
|
|
591
|
+
redactDigitalOceanConfig,
|
|
718
592
|
redactDiscordConfig,
|
|
719
593
|
redactDropboxConfig,
|
|
720
594
|
redactGDocsConfig,
|
|
@@ -724,20 +598,37 @@ export {
|
|
|
724
598
|
redactGcsConfig,
|
|
725
599
|
redactGitHubCIConfig,
|
|
726
600
|
redactGitHubConfig,
|
|
727
|
-
redactGmailConfig,
|
|
601
|
+
redactGoogleConfig as redactGmailConfig,
|
|
728
602
|
redactLangfuseConfig,
|
|
729
603
|
redactLinearConfig,
|
|
604
|
+
redactMinIOConfig,
|
|
730
605
|
redactNotionConfig,
|
|
731
606
|
redactOciConfig,
|
|
607
|
+
redactQingStorConfig,
|
|
732
608
|
redactR2Config,
|
|
733
609
|
redactS3Config,
|
|
610
|
+
redactScalewayConfig,
|
|
611
|
+
redactSeaweedFSConfig,
|
|
734
612
|
redactSlackConfig,
|
|
735
613
|
redactSupabaseConfig,
|
|
614
|
+
redactTencentConfig,
|
|
736
615
|
redactTrelloConfig,
|
|
616
|
+
redactWasabiConfig,
|
|
737
617
|
register as registerResourceFactory,
|
|
618
|
+
resolvedAliyunEndpoint,
|
|
619
|
+
resolvedBackblazeEndpoint,
|
|
620
|
+
resolvedDigitalOceanEndpoint,
|
|
738
621
|
resolvedOciEndpoint,
|
|
622
|
+
resolvedQingStorEndpoint,
|
|
739
623
|
resolvedR2Endpoint,
|
|
624
|
+
resolvedScalewayEndpoint,
|
|
740
625
|
resolvedSupabaseEndpoint,
|
|
741
|
-
|
|
626
|
+
resolvedTencentEndpoint,
|
|
627
|
+
resolvedWasabiEndpoint,
|
|
628
|
+
scalewayToS3Config,
|
|
629
|
+
seaweedfsToS3Config,
|
|
630
|
+
supabaseToS3Config,
|
|
631
|
+
tencentToS3Config,
|
|
632
|
+
wasabiToS3Config
|
|
742
633
|
};
|
|
743
634
|
//# sourceMappingURL=index.js.map
|