@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,22 @@
|
|
|
1
|
+
import { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
import { AgentModelProjection } from "@agimon-ai/doompi-core/agent-model";
|
|
3
|
+
//#region src/extensions/agentModel.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Journals the model the agent is on whenever something inside the agent
|
|
6
|
+
* changes it.
|
|
7
|
+
*
|
|
8
|
+
* Pi announces a thinking-level switch on the wire, so a cockpit can follow
|
|
9
|
+
* that field from the frame alone. It announces a model switch only in-process,
|
|
10
|
+
* through `model_select`. Without this entry a client that did not itself ask
|
|
11
|
+
* for the switch keeps whatever model its last `get_state` reported, which is
|
|
12
|
+
* what plan mode applying its configured planning model looks like from a
|
|
13
|
+
* browser: the footer names the model the session left behind.
|
|
14
|
+
*
|
|
15
|
+
* The entry rides Pi's `entry_appended` frames, the same road the minor-mode
|
|
16
|
+
* projection takes, so it reaches live and replaying clients alike.
|
|
17
|
+
*/
|
|
18
|
+
export declare function publishAgentModel(pi: Pick<ExtensionAPI, 'appendEntry'>, projection: AgentModelProjection, published: string | undefined): string;
|
|
19
|
+
export declare function agentModelExtension(pi: ExtensionAPI): void;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { agentModelExtension as default };
|
|
22
|
+
//# sourceMappingURL=agent-model.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-model.d.mts","names":[],"sources":["../../src/extensions/agentModel.ts"],"mappings":";;;;;;;;;;;;;;;;;wBAiBgB,kBACd,IAAI,KAAK,8BACT,YAAY,sBACZ;wBAUc,oBAAoB,IAAI"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DOOM_AGENT_MODEL_ENTRY_TYPE } from "@agimon-ai/doompi-core/agent-model";
|
|
2
|
+
//#region src/extensions/agentModel.ts
|
|
3
|
+
/**
|
|
4
|
+
* Journals the model the agent is on whenever something inside the agent
|
|
5
|
+
* changes it.
|
|
6
|
+
*
|
|
7
|
+
* Pi announces a thinking-level switch on the wire, so a cockpit can follow
|
|
8
|
+
* that field from the frame alone. It announces a model switch only in-process,
|
|
9
|
+
* through `model_select`. Without this entry a client that did not itself ask
|
|
10
|
+
* for the switch keeps whatever model its last `get_state` reported, which is
|
|
11
|
+
* what plan mode applying its configured planning model looks like from a
|
|
12
|
+
* browser: the footer names the model the session left behind.
|
|
13
|
+
*
|
|
14
|
+
* The entry rides Pi's `entry_appended` frames, the same road the minor-mode
|
|
15
|
+
* projection takes, so it reaches live and replaying clients alike.
|
|
16
|
+
*/
|
|
17
|
+
function publishAgentModel(pi, projection, published) {
|
|
18
|
+
const serialized = JSON.stringify(projection);
|
|
19
|
+
if (serialized === published) return serialized;
|
|
20
|
+
pi.appendEntry(DOOM_AGENT_MODEL_ENTRY_TYPE, projection);
|
|
21
|
+
return serialized;
|
|
22
|
+
}
|
|
23
|
+
function agentModelExtension(pi) {
|
|
24
|
+
let published;
|
|
25
|
+
pi.on("model_select", (event) => {
|
|
26
|
+
published = publishAgentModel(pi, {
|
|
27
|
+
provider: event.model.provider,
|
|
28
|
+
id: event.model.id
|
|
29
|
+
}, published);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { agentModelExtension, agentModelExtension as default, publishAgentModel };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=agent-model.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-model.mjs","names":[],"sources":["../../src/extensions/agentModel.ts"],"sourcesContent":["import { type AgentModelProjection, DOOM_AGENT_MODEL_ENTRY_TYPE } from '@agimon-ai/doompi-core/agent-model';\nimport type { ExtensionAPI } from '@earendil-works/pi-coding-agent';\n\n/**\n * Journals the model the agent is on whenever something inside the agent\n * changes it.\n *\n * Pi announces a thinking-level switch on the wire, so a cockpit can follow\n * that field from the frame alone. It announces a model switch only in-process,\n * through `model_select`. Without this entry a client that did not itself ask\n * for the switch keeps whatever model its last `get_state` reported, which is\n * what plan mode applying its configured planning model looks like from a\n * browser: the footer names the model the session left behind.\n *\n * The entry rides Pi's `entry_appended` frames, the same road the minor-mode\n * projection takes, so it reaches live and replaying clients alike.\n */\nexport function publishAgentModel(\n pi: Pick<ExtensionAPI, 'appendEntry'>,\n projection: AgentModelProjection,\n published: string | undefined,\n): string {\n const serialized = JSON.stringify(projection);\n // A model_select that resolves to the model already on the record is noise:\n // plan mode restoring the model it never actually changed still fires one.\n if (serialized === published) return serialized;\n pi.appendEntry(DOOM_AGENT_MODEL_ENTRY_TYPE, projection);\n return serialized;\n}\n\nexport function agentModelExtension(pi: ExtensionAPI): void {\n let published: string | undefined;\n pi.on('model_select', (event) => {\n published = publishAgentModel(pi, { provider: event.model.provider, id: event.model.id }, published);\n });\n}\n\nexport default agentModelExtension;\n"],"mappings":";;;;;;;;;;;;;;;;AAiBA,SAAgB,kBACd,IACA,YACA,WACQ;CACR,MAAM,aAAa,KAAK,UAAU,UAAU;CAG5C,IAAI,eAAe,WAAW,OAAO;CACrC,GAAG,YAAY,6BAA6B,UAAU;CACtD,OAAO;AACT;AAEA,SAAgB,oBAAoB,IAAwB;CAC1D,IAAI;CACJ,GAAG,GAAG,iBAAiB,UAAU;EAC/B,YAAY,kBAAkB,IAAI;GAAE,UAAU,MAAM,MAAM;GAAU,IAAI,MAAM,MAAM;EAAG,GAAG,SAAS;CACrG,CAAC;AACH"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
const require_index = require("../builders/cli/bootstrapLocator/index.cjs");
|
|
6
|
+
const require_compositionState = require("../builders/cli/compositionState.cjs");
|
|
7
|
+
const require_composition = require("../builders/cli/composition.cjs");
|
|
8
|
+
let _agimon_ai_doompi_config_harnessStore = require("@agimon-ai/doompi-config/harnessStore");
|
|
9
|
+
//#region src/extensions/composedPi.ts
|
|
10
|
+
const WARNING = "warning";
|
|
11
|
+
const STALE_MESSAGE = "doompi config changed since the last sync. Run doompi sync.";
|
|
12
|
+
/**
|
|
13
|
+
* The one entry `doom-pi sync` puts in Pi's own config.
|
|
14
|
+
*
|
|
15
|
+
* Everything doom-pi contributes to a plain `pi` session is loaded from here,
|
|
16
|
+
* which is what keeps `.pi/settings.json` to a single stable line and lets the
|
|
17
|
+
* whole matrix be recomposed on `/reload` rather than frozen at startup.
|
|
18
|
+
*/
|
|
19
|
+
async function doomExtension(pi) {
|
|
20
|
+
const releaseClaim = require_compositionState.acquireCompositionClaim();
|
|
21
|
+
if (!releaseClaim) return;
|
|
22
|
+
try {
|
|
23
|
+
require_composition.registerDoomFlags(pi);
|
|
24
|
+
const outcome = await require_composition.composeDoomSession(pi);
|
|
25
|
+
pi.on("session_start", (_event, ctx) => {
|
|
26
|
+
releaseClaim();
|
|
27
|
+
for (const problem of outcome.problems) ctx.ui.notify(problem, WARNING);
|
|
28
|
+
if (outcome.stale) ctx.ui.notify(STALE_MESSAGE, WARNING);
|
|
29
|
+
});
|
|
30
|
+
pi.on("session_shutdown", async (event, ctx) => {
|
|
31
|
+
if (event.reason === "reload") return;
|
|
32
|
+
const repoRoot = require_index.findSyncedRoot(ctx.cwd);
|
|
33
|
+
if (!repoRoot) return;
|
|
34
|
+
(0, _agimon_ai_doompi_config_harnessStore.disposeHarnessState)();
|
|
35
|
+
await require_composition.cleanupRunDirectory(repoRoot);
|
|
36
|
+
});
|
|
37
|
+
} catch (error) {
|
|
38
|
+
releaseClaim();
|
|
39
|
+
throw error;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
exports.default = doomExtension;
|
|
44
|
+
exports.doomExtension = doomExtension;
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=composed-pi.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composed-pi.cjs","names":["acquireCompositionClaim","composeDoomSession","findSyncedRoot","cleanupRunDirectory"],"sources":["../../src/extensions/composedPi.ts"],"sourcesContent":["import { disposeHarnessState } from '@agimon-ai/doompi-config/harnessStore';\nimport type { ExtensionAPI } from '@earendil-works/pi-coding-agent';\n\n// Imported from the module rather than the barrel: Pi loads this file directly\n// and it is the first thing a synced session runs, so it pulls in nothing it\n// does not use.\nimport {\n type ComposeOutcome,\n cleanupRunDirectory,\n composeDoomSession,\n findSyncedRoot,\n registerDoomFlags,\n} from '../builders/cli/composition';\nimport { acquireCompositionClaim } from '../builders/cli/compositionState';\nconst WARNING = 'warning';\nconst STALE_MESSAGE = 'doompi config changed since the last sync. Run doompi sync.';\n\n/**\n * The one entry `doom-pi sync` puts in Pi's own config.\n *\n * Everything doom-pi contributes to a plain `pi` session is loaded from here,\n * which is what keeps `.pi/settings.json` to a single stable line and lets the\n * whole matrix be recomposed on `/reload` rather than frozen at startup.\n */\nexport async function doomExtension(pi: ExtensionAPI): Promise<void> {\n const releaseClaim = acquireCompositionClaim();\n if (!releaseClaim) return;\n\n try {\n registerDoomFlags(pi);\n const outcome: ComposeOutcome = await composeDoomSession(pi);\n\n // Reported on session_start rather than thrown: composition problems have to\n // reach the user through the UI, and the UI does not exist yet at load time.\n pi.on('session_start', (_event, ctx) => {\n // Every configured factory has loaded. A later /reload gets a new claim,\n // while a duplicate registration in this runner has already stood down.\n releaseClaim();\n for (const problem of outcome.problems) ctx.ui.notify(problem, WARNING);\n if (outcome.stale) ctx.ui.notify(STALE_MESSAGE, WARNING);\n });\n\n pi.on('session_shutdown', async (event, ctx) => {\n // Reload keeps the process and its deterministic run directory alive. The\n // replacement session reuses both, so only terminal shutdown owns cleanup.\n if (event.reason === 'reload') return;\n const repoRoot = findSyncedRoot(ctx.cwd);\n if (!repoRoot) return;\n // The state file first, so nothing is left pointing at a path that is\n // about to disappear, then the directory it lived in.\n disposeHarnessState();\n await cleanupRunDirectory(repoRoot);\n });\n } catch (error) {\n // Pi discards a failed factory, including the session_start handler that\n // would normally release ownership. Leave a retry or reload possible.\n releaseClaim();\n throw error;\n }\n}\n\nexport default doomExtension;\n"],"mappings":";;;;;;;;;AAcA,MAAM,UAAU;AAChB,MAAM,gBAAgB;;;;;;;;AAStB,eAAsB,cAAc,IAAiC;CACnE,MAAM,eAAeA,yBAAAA,wBAAwB;CAC7C,IAAI,CAAC,cAAc;CAEnB,IAAI;EACF,oBAAA,kBAAkB,EAAE;EACpB,MAAM,UAA0B,MAAMC,oBAAAA,mBAAmB,EAAE;EAI3D,GAAG,GAAG,kBAAkB,QAAQ,QAAQ;GAGtC,aAAa;GACb,KAAK,MAAM,WAAW,QAAQ,UAAU,IAAI,GAAG,OAAO,SAAS,OAAO;GACtE,IAAI,QAAQ,OAAO,IAAI,GAAG,OAAO,eAAe,OAAO;EACzD,CAAC;EAED,GAAG,GAAG,oBAAoB,OAAO,OAAO,QAAQ;GAG9C,IAAI,MAAM,WAAW,UAAU;GAC/B,MAAM,WAAWC,cAAAA,eAAe,IAAI,GAAG;GACvC,IAAI,CAAC,UAAU;GAGf,CAAA,GAAA,sCAAA,oBAAA,CAAoB;GACpB,MAAMC,oBAAAA,oBAAoB,QAAQ;EACpC,CAAC;CACH,SAAS,OAAO;EAGd,aAAa;EACb,MAAM;CACR;AACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
//#region src/extensions/composedPi.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* The one entry `doom-pi sync` puts in Pi's own config.
|
|
5
|
+
*
|
|
6
|
+
* Everything doom-pi contributes to a plain `pi` session is loaded from here,
|
|
7
|
+
* which is what keeps `.pi/settings.json` to a single stable line and lets the
|
|
8
|
+
* whole matrix be recomposed on `/reload` rather than frozen at startup.
|
|
9
|
+
*/
|
|
10
|
+
export declare function doomExtension(pi: ExtensionAPI): Promise<void>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { doomExtension as default };
|
|
13
|
+
//# sourceMappingURL=composed-pi.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composed-pi.d.cts","names":[],"sources":["../../src/extensions/composedPi.ts"],"mappings":";;;;;;;;;wBAwBsB,cAAc,IAAI,eAAe"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
//#region src/extensions/composedPi.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* The one entry `doom-pi sync` puts in Pi's own config.
|
|
5
|
+
*
|
|
6
|
+
* Everything doom-pi contributes to a plain `pi` session is loaded from here,
|
|
7
|
+
* which is what keeps `.pi/settings.json` to a single stable line and lets the
|
|
8
|
+
* whole matrix be recomposed on `/reload` rather than frozen at startup.
|
|
9
|
+
*/
|
|
10
|
+
export declare function doomExtension(pi: ExtensionAPI): Promise<void>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { doomExtension as default };
|
|
13
|
+
//# sourceMappingURL=composed-pi.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composed-pi.d.mts","names":[],"sources":["../../src/extensions/composedPi.ts"],"mappings":";;;;;;;;;wBAwBsB,cAAc,IAAI,eAAe"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { findSyncedRoot } from "../builders/cli/bootstrapLocator/index.mjs";
|
|
2
|
+
import { acquireCompositionClaim } from "../builders/cli/compositionState.mjs";
|
|
3
|
+
import { cleanupRunDirectory, composeDoomSession, registerDoomFlags } from "../builders/cli/composition.mjs";
|
|
4
|
+
import { disposeHarnessState } from "@agimon-ai/doompi-config/harnessStore";
|
|
5
|
+
//#region src/extensions/composedPi.ts
|
|
6
|
+
const WARNING = "warning";
|
|
7
|
+
const STALE_MESSAGE = "doompi config changed since the last sync. Run doompi sync.";
|
|
8
|
+
/**
|
|
9
|
+
* The one entry `doom-pi sync` puts in Pi's own config.
|
|
10
|
+
*
|
|
11
|
+
* Everything doom-pi contributes to a plain `pi` session is loaded from here,
|
|
12
|
+
* which is what keeps `.pi/settings.json` to a single stable line and lets the
|
|
13
|
+
* whole matrix be recomposed on `/reload` rather than frozen at startup.
|
|
14
|
+
*/
|
|
15
|
+
async function doomExtension(pi) {
|
|
16
|
+
const releaseClaim = acquireCompositionClaim();
|
|
17
|
+
if (!releaseClaim) return;
|
|
18
|
+
try {
|
|
19
|
+
registerDoomFlags(pi);
|
|
20
|
+
const outcome = await composeDoomSession(pi);
|
|
21
|
+
pi.on("session_start", (_event, ctx) => {
|
|
22
|
+
releaseClaim();
|
|
23
|
+
for (const problem of outcome.problems) ctx.ui.notify(problem, WARNING);
|
|
24
|
+
if (outcome.stale) ctx.ui.notify(STALE_MESSAGE, WARNING);
|
|
25
|
+
});
|
|
26
|
+
pi.on("session_shutdown", async (event, ctx) => {
|
|
27
|
+
if (event.reason === "reload") return;
|
|
28
|
+
const repoRoot = findSyncedRoot(ctx.cwd);
|
|
29
|
+
if (!repoRoot) return;
|
|
30
|
+
disposeHarnessState();
|
|
31
|
+
await cleanupRunDirectory(repoRoot);
|
|
32
|
+
});
|
|
33
|
+
} catch (error) {
|
|
34
|
+
releaseClaim();
|
|
35
|
+
throw error;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { doomExtension as default, doomExtension };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=composed-pi.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composed-pi.mjs","names":[],"sources":["../../src/extensions/composedPi.ts"],"sourcesContent":["import { disposeHarnessState } from '@agimon-ai/doompi-config/harnessStore';\nimport type { ExtensionAPI } from '@earendil-works/pi-coding-agent';\n\n// Imported from the module rather than the barrel: Pi loads this file directly\n// and it is the first thing a synced session runs, so it pulls in nothing it\n// does not use.\nimport {\n type ComposeOutcome,\n cleanupRunDirectory,\n composeDoomSession,\n findSyncedRoot,\n registerDoomFlags,\n} from '../builders/cli/composition';\nimport { acquireCompositionClaim } from '../builders/cli/compositionState';\nconst WARNING = 'warning';\nconst STALE_MESSAGE = 'doompi config changed since the last sync. Run doompi sync.';\n\n/**\n * The one entry `doom-pi sync` puts in Pi's own config.\n *\n * Everything doom-pi contributes to a plain `pi` session is loaded from here,\n * which is what keeps `.pi/settings.json` to a single stable line and lets the\n * whole matrix be recomposed on `/reload` rather than frozen at startup.\n */\nexport async function doomExtension(pi: ExtensionAPI): Promise<void> {\n const releaseClaim = acquireCompositionClaim();\n if (!releaseClaim) return;\n\n try {\n registerDoomFlags(pi);\n const outcome: ComposeOutcome = await composeDoomSession(pi);\n\n // Reported on session_start rather than thrown: composition problems have to\n // reach the user through the UI, and the UI does not exist yet at load time.\n pi.on('session_start', (_event, ctx) => {\n // Every configured factory has loaded. A later /reload gets a new claim,\n // while a duplicate registration in this runner has already stood down.\n releaseClaim();\n for (const problem of outcome.problems) ctx.ui.notify(problem, WARNING);\n if (outcome.stale) ctx.ui.notify(STALE_MESSAGE, WARNING);\n });\n\n pi.on('session_shutdown', async (event, ctx) => {\n // Reload keeps the process and its deterministic run directory alive. The\n // replacement session reuses both, so only terminal shutdown owns cleanup.\n if (event.reason === 'reload') return;\n const repoRoot = findSyncedRoot(ctx.cwd);\n if (!repoRoot) return;\n // The state file first, so nothing is left pointing at a path that is\n // about to disappear, then the directory it lived in.\n disposeHarnessState();\n await cleanupRunDirectory(repoRoot);\n });\n } catch (error) {\n // Pi discards a failed factory, including the session_start handler that\n // would normally release ownership. Leave a retry or reload possible.\n releaseClaim();\n throw error;\n }\n}\n\nexport default doomExtension;\n"],"mappings":";;;;;AAcA,MAAM,UAAU;AAChB,MAAM,gBAAgB;;;;;;;;AAStB,eAAsB,cAAc,IAAiC;CACnE,MAAM,eAAe,wBAAwB;CAC7C,IAAI,CAAC,cAAc;CAEnB,IAAI;EACF,kBAAkB,EAAE;EACpB,MAAM,UAA0B,MAAM,mBAAmB,EAAE;EAI3D,GAAG,GAAG,kBAAkB,QAAQ,QAAQ;GAGtC,aAAa;GACb,KAAK,MAAM,WAAW,QAAQ,UAAU,IAAI,GAAG,OAAO,SAAS,OAAO;GACtE,IAAI,QAAQ,OAAO,IAAI,GAAG,OAAO,eAAe,OAAO;EACzD,CAAC;EAED,GAAG,GAAG,oBAAoB,OAAO,OAAO,QAAQ;GAG9C,IAAI,MAAM,WAAW,UAAU;GAC/B,MAAM,WAAW,eAAe,IAAI,GAAG;GACvC,IAAI,CAAC,UAAU;GAGf,oBAAoB;GACpB,MAAM,oBAAoB,QAAQ;EACpC,CAAC;CACH,SAAS,OAAO;EAGd,aAAa;EACb,MAAM;CACR;AACF"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
const require_contextCatalog = require("../builders/cli/contextCatalog.cjs");
|
|
2
|
+
let _agimon_ai_doompi_core_context_detail_store = require("@agimon-ai/doompi-core/context-detail-store");
|
|
3
|
+
let _agimon_ai_doompi_core_cordis_host = require("@agimon-ai/doompi-core/cordis-host");
|
|
4
|
+
let _agimon_ai_doompi_core_help = require("@agimon-ai/doompi-core/help");
|
|
5
|
+
let _agimon_ai_doompi_core_mcp_status = require("@agimon-ai/doompi-core/mcp-status");
|
|
6
|
+
let _agimon_ai_doompi_core_pi_extension = require("@agimon-ai/doompi-core/pi-extension");
|
|
7
|
+
let _agimon_ai_doompi_minor_mode = require("@agimon-ai/doompi-minor-mode");
|
|
8
|
+
//#region src/extensions/contextCatalog.ts
|
|
9
|
+
const HELP_CONTRIBUTION_SOURCE = "@agimon-ai/doompi";
|
|
10
|
+
var contextCatalog_default = (0, _agimon_ai_doompi_core_pi_extension.definePiExtension)("@agimon-ai/doompi/context-catalog", ({ pi }) => {
|
|
11
|
+
let publisher;
|
|
12
|
+
/**
|
|
13
|
+
* A handler's context, kept so the prompt can be read when the composition is
|
|
14
|
+
* published rather than only when an event fires.
|
|
15
|
+
*
|
|
16
|
+
* `getSystemPrompt` reads the session's live state and refuses only once the
|
|
17
|
+
* runner has been replaced, so a retained context answers for the session it
|
|
18
|
+
* came from or throws. Publishing happens on a timer and on catalog changes,
|
|
19
|
+
* neither of which carries a context of its own.
|
|
20
|
+
*/
|
|
21
|
+
let promptContext;
|
|
22
|
+
/** Pi hands out the base prompt until a turn replaces it with the one it sent. */
|
|
23
|
+
let turned = false;
|
|
24
|
+
const bind = (cordis) => {
|
|
25
|
+
cordis.inject([_agimon_ai_doompi_core_help.DOOM_HELP_SERVICE], (helpContext) => {
|
|
26
|
+
const contribution = (0, _agimon_ai_doompi_core_help.requireDoomHelpService)(helpContext).register({
|
|
27
|
+
source: HELP_CONTRIBUTION_SOURCE,
|
|
28
|
+
moduleUrl: require("url").pathToFileURL(__filename).href,
|
|
29
|
+
skills: [{
|
|
30
|
+
name: "doompi-author-extension",
|
|
31
|
+
description: "Create or update a DoomPi extension package inside the DoomPi monorepo or as an external npm package. Use for package layout, Pi discovery entries, shared Cordis lifecycle, package-owned Help, and extension verification."
|
|
32
|
+
}]
|
|
33
|
+
});
|
|
34
|
+
return () => contribution.dispose();
|
|
35
|
+
});
|
|
36
|
+
cordis.inject([_agimon_ai_doompi_core_cordis_host.DOOM_CORDIS_SESSION_SERVICE, _agimon_ai_doompi_minor_mode.DOOM_MINOR_MODE_CATALOG_SERVICE], (context) => {
|
|
37
|
+
const session = context.get(_agimon_ai_doompi_core_cordis_host.DOOM_CORDIS_SESSION_SERVICE);
|
|
38
|
+
const catalog = (0, _agimon_ai_doompi_minor_mode.requireMinorModeCatalog)(context);
|
|
39
|
+
const current = require_contextCatalog.createContextPublisher(pi, context, {
|
|
40
|
+
readMinorModes: () => catalog.getSnapshot().modes.filter(({ state }) => state.activation === "active").map(({ descriptor }) => ({
|
|
41
|
+
id: descriptor.id,
|
|
42
|
+
label: descriptor.label
|
|
43
|
+
})),
|
|
44
|
+
readSessionId: () => session.sessionId,
|
|
45
|
+
writeDetail: (sessionId, revision, items) => void (0, _agimon_ai_doompi_core_context_detail_store.writeContextDetail)(sessionId, revision, items),
|
|
46
|
+
removeDetail: _agimon_ai_doompi_core_context_detail_store.removeContextDetail,
|
|
47
|
+
readSystemPrompt: () => {
|
|
48
|
+
try {
|
|
49
|
+
const text = promptContext?.getSystemPrompt();
|
|
50
|
+
return text === void 0 || text === "" ? void 0 : {
|
|
51
|
+
text,
|
|
52
|
+
stage: turned ? "effective" : "base"
|
|
53
|
+
};
|
|
54
|
+
} catch {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
publisher = current;
|
|
60
|
+
const publish = () => {
|
|
61
|
+
current.publish();
|
|
62
|
+
};
|
|
63
|
+
const unsubscribe = catalog.subscribe(publish);
|
|
64
|
+
const timer = setTimeout(publish, 500);
|
|
65
|
+
context.inject([_agimon_ai_doompi_core_mcp_status.DOOM_MCP_STATUS_SERVICE], (mcpContext) => {
|
|
66
|
+
const release = (0, _agimon_ai_doompi_core_mcp_status.readDoomMcpStatus)(mcpContext)?.onChange?.(publish);
|
|
67
|
+
publish();
|
|
68
|
+
return release;
|
|
69
|
+
});
|
|
70
|
+
return () => {
|
|
71
|
+
clearTimeout(timer);
|
|
72
|
+
unsubscribe();
|
|
73
|
+
current.dispose();
|
|
74
|
+
if (publisher === current) publisher = void 0;
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
return {
|
|
79
|
+
services: [bind],
|
|
80
|
+
events: {
|
|
81
|
+
session_start(_event, ctx) {
|
|
82
|
+
promptContext = ctx;
|
|
83
|
+
publisher?.publish();
|
|
84
|
+
},
|
|
85
|
+
turn_start(_event, ctx) {
|
|
86
|
+
promptContext = ctx;
|
|
87
|
+
turned = true;
|
|
88
|
+
publisher?.publish();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
//#endregion
|
|
94
|
+
module.exports = contextCatalog_default;
|
|
95
|
+
|
|
96
|
+
//# sourceMappingURL=context-catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-catalog.cjs","names":["definePiExtension","DOOM_HELP_SERVICE","requireDoomHelpService","DOOM_CORDIS_SESSION_SERVICE","DOOM_MINOR_MODE_CATALOG_SERVICE","requireMinorModeCatalog","createContextPublisher","writeContextDetail","removeContextDetail","DOOM_MCP_STATUS_SERVICE","readDoomMcpStatus"],"sources":["../../src/extensions/contextCatalog.ts"],"sourcesContent":["import { removeContextDetail, writeContextDetail } from '@agimon-ai/doompi-core/context-detail-store';\nimport { DOOM_CORDIS_SESSION_SERVICE, type DoomCordisSessionService } from '@agimon-ai/doompi-core/cordis-host';\nimport { DOOM_HELP_SERVICE, requireDoomHelpService } from '@agimon-ai/doompi-core/help';\nimport { DOOM_MCP_STATUS_SERVICE, readDoomMcpStatus } from '@agimon-ai/doompi-core/mcp-status';\nimport { definePiExtension } from '@agimon-ai/doompi-core/pi-extension';\nimport { DOOM_MINOR_MODE_CATALOG_SERVICE, requireMinorModeCatalog } from '@agimon-ai/doompi-minor-mode';\nimport type { Context } from '@deepseek-ai/cordis';\n\nimport { createContextPublisher, type ContextPublisher } from '../builders/cli/contextCatalog';\nconst HELP_CONTRIBUTION_SOURCE = '@agimon-ai/doompi';\nexport default definePiExtension('@agimon-ai/doompi/context-catalog', ({ pi }) => {\n let publisher: ContextPublisher | undefined;\n /**\n * A handler's context, kept so the prompt can be read when the composition is\n * published rather than only when an event fires.\n *\n * `getSystemPrompt` reads the session's live state and refuses only once the\n * runner has been replaced, so a retained context answers for the session it\n * came from or throws. Publishing happens on a timer and on catalog changes,\n * neither of which carries a context of its own.\n */\n let promptContext: { getSystemPrompt: () => string } | undefined;\n /** Pi hands out the base prompt until a turn replaces it with the one it sent. */\n let turned = false;\n const bind = (cordis: Context): void => {\n cordis.inject([DOOM_HELP_SERVICE], (helpContext) => {\n const contribution = requireDoomHelpService(helpContext).register({\n source: HELP_CONTRIBUTION_SOURCE,\n moduleUrl: import.meta.url,\n skills: [\n {\n name: 'doompi-author-extension',\n description:\n 'Create or update a DoomPi extension package inside the DoomPi monorepo or as an external npm package. Use for package layout, Pi discovery entries, shared Cordis lifecycle, package-owned Help, and extension verification.',\n },\n ],\n });\n return () => contribution.dispose();\n });\n\n cordis.inject([DOOM_CORDIS_SESSION_SERVICE, DOOM_MINOR_MODE_CATALOG_SERVICE], (context) => {\n const session = context.get(DOOM_CORDIS_SESSION_SERVICE) as DoomCordisSessionService;\n const catalog = requireMinorModeCatalog(context);\n const current = createContextPublisher(pi, context, {\n readMinorModes: () =>\n catalog\n .getSnapshot()\n .modes.filter(({ state }) => state.activation === 'active')\n .map(({ descriptor }) => ({ id: descriptor.id, label: descriptor.label })),\n readSessionId: () => session.sessionId,\n writeDetail: (sessionId, revision, items) => void writeContextDetail(sessionId, revision, items),\n removeDetail: removeContextDetail,\n readSystemPrompt: () => {\n try {\n const text = promptContext?.getSystemPrompt();\n return text === undefined || text === '' ? undefined : { text, stage: turned ? 'effective' : 'base' };\n } catch {\n // A context from a retired runner is stale, not fatal: the panel\n // reports no prompt until the next event hands over a live one.\n return undefined;\n }\n },\n });\n publisher = current;\n const publish = () => {\n void current.publish();\n };\n const unsubscribe = catalog.subscribe(publish);\n const timer = setTimeout(publish, 500);\n context.inject([DOOM_MCP_STATUS_SERVICE], (mcpContext) => {\n const release = readDoomMcpStatus(mcpContext)?.onChange?.(publish);\n publish();\n return release;\n });\n return () => {\n clearTimeout(timer);\n unsubscribe();\n current.dispose();\n if (publisher === current) publisher = undefined;\n };\n });\n };\n return {\n services: [bind],\n events: {\n session_start(_event, ctx) {\n promptContext = ctx;\n void publisher?.publish();\n },\n turn_start(_event, ctx) {\n promptContext = ctx;\n turned = true;\n void publisher?.publish();\n },\n },\n };\n});\n"],"mappings":";;;;;;;;AASA,MAAM,2BAA2B;AACjC,IAAA,0BAAA,GAAeA,oCAAAA,kBAAAA,CAAkB,sCAAsC,EAAE,SAAS;CAChF,IAAI;;;;;;;;;;CAUJ,IAAI;;CAEJ,IAAI,SAAS;CACb,MAAM,QAAQ,WAA0B;EACtC,OAAO,OAAO,CAACC,4BAAAA,iBAAiB,IAAI,gBAAgB;GAClD,MAAM,gBAAA,GAAeC,4BAAAA,uBAAAA,CAAuB,WAAW,CAAC,CAAC,SAAS;IAChE,QAAQ;IACR,WAAA,QAAA,KAAA,CAAA,CAAA,cAAA,UAAA,CAAA,CAAA;IACA,QAAQ,CACN;KACE,MAAM;KACN,aACE;IACJ,CACF;GACF,CAAC;GACD,aAAa,aAAa,QAAQ;EACpC,CAAC;EAED,OAAO,OAAO,CAACC,mCAAAA,6BAA6BC,6BAAAA,+BAA+B,IAAI,YAAY;GACzF,MAAM,UAAU,QAAQ,IAAID,mCAAAA,2BAA2B;GACvD,MAAM,WAAA,GAAUE,6BAAAA,wBAAAA,CAAwB,OAAO;GAC/C,MAAM,UAAUC,uBAAAA,uBAAuB,IAAI,SAAS;IAClD,sBACE,QACG,YAAY,CAAC,CACb,MAAM,QAAQ,EAAE,YAAY,MAAM,eAAe,QAAQ,CAAC,CAC1D,KAAK,EAAE,kBAAkB;KAAE,IAAI,WAAW;KAAI,OAAO,WAAW;IAAM,EAAE;IAC7E,qBAAqB,QAAQ;IAC7B,cAAc,WAAW,UAAU,UAAU,MAAA,GAAKC,4CAAAA,mBAAAA,CAAmB,WAAW,UAAU,KAAK;IAC/F,cAAcC,4CAAAA;IACd,wBAAwB;KACtB,IAAI;MACF,MAAM,OAAO,eAAe,gBAAgB;MAC5C,OAAO,SAAS,KAAA,KAAa,SAAS,KAAK,KAAA,IAAY;OAAE;OAAM,OAAO,SAAS,cAAc;MAAO;KACtG,QAAQ;MAGN;KACF;IACF;GACF,CAAC;GACD,YAAY;GACZ,MAAM,gBAAgB;IACpB,QAAa,QAAQ;GACvB;GACA,MAAM,cAAc,QAAQ,UAAU,OAAO;GAC7C,MAAM,QAAQ,WAAW,SAAS,GAAG;GACrC,QAAQ,OAAO,CAACC,kCAAAA,uBAAuB,IAAI,eAAe;IACxD,MAAM,WAAA,GAAUC,kCAAAA,kBAAAA,CAAkB,UAAU,CAAC,EAAE,WAAW,OAAO;IACjE,QAAQ;IACR,OAAO;GACT,CAAC;GACD,aAAa;IACX,aAAa,KAAK;IAClB,YAAY;IACZ,QAAQ,QAAQ;IAChB,IAAI,cAAc,SAAS,YAAY,KAAA;GACzC;EACF,CAAC;CACH;CACA,OAAO;EACL,UAAU,CAAC,IAAI;EACf,QAAQ;GACN,cAAc,QAAQ,KAAK;IACzB,gBAAgB;IAChB,WAAgB,QAAQ;GAC1B;GACA,WAAW,QAAQ,KAAK;IACtB,gBAAgB;IAChB,SAAS;IACT,WAAgB,QAAQ;GAC1B;EACF;CACF;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-catalog.d.cts","names":[],"sources":["../../src/extensions/contextCatalog.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-catalog.d.mts","names":[],"sources":["../../src/extensions/contextCatalog.ts"],"mappings":""}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { createContextPublisher } from "../builders/cli/contextCatalog.mjs";
|
|
2
|
+
import { removeContextDetail, writeContextDetail } from "@agimon-ai/doompi-core/context-detail-store";
|
|
3
|
+
import { DOOM_CORDIS_SESSION_SERVICE } from "@agimon-ai/doompi-core/cordis-host";
|
|
4
|
+
import { DOOM_HELP_SERVICE, requireDoomHelpService } from "@agimon-ai/doompi-core/help";
|
|
5
|
+
import { DOOM_MCP_STATUS_SERVICE, readDoomMcpStatus } from "@agimon-ai/doompi-core/mcp-status";
|
|
6
|
+
import { definePiExtension } from "@agimon-ai/doompi-core/pi-extension";
|
|
7
|
+
import { DOOM_MINOR_MODE_CATALOG_SERVICE, requireMinorModeCatalog } from "@agimon-ai/doompi-minor-mode";
|
|
8
|
+
//#region src/extensions/contextCatalog.ts
|
|
9
|
+
const HELP_CONTRIBUTION_SOURCE = "@agimon-ai/doompi";
|
|
10
|
+
var contextCatalog_default = definePiExtension("@agimon-ai/doompi/context-catalog", ({ pi }) => {
|
|
11
|
+
let publisher;
|
|
12
|
+
/**
|
|
13
|
+
* A handler's context, kept so the prompt can be read when the composition is
|
|
14
|
+
* published rather than only when an event fires.
|
|
15
|
+
*
|
|
16
|
+
* `getSystemPrompt` reads the session's live state and refuses only once the
|
|
17
|
+
* runner has been replaced, so a retained context answers for the session it
|
|
18
|
+
* came from or throws. Publishing happens on a timer and on catalog changes,
|
|
19
|
+
* neither of which carries a context of its own.
|
|
20
|
+
*/
|
|
21
|
+
let promptContext;
|
|
22
|
+
/** Pi hands out the base prompt until a turn replaces it with the one it sent. */
|
|
23
|
+
let turned = false;
|
|
24
|
+
const bind = (cordis) => {
|
|
25
|
+
cordis.inject([DOOM_HELP_SERVICE], (helpContext) => {
|
|
26
|
+
const contribution = requireDoomHelpService(helpContext).register({
|
|
27
|
+
source: HELP_CONTRIBUTION_SOURCE,
|
|
28
|
+
moduleUrl: import.meta.url,
|
|
29
|
+
skills: [{
|
|
30
|
+
name: "doompi-author-extension",
|
|
31
|
+
description: "Create or update a DoomPi extension package inside the DoomPi monorepo or as an external npm package. Use for package layout, Pi discovery entries, shared Cordis lifecycle, package-owned Help, and extension verification."
|
|
32
|
+
}]
|
|
33
|
+
});
|
|
34
|
+
return () => contribution.dispose();
|
|
35
|
+
});
|
|
36
|
+
cordis.inject([DOOM_CORDIS_SESSION_SERVICE, DOOM_MINOR_MODE_CATALOG_SERVICE], (context) => {
|
|
37
|
+
const session = context.get(DOOM_CORDIS_SESSION_SERVICE);
|
|
38
|
+
const catalog = requireMinorModeCatalog(context);
|
|
39
|
+
const current = createContextPublisher(pi, context, {
|
|
40
|
+
readMinorModes: () => catalog.getSnapshot().modes.filter(({ state }) => state.activation === "active").map(({ descriptor }) => ({
|
|
41
|
+
id: descriptor.id,
|
|
42
|
+
label: descriptor.label
|
|
43
|
+
})),
|
|
44
|
+
readSessionId: () => session.sessionId,
|
|
45
|
+
writeDetail: (sessionId, revision, items) => void writeContextDetail(sessionId, revision, items),
|
|
46
|
+
removeDetail: removeContextDetail,
|
|
47
|
+
readSystemPrompt: () => {
|
|
48
|
+
try {
|
|
49
|
+
const text = promptContext?.getSystemPrompt();
|
|
50
|
+
return text === void 0 || text === "" ? void 0 : {
|
|
51
|
+
text,
|
|
52
|
+
stage: turned ? "effective" : "base"
|
|
53
|
+
};
|
|
54
|
+
} catch {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
publisher = current;
|
|
60
|
+
const publish = () => {
|
|
61
|
+
current.publish();
|
|
62
|
+
};
|
|
63
|
+
const unsubscribe = catalog.subscribe(publish);
|
|
64
|
+
const timer = setTimeout(publish, 500);
|
|
65
|
+
context.inject([DOOM_MCP_STATUS_SERVICE], (mcpContext) => {
|
|
66
|
+
const release = readDoomMcpStatus(mcpContext)?.onChange?.(publish);
|
|
67
|
+
publish();
|
|
68
|
+
return release;
|
|
69
|
+
});
|
|
70
|
+
return () => {
|
|
71
|
+
clearTimeout(timer);
|
|
72
|
+
unsubscribe();
|
|
73
|
+
current.dispose();
|
|
74
|
+
if (publisher === current) publisher = void 0;
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
return {
|
|
79
|
+
services: [bind],
|
|
80
|
+
events: {
|
|
81
|
+
session_start(_event, ctx) {
|
|
82
|
+
promptContext = ctx;
|
|
83
|
+
publisher?.publish();
|
|
84
|
+
},
|
|
85
|
+
turn_start(_event, ctx) {
|
|
86
|
+
promptContext = ctx;
|
|
87
|
+
turned = true;
|
|
88
|
+
publisher?.publish();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
//#endregion
|
|
94
|
+
export { contextCatalog_default as default };
|
|
95
|
+
|
|
96
|
+
//# sourceMappingURL=context-catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-catalog.mjs","names":[],"sources":["../../src/extensions/contextCatalog.ts"],"sourcesContent":["import { removeContextDetail, writeContextDetail } from '@agimon-ai/doompi-core/context-detail-store';\nimport { DOOM_CORDIS_SESSION_SERVICE, type DoomCordisSessionService } from '@agimon-ai/doompi-core/cordis-host';\nimport { DOOM_HELP_SERVICE, requireDoomHelpService } from '@agimon-ai/doompi-core/help';\nimport { DOOM_MCP_STATUS_SERVICE, readDoomMcpStatus } from '@agimon-ai/doompi-core/mcp-status';\nimport { definePiExtension } from '@agimon-ai/doompi-core/pi-extension';\nimport { DOOM_MINOR_MODE_CATALOG_SERVICE, requireMinorModeCatalog } from '@agimon-ai/doompi-minor-mode';\nimport type { Context } from '@deepseek-ai/cordis';\n\nimport { createContextPublisher, type ContextPublisher } from '../builders/cli/contextCatalog';\nconst HELP_CONTRIBUTION_SOURCE = '@agimon-ai/doompi';\nexport default definePiExtension('@agimon-ai/doompi/context-catalog', ({ pi }) => {\n let publisher: ContextPublisher | undefined;\n /**\n * A handler's context, kept so the prompt can be read when the composition is\n * published rather than only when an event fires.\n *\n * `getSystemPrompt` reads the session's live state and refuses only once the\n * runner has been replaced, so a retained context answers for the session it\n * came from or throws. Publishing happens on a timer and on catalog changes,\n * neither of which carries a context of its own.\n */\n let promptContext: { getSystemPrompt: () => string } | undefined;\n /** Pi hands out the base prompt until a turn replaces it with the one it sent. */\n let turned = false;\n const bind = (cordis: Context): void => {\n cordis.inject([DOOM_HELP_SERVICE], (helpContext) => {\n const contribution = requireDoomHelpService(helpContext).register({\n source: HELP_CONTRIBUTION_SOURCE,\n moduleUrl: import.meta.url,\n skills: [\n {\n name: 'doompi-author-extension',\n description:\n 'Create or update a DoomPi extension package inside the DoomPi monorepo or as an external npm package. Use for package layout, Pi discovery entries, shared Cordis lifecycle, package-owned Help, and extension verification.',\n },\n ],\n });\n return () => contribution.dispose();\n });\n\n cordis.inject([DOOM_CORDIS_SESSION_SERVICE, DOOM_MINOR_MODE_CATALOG_SERVICE], (context) => {\n const session = context.get(DOOM_CORDIS_SESSION_SERVICE) as DoomCordisSessionService;\n const catalog = requireMinorModeCatalog(context);\n const current = createContextPublisher(pi, context, {\n readMinorModes: () =>\n catalog\n .getSnapshot()\n .modes.filter(({ state }) => state.activation === 'active')\n .map(({ descriptor }) => ({ id: descriptor.id, label: descriptor.label })),\n readSessionId: () => session.sessionId,\n writeDetail: (sessionId, revision, items) => void writeContextDetail(sessionId, revision, items),\n removeDetail: removeContextDetail,\n readSystemPrompt: () => {\n try {\n const text = promptContext?.getSystemPrompt();\n return text === undefined || text === '' ? undefined : { text, stage: turned ? 'effective' : 'base' };\n } catch {\n // A context from a retired runner is stale, not fatal: the panel\n // reports no prompt until the next event hands over a live one.\n return undefined;\n }\n },\n });\n publisher = current;\n const publish = () => {\n void current.publish();\n };\n const unsubscribe = catalog.subscribe(publish);\n const timer = setTimeout(publish, 500);\n context.inject([DOOM_MCP_STATUS_SERVICE], (mcpContext) => {\n const release = readDoomMcpStatus(mcpContext)?.onChange?.(publish);\n publish();\n return release;\n });\n return () => {\n clearTimeout(timer);\n unsubscribe();\n current.dispose();\n if (publisher === current) publisher = undefined;\n };\n });\n };\n return {\n services: [bind],\n events: {\n session_start(_event, ctx) {\n promptContext = ctx;\n void publisher?.publish();\n },\n turn_start(_event, ctx) {\n promptContext = ctx;\n turned = true;\n void publisher?.publish();\n },\n },\n };\n});\n"],"mappings":";;;;;;;;AASA,MAAM,2BAA2B;AACjC,IAAA,yBAAe,kBAAkB,sCAAsC,EAAE,SAAS;CAChF,IAAI;;;;;;;;;;CAUJ,IAAI;;CAEJ,IAAI,SAAS;CACb,MAAM,QAAQ,WAA0B;EACtC,OAAO,OAAO,CAAC,iBAAiB,IAAI,gBAAgB;GAClD,MAAM,eAAe,uBAAuB,WAAW,CAAC,CAAC,SAAS;IAChE,QAAQ;IACR,WAAW,YAAY;IACvB,QAAQ,CACN;KACE,MAAM;KACN,aACE;IACJ,CACF;GACF,CAAC;GACD,aAAa,aAAa,QAAQ;EACpC,CAAC;EAED,OAAO,OAAO,CAAC,6BAA6B,+BAA+B,IAAI,YAAY;GACzF,MAAM,UAAU,QAAQ,IAAI,2BAA2B;GACvD,MAAM,UAAU,wBAAwB,OAAO;GAC/C,MAAM,UAAU,uBAAuB,IAAI,SAAS;IAClD,sBACE,QACG,YAAY,CAAC,CACb,MAAM,QAAQ,EAAE,YAAY,MAAM,eAAe,QAAQ,CAAC,CAC1D,KAAK,EAAE,kBAAkB;KAAE,IAAI,WAAW;KAAI,OAAO,WAAW;IAAM,EAAE;IAC7E,qBAAqB,QAAQ;IAC7B,cAAc,WAAW,UAAU,UAAU,KAAK,mBAAmB,WAAW,UAAU,KAAK;IAC/F,cAAc;IACd,wBAAwB;KACtB,IAAI;MACF,MAAM,OAAO,eAAe,gBAAgB;MAC5C,OAAO,SAAS,KAAA,KAAa,SAAS,KAAK,KAAA,IAAY;OAAE;OAAM,OAAO,SAAS,cAAc;MAAO;KACtG,QAAQ;MAGN;KACF;IACF;GACF,CAAC;GACD,YAAY;GACZ,MAAM,gBAAgB;IACpB,QAAa,QAAQ;GACvB;GACA,MAAM,cAAc,QAAQ,UAAU,OAAO;GAC7C,MAAM,QAAQ,WAAW,SAAS,GAAG;GACrC,QAAQ,OAAO,CAAC,uBAAuB,IAAI,eAAe;IACxD,MAAM,UAAU,kBAAkB,UAAU,CAAC,EAAE,WAAW,OAAO;IACjE,QAAQ;IACR,OAAO;GACT,CAAC;GACD,aAAa;IACX,aAAa,KAAK;IAClB,YAAY;IACZ,QAAQ,QAAQ;IAChB,IAAI,cAAc,SAAS,YAAY,KAAA;GACzC;EACF,CAAC;CACH;CACA,OAAO;EACL,UAAU,CAAC,IAAI;EACf,QAAQ;GACN,cAAc,QAAQ,KAAK;IACzB,gBAAgB;IAChB,WAAgB,QAAQ;GAC1B;GACA,WAAW,QAAQ,KAAK;IACtB,gBAAgB;IAChB,SAAS;IACT,WAAgB,QAAQ;GAC1B;EACF;CACF;AACF,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
let _agimon_ai_doompi_core_cordis_host = require("@agimon-ai/doompi-core/cordis-host");
|
|
6
|
+
//#region src/extensions/cordisFinalizer.ts
|
|
7
|
+
const FINALIZER_SOURCE = "@agimon-ai/doompi/cordis-finalizer";
|
|
8
|
+
/** Last composed entry: joins every package cleanup, then ends the root. */
|
|
9
|
+
async function cordisFinalizerExtension(pi) {
|
|
10
|
+
const connection = await (0, _agimon_ai_doompi_core_cordis_host.connectDoomCordisHost)(pi, FINALIZER_SOURCE);
|
|
11
|
+
let shutdown;
|
|
12
|
+
pi.on("session_shutdown", () => {
|
|
13
|
+
shutdown ??= (async () => {
|
|
14
|
+
await connection.dispose();
|
|
15
|
+
await (0, _agimon_ai_doompi_core_cordis_host.finalizeDoomCordisHost)(pi, FINALIZER_SOURCE);
|
|
16
|
+
})();
|
|
17
|
+
return shutdown;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.cordisFinalizerExtension = cordisFinalizerExtension;
|
|
22
|
+
exports.default = cordisFinalizerExtension;
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=cordis-finalizer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cordis-finalizer.cjs","names":["connectDoomCordisHost","finalizeDoomCordisHost"],"sources":["../../src/extensions/cordisFinalizer.ts"],"sourcesContent":["import { connectDoomCordisHost, finalizeDoomCordisHost } from '@agimon-ai/doompi-core/cordis-host';\nimport type { ExtensionAPI } from '@earendil-works/pi-coding-agent';\n\nconst FINALIZER_SOURCE = '@agimon-ai/doompi/cordis-finalizer';\n\n/** Last composed entry: joins every package cleanup, then ends the root. */\nexport async function cordisFinalizerExtension(pi: ExtensionAPI): Promise<void> {\n const connection = await connectDoomCordisHost(pi, FINALIZER_SOURCE);\n let shutdown: Promise<void> | undefined;\n pi.on('session_shutdown', () => {\n shutdown ??= (async () => {\n await connection.dispose();\n await finalizeDoomCordisHost(pi, FINALIZER_SOURCE);\n })();\n return shutdown;\n });\n}\n\nexport default cordisFinalizerExtension;\n"],"mappings":";;;;;;AAGA,MAAM,mBAAmB;;AAGzB,eAAsB,yBAAyB,IAAiC;CAC9E,MAAM,aAAa,OAAA,GAAMA,mCAAAA,sBAAAA,CAAsB,IAAI,gBAAgB;CACnE,IAAI;CACJ,GAAG,GAAG,0BAA0B;EAC9B,cAAc,YAAY;GACxB,MAAM,WAAW,QAAQ;GACzB,OAAA,GAAMC,mCAAAA,uBAAAA,CAAuB,IAAI,gBAAgB;EACnD,EAAA,CAAG;EACH,OAAO;CACT,CAAC;AACH"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
//#region src/extensions/cordisFinalizer.d.ts
|
|
3
|
+
/** Last composed entry: joins every package cleanup, then ends the root. */
|
|
4
|
+
export declare function cordisFinalizerExtension(pi: ExtensionAPI): Promise<void>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { cordisFinalizerExtension as default };
|
|
7
|
+
//# sourceMappingURL=cordis-finalizer.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cordis-finalizer.d.cts","names":[],"sources":["../../src/extensions/cordisFinalizer.ts"],"mappings":";;;wBAMsB,yBAAyB,IAAI,eAAe"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
//#region src/extensions/cordisFinalizer.d.ts
|
|
3
|
+
/** Last composed entry: joins every package cleanup, then ends the root. */
|
|
4
|
+
export declare function cordisFinalizerExtension(pi: ExtensionAPI): Promise<void>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { cordisFinalizerExtension as default };
|
|
7
|
+
//# sourceMappingURL=cordis-finalizer.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cordis-finalizer.d.mts","names":[],"sources":["../../src/extensions/cordisFinalizer.ts"],"mappings":";;;wBAMsB,yBAAyB,IAAI,eAAe"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { connectDoomCordisHost, finalizeDoomCordisHost } from "@agimon-ai/doompi-core/cordis-host";
|
|
2
|
+
//#region src/extensions/cordisFinalizer.ts
|
|
3
|
+
const FINALIZER_SOURCE = "@agimon-ai/doompi/cordis-finalizer";
|
|
4
|
+
/** Last composed entry: joins every package cleanup, then ends the root. */
|
|
5
|
+
async function cordisFinalizerExtension(pi) {
|
|
6
|
+
const connection = await connectDoomCordisHost(pi, FINALIZER_SOURCE);
|
|
7
|
+
let shutdown;
|
|
8
|
+
pi.on("session_shutdown", () => {
|
|
9
|
+
shutdown ??= (async () => {
|
|
10
|
+
await connection.dispose();
|
|
11
|
+
await finalizeDoomCordisHost(pi, FINALIZER_SOURCE);
|
|
12
|
+
})();
|
|
13
|
+
return shutdown;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { cordisFinalizerExtension, cordisFinalizerExtension as default };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=cordis-finalizer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cordis-finalizer.mjs","names":[],"sources":["../../src/extensions/cordisFinalizer.ts"],"sourcesContent":["import { connectDoomCordisHost, finalizeDoomCordisHost } from '@agimon-ai/doompi-core/cordis-host';\nimport type { ExtensionAPI } from '@earendil-works/pi-coding-agent';\n\nconst FINALIZER_SOURCE = '@agimon-ai/doompi/cordis-finalizer';\n\n/** Last composed entry: joins every package cleanup, then ends the root. */\nexport async function cordisFinalizerExtension(pi: ExtensionAPI): Promise<void> {\n const connection = await connectDoomCordisHost(pi, FINALIZER_SOURCE);\n let shutdown: Promise<void> | undefined;\n pi.on('session_shutdown', () => {\n shutdown ??= (async () => {\n await connection.dispose();\n await finalizeDoomCordisHost(pi, FINALIZER_SOURCE);\n })();\n return shutdown;\n });\n}\n\nexport default cordisFinalizerExtension;\n"],"mappings":";;AAGA,MAAM,mBAAmB;;AAGzB,eAAsB,yBAAyB,IAAiC;CAC9E,MAAM,aAAa,MAAM,sBAAsB,IAAI,gBAAgB;CACnE,IAAI;CACJ,GAAG,GAAG,0BAA0B;EAC9B,cAAc,YAAY;GACxB,MAAM,WAAW,QAAQ;GACzB,MAAM,uBAAuB,IAAI,gBAAgB;EACnD,EAAA,CAAG;EACH,OAAO;CACT,CAAC;AACH"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
let _agimon_ai_doompi_core_cordis_host = require("@agimon-ai/doompi-core/cordis-host");
|
|
6
|
+
//#region src/extensions/cordisHost.ts
|
|
7
|
+
const HOST_SOURCE = "@agimon-ai/doompi/cordis-host";
|
|
8
|
+
/** First composed entry: owns the single Cordis application root. */
|
|
9
|
+
async function cordisHostExtension(pi) {
|
|
10
|
+
await (0, _agimon_ai_doompi_core_cordis_host.installDoomCordisHost)(pi, {
|
|
11
|
+
mode: "composed",
|
|
12
|
+
source: HOST_SOURCE
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.cordisHostExtension = cordisHostExtension;
|
|
17
|
+
exports.default = cordisHostExtension;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=cordis-host.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cordis-host.cjs","names":["installDoomCordisHost"],"sources":["../../src/extensions/cordisHost.ts"],"sourcesContent":["import { installDoomCordisHost } from '@agimon-ai/doompi-core/cordis-host';\nimport type { ExtensionAPI } from '@earendil-works/pi-coding-agent';\n\nconst HOST_SOURCE = '@agimon-ai/doompi/cordis-host';\n\n/** First composed entry: owns the single Cordis application root. */\nexport async function cordisHostExtension(pi: ExtensionAPI): Promise<void> {\n await installDoomCordisHost(pi, { mode: 'composed', source: HOST_SOURCE });\n}\n\nexport default cordisHostExtension;\n"],"mappings":";;;;;;AAGA,MAAM,cAAc;;AAGpB,eAAsB,oBAAoB,IAAiC;CACzE,OAAA,GAAMA,mCAAAA,sBAAAA,CAAsB,IAAI;EAAE,MAAM;EAAY,QAAQ;CAAY,CAAC;AAC3E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
//#region src/extensions/cordisHost.d.ts
|
|
3
|
+
/** First composed entry: owns the single Cordis application root. */
|
|
4
|
+
export declare function cordisHostExtension(pi: ExtensionAPI): Promise<void>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { cordisHostExtension as default };
|
|
7
|
+
//# sourceMappingURL=cordis-host.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cordis-host.d.cts","names":[],"sources":["../../src/extensions/cordisHost.ts"],"mappings":";;;wBAMsB,oBAAoB,IAAI,eAAe"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
//#region src/extensions/cordisHost.d.ts
|
|
3
|
+
/** First composed entry: owns the single Cordis application root. */
|
|
4
|
+
export declare function cordisHostExtension(pi: ExtensionAPI): Promise<void>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { cordisHostExtension as default };
|
|
7
|
+
//# sourceMappingURL=cordis-host.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cordis-host.d.mts","names":[],"sources":["../../src/extensions/cordisHost.ts"],"mappings":";;;wBAMsB,oBAAoB,IAAI,eAAe"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { installDoomCordisHost } from "@agimon-ai/doompi-core/cordis-host";
|
|
2
|
+
//#region src/extensions/cordisHost.ts
|
|
3
|
+
const HOST_SOURCE = "@agimon-ai/doompi/cordis-host";
|
|
4
|
+
/** First composed entry: owns the single Cordis application root. */
|
|
5
|
+
async function cordisHostExtension(pi) {
|
|
6
|
+
await installDoomCordisHost(pi, {
|
|
7
|
+
mode: "composed",
|
|
8
|
+
source: HOST_SOURCE
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { cordisHostExtension, cordisHostExtension as default };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=cordis-host.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cordis-host.mjs","names":[],"sources":["../../src/extensions/cordisHost.ts"],"sourcesContent":["import { installDoomCordisHost } from '@agimon-ai/doompi-core/cordis-host';\nimport type { ExtensionAPI } from '@earendil-works/pi-coding-agent';\n\nconst HOST_SOURCE = '@agimon-ai/doompi/cordis-host';\n\n/** First composed entry: owns the single Cordis application root. */\nexport async function cordisHostExtension(pi: ExtensionAPI): Promise<void> {\n await installDoomCordisHost(pi, { mode: 'composed', source: HOST_SOURCE });\n}\n\nexport default cordisHostExtension;\n"],"mappings":";;AAGA,MAAM,cAAc;;AAGpB,eAAsB,oBAAoB,IAAiC;CACzE,MAAM,sBAAsB,IAAI;EAAE,MAAM;EAAY,QAAQ;CAAY,CAAC;AAC3E"}
|