@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,603 @@
|
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
require("../../composition/harnessState/index.cjs");
|
|
3
|
+
const require_index$1 = require("../../composition/repository/index.cjs");
|
|
4
|
+
const require_index$2 = require("../../composition/syncState/index.cjs");
|
|
5
|
+
const require_harnessContext = require("../cli/harnessContext.cjs");
|
|
6
|
+
const require_index$3 = require("../../composition/syncDrift/index.cjs");
|
|
7
|
+
const require_selectionStatus = require("./selectionStatus.cjs");
|
|
8
|
+
const require_sessionArguments = require("./sessionArguments.cjs");
|
|
9
|
+
let node_fs = require("node:fs");
|
|
10
|
+
node_fs = require_runtime.__toESM(node_fs, 1);
|
|
11
|
+
let node_path = require("node:path");
|
|
12
|
+
node_path = require_runtime.__toESM(node_path, 1);
|
|
13
|
+
let _agimon_ai_doompi_core_sync_registration = require("@agimon-ai/doompi-core/sync-registration");
|
|
14
|
+
let _agimon_ai_doompi_minor_mode = require("@agimon-ai/doompi-minor-mode");
|
|
15
|
+
let node_os = require("node:os");
|
|
16
|
+
node_os = require_runtime.__toESM(node_os, 1);
|
|
17
|
+
let _agimon_ai_doompi_config_config = require("@agimon-ai/doompi-config/config");
|
|
18
|
+
let _agimon_ai_doompi_config_majorModes = require("@agimon-ai/doompi-config/majorModes");
|
|
19
|
+
let _agimon_ai_doompi_core_runtime_log_sink_telemetry = require("@agimon-ai/doompi-core/runtime-log-sink-telemetry");
|
|
20
|
+
let node_crypto = require("node:crypto");
|
|
21
|
+
node_crypto = require_runtime.__toESM(node_crypto, 1);
|
|
22
|
+
let _agimon_ai_doompi_core_sync_location = require("@agimon-ai/doompi-core/sync-location");
|
|
23
|
+
let _agimon_ai_doompi_core_server_facet = require("@agimon-ai/doompi-core/server-facet");
|
|
24
|
+
let _agimon_ai_doompi_core_headless_hub = require("@agimon-ai/doompi-core/headless-hub");
|
|
25
|
+
let _agimon_ai_doompi_core_headless_server = require("@agimon-ai/doompi-core/headless-server");
|
|
26
|
+
let _agimon_ai_doompi_core_headless_session_manager = require("@agimon-ai/doompi-core/headless-session-manager");
|
|
27
|
+
let _agimon_ai_doompi_core_history = require("@agimon-ai/doompi-core/history");
|
|
28
|
+
let _agimon_ai_doompi_core_package_api_server = require("@agimon-ai/doompi-core/package-api-server");
|
|
29
|
+
let _agimon_ai_doompi_core_pi_settings = require("@agimon-ai/doompi-core/pi-settings");
|
|
30
|
+
let _agimon_ai_doompi_core_remote_runtime = require("@agimon-ai/doompi-core/remote-runtime");
|
|
31
|
+
let _agimon_ai_doompi_core_server_telemetry = require("@agimon-ai/doompi-core/server-telemetry");
|
|
32
|
+
let _agimon_ai_doompi_core_web_compositions = require("@agimon-ai/doompi-core/web-compositions");
|
|
33
|
+
let ws = require("ws");
|
|
34
|
+
ws = require_runtime.__toESM(ws, 1);
|
|
35
|
+
let _agimon_ai_doompi_config_harnessStore = require("@agimon-ai/doompi-config/harnessStore");
|
|
36
|
+
let _agimon_ai_doompi_config_harnessState = require("@agimon-ai/doompi-config/harnessState");
|
|
37
|
+
//#region src/builders/server/runtime.ts
|
|
38
|
+
const TELEMETRY_SHUTDOWN_TIMEOUT_MS = 2e3;
|
|
39
|
+
async function bounded(operation, label, notice) {
|
|
40
|
+
let timeout;
|
|
41
|
+
try {
|
|
42
|
+
await Promise.race([operation, new Promise((resolve) => {
|
|
43
|
+
timeout = setTimeout(resolve, TELEMETRY_SHUTDOWN_TIMEOUT_MS);
|
|
44
|
+
})]);
|
|
45
|
+
} catch (error) {
|
|
46
|
+
notice(`${label} failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
47
|
+
} finally {
|
|
48
|
+
if (timeout) clearTimeout(timeout);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
async function runServerRuntime(options, runtime) {
|
|
52
|
+
const { cwd: baseCwd, environment: baseEnvironment, notice, resolveHarnessOptions, signal, syncWorkspace } = runtime;
|
|
53
|
+
const telemetry = (0, _agimon_ai_doompi_core_server_telemetry.createServerTelemetry)({
|
|
54
|
+
cwd: baseCwd,
|
|
55
|
+
env: baseEnvironment,
|
|
56
|
+
warn: notice
|
|
57
|
+
});
|
|
58
|
+
const openSessions = (0, _agimon_ai_doompi_core_history.createOpenSessionRegistry)({
|
|
59
|
+
directory: node_path.default.join((0, _agimon_ai_doompi_core_pi_settings.piAgentDirectory)(baseEnvironment), "server"),
|
|
60
|
+
onNotice: notice
|
|
61
|
+
});
|
|
62
|
+
let nextEventLoopTick = performance.now() + 1e3;
|
|
63
|
+
const eventLoopMonitor = setInterval(() => {
|
|
64
|
+
const now = performance.now();
|
|
65
|
+
const delay = Math.max(0, now - nextEventLoopTick);
|
|
66
|
+
nextEventLoopTick = now + 1e3;
|
|
67
|
+
if (delay >= 100) telemetry.recordEvent("doompi_server.event_loop_delay", { duration_ms: Math.round(delay) }).catch((error) => notice(`event loop telemetry failed: ${String(error)}`));
|
|
68
|
+
}, 1e3);
|
|
69
|
+
eventLoopMonitor.unref();
|
|
70
|
+
const harnessTelemetry = (0, _agimon_ai_doompi_core_runtime_log_sink_telemetry.createHarnessTelemetry)({
|
|
71
|
+
cwd: baseCwd,
|
|
72
|
+
env: baseEnvironment,
|
|
73
|
+
warn: notice,
|
|
74
|
+
deferSpans: true
|
|
75
|
+
});
|
|
76
|
+
const baseSessionManager = (0, _agimon_ai_doompi_core_headless_session_manager.createHeadlessSessionManager)({
|
|
77
|
+
publishSelectionStatus: require_selectionStatus.publishHeadlessSelectionStatus,
|
|
78
|
+
contextGroups: (context) => ((0, _agimon_ai_doompi_minor_mode.readMinorModeCatalog)(context)?.list() ?? []).filter(({ state }) => state.activation === "active").map(({ descriptor }) => ({
|
|
79
|
+
id: descriptor.id,
|
|
80
|
+
label: descriptor.label,
|
|
81
|
+
kind: "minor"
|
|
82
|
+
}))
|
|
83
|
+
});
|
|
84
|
+
const pendingSessions = /* @__PURE__ */ new Map();
|
|
85
|
+
const sessionArtifacts = /* @__PURE__ */ new Map();
|
|
86
|
+
let mountSessionApis;
|
|
87
|
+
/**
|
|
88
|
+
* Shutdown runs every session through the same close path a user-initiated
|
|
89
|
+
* close uses, so without this the registry would be emptied by the very event
|
|
90
|
+
* it exists to survive.
|
|
91
|
+
*/
|
|
92
|
+
let shuttingDown = false;
|
|
93
|
+
const closeManagedSession = async (sessionId) => {
|
|
94
|
+
if (!shuttingDown) openSessions.remove(sessionId);
|
|
95
|
+
const artifacts = sessionArtifacts.get(sessionId);
|
|
96
|
+
sessionArtifacts.delete(sessionId);
|
|
97
|
+
webCompositions?.remove({
|
|
98
|
+
scope: "session",
|
|
99
|
+
sessionId
|
|
100
|
+
});
|
|
101
|
+
const failures = [];
|
|
102
|
+
try {
|
|
103
|
+
await artifacts?.apis.close();
|
|
104
|
+
} catch (error) {
|
|
105
|
+
failures.push(error);
|
|
106
|
+
}
|
|
107
|
+
try {
|
|
108
|
+
await artifacts?.cleanup();
|
|
109
|
+
} catch (error) {
|
|
110
|
+
failures.push(error);
|
|
111
|
+
}
|
|
112
|
+
try {
|
|
113
|
+
await baseSessionManager.closeSession(sessionId);
|
|
114
|
+
} catch (error) {
|
|
115
|
+
failures.push(error);
|
|
116
|
+
}
|
|
117
|
+
if (failures.length > 0) throw new AggregateError(failures, `Session '${sessionId}' shutdown failed`);
|
|
118
|
+
};
|
|
119
|
+
const sessionManager = {
|
|
120
|
+
async create(sessionOptions) {
|
|
121
|
+
const setup = pendingSessions.get(sessionOptions.sessionId);
|
|
122
|
+
let host;
|
|
123
|
+
try {
|
|
124
|
+
host = await baseSessionManager.create(sessionOptions);
|
|
125
|
+
} catch (error) {
|
|
126
|
+
if (setup !== void 0 && pendingSessions.delete(sessionOptions.sessionId)) await setup.cleanup().catch((cleanupError) => notice(String(cleanupError)));
|
|
127
|
+
throw error;
|
|
128
|
+
}
|
|
129
|
+
if (setup === void 0 || mountSessionApis === void 0) return host;
|
|
130
|
+
try {
|
|
131
|
+
const apis = await mountSessionApis(sessionOptions, host);
|
|
132
|
+
pendingSessions.delete(sessionOptions.sessionId);
|
|
133
|
+
sessionArtifacts.set(sessionOptions.sessionId, {
|
|
134
|
+
...setup,
|
|
135
|
+
apis
|
|
136
|
+
});
|
|
137
|
+
return host;
|
|
138
|
+
} catch (error) {
|
|
139
|
+
pendingSessions.delete(sessionOptions.sessionId);
|
|
140
|
+
await baseSessionManager.closeSession(sessionOptions.sessionId).catch((closeError) => notice(String(closeError)));
|
|
141
|
+
await setup.cleanup().catch((cleanupError) => notice(String(cleanupError)));
|
|
142
|
+
throw error;
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
get: (sessionId) => baseSessionManager.get(sessionId),
|
|
146
|
+
sessions: () => baseSessionManager.sessions(),
|
|
147
|
+
closeSession: closeManagedSession,
|
|
148
|
+
async close() {
|
|
149
|
+
const ids = baseSessionManager.sessions().map((session) => session.runtime.sessionId);
|
|
150
|
+
const failures = (await Promise.allSettled(ids.map((id) => closeManagedSession(id)))).filter((outcome) => outcome.status === "rejected").map((outcome) => outcome.reason);
|
|
151
|
+
if (failures.length > 0) throw new AggregateError(failures, "Headless session shutdown failed");
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
let requestSessionApi = async () => Response.json({ error: "Session API unavailable." }, { status: 404 });
|
|
155
|
+
let openSession = async () => {
|
|
156
|
+
throw new Error("The cockpit session service is not ready.");
|
|
157
|
+
};
|
|
158
|
+
let admitWorkspace = async () => {
|
|
159
|
+
throw new Error("Workspace admission is not ready.");
|
|
160
|
+
};
|
|
161
|
+
let hub;
|
|
162
|
+
hub = (0, _agimon_ai_doompi_core_headless_hub.createHeadlessHub)({
|
|
163
|
+
manager: sessionManager,
|
|
164
|
+
admitWorkspace: (root) => admitWorkspace(root),
|
|
165
|
+
onWorkspaceRemoved: (workspaceId) => webCompositions?.remove({
|
|
166
|
+
scope: "workspace",
|
|
167
|
+
workspaceId
|
|
168
|
+
}),
|
|
169
|
+
createSession: (request) => openSession(request),
|
|
170
|
+
onNotice: notice,
|
|
171
|
+
hubToken: () => attachToken,
|
|
172
|
+
requestSessionApi: (scope, request) => requestSessionApi(scope, request)
|
|
173
|
+
});
|
|
174
|
+
let harnessContext;
|
|
175
|
+
let cockpit;
|
|
176
|
+
let remoteRuntime;
|
|
177
|
+
let attachToken;
|
|
178
|
+
let webCompositions;
|
|
179
|
+
try {
|
|
180
|
+
await telemetry.runInSpan("doompi_server.startup", {}, async () => {
|
|
181
|
+
const token = node_fs.default.readFileSync(options.tokenFile, "utf8").trim();
|
|
182
|
+
if (!token) throw new Error("The attach token file is empty.");
|
|
183
|
+
attachToken = token;
|
|
184
|
+
const resolved = require_sessionArguments.resolveSessionIdentity(options.agentArgs, {
|
|
185
|
+
sessionId: options.sessionId ?? node_crypto.default.randomUUID(),
|
|
186
|
+
sessionName: options.sessionName
|
|
187
|
+
});
|
|
188
|
+
const homeDirectory = baseEnvironment.HOME ?? node_os.default.homedir();
|
|
189
|
+
const globalRoot = (0, _agimon_ai_doompi_config_config.globalDoomConfigDirectory)(homeDirectory);
|
|
190
|
+
webCompositions = (0, _agimon_ai_doompi_core_web_compositions.createWebCompositions)(node_path.default.join(globalRoot, "server"), notice);
|
|
191
|
+
const loadComposition = async (root, scope, selection) => {
|
|
192
|
+
const registration = (0, _agimon_ai_doompi_core_sync_registration.readSyncRegistration)(root, homeDirectory);
|
|
193
|
+
const source = (0, _agimon_ai_doompi_core_server_facet.resolveServerBundleSource)({ registration });
|
|
194
|
+
if (source.kind !== "descriptor") throw new Error(`Run the scoped DoomPi sync for '${root}' before opening it.`);
|
|
195
|
+
const selected = selection ?? (() => {
|
|
196
|
+
const config = (0, _agimon_ai_doompi_config_majorModes.loadMajorModesConfig)(root, homeDirectory);
|
|
197
|
+
const majorMode = config.defaultMajorMode;
|
|
198
|
+
return {
|
|
199
|
+
root,
|
|
200
|
+
majorMode,
|
|
201
|
+
activeLayers: (0, _agimon_ai_doompi_config_majorModes.resolveLayers)(config, majorMode)
|
|
202
|
+
};
|
|
203
|
+
})();
|
|
204
|
+
return (0, _agimon_ai_doompi_core_server_facet.loadServerBundle)(scope, {
|
|
205
|
+
...source,
|
|
206
|
+
...selected,
|
|
207
|
+
retainCandidates: scope === "session",
|
|
208
|
+
onNotice: notice
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
const sharedApiContext = {
|
|
212
|
+
homeDirectory,
|
|
213
|
+
environment: baseEnvironment,
|
|
214
|
+
hubToken: token,
|
|
215
|
+
sessionService: hub.sessionService,
|
|
216
|
+
directEvents: hub.directEvents,
|
|
217
|
+
repositories: () => hub.workspaces().map((workspace) => ({
|
|
218
|
+
id: workspace.id,
|
|
219
|
+
path: workspace.root,
|
|
220
|
+
name: workspace.root.split("/").at(-1) ?? workspace.id,
|
|
221
|
+
active: hub.snapshot().some((session) => session.workspaceId === workspace.id)
|
|
222
|
+
})),
|
|
223
|
+
resolveRepository: (id) => hub.workspaces().find((workspace) => workspace.id === id)?.root,
|
|
224
|
+
readRepositorySync: (id) => {
|
|
225
|
+
const root = hub.workspaces().find((workspace) => workspace.id === id)?.root;
|
|
226
|
+
if (!root) return void 0;
|
|
227
|
+
const drift = require_index$3.readSyncDrift({
|
|
228
|
+
repoRoot: root,
|
|
229
|
+
homeDirectory,
|
|
230
|
+
requireWebBundle: true
|
|
231
|
+
});
|
|
232
|
+
const state = require_index$2.readSyncState(root, homeDirectory);
|
|
233
|
+
return {
|
|
234
|
+
...drift,
|
|
235
|
+
mcpProjection: state?.fileState.mcpProjection
|
|
236
|
+
};
|
|
237
|
+
},
|
|
238
|
+
onNotice: notice
|
|
239
|
+
};
|
|
240
|
+
const globalBundle = await loadComposition(globalRoot, "global");
|
|
241
|
+
webCompositions.publishShell((0, _agimon_ai_doompi_core_sync_registration.readSyncRegistration)(globalRoot, homeDirectory));
|
|
242
|
+
remoteRuntime = (0, _agimon_ai_doompi_core_remote_runtime.createRemoteRuntime)({
|
|
243
|
+
homeDirectory,
|
|
244
|
+
registrationToken: token,
|
|
245
|
+
bundleTrust: () => webCompositions?.shellTrust(),
|
|
246
|
+
onNotice: notice,
|
|
247
|
+
forward: async (request) => {
|
|
248
|
+
if (!cockpit || !attachToken) return Response.json({ error: "The headless server is not ready." }, { status: 503 });
|
|
249
|
+
const from = new URL(request.url);
|
|
250
|
+
const headers = new Headers(request.headers);
|
|
251
|
+
headers.set("x-doompi-token", attachToken);
|
|
252
|
+
return fetch(new URL(`${from.pathname}${from.search}`, cockpit.url), new Request(request, { headers }));
|
|
253
|
+
},
|
|
254
|
+
connectProtocol: (pathname) => {
|
|
255
|
+
if (!cockpit || !attachToken) throw new Error("The headless protocol listener is not ready.");
|
|
256
|
+
const url = new URL(pathname, cockpit.url);
|
|
257
|
+
url.protocol = "ws:";
|
|
258
|
+
return new ws.default(url, { headers: { "x-doompi-token": attachToken } });
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
await hub.mountFacets(globalBundle.facets, {
|
|
262
|
+
...sharedApiContext,
|
|
263
|
+
scope: "global",
|
|
264
|
+
remoteControl: { fetch: (request) => remoteRuntime.fetchLocal(request) }
|
|
265
|
+
});
|
|
266
|
+
webCompositions.publish({ scope: "global" }, (0, _agimon_ai_doompi_core_sync_registration.readSyncRegistration)(globalRoot, homeDirectory), hub.channelTypes());
|
|
267
|
+
const admissions = /* @__PURE__ */ new Map();
|
|
268
|
+
admitWorkspace = async (from) => {
|
|
269
|
+
const root = node_fs.default.realpathSync(require_index$1.findRepositoryRoot(from));
|
|
270
|
+
const id = (0, _agimon_ai_doompi_core_sync_location.resolveSyncLocation)(root, homeDirectory).identity.worktreeId;
|
|
271
|
+
const existing = hub.workspaces().find((workspace) => workspace.id === id);
|
|
272
|
+
if (existing) return existing;
|
|
273
|
+
const pending = admissions.get(id);
|
|
274
|
+
if (pending) return pending;
|
|
275
|
+
const admission = (async () => {
|
|
276
|
+
const syncEnvironment = {
|
|
277
|
+
...baseEnvironment,
|
|
278
|
+
DOOMPI_ROOT: root
|
|
279
|
+
};
|
|
280
|
+
for (const key of [_agimon_ai_doompi_config_harnessStore.HARNESS_STATE_POINTER, ...Object.values(_agimon_ai_doompi_config_harnessState.HARNESS_STATE_KEYS)]) delete syncEnvironment[key];
|
|
281
|
+
await syncWorkspace(root, syncEnvironment);
|
|
282
|
+
const bundle = await loadComposition(root, "workspace");
|
|
283
|
+
await hub.mountFacets(bundle.facets, {
|
|
284
|
+
...sharedApiContext,
|
|
285
|
+
scope: "workspace",
|
|
286
|
+
workspaceId: id,
|
|
287
|
+
workspaceRoot: root,
|
|
288
|
+
cwd: root,
|
|
289
|
+
resolveRepository: (requestedId) => requestedId === id ? root : void 0
|
|
290
|
+
});
|
|
291
|
+
webCompositions?.publish({
|
|
292
|
+
scope: "workspace",
|
|
293
|
+
workspaceId: id
|
|
294
|
+
}, (0, _agimon_ai_doompi_core_sync_registration.readSyncRegistration)(root, homeDirectory), hub.channelTypes());
|
|
295
|
+
return {
|
|
296
|
+
id,
|
|
297
|
+
root
|
|
298
|
+
};
|
|
299
|
+
})();
|
|
300
|
+
admissions.set(id, admission);
|
|
301
|
+
try {
|
|
302
|
+
return await admission;
|
|
303
|
+
} finally {
|
|
304
|
+
admissions.delete(id);
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
const sessionHostOptions = (context, bundle, identity) => {
|
|
308
|
+
const policyOptions = context.options;
|
|
309
|
+
const sessionSelection = {
|
|
310
|
+
root: policyOptions.repoRoot,
|
|
311
|
+
majorMode: policyOptions.majorMode,
|
|
312
|
+
activeLayers: context.selectedLayers,
|
|
313
|
+
domains: policyOptions.domains,
|
|
314
|
+
profile: context.profile,
|
|
315
|
+
state: { "minor-mode": [] }
|
|
316
|
+
};
|
|
317
|
+
return {
|
|
318
|
+
cwd: policyOptions.cwd,
|
|
319
|
+
repoRoot: policyOptions.repoRoot,
|
|
320
|
+
sessionId: identity.sessionId,
|
|
321
|
+
workspaceId: (0, _agimon_ai_doompi_core_sync_location.resolveSyncLocation)(policyOptions.repoRoot, homeDirectory).identity.worktreeId,
|
|
322
|
+
sessionName: identity.sessionName,
|
|
323
|
+
webComposition: webCompositions?.publish({
|
|
324
|
+
scope: "session",
|
|
325
|
+
sessionId: identity.sessionId
|
|
326
|
+
}, (0, _agimon_ai_doompi_core_sync_registration.readSyncRegistration)(policyOptions.repoRoot, homeDirectory), hub.channelTypes()),
|
|
327
|
+
...identity.parentSessionId === void 0 ? {} : { parentSessionId: identity.parentSessionId },
|
|
328
|
+
...identity.sessionProvenance === void 0 ? {} : { sessionProvenance: identity.sessionProvenance },
|
|
329
|
+
agentArgs: policyOptions.piArgs,
|
|
330
|
+
environment: Object.freeze({ ...context.environment }),
|
|
331
|
+
selection: sessionSelection,
|
|
332
|
+
selectionOverrides: [
|
|
333
|
+
"majorMode",
|
|
334
|
+
"domains",
|
|
335
|
+
"profile"
|
|
336
|
+
].filter((axis) => {
|
|
337
|
+
const flag = axis === "majorMode" ? "--major-mode" : `--${axis}`;
|
|
338
|
+
return identity.sessionId === resolved.identity.sessionId && resolved.agentArgs.some((arg) => arg === flag || arg.startsWith(`${flag}=`));
|
|
339
|
+
}),
|
|
340
|
+
inheritedSelection: () => {
|
|
341
|
+
const environment = { ...baseEnvironment };
|
|
342
|
+
for (const key of [_agimon_ai_doompi_config_harnessStore.HARNESS_STATE_POINTER, ...Object.values(_agimon_ai_doompi_config_harnessState.HARNESS_STATE_KEYS)]) delete environment[key];
|
|
343
|
+
const defaults = resolveHarnessOptions({
|
|
344
|
+
args: ["--cwd", policyOptions.cwd],
|
|
345
|
+
cwd: policyOptions.cwd,
|
|
346
|
+
environment
|
|
347
|
+
});
|
|
348
|
+
return {
|
|
349
|
+
majorMode: defaults.majorMode,
|
|
350
|
+
domains: defaults.domains,
|
|
351
|
+
profile: defaults.profile
|
|
352
|
+
};
|
|
353
|
+
},
|
|
354
|
+
candidates: bundle.descriptor.entries,
|
|
355
|
+
resolveSelection: (requested) => {
|
|
356
|
+
const config = (0, _agimon_ai_doompi_config_majorModes.loadMajorModesConfig)(policyOptions.repoRoot, policyOptions.homeDirectory);
|
|
357
|
+
return {
|
|
358
|
+
...requested,
|
|
359
|
+
activeLayers: (0, _agimon_ai_doompi_config_majorModes.filterHookDisabledLayers)(config, (0, _agimon_ai_doompi_config_majorModes.resolveLayers)(config, requested.majorMode), policyOptions.hooks)
|
|
360
|
+
};
|
|
361
|
+
},
|
|
362
|
+
onNotice: notice
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
mountSessionApis = (sessionOptions, host) => (0, _agimon_ai_doompi_core_package_api_server.serveSessionApis)({
|
|
366
|
+
sessionId: sessionOptions.sessionId,
|
|
367
|
+
cwd: sessionOptions.cwd,
|
|
368
|
+
environment: sessionOptions.environment,
|
|
369
|
+
directEvents: hub.directEvents,
|
|
370
|
+
hubToken: token,
|
|
371
|
+
sessionService: hub.sessionService,
|
|
372
|
+
pluginRegistry: hub.pluginRegistry,
|
|
373
|
+
apis: [],
|
|
374
|
+
facets: pendingSessions.get(sessionOptions.sessionId)?.bundle.facets ?? [],
|
|
375
|
+
workspaceId: sessionOptions.workspaceId,
|
|
376
|
+
workspaceRoot: sessionOptions.repoRoot,
|
|
377
|
+
homeDirectory,
|
|
378
|
+
mountChannel: (channel) => {
|
|
379
|
+
return {
|
|
380
|
+
mounted: true,
|
|
381
|
+
dispose: hub.registerChannel(channel, {
|
|
382
|
+
scope: "session",
|
|
383
|
+
sessionId: sessionOptions.sessionId
|
|
384
|
+
})
|
|
385
|
+
};
|
|
386
|
+
},
|
|
387
|
+
prepareFacets: host.prepareFacets,
|
|
388
|
+
activateFacets: host.activateFacets,
|
|
389
|
+
canDispatch: host.canDispatch,
|
|
390
|
+
telemetry,
|
|
391
|
+
onNotice: notice
|
|
392
|
+
});
|
|
393
|
+
requestSessionApi = async (scope, request) => {
|
|
394
|
+
const session = hub.session(scope.sessionId);
|
|
395
|
+
const artifacts = sessionArtifacts.get(scope.sessionId);
|
|
396
|
+
if (session === void 0 || session.cwd !== scope.cwd || artifacts === void 0) return Response.json({ error: "Session not found." }, { status: 404 });
|
|
397
|
+
if (!/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u.test(request.basePath)) return Response.json({ error: "Invalid session API base path." }, { status: 400 });
|
|
398
|
+
if (!request.path.startsWith("/") || request.path.startsWith("//") || request.path.includes("#")) return Response.json({ error: "Invalid session API path." }, { status: 400 });
|
|
399
|
+
const body = request.body === null || request.body === void 0 ? void 0 : request.body;
|
|
400
|
+
return artifacts.apis.request(new Request(`http://doompi.local/api/plugins/${request.basePath}${request.path}`, {
|
|
401
|
+
method: request.method,
|
|
402
|
+
headers: request.headers,
|
|
403
|
+
...body === void 0 ? {} : { body },
|
|
404
|
+
...request.signal === void 0 ? {} : { signal: request.signal }
|
|
405
|
+
}));
|
|
406
|
+
};
|
|
407
|
+
if (!options.noSession) {
|
|
408
|
+
harnessContext = await require_harnessContext.buildHarnessContext(resolveHarnessOptions({
|
|
409
|
+
args: resolved.agentArgs,
|
|
410
|
+
cwd: baseCwd,
|
|
411
|
+
environment: baseEnvironment
|
|
412
|
+
}), harnessTelemetry);
|
|
413
|
+
const activeHarnessContext = harnessContext;
|
|
414
|
+
try {
|
|
415
|
+
await admitWorkspace(harnessContext.options.repoRoot);
|
|
416
|
+
const initialBundle = await loadComposition(harnessContext.options.repoRoot, "session", {
|
|
417
|
+
root: harnessContext.options.repoRoot,
|
|
418
|
+
majorMode: harnessContext.options.majorMode,
|
|
419
|
+
activeLayers: harnessContext.selectedLayers
|
|
420
|
+
});
|
|
421
|
+
pendingSessions.set(resolved.identity.sessionId, {
|
|
422
|
+
cleanup: () => activeHarnessContext.cleanup(),
|
|
423
|
+
bundle: initialBundle
|
|
424
|
+
});
|
|
425
|
+
await hub.create(sessionHostOptions(harnessContext, initialBundle, resolved.identity));
|
|
426
|
+
} catch (error) {
|
|
427
|
+
pendingSessions.delete(resolved.identity.sessionId);
|
|
428
|
+
await activeHarnessContext.cleanup().catch((cleanupError) => notice(String(cleanupError)));
|
|
429
|
+
throw error;
|
|
430
|
+
}
|
|
431
|
+
await bounded(harnessTelemetry.flush(), "initial composition telemetry flush", notice);
|
|
432
|
+
}
|
|
433
|
+
openSession = async (request, sessionId) => {
|
|
434
|
+
const identity = {
|
|
435
|
+
sessionId: sessionId ?? node_crypto.default.randomUUID(),
|
|
436
|
+
sessionName: request.name,
|
|
437
|
+
parentSessionId: request.parentSessionId,
|
|
438
|
+
sessionProvenance: request.sessionProvenance
|
|
439
|
+
};
|
|
440
|
+
const childIdentity = require_sessionArguments.resolveSessionIdentity([], identity);
|
|
441
|
+
const childEnvironment = { ...baseEnvironment };
|
|
442
|
+
for (const key of [_agimon_ai_doompi_config_harnessStore.HARNESS_STATE_POINTER, ...Object.values(_agimon_ai_doompi_config_harnessState.HARNESS_STATE_KEYS)]) delete childEnvironment[key];
|
|
443
|
+
const childContext = await require_harnessContext.buildHarnessContext(resolveHarnessOptions({
|
|
444
|
+
args: [
|
|
445
|
+
"--cwd",
|
|
446
|
+
request.cwd,
|
|
447
|
+
...childIdentity.agentArgs
|
|
448
|
+
],
|
|
449
|
+
cwd: request.cwd,
|
|
450
|
+
environment: childEnvironment
|
|
451
|
+
}), harnessTelemetry);
|
|
452
|
+
try {
|
|
453
|
+
await admitWorkspace(childContext.options.repoRoot);
|
|
454
|
+
const bundle = await loadComposition(childContext.options.repoRoot, "session", {
|
|
455
|
+
root: childContext.options.repoRoot,
|
|
456
|
+
majorMode: childContext.options.majorMode,
|
|
457
|
+
activeLayers: childContext.selectedLayers
|
|
458
|
+
});
|
|
459
|
+
pendingSessions.set(identity.sessionId, {
|
|
460
|
+
cleanup: () => childContext.cleanup(),
|
|
461
|
+
bundle
|
|
462
|
+
});
|
|
463
|
+
const created = await hub.create(sessionHostOptions(childContext, bundle, identity));
|
|
464
|
+
if (created.workspaceId !== void 0) openSessions.add({
|
|
465
|
+
sessionId: created.id,
|
|
466
|
+
workspaceId: created.workspaceId,
|
|
467
|
+
cwd: created.cwd,
|
|
468
|
+
name: created.name,
|
|
469
|
+
createdAt: created.createdAt,
|
|
470
|
+
...created.parentSessionId === void 0 ? {} : { parentSessionId: created.parentSessionId },
|
|
471
|
+
...created.sessionProvenance === void 0 ? {} : { sessionProvenance: created.sessionProvenance }
|
|
472
|
+
});
|
|
473
|
+
return {
|
|
474
|
+
sessionId: identity.sessionId,
|
|
475
|
+
cwd: childContext.options.cwd
|
|
476
|
+
};
|
|
477
|
+
} catch (error) {
|
|
478
|
+
pendingSessions.delete(identity.sessionId);
|
|
479
|
+
await childContext.cleanup().catch((cleanupError) => notice(String(cleanupError)));
|
|
480
|
+
throw error;
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
});
|
|
484
|
+
cockpit = await (0, _agimon_ai_doompi_core_headless_server.serveHeadlessServer)({
|
|
485
|
+
port: options.webPort,
|
|
486
|
+
headlessHub: hub,
|
|
487
|
+
token: attachToken,
|
|
488
|
+
sessionMcpPublicOrigin: () => remoteRuntime?.remote.publicOrigin(),
|
|
489
|
+
sessionMcpPublicOriginRevision: () => remoteRuntime?.remote.publicOriginRevision() ?? 0,
|
|
490
|
+
sessionHistory: (session) => {
|
|
491
|
+
const workspaceRoot = hub.workspaces().find((workspace) => workspace.id === session.workspaceId)?.root;
|
|
492
|
+
if (!workspaceRoot) throw new Error("Session workspace not found.");
|
|
493
|
+
return (0, _agimon_ai_doompi_core_history.listSavedSessions)(node_path.default.join((0, _agimon_ai_doompi_core_pi_settings.piAgentDirectory)(baseEnvironment), "server", "sessions"), workspaceRoot, new Set(hub.snapshot().map((active) => active.id)));
|
|
494
|
+
},
|
|
495
|
+
readDormantTranscript: (record, request, context) => {
|
|
496
|
+
const workspaceRoot = hub.workspaces().find((workspace) => workspace.id === record.workspaceId)?.root;
|
|
497
|
+
if (!workspaceRoot) throw new Error("Saved transcript unavailable.");
|
|
498
|
+
return (0, _agimon_ai_doompi_core_history.readSqliteTranscript)(node_path.default.join((0, _agimon_ai_doompi_core_pi_settings.piAgentDirectory)(baseEnvironment), "server", "sessions", `${record.sessionId}.sqlite`), request, context, {
|
|
499
|
+
sessionId: record.sessionId,
|
|
500
|
+
workspaceRoot
|
|
501
|
+
});
|
|
502
|
+
},
|
|
503
|
+
restartSession: async (session) => {
|
|
504
|
+
const workspaceRoot = hub.workspaces().find((workspace) => workspace.id === session.workspaceId)?.root;
|
|
505
|
+
if (!workspaceRoot) throw new Error("Session workspace not found.");
|
|
506
|
+
const syncEnvironment = {
|
|
507
|
+
...baseEnvironment,
|
|
508
|
+
DOOMPI_ROOT: workspaceRoot
|
|
509
|
+
};
|
|
510
|
+
for (const key of [_agimon_ai_doompi_config_harnessStore.HARNESS_STATE_POINTER, ...Object.values(_agimon_ai_doompi_config_harnessState.HARNESS_STATE_KEYS)]) delete syncEnvironment[key];
|
|
511
|
+
try {
|
|
512
|
+
await syncWorkspace(workspaceRoot, syncEnvironment);
|
|
513
|
+
} catch (error) {
|
|
514
|
+
notice(`Workspace sync failed before restart: ${error instanceof Error ? error.message : String(error)}`);
|
|
515
|
+
throw new Error("Workspace sync failed; the session is still running.", { cause: error });
|
|
516
|
+
}
|
|
517
|
+
await hub.closeSession(session.id);
|
|
518
|
+
await openSession({
|
|
519
|
+
cwd: session.cwd,
|
|
520
|
+
name: session.name
|
|
521
|
+
}, session.id);
|
|
522
|
+
},
|
|
523
|
+
resumeSession: async (session, targetSessionId) => {
|
|
524
|
+
const workspaceRoot = hub.workspaces().find((workspace) => workspace.id === session.workspaceId)?.root;
|
|
525
|
+
if (!workspaceRoot) throw new Error("Session workspace not found.");
|
|
526
|
+
const target = (await (0, _agimon_ai_doompi_core_history.listSavedSessions)(node_path.default.join((0, _agimon_ai_doompi_core_pi_settings.piAgentDirectory)(baseEnvironment), "server", "sessions"), workspaceRoot, new Set(hub.snapshot().map((active) => active.id)))).find((item) => item.id === targetSessionId);
|
|
527
|
+
if (!target) throw new Error("Saved Pi thread not found in this workspace.");
|
|
528
|
+
await hub.closeSession(session.id);
|
|
529
|
+
await openSession({
|
|
530
|
+
cwd: session.cwd,
|
|
531
|
+
name: target.name ?? "untitled"
|
|
532
|
+
}, target.id);
|
|
533
|
+
return target.id;
|
|
534
|
+
},
|
|
535
|
+
dormantSessions: () => openSessions.list(),
|
|
536
|
+
removeDormantSession: (record) => openSessions.remove(record.sessionId),
|
|
537
|
+
reviveSession: async (record) => {
|
|
538
|
+
await openSession({
|
|
539
|
+
cwd: record.cwd,
|
|
540
|
+
name: record.name,
|
|
541
|
+
...record.parentSessionId === void 0 ? {} : { parentSessionId: record.parentSessionId },
|
|
542
|
+
...record.sessionProvenance === void 0 ? {} : { sessionProvenance: record.sessionProvenance }
|
|
543
|
+
}, record.sessionId);
|
|
544
|
+
},
|
|
545
|
+
requestAsset: (request) => webCompositions?.request(request) ?? Promise.resolve(void 0),
|
|
546
|
+
compositions: () => ({
|
|
547
|
+
global: webCompositions?.get({ scope: "global" }),
|
|
548
|
+
publicKey: webCompositions?.publicKey(),
|
|
549
|
+
shell: webCompositions?.shellTrust(),
|
|
550
|
+
workspaces: hub.workspaces().map((workspace) => ({
|
|
551
|
+
...workspace,
|
|
552
|
+
webComposition: webCompositions?.get({
|
|
553
|
+
scope: "workspace",
|
|
554
|
+
workspaceId: workspace.id
|
|
555
|
+
})
|
|
556
|
+
}))
|
|
557
|
+
}),
|
|
558
|
+
telemetry,
|
|
559
|
+
onNotice: notice
|
|
560
|
+
});
|
|
561
|
+
notice(`protocol on ${cockpit.url}/api/ws`);
|
|
562
|
+
let resolveShutdown;
|
|
563
|
+
const shutdown = new Promise((resolve) => {
|
|
564
|
+
resolveShutdown = resolve;
|
|
565
|
+
});
|
|
566
|
+
const stop = () => resolveShutdown(0);
|
|
567
|
+
signal.addEventListener("abort", stop, { once: true });
|
|
568
|
+
if (signal.aborted) stop();
|
|
569
|
+
try {
|
|
570
|
+
return await shutdown;
|
|
571
|
+
} finally {
|
|
572
|
+
signal.removeEventListener("abort", stop);
|
|
573
|
+
}
|
|
574
|
+
} finally {
|
|
575
|
+
shuttingDown = true;
|
|
576
|
+
clearInterval(eventLoopMonitor);
|
|
577
|
+
await bounded(telemetry.recordEvent("doompi_server.shutdown"), "shutdown telemetry", notice);
|
|
578
|
+
await Promise.allSettled([cockpit?.close()]);
|
|
579
|
+
await bounded(remoteRuntime?.close() ?? Promise.resolve(), "remote control shutdown", notice);
|
|
580
|
+
try {
|
|
581
|
+
await hub.close();
|
|
582
|
+
} catch (error) {
|
|
583
|
+
notice(error instanceof Error ? error.message : String(error));
|
|
584
|
+
}
|
|
585
|
+
try {
|
|
586
|
+
await sessionManager.close();
|
|
587
|
+
} catch (error) {
|
|
588
|
+
notice(error instanceof Error ? error.message : String(error));
|
|
589
|
+
}
|
|
590
|
+
webCompositions?.close();
|
|
591
|
+
const pendingCleanups = [...pendingSessions.values()].map((setup) => setup.cleanup());
|
|
592
|
+
pendingSessions.clear();
|
|
593
|
+
await Promise.allSettled(pendingCleanups);
|
|
594
|
+
await bounded(harnessTelemetry.flush(), "harness telemetry flush", notice);
|
|
595
|
+
await bounded(harnessTelemetry.shutdown(), "harness telemetry shutdown", notice);
|
|
596
|
+
await bounded(telemetry.flush(), "server telemetry flush", notice);
|
|
597
|
+
await bounded(telemetry.shutdown(), "server telemetry shutdown", notice);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
//#endregion
|
|
601
|
+
exports.runServerRuntime = runServerRuntime;
|
|
602
|
+
|
|
603
|
+
//# sourceMappingURL=runtime.cjs.map
|