@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,83 @@
|
|
|
1
|
+
import { COMPATIBILITY_MATRIX_OPTIONS, compatHelp } from "./commands/compat/help.mjs";
|
|
2
|
+
import { initHelp } from "./commands/init/help.mjs";
|
|
3
|
+
import { syncHelp } from "./commands/sync/help.mjs";
|
|
4
|
+
import { doctorHelp } from "./commands/doctor/help.mjs";
|
|
5
|
+
import { historyExportHelp } from "./commands/history-export/help.mjs";
|
|
6
|
+
import { historyImportHelp } from "./commands/history-import/help.mjs";
|
|
7
|
+
import { createRequire } from "node:module";
|
|
8
|
+
const HARNESS_VERSION = createRequire(import.meta.url)("@agimon-ai/doompi/package.json").version;
|
|
9
|
+
function printHelp() {
|
|
10
|
+
process.stdout.write(`doompi
|
|
11
|
+
|
|
12
|
+
Usage: doompi [harness options] [Pi options] [prompt]
|
|
13
|
+
doompi init
|
|
14
|
+
doompi sync [matrix options] [--check]
|
|
15
|
+
doompi api-export --out <directory> [--major-mode <name>] [--strict]
|
|
16
|
+
doompi compat <codex|claude|antigravity> [matrix options] [provider arguments]
|
|
17
|
+
doompi history-export <v4-source> <v3-destination> [options]
|
|
18
|
+
doompi history-import <v3-source> <v4-destination> --confirm-offline
|
|
19
|
+
|
|
20
|
+
Initialization:
|
|
21
|
+
doompi init Fill missing files in ~/.pi/.doom
|
|
22
|
+
doompi sync Update packages, build, resolve, and register DoomPi
|
|
23
|
+
in Pi user settings
|
|
24
|
+
doompi sync --check Exit non-zero when the synced config is out of date
|
|
25
|
+
or report legacy repository-local state to migrate
|
|
26
|
+
|
|
27
|
+
Sync artifacts live under ~/.pi/.doom/sync in a repository- and worktree-specific
|
|
28
|
+
namespace. Linked worktrees isolate state, dist, manifests, resources, and run
|
|
29
|
+
files while sharing immutable repository build objects. A legacy <repo>/.pi/doom
|
|
30
|
+
state is read only when no global state exists; run doompi sync to migrate it.
|
|
31
|
+
DoomPi never removes old or orphaned generated directories automatically.
|
|
32
|
+
|
|
33
|
+
After a sync, run pi directly. The synced session accepts --major-mode,
|
|
34
|
+
--domains, --profile, and --mute, and /mode, /domains, and /profile switch
|
|
35
|
+
without a restart. Selection defaults come from the selection block in
|
|
36
|
+
.doom/config.yaml.
|
|
37
|
+
|
|
38
|
+
${COMPATIBILITY_MATRIX_OPTIONS}
|
|
39
|
+
All other compatibility arguments pass to the provider unchanged.
|
|
40
|
+
|
|
41
|
+
Harness options:
|
|
42
|
+
--major-mode <name> Named major mode from .doom/modes.yaml
|
|
43
|
+
(default: copilot). Not --mode: Pi owns that one.
|
|
44
|
+
--profile <name> Persona and env from .doom/profiles.yaml
|
|
45
|
+
--domains <names> Comma-separated domains (content: plugins, skills)
|
|
46
|
+
--no-domains Load no content domains
|
|
47
|
+
--explain Print the resolved matrix and exit
|
|
48
|
+
--emit-mcp <dir> Write the resolved MCP config to a directory and exit
|
|
49
|
+
--plugin-dir <path> Load an explicit plugin directory, repeatable
|
|
50
|
+
--add-dir <path> Add an accessible directory, repeatable
|
|
51
|
+
--preset <name> default, kimi, or ollama
|
|
52
|
+
--cwd <path> Run Pi in this directory
|
|
53
|
+
--automation Use print mode, JSON output, and project approval
|
|
54
|
+
--output-format vibe-lint Read a vibe-lint request from stdin and emit one JSON response
|
|
55
|
+
--mute Disable the notification extension for this run
|
|
56
|
+
--auto-stop Exit interactive Pi when the agent settles
|
|
57
|
+
--sandbox Run the agent in the sandbox container a layer provides
|
|
58
|
+
--allow-protected-writes Allow writes to protected repository paths
|
|
59
|
+
--hooks, --no-hooks Enable or disable repository and plugin hooks
|
|
60
|
+
--mcp, --no-mcp Enable or disable MCP configuration
|
|
61
|
+
--agents, --no-agents Enable or disable spawnable agents
|
|
62
|
+
-h, --help Show harness help
|
|
63
|
+
-v, --version Show harness version
|
|
64
|
+
|
|
65
|
+
Interactive commands:
|
|
66
|
+
/loop Open the loop launcher picker
|
|
67
|
+
/loops List active loops and stop future scheduling
|
|
68
|
+
/effort <level> Set and persist the thinking effort
|
|
69
|
+
/mode Pick a named major mode
|
|
70
|
+
/domains [names] Show the selected domains or pick a different set
|
|
71
|
+
/profile List or switch persona and environment profiles
|
|
72
|
+
|
|
73
|
+
Minor modes are toggled from the Leader menu, not by a slash command:
|
|
74
|
+
SPC p e Plan mode (repository read-only)
|
|
75
|
+
SPC w e Workflow tools for the agent
|
|
76
|
+
|
|
77
|
+
All remaining options are passed to Pi.
|
|
78
|
+
`);
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
export { HARNESS_VERSION, compatHelp, doctorHelp, historyExportHelp, historyImportHelp, initHelp, printHelp, syncHelp };
|
|
82
|
+
|
|
83
|
+
//# sourceMappingURL=help.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help.mjs","names":[],"sources":["../../src/cli/help.ts"],"sourcesContent":["import { COMPATIBILITY_MATRIX_OPTIONS } from './commands/compat/help';\nexport { initHelp } from './commands/init/help';\nexport { syncHelp } from './commands/sync/help';\nexport { compatHelp } from './commands/compat/help';\nexport { doctorHelp } from './commands/doctor/help';\nexport { historyExportHelp } from './commands/history-export/help';\nexport { historyImportHelp } from './commands/history-import/help';\nimport { createRequire } from 'node:module';\n\n// createRequire rather than a JSON import: this file runs both from src under\n// Node's strip-only TypeScript mode (how pi.sh starts it) and from dist. The\n// package self-reference resolves the same published manifest from either tree.\nconst require = createRequire(import.meta.url);\nconst PACKAGE_MANIFEST = '@agimon-ai/doompi/package.json';\n\nexport const HARNESS_VERSION = (require(PACKAGE_MANIFEST) as { version: string }).version;\n\nexport function printHelp(): void {\n process.stdout.write(`doompi\n\nUsage: doompi [harness options] [Pi options] [prompt]\n doompi init\n doompi sync [matrix options] [--check]\n doompi api-export --out <directory> [--major-mode <name>] [--strict]\n doompi compat <codex|claude|antigravity> [matrix options] [provider arguments]\n doompi history-export <v4-source> <v3-destination> [options]\n doompi history-import <v3-source> <v4-destination> --confirm-offline\n\nInitialization:\n doompi init Fill missing files in ~/.pi/.doom\n doompi sync Update packages, build, resolve, and register DoomPi\n in Pi user settings\n doompi sync --check Exit non-zero when the synced config is out of date\n or report legacy repository-local state to migrate\n\nSync artifacts live under ~/.pi/.doom/sync in a repository- and worktree-specific\nnamespace. Linked worktrees isolate state, dist, manifests, resources, and run\nfiles while sharing immutable repository build objects. A legacy <repo>/.pi/doom\nstate is read only when no global state exists; run doompi sync to migrate it.\nDoomPi never removes old or orphaned generated directories automatically.\n\nAfter a sync, run pi directly. The synced session accepts --major-mode,\n--domains, --profile, and --mute, and /mode, /domains, and /profile switch\nwithout a restart. Selection defaults come from the selection block in\n.doom/config.yaml.\n\n${COMPATIBILITY_MATRIX_OPTIONS}\nAll other compatibility arguments pass to the provider unchanged.\n\nHarness options:\n --major-mode <name> Named major mode from .doom/modes.yaml\n (default: copilot). Not --mode: Pi owns that one.\n --profile <name> Persona and env from .doom/profiles.yaml\n --domains <names> Comma-separated domains (content: plugins, skills)\n --no-domains Load no content domains\n --explain Print the resolved matrix and exit\n --emit-mcp <dir> Write the resolved MCP config to a directory and exit\n --plugin-dir <path> Load an explicit plugin directory, repeatable\n --add-dir <path> Add an accessible directory, repeatable\n --preset <name> default, kimi, or ollama\n --cwd <path> Run Pi in this directory\n --automation Use print mode, JSON output, and project approval\n --output-format vibe-lint Read a vibe-lint request from stdin and emit one JSON response\n --mute Disable the notification extension for this run\n --auto-stop Exit interactive Pi when the agent settles\n --sandbox Run the agent in the sandbox container a layer provides\n --allow-protected-writes Allow writes to protected repository paths\n --hooks, --no-hooks Enable or disable repository and plugin hooks\n --mcp, --no-mcp Enable or disable MCP configuration\n --agents, --no-agents Enable or disable spawnable agents\n -h, --help Show harness help\n -v, --version Show harness version\n\nInteractive commands:\n /loop Open the loop launcher picker\n /loops List active loops and stop future scheduling\n /effort <level> Set and persist the thinking effort\n /mode Pick a named major mode\n /domains [names] Show the selected domains or pick a different set\n /profile List or switch persona and environment profiles\n\nMinor modes are toggled from the Leader menu, not by a slash command:\n SPC p e Plan mode (repository read-only)\n SPC w e Workflow tools for the agent\n\nAll remaining options are passed to Pi.\n`);\n}\n"],"mappings":";;;;;;;AAeA,MAAa,kBAHG,cAAc,YAAY,GAGV,CAAA,CAAQ,gCAAgB,CAAC,CAAyB;AAElF,SAAgB,YAAkB;CAChC,QAAQ,OAAO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC9B;AACD"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
let node_path = require("node:path");
|
|
3
|
+
node_path = require_runtime.__toESM(node_path, 1);
|
|
4
|
+
//#region src/cli/matrixOptions.ts
|
|
5
|
+
/**
|
|
6
|
+
* Matrix selection shared by the Pi and compatibility parsers.
|
|
7
|
+
*
|
|
8
|
+
* Both frontends pick the same three axes (profile, domains, major mode) out of
|
|
9
|
+
* the same environment variables with the same defaults. They used to hold two
|
|
10
|
+
* copies of that logic, and the copies drifted: the inline `--name=value` forms
|
|
11
|
+
* and the strict value reader existed in the compatibility parser only, so
|
|
12
|
+
* `./pi.sh --profile=x` silently forwarded an unknown flag to Pi. One copy here
|
|
13
|
+
* is what keeps them honest.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* One variable per axis.
|
|
17
|
+
*
|
|
18
|
+
* These used to come in pairs, `DOOM_PI_*` for what the caller selected and
|
|
19
|
+
* `DOOMPI_*` for what the harness resolved and published, with the second
|
|
20
|
+
* outranking the first. A nested run still inherits its launcher's choice under
|
|
21
|
+
* one name, because the launcher projects into the child environment and
|
|
22
|
+
* overwrites the same key. Two names for one value only ever meant two ways to
|
|
23
|
+
* disagree.
|
|
24
|
+
*/
|
|
25
|
+
const DOOMPI_PROFILE_ENV = "DOOMPI_PROFILE";
|
|
26
|
+
const DOOMPI_DOMAINS_ENV = "DOOMPI_DOMAINS";
|
|
27
|
+
const DOOMPI_MAJOR_MODE_ENV = "DOOMPI_MAJOR_MODE";
|
|
28
|
+
const DOOMPI_ADDITIONAL_DIRECTORIES_ENV = "DOOMPI_ADDITIONAL_DIRS";
|
|
29
|
+
const DOOMPI_PRESET_ENV = "DOOMPI_PRESET";
|
|
30
|
+
/** Removed spelling of the major mode axis, reported rather than honored. */
|
|
31
|
+
const REMOVED_DOOMPI_LAYER_ENV = "DOOMPI_LAYER";
|
|
32
|
+
/**
|
|
33
|
+
* The whole retired namespace, reported rather than ignored.
|
|
34
|
+
*
|
|
35
|
+
* A prefix scan rather than a constant per variable: there were 28 of them, and
|
|
36
|
+
* a list maintained by hand is a list that misses one. A stale
|
|
37
|
+
* `export AGENT_HARNESS_MAJOR_MODE=dev` in a shell profile would otherwise
|
|
38
|
+
* silently start the session on `copilot`.
|
|
39
|
+
*/
|
|
40
|
+
const RETIRED_ENV_PREFIX = "AGENT_HARNESS_";
|
|
41
|
+
const CURRENT_ENV_PREFIX = "DOOMPI_";
|
|
42
|
+
const PROFILE_OPTION = "--profile";
|
|
43
|
+
const DOMAIN_OPTION = "--domain";
|
|
44
|
+
const DOMAINS_OPTION = "--domains";
|
|
45
|
+
/**
|
|
46
|
+
* The major mode flag.
|
|
47
|
+
*
|
|
48
|
+
* Not `--mode`: Pi owns that one for its output mode, and for a value outside
|
|
49
|
+
* `text|json|rpc` it consumes both tokens and ignores them without a
|
|
50
|
+
* diagnostic. A synced `pi --mode dev` would have failed silently.
|
|
51
|
+
*/
|
|
52
|
+
const MAJOR_MODE_OPTION = "--major-mode";
|
|
53
|
+
const ADD_DIRECTORY_OPTION = "--add-dir";
|
|
54
|
+
const REMOVED_LAYER_OPTION = "--layer";
|
|
55
|
+
const REMOVED_LAYERS_OPTION = "--layers";
|
|
56
|
+
const REMOVED_TARGET_OPTION = "--target";
|
|
57
|
+
const DEFAULT_MAJOR_MODE = "copilot";
|
|
58
|
+
const DEFAULT_DOMAIN = "default";
|
|
59
|
+
const CSV_DELIMITER = ",";
|
|
60
|
+
const OPTION_PREFIX = "--";
|
|
61
|
+
/**
|
|
62
|
+
* Reads `--name value` or `--name=value`, returning undefined for anything else.
|
|
63
|
+
*
|
|
64
|
+
* A value starting with `--` is rejected rather than consumed, so
|
|
65
|
+
* `--profile --explain` reports a missing value instead of swallowing the next
|
|
66
|
+
* flag. In compatibility mode this is also what stops the `--` provider
|
|
67
|
+
* delimiter being taken as a matrix value.
|
|
68
|
+
*/
|
|
69
|
+
function readOption(args, index, name) {
|
|
70
|
+
const arg = args[index];
|
|
71
|
+
if (arg === name) {
|
|
72
|
+
const value = args[index + 1];
|
|
73
|
+
if (!value || value.startsWith(OPTION_PREFIX)) throw new Error(`${name} requires a value`);
|
|
74
|
+
return {
|
|
75
|
+
value,
|
|
76
|
+
nextIndex: index + 1,
|
|
77
|
+
inline: false
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
const inlinePrefix = `${name}=`;
|
|
81
|
+
if (!arg.startsWith(inlinePrefix)) return void 0;
|
|
82
|
+
const value = arg.slice(inlinePrefix.length);
|
|
83
|
+
if (!value) throw new Error(`${name} requires a value`);
|
|
84
|
+
return {
|
|
85
|
+
value,
|
|
86
|
+
nextIndex: index,
|
|
87
|
+
inline: true
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/** Matches `--name` or `--name=value`, for reporting options that were removed. */
|
|
91
|
+
function matchesOption(arg, name) {
|
|
92
|
+
return arg === name || arg.startsWith(`${name}=`);
|
|
93
|
+
}
|
|
94
|
+
function parseCsv(value) {
|
|
95
|
+
return value.split(CSV_DELIMITER).map((item) => item.trim()).filter(Boolean);
|
|
96
|
+
}
|
|
97
|
+
function parseRequiredCsv(value, option) {
|
|
98
|
+
const values = parseCsv(value);
|
|
99
|
+
if (values.length === 0) throw new Error(`${option} requires a value`);
|
|
100
|
+
return values;
|
|
101
|
+
}
|
|
102
|
+
function parseMajorMode(value, source) {
|
|
103
|
+
const majorMode = value.trim();
|
|
104
|
+
if (!majorMode) throw new Error(`${source} requires a value`);
|
|
105
|
+
if (majorMode.includes(CSV_DELIMITER)) throw new Error(`${source} accepts one major mode name`);
|
|
106
|
+
return majorMode;
|
|
107
|
+
}
|
|
108
|
+
function parseProfileValue(value, source) {
|
|
109
|
+
if (value.includes(CSV_DELIMITER)) throw new Error(`${source} accepts one profile name`);
|
|
110
|
+
if (!value.trim()) throw new Error(`${source} requires a value`);
|
|
111
|
+
return value;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Reports any variable left over from the retired `AGENT_HARNESS_*` namespace.
|
|
115
|
+
*
|
|
116
|
+
* Called before anything reads the environment, so a stale export fails the
|
|
117
|
+
* session instead of being quietly outvoted by a default. Both prefixes are
|
|
118
|
+
* built from the constants above rather than written inline, because a
|
|
119
|
+
* search-and-replace over this repository is exactly what retired the old one.
|
|
120
|
+
*/
|
|
121
|
+
function assertNoRetiredEnvironment(environment) {
|
|
122
|
+
const stale = Object.keys(environment).filter((key) => key.startsWith(RETIRED_ENV_PREFIX)).sort();
|
|
123
|
+
if (stale.length === 0) return;
|
|
124
|
+
const replacements = stale.map((key) => `${key} -> ${CURRENT_ENV_PREFIX}${key.slice(14)}`);
|
|
125
|
+
throw new Error(`The ${RETIRED_ENV_PREFIX}* environment was replaced by ${CURRENT_ENV_PREFIX}*. Unset or rename: ${replacements.join(", ")}`);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* The major mode a nested run inherits from its launcher, or the default.
|
|
129
|
+
*
|
|
130
|
+
* The removed spelling throws rather than being ignored. A stale
|
|
131
|
+
* `export DOOMPI_LAYER=dev` left in a shell profile would otherwise silently
|
|
132
|
+
* select `copilot`, which is the exact confusion the rename removed.
|
|
133
|
+
*/
|
|
134
|
+
function resolveInheritedMajorMode(environment, defaultMajorMode = DEFAULT_MAJOR_MODE) {
|
|
135
|
+
assertNoRetiredEnvironment(environment);
|
|
136
|
+
if (environment["DOOMPI_LAYER"]) throw new Error(`${REMOVED_DOOMPI_LAYER_ENV} was replaced by ${DOOMPI_MAJOR_MODE_ENV}`);
|
|
137
|
+
const inherited = environment[DOOMPI_MAJOR_MODE_ENV];
|
|
138
|
+
return parseMajorMode(inherited || defaultMajorMode, inherited ? DOOMPI_MAJOR_MODE_ENV : "defaultMajorMode");
|
|
139
|
+
}
|
|
140
|
+
/** The profile a run inherits from its environment, validated once up front. */
|
|
141
|
+
function resolveInheritedProfile(environment) {
|
|
142
|
+
const inherited = environment["DOOMPI_PROFILE"] || void 0;
|
|
143
|
+
if (inherited?.includes(CSV_DELIMITER)) throw new Error(`${DOOMPI_PROFILE_ENV} accepts one profile name`);
|
|
144
|
+
return inherited;
|
|
145
|
+
}
|
|
146
|
+
/** Directories inherited from the launcher environment. */
|
|
147
|
+
function resolveAdditionalDirectories(environment, baseDirectory) {
|
|
148
|
+
return (environment["DOOMPI_ADDITIONAL_DIRS"] ?? "").split(node_path.default.delimiter).filter(Boolean).map((directory) => node_path.default.resolve(baseDirectory, directory));
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
exports.ADD_DIRECTORY_OPTION = ADD_DIRECTORY_OPTION;
|
|
152
|
+
exports.DEFAULT_DOMAIN = DEFAULT_DOMAIN;
|
|
153
|
+
exports.DEFAULT_MAJOR_MODE = DEFAULT_MAJOR_MODE;
|
|
154
|
+
exports.DOMAINS_OPTION = DOMAINS_OPTION;
|
|
155
|
+
exports.DOMAIN_OPTION = DOMAIN_OPTION;
|
|
156
|
+
exports.DOOMPI_ADDITIONAL_DIRECTORIES_ENV = DOOMPI_ADDITIONAL_DIRECTORIES_ENV;
|
|
157
|
+
exports.DOOMPI_DOMAINS_ENV = DOOMPI_DOMAINS_ENV;
|
|
158
|
+
exports.DOOMPI_MAJOR_MODE_ENV = DOOMPI_MAJOR_MODE_ENV;
|
|
159
|
+
exports.DOOMPI_PRESET_ENV = DOOMPI_PRESET_ENV;
|
|
160
|
+
exports.DOOMPI_PROFILE_ENV = DOOMPI_PROFILE_ENV;
|
|
161
|
+
exports.MAJOR_MODE_OPTION = MAJOR_MODE_OPTION;
|
|
162
|
+
exports.PROFILE_OPTION = PROFILE_OPTION;
|
|
163
|
+
exports.REMOVED_DOOMPI_LAYER_ENV = REMOVED_DOOMPI_LAYER_ENV;
|
|
164
|
+
exports.REMOVED_LAYERS_OPTION = REMOVED_LAYERS_OPTION;
|
|
165
|
+
exports.REMOVED_LAYER_OPTION = REMOVED_LAYER_OPTION;
|
|
166
|
+
exports.REMOVED_TARGET_OPTION = REMOVED_TARGET_OPTION;
|
|
167
|
+
exports.assertNoRetiredEnvironment = assertNoRetiredEnvironment;
|
|
168
|
+
exports.matchesOption = matchesOption;
|
|
169
|
+
exports.parseCsv = parseCsv;
|
|
170
|
+
exports.parseMajorMode = parseMajorMode;
|
|
171
|
+
exports.parseProfileValue = parseProfileValue;
|
|
172
|
+
exports.parseRequiredCsv = parseRequiredCsv;
|
|
173
|
+
exports.readOption = readOption;
|
|
174
|
+
exports.resolveAdditionalDirectories = resolveAdditionalDirectories;
|
|
175
|
+
exports.resolveInheritedMajorMode = resolveInheritedMajorMode;
|
|
176
|
+
exports.resolveInheritedProfile = resolveInheritedProfile;
|
|
177
|
+
|
|
178
|
+
//# sourceMappingURL=matrixOptions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matrixOptions.cjs","names":["path"],"sources":["../../src/cli/matrixOptions.ts"],"sourcesContent":["import path from 'node:path';\n\n/**\n * Matrix selection shared by the Pi and compatibility parsers.\n *\n * Both frontends pick the same three axes (profile, domains, major mode) out of\n * the same environment variables with the same defaults. They used to hold two\n * copies of that logic, and the copies drifted: the inline `--name=value` forms\n * and the strict value reader existed in the compatibility parser only, so\n * `./pi.sh --profile=x` silently forwarded an unknown flag to Pi. One copy here\n * is what keeps them honest.\n */\n\n/**\n * One variable per axis.\n *\n * These used to come in pairs, `DOOM_PI_*` for what the caller selected and\n * `DOOMPI_*` for what the harness resolved and published, with the second\n * outranking the first. A nested run still inherits its launcher's choice under\n * one name, because the launcher projects into the child environment and\n * overwrites the same key. Two names for one value only ever meant two ways to\n * disagree.\n */\nexport const DOOMPI_PROFILE_ENV = 'DOOMPI_PROFILE';\nexport const DOOMPI_DOMAINS_ENV = 'DOOMPI_DOMAINS';\nexport const DOOMPI_MAJOR_MODE_ENV = 'DOOMPI_MAJOR_MODE';\nexport const DOOMPI_ADDITIONAL_DIRECTORIES_ENV = 'DOOMPI_ADDITIONAL_DIRS';\nexport const DOOMPI_PRESET_ENV = 'DOOMPI_PRESET';\n\n/** Removed spelling of the major mode axis, reported rather than honored. */\nexport const REMOVED_DOOMPI_LAYER_ENV = 'DOOMPI_LAYER';\n\n/**\n * The whole retired namespace, reported rather than ignored.\n *\n * A prefix scan rather than a constant per variable: there were 28 of them, and\n * a list maintained by hand is a list that misses one. A stale\n * `export AGENT_HARNESS_MAJOR_MODE=dev` in a shell profile would otherwise\n * silently start the session on `copilot`.\n */\nconst RETIRED_ENV_PREFIX = 'AGENT_HARNESS_';\nconst CURRENT_ENV_PREFIX = 'DOOMPI_';\n\nexport const PROFILE_OPTION = '--profile';\nexport const DOMAIN_OPTION = '--domain';\nexport const DOMAINS_OPTION = '--domains';\n/**\n * The major mode flag.\n *\n * Not `--mode`: Pi owns that one for its output mode, and for a value outside\n * `text|json|rpc` it consumes both tokens and ignores them without a\n * diagnostic. A synced `pi --mode dev` would have failed silently.\n */\nexport const MAJOR_MODE_OPTION = '--major-mode';\nexport const ADD_DIRECTORY_OPTION = '--add-dir';\nexport const REMOVED_LAYER_OPTION = '--layer';\nexport const REMOVED_LAYERS_OPTION = '--layers';\nexport const REMOVED_TARGET_OPTION = '--target';\n\nexport const DEFAULT_MAJOR_MODE = 'copilot';\nexport const DEFAULT_DOMAIN = 'default';\n\nconst CSV_DELIMITER = ',';\nconst OPTION_PREFIX = '--';\n\nexport interface OptionMatch {\n value: string;\n /** Index of the last argument consumed, for the caller's loop cursor. */\n nextIndex: number;\n /** True for `--name=value`. Callers that re-emit an option preserve the form. */\n inline: boolean;\n}\n\n/**\n * Reads `--name value` or `--name=value`, returning undefined for anything else.\n *\n * A value starting with `--` is rejected rather than consumed, so\n * `--profile --explain` reports a missing value instead of swallowing the next\n * flag. In compatibility mode this is also what stops the `--` provider\n * delimiter being taken as a matrix value.\n */\nexport function readOption(args: string[], index: number, name: string): OptionMatch | undefined {\n // Callers walk `args` by index, so this is always in range.\n const arg = args[index]!;\n if (arg === name) {\n const value = args[index + 1];\n if (!value || value.startsWith(OPTION_PREFIX)) throw new Error(`${name} requires a value`);\n return { value, nextIndex: index + 1, inline: false };\n }\n const inlinePrefix = `${name}=`;\n if (!arg.startsWith(inlinePrefix)) return undefined;\n const value = arg.slice(inlinePrefix.length);\n if (!value) throw new Error(`${name} requires a value`);\n return { value, nextIndex: index, inline: true };\n}\n\n/** Matches `--name` or `--name=value`, for reporting options that were removed. */\nexport function matchesOption(arg: string, name: string): boolean {\n return arg === name || arg.startsWith(`${name}=`);\n}\n\nexport function parseCsv(value: string): string[] {\n return value\n .split(CSV_DELIMITER)\n .map((item) => item.trim())\n .filter(Boolean);\n}\n\nexport function parseRequiredCsv(value: string, option: string): string[] {\n const values = parseCsv(value);\n if (values.length === 0) throw new Error(`${option} requires a value`);\n return values;\n}\n\nexport function parseMajorMode(value: string, source: string): string {\n const majorMode = value.trim();\n if (!majorMode) throw new Error(`${source} requires a value`);\n if (majorMode.includes(CSV_DELIMITER)) throw new Error(`${source} accepts one major mode name`);\n return majorMode;\n}\n\nexport function parseProfileValue(value: string, source: string): string {\n if (value.includes(CSV_DELIMITER)) throw new Error(`${source} accepts one profile name`);\n if (!value.trim()) throw new Error(`${source} requires a value`);\n return value;\n}\n\n/**\n * Reports any variable left over from the retired `AGENT_HARNESS_*` namespace.\n *\n * Called before anything reads the environment, so a stale export fails the\n * session instead of being quietly outvoted by a default. Both prefixes are\n * built from the constants above rather than written inline, because a\n * search-and-replace over this repository is exactly what retired the old one.\n */\nexport function assertNoRetiredEnvironment(environment: NodeJS.ProcessEnv): void {\n const stale = Object.keys(environment)\n .filter((key) => key.startsWith(RETIRED_ENV_PREFIX))\n .sort();\n if (stale.length === 0) return;\n const replacements = stale.map((key) => `${key} -> ${CURRENT_ENV_PREFIX}${key.slice(RETIRED_ENV_PREFIX.length)}`);\n throw new Error(\n `The ${RETIRED_ENV_PREFIX}* environment was replaced by ${CURRENT_ENV_PREFIX}*. Unset or rename: ${replacements.join(', ')}`,\n );\n}\n\n/**\n * The major mode a nested run inherits from its launcher, or the default.\n *\n * The removed spelling throws rather than being ignored. A stale\n * `export DOOMPI_LAYER=dev` left in a shell profile would otherwise silently\n * select `copilot`, which is the exact confusion the rename removed.\n */\nexport function resolveInheritedMajorMode(\n environment: NodeJS.ProcessEnv,\n defaultMajorMode: string = DEFAULT_MAJOR_MODE,\n): string {\n assertNoRetiredEnvironment(environment);\n if (environment[REMOVED_DOOMPI_LAYER_ENV]) {\n throw new Error(`${REMOVED_DOOMPI_LAYER_ENV} was replaced by ${DOOMPI_MAJOR_MODE_ENV}`);\n }\n const inherited = environment[DOOMPI_MAJOR_MODE_ENV];\n return parseMajorMode(inherited || defaultMajorMode, inherited ? DOOMPI_MAJOR_MODE_ENV : 'defaultMajorMode');\n}\n\n/** The profile a run inherits from its environment, validated once up front. */\nexport function resolveInheritedProfile(environment: NodeJS.ProcessEnv): string | undefined {\n const inherited = environment[DOOMPI_PROFILE_ENV] || undefined;\n if (inherited?.includes(CSV_DELIMITER)) throw new Error(`${DOOMPI_PROFILE_ENV} accepts one profile name`);\n return inherited;\n}\n\n/** Directories inherited from the launcher environment. */\nexport function resolveAdditionalDirectories(environment: NodeJS.ProcessEnv, baseDirectory: string): string[] {\n return (environment[DOOMPI_ADDITIONAL_DIRECTORIES_ENV] ?? '')\n .split(path.delimiter)\n .filter(Boolean)\n .map((directory) => path.resolve(baseDirectory, directory));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAa,qBAAqB;AAClC,MAAa,qBAAqB;AAClC,MAAa,wBAAwB;AACrC,MAAa,oCAAoC;AACjD,MAAa,oBAAoB;;AAGjC,MAAa,2BAA2B;;;;;;;;;AAUxC,MAAM,qBAAqB;AAC3B,MAAM,qBAAqB;AAE3B,MAAa,iBAAiB;AAC9B,MAAa,gBAAgB;AAC7B,MAAa,iBAAiB;;;;;;;;AAQ9B,MAAa,oBAAoB;AACjC,MAAa,uBAAuB;AACpC,MAAa,uBAAuB;AACpC,MAAa,wBAAwB;AACrC,MAAa,wBAAwB;AAErC,MAAa,qBAAqB;AAClC,MAAa,iBAAiB;AAE9B,MAAM,gBAAgB;AACtB,MAAM,gBAAgB;;;;;;;;;AAkBtB,SAAgB,WAAW,MAAgB,OAAe,MAAuC;CAE/F,MAAM,MAAM,KAAK;CACjB,IAAI,QAAQ,MAAM;EAChB,MAAM,QAAQ,KAAK,QAAQ;EAC3B,IAAI,CAAC,SAAS,MAAM,WAAW,aAAa,GAAG,MAAM,IAAI,MAAM,GAAG,KAAK,kBAAkB;EACzF,OAAO;GAAE;GAAO,WAAW,QAAQ;GAAG,QAAQ;EAAM;CACtD;CACA,MAAM,eAAe,GAAG,KAAK;CAC7B,IAAI,CAAC,IAAI,WAAW,YAAY,GAAG,OAAO,KAAA;CAC1C,MAAM,QAAQ,IAAI,MAAM,aAAa,MAAM;CAC3C,IAAI,CAAC,OAAO,MAAM,IAAI,MAAM,GAAG,KAAK,kBAAkB;CACtD,OAAO;EAAE;EAAO,WAAW;EAAO,QAAQ;CAAK;AACjD;;AAGA,SAAgB,cAAc,KAAa,MAAuB;CAChE,OAAO,QAAQ,QAAQ,IAAI,WAAW,GAAG,KAAK,EAAE;AAClD;AAEA,SAAgB,SAAS,OAAyB;CAChD,OAAO,MACJ,MAAM,aAAa,CAAC,CACpB,KAAK,SAAS,KAAK,KAAK,CAAC,CAAC,CAC1B,OAAO,OAAO;AACnB;AAEA,SAAgB,iBAAiB,OAAe,QAA0B;CACxE,MAAM,SAAS,SAAS,KAAK;CAC7B,IAAI,OAAO,WAAW,GAAG,MAAM,IAAI,MAAM,GAAG,OAAO,kBAAkB;CACrE,OAAO;AACT;AAEA,SAAgB,eAAe,OAAe,QAAwB;CACpE,MAAM,YAAY,MAAM,KAAK;CAC7B,IAAI,CAAC,WAAW,MAAM,IAAI,MAAM,GAAG,OAAO,kBAAkB;CAC5D,IAAI,UAAU,SAAS,aAAa,GAAG,MAAM,IAAI,MAAM,GAAG,OAAO,6BAA6B;CAC9F,OAAO;AACT;AAEA,SAAgB,kBAAkB,OAAe,QAAwB;CACvE,IAAI,MAAM,SAAS,aAAa,GAAG,MAAM,IAAI,MAAM,GAAG,OAAO,0BAA0B;CACvF,IAAI,CAAC,MAAM,KAAK,GAAG,MAAM,IAAI,MAAM,GAAG,OAAO,kBAAkB;CAC/D,OAAO;AACT;;;;;;;;;AAUA,SAAgB,2BAA2B,aAAsC;CAC/E,MAAM,QAAQ,OAAO,KAAK,WAAW,CAAC,CACnC,QAAQ,QAAQ,IAAI,WAAW,kBAAkB,CAAC,CAAC,CACnD,KAAK;CACR,IAAI,MAAM,WAAW,GAAG;CACxB,MAAM,eAAe,MAAM,KAAK,QAAQ,GAAG,IAAI,MAAM,qBAAqB,IAAI,MAAM,EAAyB,GAAG;CAChH,MAAM,IAAI,MACR,OAAO,mBAAmB,gCAAgC,mBAAmB,sBAAsB,aAAa,KAAK,IAAI,GAC3H;AACF;;;;;;;;AASA,SAAgB,0BACd,aACA,mBAA2B,oBACnB;CACR,2BAA2B,WAAW;CACtC,IAAI,YAAA,iBACF,MAAM,IAAI,MAAM,GAAG,yBAAyB,mBAAmB,uBAAuB;CAExF,MAAM,YAAY,YAAY;CAC9B,OAAO,eAAe,aAAa,kBAAkB,YAAY,wBAAwB,kBAAkB;AAC7G;;AAGA,SAAgB,wBAAwB,aAAoD;CAC1F,MAAM,YAAY,YAAA,qBAAmC,KAAA;CACrD,IAAI,WAAW,SAAS,aAAa,GAAG,MAAM,IAAI,MAAM,GAAG,mBAAmB,0BAA0B;CACxG,OAAO;AACT;;AAGA,SAAgB,6BAA6B,aAAgC,eAAiC;CAC5G,QAAQ,YAAA,6BAAkD,GAAA,CACvD,MAAMA,UAAAA,QAAK,SAAS,CAAC,CACrB,OAAO,OAAO,CAAC,CACf,KAAK,cAAcA,UAAAA,QAAK,QAAQ,eAAe,SAAS,CAAC;AAC9D"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
//#region src/cli/matrixOptions.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Matrix selection shared by the Pi and compatibility parsers.
|
|
4
|
+
*
|
|
5
|
+
* Both frontends pick the same three axes (profile, domains, major mode) out of
|
|
6
|
+
* the same environment variables with the same defaults. They used to hold two
|
|
7
|
+
* copies of that logic, and the copies drifted: the inline `--name=value` forms
|
|
8
|
+
* and the strict value reader existed in the compatibility parser only, so
|
|
9
|
+
* `./pi.sh --profile=x` silently forwarded an unknown flag to Pi. One copy here
|
|
10
|
+
* is what keeps them honest.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* One variable per axis.
|
|
14
|
+
*
|
|
15
|
+
* These used to come in pairs, `DOOM_PI_*` for what the caller selected and
|
|
16
|
+
* `DOOMPI_*` for what the harness resolved and published, with the second
|
|
17
|
+
* outranking the first. A nested run still inherits its launcher's choice under
|
|
18
|
+
* one name, because the launcher projects into the child environment and
|
|
19
|
+
* overwrites the same key. Two names for one value only ever meant two ways to
|
|
20
|
+
* disagree.
|
|
21
|
+
*/
|
|
22
|
+
export declare const DOOMPI_PROFILE_ENV = "DOOMPI_PROFILE";
|
|
23
|
+
export declare const DOOMPI_DOMAINS_ENV = "DOOMPI_DOMAINS";
|
|
24
|
+
export declare const DOOMPI_MAJOR_MODE_ENV = "DOOMPI_MAJOR_MODE";
|
|
25
|
+
export declare const DOOMPI_ADDITIONAL_DIRECTORIES_ENV = "DOOMPI_ADDITIONAL_DIRS";
|
|
26
|
+
export declare const DOOMPI_PRESET_ENV = "DOOMPI_PRESET";
|
|
27
|
+
/** Removed spelling of the major mode axis, reported rather than honored. */
|
|
28
|
+
export declare const REMOVED_DOOMPI_LAYER_ENV = "DOOMPI_LAYER";
|
|
29
|
+
export declare const PROFILE_OPTION = "--profile";
|
|
30
|
+
export declare const DOMAIN_OPTION = "--domain";
|
|
31
|
+
export declare const DOMAINS_OPTION = "--domains";
|
|
32
|
+
/**
|
|
33
|
+
* The major mode flag.
|
|
34
|
+
*
|
|
35
|
+
* Not `--mode`: Pi owns that one for its output mode, and for a value outside
|
|
36
|
+
* `text|json|rpc` it consumes both tokens and ignores them without a
|
|
37
|
+
* diagnostic. A synced `pi --mode dev` would have failed silently.
|
|
38
|
+
*/
|
|
39
|
+
export declare const MAJOR_MODE_OPTION = "--major-mode";
|
|
40
|
+
export declare const ADD_DIRECTORY_OPTION = "--add-dir";
|
|
41
|
+
export declare const REMOVED_LAYER_OPTION = "--layer";
|
|
42
|
+
export declare const REMOVED_LAYERS_OPTION = "--layers";
|
|
43
|
+
export declare const REMOVED_TARGET_OPTION = "--target";
|
|
44
|
+
export declare const DEFAULT_MAJOR_MODE = "copilot";
|
|
45
|
+
export declare const DEFAULT_DOMAIN = "default";
|
|
46
|
+
export interface OptionMatch {
|
|
47
|
+
value: string;
|
|
48
|
+
/** Index of the last argument consumed, for the caller's loop cursor. */
|
|
49
|
+
nextIndex: number;
|
|
50
|
+
/** True for `--name=value`. Callers that re-emit an option preserve the form. */
|
|
51
|
+
inline: boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Reads `--name value` or `--name=value`, returning undefined for anything else.
|
|
55
|
+
*
|
|
56
|
+
* A value starting with `--` is rejected rather than consumed, so
|
|
57
|
+
* `--profile --explain` reports a missing value instead of swallowing the next
|
|
58
|
+
* flag. In compatibility mode this is also what stops the `--` provider
|
|
59
|
+
* delimiter being taken as a matrix value.
|
|
60
|
+
*/
|
|
61
|
+
export declare function readOption(args: string[], index: number, name: string): OptionMatch | undefined;
|
|
62
|
+
/** Matches `--name` or `--name=value`, for reporting options that were removed. */
|
|
63
|
+
export declare function matchesOption(arg: string, name: string): boolean;
|
|
64
|
+
export declare function parseCsv(value: string): string[];
|
|
65
|
+
export declare function parseRequiredCsv(value: string, option: string): string[];
|
|
66
|
+
export declare function parseMajorMode(value: string, source: string): string;
|
|
67
|
+
export declare function parseProfileValue(value: string, source: string): string;
|
|
68
|
+
/**
|
|
69
|
+
* Reports any variable left over from the retired `AGENT_HARNESS_*` namespace.
|
|
70
|
+
*
|
|
71
|
+
* Called before anything reads the environment, so a stale export fails the
|
|
72
|
+
* session instead of being quietly outvoted by a default. Both prefixes are
|
|
73
|
+
* built from the constants above rather than written inline, because a
|
|
74
|
+
* search-and-replace over this repository is exactly what retired the old one.
|
|
75
|
+
*/
|
|
76
|
+
export declare function assertNoRetiredEnvironment(environment: NodeJS.ProcessEnv): void;
|
|
77
|
+
/**
|
|
78
|
+
* The major mode a nested run inherits from its launcher, or the default.
|
|
79
|
+
*
|
|
80
|
+
* The removed spelling throws rather than being ignored. A stale
|
|
81
|
+
* `export DOOMPI_LAYER=dev` left in a shell profile would otherwise silently
|
|
82
|
+
* select `copilot`, which is the exact confusion the rename removed.
|
|
83
|
+
*/
|
|
84
|
+
export declare function resolveInheritedMajorMode(environment: NodeJS.ProcessEnv, defaultMajorMode?: string): string;
|
|
85
|
+
/** The profile a run inherits from its environment, validated once up front. */
|
|
86
|
+
export declare function resolveInheritedProfile(environment: NodeJS.ProcessEnv): string | undefined;
|
|
87
|
+
/** Directories inherited from the launcher environment. */
|
|
88
|
+
export declare function resolveAdditionalDirectories(environment: NodeJS.ProcessEnv, baseDirectory: string): string[];
|
|
89
|
+
//#endregion
|
|
90
|
+
//# sourceMappingURL=matrixOptions.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matrixOptions.d.cts","names":[],"sources":["../../src/cli/matrixOptions.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;qBAuBa;qBACA;qBACA;qBACA;qBACA;;qBAGA;qBAaA;qBACA;qBACA;;;;;;;;qBAQA;qBACA;qBACA;qBACA;qBACA;qBAEA;qBACA;iBAKI;EACf;;EAEA;;EAEA;;;;;;;;;;wBAWc,WAAW,gBAAgB,eAAe,eAAe;;wBAgBzD,cAAc,aAAa;wBAI3B,SAAS;wBAOT,iBAAiB,eAAe;wBAMhC,eAAe,eAAe;wBAO9B,kBAAkB,eAAe;;;;;;;;;wBAcjC,2BAA2B,aAAa,OAAO;;;;;;;;wBAkB/C,0BACd,aAAa,OAAO,YACpB;;wBAWc,wBAAwB,aAAa,OAAO;;wBAO5C,6BAA6B,aAAa,OAAO,YAAY"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
//#region src/cli/matrixOptions.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Matrix selection shared by the Pi and compatibility parsers.
|
|
4
|
+
*
|
|
5
|
+
* Both frontends pick the same three axes (profile, domains, major mode) out of
|
|
6
|
+
* the same environment variables with the same defaults. They used to hold two
|
|
7
|
+
* copies of that logic, and the copies drifted: the inline `--name=value` forms
|
|
8
|
+
* and the strict value reader existed in the compatibility parser only, so
|
|
9
|
+
* `./pi.sh --profile=x` silently forwarded an unknown flag to Pi. One copy here
|
|
10
|
+
* is what keeps them honest.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* One variable per axis.
|
|
14
|
+
*
|
|
15
|
+
* These used to come in pairs, `DOOM_PI_*` for what the caller selected and
|
|
16
|
+
* `DOOMPI_*` for what the harness resolved and published, with the second
|
|
17
|
+
* outranking the first. A nested run still inherits its launcher's choice under
|
|
18
|
+
* one name, because the launcher projects into the child environment and
|
|
19
|
+
* overwrites the same key. Two names for one value only ever meant two ways to
|
|
20
|
+
* disagree.
|
|
21
|
+
*/
|
|
22
|
+
export declare const DOOMPI_PROFILE_ENV = "DOOMPI_PROFILE";
|
|
23
|
+
export declare const DOOMPI_DOMAINS_ENV = "DOOMPI_DOMAINS";
|
|
24
|
+
export declare const DOOMPI_MAJOR_MODE_ENV = "DOOMPI_MAJOR_MODE";
|
|
25
|
+
export declare const DOOMPI_ADDITIONAL_DIRECTORIES_ENV = "DOOMPI_ADDITIONAL_DIRS";
|
|
26
|
+
export declare const DOOMPI_PRESET_ENV = "DOOMPI_PRESET";
|
|
27
|
+
/** Removed spelling of the major mode axis, reported rather than honored. */
|
|
28
|
+
export declare const REMOVED_DOOMPI_LAYER_ENV = "DOOMPI_LAYER";
|
|
29
|
+
export declare const PROFILE_OPTION = "--profile";
|
|
30
|
+
export declare const DOMAIN_OPTION = "--domain";
|
|
31
|
+
export declare const DOMAINS_OPTION = "--domains";
|
|
32
|
+
/**
|
|
33
|
+
* The major mode flag.
|
|
34
|
+
*
|
|
35
|
+
* Not `--mode`: Pi owns that one for its output mode, and for a value outside
|
|
36
|
+
* `text|json|rpc` it consumes both tokens and ignores them without a
|
|
37
|
+
* diagnostic. A synced `pi --mode dev` would have failed silently.
|
|
38
|
+
*/
|
|
39
|
+
export declare const MAJOR_MODE_OPTION = "--major-mode";
|
|
40
|
+
export declare const ADD_DIRECTORY_OPTION = "--add-dir";
|
|
41
|
+
export declare const REMOVED_LAYER_OPTION = "--layer";
|
|
42
|
+
export declare const REMOVED_LAYERS_OPTION = "--layers";
|
|
43
|
+
export declare const REMOVED_TARGET_OPTION = "--target";
|
|
44
|
+
export declare const DEFAULT_MAJOR_MODE = "copilot";
|
|
45
|
+
export declare const DEFAULT_DOMAIN = "default";
|
|
46
|
+
export interface OptionMatch {
|
|
47
|
+
value: string;
|
|
48
|
+
/** Index of the last argument consumed, for the caller's loop cursor. */
|
|
49
|
+
nextIndex: number;
|
|
50
|
+
/** True for `--name=value`. Callers that re-emit an option preserve the form. */
|
|
51
|
+
inline: boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Reads `--name value` or `--name=value`, returning undefined for anything else.
|
|
55
|
+
*
|
|
56
|
+
* A value starting with `--` is rejected rather than consumed, so
|
|
57
|
+
* `--profile --explain` reports a missing value instead of swallowing the next
|
|
58
|
+
* flag. In compatibility mode this is also what stops the `--` provider
|
|
59
|
+
* delimiter being taken as a matrix value.
|
|
60
|
+
*/
|
|
61
|
+
export declare function readOption(args: string[], index: number, name: string): OptionMatch | undefined;
|
|
62
|
+
/** Matches `--name` or `--name=value`, for reporting options that were removed. */
|
|
63
|
+
export declare function matchesOption(arg: string, name: string): boolean;
|
|
64
|
+
export declare function parseCsv(value: string): string[];
|
|
65
|
+
export declare function parseRequiredCsv(value: string, option: string): string[];
|
|
66
|
+
export declare function parseMajorMode(value: string, source: string): string;
|
|
67
|
+
export declare function parseProfileValue(value: string, source: string): string;
|
|
68
|
+
/**
|
|
69
|
+
* Reports any variable left over from the retired `AGENT_HARNESS_*` namespace.
|
|
70
|
+
*
|
|
71
|
+
* Called before anything reads the environment, so a stale export fails the
|
|
72
|
+
* session instead of being quietly outvoted by a default. Both prefixes are
|
|
73
|
+
* built from the constants above rather than written inline, because a
|
|
74
|
+
* search-and-replace over this repository is exactly what retired the old one.
|
|
75
|
+
*/
|
|
76
|
+
export declare function assertNoRetiredEnvironment(environment: NodeJS.ProcessEnv): void;
|
|
77
|
+
/**
|
|
78
|
+
* The major mode a nested run inherits from its launcher, or the default.
|
|
79
|
+
*
|
|
80
|
+
* The removed spelling throws rather than being ignored. A stale
|
|
81
|
+
* `export DOOMPI_LAYER=dev` left in a shell profile would otherwise silently
|
|
82
|
+
* select `copilot`, which is the exact confusion the rename removed.
|
|
83
|
+
*/
|
|
84
|
+
export declare function resolveInheritedMajorMode(environment: NodeJS.ProcessEnv, defaultMajorMode?: string): string;
|
|
85
|
+
/** The profile a run inherits from its environment, validated once up front. */
|
|
86
|
+
export declare function resolveInheritedProfile(environment: NodeJS.ProcessEnv): string | undefined;
|
|
87
|
+
/** Directories inherited from the launcher environment. */
|
|
88
|
+
export declare function resolveAdditionalDirectories(environment: NodeJS.ProcessEnv, baseDirectory: string): string[];
|
|
89
|
+
//#endregion
|
|
90
|
+
//# sourceMappingURL=matrixOptions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matrixOptions.d.mts","names":[],"sources":["../../src/cli/matrixOptions.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;qBAuBa;qBACA;qBACA;qBACA;qBACA;;qBAGA;qBAaA;qBACA;qBACA;;;;;;;;qBAQA;qBACA;qBACA;qBACA;qBACA;qBAEA;qBACA;iBAKI;EACf;;EAEA;;EAEA;;;;;;;;;;wBAWc,WAAW,gBAAgB,eAAe,eAAe;;wBAgBzD,cAAc,aAAa;wBAI3B,SAAS;wBAOT,iBAAiB,eAAe;wBAMhC,eAAe,eAAe;wBAO9B,kBAAkB,eAAe;;;;;;;;;wBAcjC,2BAA2B,aAAa,OAAO;;;;;;;;wBAkB/C,0BACd,aAAa,OAAO,YACpB;;wBAWc,wBAAwB,aAAa,OAAO;;wBAO5C,6BAA6B,aAAa,OAAO,YAAY"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
//#region src/cli/matrixOptions.ts
|
|
3
|
+
/**
|
|
4
|
+
* Matrix selection shared by the Pi and compatibility parsers.
|
|
5
|
+
*
|
|
6
|
+
* Both frontends pick the same three axes (profile, domains, major mode) out of
|
|
7
|
+
* the same environment variables with the same defaults. They used to hold two
|
|
8
|
+
* copies of that logic, and the copies drifted: the inline `--name=value` forms
|
|
9
|
+
* and the strict value reader existed in the compatibility parser only, so
|
|
10
|
+
* `./pi.sh --profile=x` silently forwarded an unknown flag to Pi. One copy here
|
|
11
|
+
* is what keeps them honest.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* One variable per axis.
|
|
15
|
+
*
|
|
16
|
+
* These used to come in pairs, `DOOM_PI_*` for what the caller selected and
|
|
17
|
+
* `DOOMPI_*` for what the harness resolved and published, with the second
|
|
18
|
+
* outranking the first. A nested run still inherits its launcher's choice under
|
|
19
|
+
* one name, because the launcher projects into the child environment and
|
|
20
|
+
* overwrites the same key. Two names for one value only ever meant two ways to
|
|
21
|
+
* disagree.
|
|
22
|
+
*/
|
|
23
|
+
const DOOMPI_PROFILE_ENV = "DOOMPI_PROFILE";
|
|
24
|
+
const DOOMPI_DOMAINS_ENV = "DOOMPI_DOMAINS";
|
|
25
|
+
const DOOMPI_MAJOR_MODE_ENV = "DOOMPI_MAJOR_MODE";
|
|
26
|
+
const DOOMPI_ADDITIONAL_DIRECTORIES_ENV = "DOOMPI_ADDITIONAL_DIRS";
|
|
27
|
+
const DOOMPI_PRESET_ENV = "DOOMPI_PRESET";
|
|
28
|
+
/** Removed spelling of the major mode axis, reported rather than honored. */
|
|
29
|
+
const REMOVED_DOOMPI_LAYER_ENV = "DOOMPI_LAYER";
|
|
30
|
+
/**
|
|
31
|
+
* The whole retired namespace, reported rather than ignored.
|
|
32
|
+
*
|
|
33
|
+
* A prefix scan rather than a constant per variable: there were 28 of them, and
|
|
34
|
+
* a list maintained by hand is a list that misses one. A stale
|
|
35
|
+
* `export AGENT_HARNESS_MAJOR_MODE=dev` in a shell profile would otherwise
|
|
36
|
+
* silently start the session on `copilot`.
|
|
37
|
+
*/
|
|
38
|
+
const RETIRED_ENV_PREFIX = "AGENT_HARNESS_";
|
|
39
|
+
const CURRENT_ENV_PREFIX = "DOOMPI_";
|
|
40
|
+
const PROFILE_OPTION = "--profile";
|
|
41
|
+
const DOMAIN_OPTION = "--domain";
|
|
42
|
+
const DOMAINS_OPTION = "--domains";
|
|
43
|
+
/**
|
|
44
|
+
* The major mode flag.
|
|
45
|
+
*
|
|
46
|
+
* Not `--mode`: Pi owns that one for its output mode, and for a value outside
|
|
47
|
+
* `text|json|rpc` it consumes both tokens and ignores them without a
|
|
48
|
+
* diagnostic. A synced `pi --mode dev` would have failed silently.
|
|
49
|
+
*/
|
|
50
|
+
const MAJOR_MODE_OPTION = "--major-mode";
|
|
51
|
+
const ADD_DIRECTORY_OPTION = "--add-dir";
|
|
52
|
+
const REMOVED_LAYER_OPTION = "--layer";
|
|
53
|
+
const REMOVED_LAYERS_OPTION = "--layers";
|
|
54
|
+
const REMOVED_TARGET_OPTION = "--target";
|
|
55
|
+
const DEFAULT_MAJOR_MODE = "copilot";
|
|
56
|
+
const DEFAULT_DOMAIN = "default";
|
|
57
|
+
const CSV_DELIMITER = ",";
|
|
58
|
+
const OPTION_PREFIX = "--";
|
|
59
|
+
/**
|
|
60
|
+
* Reads `--name value` or `--name=value`, returning undefined for anything else.
|
|
61
|
+
*
|
|
62
|
+
* A value starting with `--` is rejected rather than consumed, so
|
|
63
|
+
* `--profile --explain` reports a missing value instead of swallowing the next
|
|
64
|
+
* flag. In compatibility mode this is also what stops the `--` provider
|
|
65
|
+
* delimiter being taken as a matrix value.
|
|
66
|
+
*/
|
|
67
|
+
function readOption(args, index, name) {
|
|
68
|
+
const arg = args[index];
|
|
69
|
+
if (arg === name) {
|
|
70
|
+
const value = args[index + 1];
|
|
71
|
+
if (!value || value.startsWith(OPTION_PREFIX)) throw new Error(`${name} requires a value`);
|
|
72
|
+
return {
|
|
73
|
+
value,
|
|
74
|
+
nextIndex: index + 1,
|
|
75
|
+
inline: false
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
const inlinePrefix = `${name}=`;
|
|
79
|
+
if (!arg.startsWith(inlinePrefix)) return void 0;
|
|
80
|
+
const value = arg.slice(inlinePrefix.length);
|
|
81
|
+
if (!value) throw new Error(`${name} requires a value`);
|
|
82
|
+
return {
|
|
83
|
+
value,
|
|
84
|
+
nextIndex: index,
|
|
85
|
+
inline: true
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/** Matches `--name` or `--name=value`, for reporting options that were removed. */
|
|
89
|
+
function matchesOption(arg, name) {
|
|
90
|
+
return arg === name || arg.startsWith(`${name}=`);
|
|
91
|
+
}
|
|
92
|
+
function parseCsv(value) {
|
|
93
|
+
return value.split(CSV_DELIMITER).map((item) => item.trim()).filter(Boolean);
|
|
94
|
+
}
|
|
95
|
+
function parseRequiredCsv(value, option) {
|
|
96
|
+
const values = parseCsv(value);
|
|
97
|
+
if (values.length === 0) throw new Error(`${option} requires a value`);
|
|
98
|
+
return values;
|
|
99
|
+
}
|
|
100
|
+
function parseMajorMode(value, source) {
|
|
101
|
+
const majorMode = value.trim();
|
|
102
|
+
if (!majorMode) throw new Error(`${source} requires a value`);
|
|
103
|
+
if (majorMode.includes(CSV_DELIMITER)) throw new Error(`${source} accepts one major mode name`);
|
|
104
|
+
return majorMode;
|
|
105
|
+
}
|
|
106
|
+
function parseProfileValue(value, source) {
|
|
107
|
+
if (value.includes(CSV_DELIMITER)) throw new Error(`${source} accepts one profile name`);
|
|
108
|
+
if (!value.trim()) throw new Error(`${source} requires a value`);
|
|
109
|
+
return value;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Reports any variable left over from the retired `AGENT_HARNESS_*` namespace.
|
|
113
|
+
*
|
|
114
|
+
* Called before anything reads the environment, so a stale export fails the
|
|
115
|
+
* session instead of being quietly outvoted by a default. Both prefixes are
|
|
116
|
+
* built from the constants above rather than written inline, because a
|
|
117
|
+
* search-and-replace over this repository is exactly what retired the old one.
|
|
118
|
+
*/
|
|
119
|
+
function assertNoRetiredEnvironment(environment) {
|
|
120
|
+
const stale = Object.keys(environment).filter((key) => key.startsWith(RETIRED_ENV_PREFIX)).sort();
|
|
121
|
+
if (stale.length === 0) return;
|
|
122
|
+
const replacements = stale.map((key) => `${key} -> ${CURRENT_ENV_PREFIX}${key.slice(14)}`);
|
|
123
|
+
throw new Error(`The ${RETIRED_ENV_PREFIX}* environment was replaced by ${CURRENT_ENV_PREFIX}*. Unset or rename: ${replacements.join(", ")}`);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The major mode a nested run inherits from its launcher, or the default.
|
|
127
|
+
*
|
|
128
|
+
* The removed spelling throws rather than being ignored. A stale
|
|
129
|
+
* `export DOOMPI_LAYER=dev` left in a shell profile would otherwise silently
|
|
130
|
+
* select `copilot`, which is the exact confusion the rename removed.
|
|
131
|
+
*/
|
|
132
|
+
function resolveInheritedMajorMode(environment, defaultMajorMode = DEFAULT_MAJOR_MODE) {
|
|
133
|
+
assertNoRetiredEnvironment(environment);
|
|
134
|
+
if (environment["DOOMPI_LAYER"]) throw new Error(`${REMOVED_DOOMPI_LAYER_ENV} was replaced by ${DOOMPI_MAJOR_MODE_ENV}`);
|
|
135
|
+
const inherited = environment[DOOMPI_MAJOR_MODE_ENV];
|
|
136
|
+
return parseMajorMode(inherited || defaultMajorMode, inherited ? DOOMPI_MAJOR_MODE_ENV : "defaultMajorMode");
|
|
137
|
+
}
|
|
138
|
+
/** The profile a run inherits from its environment, validated once up front. */
|
|
139
|
+
function resolveInheritedProfile(environment) {
|
|
140
|
+
const inherited = environment["DOOMPI_PROFILE"] || void 0;
|
|
141
|
+
if (inherited?.includes(CSV_DELIMITER)) throw new Error(`${DOOMPI_PROFILE_ENV} accepts one profile name`);
|
|
142
|
+
return inherited;
|
|
143
|
+
}
|
|
144
|
+
/** Directories inherited from the launcher environment. */
|
|
145
|
+
function resolveAdditionalDirectories(environment, baseDirectory) {
|
|
146
|
+
return (environment["DOOMPI_ADDITIONAL_DIRS"] ?? "").split(path.delimiter).filter(Boolean).map((directory) => path.resolve(baseDirectory, directory));
|
|
147
|
+
}
|
|
148
|
+
//#endregion
|
|
149
|
+
export { ADD_DIRECTORY_OPTION, DEFAULT_DOMAIN, DEFAULT_MAJOR_MODE, DOMAINS_OPTION, DOMAIN_OPTION, DOOMPI_ADDITIONAL_DIRECTORIES_ENV, DOOMPI_DOMAINS_ENV, DOOMPI_MAJOR_MODE_ENV, DOOMPI_PRESET_ENV, DOOMPI_PROFILE_ENV, MAJOR_MODE_OPTION, PROFILE_OPTION, REMOVED_DOOMPI_LAYER_ENV, REMOVED_LAYERS_OPTION, REMOVED_LAYER_OPTION, REMOVED_TARGET_OPTION, assertNoRetiredEnvironment, matchesOption, parseCsv, parseMajorMode, parseProfileValue, parseRequiredCsv, readOption, resolveAdditionalDirectories, resolveInheritedMajorMode, resolveInheritedProfile };
|
|
150
|
+
|
|
151
|
+
//# sourceMappingURL=matrixOptions.mjs.map
|