@agimon-ai/doompi 0.0.1-alpha.76 → 0.0.1-alpha.78
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/dist/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/antigravity.cjs +5 -0
- package/dist/antigravity.d.cts +2 -0
- package/dist/antigravity.d.mts +2 -0
- package/dist/antigravity.mjs +2 -0
- package/dist/api-contracts.cjs +11 -0
- package/dist/api-contracts.cjs.map +1 -0
- package/dist/api-contracts.d.cts +52 -0
- package/dist/api-contracts.d.cts.map +1 -0
- package/dist/api-contracts.d.mts +52 -0
- package/dist/api-contracts.d.mts.map +1 -0
- package/dist/api-contracts.mjs +7 -0
- package/dist/api-contracts.mjs.map +1 -0
- package/dist/base-command.cjs +3 -0
- package/dist/base-command.d.cts +2 -0
- package/dist/base-command.d.mts +2 -0
- package/dist/base-command.mjs +2 -0
- package/dist/bin/cli.cjs +29 -0
- package/dist/bin/cli.cjs.map +1 -0
- package/dist/bin/cli.d.cts +1 -0
- package/dist/bin/cli.d.mts +1 -0
- package/dist/bin/cli.mjs +30 -0
- package/dist/bin/cli.mjs.map +1 -0
- package/dist/bin/doomRunner.cjs +39 -0
- package/dist/bin/doomRunner.cjs.map +1 -0
- package/dist/bin/doomRunner.d.cts +12 -0
- package/dist/bin/doomRunner.d.cts.map +1 -0
- package/dist/bin/doomRunner.d.mts +12 -0
- package/dist/bin/doomRunner.d.mts.map +1 -0
- package/dist/bin/doomRunner.mjs +38 -0
- package/dist/bin/doomRunner.mjs.map +1 -0
- package/dist/bin/dpi.cjs +12 -0
- package/dist/bin/dpi.cjs.map +1 -0
- package/dist/bin/dpi.d.cts +1 -0
- package/dist/bin/dpi.d.mts +1 -0
- package/dist/bin/dpi.mjs +14 -0
- package/dist/bin/dpi.mjs.map +1 -0
- package/dist/bin/serve.cjs +11 -0
- package/dist/bin/serve.cjs.map +1 -0
- package/dist/bin/serve.d.cts +1 -0
- package/dist/bin/serve.d.mts +1 -0
- package/dist/bin/serve.mjs +13 -0
- package/dist/bin/serve.mjs.map +1 -0
- package/dist/builders/apiContractExport/index.cjs +81 -0
- package/dist/builders/apiContractExport/index.cjs.map +1 -0
- package/dist/builders/apiContractExport/index.mjs +77 -0
- package/dist/builders/apiContractExport/index.mjs.map +1 -0
- package/dist/builders/apiContracts/index.cjs +87 -0
- package/dist/builders/apiContracts/index.cjs.map +1 -0
- package/dist/builders/apiContracts/index.mjs +82 -0
- package/dist/builders/apiContracts/index.mjs.map +1 -0
- package/dist/builders/cli/bootstrapClaim.cjs +53 -0
- package/dist/builders/cli/bootstrapClaim.cjs.map +1 -0
- package/dist/builders/cli/bootstrapClaim.mjs +51 -0
- package/dist/builders/cli/bootstrapClaim.mjs.map +1 -0
- package/dist/builders/cli/bootstrapLocator/index.cjs +204 -0
- package/dist/builders/cli/bootstrapLocator/index.cjs.map +1 -0
- package/dist/builders/cli/bootstrapLocator/index.d.cts +5 -0
- package/dist/builders/cli/bootstrapLocator/index.d.cts.map +1 -0
- package/dist/builders/cli/bootstrapLocator/index.d.mts +5 -0
- package/dist/builders/cli/bootstrapLocator/index.d.mts.map +1 -0
- package/dist/builders/cli/bootstrapLocator/index.mjs +196 -0
- package/dist/builders/cli/bootstrapLocator/index.mjs.map +1 -0
- package/dist/builders/cli/composition.cjs +378 -0
- package/dist/builders/cli/composition.cjs.map +1 -0
- package/dist/builders/cli/composition.d.cts +119 -0
- package/dist/builders/cli/composition.d.cts.map +1 -0
- package/dist/builders/cli/composition.d.mts +119 -0
- package/dist/builders/cli/composition.d.mts.map +1 -0
- package/dist/builders/cli/composition.mjs +351 -0
- package/dist/builders/cli/composition.mjs.map +1 -0
- package/dist/builders/cli/compositionState.cjs +33 -0
- package/dist/builders/cli/compositionState.cjs.map +1 -0
- package/dist/builders/cli/compositionState.d.cts +9 -0
- package/dist/builders/cli/compositionState.d.cts.map +1 -0
- package/dist/builders/cli/compositionState.d.mts +9 -0
- package/dist/builders/cli/compositionState.d.mts.map +1 -0
- package/dist/builders/cli/compositionState.mjs +30 -0
- package/dist/builders/cli/compositionState.mjs.map +1 -0
- package/dist/builders/cli/constants.cjs +20 -0
- package/dist/builders/cli/constants.cjs.map +1 -0
- package/dist/builders/cli/constants.d.cts +17 -0
- package/dist/builders/cli/constants.d.cts.map +1 -0
- package/dist/builders/cli/constants.d.mts +17 -0
- package/dist/builders/cli/constants.d.mts.map +1 -0
- package/dist/builders/cli/constants.mjs +19 -0
- package/dist/builders/cli/constants.mjs.map +1 -0
- package/dist/builders/cli/contextCatalog.cjs +130 -0
- package/dist/builders/cli/contextCatalog.cjs.map +1 -0
- package/dist/builders/cli/contextCatalog.mjs +130 -0
- package/dist/builders/cli/contextCatalog.mjs.map +1 -0
- package/dist/builders/cli/dpiSettings.cjs +118 -0
- package/dist/builders/cli/dpiSettings.cjs.map +1 -0
- package/dist/builders/cli/dpiSettings.mjs +111 -0
- package/dist/builders/cli/dpiSettings.mjs.map +1 -0
- package/dist/builders/cli/entryResolution.cjs +23 -0
- package/dist/builders/cli/entryResolution.cjs.map +1 -0
- package/dist/builders/cli/entryResolution.d.cts +5 -0
- package/dist/builders/cli/entryResolution.d.cts.map +1 -0
- package/dist/builders/cli/entryResolution.d.mts +5 -0
- package/dist/builders/cli/entryResolution.d.mts.map +1 -0
- package/dist/builders/cli/entryResolution.mjs +20 -0
- package/dist/builders/cli/entryResolution.mjs.map +1 -0
- package/dist/builders/cli/extensionAssembler/index.cjs +386 -0
- package/dist/builders/cli/extensionAssembler/index.cjs.map +1 -0
- package/dist/builders/cli/extensionAssembler/index.d.cts +113 -0
- package/dist/builders/cli/extensionAssembler/index.d.cts.map +1 -0
- package/dist/builders/cli/extensionAssembler/index.d.mts +113 -0
- package/dist/builders/cli/extensionAssembler/index.d.mts.map +1 -0
- package/dist/builders/cli/extensionAssembler/index.mjs +376 -0
- package/dist/builders/cli/extensionAssembler/index.mjs.map +1 -0
- package/dist/builders/cli/harnessContext.cjs +186 -0
- package/dist/builders/cli/harnessContext.cjs.map +1 -0
- package/dist/builders/cli/harnessContext.d.cts +51 -0
- package/dist/builders/cli/harnessContext.d.cts.map +1 -0
- package/dist/builders/cli/harnessContext.d.mts +51 -0
- package/dist/builders/cli/harnessContext.d.mts.map +1 -0
- package/dist/builders/cli/harnessContext.mjs +179 -0
- package/dist/builders/cli/harnessContext.mjs.map +1 -0
- package/dist/builders/cli/index.cjs +151 -0
- package/dist/builders/cli/index.cjs.map +1 -0
- package/dist/builders/cli/index.d.cts +22 -0
- package/dist/builders/cli/index.d.cts.map +1 -0
- package/dist/builders/cli/index.d.mts +22 -0
- package/dist/builders/cli/index.d.mts.map +1 -0
- package/dist/builders/cli/index.mjs +147 -0
- package/dist/builders/cli/index.mjs.map +1 -0
- package/dist/builders/cli/launchPlan/index.cjs +102 -0
- package/dist/builders/cli/launchPlan/index.cjs.map +1 -0
- package/dist/builders/cli/launchPlan/index.d.cts +43 -0
- package/dist/builders/cli/launchPlan/index.d.cts.map +1 -0
- package/dist/builders/cli/launchPlan/index.d.mts +43 -0
- package/dist/builders/cli/launchPlan/index.d.mts.map +1 -0
- package/dist/builders/cli/launchPlan/index.mjs +100 -0
- package/dist/builders/cli/launchPlan/index.mjs.map +1 -0
- package/dist/builders/cli/launcherComposition/index.cjs +84 -0
- package/dist/builders/cli/launcherComposition/index.cjs.map +1 -0
- package/dist/builders/cli/launcherComposition/index.mjs +80 -0
- package/dist/builders/cli/launcherComposition/index.mjs.map +1 -0
- package/dist/builders/cli/piExtensionAlias/index.cjs +40 -0
- package/dist/builders/cli/piExtensionAlias/index.cjs.map +1 -0
- package/dist/builders/cli/piExtensionAlias/index.mjs +35 -0
- package/dist/builders/cli/piExtensionAlias/index.mjs.map +1 -0
- package/dist/builders/cli/piExtensionDispatcher/index.cjs +205 -0
- package/dist/builders/cli/piExtensionDispatcher/index.cjs.map +1 -0
- package/dist/builders/cli/piExtensionDispatcher/index.mjs +198 -0
- package/dist/builders/cli/piExtensionDispatcher/index.mjs.map +1 -0
- package/dist/builders/cli/prepare.cjs +64 -0
- package/dist/builders/cli/prepare.cjs.map +1 -0
- package/dist/builders/cli/prepare.mjs +62 -0
- package/dist/builders/cli/prepare.mjs.map +1 -0
- package/dist/builders/cli/projectSettings.cjs +155 -0
- package/dist/builders/cli/projectSettings.cjs.map +1 -0
- package/dist/builders/cli/projectSettings.d.cts +27 -0
- package/dist/builders/cli/projectSettings.d.cts.map +1 -0
- package/dist/builders/cli/projectSettings.d.mts +27 -0
- package/dist/builders/cli/projectSettings.d.mts.map +1 -0
- package/dist/builders/cli/projectSettings.mjs +144 -0
- package/dist/builders/cli/projectSettings.mjs.map +1 -0
- package/dist/builders/cli/runtimeBundle/index.cjs +130 -0
- package/dist/builders/cli/runtimeBundle/index.cjs.map +1 -0
- package/dist/builders/cli/runtimeBundle/index.d.cts +21 -0
- package/dist/builders/cli/runtimeBundle/index.d.cts.map +1 -0
- package/dist/builders/cli/runtimeBundle/index.d.mts +21 -0
- package/dist/builders/cli/runtimeBundle/index.d.mts.map +1 -0
- package/dist/builders/cli/runtimeBundle/index.mjs +126 -0
- package/dist/builders/cli/runtimeBundle/index.mjs.map +1 -0
- package/dist/builders/server/index.cjs +184 -0
- package/dist/builders/server/index.cjs.map +1 -0
- package/dist/builders/server/index.mjs +181 -0
- package/dist/builders/server/index.mjs.map +1 -0
- package/dist/builders/server/runtime.cjs +603 -0
- package/dist/builders/server/runtime.cjs.map +1 -0
- package/dist/builders/server/runtime.mjs +595 -0
- package/dist/builders/server/runtime.mjs.map +1 -0
- package/dist/builders/server/selectionStatus.cjs +12 -0
- package/dist/builders/server/selectionStatus.cjs.map +1 -0
- package/dist/builders/server/selectionStatus.mjs +12 -0
- package/dist/builders/server/selectionStatus.mjs.map +1 -0
- package/dist/builders/server/sessionArguments.cjs +22 -0
- package/dist/builders/server/sessionArguments.cjs.map +1 -0
- package/dist/builders/server/sessionArguments.mjs +22 -0
- package/dist/builders/server/sessionArguments.mjs.map +1 -0
- package/dist/builders/web/bundle.cjs +110 -0
- package/dist/builders/web/bundle.cjs.map +1 -0
- package/dist/builders/web/bundle.d.cts +29 -0
- package/dist/builders/web/bundle.d.cts.map +1 -0
- package/dist/builders/web/bundle.d.mts +29 -0
- package/dist/builders/web/bundle.d.mts.map +1 -0
- package/dist/builders/web/bundle.mjs +107 -0
- package/dist/builders/web/bundle.mjs.map +1 -0
- package/dist/builders/web/bundleAssetPolicy.cjs +96 -0
- package/dist/builders/web/bundleAssetPolicy.cjs.map +1 -0
- package/dist/builders/web/bundleAssetPolicy.d.cts +22 -0
- package/dist/builders/web/bundleAssetPolicy.d.cts.map +1 -0
- package/dist/builders/web/bundleAssetPolicy.d.mts +22 -0
- package/dist/builders/web/bundleAssetPolicy.d.mts.map +1 -0
- package/dist/builders/web/bundleAssetPolicy.mjs +95 -0
- package/dist/builders/web/bundleAssetPolicy.mjs.map +1 -0
- package/dist/builders/web/index.cjs +75 -0
- package/dist/builders/web/index.cjs.map +1 -0
- package/dist/builders/web/index.d.cts +29 -0
- package/dist/builders/web/index.d.cts.map +1 -0
- package/dist/builders/web/index.d.mts +29 -0
- package/dist/builders/web/index.d.mts.map +1 -0
- package/dist/builders/web/index.mjs +72 -0
- package/dist/builders/web/index.mjs.map +1 -0
- package/dist/builders/web/webDevRoots.cjs +27 -0
- package/dist/builders/web/webDevRoots.cjs.map +1 -0
- package/dist/builders/web/webDevRoots.d.cts +22 -0
- package/dist/builders/web/webDevRoots.d.cts.map +1 -0
- package/dist/builders/web/webDevRoots.d.mts +22 -0
- package/dist/builders/web/webDevRoots.d.mts.map +1 -0
- package/dist/builders/web/webDevRoots.mjs +25 -0
- package/dist/builders/web/webDevRoots.mjs.map +1 -0
- package/dist/builders/web/webPluginGenerate.cjs +113 -0
- package/dist/builders/web/webPluginGenerate.cjs.map +1 -0
- package/dist/builders/web/webPluginGenerate.d.cts +28 -0
- package/dist/builders/web/webPluginGenerate.d.cts.map +1 -0
- package/dist/builders/web/webPluginGenerate.d.mts +28 -0
- package/dist/builders/web/webPluginGenerate.d.mts.map +1 -0
- package/dist/builders/web/webPluginGenerate.mjs +106 -0
- package/dist/builders/web/webPluginGenerate.mjs.map +1 -0
- package/dist/builders/web/webPluginManifest.cjs +92 -0
- package/dist/builders/web/webPluginManifest.cjs.map +1 -0
- package/dist/builders/web/webPluginManifest.d.cts +44 -0
- package/dist/builders/web/webPluginManifest.d.cts.map +1 -0
- package/dist/builders/web/webPluginManifest.d.mts +44 -0
- package/dist/builders/web/webPluginManifest.d.mts.map +1 -0
- package/dist/builders/web/webPluginManifest.mjs +88 -0
- package/dist/builders/web/webPluginManifest.mjs.map +1 -0
- package/dist/builders/web/webPluginScan.cjs +53 -0
- package/dist/builders/web/webPluginScan.cjs.map +1 -0
- package/dist/builders/web/webPluginScan.d.cts +16 -0
- package/dist/builders/web/webPluginScan.d.cts.map +1 -0
- package/dist/builders/web/webPluginScan.d.mts +16 -0
- package/dist/builders/web/webPluginScan.d.mts.map +1 -0
- package/dist/builders/web/webPluginScan.mjs +50 -0
- package/dist/builders/web/webPluginScan.mjs.map +1 -0
- package/dist/builders/web/webPluginVite.cjs +124 -0
- package/dist/builders/web/webPluginVite.cjs.map +1 -0
- package/dist/builders/web/webPluginVite.d.cts +36 -0
- package/dist/builders/web/webPluginVite.d.cts.map +1 -0
- package/dist/builders/web/webPluginVite.d.mts +36 -0
- package/dist/builders/web/webPluginVite.d.mts.map +1 -0
- package/dist/builders/web/webPluginVite.mjs +116 -0
- package/dist/builders/web/webPluginVite.mjs.map +1 -0
- package/dist/builders/web.cjs +33 -0
- package/dist/builders/web.d.cts +9 -0
- package/dist/builders/web.d.mts +9 -0
- package/dist/builders/web.mjs +9 -0
- package/dist/cli/cliApp.cjs +177 -0
- package/dist/cli/cliApp.cjs.map +1 -0
- package/dist/cli/cliApp.d.cts +25 -0
- package/dist/cli/cliApp.d.cts.map +1 -0
- package/dist/cli/cliApp.d.mts +25 -0
- package/dist/cli/cliApp.d.mts.map +1 -0
- package/dist/cli/cliApp.mjs +175 -0
- package/dist/cli/cliApp.mjs.map +1 -0
- package/dist/cli/commands/api-export/index.cjs +65 -0
- package/dist/cli/commands/api-export/index.cjs.map +1 -0
- package/dist/cli/commands/api-export/index.mjs +61 -0
- package/dist/cli/commands/api-export/index.mjs.map +1 -0
- package/dist/cli/commands/baseCommand.cjs +16 -0
- package/dist/cli/commands/baseCommand.cjs.map +1 -0
- package/dist/cli/commands/baseCommand.d.cts +24 -0
- package/dist/cli/commands/baseCommand.d.cts.map +1 -0
- package/dist/cli/commands/baseCommand.d.mts +24 -0
- package/dist/cli/commands/baseCommand.d.mts.map +1 -0
- package/dist/cli/commands/baseCommand.mjs +16 -0
- package/dist/cli/commands/baseCommand.mjs.map +1 -0
- package/dist/cli/commands/compat/context.cjs +115 -0
- package/dist/cli/commands/compat/context.cjs.map +1 -0
- package/dist/cli/commands/compat/context.d.cts +22 -0
- package/dist/cli/commands/compat/context.d.cts.map +1 -0
- package/dist/cli/commands/compat/context.d.mts +22 -0
- package/dist/cli/commands/compat/context.d.mts.map +1 -0
- package/dist/cli/commands/compat/context.mjs +110 -0
- package/dist/cli/commands/compat/context.mjs.map +1 -0
- package/dist/cli/commands/compat/help.cjs +26 -0
- package/dist/cli/commands/compat/help.cjs.map +1 -0
- package/dist/cli/commands/compat/help.d.cts +4 -0
- package/dist/cli/commands/compat/help.d.cts.map +1 -0
- package/dist/cli/commands/compat/help.d.mts +4 -0
- package/dist/cli/commands/compat/help.d.mts.map +1 -0
- package/dist/cli/commands/compat/help.mjs +25 -0
- package/dist/cli/commands/compat/help.mjs.map +1 -0
- package/dist/cli/commands/compat/index.cjs +73 -0
- package/dist/cli/commands/compat/index.cjs.map +1 -0
- package/dist/cli/commands/compat/index.d.cts +14 -0
- package/dist/cli/commands/compat/index.d.cts.map +1 -0
- package/dist/cli/commands/compat/index.d.mts +14 -0
- package/dist/cli/commands/compat/index.d.mts.map +1 -0
- package/dist/cli/commands/compat/index.mjs +70 -0
- package/dist/cli/commands/compat/index.mjs.map +1 -0
- package/dist/cli/commands/compat/options.cjs +88 -0
- package/dist/cli/commands/compat/options.cjs.map +1 -0
- package/dist/cli/commands/compat/options.d.cts +15 -0
- package/dist/cli/commands/compat/options.d.cts.map +1 -0
- package/dist/cli/commands/compat/options.d.mts +15 -0
- package/dist/cli/commands/compat/options.d.mts.map +1 -0
- package/dist/cli/commands/compat/options.mjs +86 -0
- package/dist/cli/commands/compat/options.mjs.map +1 -0
- package/dist/cli/commands/compat/providers/antigravity.cjs +294 -0
- package/dist/cli/commands/compat/providers/antigravity.cjs.map +1 -0
- package/dist/cli/commands/compat/providers/antigravity.d.cts +9 -0
- package/dist/cli/commands/compat/providers/antigravity.d.cts.map +1 -0
- package/dist/cli/commands/compat/providers/antigravity.d.mts +9 -0
- package/dist/cli/commands/compat/providers/antigravity.d.mts.map +1 -0
- package/dist/cli/commands/compat/providers/antigravity.mjs +289 -0
- package/dist/cli/commands/compat/providers/antigravity.mjs.map +1 -0
- package/dist/cli/commands/compat/providers/codex.cjs +178 -0
- package/dist/cli/commands/compat/providers/codex.cjs.map +1 -0
- package/dist/cli/commands/compat/providers/codex.d.cts +17 -0
- package/dist/cli/commands/compat/providers/codex.d.cts.map +1 -0
- package/dist/cli/commands/compat/providers/codex.d.mts +17 -0
- package/dist/cli/commands/compat/providers/codex.d.mts.map +1 -0
- package/dist/cli/commands/compat/providers/codex.mjs +170 -0
- package/dist/cli/commands/compat/providers/codex.mjs.map +1 -0
- package/dist/cli/commands/compat/providers/index.cjs +65 -0
- package/dist/cli/commands/compat/providers/index.cjs.map +1 -0
- package/dist/cli/commands/compat/providers/index.d.cts +15 -0
- package/dist/cli/commands/compat/providers/index.d.cts.map +1 -0
- package/dist/cli/commands/compat/providers/index.d.mts +15 -0
- package/dist/cli/commands/compat/providers/index.d.mts.map +1 -0
- package/dist/cli/commands/compat/providers/index.mjs +45 -0
- package/dist/cli/commands/compat/providers/index.mjs.map +1 -0
- package/dist/cli/commands/compat/providers/process.cjs +172 -0
- package/dist/cli/commands/compat/providers/process.cjs.map +1 -0
- package/dist/cli/commands/compat/providers/process.d.cts +33 -0
- package/dist/cli/commands/compat/providers/process.d.cts.map +1 -0
- package/dist/cli/commands/compat/providers/process.d.mts +33 -0
- package/dist/cli/commands/compat/providers/process.d.mts.map +1 -0
- package/dist/cli/commands/compat/providers/process.mjs +159 -0
- package/dist/cli/commands/compat/providers/process.mjs.map +1 -0
- package/dist/cli/commands/compat/providers/shared.cjs +76 -0
- package/dist/cli/commands/compat/providers/shared.cjs.map +1 -0
- package/dist/cli/commands/compat/providers/shared.d.cts +40 -0
- package/dist/cli/commands/compat/providers/shared.d.cts.map +1 -0
- package/dist/cli/commands/compat/providers/shared.d.mts +40 -0
- package/dist/cli/commands/compat/providers/shared.d.mts.map +1 -0
- package/dist/cli/commands/compat/providers/shared.mjs +61 -0
- package/dist/cli/commands/compat/providers/shared.mjs.map +1 -0
- package/dist/cli/commands/compat/types.d.cts +31 -0
- package/dist/cli/commands/compat/types.d.cts.map +1 -0
- package/dist/cli/commands/compat/types.d.mts +31 -0
- package/dist/cli/commands/compat/types.d.mts.map +1 -0
- package/dist/cli/commands/doctor/help.cjs +19 -0
- package/dist/cli/commands/doctor/help.cjs.map +1 -0
- package/dist/cli/commands/doctor/help.d.cts +4 -0
- package/dist/cli/commands/doctor/help.d.cts.map +1 -0
- package/dist/cli/commands/doctor/help.d.mts +4 -0
- package/dist/cli/commands/doctor/help.d.mts.map +1 -0
- package/dist/cli/commands/doctor/help.mjs +19 -0
- package/dist/cli/commands/doctor/help.mjs.map +1 -0
- package/dist/cli/commands/doctor/index.cjs +116 -0
- package/dist/cli/commands/doctor/index.cjs.map +1 -0
- package/dist/cli/commands/doctor/index.d.cts +12 -0
- package/dist/cli/commands/doctor/index.d.cts.map +1 -0
- package/dist/cli/commands/doctor/index.d.mts +12 -0
- package/dist/cli/commands/doctor/index.d.mts.map +1 -0
- package/dist/cli/commands/doctor/index.mjs +112 -0
- package/dist/cli/commands/doctor/index.mjs.map +1 -0
- package/dist/cli/commands/emit-mcp/index.cjs +32 -0
- package/dist/cli/commands/emit-mcp/index.cjs.map +1 -0
- package/dist/cli/commands/emit-mcp/index.d.cts +19 -0
- package/dist/cli/commands/emit-mcp/index.d.cts.map +1 -0
- package/dist/cli/commands/emit-mcp/index.d.mts +19 -0
- package/dist/cli/commands/emit-mcp/index.d.mts.map +1 -0
- package/dist/cli/commands/emit-mcp/index.mjs +31 -0
- package/dist/cli/commands/emit-mcp/index.mjs.map +1 -0
- package/dist/cli/commands/explain/index.cjs +155 -0
- package/dist/cli/commands/explain/index.cjs.map +1 -0
- package/dist/cli/commands/explain/index.d.cts +57 -0
- package/dist/cli/commands/explain/index.d.cts.map +1 -0
- package/dist/cli/commands/explain/index.d.mts +57 -0
- package/dist/cli/commands/explain/index.d.mts.map +1 -0
- package/dist/cli/commands/explain/index.mjs +150 -0
- package/dist/cli/commands/explain/index.mjs.map +1 -0
- package/dist/cli/commands/history-export/help.cjs +18 -0
- package/dist/cli/commands/history-export/help.cjs.map +1 -0
- package/dist/cli/commands/history-export/help.d.cts +4 -0
- package/dist/cli/commands/history-export/help.d.cts.map +1 -0
- package/dist/cli/commands/history-export/help.d.mts +4 -0
- package/dist/cli/commands/history-export/help.d.mts.map +1 -0
- package/dist/cli/commands/history-export/help.mjs +18 -0
- package/dist/cli/commands/history-export/help.mjs.map +1 -0
- package/dist/cli/commands/history-export/index.cjs +76 -0
- package/dist/cli/commands/history-export/index.cjs.map +1 -0
- package/dist/cli/commands/history-export/index.mjs +74 -0
- package/dist/cli/commands/history-export/index.mjs.map +1 -0
- package/dist/cli/commands/history-import/help.cjs +20 -0
- package/dist/cli/commands/history-import/help.cjs.map +1 -0
- package/dist/cli/commands/history-import/help.d.cts +4 -0
- package/dist/cli/commands/history-import/help.d.cts.map +1 -0
- package/dist/cli/commands/history-import/help.d.mts +4 -0
- package/dist/cli/commands/history-import/help.d.mts.map +1 -0
- package/dist/cli/commands/history-import/help.mjs +20 -0
- package/dist/cli/commands/history-import/help.mjs.map +1 -0
- package/dist/cli/commands/history-import/index.cjs +78 -0
- package/dist/cli/commands/history-import/index.cjs.map +1 -0
- package/dist/cli/commands/history-import/index.mjs +75 -0
- package/dist/cli/commands/history-import/index.mjs.map +1 -0
- package/dist/cli/commands/init/constants.cjs +11 -0
- package/dist/cli/commands/init/constants.cjs.map +1 -0
- package/dist/cli/commands/init/constants.mjs +11 -0
- package/dist/cli/commands/init/constants.mjs.map +1 -0
- package/dist/cli/commands/init/help.cjs +17 -0
- package/dist/cli/commands/init/help.cjs.map +1 -0
- package/dist/cli/commands/init/help.d.cts +4 -0
- package/dist/cli/commands/init/help.d.cts.map +1 -0
- package/dist/cli/commands/init/help.d.mts +4 -0
- package/dist/cli/commands/init/help.d.mts.map +1 -0
- package/dist/cli/commands/init/help.mjs +17 -0
- package/dist/cli/commands/init/help.mjs.map +1 -0
- package/dist/cli/commands/init/index.cjs +87 -0
- package/dist/cli/commands/init/index.cjs.map +1 -0
- package/dist/cli/commands/init/index.d.cts +12 -0
- package/dist/cli/commands/init/index.d.cts.map +1 -0
- package/dist/cli/commands/init/index.d.mts +12 -0
- package/dist/cli/commands/init/index.d.mts.map +1 -0
- package/dist/cli/commands/init/index.mjs +83 -0
- package/dist/cli/commands/init/index.mjs.map +1 -0
- package/dist/cli/commands/init/presenter.cjs +170 -0
- package/dist/cli/commands/init/presenter.cjs.map +1 -0
- package/dist/cli/commands/init/presenter.d.cts +8 -0
- package/dist/cli/commands/init/presenter.d.cts.map +1 -0
- package/dist/cli/commands/init/presenter.d.mts +8 -0
- package/dist/cli/commands/init/presenter.d.mts.map +1 -0
- package/dist/cli/commands/init/presenter.mjs +170 -0
- package/dist/cli/commands/init/presenter.mjs.map +1 -0
- package/dist/cli/commands/launch/index.cjs +128 -0
- package/dist/cli/commands/launch/index.cjs.map +1 -0
- package/dist/cli/commands/launch/index.d.cts +29 -0
- package/dist/cli/commands/launch/index.d.cts.map +1 -0
- package/dist/cli/commands/launch/index.d.mts +29 -0
- package/dist/cli/commands/launch/index.d.mts.map +1 -0
- package/dist/cli/commands/launch/index.mjs +122 -0
- package/dist/cli/commands/launch/index.mjs.map +1 -0
- package/dist/cli/commands/sandbox/args.cjs +50 -0
- package/dist/cli/commands/sandbox/args.cjs.map +1 -0
- package/dist/cli/commands/sandbox/args.mjs +50 -0
- package/dist/cli/commands/sandbox/args.mjs.map +1 -0
- package/dist/cli/commands/sandbox/harness.cjs +61 -0
- package/dist/cli/commands/sandbox/harness.cjs.map +1 -0
- package/dist/cli/commands/sandbox/harness.mjs +60 -0
- package/dist/cli/commands/sandbox/harness.mjs.map +1 -0
- package/dist/cli/commands/sandbox/index.cjs +57 -0
- package/dist/cli/commands/sandbox/index.cjs.map +1 -0
- package/dist/cli/commands/sandbox/index.mjs +56 -0
- package/dist/cli/commands/sandbox/index.mjs.map +1 -0
- package/dist/cli/commands/sync/help.cjs +31 -0
- package/dist/cli/commands/sync/help.cjs.map +1 -0
- package/dist/cli/commands/sync/help.d.cts +4 -0
- package/dist/cli/commands/sync/help.d.cts.map +1 -0
- package/dist/cli/commands/sync/help.d.mts +4 -0
- package/dist/cli/commands/sync/help.d.mts.map +1 -0
- package/dist/cli/commands/sync/help.mjs +31 -0
- package/dist/cli/commands/sync/help.mjs.map +1 -0
- package/dist/cli/commands/sync/index.cjs +577 -0
- package/dist/cli/commands/sync/index.cjs.map +1 -0
- package/dist/cli/commands/sync/index.d.cts +65 -0
- package/dist/cli/commands/sync/index.d.cts.map +1 -0
- package/dist/cli/commands/sync/index.d.mts +65 -0
- package/dist/cli/commands/sync/index.d.mts.map +1 -0
- package/dist/cli/commands/sync/index.mjs +560 -0
- package/dist/cli/commands/sync/index.mjs.map +1 -0
- package/dist/cli/commands/sync/prepare.cjs +43 -0
- package/dist/cli/commands/sync/prepare.cjs.map +1 -0
- package/dist/cli/commands/sync/prepare.mjs +40 -0
- package/dist/cli/commands/sync/prepare.mjs.map +1 -0
- package/dist/cli/commands/sync/presenter.cjs +58 -0
- package/dist/cli/commands/sync/presenter.cjs.map +1 -0
- package/dist/cli/commands/sync/presenter.d.cts +16 -0
- package/dist/cli/commands/sync/presenter.d.cts.map +1 -0
- package/dist/cli/commands/sync/presenter.d.mts +16 -0
- package/dist/cli/commands/sync/presenter.d.mts.map +1 -0
- package/dist/cli/commands/sync/presenter.mjs +57 -0
- package/dist/cli/commands/sync/presenter.mjs.map +1 -0
- package/dist/cli/commands/sync/workflow.cjs +99 -0
- package/dist/cli/commands/sync/workflow.cjs.map +1 -0
- package/dist/cli/commands/sync/workflow.mjs +96 -0
- package/dist/cli/commands/sync/workflow.mjs.map +1 -0
- package/dist/cli/dpi.cjs +98 -0
- package/dist/cli/dpi.cjs.map +1 -0
- package/dist/cli/dpi.mjs +91 -0
- package/dist/cli/dpi.mjs.map +1 -0
- package/dist/cli/harnessOptions.cjs +60 -0
- package/dist/cli/harnessOptions.cjs.map +1 -0
- package/dist/cli/harnessOptions.d.cts +24 -0
- package/dist/cli/harnessOptions.d.cts.map +1 -0
- package/dist/cli/harnessOptions.d.mts +24 -0
- package/dist/cli/harnessOptions.d.mts.map +1 -0
- package/dist/cli/harnessOptions.mjs +57 -0
- package/dist/cli/harnessOptions.mjs.map +1 -0
- package/dist/cli/help.cjs +89 -0
- package/dist/cli/help.cjs.map +1 -0
- package/dist/cli/help.d.cts +12 -0
- package/dist/cli/help.d.cts.map +1 -0
- package/dist/cli/help.d.mts +12 -0
- package/dist/cli/help.d.mts.map +1 -0
- package/dist/cli/help.mjs +83 -0
- package/dist/cli/help.mjs.map +1 -0
- package/dist/cli/matrixOptions.cjs +178 -0
- package/dist/cli/matrixOptions.cjs.map +1 -0
- package/dist/cli/matrixOptions.d.cts +90 -0
- package/dist/cli/matrixOptions.d.cts.map +1 -0
- package/dist/cli/matrixOptions.d.mts +90 -0
- package/dist/cli/matrixOptions.d.mts.map +1 -0
- package/dist/cli/matrixOptions.mjs +151 -0
- package/dist/cli/matrixOptions.mjs.map +1 -0
- package/dist/cli/options.cjs +306 -0
- package/dist/cli/options.cjs.map +1 -0
- package/dist/cli/options.d.cts +5 -0
- package/dist/cli/options.d.cts.map +1 -0
- package/dist/cli/options.d.mts +5 -0
- package/dist/cli/options.d.mts.map +1 -0
- package/dist/cli/options.mjs +304 -0
- package/dist/cli/options.mjs.map +1 -0
- package/dist/cli/router.cjs +59 -0
- package/dist/cli/router.cjs.map +1 -0
- package/dist/cli/router.d.cts +32 -0
- package/dist/cli/router.d.cts.map +1 -0
- package/dist/cli/router.d.mts +32 -0
- package/dist/cli/router.d.mts.map +1 -0
- package/dist/cli/router.mjs +56 -0
- package/dist/cli/router.mjs.map +1 -0
- package/dist/cli/server/options.cjs +71 -0
- package/dist/cli/server/options.cjs.map +1 -0
- package/dist/cli/server/options.mjs +70 -0
- package/dist/cli/server/options.mjs.map +1 -0
- package/dist/cli/server/run.cjs +45 -0
- package/dist/cli/server/run.cjs.map +1 -0
- package/dist/cli/server/run.mjs +45 -0
- package/dist/cli/server/run.mjs.map +1 -0
- package/dist/cli-app.cjs +5 -0
- package/dist/cli-app.d.cts +2 -0
- package/dist/cli-app.d.mts +2 -0
- package/dist/cli-app.mjs +2 -0
- package/dist/cli.cjs +28 -0
- package/dist/cli.d.cts +11 -0
- package/dist/cli.d.mts +11 -0
- package/dist/cli.mjs +11 -0
- package/dist/codex.cjs +8 -0
- package/dist/codex.d.cts +2 -0
- package/dist/codex.d.mts +2 -0
- package/dist/codex.mjs +2 -0
- package/dist/commands.cjs +23 -0
- package/dist/commands.d.cts +9 -0
- package/dist/commands.d.mts +9 -0
- package/dist/commands.mjs +9 -0
- package/dist/compatibility-command.cjs +4 -0
- package/dist/compatibility-command.d.cts +2 -0
- package/dist/compatibility-command.d.mts +2 -0
- package/dist/compatibility-command.mjs +2 -0
- package/dist/compatibility-context.cjs +3 -0
- package/dist/compatibility-context.d.cts +2 -0
- package/dist/compatibility-context.d.mts +2 -0
- package/dist/compatibility-context.mjs +2 -0
- package/dist/compatibility-options.cjs +5 -0
- package/dist/compatibility-options.d.cts +2 -0
- package/dist/compatibility-options.d.mts +2 -0
- package/dist/compatibility-options.mjs +2 -0
- package/dist/compatibility.cjs +27 -0
- package/dist/compatibility.d.cts +6 -0
- package/dist/compatibility.d.mts +6 -0
- package/dist/compatibility.mjs +6 -0
- package/dist/compiler/cache.cjs +331 -0
- package/dist/compiler/cache.cjs.map +1 -0
- package/dist/compiler/cache.mjs +323 -0
- package/dist/compiler/cache.mjs.map +1 -0
- package/dist/compiler/index.cjs +996 -0
- package/dist/compiler/index.cjs.map +1 -0
- package/dist/compiler/index.mjs +988 -0
- package/dist/compiler/index.mjs.map +1 -0
- package/dist/compiler/inputs.cjs +83 -0
- package/dist/compiler/inputs.cjs.map +1 -0
- package/dist/compiler/inputs.mjs +78 -0
- package/dist/compiler/inputs.mjs.map +1 -0
- package/dist/composer.cjs +28 -0
- package/dist/composer.d.cts +4 -0
- package/dist/composer.d.mts +4 -0
- package/dist/composer.mjs +4 -0
- package/dist/composition/harnessState/index.cjs +48 -0
- package/dist/composition/harnessState/index.cjs.map +1 -0
- package/dist/composition/harnessState/index.d.cts +19 -0
- package/dist/composition/harnessState/index.d.cts.map +1 -0
- package/dist/composition/harnessState/index.d.mts +19 -0
- package/dist/composition/harnessState/index.d.mts.map +1 -0
- package/dist/composition/harnessState/index.mjs +34 -0
- package/dist/composition/harnessState/index.mjs.map +1 -0
- package/dist/composition/layerPackageInstaller/index.cjs +342 -0
- package/dist/composition/layerPackageInstaller/index.cjs.map +1 -0
- package/dist/composition/layerPackageInstaller/index.d.cts +45 -0
- package/dist/composition/layerPackageInstaller/index.d.cts.map +1 -0
- package/dist/composition/layerPackageInstaller/index.d.mts +45 -0
- package/dist/composition/layerPackageInstaller/index.d.mts.map +1 -0
- package/dist/composition/layerPackageInstaller/index.mjs +334 -0
- package/dist/composition/layerPackageInstaller/index.mjs.map +1 -0
- package/dist/composition/projectTrust/index.cjs +51 -0
- package/dist/composition/projectTrust/index.cjs.map +1 -0
- package/dist/composition/projectTrust/index.d.cts +22 -0
- package/dist/composition/projectTrust/index.d.cts.map +1 -0
- package/dist/composition/projectTrust/index.d.mts +22 -0
- package/dist/composition/projectTrust/index.d.mts.map +1 -0
- package/dist/composition/projectTrust/index.mjs +48 -0
- package/dist/composition/projectTrust/index.mjs.map +1 -0
- package/dist/composition/repository/index.cjs +69 -0
- package/dist/composition/repository/index.cjs.map +1 -0
- package/dist/composition/repository/index.d.cts +22 -0
- package/dist/composition/repository/index.d.cts.map +1 -0
- package/dist/composition/repository/index.d.mts +22 -0
- package/dist/composition/repository/index.d.mts.map +1 -0
- package/dist/composition/repository/index.mjs +64 -0
- package/dist/composition/repository/index.mjs.map +1 -0
- package/dist/composition/syncDrift/index.cjs +160 -0
- package/dist/composition/syncDrift/index.cjs.map +1 -0
- package/dist/composition/syncDrift/index.d.cts +41 -0
- package/dist/composition/syncDrift/index.d.cts.map +1 -0
- package/dist/composition/syncDrift/index.d.mts +41 -0
- package/dist/composition/syncDrift/index.d.mts.map +1 -0
- package/dist/composition/syncDrift/index.mjs +152 -0
- package/dist/composition/syncDrift/index.mjs.map +1 -0
- package/dist/composition/syncState/index.cjs +593 -0
- package/dist/composition/syncState/index.cjs.map +1 -0
- package/dist/composition/syncState/index.d.cts +188 -0
- package/dist/composition/syncState/index.d.cts.map +1 -0
- package/dist/composition/syncState/index.d.mts +188 -0
- package/dist/composition/syncState/index.d.mts.map +1 -0
- package/dist/composition/syncState/index.mjs +559 -0
- package/dist/composition/syncState/index.mjs.map +1 -0
- package/dist/composition/transitionLayers.cjs +17 -0
- package/dist/composition/transitionLayers.cjs.map +1 -0
- package/dist/composition/transitionLayers.d.cts +6 -0
- package/dist/composition/transitionLayers.d.cts.map +1 -0
- package/dist/composition/transitionLayers.d.mts +6 -0
- package/dist/composition/transitionLayers.d.mts.map +1 -0
- package/dist/composition/transitionLayers.mjs +16 -0
- package/dist/composition/transitionLayers.mjs.map +1 -0
- package/dist/composition/types/harness.d.cts +49 -0
- package/dist/composition/types/harness.d.cts.map +1 -0
- package/dist/composition/types/harness.d.mts +49 -0
- package/dist/composition/types/harness.d.mts.map +1 -0
- package/dist/config.cjs +163 -0
- package/dist/config.d.cts +7 -0
- package/dist/config.d.mts +7 -0
- package/dist/config.mjs +7 -0
- package/dist/emit-mcp-command.cjs +4 -0
- package/dist/emit-mcp-command.d.cts +2 -0
- package/dist/emit-mcp-command.d.mts +2 -0
- package/dist/emit-mcp-command.mjs +2 -0
- package/dist/explain-command.cjs +5 -0
- package/dist/explain-command.d.cts +2 -0
- package/dist/explain-command.d.mts +2 -0
- package/dist/explain-command.mjs +2 -0
- package/dist/extensions/agent-model.cjs +41 -0
- package/dist/extensions/agent-model.cjs.map +1 -0
- package/dist/extensions/agent-model.d.cts +22 -0
- package/dist/extensions/agent-model.d.cts.map +1 -0
- package/dist/extensions/agent-model.d.mts +22 -0
- package/dist/extensions/agent-model.d.mts.map +1 -0
- package/dist/extensions/agent-model.mjs +35 -0
- package/dist/extensions/agent-model.mjs.map +1 -0
- package/dist/extensions/composed-pi.cjs +46 -0
- package/dist/extensions/composed-pi.cjs.map +1 -0
- package/dist/extensions/composed-pi.d.cts +13 -0
- package/dist/extensions/composed-pi.d.cts.map +1 -0
- package/dist/extensions/composed-pi.d.mts +13 -0
- package/dist/extensions/composed-pi.d.mts.map +1 -0
- package/dist/extensions/composed-pi.mjs +41 -0
- package/dist/extensions/composed-pi.mjs.map +1 -0
- package/dist/extensions/context-catalog.cjs +96 -0
- package/dist/extensions/context-catalog.cjs.map +1 -0
- package/dist/extensions/context-catalog.d.cts +4 -0
- package/dist/extensions/context-catalog.d.cts.map +1 -0
- package/dist/extensions/context-catalog.d.mts +5 -0
- package/dist/extensions/context-catalog.d.mts.map +1 -0
- package/dist/extensions/context-catalog.mjs +96 -0
- package/dist/extensions/context-catalog.mjs.map +1 -0
- package/dist/extensions/cordis-finalizer.cjs +24 -0
- package/dist/extensions/cordis-finalizer.cjs.map +1 -0
- package/dist/extensions/cordis-finalizer.d.cts +7 -0
- package/dist/extensions/cordis-finalizer.d.cts.map +1 -0
- package/dist/extensions/cordis-finalizer.d.mts +7 -0
- package/dist/extensions/cordis-finalizer.d.mts.map +1 -0
- package/dist/extensions/cordis-finalizer.mjs +19 -0
- package/dist/extensions/cordis-finalizer.mjs.map +1 -0
- package/dist/extensions/cordis-host.cjs +19 -0
- package/dist/extensions/cordis-host.cjs.map +1 -0
- package/dist/extensions/cordis-host.d.cts +7 -0
- package/dist/extensions/cordis-host.d.cts.map +1 -0
- package/dist/extensions/cordis-host.d.mts +7 -0
- package/dist/extensions/cordis-host.d.mts.map +1 -0
- package/dist/extensions/cordis-host.mjs +14 -0
- package/dist/extensions/cordis-host.mjs.map +1 -0
- package/dist/extensions/effort.cjs +54 -0
- package/dist/extensions/effort.cjs.map +1 -0
- package/dist/extensions/effort.d.cts +8 -0
- package/dist/extensions/effort.d.cts.map +1 -0
- package/dist/extensions/effort.d.mts +8 -0
- package/dist/extensions/effort.d.mts.map +1 -0
- package/dist/extensions/effort.mjs +48 -0
- package/dist/extensions/effort.mjs.map +1 -0
- package/dist/extensions/launcher-bootstrap.cjs +38 -0
- package/dist/extensions/launcher-bootstrap.cjs.map +1 -0
- package/dist/extensions/launcher-bootstrap.d.cts +16 -0
- package/dist/extensions/launcher-bootstrap.d.cts.map +1 -0
- package/dist/extensions/launcher-bootstrap.d.mts +16 -0
- package/dist/extensions/launcher-bootstrap.d.mts.map +1 -0
- package/dist/extensions/launcher-bootstrap.mjs +33 -0
- package/dist/extensions/launcher-bootstrap.mjs.map +1 -0
- package/dist/extensions/ollama-provider.cjs +32 -0
- package/dist/extensions/ollama-provider.cjs.map +1 -0
- package/dist/extensions/ollama-provider.d.cts +5 -0
- package/dist/extensions/ollama-provider.d.cts.map +1 -0
- package/dist/extensions/ollama-provider.d.mts +5 -0
- package/dist/extensions/ollama-provider.d.mts.map +1 -0
- package/dist/extensions/ollama-provider.mjs +32 -0
- package/dist/extensions/ollama-provider.mjs.map +1 -0
- package/dist/extensions/pi.cjs +63 -0
- package/dist/extensions/pi.cjs.map +1 -0
- package/dist/extensions/pi.d.cts +7 -0
- package/dist/extensions/pi.d.cts.map +1 -0
- package/dist/extensions/pi.d.mts +7 -0
- package/dist/extensions/pi.d.mts.map +1 -0
- package/dist/extensions/pi.mjs +58 -0
- package/dist/extensions/pi.mjs.map +1 -0
- package/dist/extensions/server.cjs +20 -0
- package/dist/extensions/server.cjs.map +1 -0
- package/dist/extensions/server.d.cts +5 -0
- package/dist/extensions/server.d.cts.map +1 -0
- package/dist/extensions/server.d.mts +5 -0
- package/dist/extensions/server.d.mts.map +1 -0
- package/dist/extensions/server.mjs +15 -0
- package/dist/extensions/server.mjs.map +1 -0
- package/dist/extensions/style-system.cjs +234 -0
- package/dist/extensions/style-system.cjs.map +1 -0
- package/dist/extensions/style-system.d.cts +32 -0
- package/dist/extensions/style-system.d.cts.map +1 -0
- package/dist/extensions/style-system.d.mts +32 -0
- package/dist/extensions/style-system.d.mts.map +1 -0
- package/dist/extensions/style-system.mjs +219 -0
- package/dist/extensions/style-system.mjs.map +1 -0
- package/dist/extensions/terminal-child-session.cjs +76 -0
- package/dist/extensions/terminal-child-session.cjs.map +1 -0
- package/dist/extensions/terminal-child-session.d.cts +7 -0
- package/dist/extensions/terminal-child-session.d.cts.map +1 -0
- package/dist/extensions/terminal-child-session.d.mts +7 -0
- package/dist/extensions/terminal-child-session.d.mts.map +1 -0
- package/dist/extensions/terminal-child-session.mjs +69 -0
- package/dist/extensions/terminal-child-session.mjs.map +1 -0
- package/dist/extensions/transition-coordinator.cjs +154 -0
- package/dist/extensions/transition-coordinator.cjs.map +1 -0
- package/dist/extensions/transition-coordinator.d.cts +8 -0
- package/dist/extensions/transition-coordinator.d.cts.map +1 -0
- package/dist/extensions/transition-coordinator.d.mts +8 -0
- package/dist/extensions/transition-coordinator.d.mts.map +1 -0
- package/dist/extensions/transition-coordinator.mjs +146 -0
- package/dist/extensions/transition-coordinator.mjs.map +1 -0
- package/dist/harness-context.cjs +5 -0
- package/dist/harness-context.d.cts +2 -0
- package/dist/harness-context.d.mts +2 -0
- package/dist/harness-context.mjs +2 -0
- package/dist/harness-state.cjs +19 -0
- package/dist/harness-state.d.cts +2 -0
- package/dist/harness-state.d.mts +2 -0
- package/dist/harness-state.mjs +2 -0
- package/dist/help.cjs +16 -0
- package/dist/help.d.cts +8 -0
- package/dist/help.d.mts +8 -0
- package/dist/help.mjs +8 -0
- package/dist/index.cjs +368 -0
- package/dist/index.d.cts +49 -0
- package/dist/index.d.mts +49 -0
- package/dist/index.mjs +46 -0
- package/dist/init-command.cjs +4 -0
- package/dist/init-command.d.cts +2 -0
- package/dist/init-command.d.mts +2 -0
- package/dist/init-command.mjs +2 -0
- package/dist/launch-command.cjs +7 -0
- package/dist/launch-command.d.cts +2 -0
- package/dist/launch-command.d.mts +2 -0
- package/dist/launch-command.mjs +2 -0
- package/dist/matrix-options.cjs +28 -0
- package/dist/matrix-options.d.cts +2 -0
- package/dist/matrix-options.d.mts +2 -0
- package/dist/matrix-options.mjs +2 -0
- package/dist/matrix-switcher.cjs +11 -0
- package/dist/matrix-switcher.d.cts +3 -0
- package/dist/matrix-switcher.d.mts +3 -0
- package/dist/matrix-switcher.mjs +3 -0
- package/dist/mcp-filter.cjs +9 -0
- package/dist/mcp-filter.d.cts +1 -0
- package/dist/mcp-filter.d.mts +1 -0
- package/dist/mcp-filter.mjs +2 -0
- package/dist/options.cjs +3 -0
- package/dist/options.d.cts +2 -0
- package/dist/options.d.mts +2 -0
- package/dist/options.mjs +2 -0
- package/dist/process.cjs +12 -0
- package/dist/process.d.cts +2 -0
- package/dist/process.d.mts +2 -0
- package/dist/process.mjs +2 -0
- package/dist/project-trust.cjs +6 -0
- package/dist/project-trust.d.cts +2 -0
- package/dist/project-trust.d.mts +2 -0
- package/dist/project-trust.mjs +2 -0
- package/dist/repository.cjs +5 -0
- package/dist/repository.d.cts +2 -0
- package/dist/repository.d.mts +2 -0
- package/dist/repository.mjs +2 -0
- package/dist/resource-collector.cjs +9 -0
- package/dist/resource-collector.d.cts +1 -0
- package/dist/resource-collector.d.mts +1 -0
- package/dist/resource-collector.mjs +2 -0
- package/dist/services.cjs +154 -0
- package/dist/services.d.cts +21 -0
- package/dist/services.d.mts +21 -0
- package/dist/services.mjs +21 -0
- package/dist/shared.cjs +18 -0
- package/dist/shared.d.cts +2 -0
- package/dist/shared.d.mts +2 -0
- package/dist/shared.mjs +2 -0
- package/dist/sync-command.cjs +13 -0
- package/dist/sync-command.d.cts +2 -0
- package/dist/sync-command.d.mts +2 -0
- package/dist/sync-command.mjs +2 -0
- package/dist/sync-state.cjs +33 -0
- package/dist/sync-state.d.cts +2 -0
- package/dist/sync-state.d.mts +2 -0
- package/dist/sync-state.mjs +2 -0
- package/dist/utils.cjs +6 -0
- package/dist/utils.d.cts +3 -0
- package/dist/utils.d.mts +3 -0
- package/dist/utils.mjs +3 -0
- package/package.json +16 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webPluginManifest.mjs","names":[],"sources":["../../../src/builders/web/webPluginManifest.ts"],"sourcesContent":["/**\n * The doompiWeb manifest vocabulary: how a package declares its web plugin in\n * package.json, validated and ordered without touching the filesystem. The\n * scan adapter feeds this from real manifests; the sync bundler feeds it from\n * the installed composition's package roots.\n *\n * Plugins are independent: a manifest names no other plugin, and the order\n * plugins install in is only a tiebreak (registrationOrder, then pluginId),\n * because every relation between two plugins resolves by name once all of\n * them are installed. A collision between two packages is a notice for the\n * sync log and the first package keeps the name; only a malformed block is an\n * error, which the scanner turns into a notice for that package alone.\n */\n\nconst PLUGIN_ID_PATTERN = /^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;\n\n/** The order a plugin installs at when its manifest names none. */\nexport const DEFAULT_REGISTRATION_ORDER = 1000;\n\nexport interface WebPluginEntryDeclaration {\n /** Package-relative ./path to the source entry. */\n entry: string;\n}\n\nexport interface DeclaredWebPlugin {\n pluginId: string;\n registrationOrder: number;\n packageDir: string;\n packageName: string;\n isHost: boolean;\n client: WebPluginEntryDeclaration;\n scopes: readonly ('global' | 'workspace' | 'session')[];\n}\n\nexport class WebPluginManifestError extends Error {\n constructor(packageDir: string, message: string) {\n super(`doompiWeb manifest in ${packageDir}: ${message}`);\n this.name = 'WebPluginManifestError';\n }\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\nfunction normalizeEntry(packageDir: string, kind: string, value: unknown): WebPluginEntryDeclaration {\n const raw = typeof value === 'string' ? { entry: value } : value;\n if (!isRecord(raw)) throw new WebPluginManifestError(packageDir, `${kind} must be a path or {entry}.`);\n const { entry } = raw;\n if (typeof entry !== 'string' || !entry.startsWith('./') || entry.includes('..')) {\n throw new WebPluginManifestError(packageDir, `${kind}.entry must be a package-relative ./path with no '..'.`);\n }\n return { entry };\n}\n\n/** The doompiWeb value normalized to a list: one plugin object or an array of them. */\nexport function pluginBlocksOf(manifest: Record<string, unknown>): unknown[] {\n if (manifest.doompiWeb === undefined) return [];\n return Array.isArray(manifest.doompiWeb) ? manifest.doompiWeb : [manifest.doompiWeb];\n}\n\n/** Validates one manifest's blocks into declared plugins; throws WebPluginManifestError on bad shape. */\nexport function declaredPluginsOf(\n packageDir: string,\n manifest: Record<string, unknown>,\n isHost: boolean,\n): DeclaredWebPlugin[] {\n const plugins: DeclaredWebPlugin[] = [];\n for (const block of pluginBlocksOf(manifest)) {\n if (!isRecord(block)) throw new WebPluginManifestError(packageDir, 'each block must be an object.');\n const { pluginId, registrationOrder = DEFAULT_REGISTRATION_ORDER, client, scopes } = block;\n if (\n !Array.isArray(scopes) ||\n scopes.length === 0 ||\n scopes.some((scope) => !['global', 'workspace', 'session'].includes(scope))\n ) {\n throw new WebPluginManifestError(\n packageDir,\n 'scopes must explicitly name global, workspace, or session; resync the plugin.',\n );\n }\n if (typeof pluginId !== 'string' || !PLUGIN_ID_PATTERN.test(pluginId)) {\n throw new WebPluginManifestError(packageDir, `pluginId '${String(pluginId)}' must be kebab-case.`);\n }\n if (!Number.isInteger(registrationOrder) || (registrationOrder as number) < 0) {\n throw new WebPluginManifestError(packageDir, `'${pluginId}' needs a non-negative integer registrationOrder.`);\n }\n plugins.push({\n pluginId,\n registrationOrder: registrationOrder as number,\n packageDir,\n packageName: typeof manifest.name === 'string' ? manifest.name : packageDir,\n isHost,\n client: normalizeEntry(packageDir, 'client', client),\n scopes,\n });\n }\n return plugins;\n}\n\nconst byInstallOrder = (left: DeclaredWebPlugin, right: DeclaredWebPlugin): number =>\n left.registrationOrder - right.registrationOrder ||\n left.pluginId.localeCompare(right.pluginId) ||\n left.packageDir.localeCompare(right.packageDir);\n\n/**\n * The deterministic install order, (registrationOrder, pluginId), with the\n * cross-package collisions resolved by the browser client registry: the first\n * plugin keeps a shared pluginId and the later package is dropped with a notice.\n */\nexport function orderDeclaredPlugins(\n plugins: readonly DeclaredWebPlugin[],\n onNotice: (message: string) => void = () => undefined,\n): DeclaredWebPlugin[] {\n const sorted = [...plugins].sort(byInstallOrder);\n const byId = new Map<string, DeclaredWebPlugin>();\n const kept: DeclaredWebPlugin[] = [];\n for (const plugin of sorted) {\n const holder = byId.get(plugin.pluginId);\n if (holder !== undefined) {\n onNotice(\n `web plugin '${plugin.pluginId}' from ${plugin.packageDir} is skipped: ${holder.packageDir} already declares it.`,\n );\n continue;\n }\n byId.set(plugin.pluginId, plugin);\n kept.push(plugin);\n }\n return kept;\n}\n"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,oBAAoB;;AAG1B,MAAa,6BAA6B;AAiB1C,IAAa,yBAAb,cAA4C,MAAM;CAChD,YAAY,YAAoB,SAAiB;EAC/C,MAAM,yBAAyB,WAAW,IAAI,SAAS;EACvD,KAAK,OAAO;CACd;AACF;AAEA,SAAS,SAAS,OAAkD;CAClE,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK;AAC5E;AAEA,SAAS,eAAe,YAAoB,MAAc,OAA2C;CACnG,MAAM,MAAM,OAAO,UAAU,WAAW,EAAE,OAAO,MAAM,IAAI;CAC3D,IAAI,CAAC,SAAS,GAAG,GAAG,MAAM,IAAI,uBAAuB,YAAY,GAAG,KAAK,4BAA4B;CACrG,MAAM,EAAE,UAAU;CAClB,IAAI,OAAO,UAAU,YAAY,CAAC,MAAM,WAAW,IAAI,KAAK,MAAM,SAAS,IAAI,GAC7E,MAAM,IAAI,uBAAuB,YAAY,GAAG,KAAK,uDAAuD;CAE9G,OAAO,EAAE,MAAM;AACjB;;AAGA,SAAgB,eAAe,UAA8C;CAC3E,IAAI,SAAS,cAAc,KAAA,GAAW,OAAO,CAAC;CAC9C,OAAO,MAAM,QAAQ,SAAS,SAAS,IAAI,SAAS,YAAY,CAAC,SAAS,SAAS;AACrF;;AAGA,SAAgB,kBACd,YACA,UACA,QACqB;CACrB,MAAM,UAA+B,CAAC;CACtC,KAAK,MAAM,SAAS,eAAe,QAAQ,GAAG;EAC5C,IAAI,CAAC,SAAS,KAAK,GAAG,MAAM,IAAI,uBAAuB,YAAY,+BAA+B;EAClG,MAAM,EAAE,UAAU,oBAAoB,4BAA4B,QAAQ,WAAW;EACrF,IACE,CAAC,MAAM,QAAQ,MAAM,KACrB,OAAO,WAAW,KAClB,OAAO,MAAM,UAAU,CAAC;GAAC;GAAU;GAAa;EAAS,CAAC,CAAC,SAAS,KAAK,CAAC,GAE1E,MAAM,IAAI,uBACR,YACA,+EACF;EAEF,IAAI,OAAO,aAAa,YAAY,CAAC,kBAAkB,KAAK,QAAQ,GAClE,MAAM,IAAI,uBAAuB,YAAY,aAAa,OAAO,QAAQ,EAAE,sBAAsB;EAEnG,IAAI,CAAC,OAAO,UAAU,iBAAiB,KAAM,oBAA+B,GAC1E,MAAM,IAAI,uBAAuB,YAAY,IAAI,SAAS,kDAAkD;EAE9G,QAAQ,KAAK;GACX;GACmB;GACnB;GACA,aAAa,OAAO,SAAS,SAAS,WAAW,SAAS,OAAO;GACjE;GACA,QAAQ,eAAe,YAAY,UAAU,MAAM;GACnD;EACF,CAAC;CACH;CACA,OAAO;AACT;AAEA,MAAM,kBAAkB,MAAyB,UAC/C,KAAK,oBAAoB,MAAM,qBAC/B,KAAK,SAAS,cAAc,MAAM,QAAQ,KAC1C,KAAK,WAAW,cAAc,MAAM,UAAU;;;;;;AAOhD,SAAgB,qBACd,SACA,iBAA4C,KAAA,GACvB;CACrB,MAAM,SAAS,CAAC,GAAG,OAAO,CAAC,CAAC,KAAK,cAAc;CAC/C,MAAM,uBAAO,IAAI,IAA+B;CAChD,MAAM,OAA4B,CAAC;CACnC,KAAK,MAAM,UAAU,QAAQ;EAC3B,MAAM,SAAS,KAAK,IAAI,OAAO,QAAQ;EACvC,IAAI,WAAW,KAAA,GAAW;GACxB,SACE,eAAe,OAAO,SAAS,SAAS,OAAO,WAAW,eAAe,OAAO,WAAW,sBAC7F;GACA;EACF;EACA,KAAK,IAAI,OAAO,UAAU,MAAM;EAChC,KAAK,KAAK,MAAM;CAClB;CACA,OAAO;AACT"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_webPluginManifest = require("./webPluginManifest.cjs");
|
|
3
|
+
let node_fs = require("node:fs");
|
|
4
|
+
node_fs = require_runtime.__toESM(node_fs, 1);
|
|
5
|
+
let node_path = require("node:path");
|
|
6
|
+
node_path = require_runtime.__toESM(node_path, 1);
|
|
7
|
+
//#region src/builders/web/webPluginScan.ts
|
|
8
|
+
/**
|
|
9
|
+
* Reads doompiWeb declarations from explicit package roots.
|
|
10
|
+
*
|
|
11
|
+
* No workspace walking and no hardcoded plugin names: the caller says which
|
|
12
|
+
* packages are in play. At doompi-web's own build time that is just the host
|
|
13
|
+
* package (its built-in plugins); at `doompi sync` time it is the installed
|
|
14
|
+
* composition's package roots. A plugin package whose manifest is malformed
|
|
15
|
+
* or whose entry file is missing is skipped with a notice, so one broken or
|
|
16
|
+
* half-installed package never costs the rest of the cockpit; only the host's
|
|
17
|
+
* own manifest still throws, because that is a build error of this package.
|
|
18
|
+
*/
|
|
19
|
+
function scanWebPlugins(hostDir, pluginRoots = [], onNotice = () => void 0) {
|
|
20
|
+
const seen = /* @__PURE__ */ new Set();
|
|
21
|
+
const plugins = [];
|
|
22
|
+
const hostResolved = node_path.default.resolve(hostDir);
|
|
23
|
+
for (const root of [hostDir, ...pluginRoots]) {
|
|
24
|
+
const resolved = node_path.default.resolve(root);
|
|
25
|
+
if (seen.has(resolved)) continue;
|
|
26
|
+
seen.add(resolved);
|
|
27
|
+
try {
|
|
28
|
+
plugins.push(...declaredPluginsIn(resolved, resolved === hostResolved));
|
|
29
|
+
} catch (error) {
|
|
30
|
+
if (resolved === hostResolved) throw error;
|
|
31
|
+
onNotice(`web plugin package ${resolved} skipped: ${error instanceof require_webPluginManifest.WebPluginManifestError ? error.message : String(error)}`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return require_webPluginManifest.orderDeclaredPlugins(plugins, onNotice);
|
|
35
|
+
}
|
|
36
|
+
function declaredPluginsIn(resolved, isHost) {
|
|
37
|
+
let manifest;
|
|
38
|
+
try {
|
|
39
|
+
manifest = JSON.parse(node_fs.default.readFileSync(node_path.default.join(resolved, "package.json"), "utf8"));
|
|
40
|
+
} catch (error) {
|
|
41
|
+
throw new require_webPluginManifest.WebPluginManifestError(resolved, `package.json is unreadable: ${String(error)}`);
|
|
42
|
+
}
|
|
43
|
+
const declared = require_webPluginManifest.declaredPluginsOf(resolved, manifest, isHost);
|
|
44
|
+
for (const plugin of declared) {
|
|
45
|
+
const entryPath = node_path.default.join(resolved, plugin.client.entry);
|
|
46
|
+
if (!node_fs.default.existsSync(entryPath)) throw new require_webPluginManifest.WebPluginManifestError(resolved, `client.entry '${plugin.client.entry}' does not exist.`);
|
|
47
|
+
}
|
|
48
|
+
return declared;
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
exports.scanWebPlugins = scanWebPlugins;
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=webPluginScan.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webPluginScan.cjs","names":["path","WebPluginManifestError","orderDeclaredPlugins","fs","declaredPluginsOf"],"sources":["../../../src/builders/web/webPluginScan.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\n\nimport {\n type DeclaredWebPlugin,\n declaredPluginsOf,\n orderDeclaredPlugins,\n WebPluginManifestError,\n} from './webPluginManifest';\n\n/**\n * Reads doompiWeb declarations from explicit package roots.\n *\n * No workspace walking and no hardcoded plugin names: the caller says which\n * packages are in play. At doompi-web's own build time that is just the host\n * package (its built-in plugins); at `doompi sync` time it is the installed\n * composition's package roots. A plugin package whose manifest is malformed\n * or whose entry file is missing is skipped with a notice, so one broken or\n * half-installed package never costs the rest of the cockpit; only the host's\n * own manifest still throws, because that is a build error of this package.\n */\nexport function scanWebPlugins(\n hostDir: string,\n pluginRoots: readonly string[] = [],\n onNotice: (message: string) => void = () => undefined,\n): DeclaredWebPlugin[] {\n const seen = new Set<string>();\n const plugins: DeclaredWebPlugin[] = [];\n const hostResolved = path.resolve(hostDir);\n for (const root of [hostDir, ...pluginRoots]) {\n const resolved = path.resolve(root);\n if (seen.has(resolved)) continue;\n seen.add(resolved);\n try {\n plugins.push(...declaredPluginsIn(resolved, resolved === hostResolved));\n } catch (error) {\n if (resolved === hostResolved) throw error;\n const reason = error instanceof WebPluginManifestError ? error.message : String(error);\n onNotice(`web plugin package ${resolved} skipped: ${reason}`);\n }\n }\n return orderDeclaredPlugins(plugins, onNotice);\n}\n\nfunction declaredPluginsIn(resolved: string, isHost: boolean): DeclaredWebPlugin[] {\n let manifest: Record<string, unknown>;\n try {\n manifest = JSON.parse(fs.readFileSync(path.join(resolved, 'package.json'), 'utf8')) as Record<string, unknown>;\n } catch (error) {\n throw new WebPluginManifestError(resolved, `package.json is unreadable: ${String(error)}`);\n }\n const declared = declaredPluginsOf(resolved, manifest, isHost);\n for (const plugin of declared) {\n const entryPath = path.join(resolved, plugin.client.entry);\n if (!fs.existsSync(entryPath)) {\n throw new WebPluginManifestError(resolved, `client.entry '${plugin.client.entry}' does not exist.`);\n }\n }\n return declared;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAqBA,SAAgB,eACd,SACA,cAAiC,CAAC,GAClC,iBAA4C,KAAA,GACvB;CACrB,MAAM,uBAAO,IAAI,IAAY;CAC7B,MAAM,UAA+B,CAAC;CACtC,MAAM,eAAeA,UAAAA,QAAK,QAAQ,OAAO;CACzC,KAAK,MAAM,QAAQ,CAAC,SAAS,GAAG,WAAW,GAAG;EAC5C,MAAM,WAAWA,UAAAA,QAAK,QAAQ,IAAI;EAClC,IAAI,KAAK,IAAI,QAAQ,GAAG;EACxB,KAAK,IAAI,QAAQ;EACjB,IAAI;GACF,QAAQ,KAAK,GAAG,kBAAkB,UAAU,aAAa,YAAY,CAAC;EACxE,SAAS,OAAO;GACd,IAAI,aAAa,cAAc,MAAM;GAErC,SAAS,sBAAsB,SAAS,YADzB,iBAAiBC,0BAAAA,yBAAyB,MAAM,UAAU,OAAO,KAAK,GACzB;EAC9D;CACF;CACA,OAAOC,0BAAAA,qBAAqB,SAAS,QAAQ;AAC/C;AAEA,SAAS,kBAAkB,UAAkB,QAAsC;CACjF,IAAI;CACJ,IAAI;EACF,WAAW,KAAK,MAAMC,QAAAA,QAAG,aAAaH,UAAAA,QAAK,KAAK,UAAU,cAAc,GAAG,MAAM,CAAC;CACpF,SAAS,OAAO;EACd,MAAM,IAAIC,0BAAAA,uBAAuB,UAAU,+BAA+B,OAAO,KAAK,GAAG;CAC3F;CACA,MAAM,WAAWG,0BAAAA,kBAAkB,UAAU,UAAU,MAAM;CAC7D,KAAK,MAAM,UAAU,UAAU;EAC7B,MAAM,YAAYJ,UAAAA,QAAK,KAAK,UAAU,OAAO,OAAO,KAAK;EACzD,IAAI,CAACG,QAAAA,QAAG,WAAW,SAAS,GAC1B,MAAM,IAAIF,0BAAAA,uBAAuB,UAAU,iBAAiB,OAAO,OAAO,MAAM,kBAAkB;CAEtG;CACA,OAAO;AACT"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DeclaredWebPlugin } from "./webPluginManifest.cjs";
|
|
2
|
+
//#region src/builders/web/webPluginScan.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Reads doompiWeb declarations from explicit package roots.
|
|
5
|
+
*
|
|
6
|
+
* No workspace walking and no hardcoded plugin names: the caller says which
|
|
7
|
+
* packages are in play. At doompi-web's own build time that is just the host
|
|
8
|
+
* package (its built-in plugins); at `doompi sync` time it is the installed
|
|
9
|
+
* composition's package roots. A plugin package whose manifest is malformed
|
|
10
|
+
* or whose entry file is missing is skipped with a notice, so one broken or
|
|
11
|
+
* half-installed package never costs the rest of the cockpit; only the host's
|
|
12
|
+
* own manifest still throws, because that is a build error of this package.
|
|
13
|
+
*/
|
|
14
|
+
export declare function scanWebPlugins(hostDir: string, pluginRoots?: readonly string[], onNotice?: (message: string) => void): DeclaredWebPlugin[];
|
|
15
|
+
//#endregion
|
|
16
|
+
//# sourceMappingURL=webPluginScan.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webPluginScan.d.cts","names":[],"sources":["../../../src/builders/web/webPluginScan.ts"],"mappings":";;;;;;;;;;;;;wBAqBgB,eACd,iBACA,iCACA,YAAW,2BACV"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DeclaredWebPlugin } from "./webPluginManifest.mjs";
|
|
2
|
+
//#region src/builders/web/webPluginScan.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Reads doompiWeb declarations from explicit package roots.
|
|
5
|
+
*
|
|
6
|
+
* No workspace walking and no hardcoded plugin names: the caller says which
|
|
7
|
+
* packages are in play. At doompi-web's own build time that is just the host
|
|
8
|
+
* package (its built-in plugins); at `doompi sync` time it is the installed
|
|
9
|
+
* composition's package roots. A plugin package whose manifest is malformed
|
|
10
|
+
* or whose entry file is missing is skipped with a notice, so one broken or
|
|
11
|
+
* half-installed package never costs the rest of the cockpit; only the host's
|
|
12
|
+
* own manifest still throws, because that is a build error of this package.
|
|
13
|
+
*/
|
|
14
|
+
export declare function scanWebPlugins(hostDir: string, pluginRoots?: readonly string[], onNotice?: (message: string) => void): DeclaredWebPlugin[];
|
|
15
|
+
//#endregion
|
|
16
|
+
//# sourceMappingURL=webPluginScan.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webPluginScan.d.mts","names":[],"sources":["../../../src/builders/web/webPluginScan.ts"],"mappings":";;;;;;;;;;;;;wBAqBgB,eACd,iBACA,iCACA,YAAW,2BACV"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { WebPluginManifestError, declaredPluginsOf, orderDeclaredPlugins } from "./webPluginManifest.mjs";
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
//#region src/builders/web/webPluginScan.ts
|
|
5
|
+
/**
|
|
6
|
+
* Reads doompiWeb declarations from explicit package roots.
|
|
7
|
+
*
|
|
8
|
+
* No workspace walking and no hardcoded plugin names: the caller says which
|
|
9
|
+
* packages are in play. At doompi-web's own build time that is just the host
|
|
10
|
+
* package (its built-in plugins); at `doompi sync` time it is the installed
|
|
11
|
+
* composition's package roots. A plugin package whose manifest is malformed
|
|
12
|
+
* or whose entry file is missing is skipped with a notice, so one broken or
|
|
13
|
+
* half-installed package never costs the rest of the cockpit; only the host's
|
|
14
|
+
* own manifest still throws, because that is a build error of this package.
|
|
15
|
+
*/
|
|
16
|
+
function scanWebPlugins(hostDir, pluginRoots = [], onNotice = () => void 0) {
|
|
17
|
+
const seen = /* @__PURE__ */ new Set();
|
|
18
|
+
const plugins = [];
|
|
19
|
+
const hostResolved = path.resolve(hostDir);
|
|
20
|
+
for (const root of [hostDir, ...pluginRoots]) {
|
|
21
|
+
const resolved = path.resolve(root);
|
|
22
|
+
if (seen.has(resolved)) continue;
|
|
23
|
+
seen.add(resolved);
|
|
24
|
+
try {
|
|
25
|
+
plugins.push(...declaredPluginsIn(resolved, resolved === hostResolved));
|
|
26
|
+
} catch (error) {
|
|
27
|
+
if (resolved === hostResolved) throw error;
|
|
28
|
+
onNotice(`web plugin package ${resolved} skipped: ${error instanceof WebPluginManifestError ? error.message : String(error)}`);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return orderDeclaredPlugins(plugins, onNotice);
|
|
32
|
+
}
|
|
33
|
+
function declaredPluginsIn(resolved, isHost) {
|
|
34
|
+
let manifest;
|
|
35
|
+
try {
|
|
36
|
+
manifest = JSON.parse(fs.readFileSync(path.join(resolved, "package.json"), "utf8"));
|
|
37
|
+
} catch (error) {
|
|
38
|
+
throw new WebPluginManifestError(resolved, `package.json is unreadable: ${String(error)}`);
|
|
39
|
+
}
|
|
40
|
+
const declared = declaredPluginsOf(resolved, manifest, isHost);
|
|
41
|
+
for (const plugin of declared) {
|
|
42
|
+
const entryPath = path.join(resolved, plugin.client.entry);
|
|
43
|
+
if (!fs.existsSync(entryPath)) throw new WebPluginManifestError(resolved, `client.entry '${plugin.client.entry}' does not exist.`);
|
|
44
|
+
}
|
|
45
|
+
return declared;
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { scanWebPlugins };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=webPluginScan.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webPluginScan.mjs","names":[],"sources":["../../../src/builders/web/webPluginScan.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\n\nimport {\n type DeclaredWebPlugin,\n declaredPluginsOf,\n orderDeclaredPlugins,\n WebPluginManifestError,\n} from './webPluginManifest';\n\n/**\n * Reads doompiWeb declarations from explicit package roots.\n *\n * No workspace walking and no hardcoded plugin names: the caller says which\n * packages are in play. At doompi-web's own build time that is just the host\n * package (its built-in plugins); at `doompi sync` time it is the installed\n * composition's package roots. A plugin package whose manifest is malformed\n * or whose entry file is missing is skipped with a notice, so one broken or\n * half-installed package never costs the rest of the cockpit; only the host's\n * own manifest still throws, because that is a build error of this package.\n */\nexport function scanWebPlugins(\n hostDir: string,\n pluginRoots: readonly string[] = [],\n onNotice: (message: string) => void = () => undefined,\n): DeclaredWebPlugin[] {\n const seen = new Set<string>();\n const plugins: DeclaredWebPlugin[] = [];\n const hostResolved = path.resolve(hostDir);\n for (const root of [hostDir, ...pluginRoots]) {\n const resolved = path.resolve(root);\n if (seen.has(resolved)) continue;\n seen.add(resolved);\n try {\n plugins.push(...declaredPluginsIn(resolved, resolved === hostResolved));\n } catch (error) {\n if (resolved === hostResolved) throw error;\n const reason = error instanceof WebPluginManifestError ? error.message : String(error);\n onNotice(`web plugin package ${resolved} skipped: ${reason}`);\n }\n }\n return orderDeclaredPlugins(plugins, onNotice);\n}\n\nfunction declaredPluginsIn(resolved: string, isHost: boolean): DeclaredWebPlugin[] {\n let manifest: Record<string, unknown>;\n try {\n manifest = JSON.parse(fs.readFileSync(path.join(resolved, 'package.json'), 'utf8')) as Record<string, unknown>;\n } catch (error) {\n throw new WebPluginManifestError(resolved, `package.json is unreadable: ${String(error)}`);\n }\n const declared = declaredPluginsOf(resolved, manifest, isHost);\n for (const plugin of declared) {\n const entryPath = path.join(resolved, plugin.client.entry);\n if (!fs.existsSync(entryPath)) {\n throw new WebPluginManifestError(resolved, `client.entry '${plugin.client.entry}' does not exist.`);\n }\n }\n return declared;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,SAAgB,eACd,SACA,cAAiC,CAAC,GAClC,iBAA4C,KAAA,GACvB;CACrB,MAAM,uBAAO,IAAI,IAAY;CAC7B,MAAM,UAA+B,CAAC;CACtC,MAAM,eAAe,KAAK,QAAQ,OAAO;CACzC,KAAK,MAAM,QAAQ,CAAC,SAAS,GAAG,WAAW,GAAG;EAC5C,MAAM,WAAW,KAAK,QAAQ,IAAI;EAClC,IAAI,KAAK,IAAI,QAAQ,GAAG;EACxB,KAAK,IAAI,QAAQ;EACjB,IAAI;GACF,QAAQ,KAAK,GAAG,kBAAkB,UAAU,aAAa,YAAY,CAAC;EACxE,SAAS,OAAO;GACd,IAAI,aAAa,cAAc,MAAM;GAErC,SAAS,sBAAsB,SAAS,YADzB,iBAAiB,yBAAyB,MAAM,UAAU,OAAO,KAAK,GACzB;EAC9D;CACF;CACA,OAAO,qBAAqB,SAAS,QAAQ;AAC/C;AAEA,SAAS,kBAAkB,UAAkB,QAAsC;CACjF,IAAI;CACJ,IAAI;EACF,WAAW,KAAK,MAAM,GAAG,aAAa,KAAK,KAAK,UAAU,cAAc,GAAG,MAAM,CAAC;CACpF,SAAS,OAAO;EACd,MAAM,IAAI,uBAAuB,UAAU,+BAA+B,OAAO,KAAK,GAAG;CAC3F;CACA,MAAM,WAAW,kBAAkB,UAAU,UAAU,MAAM;CAC7D,KAAK,MAAM,UAAU,UAAU;EAC7B,MAAM,YAAY,KAAK,KAAK,UAAU,OAAO,OAAO,KAAK;EACzD,IAAI,CAAC,GAAG,WAAW,SAAS,GAC1B,MAAM,IAAI,uBAAuB,UAAU,iBAAiB,OAAO,OAAO,MAAM,kBAAkB;CAEtG;CACA,OAAO;AACT"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_webDevRoots = require("./webDevRoots.cjs");
|
|
3
|
+
let node_fs = require("node:fs");
|
|
4
|
+
node_fs = require_runtime.__toESM(node_fs, 1);
|
|
5
|
+
let node_module = require("node:module");
|
|
6
|
+
let node_path = require("node:path");
|
|
7
|
+
node_path = require_runtime.__toESM(node_path, 1);
|
|
8
|
+
let _agimon_ai_doompi_core_sync_registration = require("@agimon-ai/doompi-core/sync-registration");
|
|
9
|
+
//#region src/builders/web/webPluginVite.ts
|
|
10
|
+
const DOOMPI_ROOT_ENV = "DOOMPI_ROOT";
|
|
11
|
+
/**
|
|
12
|
+
* The modules the cockpit supplies page-wide, rather than each plugin
|
|
13
|
+
* carrying its own copy.
|
|
14
|
+
*
|
|
15
|
+
* Build-time metadata, and it stays here rather than in a browser-facing
|
|
16
|
+
* barrel on purpose: exporting it from doompi-core/web put the literal list
|
|
17
|
+
* into the shipped cockpit bundle, where a plugin's own specifier strings
|
|
18
|
+
* would then appear as data.
|
|
19
|
+
*/
|
|
20
|
+
const WEB_PLUGIN_RUNTIME_SPECIFIERS = [
|
|
21
|
+
"react",
|
|
22
|
+
"react/jsx-runtime",
|
|
23
|
+
"react/jsx-dev-runtime",
|
|
24
|
+
"react-dom",
|
|
25
|
+
"react-dom/client",
|
|
26
|
+
"@tanstack/store",
|
|
27
|
+
"@tanstack/react-store",
|
|
28
|
+
"@agimon-ai/doompi-core/web",
|
|
29
|
+
"@agimon-ai/doompi-web-components",
|
|
30
|
+
"@agimon-ai/doompi-web-security/browser",
|
|
31
|
+
"@codemirror/state",
|
|
32
|
+
"@codemirror/view"
|
|
33
|
+
];
|
|
34
|
+
const WEB_PLUGIN_RUNTIME_PROPERTIES = {
|
|
35
|
+
react: "react",
|
|
36
|
+
"react/jsx-runtime": "reactJsxRuntime",
|
|
37
|
+
"react/jsx-dev-runtime": "reactJsxDevRuntime",
|
|
38
|
+
"react-dom": "reactDom",
|
|
39
|
+
"react-dom/client": "reactDomClient",
|
|
40
|
+
"@tanstack/store": "tanstackStore",
|
|
41
|
+
"@tanstack/react-store": "tanstackReactStore",
|
|
42
|
+
"@agimon-ai/doompi-core/web": "webContracts",
|
|
43
|
+
"@agimon-ai/doompi-web-components": "webComponents",
|
|
44
|
+
"@agimon-ai/doompi-web-security/browser": "webSecurityBrowser",
|
|
45
|
+
"@codemirror/state": "codemirrorState",
|
|
46
|
+
"@codemirror/view": "codemirrorView"
|
|
47
|
+
};
|
|
48
|
+
/** Rollup expression for a shared module supplied by the session shell. */
|
|
49
|
+
function webPluginRuntimeGlobal(specifier) {
|
|
50
|
+
return `globalThis.DoomPiWebPluginRuntime.${WEB_PLUGIN_RUNTIME_PROPERTIES[specifier]}`;
|
|
51
|
+
}
|
|
52
|
+
/** Resolves generated JSX imports from the host instead of a plugin's optional React peer tree. */
|
|
53
|
+
function webPluginRuntimeAliases(clientRoot) {
|
|
54
|
+
const runtimeRequire = (0, node_module.createRequire)(node_path.default.join(clientRoot, "index.html"));
|
|
55
|
+
return WEB_PLUGIN_RUNTIME_SPECIFIERS.filter((specifier) => specifier.startsWith("react/jsx-")).map((specifier) => ({
|
|
56
|
+
find: new RegExp(`^${specifier.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}$`, "u"),
|
|
57
|
+
replacement: runtimeRequire.resolve(specifier)
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Swaps the committed builtin registry modules for generated ones. A
|
|
62
|
+
* resolveId hook rather than resolve.alias because aliases match raw import
|
|
63
|
+
* specifiers while these two are known by their resolved paths. Both the
|
|
64
|
+
* sync-time build and the dev server use it, so a plugin edit in dev is the
|
|
65
|
+
* same module the bundle would carry.
|
|
66
|
+
*/
|
|
67
|
+
function webPluginOverridePlugin(clientRoot, generated) {
|
|
68
|
+
const overrides = /* @__PURE__ */ new Map([[node_path.default.join(clientRoot, "app", "webPlugins.generated.ts"), generated.clientModulePath], [node_path.default.join(clientRoot, "styles", "webPluginSources.generated.css"), generated.cssModulePath]]);
|
|
69
|
+
return {
|
|
70
|
+
name: "doompi-web-plugin-overrides",
|
|
71
|
+
enforce: "pre",
|
|
72
|
+
async resolveId(source, importer, options) {
|
|
73
|
+
const resolved = await this.resolve(source, importer, {
|
|
74
|
+
...options,
|
|
75
|
+
skipSelf: true
|
|
76
|
+
});
|
|
77
|
+
if (!resolved) return null;
|
|
78
|
+
return overrides.get(resolved.id) ?? null;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The CSS sources module cannot ride the resolveId hook: Vite and Tailwind
|
|
84
|
+
* resolve CSS @import through Vite's own id resolver, which consults aliases
|
|
85
|
+
* but no plugin hooks. Without this the builtin (empty) @source list ships
|
|
86
|
+
* and every plugin-only utility class is missing.
|
|
87
|
+
*/
|
|
88
|
+
function webPluginCssAlias(generated) {
|
|
89
|
+
return {
|
|
90
|
+
find: /^\.\/webPluginSources\.generated\.css$/,
|
|
91
|
+
replacement: generated.cssModulePath
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
/** The plugin package roots the dev server should serve, from an explicit override or DOOMPI_ROOT. */
|
|
95
|
+
function readDevPluginRoots(environment, homeDirectory) {
|
|
96
|
+
const explicit = environment[require_webDevRoots.PLUGIN_ROOTS_ENV];
|
|
97
|
+
if (explicit !== void 0 && explicit !== "") return require_webDevRoots.devPluginRoots({
|
|
98
|
+
envValue: explicit,
|
|
99
|
+
rootsFileText: void 0,
|
|
100
|
+
delimiter: node_path.default.delimiter
|
|
101
|
+
});
|
|
102
|
+
const repoRoot = environment[DOOMPI_ROOT_ENV];
|
|
103
|
+
if (repoRoot === void 0 || repoRoot === "") return [];
|
|
104
|
+
try {
|
|
105
|
+
const webDirectory = (0, _agimon_ai_doompi_core_sync_registration.readSyncRegistration)(repoRoot, homeDirectory)?.webDirectory;
|
|
106
|
+
const rootsFile = webDirectory === null || webDirectory === void 0 ? void 0 : node_path.default.join(node_path.default.dirname(webDirectory), require_webDevRoots.PLUGIN_ROOTS_FILE);
|
|
107
|
+
return require_webDevRoots.devPluginRoots({
|
|
108
|
+
envValue: void 0,
|
|
109
|
+
rootsFileText: rootsFile !== void 0 && node_fs.default.existsSync(rootsFile) ? node_fs.default.readFileSync(rootsFile, "utf8") : void 0,
|
|
110
|
+
delimiter: node_path.default.delimiter
|
|
111
|
+
});
|
|
112
|
+
} catch {
|
|
113
|
+
return [];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
//#endregion
|
|
117
|
+
exports.WEB_PLUGIN_RUNTIME_SPECIFIERS = WEB_PLUGIN_RUNTIME_SPECIFIERS;
|
|
118
|
+
exports.readDevPluginRoots = readDevPluginRoots;
|
|
119
|
+
exports.webPluginCssAlias = webPluginCssAlias;
|
|
120
|
+
exports.webPluginOverridePlugin = webPluginOverridePlugin;
|
|
121
|
+
exports.webPluginRuntimeAliases = webPluginRuntimeAliases;
|
|
122
|
+
exports.webPluginRuntimeGlobal = webPluginRuntimeGlobal;
|
|
123
|
+
|
|
124
|
+
//# sourceMappingURL=webPluginVite.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webPluginVite.cjs","names":["createRequire","path","PLUGIN_ROOTS_ENV","devPluginRoots","readSyncRegistration","PLUGIN_ROOTS_FILE","fs"],"sources":["../../../src/builders/web/webPluginVite.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { createRequire } from 'node:module';\nimport path from 'node:path';\n\nimport { readSyncRegistration } from '@agimon-ai/doompi-core/sync-registration';\nimport type { Alias, Plugin } from 'vite';\n\nimport { devPluginRoots, PLUGIN_ROOTS_ENV, PLUGIN_ROOTS_FILE } from './webDevRoots';\nimport type { SyncGeneratedModules } from './webPluginGenerate';\n\nconst DOOMPI_ROOT_ENV = 'DOOMPI_ROOT';\n\n/**\n * The modules the cockpit supplies page-wide, rather than each plugin\n * carrying its own copy.\n *\n * Build-time metadata, and it stays here rather than in a browser-facing\n * barrel on purpose: exporting it from doompi-core/web put the literal list\n * into the shipped cockpit bundle, where a plugin's own specifier strings\n * would then appear as data.\n */\nexport const WEB_PLUGIN_RUNTIME_SPECIFIERS = [\n 'react',\n 'react/jsx-runtime',\n 'react/jsx-dev-runtime',\n 'react-dom',\n 'react-dom/client',\n '@tanstack/store',\n '@tanstack/react-store',\n '@agimon-ai/doompi-core/web',\n '@agimon-ai/doompi-web-components',\n '@agimon-ai/doompi-web-security/browser',\n '@codemirror/state',\n '@codemirror/view',\n] as const;\n\nconst WEB_PLUGIN_RUNTIME_PROPERTIES: Record<(typeof WEB_PLUGIN_RUNTIME_SPECIFIERS)[number], string> = {\n react: 'react',\n 'react/jsx-runtime': 'reactJsxRuntime',\n 'react/jsx-dev-runtime': 'reactJsxDevRuntime',\n 'react-dom': 'reactDom',\n 'react-dom/client': 'reactDomClient',\n '@tanstack/store': 'tanstackStore',\n '@tanstack/react-store': 'tanstackReactStore',\n '@agimon-ai/doompi-core/web': 'webContracts',\n '@agimon-ai/doompi-web-components': 'webComponents',\n '@agimon-ai/doompi-web-security/browser': 'webSecurityBrowser',\n '@codemirror/state': 'codemirrorState',\n '@codemirror/view': 'codemirrorView',\n};\n\n/** Rollup expression for a shared module supplied by the session shell. */\nexport function webPluginRuntimeGlobal(specifier: (typeof WEB_PLUGIN_RUNTIME_SPECIFIERS)[number]): string {\n return `globalThis.DoomPiWebPluginRuntime.${WEB_PLUGIN_RUNTIME_PROPERTIES[specifier]}`;\n}\n\n/** Resolves generated JSX imports from the host instead of a plugin's optional React peer tree. */\nexport function webPluginRuntimeAliases(clientRoot: string): Alias[] {\n const runtimeRequire = createRequire(path.join(clientRoot, 'index.html'));\n return WEB_PLUGIN_RUNTIME_SPECIFIERS.filter((specifier) => specifier.startsWith('react/jsx-')).map((specifier) => ({\n find: new RegExp(`^${specifier.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')}$`, 'u'),\n replacement: runtimeRequire.resolve(specifier),\n }));\n}\n\n/**\n * Swaps the committed builtin registry modules for generated ones. A\n * resolveId hook rather than resolve.alias because aliases match raw import\n * specifiers while these two are known by their resolved paths. Both the\n * sync-time build and the dev server use it, so a plugin edit in dev is the\n * same module the bundle would carry.\n */\nexport function webPluginOverridePlugin(clientRoot: string, generated: SyncGeneratedModules): Plugin {\n const overrides = new Map([\n [path.join(clientRoot, 'app', 'webPlugins.generated.ts'), generated.clientModulePath],\n [path.join(clientRoot, 'styles', 'webPluginSources.generated.css'), generated.cssModulePath],\n ]);\n return {\n name: 'doompi-web-plugin-overrides',\n enforce: 'pre',\n async resolveId(source, importer, options) {\n const resolved = await this.resolve(source, importer, { ...options, skipSelf: true });\n if (!resolved) return null;\n return overrides.get(resolved.id) ?? null;\n },\n };\n}\n\n/**\n * The CSS sources module cannot ride the resolveId hook: Vite and Tailwind\n * resolve CSS @import through Vite's own id resolver, which consults aliases\n * but no plugin hooks. Without this the builtin (empty) @source list ships\n * and every plugin-only utility class is missing.\n */\nexport function webPluginCssAlias(generated: SyncGeneratedModules): Alias {\n return { find: /^\\.\\/webPluginSources\\.generated\\.css$/, replacement: generated.cssModulePath };\n}\n\n/** The plugin package roots the dev server should serve, from an explicit override or DOOMPI_ROOT. */\nexport function readDevPluginRoots(environment: NodeJS.ProcessEnv, homeDirectory: string): string[] {\n const explicit = environment[PLUGIN_ROOTS_ENV];\n if (explicit !== undefined && explicit !== '') {\n return devPluginRoots({ envValue: explicit, rootsFileText: undefined, delimiter: path.delimiter });\n }\n const repoRoot = environment[DOOMPI_ROOT_ENV];\n if (repoRoot === undefined || repoRoot === '') return [];\n try {\n const webDirectory = readSyncRegistration(repoRoot, homeDirectory)?.webDirectory;\n const rootsFile =\n webDirectory === null || webDirectory === undefined\n ? undefined\n : path.join(path.dirname(webDirectory), PLUGIN_ROOTS_FILE);\n return devPluginRoots({\n envValue: undefined,\n rootsFileText:\n rootsFile !== undefined && fs.existsSync(rootsFile) ? fs.readFileSync(rootsFile, 'utf8') : undefined,\n delimiter: path.delimiter,\n });\n } catch {\n return [];\n }\n}\n"],"mappings":";;;;;;;;;AAUA,MAAM,kBAAkB;;;;;;;;;;AAWxB,MAAa,gCAAgC;CAC3C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,gCAAgG;CACpG,OAAO;CACP,qBAAqB;CACrB,yBAAyB;CACzB,aAAa;CACb,oBAAoB;CACpB,mBAAmB;CACnB,yBAAyB;CACzB,8BAA8B;CAC9B,oCAAoC;CACpC,0CAA0C;CAC1C,qBAAqB;CACrB,oBAAoB;AACtB;;AAGA,SAAgB,uBAAuB,WAAmE;CACxG,OAAO,qCAAqC,8BAA8B;AAC5E;;AAGA,SAAgB,wBAAwB,YAA6B;CACnE,MAAM,kBAAA,GAAiBA,YAAAA,cAAAA,CAAcC,UAAAA,QAAK,KAAK,YAAY,YAAY,CAAC;CACxE,OAAO,8BAA8B,QAAQ,cAAc,UAAU,WAAW,YAAY,CAAC,CAAC,CAAC,KAAK,eAAe;EACjH,MAAM,IAAI,OAAO,IAAI,UAAU,QAAQ,uBAAuB,MAAM,EAAE,IAAI,GAAG;EAC7E,aAAa,eAAe,QAAQ,SAAS;CAC/C,EAAE;AACJ;;;;;;;;AASA,SAAgB,wBAAwB,YAAoB,WAAyC;CACnG,MAAM,4BAAY,IAAI,IAAI,CACxB,CAACA,UAAAA,QAAK,KAAK,YAAY,OAAO,yBAAyB,GAAG,UAAU,gBAAgB,GACpF,CAACA,UAAAA,QAAK,KAAK,YAAY,UAAU,gCAAgC,GAAG,UAAU,aAAa,CAC7F,CAAC;CACD,OAAO;EACL,MAAM;EACN,SAAS;EACT,MAAM,UAAU,QAAQ,UAAU,SAAS;GACzC,MAAM,WAAW,MAAM,KAAK,QAAQ,QAAQ,UAAU;IAAE,GAAG;IAAS,UAAU;GAAK,CAAC;GACpF,IAAI,CAAC,UAAU,OAAO;GACtB,OAAO,UAAU,IAAI,SAAS,EAAE,KAAK;EACvC;CACF;AACF;;;;;;;AAQA,SAAgB,kBAAkB,WAAwC;CACxE,OAAO;EAAE,MAAM;EAA0C,aAAa,UAAU;CAAc;AAChG;;AAGA,SAAgB,mBAAmB,aAAgC,eAAiC;CAClG,MAAM,WAAW,YAAYC,oBAAAA;CAC7B,IAAI,aAAa,KAAA,KAAa,aAAa,IACzC,OAAOC,oBAAAA,eAAe;EAAE,UAAU;EAAU,eAAe,KAAA;EAAW,WAAWF,UAAAA,QAAK;CAAU,CAAC;CAEnG,MAAM,WAAW,YAAY;CAC7B,IAAI,aAAa,KAAA,KAAa,aAAa,IAAI,OAAO,CAAC;CACvD,IAAI;EACF,MAAM,gBAAA,GAAeG,yCAAAA,qBAAAA,CAAqB,UAAU,aAAa,CAAC,EAAE;EACpE,MAAM,YACJ,iBAAiB,QAAQ,iBAAiB,KAAA,IACtC,KAAA,IACAH,UAAAA,QAAK,KAAKA,UAAAA,QAAK,QAAQ,YAAY,GAAGI,oBAAAA,iBAAiB;EAC7D,OAAOF,oBAAAA,eAAe;GACpB,UAAU,KAAA;GACV,eACE,cAAc,KAAA,KAAaG,QAAAA,QAAG,WAAW,SAAS,IAAIA,QAAAA,QAAG,aAAa,WAAW,MAAM,IAAI,KAAA;GAC7F,WAAWL,UAAAA,QAAK;EAClB,CAAC;CACH,QAAQ;EACN,OAAO,CAAC;CACV;AACF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SyncGeneratedModules } from "./webPluginGenerate.cjs";
|
|
2
|
+
import { Alias, Plugin } from "vite";
|
|
3
|
+
//#region src/builders/web/webPluginVite.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The modules the cockpit supplies page-wide, rather than each plugin
|
|
6
|
+
* carrying its own copy.
|
|
7
|
+
*
|
|
8
|
+
* Build-time metadata, and it stays here rather than in a browser-facing
|
|
9
|
+
* barrel on purpose: exporting it from doompi-core/web put the literal list
|
|
10
|
+
* into the shipped cockpit bundle, where a plugin's own specifier strings
|
|
11
|
+
* would then appear as data.
|
|
12
|
+
*/
|
|
13
|
+
export declare const WEB_PLUGIN_RUNTIME_SPECIFIERS: readonly ['react', 'react/jsx-runtime', 'react/jsx-dev-runtime', 'react-dom', 'react-dom/client', '@tanstack/store', '@tanstack/react-store', '@agimon-ai/doompi-core/web', '@agimon-ai/doompi-web-components', '@agimon-ai/doompi-web-security/browser', '@codemirror/state', '@codemirror/view'];
|
|
14
|
+
/** Rollup expression for a shared module supplied by the session shell. */
|
|
15
|
+
export declare function webPluginRuntimeGlobal(specifier: (typeof WEB_PLUGIN_RUNTIME_SPECIFIERS)[number]): string;
|
|
16
|
+
/** Resolves generated JSX imports from the host instead of a plugin's optional React peer tree. */
|
|
17
|
+
export declare function webPluginRuntimeAliases(clientRoot: string): Alias[];
|
|
18
|
+
/**
|
|
19
|
+
* Swaps the committed builtin registry modules for generated ones. A
|
|
20
|
+
* resolveId hook rather than resolve.alias because aliases match raw import
|
|
21
|
+
* specifiers while these two are known by their resolved paths. Both the
|
|
22
|
+
* sync-time build and the dev server use it, so a plugin edit in dev is the
|
|
23
|
+
* same module the bundle would carry.
|
|
24
|
+
*/
|
|
25
|
+
export declare function webPluginOverridePlugin(clientRoot: string, generated: SyncGeneratedModules): Plugin;
|
|
26
|
+
/**
|
|
27
|
+
* The CSS sources module cannot ride the resolveId hook: Vite and Tailwind
|
|
28
|
+
* resolve CSS @import through Vite's own id resolver, which consults aliases
|
|
29
|
+
* but no plugin hooks. Without this the builtin (empty) @source list ships
|
|
30
|
+
* and every plugin-only utility class is missing.
|
|
31
|
+
*/
|
|
32
|
+
export declare function webPluginCssAlias(generated: SyncGeneratedModules): Alias;
|
|
33
|
+
/** The plugin package roots the dev server should serve, from an explicit override or DOOMPI_ROOT. */
|
|
34
|
+
export declare function readDevPluginRoots(environment: NodeJS.ProcessEnv, homeDirectory: string): string[];
|
|
35
|
+
//#endregion
|
|
36
|
+
//# sourceMappingURL=webPluginVite.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webPluginVite.d.cts","names":[],"sources":["../../../src/builders/web/webPluginVite.ts"],"mappings":";;;;;;;;;;;;qBAqBa;;wBA+BG,uBAAuB,mBAAmB;;wBAK1C,wBAAwB,qBAAqB;;;;;;;;wBAe7C,wBAAwB,oBAAoB,WAAW,uBAAuB;;;;;;;wBAsB9E,kBAAkB,WAAW,uBAAuB;;wBAKpD,mBAAmB,aAAa,OAAO,YAAY"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SyncGeneratedModules } from "./webPluginGenerate.mjs";
|
|
2
|
+
import { Alias, Plugin } from "vite";
|
|
3
|
+
//#region src/builders/web/webPluginVite.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The modules the cockpit supplies page-wide, rather than each plugin
|
|
6
|
+
* carrying its own copy.
|
|
7
|
+
*
|
|
8
|
+
* Build-time metadata, and it stays here rather than in a browser-facing
|
|
9
|
+
* barrel on purpose: exporting it from doompi-core/web put the literal list
|
|
10
|
+
* into the shipped cockpit bundle, where a plugin's own specifier strings
|
|
11
|
+
* would then appear as data.
|
|
12
|
+
*/
|
|
13
|
+
export declare const WEB_PLUGIN_RUNTIME_SPECIFIERS: readonly ['react', 'react/jsx-runtime', 'react/jsx-dev-runtime', 'react-dom', 'react-dom/client', '@tanstack/store', '@tanstack/react-store', '@agimon-ai/doompi-core/web', '@agimon-ai/doompi-web-components', '@agimon-ai/doompi-web-security/browser', '@codemirror/state', '@codemirror/view'];
|
|
14
|
+
/** Rollup expression for a shared module supplied by the session shell. */
|
|
15
|
+
export declare function webPluginRuntimeGlobal(specifier: (typeof WEB_PLUGIN_RUNTIME_SPECIFIERS)[number]): string;
|
|
16
|
+
/** Resolves generated JSX imports from the host instead of a plugin's optional React peer tree. */
|
|
17
|
+
export declare function webPluginRuntimeAliases(clientRoot: string): Alias[];
|
|
18
|
+
/**
|
|
19
|
+
* Swaps the committed builtin registry modules for generated ones. A
|
|
20
|
+
* resolveId hook rather than resolve.alias because aliases match raw import
|
|
21
|
+
* specifiers while these two are known by their resolved paths. Both the
|
|
22
|
+
* sync-time build and the dev server use it, so a plugin edit in dev is the
|
|
23
|
+
* same module the bundle would carry.
|
|
24
|
+
*/
|
|
25
|
+
export declare function webPluginOverridePlugin(clientRoot: string, generated: SyncGeneratedModules): Plugin;
|
|
26
|
+
/**
|
|
27
|
+
* The CSS sources module cannot ride the resolveId hook: Vite and Tailwind
|
|
28
|
+
* resolve CSS @import through Vite's own id resolver, which consults aliases
|
|
29
|
+
* but no plugin hooks. Without this the builtin (empty) @source list ships
|
|
30
|
+
* and every plugin-only utility class is missing.
|
|
31
|
+
*/
|
|
32
|
+
export declare function webPluginCssAlias(generated: SyncGeneratedModules): Alias;
|
|
33
|
+
/** The plugin package roots the dev server should serve, from an explicit override or DOOMPI_ROOT. */
|
|
34
|
+
export declare function readDevPluginRoots(environment: NodeJS.ProcessEnv, homeDirectory: string): string[];
|
|
35
|
+
//#endregion
|
|
36
|
+
//# sourceMappingURL=webPluginVite.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webPluginVite.d.mts","names":[],"sources":["../../../src/builders/web/webPluginVite.ts"],"mappings":";;;;;;;;;;;;qBAqBa;;wBA+BG,uBAAuB,mBAAmB;;wBAK1C,wBAAwB,qBAAqB;;;;;;;;wBAe7C,wBAAwB,oBAAoB,WAAW,uBAAuB;;;;;;;wBAsB9E,kBAAkB,WAAW,uBAAuB;;wBAKpD,mBAAmB,aAAa,OAAO,YAAY"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { PLUGIN_ROOTS_ENV, PLUGIN_ROOTS_FILE, devPluginRoots } from "./webDevRoots.mjs";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import fs from "node:fs";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
import { readSyncRegistration } from "@agimon-ai/doompi-core/sync-registration";
|
|
6
|
+
//#region src/builders/web/webPluginVite.ts
|
|
7
|
+
const DOOMPI_ROOT_ENV = "DOOMPI_ROOT";
|
|
8
|
+
/**
|
|
9
|
+
* The modules the cockpit supplies page-wide, rather than each plugin
|
|
10
|
+
* carrying its own copy.
|
|
11
|
+
*
|
|
12
|
+
* Build-time metadata, and it stays here rather than in a browser-facing
|
|
13
|
+
* barrel on purpose: exporting it from doompi-core/web put the literal list
|
|
14
|
+
* into the shipped cockpit bundle, where a plugin's own specifier strings
|
|
15
|
+
* would then appear as data.
|
|
16
|
+
*/
|
|
17
|
+
const WEB_PLUGIN_RUNTIME_SPECIFIERS = [
|
|
18
|
+
"react",
|
|
19
|
+
"react/jsx-runtime",
|
|
20
|
+
"react/jsx-dev-runtime",
|
|
21
|
+
"react-dom",
|
|
22
|
+
"react-dom/client",
|
|
23
|
+
"@tanstack/store",
|
|
24
|
+
"@tanstack/react-store",
|
|
25
|
+
"@agimon-ai/doompi-core/web",
|
|
26
|
+
"@agimon-ai/doompi-web-components",
|
|
27
|
+
"@agimon-ai/doompi-web-security/browser",
|
|
28
|
+
"@codemirror/state",
|
|
29
|
+
"@codemirror/view"
|
|
30
|
+
];
|
|
31
|
+
const WEB_PLUGIN_RUNTIME_PROPERTIES = {
|
|
32
|
+
react: "react",
|
|
33
|
+
"react/jsx-runtime": "reactJsxRuntime",
|
|
34
|
+
"react/jsx-dev-runtime": "reactJsxDevRuntime",
|
|
35
|
+
"react-dom": "reactDom",
|
|
36
|
+
"react-dom/client": "reactDomClient",
|
|
37
|
+
"@tanstack/store": "tanstackStore",
|
|
38
|
+
"@tanstack/react-store": "tanstackReactStore",
|
|
39
|
+
"@agimon-ai/doompi-core/web": "webContracts",
|
|
40
|
+
"@agimon-ai/doompi-web-components": "webComponents",
|
|
41
|
+
"@agimon-ai/doompi-web-security/browser": "webSecurityBrowser",
|
|
42
|
+
"@codemirror/state": "codemirrorState",
|
|
43
|
+
"@codemirror/view": "codemirrorView"
|
|
44
|
+
};
|
|
45
|
+
/** Rollup expression for a shared module supplied by the session shell. */
|
|
46
|
+
function webPluginRuntimeGlobal(specifier) {
|
|
47
|
+
return `globalThis.DoomPiWebPluginRuntime.${WEB_PLUGIN_RUNTIME_PROPERTIES[specifier]}`;
|
|
48
|
+
}
|
|
49
|
+
/** Resolves generated JSX imports from the host instead of a plugin's optional React peer tree. */
|
|
50
|
+
function webPluginRuntimeAliases(clientRoot) {
|
|
51
|
+
const runtimeRequire = createRequire(path.join(clientRoot, "index.html"));
|
|
52
|
+
return WEB_PLUGIN_RUNTIME_SPECIFIERS.filter((specifier) => specifier.startsWith("react/jsx-")).map((specifier) => ({
|
|
53
|
+
find: new RegExp(`^${specifier.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}$`, "u"),
|
|
54
|
+
replacement: runtimeRequire.resolve(specifier)
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Swaps the committed builtin registry modules for generated ones. A
|
|
59
|
+
* resolveId hook rather than resolve.alias because aliases match raw import
|
|
60
|
+
* specifiers while these two are known by their resolved paths. Both the
|
|
61
|
+
* sync-time build and the dev server use it, so a plugin edit in dev is the
|
|
62
|
+
* same module the bundle would carry.
|
|
63
|
+
*/
|
|
64
|
+
function webPluginOverridePlugin(clientRoot, generated) {
|
|
65
|
+
const overrides = /* @__PURE__ */ new Map([[path.join(clientRoot, "app", "webPlugins.generated.ts"), generated.clientModulePath], [path.join(clientRoot, "styles", "webPluginSources.generated.css"), generated.cssModulePath]]);
|
|
66
|
+
return {
|
|
67
|
+
name: "doompi-web-plugin-overrides",
|
|
68
|
+
enforce: "pre",
|
|
69
|
+
async resolveId(source, importer, options) {
|
|
70
|
+
const resolved = await this.resolve(source, importer, {
|
|
71
|
+
...options,
|
|
72
|
+
skipSelf: true
|
|
73
|
+
});
|
|
74
|
+
if (!resolved) return null;
|
|
75
|
+
return overrides.get(resolved.id) ?? null;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The CSS sources module cannot ride the resolveId hook: Vite and Tailwind
|
|
81
|
+
* resolve CSS @import through Vite's own id resolver, which consults aliases
|
|
82
|
+
* but no plugin hooks. Without this the builtin (empty) @source list ships
|
|
83
|
+
* and every plugin-only utility class is missing.
|
|
84
|
+
*/
|
|
85
|
+
function webPluginCssAlias(generated) {
|
|
86
|
+
return {
|
|
87
|
+
find: /^\.\/webPluginSources\.generated\.css$/,
|
|
88
|
+
replacement: generated.cssModulePath
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/** The plugin package roots the dev server should serve, from an explicit override or DOOMPI_ROOT. */
|
|
92
|
+
function readDevPluginRoots(environment, homeDirectory) {
|
|
93
|
+
const explicit = environment[PLUGIN_ROOTS_ENV];
|
|
94
|
+
if (explicit !== void 0 && explicit !== "") return devPluginRoots({
|
|
95
|
+
envValue: explicit,
|
|
96
|
+
rootsFileText: void 0,
|
|
97
|
+
delimiter: path.delimiter
|
|
98
|
+
});
|
|
99
|
+
const repoRoot = environment[DOOMPI_ROOT_ENV];
|
|
100
|
+
if (repoRoot === void 0 || repoRoot === "") return [];
|
|
101
|
+
try {
|
|
102
|
+
const webDirectory = readSyncRegistration(repoRoot, homeDirectory)?.webDirectory;
|
|
103
|
+
const rootsFile = webDirectory === null || webDirectory === void 0 ? void 0 : path.join(path.dirname(webDirectory), PLUGIN_ROOTS_FILE);
|
|
104
|
+
return devPluginRoots({
|
|
105
|
+
envValue: void 0,
|
|
106
|
+
rootsFileText: rootsFile !== void 0 && fs.existsSync(rootsFile) ? fs.readFileSync(rootsFile, "utf8") : void 0,
|
|
107
|
+
delimiter: path.delimiter
|
|
108
|
+
});
|
|
109
|
+
} catch {
|
|
110
|
+
return [];
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
//#endregion
|
|
114
|
+
export { WEB_PLUGIN_RUNTIME_SPECIFIERS, readDevPluginRoots, webPluginCssAlias, webPluginOverridePlugin, webPluginRuntimeAliases, webPluginRuntimeGlobal };
|
|
115
|
+
|
|
116
|
+
//# sourceMappingURL=webPluginVite.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webPluginVite.mjs","names":[],"sources":["../../../src/builders/web/webPluginVite.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { createRequire } from 'node:module';\nimport path from 'node:path';\n\nimport { readSyncRegistration } from '@agimon-ai/doompi-core/sync-registration';\nimport type { Alias, Plugin } from 'vite';\n\nimport { devPluginRoots, PLUGIN_ROOTS_ENV, PLUGIN_ROOTS_FILE } from './webDevRoots';\nimport type { SyncGeneratedModules } from './webPluginGenerate';\n\nconst DOOMPI_ROOT_ENV = 'DOOMPI_ROOT';\n\n/**\n * The modules the cockpit supplies page-wide, rather than each plugin\n * carrying its own copy.\n *\n * Build-time metadata, and it stays here rather than in a browser-facing\n * barrel on purpose: exporting it from doompi-core/web put the literal list\n * into the shipped cockpit bundle, where a plugin's own specifier strings\n * would then appear as data.\n */\nexport const WEB_PLUGIN_RUNTIME_SPECIFIERS = [\n 'react',\n 'react/jsx-runtime',\n 'react/jsx-dev-runtime',\n 'react-dom',\n 'react-dom/client',\n '@tanstack/store',\n '@tanstack/react-store',\n '@agimon-ai/doompi-core/web',\n '@agimon-ai/doompi-web-components',\n '@agimon-ai/doompi-web-security/browser',\n '@codemirror/state',\n '@codemirror/view',\n] as const;\n\nconst WEB_PLUGIN_RUNTIME_PROPERTIES: Record<(typeof WEB_PLUGIN_RUNTIME_SPECIFIERS)[number], string> = {\n react: 'react',\n 'react/jsx-runtime': 'reactJsxRuntime',\n 'react/jsx-dev-runtime': 'reactJsxDevRuntime',\n 'react-dom': 'reactDom',\n 'react-dom/client': 'reactDomClient',\n '@tanstack/store': 'tanstackStore',\n '@tanstack/react-store': 'tanstackReactStore',\n '@agimon-ai/doompi-core/web': 'webContracts',\n '@agimon-ai/doompi-web-components': 'webComponents',\n '@agimon-ai/doompi-web-security/browser': 'webSecurityBrowser',\n '@codemirror/state': 'codemirrorState',\n '@codemirror/view': 'codemirrorView',\n};\n\n/** Rollup expression for a shared module supplied by the session shell. */\nexport function webPluginRuntimeGlobal(specifier: (typeof WEB_PLUGIN_RUNTIME_SPECIFIERS)[number]): string {\n return `globalThis.DoomPiWebPluginRuntime.${WEB_PLUGIN_RUNTIME_PROPERTIES[specifier]}`;\n}\n\n/** Resolves generated JSX imports from the host instead of a plugin's optional React peer tree. */\nexport function webPluginRuntimeAliases(clientRoot: string): Alias[] {\n const runtimeRequire = createRequire(path.join(clientRoot, 'index.html'));\n return WEB_PLUGIN_RUNTIME_SPECIFIERS.filter((specifier) => specifier.startsWith('react/jsx-')).map((specifier) => ({\n find: new RegExp(`^${specifier.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')}$`, 'u'),\n replacement: runtimeRequire.resolve(specifier),\n }));\n}\n\n/**\n * Swaps the committed builtin registry modules for generated ones. A\n * resolveId hook rather than resolve.alias because aliases match raw import\n * specifiers while these two are known by their resolved paths. Both the\n * sync-time build and the dev server use it, so a plugin edit in dev is the\n * same module the bundle would carry.\n */\nexport function webPluginOverridePlugin(clientRoot: string, generated: SyncGeneratedModules): Plugin {\n const overrides = new Map([\n [path.join(clientRoot, 'app', 'webPlugins.generated.ts'), generated.clientModulePath],\n [path.join(clientRoot, 'styles', 'webPluginSources.generated.css'), generated.cssModulePath],\n ]);\n return {\n name: 'doompi-web-plugin-overrides',\n enforce: 'pre',\n async resolveId(source, importer, options) {\n const resolved = await this.resolve(source, importer, { ...options, skipSelf: true });\n if (!resolved) return null;\n return overrides.get(resolved.id) ?? null;\n },\n };\n}\n\n/**\n * The CSS sources module cannot ride the resolveId hook: Vite and Tailwind\n * resolve CSS @import through Vite's own id resolver, which consults aliases\n * but no plugin hooks. Without this the builtin (empty) @source list ships\n * and every plugin-only utility class is missing.\n */\nexport function webPluginCssAlias(generated: SyncGeneratedModules): Alias {\n return { find: /^\\.\\/webPluginSources\\.generated\\.css$/, replacement: generated.cssModulePath };\n}\n\n/** The plugin package roots the dev server should serve, from an explicit override or DOOMPI_ROOT. */\nexport function readDevPluginRoots(environment: NodeJS.ProcessEnv, homeDirectory: string): string[] {\n const explicit = environment[PLUGIN_ROOTS_ENV];\n if (explicit !== undefined && explicit !== '') {\n return devPluginRoots({ envValue: explicit, rootsFileText: undefined, delimiter: path.delimiter });\n }\n const repoRoot = environment[DOOMPI_ROOT_ENV];\n if (repoRoot === undefined || repoRoot === '') return [];\n try {\n const webDirectory = readSyncRegistration(repoRoot, homeDirectory)?.webDirectory;\n const rootsFile =\n webDirectory === null || webDirectory === undefined\n ? undefined\n : path.join(path.dirname(webDirectory), PLUGIN_ROOTS_FILE);\n return devPluginRoots({\n envValue: undefined,\n rootsFileText:\n rootsFile !== undefined && fs.existsSync(rootsFile) ? fs.readFileSync(rootsFile, 'utf8') : undefined,\n delimiter: path.delimiter,\n });\n } catch {\n return [];\n }\n}\n"],"mappings":";;;;;;AAUA,MAAM,kBAAkB;;;;;;;;;;AAWxB,MAAa,gCAAgC;CAC3C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,gCAAgG;CACpG,OAAO;CACP,qBAAqB;CACrB,yBAAyB;CACzB,aAAa;CACb,oBAAoB;CACpB,mBAAmB;CACnB,yBAAyB;CACzB,8BAA8B;CAC9B,oCAAoC;CACpC,0CAA0C;CAC1C,qBAAqB;CACrB,oBAAoB;AACtB;;AAGA,SAAgB,uBAAuB,WAAmE;CACxG,OAAO,qCAAqC,8BAA8B;AAC5E;;AAGA,SAAgB,wBAAwB,YAA6B;CACnE,MAAM,iBAAiB,cAAc,KAAK,KAAK,YAAY,YAAY,CAAC;CACxE,OAAO,8BAA8B,QAAQ,cAAc,UAAU,WAAW,YAAY,CAAC,CAAC,CAAC,KAAK,eAAe;EACjH,MAAM,IAAI,OAAO,IAAI,UAAU,QAAQ,uBAAuB,MAAM,EAAE,IAAI,GAAG;EAC7E,aAAa,eAAe,QAAQ,SAAS;CAC/C,EAAE;AACJ;;;;;;;;AASA,SAAgB,wBAAwB,YAAoB,WAAyC;CACnG,MAAM,4BAAY,IAAI,IAAI,CACxB,CAAC,KAAK,KAAK,YAAY,OAAO,yBAAyB,GAAG,UAAU,gBAAgB,GACpF,CAAC,KAAK,KAAK,YAAY,UAAU,gCAAgC,GAAG,UAAU,aAAa,CAC7F,CAAC;CACD,OAAO;EACL,MAAM;EACN,SAAS;EACT,MAAM,UAAU,QAAQ,UAAU,SAAS;GACzC,MAAM,WAAW,MAAM,KAAK,QAAQ,QAAQ,UAAU;IAAE,GAAG;IAAS,UAAU;GAAK,CAAC;GACpF,IAAI,CAAC,UAAU,OAAO;GACtB,OAAO,UAAU,IAAI,SAAS,EAAE,KAAK;EACvC;CACF;AACF;;;;;;;AAQA,SAAgB,kBAAkB,WAAwC;CACxE,OAAO;EAAE,MAAM;EAA0C,aAAa,UAAU;CAAc;AAChG;;AAGA,SAAgB,mBAAmB,aAAgC,eAAiC;CAClG,MAAM,WAAW,YAAY;CAC7B,IAAI,aAAa,KAAA,KAAa,aAAa,IACzC,OAAO,eAAe;EAAE,UAAU;EAAU,eAAe,KAAA;EAAW,WAAW,KAAK;CAAU,CAAC;CAEnG,MAAM,WAAW,YAAY;CAC7B,IAAI,aAAa,KAAA,KAAa,aAAa,IAAI,OAAO,CAAC;CACvD,IAAI;EACF,MAAM,eAAe,qBAAqB,UAAU,aAAa,CAAC,EAAE;EACpE,MAAM,YACJ,iBAAiB,QAAQ,iBAAiB,KAAA,IACtC,KAAA,IACA,KAAK,KAAK,KAAK,QAAQ,YAAY,GAAG,iBAAiB;EAC7D,OAAO,eAAe;GACpB,UAAU,KAAA;GACV,eACE,cAAc,KAAA,KAAa,GAAG,WAAW,SAAS,IAAI,GAAG,aAAa,WAAW,MAAM,IAAI,KAAA;GAC7F,WAAW,KAAK;EAClB,CAAC;CACH,QAAQ;EACN,OAAO,CAAC;CACV;AACF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_index = require("./web/index.cjs");
|
|
3
|
+
const require_bundleAssetPolicy = require("./web/bundleAssetPolicy.cjs");
|
|
4
|
+
const require_webDevRoots = require("./web/webDevRoots.cjs");
|
|
5
|
+
const require_webPluginManifest = require("./web/webPluginManifest.cjs");
|
|
6
|
+
const require_webPluginScan = require("./web/webPluginScan.cjs");
|
|
7
|
+
const require_webPluginGenerate = require("./web/webPluginGenerate.cjs");
|
|
8
|
+
const require_webPluginVite = require("./web/webPluginVite.cjs");
|
|
9
|
+
const require_bundle = require("./web/bundle.cjs");
|
|
10
|
+
exports.BUILTIN_CLIENT_MODULE = require_webPluginGenerate.BUILTIN_CLIENT_MODULE;
|
|
11
|
+
exports.BUILTIN_CSS_MODULE = require_webPluginGenerate.BUILTIN_CSS_MODULE;
|
|
12
|
+
exports.DEFAULT_REGISTRATION_ORDER = require_webPluginManifest.DEFAULT_REGISTRATION_ORDER;
|
|
13
|
+
exports.PLUGIN_ROOTS_ENV = require_webDevRoots.PLUGIN_ROOTS_ENV;
|
|
14
|
+
exports.PLUGIN_ROOTS_FILE = require_webDevRoots.PLUGIN_ROOTS_FILE;
|
|
15
|
+
exports.WEB_PLUGIN_RUNTIME_SPECIFIERS = require_webPluginVite.WEB_PLUGIN_RUNTIME_SPECIFIERS;
|
|
16
|
+
exports.WebPluginManifestError = require_webPluginManifest.WebPluginManifestError;
|
|
17
|
+
exports.bundleAssetPolicyPlugin = require_bundleAssetPolicy.bundleAssetPolicyPlugin;
|
|
18
|
+
exports.bundleCockpitWeb = require_bundle.bundleCockpitWeb;
|
|
19
|
+
exports.classifyOptionalBundleAssets = require_bundleAssetPolicy.classifyOptionalBundleAssets;
|
|
20
|
+
exports.declaredPluginsOf = require_webPluginManifest.declaredPluginsOf;
|
|
21
|
+
exports.devPluginRoots = require_webDevRoots.devPluginRoots;
|
|
22
|
+
exports.ensureBuiltinWebPluginModules = require_webPluginGenerate.ensureBuiltinWebPluginModules;
|
|
23
|
+
exports.orderDeclaredPlugins = require_webPluginManifest.orderDeclaredPlugins;
|
|
24
|
+
exports.pluginBlocksOf = require_webPluginManifest.pluginBlocksOf;
|
|
25
|
+
exports.readDevPluginRoots = require_webPluginVite.readDevPluginRoots;
|
|
26
|
+
exports.renderBuiltinWebPluginModules = require_webPluginGenerate.renderBuiltinWebPluginModules;
|
|
27
|
+
exports.scanWebPlugins = require_webPluginScan.scanWebPlugins;
|
|
28
|
+
exports.syncWebBundle = require_index.syncWebBundle;
|
|
29
|
+
exports.webPluginCssAlias = require_webPluginVite.webPluginCssAlias;
|
|
30
|
+
exports.webPluginOverridePlugin = require_webPluginVite.webPluginOverridePlugin;
|
|
31
|
+
exports.webPluginRuntimeAliases = require_webPluginVite.webPluginRuntimeAliases;
|
|
32
|
+
exports.webPluginRuntimeGlobal = require_webPluginVite.webPluginRuntimeGlobal;
|
|
33
|
+
exports.writeSyncWebPluginModules = require_webPluginGenerate.writeSyncWebPluginModules;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WebBundleSyncInput, WebBundleSyncResult, syncWebBundle } from "./web/index.cjs";
|
|
2
|
+
import { BundleCockpitWebOptions, BundleCockpitWebResult, bundleCockpitWeb } from "./web/bundle.cjs";
|
|
3
|
+
import { DEFAULT_REGISTRATION_ORDER, DeclaredWebPlugin, WebPluginEntryDeclaration, WebPluginManifestError, declaredPluginsOf, orderDeclaredPlugins, pluginBlocksOf } from "./web/webPluginManifest.cjs";
|
|
4
|
+
import { BUILTIN_CLIENT_MODULE, BUILTIN_CSS_MODULE, SyncGeneratedModules, ensureBuiltinWebPluginModules, renderBuiltinWebPluginModules, writeSyncWebPluginModules } from "./web/webPluginGenerate.cjs";
|
|
5
|
+
import { scanWebPlugins } from "./web/webPluginScan.cjs";
|
|
6
|
+
import { WEB_PLUGIN_RUNTIME_SPECIFIERS, readDevPluginRoots, webPluginCssAlias, webPluginOverridePlugin, webPluginRuntimeAliases, webPluginRuntimeGlobal } from "./web/webPluginVite.cjs";
|
|
7
|
+
import { bundleAssetPolicyPlugin, classifyOptionalBundleAssets } from "./web/bundleAssetPolicy.cjs";
|
|
8
|
+
import { DevPluginRootsInput, PLUGIN_ROOTS_ENV, PLUGIN_ROOTS_FILE, devPluginRoots } from "./web/webDevRoots.cjs";
|
|
9
|
+
export { BUILTIN_CLIENT_MODULE, BUILTIN_CSS_MODULE, BundleCockpitWebOptions, BundleCockpitWebResult, DEFAULT_REGISTRATION_ORDER, DeclaredWebPlugin, DevPluginRootsInput, PLUGIN_ROOTS_ENV, PLUGIN_ROOTS_FILE, SyncGeneratedModules, WEB_PLUGIN_RUNTIME_SPECIFIERS, WebBundleSyncInput, WebBundleSyncResult, WebPluginEntryDeclaration, WebPluginManifestError, bundleAssetPolicyPlugin, bundleCockpitWeb, classifyOptionalBundleAssets, declaredPluginsOf, devPluginRoots, ensureBuiltinWebPluginModules, orderDeclaredPlugins, pluginBlocksOf, readDevPluginRoots, renderBuiltinWebPluginModules, scanWebPlugins, syncWebBundle, webPluginCssAlias, webPluginOverridePlugin, webPluginRuntimeAliases, webPluginRuntimeGlobal, writeSyncWebPluginModules };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WebBundleSyncInput, WebBundleSyncResult, syncWebBundle } from "./web/index.mjs";
|
|
2
|
+
import { BundleCockpitWebOptions, BundleCockpitWebResult, bundleCockpitWeb } from "./web/bundle.mjs";
|
|
3
|
+
import { DEFAULT_REGISTRATION_ORDER, DeclaredWebPlugin, WebPluginEntryDeclaration, WebPluginManifestError, declaredPluginsOf, orderDeclaredPlugins, pluginBlocksOf } from "./web/webPluginManifest.mjs";
|
|
4
|
+
import { BUILTIN_CLIENT_MODULE, BUILTIN_CSS_MODULE, SyncGeneratedModules, ensureBuiltinWebPluginModules, renderBuiltinWebPluginModules, writeSyncWebPluginModules } from "./web/webPluginGenerate.mjs";
|
|
5
|
+
import { scanWebPlugins } from "./web/webPluginScan.mjs";
|
|
6
|
+
import { WEB_PLUGIN_RUNTIME_SPECIFIERS, readDevPluginRoots, webPluginCssAlias, webPluginOverridePlugin, webPluginRuntimeAliases, webPluginRuntimeGlobal } from "./web/webPluginVite.mjs";
|
|
7
|
+
import { bundleAssetPolicyPlugin, classifyOptionalBundleAssets } from "./web/bundleAssetPolicy.mjs";
|
|
8
|
+
import { DevPluginRootsInput, PLUGIN_ROOTS_ENV, PLUGIN_ROOTS_FILE, devPluginRoots } from "./web/webDevRoots.mjs";
|
|
9
|
+
export { BUILTIN_CLIENT_MODULE, BUILTIN_CSS_MODULE, BundleCockpitWebOptions, BundleCockpitWebResult, DEFAULT_REGISTRATION_ORDER, DeclaredWebPlugin, DevPluginRootsInput, PLUGIN_ROOTS_ENV, PLUGIN_ROOTS_FILE, SyncGeneratedModules, WEB_PLUGIN_RUNTIME_SPECIFIERS, WebBundleSyncInput, WebBundleSyncResult, WebPluginEntryDeclaration, WebPluginManifestError, bundleAssetPolicyPlugin, bundleCockpitWeb, classifyOptionalBundleAssets, declaredPluginsOf, devPluginRoots, ensureBuiltinWebPluginModules, orderDeclaredPlugins, pluginBlocksOf, readDevPluginRoots, renderBuiltinWebPluginModules, scanWebPlugins, syncWebBundle, webPluginCssAlias, webPluginOverridePlugin, webPluginRuntimeAliases, webPluginRuntimeGlobal, writeSyncWebPluginModules };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { syncWebBundle } from "./web/index.mjs";
|
|
2
|
+
import { bundleAssetPolicyPlugin, classifyOptionalBundleAssets } from "./web/bundleAssetPolicy.mjs";
|
|
3
|
+
import { PLUGIN_ROOTS_ENV, PLUGIN_ROOTS_FILE, devPluginRoots } from "./web/webDevRoots.mjs";
|
|
4
|
+
import { DEFAULT_REGISTRATION_ORDER, WebPluginManifestError, declaredPluginsOf, orderDeclaredPlugins, pluginBlocksOf } from "./web/webPluginManifest.mjs";
|
|
5
|
+
import { scanWebPlugins } from "./web/webPluginScan.mjs";
|
|
6
|
+
import { BUILTIN_CLIENT_MODULE, BUILTIN_CSS_MODULE, ensureBuiltinWebPluginModules, renderBuiltinWebPluginModules, writeSyncWebPluginModules } from "./web/webPluginGenerate.mjs";
|
|
7
|
+
import { WEB_PLUGIN_RUNTIME_SPECIFIERS, readDevPluginRoots, webPluginCssAlias, webPluginOverridePlugin, webPluginRuntimeAliases, webPluginRuntimeGlobal } from "./web/webPluginVite.mjs";
|
|
8
|
+
import { bundleCockpitWeb } from "./web/bundle.mjs";
|
|
9
|
+
export { BUILTIN_CLIENT_MODULE, BUILTIN_CSS_MODULE, DEFAULT_REGISTRATION_ORDER, PLUGIN_ROOTS_ENV, PLUGIN_ROOTS_FILE, WEB_PLUGIN_RUNTIME_SPECIFIERS, WebPluginManifestError, bundleAssetPolicyPlugin, bundleCockpitWeb, classifyOptionalBundleAssets, declaredPluginsOf, devPluginRoots, ensureBuiltinWebPluginModules, orderDeclaredPlugins, pluginBlocksOf, readDevPluginRoots, renderBuiltinWebPluginModules, scanWebPlugins, syncWebBundle, webPluginCssAlias, webPluginOverridePlugin, webPluginRuntimeAliases, webPluginRuntimeGlobal, writeSyncWebPluginModules };
|