@agimon-ai/doompi-runner 0.0.1-alpha.9 → 0.0.1-alpha.91
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/README.md +220 -23
- package/dist/ansiScrub-CsqTSaVT.mjs +71 -0
- package/dist/ansiScrub-CsqTSaVT.mjs.map +1 -0
- package/dist/ansiScrub-D5gpHDch.cjs +100 -0
- package/dist/ansiScrub-D5gpHDch.cjs.map +1 -0
- package/dist/ansiScrub.cjs +7 -0
- package/dist/{services/AnsiScrub/ansiScrub.d.mts → ansiScrub.d.mts} +6 -14
- package/dist/ansiScrub.d.mts.map +1 -0
- package/dist/ansiScrub.mjs +2 -0
- package/dist/apiContracts.cjs +154 -0
- package/dist/apiContracts.cjs.map +1 -0
- package/dist/apiContracts.d.mts +53 -0
- package/dist/apiContracts.d.mts.map +1 -0
- package/dist/apiContracts.mjs +149 -0
- package/dist/apiContracts.mjs.map +1 -0
- package/dist/bashRender-61ZjIac8.cjs +18 -0
- package/dist/bashRender-61ZjIac8.cjs.map +1 -0
- package/dist/bashRender-CLi1orVw.mjs +7 -0
- package/dist/bashRender-CLi1orVw.mjs.map +1 -0
- package/dist/bashRender.cjs +155 -0
- package/dist/bashRender.cjs.map +1 -0
- package/dist/{tui/bashRender.d.mts → bashRender.d.mts} +16 -15
- package/dist/bashRender.d.mts.map +1 -0
- package/dist/bashRender.mjs +145 -0
- package/dist/bashRender.mjs.map +1 -0
- package/dist/bashResult-BKLi1Zpx.mjs +544 -0
- package/dist/bashResult-BKLi1Zpx.mjs.map +1 -0
- package/dist/bashResult-DcrRaBLv.d.mts +49 -0
- package/dist/bashResult-DcrRaBLv.d.mts.map +1 -0
- package/dist/bashResult-SkF8WzLS.cjs +639 -0
- package/dist/bashResult-SkF8WzLS.cjs.map +1 -0
- package/dist/{services/BashRunService/types.d.cts → bashRunService-Ci0cGdYO.d.mts} +12 -3
- package/dist/bashRunService-Ci0cGdYO.d.mts.map +1 -0
- package/dist/bashRunService-DVCoTO2o.mjs +327 -0
- package/dist/bashRunService-DVCoTO2o.mjs.map +1 -0
- package/dist/bashRunService-DbUkhN8y.cjs +332 -0
- package/dist/bashRunService-DbUkhN8y.cjs.map +1 -0
- package/dist/bashRunService.cjs +3 -0
- package/dist/bashRunService.d.mts +34 -0
- package/dist/bashRunService.d.mts.map +1 -0
- package/dist/bashRunService.mjs +2 -0
- package/dist/bashSchema.cjs +5 -0
- package/dist/bashSchema.d.mts +7 -0
- package/dist/bashSchema.d.mts.map +1 -0
- package/dist/bashSchema.mjs +2 -0
- package/dist/{tool/schema.d.cts → bashTool-B1EwZLo_.d.mts} +3 -8
- package/dist/bashTool-B1EwZLo_.d.mts.map +1 -0
- package/dist/bashTool-BX4UF_cF.mjs +65 -0
- package/dist/bashTool-BX4UF_cF.mjs.map +1 -0
- package/dist/bashTool-BaGjXD2e.mjs +25 -0
- package/dist/bashTool-BaGjXD2e.mjs.map +1 -0
- package/dist/bashTool-DzucJQKE.cjs +82 -0
- package/dist/bashTool-DzucJQKE.cjs.map +1 -0
- package/dist/bashTool-d2iAaq2i.cjs +48 -0
- package/dist/bashTool-d2iAaq2i.cjs.map +1 -0
- package/dist/bashTool.cjs +15 -0
- package/dist/bashTool.cjs.map +1 -0
- package/dist/bashTool.d.mts +32 -0
- package/dist/bashTool.d.mts.map +1 -0
- package/dist/bashTool.mjs +11 -0
- package/dist/bashTool.mjs.map +1 -0
- package/dist/bin/cli.cjs +76 -3
- package/dist/bin/cli.cjs.map +1 -1
- package/dist/bin/cli.d.mts +1 -2
- package/dist/bin/cli.d.mts.map +1 -1
- package/dist/bin/cli.mjs +75 -3
- package/dist/bin/cli.mjs.map +1 -1
- package/dist/bin/logSink.cjs +101 -1
- package/dist/bin/logSink.cjs.map +1 -1
- package/dist/bin/logSink.d.mts +1 -2
- package/dist/bin/logSink.d.mts.map +1 -1
- package/dist/bin/logSink.mjs +98 -1
- package/dist/bin/logSink.mjs.map +1 -1
- package/dist/bin/runnerHost.cjs +119 -1
- package/dist/bin/runnerHost.cjs.map +1 -1
- package/dist/bin/runnerHost.d.mts +1 -2
- package/dist/bin/runnerHost.d.mts.map +1 -1
- package/dist/bin/runnerHost.mjs +115 -1
- package/dist/bin/runnerHost.mjs.map +1 -1
- package/dist/cliApp-4T2TCpwp.mjs +221 -0
- package/dist/cliApp-4T2TCpwp.mjs.map +1 -0
- package/dist/cliApp-bWkTg1Q-.cjs +228 -0
- package/dist/cliApp-bWkTg1Q-.cjs.map +1 -0
- package/dist/cliApp.cjs +3 -0
- package/dist/cliApp.d.mts +18 -0
- package/dist/cliApp.d.mts.map +1 -0
- package/dist/cliApp.mjs +2 -0
- package/dist/clock-Cv2pddgo.mjs +16 -0
- package/dist/clock-Cv2pddgo.mjs.map +1 -0
- package/dist/{services/Clock/types.d.cts → clock-euJkweLq.d.mts} +3 -3
- package/dist/clock-euJkweLq.d.mts.map +1 -0
- package/dist/clock-jqnLWziT.cjs +21 -0
- package/dist/clock-jqnLWziT.cjs.map +1 -0
- package/dist/clock.cjs +3 -0
- package/dist/clock.d.mts +10 -0
- package/dist/clock.d.mts.map +1 -0
- package/dist/clock.mjs +2 -0
- package/dist/compaction-CEy66gAU.mjs +56 -0
- package/dist/compaction-CEy66gAU.mjs.map +1 -0
- package/dist/compaction-jYNEd05D.cjs +73 -0
- package/dist/compaction-jYNEd05D.cjs.map +1 -0
- package/dist/compaction.cjs +5 -4
- package/dist/compaction.d.mts +8 -9
- package/dist/compaction.d.mts.map +1 -1
- package/dist/compaction.mjs +2 -4
- package/dist/config.cjs +40 -2
- package/dist/config.d.mts +2 -32
- package/dist/config.mjs +2 -2
- package/dist/extensions/mcp-ui.mjs +23 -0
- package/dist/extensions/mcp-ui.mjs.map +1 -0
- package/dist/extensions/mcp.cjs +112 -0
- package/dist/extensions/mcp.cjs.map +1 -0
- package/dist/extensions/mcp.d.mts +5 -0
- package/dist/extensions/mcp.d.mts.map +1 -0
- package/dist/extensions/mcp.mjs +84 -0
- package/dist/extensions/mcp.mjs.map +1 -0
- package/dist/extensions/pi.cjs +954 -1
- package/dist/extensions/pi.cjs.map +1 -1
- package/dist/extensions/pi.d.mts +5 -2
- package/dist/extensions/pi.d.mts.map +1 -0
- package/dist/extensions/pi.mjs +945 -1
- package/dist/extensions/pi.mjs.map +1 -1
- package/dist/extensions/server.cjs +765 -0
- package/dist/extensions/server.cjs.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 +755 -0
- package/dist/extensions/server.mjs.map +1 -0
- package/dist/extensions/web.mjs +1786 -0
- package/dist/extensions/web.mjs.map +1 -0
- package/dist/format-BCl0BTQw.mjs +37 -0
- package/dist/format-BCl0BTQw.mjs.map +1 -0
- package/dist/format-BaAcUdvA.cjs +78 -0
- package/dist/format-BaAcUdvA.cjs.map +1 -0
- package/dist/headless-BDvWJKzm.mjs +101 -0
- package/dist/headless-BDvWJKzm.mjs.map +1 -0
- package/dist/headless-Ch9darGJ.cjs +112 -0
- package/dist/headless-Ch9darGJ.cjs.map +1 -0
- package/dist/index-BNJZCSzx.d.mts +29 -0
- package/dist/index-BNJZCSzx.d.mts.map +1 -0
- package/dist/index-BWxvlYO8.d.mts +41 -0
- package/dist/index-BWxvlYO8.d.mts.map +1 -0
- package/dist/{services/RunnerRegistry/RunnerRegistry.d.cts → index-C5LvdST6.d.mts} +14 -16
- package/dist/index-C5LvdST6.d.mts.map +1 -0
- package/dist/index-IRH2NxgG.d.mts +20 -0
- package/dist/index-IRH2NxgG.d.mts.map +1 -0
- package/dist/index-miQ4bSx0.d.mts +24 -0
- package/dist/index-miQ4bSx0.d.mts.map +1 -0
- package/dist/index.cjs +19 -1
- package/dist/index.d.mts +16 -7
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +6 -1
- package/dist/{services/Launcher/types.d.cts → launcher-CkTZm7KT.d.mts} +4 -5
- package/dist/launcher-CkTZm7KT.d.mts.map +1 -0
- package/dist/launcher-DT3B7nFi.mjs +147 -0
- package/dist/launcher-DT3B7nFi.mjs.map +1 -0
- package/dist/launcher-s03kVk1v.cjs +154 -0
- package/dist/launcher-s03kVk1v.cjs.map +1 -0
- package/dist/launcher.cjs +3 -0
- package/dist/launcher.d.mts +31 -0
- package/dist/launcher.d.mts.map +1 -0
- package/dist/launcher.mjs +2 -0
- package/dist/lifeline-ClBr2zBW.mjs +88 -0
- package/dist/lifeline-ClBr2zBW.mjs.map +1 -0
- package/dist/lifeline-bXF7zpef.cjs +98 -0
- package/dist/lifeline-bXF7zpef.cjs.map +1 -0
- package/dist/{services/Lifeline/types.d.cts → lifeline-eJdZV0nN.d.mts} +3 -3
- package/dist/lifeline-eJdZV0nN.d.mts.map +1 -0
- package/dist/lifeline.cjs +6 -0
- package/dist/lifeline.d.mts +21 -0
- package/dist/lifeline.d.mts.map +1 -0
- package/dist/lifeline.mjs +3 -0
- package/dist/logFile-BACXeSRG.cjs +67 -0
- package/dist/logFile-BACXeSRG.cjs.map +1 -0
- package/dist/logFile-BbIrIcWY.mjs +60 -0
- package/dist/logFile-BbIrIcWY.mjs.map +1 -0
- package/dist/{services/LogFile/types.d.cts → logFile-C7oQ_v-g.d.mts} +4 -4
- package/dist/logFile-C7oQ_v-g.d.mts.map +1 -0
- package/dist/logFile.cjs +3 -0
- package/dist/logFile.d.mts +11 -0
- package/dist/logFile.d.mts.map +1 -0
- package/dist/logFile.mjs +2 -0
- package/dist/logReader-7R1V06IS.cjs +282 -0
- package/dist/logReader-7R1V06IS.cjs.map +1 -0
- package/dist/logReader-DfUVwLLJ.mjs +257 -0
- package/dist/logReader-DfUVwLLJ.mjs.map +1 -0
- package/dist/logReader-MdW9ffvV.d.mts +43 -0
- package/dist/logReader-MdW9ffvV.d.mts.map +1 -0
- package/dist/logReader.cjs +4 -0
- package/dist/logReader.d.mts +3 -0
- package/dist/logReader.mjs +2 -0
- package/dist/{services/ProcessControl/types.d.cts → processControl-BAOa3oo_.d.mts} +3 -3
- package/dist/processControl-BAOa3oo_.d.mts.map +1 -0
- package/dist/processControl-DApTpV16.mjs +26 -0
- package/dist/processControl-DApTpV16.mjs.map +1 -0
- package/dist/processControl-DNJ1WZ9N.cjs +31 -0
- package/dist/processControl-DNJ1WZ9N.cjs.map +1 -0
- package/dist/processControl.cjs +3 -0
- package/dist/processControl.d.mts +10 -0
- package/dist/processControl.d.mts.map +1 -0
- package/dist/processControl.mjs +2 -0
- package/dist/ptyHost-BMrUFpMX.mjs +148 -0
- package/dist/ptyHost-BMrUFpMX.mjs.map +1 -0
- package/dist/ptyHost-BsChzCm7.cjs +155 -0
- package/dist/ptyHost-BsChzCm7.cjs.map +1 -0
- package/dist/{services/PtyHost/types.d.cts → ptyHost-C3geHUQx.d.mts} +4 -5
- package/dist/ptyHost-C3geHUQx.d.mts.map +1 -0
- package/dist/ptyHost.cjs +3 -0
- package/dist/ptyHost.d.mts +24 -0
- package/dist/ptyHost.d.mts.map +1 -0
- package/dist/ptyHost.mjs +2 -0
- package/dist/{services/PtySpawner/types.d.cts → ptySpawner-B6GsueZd.d.mts} +4 -4
- package/dist/ptySpawner-B6GsueZd.d.mts.map +1 -0
- package/dist/ptySpawner-DEi1KOnd.mjs +17 -0
- package/dist/ptySpawner-DEi1KOnd.mjs.map +1 -0
- package/dist/ptySpawner-ijw0g5_T.cjs +22 -0
- package/dist/ptySpawner-ijw0g5_T.cjs.map +1 -0
- package/dist/ptySpawner.cjs +3 -0
- package/dist/ptySpawner.d.mts +14 -0
- package/dist/ptySpawner.d.mts.map +1 -0
- package/dist/ptySpawner.mjs +2 -0
- package/dist/reconcile-B109E0xL.cjs +126 -0
- package/dist/reconcile-B109E0xL.cjs.map +1 -0
- package/dist/reconcile-Cv_M9ctf.mjs +107 -0
- package/dist/reconcile-Cv_M9ctf.mjs.map +1 -0
- package/dist/reconcile.cjs +5 -2
- package/dist/reconcile.d.mts +10 -16
- package/dist/reconcile.d.mts.map +1 -1
- package/dist/reconcile.mjs +2 -2
- package/dist/responseEnvelope.cjs +19 -0
- package/dist/responseEnvelope.d.mts +49 -0
- package/dist/responseEnvelope.d.mts.map +1 -0
- package/dist/responseEnvelope.mjs +3 -0
- package/dist/rmuxBackend-B7w7KaF3.mjs +504 -0
- package/dist/rmuxBackend-B7w7KaF3.mjs.map +1 -0
- package/dist/rmuxBackend-D3ZQCkTw.cjs +518 -0
- package/dist/rmuxBackend-D3ZQCkTw.cjs.map +1 -0
- package/dist/rmuxBackend-DslAqB7-.d.mts +36 -0
- package/dist/rmuxBackend-DslAqB7-.d.mts.map +1 -0
- package/dist/rmuxBackend.cjs +4 -0
- package/dist/rmuxBackend.d.mts +3 -0
- package/dist/rmuxBackend.mjs +2 -0
- package/dist/rolldown-runtime-VH7oDXx4.cjs +28 -0
- package/dist/rtkProcessor-B4_urXQr.mjs +10 -0
- package/dist/rtkProcessor-B4_urXQr.mjs.map +1 -0
- package/dist/rtkProcessor-C1cmQhJO.mjs +307 -0
- package/dist/rtkProcessor-C1cmQhJO.mjs.map +1 -0
- package/dist/rtkProcessor-CVZvNhkJ.d.mts +35 -0
- package/dist/rtkProcessor-CVZvNhkJ.d.mts.map +1 -0
- package/dist/rtkProcessor-CsrCPyTQ.cjs +33 -0
- package/dist/rtkProcessor-CsrCPyTQ.cjs.map +1 -0
- package/dist/rtkProcessor-DJedzL3y.cjs +333 -0
- package/dist/rtkProcessor-DJedzL3y.cjs.map +1 -0
- package/dist/rtkProcessor.cjs +11 -0
- package/dist/rtkProcessor.d.mts +7 -0
- package/dist/rtkProcessor.d.mts.map +1 -0
- package/dist/rtkProcessor.mjs +3 -0
- package/dist/runnerConfig-BQnCguNO.d.mts +86 -0
- package/dist/runnerConfig-BQnCguNO.d.mts.map +1 -0
- package/dist/runnerConfig-D1OoyRo0.mjs +123 -0
- package/dist/runnerConfig-D1OoyRo0.mjs.map +1 -0
- package/dist/runnerConfig-DsHrA6i2.cjs +350 -0
- package/dist/runnerConfig-DsHrA6i2.cjs.map +1 -0
- package/dist/runnerDependencies-CsizryxY.mjs +636 -0
- package/dist/runnerDependencies-CsizryxY.mjs.map +1 -0
- package/dist/runnerDependencies-Dq8oIvGv.cjs +656 -0
- package/dist/runnerDependencies-Dq8oIvGv.cjs.map +1 -0
- package/dist/runnerDependencies.cjs +3 -0
- package/dist/runnerDependencies.d.mts +2 -0
- package/dist/runnerDependencies.mjs +2 -0
- package/dist/runnerFormat.cjs +9 -0
- package/dist/runnerFormat.d.mts +25 -0
- package/dist/runnerFormat.d.mts.map +1 -0
- package/dist/runnerFormat.mjs +2 -0
- package/dist/runnerNamer-B8FH7n2v.mjs +44 -0
- package/dist/runnerNamer-B8FH7n2v.mjs.map +1 -0
- package/dist/runnerNamer-we1XVYfM.cjs +49 -0
- package/dist/runnerNamer-we1XVYfM.cjs.map +1 -0
- package/dist/runnerNamer.cjs +3 -0
- package/dist/runnerNamer.d.mts +11 -0
- package/dist/runnerNamer.d.mts.map +1 -0
- package/dist/runnerNamer.mjs +2 -0
- package/dist/runnerPaths-BSkjI5EO.cjs +480 -0
- package/dist/runnerPaths-BSkjI5EO.cjs.map +1 -0
- package/dist/runnerPaths-xeHQjhYj.mjs +459 -0
- package/dist/runnerPaths-xeHQjhYj.mjs.map +1 -0
- package/dist/runnerPaths.cjs +3 -0
- package/dist/runnerPaths.d.mts +50 -0
- package/dist/runnerPaths.d.mts.map +1 -0
- package/dist/runnerPaths.mjs +2 -0
- package/dist/runnerRegistry-CpIH63zQ.mjs +309 -0
- package/dist/runnerRegistry-CpIH63zQ.mjs.map +1 -0
- package/dist/{services/RunnerRegistry/types.d.cts → runnerRegistry-Cy6rjbel.d.mts} +6 -27
- package/dist/runnerRegistry-Cy6rjbel.d.mts.map +1 -0
- package/dist/runnerRegistry-DcN71T16.cjs +329 -0
- package/dist/runnerRegistry-DcN71T16.cjs.map +1 -0
- package/dist/runnerRegistry.cjs +4 -0
- package/dist/runnerRegistry.d.mts +3 -0
- package/dist/runnerRegistry.mjs +2 -0
- package/dist/runnerRuntime-C_eT68L4.mjs +17 -0
- package/dist/runnerRuntime-C_eT68L4.mjs.map +1 -0
- package/dist/runnerRuntime-DHgXAtWs.cjs +88 -0
- package/dist/runnerRuntime-DHgXAtWs.cjs.map +1 -0
- package/dist/runnerSpace-BzcAlchW.mjs +218 -0
- package/dist/runnerSpace-BzcAlchW.mjs.map +1 -0
- package/dist/runnerSpace-DwQOUo3E.cjs +241 -0
- package/dist/runnerSpace-DwQOUo3E.cjs.map +1 -0
- package/dist/runnerSpace.cjs +6 -0
- package/dist/{tui/runnerSpace.d.mts → runnerSpace.d.mts} +13 -15
- package/dist/runnerSpace.d.mts.map +1 -0
- package/dist/runnerSpace.mjs +2 -0
- package/dist/runnersCommand-BoLYarxd.cjs +89 -0
- package/dist/runnersCommand-BoLYarxd.cjs.map +1 -0
- package/dist/runnersCommand-CuzFn77k.mjs +66 -0
- package/dist/runnersCommand-CuzFn77k.mjs.map +1 -0
- package/dist/services/lifeline/client.cjs +52 -0
- package/dist/services/{Lifeline → lifeline}/client.cjs.map +1 -1
- package/dist/services/{Lifeline → lifeline}/client.d.mts +3 -4
- package/dist/services/lifeline/client.d.mts.map +1 -0
- package/dist/services/lifeline/client.mjs +48 -0
- package/dist/services/{Lifeline → lifeline}/client.mjs.map +1 -1
- package/dist/services/runnerSupervisor/index.cjs +204 -0
- package/dist/services/runnerSupervisor/index.cjs.map +1 -0
- package/dist/services/runnerSupervisor/index.d.mts +73 -0
- package/dist/services/runnerSupervisor/index.d.mts.map +1 -0
- package/dist/services/runnerSupervisor/index.mjs +192 -0
- package/dist/services/runnerSupervisor/index.mjs.map +1 -0
- package/dist/session-BC43uEyG.cjs +29 -0
- package/dist/session-BC43uEyG.cjs.map +1 -0
- package/dist/session-Chsb_Nh2.mjs +18 -0
- package/dist/session-Chsb_Nh2.mjs.map +1 -0
- package/dist/session-DE2Acesp.mjs +6 -0
- package/dist/session-DE2Acesp.mjs.map +1 -0
- package/dist/session-SfIPtdZO.cjs +11 -0
- package/dist/session-SfIPtdZO.cjs.map +1 -0
- package/dist/session.cjs +6 -2
- package/dist/session.d.mts +6 -5
- package/dist/session.d.mts.map +1 -1
- package/dist/session.mjs +3 -2
- package/dist/spawner-BxFsINXP.cjs +68 -0
- package/dist/spawner-BxFsINXP.cjs.map +1 -0
- package/dist/{services/Spawner/types.d.cts → spawner-Cv8jkawW.d.mts} +3 -3
- package/dist/spawner-Cv8jkawW.d.mts.map +1 -0
- package/dist/spawner-LoVsn55-.mjs +63 -0
- package/dist/spawner-LoVsn55-.mjs.map +1 -0
- package/dist/spawner.cjs +3 -0
- package/dist/spawner.d.mts +9 -0
- package/dist/spawner.d.mts.map +1 -0
- package/dist/spawner.mjs +2 -0
- package/dist/{services/RunnerPaths/types.d.cts → type-BXM03qSw.d.mts} +15 -4
- package/dist/type-BXM03qSw.d.mts.map +1 -0
- package/dist/type-U7Y6NN2B.d.mts +41 -0
- package/dist/type-U7Y6NN2B.d.mts.map +1 -0
- package/dist/{services/RunnerNamer/types.d.cts → type-vWQNTahw.d.mts} +3 -3
- package/dist/type-vWQNTahw.d.mts.map +1 -0
- package/dist/types.cjs +0 -2
- package/dist/types.d.mts +3 -28
- package/dist/types.mjs +1 -2
- package/llms.txt +9 -0
- package/package.json +226 -228
- package/skills/doom-runner/SKILL.md +16 -7
- package/src/prompts/doompi-use-runner/SKILL.md +45 -0
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorate.cjs +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorate.mjs +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorateMetadata.cjs +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorateMetadata.mjs +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorateParam.cjs +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorateParam.mjs +0 -1
- package/dist/_virtual/_rolldown/runtime.cjs +0 -1
- package/dist/bin/cli.d.cts +0 -5
- package/dist/bin/cli.d.cts.map +0 -1
- package/dist/bin/logSink.d.cts +0 -5
- package/dist/bin/logSink.d.cts.map +0 -1
- package/dist/bin/runnerHost.d.cts +0 -5
- package/dist/bin/runnerHost.d.cts.map +0 -1
- package/dist/cli/cliApp.cjs +0 -6
- package/dist/cli/cliApp.cjs.map +0 -1
- package/dist/cli/cliApp.d.cts +0 -23
- package/dist/cli/cliApp.d.cts.map +0 -1
- package/dist/cli/cliApp.d.mts +0 -23
- package/dist/cli/cliApp.d.mts.map +0 -1
- package/dist/cli/cliApp.mjs +0 -6
- package/dist/cli/cliApp.mjs.map +0 -1
- package/dist/compaction.cjs.map +0 -1
- package/dist/compaction.d.cts +0 -14
- package/dist/compaction.d.cts.map +0 -1
- package/dist/compaction.mjs.map +0 -1
- package/dist/config.cjs.map +0 -1
- package/dist/config.d.cts +0 -32
- package/dist/config.d.cts.map +0 -1
- package/dist/config.d.mts.map +0 -1
- package/dist/config.mjs.map +0 -1
- package/dist/container/index.cjs +0 -2
- package/dist/container/index.cjs.map +0 -1
- package/dist/container/index.d.cts +0 -14
- package/dist/container/index.d.cts.map +0 -1
- package/dist/container/index.d.mts +0 -14
- package/dist/container/index.d.mts.map +0 -1
- package/dist/container/index.mjs +0 -2
- package/dist/container/index.mjs.map +0 -1
- package/dist/extension.cjs +0 -3
- package/dist/extension.cjs.map +0 -1
- package/dist/extension.d.cts +0 -10
- package/dist/extension.d.cts.map +0 -1
- package/dist/extension.d.mts +0 -10
- package/dist/extension.d.mts.map +0 -1
- package/dist/extension.mjs +0 -3
- package/dist/extension.mjs.map +0 -1
- package/dist/extensions/pi.d.cts +0 -2
- package/dist/index.d.cts +0 -7
- package/dist/ptyProvider.cjs +0 -2
- package/dist/ptyProvider.cjs.map +0 -1
- package/dist/ptyProvider.d.cts +0 -13
- package/dist/ptyProvider.d.cts.map +0 -1
- package/dist/ptyProvider.d.mts +0 -13
- package/dist/ptyProvider.d.mts.map +0 -1
- package/dist/ptyProvider.mjs +0 -2
- package/dist/ptyProvider.mjs.map +0 -1
- package/dist/reconcile.cjs.map +0 -1
- package/dist/reconcile.d.cts +0 -37
- package/dist/reconcile.d.cts.map +0 -1
- package/dist/reconcile.mjs.map +0 -1
- package/dist/runnerSpec.cjs +0 -2
- package/dist/runnerSpec.cjs.map +0 -1
- package/dist/runnerSpec.d.cts +0 -50
- package/dist/runnerSpec.d.cts.map +0 -1
- package/dist/runnerSpec.d.mts +0 -50
- package/dist/runnerSpec.d.mts.map +0 -1
- package/dist/runnerSpec.mjs +0 -2
- package/dist/runnerSpec.mjs.map +0 -1
- package/dist/services/AnsiScrub/ansiScrub.cjs +0 -5
- package/dist/services/AnsiScrub/ansiScrub.cjs.map +0 -1
- package/dist/services/AnsiScrub/ansiScrub.d.cts +0 -34
- package/dist/services/AnsiScrub/ansiScrub.d.cts.map +0 -1
- package/dist/services/AnsiScrub/ansiScrub.d.mts.map +0 -1
- package/dist/services/AnsiScrub/ansiScrub.mjs +0 -5
- package/dist/services/AnsiScrub/ansiScrub.mjs.map +0 -1
- package/dist/services/AnsiScrub/index.cjs +0 -1
- package/dist/services/AnsiScrub/index.d.cts +0 -2
- package/dist/services/AnsiScrub/index.d.mts +0 -2
- package/dist/services/AnsiScrub/index.mjs +0 -1
- package/dist/services/BashRunService/BashRunService.cjs +0 -2
- package/dist/services/BashRunService/BashRunService.cjs.map +0 -1
- package/dist/services/BashRunService/BashRunService.d.cts +0 -38
- package/dist/services/BashRunService/BashRunService.d.cts.map +0 -1
- package/dist/services/BashRunService/BashRunService.d.mts +0 -38
- package/dist/services/BashRunService/BashRunService.d.mts.map +0 -1
- package/dist/services/BashRunService/BashRunService.mjs +0 -2
- package/dist/services/BashRunService/BashRunService.mjs.map +0 -1
- package/dist/services/BashRunService/index.cjs +0 -1
- package/dist/services/BashRunService/index.d.cts +0 -3
- package/dist/services/BashRunService/index.d.mts +0 -3
- package/dist/services/BashRunService/index.mjs +0 -1
- package/dist/services/BashRunService/types.d.cts.map +0 -1
- package/dist/services/BashRunService/types.d.mts +0 -62
- package/dist/services/BashRunService/types.d.mts.map +0 -1
- package/dist/services/Clock/SystemClock.cjs +0 -2
- package/dist/services/Clock/SystemClock.cjs.map +0 -1
- package/dist/services/Clock/SystemClock.d.cts +0 -11
- package/dist/services/Clock/SystemClock.d.cts.map +0 -1
- package/dist/services/Clock/SystemClock.d.mts +0 -11
- package/dist/services/Clock/SystemClock.d.mts.map +0 -1
- package/dist/services/Clock/SystemClock.mjs +0 -2
- package/dist/services/Clock/SystemClock.mjs.map +0 -1
- package/dist/services/Clock/index.cjs +0 -1
- package/dist/services/Clock/index.d.cts +0 -3
- package/dist/services/Clock/index.d.mts +0 -3
- package/dist/services/Clock/index.mjs +0 -1
- package/dist/services/Clock/types.d.cts.map +0 -1
- package/dist/services/Clock/types.d.mts +0 -11
- package/dist/services/Clock/types.d.mts.map +0 -1
- package/dist/services/Launcher/Launcher.cjs +0 -2
- package/dist/services/Launcher/Launcher.cjs.map +0 -1
- package/dist/services/Launcher/Launcher.d.cts +0 -27
- package/dist/services/Launcher/Launcher.d.cts.map +0 -1
- package/dist/services/Launcher/Launcher.d.mts +0 -27
- package/dist/services/Launcher/Launcher.d.mts.map +0 -1
- package/dist/services/Launcher/Launcher.mjs +0 -2
- package/dist/services/Launcher/Launcher.mjs.map +0 -1
- package/dist/services/Launcher/index.cjs +0 -1
- package/dist/services/Launcher/index.d.cts +0 -3
- package/dist/services/Launcher/index.d.mts +0 -3
- package/dist/services/Launcher/index.mjs +0 -1
- package/dist/services/Launcher/types.d.cts.map +0 -1
- package/dist/services/Launcher/types.d.mts +0 -40
- package/dist/services/Launcher/types.d.mts.map +0 -1
- package/dist/services/Lifeline/NodeLifeline.cjs +0 -2
- package/dist/services/Lifeline/NodeLifeline.cjs.map +0 -1
- package/dist/services/Lifeline/NodeLifeline.d.cts +0 -21
- package/dist/services/Lifeline/NodeLifeline.d.cts.map +0 -1
- package/dist/services/Lifeline/NodeLifeline.d.mts +0 -21
- package/dist/services/Lifeline/NodeLifeline.d.mts.map +0 -1
- package/dist/services/Lifeline/NodeLifeline.mjs +0 -2
- package/dist/services/Lifeline/NodeLifeline.mjs.map +0 -1
- package/dist/services/Lifeline/client.cjs +0 -2
- package/dist/services/Lifeline/client.d.cts +0 -23
- package/dist/services/Lifeline/client.d.cts.map +0 -1
- package/dist/services/Lifeline/client.d.mts.map +0 -1
- package/dist/services/Lifeline/client.mjs +0 -2
- package/dist/services/Lifeline/index.cjs +0 -1
- package/dist/services/Lifeline/index.d.cts +0 -4
- package/dist/services/Lifeline/index.d.mts +0 -4
- package/dist/services/Lifeline/index.mjs +0 -1
- package/dist/services/Lifeline/types.d.cts.map +0 -1
- package/dist/services/Lifeline/types.d.mts +0 -19
- package/dist/services/Lifeline/types.d.mts.map +0 -1
- package/dist/services/LogFile/LogFile.cjs +0 -2
- package/dist/services/LogFile/LogFile.cjs.map +0 -1
- package/dist/services/LogFile/LogFile.d.cts +0 -13
- package/dist/services/LogFile/LogFile.d.cts.map +0 -1
- package/dist/services/LogFile/LogFile.d.mts +0 -13
- package/dist/services/LogFile/LogFile.d.mts.map +0 -1
- package/dist/services/LogFile/LogFile.mjs +0 -2
- package/dist/services/LogFile/LogFile.mjs.map +0 -1
- package/dist/services/LogFile/index.cjs +0 -1
- package/dist/services/LogFile/index.d.cts +0 -3
- package/dist/services/LogFile/index.d.mts +0 -3
- package/dist/services/LogFile/index.mjs +0 -1
- package/dist/services/LogFile/types.d.cts.map +0 -1
- package/dist/services/LogFile/types.d.mts +0 -16
- package/dist/services/LogFile/types.d.mts.map +0 -1
- package/dist/services/LogReader/LogReader.cjs +0 -10
- package/dist/services/LogReader/LogReader.cjs.map +0 -1
- package/dist/services/LogReader/LogReader.d.cts +0 -14
- package/dist/services/LogReader/LogReader.d.cts.map +0 -1
- package/dist/services/LogReader/LogReader.d.mts +0 -14
- package/dist/services/LogReader/LogReader.d.mts.map +0 -1
- package/dist/services/LogReader/LogReader.mjs +0 -10
- package/dist/services/LogReader/LogReader.mjs.map +0 -1
- package/dist/services/LogReader/index.cjs +0 -1
- package/dist/services/LogReader/index.d.cts +0 -3
- package/dist/services/LogReader/index.d.mts +0 -3
- package/dist/services/LogReader/index.mjs +0 -1
- package/dist/services/LogReader/types.d.cts +0 -27
- package/dist/services/LogReader/types.d.cts.map +0 -1
- package/dist/services/LogReader/types.d.mts +0 -27
- package/dist/services/LogReader/types.d.mts.map +0 -1
- package/dist/services/ProcessControl/NodeProcessControl.cjs +0 -2
- package/dist/services/ProcessControl/NodeProcessControl.cjs.map +0 -1
- package/dist/services/ProcessControl/NodeProcessControl.d.cts +0 -11
- package/dist/services/ProcessControl/NodeProcessControl.d.cts.map +0 -1
- package/dist/services/ProcessControl/NodeProcessControl.d.mts +0 -11
- package/dist/services/ProcessControl/NodeProcessControl.d.mts.map +0 -1
- package/dist/services/ProcessControl/NodeProcessControl.mjs +0 -2
- package/dist/services/ProcessControl/NodeProcessControl.mjs.map +0 -1
- package/dist/services/ProcessControl/index.cjs +0 -1
- package/dist/services/ProcessControl/index.d.cts +0 -3
- package/dist/services/ProcessControl/index.d.mts +0 -3
- package/dist/services/ProcessControl/index.mjs +0 -1
- package/dist/services/ProcessControl/types.d.cts.map +0 -1
- package/dist/services/ProcessControl/types.d.mts +0 -14
- package/dist/services/ProcessControl/types.d.mts.map +0 -1
- package/dist/services/PtyHost/PtyHost.cjs +0 -5
- package/dist/services/PtyHost/PtyHost.cjs.map +0 -1
- package/dist/services/PtyHost/PtyHost.d.cts +0 -28
- package/dist/services/PtyHost/PtyHost.d.cts.map +0 -1
- package/dist/services/PtyHost/PtyHost.d.mts +0 -28
- package/dist/services/PtyHost/PtyHost.d.mts.map +0 -1
- package/dist/services/PtyHost/PtyHost.mjs +0 -5
- package/dist/services/PtyHost/PtyHost.mjs.map +0 -1
- package/dist/services/PtyHost/index.cjs +0 -1
- package/dist/services/PtyHost/index.d.cts +0 -3
- package/dist/services/PtyHost/index.d.mts +0 -3
- package/dist/services/PtyHost/index.mjs +0 -1
- package/dist/services/PtyHost/types.d.cts.map +0 -1
- package/dist/services/PtyHost/types.d.mts +0 -39
- package/dist/services/PtyHost/types.d.mts.map +0 -1
- package/dist/services/PtySpawner/NodePtySpawner.cjs +0 -2
- package/dist/services/PtySpawner/NodePtySpawner.cjs.map +0 -1
- package/dist/services/PtySpawner/NodePtySpawner.d.cts +0 -18
- package/dist/services/PtySpawner/NodePtySpawner.d.cts.map +0 -1
- package/dist/services/PtySpawner/NodePtySpawner.d.mts +0 -18
- package/dist/services/PtySpawner/NodePtySpawner.d.mts.map +0 -1
- package/dist/services/PtySpawner/NodePtySpawner.mjs +0 -2
- package/dist/services/PtySpawner/NodePtySpawner.mjs.map +0 -1
- package/dist/services/PtySpawner/index.cjs +0 -1
- package/dist/services/PtySpawner/index.d.cts +0 -3
- package/dist/services/PtySpawner/index.d.mts +0 -3
- package/dist/services/PtySpawner/index.mjs +0 -1
- package/dist/services/PtySpawner/types.d.cts.map +0 -1
- package/dist/services/PtySpawner/types.d.mts +0 -28
- package/dist/services/PtySpawner/types.d.mts.map +0 -1
- package/dist/services/RmuxBackend/RmuxBackend.cjs +0 -2
- package/dist/services/RmuxBackend/RmuxBackend.cjs.map +0 -1
- package/dist/services/RmuxBackend/RmuxBackend.d.cts +0 -36
- package/dist/services/RmuxBackend/RmuxBackend.d.cts.map +0 -1
- package/dist/services/RmuxBackend/RmuxBackend.d.mts +0 -36
- package/dist/services/RmuxBackend/RmuxBackend.d.mts.map +0 -1
- package/dist/services/RmuxBackend/RmuxBackend.mjs +0 -2
- package/dist/services/RmuxBackend/RmuxBackend.mjs.map +0 -1
- package/dist/services/RmuxBackend/index.cjs +0 -1
- package/dist/services/RmuxBackend/index.d.cts +0 -3
- package/dist/services/RmuxBackend/index.d.mts +0 -3
- package/dist/services/RmuxBackend/index.mjs +0 -1
- package/dist/services/RmuxBackend/types.d.cts +0 -29
- package/dist/services/RmuxBackend/types.d.cts.map +0 -1
- package/dist/services/RmuxBackend/types.d.mts +0 -29
- package/dist/services/RmuxBackend/types.d.mts.map +0 -1
- package/dist/services/RunnerNamer/RunnerNamer.cjs +0 -2
- package/dist/services/RunnerNamer/RunnerNamer.cjs.map +0 -1
- package/dist/services/RunnerNamer/RunnerNamer.d.cts +0 -13
- package/dist/services/RunnerNamer/RunnerNamer.d.cts.map +0 -1
- package/dist/services/RunnerNamer/RunnerNamer.d.mts +0 -13
- package/dist/services/RunnerNamer/RunnerNamer.d.mts.map +0 -1
- package/dist/services/RunnerNamer/RunnerNamer.mjs +0 -2
- package/dist/services/RunnerNamer/RunnerNamer.mjs.map +0 -1
- package/dist/services/RunnerNamer/index.cjs +0 -1
- package/dist/services/RunnerNamer/index.d.cts +0 -3
- package/dist/services/RunnerNamer/index.d.mts +0 -3
- package/dist/services/RunnerNamer/index.mjs +0 -1
- package/dist/services/RunnerNamer/types.d.cts.map +0 -1
- package/dist/services/RunnerNamer/types.d.mts +0 -12
- package/dist/services/RunnerNamer/types.d.mts.map +0 -1
- package/dist/services/RunnerPaths/RunnerPaths.cjs +0 -2
- package/dist/services/RunnerPaths/RunnerPaths.cjs.map +0 -1
- package/dist/services/RunnerPaths/RunnerPaths.d.cts +0 -31
- package/dist/services/RunnerPaths/RunnerPaths.d.cts.map +0 -1
- package/dist/services/RunnerPaths/RunnerPaths.d.mts +0 -31
- package/dist/services/RunnerPaths/RunnerPaths.d.mts.map +0 -1
- package/dist/services/RunnerPaths/RunnerPaths.mjs +0 -2
- package/dist/services/RunnerPaths/RunnerPaths.mjs.map +0 -1
- package/dist/services/RunnerPaths/index.cjs +0 -1
- package/dist/services/RunnerPaths/index.d.cts +0 -3
- package/dist/services/RunnerPaths/index.d.mts +0 -3
- package/dist/services/RunnerPaths/index.mjs +0 -1
- package/dist/services/RunnerPaths/types.d.cts.map +0 -1
- package/dist/services/RunnerPaths/types.d.mts +0 -33
- package/dist/services/RunnerPaths/types.d.mts.map +0 -1
- package/dist/services/RunnerRegistry/RunnerRegistry.cjs +0 -2
- package/dist/services/RunnerRegistry/RunnerRegistry.cjs.map +0 -1
- package/dist/services/RunnerRegistry/RunnerRegistry.d.cts.map +0 -1
- package/dist/services/RunnerRegistry/RunnerRegistry.d.mts +0 -40
- package/dist/services/RunnerRegistry/RunnerRegistry.d.mts.map +0 -1
- package/dist/services/RunnerRegistry/RunnerRegistry.mjs +0 -2
- package/dist/services/RunnerRegistry/RunnerRegistry.mjs.map +0 -1
- package/dist/services/RunnerRegistry/index.cjs +0 -1
- package/dist/services/RunnerRegistry/index.d.cts +0 -3
- package/dist/services/RunnerRegistry/index.d.mts +0 -3
- package/dist/services/RunnerRegistry/index.mjs +0 -1
- package/dist/services/RunnerRegistry/types.d.cts.map +0 -1
- package/dist/services/RunnerRegistry/types.d.mts +0 -98
- package/dist/services/RunnerRegistry/types.d.mts.map +0 -1
- package/dist/services/Spawner/NodeSpawner.cjs +0 -2
- package/dist/services/Spawner/NodeSpawner.cjs.map +0 -1
- package/dist/services/Spawner/NodeSpawner.d.cts +0 -10
- package/dist/services/Spawner/NodeSpawner.d.cts.map +0 -1
- package/dist/services/Spawner/NodeSpawner.d.mts +0 -10
- package/dist/services/Spawner/NodeSpawner.d.mts.map +0 -1
- package/dist/services/Spawner/NodeSpawner.mjs +0 -2
- package/dist/services/Spawner/NodeSpawner.mjs.map +0 -1
- package/dist/services/Spawner/index.cjs +0 -1
- package/dist/services/Spawner/index.d.cts +0 -3
- package/dist/services/Spawner/index.d.mts +0 -3
- package/dist/services/Spawner/index.mjs +0 -1
- package/dist/services/Spawner/types.d.cts.map +0 -1
- package/dist/services/Spawner/types.d.mts +0 -31
- package/dist/services/Spawner/types.d.mts.map +0 -1
- package/dist/session.cjs.map +0 -1
- package/dist/session.d.cts +0 -10
- package/dist/session.d.cts.map +0 -1
- package/dist/session.mjs.map +0 -1
- package/dist/tool/bashTool.cjs +0 -7
- package/dist/tool/bashTool.cjs.map +0 -1
- package/dist/tool/bashTool.d.cts +0 -25
- package/dist/tool/bashTool.d.cts.map +0 -1
- package/dist/tool/bashTool.d.mts +0 -25
- package/dist/tool/bashTool.d.mts.map +0 -1
- package/dist/tool/bashTool.mjs +0 -7
- package/dist/tool/bashTool.mjs.map +0 -1
- package/dist/tool/responseEnvelope.cjs +0 -10
- package/dist/tool/responseEnvelope.cjs.map +0 -1
- package/dist/tool/responseEnvelope.d.cts +0 -45
- package/dist/tool/responseEnvelope.d.cts.map +0 -1
- package/dist/tool/responseEnvelope.d.mts +0 -45
- package/dist/tool/responseEnvelope.d.mts.map +0 -1
- package/dist/tool/responseEnvelope.mjs +0 -10
- package/dist/tool/responseEnvelope.mjs.map +0 -1
- package/dist/tool/schema.cjs +0 -2
- package/dist/tool/schema.cjs.map +0 -1
- package/dist/tool/schema.d.cts.map +0 -1
- package/dist/tool/schema.d.mts +0 -25
- package/dist/tool/schema.d.mts.map +0 -1
- package/dist/tool/schema.mjs +0 -2
- package/dist/tool/schema.mjs.map +0 -1
- package/dist/tui/bashRender.cjs +0 -8
- package/dist/tui/bashRender.cjs.map +0 -1
- package/dist/tui/bashRender.d.cts +0 -51
- package/dist/tui/bashRender.d.cts.map +0 -1
- package/dist/tui/bashRender.d.mts.map +0 -1
- package/dist/tui/bashRender.mjs +0 -8
- package/dist/tui/bashRender.mjs.map +0 -1
- package/dist/tui/format.cjs +0 -2
- package/dist/tui/format.cjs.map +0 -1
- package/dist/tui/format.d.cts +0 -25
- package/dist/tui/format.d.cts.map +0 -1
- package/dist/tui/format.d.mts +0 -25
- package/dist/tui/format.d.mts.map +0 -1
- package/dist/tui/format.mjs +0 -2
- package/dist/tui/format.mjs.map +0 -1
- package/dist/tui/runnerSpace.cjs +0 -6
- package/dist/tui/runnerSpace.cjs.map +0 -1
- package/dist/tui/runnerSpace.d.cts +0 -52
- package/dist/tui/runnerSpace.d.cts.map +0 -1
- package/dist/tui/runnerSpace.d.mts.map +0 -1
- package/dist/tui/runnerSpace.mjs +0 -6
- package/dist/tui/runnerSpace.mjs.map +0 -1
- package/dist/types.cjs.map +0 -1
- package/dist/types.d.cts +0 -28
- package/dist/types.d.cts.map +0 -1
- package/dist/types.d.mts.map +0 -1
- package/dist/types.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,47 +1,244 @@
|
|
|
1
1
|
# @agimon-ai/doompi-runner
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Supervised shell execution, background process control, durable logs, and Runner Space for Pi.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
instead of blocking, a process tool manages them, and detached runs reconcile themselves
|
|
7
|
-
after the context is rewritten.
|
|
5
|
+
Part of the [DoomPi distribution](https://www.npmjs.com/package/@agimon-ai/doompi).
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
Runner replaces Pi's built-in `bash` tool only in sessions that load it. Short commands return
|
|
8
|
+
inline; long commands can be promoted to a background runner instead of blocking the agent.
|
|
9
|
+
|
|
10
|
+
> **Alpha:** tool and process contracts may change between releases.
|
|
11
|
+
|
|
12
|
+
## Requirements
|
|
13
|
+
|
|
14
|
+
- Node.js 22.19.0 or newer
|
|
15
|
+
- Pi 0.85.0 and Pi TUI 0.85.0
|
|
16
|
+
- `/bin/bash`
|
|
17
|
+
- macOS or Linux on arm64 or x64 for bundled RMUX and RTK support
|
|
18
|
+
|
|
19
|
+
Linux native loading also depends on a compatible system loader and libc. The bundled binaries are
|
|
20
|
+
glibc-linked, so a musl host such as Alpine cannot run them.
|
|
21
|
+
|
|
22
|
+
RTK is optional. Eligible commands return bounded raw output with an "RTK is unavailable" note
|
|
23
|
+
when its binary is missing or cannot start. A synchronous spawn failure or an `ENOENT`, `EACCES`,
|
|
24
|
+
or `ENOEXEC` spawn error disables further attempts for that `RtkProcessor` instance. Missing-path
|
|
25
|
+
resolution and ordinary processing failures are not latched.
|
|
26
|
+
|
|
27
|
+
Panes come from the first backend that answers: bundled RMUX, then `rmux` on PATH, then `tmux` on
|
|
28
|
+
PATH. Only when none is available does a non-interactive command fall back to a supervised
|
|
29
|
+
subprocess, and interactive commands need one of them. A tmux-backed run is supervised by the same
|
|
30
|
+
host process as an RMUX one, so exit metadata and logs behave the same; its session names carry a
|
|
31
|
+
`doom-tmux-` prefix rather than `doom-runner-`.
|
|
12
32
|
|
|
13
33
|
## Install
|
|
14
34
|
|
|
35
|
+
`doompi init` and `dpi init` include Runner in `default.packages` in `.doom/modes.yaml`. Remove
|
|
36
|
+
it to keep Pi's `bash`, or move it to a named layer to enable it only in selected major modes.
|
|
37
|
+
For direct Pi installation:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pi install npm:@agimon-ai/doompi-runner
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Pi discovers Runner's sole extension factory from `package.json.pi.extensions`. The extension joins
|
|
44
|
+
the runner-scoped Cordis host and releases its plugin resources and host lease when the Pi session
|
|
45
|
+
shuts down.
|
|
46
|
+
|
|
47
|
+
## Use the `bash` tool
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
{
|
|
51
|
+
"command": "pnpm test",
|
|
52
|
+
"timeout": 60
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Commands crossing the promotion threshold move to a supervised runner. The default threshold is 60
|
|
57
|
+
seconds. Set `background: true` to detach immediately, or `interactive: true` only when a command
|
|
58
|
+
needs terminal input.
|
|
59
|
+
|
|
60
|
+
Runner requires `PI_SESSION_ID` for session ownership. Processes, controls, and logs remain
|
|
61
|
+
addressable after transcript compaction because their identity is outside model context.
|
|
62
|
+
|
|
63
|
+
### RTK result processing
|
|
64
|
+
|
|
65
|
+
Runner keeps the complete original log, then uses the matching RTK stdin filter only for
|
|
66
|
+
conservatively recognized single commands. Current safe mappings cover `cargo test`, `pytest`, plain
|
|
67
|
+
unified `git diff`, structured `grep` or `rg`, `go test -json`, and JSON-formatted `ruff check`.
|
|
68
|
+
Compound commands, pipelines, redirects, substitutions, incompatible formats, unsupported commands,
|
|
69
|
+
and logs above RTK's 10 MiB stdin limit return bounded raw output instead. An eligible RTK failure
|
|
70
|
+
also returns bounded raw output with a warning and does not change the command exit result.
|
|
71
|
+
|
|
72
|
+
## Inspect and control runs
|
|
73
|
+
|
|
74
|
+
Use `/runners` or `SPC r l` in the TUI. The `doom-runner` CLI supports:
|
|
75
|
+
|
|
15
76
|
```bash
|
|
16
|
-
|
|
77
|
+
doom-runner list
|
|
78
|
+
doom-runner status <runner-id>
|
|
79
|
+
doom-runner logs <runner-id>
|
|
80
|
+
doom-runner input <runner-id> --text "y" --enter
|
|
81
|
+
doom-runner stop <runner-id>
|
|
82
|
+
doom-runner stop-all
|
|
17
83
|
```
|
|
18
84
|
|
|
19
|
-
|
|
85
|
+
The `input` command requires a running interactive process backed by RMUX or tmux.
|
|
86
|
+
|
|
87
|
+
Stop runs that are no longer required.
|
|
20
88
|
|
|
21
|
-
|
|
89
|
+
## Storage and limits
|
|
22
90
|
|
|
23
|
-
|
|
24
|
-
layers:
|
|
25
|
-
runner:
|
|
26
|
-
packages: ['@agimon-ai/doompi-runner/extensions/pi']
|
|
91
|
+
By default, session-scoped logs and registry data live under:
|
|
27
92
|
|
|
28
|
-
|
|
29
|
-
|
|
93
|
+
```text
|
|
94
|
+
~/.pi/agent/doom-runner/<session>/
|
|
30
95
|
```
|
|
31
96
|
|
|
32
|
-
|
|
97
|
+
Logs remain complete until TTL cleanup and are eligible for cleanup after seven days by default. The
|
|
98
|
+
legacy log-size configuration exports remain available for compatibility but no longer rotate log
|
|
99
|
+
content. Result limits, retention, and the promotion threshold remain environment-configurable.
|
|
100
|
+
|
|
101
|
+
### Result excerpts
|
|
102
|
+
|
|
103
|
+
A result that exceeds the ceiling is returned as an excerpt: roughly the first fifth of the budget
|
|
104
|
+
holds the opening lines, the rest holds the closing ones, and a marker between them states how many
|
|
105
|
+
lines were dropped.
|
|
106
|
+
|
|
107
|
+
The budget depends on the exit status. A command that **failed** gets 8 KiB and 120 lines, because
|
|
108
|
+
its output is the evidence. A command that **succeeded** gets 2 KiB, because exiting 0 has already
|
|
109
|
+
reported the outcome and the rest is mostly progress lines and repeated warnings:
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
Log excerpt (71 of 604 lines):
|
|
113
|
+
$ pnpm build
|
|
114
|
+
Compiling 1200 modules...
|
|
115
|
+
compiled src/module-0.ts
|
|
116
|
+
… [5 lines elided] …
|
|
117
|
+
compiled src/module-599.ts
|
|
118
|
+
Build succeeded in 12.4s
|
|
119
|
+
exit status 0
|
|
120
|
+
Full log: /path/to/run.log (17.0 KB, 604 lines); inspect with doom-runner logs run-a
|
|
121
|
+
```
|
|
33
122
|
|
|
34
|
-
|
|
123
|
+
Three ceilings apply and whichever binds first wins: bytes, lines, and tokens. Tokens are there
|
|
124
|
+
because bytes do not track context cost. Measured against `gpt-tokenizer`, real text runs from about
|
|
125
|
+
1.4 characters per token for base64 to 4.7 for English prose, so 8 KiB of one costs several times
|
|
126
|
+
what 8 KiB of the other does. The defaults are 2,048 tokens on failure and 512 on success.
|
|
127
|
+
|
|
128
|
+
Token counts are estimated rather than tokenized: truncation runs on every command and is
|
|
129
|
+
synchronous, so loading a vocabulary would charge every session for a table most never need. The
|
|
130
|
+
estimator models how BPE behaves, with punctuation forcing boundaries, natural words cheap, and
|
|
131
|
+
letter-digit runs expensive. Its worst error against `gpt-tokenizer` is a factor of about 1.46
|
|
132
|
+
either way, which is why the byte ceiling stays behind it as the hard bound.
|
|
133
|
+
|
|
134
|
+
`DOOM_RUNNER_RESULT_MAX_BYTES`, `DOOM_RUNNER_RESULT_MAX_TOKENS`, and their
|
|
135
|
+
`DOOM_RUNNER_SUCCESS_*` counterparts move these for one invocation. A pragma overrides all of
|
|
136
|
+
them, which is how one noisy successful command can still ask for the wider result. Raising only
|
|
137
|
+
`maxResultBytes` will not help when the token ceiling is the one binding.
|
|
138
|
+
|
|
139
|
+
Error lines found in the dropped span are rescued into that marker's block, up to ten entries.
|
|
140
|
+
Matching looks for a severity word in the first 60 characters, so `[widget] build: error TS2322`
|
|
141
|
+
and a line behind a timestamp both count, while `0 errors`, `no failures`, and `--error-format` do
|
|
142
|
+
not. Byte-identical lines collapse to one entry with an occurrence count. Lines that share a shape
|
|
143
|
+
but differ in detail keep every variant, joined inside brackets so nothing actionable is lost:
|
|
144
|
+
|
|
145
|
+
```text
|
|
146
|
+
ERROR in [src/widget-100.ts:100:7|src/widget-200.ts:200:7] - Type mismatch
|
|
147
|
+
error: connection refused (×40)
|
|
148
|
+
```
|
|
35
149
|
|
|
36
|
-
|
|
150
|
+
The complete raw log on disk is never truncated.
|
|
37
151
|
|
|
38
|
-
|
|
39
|
-
optional dependencies.
|
|
152
|
+
### Configuration
|
|
40
153
|
|
|
41
|
-
|
|
154
|
+
Four layers, most specific first: a per-command pragma, then an environment variable, then project
|
|
155
|
+
configuration, then the built-in default. Project configuration is the project's baseline, so an
|
|
156
|
+
environment variable set for one invocation still wins over it.
|
|
42
157
|
|
|
43
|
-
|
|
158
|
+
One command that needs a wider result can say so on its first line. The pragma is a shell comment,
|
|
159
|
+
so it stays harmless to the command itself:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
# @doom: {"maxResultBytes": 32768, "maxResultTokens": 8192, "maxResultLines": 300}
|
|
163
|
+
pnpm build
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Project settings follow Pi's convention for extension configuration: one JSON file per extension
|
|
167
|
+
under the config directory, at `.pi/doompi-runner.json`. It is read only when the project is
|
|
168
|
+
trusted, and an unrecognized or out-of-range key is reported rather than silently ignored.
|
|
169
|
+
|
|
170
|
+
```json
|
|
171
|
+
{
|
|
172
|
+
"maxResultBytes": 16384,
|
|
173
|
+
"maxResultLines": 200,
|
|
174
|
+
"successMaxResultBytes": 2048,
|
|
175
|
+
"maxResultTokens": 2048,
|
|
176
|
+
"successMaxResultTokens": 512,
|
|
177
|
+
"headRatio": 0.2,
|
|
178
|
+
"errorPatterns": ["^FEHLER", "^\\s*FAILED\\b"],
|
|
179
|
+
"errorMaxEntries": 10,
|
|
180
|
+
"errorMaxVariantsJoined": 6,
|
|
181
|
+
"errorBudgetRatio": 0.2
|
|
182
|
+
}
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
`errorPatterns` extends the built-in matcher rather than replacing it, which is what makes output
|
|
186
|
+
it does not recognize reachable. Ceilings apply to every numeric key so a checked-in file cannot
|
|
187
|
+
flood the model's context.
|
|
188
|
+
|
|
189
|
+
Commands inherit the DoomPi process environment and the operating system user's privileges. Logs
|
|
190
|
+
may contain prompts, source, command output, credentials, or other secrets; restrict access and
|
|
191
|
+
retention accordingly.
|
|
192
|
+
|
|
193
|
+
## Native artifacts
|
|
194
|
+
|
|
195
|
+
Runner selects the matching optional dependencies automatically:
|
|
196
|
+
|
|
197
|
+
| Host | RMUX package | RTK package |
|
|
198
|
+
| ----------- | -------------------------------------------- | ------------------------------------------- |
|
|
199
|
+
| macOS arm64 | `@agimon-ai/doompi-runner-rmux-darwin-arm64` | `@agimon-ai/doompi-runner-rtk-darwin-arm64` |
|
|
200
|
+
| macOS x64 | `@agimon-ai/doompi-runner-rmux-darwin-x64` | `@agimon-ai/doompi-runner-rtk-darwin-x64` |
|
|
201
|
+
| Linux arm64 | `@agimon-ai/doompi-runner-rmux-linux-arm64` | `@agimon-ai/doompi-runner-rtk-linux-arm64` |
|
|
202
|
+
| Linux x64 | `@agimon-ai/doompi-runner-rmux-linux-x64` | `@agimon-ai/doompi-runner-rtk-linux-x64` |
|
|
203
|
+
|
|
204
|
+
Do not install platform packages directly. They contain native executables and export only package
|
|
205
|
+
metadata. RMUX is dual-licensed under MIT or Apache-2.0. RTK v0.45.0 is licensed under Apache-2.0.
|
|
206
|
+
|
|
207
|
+
## Public API
|
|
208
|
+
|
|
209
|
+
```ts
|
|
210
|
+
import {
|
|
211
|
+
createRunnerDependencies,
|
|
212
|
+
DEFAULT_BG_THRESHOLD_MS,
|
|
213
|
+
DEFAULT_LOG_MAX_BYTES,
|
|
214
|
+
DEFAULT_LOG_TTL_MS,
|
|
215
|
+
RmuxBackend,
|
|
216
|
+
rtkPackageForTarget,
|
|
217
|
+
} from '@agimon-ai/doompi-runner';
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
Declared subpaths expose process supervision, configuration, tools, response envelopes, and TUI
|
|
221
|
+
integration for host authors.
|
|
222
|
+
|
|
223
|
+
## Development
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
pnpm build
|
|
227
|
+
pnpm typecheck
|
|
228
|
+
pnpm test
|
|
229
|
+
pnpm lint
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
Maintained by [Agimon](https://agimon.ai/about).
|
|
44
233
|
|
|
45
234
|
## License
|
|
46
235
|
|
|
47
236
|
MIT
|
|
237
|
+
|
|
238
|
+
## Extension lifecycle and source layout
|
|
239
|
+
|
|
240
|
+
`extensions/pi.ts` assembles the Runner UI runtime and native Bash tool declaration. `onStart` resolves the lazy service graph, subscribes to registry updates, and starts retention/status polling. `onStop` awaits initialization and pending operations, stops owned processes, closes PTYs and the registry, and releases telemetry. Partial startup closes an already opened registry.
|
|
241
|
+
|
|
242
|
+
The Pi UI orchestration is in `tui/runnerRuntime.ts`; process and filesystem implementations live in `services/<name>/`. Controllers implement HTTP, CLI, and server command handling. `extensions/server.ts` composes the per-session supervision activity with those controllers. Model state, constants, and schemas have dedicated roots. The browser declaration lives directly in `extensions/web.ts`.
|
|
243
|
+
|
|
244
|
+
Public capabilities use flat kebab-case subpaths such as `runner-dependencies`, `rmux-backend`, `runner-paths`, `bash-tool`, and `response-envelope`. Flat `src/exports/` files only forward these capabilities. Executable `bin/*` paths remain unchanged. The former nested service aliases and container entry are removed.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
//#region src/constants/ansiScrub.ts
|
|
2
|
+
const CONTROL_PATTERN = /[\u0007\u0008]/g;
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/services/ansiScrub/index.ts
|
|
5
|
+
/**
|
|
6
|
+
* Turns terminal output into text worth grepping.
|
|
7
|
+
*
|
|
8
|
+
* PTY output is written for a screen, not a file: colours, cursor moves and
|
|
9
|
+
* carriage-return redraws all end up in the byte stream. Without this a single
|
|
10
|
+
* progress bar becomes thousands of near-identical log lines.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* CSI sequences (colours, cursor moves), OSC strings, the two-byte Fe escapes,
|
|
14
|
+
* and the keypad-mode escapes shells emit around every prompt.
|
|
15
|
+
*/
|
|
16
|
+
const ANSI_PATTERN = new RegExp([
|
|
17
|
+
"\\u001B\\[[0-9;?]*[ -/]*[@-~]",
|
|
18
|
+
"\\u001B\\][^\\u0007\\u001B]*(?:\\u0007|\\u001B\\\\)",
|
|
19
|
+
"\\u001B[@-Z\\\\-_]",
|
|
20
|
+
"\\u001B[=><]"
|
|
21
|
+
].join("|"), "g");
|
|
22
|
+
/** Bell and backspace, which a terminal consumes rather than displays. */
|
|
23
|
+
/**
|
|
24
|
+
* The same set minus SGR, the sequence that only sets colour and weight.
|
|
25
|
+
*
|
|
26
|
+
* The final byte class omits `m`, so `ESC[32m` survives while cursor moves,
|
|
27
|
+
* OSC strings and keypad escapes are still removed.
|
|
28
|
+
*/
|
|
29
|
+
const ANSI_PATTERN_KEEPING_COLOUR = new RegExp([
|
|
30
|
+
"\\u001B\\[[0-9;?]*[ -/]*[@-ln-~]",
|
|
31
|
+
"\\u001B\\][^\\u0007\\u001B]*(?:\\u0007|\\u001B\\\\)",
|
|
32
|
+
"\\u001B[@-Z\\\\-_]",
|
|
33
|
+
"\\u001B[=><]"
|
|
34
|
+
].join("|"), "g");
|
|
35
|
+
/** Removes escape sequences, leaving the characters a user would have seen. */
|
|
36
|
+
function stripAnsi(text) {
|
|
37
|
+
return text.replace(ANSI_PATTERN, "").replace(CONTROL_PATTERN, "");
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Removes everything `stripAnsi` does except colour.
|
|
41
|
+
*
|
|
42
|
+
* Logs are read back by a terminal renderer as well as by grep, and a command
|
|
43
|
+
* that colours its own output has already said how it should look.
|
|
44
|
+
*/
|
|
45
|
+
function stripAnsiKeepingColour(text) {
|
|
46
|
+
return text.replace(ANSI_PATTERN_KEEPING_COLOUR, "").replace(CONTROL_PATTERN, "");
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Collapses carriage-return redraws.
|
|
50
|
+
*
|
|
51
|
+
* A bare `\r` returns the cursor to the start of the current line, so whatever
|
|
52
|
+
* follows overwrites it. Only the final state of each line is kept. The `\r` of
|
|
53
|
+
* a CRLF pair is a line terminator rather than a redraw, so it is normalised
|
|
54
|
+
* away first: a pseudo terminal ends every line that way, and treating it as a
|
|
55
|
+
* redraw would blank the whole log.
|
|
56
|
+
*/
|
|
57
|
+
function collapseCarriageReturns(text) {
|
|
58
|
+
return text.replace(/\r\n/g, "\n").split("\n").map((line) => line.includes("\r") ? line.split("\r").at(-1) ?? "" : line).join("\n");
|
|
59
|
+
}
|
|
60
|
+
/** Full scrub applied to PTY output before it reaches the log file. */
|
|
61
|
+
function scrubTerminalOutput(text) {
|
|
62
|
+
return collapseCarriageReturns(stripAnsiKeepingColour(text));
|
|
63
|
+
}
|
|
64
|
+
/** Plain-text scrub, for the copy the model reads. */
|
|
65
|
+
function scrubTerminalOutputToPlainText(text) {
|
|
66
|
+
return collapseCarriageReturns(stripAnsi(text));
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { stripAnsiKeepingColour as a, stripAnsi as i, scrubTerminalOutput as n, scrubTerminalOutputToPlainText as r, collapseCarriageReturns as t };
|
|
70
|
+
|
|
71
|
+
//# sourceMappingURL=ansiScrub-CsqTSaVT.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ansiScrub-CsqTSaVT.mjs","names":[],"sources":["../src/constants/ansiScrub.ts","../src/services/ansiScrub/index.ts"],"sourcesContent":["// oxlint-disable-next-line no-control-regex -- matching terminal control bytes is the whole job\nexport const CONTROL_PATTERN = /[\\u0007\\u0008]/g;\n","import { CONTROL_PATTERN } from '../../constants/ansiScrub';\n/**\n * Turns terminal output into text worth grepping.\n *\n * PTY output is written for a screen, not a file: colours, cursor moves and\n * carriage-return redraws all end up in the byte stream. Without this a single\n * progress bar becomes thousands of near-identical log lines.\n */\n\n/**\n * CSI sequences (colours, cursor moves), OSC strings, the two-byte Fe escapes,\n * and the keypad-mode escapes shells emit around every prompt.\n */\nconst ANSI_PATTERN = new RegExp(\n [\n '\\\\u001B\\\\[[0-9;?]*[ -/]*[@-~]',\n '\\\\u001B\\\\][^\\\\u0007\\\\u001B]*(?:\\\\u0007|\\\\u001B\\\\\\\\)',\n '\\\\u001B[@-Z\\\\\\\\-_]',\n '\\\\u001B[=><]',\n ].join('|'),\n 'g',\n);\n\n/** Bell and backspace, which a terminal consumes rather than displays. */\n// oxlint-disable-next-line no-control-regex -- matching terminal control bytes is the whole job\n\n/**\n * The same set minus SGR, the sequence that only sets colour and weight.\n *\n * The final byte class omits `m`, so `ESC[32m` survives while cursor moves,\n * OSC strings and keypad escapes are still removed.\n */\nconst ANSI_PATTERN_KEEPING_COLOUR = new RegExp(\n [\n '\\\\u001B\\\\[[0-9;?]*[ -/]*[@-ln-~]',\n '\\\\u001B\\\\][^\\\\u0007\\\\u001B]*(?:\\\\u0007|\\\\u001B\\\\\\\\)',\n '\\\\u001B[@-Z\\\\\\\\-_]',\n '\\\\u001B[=><]',\n ].join('|'),\n 'g',\n);\n\n/** Removes escape sequences, leaving the characters a user would have seen. */\nexport function stripAnsi(text: string): string {\n return text.replace(ANSI_PATTERN, '').replace(CONTROL_PATTERN, '');\n}\n\n/**\n * Removes everything `stripAnsi` does except colour.\n *\n * Logs are read back by a terminal renderer as well as by grep, and a command\n * that colours its own output has already said how it should look.\n */\nexport function stripAnsiKeepingColour(text: string): string {\n return text.replace(ANSI_PATTERN_KEEPING_COLOUR, '').replace(CONTROL_PATTERN, '');\n}\n\n/**\n * Collapses carriage-return redraws.\n *\n * A bare `\\r` returns the cursor to the start of the current line, so whatever\n * follows overwrites it. Only the final state of each line is kept. The `\\r` of\n * a CRLF pair is a line terminator rather than a redraw, so it is normalised\n * away first: a pseudo terminal ends every line that way, and treating it as a\n * redraw would blank the whole log.\n */\nexport function collapseCarriageReturns(text: string): string {\n return text\n .replace(/\\r\\n/g, '\\n')\n .split('\\n')\n .map((line) => (line.includes('\\r') ? (line.split('\\r').at(-1) ?? '') : line))\n .join('\\n');\n}\n\n/** Full scrub applied to PTY output before it reaches the log file. */\nexport function scrubTerminalOutput(text: string): string {\n return collapseCarriageReturns(stripAnsiKeepingColour(text));\n}\n\n/** Plain-text scrub, for the copy the model reads. */\nexport function scrubTerminalOutputToPlainText(text: string): string {\n return collapseCarriageReturns(stripAnsi(text));\n}\n"],"mappings":";AACA,MAAa,kBAAkB;;;;;;;;;;;;;;ACY/B,MAAM,eAAe,IAAI,OACvB;CACE;CACA;CACA;CACA;AACF,CAAC,CAAC,KAAK,GAAG,GACV,GACF;;;;;;;;AAWA,MAAM,8BAA8B,IAAI,OACtC;CACE;CACA;CACA;CACA;AACF,CAAC,CAAC,KAAK,GAAG,GACV,GACF;;AAGA,SAAgB,UAAU,MAAsB;CAC9C,OAAO,KAAK,QAAQ,cAAc,EAAE,CAAC,CAAC,QAAQ,iBAAiB,EAAE;AACnE;;;;;;;AAQA,SAAgB,uBAAuB,MAAsB;CAC3D,OAAO,KAAK,QAAQ,6BAA6B,EAAE,CAAC,CAAC,QAAQ,iBAAiB,EAAE;AAClF;;;;;;;;;;AAWA,SAAgB,wBAAwB,MAAsB;CAC5D,OAAO,KACJ,QAAQ,SAAS,IAAI,CAAC,CACtB,MAAM,IAAI,CAAC,CACX,KAAK,SAAU,KAAK,SAAS,IAAI,IAAK,KAAK,MAAM,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,KAAM,IAAK,CAAC,CAC7E,KAAK,IAAI;AACd;;AAGA,SAAgB,oBAAoB,MAAsB;CACxD,OAAO,wBAAwB,uBAAuB,IAAI,CAAC;AAC7D;;AAGA,SAAgB,+BAA+B,MAAsB;CACnE,OAAO,wBAAwB,UAAU,IAAI,CAAC;AAChD"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
//#region src/constants/ansiScrub.ts
|
|
2
|
+
const CONTROL_PATTERN = /[\u0007\u0008]/g;
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/services/ansiScrub/index.ts
|
|
5
|
+
/**
|
|
6
|
+
* Turns terminal output into text worth grepping.
|
|
7
|
+
*
|
|
8
|
+
* PTY output is written for a screen, not a file: colours, cursor moves and
|
|
9
|
+
* carriage-return redraws all end up in the byte stream. Without this a single
|
|
10
|
+
* progress bar becomes thousands of near-identical log lines.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* CSI sequences (colours, cursor moves), OSC strings, the two-byte Fe escapes,
|
|
14
|
+
* and the keypad-mode escapes shells emit around every prompt.
|
|
15
|
+
*/
|
|
16
|
+
const ANSI_PATTERN = new RegExp([
|
|
17
|
+
"\\u001B\\[[0-9;?]*[ -/]*[@-~]",
|
|
18
|
+
"\\u001B\\][^\\u0007\\u001B]*(?:\\u0007|\\u001B\\\\)",
|
|
19
|
+
"\\u001B[@-Z\\\\-_]",
|
|
20
|
+
"\\u001B[=><]"
|
|
21
|
+
].join("|"), "g");
|
|
22
|
+
/** Bell and backspace, which a terminal consumes rather than displays. */
|
|
23
|
+
/**
|
|
24
|
+
* The same set minus SGR, the sequence that only sets colour and weight.
|
|
25
|
+
*
|
|
26
|
+
* The final byte class omits `m`, so `ESC[32m` survives while cursor moves,
|
|
27
|
+
* OSC strings and keypad escapes are still removed.
|
|
28
|
+
*/
|
|
29
|
+
const ANSI_PATTERN_KEEPING_COLOUR = new RegExp([
|
|
30
|
+
"\\u001B\\[[0-9;?]*[ -/]*[@-ln-~]",
|
|
31
|
+
"\\u001B\\][^\\u0007\\u001B]*(?:\\u0007|\\u001B\\\\)",
|
|
32
|
+
"\\u001B[@-Z\\\\-_]",
|
|
33
|
+
"\\u001B[=><]"
|
|
34
|
+
].join("|"), "g");
|
|
35
|
+
/** Removes escape sequences, leaving the characters a user would have seen. */
|
|
36
|
+
function stripAnsi(text) {
|
|
37
|
+
return text.replace(ANSI_PATTERN, "").replace(CONTROL_PATTERN, "");
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Removes everything `stripAnsi` does except colour.
|
|
41
|
+
*
|
|
42
|
+
* Logs are read back by a terminal renderer as well as by grep, and a command
|
|
43
|
+
* that colours its own output has already said how it should look.
|
|
44
|
+
*/
|
|
45
|
+
function stripAnsiKeepingColour(text) {
|
|
46
|
+
return text.replace(ANSI_PATTERN_KEEPING_COLOUR, "").replace(CONTROL_PATTERN, "");
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Collapses carriage-return redraws.
|
|
50
|
+
*
|
|
51
|
+
* A bare `\r` returns the cursor to the start of the current line, so whatever
|
|
52
|
+
* follows overwrites it. Only the final state of each line is kept. The `\r` of
|
|
53
|
+
* a CRLF pair is a line terminator rather than a redraw, so it is normalised
|
|
54
|
+
* away first: a pseudo terminal ends every line that way, and treating it as a
|
|
55
|
+
* redraw would blank the whole log.
|
|
56
|
+
*/
|
|
57
|
+
function collapseCarriageReturns(text) {
|
|
58
|
+
return text.replace(/\r\n/g, "\n").split("\n").map((line) => line.includes("\r") ? line.split("\r").at(-1) ?? "" : line).join("\n");
|
|
59
|
+
}
|
|
60
|
+
/** Full scrub applied to PTY output before it reaches the log file. */
|
|
61
|
+
function scrubTerminalOutput(text) {
|
|
62
|
+
return collapseCarriageReturns(stripAnsiKeepingColour(text));
|
|
63
|
+
}
|
|
64
|
+
/** Plain-text scrub, for the copy the model reads. */
|
|
65
|
+
function scrubTerminalOutputToPlainText(text) {
|
|
66
|
+
return collapseCarriageReturns(stripAnsi(text));
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
Object.defineProperty(exports, "collapseCarriageReturns", {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function() {
|
|
72
|
+
return collapseCarriageReturns;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(exports, "scrubTerminalOutput", {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: function() {
|
|
78
|
+
return scrubTerminalOutput;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
Object.defineProperty(exports, "scrubTerminalOutputToPlainText", {
|
|
82
|
+
enumerable: true,
|
|
83
|
+
get: function() {
|
|
84
|
+
return scrubTerminalOutputToPlainText;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(exports, "stripAnsi", {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function() {
|
|
90
|
+
return stripAnsi;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
Object.defineProperty(exports, "stripAnsiKeepingColour", {
|
|
94
|
+
enumerable: true,
|
|
95
|
+
get: function() {
|
|
96
|
+
return stripAnsiKeepingColour;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
//# sourceMappingURL=ansiScrub-D5gpHDch.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ansiScrub-D5gpHDch.cjs","names":[],"sources":["../src/constants/ansiScrub.ts","../src/services/ansiScrub/index.ts"],"sourcesContent":["// oxlint-disable-next-line no-control-regex -- matching terminal control bytes is the whole job\nexport const CONTROL_PATTERN = /[\\u0007\\u0008]/g;\n","import { CONTROL_PATTERN } from '../../constants/ansiScrub';\n/**\n * Turns terminal output into text worth grepping.\n *\n * PTY output is written for a screen, not a file: colours, cursor moves and\n * carriage-return redraws all end up in the byte stream. Without this a single\n * progress bar becomes thousands of near-identical log lines.\n */\n\n/**\n * CSI sequences (colours, cursor moves), OSC strings, the two-byte Fe escapes,\n * and the keypad-mode escapes shells emit around every prompt.\n */\nconst ANSI_PATTERN = new RegExp(\n [\n '\\\\u001B\\\\[[0-9;?]*[ -/]*[@-~]',\n '\\\\u001B\\\\][^\\\\u0007\\\\u001B]*(?:\\\\u0007|\\\\u001B\\\\\\\\)',\n '\\\\u001B[@-Z\\\\\\\\-_]',\n '\\\\u001B[=><]',\n ].join('|'),\n 'g',\n);\n\n/** Bell and backspace, which a terminal consumes rather than displays. */\n// oxlint-disable-next-line no-control-regex -- matching terminal control bytes is the whole job\n\n/**\n * The same set minus SGR, the sequence that only sets colour and weight.\n *\n * The final byte class omits `m`, so `ESC[32m` survives while cursor moves,\n * OSC strings and keypad escapes are still removed.\n */\nconst ANSI_PATTERN_KEEPING_COLOUR = new RegExp(\n [\n '\\\\u001B\\\\[[0-9;?]*[ -/]*[@-ln-~]',\n '\\\\u001B\\\\][^\\\\u0007\\\\u001B]*(?:\\\\u0007|\\\\u001B\\\\\\\\)',\n '\\\\u001B[@-Z\\\\\\\\-_]',\n '\\\\u001B[=><]',\n ].join('|'),\n 'g',\n);\n\n/** Removes escape sequences, leaving the characters a user would have seen. */\nexport function stripAnsi(text: string): string {\n return text.replace(ANSI_PATTERN, '').replace(CONTROL_PATTERN, '');\n}\n\n/**\n * Removes everything `stripAnsi` does except colour.\n *\n * Logs are read back by a terminal renderer as well as by grep, and a command\n * that colours its own output has already said how it should look.\n */\nexport function stripAnsiKeepingColour(text: string): string {\n return text.replace(ANSI_PATTERN_KEEPING_COLOUR, '').replace(CONTROL_PATTERN, '');\n}\n\n/**\n * Collapses carriage-return redraws.\n *\n * A bare `\\r` returns the cursor to the start of the current line, so whatever\n * follows overwrites it. Only the final state of each line is kept. The `\\r` of\n * a CRLF pair is a line terminator rather than a redraw, so it is normalised\n * away first: a pseudo terminal ends every line that way, and treating it as a\n * redraw would blank the whole log.\n */\nexport function collapseCarriageReturns(text: string): string {\n return text\n .replace(/\\r\\n/g, '\\n')\n .split('\\n')\n .map((line) => (line.includes('\\r') ? (line.split('\\r').at(-1) ?? '') : line))\n .join('\\n');\n}\n\n/** Full scrub applied to PTY output before it reaches the log file. */\nexport function scrubTerminalOutput(text: string): string {\n return collapseCarriageReturns(stripAnsiKeepingColour(text));\n}\n\n/** Plain-text scrub, for the copy the model reads. */\nexport function scrubTerminalOutputToPlainText(text: string): string {\n return collapseCarriageReturns(stripAnsi(text));\n}\n"],"mappings":";AACA,MAAa,kBAAkB;;;;;;;;;;;;;;ACY/B,MAAM,eAAe,IAAI,OACvB;CACE;CACA;CACA;CACA;AACF,CAAC,CAAC,KAAK,GAAG,GACV,GACF;;;;;;;;AAWA,MAAM,8BAA8B,IAAI,OACtC;CACE;CACA;CACA;CACA;AACF,CAAC,CAAC,KAAK,GAAG,GACV,GACF;;AAGA,SAAgB,UAAU,MAAsB;CAC9C,OAAO,KAAK,QAAQ,cAAc,EAAE,CAAC,CAAC,QAAQ,iBAAiB,EAAE;AACnE;;;;;;;AAQA,SAAgB,uBAAuB,MAAsB;CAC3D,OAAO,KAAK,QAAQ,6BAA6B,EAAE,CAAC,CAAC,QAAQ,iBAAiB,EAAE;AAClF;;;;;;;;;;AAWA,SAAgB,wBAAwB,MAAsB;CAC5D,OAAO,KACJ,QAAQ,SAAS,IAAI,CAAC,CACtB,MAAM,IAAI,CAAC,CACX,KAAK,SAAU,KAAK,SAAS,IAAI,IAAK,KAAK,MAAM,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,KAAM,IAAK,CAAC,CAC7E,KAAK,IAAI;AACd;;AAGA,SAAgB,oBAAoB,MAAsB;CACxD,OAAO,wBAAwB,uBAAuB,IAAI,CAAC;AAC7D;;AAGA,SAAgB,+BAA+B,MAAsB;CACnE,OAAO,wBAAwB,UAAU,IAAI,CAAC;AAChD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_ansiScrub = require("./ansiScrub-D5gpHDch.cjs");
|
|
3
|
+
exports.collapseCarriageReturns = require_ansiScrub.collapseCarriageReturns;
|
|
4
|
+
exports.scrubTerminalOutput = require_ansiScrub.scrubTerminalOutput;
|
|
5
|
+
exports.scrubTerminalOutputToPlainText = require_ansiScrub.scrubTerminalOutputToPlainText;
|
|
6
|
+
exports.stripAnsi = require_ansiScrub.stripAnsi;
|
|
7
|
+
exports.stripAnsiKeepingColour = require_ansiScrub.stripAnsiKeepingColour;
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
//#region src/services/
|
|
2
|
-
/**
|
|
3
|
-
* Turns terminal output into text worth grepping.
|
|
4
|
-
*
|
|
5
|
-
* PTY output is written for a screen, not a file: colours, cursor moves and
|
|
6
|
-
* carriage-return redraws all end up in the byte stream. Without this a single
|
|
7
|
-
* progress bar becomes thousands of near-identical log lines.
|
|
8
|
-
*/
|
|
1
|
+
//#region src/services/ansiScrub/index.d.ts
|
|
9
2
|
/** Removes escape sequences, leaving the characters a user would have seen. */
|
|
10
|
-
declare function stripAnsi(text: string): string;
|
|
3
|
+
export declare function stripAnsi(text: string): string;
|
|
11
4
|
/**
|
|
12
5
|
* Removes everything `stripAnsi` does except colour.
|
|
13
6
|
*
|
|
14
7
|
* Logs are read back by a terminal renderer as well as by grep, and a command
|
|
15
8
|
* that colours its own output has already said how it should look.
|
|
16
9
|
*/
|
|
17
|
-
declare function stripAnsiKeepingColour(text: string): string;
|
|
10
|
+
export declare function stripAnsiKeepingColour(text: string): string;
|
|
18
11
|
/**
|
|
19
12
|
* Collapses carriage-return redraws.
|
|
20
13
|
*
|
|
@@ -24,11 +17,10 @@ declare function stripAnsiKeepingColour(text: string): string;
|
|
|
24
17
|
* away first: a pseudo terminal ends every line that way, and treating it as a
|
|
25
18
|
* redraw would blank the whole log.
|
|
26
19
|
*/
|
|
27
|
-
declare function collapseCarriageReturns(text: string): string;
|
|
20
|
+
export declare function collapseCarriageReturns(text: string): string;
|
|
28
21
|
/** Full scrub applied to PTY output before it reaches the log file. */
|
|
29
|
-
declare function scrubTerminalOutput(text: string): string;
|
|
22
|
+
export declare function scrubTerminalOutput(text: string): string;
|
|
30
23
|
/** Plain-text scrub, for the copy the model reads. */
|
|
31
|
-
declare function scrubTerminalOutputToPlainText(text: string): string;
|
|
24
|
+
export declare function scrubTerminalOutputToPlainText(text: string): string;
|
|
32
25
|
//#endregion
|
|
33
|
-
export { collapseCarriageReturns, scrubTerminalOutput, scrubTerminalOutputToPlainText, stripAnsi, stripAnsiKeepingColour };
|
|
34
26
|
//# sourceMappingURL=ansiScrub.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ansiScrub.d.mts","names":[],"sources":["../src/services/ansiScrub/index.ts"],"mappings":";;wBA2CgB,UAAU;;;;;;;wBAUV,uBAAuB;;;;;;;;;;wBAavB,wBAAwB;;wBASxB,oBAAoB;;wBAKpB,+BAA+B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as stripAnsiKeepingColour, i as stripAnsi, n as scrubTerminalOutput, r as scrubTerminalOutputToPlainText, t as collapseCarriageReturns } from "./ansiScrub-CsqTSaVT.mjs";
|
|
2
|
+
export { collapseCarriageReturns, scrubTerminalOutput, scrubTerminalOutputToPlainText, stripAnsi, stripAnsiKeepingColour };
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
let _agimon_ai_doompi_core_apiContracts = require("@agimon-ai/doompi-core/apiContracts");
|
|
6
|
+
let typebox = require("typebox");
|
|
7
|
+
//#region src/schemas/apiContracts.ts
|
|
8
|
+
const S = typebox.Type.String();
|
|
9
|
+
const N = typebox.Type.Number();
|
|
10
|
+
const B = typebox.Type.Boolean();
|
|
11
|
+
const O = typebox.Type.Optional;
|
|
12
|
+
const literals = (values) => typebox.Type.Union(values.map((value) => typebox.Type.Literal(value)));
|
|
13
|
+
const Run = typebox.Type.Object({
|
|
14
|
+
id: S,
|
|
15
|
+
name: S,
|
|
16
|
+
pid: N,
|
|
17
|
+
command: S,
|
|
18
|
+
cwd: S,
|
|
19
|
+
interactive: B,
|
|
20
|
+
backend: literals([
|
|
21
|
+
"rmux",
|
|
22
|
+
"tmux",
|
|
23
|
+
"native"
|
|
24
|
+
]),
|
|
25
|
+
state: literals(["running", "completed"]),
|
|
26
|
+
promoted: B,
|
|
27
|
+
startedAt: S,
|
|
28
|
+
logPath: S,
|
|
29
|
+
exit: O(typebox.Type.Object({
|
|
30
|
+
reason: literals([
|
|
31
|
+
"completed",
|
|
32
|
+
"failed",
|
|
33
|
+
"signaled",
|
|
34
|
+
"stopped",
|
|
35
|
+
"timed_out",
|
|
36
|
+
"launcher_error",
|
|
37
|
+
"backend_lost"
|
|
38
|
+
]),
|
|
39
|
+
code: typebox.Type.Union([N, typebox.Type.Null()]),
|
|
40
|
+
signal: typebox.Type.Union([S, typebox.Type.Null()]),
|
|
41
|
+
stopReason: O(S),
|
|
42
|
+
finishedAt: S
|
|
43
|
+
}))
|
|
44
|
+
});
|
|
45
|
+
const RunnerPayloadSchema = typebox.Type.Object({ runs: typebox.Type.Array(Run) });
|
|
46
|
+
const RunnerLogSchema = typebox.Type.Object({
|
|
47
|
+
runId: S,
|
|
48
|
+
running: B,
|
|
49
|
+
text: S,
|
|
50
|
+
lineCount: N,
|
|
51
|
+
totalLines: N,
|
|
52
|
+
fileSize: N,
|
|
53
|
+
completeBytes: N,
|
|
54
|
+
path: S,
|
|
55
|
+
exists: B,
|
|
56
|
+
lineNumbers: O(typebox.Type.Array(N))
|
|
57
|
+
});
|
|
58
|
+
const RunnerAppendSchema = typebox.Type.Object({
|
|
59
|
+
lines: typebox.Type.Array(S),
|
|
60
|
+
offset: O(N),
|
|
61
|
+
ended: O(B)
|
|
62
|
+
});
|
|
63
|
+
const RunnerScreenSchema = typebox.Type.Object({
|
|
64
|
+
chunk: S,
|
|
65
|
+
offset: O(N),
|
|
66
|
+
ended: O(B)
|
|
67
|
+
});
|
|
68
|
+
const apiContracts = (0, _agimon_ai_doompi_core_apiContracts.defineApiContract)({
|
|
69
|
+
version: 1,
|
|
70
|
+
dynamic: [],
|
|
71
|
+
http: [
|
|
72
|
+
{
|
|
73
|
+
id: "runner.log",
|
|
74
|
+
scope: "session",
|
|
75
|
+
basePath: "runner",
|
|
76
|
+
path: "/runners/{runId}/log",
|
|
77
|
+
method: "GET",
|
|
78
|
+
authentication: "owner",
|
|
79
|
+
description: "Read a runner log tail or literal substring search.",
|
|
80
|
+
parameters: [
|
|
81
|
+
"lines",
|
|
82
|
+
"grep",
|
|
83
|
+
"ignoreCase",
|
|
84
|
+
"contextLines"
|
|
85
|
+
].map((name) => ({
|
|
86
|
+
name,
|
|
87
|
+
in: "query",
|
|
88
|
+
required: false,
|
|
89
|
+
schema: S
|
|
90
|
+
})),
|
|
91
|
+
responses: (0, _agimon_ai_doompi_core_apiContracts.jsonApiResponses)(RunnerLogSchema)
|
|
92
|
+
},
|
|
93
|
+
...["log", "screen"].map((kind) => ({
|
|
94
|
+
id: `runner.${kind}.stream`,
|
|
95
|
+
scope: "session",
|
|
96
|
+
basePath: "runner",
|
|
97
|
+
path: `/runners/{runId}/${kind}/stream`,
|
|
98
|
+
method: "GET",
|
|
99
|
+
authentication: "owner",
|
|
100
|
+
description: `Follow runner ${kind}. SSE data is JSON; ping events carry empty data.`,
|
|
101
|
+
parameters: [{
|
|
102
|
+
name: "from",
|
|
103
|
+
in: "query",
|
|
104
|
+
required: false,
|
|
105
|
+
schema: N
|
|
106
|
+
}],
|
|
107
|
+
responses: {
|
|
108
|
+
"200": {
|
|
109
|
+
description: "Event stream.",
|
|
110
|
+
contentType: "text/event-stream",
|
|
111
|
+
schema: S,
|
|
112
|
+
events: {
|
|
113
|
+
[kind === "log" ? "append" : "screen"]: kind === "log" ? RunnerAppendSchema : RunnerScreenSchema,
|
|
114
|
+
ping: typebox.Type.Literal("")
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"404": {
|
|
118
|
+
description: "Runner unavailable.",
|
|
119
|
+
schema: typebox.Type.Object({ error: S })
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
})),
|
|
123
|
+
{
|
|
124
|
+
id: "runner.input",
|
|
125
|
+
scope: "session",
|
|
126
|
+
basePath: "runner",
|
|
127
|
+
path: "/runners/{runId}/screen/input",
|
|
128
|
+
method: "POST",
|
|
129
|
+
authentication: "owner",
|
|
130
|
+
description: "Send text to an interactive runner.",
|
|
131
|
+
body: {
|
|
132
|
+
required: true,
|
|
133
|
+
contentType: "application/json",
|
|
134
|
+
schema: typebox.Type.Object({ text: typebox.Type.String({ minLength: 1 }) })
|
|
135
|
+
},
|
|
136
|
+
responses: (0, _agimon_ai_doompi_core_apiContracts.jsonApiResponses)(typebox.Type.Object({ delivered: typebox.Type.Literal(true) }))
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
sockets: ["global", "workspace"].map((scope) => ({
|
|
140
|
+
id: "runner.channel",
|
|
141
|
+
scope,
|
|
142
|
+
service: "doompi.hub.v1",
|
|
143
|
+
member: "runner_runs",
|
|
144
|
+
kind: "channel",
|
|
145
|
+
direction: "server-to-client",
|
|
146
|
+
description: "Runner channel payload in the hub frame payload property.",
|
|
147
|
+
input: RunnerPayloadSchema
|
|
148
|
+
}))
|
|
149
|
+
});
|
|
150
|
+
//#endregion
|
|
151
|
+
exports.apiContracts = apiContracts;
|
|
152
|
+
exports.default = apiContracts;
|
|
153
|
+
|
|
154
|
+
//# sourceMappingURL=apiContracts.cjs.map
|