@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,111 @@
|
|
|
1
|
+
import { findRepositoryRoot } from "../../composition/repository/index.mjs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { pathToFileURL } from "node:url";
|
|
4
|
+
import { readSyncRegistration } from "@agimon-ai/doompi-core/sync-registration";
|
|
5
|
+
import os from "node:os";
|
|
6
|
+
import { piCliPath } from "@agimon-ai/doompi-core/module-resolution";
|
|
7
|
+
import { piAgentDirectory } from "@agimon-ai/doompi-core/runtime-pi-settings";
|
|
8
|
+
//#region src/builders/cli/dpiSettings.ts
|
|
9
|
+
const GLOBAL_SCOPE = "global";
|
|
10
|
+
const PROJECT_SCOPE = "project";
|
|
11
|
+
const MANAGED_KEYS = [
|
|
12
|
+
"extensions",
|
|
13
|
+
"themes",
|
|
14
|
+
"theme",
|
|
15
|
+
"quietStartup"
|
|
16
|
+
];
|
|
17
|
+
const DPI_MANAGED_SETTINGS = {
|
|
18
|
+
extensions: ["@agimon-ai/doompi", "!extensions/**"],
|
|
19
|
+
themes: ["themes/doom-pi-dark.json"],
|
|
20
|
+
theme: "doom-pi-dark",
|
|
21
|
+
quietStartup: true
|
|
22
|
+
};
|
|
23
|
+
function isRecord(value) {
|
|
24
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
25
|
+
}
|
|
26
|
+
function parseSettings(content) {
|
|
27
|
+
if (content === void 0) return {};
|
|
28
|
+
const parsed = JSON.parse(content);
|
|
29
|
+
if (!isRecord(parsed)) throw new SyntaxError("Pi settings must contain a JSON object");
|
|
30
|
+
return parsed;
|
|
31
|
+
}
|
|
32
|
+
function managedView(scope, current, managedSettings) {
|
|
33
|
+
if (scope === PROJECT_SCOPE && current === void 0) return void 0;
|
|
34
|
+
const settings = parseSettings(current);
|
|
35
|
+
if (scope === GLOBAL_SCOPE) Object.assign(settings, managedSettings);
|
|
36
|
+
else for (const key of MANAGED_KEYS) delete settings[key];
|
|
37
|
+
return JSON.stringify(settings, null, 2);
|
|
38
|
+
}
|
|
39
|
+
function restorePersistedSettings(current, next) {
|
|
40
|
+
const persisted = parseSettings(current);
|
|
41
|
+
const updated = parseSettings(next);
|
|
42
|
+
for (const key of MANAGED_KEYS) if (Object.hasOwn(persisted, key)) updated[key] = persisted[key];
|
|
43
|
+
else delete updated[key];
|
|
44
|
+
return JSON.stringify(updated, null, 2);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Presents DoomPi-owned settings to Pi without allowing that overlay to leak
|
|
48
|
+
* into either the global or project settings file when Pi saves another key.
|
|
49
|
+
*/
|
|
50
|
+
var DpiSettingsStorage = class {
|
|
51
|
+
backend;
|
|
52
|
+
managedSettings;
|
|
53
|
+
constructor(backend, managedSettings = DPI_MANAGED_SETTINGS) {
|
|
54
|
+
this.backend = backend;
|
|
55
|
+
this.managedSettings = managedSettings;
|
|
56
|
+
}
|
|
57
|
+
withLock(scope, callback) {
|
|
58
|
+
this.backend.withLock(scope, (current) => {
|
|
59
|
+
const next = callback(managedView(scope, current, this.managedSettings));
|
|
60
|
+
return next === void 0 ? void 0 : restorePersistedSettings(current, next);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
function isPiSettingsRuntime(value) {
|
|
65
|
+
if (!isRecord(value) || typeof value.FileSettingsStorage !== "function") return false;
|
|
66
|
+
const settingsManager = value.SettingsManager;
|
|
67
|
+
if (typeof settingsManager !== "function") return false;
|
|
68
|
+
return typeof Reflect.get(settingsManager, "create") === "function" && typeof Reflect.get(settingsManager, "fromStorage") === "function";
|
|
69
|
+
}
|
|
70
|
+
/** Loads Pi's concrete file storage from the same pinned installation as its CLI. */
|
|
71
|
+
async function loadPiSettingsRuntime() {
|
|
72
|
+
const modulePath = path.join(path.dirname(piCliPath()), "core", "settings-manager.js");
|
|
73
|
+
const loaded = await import(pathToFileURL(modulePath).href);
|
|
74
|
+
if (!isPiSettingsRuntime(loaded)) throw new Error(`Unsupported Pi settings runtime: ${modulePath}`);
|
|
75
|
+
return loaded;
|
|
76
|
+
}
|
|
77
|
+
/** Selects the package recorded by sync so embedded DPI does not depend on init's global dispatcher. */
|
|
78
|
+
function resolveDpiManagedSettings(cwd, environment = process.env) {
|
|
79
|
+
try {
|
|
80
|
+
const root = findRepositoryRoot(cwd);
|
|
81
|
+
const homeDirectory = environment.HOME?.trim() || os.homedir();
|
|
82
|
+
const registration = readSyncRegistration(root, homeDirectory);
|
|
83
|
+
if (!registration) return DPI_MANAGED_SETTINGS;
|
|
84
|
+
return {
|
|
85
|
+
...DPI_MANAGED_SETTINGS,
|
|
86
|
+
extensions: [registration.package.root, "!extensions/**"]
|
|
87
|
+
};
|
|
88
|
+
} catch {
|
|
89
|
+
return {
|
|
90
|
+
...DPI_MANAGED_SETTINGS,
|
|
91
|
+
extensions: ["!extensions/**"]
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/** Installs the process-local create() hook used by upstream Pi startup and reloads. */
|
|
96
|
+
function installDpiSettingsOverlay(runtime, environment = process.env) {
|
|
97
|
+
const originalCreate = runtime.SettingsManager.create;
|
|
98
|
+
runtime.SettingsManager.create = (cwd, agentDir, options) => {
|
|
99
|
+
const resolvedAgentDirectory = agentDir ?? piAgentDirectory(environment);
|
|
100
|
+
const storage = new runtime.FileSettingsStorage(cwd, resolvedAgentDirectory);
|
|
101
|
+
const managedSettings = resolveDpiManagedSettings(cwd, environment);
|
|
102
|
+
return runtime.SettingsManager.fromStorage(new DpiSettingsStorage(storage, managedSettings), options);
|
|
103
|
+
};
|
|
104
|
+
return () => {
|
|
105
|
+
runtime.SettingsManager.create = originalCreate;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
export { DPI_MANAGED_SETTINGS, DpiSettingsStorage, installDpiSettingsOverlay, loadPiSettingsRuntime, resolveDpiManagedSettings };
|
|
110
|
+
|
|
111
|
+
//# sourceMappingURL=dpiSettings.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dpiSettings.mjs","names":[],"sources":["../../../src/builders/cli/dpiSettings.ts"],"sourcesContent":["import os from 'node:os';\nimport path from 'node:path';\nimport { pathToFileURL } from 'node:url';\n\nimport { piCliPath } from '@agimon-ai/doompi-core/module-resolution';\nimport { piAgentDirectory } from '@agimon-ai/doompi-core/runtime-pi-settings';\nimport { readSyncRegistration } from '@agimon-ai/doompi-core/sync-registration';\nimport type { SettingsManager, SettingsManagerCreateOptions } from '@earendil-works/pi-coding-agent';\n\nimport { findRepositoryRoot } from '../../composition/repository';\n\nconst GLOBAL_SCOPE = 'global';\nconst PROJECT_SCOPE = 'project';\nconst MANAGED_KEYS = ['extensions', 'themes', 'theme', 'quietStartup'] as const;\n\nexport interface DpiManagedSettings {\n extensions: string[];\n themes: string[];\n theme: string;\n quietStartup: boolean;\n}\n\nexport const DPI_MANAGED_SETTINGS: DpiManagedSettings = {\n extensions: ['@agimon-ai/doompi', '!extensions/**'],\n themes: ['themes/doom-pi-dark.json'],\n theme: 'doom-pi-dark',\n quietStartup: true,\n};\n\nexport type DpiSettingsScope = typeof GLOBAL_SCOPE | typeof PROJECT_SCOPE;\n\nexport interface DpiSettingsStorageBackend {\n withLock(scope: DpiSettingsScope, callback: (current: string | undefined) => string | undefined): void;\n}\n\ninterface SettingsManagerClass {\n create(this: void, cwd: string, agentDir?: string, options?: SettingsManagerCreateOptions): SettingsManager;\n fromStorage(this: void, storage: DpiSettingsStorageBackend, options?: SettingsManagerCreateOptions): SettingsManager;\n}\n\ninterface FileSettingsStorageConstructor {\n new (cwd: string, agentDir: string): DpiSettingsStorageBackend;\n}\n\nexport interface PiSettingsRuntime {\n FileSettingsStorage: FileSettingsStorageConstructor;\n SettingsManager: SettingsManagerClass;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\nfunction parseSettings(content: string | undefined): Record<string, unknown> {\n if (content === undefined) return {};\n const parsed: unknown = JSON.parse(content);\n if (!isRecord(parsed)) throw new SyntaxError('Pi settings must contain a JSON object');\n return parsed;\n}\n\nfunction managedView(\n scope: DpiSettingsScope,\n current: string | undefined,\n managedSettings: DpiManagedSettings,\n): string | undefined {\n if (scope === PROJECT_SCOPE && current === undefined) return undefined;\n const settings = parseSettings(current);\n if (scope === GLOBAL_SCOPE) Object.assign(settings, managedSettings);\n else for (const key of MANAGED_KEYS) delete settings[key];\n return JSON.stringify(settings, null, 2);\n}\n\nfunction restorePersistedSettings(current: string | undefined, next: string): string {\n const persisted = parseSettings(current);\n const updated = parseSettings(next);\n for (const key of MANAGED_KEYS) {\n if (Object.hasOwn(persisted, key)) updated[key] = persisted[key];\n else delete updated[key];\n }\n return JSON.stringify(updated, null, 2);\n}\n\n/**\n * Presents DoomPi-owned settings to Pi without allowing that overlay to leak\n * into either the global or project settings file when Pi saves another key.\n */\nexport class DpiSettingsStorage implements DpiSettingsStorageBackend {\n private readonly backend: DpiSettingsStorageBackend;\n private readonly managedSettings: DpiManagedSettings;\n\n constructor(backend: DpiSettingsStorageBackend, managedSettings: DpiManagedSettings = DPI_MANAGED_SETTINGS) {\n this.backend = backend;\n this.managedSettings = managedSettings;\n }\n\n withLock(scope: DpiSettingsScope, callback: (current: string | undefined) => string | undefined): void {\n this.backend.withLock(scope, (current) => {\n const next = callback(managedView(scope, current, this.managedSettings));\n return next === undefined ? undefined : restorePersistedSettings(current, next);\n });\n }\n}\n\nfunction isPiSettingsRuntime(value: unknown): value is PiSettingsRuntime {\n if (!isRecord(value) || typeof value.FileSettingsStorage !== 'function') return false;\n const settingsManager = value.SettingsManager;\n if (typeof settingsManager !== 'function') return false;\n return (\n typeof Reflect.get(settingsManager, 'create') === 'function' &&\n typeof Reflect.get(settingsManager, 'fromStorage') === 'function'\n );\n}\n\n/** Loads Pi's concrete file storage from the same pinned installation as its CLI. */\nexport async function loadPiSettingsRuntime(): Promise<PiSettingsRuntime> {\n const modulePath = path.join(path.dirname(piCliPath()), 'core', 'settings-manager.js');\n const loaded: unknown = await import(pathToFileURL(modulePath).href);\n if (!isPiSettingsRuntime(loaded)) throw new Error(`Unsupported Pi settings runtime: ${modulePath}`);\n return loaded;\n}\n\n/** Selects the package recorded by sync so embedded DPI does not depend on init's global dispatcher. */\nexport function resolveDpiManagedSettings(\n cwd: string,\n environment: NodeJS.ProcessEnv = process.env,\n): DpiManagedSettings {\n try {\n const root = findRepositoryRoot(cwd);\n const homeDirectory = environment.HOME?.trim() || os.homedir();\n const registration = readSyncRegistration(root, homeDirectory);\n if (!registration) return DPI_MANAGED_SETTINGS;\n return { ...DPI_MANAGED_SETTINGS, extensions: [registration.package.root, '!extensions/**'] };\n } catch {\n return { ...DPI_MANAGED_SETTINGS, extensions: ['!extensions/**'] };\n }\n}\n\n/** Installs the process-local create() hook used by upstream Pi startup and reloads. */\nexport function installDpiSettingsOverlay(\n runtime: PiSettingsRuntime,\n environment: NodeJS.ProcessEnv = process.env,\n): () => void {\n const originalCreate = runtime.SettingsManager.create;\n runtime.SettingsManager.create = (cwd, agentDir, options) => {\n const resolvedAgentDirectory = agentDir ?? piAgentDirectory(environment);\n const storage = new runtime.FileSettingsStorage(cwd, resolvedAgentDirectory);\n const managedSettings = resolveDpiManagedSettings(cwd, environment);\n return runtime.SettingsManager.fromStorage(new DpiSettingsStorage(storage, managedSettings), options);\n };\n\n return () => {\n runtime.SettingsManager.create = originalCreate;\n };\n}\n"],"mappings":";;;;;;;;AAWA,MAAM,eAAe;AACrB,MAAM,gBAAgB;AACtB,MAAM,eAAe;CAAC;CAAc;CAAU;CAAS;AAAc;AASrE,MAAa,uBAA2C;CACtD,YAAY,CAAC,qBAAqB,gBAAgB;CAClD,QAAQ,CAAC,0BAA0B;CACnC,OAAO;CACP,cAAc;AAChB;AAsBA,SAAS,SAAS,OAAkD;CAClE,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK;AAC5E;AAEA,SAAS,cAAc,SAAsD;CAC3E,IAAI,YAAY,KAAA,GAAW,OAAO,CAAC;CACnC,MAAM,SAAkB,KAAK,MAAM,OAAO;CAC1C,IAAI,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,YAAY,wCAAwC;CACrF,OAAO;AACT;AAEA,SAAS,YACP,OACA,SACA,iBACoB;CACpB,IAAI,UAAU,iBAAiB,YAAY,KAAA,GAAW,OAAO,KAAA;CAC7D,MAAM,WAAW,cAAc,OAAO;CACtC,IAAI,UAAU,cAAc,OAAO,OAAO,UAAU,eAAe;MAC9D,KAAK,MAAM,OAAO,cAAc,OAAO,SAAS;CACrD,OAAO,KAAK,UAAU,UAAU,MAAM,CAAC;AACzC;AAEA,SAAS,yBAAyB,SAA6B,MAAsB;CACnF,MAAM,YAAY,cAAc,OAAO;CACvC,MAAM,UAAU,cAAc,IAAI;CAClC,KAAK,MAAM,OAAO,cAChB,IAAI,OAAO,OAAO,WAAW,GAAG,GAAG,QAAQ,OAAO,UAAU;MACvD,OAAO,QAAQ;CAEtB,OAAO,KAAK,UAAU,SAAS,MAAM,CAAC;AACxC;;;;;AAMA,IAAa,qBAAb,MAAqE;CACnE;CACA;CAEA,YAAY,SAAoC,kBAAsC,sBAAsB;EAC1G,KAAK,UAAU;EACf,KAAK,kBAAkB;CACzB;CAEA,SAAS,OAAyB,UAAqE;EACrG,KAAK,QAAQ,SAAS,QAAQ,YAAY;GACxC,MAAM,OAAO,SAAS,YAAY,OAAO,SAAS,KAAK,eAAe,CAAC;GACvE,OAAO,SAAS,KAAA,IAAY,KAAA,IAAY,yBAAyB,SAAS,IAAI;EAChF,CAAC;CACH;AACF;AAEA,SAAS,oBAAoB,OAA4C;CACvE,IAAI,CAAC,SAAS,KAAK,KAAK,OAAO,MAAM,wBAAwB,YAAY,OAAO;CAChF,MAAM,kBAAkB,MAAM;CAC9B,IAAI,OAAO,oBAAoB,YAAY,OAAO;CAClD,OACE,OAAO,QAAQ,IAAI,iBAAiB,QAAQ,MAAM,cAClD,OAAO,QAAQ,IAAI,iBAAiB,aAAa,MAAM;AAE3D;;AAGA,eAAsB,wBAAoD;CACxE,MAAM,aAAa,KAAK,KAAK,KAAK,QAAQ,UAAU,CAAC,GAAG,QAAQ,qBAAqB;CACrF,MAAM,SAAkB,MAAM,OAAO,cAAc,UAAU,CAAC,CAAC;CAC/D,IAAI,CAAC,oBAAoB,MAAM,GAAG,MAAM,IAAI,MAAM,oCAAoC,YAAY;CAClG,OAAO;AACT;;AAGA,SAAgB,0BACd,KACA,cAAiC,QAAQ,KACrB;CACpB,IAAI;EACF,MAAM,OAAO,mBAAmB,GAAG;EACnC,MAAM,gBAAgB,YAAY,MAAM,KAAK,KAAK,GAAG,QAAQ;EAC7D,MAAM,eAAe,qBAAqB,MAAM,aAAa;EAC7D,IAAI,CAAC,cAAc,OAAO;EAC1B,OAAO;GAAE,GAAG;GAAsB,YAAY,CAAC,aAAa,QAAQ,MAAM,gBAAgB;EAAE;CAC9F,QAAQ;EACN,OAAO;GAAE,GAAG;GAAsB,YAAY,CAAC,gBAAgB;EAAE;CACnE;AACF;;AAGA,SAAgB,0BACd,SACA,cAAiC,QAAQ,KAC7B;CACZ,MAAM,iBAAiB,QAAQ,gBAAgB;CAC/C,QAAQ,gBAAgB,UAAU,KAAK,UAAU,YAAY;EAC3D,MAAM,yBAAyB,YAAY,iBAAiB,WAAW;EACvE,MAAM,UAAU,IAAI,QAAQ,oBAAoB,KAAK,sBAAsB;EAC3E,MAAM,kBAAkB,0BAA0B,KAAK,WAAW;EAClE,OAAO,QAAQ,gBAAgB,YAAY,IAAI,mBAAmB,SAAS,eAAe,GAAG,OAAO;CACtG;CAEA,aAAa;EACX,QAAQ,gBAAgB,SAAS;CACnC;AACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
let node_fs = require("node:fs");
|
|
3
|
+
node_fs = require_runtime.__toESM(node_fs, 1);
|
|
4
|
+
let node_path = require("node:path");
|
|
5
|
+
node_path = require_runtime.__toESM(node_path, 1);
|
|
6
|
+
let node_url = require("node:url");
|
|
7
|
+
//#region src/builders/cli/entryResolution.ts
|
|
8
|
+
/** Distribution entries must resolve relative to doompi, never a dependency's installation. */
|
|
9
|
+
function ownEntry(name) {
|
|
10
|
+
let directory = node_path.default.dirname((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href));
|
|
11
|
+
while (!node_fs.default.existsSync(node_path.default.join(directory, "package.json"))) {
|
|
12
|
+
const parent = node_path.default.dirname(directory);
|
|
13
|
+
if (parent === directory) throw new Error("Cannot locate the Doompi distribution");
|
|
14
|
+
directory = parent;
|
|
15
|
+
}
|
|
16
|
+
const source = require("url").pathToFileURL(__filename).href.endsWith(".ts");
|
|
17
|
+
const entryName = source ? name : name.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
18
|
+
return node_path.default.join(directory, source ? "src" : "dist", "extensions", `${entryName}.${source ? "ts" : "mjs"}`);
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.ownEntry = ownEntry;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=entryResolution.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entryResolution.cjs","names":["path","fileURLToPath","fs"],"sources":["../../../src/builders/cli/entryResolution.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\nimport { fileURLToPath } from 'node:url';\n\n/** Distribution entries must resolve relative to doompi, never a dependency's installation. */\nexport function ownEntry(name: string): string {\n let directory = path.dirname(fileURLToPath(import.meta.url));\n while (!fs.existsSync(path.join(directory, 'package.json'))) {\n const parent = path.dirname(directory);\n if (parent === directory) throw new Error('Cannot locate the Doompi distribution');\n directory = parent;\n }\n const source = import.meta.url.endsWith('.ts');\n const entryName = source ? name : name.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();\n return path.join(directory, source ? 'src' : 'dist', 'extensions', `${entryName}.${source ? 'ts' : 'mjs'}`);\n}\n"],"mappings":";;;;;;;;AAKA,SAAgB,SAAS,MAAsB;CAC7C,IAAI,YAAYA,UAAAA,QAAK,SAAA,GAAQC,SAAAA,cAAAA,CAAAA,QAAAA,KAAAA,CAAAA,CAAAA,cAAAA,UAAAA,CAAAA,CAAAA,IAA6B,CAAC;CAC3D,OAAO,CAACC,QAAAA,QAAG,WAAWF,UAAAA,QAAK,KAAK,WAAW,cAAc,CAAC,GAAG;EAC3D,MAAM,SAASA,UAAAA,QAAK,QAAQ,SAAS;EACrC,IAAI,WAAW,WAAW,MAAM,IAAI,MAAM,uCAAuC;EACjF,YAAY;CACd;CACA,MAAM,SAAA,QAAA,KAAA,CAAA,CAAA,cAAA,UAAA,CAAA,CAAA,KAAyB,SAAS,KAAK;CAC7C,MAAM,YAAY,SAAS,OAAO,KAAK,QAAQ,sBAAsB,OAAO,CAAC,CAAC,YAAY;CAC1F,OAAOA,UAAAA,QAAK,KAAK,WAAW,SAAS,QAAQ,QAAQ,cAAc,GAAG,UAAU,GAAG,SAAS,OAAO,OAAO;AAC5G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entryResolution.d.cts","names":[],"sources":["../../../src/builders/cli/entryResolution.ts"],"mappings":";;wBAKgB,SAAS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entryResolution.d.mts","names":[],"sources":["../../../src/builders/cli/entryResolution.ts"],"mappings":";;wBAKgB,SAAS"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
//#region src/builders/cli/entryResolution.ts
|
|
5
|
+
/** Distribution entries must resolve relative to doompi, never a dependency's installation. */
|
|
6
|
+
function ownEntry(name) {
|
|
7
|
+
let directory = path.dirname(fileURLToPath(import.meta.url));
|
|
8
|
+
while (!fs.existsSync(path.join(directory, "package.json"))) {
|
|
9
|
+
const parent = path.dirname(directory);
|
|
10
|
+
if (parent === directory) throw new Error("Cannot locate the Doompi distribution");
|
|
11
|
+
directory = parent;
|
|
12
|
+
}
|
|
13
|
+
const source = import.meta.url.endsWith(".ts");
|
|
14
|
+
const entryName = source ? name : name.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
15
|
+
return path.join(directory, source ? "src" : "dist", "extensions", `${entryName}.${source ? "ts" : "mjs"}`);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { ownEntry };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=entryResolution.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entryResolution.mjs","names":[],"sources":["../../../src/builders/cli/entryResolution.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\nimport { fileURLToPath } from 'node:url';\n\n/** Distribution entries must resolve relative to doompi, never a dependency's installation. */\nexport function ownEntry(name: string): string {\n let directory = path.dirname(fileURLToPath(import.meta.url));\n while (!fs.existsSync(path.join(directory, 'package.json'))) {\n const parent = path.dirname(directory);\n if (parent === directory) throw new Error('Cannot locate the Doompi distribution');\n directory = parent;\n }\n const source = import.meta.url.endsWith('.ts');\n const entryName = source ? name : name.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();\n return path.join(directory, source ? 'src' : 'dist', 'extensions', `${entryName}.${source ? 'ts' : 'mjs'}`);\n}\n"],"mappings":";;;;;AAKA,SAAgB,SAAS,MAAsB;CAC7C,IAAI,YAAY,KAAK,QAAQ,cAAc,YAAY,GAAG,CAAC;CAC3D,OAAO,CAAC,GAAG,WAAW,KAAK,KAAK,WAAW,cAAc,CAAC,GAAG;EAC3D,MAAM,SAAS,KAAK,QAAQ,SAAS;EACrC,IAAI,WAAW,WAAW,MAAM,IAAI,MAAM,uCAAuC;EACjF,YAAY;CACd;CACA,MAAM,SAAS,YAAY,IAAI,SAAS,KAAK;CAC7C,MAAM,YAAY,SAAS,OAAO,KAAK,QAAQ,sBAAsB,OAAO,CAAC,CAAC,YAAY;CAC1F,OAAO,KAAK,KAAK,WAAW,SAAS,QAAQ,QAAQ,cAAc,GAAG,UAAU,GAAG,SAAS,OAAO,OAAO;AAC5G"}
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_entryResolution = require("../entryResolution.cjs");
|
|
3
|
+
let _agimon_ai_doompi_ui_extensionName = require("@agimon-ai/doompi-ui/extensionName");
|
|
4
|
+
let _agimon_ai_doompi_config_majorModes = require("@agimon-ai/doompi-config/majorModes");
|
|
5
|
+
let _agimon_ai_doompi_core_module_resolution = require("@agimon-ai/doompi-core/module-resolution");
|
|
6
|
+
let _agimon_ai_doompi_core_runtime_identity = require("@agimon-ai/doompi-core/runtime-identity");
|
|
7
|
+
//#region src/builders/cli/extensionAssembler/index.ts
|
|
8
|
+
/**
|
|
9
|
+
* Which layer of which major mode admitted each package.
|
|
10
|
+
*
|
|
11
|
+
* The composition already holds this join while it resolves package names to
|
|
12
|
+
* entry paths, then drops it, so a session cannot afterwards say why a tool is
|
|
13
|
+
* present. Reducing it here keeps the selection type private and costs one pass
|
|
14
|
+
* over an array the caller already has.
|
|
15
|
+
*
|
|
16
|
+
* Only `package` entries appear. A bare `extension` selector is a path rather
|
|
17
|
+
* than a package name, so it has nothing a registered tool could be joined on.
|
|
18
|
+
*
|
|
19
|
+
* Keyed by manifest name first, because that is what a registered tool resolves
|
|
20
|
+
* to. The selector is kept as an alias: a layer may name a package as
|
|
21
|
+
* `@agimon-ai/doompi-team` when published or `./layers/team/doompi-team` in a
|
|
22
|
+
* checkout, and both have to find the same layer.
|
|
23
|
+
*/
|
|
24
|
+
function packageAttribution(composition) {
|
|
25
|
+
const attribution = {};
|
|
26
|
+
const mode = composition.majorMode?.name;
|
|
27
|
+
if (mode === void 0) return attribution;
|
|
28
|
+
for (const selection of composition.selections) {
|
|
29
|
+
if (selection.entryKind !== "package") continue;
|
|
30
|
+
if (selection.outcome !== "resolved") continue;
|
|
31
|
+
const value = {
|
|
32
|
+
kind: "major",
|
|
33
|
+
mode,
|
|
34
|
+
layer: selection.layer
|
|
35
|
+
};
|
|
36
|
+
const manifest = selection.path === void 0 ? void 0 : (0, _agimon_ai_doompi_ui_extensionName.extensionPackageName)(selection.path);
|
|
37
|
+
if (manifest !== void 0 && attribution[manifest] === void 0) attribution[manifest] = value;
|
|
38
|
+
if (attribution[selection.selector] === void 0) attribution[selection.selector] = value;
|
|
39
|
+
}
|
|
40
|
+
return attribution;
|
|
41
|
+
}
|
|
42
|
+
const COMPOSITION_FINGERPRINT_VERSION = 4;
|
|
43
|
+
const STANDARD_PI_EXTENSION_CONTRACT_VERSION = 2;
|
|
44
|
+
const DEFAULT_SELECTION_LAYER = "default";
|
|
45
|
+
const DEFAULT_SELECTION_LAYER_INDEX = -1;
|
|
46
|
+
const FIXED_CORE_PACKAGES = /* @__PURE__ */ new Set([
|
|
47
|
+
"@agimon-ai/doompi",
|
|
48
|
+
"@agimon-ai/doompi-autostop",
|
|
49
|
+
"@agimon-ai/doompi-cache",
|
|
50
|
+
"@agimon-ai/doompi-config",
|
|
51
|
+
"@agimon-ai/doompi-domain",
|
|
52
|
+
"@agimon-ai/doompi-major-mode",
|
|
53
|
+
"@agimon-ai/doompi-minor-mode",
|
|
54
|
+
"@agimon-ai/doompi-notification",
|
|
55
|
+
"@agimon-ai/doompi-profile",
|
|
56
|
+
"@agimon-ai/doompi-skill",
|
|
57
|
+
"@agimon-ai/doompi-ui"
|
|
58
|
+
]);
|
|
59
|
+
const OWN_ENTRIES = {
|
|
60
|
+
agentModel: "agentModel",
|
|
61
|
+
cordisFinalizer: "cordisFinalizer",
|
|
62
|
+
cordisHost: "cordisHost",
|
|
63
|
+
terminalChildSession: "terminalChildSession",
|
|
64
|
+
effort: "effort",
|
|
65
|
+
contextCatalog: "contextCatalog",
|
|
66
|
+
ollamaProvider: "ollamaProvider",
|
|
67
|
+
transitionCoordinator: "transitionCoordinator"
|
|
68
|
+
};
|
|
69
|
+
const CORE_PACKAGE_ENTRIES = {
|
|
70
|
+
autostop: "@agimon-ai/doompi-autostop/extensions/pi",
|
|
71
|
+
cache: "@agimon-ai/doompi-cache/extensions/pi",
|
|
72
|
+
config: "@agimon-ai/doompi-config/extensions/pi",
|
|
73
|
+
domain: "@agimon-ai/doompi-domain/extensions/pi",
|
|
74
|
+
majorMode: "@agimon-ai/doompi-major-mode/extensions/pi",
|
|
75
|
+
minorMode: "@agimon-ai/doompi-minor-mode/extensions/pi",
|
|
76
|
+
notification: "@agimon-ai/doompi-notification/extensions/pi",
|
|
77
|
+
profile: "@agimon-ai/doompi-profile/extensions/pi",
|
|
78
|
+
skill: "@agimon-ai/doompi-skill/extensions/pi",
|
|
79
|
+
ui: "@agimon-ai/doompi-ui/extensions/pi"
|
|
80
|
+
};
|
|
81
|
+
const OLLAMA_PRESET = "ollama";
|
|
82
|
+
/**
|
|
83
|
+
* Always available so /profile can pick a persona later, and the one entry a
|
|
84
|
+
* detached child shares with its parent: children get the persona without the
|
|
85
|
+
* command, because they have no transition coordinator to run a switch through.
|
|
86
|
+
*
|
|
87
|
+
* An explicit subpath rather than the bare package name, so it resolves to
|
|
88
|
+
* exactly this file rather than to whatever pi.extensions lists.
|
|
89
|
+
*/
|
|
90
|
+
const PERSONA_ENTRY = "@agimon-ai/doompi-profile/extensions/persona";
|
|
91
|
+
const LAYER_RESOLVERS = {
|
|
92
|
+
ownEntry: require_entryResolution.ownEntry,
|
|
93
|
+
packageEntry: (specifier) => (0, _agimon_ai_doompi_core_module_resolution.packageEntry)(specifier, require("url").pathToFileURL(__filename).href),
|
|
94
|
+
optionalPackageEntry: (specifier) => (0, _agimon_ai_doompi_core_module_resolution.optionalPackageEntry)(specifier, require("url").pathToFileURL(__filename).href),
|
|
95
|
+
packageEntries: (specifier) => (0, _agimon_ai_doompi_core_module_resolution.packageEntries)(specifier, require("url").pathToFileURL(__filename).href),
|
|
96
|
+
optionalPackageEntries: (specifier) => (0, _agimon_ai_doompi_core_module_resolution.optionalPackageEntries)(specifier, require("url").pathToFileURL(__filename).href),
|
|
97
|
+
localEntry: _agimon_ai_doompi_core_module_resolution.localEntry,
|
|
98
|
+
localEntries: _agimon_ai_doompi_core_module_resolution.localEntries,
|
|
99
|
+
localPackageEntries: _agimon_ai_doompi_core_module_resolution.localPackageEntries,
|
|
100
|
+
localPackageName: _agimon_ai_doompi_core_module_resolution.localPackageName
|
|
101
|
+
};
|
|
102
|
+
function missingConsumerPackage(name, consumerRoot) {
|
|
103
|
+
return /* @__PURE__ */ new Error(`Cannot resolve configured package "${name}" from ${consumerRoot}.`);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Resolves configured packages only from the consumer, while fixed core entries
|
|
107
|
+
* may fall back to the host package's private dependency closure.
|
|
108
|
+
*/
|
|
109
|
+
function createLayerResolvers(consumerRoot) {
|
|
110
|
+
if (!consumerRoot) return LAYER_RESOLVERS;
|
|
111
|
+
const fallbackEntry = (name) => FIXED_CORE_PACKAGES.has(packageName(name)) ? (0, _agimon_ai_doompi_core_module_resolution.optionalPackageEntry)(name, require("url").pathToFileURL(__filename).href) : void 0;
|
|
112
|
+
const fallbackEntries = (name) => FIXED_CORE_PACKAGES.has(packageName(name)) ? (0, _agimon_ai_doompi_core_module_resolution.optionalPackageEntries)(name, require("url").pathToFileURL(__filename).href) : void 0;
|
|
113
|
+
const requiredEntry = (name) => {
|
|
114
|
+
const entry = fallbackEntry(name) ?? (0, _agimon_ai_doompi_core_module_resolution.consumerPackageEntry)(name, consumerRoot);
|
|
115
|
+
if (!entry) throw missingConsumerPackage(name, consumerRoot);
|
|
116
|
+
return entry;
|
|
117
|
+
};
|
|
118
|
+
const requiredEntries = (name) => {
|
|
119
|
+
const entries = fallbackEntries(name) ?? (0, _agimon_ai_doompi_core_module_resolution.consumerPackageEntries)(name, consumerRoot);
|
|
120
|
+
if (!entries) throw missingConsumerPackage(name, consumerRoot);
|
|
121
|
+
return entries;
|
|
122
|
+
};
|
|
123
|
+
return {
|
|
124
|
+
ownEntry: require_entryResolution.ownEntry,
|
|
125
|
+
packageEntry: requiredEntry,
|
|
126
|
+
optionalPackageEntry: (name) => fallbackEntry(name) ?? (0, _agimon_ai_doompi_core_module_resolution.consumerPackageEntry)(name, consumerRoot),
|
|
127
|
+
packageEntries: requiredEntries,
|
|
128
|
+
optionalPackageEntries: (name) => fallbackEntries(name) ?? (0, _agimon_ai_doompi_core_module_resolution.consumerPackageEntries)(name, consumerRoot),
|
|
129
|
+
localEntry: _agimon_ai_doompi_core_module_resolution.localEntry,
|
|
130
|
+
localEntries: _agimon_ai_doompi_core_module_resolution.localEntries,
|
|
131
|
+
localPackageEntries: _agimon_ai_doompi_core_module_resolution.localPackageEntries,
|
|
132
|
+
localPackageName: _agimon_ai_doompi_core_module_resolution.localPackageName
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function packageName(specifier) {
|
|
136
|
+
const segments = specifier.split("/");
|
|
137
|
+
return specifier.startsWith("@") ? segments.slice(0, 2).join("/") : segments[0] ?? specifier;
|
|
138
|
+
}
|
|
139
|
+
function assertFeaturePackage(specifier, layer) {
|
|
140
|
+
const selectedPackage = packageName(specifier);
|
|
141
|
+
if (FIXED_CORE_PACKAGES.has(selectedPackage)) throw new Error(`Layer "${layer}" cannot select fixed DoomPi host package "${selectedPackage}" as a feature extension.`);
|
|
142
|
+
}
|
|
143
|
+
function resolveLocalExtensionEntries(resolvers, specifier, baseDirectory) {
|
|
144
|
+
const resolved = resolvers.localEntries?.(specifier, baseDirectory);
|
|
145
|
+
if (resolved !== void 0) return resolved;
|
|
146
|
+
const single = resolvers.localEntry(specifier, baseDirectory);
|
|
147
|
+
return single ? [single] : void 0;
|
|
148
|
+
}
|
|
149
|
+
function resolveLocalPackageSelections(resolvers, specifier, baseDirectory) {
|
|
150
|
+
const resolved = resolvers.localPackageEntries?.(specifier, baseDirectory);
|
|
151
|
+
if (resolved !== void 0) return resolved;
|
|
152
|
+
return resolveLocalExtensionEntries(resolvers, specifier, baseDirectory);
|
|
153
|
+
}
|
|
154
|
+
function resolvedSelection(identity, manifestIndex, resolvedPath) {
|
|
155
|
+
return {
|
|
156
|
+
...identity,
|
|
157
|
+
manifestIndex,
|
|
158
|
+
outcome: "resolved",
|
|
159
|
+
path: resolvedPath,
|
|
160
|
+
canonicalPath: (0, _agimon_ai_doompi_core_runtime_identity.canonicalModulePath)(resolvedPath)
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function missingOptionalSelection(identity, diagnostic) {
|
|
164
|
+
return {
|
|
165
|
+
...identity,
|
|
166
|
+
manifestIndex: 0,
|
|
167
|
+
outcome: "missing-optional",
|
|
168
|
+
diagnostic
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
function errorMessage(error) {
|
|
172
|
+
return error instanceof Error ? error.message : String(error);
|
|
173
|
+
}
|
|
174
|
+
function resolveDefinitionSelections(definition, layer, layerIndex, resolvers) {
|
|
175
|
+
const resolvedSelections = [];
|
|
176
|
+
const extensionEntries = definition.extensions ?? [];
|
|
177
|
+
for (const [entryIndex, selector] of extensionEntries.entries()) {
|
|
178
|
+
const identity = {
|
|
179
|
+
layer,
|
|
180
|
+
layerIndex,
|
|
181
|
+
entryKind: "extension",
|
|
182
|
+
entryIndex,
|
|
183
|
+
selector,
|
|
184
|
+
...definition.filePath ? { sourceFile: definition.filePath } : {},
|
|
185
|
+
baseDirectory: definition.baseDirectory,
|
|
186
|
+
optional: false
|
|
187
|
+
};
|
|
188
|
+
if (!(0, _agimon_ai_doompi_config_majorModes.isLocalPackageSpecifier)(selector)) {
|
|
189
|
+
resolvedSelections.push(resolvedSelection(identity, 0, resolvers.ownEntry(selector)));
|
|
190
|
+
continue;
|
|
191
|
+
}
|
|
192
|
+
const resolved = resolveLocalExtensionEntries(resolvers, selector, definition.baseDirectory);
|
|
193
|
+
if (!resolved?.length) throw new Error(`Layer "${layer}" extension "${selector}" does not resolve under ${definition.baseDirectory}. Point it at a Pi extension file or directory.`);
|
|
194
|
+
resolved.forEach((resolvedPath, manifestIndex) => {
|
|
195
|
+
resolvedSelections.push(resolvedSelection(identity, manifestIndex, resolvedPath));
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
const packageOffset = extensionEntries.length;
|
|
199
|
+
for (const [packageIndex, configured] of (definition.packages ?? []).entries()) {
|
|
200
|
+
const selector = typeof configured === "string" ? configured : configured.name;
|
|
201
|
+
const optional = typeof configured === "string" ? false : configured.optional === true;
|
|
202
|
+
const configValue = typeof configured === "string" ? void 0 : configured.config;
|
|
203
|
+
const identity = {
|
|
204
|
+
layer,
|
|
205
|
+
layerIndex,
|
|
206
|
+
entryKind: "package",
|
|
207
|
+
entryIndex: packageOffset + packageIndex,
|
|
208
|
+
selector,
|
|
209
|
+
...definition.filePath ? { sourceFile: definition.filePath } : {},
|
|
210
|
+
baseDirectory: definition.baseDirectory,
|
|
211
|
+
optional,
|
|
212
|
+
...configValue === void 0 ? {} : { config: configValue }
|
|
213
|
+
};
|
|
214
|
+
let resolved;
|
|
215
|
+
try {
|
|
216
|
+
if ((0, _agimon_ai_doompi_config_majorModes.isLocalPackageSpecifier)(selector)) {
|
|
217
|
+
const manifestName = resolvers.localPackageName?.(selector, definition.baseDirectory);
|
|
218
|
+
if (manifestName) assertFeaturePackage(manifestName, layer);
|
|
219
|
+
resolved = resolveLocalPackageSelections(resolvers, selector, definition.baseDirectory);
|
|
220
|
+
} else {
|
|
221
|
+
assertFeaturePackage(selector, layer);
|
|
222
|
+
if (optional) {
|
|
223
|
+
resolved = resolvers.optionalPackageEntries?.(selector);
|
|
224
|
+
if (resolved === void 0 && !resolvers.optionalPackageEntries) {
|
|
225
|
+
const single = resolvers.optionalPackageEntry(selector);
|
|
226
|
+
resolved = single ? [single] : void 0;
|
|
227
|
+
}
|
|
228
|
+
} else resolved = resolvers.packageEntries?.(selector) ?? [resolvers.packageEntry(selector)];
|
|
229
|
+
}
|
|
230
|
+
} catch (error) {
|
|
231
|
+
if (optional) {
|
|
232
|
+
resolvedSelections.push(missingOptionalSelection(identity, errorMessage(error)));
|
|
233
|
+
continue;
|
|
234
|
+
}
|
|
235
|
+
throw error;
|
|
236
|
+
}
|
|
237
|
+
if (!resolved?.length) {
|
|
238
|
+
if (optional) {
|
|
239
|
+
resolvedSelections.push(missingOptionalSelection(identity, `Optional package "${selector}" is unavailable or declares no Pi extensions.`));
|
|
240
|
+
continue;
|
|
241
|
+
}
|
|
242
|
+
if ((0, _agimon_ai_doompi_config_majorModes.isLocalPackageSpecifier)(selector)) throw new Error(`Layer "${layer}" package "${selector}" does not resolve under ${definition.baseDirectory}. Point it at an extension file, or a directory whose package.json declares pi.extensions.`);
|
|
243
|
+
throw new Error(`Layer "${layer}" package "${selector}" declares no Pi extensions.`);
|
|
244
|
+
}
|
|
245
|
+
resolved.forEach((resolvedPath, manifestIndex) => {
|
|
246
|
+
resolvedSelections.push(resolvedSelection(identity, manifestIndex, resolvedPath));
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
return resolvedSelections;
|
|
250
|
+
}
|
|
251
|
+
function resolveLayerSelections(config, layer, layerIndex, resolvers) {
|
|
252
|
+
const definition = config.layers[layer];
|
|
253
|
+
if (!definition) throw new Error(`Unknown layer: ${layer}`);
|
|
254
|
+
return resolveDefinitionSelections(definition, layer, layerIndex, resolvers);
|
|
255
|
+
}
|
|
256
|
+
function resolveDefaultSelections(config, resolvers) {
|
|
257
|
+
if (!config.default) return [];
|
|
258
|
+
return resolveDefinitionSelections(config.default, DEFAULT_SELECTION_LAYER, DEFAULT_SELECTION_LAYER_INDEX, resolvers);
|
|
259
|
+
}
|
|
260
|
+
function resolveSelectedExtensions(context) {
|
|
261
|
+
const resolvers = context.resolvers ?? LAYER_RESOLVERS;
|
|
262
|
+
return context.layers.flatMap((layer, layerIndex) => resolveLayerSelections(context.majorModesConfig, layer, layerIndex, resolvers));
|
|
263
|
+
}
|
|
264
|
+
function deduplicatePaths(paths) {
|
|
265
|
+
const seen = /* @__PURE__ */ new Set();
|
|
266
|
+
const selected = [];
|
|
267
|
+
for (const entry of paths) {
|
|
268
|
+
const identity = (0, _agimon_ai_doompi_core_runtime_identity.canonicalModulePath)(entry);
|
|
269
|
+
if (seen.has(identity)) continue;
|
|
270
|
+
seen.add(identity);
|
|
271
|
+
selected.push(entry);
|
|
272
|
+
}
|
|
273
|
+
return selected;
|
|
274
|
+
}
|
|
275
|
+
function selectedFeaturePaths(selections) {
|
|
276
|
+
return deduplicatePaths(selections.flatMap((entry) => entry.outcome === "resolved" && entry.path ? [entry.path] : []));
|
|
277
|
+
}
|
|
278
|
+
function parentActivation(context, distributionPaths, featurePaths) {
|
|
279
|
+
const resolve = context.resolvers ?? LAYER_RESOLVERS;
|
|
280
|
+
const activation = [
|
|
281
|
+
resolve.ownEntry(OWN_ENTRIES.cordisHost),
|
|
282
|
+
resolve.ownEntry(OWN_ENTRIES.terminalChildSession),
|
|
283
|
+
resolve.packageEntry(CORE_PACKAGE_ENTRIES.minorMode),
|
|
284
|
+
resolve.ownEntry(OWN_ENTRIES.contextCatalog),
|
|
285
|
+
resolve.packageEntry(CORE_PACKAGE_ENTRIES.config),
|
|
286
|
+
resolve.ownEntry(OWN_ENTRIES.transitionCoordinator),
|
|
287
|
+
resolve.packageEntry(CORE_PACKAGE_ENTRIES.ui)
|
|
288
|
+
];
|
|
289
|
+
if (!context.mute) activation.push(resolve.packageEntry(CORE_PACKAGE_ENTRIES.notification));
|
|
290
|
+
activation.push(resolve.packageEntry(CORE_PACKAGE_ENTRIES.profile), resolve.packageEntry(CORE_PACKAGE_ENTRIES.majorMode), resolve.packageEntry(CORE_PACKAGE_ENTRIES.skill), resolve.packageEntry(CORE_PACKAGE_ENTRIES.domain), resolve.ownEntry(OWN_ENTRIES.effort), resolve.ownEntry(OWN_ENTRIES.agentModel));
|
|
291
|
+
if (context.preset === "ollama") activation.push(resolve.ownEntry(OWN_ENTRIES.ollamaProvider));
|
|
292
|
+
activation.push(...distributionPaths, ...featurePaths);
|
|
293
|
+
if (context.personaEntry) activation.push(context.personaEntry);
|
|
294
|
+
if (context.autoStop) activation.push(resolve.packageEntry(CORE_PACKAGE_ENTRIES.autostop));
|
|
295
|
+
activation.push(resolve.packageEntry(CORE_PACKAGE_ENTRIES.cache));
|
|
296
|
+
activation.push(resolve.ownEntry(OWN_ENTRIES.cordisFinalizer));
|
|
297
|
+
return deduplicatePaths(activation);
|
|
298
|
+
}
|
|
299
|
+
function childActivation(context, distributionPaths, featurePaths) {
|
|
300
|
+
const resolve = context.resolvers ?? LAYER_RESOLVERS;
|
|
301
|
+
const activation = [
|
|
302
|
+
resolve.ownEntry(OWN_ENTRIES.cordisHost),
|
|
303
|
+
resolve.ownEntry(OWN_ENTRIES.terminalChildSession),
|
|
304
|
+
resolve.packageEntry(CORE_PACKAGE_ENTRIES.config),
|
|
305
|
+
...distributionPaths,
|
|
306
|
+
...featurePaths
|
|
307
|
+
];
|
|
308
|
+
if (context.preset === "ollama") activation.push(resolve.ownEntry(OWN_ENTRIES.ollamaProvider));
|
|
309
|
+
if (context.personaEntry) activation.push(context.personaEntry);
|
|
310
|
+
activation.push(resolve.ownEntry(OWN_ENTRIES.cordisFinalizer));
|
|
311
|
+
return deduplicatePaths(activation);
|
|
312
|
+
}
|
|
313
|
+
function canonicalValue(value) {
|
|
314
|
+
if (Array.isArray(value)) return value.map(canonicalValue);
|
|
315
|
+
if (value === null || typeof value !== "object") return value;
|
|
316
|
+
return Object.fromEntries(Object.entries(value).filter(([, entry]) => entry !== void 0).sort(([left], [right]) => left.localeCompare(right)).map(([key, entry]) => [key, canonicalValue(entry)]));
|
|
317
|
+
}
|
|
318
|
+
function compositionFingerprint(composition) {
|
|
319
|
+
return (0, _agimon_ai_doompi_core_runtime_identity.sha256)(JSON.stringify(canonicalValue({
|
|
320
|
+
...composition,
|
|
321
|
+
contract: {
|
|
322
|
+
composition: 4,
|
|
323
|
+
standardPiExtension: 2,
|
|
324
|
+
fixedCorePackages: [...FIXED_CORE_PACKAGES]
|
|
325
|
+
},
|
|
326
|
+
parentCanonicalActivation: composition.parentActivation.map(_agimon_ai_doompi_core_runtime_identity.canonicalModulePath),
|
|
327
|
+
childCanonicalActivation: composition.childActivation.map(_agimon_ai_doompi_core_runtime_identity.canonicalModulePath)
|
|
328
|
+
})));
|
|
329
|
+
}
|
|
330
|
+
/** Resolve one deterministic parent/child composition from authored layer occurrences. */
|
|
331
|
+
function resolveExtensionComposition(context) {
|
|
332
|
+
const resolvers = context.resolvers ?? LAYER_RESOLVERS;
|
|
333
|
+
const defaultSelections = resolveDefaultSelections(context.majorModesConfig, resolvers);
|
|
334
|
+
const layerSelections = resolveSelectedExtensions(context);
|
|
335
|
+
const selections = [...defaultSelections, ...layerSelections];
|
|
336
|
+
const distributionPaths = selectedFeaturePaths(defaultSelections);
|
|
337
|
+
const featurePaths = selectedFeaturePaths(layerSelections);
|
|
338
|
+
const layers = context.layers.map((name, index) => {
|
|
339
|
+
const definition = context.majorModesConfig.layers[name];
|
|
340
|
+
if (!definition) throw new Error(`Unknown layer: ${name}`);
|
|
341
|
+
return {
|
|
342
|
+
name,
|
|
343
|
+
index,
|
|
344
|
+
...definition.filePath ? { sourceFile: definition.filePath } : {},
|
|
345
|
+
baseDirectory: definition.baseDirectory
|
|
346
|
+
};
|
|
347
|
+
});
|
|
348
|
+
const modeSource = context.majorMode ? context.majorModesConfig.majorModeSources?.[context.majorMode] : void 0;
|
|
349
|
+
const withoutFingerprint = {
|
|
350
|
+
version: 4,
|
|
351
|
+
...context.majorMode ? { majorMode: {
|
|
352
|
+
name: context.majorMode,
|
|
353
|
+
...modeSource?.filePath ? { sourceFile: modeSource.filePath } : {},
|
|
354
|
+
...modeSource?.baseDirectory ? { baseDirectory: modeSource.baseDirectory } : {}
|
|
355
|
+
} } : {},
|
|
356
|
+
layers,
|
|
357
|
+
selections,
|
|
358
|
+
parentActivation: parentActivation(context, distributionPaths, featurePaths),
|
|
359
|
+
childActivation: childActivation(context, distributionPaths, featurePaths)
|
|
360
|
+
};
|
|
361
|
+
return {
|
|
362
|
+
...withoutFingerprint,
|
|
363
|
+
fingerprint: compositionFingerprint(withoutFingerprint)
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
/** Assemble parent entries in actual Pi factory activation order. */
|
|
367
|
+
function assembleExtensions(context) {
|
|
368
|
+
return [...resolveExtensionComposition(context).parentActivation];
|
|
369
|
+
}
|
|
370
|
+
/** Assemble detached-child entries in actual Pi factory activation order. */
|
|
371
|
+
function assembleChildExtensions(context) {
|
|
372
|
+
return [...resolveExtensionComposition(context).childActivation];
|
|
373
|
+
}
|
|
374
|
+
//#endregion
|
|
375
|
+
exports.COMPOSITION_FINGERPRINT_VERSION = COMPOSITION_FINGERPRINT_VERSION;
|
|
376
|
+
exports.LAYER_RESOLVERS = LAYER_RESOLVERS;
|
|
377
|
+
exports.OLLAMA_PRESET = OLLAMA_PRESET;
|
|
378
|
+
exports.PERSONA_ENTRY = PERSONA_ENTRY;
|
|
379
|
+
exports.STANDARD_PI_EXTENSION_CONTRACT_VERSION = STANDARD_PI_EXTENSION_CONTRACT_VERSION;
|
|
380
|
+
exports.assembleChildExtensions = assembleChildExtensions;
|
|
381
|
+
exports.assembleExtensions = assembleExtensions;
|
|
382
|
+
exports.createLayerResolvers = createLayerResolvers;
|
|
383
|
+
exports.packageAttribution = packageAttribution;
|
|
384
|
+
exports.resolveExtensionComposition = resolveExtensionComposition;
|
|
385
|
+
|
|
386
|
+
//# sourceMappingURL=index.cjs.map
|