@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,78 @@
|
|
|
1
|
+
const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_help = require("./help.cjs");
|
|
3
|
+
const require_router = require("../../router.cjs");
|
|
4
|
+
let node_fs = require("node:fs");
|
|
5
|
+
node_fs = require_runtime.__toESM(node_fs, 1);
|
|
6
|
+
let node_path = require("node:path");
|
|
7
|
+
node_path = require_runtime.__toESM(node_path, 1);
|
|
8
|
+
let _agimon_ai_doompi_core_history_ownership = require("@agimon-ai/doompi-core/history-ownership");
|
|
9
|
+
let _agimon_ai_doompi_core_history_import = require("@agimon-ai/doompi-core/history-import");
|
|
10
|
+
let _agimon_ai_doompi_core_jsonl_session_repo = require("@agimon-ai/doompi-core/jsonl-session-repo");
|
|
11
|
+
let _agimon_ai_doompi_core_sqlite_history_import = require("@agimon-ai/doompi-core/sqlite-history-import");
|
|
12
|
+
//#region src/cli/commands/history-import/index.ts
|
|
13
|
+
function parsePaths(args, currentDirectory) {
|
|
14
|
+
const positional = [];
|
|
15
|
+
let confirmed = false;
|
|
16
|
+
let format = "jsonl";
|
|
17
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
18
|
+
const argument = args[index];
|
|
19
|
+
if (argument === "--format") {
|
|
20
|
+
if (format === "sqlite") throw new Error("--format was specified more than once");
|
|
21
|
+
const next = args[++index];
|
|
22
|
+
if (next !== "sqlite") throw new Error("history-import --format supports sqlite");
|
|
23
|
+
format = next;
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
if (argument === "--") throw new Error("doompi history-import does not accept passthrough arguments");
|
|
27
|
+
if (argument === "--confirm-offline") {
|
|
28
|
+
if (confirmed) throw new Error("--confirm-offline was specified more than once");
|
|
29
|
+
confirmed = true;
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
if (argument.startsWith("-")) throw new Error(`doompi history-import does not accept ${argument}`);
|
|
33
|
+
positional.push(argument);
|
|
34
|
+
}
|
|
35
|
+
if (!confirmed) throw new Error("doompi history-import requires --confirm-offline after stopping Pi");
|
|
36
|
+
if (positional.length !== 2) throw new Error("doompi history-import requires a v3 source and distinct v4 destination");
|
|
37
|
+
const sourcePath = node_path.default.resolve(currentDirectory, positional[0]);
|
|
38
|
+
const destinationPath = node_path.default.resolve(currentDirectory, positional[1]);
|
|
39
|
+
if (sourcePath === destinationPath) throw new Error("Protected history destination must differ from source");
|
|
40
|
+
return {
|
|
41
|
+
sourcePath,
|
|
42
|
+
destinationPath,
|
|
43
|
+
format
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/** Imports one explicitly confirmed v3 journal without starting Pi or the harness. */
|
|
47
|
+
async function runHistoryImport(args, _environment = process.env, currentDirectory = process.cwd(), output = process.stdout, owner) {
|
|
48
|
+
if (require_router.wantsHelp(args.slice(1))) {
|
|
49
|
+
output.write(require_help.historyImportHelp());
|
|
50
|
+
return 0;
|
|
51
|
+
}
|
|
52
|
+
const paths = parsePaths(args.slice(1), currentDirectory);
|
|
53
|
+
const header = paths.format === "sqlite" ? JSON.parse(node_fs.default.readFileSync(paths.sourcePath, "utf8").split("\n", 1)[0]) : void 0;
|
|
54
|
+
const result = await (0, _agimon_ai_doompi_core_history_import.protectAndImportHistory)({
|
|
55
|
+
sourcePath: paths.sourcePath,
|
|
56
|
+
destinationPath: paths.destinationPath,
|
|
57
|
+
owner: owner ?? (0, _agimon_ai_doompi_core_history_ownership.createHistoryOwnership)({
|
|
58
|
+
sourceFormat: header?.v === 4 ? "v4" : "v3",
|
|
59
|
+
additionalPaths: [paths.destinationPath]
|
|
60
|
+
}),
|
|
61
|
+
importStaging: paths.format === "sqlite" ? _agimon_ai_doompi_core_sqlite_history_import.importSqliteHistory : _agimon_ai_doompi_core_jsonl_session_repo.importV3WithPinnedUpstream,
|
|
62
|
+
...paths.format === "sqlite" ? { verifyStaging: _agimon_ai_doompi_core_sqlite_history_import.verifySqliteHistory } : {}
|
|
63
|
+
});
|
|
64
|
+
output.write(`${JSON.stringify({
|
|
65
|
+
status: result.status,
|
|
66
|
+
sourcePath: result.sourceIdentity.path,
|
|
67
|
+
originalPath: result.originalPath,
|
|
68
|
+
destinationPath: result.destinationPath,
|
|
69
|
+
statePath: result.statePath,
|
|
70
|
+
entryCount: result.verification.entries.length,
|
|
71
|
+
branchCount: result.verification.branches.length
|
|
72
|
+
})}\n`);
|
|
73
|
+
return 0;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
exports.runHistoryImport = runHistoryImport;
|
|
77
|
+
|
|
78
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["path","wantsHelp","historyImportHelp","fs","protectAndImportHistory","createHistoryOwnership","importSqliteHistory","importV3WithPinnedUpstream","verifySqliteHistory"],"sources":["../../../../src/cli/commands/history-import/index.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\n\nimport { protectAndImportHistory, type HistoryOwnership } from '@agimon-ai/doompi-core/history-import';\nimport { createHistoryOwnership } from '@agimon-ai/doompi-core/history-ownership';\nimport { importV3WithPinnedUpstream } from '@agimon-ai/doompi-core/jsonl-session-repo';\nimport { importSqliteHistory, verifySqliteHistory } from '@agimon-ai/doompi-core/sqlite-history-import';\n\nimport { wantsHelp } from '../../router';\nimport { historyImportHelp } from './help';\n\ninterface HistoryImportPaths {\n sourcePath: string;\n destinationPath: string;\n format: 'jsonl' | 'sqlite';\n}\n\nexport interface HistoryImportOutput {\n write(chunk: string): void;\n}\n\nfunction parsePaths(args: readonly string[], currentDirectory: string): HistoryImportPaths {\n const positional: string[] = [];\n let confirmed = false;\n let format: 'jsonl' | 'sqlite' = 'jsonl';\n\n for (let index = 0; index < args.length; index += 1) {\n const argument = args[index]!;\n if (argument === '--format') {\n if (format === 'sqlite') throw new Error('--format was specified more than once');\n const next = args[++index];\n if (next !== 'sqlite') throw new Error('history-import --format supports sqlite');\n format = next;\n continue;\n }\n if (argument === '--') throw new Error('doompi history-import does not accept passthrough arguments');\n if (argument === '--confirm-offline') {\n if (confirmed) throw new Error('--confirm-offline was specified more than once');\n confirmed = true;\n continue;\n }\n if (argument.startsWith('-')) throw new Error(`doompi history-import does not accept ${argument}`);\n positional.push(argument);\n }\n\n if (!confirmed) throw new Error('doompi history-import requires --confirm-offline after stopping Pi');\n if (positional.length !== 2) {\n throw new Error('doompi history-import requires a v3 source and distinct v4 destination');\n }\n\n const sourcePath = path.resolve(currentDirectory, positional[0]!);\n const destinationPath = path.resolve(currentDirectory, positional[1]!);\n if (sourcePath === destinationPath) throw new Error('Protected history destination must differ from source');\n return { sourcePath, destinationPath, format };\n}\n\n/** Imports one explicitly confirmed v3 journal without starting Pi or the harness. */\nexport async function runHistoryImport(\n args: readonly string[],\n _environment: NodeJS.ProcessEnv = process.env,\n currentDirectory = process.cwd(),\n output: HistoryImportOutput = process.stdout,\n owner?: HistoryOwnership,\n): Promise<number> {\n if (wantsHelp(args.slice(1))) {\n output.write(historyImportHelp());\n return 0;\n }\n\n const paths = parsePaths(args.slice(1), currentDirectory);\n const header =\n paths.format === 'sqlite'\n ? (JSON.parse(fs.readFileSync(paths.sourcePath, 'utf8').split('\\n', 1)[0]!) as { v?: number })\n : undefined;\n const result = await protectAndImportHistory({\n sourcePath: paths.sourcePath,\n destinationPath: paths.destinationPath,\n owner:\n owner ??\n createHistoryOwnership({\n sourceFormat: header?.v === 4 ? 'v4' : 'v3',\n additionalPaths: [paths.destinationPath],\n }),\n importStaging: paths.format === 'sqlite' ? importSqliteHistory : importV3WithPinnedUpstream,\n ...(paths.format === 'sqlite' ? { verifyStaging: verifySqliteHistory } : {}),\n });\n output.write(\n `${JSON.stringify({\n status: result.status,\n sourcePath: result.sourceIdentity.path,\n originalPath: result.originalPath,\n destinationPath: result.destinationPath,\n statePath: result.statePath,\n entryCount: result.verification.entries.length,\n branchCount: result.verification.branches.length,\n })}\\n`,\n );\n return 0;\n}\n"],"mappings":";;;;;;;;;;;;AAqBA,SAAS,WAAW,MAAyB,kBAA8C;CACzF,MAAM,aAAuB,CAAC;CAC9B,IAAI,YAAY;CAChB,IAAI,SAA6B;CAEjC,KAAK,IAAI,QAAQ,GAAG,QAAQ,KAAK,QAAQ,SAAS,GAAG;EACnD,MAAM,WAAW,KAAK;EACtB,IAAI,aAAa,YAAY;GAC3B,IAAI,WAAW,UAAU,MAAM,IAAI,MAAM,uCAAuC;GAChF,MAAM,OAAO,KAAK,EAAE;GACpB,IAAI,SAAS,UAAU,MAAM,IAAI,MAAM,yCAAyC;GAChF,SAAS;GACT;EACF;EACA,IAAI,aAAa,MAAM,MAAM,IAAI,MAAM,6DAA6D;EACpG,IAAI,aAAa,qBAAqB;GACpC,IAAI,WAAW,MAAM,IAAI,MAAM,gDAAgD;GAC/E,YAAY;GACZ;EACF;EACA,IAAI,SAAS,WAAW,GAAG,GAAG,MAAM,IAAI,MAAM,yCAAyC,UAAU;EACjG,WAAW,KAAK,QAAQ;CAC1B;CAEA,IAAI,CAAC,WAAW,MAAM,IAAI,MAAM,oEAAoE;CACpG,IAAI,WAAW,WAAW,GACxB,MAAM,IAAI,MAAM,wEAAwE;CAG1F,MAAM,aAAaA,UAAAA,QAAK,QAAQ,kBAAkB,WAAW,EAAG;CAChE,MAAM,kBAAkBA,UAAAA,QAAK,QAAQ,kBAAkB,WAAW,EAAG;CACrE,IAAI,eAAe,iBAAiB,MAAM,IAAI,MAAM,uDAAuD;CAC3G,OAAO;EAAE;EAAY;EAAiB;CAAO;AAC/C;;AAGA,eAAsB,iBACpB,MACA,eAAkC,QAAQ,KAC1C,mBAAmB,QAAQ,IAAI,GAC/B,SAA8B,QAAQ,QACtC,OACiB;CACjB,IAAIC,eAAAA,UAAU,KAAK,MAAM,CAAC,CAAC,GAAG;EAC5B,OAAO,MAAMC,aAAAA,kBAAkB,CAAC;EAChC,OAAO;CACT;CAEA,MAAM,QAAQ,WAAW,KAAK,MAAM,CAAC,GAAG,gBAAgB;CACxD,MAAM,SACJ,MAAM,WAAW,WACZ,KAAK,MAAMC,QAAAA,QAAG,aAAa,MAAM,YAAY,MAAM,CAAC,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC,EAAG,IACxE,KAAA;CACN,MAAM,SAAS,OAAA,GAAMC,sCAAAA,wBAAAA,CAAwB;EAC3C,YAAY,MAAM;EAClB,iBAAiB,MAAM;EACvB,OACE,UAAA,GACAC,yCAAAA,uBAAAA,CAAuB;GACrB,cAAc,QAAQ,MAAM,IAAI,OAAO;GACvC,iBAAiB,CAAC,MAAM,eAAe;EACzC,CAAC;EACH,eAAe,MAAM,WAAW,WAAWC,6CAAAA,sBAAsBC,0CAAAA;EACjE,GAAI,MAAM,WAAW,WAAW,EAAE,eAAeC,6CAAAA,oBAAoB,IAAI,CAAC;CAC5E,CAAC;CACD,OAAO,MACL,GAAG,KAAK,UAAU;EAChB,QAAQ,OAAO;EACf,YAAY,OAAO,eAAe;EAClC,cAAc,OAAO;EACrB,iBAAiB,OAAO;EACxB,WAAW,OAAO;EAClB,YAAY,OAAO,aAAa,QAAQ;EACxC,aAAa,OAAO,aAAa,SAAS;CAC5C,CAAC,EAAE,GACL;CACA,OAAO;AACT"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { historyImportHelp } from "./help.mjs";
|
|
2
|
+
import { wantsHelp } from "../../router.mjs";
|
|
3
|
+
import fs from "node:fs";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
import { createHistoryOwnership } from "@agimon-ai/doompi-core/history-ownership";
|
|
6
|
+
import { protectAndImportHistory } from "@agimon-ai/doompi-core/history-import";
|
|
7
|
+
import { importV3WithPinnedUpstream } from "@agimon-ai/doompi-core/jsonl-session-repo";
|
|
8
|
+
import { importSqliteHistory, verifySqliteHistory } from "@agimon-ai/doompi-core/sqlite-history-import";
|
|
9
|
+
//#region src/cli/commands/history-import/index.ts
|
|
10
|
+
function parsePaths(args, currentDirectory) {
|
|
11
|
+
const positional = [];
|
|
12
|
+
let confirmed = false;
|
|
13
|
+
let format = "jsonl";
|
|
14
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
15
|
+
const argument = args[index];
|
|
16
|
+
if (argument === "--format") {
|
|
17
|
+
if (format === "sqlite") throw new Error("--format was specified more than once");
|
|
18
|
+
const next = args[++index];
|
|
19
|
+
if (next !== "sqlite") throw new Error("history-import --format supports sqlite");
|
|
20
|
+
format = next;
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
if (argument === "--") throw new Error("doompi history-import does not accept passthrough arguments");
|
|
24
|
+
if (argument === "--confirm-offline") {
|
|
25
|
+
if (confirmed) throw new Error("--confirm-offline was specified more than once");
|
|
26
|
+
confirmed = true;
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
if (argument.startsWith("-")) throw new Error(`doompi history-import does not accept ${argument}`);
|
|
30
|
+
positional.push(argument);
|
|
31
|
+
}
|
|
32
|
+
if (!confirmed) throw new Error("doompi history-import requires --confirm-offline after stopping Pi");
|
|
33
|
+
if (positional.length !== 2) throw new Error("doompi history-import requires a v3 source and distinct v4 destination");
|
|
34
|
+
const sourcePath = path.resolve(currentDirectory, positional[0]);
|
|
35
|
+
const destinationPath = path.resolve(currentDirectory, positional[1]);
|
|
36
|
+
if (sourcePath === destinationPath) throw new Error("Protected history destination must differ from source");
|
|
37
|
+
return {
|
|
38
|
+
sourcePath,
|
|
39
|
+
destinationPath,
|
|
40
|
+
format
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/** Imports one explicitly confirmed v3 journal without starting Pi or the harness. */
|
|
44
|
+
async function runHistoryImport(args, _environment = process.env, currentDirectory = process.cwd(), output = process.stdout, owner) {
|
|
45
|
+
if (wantsHelp(args.slice(1))) {
|
|
46
|
+
output.write(historyImportHelp());
|
|
47
|
+
return 0;
|
|
48
|
+
}
|
|
49
|
+
const paths = parsePaths(args.slice(1), currentDirectory);
|
|
50
|
+
const header = paths.format === "sqlite" ? JSON.parse(fs.readFileSync(paths.sourcePath, "utf8").split("\n", 1)[0]) : void 0;
|
|
51
|
+
const result = await protectAndImportHistory({
|
|
52
|
+
sourcePath: paths.sourcePath,
|
|
53
|
+
destinationPath: paths.destinationPath,
|
|
54
|
+
owner: owner ?? createHistoryOwnership({
|
|
55
|
+
sourceFormat: header?.v === 4 ? "v4" : "v3",
|
|
56
|
+
additionalPaths: [paths.destinationPath]
|
|
57
|
+
}),
|
|
58
|
+
importStaging: paths.format === "sqlite" ? importSqliteHistory : importV3WithPinnedUpstream,
|
|
59
|
+
...paths.format === "sqlite" ? { verifyStaging: verifySqliteHistory } : {}
|
|
60
|
+
});
|
|
61
|
+
output.write(`${JSON.stringify({
|
|
62
|
+
status: result.status,
|
|
63
|
+
sourcePath: result.sourceIdentity.path,
|
|
64
|
+
originalPath: result.originalPath,
|
|
65
|
+
destinationPath: result.destinationPath,
|
|
66
|
+
statePath: result.statePath,
|
|
67
|
+
entryCount: result.verification.entries.length,
|
|
68
|
+
branchCount: result.verification.branches.length
|
|
69
|
+
})}\n`);
|
|
70
|
+
return 0;
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { runHistoryImport };
|
|
74
|
+
|
|
75
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/cli/commands/history-import/index.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\n\nimport { protectAndImportHistory, type HistoryOwnership } from '@agimon-ai/doompi-core/history-import';\nimport { createHistoryOwnership } from '@agimon-ai/doompi-core/history-ownership';\nimport { importV3WithPinnedUpstream } from '@agimon-ai/doompi-core/jsonl-session-repo';\nimport { importSqliteHistory, verifySqliteHistory } from '@agimon-ai/doompi-core/sqlite-history-import';\n\nimport { wantsHelp } from '../../router';\nimport { historyImportHelp } from './help';\n\ninterface HistoryImportPaths {\n sourcePath: string;\n destinationPath: string;\n format: 'jsonl' | 'sqlite';\n}\n\nexport interface HistoryImportOutput {\n write(chunk: string): void;\n}\n\nfunction parsePaths(args: readonly string[], currentDirectory: string): HistoryImportPaths {\n const positional: string[] = [];\n let confirmed = false;\n let format: 'jsonl' | 'sqlite' = 'jsonl';\n\n for (let index = 0; index < args.length; index += 1) {\n const argument = args[index]!;\n if (argument === '--format') {\n if (format === 'sqlite') throw new Error('--format was specified more than once');\n const next = args[++index];\n if (next !== 'sqlite') throw new Error('history-import --format supports sqlite');\n format = next;\n continue;\n }\n if (argument === '--') throw new Error('doompi history-import does not accept passthrough arguments');\n if (argument === '--confirm-offline') {\n if (confirmed) throw new Error('--confirm-offline was specified more than once');\n confirmed = true;\n continue;\n }\n if (argument.startsWith('-')) throw new Error(`doompi history-import does not accept ${argument}`);\n positional.push(argument);\n }\n\n if (!confirmed) throw new Error('doompi history-import requires --confirm-offline after stopping Pi');\n if (positional.length !== 2) {\n throw new Error('doompi history-import requires a v3 source and distinct v4 destination');\n }\n\n const sourcePath = path.resolve(currentDirectory, positional[0]!);\n const destinationPath = path.resolve(currentDirectory, positional[1]!);\n if (sourcePath === destinationPath) throw new Error('Protected history destination must differ from source');\n return { sourcePath, destinationPath, format };\n}\n\n/** Imports one explicitly confirmed v3 journal without starting Pi or the harness. */\nexport async function runHistoryImport(\n args: readonly string[],\n _environment: NodeJS.ProcessEnv = process.env,\n currentDirectory = process.cwd(),\n output: HistoryImportOutput = process.stdout,\n owner?: HistoryOwnership,\n): Promise<number> {\n if (wantsHelp(args.slice(1))) {\n output.write(historyImportHelp());\n return 0;\n }\n\n const paths = parsePaths(args.slice(1), currentDirectory);\n const header =\n paths.format === 'sqlite'\n ? (JSON.parse(fs.readFileSync(paths.sourcePath, 'utf8').split('\\n', 1)[0]!) as { v?: number })\n : undefined;\n const result = await protectAndImportHistory({\n sourcePath: paths.sourcePath,\n destinationPath: paths.destinationPath,\n owner:\n owner ??\n createHistoryOwnership({\n sourceFormat: header?.v === 4 ? 'v4' : 'v3',\n additionalPaths: [paths.destinationPath],\n }),\n importStaging: paths.format === 'sqlite' ? importSqliteHistory : importV3WithPinnedUpstream,\n ...(paths.format === 'sqlite' ? { verifyStaging: verifySqliteHistory } : {}),\n });\n output.write(\n `${JSON.stringify({\n status: result.status,\n sourcePath: result.sourceIdentity.path,\n originalPath: result.originalPath,\n destinationPath: result.destinationPath,\n statePath: result.statePath,\n entryCount: result.verification.entries.length,\n branchCount: result.verification.branches.length,\n })}\\n`,\n );\n return 0;\n}\n"],"mappings":";;;;;;;;;AAqBA,SAAS,WAAW,MAAyB,kBAA8C;CACzF,MAAM,aAAuB,CAAC;CAC9B,IAAI,YAAY;CAChB,IAAI,SAA6B;CAEjC,KAAK,IAAI,QAAQ,GAAG,QAAQ,KAAK,QAAQ,SAAS,GAAG;EACnD,MAAM,WAAW,KAAK;EACtB,IAAI,aAAa,YAAY;GAC3B,IAAI,WAAW,UAAU,MAAM,IAAI,MAAM,uCAAuC;GAChF,MAAM,OAAO,KAAK,EAAE;GACpB,IAAI,SAAS,UAAU,MAAM,IAAI,MAAM,yCAAyC;GAChF,SAAS;GACT;EACF;EACA,IAAI,aAAa,MAAM,MAAM,IAAI,MAAM,6DAA6D;EACpG,IAAI,aAAa,qBAAqB;GACpC,IAAI,WAAW,MAAM,IAAI,MAAM,gDAAgD;GAC/E,YAAY;GACZ;EACF;EACA,IAAI,SAAS,WAAW,GAAG,GAAG,MAAM,IAAI,MAAM,yCAAyC,UAAU;EACjG,WAAW,KAAK,QAAQ;CAC1B;CAEA,IAAI,CAAC,WAAW,MAAM,IAAI,MAAM,oEAAoE;CACpG,IAAI,WAAW,WAAW,GACxB,MAAM,IAAI,MAAM,wEAAwE;CAG1F,MAAM,aAAa,KAAK,QAAQ,kBAAkB,WAAW,EAAG;CAChE,MAAM,kBAAkB,KAAK,QAAQ,kBAAkB,WAAW,EAAG;CACrE,IAAI,eAAe,iBAAiB,MAAM,IAAI,MAAM,uDAAuD;CAC3G,OAAO;EAAE;EAAY;EAAiB;CAAO;AAC/C;;AAGA,eAAsB,iBACpB,MACA,eAAkC,QAAQ,KAC1C,mBAAmB,QAAQ,IAAI,GAC/B,SAA8B,QAAQ,QACtC,OACiB;CACjB,IAAI,UAAU,KAAK,MAAM,CAAC,CAAC,GAAG;EAC5B,OAAO,MAAM,kBAAkB,CAAC;EAChC,OAAO;CACT;CAEA,MAAM,QAAQ,WAAW,KAAK,MAAM,CAAC,GAAG,gBAAgB;CACxD,MAAM,SACJ,MAAM,WAAW,WACZ,KAAK,MAAM,GAAG,aAAa,MAAM,YAAY,MAAM,CAAC,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC,EAAG,IACxE,KAAA;CACN,MAAM,SAAS,MAAM,wBAAwB;EAC3C,YAAY,MAAM;EAClB,iBAAiB,MAAM;EACvB,OACE,SACA,uBAAuB;GACrB,cAAc,QAAQ,MAAM,IAAI,OAAO;GACvC,iBAAiB,CAAC,MAAM,eAAe;EACzC,CAAC;EACH,eAAe,MAAM,WAAW,WAAW,sBAAsB;EACjE,GAAI,MAAM,WAAW,WAAW,EAAE,eAAe,oBAAoB,IAAI,CAAC;CAC5E,CAAC;CACD,OAAO,MACL,GAAG,KAAK,UAAU;EAChB,QAAQ,OAAO;EACf,YAAY,OAAO,eAAe;EAClC,cAAc,OAAO;EACrB,iBAAiB,OAAO;EACxB,WAAW,OAAO;EAClB,YAAY,OAAO,aAAa,QAAQ;EACxC,aAAa,OAAO,aAAa,SAAS;CAC5C,CAAC,EAAE,GACL;CACA,OAAO;AACT"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/cli/commands/init/constants.ts
|
|
2
|
+
const SEED_FILE_GUIDANCE = {
|
|
3
|
+
"config.yaml": "project trust and optional voice defaults",
|
|
4
|
+
"modes.yaml": "layers, packages, and the default major mode",
|
|
5
|
+
"domains.yaml": "plugin catalog, domain groups, and aliases",
|
|
6
|
+
"profiles.yaml": "profile roots, personas, and string environment defaults"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.SEED_FILE_GUIDANCE = SEED_FILE_GUIDANCE;
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=constants.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.cjs","names":[],"sources":["../../../../src/cli/commands/init/constants.ts"],"sourcesContent":["export const SEED_FILE_GUIDANCE = {\n 'config.yaml': 'project trust and optional voice defaults',\n 'modes.yaml': 'layers, packages, and the default major mode',\n 'domains.yaml': 'plugin catalog, domain groups, and aliases',\n 'profiles.yaml': 'profile roots, personas, and string environment defaults',\n} as const;\n"],"mappings":";AAAA,MAAa,qBAAqB;CAChC,eAAe;CACf,cAAc;CACd,gBAAgB;CAChB,iBAAiB;AACnB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/cli/commands/init/constants.ts
|
|
2
|
+
const SEED_FILE_GUIDANCE = {
|
|
3
|
+
"config.yaml": "project trust and optional voice defaults",
|
|
4
|
+
"modes.yaml": "layers, packages, and the default major mode",
|
|
5
|
+
"domains.yaml": "plugin catalog, domain groups, and aliases",
|
|
6
|
+
"profiles.yaml": "profile roots, personas, and string environment defaults"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { SEED_FILE_GUIDANCE };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=constants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.mjs","names":[],"sources":["../../../../src/cli/commands/init/constants.ts"],"sourcesContent":["export const SEED_FILE_GUIDANCE = {\n 'config.yaml': 'project trust and optional voice defaults',\n 'modes.yaml': 'layers, packages, and the default major mode',\n 'domains.yaml': 'plugin catalog, domain groups, and aliases',\n 'profiles.yaml': 'profile roots, personas, and string environment defaults',\n} as const;\n"],"mappings":";AAAA,MAAa,qBAAqB;CAChC,eAAe;CACf,cAAc;CACd,gBAAgB;CAChB,iBAAiB;AACnB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/cli/commands/init/help.ts
|
|
2
|
+
function initHelp() {
|
|
3
|
+
return `Usage: doompi init [--force]
|
|
4
|
+
|
|
5
|
+
Fills missing files in ~/.pi/.doom and registers the DoomPi extension alias and
|
|
6
|
+
theme in Pi user settings.
|
|
7
|
+
|
|
8
|
+
Options:
|
|
9
|
+
--force Replace the four personal .doom files with current
|
|
10
|
+
templates instead of only filling missing ones
|
|
11
|
+
-h, --help Show this help
|
|
12
|
+
`;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.initHelp = initHelp;
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=help.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help.cjs","names":[],"sources":["../../../../src/cli/commands/init/help.ts"],"sourcesContent":["export function initHelp(): string {\n return `Usage: doompi init [--force]\n\nFills missing files in ~/.pi/.doom and registers the DoomPi extension alias and\ntheme in Pi user settings.\n\nOptions:\n --force Replace the four personal .doom files with current\n templates instead of only filling missing ones\n -h, --help Show this help\n`;\n}\n"],"mappings":";AAAA,SAAgB,WAAmB;CACjC,OAAO;;;;;;;;;;AAUT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help.d.cts","names":[],"sources":["../../../../src/cli/commands/init/help.ts"],"mappings":";wBAAgB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help.d.mts","names":[],"sources":["../../../../src/cli/commands/init/help.ts"],"mappings":";wBAAgB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/cli/commands/init/help.ts
|
|
2
|
+
function initHelp() {
|
|
3
|
+
return `Usage: doompi init [--force]
|
|
4
|
+
|
|
5
|
+
Fills missing files in ~/.pi/.doom and registers the DoomPi extension alias and
|
|
6
|
+
theme in Pi user settings.
|
|
7
|
+
|
|
8
|
+
Options:
|
|
9
|
+
--force Replace the four personal .doom files with current
|
|
10
|
+
templates instead of only filling missing ones
|
|
11
|
+
-h, --help Show this help
|
|
12
|
+
`;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { initHelp };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=help.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help.mjs","names":[],"sources":["../../../../src/cli/commands/init/help.ts"],"sourcesContent":["export function initHelp(): string {\n return `Usage: doompi init [--force]\n\nFills missing files in ~/.pi/.doom and registers the DoomPi extension alias and\ntheme in Pi user settings.\n\nOptions:\n --force Replace the four personal .doom files with current\n templates instead of only filling missing ones\n -h, --help Show this help\n`;\n}\n"],"mappings":";AAAA,SAAgB,WAAmB;CACjC,OAAO;;;;;;;;;;AAUT"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_help = require("./help.cjs");
|
|
3
|
+
const require_router = require("../../router.cjs");
|
|
4
|
+
const require_index = require("../../../builders/cli/piExtensionAlias/index.cjs");
|
|
5
|
+
const require_presenter = require("./presenter.cjs");
|
|
6
|
+
let node_fs = require("node:fs");
|
|
7
|
+
node_fs = require_runtime.__toESM(node_fs, 1);
|
|
8
|
+
let node_os = require("node:os");
|
|
9
|
+
node_os = require_runtime.__toESM(node_os, 1);
|
|
10
|
+
let _agimon_ai_doompi_core_runtime_pi_settings = require("@agimon-ai/doompi-core/runtime-pi-settings");
|
|
11
|
+
let _agimon_ai_doompi_ui_theme = require("@agimon-ai/doompi-ui/theme");
|
|
12
|
+
let _agimon_ai_doompi_config = require("@agimon-ai/doompi-config");
|
|
13
|
+
//#region src/cli/commands/init/index.ts
|
|
14
|
+
const INIT_COMMAND = "init";
|
|
15
|
+
const FORCE_FLAG = "--force";
|
|
16
|
+
const SETUP_STAGE_COUNT = 2;
|
|
17
|
+
function setupFailure(activity, target, error) {
|
|
18
|
+
const detail = error instanceof Error ? error.message : String(error);
|
|
19
|
+
return new Error(`doompi init failed while ${activity} at ${target}: ${detail}`, { cause: error });
|
|
20
|
+
}
|
|
21
|
+
async function initializePiIntegration(homeDirectory, environment) {
|
|
22
|
+
const agentDirectory = (0, _agimon_ai_doompi_core_runtime_pi_settings.piAgentDirectory)(environment, homeDirectory);
|
|
23
|
+
const before = (0, _agimon_ai_doompi_core_runtime_pi_settings.readPiSettings)(agentDirectory);
|
|
24
|
+
const themeDirectory = (0, _agimon_ai_doompi_core_runtime_pi_settings.piThemeDirectory)(agentDirectory);
|
|
25
|
+
await node_fs.default.promises.mkdir(themeDirectory, { recursive: true });
|
|
26
|
+
const themePath = await (0, _agimon_ai_doompi_ui_theme.writeDefaultTheme)(themeDirectory);
|
|
27
|
+
const aliasPath = require_index.writePiExtensionAlias(agentDirectory);
|
|
28
|
+
return {
|
|
29
|
+
settingsPath: (0, _agimon_ai_doompi_core_runtime_pi_settings.writePiSettings)(agentDirectory, {
|
|
30
|
+
themePath,
|
|
31
|
+
themeName: _agimon_ai_doompi_ui_theme.DEFAULT_THEME_NAME
|
|
32
|
+
}),
|
|
33
|
+
themePath,
|
|
34
|
+
aliasPath,
|
|
35
|
+
before,
|
|
36
|
+
after: (0, _agimon_ai_doompi_core_runtime_pi_settings.readPiSettings)(agentDirectory)
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/** Handles the repository-independent `doompi init` command. */
|
|
40
|
+
async function runInit(args, homeDirectory = node_os.default.homedir(), output = process.stdout, environment = process.env) {
|
|
41
|
+
const flags = args.slice(1);
|
|
42
|
+
const unknown = flags.find((flag) => flag !== FORCE_FLAG);
|
|
43
|
+
if (require_router.wantsHelp(args)) {
|
|
44
|
+
process.stdout.write(require_help.initHelp());
|
|
45
|
+
return 0;
|
|
46
|
+
}
|
|
47
|
+
if (unknown !== void 0) throw new Error(`doompi init does not accept ${unknown}`);
|
|
48
|
+
const presenter = new require_presenter.InitPresenter(output, environment);
|
|
49
|
+
presenter.brand();
|
|
50
|
+
const configDirectory = (0, _agimon_ai_doompi_config.globalDoomConfigDirectory)(homeDirectory);
|
|
51
|
+
presenter.stage(1, SETUP_STAGE_COUNT, "WRITE CONFIGURATION", configDirectory);
|
|
52
|
+
let configResult;
|
|
53
|
+
try {
|
|
54
|
+
configResult = (0, _agimon_ai_doompi_config.initializeGlobalDoomConfig)(homeDirectory, { force: flags.includes(FORCE_FLAG) });
|
|
55
|
+
presenter.stageReady("Configuration files are ready.");
|
|
56
|
+
} catch (error) {
|
|
57
|
+
presenter.stageFailed("Configuration setup failed.", ["Fix the reported path or permissions, then run doompi init again."]);
|
|
58
|
+
throw setupFailure("writing configuration", configDirectory, error);
|
|
59
|
+
}
|
|
60
|
+
const agentDirectory = (0, _agimon_ai_doompi_core_runtime_pi_settings.piAgentDirectory)(environment, homeDirectory);
|
|
61
|
+
presenter.stage(2, SETUP_STAGE_COUNT, "REGISTER WITH PI", agentDirectory);
|
|
62
|
+
let piResult;
|
|
63
|
+
try {
|
|
64
|
+
piResult = await initializePiIntegration(homeDirectory, environment);
|
|
65
|
+
presenter.stageReady("Pi integration is ready.");
|
|
66
|
+
} catch (error) {
|
|
67
|
+
presenter.stageFailed("Pi integration failed.", [`Your DoomPi configuration remains at ${configResult.directory}.`, "Fix the reported settings or filesystem issue, then run doompi init again."]);
|
|
68
|
+
throw setupFailure("registering with Pi", agentDirectory, error);
|
|
69
|
+
}
|
|
70
|
+
presenter.complete(configResult, piResult);
|
|
71
|
+
return 0;
|
|
72
|
+
}
|
|
73
|
+
/** Compatibility API. Executables call the command function directly. */
|
|
74
|
+
var InitCommand = class {
|
|
75
|
+
name = INIT_COMMAND;
|
|
76
|
+
matches(args) {
|
|
77
|
+
return args[0] === this.name;
|
|
78
|
+
}
|
|
79
|
+
async execute(args, homeDirectory = node_os.default.homedir(), output = process.stdout, environment = process.env) {
|
|
80
|
+
return runInit(args, homeDirectory, output, environment);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
exports.InitCommand = InitCommand;
|
|
85
|
+
exports.runInit = runInit;
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["piAgentDirectory","readPiSettings","piThemeDirectory","fs","writeDefaultTheme","writePiExtensionAlias","writePiSettings","DEFAULT_THEME_NAME","os","wantsHelp","initHelp","InitPresenter","globalDoomConfigDirectory","initializeGlobalDoomConfig"],"sources":["../../../../src/cli/commands/init/index.ts"],"sourcesContent":["import fs from 'node:fs';\nimport os from 'node:os';\n\nimport {\n type GlobalDoomInitResult,\n globalDoomConfigDirectory,\n initializeGlobalDoomConfig,\n} from '@agimon-ai/doompi-config';\nimport {\n piAgentDirectory,\n piThemeDirectory,\n readPiSettings,\n writePiSettings,\n} from '@agimon-ai/doompi-core/runtime-pi-settings';\nimport { DEFAULT_THEME_NAME, writeDefaultTheme } from '@agimon-ai/doompi-ui/theme';\n\nimport { writePiExtensionAlias } from '../../../builders/cli/piExtensionAlias';\nimport { wantsHelp } from '../../router';\nimport { initHelp } from './help';\nimport { InitPresenter, type InitOutput, type PiIntegrationSummary } from './presenter';\n\nconst INIT_COMMAND = 'init';\nconst FORCE_FLAG = '--force';\nconst SETUP_STAGE_COUNT = 2;\n\nfunction setupFailure(activity: string, target: string, error: unknown): Error {\n const detail = error instanceof Error ? error.message : String(error);\n return new Error(`doompi init failed while ${activity} at ${target}: ${detail}`, { cause: error });\n}\n\nasync function initializePiIntegration(\n homeDirectory: string,\n environment: NodeJS.ProcessEnv,\n): Promise<PiIntegrationSummary> {\n const agentDirectory = piAgentDirectory(environment, homeDirectory);\n const before = readPiSettings(agentDirectory);\n const themeDirectory = piThemeDirectory(agentDirectory);\n await fs.promises.mkdir(themeDirectory, { recursive: true });\n const themePath = await writeDefaultTheme(themeDirectory);\n const aliasPath = writePiExtensionAlias(agentDirectory);\n const settingsPath = writePiSettings(agentDirectory, { themePath, themeName: DEFAULT_THEME_NAME });\n return {\n settingsPath,\n themePath,\n aliasPath,\n before,\n after: readPiSettings(agentDirectory),\n };\n}\n\n/** Handles the repository-independent `doompi init` command. */\nexport async function runInit(\n args: string[],\n homeDirectory = os.homedir(),\n output: InitOutput = process.stdout,\n environment: NodeJS.ProcessEnv = process.env,\n): Promise<number> {\n const flags = args.slice(1);\n const unknown = flags.find((flag) => flag !== FORCE_FLAG);\n if (wantsHelp(args)) {\n process.stdout.write(initHelp());\n return 0;\n }\n if (unknown !== undefined) throw new Error(`doompi init does not accept ${unknown}`);\n\n const presenter = new InitPresenter(output, environment);\n presenter.brand();\n\n const configDirectory = globalDoomConfigDirectory(homeDirectory);\n presenter.stage(1, SETUP_STAGE_COUNT, 'WRITE CONFIGURATION', configDirectory);\n let configResult: GlobalDoomInitResult;\n try {\n configResult = initializeGlobalDoomConfig(homeDirectory, { force: flags.includes(FORCE_FLAG) });\n presenter.stageReady('Configuration files are ready.');\n } catch (error) {\n presenter.stageFailed('Configuration setup failed.', [\n 'Fix the reported path or permissions, then run doompi init again.',\n ]);\n throw setupFailure('writing configuration', configDirectory, error);\n }\n\n const agentDirectory = piAgentDirectory(environment, homeDirectory);\n presenter.stage(2, SETUP_STAGE_COUNT, 'REGISTER WITH PI', agentDirectory);\n let piResult: PiIntegrationSummary;\n try {\n piResult = await initializePiIntegration(homeDirectory, environment);\n presenter.stageReady('Pi integration is ready.');\n } catch (error) {\n presenter.stageFailed('Pi integration failed.', [\n `Your DoomPi configuration remains at ${configResult.directory}.`,\n 'Fix the reported settings or filesystem issue, then run doompi init again.',\n ]);\n throw setupFailure('registering with Pi', agentDirectory, error);\n }\n\n presenter.complete(configResult, piResult);\n return 0;\n}\n\n/** Compatibility API. Executables call the command function directly. */\nexport class InitCommand {\n readonly name = INIT_COMMAND;\n\n matches(args: string[]): boolean {\n return args[0] === this.name;\n }\n\n async execute(\n args: string[],\n homeDirectory = os.homedir(),\n output: InitOutput = process.stdout,\n environment: NodeJS.ProcessEnv = process.env,\n ): Promise<number> {\n return runInit(args, homeDirectory, output, environment);\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAqBA,MAAM,eAAe;AACrB,MAAM,aAAa;AACnB,MAAM,oBAAoB;AAE1B,SAAS,aAAa,UAAkB,QAAgB,OAAuB;CAC7E,MAAM,SAAS,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CACpE,OAAO,IAAI,MAAM,4BAA4B,SAAS,MAAM,OAAO,IAAI,UAAU,EAAE,OAAO,MAAM,CAAC;AACnG;AAEA,eAAe,wBACb,eACA,aAC+B;CAC/B,MAAM,kBAAA,GAAiBA,2CAAAA,iBAAAA,CAAiB,aAAa,aAAa;CAClE,MAAM,UAAA,GAASC,2CAAAA,eAAAA,CAAe,cAAc;CAC5C,MAAM,kBAAA,GAAiBC,2CAAAA,iBAAAA,CAAiB,cAAc;CACtD,MAAMC,QAAAA,QAAG,SAAS,MAAM,gBAAgB,EAAE,WAAW,KAAK,CAAC;CAC3D,MAAM,YAAY,OAAA,GAAMC,2BAAAA,kBAAAA,CAAkB,cAAc;CACxD,MAAM,YAAYC,cAAAA,sBAAsB,cAAc;CAEtD,OAAO;EACL,eAAA,GAFmBC,2CAAAA,gBAAAA,CAAgB,gBAAgB;GAAE;GAAW,WAAWC,2BAAAA;EAAmB,CAEnF;EACX;EACA;EACA;EACA,QAAA,GAAON,2CAAAA,eAAAA,CAAe,cAAc;CACtC;AACF;;AAGA,eAAsB,QACpB,MACA,gBAAgBO,QAAAA,QAAG,QAAQ,GAC3B,SAAqB,QAAQ,QAC7B,cAAiC,QAAQ,KACxB;CACjB,MAAM,QAAQ,KAAK,MAAM,CAAC;CAC1B,MAAM,UAAU,MAAM,MAAM,SAAS,SAAS,UAAU;CACxD,IAAIC,eAAAA,UAAU,IAAI,GAAG;EACnB,QAAQ,OAAO,MAAMC,aAAAA,SAAS,CAAC;EAC/B,OAAO;CACT;CACA,IAAI,YAAY,KAAA,GAAW,MAAM,IAAI,MAAM,+BAA+B,SAAS;CAEnF,MAAM,YAAY,IAAIC,kBAAAA,cAAc,QAAQ,WAAW;CACvD,UAAU,MAAM;CAEhB,MAAM,mBAAA,GAAkBC,yBAAAA,0BAAAA,CAA0B,aAAa;CAC/D,UAAU,MAAM,GAAG,mBAAmB,uBAAuB,eAAe;CAC5E,IAAI;CACJ,IAAI;EACF,gBAAA,GAAeC,yBAAAA,2BAAAA,CAA2B,eAAe,EAAE,OAAO,MAAM,SAAS,UAAU,EAAE,CAAC;EAC9F,UAAU,WAAW,gCAAgC;CACvD,SAAS,OAAO;EACd,UAAU,YAAY,+BAA+B,CACnD,mEACF,CAAC;EACD,MAAM,aAAa,yBAAyB,iBAAiB,KAAK;CACpE;CAEA,MAAM,kBAAA,GAAiBb,2CAAAA,iBAAAA,CAAiB,aAAa,aAAa;CAClE,UAAU,MAAM,GAAG,mBAAmB,oBAAoB,cAAc;CACxE,IAAI;CACJ,IAAI;EACF,WAAW,MAAM,wBAAwB,eAAe,WAAW;EACnE,UAAU,WAAW,0BAA0B;CACjD,SAAS,OAAO;EACd,UAAU,YAAY,0BAA0B,CAC9C,wCAAwC,aAAa,UAAU,IAC/D,4EACF,CAAC;EACD,MAAM,aAAa,uBAAuB,gBAAgB,KAAK;CACjE;CAEA,UAAU,SAAS,cAAc,QAAQ;CACzC,OAAO;AACT;;AAGA,IAAa,cAAb,MAAyB;CACvB,OAAgB;CAEhB,QAAQ,MAAyB;EAC/B,OAAO,KAAK,OAAO,KAAK;CAC1B;CAEA,MAAM,QACJ,MACA,gBAAgBQ,QAAAA,QAAG,QAAQ,GAC3B,SAAqB,QAAQ,QAC7B,cAAiC,QAAQ,KACxB;EACjB,OAAO,QAAQ,MAAM,eAAe,QAAQ,WAAW;CACzD;AACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InitOutput } from "./presenter.cjs";
|
|
2
|
+
//#region src/cli/commands/init/index.d.ts
|
|
3
|
+
/** Handles the repository-independent `doompi init` command. */
|
|
4
|
+
export declare function runInit(args: string[], homeDirectory?: string, output?: InitOutput, environment?: NodeJS.ProcessEnv): Promise<number>;
|
|
5
|
+
/** Compatibility API. Executables call the command function directly. */
|
|
6
|
+
export declare class InitCommand {
|
|
7
|
+
readonly name = "init";
|
|
8
|
+
matches(args: string[]): boolean;
|
|
9
|
+
execute(args: string[], homeDirectory?: string, output?: InitOutput, environment?: NodeJS.ProcessEnv): Promise<number>;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../../../src/cli/commands/init/index.ts"],"mappings":";;;wBAmDsB,QACpB,gBACA,wBACA,SAAQ,YACR,cAAa,OAAO,aACnB;;qBA4CU;WACF;EAET,QAAQ;EAIF,QACJ,gBACA,wBACA,SAAQ,YACR,cAAa,OAAO,aACnB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InitOutput } from "./presenter.mjs";
|
|
2
|
+
//#region src/cli/commands/init/index.d.ts
|
|
3
|
+
/** Handles the repository-independent `doompi init` command. */
|
|
4
|
+
export declare function runInit(args: string[], homeDirectory?: string, output?: InitOutput, environment?: NodeJS.ProcessEnv): Promise<number>;
|
|
5
|
+
/** Compatibility API. Executables call the command function directly. */
|
|
6
|
+
export declare class InitCommand {
|
|
7
|
+
readonly name = "init";
|
|
8
|
+
matches(args: string[]): boolean;
|
|
9
|
+
execute(args: string[], homeDirectory?: string, output?: InitOutput, environment?: NodeJS.ProcessEnv): Promise<number>;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../src/cli/commands/init/index.ts"],"mappings":";;;wBAmDsB,QACpB,gBACA,wBACA,SAAQ,YACR,cAAa,OAAO,aACnB;;qBA4CU;WACF;EAET,QAAQ;EAIF,QACJ,gBACA,wBACA,SAAQ,YACR,cAAa,OAAO,aACnB"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { initHelp } from "./help.mjs";
|
|
2
|
+
import { wantsHelp } from "../../router.mjs";
|
|
3
|
+
import { writePiExtensionAlias } from "../../../builders/cli/piExtensionAlias/index.mjs";
|
|
4
|
+
import { InitPresenter } from "./presenter.mjs";
|
|
5
|
+
import fs from "node:fs";
|
|
6
|
+
import os from "node:os";
|
|
7
|
+
import { piAgentDirectory, piThemeDirectory, readPiSettings, writePiSettings } from "@agimon-ai/doompi-core/runtime-pi-settings";
|
|
8
|
+
import { DEFAULT_THEME_NAME, writeDefaultTheme } from "@agimon-ai/doompi-ui/theme";
|
|
9
|
+
import { globalDoomConfigDirectory, initializeGlobalDoomConfig } from "@agimon-ai/doompi-config";
|
|
10
|
+
//#region src/cli/commands/init/index.ts
|
|
11
|
+
const INIT_COMMAND = "init";
|
|
12
|
+
const FORCE_FLAG = "--force";
|
|
13
|
+
const SETUP_STAGE_COUNT = 2;
|
|
14
|
+
function setupFailure(activity, target, error) {
|
|
15
|
+
const detail = error instanceof Error ? error.message : String(error);
|
|
16
|
+
return new Error(`doompi init failed while ${activity} at ${target}: ${detail}`, { cause: error });
|
|
17
|
+
}
|
|
18
|
+
async function initializePiIntegration(homeDirectory, environment) {
|
|
19
|
+
const agentDirectory = piAgentDirectory(environment, homeDirectory);
|
|
20
|
+
const before = readPiSettings(agentDirectory);
|
|
21
|
+
const themeDirectory = piThemeDirectory(agentDirectory);
|
|
22
|
+
await fs.promises.mkdir(themeDirectory, { recursive: true });
|
|
23
|
+
const themePath = await writeDefaultTheme(themeDirectory);
|
|
24
|
+
const aliasPath = writePiExtensionAlias(agentDirectory);
|
|
25
|
+
return {
|
|
26
|
+
settingsPath: writePiSettings(agentDirectory, {
|
|
27
|
+
themePath,
|
|
28
|
+
themeName: DEFAULT_THEME_NAME
|
|
29
|
+
}),
|
|
30
|
+
themePath,
|
|
31
|
+
aliasPath,
|
|
32
|
+
before,
|
|
33
|
+
after: readPiSettings(agentDirectory)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/** Handles the repository-independent `doompi init` command. */
|
|
37
|
+
async function runInit(args, homeDirectory = os.homedir(), output = process.stdout, environment = process.env) {
|
|
38
|
+
const flags = args.slice(1);
|
|
39
|
+
const unknown = flags.find((flag) => flag !== FORCE_FLAG);
|
|
40
|
+
if (wantsHelp(args)) {
|
|
41
|
+
process.stdout.write(initHelp());
|
|
42
|
+
return 0;
|
|
43
|
+
}
|
|
44
|
+
if (unknown !== void 0) throw new Error(`doompi init does not accept ${unknown}`);
|
|
45
|
+
const presenter = new InitPresenter(output, environment);
|
|
46
|
+
presenter.brand();
|
|
47
|
+
const configDirectory = globalDoomConfigDirectory(homeDirectory);
|
|
48
|
+
presenter.stage(1, SETUP_STAGE_COUNT, "WRITE CONFIGURATION", configDirectory);
|
|
49
|
+
let configResult;
|
|
50
|
+
try {
|
|
51
|
+
configResult = initializeGlobalDoomConfig(homeDirectory, { force: flags.includes(FORCE_FLAG) });
|
|
52
|
+
presenter.stageReady("Configuration files are ready.");
|
|
53
|
+
} catch (error) {
|
|
54
|
+
presenter.stageFailed("Configuration setup failed.", ["Fix the reported path or permissions, then run doompi init again."]);
|
|
55
|
+
throw setupFailure("writing configuration", configDirectory, error);
|
|
56
|
+
}
|
|
57
|
+
const agentDirectory = piAgentDirectory(environment, homeDirectory);
|
|
58
|
+
presenter.stage(2, SETUP_STAGE_COUNT, "REGISTER WITH PI", agentDirectory);
|
|
59
|
+
let piResult;
|
|
60
|
+
try {
|
|
61
|
+
piResult = await initializePiIntegration(homeDirectory, environment);
|
|
62
|
+
presenter.stageReady("Pi integration is ready.");
|
|
63
|
+
} catch (error) {
|
|
64
|
+
presenter.stageFailed("Pi integration failed.", [`Your DoomPi configuration remains at ${configResult.directory}.`, "Fix the reported settings or filesystem issue, then run doompi init again."]);
|
|
65
|
+
throw setupFailure("registering with Pi", agentDirectory, error);
|
|
66
|
+
}
|
|
67
|
+
presenter.complete(configResult, piResult);
|
|
68
|
+
return 0;
|
|
69
|
+
}
|
|
70
|
+
/** Compatibility API. Executables call the command function directly. */
|
|
71
|
+
var InitCommand = class {
|
|
72
|
+
name = INIT_COMMAND;
|
|
73
|
+
matches(args) {
|
|
74
|
+
return args[0] === this.name;
|
|
75
|
+
}
|
|
76
|
+
async execute(args, homeDirectory = os.homedir(), output = process.stdout, environment = process.env) {
|
|
77
|
+
return runInit(args, homeDirectory, output, environment);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
//#endregion
|
|
81
|
+
export { InitCommand, runInit };
|
|
82
|
+
|
|
83
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/cli/commands/init/index.ts"],"sourcesContent":["import fs from 'node:fs';\nimport os from 'node:os';\n\nimport {\n type GlobalDoomInitResult,\n globalDoomConfigDirectory,\n initializeGlobalDoomConfig,\n} from '@agimon-ai/doompi-config';\nimport {\n piAgentDirectory,\n piThemeDirectory,\n readPiSettings,\n writePiSettings,\n} from '@agimon-ai/doompi-core/runtime-pi-settings';\nimport { DEFAULT_THEME_NAME, writeDefaultTheme } from '@agimon-ai/doompi-ui/theme';\n\nimport { writePiExtensionAlias } from '../../../builders/cli/piExtensionAlias';\nimport { wantsHelp } from '../../router';\nimport { initHelp } from './help';\nimport { InitPresenter, type InitOutput, type PiIntegrationSummary } from './presenter';\n\nconst INIT_COMMAND = 'init';\nconst FORCE_FLAG = '--force';\nconst SETUP_STAGE_COUNT = 2;\n\nfunction setupFailure(activity: string, target: string, error: unknown): Error {\n const detail = error instanceof Error ? error.message : String(error);\n return new Error(`doompi init failed while ${activity} at ${target}: ${detail}`, { cause: error });\n}\n\nasync function initializePiIntegration(\n homeDirectory: string,\n environment: NodeJS.ProcessEnv,\n): Promise<PiIntegrationSummary> {\n const agentDirectory = piAgentDirectory(environment, homeDirectory);\n const before = readPiSettings(agentDirectory);\n const themeDirectory = piThemeDirectory(agentDirectory);\n await fs.promises.mkdir(themeDirectory, { recursive: true });\n const themePath = await writeDefaultTheme(themeDirectory);\n const aliasPath = writePiExtensionAlias(agentDirectory);\n const settingsPath = writePiSettings(agentDirectory, { themePath, themeName: DEFAULT_THEME_NAME });\n return {\n settingsPath,\n themePath,\n aliasPath,\n before,\n after: readPiSettings(agentDirectory),\n };\n}\n\n/** Handles the repository-independent `doompi init` command. */\nexport async function runInit(\n args: string[],\n homeDirectory = os.homedir(),\n output: InitOutput = process.stdout,\n environment: NodeJS.ProcessEnv = process.env,\n): Promise<number> {\n const flags = args.slice(1);\n const unknown = flags.find((flag) => flag !== FORCE_FLAG);\n if (wantsHelp(args)) {\n process.stdout.write(initHelp());\n return 0;\n }\n if (unknown !== undefined) throw new Error(`doompi init does not accept ${unknown}`);\n\n const presenter = new InitPresenter(output, environment);\n presenter.brand();\n\n const configDirectory = globalDoomConfigDirectory(homeDirectory);\n presenter.stage(1, SETUP_STAGE_COUNT, 'WRITE CONFIGURATION', configDirectory);\n let configResult: GlobalDoomInitResult;\n try {\n configResult = initializeGlobalDoomConfig(homeDirectory, { force: flags.includes(FORCE_FLAG) });\n presenter.stageReady('Configuration files are ready.');\n } catch (error) {\n presenter.stageFailed('Configuration setup failed.', [\n 'Fix the reported path or permissions, then run doompi init again.',\n ]);\n throw setupFailure('writing configuration', configDirectory, error);\n }\n\n const agentDirectory = piAgentDirectory(environment, homeDirectory);\n presenter.stage(2, SETUP_STAGE_COUNT, 'REGISTER WITH PI', agentDirectory);\n let piResult: PiIntegrationSummary;\n try {\n piResult = await initializePiIntegration(homeDirectory, environment);\n presenter.stageReady('Pi integration is ready.');\n } catch (error) {\n presenter.stageFailed('Pi integration failed.', [\n `Your DoomPi configuration remains at ${configResult.directory}.`,\n 'Fix the reported settings or filesystem issue, then run doompi init again.',\n ]);\n throw setupFailure('registering with Pi', agentDirectory, error);\n }\n\n presenter.complete(configResult, piResult);\n return 0;\n}\n\n/** Compatibility API. Executables call the command function directly. */\nexport class InitCommand {\n readonly name = INIT_COMMAND;\n\n matches(args: string[]): boolean {\n return args[0] === this.name;\n }\n\n async execute(\n args: string[],\n homeDirectory = os.homedir(),\n output: InitOutput = process.stdout,\n environment: NodeJS.ProcessEnv = process.env,\n ): Promise<number> {\n return runInit(args, homeDirectory, output, environment);\n }\n}\n"],"mappings":";;;;;;;;;;AAqBA,MAAM,eAAe;AACrB,MAAM,aAAa;AACnB,MAAM,oBAAoB;AAE1B,SAAS,aAAa,UAAkB,QAAgB,OAAuB;CAC7E,MAAM,SAAS,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CACpE,OAAO,IAAI,MAAM,4BAA4B,SAAS,MAAM,OAAO,IAAI,UAAU,EAAE,OAAO,MAAM,CAAC;AACnG;AAEA,eAAe,wBACb,eACA,aAC+B;CAC/B,MAAM,iBAAiB,iBAAiB,aAAa,aAAa;CAClE,MAAM,SAAS,eAAe,cAAc;CAC5C,MAAM,iBAAiB,iBAAiB,cAAc;CACtD,MAAM,GAAG,SAAS,MAAM,gBAAgB,EAAE,WAAW,KAAK,CAAC;CAC3D,MAAM,YAAY,MAAM,kBAAkB,cAAc;CACxD,MAAM,YAAY,sBAAsB,cAAc;CAEtD,OAAO;EACL,cAFmB,gBAAgB,gBAAgB;GAAE;GAAW,WAAW;EAAmB,CAEnF;EACX;EACA;EACA;EACA,OAAO,eAAe,cAAc;CACtC;AACF;;AAGA,eAAsB,QACpB,MACA,gBAAgB,GAAG,QAAQ,GAC3B,SAAqB,QAAQ,QAC7B,cAAiC,QAAQ,KACxB;CACjB,MAAM,QAAQ,KAAK,MAAM,CAAC;CAC1B,MAAM,UAAU,MAAM,MAAM,SAAS,SAAS,UAAU;CACxD,IAAI,UAAU,IAAI,GAAG;EACnB,QAAQ,OAAO,MAAM,SAAS,CAAC;EAC/B,OAAO;CACT;CACA,IAAI,YAAY,KAAA,GAAW,MAAM,IAAI,MAAM,+BAA+B,SAAS;CAEnF,MAAM,YAAY,IAAI,cAAc,QAAQ,WAAW;CACvD,UAAU,MAAM;CAEhB,MAAM,kBAAkB,0BAA0B,aAAa;CAC/D,UAAU,MAAM,GAAG,mBAAmB,uBAAuB,eAAe;CAC5E,IAAI;CACJ,IAAI;EACF,eAAe,2BAA2B,eAAe,EAAE,OAAO,MAAM,SAAS,UAAU,EAAE,CAAC;EAC9F,UAAU,WAAW,gCAAgC;CACvD,SAAS,OAAO;EACd,UAAU,YAAY,+BAA+B,CACnD,mEACF,CAAC;EACD,MAAM,aAAa,yBAAyB,iBAAiB,KAAK;CACpE;CAEA,MAAM,iBAAiB,iBAAiB,aAAa,aAAa;CAClE,UAAU,MAAM,GAAG,mBAAmB,oBAAoB,cAAc;CACxE,IAAI;CACJ,IAAI;EACF,WAAW,MAAM,wBAAwB,eAAe,WAAW;EACnE,UAAU,WAAW,0BAA0B;CACjD,SAAS,OAAO;EACd,UAAU,YAAY,0BAA0B,CAC9C,wCAAwC,aAAa,UAAU,IAC/D,4EACF,CAAC;EACD,MAAM,aAAa,uBAAuB,gBAAgB,KAAK;CACjE;CAEA,UAAU,SAAS,cAAc,QAAQ;CACzC,OAAO;AACT;;AAGA,IAAa,cAAb,MAAyB;CACvB,OAAgB;CAEhB,QAAQ,MAAyB;EAC/B,OAAO,KAAK,OAAO,KAAK;CAC1B;CAEA,MAAM,QACJ,MACA,gBAAgB,GAAG,QAAQ,GAC3B,SAAqB,QAAQ,QAC7B,cAAiC,QAAQ,KACxB;EACjB,OAAO,QAAQ,MAAM,eAAe,QAAQ,WAAW;CACzD;AACF"}
|