@agimon-ai/doompi-runner 0.0.1-alpha.9 → 0.0.1-alpha.90

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.
Files changed (711) hide show
  1. package/README.md +220 -23
  2. package/dist/ansiScrub-CsqTSaVT.mjs +71 -0
  3. package/dist/ansiScrub-CsqTSaVT.mjs.map +1 -0
  4. package/dist/ansiScrub-D5gpHDch.cjs +100 -0
  5. package/dist/ansiScrub-D5gpHDch.cjs.map +1 -0
  6. package/dist/ansiScrub.cjs +7 -0
  7. package/dist/{services/AnsiScrub/ansiScrub.d.mts → ansiScrub.d.mts} +6 -14
  8. package/dist/ansiScrub.d.mts.map +1 -0
  9. package/dist/ansiScrub.mjs +2 -0
  10. package/dist/apiContracts.cjs +154 -0
  11. package/dist/apiContracts.cjs.map +1 -0
  12. package/dist/apiContracts.d.mts +53 -0
  13. package/dist/apiContracts.d.mts.map +1 -0
  14. package/dist/apiContracts.mjs +149 -0
  15. package/dist/apiContracts.mjs.map +1 -0
  16. package/dist/bashRender-61ZjIac8.cjs +18 -0
  17. package/dist/bashRender-61ZjIac8.cjs.map +1 -0
  18. package/dist/bashRender-CLi1orVw.mjs +7 -0
  19. package/dist/bashRender-CLi1orVw.mjs.map +1 -0
  20. package/dist/bashRender.cjs +155 -0
  21. package/dist/bashRender.cjs.map +1 -0
  22. package/dist/{tui/bashRender.d.mts → bashRender.d.mts} +16 -15
  23. package/dist/bashRender.d.mts.map +1 -0
  24. package/dist/bashRender.mjs +145 -0
  25. package/dist/bashRender.mjs.map +1 -0
  26. package/dist/bashResult-BKLi1Zpx.mjs +544 -0
  27. package/dist/bashResult-BKLi1Zpx.mjs.map +1 -0
  28. package/dist/bashResult-DcrRaBLv.d.mts +49 -0
  29. package/dist/bashResult-DcrRaBLv.d.mts.map +1 -0
  30. package/dist/bashResult-SkF8WzLS.cjs +639 -0
  31. package/dist/bashResult-SkF8WzLS.cjs.map +1 -0
  32. package/dist/{services/BashRunService/types.d.cts → bashRunService-Ci0cGdYO.d.mts} +12 -3
  33. package/dist/bashRunService-Ci0cGdYO.d.mts.map +1 -0
  34. package/dist/bashRunService-DVCoTO2o.mjs +327 -0
  35. package/dist/bashRunService-DVCoTO2o.mjs.map +1 -0
  36. package/dist/bashRunService-DbUkhN8y.cjs +332 -0
  37. package/dist/bashRunService-DbUkhN8y.cjs.map +1 -0
  38. package/dist/bashRunService.cjs +3 -0
  39. package/dist/bashRunService.d.mts +34 -0
  40. package/dist/bashRunService.d.mts.map +1 -0
  41. package/dist/bashRunService.mjs +2 -0
  42. package/dist/bashSchema.cjs +5 -0
  43. package/dist/bashSchema.d.mts +7 -0
  44. package/dist/bashSchema.d.mts.map +1 -0
  45. package/dist/bashSchema.mjs +2 -0
  46. package/dist/{tool/schema.d.cts → bashTool-B1EwZLo_.d.mts} +3 -8
  47. package/dist/bashTool-B1EwZLo_.d.mts.map +1 -0
  48. package/dist/bashTool-BX4UF_cF.mjs +65 -0
  49. package/dist/bashTool-BX4UF_cF.mjs.map +1 -0
  50. package/dist/bashTool-BaGjXD2e.mjs +25 -0
  51. package/dist/bashTool-BaGjXD2e.mjs.map +1 -0
  52. package/dist/bashTool-DzucJQKE.cjs +82 -0
  53. package/dist/bashTool-DzucJQKE.cjs.map +1 -0
  54. package/dist/bashTool-d2iAaq2i.cjs +48 -0
  55. package/dist/bashTool-d2iAaq2i.cjs.map +1 -0
  56. package/dist/bashTool.cjs +15 -0
  57. package/dist/bashTool.cjs.map +1 -0
  58. package/dist/bashTool.d.mts +32 -0
  59. package/dist/bashTool.d.mts.map +1 -0
  60. package/dist/bashTool.mjs +11 -0
  61. package/dist/bashTool.mjs.map +1 -0
  62. package/dist/bin/cli.cjs +76 -3
  63. package/dist/bin/cli.cjs.map +1 -1
  64. package/dist/bin/cli.d.mts +1 -2
  65. package/dist/bin/cli.d.mts.map +1 -1
  66. package/dist/bin/cli.mjs +75 -3
  67. package/dist/bin/cli.mjs.map +1 -1
  68. package/dist/bin/logSink.cjs +101 -1
  69. package/dist/bin/logSink.cjs.map +1 -1
  70. package/dist/bin/logSink.d.mts +1 -2
  71. package/dist/bin/logSink.d.mts.map +1 -1
  72. package/dist/bin/logSink.mjs +98 -1
  73. package/dist/bin/logSink.mjs.map +1 -1
  74. package/dist/bin/runnerHost.cjs +119 -1
  75. package/dist/bin/runnerHost.cjs.map +1 -1
  76. package/dist/bin/runnerHost.d.mts +1 -2
  77. package/dist/bin/runnerHost.d.mts.map +1 -1
  78. package/dist/bin/runnerHost.mjs +115 -1
  79. package/dist/bin/runnerHost.mjs.map +1 -1
  80. package/dist/cliApp-4T2TCpwp.mjs +221 -0
  81. package/dist/cliApp-4T2TCpwp.mjs.map +1 -0
  82. package/dist/cliApp-bWkTg1Q-.cjs +228 -0
  83. package/dist/cliApp-bWkTg1Q-.cjs.map +1 -0
  84. package/dist/cliApp.cjs +3 -0
  85. package/dist/cliApp.d.mts +18 -0
  86. package/dist/cliApp.d.mts.map +1 -0
  87. package/dist/cliApp.mjs +2 -0
  88. package/dist/clock-Cv2pddgo.mjs +16 -0
  89. package/dist/clock-Cv2pddgo.mjs.map +1 -0
  90. package/dist/{services/Clock/types.d.cts → clock-euJkweLq.d.mts} +3 -3
  91. package/dist/clock-euJkweLq.d.mts.map +1 -0
  92. package/dist/clock-jqnLWziT.cjs +21 -0
  93. package/dist/clock-jqnLWziT.cjs.map +1 -0
  94. package/dist/clock.cjs +3 -0
  95. package/dist/clock.d.mts +10 -0
  96. package/dist/clock.d.mts.map +1 -0
  97. package/dist/clock.mjs +2 -0
  98. package/dist/compaction-CEy66gAU.mjs +56 -0
  99. package/dist/compaction-CEy66gAU.mjs.map +1 -0
  100. package/dist/compaction-jYNEd05D.cjs +73 -0
  101. package/dist/compaction-jYNEd05D.cjs.map +1 -0
  102. package/dist/compaction.cjs +5 -4
  103. package/dist/compaction.d.mts +8 -9
  104. package/dist/compaction.d.mts.map +1 -1
  105. package/dist/compaction.mjs +2 -4
  106. package/dist/config.cjs +40 -2
  107. package/dist/config.d.mts +2 -32
  108. package/dist/config.mjs +2 -2
  109. package/dist/extensions/mcp-ui.mjs +23 -0
  110. package/dist/extensions/mcp-ui.mjs.map +1 -0
  111. package/dist/extensions/mcp.cjs +112 -0
  112. package/dist/extensions/mcp.cjs.map +1 -0
  113. package/dist/extensions/mcp.d.mts +5 -0
  114. package/dist/extensions/mcp.d.mts.map +1 -0
  115. package/dist/extensions/mcp.mjs +84 -0
  116. package/dist/extensions/mcp.mjs.map +1 -0
  117. package/dist/extensions/pi.cjs +954 -1
  118. package/dist/extensions/pi.cjs.map +1 -1
  119. package/dist/extensions/pi.d.mts +5 -2
  120. package/dist/extensions/pi.d.mts.map +1 -0
  121. package/dist/extensions/pi.mjs +945 -1
  122. package/dist/extensions/pi.mjs.map +1 -1
  123. package/dist/extensions/server.cjs +765 -0
  124. package/dist/extensions/server.cjs.map +1 -0
  125. package/dist/extensions/server.d.mts +5 -0
  126. package/dist/extensions/server.d.mts.map +1 -0
  127. package/dist/extensions/server.mjs +755 -0
  128. package/dist/extensions/server.mjs.map +1 -0
  129. package/dist/extensions/web.mjs +1786 -0
  130. package/dist/extensions/web.mjs.map +1 -0
  131. package/dist/format-BCl0BTQw.mjs +37 -0
  132. package/dist/format-BCl0BTQw.mjs.map +1 -0
  133. package/dist/format-BaAcUdvA.cjs +78 -0
  134. package/dist/format-BaAcUdvA.cjs.map +1 -0
  135. package/dist/headless-BDvWJKzm.mjs +101 -0
  136. package/dist/headless-BDvWJKzm.mjs.map +1 -0
  137. package/dist/headless-Ch9darGJ.cjs +112 -0
  138. package/dist/headless-Ch9darGJ.cjs.map +1 -0
  139. package/dist/index-BNJZCSzx.d.mts +29 -0
  140. package/dist/index-BNJZCSzx.d.mts.map +1 -0
  141. package/dist/index-BWxvlYO8.d.mts +41 -0
  142. package/dist/index-BWxvlYO8.d.mts.map +1 -0
  143. package/dist/{services/RunnerRegistry/RunnerRegistry.d.cts → index-C5LvdST6.d.mts} +14 -16
  144. package/dist/index-C5LvdST6.d.mts.map +1 -0
  145. package/dist/index-IRH2NxgG.d.mts +20 -0
  146. package/dist/index-IRH2NxgG.d.mts.map +1 -0
  147. package/dist/index-miQ4bSx0.d.mts +24 -0
  148. package/dist/index-miQ4bSx0.d.mts.map +1 -0
  149. package/dist/index.cjs +19 -1
  150. package/dist/index.d.mts +16 -7
  151. package/dist/index.d.mts.map +1 -0
  152. package/dist/index.mjs +6 -1
  153. package/dist/{services/Launcher/types.d.cts → launcher-CkTZm7KT.d.mts} +4 -5
  154. package/dist/launcher-CkTZm7KT.d.mts.map +1 -0
  155. package/dist/launcher-DT3B7nFi.mjs +147 -0
  156. package/dist/launcher-DT3B7nFi.mjs.map +1 -0
  157. package/dist/launcher-s03kVk1v.cjs +154 -0
  158. package/dist/launcher-s03kVk1v.cjs.map +1 -0
  159. package/dist/launcher.cjs +3 -0
  160. package/dist/launcher.d.mts +31 -0
  161. package/dist/launcher.d.mts.map +1 -0
  162. package/dist/launcher.mjs +2 -0
  163. package/dist/lifeline-ClBr2zBW.mjs +88 -0
  164. package/dist/lifeline-ClBr2zBW.mjs.map +1 -0
  165. package/dist/lifeline-bXF7zpef.cjs +98 -0
  166. package/dist/lifeline-bXF7zpef.cjs.map +1 -0
  167. package/dist/{services/Lifeline/types.d.cts → lifeline-eJdZV0nN.d.mts} +3 -3
  168. package/dist/lifeline-eJdZV0nN.d.mts.map +1 -0
  169. package/dist/lifeline.cjs +6 -0
  170. package/dist/lifeline.d.mts +21 -0
  171. package/dist/lifeline.d.mts.map +1 -0
  172. package/dist/lifeline.mjs +3 -0
  173. package/dist/logFile-BACXeSRG.cjs +67 -0
  174. package/dist/logFile-BACXeSRG.cjs.map +1 -0
  175. package/dist/logFile-BbIrIcWY.mjs +60 -0
  176. package/dist/logFile-BbIrIcWY.mjs.map +1 -0
  177. package/dist/{services/LogFile/types.d.cts → logFile-C7oQ_v-g.d.mts} +4 -4
  178. package/dist/logFile-C7oQ_v-g.d.mts.map +1 -0
  179. package/dist/logFile.cjs +3 -0
  180. package/dist/logFile.d.mts +11 -0
  181. package/dist/logFile.d.mts.map +1 -0
  182. package/dist/logFile.mjs +2 -0
  183. package/dist/logReader-7R1V06IS.cjs +282 -0
  184. package/dist/logReader-7R1V06IS.cjs.map +1 -0
  185. package/dist/logReader-DfUVwLLJ.mjs +257 -0
  186. package/dist/logReader-DfUVwLLJ.mjs.map +1 -0
  187. package/dist/logReader-MdW9ffvV.d.mts +43 -0
  188. package/dist/logReader-MdW9ffvV.d.mts.map +1 -0
  189. package/dist/logReader.cjs +4 -0
  190. package/dist/logReader.d.mts +3 -0
  191. package/dist/logReader.mjs +2 -0
  192. package/dist/{services/ProcessControl/types.d.cts → processControl-BAOa3oo_.d.mts} +3 -3
  193. package/dist/processControl-BAOa3oo_.d.mts.map +1 -0
  194. package/dist/processControl-DApTpV16.mjs +26 -0
  195. package/dist/processControl-DApTpV16.mjs.map +1 -0
  196. package/dist/processControl-DNJ1WZ9N.cjs +31 -0
  197. package/dist/processControl-DNJ1WZ9N.cjs.map +1 -0
  198. package/dist/processControl.cjs +3 -0
  199. package/dist/processControl.d.mts +10 -0
  200. package/dist/processControl.d.mts.map +1 -0
  201. package/dist/processControl.mjs +2 -0
  202. package/dist/ptyHost-BMrUFpMX.mjs +148 -0
  203. package/dist/ptyHost-BMrUFpMX.mjs.map +1 -0
  204. package/dist/ptyHost-BsChzCm7.cjs +155 -0
  205. package/dist/ptyHost-BsChzCm7.cjs.map +1 -0
  206. package/dist/{services/PtyHost/types.d.cts → ptyHost-C3geHUQx.d.mts} +4 -5
  207. package/dist/ptyHost-C3geHUQx.d.mts.map +1 -0
  208. package/dist/ptyHost.cjs +3 -0
  209. package/dist/ptyHost.d.mts +24 -0
  210. package/dist/ptyHost.d.mts.map +1 -0
  211. package/dist/ptyHost.mjs +2 -0
  212. package/dist/{services/PtySpawner/types.d.cts → ptySpawner-B6GsueZd.d.mts} +4 -4
  213. package/dist/ptySpawner-B6GsueZd.d.mts.map +1 -0
  214. package/dist/ptySpawner-DEi1KOnd.mjs +17 -0
  215. package/dist/ptySpawner-DEi1KOnd.mjs.map +1 -0
  216. package/dist/ptySpawner-ijw0g5_T.cjs +22 -0
  217. package/dist/ptySpawner-ijw0g5_T.cjs.map +1 -0
  218. package/dist/ptySpawner.cjs +3 -0
  219. package/dist/ptySpawner.d.mts +14 -0
  220. package/dist/ptySpawner.d.mts.map +1 -0
  221. package/dist/ptySpawner.mjs +2 -0
  222. package/dist/reconcile-B109E0xL.cjs +126 -0
  223. package/dist/reconcile-B109E0xL.cjs.map +1 -0
  224. package/dist/reconcile-Cv_M9ctf.mjs +107 -0
  225. package/dist/reconcile-Cv_M9ctf.mjs.map +1 -0
  226. package/dist/reconcile.cjs +5 -2
  227. package/dist/reconcile.d.mts +10 -16
  228. package/dist/reconcile.d.mts.map +1 -1
  229. package/dist/reconcile.mjs +2 -2
  230. package/dist/responseEnvelope.cjs +19 -0
  231. package/dist/responseEnvelope.d.mts +49 -0
  232. package/dist/responseEnvelope.d.mts.map +1 -0
  233. package/dist/responseEnvelope.mjs +3 -0
  234. package/dist/rmuxBackend-B7w7KaF3.mjs +504 -0
  235. package/dist/rmuxBackend-B7w7KaF3.mjs.map +1 -0
  236. package/dist/rmuxBackend-D3ZQCkTw.cjs +518 -0
  237. package/dist/rmuxBackend-D3ZQCkTw.cjs.map +1 -0
  238. package/dist/rmuxBackend-DslAqB7-.d.mts +36 -0
  239. package/dist/rmuxBackend-DslAqB7-.d.mts.map +1 -0
  240. package/dist/rmuxBackend.cjs +4 -0
  241. package/dist/rmuxBackend.d.mts +3 -0
  242. package/dist/rmuxBackend.mjs +2 -0
  243. package/dist/rolldown-runtime-VH7oDXx4.cjs +28 -0
  244. package/dist/rtkProcessor-B4_urXQr.mjs +10 -0
  245. package/dist/rtkProcessor-B4_urXQr.mjs.map +1 -0
  246. package/dist/rtkProcessor-C1cmQhJO.mjs +307 -0
  247. package/dist/rtkProcessor-C1cmQhJO.mjs.map +1 -0
  248. package/dist/rtkProcessor-CVZvNhkJ.d.mts +35 -0
  249. package/dist/rtkProcessor-CVZvNhkJ.d.mts.map +1 -0
  250. package/dist/rtkProcessor-CsrCPyTQ.cjs +33 -0
  251. package/dist/rtkProcessor-CsrCPyTQ.cjs.map +1 -0
  252. package/dist/rtkProcessor-DJedzL3y.cjs +333 -0
  253. package/dist/rtkProcessor-DJedzL3y.cjs.map +1 -0
  254. package/dist/rtkProcessor.cjs +11 -0
  255. package/dist/rtkProcessor.d.mts +7 -0
  256. package/dist/rtkProcessor.d.mts.map +1 -0
  257. package/dist/rtkProcessor.mjs +3 -0
  258. package/dist/runnerConfig-BQnCguNO.d.mts +86 -0
  259. package/dist/runnerConfig-BQnCguNO.d.mts.map +1 -0
  260. package/dist/runnerConfig-D1OoyRo0.mjs +123 -0
  261. package/dist/runnerConfig-D1OoyRo0.mjs.map +1 -0
  262. package/dist/runnerConfig-DsHrA6i2.cjs +350 -0
  263. package/dist/runnerConfig-DsHrA6i2.cjs.map +1 -0
  264. package/dist/runnerDependencies-CsizryxY.mjs +636 -0
  265. package/dist/runnerDependencies-CsizryxY.mjs.map +1 -0
  266. package/dist/runnerDependencies-Dq8oIvGv.cjs +656 -0
  267. package/dist/runnerDependencies-Dq8oIvGv.cjs.map +1 -0
  268. package/dist/runnerDependencies.cjs +3 -0
  269. package/dist/runnerDependencies.d.mts +2 -0
  270. package/dist/runnerDependencies.mjs +2 -0
  271. package/dist/runnerFormat.cjs +9 -0
  272. package/dist/runnerFormat.d.mts +25 -0
  273. package/dist/runnerFormat.d.mts.map +1 -0
  274. package/dist/runnerFormat.mjs +2 -0
  275. package/dist/runnerNamer-B8FH7n2v.mjs +44 -0
  276. package/dist/runnerNamer-B8FH7n2v.mjs.map +1 -0
  277. package/dist/runnerNamer-we1XVYfM.cjs +49 -0
  278. package/dist/runnerNamer-we1XVYfM.cjs.map +1 -0
  279. package/dist/runnerNamer.cjs +3 -0
  280. package/dist/runnerNamer.d.mts +11 -0
  281. package/dist/runnerNamer.d.mts.map +1 -0
  282. package/dist/runnerNamer.mjs +2 -0
  283. package/dist/runnerPaths-BSkjI5EO.cjs +480 -0
  284. package/dist/runnerPaths-BSkjI5EO.cjs.map +1 -0
  285. package/dist/runnerPaths-xeHQjhYj.mjs +459 -0
  286. package/dist/runnerPaths-xeHQjhYj.mjs.map +1 -0
  287. package/dist/runnerPaths.cjs +3 -0
  288. package/dist/runnerPaths.d.mts +50 -0
  289. package/dist/runnerPaths.d.mts.map +1 -0
  290. package/dist/runnerPaths.mjs +2 -0
  291. package/dist/runnerRegistry-CpIH63zQ.mjs +309 -0
  292. package/dist/runnerRegistry-CpIH63zQ.mjs.map +1 -0
  293. package/dist/{services/RunnerRegistry/types.d.cts → runnerRegistry-Cy6rjbel.d.mts} +6 -27
  294. package/dist/runnerRegistry-Cy6rjbel.d.mts.map +1 -0
  295. package/dist/runnerRegistry-DcN71T16.cjs +329 -0
  296. package/dist/runnerRegistry-DcN71T16.cjs.map +1 -0
  297. package/dist/runnerRegistry.cjs +4 -0
  298. package/dist/runnerRegistry.d.mts +3 -0
  299. package/dist/runnerRegistry.mjs +2 -0
  300. package/dist/runnerRuntime-C_eT68L4.mjs +17 -0
  301. package/dist/runnerRuntime-C_eT68L4.mjs.map +1 -0
  302. package/dist/runnerRuntime-DHgXAtWs.cjs +88 -0
  303. package/dist/runnerRuntime-DHgXAtWs.cjs.map +1 -0
  304. package/dist/runnerSpace-BzcAlchW.mjs +218 -0
  305. package/dist/runnerSpace-BzcAlchW.mjs.map +1 -0
  306. package/dist/runnerSpace-DwQOUo3E.cjs +241 -0
  307. package/dist/runnerSpace-DwQOUo3E.cjs.map +1 -0
  308. package/dist/runnerSpace.cjs +6 -0
  309. package/dist/{tui/runnerSpace.d.mts → runnerSpace.d.mts} +13 -15
  310. package/dist/runnerSpace.d.mts.map +1 -0
  311. package/dist/runnerSpace.mjs +2 -0
  312. package/dist/runnersCommand-BoLYarxd.cjs +89 -0
  313. package/dist/runnersCommand-BoLYarxd.cjs.map +1 -0
  314. package/dist/runnersCommand-CuzFn77k.mjs +66 -0
  315. package/dist/runnersCommand-CuzFn77k.mjs.map +1 -0
  316. package/dist/services/lifeline/client.cjs +52 -0
  317. package/dist/services/{Lifeline → lifeline}/client.cjs.map +1 -1
  318. package/dist/services/{Lifeline → lifeline}/client.d.mts +3 -4
  319. package/dist/services/lifeline/client.d.mts.map +1 -0
  320. package/dist/services/lifeline/client.mjs +48 -0
  321. package/dist/services/{Lifeline → lifeline}/client.mjs.map +1 -1
  322. package/dist/services/runnerSupervisor/index.cjs +204 -0
  323. package/dist/services/runnerSupervisor/index.cjs.map +1 -0
  324. package/dist/services/runnerSupervisor/index.d.mts +73 -0
  325. package/dist/services/runnerSupervisor/index.d.mts.map +1 -0
  326. package/dist/services/runnerSupervisor/index.mjs +192 -0
  327. package/dist/services/runnerSupervisor/index.mjs.map +1 -0
  328. package/dist/session-BC43uEyG.cjs +29 -0
  329. package/dist/session-BC43uEyG.cjs.map +1 -0
  330. package/dist/session-Chsb_Nh2.mjs +18 -0
  331. package/dist/session-Chsb_Nh2.mjs.map +1 -0
  332. package/dist/session-DE2Acesp.mjs +6 -0
  333. package/dist/session-DE2Acesp.mjs.map +1 -0
  334. package/dist/session-SfIPtdZO.cjs +11 -0
  335. package/dist/session-SfIPtdZO.cjs.map +1 -0
  336. package/dist/session.cjs +6 -2
  337. package/dist/session.d.mts +6 -5
  338. package/dist/session.d.mts.map +1 -1
  339. package/dist/session.mjs +3 -2
  340. package/dist/spawner-BxFsINXP.cjs +68 -0
  341. package/dist/spawner-BxFsINXP.cjs.map +1 -0
  342. package/dist/{services/Spawner/types.d.cts → spawner-Cv8jkawW.d.mts} +3 -3
  343. package/dist/spawner-Cv8jkawW.d.mts.map +1 -0
  344. package/dist/spawner-LoVsn55-.mjs +63 -0
  345. package/dist/spawner-LoVsn55-.mjs.map +1 -0
  346. package/dist/spawner.cjs +3 -0
  347. package/dist/spawner.d.mts +9 -0
  348. package/dist/spawner.d.mts.map +1 -0
  349. package/dist/spawner.mjs +2 -0
  350. package/dist/{services/RunnerPaths/types.d.cts → type-BXM03qSw.d.mts} +15 -4
  351. package/dist/type-BXM03qSw.d.mts.map +1 -0
  352. package/dist/type-U7Y6NN2B.d.mts +41 -0
  353. package/dist/type-U7Y6NN2B.d.mts.map +1 -0
  354. package/dist/{services/RunnerNamer/types.d.cts → type-vWQNTahw.d.mts} +3 -3
  355. package/dist/type-vWQNTahw.d.mts.map +1 -0
  356. package/dist/types.cjs +0 -2
  357. package/dist/types.d.mts +3 -28
  358. package/dist/types.mjs +1 -2
  359. package/llms.txt +9 -0
  360. package/package.json +226 -228
  361. package/skills/doom-runner/SKILL.md +16 -7
  362. package/src/prompts/doompi-use-runner/SKILL.md +45 -0
  363. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorate.cjs +0 -1
  364. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorate.mjs +0 -1
  365. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorateMetadata.cjs +0 -1
  366. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorateMetadata.mjs +0 -1
  367. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorateParam.cjs +0 -1
  368. package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/decorateParam.mjs +0 -1
  369. package/dist/_virtual/_rolldown/runtime.cjs +0 -1
  370. package/dist/bin/cli.d.cts +0 -5
  371. package/dist/bin/cli.d.cts.map +0 -1
  372. package/dist/bin/logSink.d.cts +0 -5
  373. package/dist/bin/logSink.d.cts.map +0 -1
  374. package/dist/bin/runnerHost.d.cts +0 -5
  375. package/dist/bin/runnerHost.d.cts.map +0 -1
  376. package/dist/cli/cliApp.cjs +0 -6
  377. package/dist/cli/cliApp.cjs.map +0 -1
  378. package/dist/cli/cliApp.d.cts +0 -23
  379. package/dist/cli/cliApp.d.cts.map +0 -1
  380. package/dist/cli/cliApp.d.mts +0 -23
  381. package/dist/cli/cliApp.d.mts.map +0 -1
  382. package/dist/cli/cliApp.mjs +0 -6
  383. package/dist/cli/cliApp.mjs.map +0 -1
  384. package/dist/compaction.cjs.map +0 -1
  385. package/dist/compaction.d.cts +0 -14
  386. package/dist/compaction.d.cts.map +0 -1
  387. package/dist/compaction.mjs.map +0 -1
  388. package/dist/config.cjs.map +0 -1
  389. package/dist/config.d.cts +0 -32
  390. package/dist/config.d.cts.map +0 -1
  391. package/dist/config.d.mts.map +0 -1
  392. package/dist/config.mjs.map +0 -1
  393. package/dist/container/index.cjs +0 -2
  394. package/dist/container/index.cjs.map +0 -1
  395. package/dist/container/index.d.cts +0 -14
  396. package/dist/container/index.d.cts.map +0 -1
  397. package/dist/container/index.d.mts +0 -14
  398. package/dist/container/index.d.mts.map +0 -1
  399. package/dist/container/index.mjs +0 -2
  400. package/dist/container/index.mjs.map +0 -1
  401. package/dist/extension.cjs +0 -3
  402. package/dist/extension.cjs.map +0 -1
  403. package/dist/extension.d.cts +0 -10
  404. package/dist/extension.d.cts.map +0 -1
  405. package/dist/extension.d.mts +0 -10
  406. package/dist/extension.d.mts.map +0 -1
  407. package/dist/extension.mjs +0 -3
  408. package/dist/extension.mjs.map +0 -1
  409. package/dist/extensions/pi.d.cts +0 -2
  410. package/dist/index.d.cts +0 -7
  411. package/dist/ptyProvider.cjs +0 -2
  412. package/dist/ptyProvider.cjs.map +0 -1
  413. package/dist/ptyProvider.d.cts +0 -13
  414. package/dist/ptyProvider.d.cts.map +0 -1
  415. package/dist/ptyProvider.d.mts +0 -13
  416. package/dist/ptyProvider.d.mts.map +0 -1
  417. package/dist/ptyProvider.mjs +0 -2
  418. package/dist/ptyProvider.mjs.map +0 -1
  419. package/dist/reconcile.cjs.map +0 -1
  420. package/dist/reconcile.d.cts +0 -37
  421. package/dist/reconcile.d.cts.map +0 -1
  422. package/dist/reconcile.mjs.map +0 -1
  423. package/dist/runnerSpec.cjs +0 -2
  424. package/dist/runnerSpec.cjs.map +0 -1
  425. package/dist/runnerSpec.d.cts +0 -50
  426. package/dist/runnerSpec.d.cts.map +0 -1
  427. package/dist/runnerSpec.d.mts +0 -50
  428. package/dist/runnerSpec.d.mts.map +0 -1
  429. package/dist/runnerSpec.mjs +0 -2
  430. package/dist/runnerSpec.mjs.map +0 -1
  431. package/dist/services/AnsiScrub/ansiScrub.cjs +0 -5
  432. package/dist/services/AnsiScrub/ansiScrub.cjs.map +0 -1
  433. package/dist/services/AnsiScrub/ansiScrub.d.cts +0 -34
  434. package/dist/services/AnsiScrub/ansiScrub.d.cts.map +0 -1
  435. package/dist/services/AnsiScrub/ansiScrub.d.mts.map +0 -1
  436. package/dist/services/AnsiScrub/ansiScrub.mjs +0 -5
  437. package/dist/services/AnsiScrub/ansiScrub.mjs.map +0 -1
  438. package/dist/services/AnsiScrub/index.cjs +0 -1
  439. package/dist/services/AnsiScrub/index.d.cts +0 -2
  440. package/dist/services/AnsiScrub/index.d.mts +0 -2
  441. package/dist/services/AnsiScrub/index.mjs +0 -1
  442. package/dist/services/BashRunService/BashRunService.cjs +0 -2
  443. package/dist/services/BashRunService/BashRunService.cjs.map +0 -1
  444. package/dist/services/BashRunService/BashRunService.d.cts +0 -38
  445. package/dist/services/BashRunService/BashRunService.d.cts.map +0 -1
  446. package/dist/services/BashRunService/BashRunService.d.mts +0 -38
  447. package/dist/services/BashRunService/BashRunService.d.mts.map +0 -1
  448. package/dist/services/BashRunService/BashRunService.mjs +0 -2
  449. package/dist/services/BashRunService/BashRunService.mjs.map +0 -1
  450. package/dist/services/BashRunService/index.cjs +0 -1
  451. package/dist/services/BashRunService/index.d.cts +0 -3
  452. package/dist/services/BashRunService/index.d.mts +0 -3
  453. package/dist/services/BashRunService/index.mjs +0 -1
  454. package/dist/services/BashRunService/types.d.cts.map +0 -1
  455. package/dist/services/BashRunService/types.d.mts +0 -62
  456. package/dist/services/BashRunService/types.d.mts.map +0 -1
  457. package/dist/services/Clock/SystemClock.cjs +0 -2
  458. package/dist/services/Clock/SystemClock.cjs.map +0 -1
  459. package/dist/services/Clock/SystemClock.d.cts +0 -11
  460. package/dist/services/Clock/SystemClock.d.cts.map +0 -1
  461. package/dist/services/Clock/SystemClock.d.mts +0 -11
  462. package/dist/services/Clock/SystemClock.d.mts.map +0 -1
  463. package/dist/services/Clock/SystemClock.mjs +0 -2
  464. package/dist/services/Clock/SystemClock.mjs.map +0 -1
  465. package/dist/services/Clock/index.cjs +0 -1
  466. package/dist/services/Clock/index.d.cts +0 -3
  467. package/dist/services/Clock/index.d.mts +0 -3
  468. package/dist/services/Clock/index.mjs +0 -1
  469. package/dist/services/Clock/types.d.cts.map +0 -1
  470. package/dist/services/Clock/types.d.mts +0 -11
  471. package/dist/services/Clock/types.d.mts.map +0 -1
  472. package/dist/services/Launcher/Launcher.cjs +0 -2
  473. package/dist/services/Launcher/Launcher.cjs.map +0 -1
  474. package/dist/services/Launcher/Launcher.d.cts +0 -27
  475. package/dist/services/Launcher/Launcher.d.cts.map +0 -1
  476. package/dist/services/Launcher/Launcher.d.mts +0 -27
  477. package/dist/services/Launcher/Launcher.d.mts.map +0 -1
  478. package/dist/services/Launcher/Launcher.mjs +0 -2
  479. package/dist/services/Launcher/Launcher.mjs.map +0 -1
  480. package/dist/services/Launcher/index.cjs +0 -1
  481. package/dist/services/Launcher/index.d.cts +0 -3
  482. package/dist/services/Launcher/index.d.mts +0 -3
  483. package/dist/services/Launcher/index.mjs +0 -1
  484. package/dist/services/Launcher/types.d.cts.map +0 -1
  485. package/dist/services/Launcher/types.d.mts +0 -40
  486. package/dist/services/Launcher/types.d.mts.map +0 -1
  487. package/dist/services/Lifeline/NodeLifeline.cjs +0 -2
  488. package/dist/services/Lifeline/NodeLifeline.cjs.map +0 -1
  489. package/dist/services/Lifeline/NodeLifeline.d.cts +0 -21
  490. package/dist/services/Lifeline/NodeLifeline.d.cts.map +0 -1
  491. package/dist/services/Lifeline/NodeLifeline.d.mts +0 -21
  492. package/dist/services/Lifeline/NodeLifeline.d.mts.map +0 -1
  493. package/dist/services/Lifeline/NodeLifeline.mjs +0 -2
  494. package/dist/services/Lifeline/NodeLifeline.mjs.map +0 -1
  495. package/dist/services/Lifeline/client.cjs +0 -2
  496. package/dist/services/Lifeline/client.d.cts +0 -23
  497. package/dist/services/Lifeline/client.d.cts.map +0 -1
  498. package/dist/services/Lifeline/client.d.mts.map +0 -1
  499. package/dist/services/Lifeline/client.mjs +0 -2
  500. package/dist/services/Lifeline/index.cjs +0 -1
  501. package/dist/services/Lifeline/index.d.cts +0 -4
  502. package/dist/services/Lifeline/index.d.mts +0 -4
  503. package/dist/services/Lifeline/index.mjs +0 -1
  504. package/dist/services/Lifeline/types.d.cts.map +0 -1
  505. package/dist/services/Lifeline/types.d.mts +0 -19
  506. package/dist/services/Lifeline/types.d.mts.map +0 -1
  507. package/dist/services/LogFile/LogFile.cjs +0 -2
  508. package/dist/services/LogFile/LogFile.cjs.map +0 -1
  509. package/dist/services/LogFile/LogFile.d.cts +0 -13
  510. package/dist/services/LogFile/LogFile.d.cts.map +0 -1
  511. package/dist/services/LogFile/LogFile.d.mts +0 -13
  512. package/dist/services/LogFile/LogFile.d.mts.map +0 -1
  513. package/dist/services/LogFile/LogFile.mjs +0 -2
  514. package/dist/services/LogFile/LogFile.mjs.map +0 -1
  515. package/dist/services/LogFile/index.cjs +0 -1
  516. package/dist/services/LogFile/index.d.cts +0 -3
  517. package/dist/services/LogFile/index.d.mts +0 -3
  518. package/dist/services/LogFile/index.mjs +0 -1
  519. package/dist/services/LogFile/types.d.cts.map +0 -1
  520. package/dist/services/LogFile/types.d.mts +0 -16
  521. package/dist/services/LogFile/types.d.mts.map +0 -1
  522. package/dist/services/LogReader/LogReader.cjs +0 -10
  523. package/dist/services/LogReader/LogReader.cjs.map +0 -1
  524. package/dist/services/LogReader/LogReader.d.cts +0 -14
  525. package/dist/services/LogReader/LogReader.d.cts.map +0 -1
  526. package/dist/services/LogReader/LogReader.d.mts +0 -14
  527. package/dist/services/LogReader/LogReader.d.mts.map +0 -1
  528. package/dist/services/LogReader/LogReader.mjs +0 -10
  529. package/dist/services/LogReader/LogReader.mjs.map +0 -1
  530. package/dist/services/LogReader/index.cjs +0 -1
  531. package/dist/services/LogReader/index.d.cts +0 -3
  532. package/dist/services/LogReader/index.d.mts +0 -3
  533. package/dist/services/LogReader/index.mjs +0 -1
  534. package/dist/services/LogReader/types.d.cts +0 -27
  535. package/dist/services/LogReader/types.d.cts.map +0 -1
  536. package/dist/services/LogReader/types.d.mts +0 -27
  537. package/dist/services/LogReader/types.d.mts.map +0 -1
  538. package/dist/services/ProcessControl/NodeProcessControl.cjs +0 -2
  539. package/dist/services/ProcessControl/NodeProcessControl.cjs.map +0 -1
  540. package/dist/services/ProcessControl/NodeProcessControl.d.cts +0 -11
  541. package/dist/services/ProcessControl/NodeProcessControl.d.cts.map +0 -1
  542. package/dist/services/ProcessControl/NodeProcessControl.d.mts +0 -11
  543. package/dist/services/ProcessControl/NodeProcessControl.d.mts.map +0 -1
  544. package/dist/services/ProcessControl/NodeProcessControl.mjs +0 -2
  545. package/dist/services/ProcessControl/NodeProcessControl.mjs.map +0 -1
  546. package/dist/services/ProcessControl/index.cjs +0 -1
  547. package/dist/services/ProcessControl/index.d.cts +0 -3
  548. package/dist/services/ProcessControl/index.d.mts +0 -3
  549. package/dist/services/ProcessControl/index.mjs +0 -1
  550. package/dist/services/ProcessControl/types.d.cts.map +0 -1
  551. package/dist/services/ProcessControl/types.d.mts +0 -14
  552. package/dist/services/ProcessControl/types.d.mts.map +0 -1
  553. package/dist/services/PtyHost/PtyHost.cjs +0 -5
  554. package/dist/services/PtyHost/PtyHost.cjs.map +0 -1
  555. package/dist/services/PtyHost/PtyHost.d.cts +0 -28
  556. package/dist/services/PtyHost/PtyHost.d.cts.map +0 -1
  557. package/dist/services/PtyHost/PtyHost.d.mts +0 -28
  558. package/dist/services/PtyHost/PtyHost.d.mts.map +0 -1
  559. package/dist/services/PtyHost/PtyHost.mjs +0 -5
  560. package/dist/services/PtyHost/PtyHost.mjs.map +0 -1
  561. package/dist/services/PtyHost/index.cjs +0 -1
  562. package/dist/services/PtyHost/index.d.cts +0 -3
  563. package/dist/services/PtyHost/index.d.mts +0 -3
  564. package/dist/services/PtyHost/index.mjs +0 -1
  565. package/dist/services/PtyHost/types.d.cts.map +0 -1
  566. package/dist/services/PtyHost/types.d.mts +0 -39
  567. package/dist/services/PtyHost/types.d.mts.map +0 -1
  568. package/dist/services/PtySpawner/NodePtySpawner.cjs +0 -2
  569. package/dist/services/PtySpawner/NodePtySpawner.cjs.map +0 -1
  570. package/dist/services/PtySpawner/NodePtySpawner.d.cts +0 -18
  571. package/dist/services/PtySpawner/NodePtySpawner.d.cts.map +0 -1
  572. package/dist/services/PtySpawner/NodePtySpawner.d.mts +0 -18
  573. package/dist/services/PtySpawner/NodePtySpawner.d.mts.map +0 -1
  574. package/dist/services/PtySpawner/NodePtySpawner.mjs +0 -2
  575. package/dist/services/PtySpawner/NodePtySpawner.mjs.map +0 -1
  576. package/dist/services/PtySpawner/index.cjs +0 -1
  577. package/dist/services/PtySpawner/index.d.cts +0 -3
  578. package/dist/services/PtySpawner/index.d.mts +0 -3
  579. package/dist/services/PtySpawner/index.mjs +0 -1
  580. package/dist/services/PtySpawner/types.d.cts.map +0 -1
  581. package/dist/services/PtySpawner/types.d.mts +0 -28
  582. package/dist/services/PtySpawner/types.d.mts.map +0 -1
  583. package/dist/services/RmuxBackend/RmuxBackend.cjs +0 -2
  584. package/dist/services/RmuxBackend/RmuxBackend.cjs.map +0 -1
  585. package/dist/services/RmuxBackend/RmuxBackend.d.cts +0 -36
  586. package/dist/services/RmuxBackend/RmuxBackend.d.cts.map +0 -1
  587. package/dist/services/RmuxBackend/RmuxBackend.d.mts +0 -36
  588. package/dist/services/RmuxBackend/RmuxBackend.d.mts.map +0 -1
  589. package/dist/services/RmuxBackend/RmuxBackend.mjs +0 -2
  590. package/dist/services/RmuxBackend/RmuxBackend.mjs.map +0 -1
  591. package/dist/services/RmuxBackend/index.cjs +0 -1
  592. package/dist/services/RmuxBackend/index.d.cts +0 -3
  593. package/dist/services/RmuxBackend/index.d.mts +0 -3
  594. package/dist/services/RmuxBackend/index.mjs +0 -1
  595. package/dist/services/RmuxBackend/types.d.cts +0 -29
  596. package/dist/services/RmuxBackend/types.d.cts.map +0 -1
  597. package/dist/services/RmuxBackend/types.d.mts +0 -29
  598. package/dist/services/RmuxBackend/types.d.mts.map +0 -1
  599. package/dist/services/RunnerNamer/RunnerNamer.cjs +0 -2
  600. package/dist/services/RunnerNamer/RunnerNamer.cjs.map +0 -1
  601. package/dist/services/RunnerNamer/RunnerNamer.d.cts +0 -13
  602. package/dist/services/RunnerNamer/RunnerNamer.d.cts.map +0 -1
  603. package/dist/services/RunnerNamer/RunnerNamer.d.mts +0 -13
  604. package/dist/services/RunnerNamer/RunnerNamer.d.mts.map +0 -1
  605. package/dist/services/RunnerNamer/RunnerNamer.mjs +0 -2
  606. package/dist/services/RunnerNamer/RunnerNamer.mjs.map +0 -1
  607. package/dist/services/RunnerNamer/index.cjs +0 -1
  608. package/dist/services/RunnerNamer/index.d.cts +0 -3
  609. package/dist/services/RunnerNamer/index.d.mts +0 -3
  610. package/dist/services/RunnerNamer/index.mjs +0 -1
  611. package/dist/services/RunnerNamer/types.d.cts.map +0 -1
  612. package/dist/services/RunnerNamer/types.d.mts +0 -12
  613. package/dist/services/RunnerNamer/types.d.mts.map +0 -1
  614. package/dist/services/RunnerPaths/RunnerPaths.cjs +0 -2
  615. package/dist/services/RunnerPaths/RunnerPaths.cjs.map +0 -1
  616. package/dist/services/RunnerPaths/RunnerPaths.d.cts +0 -31
  617. package/dist/services/RunnerPaths/RunnerPaths.d.cts.map +0 -1
  618. package/dist/services/RunnerPaths/RunnerPaths.d.mts +0 -31
  619. package/dist/services/RunnerPaths/RunnerPaths.d.mts.map +0 -1
  620. package/dist/services/RunnerPaths/RunnerPaths.mjs +0 -2
  621. package/dist/services/RunnerPaths/RunnerPaths.mjs.map +0 -1
  622. package/dist/services/RunnerPaths/index.cjs +0 -1
  623. package/dist/services/RunnerPaths/index.d.cts +0 -3
  624. package/dist/services/RunnerPaths/index.d.mts +0 -3
  625. package/dist/services/RunnerPaths/index.mjs +0 -1
  626. package/dist/services/RunnerPaths/types.d.cts.map +0 -1
  627. package/dist/services/RunnerPaths/types.d.mts +0 -33
  628. package/dist/services/RunnerPaths/types.d.mts.map +0 -1
  629. package/dist/services/RunnerRegistry/RunnerRegistry.cjs +0 -2
  630. package/dist/services/RunnerRegistry/RunnerRegistry.cjs.map +0 -1
  631. package/dist/services/RunnerRegistry/RunnerRegistry.d.cts.map +0 -1
  632. package/dist/services/RunnerRegistry/RunnerRegistry.d.mts +0 -40
  633. package/dist/services/RunnerRegistry/RunnerRegistry.d.mts.map +0 -1
  634. package/dist/services/RunnerRegistry/RunnerRegistry.mjs +0 -2
  635. package/dist/services/RunnerRegistry/RunnerRegistry.mjs.map +0 -1
  636. package/dist/services/RunnerRegistry/index.cjs +0 -1
  637. package/dist/services/RunnerRegistry/index.d.cts +0 -3
  638. package/dist/services/RunnerRegistry/index.d.mts +0 -3
  639. package/dist/services/RunnerRegistry/index.mjs +0 -1
  640. package/dist/services/RunnerRegistry/types.d.cts.map +0 -1
  641. package/dist/services/RunnerRegistry/types.d.mts +0 -98
  642. package/dist/services/RunnerRegistry/types.d.mts.map +0 -1
  643. package/dist/services/Spawner/NodeSpawner.cjs +0 -2
  644. package/dist/services/Spawner/NodeSpawner.cjs.map +0 -1
  645. package/dist/services/Spawner/NodeSpawner.d.cts +0 -10
  646. package/dist/services/Spawner/NodeSpawner.d.cts.map +0 -1
  647. package/dist/services/Spawner/NodeSpawner.d.mts +0 -10
  648. package/dist/services/Spawner/NodeSpawner.d.mts.map +0 -1
  649. package/dist/services/Spawner/NodeSpawner.mjs +0 -2
  650. package/dist/services/Spawner/NodeSpawner.mjs.map +0 -1
  651. package/dist/services/Spawner/index.cjs +0 -1
  652. package/dist/services/Spawner/index.d.cts +0 -3
  653. package/dist/services/Spawner/index.d.mts +0 -3
  654. package/dist/services/Spawner/index.mjs +0 -1
  655. package/dist/services/Spawner/types.d.cts.map +0 -1
  656. package/dist/services/Spawner/types.d.mts +0 -31
  657. package/dist/services/Spawner/types.d.mts.map +0 -1
  658. package/dist/session.cjs.map +0 -1
  659. package/dist/session.d.cts +0 -10
  660. package/dist/session.d.cts.map +0 -1
  661. package/dist/session.mjs.map +0 -1
  662. package/dist/tool/bashTool.cjs +0 -7
  663. package/dist/tool/bashTool.cjs.map +0 -1
  664. package/dist/tool/bashTool.d.cts +0 -25
  665. package/dist/tool/bashTool.d.cts.map +0 -1
  666. package/dist/tool/bashTool.d.mts +0 -25
  667. package/dist/tool/bashTool.d.mts.map +0 -1
  668. package/dist/tool/bashTool.mjs +0 -7
  669. package/dist/tool/bashTool.mjs.map +0 -1
  670. package/dist/tool/responseEnvelope.cjs +0 -10
  671. package/dist/tool/responseEnvelope.cjs.map +0 -1
  672. package/dist/tool/responseEnvelope.d.cts +0 -45
  673. package/dist/tool/responseEnvelope.d.cts.map +0 -1
  674. package/dist/tool/responseEnvelope.d.mts +0 -45
  675. package/dist/tool/responseEnvelope.d.mts.map +0 -1
  676. package/dist/tool/responseEnvelope.mjs +0 -10
  677. package/dist/tool/responseEnvelope.mjs.map +0 -1
  678. package/dist/tool/schema.cjs +0 -2
  679. package/dist/tool/schema.cjs.map +0 -1
  680. package/dist/tool/schema.d.cts.map +0 -1
  681. package/dist/tool/schema.d.mts +0 -25
  682. package/dist/tool/schema.d.mts.map +0 -1
  683. package/dist/tool/schema.mjs +0 -2
  684. package/dist/tool/schema.mjs.map +0 -1
  685. package/dist/tui/bashRender.cjs +0 -8
  686. package/dist/tui/bashRender.cjs.map +0 -1
  687. package/dist/tui/bashRender.d.cts +0 -51
  688. package/dist/tui/bashRender.d.cts.map +0 -1
  689. package/dist/tui/bashRender.d.mts.map +0 -1
  690. package/dist/tui/bashRender.mjs +0 -8
  691. package/dist/tui/bashRender.mjs.map +0 -1
  692. package/dist/tui/format.cjs +0 -2
  693. package/dist/tui/format.cjs.map +0 -1
  694. package/dist/tui/format.d.cts +0 -25
  695. package/dist/tui/format.d.cts.map +0 -1
  696. package/dist/tui/format.d.mts +0 -25
  697. package/dist/tui/format.d.mts.map +0 -1
  698. package/dist/tui/format.mjs +0 -2
  699. package/dist/tui/format.mjs.map +0 -1
  700. package/dist/tui/runnerSpace.cjs +0 -6
  701. package/dist/tui/runnerSpace.cjs.map +0 -1
  702. package/dist/tui/runnerSpace.d.cts +0 -52
  703. package/dist/tui/runnerSpace.d.cts.map +0 -1
  704. package/dist/tui/runnerSpace.d.mts.map +0 -1
  705. package/dist/tui/runnerSpace.mjs +0 -6
  706. package/dist/tui/runnerSpace.mjs.map +0 -1
  707. package/dist/types.cjs.map +0 -1
  708. package/dist/types.d.cts +0 -28
  709. package/dist/types.d.cts.map +0 -1
  710. package/dist/types.d.mts.map +0 -1
  711. package/dist/types.mjs.map +0 -1
