@agimon-ai/po 0.0.0-alpha.1 → 0.0.0-alpha.100
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/LICENSE +149 -21
- package/README.md +53 -45
- package/dist/baseCommand.mjs +1 -2
- package/dist/bin/cli.cjs +40 -14
- package/dist/bin/cli.cjs.map +1 -1
- package/dist/bin/cli.mjs +37 -14
- package/dist/bin/cli.mjs.map +1 -1
- package/dist/bin/poRunner.cjs +50 -0
- package/dist/bin/poRunner.cjs.map +1 -0
- package/dist/bin/poRunner.d.mts +12 -0
- package/dist/bin/poRunner.d.mts.map +1 -0
- package/dist/bin/poRunner.mjs +49 -0
- package/dist/bin/poRunner.mjs.map +1 -0
- package/dist/bin/serve.cjs +26 -17
- package/dist/bin/serve.cjs.map +1 -1
- package/dist/bin/serve.mjs +26 -17
- package/dist/bin/serve.mjs.map +1 -1
- package/dist/builders/cli/extensionAssembler/index.cjs +29 -17
- package/dist/builders/cli/extensionAssembler/index.cjs.map +1 -1
- package/dist/builders/cli/extensionAssembler/index.d.mts +4 -1
- package/dist/builders/cli/extensionAssembler/index.d.mts.map +1 -1
- package/dist/builders/cli/extensionAssembler/index.mjs +29 -18
- package/dist/builders/cli/extensionAssembler/index.mjs.map +1 -1
- package/dist/catalog/index.json +177 -85
- package/dist/cli.cjs +9 -14
- package/dist/cli.d.mts +1 -3
- package/dist/cli.mjs +1 -3
- package/dist/cliApp.mjs +1 -2
- package/dist/commands.cjs +13 -15
- package/dist/commands.d.mts +1 -2
- package/dist/commands.mjs +1 -2
- package/dist/config.cjs +56 -17
- package/dist/config.d.mts +4 -4
- package/dist/config.mjs +4 -4
- package/dist/doctorCommand.mjs +1 -2
- package/dist/emitMcpCommand.mjs +1 -2
- package/dist/explainCommand.mjs +1 -2
- package/dist/extensions/server.cjs +11 -7
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.d.mts +2 -2
- package/dist/extensions/server.d.mts.map +1 -1
- package/dist/extensions/server.mjs +12 -8
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/harnessContext.mjs +1 -2
- package/dist/harnessState.cjs +66 -11
- package/dist/harnessState.d.mts +2 -2
- package/dist/harnessState.mjs +1 -2
- package/dist/help.cjs +9 -11
- package/dist/help.d.mts +1 -2
- package/dist/help.mjs +1 -2
- package/dist/index.cjs +85 -67
- package/dist/index.d.mts +5 -15
- package/dist/index.mjs +5 -13
- package/dist/initCommand.mjs +1 -2
- package/dist/matrixOptions.mjs +1 -2
- package/dist/options.mjs +1 -2
- package/dist/package.cjs +11 -0
- package/dist/package.cjs.map +1 -0
- package/dist/package.mjs +6 -0
- package/dist/package.mjs.map +1 -0
- package/dist/projectTrust.cjs +2 -2
- package/dist/projectTrust.d.mts +2 -2
- package/dist/projectTrust.mjs +1 -2
- package/dist/repository.cjs +2 -1
- package/dist/repository.d.mts +2 -2
- package/dist/repository.mjs +1 -2
- package/dist/router.mjs +1 -2
- package/dist/services.cjs +2 -16
- package/dist/services.d.mts +1 -6
- package/dist/services.mjs +1 -6
- package/dist/shared.cjs +4 -17
- package/dist/shared.d.mts +2 -2
- package/dist/shared.mjs +1 -2
- package/dist/src/bin/agentDirectory.cjs +25 -15
- package/dist/src/bin/agentDirectory.cjs.map +1 -1
- package/dist/src/bin/agentDirectory.mjs +21 -15
- package/dist/src/bin/agentDirectory.mjs.map +1 -1
- package/dist/src/builders/apiContractExport/index.cjs +17 -17
- package/dist/src/builders/apiContractExport/index.cjs.map +1 -1
- package/dist/src/builders/apiContractExport/index.mjs +19 -19
- package/dist/src/builders/apiContractExport/index.mjs.map +1 -1
- package/dist/src/builders/cli/entryResolution.cjs +5 -5
- package/dist/src/builders/cli/entryResolution.cjs.map +1 -1
- package/dist/src/builders/cli/entryResolution.mjs +4 -4
- package/dist/src/builders/cli/entryResolution.mjs.map +1 -1
- package/dist/src/builders/cli/harnessContext.cjs +28 -24
- package/dist/src/builders/cli/harnessContext.cjs.map +1 -1
- package/dist/src/builders/cli/harnessContext.d.mts +7 -2
- package/dist/src/builders/cli/harnessContext.d.mts.map +1 -1
- package/dist/src/builders/cli/harnessContext.mjs +29 -25
- package/dist/src/builders/cli/harnessContext.mjs.map +1 -1
- package/dist/src/builders/cli/sessionComposition.cjs +2 -6
- package/dist/src/builders/cli/sessionComposition.cjs.map +1 -1
- package/dist/src/builders/cli/sessionComposition.mjs +3 -6
- package/dist/src/builders/cli/sessionComposition.mjs.map +1 -1
- package/dist/src/builders/isolate/compile.cjs +134 -0
- package/dist/src/builders/isolate/compile.cjs.map +1 -0
- package/dist/src/builders/isolate/compile.mjs +129 -0
- package/dist/src/builders/isolate/compile.mjs.map +1 -0
- package/dist/src/builders/isolate/index.cjs +191 -0
- package/dist/src/builders/isolate/index.cjs.map +1 -0
- package/dist/src/builders/isolate/index.mjs +188 -0
- package/dist/src/builders/isolate/index.mjs.map +1 -0
- package/dist/src/builders/isolate/membrane.cjs +198 -0
- package/dist/src/builders/isolate/membrane.cjs.map +1 -0
- package/dist/src/builders/isolate/membrane.mjs +198 -0
- package/dist/src/builders/isolate/membrane.mjs.map +1 -0
- package/dist/src/builders/native/index.cjs +185 -61
- package/dist/src/builders/native/index.cjs.map +1 -1
- package/dist/src/builders/native/index.d.mts +4 -2
- package/dist/src/builders/native/index.d.mts.map +1 -1
- package/dist/src/builders/native/index.mjs +184 -61
- package/dist/src/builders/native/index.mjs.map +1 -1
- package/dist/src/builders/npm/index.cjs +70 -0
- package/dist/src/builders/npm/index.cjs.map +1 -0
- package/dist/src/builders/npm/index.mjs +67 -0
- package/dist/src/builders/npm/index.mjs.map +1 -0
- package/dist/src/builders/server/backgroundSync.cjs +74 -39
- package/dist/src/builders/server/backgroundSync.cjs.map +1 -1
- package/dist/src/builders/server/backgroundSync.mjs +74 -38
- package/dist/src/builders/server/backgroundSync.mjs.map +1 -1
- package/dist/src/builders/server/bundlerService.cjs +248 -0
- package/dist/src/builders/server/bundlerService.cjs.map +1 -0
- package/dist/src/builders/server/bundlerService.mjs +246 -0
- package/dist/src/builders/server/bundlerService.mjs.map +1 -0
- package/dist/src/builders/server/capabilities.cjs +81 -0
- package/dist/src/builders/server/capabilities.cjs.map +1 -0
- package/dist/src/builders/server/capabilities.mjs +79 -0
- package/dist/src/builders/server/capabilities.mjs.map +1 -0
- package/dist/src/builders/server/computerUseBinding.cjs +21 -4
- package/dist/src/builders/server/computerUseBinding.cjs.map +1 -1
- package/dist/src/builders/server/computerUseBinding.mjs +21 -4
- package/dist/src/builders/server/computerUseBinding.mjs.map +1 -1
- package/dist/src/builders/server/computerUseRecordings.cjs +3 -3
- package/dist/src/builders/server/computerUseRecordings.cjs.map +1 -1
- package/dist/src/builders/server/computerUseRecordings.mjs +18 -18
- package/dist/src/builders/server/computerUseRecordings.mjs.map +1 -1
- package/dist/src/builders/server/containedSessions.cjs +141 -0
- package/dist/src/builders/server/containedSessions.cjs.map +1 -0
- package/dist/src/builders/server/containedSessions.mjs +135 -0
- package/dist/src/builders/server/containedSessions.mjs.map +1 -0
- package/dist/src/builders/server/defaultWorkspace.cjs +42 -10
- package/dist/src/builders/server/defaultWorkspace.cjs.map +1 -1
- package/dist/src/builders/server/defaultWorkspace.mjs +40 -10
- package/dist/src/builders/server/defaultWorkspace.mjs.map +1 -1
- package/dist/src/builders/server/electronBinding.cjs +82 -0
- package/dist/src/builders/server/electronBinding.cjs.map +1 -0
- package/dist/src/builders/server/electronBinding.mjs +82 -0
- package/dist/src/builders/server/electronBinding.mjs.map +1 -0
- package/dist/src/builders/server/federation.cjs +316 -0
- package/dist/src/builders/server/federation.cjs.map +1 -0
- package/dist/src/builders/server/federation.mjs +315 -0
- package/dist/src/builders/server/federation.mjs.map +1 -0
- package/dist/src/builders/server/hostDisplayName.cjs +14 -0
- package/dist/src/builders/server/hostDisplayName.cjs.map +1 -0
- package/dist/src/builders/server/hostDisplayName.mjs +14 -0
- package/dist/src/builders/server/hostDisplayName.mjs.map +1 -0
- package/dist/src/builders/server/hostModelGateway.cjs +41 -0
- package/dist/src/builders/server/hostModelGateway.cjs.map +1 -0
- package/dist/src/builders/server/hostModelGateway.mjs +39 -0
- package/dist/src/builders/server/hostModelGateway.mjs.map +1 -0
- package/dist/src/builders/server/idleRestart.cjs +89 -21
- package/dist/src/builders/server/idleRestart.cjs.map +1 -1
- package/dist/src/builders/server/idleRestart.mjs +84 -21
- package/dist/src/builders/server/idleRestart.mjs.map +1 -1
- package/dist/src/builders/server/index.cjs +32 -18
- package/dist/src/builders/server/index.cjs.map +1 -1
- package/dist/src/builders/server/index.mjs +32 -17
- package/dist/src/builders/server/index.mjs.map +1 -1
- package/dist/src/builders/server/logSink.cjs +15 -13
- package/dist/src/builders/server/logSink.cjs.map +1 -1
- package/dist/src/builders/server/logSink.mjs +14 -12
- package/dist/src/builders/server/logSink.mjs.map +1 -1
- package/dist/src/builders/server/mcpApp.cjs +27 -20
- package/dist/src/builders/server/mcpApp.cjs.map +1 -1
- package/dist/src/builders/server/mcpApp.mjs +25 -18
- package/dist/src/builders/server/mcpApp.mjs.map +1 -1
- package/dist/src/builders/server/mcpAppBuild.cjs +47 -43
- package/dist/src/builders/server/mcpAppBuild.cjs.map +1 -1
- package/dist/src/builders/server/mcpAppBuild.d.mts +3 -6
- package/dist/src/builders/server/mcpAppBuild.d.mts.map +1 -1
- package/dist/src/builders/server/mcpAppBuild.mjs +47 -42
- package/dist/src/builders/server/mcpAppBuild.mjs.map +1 -1
- package/dist/src/builders/server/mcpBundle.cjs +16 -12
- package/dist/src/builders/server/mcpBundle.cjs.map +1 -1
- package/dist/src/builders/server/mcpBundle.d.mts +3 -2
- package/dist/src/builders/server/mcpBundle.d.mts.map +1 -1
- package/dist/src/builders/server/mcpBundle.mjs +16 -11
- package/dist/src/builders/server/mcpBundle.mjs.map +1 -1
- package/dist/src/builders/server/nativePush.cjs +206 -0
- package/dist/src/builders/server/nativePush.cjs.map +1 -0
- package/dist/src/builders/server/nativePush.mjs +205 -0
- package/dist/src/builders/server/nativePush.mjs.map +1 -0
- package/dist/src/builders/server/network.cjs +778 -0
- package/dist/src/builders/server/network.cjs.map +1 -0
- package/dist/src/builders/server/network.mjs +777 -0
- package/dist/src/builders/server/network.mjs.map +1 -0
- package/dist/src/builders/server/networkGateway.cjs +123 -0
- package/dist/src/builders/server/networkGateway.cjs.map +1 -0
- package/dist/src/builders/server/networkGateway.mjs +123 -0
- package/dist/src/builders/server/networkGateway.mjs.map +1 -0
- package/dist/src/builders/server/networkRelay.cjs +83 -0
- package/dist/src/builders/server/networkRelay.cjs.map +1 -0
- package/dist/src/builders/server/networkRelay.mjs +81 -0
- package/dist/src/builders/server/networkRelay.mjs.map +1 -0
- package/dist/src/builders/server/packageReloadCheck.cjs +7 -2
- package/dist/src/builders/server/packageReloadCheck.cjs.map +1 -1
- package/dist/src/builders/server/packageReloadCheck.mjs +7 -2
- package/dist/src/builders/server/packageReloadCheck.mjs.map +1 -1
- package/dist/src/builders/server/packageUrl.cjs +71 -61
- package/dist/src/builders/server/packageUrl.cjs.map +1 -1
- package/dist/src/builders/server/packageUrl.mjs +71 -60
- package/dist/src/builders/server/packageUrl.mjs.map +1 -1
- package/dist/src/builders/server/runtime.cjs +1660 -472
- package/dist/src/builders/server/runtime.cjs.map +1 -1
- package/dist/src/builders/server/runtime.mjs +1675 -486
- package/dist/src/builders/server/runtime.mjs.map +1 -1
- package/dist/src/builders/server/runtimeResources.cjs +37 -0
- package/dist/src/builders/server/runtimeResources.cjs.map +1 -1
- package/dist/src/builders/server/runtimeResources.mjs +38 -2
- package/dist/src/builders/server/runtimeResources.mjs.map +1 -1
- package/dist/src/builders/server/sandboxRouter.cjs +734 -0
- package/dist/src/builders/server/sandboxRouter.cjs.map +1 -0
- package/dist/src/builders/server/sandboxRouter.mjs +730 -0
- package/dist/src/builders/server/sandboxRouter.mjs.map +1 -0
- package/dist/src/builders/server/sandboxSessionHandoff.cjs +298 -0
- package/dist/src/builders/server/sandboxSessionHandoff.cjs.map +1 -0
- package/dist/src/builders/server/sandboxSessionHandoff.mjs +287 -0
- package/dist/src/builders/server/sandboxSessionHandoff.mjs.map +1 -0
- package/dist/src/builders/server/selectionStatus.cjs +3 -3
- package/dist/src/builders/server/selectionStatus.cjs.map +1 -1
- package/dist/src/builders/server/selectionStatus.mjs +3 -3
- package/dist/src/builders/server/selectionStatus.mjs.map +1 -1
- package/dist/src/builders/server/sessionArguments.cjs +27 -1
- package/dist/src/builders/server/sessionArguments.cjs.map +1 -1
- package/dist/src/builders/server/sessionArguments.mjs +27 -2
- package/dist/src/builders/server/sessionArguments.mjs.map +1 -1
- package/dist/src/builders/server/sessionRemoval.cjs +233 -0
- package/dist/src/builders/server/sessionRemoval.cjs.map +1 -0
- package/dist/src/builders/server/sessionRemoval.mjs +224 -0
- package/dist/src/builders/server/sessionRemoval.mjs.map +1 -0
- package/dist/src/builders/server/shutdown.cjs +23 -0
- package/dist/src/builders/server/shutdown.cjs.map +1 -1
- package/dist/src/builders/server/shutdown.mjs +21 -1
- package/dist/src/builders/server/shutdown.mjs.map +1 -1
- package/dist/src/builders/server/watcherService.cjs +88 -0
- package/dist/src/builders/server/watcherService.cjs.map +1 -0
- package/dist/src/builders/server/watcherService.mjs +85 -0
- package/dist/src/builders/server/watcherService.mjs.map +1 -0
- package/dist/src/builders/server/webTemplateDecision.cjs +1 -1
- package/dist/src/builders/server/webTemplateDecision.cjs.map +1 -1
- package/dist/src/builders/server/webTemplateDecision.mjs +2 -2
- package/dist/src/builders/server/webTemplateDecision.mjs.map +1 -1
- package/dist/src/builders/server/workspaceAdmission.cjs +96 -0
- package/dist/src/builders/server/workspaceAdmission.cjs.map +1 -0
- package/dist/src/builders/server/workspaceAdmission.mjs +90 -0
- package/dist/src/builders/server/workspaceAdmission.mjs.map +1 -0
- package/dist/src/builders/server/workspaceCheckout.cjs +16 -7
- package/dist/src/builders/server/workspaceCheckout.cjs.map +1 -1
- package/dist/src/builders/server/workspaceCheckout.mjs +16 -7
- package/dist/src/builders/server/workspaceCheckout.mjs.map +1 -1
- package/dist/src/builders/web/bundle.cjs +14 -14
- package/dist/src/builders/web/bundle.cjs.map +1 -1
- package/dist/src/builders/web/bundle.d.mts +4 -3
- package/dist/src/builders/web/bundle.mjs +13 -13
- package/dist/src/builders/web/bundle.mjs.map +1 -1
- package/dist/src/builders/web/bundleAssetPolicy.d.mts +1 -0
- package/dist/src/builders/web/index.cjs +64 -60
- package/dist/src/builders/web/index.cjs.map +1 -1
- package/dist/src/builders/web/index.d.mts +20 -14
- package/dist/src/builders/web/index.d.mts.map +1 -1
- package/dist/src/builders/web/index.mjs +63 -59
- package/dist/src/builders/web/index.mjs.map +1 -1
- package/dist/src/builders/web/webPluginGenerate.cjs +48 -53
- package/dist/src/builders/web/webPluginGenerate.cjs.map +1 -1
- package/dist/src/builders/web/webPluginGenerate.d.mts +9 -13
- package/dist/src/builders/web/webPluginGenerate.d.mts.map +1 -1
- package/dist/src/builders/web/webPluginGenerate.mjs +46 -51
- package/dist/src/builders/web/webPluginGenerate.mjs.map +1 -1
- package/dist/src/builders/web/webPluginManifest.cjs +12 -13
- package/dist/src/builders/web/webPluginManifest.cjs.map +1 -1
- package/dist/src/builders/web/webPluginManifest.d.mts +6 -7
- package/dist/src/builders/web/webPluginManifest.d.mts.map +1 -1
- package/dist/src/builders/web/webPluginManifest.mjs +11 -12
- package/dist/src/builders/web/webPluginManifest.mjs.map +1 -1
- package/dist/src/builders/web/webPluginScan.cjs +11 -8
- package/dist/src/builders/web/webPluginScan.cjs.map +1 -1
- package/dist/src/builders/web/webPluginScan.d.mts +1 -1
- package/dist/src/builders/web/webPluginScan.d.mts.map +1 -1
- package/dist/src/builders/web/webPluginScan.mjs +10 -7
- package/dist/src/builders/web/webPluginScan.mjs.map +1 -1
- package/dist/src/builders/web/webPluginVite.cjs +5 -5
- package/dist/src/builders/web/webPluginVite.cjs.map +1 -1
- package/dist/src/builders/web/webPluginVite.d.mts +2 -1
- package/dist/src/builders/web/webPluginVite.d.mts.map +1 -1
- package/dist/src/builders/web/webPluginVite.mjs +3 -3
- package/dist/src/builders/web/webPluginVite.mjs.map +1 -1
- package/dist/src/cli/cliApp.cjs +12 -12
- package/dist/src/cli/cliApp.cjs.map +1 -1
- package/dist/src/cli/cliApp.d.mts.map +1 -1
- package/dist/src/cli/cliApp.mjs +12 -12
- package/dist/src/cli/cliApp.mjs.map +1 -1
- package/dist/src/cli/commands/doctor/index.cjs +7 -7
- package/dist/src/cli/commands/doctor/index.cjs.map +1 -1
- package/dist/src/cli/commands/doctor/index.d.mts +5 -4
- package/dist/src/cli/commands/doctor/index.d.mts.map +1 -1
- package/dist/src/cli/commands/doctor/index.mjs +9 -9
- package/dist/src/cli/commands/doctor/index.mjs.map +1 -1
- package/dist/src/cli/commands/explain/index.cjs +8 -10
- package/dist/src/cli/commands/explain/index.cjs.map +1 -1
- package/dist/src/cli/commands/explain/index.d.mts +0 -2
- package/dist/src/cli/commands/explain/index.d.mts.map +1 -1
- package/dist/src/cli/commands/explain/index.mjs +8 -10
- package/dist/src/cli/commands/explain/index.mjs.map +1 -1
- package/dist/src/cli/commands/init/index.cjs +2 -2
- package/dist/src/cli/commands/init/index.cjs.map +1 -1
- package/dist/src/cli/commands/init/index.mjs +3 -3
- package/dist/src/cli/commands/init/index.mjs.map +1 -1
- package/dist/src/cli/commands/init/presenter.cjs +1 -1
- package/dist/src/cli/commands/init/presenter.cjs.map +1 -1
- package/dist/src/cli/commands/init/presenter.mjs +2 -2
- package/dist/src/cli/commands/init/presenter.mjs.map +1 -1
- package/dist/src/cli/commands/sync/help.cjs +4 -1
- package/dist/src/cli/commands/sync/help.cjs.map +1 -1
- package/dist/src/cli/commands/sync/help.mjs +4 -1
- package/dist/src/cli/commands/sync/help.mjs.map +1 -1
- package/dist/src/cli/commands/sync/index.cjs +31 -17
- package/dist/src/cli/commands/sync/index.cjs.map +1 -1
- package/dist/src/cli/commands/sync/index.d.mts +1 -0
- package/dist/src/cli/commands/sync/index.d.mts.map +1 -1
- package/dist/src/cli/commands/sync/index.mjs +33 -19
- package/dist/src/cli/commands/sync/index.mjs.map +1 -1
- package/dist/src/cli/commands/sync/presenter.cjs +1 -1
- package/dist/src/cli/commands/sync/presenter.cjs.map +1 -1
- package/dist/src/cli/commands/sync/presenter.d.mts +1 -1
- package/dist/src/cli/commands/sync/presenter.mjs +1 -1
- package/dist/src/cli/commands/sync/presenter.mjs.map +1 -1
- package/dist/src/cli/commands/web/index.cjs +3 -2
- package/dist/src/cli/commands/web/index.cjs.map +1 -1
- package/dist/src/cli/commands/web/index.mjs +2 -1
- package/dist/src/cli/commands/web/index.mjs.map +1 -1
- package/dist/src/cli/harnessOptions.cjs +11 -19
- package/dist/src/cli/harnessOptions.cjs.map +1 -1
- package/dist/src/cli/harnessOptions.d.mts +1 -1
- package/dist/src/cli/harnessOptions.d.mts.map +1 -1
- package/dist/src/cli/harnessOptions.mjs +13 -20
- package/dist/src/cli/harnessOptions.mjs.map +1 -1
- package/dist/src/cli/help.cjs +8 -13
- package/dist/src/cli/help.cjs.map +1 -1
- package/dist/src/cli/help.d.mts +1 -2
- package/dist/src/cli/help.d.mts.map +1 -1
- package/dist/src/cli/help.mjs +3 -7
- package/dist/src/cli/help.mjs.map +1 -1
- package/dist/src/cli/matrixOptions.cjs +1 -1
- package/dist/src/cli/matrixOptions.cjs.map +1 -1
- package/dist/src/cli/matrixOptions.d.mts +1 -1
- package/dist/src/cli/matrixOptions.mjs +1 -1
- package/dist/src/cli/matrixOptions.mjs.map +1 -1
- package/dist/src/cli/options.cjs +0 -24
- package/dist/src/cli/options.cjs.map +1 -1
- package/dist/src/cli/options.d.mts.map +1 -1
- package/dist/src/cli/options.mjs +0 -24
- package/dist/src/cli/options.mjs.map +1 -1
- package/dist/src/cli/router.cjs +0 -1
- package/dist/src/cli/router.cjs.map +1 -1
- package/dist/src/cli/router.d.mts +1 -1
- package/dist/src/cli/router.mjs +0 -1
- package/dist/src/cli/router.mjs.map +1 -1
- package/dist/src/cli/server/options.cjs +18 -2
- package/dist/src/cli/server/options.cjs.map +1 -1
- package/dist/src/cli/server/options.mjs +18 -2
- package/dist/src/cli/server/options.mjs.map +1 -1
- package/dist/src/cli/server/processGuards.cjs +22 -15
- package/dist/src/cli/server/processGuards.cjs.map +1 -1
- package/dist/src/cli/server/processGuards.mjs +21 -14
- package/dist/src/cli/server/processGuards.mjs.map +1 -1
- package/dist/src/cli/server/restartPolicy.cjs +38 -0
- package/dist/src/cli/server/restartPolicy.cjs.map +1 -0
- package/dist/src/cli/server/restartPolicy.d.mts +21 -0
- package/dist/src/cli/server/restartPolicy.d.mts.map +1 -0
- package/dist/src/cli/server/restartPolicy.mjs +36 -0
- package/dist/src/cli/server/restartPolicy.mjs.map +1 -0
- package/dist/src/cli/server/run.cjs +11 -10
- package/dist/src/cli/server/run.cjs.map +1 -1
- package/dist/src/cli/server/run.mjs +12 -11
- package/dist/src/cli/server/run.mjs.map +1 -1
- package/dist/src/cli/server/supervise.cjs +89 -0
- package/dist/src/cli/server/supervise.cjs.map +1 -0
- package/dist/src/cli/server/supervise.mjs +89 -0
- package/dist/src/cli/server/supervise.mjs.map +1 -0
- package/dist/src/composition/harnessState/index.cjs +66 -11
- package/dist/src/composition/harnessState/index.cjs.map +1 -1
- package/dist/src/composition/harnessState/index.d.mts +3 -3
- package/dist/src/composition/harnessState/index.mjs +2 -2
- package/dist/src/composition/harnessState/index.mjs.map +1 -1
- package/dist/src/composition/layerPackageInstaller/index.cjs +147 -72
- package/dist/src/composition/layerPackageInstaller/index.cjs.map +1 -1
- package/dist/src/composition/layerPackageInstaller/index.d.mts.map +1 -1
- package/dist/src/composition/layerPackageInstaller/index.mjs +156 -82
- package/dist/src/composition/layerPackageInstaller/index.mjs.map +1 -1
- package/dist/src/composition/poHomeMigration/index.cjs +47 -27
- package/dist/src/composition/poHomeMigration/index.cjs.map +1 -1
- package/dist/src/composition/poHomeMigration/index.d.mts.map +1 -1
- package/dist/src/composition/poHomeMigration/index.mjs +46 -26
- package/dist/src/composition/poHomeMigration/index.mjs.map +1 -1
- package/dist/src/composition/projectTrust/index.cjs +6 -6
- package/dist/src/composition/projectTrust/index.cjs.map +1 -1
- package/dist/src/composition/projectTrust/index.d.mts +7 -7
- package/dist/src/composition/projectTrust/index.d.mts.map +1 -1
- package/dist/src/composition/projectTrust/index.mjs +6 -6
- package/dist/src/composition/projectTrust/index.mjs.map +1 -1
- package/dist/src/composition/repository/index.cjs +35 -18
- package/dist/src/composition/repository/index.cjs.map +1 -1
- package/dist/src/composition/repository/index.d.mts +14 -7
- package/dist/src/composition/repository/index.d.mts.map +1 -1
- package/dist/src/composition/repository/index.mjs +35 -19
- package/dist/src/composition/repository/index.mjs.map +1 -1
- package/dist/src/composition/syncPrune/index.cjs +22 -15
- package/dist/src/composition/syncPrune/index.cjs.map +1 -1
- package/dist/src/composition/syncPrune/index.d.mts.map +1 -1
- package/dist/src/composition/syncPrune/index.mjs +21 -14
- package/dist/src/composition/syncPrune/index.mjs.map +1 -1
- package/dist/src/composition/syncService/index.cjs +216 -130
- package/dist/src/composition/syncService/index.cjs.map +1 -1
- package/dist/src/composition/syncService/index.d.mts.map +1 -1
- package/dist/src/composition/syncService/index.mjs +218 -133
- package/dist/src/composition/syncService/index.mjs.map +1 -1
- package/dist/src/composition/syncService/localBuilds.cjs +41 -34
- package/dist/src/composition/syncService/localBuilds.cjs.map +1 -1
- package/dist/src/composition/syncService/localBuilds.mjs +40 -33
- package/dist/src/composition/syncService/localBuilds.mjs.map +1 -1
- package/dist/src/composition/types/harness.d.mts +0 -2
- package/dist/src/composition/types/harness.d.mts.map +1 -1
- package/dist/src/extensions/setupDiagnostics.cjs +9 -9
- package/dist/src/extensions/setupDiagnostics.cjs.map +1 -1
- package/dist/src/extensions/setupDiagnostics.mjs +9 -9
- package/dist/src/extensions/setupDiagnostics.mjs.map +1 -1
- package/dist/utils.mjs +1 -2
- package/docs/server/api-export.md +3 -3
- package/docs/server/api.md +23 -22
- package/docs/server/getting-started.md +7 -7
- package/docs/server/index.md +7 -5
- package/docs/server/ipc.md +7 -11
- package/docs/server/lifecycle.md +17 -17
- package/docs/server/security.md +8 -8
- package/package.json +53 -83
- package/src/prompts/po-author-extension/SKILL.md +1 -1
- package/src/prompts/po-author-extension/references/extension-contract.md +5 -7
- package/dist/antigravity.cjs +0 -5
- package/dist/antigravity.d.mts +0 -2
- package/dist/antigravity.mjs +0 -2
- package/dist/bin/doomRunner.cjs +0 -33
- package/dist/bin/doomRunner.cjs.map +0 -1
- package/dist/bin/doomRunner.d.mts +0 -4
- package/dist/bin/doomRunner.d.mts.map +0 -1
- package/dist/bin/doomRunner.mjs +0 -32
- package/dist/bin/doomRunner.mjs.map +0 -1
- package/dist/codex.cjs +0 -8
- package/dist/codex.d.mts +0 -2
- package/dist/codex.mjs +0 -2
- package/dist/compatibility.cjs +0 -27
- package/dist/compatibility.d.mts +0 -6
- package/dist/compatibility.mjs +0 -6
- package/dist/compatibilityCommand.cjs +0 -4
- package/dist/compatibilityCommand.d.mts +0 -2
- package/dist/compatibilityCommand.mjs +0 -2
- package/dist/compatibilityContext.cjs +0 -3
- package/dist/compatibilityContext.d.mts +0 -2
- package/dist/compatibilityContext.mjs +0 -2
- package/dist/compatibilityOptions.cjs +0 -5
- package/dist/compatibilityOptions.d.mts +0 -2
- package/dist/compatibilityOptions.mjs +0 -2
- package/dist/process.cjs +0 -12
- package/dist/process.d.mts +0 -2
- package/dist/process.mjs +0 -2
- package/dist/src/builders/hooks/index.cjs +0 -238
- package/dist/src/builders/hooks/index.cjs.map +0 -1
- package/dist/src/builders/hooks/index.mjs +0 -231
- package/dist/src/builders/hooks/index.mjs.map +0 -1
- package/dist/src/cli/commands/compat/context.cjs +0 -115
- package/dist/src/cli/commands/compat/context.cjs.map +0 -1
- package/dist/src/cli/commands/compat/context.d.mts +0 -22
- package/dist/src/cli/commands/compat/context.d.mts.map +0 -1
- package/dist/src/cli/commands/compat/context.mjs +0 -110
- package/dist/src/cli/commands/compat/context.mjs.map +0 -1
- package/dist/src/cli/commands/compat/help.cjs +0 -26
- package/dist/src/cli/commands/compat/help.cjs.map +0 -1
- package/dist/src/cli/commands/compat/help.d.mts +0 -4
- package/dist/src/cli/commands/compat/help.d.mts.map +0 -1
- package/dist/src/cli/commands/compat/help.mjs +0 -25
- package/dist/src/cli/commands/compat/help.mjs.map +0 -1
- package/dist/src/cli/commands/compat/index.cjs +0 -73
- package/dist/src/cli/commands/compat/index.cjs.map +0 -1
- package/dist/src/cli/commands/compat/index.d.mts +0 -14
- package/dist/src/cli/commands/compat/index.d.mts.map +0 -1
- package/dist/src/cli/commands/compat/index.mjs +0 -70
- package/dist/src/cli/commands/compat/index.mjs.map +0 -1
- package/dist/src/cli/commands/compat/options.cjs +0 -88
- package/dist/src/cli/commands/compat/options.cjs.map +0 -1
- package/dist/src/cli/commands/compat/options.d.mts +0 -15
- package/dist/src/cli/commands/compat/options.d.mts.map +0 -1
- package/dist/src/cli/commands/compat/options.mjs +0 -86
- package/dist/src/cli/commands/compat/options.mjs.map +0 -1
- package/dist/src/cli/commands/compat/providers/antigravity.cjs +0 -294
- package/dist/src/cli/commands/compat/providers/antigravity.cjs.map +0 -1
- package/dist/src/cli/commands/compat/providers/antigravity.d.mts +0 -9
- package/dist/src/cli/commands/compat/providers/antigravity.d.mts.map +0 -1
- package/dist/src/cli/commands/compat/providers/antigravity.mjs +0 -289
- package/dist/src/cli/commands/compat/providers/antigravity.mjs.map +0 -1
- package/dist/src/cli/commands/compat/providers/codex.cjs +0 -178
- package/dist/src/cli/commands/compat/providers/codex.cjs.map +0 -1
- package/dist/src/cli/commands/compat/providers/codex.d.mts +0 -17
- package/dist/src/cli/commands/compat/providers/codex.d.mts.map +0 -1
- package/dist/src/cli/commands/compat/providers/codex.mjs +0 -170
- package/dist/src/cli/commands/compat/providers/codex.mjs.map +0 -1
- package/dist/src/cli/commands/compat/providers/index.cjs +0 -65
- package/dist/src/cli/commands/compat/providers/index.cjs.map +0 -1
- package/dist/src/cli/commands/compat/providers/index.d.mts +0 -15
- package/dist/src/cli/commands/compat/providers/index.d.mts.map +0 -1
- package/dist/src/cli/commands/compat/providers/index.mjs +0 -45
- package/dist/src/cli/commands/compat/providers/index.mjs.map +0 -1
- package/dist/src/cli/commands/compat/providers/process.cjs +0 -172
- package/dist/src/cli/commands/compat/providers/process.cjs.map +0 -1
- package/dist/src/cli/commands/compat/providers/process.d.mts +0 -33
- package/dist/src/cli/commands/compat/providers/process.d.mts.map +0 -1
- package/dist/src/cli/commands/compat/providers/process.mjs +0 -159
- package/dist/src/cli/commands/compat/providers/process.mjs.map +0 -1
- package/dist/src/cli/commands/compat/providers/shared.cjs +0 -76
- package/dist/src/cli/commands/compat/providers/shared.cjs.map +0 -1
- package/dist/src/cli/commands/compat/providers/shared.d.mts +0 -40
- package/dist/src/cli/commands/compat/providers/shared.d.mts.map +0 -1
- package/dist/src/cli/commands/compat/providers/shared.mjs +0 -61
- package/dist/src/cli/commands/compat/providers/shared.mjs.map +0 -1
- package/dist/src/cli/commands/compat/types.d.mts +0 -31
- package/dist/src/cli/commands/compat/types.d.mts.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,149 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
License text copyright © 2017 MariaDB Corporation Ab, All Rights Reserved.
|
|
2
|
+
"Business Source License" is a trademark of MariaDB Corporation Ab.
|
|
3
|
+
|
|
4
|
+
Parameters
|
|
5
|
+
|
|
6
|
+
Licensor: Agimon Pty Ltd
|
|
7
|
+
Licensed Work: Po, the software in the Po source repository and the
|
|
8
|
+
packages released from it, in each version released by
|
|
9
|
+
the Licensor.
|
|
10
|
+
The Licensed Work is (c) 2026 Agimon Pty Ltd.
|
|
11
|
+
Material identified as third-party in the "Third-party
|
|
12
|
+
components" section at the end of this file or in a
|
|
13
|
+
NOTICE file, and any package or directory whose own
|
|
14
|
+
license file grants a different license, is not part of
|
|
15
|
+
the Licensed Work and remains under its own license.
|
|
16
|
+
Additional Use Grant: You may make production use of the Licensed Work if
|
|
17
|
+
your use is Eligible Use. "Eligible Use" is production use that falls
|
|
18
|
+
within at least one of the following:
|
|
19
|
+
|
|
20
|
+
(a) Personal Use. Use by an individual for their own personal purposes,
|
|
21
|
+
and not on behalf of, or for the benefit of, an employer, client, or
|
|
22
|
+
other Organization. Use by an individual in the course of employment
|
|
23
|
+
or engagement by an Organization is use by that Organization.
|
|
24
|
+
|
|
25
|
+
(b) Small Organization Use. Use by or on behalf of an Organization whose
|
|
26
|
+
Annual Revenue is less than USD 1,000,000.
|
|
27
|
+
|
|
28
|
+
(c) Non-profit, Education and Research Use. Use, regardless of Annual
|
|
29
|
+
Revenue, by (i) an Organization registered or recognized as a
|
|
30
|
+
non-profit or charitable organization under the laws of its
|
|
31
|
+
jurisdiction, for its non-profit purposes; (ii) an accredited school,
|
|
32
|
+
college, or university, for teaching, learning, or academic research;
|
|
33
|
+
or (iii) a publicly funded research institution, for its research.
|
|
34
|
+
|
|
35
|
+
(d) Service Provider Use. Use by a consultant, contractor, agency, or other
|
|
36
|
+
service provider, regardless of its own Annual Revenue, solely to
|
|
37
|
+
build, deploy, host, operate, or support the Licensed Work for a client
|
|
38
|
+
whose own use would be Eligible Use under (a), (b), or (c). A service
|
|
39
|
+
provider's use for its own purposes is Eligible Use only if the service
|
|
40
|
+
provider itself qualifies under (b) or (c).
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
Hosted services. Offering the Licensed Work to third parties as a hosted
|
|
44
|
+
or managed service whose primary value is the Licensed Work is Eligible
|
|
45
|
+
Use only if each such third party's own use would be Eligible Use.
|
|
46
|
+
|
|
47
|
+
Definitions. "Organization" means any company, partnership, sole
|
|
48
|
+
proprietorship, trust, association, government body, or other entity, and
|
|
49
|
+
includes an individual acting in a business or professional capacity.
|
|
50
|
+
"Affiliate" means any entity that directly or indirectly controls, is
|
|
51
|
+
controlled by, or is under common control with an Organization, where
|
|
52
|
+
"control" means ownership of more than 50% of the voting interests of an
|
|
53
|
+
entity or the power to direct its management and policies by contract or
|
|
54
|
+
otherwise. "Annual Revenue" means the total gross revenue of an
|
|
55
|
+
Organization and all of its Affiliates combined, from all sources and
|
|
56
|
+
whether or not related to the Licensed Work, for its most recently
|
|
57
|
+
completed fiscal year, or, if it has not completed a fiscal year, for the
|
|
58
|
+
twelve months before the use (or since its formation, if shorter),
|
|
59
|
+
converted into US dollars at the average exchange rate for that period.
|
|
60
|
+
Proceeds of equity or debt financing are not revenue.
|
|
61
|
+
|
|
62
|
+
Threshold. If an Organization stops qualifying under (b), its existing
|
|
63
|
+
production use remains Eligible Use for 90 days after it stops
|
|
64
|
+
qualifying, after which it must obtain a commercial license or stop
|
|
65
|
+
production use. Use that was Eligible Use when it occurred never requires
|
|
66
|
+
a commercial license after the fact.
|
|
67
|
+
Change Date: Four years from the date a version of the Licensed Work
|
|
68
|
+
is first publicly released by the Licensor.
|
|
69
|
+
Change License: Apache License, Version 2.0
|
|
70
|
+
|
|
71
|
+
For information about alternative licensing arrangements for the Licensed
|
|
72
|
+
Work, please visit: https://agimon.ai/licensing
|
|
73
|
+
|
|
74
|
+
Notice
|
|
75
|
+
|
|
76
|
+
The Business Source License (this document, or the "License") is not an Open
|
|
77
|
+
Source license. However, the Licensed Work will eventually be made available
|
|
78
|
+
under an Open Source License, as stated in this License.
|
|
79
|
+
|
|
80
|
+
-----------------------------------------------------------------------------
|
|
81
|
+
|
|
82
|
+
Business Source License 1.1
|
|
83
|
+
|
|
84
|
+
Terms
|
|
85
|
+
|
|
86
|
+
The Licensor hereby grants you the right to copy, modify, create derivative
|
|
87
|
+
works, redistribute, and make non-production use of the Licensed Work. The
|
|
88
|
+
Licensor may make an Additional Use Grant, above, permitting limited
|
|
89
|
+
production use.
|
|
90
|
+
|
|
91
|
+
Effective on the Change Date, or the fourth anniversary of the first publicly
|
|
92
|
+
available distribution of a specific version of the Licensed Work under this
|
|
93
|
+
License, whichever comes first, the Licensor hereby grants you rights under
|
|
94
|
+
the terms of the Change License, and the rights granted in the paragraph
|
|
95
|
+
above terminate.
|
|
96
|
+
|
|
97
|
+
If your use of the Licensed Work does not comply with the requirements
|
|
98
|
+
currently in effect as described in this License, you must purchase a
|
|
99
|
+
commercial license from the Licensor, its affiliated entities, or authorized
|
|
100
|
+
resellers, or you must refrain from using the Licensed Work.
|
|
101
|
+
|
|
102
|
+
All copies of the original and modified Licensed Work, and derivative works
|
|
103
|
+
of the Licensed Work, are subject to this License. This License applies
|
|
104
|
+
separately for each version of the Licensed Work and the Change Date may vary
|
|
105
|
+
for each version of the Licensed Work released by Licensor.
|
|
106
|
+
|
|
107
|
+
You must conspicuously display this License on each original or modified copy
|
|
108
|
+
of the Licensed Work. If you receive the Licensed Work in original or
|
|
109
|
+
modified form from a third party, the terms and conditions set forth in this
|
|
110
|
+
License apply to your use of that work.
|
|
111
|
+
|
|
112
|
+
Any use of the Licensed Work in violation of this License will automatically
|
|
113
|
+
terminate your rights under this License for the current and all other
|
|
114
|
+
versions of the Licensed Work.
|
|
115
|
+
|
|
116
|
+
This License does not grant you any right in any trademark or logo of
|
|
117
|
+
Licensor or its affiliates (provided that you may use a trademark or logo of
|
|
118
|
+
Licensor as expressly required by this License).
|
|
119
|
+
|
|
120
|
+
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
121
|
+
AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
122
|
+
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
123
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
124
|
+
TITLE.
|
|
125
|
+
|
|
126
|
+
MariaDB hereby grants you permission to use this License’s text to license
|
|
127
|
+
your works, and to refer to it using the trademark “Business Source License”,
|
|
128
|
+
as long as you comply with the Covenants of Licensor below.
|
|
129
|
+
|
|
130
|
+
Covenants of Licensor
|
|
131
|
+
|
|
132
|
+
In consideration of the right to use this License’s text and the “Business
|
|
133
|
+
Source License” name and trademark, Licensor covenants to MariaDB, and to all
|
|
134
|
+
other recipients of the licensed work to be provided by Licensor:
|
|
135
|
+
|
|
136
|
+
1. To specify as the Change License the GPL Version 2.0 or any later version,
|
|
137
|
+
or a license that is compatible with GPL Version 2.0 or a later version,
|
|
138
|
+
where “compatible” means that software provided under the Change License can
|
|
139
|
+
be included in a program with software provided under GPL Version 2.0 or a
|
|
140
|
+
later version. Licensor may specify additional Change Licenses without
|
|
141
|
+
limitation.
|
|
142
|
+
|
|
143
|
+
2. To either: (a) specify an additional grant of rights to use that does not
|
|
144
|
+
impose any additional restriction on the right granted in this License, as
|
|
145
|
+
the Additional Use Grant; or (b) insert the text “None”.
|
|
146
|
+
|
|
147
|
+
3. To specify a Change Date.
|
|
148
|
+
|
|
149
|
+
4. Not to modify this License in any other way.
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ denylist are repository-wide. Po draws that loading boundary around the session.
|
|
|
19
19
|
mode and some domains; add a profile if you want one. Four YAML files decide what loads;
|
|
20
20
|
`po --explain` tells you what got in, why, and what it costs before launch.
|
|
21
21
|
|
|
22
|
-
It borrows its shape from [
|
|
22
|
+
It borrows its shape from [Po Emacs Core](https://github.com/poemacs/core): quick to
|
|
23
23
|
start, close to Pi, opinionated where defaults help, and easy to pull apart when they do
|
|
24
24
|
not. Use it as-is, build your own config on top, or raid it for parts.
|
|
25
25
|
|
|
@@ -121,9 +121,8 @@ and keep their model tools and skills out of context until turned on. Po ships s
|
|
|
121
121
|
|
|
122
122
|
- **Help mode:** expose package-owned guidance only while you need it.
|
|
123
123
|
- **Plan mode:** remove Pi's file-editing tools while you agree on an approach.
|
|
124
|
-
- **
|
|
124
|
+
- **Calendar layer:** schedule durable prompts, workflows and plugin actions while the server is up.
|
|
125
125
|
- **Goal mode:** keep one objective in view until it is done or dismissed.
|
|
126
|
-
- **Workflow mode:** run jobs with dependencies, timeouts, and artifacts.
|
|
127
126
|
- **Voice mode:** replace typing with local speech.
|
|
128
127
|
|
|
129
128
|
### Domains
|
|
@@ -205,7 +204,7 @@ house, and the primary agent can speak its own opening, milestone, and final upd
|
|
|
205
204
|
|
|
206
205
|
### Autopilot
|
|
207
206
|
|
|
208
|
-
Copilot helps while you are present.
|
|
207
|
+
Copilot helps while you are present. Calendar and Workflow keep work moving when you are not.
|
|
209
208
|
Together they can dispatch structured jobs from one live session.
|
|
210
209
|
|
|
211
210
|
#### Workflows
|
|
@@ -232,8 +231,8 @@ automations/workflows/
|
|
|
232
231
|
Each plugin has both `.codex-plugin/plugin.json` and `.claude-plugin/plugin.json`, while its
|
|
233
232
|
`skills/` and `agents/` content is shared. `.po/domains.yaml` exposes the `development`,
|
|
234
233
|
`testing`, and `blog` domains plus the `engineering` alias. `.po/modes.yaml` mirrors the
|
|
235
|
-
standalone package set with workspace-local paths, keeps its canonical modes, and adds
|
|
236
|
-
`examples` base mode for the tracked workflows. Inspect the exact session before launch:
|
|
234
|
+
standalone package set with workspace-local paths, keeps its canonical modes, and adds an
|
|
235
|
+
`examples` base mode with the `workflow` layer for the tracked workflows. Inspect the exact session before launch:
|
|
237
236
|
|
|
238
237
|
```bash
|
|
239
238
|
po --major-mode examples --domains engineering --explain
|
|
@@ -270,10 +269,10 @@ not create branches, commits, or pushes. Blog runs leave review-ready Markdown,
|
|
|
270
269
|
publication checklist in the workflow run directory without writing into a site or calling a CMS.
|
|
271
270
|
These examples live in the source repository and are not part of the published npm tarball.
|
|
272
271
|
|
|
273
|
-
####
|
|
272
|
+
#### Calendar
|
|
274
273
|
|
|
275
274
|
Workflow definitions are exposed like skills, so the agent can choose one for the job. A
|
|
276
|
-
|
|
275
|
+
Calendar event can send a subagent to fetch the next task, then dispatch the workflow that matches
|
|
277
276
|
it. One session becomes the dispatcher instead of the place every job has to fit.
|
|
278
277
|
|
|
279
278
|
## Features
|
|
@@ -304,8 +303,11 @@ produce editable anchors for writable files while preserving native output for n
|
|
|
304
303
|
[`@agimon-ai/po-edit`][pkg-po-edit] replaces Pi's search-and-replace `edit` tool with
|
|
305
304
|
stale-safe ranges anchored to the file content the model read or searched.
|
|
306
305
|
[`@agimon-ai/po-file-edit`][pkg-po-file-edit] keeps the edit timeline and file snapshots.
|
|
306
|
+
The fixed `@agimon-ai/po-artifact` package gives each session a durable artifact folder,
|
|
307
|
+
names it in the system prompt, and shows recent artifacts in web and native Activity.
|
|
308
|
+
The Artifacts heading opens all files in that session's folder as a grid.
|
|
307
309
|
[`@agimon-ai/po-log`][pkg-po-log] collects session events, while
|
|
308
|
-
|
|
310
|
+
`@agimon-ai/po-core/telemetry` is the library-level telemetry adapter. Po Log's `logsink` code-mode namespace reads session evidence and explicitly selected cross-session history.
|
|
309
311
|
|
|
310
312
|
Runner selects matching RMUX and RTK native artifacts automatically. Do not install them directly.
|
|
311
313
|
The packages cover macOS and Linux on arm64 and x64 for both [RMUX][pkg-rmux-darwin-arm64] and
|
|
@@ -340,7 +342,7 @@ generated mode gets it. Short commands still return inline; commands that pass t
|
|
|
340
342
|
threshold of 60 seconds by default move into the background with durable logs. Use
|
|
341
343
|
`background: true` for an immediate detached run or `interactive: true` when the command needs
|
|
342
344
|
terminal input. Runner IDs and complete raw logs remain available to the current session through
|
|
343
|
-
the `
|
|
345
|
+
the `po-runner` CLI. Runner tries bundled RMUX, then `rmux` on PATH,
|
|
344
346
|
then `tmux` on PATH. If no pane backend accepts the run, non-interactive commands use a supervised
|
|
345
347
|
subprocess; interactive commands require RMUX or tmux. Conservatively recognized single commands
|
|
346
348
|
use the matching RTK stdin filter after completion. Compound commands, pipelines, incompatible
|
|
@@ -392,11 +394,9 @@ choices, and accepts the next spoken response as an ordinary user message.
|
|
|
392
394
|
|
|
393
395
|
Po logging records operational metadata such as counters, spans, session IDs, tool names, and
|
|
394
396
|
errors. Callers remain responsible for values they attach to telemetry. Native diagnostics expose
|
|
395
|
-
current-session metrics, and [`@agimon-ai/
|
|
397
|
+
current-session metrics, and [`@agimon-ai/po-logsink`][pkg-po-logsink] provides historical lookup
|
|
396
398
|
when a sink is configured.
|
|
397
399
|
|
|
398
|
-
### Modes and automation
|
|
399
|
-
|
|
400
400
|
#### Plan mode
|
|
401
401
|
|
|
402
402
|
A promise to "only plan" is not a permission boundary. [`@agimon-ai/po-plan`][pkg-po-plan]
|
|
@@ -405,11 +405,13 @@ for approval. It does not sandbox Bash, external tools, or the operating system.
|
|
|
405
405
|
planning tools and web review surface; terminal planning menus are no longer available.
|
|
406
406
|
Turn it on when the approach should be settled before the files move.
|
|
407
407
|
|
|
408
|
-
####
|
|
408
|
+
#### Calendar layer
|
|
409
409
|
|
|
410
|
-
[`@agimon-ai/po-
|
|
411
|
-
|
|
412
|
-
|
|
410
|
+
[`@agimon-ai/po-calendar`][pkg-po-calendar] schedules durable prompts, workflows and plugin actions.
|
|
411
|
+
Keep the calendar layer in the home default major mode for the scheduler. Workflow success means launched,
|
|
412
|
+
not finished. Plugin-managed events cannot be edited, but pause, resume, run now and cancel remain available.
|
|
413
|
+
Busy runs and downtime are skipped, never replayed. Back up before upgrading: older Calendar versions
|
|
414
|
+
cannot read events saved with workflow, action or assignment fields.
|
|
413
415
|
|
|
414
416
|
#### Goal mode
|
|
415
417
|
|
|
@@ -417,7 +419,7 @@ and `loop_stop` tools control recurring checks and prompts in the current sessio
|
|
|
417
419
|
you end it. Native goal tools manage the active objective and repository history. Finished goals
|
|
418
420
|
stop contributing active instructions and tools but remain in history when you want to restart one.
|
|
419
421
|
|
|
420
|
-
#### Workflow
|
|
422
|
+
#### Workflow layer
|
|
421
423
|
|
|
422
424
|
[`@agimon-ai/po-workflow`][pkg-po-workflow] runs GitHub Actions-style job graphs with
|
|
423
425
|
dependencies, timeouts, artifacts, and a separate Po session for each step. Native workflow tools
|
|
@@ -489,7 +491,6 @@ configuration:
|
|
|
489
491
|
default:
|
|
490
492
|
packages:
|
|
491
493
|
- '@agimon-ai/po-help'
|
|
492
|
-
- '@agimon-ai/po-hook'
|
|
493
494
|
- '@agimon-ai/po-goal'
|
|
494
495
|
- '@agimon-ai/po-voice'
|
|
495
496
|
- '@agimon-ai/po-runner'
|
|
@@ -498,13 +499,17 @@ default:
|
|
|
498
499
|
- '@agimon-ai/po-edit'
|
|
499
500
|
- '@agimon-ai/po-file-edit'
|
|
500
501
|
- '@agimon-ai/po-autocompact'
|
|
501
|
-
- '@agimon-ai/po-loop'
|
|
502
502
|
- '@agimon-ai/po-plan'
|
|
503
|
-
- '@agimon-ai/po-workflow'
|
|
504
503
|
- '@agimon-ai/po-log'
|
|
505
504
|
- '@agimon-ai/po-mcp'
|
|
506
505
|
|
|
507
506
|
layers:
|
|
507
|
+
calendar:
|
|
508
|
+
packages:
|
|
509
|
+
- '@agimon-ai/po-calendar'
|
|
510
|
+
workflow:
|
|
511
|
+
packages:
|
|
512
|
+
- '@agimon-ai/po-workflow'
|
|
508
513
|
team:
|
|
509
514
|
packages:
|
|
510
515
|
- name: '@agimon-ai/po-team'
|
|
@@ -520,10 +525,10 @@ defaultMajorMode: copilot
|
|
|
520
525
|
majorMode:
|
|
521
526
|
minimal:
|
|
522
527
|
description: Lean sessions with delegation and little else.
|
|
523
|
-
layers: [team]
|
|
528
|
+
layers: [team, workflow, calendar]
|
|
524
529
|
copilot:
|
|
525
530
|
description: General coding with delegation and review tools.
|
|
526
|
-
layers: [team, review]
|
|
531
|
+
layers: [team, review, workflow, calendar]
|
|
527
532
|
```
|
|
528
533
|
|
|
529
534
|
Order matters: Po assembles `default.packages` first, then the selected layers and their
|
|
@@ -533,6 +538,11 @@ composition, not a mystery bag of shared configuration. Home and repository `lay
|
|
|
533
538
|
sources declare `default`, the repository block replaces the personal block as one whole package
|
|
534
539
|
list.
|
|
535
540
|
|
|
541
|
+
Workflow is selected through the `workflow` layer, not a minor-mode switch. New seeds
|
|
542
|
+
include it in `minimal`, `copilot` and `examples`; remove the layer from a mode to omit it.
|
|
543
|
+
Existing `default.packages` entries still work and deduplicate with the layer. No config
|
|
544
|
+
migration runs, and persisted `minorModes: [workflow]` has no effect.
|
|
545
|
+
|
|
536
546
|
Configurations created before the hashline tools were split may contain only `po-edit`.
|
|
537
547
|
Replace that entry with the ordered `po-read`, `po-grep`, and `po-edit` trio. Init
|
|
538
548
|
preserves existing configuration unless it is run with `--force`.
|
|
@@ -647,23 +657,22 @@ process environment and operating-system privileges; their logs may contain comm
|
|
|
647
657
|
secrets. MCP credentials may live in the system keyring or private configuration files.
|
|
648
658
|
|
|
649
659
|
Voice can keep PCM capture and transcription local when local engines are selected, but transcript
|
|
650
|
-
text and model requests follow the configured providers.
|
|
660
|
+
text and model requests follow the configured providers. Calendar, Workflow, Plan, Autocompact, Team,
|
|
651
661
|
and autonomous Voice can make additional model calls. Telemetry is disabled or redirected through
|
|
652
662
|
its owning package's controls; values supplied by callers are not automatically scrubbed.
|
|
653
663
|
|
|
654
664
|
## CLI reference
|
|
655
665
|
|
|
656
|
-
| Command or option
|
|
657
|
-
|
|
|
658
|
-
| `po`
|
|
659
|
-
| `po init`
|
|
660
|
-
| `po sync`
|
|
661
|
-
| `po sync --check`
|
|
662
|
-
| `po
|
|
663
|
-
| `
|
|
664
|
-
| `--
|
|
665
|
-
|
|
|
666
|
-
| `--` and remaining arguments | Forwards provider or Pi arguments unchanged where the selected command allows it |
|
|
666
|
+
| Command or option | What it does |
|
|
667
|
+
| ------------------------------ | ---------------------------------------------------------------------------------- |
|
|
668
|
+
| `po` | Starts the `po-web` console and its headless `po-server`; arguments go to po-web |
|
|
669
|
+
| `po init` | Seeds personal config and removes Po entries earlier versions wrote to Pi settings |
|
|
670
|
+
| `po sync` | Publishes the current repository, or the global composition outside repositories |
|
|
671
|
+
| `po sync --check` | Exits non-zero when the applicable registered generation is missing or stale |
|
|
672
|
+
| `po-runner` | Inspects and controls supervised Runner processes and logs |
|
|
673
|
+
| `--explain` | Prints the resolved matrix and estimated prompt cost without launching Pi |
|
|
674
|
+
| `--emit-mcp <dir>`, `--no-mcp` | Writes the resolved MCP config or disables MCP for one run |
|
|
675
|
+
| `--` and remaining arguments | Forwards provider or Pi arguments unchanged where the selected command allows it |
|
|
667
676
|
|
|
668
677
|
## Troubleshooting and direct use
|
|
669
678
|
|
|
@@ -671,13 +680,13 @@ its owning package's controls; values supplied by callers are not automatically
|
|
|
671
680
|
to install them and rebuild synchronized state.
|
|
672
681
|
- If neither RMUX nor tmux is available, non-interactive Runner calls report the supervised subprocess
|
|
673
682
|
fallback. Interactive calls require RMUX or tmux. Linux native artifacts require a compatible loader and libc.
|
|
674
|
-
- Po-owned packages expose native server, web, and MCP
|
|
675
|
-
`npm install` or select them in `modes.yaml`. Third-party Pi settings packages still load
|
|
676
|
-
the upstream SDK extension host, including provider registration before model selection.
|
|
683
|
+
- Po-owned packages expose native server, web, and MCP contributions, not Pi entry points. Install
|
|
684
|
+
them with `npm install` or select them in `modes.yaml`. Third-party Pi settings packages still load
|
|
685
|
+
through the upstream SDK extension host, including provider registration before model selection.
|
|
677
686
|
- Terminal leader menus, shortcuts, overlays, and widgets are no longer shipped. Native commands,
|
|
678
687
|
tools, and web panels remain where the owning package provides them. RMUX and RTK artifacts are
|
|
679
688
|
selected by Runner and should not be installed directly.
|
|
680
|
-
- The root `
|
|
689
|
+
- The root `po-runner` command delegates to Runner from the active repository and asks you to add
|
|
681
690
|
Runner to `modes.yaml` when it is absent. The distribution remains the supported way to get the
|
|
682
691
|
coordinated defaults.
|
|
683
692
|
- The Ollama preset and launcher `--mute` and `--auto-stop` flags are retired. They do not have
|
|
@@ -686,8 +695,8 @@ its owning package's controls; values supplied by callers are not automatically
|
|
|
686
695
|
## Architecture
|
|
687
696
|
|
|
688
697
|
See [Architecture](https://github.com/AgiFlow/po/blob/main/docs/architecture.md) for native
|
|
689
|
-
server/web/MCP
|
|
690
|
-
lifecycle ownership, and parent/child isolation. Po no longer composes its own Pi factories;
|
|
698
|
+
server/web/MCP contributions, canonical fingerprints, transition classification, shared-host
|
|
699
|
+
Cordis lifecycle ownership, and parent/child isolation. Po no longer composes its own Pi factories;
|
|
691
700
|
third-party Pi packages remain supported through the SDK host.
|
|
692
701
|
|
|
693
702
|
## Development
|
|
@@ -706,7 +715,7 @@ Po is maintained by [Agimon](https://agimon.ai/about).
|
|
|
706
715
|
|
|
707
716
|
## License
|
|
708
717
|
|
|
709
|
-
|
|
718
|
+
Business Source License 1.1: free for personal use, organisations under USD 1M revenue, non-profits and education. See [LICENSE](LICENSE) and https://agimon.ai/licensing.
|
|
710
719
|
|
|
711
720
|
## Maintainer release order
|
|
712
721
|
|
|
@@ -730,7 +739,6 @@ loaded extension graph inside the same release boundary as the packages that con
|
|
|
730
739
|
[pkg-po-edit]: https://www.npmjs.com/package/@agimon-ai/po-edit
|
|
731
740
|
[pkg-po-file-edit]: https://www.npmjs.com/package/@agimon-ai/po-file-edit
|
|
732
741
|
[pkg-po-log]: https://www.npmjs.com/package/@agimon-ai/po-log
|
|
733
|
-
[pkg-po-telemetry]: https://www.npmjs.com/package/@agimon-ai/po-telemetry
|
|
734
742
|
[pkg-rmux-darwin-arm64]: https://www.npmjs.com/package/@agimon-ai/po-runner-rmux-darwin-arm64
|
|
735
743
|
[pkg-rmux-darwin-x64]: https://www.npmjs.com/package/@agimon-ai/po-runner-rmux-darwin-x64
|
|
736
744
|
[pkg-rmux-linux-arm64]: https://www.npmjs.com/package/@agimon-ai/po-runner-rmux-linux-arm64
|
|
@@ -746,9 +754,9 @@ loaded extension graph inside the same release boundary as the packages that con
|
|
|
746
754
|
[pkg-po-help]: https://www.npmjs.com/package/@agimon-ai/po-help
|
|
747
755
|
[pkg-po-mcp]: https://www.npmjs.com/package/@agimon-ai/po-mcp
|
|
748
756
|
[pkg-po-user-feedback]: https://www.npmjs.com/package/@agimon-ai/po-user-feedback
|
|
749
|
-
[pkg-
|
|
757
|
+
[pkg-po-logsink]: ../../tooling/po-logsink/README.md
|
|
750
758
|
[pkg-po-plan]: https://www.npmjs.com/package/@agimon-ai/po-plan
|
|
751
|
-
[pkg-po-
|
|
759
|
+
[pkg-po-calendar]: https://www.npmjs.com/package/@agimon-ai/po-calendar
|
|
752
760
|
[pkg-po-goal]: https://www.npmjs.com/package/@agimon-ai/po-goal
|
|
753
761
|
[pkg-po-workflow]: https://www.npmjs.com/package/@agimon-ai/po-workflow
|
|
754
762
|
[pkg-po-voice]: https://www.npmjs.com/package/@agimon-ai/po-voice
|
package/dist/baseCommand.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { BaseCommand };
|
|
1
|
+
export { BaseCommand } from "./src/cli/commands/baseCommand.mjs";
|
package/dist/bin/cli.cjs
CHANGED
|
@@ -1,19 +1,45 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
require("
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_agentDirectory = require("../src/bin/agentDirectory.cjs");
|
|
4
|
+
let node_path = require("node:path");
|
|
5
|
+
node_path = require_runtime.__toESM(node_path, 1);
|
|
6
|
+
let node_fs_promises = require("node:fs/promises");
|
|
7
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises, 1);
|
|
8
|
+
let node_url = require("node:url");
|
|
5
9
|
//#region src/bin/cli.ts
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
/**
|
|
11
|
+
* CLI Entry Point for po
|
|
12
|
+
*
|
|
13
|
+
* The executable installed as the `po` binary, and the file the repository
|
|
14
|
+
* launcher (pi.sh) invoke directly from source.
|
|
15
|
+
*/
|
|
16
|
+
async function main() {
|
|
17
|
+
await require_agentDirectory.initializeAgentDirectory();
|
|
18
|
+
if (require_agentDirectory.testRoot) {
|
|
19
|
+
const target = node_path.default.join(require_agentDirectory.testRoot, "packages/cli/po/dist/bin/cli.mjs");
|
|
20
|
+
if (await node_fs_promises.default.realpath(target).catch((error) => {
|
|
21
|
+
if (error.code === "ENOENT") throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);
|
|
22
|
+
throw error;
|
|
23
|
+
}) !== await node_fs_promises.default.realpath((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href))) {
|
|
24
|
+
await import((0, node_url.pathToFileURL)(target).href);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const { HARNESS_VERSION, printHelp } = await Promise.resolve().then(() => require("../src/cli/help.cjs"));
|
|
29
|
+
const { informationalRequest, routeCommand } = await Promise.resolve().then(() => require("../src/cli/router.cjs"));
|
|
30
|
+
const args = process.argv.slice(2);
|
|
31
|
+
const informational = routeCommand(args) !== void 0 ? void 0 : informationalRequest(args);
|
|
32
|
+
const informationalExit = informational === "help" ? (() => {
|
|
33
|
+
printHelp();
|
|
34
|
+
return 0;
|
|
35
|
+
})() : informational === "version" ? (() => {
|
|
36
|
+
process.stdout.write(`${HARNESS_VERSION}\n`);
|
|
37
|
+
return 0;
|
|
38
|
+
})() : void 0;
|
|
39
|
+
return informationalExit === void 0 ? Promise.resolve().then(() => require("../src/cli/cliApp.cjs")).then(({ runCli }) => runCli(args)) : Promise.resolve(informationalExit);
|
|
40
|
+
}
|
|
41
|
+
main().then((exitCode) => {
|
|
42
|
+
if (exitCode !== void 0) process.exitCode = exitCode;
|
|
17
43
|
}, (error) => {
|
|
18
44
|
const message = error instanceof Error ? error.message : String(error);
|
|
19
45
|
process.stderr.write(`[po] ${message}\n`);
|
package/dist/bin/cli.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.cjs","names":["
|
|
1
|
+
{"version":3,"file":"cli.cjs","names":["initializeAgentDirectory","testRoot","path","fs","fileURLToPath","pathToFileURL"],"sources":["../../src/bin/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * CLI Entry Point for po\n *\n * The executable installed as the `po` binary, and the file the repository\n * launcher (pi.sh) invoke directly from source.\n */\n\nimport fs from 'node:fs/promises';\nimport path from 'node:path';\nimport { fileURLToPath, pathToFileURL } from 'node:url';\n\nimport { initializeAgentDirectory, testRoot } from './agentDirectory';\n\nasync function main(): Promise<number | undefined> {\n await initializeAgentDirectory();\n if (testRoot) {\n const target = path.join(testRoot, 'packages/cli/po/dist/bin/cli.mjs');\n const realTarget = await fs.realpath(target).catch((error: NodeJS.ErrnoException) => {\n if (error.code === 'ENOENT')\n throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);\n throw error;\n });\n if (realTarget !== (await fs.realpath(fileURLToPath(import.meta.url)))) {\n await import(pathToFileURL(target).href);\n return;\n }\n }\n const { HARNESS_VERSION, printHelp } = await import('../cli/help');\n const { informationalRequest, routeCommand } = await import('../cli/router');\n\n const args = process.argv.slice(2);\n // A named subcommand parses its own arguments, including its own --help, so the\n // fast path below must not answer for it.\n const ownsArguments = routeCommand(args) !== undefined;\n\n // Keep informational startup independent from telemetry, configuration, Pi,\n // and the extension compiler. Those graphs are useful for a real command but\n // used to account for almost all of `po --help` and `po --version`.\n const informational = ownsArguments ? undefined : informationalRequest(args);\n const informationalExit =\n informational === 'help'\n ? (() => {\n printHelp();\n return 0;\n })()\n : informational === 'version'\n ? (() => {\n process.stdout.write(`${HARNESS_VERSION}\\n`);\n return 0;\n })()\n : undefined;\n\n const run =\n informationalExit === undefined\n ? import('../cli/cliApp').then(({ runCli }) => runCli(args))\n : Promise.resolve(informationalExit);\n\n return run;\n}\n\nmain().then(\n (exitCode) => {\n if (exitCode !== undefined) process.exitCode = exitCode;\n },\n (error: unknown) => {\n const message = error instanceof Error ? error.message : String(error);\n process.stderr.write(`[po] ${message}\\n`);\n process.exitCode = 1;\n },\n);\n"],"mappings":";;;;;;;;;;;;;;;AAeA,eAAe,OAAoC;CACjD,MAAMA,uBAAAA,yBAAyB;CAC/B,IAAIC,uBAAAA,UAAU;EACZ,MAAM,SAASC,UAAAA,QAAK,KAAKD,uBAAAA,UAAU,kCAAkC;EAMrE,IAAI,MALqBE,iBAAAA,QAAG,SAAS,MAAM,CAAC,CAAC,OAAO,UAAiC;GACnF,IAAI,MAAM,SAAS,UACjB,MAAM,IAAI,MAAM,oCAAoC,OAAO,6BAA6B;GAC1F,MAAM;EACR,CAAC,MACmB,MAAMA,iBAAAA,QAAG,UAAA,GAASC,SAAAA,cAAAA,CAAAA,QAAAA,KAAAA,CAAAA,CAAAA,cAAAA,UAAAA,CAAAA,CAAAA,IAA6B,CAAC,GAAI;GACtE,MAAM,QAAA,GAAOC,SAAAA,cAAAA,CAAc,MAAM,CAAC,CAAC;GACnC;EACF;CACF;CACA,MAAM,EAAE,iBAAiB,cAAc,MAAA,QAAA,QAAA,CAAA,CAAA,WAAA,QAAM,qBAAA,CAAA;CAC7C,MAAM,EAAE,sBAAsB,iBAAiB,MAAA,QAAA,QAAA,CAAA,CAAA,WAAA,QAAM,uBAAA,CAAA;CAErD,MAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;CAQjC,MAAM,gBALgB,aAAa,IAAI,MAAM,KAAA,IAKP,KAAA,IAAY,qBAAqB,IAAI;CAC3E,MAAM,oBACJ,kBAAkB,gBACP;EACL,UAAU;EACV,OAAO;CACT,EAAA,CAAG,IACH,kBAAkB,mBACT;EACL,QAAQ,OAAO,MAAM,GAAG,gBAAgB,GAAG;EAC3C,OAAO;CACT,EAAA,CAAG,IACH,KAAA;CAOR,OAJE,sBAAsB,KAAA,IAAA,QAAA,QAAA,CAAA,CAAA,WAAA,QAClB,uBAAA,CAAA,CAAA,CAAwB,MAAM,EAAE,aAAa,OAAO,IAAI,CAAC,IACzD,QAAQ,QAAQ,iBAAiB;AAGzC;AAEA,KAAK,CAAC,CAAC,MACJ,aAAa;CACZ,IAAI,aAAa,KAAA,GAAW,QAAQ,WAAW;AACjD,IACC,UAAmB;CAClB,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CACrE,QAAQ,OAAO,MAAM,QAAQ,QAAQ,GAAG;CACxC,QAAQ,WAAW;AACrB,CACF"}
|
package/dist/bin/cli.mjs
CHANGED
|
@@ -1,19 +1,42 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
2
|
+
import { initializeAgentDirectory, testRoot } from "../src/bin/agentDirectory.mjs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import fs from "node:fs/promises";
|
|
5
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
6
|
//#region src/bin/cli.ts
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
/**
|
|
8
|
+
* CLI Entry Point for po
|
|
9
|
+
*
|
|
10
|
+
* The executable installed as the `po` binary, and the file the repository
|
|
11
|
+
* launcher (pi.sh) invoke directly from source.
|
|
12
|
+
*/
|
|
13
|
+
async function main() {
|
|
14
|
+
await initializeAgentDirectory();
|
|
15
|
+
if (testRoot) {
|
|
16
|
+
const target = path.join(testRoot, "packages/cli/po/dist/bin/cli.mjs");
|
|
17
|
+
if (await fs.realpath(target).catch((error) => {
|
|
18
|
+
if (error.code === "ENOENT") throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);
|
|
19
|
+
throw error;
|
|
20
|
+
}) !== await fs.realpath(fileURLToPath(import.meta.url))) {
|
|
21
|
+
await import(pathToFileURL(target).href);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const { HARNESS_VERSION, printHelp } = await import("../src/cli/help.mjs");
|
|
26
|
+
const { informationalRequest, routeCommand } = await import("../src/cli/router.mjs");
|
|
27
|
+
const args = process.argv.slice(2);
|
|
28
|
+
const informational = routeCommand(args) !== void 0 ? void 0 : informationalRequest(args);
|
|
29
|
+
const informationalExit = informational === "help" ? (() => {
|
|
30
|
+
printHelp();
|
|
31
|
+
return 0;
|
|
32
|
+
})() : informational === "version" ? (() => {
|
|
33
|
+
process.stdout.write(`${HARNESS_VERSION}\n`);
|
|
34
|
+
return 0;
|
|
35
|
+
})() : void 0;
|
|
36
|
+
return informationalExit === void 0 ? import("../src/cli/cliApp.mjs").then(({ runCli }) => runCli(args)) : Promise.resolve(informationalExit);
|
|
37
|
+
}
|
|
38
|
+
main().then((exitCode) => {
|
|
39
|
+
if (exitCode !== void 0) process.exitCode = exitCode;
|
|
17
40
|
}, (error) => {
|
|
18
41
|
const message = error instanceof Error ? error.message : String(error);
|
|
19
42
|
process.stderr.write(`[po] ${message}\n`);
|
package/dist/bin/cli.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.mjs","names":[],"sources":["../../src/bin/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * CLI Entry Point for po\n *\n * The executable installed as the `po` binary, and the file the repository\n *
|
|
1
|
+
{"version":3,"file":"cli.mjs","names":[],"sources":["../../src/bin/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * CLI Entry Point for po\n *\n * The executable installed as the `po` binary, and the file the repository\n * launcher (pi.sh) invoke directly from source.\n */\n\nimport fs from 'node:fs/promises';\nimport path from 'node:path';\nimport { fileURLToPath, pathToFileURL } from 'node:url';\n\nimport { initializeAgentDirectory, testRoot } from './agentDirectory';\n\nasync function main(): Promise<number | undefined> {\n await initializeAgentDirectory();\n if (testRoot) {\n const target = path.join(testRoot, 'packages/cli/po/dist/bin/cli.mjs');\n const realTarget = await fs.realpath(target).catch((error: NodeJS.ErrnoException) => {\n if (error.code === 'ENOENT')\n throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);\n throw error;\n });\n if (realTarget !== (await fs.realpath(fileURLToPath(import.meta.url)))) {\n await import(pathToFileURL(target).href);\n return;\n }\n }\n const { HARNESS_VERSION, printHelp } = await import('../cli/help');\n const { informationalRequest, routeCommand } = await import('../cli/router');\n\n const args = process.argv.slice(2);\n // A named subcommand parses its own arguments, including its own --help, so the\n // fast path below must not answer for it.\n const ownsArguments = routeCommand(args) !== undefined;\n\n // Keep informational startup independent from telemetry, configuration, Pi,\n // and the extension compiler. Those graphs are useful for a real command but\n // used to account for almost all of `po --help` and `po --version`.\n const informational = ownsArguments ? undefined : informationalRequest(args);\n const informationalExit =\n informational === 'help'\n ? (() => {\n printHelp();\n return 0;\n })()\n : informational === 'version'\n ? (() => {\n process.stdout.write(`${HARNESS_VERSION}\\n`);\n return 0;\n })()\n : undefined;\n\n const run =\n informationalExit === undefined\n ? import('../cli/cliApp').then(({ runCli }) => runCli(args))\n : Promise.resolve(informationalExit);\n\n return run;\n}\n\nmain().then(\n (exitCode) => {\n if (exitCode !== undefined) process.exitCode = exitCode;\n },\n (error: unknown) => {\n const message = error instanceof Error ? error.message : String(error);\n process.stderr.write(`[po] ${message}\\n`);\n process.exitCode = 1;\n },\n);\n"],"mappings":";;;;;;;;;;;;AAeA,eAAe,OAAoC;CACjD,MAAM,yBAAyB;CAC/B,IAAI,UAAU;EACZ,MAAM,SAAS,KAAK,KAAK,UAAU,kCAAkC;EAMrE,IAAI,MALqB,GAAG,SAAS,MAAM,CAAC,CAAC,OAAO,UAAiC;GACnF,IAAI,MAAM,SAAS,UACjB,MAAM,IAAI,MAAM,oCAAoC,OAAO,6BAA6B;GAC1F,MAAM;EACR,CAAC,MACmB,MAAM,GAAG,SAAS,cAAc,YAAY,GAAG,CAAC,GAAI;GACtE,MAAM,OAAO,cAAc,MAAM,CAAC,CAAC;GACnC;EACF;CACF;CACA,MAAM,EAAE,iBAAiB,cAAc,MAAM,OAAO;CACpD,MAAM,EAAE,sBAAsB,iBAAiB,MAAM,OAAO;CAE5D,MAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;CAQjC,MAAM,gBALgB,aAAa,IAAI,MAAM,KAAA,IAKP,KAAA,IAAY,qBAAqB,IAAI;CAC3E,MAAM,oBACJ,kBAAkB,gBACP;EACL,UAAU;EACV,OAAO;CACT,EAAA,CAAG,IACH,kBAAkB,mBACT;EACL,QAAQ,OAAO,MAAM,GAAG,gBAAgB,GAAG;EAC3C,OAAO;CACT,EAAA,CAAG,IACH,KAAA;CAOR,OAJE,sBAAsB,KAAA,IAClB,OAAO,wBAAgB,CAAC,MAAM,EAAE,aAAa,OAAO,IAAI,CAAC,IACzD,QAAQ,QAAQ,iBAAiB;AAGzC;AAEA,KAAK,CAAC,CAAC,MACJ,aAAa;CACZ,IAAI,aAAa,KAAA,GAAW,QAAQ,WAAW;AACjD,IACC,UAAmB;CAClB,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CACrE,QAAQ,OAAO,MAAM,QAAQ,QAAQ,GAAG;CACxC,QAAQ,WAAW;AACrB,CACF"}
|