@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,560 @@
|
|
|
1
|
+
import { syncWebBundle } from "../../../builders/web/index.mjs";
|
|
2
|
+
import { DOOMPI_DOMAINS_ENV, DOOMPI_MAJOR_MODE_ENV, DOOMPI_PROFILE_ENV } from "../../matrixOptions.mjs";
|
|
3
|
+
import { parseHarnessArgs } from "../../options.mjs";
|
|
4
|
+
import { HARNESS_STATE_POINTER, loadHarnessState } from "../../../composition/harnessState/index.mjs";
|
|
5
|
+
import { resolveDoomConfigurationRoot } from "../../../composition/repository/index.mjs";
|
|
6
|
+
import { PERSONA_ENTRY, createLayerResolvers, resolveExtensionComposition } from "../../../builders/cli/extensionAssembler/index.mjs";
|
|
7
|
+
import { ensureLayerPackages, missingLayerPackageSpecifiers } from "../../../composition/layerPackageInstaller/index.mjs";
|
|
8
|
+
import { loadDoomConfigLenient as loadDoomConfigLenient$1 } from "../../../composition/projectTrust/index.mjs";
|
|
9
|
+
import { SYNC_STATE_VERSION, computeInputsHash, computeServerSourcesHash, computeWebSourcesHash, readLocatedSyncState, readMcpServerNames, recordResolvedEntries, syncStateRootMatches, writeSyncState } from "../../../composition/syncState/index.mjs";
|
|
10
|
+
import { buildSyncedRuntime } from "../../../builders/cli/index.mjs";
|
|
11
|
+
import { readBootstrapStatus } from "../../../builders/cli/bootstrapLocator/index.mjs";
|
|
12
|
+
import { buildHarnessContext } from "../../../builders/cli/harnessContext.mjs";
|
|
13
|
+
import { piExtensionDispatcherIsUpgradeable, piExtensionDispatcherVersion } from "../../../builders/cli/piExtensionDispatcher/index.mjs";
|
|
14
|
+
import { doomPiPackageRoot, piExtensionAliasIsCurrent, writePiExtensionAlias } from "../../../builders/cli/piExtensionAlias/index.mjs";
|
|
15
|
+
import { DUPLICATE_REGISTRATION_DRIFT, projectRegistersDoom, writeProjectPiSettings } from "../../../builders/cli/projectSettings.mjs";
|
|
16
|
+
import { syncServerBundle } from "../../../builders/server/index.mjs";
|
|
17
|
+
import { readSyncDrift } from "../../../composition/syncDrift/index.mjs";
|
|
18
|
+
import { SyncProgress } from "./presenter.mjs";
|
|
19
|
+
import fs from "node:fs";
|
|
20
|
+
import path from "node:path";
|
|
21
|
+
import { DOOMPI_API_VERSION, SYNC_REGISTRATION_VERSION, publishSyncRegistration, readSyncRegistration, syncStateSha256 } from "@agimon-ai/doompi-core/sync-registration";
|
|
22
|
+
import { loadDomains } from "@agimon-ai/doompi-config/domains";
|
|
23
|
+
import os from "node:os";
|
|
24
|
+
import { globalDoomConfigDirectory } from "@agimon-ai/doompi-config/config";
|
|
25
|
+
import { filterHookDisabledLayers, loadMajorModesConfig, loadMajorModesConfigLenient, resolveLayers } from "@agimon-ai/doompi-config/majorModes";
|
|
26
|
+
import { spawnSync } from "node:child_process";
|
|
27
|
+
import { mergePiSettings, piAgentDirectory, piThemeDirectory, readPiSettings, serializePiSettings } from "@agimon-ai/doompi-core/runtime-pi-settings";
|
|
28
|
+
import crypto from "node:crypto";
|
|
29
|
+
import { acquireSyncLocationLock, resolveSyncLocation, syncGenerationDirectory } from "@agimon-ai/doompi-core/sync-location";
|
|
30
|
+
import { DOOM_SERVER_BUNDLE_FILE } from "@agimon-ai/doompi-core/server-facet";
|
|
31
|
+
import { DEFAULT_THEME, DEFAULT_THEME_NAME } from "@agimon-ai/doompi-ui/theme";
|
|
32
|
+
//#region src/cli/commands/sync/index.ts
|
|
33
|
+
/**
|
|
34
|
+
* `doom-pi sync`: resolve the matrix once and write it where plain Pi finds it.
|
|
35
|
+
*
|
|
36
|
+
* The doom-emacs split. Everything that needs a real Node process (module
|
|
37
|
+
* resolution, staging skills and agents, generating the MCP config) happens
|
|
38
|
+
* here, and the doom-pi extension then only reads what this produced. The
|
|
39
|
+
* launcher is untouched and keeps resolving the same matrix per run.
|
|
40
|
+
*/
|
|
41
|
+
const SYNC_COMMAND = "sync";
|
|
42
|
+
const CHECK_OPTION = "--check";
|
|
43
|
+
/** Republishes even when nothing drifted, for a generation suspected of being damaged. */
|
|
44
|
+
const FORCE_OPTION = "--force";
|
|
45
|
+
const GLOBAL_OPTION = "--global";
|
|
46
|
+
const HARNESS_ROOT_ENV = "DOOMPI_ROOT";
|
|
47
|
+
const PERSONA_FILE_ENV = "DOOMPI_PERSONA_FILE";
|
|
48
|
+
const HOOK_EMITTER = path.join("tools", "harness", "emit-hooks.mjs");
|
|
49
|
+
const NONE = "(none)";
|
|
50
|
+
const PRIVATE_DIRECTORY_MODE = 448;
|
|
51
|
+
const SYNC_LABEL = "sync";
|
|
52
|
+
const RUNTIME_LABEL = "runtime";
|
|
53
|
+
const WEB_LABEL = "web";
|
|
54
|
+
const API_LABEL = "api";
|
|
55
|
+
/** Resolves the configuration source and publication destination for one sync. */
|
|
56
|
+
function resolveSyncRoots(args, environment = process.env, currentDirectory = process.cwd(), homeDirectory = environment.HOME ?? os.homedir()) {
|
|
57
|
+
const globalRoot = globalDoomConfigDirectory(homeDirectory);
|
|
58
|
+
const inheritedRoot = environment[HARNESS_ROOT_ENV];
|
|
59
|
+
const sourceRoot = inheritedRoot ? path.resolve(inheritedRoot) : resolveDoomConfigurationRoot(currentDirectory, homeDirectory);
|
|
60
|
+
const globalOnly = args.includes(GLOBAL_OPTION);
|
|
61
|
+
return {
|
|
62
|
+
globalOnly,
|
|
63
|
+
globalRoot,
|
|
64
|
+
sourceRoot,
|
|
65
|
+
targetRoot: globalOnly ? globalRoot : sourceRoot
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
const GLOBAL_SCOPE_INHERITED_KEYS = [
|
|
69
|
+
HARNESS_ROOT_ENV,
|
|
70
|
+
HARNESS_STATE_POINTER,
|
|
71
|
+
DOOMPI_MAJOR_MODE_ENV,
|
|
72
|
+
DOOMPI_DOMAINS_ENV,
|
|
73
|
+
DOOMPI_PROFILE_ENV
|
|
74
|
+
];
|
|
75
|
+
/** Removes workspace-only state before a global runtime is resolved. */
|
|
76
|
+
function environmentForSyncScope(environment, globalOnly) {
|
|
77
|
+
if (!globalOnly) return environment;
|
|
78
|
+
const scoped = { ...environment };
|
|
79
|
+
for (const key of GLOBAL_SCOPE_INHERITED_KEYS) delete scoped[key];
|
|
80
|
+
return scoped;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Harness variables worth recording, by prefix or exact name.
|
|
84
|
+
*
|
|
85
|
+
* An allowlist rather than the whole environment: the state file is a snapshot
|
|
86
|
+
* of resolved configuration, and dumping `process.env` into it would write
|
|
87
|
+
* every credential the sync happened to run with onto disk.
|
|
88
|
+
*/
|
|
89
|
+
const RECORDED_PREFIXES = ["DOOMPI_"];
|
|
90
|
+
const RECORDED_KEYS = [
|
|
91
|
+
"CLAUDE_PROJECT_DIR",
|
|
92
|
+
"CODEX_REPO_ROOT",
|
|
93
|
+
"ORIGINAL_REPO_PATH",
|
|
94
|
+
"MCP_UI_VIEWER"
|
|
95
|
+
];
|
|
96
|
+
/**
|
|
97
|
+
* Launcher-only values a synced session must not inherit.
|
|
98
|
+
*
|
|
99
|
+
* The child extension list is recomposed on every load, and the subagent binary
|
|
100
|
+
* points at `pi.sh`, which a session started as plain `pi` should not shell out
|
|
101
|
+
* to: Doom Team resolves Pi's own CLI when the variable is absent.
|
|
102
|
+
*/
|
|
103
|
+
const EXCLUDED_KEYS = /* @__PURE__ */ new Set([
|
|
104
|
+
"DOOMPI_CHILD_EXTENSIONS",
|
|
105
|
+
"DOOMPI_COMPOSED",
|
|
106
|
+
"DOOMPI_MUTE",
|
|
107
|
+
"DOOMPI_TEMP_DIR",
|
|
108
|
+
HARNESS_STATE_POINTER,
|
|
109
|
+
"PI_SUBAGENT_PI_BINARY"
|
|
110
|
+
]);
|
|
111
|
+
function recordedEnvironment(environment) {
|
|
112
|
+
const recorded = {};
|
|
113
|
+
for (const [key, value] of Object.entries(environment)) {
|
|
114
|
+
if (value === void 0 || EXCLUDED_KEYS.has(key)) continue;
|
|
115
|
+
if (RECORDED_KEYS.includes(key) || RECORDED_PREFIXES.some((prefix) => key.startsWith(prefix))) recorded[key] = value;
|
|
116
|
+
}
|
|
117
|
+
return recorded;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Reports the config keys sync chose to ignore.
|
|
121
|
+
*
|
|
122
|
+
* Never fatal. A key nobody recognises is usually a config written for another
|
|
123
|
+
* version of a layer, and refusing to build over it is worse than proceeding
|
|
124
|
+
* without it. The strict check lives in `doompi doctor`.
|
|
125
|
+
*/
|
|
126
|
+
function writeConfigDiagnostics(diagnostics, output) {
|
|
127
|
+
if (diagnostics.length === 0) return;
|
|
128
|
+
const lines = diagnostics.map((entry) => ` ${entry.filePath}: ${entry.path}`).join("\n");
|
|
129
|
+
output.write(`config: ignored ${String(diagnostics.length)} unsupported key(s); run doompi doctor for the strict check\n${lines}\n`);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Layers the repository's declared selection under the usual resolution.
|
|
133
|
+
*
|
|
134
|
+
* `.doom/config.yaml` holds what the repository selects by default, the way
|
|
135
|
+
* init.el does for doom-emacs. Seeding the environment the parser reads keeps
|
|
136
|
+
* the precedence the launcher already documents: an explicit flag wins, then an
|
|
137
|
+
* exported variable, then the declared default.
|
|
138
|
+
*/
|
|
139
|
+
function selectionEnvironment(repoRoot, environment, homeDirectory) {
|
|
140
|
+
const { selection } = loadDoomConfigLenient$1(repoRoot, homeDirectory).config;
|
|
141
|
+
if (!selection) return environment;
|
|
142
|
+
return {
|
|
143
|
+
...environment,
|
|
144
|
+
...selection.majorMode && !environment["DOOMPI_MAJOR_MODE"] ? { [DOOMPI_MAJOR_MODE_ENV]: selection.majorMode } : {},
|
|
145
|
+
...selection.profile && !environment["DOOMPI_PROFILE"] ? { [DOOMPI_PROFILE_ENV]: selection.profile } : {},
|
|
146
|
+
...selection.domains && environment["DOOMPI_DOMAINS"] === void 0 ? { [DOOMPI_DOMAINS_ENV]: selection.domains.join(",") } : {}
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
function toSelection(options) {
|
|
150
|
+
return {
|
|
151
|
+
majorMode: options.majorMode,
|
|
152
|
+
domains: options.domains,
|
|
153
|
+
profile: options.profile,
|
|
154
|
+
preset: options.preset
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
function selectionCompositionFingerprint(repoRoot, options, homeDirectory = os.homedir()) {
|
|
158
|
+
const majorModesConfig = loadMajorModesConfig(repoRoot, homeDirectory);
|
|
159
|
+
const resolvers = createLayerResolvers(repoRoot);
|
|
160
|
+
return resolveExtensionComposition({
|
|
161
|
+
agents: options.agents,
|
|
162
|
+
autoStop: false,
|
|
163
|
+
mute: false,
|
|
164
|
+
preset: options.preset,
|
|
165
|
+
personaEntry: resolvers.packageEntry(PERSONA_ENTRY),
|
|
166
|
+
majorMode: options.majorMode,
|
|
167
|
+
layers: filterHookDisabledLayers(majorModesConfig, resolveLayers(majorModesConfig, options.majorMode), options.hooks),
|
|
168
|
+
majorModesConfig,
|
|
169
|
+
resolvers
|
|
170
|
+
}).fingerprint;
|
|
171
|
+
}
|
|
172
|
+
/** Settings, dispatcher and theme differences an init would fix, independent of sync state. */
|
|
173
|
+
function piIntegrationDrift(agentDirectory) {
|
|
174
|
+
const drift = [];
|
|
175
|
+
const themePath = path.join(piThemeDirectory(agentDirectory), `${DEFAULT_THEME_NAME}.json`);
|
|
176
|
+
const settings = readPiSettings(agentDirectory);
|
|
177
|
+
const merged = mergePiSettings(settings, agentDirectory, {
|
|
178
|
+
themePath,
|
|
179
|
+
themeName: DEFAULT_THEME_NAME
|
|
180
|
+
});
|
|
181
|
+
if (serializePiSettings(merged) !== serializePiSettings(settings)) drift.push("Pi user settings are out of date; run doompi init");
|
|
182
|
+
if (!piExtensionAliasIsCurrent(agentDirectory)) drift.push("Pi user dispatcher is out of date; run doompi init");
|
|
183
|
+
const expectedTheme = `${JSON.stringify(DEFAULT_THEME, null, 2)}\n`;
|
|
184
|
+
if (!fs.existsSync(themePath) || fs.readFileSync(themePath, "utf8") !== expectedTheme) drift.push("Pi user theme is out of date; run doompi init");
|
|
185
|
+
return drift;
|
|
186
|
+
}
|
|
187
|
+
/** Differences between what a sync would produce and what is on disk. */
|
|
188
|
+
function collectDrift(repoRoot, selection, state, environment = process.env, settingsMode = "persisted", expectedCompositionFingerprint) {
|
|
189
|
+
if (!state) return ["no sync state: run doompi sync"];
|
|
190
|
+
const drift = [];
|
|
191
|
+
if (syncRegistrationNeedsApiMigration(repoRoot, environment.HOME ?? os.homedir())) drift.push("DoomPi registration needs API migration");
|
|
192
|
+
if (!syncStateRootMatches(repoRoot, state.root)) drift.push("sync state belongs to a different repository");
|
|
193
|
+
const recorded = state.selection;
|
|
194
|
+
if (recorded.majorMode !== selection.majorMode || recorded.profile !== selection.profile || recorded.preset !== selection.preset || recorded.domains.join(",") !== selection.domains.join(",")) drift.push("selection changed since the last sync");
|
|
195
|
+
if (computeInputsHash(repoRoot, recorded, environment.HOME ?? os.homedir()) !== state.inputsHash) drift.push(".doom configuration changed");
|
|
196
|
+
if (JSON.stringify(recordResolvedEntries(loadMajorModesConfig(repoRoot, environment.HOME ?? os.homedir()), createLayerResolvers(repoRoot))) !== JSON.stringify(state.resolved)) drift.push("resolved extension paths changed");
|
|
197
|
+
if (expectedCompositionFingerprint && state.compositionFingerprint !== expectedCompositionFingerprint) drift.push("extension composition changed");
|
|
198
|
+
try {
|
|
199
|
+
if (!readBootstrapStatus(repoRoot, void 0, environment.HOME ?? os.homedir()).fresh) drift.push("precompiled runtime is missing or stale");
|
|
200
|
+
} catch {
|
|
201
|
+
drift.push("precompiled runtime is missing or stale");
|
|
202
|
+
}
|
|
203
|
+
if (settingsMode === "persisted") {
|
|
204
|
+
const agentDirectory = piAgentDirectory(environment);
|
|
205
|
+
const themePath = path.join(piThemeDirectory(agentDirectory), `${DEFAULT_THEME_NAME}.json`);
|
|
206
|
+
drift.push(...piIntegrationDrift(agentDirectory));
|
|
207
|
+
if (projectRegistersDoom(repoRoot)) drift.push(DUPLICATE_REGISTRATION_DRIFT);
|
|
208
|
+
if (state.baseline.themePath !== themePath || state.baseline.themeName !== DEFAULT_THEME_NAME) drift.push("synced theme location is out of date");
|
|
209
|
+
}
|
|
210
|
+
if (readSyncDrift({
|
|
211
|
+
repoRoot,
|
|
212
|
+
homeDirectory: environment.HOME ?? os.homedir()
|
|
213
|
+
}).reasons.includes("server-bundle-stale")) drift.push("server bundle is missing or stale");
|
|
214
|
+
return drift;
|
|
215
|
+
}
|
|
216
|
+
/** Regenerates the hook files the other frontends read before any harness code runs. */
|
|
217
|
+
function emitFrontendHooks(repoRoot, output) {
|
|
218
|
+
const emitter = path.join(repoRoot, HOOK_EMITTER);
|
|
219
|
+
if (!fs.existsSync(emitter)) return;
|
|
220
|
+
const result = spawnSync(process.execPath, [emitter, "--write"], {
|
|
221
|
+
cwd: repoRoot,
|
|
222
|
+
encoding: "utf8"
|
|
223
|
+
});
|
|
224
|
+
if (result.status === 0) {
|
|
225
|
+
output.write("hooks: regenerated for Claude Code and Codex\n");
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
output.write(`hooks: emit-hooks failed (${result.stderr?.trim() || `exit ${String(result.status)}`})\n`);
|
|
229
|
+
}
|
|
230
|
+
function formatSyncResult(result, runner = "pi") {
|
|
231
|
+
const { selection } = result;
|
|
232
|
+
return [
|
|
233
|
+
`mode: ${selection.majorMode}`,
|
|
234
|
+
`domains: ${selection.domains.join(", ") || NONE}`,
|
|
235
|
+
`profile: ${selection.profile ?? NONE}`,
|
|
236
|
+
`skills: ${result.skillCount}`,
|
|
237
|
+
`agents: ${result.agentCount}`,
|
|
238
|
+
`mcp: ${result.mcpServers.join(", ") || NONE}`,
|
|
239
|
+
`state: ${result.statePath}`,
|
|
240
|
+
...result.settingsPath ? [`settings: ${result.settingsPath}`] : [],
|
|
241
|
+
...result.projectSettingsPath ? [`project: removed duplicate registration from ${result.projectSettingsPath}`] : [],
|
|
242
|
+
"",
|
|
243
|
+
`Run ${runner} from the repository root to use it.`,
|
|
244
|
+
""
|
|
245
|
+
].join("\n");
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* The DoomPi that produced this generation, which is the one that can load it.
|
|
249
|
+
*
|
|
250
|
+
* Always the executing package, never another copy the repository happens to
|
|
251
|
+
* install. A generation is not portable between two installations: the bundles
|
|
252
|
+
* are compiled from the building package's own extension entries, the recorded
|
|
253
|
+
* compiler inputs are its files, and the state names its bootstrap entry. Naming
|
|
254
|
+
* a second copy here publishes a registration whose package disagrees with the
|
|
255
|
+
* state it points at, and Pi's dispatcher then loads a harness that rejects the
|
|
256
|
+
* bootstrap as stale on every session, with no sync able to fix it.
|
|
257
|
+
*
|
|
258
|
+
* A repository that wants its own copy to own its sessions runs sync with that
|
|
259
|
+
* copy's CLI, which makes it the executing package.
|
|
260
|
+
*/
|
|
261
|
+
function packageRegistrationFor() {
|
|
262
|
+
const root = fs.realpathSync(doomPiPackageRoot());
|
|
263
|
+
const manifestPath = path.join(root, "package.json");
|
|
264
|
+
const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf8"));
|
|
265
|
+
const version = manifest.version;
|
|
266
|
+
const apiVersion = manifest.doompiApiVersion;
|
|
267
|
+
const extensions = manifest.pi?.extensions;
|
|
268
|
+
const extension = Array.isArray(extensions) ? extensions.find((value) => typeof value === "string") : void 0;
|
|
269
|
+
if (typeof version !== "string" || typeof apiVersion !== "number" || !Number.isSafeInteger(apiVersion) || apiVersion < 1 || apiVersion !== DOOMPI_API_VERSION || typeof extension !== "string") throw new Error(`Installed DoomPi package at ${root} has no supported API-versioned Pi extension entry`);
|
|
270
|
+
return {
|
|
271
|
+
root,
|
|
272
|
+
version,
|
|
273
|
+
apiVersion,
|
|
274
|
+
manifestPath,
|
|
275
|
+
entry: fs.realpathSync(path.resolve(root, extension))
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
/** Returns true when a valid legacy registration must be republished with API metadata. */
|
|
279
|
+
function syncRegistrationNeedsApiMigration(repoRoot, homeDirectory) {
|
|
280
|
+
try {
|
|
281
|
+
const registration = readSyncRegistration(repoRoot, homeDirectory);
|
|
282
|
+
return registration !== void 0 && (registration.version !== SYNC_REGISTRATION_VERSION || registration.package.apiVersion === void 0);
|
|
283
|
+
} catch {
|
|
284
|
+
return false;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
/** Resolves the matrix, stages it into home-scoped worktree storage, and publishes one generation. */
|
|
288
|
+
async function synchronize(args, environment = process.env, currentDirectory = process.cwd(), output = process.stdout, commandOptions = {}) {
|
|
289
|
+
const check = args.includes(CHECK_OPTION);
|
|
290
|
+
const force = args.includes(FORCE_OPTION);
|
|
291
|
+
const rest = args.slice(1).filter((argument) => ![
|
|
292
|
+
CHECK_OPTION,
|
|
293
|
+
FORCE_OPTION,
|
|
294
|
+
GLOBAL_OPTION
|
|
295
|
+
].includes(argument));
|
|
296
|
+
const homeDirectory = commandOptions.homeDirectory ?? environment.HOME ?? os.homedir();
|
|
297
|
+
const { globalOnly, globalRoot, targetRoot: repoRoot } = resolveSyncRoots(args, environment, currentDirectory, homeDirectory);
|
|
298
|
+
const scopedEnvironment = environmentForSyncScope(environment, globalOnly);
|
|
299
|
+
if (globalOnly && !check) fs.mkdirSync(globalRoot, {
|
|
300
|
+
recursive: true,
|
|
301
|
+
mode: PRIVATE_DIRECTORY_MODE
|
|
302
|
+
});
|
|
303
|
+
const modes = loadMajorModesConfigLenient(repoRoot, homeDirectory);
|
|
304
|
+
const configDiagnostics = [...loadDoomConfigLenient$1(repoRoot, homeDirectory).diagnostics, ...modes.diagnostics];
|
|
305
|
+
const defaultMajorMode = modes.config.defaultMajorMode;
|
|
306
|
+
const defaultDomains = loadDomains(repoRoot, homeDirectory).defaultDomains;
|
|
307
|
+
const parsed = parseHarnessArgs(rest, selectionEnvironment(repoRoot, scopedEnvironment, homeDirectory), globalOnly ? globalRoot : currentDirectory, defaultMajorMode, defaultDomains);
|
|
308
|
+
const selection = toSelection(parsed.options);
|
|
309
|
+
const agentDirectory = piAgentDirectory(scopedEnvironment, homeDirectory);
|
|
310
|
+
if ((commandOptions.settingsMode ?? "persisted") === "persisted" && !check) {
|
|
311
|
+
if (piExtensionDispatcherIsUpgradeable(agentDirectory)) {
|
|
312
|
+
const previousVersion = piExtensionDispatcherVersion(agentDirectory);
|
|
313
|
+
writePiExtensionAlias(agentDirectory);
|
|
314
|
+
output.write(`repair: upgraded Pi user dispatcher from protocol ${String(previousVersion)} to ${String(3)}\n`);
|
|
315
|
+
}
|
|
316
|
+
const drift = piIntegrationDrift(agentDirectory);
|
|
317
|
+
if (drift.length > 0) throw new Error(`DoomPi Pi integration is not ready:\n${drift.map((entry) => ` ${entry}`).join("\n")}`);
|
|
318
|
+
}
|
|
319
|
+
writeConfigDiagnostics(configDiagnostics, output);
|
|
320
|
+
if (check) {
|
|
321
|
+
const majorModesConfig = modes.config;
|
|
322
|
+
const missingPackages = missingLayerPackageSpecifiers(majorModesConfig, Object.keys(majorModesConfig.layers), createLayerResolvers(repoRoot));
|
|
323
|
+
if (missingPackages.length > 0) {
|
|
324
|
+
output.write(`doompi sync is out of date:\n${missingPackages.map((specifier) => ` configured package is not installed: ${specifier}`).join("\n")}\n`);
|
|
325
|
+
return 1;
|
|
326
|
+
}
|
|
327
|
+
let located;
|
|
328
|
+
try {
|
|
329
|
+
located = readLocatedSyncState(repoRoot, homeDirectory);
|
|
330
|
+
} catch (error) {
|
|
331
|
+
const detail = error instanceof Error ? error.message : String(error);
|
|
332
|
+
output.write(`doompi sync is out of date:\n ${detail}\n`);
|
|
333
|
+
return 1;
|
|
334
|
+
}
|
|
335
|
+
const expectedCompositionFingerprint = selectionCompositionFingerprint(repoRoot, parsed.options, homeDirectory);
|
|
336
|
+
const drift = collectDrift(repoRoot, selection, located?.state, scopedEnvironment, commandOptions.settingsMode ?? "persisted", expectedCompositionFingerprint);
|
|
337
|
+
if (drift.length === 0) {
|
|
338
|
+
output.write("doompi sync is up to date\n");
|
|
339
|
+
return 0;
|
|
340
|
+
}
|
|
341
|
+
output.write(`doompi sync is out of date:\n${drift.map((entry) => ` ${entry}`).join("\n")}\n`);
|
|
342
|
+
return 1;
|
|
343
|
+
}
|
|
344
|
+
const driftOptions = {
|
|
345
|
+
repoRoot,
|
|
346
|
+
homeDirectory,
|
|
347
|
+
requireWebBundle: Boolean(environment.DOOMPI_WEB_PACKAGE_ROOT)
|
|
348
|
+
};
|
|
349
|
+
const registrationNeedsMigration = syncRegistrationNeedsApiMigration(repoRoot, homeDirectory);
|
|
350
|
+
if (!force && !registrationNeedsMigration && readSyncDrift(driftOptions).fresh) {
|
|
351
|
+
output.write("doompi sync is already up to date\n");
|
|
352
|
+
return 0;
|
|
353
|
+
}
|
|
354
|
+
const progress = new SyncProgress(output);
|
|
355
|
+
const releaseLock = commandOptions.lockHeld ? void 0 : await acquireSyncLocationLock(resolveSyncLocation(repoRoot, homeDirectory));
|
|
356
|
+
let result;
|
|
357
|
+
try {
|
|
358
|
+
const registrationNeedsMigration = syncRegistrationNeedsApiMigration(repoRoot, homeDirectory);
|
|
359
|
+
if (!force && !registrationNeedsMigration && readSyncDrift(driftOptions).fresh) {
|
|
360
|
+
output.write("doompi sync is already up to date\n");
|
|
361
|
+
return 0;
|
|
362
|
+
}
|
|
363
|
+
result = await stageSync(repoRoot, parsed.options, scopedEnvironment, homeDirectory, progress, commandOptions);
|
|
364
|
+
} finally {
|
|
365
|
+
await releaseLock?.();
|
|
366
|
+
}
|
|
367
|
+
emitFrontendHooks(repoRoot, output);
|
|
368
|
+
output.write(formatSyncResult(result, (commandOptions.settingsMode ?? "persisted") === "embedded" ? "dpi" : "pi"));
|
|
369
|
+
return 0;
|
|
370
|
+
}
|
|
371
|
+
async function stageSync(repoRoot, options, environment, homeDirectory, progress, commandOptions = {}) {
|
|
372
|
+
const location = resolveSyncLocation(repoRoot, homeDirectory);
|
|
373
|
+
const generation = `${Date.now().toString(36)}-${crypto.randomUUID()}`;
|
|
374
|
+
const directory = syncGenerationDirectory(location, generation);
|
|
375
|
+
await fs.promises.mkdir(location.generationsDirectory, {
|
|
376
|
+
recursive: true,
|
|
377
|
+
mode: PRIVATE_DIRECTORY_MODE
|
|
378
|
+
});
|
|
379
|
+
await fs.promises.mkdir(directory, { mode: PRIVATE_DIRECTORY_MODE });
|
|
380
|
+
try {
|
|
381
|
+
const staged = progress.start(SYNC_LABEL, "resolving the matrix and staging resources");
|
|
382
|
+
const context = await buildHarnessContext({
|
|
383
|
+
...options,
|
|
384
|
+
repoRoot: location.root,
|
|
385
|
+
homeDirectory,
|
|
386
|
+
cwd: location.root,
|
|
387
|
+
resourceDirectory: directory
|
|
388
|
+
});
|
|
389
|
+
await ensureLayerPackages({
|
|
390
|
+
repoRoot: location.root,
|
|
391
|
+
config: context.majorModesConfig,
|
|
392
|
+
layers: Object.keys(context.majorModesConfig.layers),
|
|
393
|
+
environment
|
|
394
|
+
});
|
|
395
|
+
staged(`${String(context.resources.skillCount)} skills, ${String(context.resources.agentCount)} agents`);
|
|
396
|
+
const selection = toSelection(options);
|
|
397
|
+
const resolvers = createLayerResolvers(location.root);
|
|
398
|
+
const resolved = recordResolvedEntries(context.majorModesConfig, resolvers);
|
|
399
|
+
const compositionFingerprint = selectionCompositionFingerprint(location.root, options, homeDirectory);
|
|
400
|
+
const agentDirectory = piAgentDirectory(environment, homeDirectory);
|
|
401
|
+
const persistedThemePath = path.join(piThemeDirectory(agentDirectory), `${DEFAULT_THEME_NAME}.json`);
|
|
402
|
+
const themePath = (commandOptions.settingsMode ?? "persisted") === "persisted" ? persistedThemePath : context.defaultThemePath;
|
|
403
|
+
const state = {
|
|
404
|
+
version: SYNC_STATE_VERSION,
|
|
405
|
+
root: location.root,
|
|
406
|
+
identity: location.identity,
|
|
407
|
+
inputsHash: computeInputsHash(location.root, selection, homeDirectory),
|
|
408
|
+
webSourcesHash: computeWebSourcesHash(resolved),
|
|
409
|
+
compositionFingerprint,
|
|
410
|
+
selection,
|
|
411
|
+
env: recordedEnvironment(context.environment),
|
|
412
|
+
fileState: {
|
|
413
|
+
profileEnvironment: loadHarnessState(context.environment).state.profileEnvironment,
|
|
414
|
+
pluginHooks: context.resources.pluginHooks,
|
|
415
|
+
mcpProjection: context.resources.mcpProjection
|
|
416
|
+
},
|
|
417
|
+
resolved,
|
|
418
|
+
baseline: {
|
|
419
|
+
mcpConfigPath: context.resources.mcpConfigPath,
|
|
420
|
+
personaFile: context.environment[PERSONA_FILE_ENV],
|
|
421
|
+
themePath,
|
|
422
|
+
themeName: DEFAULT_THEME_NAME
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
let resolveCompositions;
|
|
426
|
+
let rejectCompositions;
|
|
427
|
+
const compositionsReady = new Promise((resolve, reject) => {
|
|
428
|
+
resolveCompositions = resolve;
|
|
429
|
+
rejectCompositions = reject;
|
|
430
|
+
});
|
|
431
|
+
const runtimeProgress = progress.start(RUNTIME_LABEL, "precompiling the mode bundles");
|
|
432
|
+
const runtimeBuild = buildSyncedRuntime(location.root, environment, homeDirectory, {
|
|
433
|
+
state,
|
|
434
|
+
directory,
|
|
435
|
+
onCompositionsResolved: resolveCompositions
|
|
436
|
+
}).then((synced) => {
|
|
437
|
+
runtimeProgress(`${String(Object.keys(synced.bundles).length)} mode bundles`);
|
|
438
|
+
return synced;
|
|
439
|
+
});
|
|
440
|
+
runtimeBuild.catch(rejectCompositions);
|
|
441
|
+
const webBuild = (async () => {
|
|
442
|
+
await runtimeBuild;
|
|
443
|
+
const webProgress = progress.start(WEB_LABEL, "bundling the web cockpit plugins");
|
|
444
|
+
const web = await syncWebBundle({
|
|
445
|
+
repoRoot: location.root,
|
|
446
|
+
resolvedEntries: state.resolved,
|
|
447
|
+
environment,
|
|
448
|
+
outputDirectory: path.join(directory, "web-bundle"),
|
|
449
|
+
onNotice: (message) => progress.line(WEB_LABEL, message)
|
|
450
|
+
});
|
|
451
|
+
if (web.status === "failed") throw new Error(`Cockpit bundle failed: ${web.reason}`);
|
|
452
|
+
webProgress(web.status === "bundled" ? `cockpit bundled with plugins: ${web.pluginIds.join(", ")}` : web.reason);
|
|
453
|
+
return web;
|
|
454
|
+
})();
|
|
455
|
+
const serverBuild = (async () => {
|
|
456
|
+
const compositions = await compositionsReady;
|
|
457
|
+
await runtimeBuild;
|
|
458
|
+
const apiProgress = progress.start(API_LABEL, "compiling the server bundle");
|
|
459
|
+
const apiDirectory = path.join(directory, "api");
|
|
460
|
+
const fingerprint = crypto.createHash("sha256").update(JSON.stringify([...new Set(compositions.map((composition) => composition.fingerprint))])).digest("hex");
|
|
461
|
+
const server = await syncServerBundle({
|
|
462
|
+
repositoryRoot: location.root,
|
|
463
|
+
generation,
|
|
464
|
+
fingerprint,
|
|
465
|
+
compositions,
|
|
466
|
+
outputDirectory: apiDirectory,
|
|
467
|
+
cacheDirectory: path.join(directory, "cache"),
|
|
468
|
+
sharedCacheDirectory: location.sharedCacheDirectory
|
|
469
|
+
});
|
|
470
|
+
apiProgress(`${server.descriptor.entries.length} server facet(s) compiled`);
|
|
471
|
+
for (const gap of server.contractGaps) progress.line(API_LABEL, `API contract incomplete: ${gap}`);
|
|
472
|
+
return {
|
|
473
|
+
server,
|
|
474
|
+
fingerprint,
|
|
475
|
+
apiDirectory
|
|
476
|
+
};
|
|
477
|
+
})();
|
|
478
|
+
const [runtimeResult, webResult, serverResult] = await Promise.allSettled([
|
|
479
|
+
runtimeBuild,
|
|
480
|
+
webBuild,
|
|
481
|
+
serverBuild
|
|
482
|
+
]);
|
|
483
|
+
if (runtimeResult.status === "rejected") throw runtimeResult.reason;
|
|
484
|
+
if (webResult.status === "rejected") throw webResult.reason;
|
|
485
|
+
if (serverResult.status === "rejected") throw serverResult.reason;
|
|
486
|
+
const synced = runtimeResult.value;
|
|
487
|
+
const web = webResult.value;
|
|
488
|
+
const { server, fingerprint, apiDirectory } = serverResult.value;
|
|
489
|
+
const descriptorPath = path.join(apiDirectory, DOOM_SERVER_BUNDLE_FILE);
|
|
490
|
+
const finalState = {
|
|
491
|
+
...synced.state,
|
|
492
|
+
serverBundle: {
|
|
493
|
+
descriptorPath,
|
|
494
|
+
fingerprint,
|
|
495
|
+
compilerManifests: server.compilerManifests,
|
|
496
|
+
sourcesHash: computeServerSourcesHash(synced.state.resolved)
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
const statePath = await writeSyncState(location.root, finalState, homeDirectory, path.join(directory, "state.json"));
|
|
500
|
+
const projectSettingsPath = (commandOptions.settingsMode ?? "persisted") === "persisted" ? writeProjectPiSettings(location.root, homeDirectory) : void 0;
|
|
501
|
+
const result = {
|
|
502
|
+
statePath,
|
|
503
|
+
...projectSettingsPath ? { projectSettingsPath } : {},
|
|
504
|
+
selection,
|
|
505
|
+
mcpServers: synced.state.baseline.mcpConfigPath ? readMcpServerNames(synced.state.baseline.mcpConfigPath) : [],
|
|
506
|
+
skillCount: context.resources.skillCount,
|
|
507
|
+
agentCount: context.resources.agentCount
|
|
508
|
+
};
|
|
509
|
+
publishSyncRegistration(location.root, {
|
|
510
|
+
version: SYNC_REGISTRATION_VERSION,
|
|
511
|
+
root: location.root,
|
|
512
|
+
identity: location.identity,
|
|
513
|
+
generation,
|
|
514
|
+
generationRoot: directory,
|
|
515
|
+
statePath,
|
|
516
|
+
stateSha256: syncStateSha256(statePath),
|
|
517
|
+
webDirectory: web.status === "bundled" ? web.assetsDir : null,
|
|
518
|
+
apiDirectory,
|
|
519
|
+
serverBundle: {
|
|
520
|
+
path: descriptorPath,
|
|
521
|
+
fingerprint,
|
|
522
|
+
sha256: syncStateSha256(descriptorPath)
|
|
523
|
+
},
|
|
524
|
+
package: packageRegistrationFor()
|
|
525
|
+
}, homeDirectory);
|
|
526
|
+
return result;
|
|
527
|
+
} catch (error) {
|
|
528
|
+
await fs.promises.rm(directory, {
|
|
529
|
+
recursive: true,
|
|
530
|
+
force: true
|
|
531
|
+
});
|
|
532
|
+
throw error;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
/** Compatibility API. Executables call the command function directly. */
|
|
536
|
+
var SyncCommand = class {
|
|
537
|
+
name = SYNC_COMMAND;
|
|
538
|
+
settingsMode;
|
|
539
|
+
homeDirectory;
|
|
540
|
+
lockHeld;
|
|
541
|
+
constructor(options = {}) {
|
|
542
|
+
this.settingsMode = options.settingsMode ?? "persisted";
|
|
543
|
+
this.homeDirectory = options.homeDirectory;
|
|
544
|
+
this.lockHeld = options.lockHeld ?? false;
|
|
545
|
+
}
|
|
546
|
+
matches(args) {
|
|
547
|
+
return args[0] === this.name;
|
|
548
|
+
}
|
|
549
|
+
async execute(args, environment = process.env, currentDirectory = process.cwd(), output = process.stdout) {
|
|
550
|
+
return synchronize(args, environment, currentDirectory, output, {
|
|
551
|
+
settingsMode: this.settingsMode,
|
|
552
|
+
homeDirectory: this.homeDirectory,
|
|
553
|
+
lockHeld: this.lockHeld
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
//#endregion
|
|
558
|
+
export { SyncCommand, collectDrift, environmentForSyncScope, formatSyncResult, recordedEnvironment, resolveSyncRoots, selectionCompositionFingerprint, selectionEnvironment, syncRegistrationNeedsApiMigration, synchronize, toSelection };
|
|
559
|
+
|
|
560
|
+
//# sourceMappingURL=index.mjs.map
|