package/README.md CHANGED
@@ -1,47 +1,244 @@
1
1
  # @agimon-ai/doompi-runner
2
2
 
3
- Pi bash tool replacement with background process supervision.
3
+ Supervised shell execution, background process control, durable logs, and Runner Space for Pi.
4
4
 
5
- Replaces the built-in bash tool with a supervised one. Long commands are backgrounded
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
- Part of [Doompi](https://www.npmjs.com/package/@agimon-ai/doompi), a coding agent that loads
10
- only the skills and tools you name. This package is composed by Doompi and is not usually
11
- installed on its own.
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
- npm install @agimon-ai/doompi-runner
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
- ## How it loads
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
- Name it in a layer in `.doom/modes.yaml`, then add that layer to a major mode:
89
+ ## Storage and limits
22
90
 
23
- ```yaml
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
- majorMode:
29
- dev: [runner]
93
+ ```text
94
+ ~/.pi/agent/doom-runner/<session>/
30
95
  ```
31
96
 
32
- ## Leader
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
- `SPC r r` opens background processes, once the extension is loaded.
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
- ## Notes
150
+ The complete raw log on disk is never truncated.
37
151
 
38
- Ships a prebuilt `rmux` binary per platform through the `@agimon-ai/doompi-runner-rmux-*`
39
- optional dependencies.
152
+ ### Configuration
40
153
 
41
- ## Entry points
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
- 51 subpaths are declared in the `exports` field of `package.json`.
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/AnsiScrub/ansiScrub.d.ts
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