@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":"runtime.mjs","names":[],"sources":["../../../src/builders/server/runtime.ts"],"sourcesContent":["import crypto from 'node:crypto';\nimport fs from 'node:fs';\nimport os from 'node:os';\nimport path from 'node:path';\n\nimport { globalDoomConfigDirectory } from '@agimon-ai/doompi-config/config';\nimport { filterHookDisabledLayers, loadMajorModesConfig, resolveLayers } from '@agimon-ai/doompi-config/majorModes';\nimport { createHeadlessHub, type HeadlessHub } from '@agimon-ai/doompi-core/headless-hub';\nimport { serveHeadlessServer } from '@agimon-ai/doompi-core/headless-server';\nimport type { HeadlessSessionHost, HeadlessSessionHostOptions } from '@agimon-ai/doompi-core/headless-session-host';\nimport { createHeadlessSessionManager } from '@agimon-ai/doompi-core/headless-session-manager';\nimport { createOpenSessionRegistry, listSavedSessions, readSqliteTranscript } from '@agimon-ai/doompi-core/history';\nimport type { OpenSessionRecord } from '@agimon-ai/doompi-core/history';\nimport type {\n DoomHubSessionApiRequest,\n DoomHubSessionCreateRequest,\n DoomHubSessionScope,\n} from '@agimon-ai/doompi-core/hub-channel';\nimport { serveSessionApis, type PackageApiServer } from '@agimon-ai/doompi-core/package-api-server';\nimport { piAgentDirectory } from '@agimon-ai/doompi-core/pi-settings';\nimport { createRemoteRuntime, type RemoteRuntime } from '@agimon-ai/doompi-core/remote-runtime';\nimport type { HeadlessSessionManager } from '@agimon-ai/doompi-core/runtime-headless-session-manager';\nimport { createHarnessTelemetry } from '@agimon-ai/doompi-core/runtime-log-sink-telemetry';\nimport { loadServerBundle, resolveServerBundleSource } from '@agimon-ai/doompi-core/server-facet';\nimport { createServerTelemetry } from '@agimon-ai/doompi-core/server-telemetry';\nimport { resolveSyncLocation } from '@agimon-ai/doompi-core/sync-location';\nimport { readSyncRegistration } from '@agimon-ai/doompi-core/sync-registration';\nimport { createWebCompositions } from '@agimon-ai/doompi-core/web-compositions';\nimport { readMinorModeCatalog } from '@agimon-ai/doompi-minor-mode';\nimport WebSocket from 'ws';\n\nimport { HARNESS_STATE_KEYS, HARNESS_STATE_POINTER } from '../../composition/harnessState';\nimport { findRepositoryRoot } from '../../composition/repository';\nimport { readSyncDrift } from '../../composition/syncDrift';\nimport { readSyncState } from '../../composition/syncState';\nimport { buildHarnessContext } from '../cli/harnessContext';\nimport { publishHeadlessSelectionStatus } from './selectionStatus';\nimport { resolveSessionIdentity } from './sessionArguments';\nimport type { ServeOptions, ServerRuntimeEnvironment } from './types';\nconst TELEMETRY_SHUTDOWN_TIMEOUT_MS = 2_000;\n\nasync function bounded(operation: Promise<unknown>, label: string, notice: (message: string) => void): Promise<void> {\n let timeout: NodeJS.Timeout | undefined;\n try {\n await Promise.race([\n operation,\n new Promise<void>((resolve) => {\n timeout = setTimeout(resolve, TELEMETRY_SHUTDOWN_TIMEOUT_MS);\n }),\n ]);\n } catch (error) {\n notice(`${label} failed: ${error instanceof Error ? error.message : String(error)}`);\n } finally {\n if (timeout) clearTimeout(timeout);\n }\n}\n\nexport async function runServerRuntime(options: ServeOptions, runtime: ServerRuntimeEnvironment): Promise<number> {\n const { cwd: baseCwd, environment: baseEnvironment, notice, resolveHarnessOptions, signal, syncWorkspace } = runtime;\n const telemetry = createServerTelemetry({ cwd: baseCwd, env: baseEnvironment, warn: notice });\n // Beside the journals it names, because a record pointing at a sessions\n // directory it is not stored next to is a record that can outlive its target.\n const openSessions = createOpenSessionRegistry({\n directory: path.join(piAgentDirectory(baseEnvironment), 'server'),\n onNotice: notice,\n });\n let nextEventLoopTick = performance.now() + 1_000;\n const eventLoopMonitor = setInterval(() => {\n const now = performance.now();\n const delay = Math.max(0, now - nextEventLoopTick);\n nextEventLoopTick = now + 1_000;\n if (delay >= 100)\n void telemetry\n .recordEvent('doompi_server.event_loop_delay', { duration_ms: Math.round(delay) })\n .catch((error: unknown) => notice(`event loop telemetry failed: ${String(error)}`));\n }, 1_000);\n eventLoopMonitor.unref();\n const harnessTelemetry = createHarnessTelemetry({\n cwd: baseCwd,\n env: baseEnvironment,\n warn: notice,\n deferSpans: true,\n });\n const baseSessionManager = createHeadlessSessionManager({\n publishSelectionStatus: publishHeadlessSelectionStatus,\n contextGroups: (context) =>\n (readMinorModeCatalog(context)?.list() ?? [])\n .filter(({ state }) => state.activation === 'active')\n .map(({ descriptor }) => ({ id: descriptor.id, label: descriptor.label, kind: 'minor' })),\n });\n type SessionSetup = { cleanup: () => Promise<void>; bundle: Awaited<ReturnType<typeof loadServerBundle>> };\n type SessionArtifacts = SessionSetup & { apis: PackageApiServer };\n const pendingSessions = new Map<string, SessionSetup>();\n const sessionArtifacts = new Map<string, SessionArtifacts>();\n let mountSessionApis:\n | ((options: HeadlessSessionHostOptions, host: HeadlessSessionHost) => Promise<PackageApiServer>)\n | undefined;\n /**\n * Shutdown runs every session through the same close path a user-initiated\n * close uses, so without this the registry would be emptied by the very event\n * it exists to survive.\n */\n let shuttingDown = false;\n\n const closeManagedSession = async (sessionId: string): Promise<void> => {\n if (!shuttingDown) openSessions.remove(sessionId);\n const artifacts = sessionArtifacts.get(sessionId);\n sessionArtifacts.delete(sessionId);\n webCompositions?.remove({ scope: 'session', sessionId });\n const failures: unknown[] = [];\n try {\n await artifacts?.apis.close();\n } catch (error) {\n failures.push(error);\n }\n try {\n await artifacts?.cleanup();\n } catch (error) {\n failures.push(error);\n }\n try {\n await baseSessionManager.closeSession(sessionId);\n } catch (error) {\n failures.push(error);\n }\n if (failures.length > 0) throw new AggregateError(failures, `Session '${sessionId}' shutdown failed`);\n };\n\n const sessionManager: HeadlessSessionManager = {\n async create(sessionOptions) {\n const setup = pendingSessions.get(sessionOptions.sessionId);\n let host: HeadlessSessionHost;\n try {\n host = await baseSessionManager.create(sessionOptions);\n } catch (error) {\n if (setup !== undefined && pendingSessions.delete(sessionOptions.sessionId))\n await setup.cleanup().catch((cleanupError: unknown) => notice(String(cleanupError)));\n throw error;\n }\n if (setup === undefined || mountSessionApis === undefined) return host;\n try {\n const apis = await mountSessionApis(sessionOptions, host);\n pendingSessions.delete(sessionOptions.sessionId);\n sessionArtifacts.set(sessionOptions.sessionId, { ...setup, apis });\n return host;\n } catch (error) {\n pendingSessions.delete(sessionOptions.sessionId);\n await baseSessionManager\n .closeSession(sessionOptions.sessionId)\n .catch((closeError: unknown) => notice(String(closeError)));\n await setup.cleanup().catch((cleanupError: unknown) => notice(String(cleanupError)));\n throw error;\n }\n },\n get: (sessionId) => baseSessionManager.get(sessionId),\n sessions: () => baseSessionManager.sessions(),\n closeSession: closeManagedSession,\n async close() {\n const ids = baseSessionManager.sessions().map((session) => session.runtime.sessionId);\n const outcomes = await Promise.allSettled(ids.map((id) => closeManagedSession(id)));\n const failures = outcomes\n .filter((outcome): outcome is PromiseRejectedResult => outcome.status === 'rejected')\n .map((outcome) => outcome.reason);\n if (failures.length > 0) throw new AggregateError(failures, 'Headless session shutdown failed');\n },\n };\n\n let requestSessionApi: (\n scope: DoomHubSessionScope,\n request: DoomHubSessionApiRequest,\n ) => Promise<Response> = async () => Response.json({ error: 'Session API unavailable.' }, { status: 404 });\n let openSession: (\n request: DoomHubSessionCreateRequest,\n sessionId?: string,\n ) => Promise<DoomHubSessionScope> = async () => {\n throw new Error('The cockpit session service is not ready.');\n };\n let admitWorkspace: (root: string) => Promise<{ id: string; root: string }> = async () => {\n throw new Error('Workspace admission is not ready.');\n };\n let hub!: HeadlessHub;\n hub = createHeadlessHub({\n manager: sessionManager,\n admitWorkspace: (root) => admitWorkspace(root),\n onWorkspaceRemoved: (workspaceId) => webCompositions?.remove({ scope: 'workspace', workspaceId }),\n createSession: (request) => openSession(request),\n onNotice: notice,\n hubToken: () => attachToken,\n requestSessionApi: (scope, request) => requestSessionApi(scope, request),\n });\n let harnessContext: Awaited<ReturnType<typeof buildHarnessContext>> | undefined;\n let cockpit: Awaited<ReturnType<typeof serveHeadlessServer>> | undefined;\n let remoteRuntime: RemoteRuntime | undefined;\n let attachToken: string | undefined;\n let webCompositions: ReturnType<typeof createWebCompositions> | undefined;\n\n try {\n await telemetry.runInSpan('doompi_server.startup', {}, async () => {\n const token = fs.readFileSync(options.tokenFile, 'utf8').trim();\n if (!token) throw new Error('The attach token file is empty.');\n attachToken = token;\n\n const resolved = resolveSessionIdentity(options.agentArgs, {\n sessionId: options.sessionId ?? crypto.randomUUID(),\n sessionName: options.sessionName,\n });\n\n const homeDirectory = baseEnvironment.HOME ?? os.homedir();\n const globalRoot = globalDoomConfigDirectory(homeDirectory);\n webCompositions = createWebCompositions(path.join(globalRoot, 'server'), notice);\n const loadComposition = async (\n root: string,\n scope: 'global' | 'workspace' | 'session',\n selection?: { root: string; majorMode: string; activeLayers: string[] },\n ) => {\n const registration = readSyncRegistration(root, homeDirectory);\n const source = resolveServerBundleSource({ registration });\n if (source.kind !== 'descriptor')\n throw new Error(`Run the scoped DoomPi sync for '${root}' before opening it.`);\n const selected =\n selection ??\n (() => {\n const config = loadMajorModesConfig(root, homeDirectory);\n const majorMode = config.defaultMajorMode;\n return { root, majorMode, activeLayers: resolveLayers(config, majorMode) };\n })();\n return loadServerBundle(scope, {\n ...source,\n ...selected,\n retainCandidates: scope === 'session',\n onNotice: notice,\n });\n };\n const sharedApiContext = {\n homeDirectory,\n environment: baseEnvironment,\n hubToken: token,\n sessionService: hub.sessionService,\n directEvents: hub.directEvents,\n repositories: () =>\n hub.workspaces().map((workspace) => ({\n id: workspace.id,\n path: workspace.root,\n name: workspace.root.split('/').at(-1) ?? workspace.id,\n active: hub.snapshot().some((session) => session.workspaceId === workspace.id),\n })),\n resolveRepository: (id: string) => hub.workspaces().find((workspace) => workspace.id === id)?.root,\n readRepositorySync: (id: string) => {\n const root = hub.workspaces().find((workspace) => workspace.id === id)?.root;\n if (!root) return undefined;\n const drift = readSyncDrift({ repoRoot: root, homeDirectory, requireWebBundle: true });\n const state = readSyncState(root, homeDirectory);\n return { ...drift, mcpProjection: state?.fileState.mcpProjection };\n },\n onNotice: notice,\n };\n const globalBundle = await loadComposition(globalRoot, 'global');\n webCompositions.publishShell(readSyncRegistration(globalRoot, homeDirectory)!);\n remoteRuntime = createRemoteRuntime({\n homeDirectory,\n registrationToken: token,\n bundleTrust: () => webCompositions?.shellTrust(),\n onNotice: notice,\n forward: async (request) => {\n if (!cockpit || !attachToken)\n return Response.json({ error: 'The headless server is not ready.' }, { status: 503 });\n const from = new URL(request.url);\n const headers = new Headers(request.headers);\n headers.set('x-doompi-token', attachToken);\n return fetch(new URL(`${from.pathname}${from.search}`, cockpit.url), new Request(request, { headers }));\n },\n connectProtocol: (pathname) => {\n if (!cockpit || !attachToken) throw new Error('The headless protocol listener is not ready.');\n const url = new URL(pathname, cockpit.url);\n url.protocol = 'ws:';\n return new WebSocket(url, { headers: { 'x-doompi-token': attachToken } });\n },\n });\n await hub.mountFacets(globalBundle.facets, {\n ...sharedApiContext,\n scope: 'global',\n remoteControl: { fetch: (request: Request) => remoteRuntime!.fetchLocal(request) },\n });\n webCompositions.publish(\n { scope: 'global' },\n readSyncRegistration(globalRoot, homeDirectory)!,\n hub.channelTypes(),\n );\n const admissions = new Map<string, Promise<{ id: string; root: string }>>();\n admitWorkspace = async (from) => {\n const root = fs.realpathSync(findRepositoryRoot(from));\n const id = resolveSyncLocation(root, homeDirectory).identity.worktreeId;\n const existing = hub.workspaces().find((workspace) => workspace.id === id);\n if (existing) return existing;\n const pending = admissions.get(id);\n if (pending) return pending;\n const admission = (async () => {\n const syncEnvironment: NodeJS.ProcessEnv = { ...baseEnvironment, DOOMPI_ROOT: root };\n for (const key of [HARNESS_STATE_POINTER, ...Object.values(HARNESS_STATE_KEYS)]) delete syncEnvironment[key];\n await syncWorkspace(root, syncEnvironment);\n const bundle = await loadComposition(root, 'workspace');\n await hub.mountFacets(bundle.facets, {\n ...sharedApiContext,\n scope: 'workspace',\n workspaceId: id,\n workspaceRoot: root,\n cwd: root,\n resolveRepository: (requestedId) => (requestedId === id ? root : undefined),\n });\n webCompositions?.publish(\n { scope: 'workspace', workspaceId: id },\n readSyncRegistration(root, homeDirectory)!,\n hub.channelTypes(),\n );\n return { id, root };\n })();\n admissions.set(id, admission);\n try {\n return await admission;\n } finally {\n admissions.delete(id);\n }\n };\n\n const sessionHostOptions = (\n context: Awaited<ReturnType<typeof buildHarnessContext>>,\n bundle: Awaited<ReturnType<typeof loadServerBundle>>,\n identity: {\n sessionId: string;\n sessionName: string;\n parentSessionId?: string;\n sessionProvenance?: string;\n },\n ): HeadlessSessionHostOptions => {\n const policyOptions = context.options;\n const sessionSelection = {\n root: policyOptions.repoRoot,\n majorMode: policyOptions.majorMode,\n activeLayers: context.selectedLayers,\n domains: policyOptions.domains,\n profile: context.profile,\n state: { 'minor-mode': [] },\n };\n return {\n cwd: policyOptions.cwd,\n repoRoot: policyOptions.repoRoot,\n sessionId: identity.sessionId,\n workspaceId: resolveSyncLocation(policyOptions.repoRoot, homeDirectory).identity.worktreeId,\n sessionName: identity.sessionName,\n webComposition: webCompositions?.publish(\n { scope: 'session', sessionId: identity.sessionId },\n readSyncRegistration(policyOptions.repoRoot, homeDirectory)!,\n hub.channelTypes(),\n ),\n ...(identity.parentSessionId === undefined ? {} : { parentSessionId: identity.parentSessionId }),\n ...(identity.sessionProvenance === undefined ? {} : { sessionProvenance: identity.sessionProvenance }),\n agentArgs: policyOptions.piArgs,\n environment: Object.freeze({ ...context.environment }),\n selection: sessionSelection,\n selectionOverrides: (['majorMode', 'domains', 'profile'] as const).filter((axis) => {\n const flag = axis === 'majorMode' ? '--major-mode' : `--${axis}`;\n return (\n identity.sessionId === resolved.identity.sessionId &&\n resolved.agentArgs.some((arg) => arg === flag || arg.startsWith(`${flag}=`))\n );\n }),\n inheritedSelection: () => {\n const environment = { ...baseEnvironment };\n for (const key of [HARNESS_STATE_POINTER, ...Object.values(HARNESS_STATE_KEYS)]) delete environment[key];\n const defaults = resolveHarnessOptions({\n args: ['--cwd', policyOptions.cwd],\n cwd: policyOptions.cwd,\n environment,\n });\n return { majorMode: defaults.majorMode, domains: defaults.domains, profile: defaults.profile };\n },\n candidates: bundle.descriptor.entries,\n resolveSelection: (requested) => {\n const config = loadMajorModesConfig(policyOptions.repoRoot, policyOptions.homeDirectory);\n return {\n ...requested,\n activeLayers: filterHookDisabledLayers(\n config,\n resolveLayers(config, requested.majorMode),\n policyOptions.hooks,\n ),\n };\n },\n onNotice: notice,\n };\n };\n\n mountSessionApis = (sessionOptions, host) =>\n serveSessionApis({\n sessionId: sessionOptions.sessionId,\n cwd: sessionOptions.cwd,\n environment: sessionOptions.environment,\n directEvents: hub.directEvents,\n hubToken: token,\n sessionService: hub.sessionService,\n pluginRegistry: hub.pluginRegistry,\n apis: [],\n facets: pendingSessions.get(sessionOptions.sessionId)?.bundle.facets ?? [],\n workspaceId: sessionOptions.workspaceId,\n workspaceRoot: sessionOptions.repoRoot,\n homeDirectory,\n mountChannel: (channel) => {\n const dispose = hub.registerChannel(channel, { scope: 'session', sessionId: sessionOptions.sessionId });\n return { mounted: true, dispose };\n },\n prepareFacets: host.prepareFacets,\n activateFacets: host.activateFacets,\n canDispatch: host.canDispatch,\n telemetry,\n onNotice: notice,\n });\n\n requestSessionApi = async (scope, request) => {\n const session = hub.session(scope.sessionId);\n const artifacts = sessionArtifacts.get(scope.sessionId);\n if (session === undefined || session.cwd !== scope.cwd || artifacts === undefined)\n return Response.json({ error: 'Session not found.' }, { status: 404 });\n if (!/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u.test(request.basePath))\n return Response.json({ error: 'Invalid session API base path.' }, { status: 400 });\n if (!request.path.startsWith('/') || request.path.startsWith('//') || request.path.includes('#'))\n return Response.json({ error: 'Invalid session API path.' }, { status: 400 });\n const body = request.body === null || request.body === undefined ? undefined : request.body;\n return artifacts.apis.request(\n new Request(`http://doompi.local/api/plugins/${request.basePath}${request.path}`, {\n method: request.method,\n headers: request.headers,\n ...(body === undefined ? {} : { body }),\n ...(request.signal === undefined ? {} : { signal: request.signal }),\n }),\n );\n };\n\n if (!options.noSession) {\n harnessContext = await buildHarnessContext(\n resolveHarnessOptions({ args: resolved.agentArgs, cwd: baseCwd, environment: baseEnvironment }),\n harnessTelemetry,\n );\n const activeHarnessContext = harnessContext;\n try {\n await admitWorkspace(harnessContext.options.repoRoot);\n const initialBundle = await loadComposition(harnessContext.options.repoRoot, 'session', {\n root: harnessContext.options.repoRoot,\n majorMode: harnessContext.options.majorMode,\n activeLayers: harnessContext.selectedLayers,\n });\n pendingSessions.set(resolved.identity.sessionId, {\n cleanup: () => activeHarnessContext.cleanup(),\n bundle: initialBundle,\n });\n await hub.create(sessionHostOptions(harnessContext, initialBundle, resolved.identity));\n } catch (error) {\n pendingSessions.delete(resolved.identity.sessionId);\n await activeHarnessContext.cleanup().catch((cleanupError: unknown) => notice(String(cleanupError)));\n throw error;\n }\n await bounded(harnessTelemetry.flush(), 'initial composition telemetry flush', notice);\n }\n\n openSession = async (request, sessionId) => {\n const identity = {\n sessionId: sessionId ?? crypto.randomUUID(),\n sessionName: request.name,\n parentSessionId: request.parentSessionId,\n sessionProvenance: request.sessionProvenance,\n };\n const childIdentity = resolveSessionIdentity([], identity);\n const childEnvironment = { ...baseEnvironment };\n for (const key of [HARNESS_STATE_POINTER, ...Object.values(HARNESS_STATE_KEYS)]) delete childEnvironment[key];\n const childContext = await buildHarnessContext(\n resolveHarnessOptions({\n args: ['--cwd', request.cwd, ...childIdentity.agentArgs],\n cwd: request.cwd,\n environment: childEnvironment,\n }),\n harnessTelemetry,\n );\n try {\n await admitWorkspace(childContext.options.repoRoot);\n const bundle = await loadComposition(childContext.options.repoRoot, 'session', {\n root: childContext.options.repoRoot,\n majorMode: childContext.options.majorMode,\n activeLayers: childContext.selectedLayers,\n });\n pendingSessions.set(identity.sessionId, { cleanup: () => childContext.cleanup(), bundle });\n const created = await hub.create(sessionHostOptions(childContext, bundle, identity));\n // Recorded only once the session is live, and only with a workspace,\n // because a record the revive route cannot address is a rail card that\n // never wakes.\n if (created.workspaceId !== undefined) {\n openSessions.add({\n sessionId: created.id,\n workspaceId: created.workspaceId,\n cwd: created.cwd,\n name: created.name,\n createdAt: created.createdAt,\n ...(created.parentSessionId === undefined ? {} : { parentSessionId: created.parentSessionId }),\n ...(created.sessionProvenance === undefined ? {} : { sessionProvenance: created.sessionProvenance }),\n });\n }\n return { sessionId: identity.sessionId, cwd: childContext.options.cwd };\n } catch (error) {\n pendingSessions.delete(identity.sessionId);\n await childContext.cleanup().catch((cleanupError: unknown) => notice(String(cleanupError)));\n throw error;\n }\n };\n });\n\n cockpit = await serveHeadlessServer({\n port: options.webPort,\n headlessHub: hub,\n token: attachToken,\n sessionMcpPublicOrigin: () => remoteRuntime?.remote.publicOrigin(),\n sessionMcpPublicOriginRevision: () => remoteRuntime?.remote.publicOriginRevision() ?? 0,\n sessionHistory: (session) => {\n const workspaceRoot = hub.workspaces().find((workspace) => workspace.id === session.workspaceId)?.root;\n if (!workspaceRoot) throw new Error('Session workspace not found.');\n return listSavedSessions(\n path.join(piAgentDirectory(baseEnvironment), 'server', 'sessions'),\n workspaceRoot,\n new Set(hub.snapshot().map((active) => active.id)),\n );\n },\n readDormantTranscript: (record, request, context) => {\n const workspaceRoot = hub.workspaces().find((workspace) => workspace.id === record.workspaceId)?.root;\n if (!workspaceRoot) throw new Error('Saved transcript unavailable.');\n return readSqliteTranscript(\n path.join(piAgentDirectory(baseEnvironment), 'server', 'sessions', `${record.sessionId}.sqlite`),\n request,\n context,\n { sessionId: record.sessionId, workspaceRoot },\n );\n },\n restartSession: async (session) => {\n const workspaceRoot = hub.workspaces().find((workspace) => workspace.id === session.workspaceId)?.root;\n if (!workspaceRoot) throw new Error('Session workspace not found.');\n const syncEnvironment: NodeJS.ProcessEnv = { ...baseEnvironment, DOOMPI_ROOT: workspaceRoot };\n for (const key of [HARNESS_STATE_POINTER, ...Object.values(HARNESS_STATE_KEYS)]) delete syncEnvironment[key];\n try {\n await syncWorkspace(workspaceRoot, syncEnvironment);\n } catch (error) {\n notice(`Workspace sync failed before restart: ${error instanceof Error ? error.message : String(error)}`);\n throw new Error('Workspace sync failed; the session is still running.', { cause: error });\n }\n await hub.closeSession(session.id);\n await openSession({ cwd: session.cwd, name: session.name }, session.id);\n },\n resumeSession: async (session, targetSessionId) => {\n const workspaceRoot = hub.workspaces().find((workspace) => workspace.id === session.workspaceId)?.root;\n if (!workspaceRoot) throw new Error('Session workspace not found.');\n const saved = await listSavedSessions(\n path.join(piAgentDirectory(baseEnvironment), 'server', 'sessions'),\n workspaceRoot,\n new Set(hub.snapshot().map((active) => active.id)),\n );\n const target = saved.find((item) => item.id === targetSessionId);\n if (!target) throw new Error('Saved Pi thread not found in this workspace.');\n await hub.closeSession(session.id);\n await openSession({ cwd: session.cwd, name: target.name ?? 'untitled' }, target.id);\n return target.id;\n },\n dormantSessions: () => openSessions.list(),\n removeDormantSession: (record: OpenSessionRecord) => openSessions.remove(record.sessionId),\n reviveSession: async (record: OpenSessionRecord) => {\n // A failed wake may be transient, for example while another server still\n // owns the journal. Keep the record so the user can retry after resolving\n // the conflict instead of losing the session from the cockpit.\n await openSession(\n {\n cwd: record.cwd,\n name: record.name,\n ...(record.parentSessionId === undefined ? {} : { parentSessionId: record.parentSessionId }),\n ...(record.sessionProvenance === undefined ? {} : { sessionProvenance: record.sessionProvenance }),\n },\n record.sessionId,\n );\n },\n requestAsset: (request) => webCompositions?.request(request) ?? Promise.resolve(undefined),\n compositions: () => ({\n global: webCompositions?.get({ scope: 'global' }),\n publicKey: webCompositions?.publicKey(),\n shell: webCompositions?.shellTrust(),\n workspaces: hub.workspaces().map((workspace) => ({\n ...workspace,\n webComposition: webCompositions?.get({ scope: 'workspace', workspaceId: workspace.id }),\n })),\n }),\n telemetry,\n onNotice: notice,\n });\n notice(`protocol on ${cockpit.url}/api/ws`);\n let resolveShutdown!: (exitCode: number) => void;\n const shutdown = new Promise<number>((resolve) => {\n resolveShutdown = resolve;\n });\n const stop = (): void => resolveShutdown(0);\n signal.addEventListener('abort', stop, { once: true });\n if (signal.aborted) stop();\n try {\n return await shutdown;\n } finally {\n signal.removeEventListener('abort', stop);\n }\n } finally {\n shuttingDown = true;\n clearInterval(eventLoopMonitor);\n await bounded(telemetry.recordEvent('doompi_server.shutdown'), 'shutdown telemetry', notice);\n await Promise.allSettled([cockpit?.close()]);\n await bounded(remoteRuntime?.close() ?? Promise.resolve(), 'remote control shutdown', notice);\n try {\n await hub.close();\n } catch (error) {\n notice(error instanceof Error ? error.message : String(error));\n }\n try {\n await sessionManager.close();\n } catch (error) {\n notice(error instanceof Error ? error.message : String(error));\n }\n webCompositions?.close();\n const pendingCleanups = [...pendingSessions.values()].map((setup) => setup.cleanup());\n pendingSessions.clear();\n await Promise.allSettled(pendingCleanups);\n await bounded(harnessTelemetry.flush(), 'harness telemetry flush', notice);\n await bounded(harnessTelemetry.shutdown(), 'harness telemetry shutdown', notice);\n await bounded(telemetry.flush(), 'server telemetry flush', notice);\n await bounded(telemetry.shutdown(), 'server telemetry shutdown', notice);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,MAAM,gCAAgC;AAEtC,eAAe,QAAQ,WAA6B,OAAe,QAAkD;CACnH,IAAI;CACJ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M;EACzE,MAAM,QAAQ,iBAAiB,SAAS,GAAG,8BAA8B,MAAM;EAC/E,MAAM,QAAQ,UAAU,MAAM,GAAG,0BAA0B,MAAM;EACjE,MAAM,QAAQ,UAAU,SAAS,GAAG,6BAA6B,MAAM;CACzE;AACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
let _agimon_ai_doompi_domain = require("@agimon-ai/doompi-domain");
|
|
2
|
+
let _agimon_ai_doompi_major_mode = require("@agimon-ai/doompi-major-mode");
|
|
3
|
+
//#region src/builders/server/selectionStatus.ts
|
|
4
|
+
function publishHeadlessSelectionStatus(setStatus, selection) {
|
|
5
|
+
setStatus("doom-major-mode", (0, _agimon_ai_doompi_major_mode.statusText)(selection.majorMode, selection.domains, selection.profile));
|
|
6
|
+
setStatus("doom-domain", (0, _agimon_ai_doompi_domain.domainStatus)(selection.domains));
|
|
7
|
+
setStatus("doom-profile", selection.profile);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.publishHeadlessSelectionStatus = publishHeadlessSelectionStatus;
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=selectionStatus.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectionStatus.cjs","names":["statusText","domainStatus"],"sources":["../../../src/builders/server/selectionStatus.ts"],"sourcesContent":["import type { DoomHeadlessSelection } from '@agimon-ai/doompi-core/headless';\nimport { domainStatus } from '@agimon-ai/doompi-domain';\nimport { statusText } from '@agimon-ai/doompi-major-mode';\nexport function publishHeadlessSelectionStatus(\n setStatus: (source: string, text: string | undefined) => void,\n selection: DoomHeadlessSelection,\n): void {\n setStatus('doom-major-mode', statusText(selection.majorMode, selection.domains, selection.profile));\n setStatus('doom-domain', domainStatus(selection.domains));\n setStatus('doom-profile', selection.profile);\n}\n"],"mappings":";;;AAGA,SAAgB,+BACd,WACA,WACM;CACN,UAAU,oBAAA,GAAmBA,6BAAAA,WAAAA,CAAW,UAAU,WAAW,UAAU,SAAS,UAAU,OAAO,CAAC;CAClG,UAAU,gBAAA,GAAeC,yBAAAA,aAAAA,CAAa,UAAU,OAAO,CAAC;CACxD,UAAU,gBAAgB,UAAU,OAAO;AAC7C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { domainStatus } from "@agimon-ai/doompi-domain";
|
|
2
|
+
import { statusText } from "@agimon-ai/doompi-major-mode";
|
|
3
|
+
//#region src/builders/server/selectionStatus.ts
|
|
4
|
+
function publishHeadlessSelectionStatus(setStatus, selection) {
|
|
5
|
+
setStatus("doom-major-mode", statusText(selection.majorMode, selection.domains, selection.profile));
|
|
6
|
+
setStatus("doom-domain", domainStatus(selection.domains));
|
|
7
|
+
setStatus("doom-profile", selection.profile);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { publishHeadlessSelectionStatus };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=selectionStatus.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectionStatus.mjs","names":[],"sources":["../../../src/builders/server/selectionStatus.ts"],"sourcesContent":["import type { DoomHeadlessSelection } from '@agimon-ai/doompi-core/headless';\nimport { domainStatus } from '@agimon-ai/doompi-domain';\nimport { statusText } from '@agimon-ai/doompi-major-mode';\nexport function publishHeadlessSelectionStatus(\n setStatus: (source: string, text: string | undefined) => void,\n selection: DoomHeadlessSelection,\n): void {\n setStatus('doom-major-mode', statusText(selection.majorMode, selection.domains, selection.profile));\n setStatus('doom-domain', domainStatus(selection.domains));\n setStatus('doom-profile', selection.profile);\n}\n"],"mappings":";;;AAGA,SAAgB,+BACd,WACA,WACM;CACN,UAAU,mBAAmB,WAAW,UAAU,WAAW,UAAU,SAAS,UAAU,OAAO,CAAC;CAClG,UAAU,eAAe,aAAa,UAAU,OAAO,CAAC;CACxD,UAAU,gBAAgB,UAAU,OAAO;AAC7C"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/builders/server/sessionArguments.ts
|
|
2
|
+
const SESSION_ID_OPTION = "--session-id";
|
|
3
|
+
const NAME_OPTION = "--name";
|
|
4
|
+
/** Settles the direct session identity from explicit arguments or caller defaults. */
|
|
5
|
+
function resolveSessionIdentity(agentArgs, fallback) {
|
|
6
|
+
const args = [...agentArgs];
|
|
7
|
+
const identity = { ...fallback };
|
|
8
|
+
for (const [option, key] of [[SESSION_ID_OPTION, "sessionId"], [NAME_OPTION, "sessionName"]]) {
|
|
9
|
+
const index = args.indexOf(option);
|
|
10
|
+
const value = index === -1 ? void 0 : args[index + 1];
|
|
11
|
+
if (value !== void 0 && !value.startsWith("-")) identity[key] = value;
|
|
12
|
+
else args.push(option, identity[key]);
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
agentArgs: args,
|
|
16
|
+
identity
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.resolveSessionIdentity = resolveSessionIdentity;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=sessionArguments.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionArguments.cjs","names":[],"sources":["../../../src/builders/server/sessionArguments.ts"],"sourcesContent":["const SESSION_ID_OPTION = '--session-id';\nconst NAME_OPTION = '--name';\nexport interface SessionIdentity {\n sessionId: string;\n sessionName: string;\n}\n\n/** Settles the direct session identity from explicit arguments or caller defaults. */\nexport function resolveSessionIdentity(\n agentArgs: readonly string[],\n fallback: SessionIdentity,\n): { agentArgs: string[]; identity: SessionIdentity } {\n const args = [...agentArgs];\n const identity = { ...fallback };\n for (const [option, key] of [\n [SESSION_ID_OPTION, 'sessionId'],\n [NAME_OPTION, 'sessionName'],\n ] as const) {\n const index = args.indexOf(option);\n const value = index === -1 ? undefined : args[index + 1];\n if (value !== undefined && !value.startsWith('-')) identity[key] = value;\n else args.push(option, identity[key]);\n }\n return { agentArgs: args, identity };\n}\n\nconst MAJOR_MODE_OPTION = '--major-mode';\n\n/**\n * The agent arguments with the major mode pinned to a relaunch target.\n *\n * Any prior selection is dropped so repeated switches never accumulate flags.\n * The new pair goes last, the position launcher scripts already use, which\n * also keeps a leading script path intact when the agent runs via node.\n */\nexport function relaunchAgentArgs(args: readonly string[], majorMode: string): string[] {\n const kept: string[] = [];\n let skipValue = false;\n for (const argument of args) {\n if (skipValue) {\n skipValue = false;\n continue;\n }\n if (argument === MAJOR_MODE_OPTION) {\n skipValue = true;\n continue;\n }\n kept.push(argument);\n }\n return [...kept, MAJOR_MODE_OPTION, majorMode];\n}\n"],"mappings":";AAAA,MAAM,oBAAoB;AAC1B,MAAM,cAAc;;AAOpB,SAAgB,uBACd,WACA,UACoD;CACpD,MAAM,OAAO,CAAC,GAAG,SAAS;CAC1B,MAAM,WAAW,EAAE,GAAG,SAAS;CAC/B,KAAK,MAAM,CAAC,QAAQ,QAAQ,CAC1B,CAAC,mBAAmB,WAAW,GAC/B,CAAC,aAAa,aAAa,CAC7B,GAAY;EACV,MAAM,QAAQ,KAAK,QAAQ,MAAM;EACjC,MAAM,QAAQ,UAAU,KAAK,KAAA,IAAY,KAAK,QAAQ;EACtD,IAAI,UAAU,KAAA,KAAa,CAAC,MAAM,WAAW,GAAG,GAAG,SAAS,OAAO;OAC9D,KAAK,KAAK,QAAQ,SAAS,IAAI;CACtC;CACA,OAAO;EAAE,WAAW;EAAM;CAAS;AACrC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/builders/server/sessionArguments.ts
|
|
2
|
+
const SESSION_ID_OPTION = "--session-id";
|
|
3
|
+
const NAME_OPTION = "--name";
|
|
4
|
+
/** Settles the direct session identity from explicit arguments or caller defaults. */
|
|
5
|
+
function resolveSessionIdentity(agentArgs, fallback) {
|
|
6
|
+
const args = [...agentArgs];
|
|
7
|
+
const identity = { ...fallback };
|
|
8
|
+
for (const [option, key] of [[SESSION_ID_OPTION, "sessionId"], [NAME_OPTION, "sessionName"]]) {
|
|
9
|
+
const index = args.indexOf(option);
|
|
10
|
+
const value = index === -1 ? void 0 : args[index + 1];
|
|
11
|
+
if (value !== void 0 && !value.startsWith("-")) identity[key] = value;
|
|
12
|
+
else args.push(option, identity[key]);
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
agentArgs: args,
|
|
16
|
+
identity
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { resolveSessionIdentity };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=sessionArguments.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionArguments.mjs","names":[],"sources":["../../../src/builders/server/sessionArguments.ts"],"sourcesContent":["const SESSION_ID_OPTION = '--session-id';\nconst NAME_OPTION = '--name';\nexport interface SessionIdentity {\n sessionId: string;\n sessionName: string;\n}\n\n/** Settles the direct session identity from explicit arguments or caller defaults. */\nexport function resolveSessionIdentity(\n agentArgs: readonly string[],\n fallback: SessionIdentity,\n): { agentArgs: string[]; identity: SessionIdentity } {\n const args = [...agentArgs];\n const identity = { ...fallback };\n for (const [option, key] of [\n [SESSION_ID_OPTION, 'sessionId'],\n [NAME_OPTION, 'sessionName'],\n ] as const) {\n const index = args.indexOf(option);\n const value = index === -1 ? undefined : args[index + 1];\n if (value !== undefined && !value.startsWith('-')) identity[key] = value;\n else args.push(option, identity[key]);\n }\n return { agentArgs: args, identity };\n}\n\nconst MAJOR_MODE_OPTION = '--major-mode';\n\n/**\n * The agent arguments with the major mode pinned to a relaunch target.\n *\n * Any prior selection is dropped so repeated switches never accumulate flags.\n * The new pair goes last, the position launcher scripts already use, which\n * also keeps a leading script path intact when the agent runs via node.\n */\nexport function relaunchAgentArgs(args: readonly string[], majorMode: string): string[] {\n const kept: string[] = [];\n let skipValue = false;\n for (const argument of args) {\n if (skipValue) {\n skipValue = false;\n continue;\n }\n if (argument === MAJOR_MODE_OPTION) {\n skipValue = true;\n continue;\n }\n kept.push(argument);\n }\n return [...kept, MAJOR_MODE_OPTION, majorMode];\n}\n"],"mappings":";AAAA,MAAM,oBAAoB;AAC1B,MAAM,cAAc;;AAOpB,SAAgB,uBACd,WACA,UACoD;CACpD,MAAM,OAAO,CAAC,GAAG,SAAS;CAC1B,MAAM,WAAW,EAAE,GAAG,SAAS;CAC/B,KAAK,MAAM,CAAC,QAAQ,QAAQ,CAC1B,CAAC,mBAAmB,WAAW,GAC/B,CAAC,aAAa,aAAa,CAC7B,GAAY;EACV,MAAM,QAAQ,KAAK,QAAQ,MAAM;EACjC,MAAM,QAAQ,UAAU,KAAK,KAAA,IAAY,KAAK,QAAQ;EACtD,IAAI,UAAU,KAAA,KAAa,CAAC,MAAM,WAAW,GAAG,GAAG,SAAS,OAAO;OAC9D,KAAK,KAAK,QAAQ,SAAS,IAAI;CACtC;CACA,OAAO;EAAE,WAAW;EAAM;CAAS;AACrC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_bundleAssetPolicy = require("./bundleAssetPolicy.cjs");
|
|
3
|
+
const require_webDevRoots = require("./webDevRoots.cjs");
|
|
4
|
+
const require_webPluginScan = require("./webPluginScan.cjs");
|
|
5
|
+
const require_webPluginGenerate = require("./webPluginGenerate.cjs");
|
|
6
|
+
const require_webPluginVite = require("./webPluginVite.cjs");
|
|
7
|
+
let node_fs = require("node:fs");
|
|
8
|
+
node_fs = require_runtime.__toESM(node_fs, 1);
|
|
9
|
+
let node_path = require("node:path");
|
|
10
|
+
node_path = require_runtime.__toESM(node_path, 1);
|
|
11
|
+
//#region src/builders/web/bundle.ts
|
|
12
|
+
/** Shared runtime packages every plugin's client code must resolve to the host copies. */
|
|
13
|
+
const DEDUPED_RUNTIMES = [
|
|
14
|
+
"react",
|
|
15
|
+
"react-dom",
|
|
16
|
+
"@tanstack/store",
|
|
17
|
+
"@tanstack/react-store",
|
|
18
|
+
"@agimon-ai/doompi-web-components",
|
|
19
|
+
"@agimon-ai/doompi-web-security",
|
|
20
|
+
"@codemirror/state",
|
|
21
|
+
"@codemirror/view"
|
|
22
|
+
];
|
|
23
|
+
/**
|
|
24
|
+
* Builds the cockpit SPA against the installed plugin set.
|
|
25
|
+
*
|
|
26
|
+
* This is what `doompi sync` calls: manifests come from the given package
|
|
27
|
+
* roots (no hardcoded plugin dependencies anywhere), the generated entry
|
|
28
|
+
* modules are aliased over the committed builtin registry, and Vite compiles
|
|
29
|
+
* the host shell and each plugin's shipped web source into one browser bundle.
|
|
30
|
+
* The roots file beside
|
|
31
|
+
* the bundle lets the dev server serve the same composition with hot reload.
|
|
32
|
+
*/
|
|
33
|
+
async function bundleCockpitWeb(options) {
|
|
34
|
+
const notice = options.onNotice ?? (() => {});
|
|
35
|
+
const hostRoot = options.hostRoot;
|
|
36
|
+
const plugins = require_webPluginScan.scanWebPlugins(hostRoot, options.pluginRoots, notice);
|
|
37
|
+
notice(`bundling the cockpit with ${String(plugins.length)} web plugin(s): ${plugins.map((p) => p.pluginId).join(", ")}`);
|
|
38
|
+
const generatedDir = node_path.default.join(options.outDir, "generated");
|
|
39
|
+
const assetsDir = node_path.default.join(options.outDir, "web");
|
|
40
|
+
const pluginsDir = node_path.default.join(options.outDir, "plugins");
|
|
41
|
+
const generated = require_webPluginGenerate.writeSyncWebPluginModules(plugins, generatedDir, hostRoot);
|
|
42
|
+
const roots = [...new Set(options.pluginRoots.map((root) => node_path.default.resolve(root)))];
|
|
43
|
+
node_fs.default.writeFileSync(node_path.default.join(options.outDir, require_webDevRoots.PLUGIN_ROOTS_FILE), `${JSON.stringify(roots, null, 2)}\n`);
|
|
44
|
+
const { build } = await import("vite");
|
|
45
|
+
const { default: react } = await import("@vitejs/plugin-react");
|
|
46
|
+
const { default: tailwindcss } = await import("@tailwindcss/vite");
|
|
47
|
+
const clientRoot = node_path.default.join(hostRoot, "src", "web");
|
|
48
|
+
await build({
|
|
49
|
+
configFile: false,
|
|
50
|
+
envDir: false,
|
|
51
|
+
logLevel: "warn",
|
|
52
|
+
root: clientRoot,
|
|
53
|
+
plugins: [
|
|
54
|
+
require_webPluginVite.webPluginOverridePlugin(clientRoot, generated),
|
|
55
|
+
react(),
|
|
56
|
+
tailwindcss(),
|
|
57
|
+
require_bundleAssetPolicy.bundleAssetPolicyPlugin()
|
|
58
|
+
],
|
|
59
|
+
resolve: {
|
|
60
|
+
dedupe: [...DEDUPED_RUNTIMES],
|
|
61
|
+
alias: [...require_webPluginVite.webPluginRuntimeAliases(clientRoot), require_webPluginVite.webPluginCssAlias(generated)]
|
|
62
|
+
},
|
|
63
|
+
build: {
|
|
64
|
+
outDir: assetsDir,
|
|
65
|
+
emptyOutDir: true,
|
|
66
|
+
sourcemap: false
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
await build({
|
|
70
|
+
configFile: false,
|
|
71
|
+
envDir: false,
|
|
72
|
+
logLevel: "warn",
|
|
73
|
+
base: "./",
|
|
74
|
+
define: { "import.meta.url": "(document.currentScript && document.currentScript.src) || document.baseURI" },
|
|
75
|
+
plugins: [react(), tailwindcss()],
|
|
76
|
+
resolve: {
|
|
77
|
+
dedupe: [...DEDUPED_RUNTIMES],
|
|
78
|
+
alias: [require_webPluginVite.webPluginCssAlias(generated)]
|
|
79
|
+
},
|
|
80
|
+
build: {
|
|
81
|
+
cssCodeSplit: false,
|
|
82
|
+
outDir: pluginsDir,
|
|
83
|
+
emptyOutDir: true,
|
|
84
|
+
sourcemap: false,
|
|
85
|
+
assetsInlineLimit: 0,
|
|
86
|
+
manifest: "manifest.json",
|
|
87
|
+
rollupOptions: {
|
|
88
|
+
input: generated.compositionModulePath,
|
|
89
|
+
external: [...require_webPluginVite.WEB_PLUGIN_RUNTIME_SPECIFIERS],
|
|
90
|
+
output: {
|
|
91
|
+
format: "iife",
|
|
92
|
+
name: "DoomPiWebPluginCompositionBundle",
|
|
93
|
+
entryFileNames: "composition.js",
|
|
94
|
+
globals: Object.fromEntries(require_webPluginVite.WEB_PLUGIN_RUNTIME_SPECIFIERS.map((specifier) => [specifier, require_webPluginVite.webPluginRuntimeGlobal(specifier)])),
|
|
95
|
+
assetFileNames: "assets/[name]-[hash][extname]"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
node_fs.default.writeFileSync(node_path.default.join(pluginsDir, "index.html"), "<!doctype html>\n<title>DoomPi plugin composition</title>\n");
|
|
101
|
+
return {
|
|
102
|
+
assetsDir,
|
|
103
|
+
pluginsDir,
|
|
104
|
+
pluginIds: plugins.map((plugin) => plugin.pluginId)
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
108
|
+
exports.bundleCockpitWeb = bundleCockpitWeb;
|
|
109
|
+
|
|
110
|
+
//# sourceMappingURL=bundle.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle.cjs","names":["scanWebPlugins","path","writeSyncWebPluginModules","PLUGIN_ROOTS_FILE","webPluginOverridePlugin","bundleAssetPolicyPlugin","webPluginRuntimeAliases","webPluginCssAlias","WEB_PLUGIN_RUNTIME_SPECIFIERS","webPluginRuntimeGlobal"],"sources":["../../../src/builders/web/bundle.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\n\nimport { bundleAssetPolicyPlugin } from './bundleAssetPolicy';\nimport { PLUGIN_ROOTS_FILE } from './webDevRoots';\nimport { writeSyncWebPluginModules } from './webPluginGenerate';\nimport { scanWebPlugins } from './webPluginScan';\nimport {\n WEB_PLUGIN_RUNTIME_SPECIFIERS,\n webPluginCssAlias,\n webPluginOverridePlugin,\n webPluginRuntimeAliases,\n webPluginRuntimeGlobal,\n} from './webPluginVite';\n\n/** Shared runtime packages every plugin's client code must resolve to the host copies. */\nconst DEDUPED_RUNTIMES = [\n 'react',\n 'react-dom',\n '@tanstack/store',\n '@tanstack/react-store',\n '@agimon-ai/doompi-web-components',\n // The sealed transport is a module singleton whose nonce counters every\n // plugin shares; a second copy would start counting at zero.\n '@agimon-ai/doompi-web-security',\n // CodeMirror's state and view are singletons in all but name: a document\n // built against one copy is rejected by an editor from the other, and a\n // grammar chunk resolved separately from the editor is exactly how a second\n // copy appears.\n '@codemirror/state',\n '@codemirror/view',\n];\n\nexport interface BundleCockpitWebOptions {\n hostRoot: string;\n /** Package roots to scan for doompiWeb manifests, usually the installed composition. */\n pluginRoots: readonly string[];\n /** Output directory; receives web/, plugins/, generated/, and pluginRoots.json. */\n outDir: string;\n onNotice?: (message: string) => void;\n}\n\nexport interface BundleCockpitWebResult {\n /** Full synchronized SPA retained for CLI compatibility. */\n assetsDir: string;\n /** Standalone session plugin composition artifacts. */\n pluginsDir: string;\n pluginIds: string[];\n}\n\n/**\n * Builds the cockpit SPA against the installed plugin set.\n *\n * This is what `doompi sync` calls: manifests come from the given package\n * roots (no hardcoded plugin dependencies anywhere), the generated entry\n * modules are aliased over the committed builtin registry, and Vite compiles\n * the host shell and each plugin's shipped web source into one browser bundle.\n * The roots file beside\n * the bundle lets the dev server serve the same composition with hot reload.\n */\nexport async function bundleCockpitWeb(options: BundleCockpitWebOptions): Promise<BundleCockpitWebResult> {\n const notice = options.onNotice ?? ((): void => {});\n const hostRoot = options.hostRoot;\n const plugins = scanWebPlugins(hostRoot, options.pluginRoots, notice);\n notice(\n `bundling the cockpit with ${String(plugins.length)} web plugin(s): ${plugins.map((p) => p.pluginId).join(', ')}`,\n );\n\n const generatedDir = path.join(options.outDir, 'generated');\n const assetsDir = path.join(options.outDir, 'web');\n const pluginsDir = path.join(options.outDir, 'plugins');\n const generated = writeSyncWebPluginModules(plugins, generatedDir, hostRoot);\n const roots = [...new Set(options.pluginRoots.map((root) => path.resolve(root)))];\n fs.writeFileSync(path.join(options.outDir, PLUGIN_ROOTS_FILE), `${JSON.stringify(roots, null, 2)}\\n`);\n\n // Vite and its plugins are regular dependencies so this works from an\n // installed package, not only the workspace.\n const { build } = await import('vite');\n const { default: react } = await import('@vitejs/plugin-react');\n const { default: tailwindcss } = await import('@tailwindcss/vite');\n\n const clientRoot = path.join(hostRoot, 'src', 'web');\n\n await build({\n configFile: false,\n envDir: false,\n logLevel: 'warn',\n root: clientRoot,\n plugins: [webPluginOverridePlugin(clientRoot, generated), react(), tailwindcss(), bundleAssetPolicyPlugin()],\n resolve: {\n dedupe: [...DEDUPED_RUNTIMES],\n alias: [...webPluginRuntimeAliases(clientRoot), webPluginCssAlias(generated)],\n },\n build: {\n outDir: assetsDir,\n emptyOutDir: true,\n sourcemap: false,\n },\n });\n\n await build({\n configFile: false,\n envDir: false,\n logLevel: 'warn',\n base: './',\n // Plugin sources are already-built ESM and can retain import.meta.url around\n // Vite asset placeholders. Give the classic IIFE the URL of the script that\n // was dynamically served, rather than letting Rolldown replace it with {}.\n define: {\n 'import.meta.url': '(document.currentScript && document.currentScript.src) || document.baseURI',\n },\n plugins: [react(), tailwindcss()],\n resolve: {\n dedupe: [...DEDUPED_RUNTIMES],\n alias: [webPluginCssAlias(generated)],\n },\n build: {\n cssCodeSplit: false,\n outDir: pluginsDir,\n emptyOutDir: true,\n sourcemap: false,\n assetsInlineLimit: 0,\n manifest: 'manifest.json',\n rollupOptions: {\n input: generated.compositionModulePath,\n external: [...WEB_PLUGIN_RUNTIME_SPECIFIERS],\n output: {\n format: 'iife',\n name: 'DoomPiWebPluginCompositionBundle',\n entryFileNames: 'composition.js',\n globals: Object.fromEntries(\n WEB_PLUGIN_RUNTIME_SPECIFIERS.map((specifier) => [specifier, webPluginRuntimeGlobal(specifier)]),\n ),\n assetFileNames: 'assets/[name]-[hash][extname]',\n },\n },\n },\n });\n fs.writeFileSync(path.join(pluginsDir, 'index.html'), '<!doctype html>\\n<title>DoomPi plugin composition</title>\\n');\n\n return { assetsDir, pluginsDir, pluginIds: plugins.map((plugin) => plugin.pluginId) };\n}\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAM,mBAAmB;CACvB;CACA;CACA;CACA;CACA;CAGA;CAKA;CACA;AACF;;;;;;;;;;;AA6BA,eAAsB,iBAAiB,SAAmE;CACxG,MAAM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AAW;EACb;CACF,CAAC;CAED,MAAM,MAAM;EACV,YAAY;EACZ,QAAQ;EACR,UAAU;EACV,MAAM;EAIN,QAAQ,EACN,mBAAmB,6EACrB;EACA,SAAS,CAAC,MAAM,GAAG,YAAY,CAAC;EAChC,SAAS;GACP,QAAQ,CAAC,GAAG,gBAAgB;GAC5B,OAAO,CAACA,sBAAAA,kBAAkB,SAAS,CAAC;EACtC;EACA,OAAO;GACL,cAAc;GACd,QAAQ;GACR,aAAa;GACb,WAAW;GACX,mBAAmB;GACnB,UAAU;GACV,eAAe;IACb,OAAO,UAAU;IACjB,UAAU,CAAC,GAAGC,sBAAAA,6BAA6B;IAC3C,QAAQ;KACN,QAAQ;KACR,MAAM;KACN,gBAAgB;KAChB,SAAS,OAAO,YACdA,sBAAAA,8BAA8B,KAAK,cAAc,CAAC,WAAWC,sBAAAA,uBAAuB,SAAS,CAAC,CAAC,CACjG;KACA,gBAAgB;IAClB;GACF;EACF;CACF,CAAC;CACD,QAAA,QAAG,cAAcR,UAAAA,QAAK,KAAK,YAAY,YAAY,GAAG,6DAA6D;CAEnH,OAAO;EAAE;EAAW;EAAY,WAAW,QAAQ,KAAK,WAAW,OAAO,QAAQ;CAAE;AACtF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region src/builders/web/bundle.d.ts
|
|
2
|
+
export interface BundleCockpitWebOptions {
|
|
3
|
+
hostRoot: string;
|
|
4
|
+
/** Package roots to scan for doompiWeb manifests, usually the installed composition. */
|
|
5
|
+
pluginRoots: readonly string[];
|
|
6
|
+
/** Output directory; receives web/, plugins/, generated/, and pluginRoots.json. */
|
|
7
|
+
outDir: string;
|
|
8
|
+
onNotice?: (message: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface BundleCockpitWebResult {
|
|
11
|
+
/** Full synchronized SPA retained for CLI compatibility. */
|
|
12
|
+
assetsDir: string;
|
|
13
|
+
/** Standalone session plugin composition artifacts. */
|
|
14
|
+
pluginsDir: string;
|
|
15
|
+
pluginIds: string[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Builds the cockpit SPA against the installed plugin set.
|
|
19
|
+
*
|
|
20
|
+
* This is what `doompi sync` calls: manifests come from the given package
|
|
21
|
+
* roots (no hardcoded plugin dependencies anywhere), the generated entry
|
|
22
|
+
* modules are aliased over the committed builtin registry, and Vite compiles
|
|
23
|
+
* the host shell and each plugin's shipped web source into one browser bundle.
|
|
24
|
+
* The roots file beside
|
|
25
|
+
* the bundle lets the dev server serve the same composition with hot reload.
|
|
26
|
+
*/
|
|
27
|
+
export declare function bundleCockpitWeb(options: BundleCockpitWebOptions): Promise<BundleCockpitWebResult>;
|
|
28
|
+
//#endregion
|
|
29
|
+
//# sourceMappingURL=bundle.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle.d.cts","names":[],"sources":["../../../src/builders/web/bundle.ts"],"mappings":";iBAiCiB;EACf;;EAEA;;EAEA;EACA,YAAY;;iBAGG;;EAEf;;EAEA;EACA;;;;;;;;;;;;wBAaoB,iBAAiB,SAAS,0BAA0B,QAAQ"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region src/builders/web/bundle.d.ts
|
|
2
|
+
export interface BundleCockpitWebOptions {
|
|
3
|
+
hostRoot: string;
|
|
4
|
+
/** Package roots to scan for doompiWeb manifests, usually the installed composition. */
|
|
5
|
+
pluginRoots: readonly string[];
|
|
6
|
+
/** Output directory; receives web/, plugins/, generated/, and pluginRoots.json. */
|
|
7
|
+
outDir: string;
|
|
8
|
+
onNotice?: (message: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface BundleCockpitWebResult {
|
|
11
|
+
/** Full synchronized SPA retained for CLI compatibility. */
|
|
12
|
+
assetsDir: string;
|
|
13
|
+
/** Standalone session plugin composition artifacts. */
|
|
14
|
+
pluginsDir: string;
|
|
15
|
+
pluginIds: string[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Builds the cockpit SPA against the installed plugin set.
|
|
19
|
+
*
|
|
20
|
+
* This is what `doompi sync` calls: manifests come from the given package
|
|
21
|
+
* roots (no hardcoded plugin dependencies anywhere), the generated entry
|
|
22
|
+
* modules are aliased over the committed builtin registry, and Vite compiles
|
|
23
|
+
* the host shell and each plugin's shipped web source into one browser bundle.
|
|
24
|
+
* The roots file beside
|
|
25
|
+
* the bundle lets the dev server serve the same composition with hot reload.
|
|
26
|
+
*/
|
|
27
|
+
export declare function bundleCockpitWeb(options: BundleCockpitWebOptions): Promise<BundleCockpitWebResult>;
|
|
28
|
+
//#endregion
|
|
29
|
+
//# sourceMappingURL=bundle.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle.d.mts","names":[],"sources":["../../../src/builders/web/bundle.ts"],"mappings":";iBAiCiB;EACf;;EAEA;;EAEA;EACA,YAAY;;iBAGG;;EAEf;;EAEA;EACA;;;;;;;;;;;;wBAaoB,iBAAiB,SAAS,0BAA0B,QAAQ"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { bundleAssetPolicyPlugin } from "./bundleAssetPolicy.mjs";
|
|
2
|
+
import { PLUGIN_ROOTS_FILE } from "./webDevRoots.mjs";
|
|
3
|
+
import { scanWebPlugins } from "./webPluginScan.mjs";
|
|
4
|
+
import { writeSyncWebPluginModules } from "./webPluginGenerate.mjs";
|
|
5
|
+
import { WEB_PLUGIN_RUNTIME_SPECIFIERS, webPluginCssAlias, webPluginOverridePlugin, webPluginRuntimeAliases, webPluginRuntimeGlobal } from "./webPluginVite.mjs";
|
|
6
|
+
import fs from "node:fs";
|
|
7
|
+
import path from "node:path";
|
|
8
|
+
//#region src/builders/web/bundle.ts
|
|
9
|
+
/** Shared runtime packages every plugin's client code must resolve to the host copies. */
|
|
10
|
+
const DEDUPED_RUNTIMES = [
|
|
11
|
+
"react",
|
|
12
|
+
"react-dom",
|
|
13
|
+
"@tanstack/store",
|
|
14
|
+
"@tanstack/react-store",
|
|
15
|
+
"@agimon-ai/doompi-web-components",
|
|
16
|
+
"@agimon-ai/doompi-web-security",
|
|
17
|
+
"@codemirror/state",
|
|
18
|
+
"@codemirror/view"
|
|
19
|
+
];
|
|
20
|
+
/**
|
|
21
|
+
* Builds the cockpit SPA against the installed plugin set.
|
|
22
|
+
*
|
|
23
|
+
* This is what `doompi sync` calls: manifests come from the given package
|
|
24
|
+
* roots (no hardcoded plugin dependencies anywhere), the generated entry
|
|
25
|
+
* modules are aliased over the committed builtin registry, and Vite compiles
|
|
26
|
+
* the host shell and each plugin's shipped web source into one browser bundle.
|
|
27
|
+
* The roots file beside
|
|
28
|
+
* the bundle lets the dev server serve the same composition with hot reload.
|
|
29
|
+
*/
|
|
30
|
+
async function bundleCockpitWeb(options) {
|
|
31
|
+
const notice = options.onNotice ?? (() => {});
|
|
32
|
+
const hostRoot = options.hostRoot;
|
|
33
|
+
const plugins = scanWebPlugins(hostRoot, options.pluginRoots, notice);
|
|
34
|
+
notice(`bundling the cockpit with ${String(plugins.length)} web plugin(s): ${plugins.map((p) => p.pluginId).join(", ")}`);
|
|
35
|
+
const generatedDir = path.join(options.outDir, "generated");
|
|
36
|
+
const assetsDir = path.join(options.outDir, "web");
|
|
37
|
+
const pluginsDir = path.join(options.outDir, "plugins");
|
|
38
|
+
const generated = writeSyncWebPluginModules(plugins, generatedDir, hostRoot);
|
|
39
|
+
const roots = [...new Set(options.pluginRoots.map((root) => path.resolve(root)))];
|
|
40
|
+
fs.writeFileSync(path.join(options.outDir, PLUGIN_ROOTS_FILE), `${JSON.stringify(roots, null, 2)}\n`);
|
|
41
|
+
const { build } = await import("vite");
|
|
42
|
+
const { default: react } = await import("@vitejs/plugin-react");
|
|
43
|
+
const { default: tailwindcss } = await import("@tailwindcss/vite");
|
|
44
|
+
const clientRoot = path.join(hostRoot, "src", "web");
|
|
45
|
+
await build({
|
|
46
|
+
configFile: false,
|
|
47
|
+
envDir: false,
|
|
48
|
+
logLevel: "warn",
|
|
49
|
+
root: clientRoot,
|
|
50
|
+
plugins: [
|
|
51
|
+
webPluginOverridePlugin(clientRoot, generated),
|
|
52
|
+
react(),
|
|
53
|
+
tailwindcss(),
|
|
54
|
+
bundleAssetPolicyPlugin()
|
|
55
|
+
],
|
|
56
|
+
resolve: {
|
|
57
|
+
dedupe: [...DEDUPED_RUNTIMES],
|
|
58
|
+
alias: [...webPluginRuntimeAliases(clientRoot), webPluginCssAlias(generated)]
|
|
59
|
+
},
|
|
60
|
+
build: {
|
|
61
|
+
outDir: assetsDir,
|
|
62
|
+
emptyOutDir: true,
|
|
63
|
+
sourcemap: false
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
await build({
|
|
67
|
+
configFile: false,
|
|
68
|
+
envDir: false,
|
|
69
|
+
logLevel: "warn",
|
|
70
|
+
base: "./",
|
|
71
|
+
define: { "import.meta.url": "(document.currentScript && document.currentScript.src) || document.baseURI" },
|
|
72
|
+
plugins: [react(), tailwindcss()],
|
|
73
|
+
resolve: {
|
|
74
|
+
dedupe: [...DEDUPED_RUNTIMES],
|
|
75
|
+
alias: [webPluginCssAlias(generated)]
|
|
76
|
+
},
|
|
77
|
+
build: {
|
|
78
|
+
cssCodeSplit: false,
|
|
79
|
+
outDir: pluginsDir,
|
|
80
|
+
emptyOutDir: true,
|
|
81
|
+
sourcemap: false,
|
|
82
|
+
assetsInlineLimit: 0,
|
|
83
|
+
manifest: "manifest.json",
|
|
84
|
+
rollupOptions: {
|
|
85
|
+
input: generated.compositionModulePath,
|
|
86
|
+
external: [...WEB_PLUGIN_RUNTIME_SPECIFIERS],
|
|
87
|
+
output: {
|
|
88
|
+
format: "iife",
|
|
89
|
+
name: "DoomPiWebPluginCompositionBundle",
|
|
90
|
+
entryFileNames: "composition.js",
|
|
91
|
+
globals: Object.fromEntries(WEB_PLUGIN_RUNTIME_SPECIFIERS.map((specifier) => [specifier, webPluginRuntimeGlobal(specifier)])),
|
|
92
|
+
assetFileNames: "assets/[name]-[hash][extname]"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
fs.writeFileSync(path.join(pluginsDir, "index.html"), "<!doctype html>\n<title>DoomPi plugin composition</title>\n");
|
|
98
|
+
return {
|
|
99
|
+
assetsDir,
|
|
100
|
+
pluginsDir,
|
|
101
|
+
pluginIds: plugins.map((plugin) => plugin.pluginId)
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
export { bundleCockpitWeb };
|
|
106
|
+
|
|
107
|
+
//# sourceMappingURL=bundle.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle.mjs","names":[],"sources":["../../../src/builders/web/bundle.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\n\nimport { bundleAssetPolicyPlugin } from './bundleAssetPolicy';\nimport { PLUGIN_ROOTS_FILE } from './webDevRoots';\nimport { writeSyncWebPluginModules } from './webPluginGenerate';\nimport { scanWebPlugins } from './webPluginScan';\nimport {\n WEB_PLUGIN_RUNTIME_SPECIFIERS,\n webPluginCssAlias,\n webPluginOverridePlugin,\n webPluginRuntimeAliases,\n webPluginRuntimeGlobal,\n} from './webPluginVite';\n\n/** Shared runtime packages every plugin's client code must resolve to the host copies. */\nconst DEDUPED_RUNTIMES = [\n 'react',\n 'react-dom',\n '@tanstack/store',\n '@tanstack/react-store',\n '@agimon-ai/doompi-web-components',\n // The sealed transport is a module singleton whose nonce counters every\n // plugin shares; a second copy would start counting at zero.\n '@agimon-ai/doompi-web-security',\n // CodeMirror's state and view are singletons in all but name: a document\n // built against one copy is rejected by an editor from the other, and a\n // grammar chunk resolved separately from the editor is exactly how a second\n // copy appears.\n '@codemirror/state',\n '@codemirror/view',\n];\n\nexport interface BundleCockpitWebOptions {\n hostRoot: string;\n /** Package roots to scan for doompiWeb manifests, usually the installed composition. */\n pluginRoots: readonly string[];\n /** Output directory; receives web/, plugins/, generated/, and pluginRoots.json. */\n outDir: string;\n onNotice?: (message: string) => void;\n}\n\nexport interface BundleCockpitWebResult {\n /** Full synchronized SPA retained for CLI compatibility. */\n assetsDir: string;\n /** Standalone session plugin composition artifacts. */\n pluginsDir: string;\n pluginIds: string[];\n}\n\n/**\n * Builds the cockpit SPA against the installed plugin set.\n *\n * This is what `doompi sync` calls: manifests come from the given package\n * roots (no hardcoded plugin dependencies anywhere), the generated entry\n * modules are aliased over the committed builtin registry, and Vite compiles\n * the host shell and each plugin's shipped web source into one browser bundle.\n * The roots file beside\n * the bundle lets the dev server serve the same composition with hot reload.\n */\nexport async function bundleCockpitWeb(options: BundleCockpitWebOptions): Promise<BundleCockpitWebResult> {\n const notice = options.onNotice ?? ((): void => {});\n const hostRoot = options.hostRoot;\n const plugins = scanWebPlugins(hostRoot, options.pluginRoots, notice);\n notice(\n `bundling the cockpit with ${String(plugins.length)} web plugin(s): ${plugins.map((p) => p.pluginId).join(', ')}`,\n );\n\n const generatedDir = path.join(options.outDir, 'generated');\n const assetsDir = path.join(options.outDir, 'web');\n const pluginsDir = path.join(options.outDir, 'plugins');\n const generated = writeSyncWebPluginModules(plugins, generatedDir, hostRoot);\n const roots = [...new Set(options.pluginRoots.map((root) => path.resolve(root)))];\n fs.writeFileSync(path.join(options.outDir, PLUGIN_ROOTS_FILE), `${JSON.stringify(roots, null, 2)}\\n`);\n\n // Vite and its plugins are regular dependencies so this works from an\n // installed package, not only the workspace.\n const { build } = await import('vite');\n const { default: react } = await import('@vitejs/plugin-react');\n const { default: tailwindcss } = await import('@tailwindcss/vite');\n\n const clientRoot = path.join(hostRoot, 'src', 'web');\n\n await build({\n configFile: false,\n envDir: false,\n logLevel: 'warn',\n root: clientRoot,\n plugins: [webPluginOverridePlugin(clientRoot, generated), react(), tailwindcss(), bundleAssetPolicyPlugin()],\n resolve: {\n dedupe: [...DEDUPED_RUNTIMES],\n alias: [...webPluginRuntimeAliases(clientRoot), webPluginCssAlias(generated)],\n },\n build: {\n outDir: assetsDir,\n emptyOutDir: true,\n sourcemap: false,\n },\n });\n\n await build({\n configFile: false,\n envDir: false,\n logLevel: 'warn',\n base: './',\n // Plugin sources are already-built ESM and can retain import.meta.url around\n // Vite asset placeholders. Give the classic IIFE the URL of the script that\n // was dynamically served, rather than letting Rolldown replace it with {}.\n define: {\n 'import.meta.url': '(document.currentScript && document.currentScript.src) || document.baseURI',\n },\n plugins: [react(), tailwindcss()],\n resolve: {\n dedupe: [...DEDUPED_RUNTIMES],\n alias: [webPluginCssAlias(generated)],\n },\n build: {\n cssCodeSplit: false,\n outDir: pluginsDir,\n emptyOutDir: true,\n sourcemap: false,\n assetsInlineLimit: 0,\n manifest: 'manifest.json',\n rollupOptions: {\n input: generated.compositionModulePath,\n external: [...WEB_PLUGIN_RUNTIME_SPECIFIERS],\n output: {\n format: 'iife',\n name: 'DoomPiWebPluginCompositionBundle',\n entryFileNames: 'composition.js',\n globals: Object.fromEntries(\n WEB_PLUGIN_RUNTIME_SPECIFIERS.map((specifier) => [specifier, webPluginRuntimeGlobal(specifier)]),\n ),\n assetFileNames: 'assets/[name]-[hash][extname]',\n },\n },\n },\n });\n fs.writeFileSync(path.join(pluginsDir, 'index.html'), '<!doctype html>\\n<title>DoomPi plugin composition</title>\\n');\n\n return { assetsDir, pluginsDir, pluginIds: plugins.map((plugin) => plugin.pluginId) };\n}\n"],"mappings":";;;;;;;;;AAgBA,MAAM,mBAAmB;CACvB;CACA;CACA;CACA;CACA;CAGA;CAKA;CACA;AACF;;;;;;;;;;;AA6BA,eAAsB,iBAAiB,SAAmE;CACxG,MAAM,SAAS,QAAQ,mBAAyB,CAAC;CACjD,MAAM,WAAW,QAAQ;CACzB,MAAM,UAAU,eAAe,UAAU,QAAQ,aAAa,MAAM;CACpE,OACE,6BAA6B,OAAO,QAAQ,MAAM,EAAE,kBAAkB,QAAQ,KAAK,MAAM,EAAE,QAAQ,CAAC,CAAC,KAAK,IAAI,GAChH;CAEA,MAAM,eAAe,KAAK,KAAK,QAAQ,QAAQ,WAAW;CAC1D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QAAQ;KACN,QAAQ;KACR,MAAM;KACN,gBAAgB;KAChB,SAAS,OAAO,YACd,8BAA8B,KAAK,cAAc,CAAC,WAAW,uBAAuB,SAAS,CAAC,CAAC,CACjG;KACA,gBAAgB;IAClB;GACF;EACF;CACF,CAAC;CACD,GAAG,cAAc,KAAK,KAAK,YAAY,YAAY,GAAG,6DAA6D;CAEnH,OAAO;EAAE;EAAW;EAAY,WAAW,QAAQ,KAAK,WAAW,OAAO,QAAQ;CAAE;AACtF"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
let _agimon_ai_doompi_core_bundle_asset_policy = require("@agimon-ai/doompi-core/bundle-asset-policy");
|
|
2
|
+
//#region src/builders/web/bundleAssetPolicy.ts
|
|
3
|
+
const OPTIONAL_PACKAGES = ["/node_modules/mermaid/", "/node_modules/pdfjs-dist/"];
|
|
4
|
+
function packageOwner(output, owned) {
|
|
5
|
+
const ids = Object.keys(output.modules ?? {});
|
|
6
|
+
return OPTIONAL_PACKAGES.find((dependency) => ids.some((id) => id.replaceAll("\\", "/").includes(dependency)) && ids.every((id) => owned.get(dependency)?.has(id)));
|
|
7
|
+
}
|
|
8
|
+
function references(output) {
|
|
9
|
+
if (output.type === "asset") return [];
|
|
10
|
+
return [
|
|
11
|
+
...output.imports ?? [],
|
|
12
|
+
...output.dynamicImports ?? [],
|
|
13
|
+
...output.referencedFiles ?? [],
|
|
14
|
+
...output.viteMetadata?.importedAssets ?? []
|
|
15
|
+
];
|
|
16
|
+
}
|
|
17
|
+
/** Classifies only output owned exclusively by a known optional dependency graph. */
|
|
18
|
+
function classifyOptionalBundleAssets(bundle, moduleDependencies) {
|
|
19
|
+
const outputs = new Map(Object.entries(bundle));
|
|
20
|
+
const owned = /* @__PURE__ */ new Map();
|
|
21
|
+
for (const dependency of OPTIONAL_PACKAGES) {
|
|
22
|
+
const modules = /* @__PURE__ */ new Set();
|
|
23
|
+
const visit = (id) => {
|
|
24
|
+
if (modules.has(id) || !id.replaceAll("\\", "/").includes("/node_modules/")) return;
|
|
25
|
+
modules.add(id);
|
|
26
|
+
for (const imported of moduleDependencies?.(id) ?? []) visit(imported);
|
|
27
|
+
};
|
|
28
|
+
for (const output of outputs.values()) for (const id of Object.keys(output.modules ?? {})) if (id.replaceAll("\\", "/").includes(dependency)) visit(id);
|
|
29
|
+
owned.set(dependency, modules);
|
|
30
|
+
}
|
|
31
|
+
const graphReferences = (output) => {
|
|
32
|
+
const source = output.code ?? (typeof output.source === "string" ? output.source : output.source === void 0 ? "" : new TextDecoder().decode(output.source));
|
|
33
|
+
return [...references(output), ...[...outputs].filter(([fileName, candidate]) => candidate.type === "asset" && source.includes(fileName)).map(([fileName]) => fileName)];
|
|
34
|
+
};
|
|
35
|
+
const optionalRoots = /* @__PURE__ */ new Map();
|
|
36
|
+
for (const [fileName, output] of outputs) {
|
|
37
|
+
if (output.type !== "chunk") continue;
|
|
38
|
+
const owner = packageOwner(output, owned);
|
|
39
|
+
const facade = output.facadeModuleId?.replaceAll("\\", "/");
|
|
40
|
+
if (owner !== void 0 && (!output.isEntry || OPTIONAL_PACKAGES.some((dependency) => facade?.includes(dependency)))) optionalRoots.set(fileName, owner);
|
|
41
|
+
}
|
|
42
|
+
const eager = /* @__PURE__ */ new Set();
|
|
43
|
+
const visitEager = (fileName) => {
|
|
44
|
+
if (eager.has(fileName)) return;
|
|
45
|
+
eager.add(fileName);
|
|
46
|
+
const output = outputs.get(fileName);
|
|
47
|
+
if (output === void 0) return;
|
|
48
|
+
for (const reference of graphReferences(output)) if (!(optionalRoots.has(reference) && output.dynamicImports?.includes(reference))) visitEager(reference);
|
|
49
|
+
};
|
|
50
|
+
for (const [fileName, output] of outputs) if (fileName === "index.html" || output.type === "chunk" && output.isEntry && !optionalRoots.has(fileName)) visitEager(fileName);
|
|
51
|
+
const optional = /* @__PURE__ */ new Set();
|
|
52
|
+
const visitOptional = (fileName, owner) => {
|
|
53
|
+
if (eager.has(fileName) || optional.has(fileName)) return;
|
|
54
|
+
const output = outputs.get(fileName);
|
|
55
|
+
if (output === void 0) return;
|
|
56
|
+
if (output.type === "chunk") {
|
|
57
|
+
const ids = Object.keys(output.modules ?? {});
|
|
58
|
+
if (ids.length === 0 || !ids.every((id) => owned.get(owner)?.has(id))) {
|
|
59
|
+
visitEager(fileName);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
optional.add(fileName);
|
|
64
|
+
for (const reference of graphReferences(output)) {
|
|
65
|
+
const referencedRootOwner = optionalRoots.get(reference);
|
|
66
|
+
if (referencedRootOwner === void 0 || referencedRootOwner === owner) visitOptional(reference, owner);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
for (const [fileName, owner] of optionalRoots) visitOptional(fileName, owner);
|
|
70
|
+
return [...optional].filter((fileName) => !eager.has(fileName) && !fileName.endsWith(".map")).map((fileName) => `/${fileName}`).sort();
|
|
71
|
+
}
|
|
72
|
+
/** Emits an authenticated v1 policy derived from Rollup's module and resource graph. */
|
|
73
|
+
function bundleAssetPolicyPlugin() {
|
|
74
|
+
return {
|
|
75
|
+
name: "doompi-bundle-asset-policy",
|
|
76
|
+
generateBundle(_options, bundle) {
|
|
77
|
+
const policy = {
|
|
78
|
+
version: _agimon_ai_doompi_core_bundle_asset_policy.BUNDLE_ASSET_POLICY_VERSION,
|
|
79
|
+
optional: classifyOptionalBundleAssets(bundle, (id) => {
|
|
80
|
+
const info = this.getModuleInfo(id);
|
|
81
|
+
return info === null ? void 0 : [...info.importedIds, ...info.dynamicallyImportedIds];
|
|
82
|
+
})
|
|
83
|
+
};
|
|
84
|
+
this.emitFile({
|
|
85
|
+
type: "asset",
|
|
86
|
+
fileName: _agimon_ai_doompi_core_bundle_asset_policy.BUNDLE_ASSET_POLICY_PATH.slice(1),
|
|
87
|
+
source: `${JSON.stringify(policy)}\n`
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
exports.bundleAssetPolicyPlugin = bundleAssetPolicyPlugin;
|
|
94
|
+
exports.classifyOptionalBundleAssets = classifyOptionalBundleAssets;
|
|
95
|
+
|
|
96
|
+
//# sourceMappingURL=bundleAssetPolicy.cjs.map
|