@powerhousedao/connect 6.2.3-staging.0 → 6.3.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -1
- package/dist/{AddDriveModal-DhNfP94R.js → AddDriveModal-zMepHdWt.js} +43 -17
- package/dist/AddDriveModal-zMepHdWt.js.map +1 -0
- package/dist/{ClearStorageModal-RRBhBwt9.js → ClearStorageModal-Br-y7qXc.js} +10 -12
- package/dist/ClearStorageModal-Br-y7qXc.js.map +1 -0
- package/dist/{ConfirmDocumentUpgradeModal-DcOZy20m.js → ConfirmDocumentUpgradeModal-CoixS60F.js} +4 -4
- package/dist/ConfirmDocumentUpgradeModal-CoixS60F.js.map +1 -0
- package/dist/{CookiesPolicyModal-BLw4pnhn.js → CookiesPolicyModal-BpFjYc7T.js} +4 -4
- package/dist/{CookiesPolicyModal-BLw4pnhn.js.map → CookiesPolicyModal-BpFjYc7T.js.map} +1 -1
- package/dist/CreateDocumentModal-CiIW3pzx.js +45 -0
- package/dist/CreateDocumentModal-CiIW3pzx.js.map +1 -0
- package/dist/{DebugSettingsModal-CszP0h2F.js → DebugSettingsModal-FALLjVVv.js} +10 -10
- package/dist/DebugSettingsModal-FALLjVVv.js.map +1 -0
- package/dist/{DeleteDriveModal-CjGnG0ht.js → DeleteDriveModal-1pAIayG_.js} +5 -5
- package/dist/DeleteDriveModal-1pAIayG_.js.map +1 -0
- package/dist/{DeleteItemModal-BbY_4_xT.js → DeleteItemModal-BUpqmFxS.js} +6 -6
- package/dist/DeleteItemModal-BUpqmFxS.js.map +1 -0
- package/dist/{DisclaimerModal-DuglmEwL.js → DisclaimerModal-TIJXRYLF.js} +6 -6
- package/dist/DisclaimerModal-TIJXRYLF.js.map +1 -0
- package/dist/{DocumentVersionUnsupportedModal-C4fy7fZ6.js → DocumentVersionUnsupportedModal-DH9Zzsyw.js} +6 -6
- package/dist/DocumentVersionUnsupportedModal-DH9Zzsyw.js.map +1 -0
- package/dist/{DownloadDocumentWithErrorsModal-BsPQ5qgy.js → DownloadDocumentWithErrorsModal-Beh-xw8B.js} +5 -5
- package/dist/DownloadDocumentWithErrorsModal-Beh-xw8B.js.map +1 -0
- package/dist/{DriveAuthRequiredModal-CtsB0kwH.js → DriveAuthRequiredModal-XTcoJKvj.js} +6 -6
- package/dist/DriveAuthRequiredModal-XTcoJKvj.js.map +1 -0
- package/dist/DriveSettingsModal-CGZQhzBa.js +127 -0
- package/dist/DriveSettingsModal-CGZQhzBa.js.map +1 -0
- package/dist/FloatingTanStackRouterDevtools-CqogiFob-dxj8lrTP.js +2565 -0
- package/dist/FloatingTanStackRouterDevtools-CqogiFob-dxj8lrTP.js.map +1 -0
- package/dist/{InspectorModal-BirNNcyV.js → InspectorModal-xU_gCAhG.js} +20 -20
- package/dist/InspectorModal-xU_gCAhG.js.map +1 -0
- package/dist/{LoginModal-CI0ogC2-.js → LoginModal-O06ZvWFI.js} +7 -7
- package/dist/LoginModal-O06ZvWFI.js.map +1 -0
- package/dist/{OpenFileDocumentsModal-DKxleujF.js → OpenFileDocumentsModal-DJsC1oR1.js} +19 -14
- package/dist/OpenFileDocumentsModal-DJsC1oR1.js.map +1 -0
- package/dist/{UpgradeDriveModal-CXX6D5Au.js → UpgradeDriveModal-CCWKp5yn.js} +6 -6
- package/dist/UpgradeDriveModal-CCWKp5yn.js.map +1 -0
- package/dist/ai-tools-BGUMFEMV.js +42 -0
- package/dist/ai-tools-BGUMFEMV.js.map +1 -0
- package/dist/ai-tools-D_q-Whju.js +4 -0
- package/dist/app-loader-BQrucpDg.js +4 -0
- package/dist/app-loader-orww5vEA.js +1254 -0
- package/dist/app-loader-orww5vEA.js.map +1 -0
- package/dist/{app-skeleton--Me5zlSz.js → app-skeleton-CMUP2zaz.js} +36 -16
- package/dist/app-skeleton-CMUP2zaz.js.map +1 -0
- package/dist/app-skeleton-CdD1m8G3.js +4 -0
- package/dist/{boot-DPNEOI2A.js → boot-BBIArGAP.js} +32 -9
- package/dist/boot-BBIArGAP.js.map +1 -0
- package/dist/{build-info-DbLCcPJY.js → build-info-BTuoWZYI.js} +10 -6
- package/dist/build-info-BTuoWZYI.js.map +1 -0
- package/dist/components-B3kuhyeE.js +121 -0
- package/dist/components-B3kuhyeE.js.map +1 -0
- package/dist/{connect.config-CaXMoB42.js → connect.config-DL9nKtlW.js} +8 -7
- package/dist/connect.config-DL9nKtlW.js.map +1 -0
- package/dist/{connection-state-Eqc2izmt.js → connection-state-0ippUGEC.js} +28 -12
- package/dist/connection-state-0ippUGEC.js.map +1 -0
- package/dist/context-De2EB1AA-Ni0d829Q.js +1759 -0
- package/dist/context-De2EB1AA-Ni0d829Q.js.map +1 -0
- package/dist/{cookie-banner-BxXvPdIY.js → cookie-banner-NclLYtB0.js} +6 -6
- package/dist/{cookie-banner-BxXvPdIY.js.map → cookie-banner-NclLYtB0.js.map} +1 -1
- package/dist/document-editor-container-C91BsZkt.js +4 -0
- package/dist/document-editor-container-Dkk87_q1.js +311 -0
- package/dist/document-editor-container-Dkk87_q1.js.map +1 -0
- package/dist/drive-icon-BIpd8edR.js +49 -0
- package/dist/drive-icon-BIpd8edR.js.map +1 -0
- package/dist/drive-placements-DjeVpTTm.js +38 -0
- package/dist/drive-placements-DjeVpTTm.js.map +1 -0
- package/dist/error-boundary-BsUBww61.js +155 -0
- package/dist/error-boundary-BsUBww61.js.map +1 -0
- package/dist/esm-BDACZntJ.js +148 -0
- package/dist/esm-BDACZntJ.js.map +1 -0
- package/dist/generic.d.ts +140 -0
- package/dist/generic.d.ts.map +1 -0
- package/dist/generic.js +31 -0
- package/dist/generic.js.map +1 -0
- package/dist/{i18n-CTgT1HG-.js → i18n-D9WYPgk9.js} +4 -4
- package/dist/{i18n-CTgT1HG-.js.map → i18n-D9WYPgk9.js.map} +1 -1
- package/dist/index-D7c2WAbn.d.ts +4 -0
- package/dist/layout-Dj3_KscE.js +5 -0
- package/dist/layout.d.ts +3 -0
- package/dist/layout.js +4 -0
- package/dist/{load-DaOnJm3B.js → load-C0hy-vOY.js} +48 -48
- package/dist/load-C0hy-vOY.js.map +1 -0
- package/dist/load-runtime-config-BoDzcgEV.js +14 -0
- package/dist/load-runtime-config-BoDzcgEV.js.map +1 -0
- package/dist/main.js +2 -2
- package/dist/open-file-uploads-B5pr1sA2.js +183 -0
- package/dist/open-file-uploads-B5pr1sA2.js.map +1 -0
- package/dist/{package-manager-BbzIV9aN.js → package-manager-B1Nxbull.js} +96 -31
- package/dist/package-manager-B1Nxbull.js.map +1 -0
- package/dist/{pglite-major-p4_YefAE.js → pglite-major-pao-ozRo.js} +5 -5
- package/dist/pglite-major-pao-ozRo.js.map +1 -0
- package/dist/{pglite-migrate-core-BcXcImng.js → pglite-migrate-core-B6FqmhH8.js} +5 -5
- package/dist/pglite-migrate-core-B6FqmhH8.js.map +1 -0
- package/dist/{pglite-seed-Cl2d-iyl.js → pglite-seed-CZsMNsV8.js} +8 -4
- package/dist/pglite-seed-CZsMNsV8.js.map +1 -0
- package/dist/plugin-configs.d.ts +242 -0
- package/dist/plugin-configs.d.ts.map +1 -0
- package/dist/plugin-configs.js +26 -0
- package/dist/plugin-configs.js.map +1 -0
- package/dist/plugins--mJeXJ7w.js +264 -0
- package/dist/plugins--mJeXJ7w.js.map +1 -0
- package/dist/{preferences-store-DZUIAkHE.js → preferences-store-DxYAnGCc.js} +5 -5
- package/dist/preferences-store-DxYAnGCc.js.map +1 -0
- package/dist/prerender.d.ts +38 -0
- package/dist/prerender.d.ts.map +1 -0
- package/dist/prerender.js +195 -0
- package/dist/prerender.js.map +1 -0
- package/dist/prerendered-shell-peKE7AqI.js +51 -0
- package/dist/prerendered-shell-peKE7AqI.js.map +1 -0
- package/dist/{pwa-manifest-link-DQRJpF0r.js → pwa-manifest-link-DNwWvnLV.js} +5 -5
- package/dist/{pwa-manifest-link-DQRJpF0r.js.map → pwa-manifest-link-DNwWvnLV.js.map} +1 -1
- package/dist/reactor-Drpw-sgc.js +1656 -0
- package/dist/reactor-Drpw-sgc.js.map +1 -0
- package/dist/reactor-chat-C6yp2S37.js +15 -0
- package/dist/reactor-chat-C6yp2S37.js.map +1 -0
- package/dist/reactor.worker.js +444 -168
- package/dist/reactor.worker.js.map +1 -1
- package/dist/{registerServiceWorker-smkROQhm.js → registerServiceWorker-OR8nokAn.js} +5 -5
- package/dist/{registerServiceWorker-smkROQhm.js.map → registerServiceWorker-OR8nokAn.js.map} +1 -1
- package/dist/root-v9fj27sn.js +27 -0
- package/dist/root-v9fj27sn.js.map +1 -0
- package/dist/route-tree.d.ts +2220 -0
- package/dist/route-tree.d.ts.map +1 -0
- package/dist/route-tree.js +135 -0
- package/dist/route-tree.js.map +1 -0
- package/dist/route-views-BovMNHyn.js +60 -0
- package/dist/route-views-BovMNHyn.js.map +1 -0
- package/dist/route-views-C-H3ofJW.js +4 -0
- package/dist/route-views-DzgRMAx8.js +55 -0
- package/dist/route-views-DzgRMAx8.js.map +1 -0
- package/dist/route-views.d.ts +7 -0
- package/dist/route-views.d.ts.map +1 -0
- package/dist/route-views.js +4 -0
- package/dist/router-CWIsjETx.js +54 -0
- package/dist/router-CWIsjETx.js.map +1 -0
- package/dist/router-CnWkTEey.js +4 -0
- package/dist/router.d.ts +2 -0
- package/dist/router.js +3 -0
- package/dist/sentry-Cuc_Nbba.js +22 -0
- package/dist/sentry-Cuc_Nbba.js.map +1 -0
- package/dist/settings-C0o6eJvm.js +1089 -0
- package/dist/settings-C0o6eJvm.js.map +1 -0
- package/dist/settings-tabs-1V-sBOlj.js +424 -0
- package/dist/settings-tabs-1V-sBOlj.js.map +1 -0
- package/dist/shell-core-head.html +2 -0
- package/dist/shell-core.html +1 -0
- package/dist/shell-head.html +2 -0
- package/dist/shell-plugins.json +1 -0
- package/dist/shell.html +1 -0
- package/dist/start-connect.d.ts +5 -6
- package/dist/start-connect.d.ts.map +1 -1
- package/dist/start-connect.js +8 -5
- package/dist/start-connect.js.map +1 -1
- package/dist/store-lock-Bi3B9VJD.js +159 -0
- package/dist/store-lock-Bi3B9VJD.js.map +1 -0
- package/dist/style.css +3510 -3667
- package/dist/ui-BITvvqdH.js +66 -0
- package/dist/ui-BITvvqdH.js.map +1 -0
- package/dist/ui-C1-l-Eyh.js +170 -0
- package/dist/ui-C1-l-Eyh.js.map +1 -0
- package/dist/{use-renown-login-BzOSQETV.js → use-renown-login-dPpDOYq5.js} +4 -4
- package/dist/use-renown-login-dPpDOYq5.js.map +1 -0
- package/dist/workflows-C3qEvx1R.js +63 -0
- package/dist/workflows-C3qEvx1R.js.map +1 -0
- package/fonts.css +177 -0
- package/generic-routes.json +9 -0
- package/package.json +82 -21
- package/scripts/assert-plugin-configs.mjs +47 -0
- package/scripts/prerender-shell.ts +51 -0
- package/skills/customize-connect/SKILL.md +80 -0
- package/skills/customize-connect/references/data-and-navigation.md +315 -0
- package/skills/customize-connect/references/drive-apps.md +44 -0
- package/skills/customize-connect/references/hosts-and-plugins.md +88 -0
- package/skills/customize-connect/references/layout.md +162 -0
- package/skills/customize-connect/references/modals.md +99 -0
- package/skills/customize-connect/references/overrides.md +177 -0
- package/skills/customize-connect/references/packages.md +41 -0
- package/skills/customize-connect/references/pages.md +141 -0
- package/skills/customize-connect/references/runtime-config.md +411 -0
- package/skills/customize-connect/references/styles-and-branding.md +76 -0
- package/skills/customize-connect/references/types-and-troubleshooting.md +64 -0
- package/src/route-tree.ts +3 -0
- package/src/routeTree.gen.ts +235 -0
- package/src/router/index.ts +2 -0
- package/src/router/register.ts +9 -0
- package/src/routes/__root.tsx +12 -0
- package/src/routes/_app/$.tsx +13 -0
- package/src/routes/_app/d/$driveSlug/{-$nodeSlug}.tsx +13 -0
- package/src/routes/_app/d/$driveSlug.tsx +13 -0
- package/src/routes/_app/index.tsx +13 -0
- package/src/routes/_app/settings/appearance.tsx +13 -0
- package/src/routes/_app/settings/packages.tsx +13 -0
- package/src/routes/_app/settings.tsx +13 -0
- package/src/routes/_app.tsx +13 -0
- package/style.css +6 -23
- package/tailwind.css +12 -0
- package/theme.css +5 -0
- package/dist/AddDriveModal-DhNfP94R.js.map +0 -1
- package/dist/ClearStorageModal-RRBhBwt9.js.map +0 -1
- package/dist/ConfirmDocumentUpgradeModal-DcOZy20m.js.map +0 -1
- package/dist/CreateDocumentModal-Bmv0V-kY.js +0 -36
- package/dist/CreateDocumentModal-Bmv0V-kY.js.map +0 -1
- package/dist/DebugSettingsModal-CszP0h2F.js.map +0 -1
- package/dist/DeleteDriveModal-CjGnG0ht.js.map +0 -1
- package/dist/DeleteItemModal-BbY_4_xT.js.map +0 -1
- package/dist/DisclaimerModal-DuglmEwL.js.map +0 -1
- package/dist/DocumentVersionUnsupportedModal-C4fy7fZ6.js.map +0 -1
- package/dist/DownloadDocumentWithErrorsModal-BsPQ5qgy.js.map +0 -1
- package/dist/DriveAuthRequiredModal-CtsB0kwH.js.map +0 -1
- package/dist/DriveSettingsModal-d1L0eYof.js +0 -57
- package/dist/DriveSettingsModal-d1L0eYof.js.map +0 -1
- package/dist/InspectorModal-BirNNcyV.js.map +0 -1
- package/dist/LoginModal-CI0ogC2-.js.map +0 -1
- package/dist/MissingPackageModal-HFUPQMML.js +0 -49
- package/dist/MissingPackageModal-HFUPQMML.js.map +0 -1
- package/dist/OpenFileDocumentsModal-DKxleujF.js.map +0 -1
- package/dist/SettingsModal-C1vvdYGa.js +0 -571
- package/dist/SettingsModal-C1vvdYGa.js.map +0 -1
- package/dist/UpgradeDriveModal-CXX6D5Au.js.map +0 -1
- package/dist/app-loader-BxojpvRl.js +0 -4
- package/dist/app-loader-wu8Nfpe0.js +0 -2283
- package/dist/app-loader-wu8Nfpe0.js.map +0 -1
- package/dist/app-skeleton--Me5zlSz.js.map +0 -1
- package/dist/app-skeleton-CBN4tenZ.js +0 -4
- package/dist/boot-DPNEOI2A.js.map +0 -1
- package/dist/build-info-DbLCcPJY.js.map +0 -1
- package/dist/components-k4a5c62z.js +0 -5
- package/dist/connect.config-CaXMoB42.js.map +0 -1
- package/dist/connection-state-Eqc2izmt.js.map +0 -1
- package/dist/load-DaOnJm3B.js.map +0 -1
- package/dist/package-manager-BbzIV9aN.js.map +0 -1
- package/dist/pglite-major-p4_YefAE.js.map +0 -1
- package/dist/pglite-migrate-core-BcXcImng.js.map +0 -1
- package/dist/pglite-seed-Cl2d-iyl.js.map +0 -1
- package/dist/preferences-store-DZUIAkHE.js.map +0 -1
- package/dist/reactor-DxTnqFry.js +0 -1095
- package/dist/reactor-DxTnqFry.js.map +0 -1
- package/dist/renown-trust-DRgHpxlZ.js +0 -34
- package/dist/renown-trust-DRgHpxlZ.js.map +0 -1
- package/dist/runtime-config-DtJIUgYw.js +0 -24
- package/dist/runtime-config-DtJIUgYw.js.map +0 -1
- package/dist/sentry-jfDyrxdX.js +0 -15
- package/dist/sentry-jfDyrxdX.js.map +0 -1
- package/dist/use-renown-login-BzOSQETV.js.map +0 -1
- package/dist/useIsEmbedded-BWJ0qb7w.js +0 -26
- package/dist/useIsEmbedded-BWJ0qb7w.js.map +0 -1
- package/dist/useRegistryPackages-DuoU75ap.js +0 -453
- package/dist/useRegistryPackages-DuoU75ap.js.map +0 -1
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/plugin-configs/assistant.d.ts
|
|
3
|
+
/** `@powerhousedao/connect/plugins/assistant` takes no entry config: presence
|
|
4
|
+
* is the `ai.assistantEnabled` switch. */
|
|
5
|
+
export declare const assistantConfigSchema: z.ZodObject<{}, z.core.$strict>;
|
|
6
|
+
/** What a host.js entry writes (a type alias, so it stays assignable to the
|
|
7
|
+
* runtime `PluginEntryData` config record). */
|
|
8
|
+
type AssistantConfigInput = z.input<typeof assistantConfigSchema>;
|
|
9
|
+
declare global {
|
|
10
|
+
interface PHPluginConfigs {
|
|
11
|
+
"@powerhousedao/connect/plugins/assistant": AssistantConfigInput;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/plugin-configs/generic.d.ts
|
|
16
|
+
export declare const genericConfigSchema: z.ZodObject<{
|
|
17
|
+
allowAddDrive: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
sections: z.ZodOptional<z.ZodObject<{
|
|
19
|
+
remote: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
allowAdd: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
allowDelete: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
}, z.core.$strict>>;
|
|
24
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
allowAdd: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
allowDelete: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
}, z.core.$strict>>;
|
|
30
|
+
icons: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
localDrive: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
remoteDrive: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
folder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
document: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
36
|
+
}, z.core.$strict>>>;
|
|
37
|
+
homeBackground: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
38
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
39
|
+
light: z.ZodString;
|
|
40
|
+
dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
}, z.core.$strict>]>>>;
|
|
42
|
+
layers: z.ZodArray<z.ZodObject<{
|
|
43
|
+
src: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
44
|
+
light: z.ZodString;
|
|
45
|
+
dark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$strict>]>;
|
|
47
|
+
position: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
48
|
+
top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
49
|
+
right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
50
|
+
bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
51
|
+
left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
52
|
+
}, z.core.$strict>>>;
|
|
53
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
54
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
55
|
+
minWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
56
|
+
minHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
57
|
+
maxWidth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
58
|
+
maxHeight: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
59
|
+
opacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
|
+
fade: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
61
|
+
top: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
62
|
+
right: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
63
|
+
bottom: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
64
|
+
left: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
65
|
+
}, z.core.$strict>>>;
|
|
66
|
+
}, z.core.$strict>>;
|
|
67
|
+
}, z.core.$strict>]>>>;
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
type GenericConfig = z.output<typeof genericConfigSchema>;
|
|
70
|
+
/** What a host.js entry writes. A type alias, not an interface, so it stays
|
|
71
|
+
* assignable to the runtime `PluginEntryData` config record. */
|
|
72
|
+
type GenericConfigInput = z.input<typeof genericConfigSchema>;
|
|
73
|
+
declare global {
|
|
74
|
+
interface PHPluginConfigs {
|
|
75
|
+
"@powerhousedao/connect/plugins/generic": GenericConfigInput;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/plugin-configs/openpanel.d.ts
|
|
80
|
+
/** The `@powerhousedao/connect/plugins/openpanel` entry config IS the
|
|
81
|
+
* `connect.openPanel` slice, typed and validated by that slice's
|
|
82
|
+
* single-source schema (a typo'd key fails). */
|
|
83
|
+
export declare const openPanelConfigSchema: z.ZodObject<{
|
|
84
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
85
|
+
apiUrl: z.ZodOptional<z.ZodString>;
|
|
86
|
+
trackUiEvents: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
trackOperations: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
}, z.core.$strict>;
|
|
89
|
+
/** What a host.js entry writes (a type alias, so it stays assignable to the
|
|
90
|
+
* runtime `PluginEntryData` config record). */
|
|
91
|
+
type OpenPanelConfigInput = z.input<typeof openPanelConfigSchema>;
|
|
92
|
+
declare global {
|
|
93
|
+
interface PHPluginConfigs {
|
|
94
|
+
"@powerhousedao/connect/plugins/openpanel": OpenPanelConfigInput;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/plugin-configs/sentry.d.ts
|
|
99
|
+
/** The `@powerhousedao/connect/plugins/sentry` entry config IS the
|
|
100
|
+
* `connect.sentry` slice, typed and validated by that slice's single-source
|
|
101
|
+
* schema (a typo'd key fails). */
|
|
102
|
+
export declare const sentryConfigSchema: z.ZodObject<{
|
|
103
|
+
dsn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
env: z.ZodOptional<z.ZodString>;
|
|
105
|
+
tracing: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
/** What a host.js entry writes (a type alias, so it stays assignable to the
|
|
108
|
+
* runtime `PluginEntryData` config record). */
|
|
109
|
+
type SentryConfigInput = z.input<typeof sentryConfigSchema>;
|
|
110
|
+
declare global {
|
|
111
|
+
interface PHPluginConfigs {
|
|
112
|
+
"@powerhousedao/connect/plugins/sentry": SentryConfigInput;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/plugin-configs/vetra-studio.d.ts
|
|
117
|
+
/** `@powerhousedao/vetra-studio/connect` takes no entry config: presence is
|
|
118
|
+
* the studio-mode switch. */
|
|
119
|
+
export declare const vetraStudioConfigSchema: z.ZodObject<{}, z.core.$strict>;
|
|
120
|
+
/** What a host.js entry writes (a type alias, so it stays assignable to the
|
|
121
|
+
* runtime `PluginEntryData` config record). */
|
|
122
|
+
type VetraStudioConfigInput = z.input<typeof vetraStudioConfigSchema>;
|
|
123
|
+
declare global {
|
|
124
|
+
interface PHPluginConfigs {
|
|
125
|
+
"@powerhousedao/vetra-studio/connect": VetraStudioConfigInput;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/plugin-configs/workflows.d.ts
|
|
130
|
+
/** The `@powerhousedao/connect/plugins/workflows` entry config. `drive` is
|
|
131
|
+
* the switchboard's Workflows drive URL; a host file usually writes it as an
|
|
132
|
+
* output token, which `ph run` resolves before the config reaches the
|
|
133
|
+
* browser. */
|
|
134
|
+
export declare const workflowsConnectConfigSchema: z.ZodObject<{
|
|
135
|
+
drive: z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodType<import("@powerhousedao/shared/host-tokens").Token, import("@powerhousedao/shared/host-tokens").ConcatToken | import("@powerhousedao/shared/host-tokens").EnvToken | import("@powerhousedao/shared/host-tokens").ItemToken<string> | import("@powerhousedao/shared/host-tokens").OutputToken<string> | ({
|
|
136
|
+
$key: true;
|
|
137
|
+
} | {
|
|
138
|
+
$key: string;
|
|
139
|
+
}), z.core.$ZodTypeInternals<import("@powerhousedao/shared/host-tokens").Token, import("@powerhousedao/shared/host-tokens").ConcatToken | import("@powerhousedao/shared/host-tokens").EnvToken | import("@powerhousedao/shared/host-tokens").ItemToken<string> | import("@powerhousedao/shared/host-tokens").OutputToken<string> | ({
|
|
140
|
+
$key: true;
|
|
141
|
+
} | {
|
|
142
|
+
$key: string;
|
|
143
|
+
})>>]>>;
|
|
144
|
+
name: z.ZodOptional<z.ZodString>;
|
|
145
|
+
}, z.core.$strict>;
|
|
146
|
+
type WorkflowsConnectConfig = z.infer<typeof workflowsConnectConfigSchema>;
|
|
147
|
+
/** What a host.js entry writes: `drive` is a URL or an output token. A type
|
|
148
|
+
* alias, not an interface, so it stays assignable to the runtime
|
|
149
|
+
* `PluginEntryData` config record. */
|
|
150
|
+
type WorkflowsConnectConfigInput = z.input<typeof workflowsConnectConfigSchema>;
|
|
151
|
+
declare global {
|
|
152
|
+
interface PHPluginConfigs {
|
|
153
|
+
"@powerhousedao/connect/plugins/workflows": WorkflowsConnectConfigInput;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/plugin-configs/index.d.ts
|
|
158
|
+
/** Every built-in Connect plugin's entry config schema, by specifier. */
|
|
159
|
+
export declare const connectPluginConfigSchemas: {
|
|
160
|
+
readonly "@powerhousedao/connect/plugins/assistant": import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
161
|
+
readonly "@powerhousedao/connect/plugins/generic": import("zod").ZodObject<{
|
|
162
|
+
allowAddDrive: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
163
|
+
sections: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
164
|
+
remote: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
165
|
+
enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
166
|
+
allowAdd: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
167
|
+
allowDelete: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
168
|
+
}, import("zod/v4/core").$strict>>;
|
|
169
|
+
local: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
170
|
+
enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
171
|
+
allowAdd: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
172
|
+
allowDelete: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
173
|
+
}, import("zod/v4/core").$strict>>;
|
|
174
|
+
}, import("zod/v4/core").$strict>>;
|
|
175
|
+
icons: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
176
|
+
localDrive: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
177
|
+
remoteDrive: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
178
|
+
folder: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
179
|
+
document: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
180
|
+
documents: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
|
|
181
|
+
}, import("zod/v4/core").$strict>>>;
|
|
182
|
+
homeBackground: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
183
|
+
color: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
184
|
+
light: import("zod").ZodString;
|
|
185
|
+
dark: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
186
|
+
}, import("zod/v4/core").$strict>]>>>;
|
|
187
|
+
layers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
188
|
+
src: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
189
|
+
light: import("zod").ZodString;
|
|
190
|
+
dark: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
191
|
+
}, import("zod/v4/core").$strict>]>;
|
|
192
|
+
position: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
193
|
+
top: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>>;
|
|
194
|
+
right: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>>;
|
|
195
|
+
bottom: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>>;
|
|
196
|
+
left: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>>;
|
|
197
|
+
}, import("zod/v4/core").$strict>>>;
|
|
198
|
+
width: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>>;
|
|
199
|
+
height: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>>;
|
|
200
|
+
minWidth: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>>;
|
|
201
|
+
minHeight: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>>;
|
|
202
|
+
maxWidth: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>>;
|
|
203
|
+
maxHeight: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>>;
|
|
204
|
+
opacity: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
205
|
+
fade: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
206
|
+
top: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>>;
|
|
207
|
+
right: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>>;
|
|
208
|
+
bottom: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>>;
|
|
209
|
+
left: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>>;
|
|
210
|
+
}, import("zod/v4/core").$strict>>>;
|
|
211
|
+
}, import("zod/v4/core").$strict>>;
|
|
212
|
+
}, import("zod/v4/core").$strict>]>>>;
|
|
213
|
+
}, import("zod/v4/core").$strict>;
|
|
214
|
+
readonly "@powerhousedao/connect/plugins/openpanel": import("zod").ZodObject<{
|
|
215
|
+
clientId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
216
|
+
apiUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
217
|
+
trackUiEvents: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
218
|
+
trackOperations: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
219
|
+
}, import("zod/v4/core").$strict>;
|
|
220
|
+
readonly "@powerhousedao/connect/plugins/sentry": import("zod").ZodObject<{
|
|
221
|
+
dsn: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
222
|
+
env: import("zod").ZodOptional<import("zod").ZodString>;
|
|
223
|
+
tracing: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
224
|
+
}, import("zod/v4/core").$strict>;
|
|
225
|
+
readonly "@powerhousedao/vetra-studio/connect": import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
226
|
+
readonly "@powerhousedao/connect/plugins/workflows": import("zod").ZodObject<{
|
|
227
|
+
drive: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodURL, import("zod").ZodType<import("@powerhousedao/host-core").Token, import("@powerhousedao/host-core").ConcatToken | import("@powerhousedao/host-core").EnvToken | import("@powerhousedao/host-core").ItemToken<string> | import("@powerhousedao/host-core").OutputToken<string> | ({
|
|
228
|
+
$key: true;
|
|
229
|
+
} | {
|
|
230
|
+
$key: string;
|
|
231
|
+
}), import("zod/v4/core").$ZodTypeInternals<import("@powerhousedao/host-core").Token, import("@powerhousedao/host-core").ConcatToken | import("@powerhousedao/host-core").EnvToken | import("@powerhousedao/host-core").ItemToken<string> | import("@powerhousedao/host-core").OutputToken<string> | ({
|
|
232
|
+
$key: true;
|
|
233
|
+
} | {
|
|
234
|
+
$key: string;
|
|
235
|
+
})>>]>>;
|
|
236
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
237
|
+
}, import("zod/v4/core").$strict>;
|
|
238
|
+
};
|
|
239
|
+
//#endregion
|
|
240
|
+
export type { AssistantConfigInput, GenericConfig, GenericConfigInput, OpenPanelConfigInput, SentryConfigInput, VetraStudioConfigInput, WorkflowsConnectConfig, WorkflowsConnectConfigInput };
|
|
241
|
+
export {};
|
|
242
|
+
//# sourceMappingURL=plugin-configs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-configs.d.ts","names":[],"sources":["../src/plugin-configs/assistant.ts","../src/plugin-configs/generic.ts","../src/plugin-configs/openpanel.ts","../src/plugin-configs/sentry.ts","../src/plugin-configs/vetra-studio.ts","../src/plugin-configs/workflows.ts","../src/plugin-configs/index.ts"],"mappings":";;;;qBAIa,uBAAqB,EAAA,cAAA,EAAA,KAAA;;;KAItB,uBAAuB,EAAE,aAAa;QAE1C;YACI;IACR,4CAA4C;;;;;qBCCnC,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAK9B,EAAA,KAAA;KAEU,gBAAgB,EAAE,cAAc;;;KAIhC,qBAAqB,EAAE,aAAa;QAExC;YACI;IACR,0CAA0C;;;;;;;;qBCtBjC,uBAAqB,EAAA;;;;;GAAyB,EAAA,KAAA;;;KAI/C,uBAAuB,EAAE,aAAa;QAE1C;YACI;IACR,4CAA4C;;;;;;;;qBCRnC,oBAAkB,EAAA;;;;GAAsB,EAAA,KAAA;;;KAIzC,oBAAoB,EAAE,aAAa;QAEvC;YACI;IACR,yCAAyC;;;;;;;qBCVhC,yBAAuB,EAAA,cAAA,EAAA,KAAA;;;KAIxB,yBAAyB,EAAE,aAAa;QAE5C;YACI;IACR,uCAAuC;;;;;;;;;qBCgB9B,8BAA4B,EAAA;;;;;;;;;;;GAKvC,EAAA,KAAA;KAEU,yBAAyB,EAAE,aAC9B;;;;KAMG,8BAA8B,EAAE,aACnC;QAGD;YACI;IACR,4CAA4C;;;;;;qBCRnC;WACX,0DAA0C,oCAAA;WAC1C,wDAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACxC,0DAA0C;;;;;;WAC1C,uDAAuC;;;;;WACvC,qDAAqC,oCAAA;WACrC,0DAA0C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2508ed92-cdd1-5f6b-9499-b8d3fcce863d")}catch(e){}}();
|
|
3
|
+
import { a as genericConfigSchema, i as openPanelConfigSchema, n as vetraStudioConfigSchema, o as assistantConfigSchema, r as sentryConfigSchema, t as workflowsConnectConfigSchema } from "./workflows-C3qEvx1R.js";
|
|
4
|
+
//#region src/plugin-configs/index.ts
|
|
5
|
+
/**
|
|
6
|
+
* `@powerhousedao/connect/plugin-configs`: the entry config schemas of every
|
|
7
|
+
* built-in Connect plugin, and their `PHPluginConfigs` augmentations, without
|
|
8
|
+
* the plugins themselves. Zod-only and browser-neutral (no React, no DOM, no
|
|
9
|
+
* `node:`), so a Node process (`ph run`) can validate a host's composition
|
|
10
|
+
* and host.js typing can reference the augmentations. The plugins in
|
|
11
|
+
* `src/plugins/` import their schemas from these same modules.
|
|
12
|
+
*/
|
|
13
|
+
/** Every built-in Connect plugin's entry config schema, by specifier. */
|
|
14
|
+
const connectPluginConfigSchemas = {
|
|
15
|
+
"@powerhousedao/connect/plugins/assistant": assistantConfigSchema,
|
|
16
|
+
"@powerhousedao/connect/plugins/generic": genericConfigSchema,
|
|
17
|
+
"@powerhousedao/connect/plugins/openpanel": openPanelConfigSchema,
|
|
18
|
+
"@powerhousedao/connect/plugins/sentry": sentryConfigSchema,
|
|
19
|
+
"@powerhousedao/vetra-studio/connect": vetraStudioConfigSchema,
|
|
20
|
+
"@powerhousedao/connect/plugins/workflows": workflowsConnectConfigSchema
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { assistantConfigSchema, connectPluginConfigSchemas, genericConfigSchema, openPanelConfigSchema, sentryConfigSchema, vetraStudioConfigSchema, workflowsConnectConfigSchema };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=plugin-configs.js.map
|
|
26
|
+
//# debugId=2508ed92-cdd1-5f6b-9499-b8d3fcce863d
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-configs.js","sources":["../src/plugin-configs/index.ts"],"sourcesContent":["/**\n * `@powerhousedao/connect/plugin-configs`: the entry config schemas of every\n * built-in Connect plugin, and their `PHPluginConfigs` augmentations, without\n * the plugins themselves. Zod-only and browser-neutral (no React, no DOM, no\n * `node:`), so a Node process (`ph run`) can validate a host's composition\n * and host.js typing can reference the augmentations. The plugins in\n * `src/plugins/` import their schemas from these same modules.\n */\nimport { assistantConfigSchema } from \"./assistant.js\";\nimport { genericConfigSchema } from \"./generic.js\";\nimport { openPanelConfigSchema } from \"./openpanel.js\";\nimport { sentryConfigSchema } from \"./sentry.js\";\nimport { vetraStudioConfigSchema } from \"./vetra-studio.js\";\nimport { workflowsConnectConfigSchema } from \"./workflows.js\";\n\nexport {\n assistantConfigSchema,\n type AssistantConfigInput,\n} from \"./assistant.js\";\nexport {\n genericConfigSchema,\n type GenericConfig,\n type GenericConfigInput,\n} from \"./generic.js\";\nexport {\n openPanelConfigSchema,\n type OpenPanelConfigInput,\n} from \"./openpanel.js\";\nexport { sentryConfigSchema, type SentryConfigInput } from \"./sentry.js\";\nexport {\n vetraStudioConfigSchema,\n type VetraStudioConfigInput,\n} from \"./vetra-studio.js\";\nexport {\n workflowsConnectConfigSchema,\n type WorkflowsConnectConfig,\n type WorkflowsConnectConfigInput,\n} from \"./workflows.js\";\n\n/** Every built-in Connect plugin's entry config schema, by specifier. */\nexport const connectPluginConfigSchemas = {\n \"@powerhousedao/connect/plugins/assistant\": assistantConfigSchema,\n \"@powerhousedao/connect/plugins/generic\": genericConfigSchema,\n \"@powerhousedao/connect/plugins/openpanel\": openPanelConfigSchema,\n \"@powerhousedao/connect/plugins/sentry\": sentryConfigSchema,\n \"@powerhousedao/vetra-studio/connect\": vetraStudioConfigSchema,\n \"@powerhousedao/connect/plugins/workflows\": workflowsConnectConfigSchema,\n} as const;\n"],"names":[],"mappings":";;;;;;;;;;;;;AAwCA,MAAa,6BAA6B;CACxC,4CAA4C;CAC5C,0CAA0C;CAC1C,4CAA4C;CAC5C,yCAAyC;CACzC,uCAAuC;CACvC,4CAA4C;AAC9C","debug_id":"2508ed92-cdd1-5f6b-9499-b8d3fcce863d"}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4c98aa96-bf40-5be2-8710-050c8041a0b5")}catch(e){}}();
|
|
3
|
+
import { a as genericConfigSchema, i as openPanelConfigSchema, n as vetraStudioConfigSchema, o as assistantConfigSchema, r as sentryConfigSchema, t as workflowsConnectConfigSchema } from "./workflows-C3qEvx1R.js";
|
|
4
|
+
import { DEFAULT_CONNECT_CONFIG } from "@powerhousedao/shared/connect";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
import { PluginError } from "@powerhousedao/host-core/plugins";
|
|
7
|
+
import { findToken } from "@powerhousedao/host-core/schema";
|
|
8
|
+
//#region src/plugins/entry-config.ts
|
|
9
|
+
/**
|
|
10
|
+
* Validate a built-in plugin's entry config against its configSchema, the way
|
|
11
|
+
* host-core's resolveHostPlugins does on the server: a failure names the
|
|
12
|
+
* plugin and every offending key instead of surfacing a bare ZodError from
|
|
13
|
+
* the runtime-config load.
|
|
14
|
+
*/
|
|
15
|
+
function parseEntryConfig(specifier, schema, rawConfig) {
|
|
16
|
+
const parsed = schema.safeParse(rawConfig);
|
|
17
|
+
if (!parsed.success) throw new PluginError(`config for Connect plugin "${specifier}" is invalid:\n` + z.prettifyError(parsed.error), `Fix the entry's config in the host's runner.plugins.`);
|
|
18
|
+
return parsed.data;
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/plugins/assistant.ts
|
|
22
|
+
const createAssistantPlugin = (rawConfig) => {
|
|
23
|
+
parseEntryConfig("@powerhousedao/connect/plugins/assistant", assistantConfigSchema, rawConfig);
|
|
24
|
+
return {
|
|
25
|
+
name: "connect-assistant",
|
|
26
|
+
appliesTo: "connect",
|
|
27
|
+
configSchema: assistantConfigSchema,
|
|
28
|
+
hooks: { transformConnectConfig(served) {
|
|
29
|
+
return {
|
|
30
|
+
...served,
|
|
31
|
+
ai: {
|
|
32
|
+
...served.ai,
|
|
33
|
+
assistantEnabled: true
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
} }
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/plugins/generic.ts
|
|
41
|
+
const DEFAULT_DRIVES = DEFAULT_CONNECT_CONFIG.drives;
|
|
42
|
+
const DEFAULT_HOME = DEFAULT_CONNECT_CONFIG.home;
|
|
43
|
+
const createGenericPlugin = (rawConfig) => {
|
|
44
|
+
const config = parseEntryConfig("@powerhousedao/connect/plugins/generic", genericConfigSchema, rawConfig);
|
|
45
|
+
return {
|
|
46
|
+
name: "connect-generic",
|
|
47
|
+
appliesTo: "connect",
|
|
48
|
+
configSchema: genericConfigSchema,
|
|
49
|
+
hooks: { transformConnectConfig(served) {
|
|
50
|
+
const entrySections = config.sections ?? {};
|
|
51
|
+
return {
|
|
52
|
+
...served,
|
|
53
|
+
drives: {
|
|
54
|
+
...served.drives,
|
|
55
|
+
allowAddDrive: config.allowAddDrive ?? DEFAULT_DRIVES?.allowAddDrive,
|
|
56
|
+
sections: {
|
|
57
|
+
remote: {
|
|
58
|
+
...DEFAULT_DRIVES?.sections?.remote,
|
|
59
|
+
...entrySections.remote
|
|
60
|
+
},
|
|
61
|
+
local: {
|
|
62
|
+
...DEFAULT_DRIVES?.sections?.local,
|
|
63
|
+
...entrySections.local
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
icons: config.icons ?? null
|
|
67
|
+
},
|
|
68
|
+
home: {
|
|
69
|
+
...served.home,
|
|
70
|
+
background: config.homeBackground ?? DEFAULT_HOME?.background ?? null
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
} }
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/plugins/openpanel.ts
|
|
78
|
+
const createOpenPanelPlugin = (rawConfig) => {
|
|
79
|
+
const config = parseEntryConfig("@powerhousedao/connect/plugins/openpanel", openPanelConfigSchema, rawConfig);
|
|
80
|
+
return {
|
|
81
|
+
name: "connect-openpanel",
|
|
82
|
+
appliesTo: "connect",
|
|
83
|
+
configSchema: openPanelConfigSchema,
|
|
84
|
+
hooks: { transformConnectConfig(served) {
|
|
85
|
+
return {
|
|
86
|
+
...served,
|
|
87
|
+
openPanel: {
|
|
88
|
+
...served.openPanel,
|
|
89
|
+
...config
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
} }
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/plugins/sentry.ts
|
|
97
|
+
const createSentryPlugin = (rawConfig) => {
|
|
98
|
+
const config = parseEntryConfig("@powerhousedao/connect/plugins/sentry", sentryConfigSchema, rawConfig);
|
|
99
|
+
return {
|
|
100
|
+
name: "connect-sentry",
|
|
101
|
+
appliesTo: "connect",
|
|
102
|
+
configSchema: sentryConfigSchema,
|
|
103
|
+
hooks: { transformConnectConfig(served) {
|
|
104
|
+
return {
|
|
105
|
+
...served,
|
|
106
|
+
sentry: {
|
|
107
|
+
...served.sentry,
|
|
108
|
+
...config
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
} }
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/plugins/ids.ts
|
|
116
|
+
/** The generic shell: Connect's sidebar, home screen and settings tabs. */
|
|
117
|
+
const GENERIC_PLUGIN = "@powerhousedao/connect/plugins/generic";
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/plugins/vetra-studio.ts
|
|
120
|
+
const createVetraStudioPlugin = (rawConfig) => {
|
|
121
|
+
parseEntryConfig("@powerhousedao/vetra-studio/connect", vetraStudioConfigSchema, rawConfig);
|
|
122
|
+
return {
|
|
123
|
+
name: "vetra-studio-connect",
|
|
124
|
+
appliesTo: "connect",
|
|
125
|
+
configSchema: vetraStudioConfigSchema,
|
|
126
|
+
hooks: { transformConnectConfig(served) {
|
|
127
|
+
return {
|
|
128
|
+
...served,
|
|
129
|
+
app: {
|
|
130
|
+
...served.app,
|
|
131
|
+
studioMode: true
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
} }
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/plugins/workflows.ts
|
|
139
|
+
const LOG = "[connect:plugins:workflows]";
|
|
140
|
+
function withDrive(drives, url, name) {
|
|
141
|
+
const existing = drives ?? [];
|
|
142
|
+
if (existing.some((drive) => "url" in drive && drive.url === url)) return existing;
|
|
143
|
+
return [...existing, {
|
|
144
|
+
url,
|
|
145
|
+
name: name ?? null,
|
|
146
|
+
icon: null
|
|
147
|
+
}];
|
|
148
|
+
}
|
|
149
|
+
const createWorkflowsPlugin = (rawConfig) => {
|
|
150
|
+
const config = parseEntryConfig("@powerhousedao/connect/plugins/workflows", workflowsConnectConfigSchema, rawConfig);
|
|
151
|
+
return {
|
|
152
|
+
name: "connect-workflows",
|
|
153
|
+
appliesTo: "connect",
|
|
154
|
+
configSchema: workflowsConnectConfigSchema,
|
|
155
|
+
hooks: { transformConnectConfig(served) {
|
|
156
|
+
const out = {
|
|
157
|
+
...served,
|
|
158
|
+
app: {
|
|
159
|
+
...served.app,
|
|
160
|
+
workflowsEnabled: true
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
const drive = config.drive;
|
|
164
|
+
if (typeof drive === "string") out.drives = {
|
|
165
|
+
...served.drives,
|
|
166
|
+
defaultDrives: withDrive(served.drives?.defaultDrives, drive, config.name)
|
|
167
|
+
};
|
|
168
|
+
else if (drive !== void 0) console.warn(`${LOG} drive is an unresolved output token (${findToken(drive)?.key ?? "unknown"}); no Workflows drive attached.`);
|
|
169
|
+
return out;
|
|
170
|
+
} }
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/plugins/index.ts
|
|
175
|
+
const ANALYTICS_CONSENT = { consent: true };
|
|
176
|
+
const driveSectionOff = {
|
|
177
|
+
enabled: false,
|
|
178
|
+
allowAdd: false,
|
|
179
|
+
allowDelete: false
|
|
180
|
+
};
|
|
181
|
+
/** Connect's built-in plugins, by the specifier a composition names. */
|
|
182
|
+
const connectPlugins = {
|
|
183
|
+
[GENERIC_PLUGIN]: {
|
|
184
|
+
create: createGenericPlugin,
|
|
185
|
+
ui: () => import("./ui-BITvvqdH.js").then((m) => m.default),
|
|
186
|
+
shell: "generic",
|
|
187
|
+
whenAbsent: (config) => ({
|
|
188
|
+
...config,
|
|
189
|
+
drives: {
|
|
190
|
+
...config.drives,
|
|
191
|
+
allowAddDrive: false,
|
|
192
|
+
sections: {
|
|
193
|
+
remote: driveSectionOff,
|
|
194
|
+
local: driveSectionOff
|
|
195
|
+
},
|
|
196
|
+
icons: null
|
|
197
|
+
},
|
|
198
|
+
home: {
|
|
199
|
+
...config.home,
|
|
200
|
+
background: null
|
|
201
|
+
}
|
|
202
|
+
})
|
|
203
|
+
},
|
|
204
|
+
"@powerhousedao/connect/plugins/sentry": {
|
|
205
|
+
create: createSentryPlugin,
|
|
206
|
+
ui: () => Promise.resolve(ANALYTICS_CONSENT),
|
|
207
|
+
whenAbsent: (config) => ({
|
|
208
|
+
...config,
|
|
209
|
+
sentry: {
|
|
210
|
+
...config.sentry,
|
|
211
|
+
dsn: null
|
|
212
|
+
}
|
|
213
|
+
})
|
|
214
|
+
},
|
|
215
|
+
"@powerhousedao/connect/plugins/openpanel": {
|
|
216
|
+
create: createOpenPanelPlugin,
|
|
217
|
+
ui: () => Promise.resolve(ANALYTICS_CONSENT),
|
|
218
|
+
whenAbsent: (config) => ({
|
|
219
|
+
...config,
|
|
220
|
+
openPanel: {
|
|
221
|
+
...config.openPanel,
|
|
222
|
+
clientId: "",
|
|
223
|
+
trackUiEvents: false,
|
|
224
|
+
trackOperations: false
|
|
225
|
+
}
|
|
226
|
+
})
|
|
227
|
+
},
|
|
228
|
+
"@powerhousedao/connect/plugins/assistant": {
|
|
229
|
+
create: createAssistantPlugin,
|
|
230
|
+
whenAbsent: (config) => ({
|
|
231
|
+
...config,
|
|
232
|
+
ai: {
|
|
233
|
+
...config.ai,
|
|
234
|
+
assistantEnabled: false
|
|
235
|
+
}
|
|
236
|
+
})
|
|
237
|
+
},
|
|
238
|
+
"@powerhousedao/connect/plugins/workflows": {
|
|
239
|
+
create: createWorkflowsPlugin,
|
|
240
|
+
whenAbsent: (config) => ({
|
|
241
|
+
...config,
|
|
242
|
+
app: {
|
|
243
|
+
...config.app,
|
|
244
|
+
workflowsEnabled: false
|
|
245
|
+
}
|
|
246
|
+
})
|
|
247
|
+
},
|
|
248
|
+
"@powerhousedao/vetra-studio/connect": {
|
|
249
|
+
create: createVetraStudioPlugin,
|
|
250
|
+
ui: () => import("./ui-C1-l-Eyh.js").then((m) => m.default),
|
|
251
|
+
whenAbsent: (config) => ({
|
|
252
|
+
...config,
|
|
253
|
+
app: {
|
|
254
|
+
...config.app,
|
|
255
|
+
studioMode: false
|
|
256
|
+
}
|
|
257
|
+
})
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
//#endregion
|
|
261
|
+
export { connectPlugins };
|
|
262
|
+
|
|
263
|
+
//# sourceMappingURL=plugins--mJeXJ7w.js.map
|
|
264
|
+
//# debugId=4c98aa96-bf40-5be2-8710-050c8041a0b5
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins--mJeXJ7w.js","sources":["../src/plugins/entry-config.ts","../src/plugins/assistant.ts","../src/plugins/generic.ts","../src/plugins/openpanel.ts","../src/plugins/sentry.ts","../src/plugins/ids.ts","../src/plugins/vetra-studio.ts","../src/plugins/workflows.ts","../src/plugins/index.ts"],"sourcesContent":["import { PluginError } from \"@powerhousedao/host-core/plugins\";\nimport { z } from \"zod\";\n\n/**\n * Validate a built-in plugin's entry config against its configSchema, the way\n * host-core's resolveHostPlugins does on the server: a failure names the\n * plugin and every offending key instead of surfacing a bare ZodError from\n * the runtime-config load.\n */\nexport function parseEntryConfig<S extends z.ZodType>(\n specifier: string,\n schema: S,\n rawConfig: unknown,\n): z.output<S> {\n const parsed = schema.safeParse(rawConfig);\n if (!parsed.success) {\n throw new PluginError(\n `config for Connect plugin \"${specifier}\" is invalid:\\n` +\n z.prettifyError(parsed.error),\n `Fix the entry's config in the host's runner.plugins.`,\n );\n }\n return parsed.data;\n}\n","import type { PHConnectRuntimeConfig } from \"@powerhousedao/shared/clis\";\nimport type {\n ConnectPlugin,\n ConnectPluginFactory,\n} from \"@powerhousedao/connect-core/plugins\";\nimport { parseEntryConfig } from \"./entry-config.js\";\nimport {\n assistantConfigSchema,\n type AssistantConfigInput,\n} from \"../plugin-configs/assistant.js\";\n\n/**\n * The Connect AI assistant (`@powerhousedao/connect/plugins/assistant`).\n * Presence flips `ai.assistantEnabled` on; absence forces it off. The\n * assistant FAB in app.tsx already renders on `ai.assistantEnabled`, so this\n * plugin's config shuffle is immediately visible in the UI.\n *\n * It takes no entry config: `ai.assistantEnabled` is the only key of the\n * `connect.ai` slice, and presence is that switch. The endpoint and agent are\n * user settings in the browser, not host config.\n */\n\n// Schema and PHPluginConfigs augmentation: ../plugin-configs (zod-only).\nexport { assistantConfigSchema, type AssistantConfigInput };\n\nexport const createAssistantPlugin: ConnectPluginFactory = (rawConfig) => {\n parseEntryConfig(\n \"@powerhousedao/connect/plugins/assistant\",\n assistantConfigSchema,\n rawConfig,\n );\n const plugin: ConnectPlugin = {\n name: \"connect-assistant\",\n appliesTo: \"connect\",\n configSchema: assistantConfigSchema,\n hooks: {\n transformConnectConfig(served: PHConnectRuntimeConfig) {\n return {\n ...served,\n ai: { ...served.ai, assistantEnabled: true },\n };\n },\n },\n };\n return plugin;\n};\n\nexport default createAssistantPlugin;\n","import { DEFAULT_CONNECT_CONFIG } from \"@powerhousedao/shared/connect\";\nimport type {\n PHBackground,\n PHConnectExplorerIcons,\n PHConnectRuntimeConfig,\n} from \"@powerhousedao/shared/clis\";\nimport type {\n ConnectPlugin,\n ConnectPluginFactory,\n} from \"@powerhousedao/connect-core/plugins\";\nimport { parseEntryConfig } from \"./entry-config.js\";\nimport {\n genericConfigSchema,\n type GenericConfig,\n type GenericConfigInput,\n} from \"../plugin-configs/generic.js\";\n\n/**\n * The generic Connect shell plugin (`@powerhousedao/connect/plugins/generic`).\n *\n * It OWNS the drive-chrome UI toggles — `allowAddDrive` and the per-section\n * `sections.{remote,local}` switches (enabled / allowAdd / allowDelete) —\n * the explorer's `icons` (local/remote drive fallbacks, folder, document and\n * per-type document icons, which override the icons a package ships) and the\n * home screen's `homeBackground` (its layers over a page colour). These\n * describe nothing outside the generic chrome (connect.config.ts reads the\n * toggles to decide whether the add-drive affordance and the drive sections\n * render; the explorer components read the icons; the home screen is the\n * chrome's landing page), so under uniform runners they are configured HERE,\n * through this plugin's entry config, not as free-standing top-level\n * connect.drives / connect.home values:\n *\n * - present + entry provides a value -> that value\n * - present + entry omits it -> inherit DEFAULT_CONNECT_CONFIG\n * - absent from the composition -> zeroed off (see its whenAbsent\n * in ./index.ts — no chrome, no\n * toggles)\n *\n * The top-level served value is deliberately NOT a fallback: ownership means a\n * single source. `branding` is intentionally NOT handled here — it has reach\n * beyond the chrome (e.g. document.title), so it stays a Connect-level config\n * value that survives this plugin's absence.\n *\n * Icons and background images are image refs; a project path in host.js is\n * resolved to a data URI by the Connect build before the composition reaches\n * the browser, a URL or data URI passes through (the only forms for config\n * applied after the build). `null` keeps the built-in icon / gradient.\n */\n\n// Schema and PHPluginConfigs augmentation: ../plugin-configs (zod-only).\nexport { genericConfigSchema, type GenericConfig, type GenericConfigInput };\n\nconst DEFAULT_DRIVES = DEFAULT_CONNECT_CONFIG.drives;\nconst DEFAULT_HOME = DEFAULT_CONNECT_CONFIG.home;\n\nexport const createGenericPlugin: ConnectPluginFactory = (rawConfig) => {\n const config: GenericConfig = parseEntryConfig(\n \"@powerhousedao/connect/plugins/generic\",\n genericConfigSchema,\n rawConfig,\n );\n const plugin: ConnectPlugin = {\n name: \"connect-generic\",\n appliesTo: \"connect\",\n configSchema: genericConfigSchema,\n hooks: {\n transformConnectConfig(served: PHConnectRuntimeConfig) {\n const entrySections = config.sections ?? {};\n return {\n ...served,\n drives: {\n ...served.drives,\n // Owned: entry value, else the single-source default — never the\n // served top-level value.\n allowAddDrive:\n config.allowAddDrive ?? DEFAULT_DRIVES?.allowAddDrive,\n sections: {\n remote: {\n ...DEFAULT_DRIVES?.sections?.remote,\n ...entrySections.remote,\n },\n local: {\n ...DEFAULT_DRIVES?.sections?.local,\n ...entrySections.local,\n },\n },\n // Owned: the entry's icons (already resolved by the build), else\n // the default — the built-in icons.\n icons: (config.icons ?? null) as PHConnectExplorerIcons | null,\n } as never,\n home: {\n ...served.home,\n // Owned: the entry's background (images resolved by the build),\n // else the default — the bundled gradient.\n background: (config.homeBackground ??\n DEFAULT_HOME?.background ??\n null) as PHBackground | null,\n },\n };\n },\n },\n };\n return plugin;\n};\n\nexport default createGenericPlugin;\n","import type { PHConnectRuntimeConfig } from \"@powerhousedao/shared/clis\";\nimport type {\n ConnectPlugin,\n ConnectPluginFactory,\n} from \"@powerhousedao/connect-core/plugins\";\nimport { parseEntryConfig } from \"./entry-config.js\";\nimport {\n openPanelConfigSchema,\n type OpenPanelConfigInput,\n} from \"../plugin-configs/openpanel.js\";\n\n/**\n * OpenPanel analytics (`@powerhousedao/connect/plugins/openpanel`). Presence\n * is activation: the entry config (clientId, trackUiEvents, trackOperations)\n * merges into the served `openPanel` block; absence clears the clientId and\n * turns tracking off. Config shuffle today; the Analytics/OpenPanel\n * components that consume it already live in the app tree.\n *\n * The entry config IS the `connect.openPanel` slice, so it is typed and\n * validated by that slice's single-source schema (a typo'd key fails).\n */\n\n// Schema and PHPluginConfigs augmentation: ../plugin-configs (zod-only).\nexport { openPanelConfigSchema, type OpenPanelConfigInput };\n\nexport const createOpenPanelPlugin: ConnectPluginFactory = (rawConfig) => {\n const config = parseEntryConfig(\n \"@powerhousedao/connect/plugins/openpanel\",\n openPanelConfigSchema,\n rawConfig,\n );\n const plugin: ConnectPlugin = {\n name: \"connect-openpanel\",\n appliesTo: \"connect\",\n configSchema: openPanelConfigSchema,\n hooks: {\n transformConnectConfig(served: PHConnectRuntimeConfig) {\n return {\n ...served,\n openPanel: { ...served.openPanel, ...config } as never,\n };\n },\n },\n };\n return plugin;\n};\n\nexport default createOpenPanelPlugin;\n","import type { PHConnectRuntimeConfig } from \"@powerhousedao/shared/clis\";\nimport type {\n ConnectPlugin,\n ConnectPluginFactory,\n} from \"@powerhousedao/connect-core/plugins\";\nimport { parseEntryConfig } from \"./entry-config.js\";\nimport {\n sentryConfigSchema,\n type SentryConfigInput,\n} from \"../plugin-configs/sentry.js\";\n\n/**\n * Sentry error reporting (`@powerhousedao/connect/plugins/sentry`). Presence\n * is activation: listing it merges the entry config (dsn, env, tracing) into\n * the served `sentry` block; omitting it nulls the dsn (see the absence\n * zeroing in plugin-host). A thin config shuffle today — the SentryProvider\n * that reads this slice already exists in the app.\n *\n * The entry config IS the `connect.sentry` slice, so it is typed and\n * validated by that slice's single-source schema (a typo'd key fails).\n */\n\n// Schema and PHPluginConfigs augmentation: ../plugin-configs (zod-only).\nexport { sentryConfigSchema, type SentryConfigInput };\n\nexport const createSentryPlugin: ConnectPluginFactory = (rawConfig) => {\n const config = parseEntryConfig(\n \"@powerhousedao/connect/plugins/sentry\",\n sentryConfigSchema,\n rawConfig,\n );\n const plugin: ConnectPlugin = {\n name: \"connect-sentry\",\n appliesTo: \"connect\",\n configSchema: sentryConfigSchema,\n hooks: {\n transformConnectConfig(served: PHConnectRuntimeConfig) {\n return {\n ...served,\n sentry: { ...served.sentry, ...config } as never,\n };\n },\n },\n };\n return plugin;\n};\n\nexport default createSentryPlugin;\n","/** The generic shell: Connect's sidebar, home screen and settings tabs. */\nexport const GENERIC_PLUGIN = \"@powerhousedao/connect/plugins/generic\";\n","import type { PHConnectRuntimeConfig } from \"@powerhousedao/shared/clis\";\nimport type {\n ConnectPlugin,\n ConnectPluginFactory,\n} from \"@powerhousedao/connect-core/plugins\";\nimport { parseEntryConfig } from \"./entry-config.js\";\nimport {\n vetraStudioConfigSchema,\n type VetraStudioConfigInput,\n} from \"../plugin-configs/vetra-studio.js\";\n\n/**\n * Vetra Studio, browser side (`@powerhousedao/vetra-studio/connect`). Its\n * presence turns Connect's studio mode on; the classic `app.studioMode`\n * consumer paths run unchanged, and absence forces studio off (the zeroing in\n * plugin-host). Lives here, in Connect's own source, because the studio-mode\n * behaviour is Connect browser behaviour — the published vetra-studio/connect\n * module is only the server-resolvable identity of the same plugin.\n *\n * It takes no entry config: presence is the switch, and the rest of the\n * `connect.app` slice is Connect-level config, not this plugin's.\n */\n\n// Schema and PHPluginConfigs augmentation: ../plugin-configs (zod-only).\nexport { vetraStudioConfigSchema, type VetraStudioConfigInput };\n\nexport const createVetraStudioPlugin: ConnectPluginFactory = (rawConfig) => {\n parseEntryConfig(\n \"@powerhousedao/vetra-studio/connect\",\n vetraStudioConfigSchema,\n rawConfig,\n );\n const plugin: ConnectPlugin = {\n name: \"vetra-studio-connect\",\n appliesTo: \"connect\",\n configSchema: vetraStudioConfigSchema,\n hooks: {\n transformConnectConfig(served: PHConnectRuntimeConfig) {\n return {\n ...served,\n app: { ...served.app, studioMode: true },\n };\n },\n },\n };\n return plugin;\n};\n\nexport default createVetraStudioPlugin;\n","import { findToken } from \"@powerhousedao/host-core/schema\";\nimport type {\n PHConnectDefaultDrive,\n PHConnectRuntimeConfig,\n} from \"@powerhousedao/shared/clis\";\nimport type {\n ConnectPlugin,\n ConnectPluginFactory,\n} from \"@powerhousedao/connect-core/plugins\";\nimport { parseEntryConfig } from \"./entry-config.js\";\nimport {\n workflowsConnectConfigSchema,\n type WorkflowsConnectConfig,\n type WorkflowsConnectConfigInput,\n} from \"../plugin-configs/workflows.js\";\n\n/**\n * The workflows plugin, browser side (`@powerhousedao/connect/plugins/\n * workflows`) — the Connect half of the link whose server half is\n * `@powerhousedao/switchboard/plugins/workflows` (workflow-plugins plan).\n *\n * Presence is activation: listed, Connect loads the workflow package (so\n * Workflow Studio, the drive app the Workflows drive names as its preferred\n * editor, exists) and attaches the configured drive as a remote default\n * drive. Absent from a declared composition, `app.workflowsEnabled` is zeroed\n * (its whenAbsent in ./index.ts) — the classic `workflows.enabled` /\n * `connect.app.workflowsEnabled` values stop being the switch.\n *\n * `drive` is the switchboard's drive URL (`http://host:port/d/<slug>`). The\n * drive has to be a REMOTE of the switchboard that runs the workflow runtime:\n * Workflow Studio reaches that runtime through the selected drive's\n * switchboard, so a local copy would render the studio against the wrong\n * endpoint. Host files write it as the output token\n * `switchboard.drives.workflows.url`; `ph run` resolves it (from the\n * compound's live member or the switchboard's run record) before this\n * config reaches the browser.\n */\n\n// Schema and PHPluginConfigs augmentation: ../plugin-configs (zod-only).\nexport {\n workflowsConnectConfigSchema,\n type WorkflowsConnectConfig,\n type WorkflowsConnectConfigInput,\n};\n\nconst LOG = \"[connect:plugins:workflows]\";\n\nfunction withDrive(\n drives: PHConnectDefaultDrive[] | undefined,\n url: string,\n name: string | undefined,\n): PHConnectDefaultDrive[] {\n const existing = drives ?? [];\n if (existing.some((drive) => \"url\" in drive && drive.url === url)) {\n return existing;\n }\n return [...existing, { url, name: name ?? null, icon: null }];\n}\n\nexport const createWorkflowsPlugin: ConnectPluginFactory = (rawConfig) => {\n const config: WorkflowsConnectConfig = parseEntryConfig(\n \"@powerhousedao/connect/plugins/workflows\",\n workflowsConnectConfigSchema,\n rawConfig,\n );\n const plugin: ConnectPlugin = {\n name: \"connect-workflows\",\n appliesTo: \"connect\",\n configSchema: workflowsConnectConfigSchema,\n hooks: {\n transformConnectConfig(served: PHConnectRuntimeConfig) {\n const out: PHConnectRuntimeConfig = {\n ...served,\n app: { ...served.app, workflowsEnabled: true } as never,\n };\n const drive = config.drive;\n if (typeof drive === \"string\") {\n out.drives = {\n ...served.drives,\n defaultDrives: withDrive(\n served.drives?.defaultDrives,\n drive,\n config.name,\n ),\n } as never;\n } else if (drive !== undefined) {\n console.warn(\n `${LOG} drive is an unresolved output token (${findToken(drive)?.key ?? \"unknown\"}); no Workflows drive attached.`,\n );\n }\n return out;\n },\n },\n };\n return plugin;\n};\n\nexport default createWorkflowsPlugin;\n","import type { ConnectPluginDefinition } from \"@powerhousedao/connect-core/plugins\";\nimport createAssistantPlugin from \"./assistant.js\";\nimport createGenericPlugin from \"./generic.js\";\nimport createOpenPanelPlugin from \"./openpanel.js\";\nimport createSentryPlugin from \"./sentry.js\";\nimport { GENERIC_PLUGIN } from \"./ids.js\";\nimport createVetraStudioPlugin from \"./vetra-studio.js\";\nimport createWorkflowsPlugin from \"./workflows.js\";\n\nexport { GENERIC_PLUGIN };\n\n// Sentry and OpenPanel start only once the viewer accepts analytics cookies.\nconst ANALYTICS_CONSENT = { consent: true };\n\n// Each built-in zeroes the config slice it owns when a composition leaves it out.\nconst driveSectionOff = { enabled: false, allowAdd: false, allowDelete: false };\n\n/** Connect's built-in plugins, by the specifier a composition names. */\nexport const connectPlugins: Record<string, ConnectPluginDefinition> = {\n [GENERIC_PLUGIN]: {\n create: createGenericPlugin,\n ui: () => import(\"../generic/ui.js\").then((m) => m.default),\n shell: \"generic\",\n // The drive-chrome toggles, explorer icons and home screen go: no\n // add-drive affordance, the sections off, built-in icons, no home\n // background. Branding is not zeroed: it is Connect-level and outlives\n // the plugin.\n whenAbsent: (config) => ({\n ...config,\n drives: {\n ...config.drives,\n allowAddDrive: false,\n sections: { remote: driveSectionOff, local: driveSectionOff },\n icons: null,\n } as never,\n home: { ...config.home, background: null } as never,\n }),\n },\n \"@powerhousedao/connect/plugins/sentry\": {\n create: createSentryPlugin,\n ui: () => Promise.resolve(ANALYTICS_CONSENT),\n whenAbsent: (config) => ({\n ...config,\n sentry: { ...config.sentry, dsn: null } as never,\n }),\n },\n \"@powerhousedao/connect/plugins/openpanel\": {\n create: createOpenPanelPlugin,\n ui: () => Promise.resolve(ANALYTICS_CONSENT),\n whenAbsent: (config) => ({\n ...config,\n openPanel: {\n ...config.openPanel,\n clientId: \"\",\n trackUiEvents: false,\n trackOperations: false,\n } as never,\n }),\n },\n \"@powerhousedao/connect/plugins/assistant\": {\n create: createAssistantPlugin,\n whenAbsent: (config) => ({\n ...config,\n ai: { ...config.ai, assistantEnabled: false } as never,\n }),\n },\n \"@powerhousedao/connect/plugins/workflows\": {\n create: createWorkflowsPlugin,\n // The workflow package (Workflow Studio) loads only when the plugin is\n // composed in; the classic workflows.enabled value is not the switch.\n whenAbsent: (config) => ({\n ...config,\n app: { ...config.app, workflowsEnabled: false } as never,\n }),\n },\n \"@powerhousedao/vetra-studio/connect\": {\n create: createVetraStudioPlugin,\n // Studio sign-in (#studio-sign-in=<bearer>), for agents.\n ui: () => import(\"./vetra-studio/ui.js\").then((m) => m.default),\n whenAbsent: (config) => ({\n ...config,\n app: { ...config.app, studioMode: false } as never,\n }),\n },\n};\n"],"names":[],"mappings":"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","debug_id":"4c98aa96-bf40-5be2-8710-050c8041a0b5"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import {
|
|
4
|
-
import { r as connectConfig } from "./connect.config-CaXMoB42.js";
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="12ffe631-da25-51c9-9b9b-215cb5ec2a2e")}catch(e){}}();
|
|
3
|
+
import { r as connectConfig } from "./connect.config-DL9nKtlW.js";
|
|
5
4
|
import { useSyncExternalStore } from "react";
|
|
5
|
+
import { getIsEmbedded } from "@powerhousedao/connect-core/embedded";
|
|
6
6
|
//#region src/hooks/preferences-store.ts
|
|
7
7
|
const namespace = connectConfig.routerBasename;
|
|
8
8
|
/**
|
|
@@ -81,5 +81,5 @@ const useCookieBanner = () => {
|
|
|
81
81
|
//#endregion
|
|
82
82
|
export { useAcceptedCookies as n, useCookieBanner as r, setBannerShown as t };
|
|
83
83
|
|
|
84
|
-
//# sourceMappingURL=preferences-store-
|
|
85
|
-
//# debugId=
|
|
84
|
+
//# sourceMappingURL=preferences-store-DxYAnGCc.js.map
|
|
85
|
+
//# debugId=12ffe631-da25-51c9-9b9b-215cb5ec2a2e
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preferences-store-DxYAnGCc.js","sources":["../src/hooks/preferences-store.ts"],"sourcesContent":["import { connectConfig } from \"@powerhousedao/connect/config\";\nimport { useSyncExternalStore } from \"react\";\n\nimport { getIsEmbedded } from \"@powerhousedao/connect-core/embedded\";\n\nconst namespace = connectConfig.routerBasename;\n\n/**\n * Block-proof home for Connect's consent and banner state.\n *\n * The file name deliberately avoids words that appear in ad-blocker\n * filter lists (cookie, banner, consent, analytics, ...). Modules in the\n * app's critical import chain import from here, never from files whose\n * URLs match those filters. If an ad blocker blocks the lazy-loaded\n * cookie-banner chunk instead, the app simply never shows the banner —\n * which leaves the flags at their rejected defaults (analytics off) —\n * and everything else keeps working.\n */\n\n// ---------------------------------------------------------------------------\n// Accepted cookies (analytics / marketing / functional)\n// ---------------------------------------------------------------------------\n\nexport const ACCEPTED_COOKIES_KEY_STORAGE = `${namespace}:acceptedCookies`;\n\nexport interface AcceptedCookies {\n analytics: boolean;\n marketing: boolean;\n functional: boolean;\n}\n\nconst REJECTED_COOKIES: AcceptedCookies = {\n analytics: false,\n marketing: false,\n functional: false,\n};\n\nconst cookieListeners = new Set<() => void>();\n\nlet acceptedCookies: AcceptedCookies = getInitialAcceptedCookies();\n\nfunction getInitialAcceptedCookies(): AcceptedCookies {\n try {\n const value = localStorage.getItem(ACCEPTED_COOKIES_KEY_STORAGE);\n return value ? (JSON.parse(value) as AcceptedCookies) : REJECTED_COOKIES;\n } catch {\n return REJECTED_COOKIES;\n }\n}\n\nfunction subscribeAcceptedCookies(fn: () => void) {\n cookieListeners.add(fn);\n return () => {\n cookieListeners.delete(fn);\n };\n}\n\nfunction getAcceptedCookies(): AcceptedCookies {\n return acceptedCookies;\n}\n\nexport function setAcceptedCookies(\n setter: (prev: AcceptedCookies) => AcceptedCookies,\n) {\n acceptedCookies = setter(acceptedCookies);\n localStorage.setItem(\n ACCEPTED_COOKIES_KEY_STORAGE,\n JSON.stringify(acceptedCookies),\n );\n cookieListeners.forEach((fn) => fn());\n}\n\nexport const useAcceptedCookies = () => {\n const cookies = useSyncExternalStore(\n subscribeAcceptedCookies,\n getAcceptedCookies,\n getAcceptedCookies,\n );\n return [cookies, setAcceptedCookies] as const;\n};\n\n// ---------------------------------------------------------------------------\n// Cookie banner visibility\n// ---------------------------------------------------------------------------\n\nexport const COOKIE_BANNER_KEY_STORAGE = `${namespace}:display-cookie-banner`;\n\nconst bannerListeners = new Set<() => void>();\n\nlet bannerShown = getInitialBannerShown();\n\nfunction getInitialBannerShown(): boolean {\n if (getIsEmbedded()) return false;\n try {\n const value = localStorage.getItem(COOKIE_BANNER_KEY_STORAGE);\n return value !== \"false\";\n } catch (error) {\n console.error(error);\n return true;\n }\n}\n\nfunction subscribeBannerShown(fn: () => void) {\n bannerListeners.add(fn);\n return () => {\n bannerListeners.delete(fn);\n };\n}\n\nfunction getBannerShown(): boolean {\n return bannerShown;\n}\n\nexport function setBannerShown(state: boolean) {\n bannerShown = state;\n localStorage.setItem(COOKIE_BANNER_KEY_STORAGE, JSON.stringify(state));\n bannerListeners.forEach((fn) => fn());\n}\n\nexport const useCookieBanner = () => {\n const shown = useSyncExternalStore(\n subscribeBannerShown,\n getBannerShown,\n getBannerShown,\n );\n return [shown, setBannerShown] as const;\n};\n"],"names":[],"mappings":";;;;;;AAKA,MAAM,YAAY,cAAc;;;;;;;;;;;;AAkBhC,MAAa,+BAA+B,GAAG,UAAU;AAQzD,MAAM,mBAAoC;CACxC,WAAW;CACX,WAAW;CACX,YAAY;AACd;AAEA,MAAM,kCAAkB,IAAI,IAAgB;AAE5C,IAAI,kBAAmC,0BAA0B;AAEjE,SAAS,4BAA6C;CACpD,IAAI;EACF,MAAM,QAAQ,aAAa,QAAQ,4BAA4B;EAC/D,OAAO,QAAS,KAAK,MAAM,KAAK,IAAwB;CAC1D,QAAQ;EACN,OAAO;CACT;AACF;AAEA,SAAS,yBAAyB,IAAgB;CAChD,gBAAgB,IAAI,EAAE;CACtB,aAAa;EACX,gBAAgB,OAAO,EAAE;CAC3B;AACF;AAEA,SAAS,qBAAsC;CAC7C,OAAO;AACT;AAEA,SAAgB,mBACd,QACA;CACA,kBAAkB,OAAO,eAAe;CACxC,aAAa,QACX,8BACA,KAAK,UAAU,eAAe,CAChC;CACA,gBAAgB,SAAS,OAAO,GAAG,CAAC;AACtC;AAEA,MAAa,2BAA2B;CAMtC,OAAO,CALS,qBACd,0BACA,oBACA,kBAEY,GAAG,kBAAkB;AACrC;AAMA,MAAa,4BAA4B,GAAG,UAAU;AAEtD,MAAM,kCAAkB,IAAI,IAAgB;AAE5C,IAAI,cAAc,sBAAsB;AAExC,SAAS,wBAAiC;CACxC,IAAI,cAAc,GAAG,OAAO;CAC5B,IAAI;EAEF,OADc,aAAa,QAAQ,yBACxB,MAAM;CACnB,SAAS,OAAO;EACd,QAAQ,MAAM,KAAK;EACnB,OAAO;CACT;AACF;AAEA,SAAS,qBAAqB,IAAgB;CAC5C,gBAAgB,IAAI,EAAE;CACtB,aAAa;EACX,gBAAgB,OAAO,EAAE;CAC3B;AACF;AAEA,SAAS,iBAA0B;CACjC,OAAO;AACT;AAEA,SAAgB,eAAe,OAAgB;CAC7C,cAAc;CACd,aAAa,QAAQ,2BAA2B,KAAK,UAAU,KAAK,CAAC;CACrE,gBAAgB,SAAS,OAAO,GAAG,CAAC;AACtC;AAEA,MAAa,wBAAwB;CAMnC,OAAO,CALO,qBACZ,sBACA,gBACA,cAEU,GAAG,cAAc;AAC/B","debug_id":"12ffe631-da25-51c9-9b9b-215cb5ec2a2e"}
|