mulmoterminal 11.3.0 → 11.4.0
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 +17 -3
- package/common/botJobs.ts +31 -0
- package/common/githubBoard.ts +105 -0
- package/common/httpsUrl.ts +11 -0
- package/common/psmuxWidthRuns.ts +528 -0
- package/common/terminalUnicode.ts +6 -7
- package/common/tmuxClusters.ts +246 -0
- package/common/tmuxUnicodeProvider.ts +90 -0
- package/common/tmuxWidthTable.ts +125 -0
- package/dist/assets/AllPackages-Dds4n8dW.js +2 -0
- package/dist/assets/BaseConfiguration-CKTSCpgr.js +6 -0
- package/dist/assets/Element-DzD91zG3.js +1 -0
- package/dist/assets/{Entities-B0Yn6KJN.js → Entities-BZgfuEyr.js} +1 -1
- package/dist/assets/FunctionList-DNJjxUac.js +1 -0
- package/dist/assets/{InputJax-C_iTpL-1.js → InputJax-BLB4xCWv.js} +1 -1
- package/dist/assets/{MathItem-CTheZpex.js → MathItem-Brrut20t.js} +1 -1
- package/dist/assets/MmlFactory-DxipJZmz.js +1 -0
- package/dist/assets/Options-jNhHqbz4.js +1 -0
- package/dist/assets/{OutputJax-Ccwz-Gag.js → OutputJax-2Owmil9M.js} +1 -1
- package/dist/assets/{PrioritizedList-DD1zfNl-.js → PrioritizedList-BVH84bL2.js} +1 -1
- package/dist/assets/Styles-Cwpc0qxM.js +1 -0
- package/dist/assets/TeXAtom-CB1NRlRO.js +1 -0
- package/dist/assets/__vite-browser-external-DpH90L5b.js +1 -0
- package/dist/assets/{abnfDiagram-WEYOIA3C-Cp_CVKVP.js → abnfDiagram-WEYOIA3C-QGJaYS1a.js} +1 -1
- package/dist/assets/{arc-Bw7m-cfu.js → arc-SXJSVd7o.js} +1 -1
- package/dist/assets/architecture-WOLXFQ4H-BuFPD6RU.js +1 -0
- package/dist/assets/architectureDiagram-ZHVYKT53-CTQflzKH.js +36 -0
- package/dist/assets/assistive-mml-DdYOICTM.js +5 -0
- package/dist/assets/{blockDiagram-RJAE7QA3-DpNBhRyb.js → blockDiagram-RJAE7QA3-C2oOcwiL.js} +1 -1
- package/dist/assets/{c4Diagram-XDPPPE54-DuuyvDc1.js → c4Diagram-XDPPPE54-DpB1aHMp.js} +1 -1
- package/dist/assets/channel-BCUeEVKr.js +1 -0
- package/dist/assets/{chunk-2E7WHVMD-09NdOPmp.js → chunk-2E7WHVMD-jMwVNG8l.js} +1 -1
- package/dist/assets/{chunk-4EMNKR2T-TiPBF39q.js → chunk-4EMNKR2T-CKAZ0jMJ.js} +1 -1
- package/dist/assets/{chunk-55XCU76K-CKLcfm0y.js → chunk-55XCU76K-BSL-3AK2.js} +1 -1
- package/dist/assets/{chunk-7S6XSTFO-BZmcP52j.js → chunk-7S6XSTFO-b1Lj7Y1g.js} +1 -1
- package/dist/assets/{chunk-AQDTSKZB-BOza6VsT.js → chunk-AQDTSKZB-DBrhu0et.js} +1 -1
- package/dist/assets/{chunk-DSNLSHJZ-Bv43aur5.js → chunk-DSNLSHJZ-BpuAJsSa.js} +1 -1
- package/dist/assets/{chunk-HAGFOTED-Br7EPqyd.js → chunk-HAGFOTED-DoomwlPC.js} +2 -2
- package/dist/assets/{chunk-HNE4Q36P-BD4NAzEH.js → chunk-HNE4Q36P-BNp1xf1C.js} +1 -1
- package/dist/assets/{chunk-NGNAAXSQ-Bw6tHVuc.js → chunk-NGNAAXSQ-C2Wy9Xmz.js} +1 -1
- package/dist/assets/{chunk-NQOKRVIF-Vm0uCJ3V.js → chunk-NQOKRVIF-BAv-ZOVh.js} +1 -1
- package/dist/assets/{chunk-UHW7PFBP-pjP3twgI.js → chunk-UHW7PFBP-ngeWivVf.js} +1 -1
- package/dist/assets/{chunk-VQ5W62QI-DiVnexKy.js → chunk-VQ5W62QI-cLslVcxS.js} +1 -1
- package/dist/assets/{chunk-WQQL4CDK-CCBvphth.js → chunk-WQQL4CDK-DHvRNzZK.js} +1 -1
- package/dist/assets/{chunk-XXDRQBXY-BakWylwG.js → chunk-XXDRQBXY-Bmekemjm.js} +1 -1
- package/dist/assets/{chunk-YZO67HFG-FCVXmL_e.js → chunk-YZO67HFG-DfF2_1LT.js} +1 -1
- package/dist/assets/{chunk-ZAUX2LTX-B4YrGhQn.js → chunk-ZAUX2LTX-BT8hLXyS.js} +1 -1
- package/dist/assets/{chunk-ZCHMQSOR-B49fBUuL.js → chunk-ZCHMQSOR-CO6ODq51.js} +1 -1
- package/dist/assets/{classDiagram-v2-4MYWR3UA-Cphx3uY3.js → classDiagram-v2-4MYWR3UA-oYg_wMoy.js} +1 -1
- package/dist/assets/cose-bilkent-JH36ORCC-Cfd1CIvE.js +1 -0
- package/dist/assets/cynefin-EF2NZ3EQ-Bg2WJcmg.js +1 -0
- package/dist/assets/{cynefinDiagram-WF24UDRP-DPz477Qm.js → cynefinDiagram-WF24UDRP-WmaJMVeq.js} +1 -1
- package/dist/assets/cytoscape.esm-CHBj4VkZ.js +321 -0
- package/dist/assets/{dagre-NK4GIZVX-WAFqkmtj.js → dagre-NK4GIZVX-CEO5ZRaB.js} +1 -1
- package/dist/assets/{diagram-CBK3MWTC-DmmXqwTi.js → diagram-CBK3MWTC-71dJB0mJ.js} +1 -1
- package/dist/assets/{diagram-I5XIIV2D-BYBcg9gp.js → diagram-I5XIIV2D-CA3tjq42.js} +1 -1
- package/dist/assets/{diagram-ODIL2UCW-CYU_e9M0.js → diagram-ODIL2UCW-Dx6Om-c9.js} +1 -1
- package/dist/assets/{diagram-PFBEJUXE-7wMB5XfM.js → diagram-PFBEJUXE-Cr_y2ZoQ.js} +1 -1
- package/dist/assets/{diagram-RJA3I4VV-D6DewsR6.js → diagram-RJA3I4VV-DFPCOvwg.js} +1 -1
- package/dist/assets/{diagram-TYUNFSNR-bJSVBB3K.js → diagram-TYUNFSNR-BUghrrxE.js} +1 -1
- package/dist/assets/{dist-ByvCx_i5.js → dist-2snsOSy6.js} +1 -1
- package/dist/assets/{dist-Bl5fT3_U.js → dist-BCaA294_.js} +1 -1
- package/dist/assets/{dist-DOKM_M-2.js → dist-BHJqrW0Q.js} +5 -5
- package/dist/assets/{dist-BT6sMW4l.js → dist-Blg44tSN.js} +1 -1
- package/dist/assets/dist-By6ldaNJ.js +2 -0
- package/dist/assets/{dist-BsH9J5r5.js → dist-Coh8tZT6.js} +1 -1
- package/dist/assets/{dist-DGs_yUrP.js → dist-Cz2MTljl.js} +1 -1
- package/dist/assets/{dist-Dv-xuOQM.js → dist-D-PPikXK.js} +1 -1
- package/dist/assets/{dist-DsrTb2r9.js → dist-D4u-B0aD.js} +1 -1
- package/dist/assets/{dist-KvpSKcAS.js → dist-DbfZs0sA.js} +9 -9
- package/dist/assets/dist-Dq_JRkwT.js +2 -0
- package/dist/assets/{dist-LVYjJdY0.js → dist-Dwj1SmJg.js} +1 -1
- package/dist/assets/{dist-CDQifGPh.js → dist-TOtPnL7E.js} +1 -1
- package/dist/assets/{ebnfDiagram-V4P3TTPT-DJVw9hHg.js → ebnfDiagram-V4P3TTPT-Z3ETy3M8.js} +1 -1
- package/dist/assets/{elk-QONTBCTQ-IZpnNv-8.js → elk-QONTBCTQ-BEmjZgPv.js} +4 -4
- package/dist/assets/{emscripten-module-Q67P5WYC-C-OqgOlF.js → emscripten-module-Q67P5WYC-C60XJHOB.js} +2 -2
- package/dist/assets/{erDiagram-KYQIGQAA-DGnhRs9d.js → erDiagram-KYQIGQAA-CcnK-Ypn.js} +1 -1
- package/dist/assets/eventmodeling-K75KTNOO-D9KfMBlc.js +1 -0
- package/dist/assets/flowDiagram-IUGLLWBU-BRgcEyCi.js +1 -0
- package/dist/assets/{ganttDiagram-R7GPNTJY-RvhC4sS6.js → ganttDiagram-R7GPNTJY-DdSBhHzl.js} +1 -1
- package/dist/assets/gitGraph-VSP46ZUC-CVqVOJsE.js +1 -0
- package/dist/assets/{gitGraphDiagram-PDYL7XHY-BSCJCqBA.js → gitGraphDiagram-PDYL7XHY-B3pnpcAO.js} +1 -1
- package/dist/assets/html-acscMdrT.js +2 -0
- package/dist/assets/{index-DzgvX-JE.js → index-Bg5c3Xml.js} +620 -618
- package/dist/assets/index-BmYTNa-D.css +1 -0
- package/dist/assets/info-OHQRW6UA-De2KEswx.js +1 -0
- package/dist/assets/{infoDiagram-MVDRKAX5-Bt-HtHOW.js → infoDiagram-MVDRKAX5-CTjnuWQp.js} +1 -1
- package/dist/assets/{ishikawaDiagram-HPEHV2GE-DExundHg.js → ishikawaDiagram-HPEHV2GE-2n5zMtKO.js} +1 -1
- package/dist/assets/{journeyDiagram-BOSHW7O7-ByNvSzXg.js → journeyDiagram-BOSHW7O7-B6KFLC-I.js} +1 -1
- package/dist/assets/{kanban-definition-FNSA4HC5-BFJUY0cK.js → kanban-definition-FNSA4HC5-6vi_Wfzh.js} +1 -1
- package/dist/assets/{lengths-WxtfFwrG.js → lengths-B1cDbtJu.js} +1 -1
- package/dist/assets/{line-BoIv-CRn.js → line-DD8Q--vs.js} +1 -1
- package/dist/assets/linear-BRoUytvd.js +1 -0
- package/dist/assets/liteAdaptor-B72Ah_-w.js +5 -0
- package/dist/assets/{manifold-DoAt7vUN.js → manifold-CCIYYjmc.js} +2 -2
- package/dist/assets/{marp-D0mN2I4F.js → marp-CWAfhmUo.js} +14 -14
- package/dist/assets/material-symbols-outlined-CbWsDl0D.woff2 +0 -0
- package/dist/assets/mathjax-U6OqkRD_.js +1 -0
- package/dist/assets/{mermaid-parser.core-CuzMYAec.js → mermaid-parser.core-EQ4RSVH2.js} +3 -3
- package/dist/assets/{mermaid.core-CGt3fAlm.js → mermaid.core-DpkS40gY.js} +5 -5
- package/dist/assets/{mindmap-definition-6OY57UG3-BEXsfC5K.js → mindmap-definition-6OY57UG3-kEHOYlKN.js} +1 -1
- package/dist/assets/mo-CuLRG5jn.js +1 -0
- package/dist/assets/packet-JDAUHWVQ-Dj1Pwtkr.js +1 -0
- package/dist/assets/{pegDiagram-ECIUJNBX-DJTqZy-O.js → pegDiagram-ECIUJNBX-CRJcLrQr.js} +1 -1
- package/dist/assets/pie-XZMESJXO-BmzQx50h.js +1 -0
- package/dist/assets/{pieDiagram-GNMPY74T-pZcdcWmj.js → pieDiagram-GNMPY74T-BRk4DpD5.js} +1 -1
- package/dist/assets/{punycode.es6-Boo0KeTE.js → punycode.es6-BGceFjA3.js} +1 -1
- package/dist/assets/{quadrantDiagram-D57K4MC3-CZCbSxYF.js → quadrantDiagram-D57K4MC3-Chl-JYQ_.js} +1 -1
- package/dist/assets/radar-ABXABTNO-ZGzSt-iT.js +1 -0
- package/dist/assets/railroad-I3PHUGI6-DDF3xDDD.js +1 -0
- package/dist/assets/railroad-abnf-LNEFI6M7-Ck6ldu2-.js +1 -0
- package/dist/assets/railroad-ebnf-DWYD2UWJ-I1kazIFD.js +1 -0
- package/dist/assets/railroad-peg-JR7BVNR7-DyMX9y-2.js +1 -0
- package/dist/assets/{railroadDiagram-Y72NRBL7-BCClvJ3M.js → railroadDiagram-Y72NRBL7-uf8WQ7kY.js} +1 -1
- package/dist/assets/{requirementDiagram-EQYSW5RA-CrjB53T3.js → requirementDiagram-EQYSW5RA-hrxtsXLF.js} +1 -1
- package/dist/assets/rolldown-runtime-C0FnF6B9.js +1 -0
- package/dist/assets/{sankeyDiagram-SY24JHO5-CxI3popI.js → sankeyDiagram-SY24JHO5-0GQW3Ow8.js} +1 -1
- package/dist/assets/{sequenceDiagram-BLEHNHQU-C5AzjjBB.js → sequenceDiagram-BLEHNHQU-HmnQi00z.js} +2 -2
- package/dist/assets/src-JH1jZ6Eh.js +1 -0
- package/dist/assets/{stateDiagram-v2-A6IESKWZ-uvuO6onL.js → stateDiagram-v2-A6IESKWZ-L81yKppp.js} +1 -1
- package/dist/assets/svg-C5MLNO6c.js +8 -0
- package/dist/assets/swimlanes-B3ENRKFQ-FP8-OYyF.js +1 -0
- package/dist/assets/swimlanesDiagram-AYQRV4AK-D9lmIC9s.js +8 -0
- package/dist/assets/tex-BY05D_Xr.js +1 -0
- package/dist/assets/{timeline-definition-JXYKGLGB-BVfIQMDg.js → timeline-definition-JXYKGLGB-yU7gicud.js} +1 -1
- package/dist/assets/treeView-D4JQ5SDB-0hJKEZ3f.js +1 -0
- package/dist/assets/treemap-SAJKECNS--ckSvrhv.js +1 -0
- package/dist/assets/{usecaseDiagram-WPOLBNNX-BmKS40Rq.js → usecaseDiagram-WPOLBNNX-DX11_XDO.js} +1 -1
- package/dist/assets/{vennDiagram-Q3Y3IDCW-BR1rmhha.js → vennDiagram-Q3Y3IDCW-DKqjOBFd.js} +1 -1
- package/dist/assets/wardley-7MLQ67FV-CvpRCjcw.js +1 -0
- package/dist/assets/{wardleyDiagram-IVAIDKWA-GsVcmL_C.js → wardleyDiagram-IVAIDKWA-R8ICgl6u.js} +1 -1
- package/dist/assets/{xychartDiagram-4URNHDU4-DilAytIW.js → xychartDiagram-4URNHDU4-D_AxQzGW.js} +1 -1
- package/dist/index.html +4 -5
- package/docs/ChangeLog.md +37 -0
- package/docs/facts.json +1 -1
- package/docs/guide/en/config.md +11 -7
- package/docs/guide/en/feature-list.md +4 -1
- package/docs/guide/en/index.md +2 -2
- package/docs/guide/en/v11.4.0.md +135 -0
- package/docs/guide/ja/config.md +8 -5
- package/docs/guide/ja/feature-list.md +4 -1
- package/docs/guide/ja/index.md +2 -2
- package/docs/guide/ja/v11.4.0.md +133 -0
- package/package.json +8 -8
- package/server/backends/botJobs/botJobHandler.ts +115 -0
- package/server/backends/botJobs/botTokens.ts +119 -0
- package/server/backends/botJobs/index.ts +92 -0
- package/server/backends/botJobs/jobScript.ts +149 -0
- package/server/backends/botJobs/routes.ts +61 -0
- package/server/backends/remoteHost/getFeed.spec.ts +1 -0
- package/server/backends/remoteHost/handlers/deps.ts +4 -0
- package/server/backends/remoteHost/handlers/index.ts +4 -0
- package/server/backends/remoteHost/handlers.spec.ts +1 -0
- package/server/backends/remoteHost/hostBindings.ts +5 -1
- package/server/backends/remoteHost/index.ts +1 -0
- package/server/backends/remoteHost/terminalInput.spec.ts +55 -1
- package/server/backends/remoteHost/terminalInput.ts +31 -2
- package/server/config/app-config.ts +7 -0
- package/server/config/config-routes.ts +30 -9
- package/server/git/board-detail.ts +90 -0
- package/server/git/board-fetch.ts +130 -0
- package/server/git/board.ts +156 -0
- package/server/index.ts +8 -3
- package/server/infra/http/allowed-origin.ts +26 -3
- package/server/infra/http/host-guard.ts +32 -0
- package/server/infra/http/on-listening.ts +4 -1
- package/server/infra/process/psmux.ts +18 -0
- package/server/infra/process/psmuxWidthProbe.ts +71 -0
- package/server/infra/process/throwawayTmux.ts +52 -0
- package/server/infra/process/tmux.ts +44 -5
- package/server/infra/process/tmuxLiveServer.ts +18 -0
- package/server/infra/process/tmuxWidthProbe.ts +161 -0
- package/server/routes/app-routes.ts +26 -9
- package/server/routes/issue-work-routes.ts +7 -4
- package/server/routes/repo-routes.ts +36 -0
- package/server/routes/request-gates.ts +21 -0
- package/server/routes/terminal-reply-routes.ts +62 -0
- package/server/routes/terminalReply.ts +24 -0
- package/server/session/lifecycle.ts +7 -0
- package/server/session/pty/pty-connection.ts +14 -0
- package/server/session/registry.ts +23 -5
- package/server/session/spawn/spawn-shell.ts +22 -1
- package/server/session/types.ts +3 -0
- package/server/skills/mulmoterminal-config/SKILL.md +33 -1
- package/dist/assets/AllPackages-D_6LawZI.js +0 -2
- package/dist/assets/BaseConfiguration-LpfqWPL5.js +0 -6
- package/dist/assets/Element-9O3lofbx.js +0 -1
- package/dist/assets/FunctionList-B5UjnpAo.js +0 -1
- package/dist/assets/MmlFactory-1W2rn4Mn.js +0 -1
- package/dist/assets/Options-BQ4Lw23N.js +0 -1
- package/dist/assets/Styles-CGL0zcD2.js +0 -1
- package/dist/assets/TeXAtom-BVQ5NEJJ.js +0 -1
- package/dist/assets/__vite-browser-external-BwpP9LFt.js +0 -1
- package/dist/assets/architecture-WOLXFQ4H-DjkPqSb6.js +0 -1
- package/dist/assets/architectureDiagram-ZHVYKT53-0qToe8DR.js +0 -36
- package/dist/assets/assistive-mml-o27zJjg1.js +0 -5
- package/dist/assets/channel-73-ebGtK.js +0 -1
- package/dist/assets/cose-bilkent-JH36ORCC-d95fPWIj.js +0 -1
- package/dist/assets/cynefin-EF2NZ3EQ-B3p24FBR.js +0 -1
- package/dist/assets/cytoscape.esm-BY277UBX.js +0 -321
- package/dist/assets/dist-BUJSBEak.js +0 -2
- package/dist/assets/dist-D9p6rX9l.js +0 -2
- package/dist/assets/echarts-C3ja4bQQ.js +0 -1
- package/dist/assets/echarts-gl-C4-n1BHz.js +0 -4282
- package/dist/assets/echarts-wordcloud-zIyGCdYP.js +0 -1
- package/dist/assets/eventmodeling-K75KTNOO-ClDJvzBs.js +0 -1
- package/dist/assets/flowDiagram-IUGLLWBU-DkHfmbMQ.js +0 -1
- package/dist/assets/gitGraph-VSP46ZUC-DPRZM9r2.js +0 -1
- package/dist/assets/html-D8opBj9j.js +0 -2
- package/dist/assets/index-SC3QBsgL.css +0 -1
- package/dist/assets/info-OHQRW6UA-BJUZ7JxX.js +0 -1
- package/dist/assets/install-Csk0MtRK.js +0 -15
- package/dist/assets/japan-CyDc-cz7-BgORDJsl.js +0 -1
- package/dist/assets/linear-fGQ0Vfq6.js +0 -1
- package/dist/assets/liteAdaptor-4Z8me5m1.js +0 -5
- package/dist/assets/material-symbols-outlined-Bn5lkljl.woff2 +0 -0
- package/dist/assets/mathjax-jLFVri-C.js +0 -1
- package/dist/assets/mo-D9P5WpD2.js +0 -1
- package/dist/assets/packet-JDAUHWVQ-Bh3Jjnyu.js +0 -1
- package/dist/assets/pie-XZMESJXO-q-b-oziT.js +0 -1
- package/dist/assets/radar-ABXABTNO-Cmz1FLat.js +0 -1
- package/dist/assets/railroad-I3PHUGI6-Bm5NA0Rj.js +0 -1
- package/dist/assets/railroad-abnf-LNEFI6M7-BSVTY67X.js +0 -1
- package/dist/assets/railroad-ebnf-DWYD2UWJ-CplgrKrG.js +0 -1
- package/dist/assets/railroad-peg-JR7BVNR7-BtrbqnrA.js +0 -1
- package/dist/assets/rolldown-runtime-BCiCTKAo.js +0 -1
- package/dist/assets/src-Bc_iCBZR.js +0 -1
- package/dist/assets/svg-CdSHelOZ.js +0 -8
- package/dist/assets/swimlanes-B3ENRKFQ-7CWtVbF7.js +0 -1
- package/dist/assets/swimlanesDiagram-AYQRV4AK-T_WR9Zd-.js +0 -8
- package/dist/assets/tex-Bjf5NbIt.js +0 -1
- package/dist/assets/treeView-D4JQ5SDB-5hWrCHzP.js +0 -1
- package/dist/assets/treemap-SAJKECNS-DZ3to4l7.js +0 -1
- package/dist/assets/wardley-7MLQ67FV-pj2gt2sa.js +0 -1
- package/dist/assets/world-R-tMZ4nZ-B1c4T9X2.js +0 -1
package/README.md
CHANGED
|
@@ -739,7 +739,10 @@ What MulmoTerminal does differently behind psmux, and only there:
|
|
|
739
739
|
- counts emoji two cells wide in the browser (Unicode 11), as Claude Code and psmux do — otherwise
|
|
740
740
|
each emoji shifts the rest of its row by one column;
|
|
741
741
|
- keeps Volta's `_VOLTA_TOOL_RECURSION` out of psmux's environment, so `node` in a cell resolves through
|
|
742
|
-
Volta's shim again
|
|
742
|
+
Volta's shim again;
|
|
743
|
+
- turns psmux's warm pool off (`set -g warm off`, psmux 3.3.1+), in new servers and in the ones
|
|
744
|
+
already running. Every cell starts with `-e`, which never claims a spare shell, so the spares
|
|
745
|
+
only held memory and were restarted on every resize.
|
|
743
746
|
|
|
744
747
|
psmux imitates tmux 3.4, so the few things that need tmux 3.7+ (such as restoring bracketed paste
|
|
745
748
|
after a reload) are not available on it. A Windows restart still ends every session, as a reboot
|
|
@@ -1599,6 +1602,14 @@ claude's input box to be ready — text pushed in before that lands in the scrol
|
|
|
1599
1602
|
with several clones asks which one the first time and remembers the answer; a repo with no clone
|
|
1600
1603
|
here disables the button and says why. Backed by `POST /api/issues/start`.
|
|
1601
1604
|
|
|
1605
|
+
**The board (experimental).** **Open the board** on `/github` goes to `/github/board`: per repo, one
|
|
1606
|
+
card per piece of work in five columns — To do, Implementing, In review (with the review round),
|
|
1607
|
+
Ready (QA) and Merged — joining each issue to the PR that closes it and to the live cells on its
|
|
1608
|
+
branch. Pressing a card opens a detail panel with the issue body, the PR's checks and reviews, and
|
|
1609
|
+
those cells (`GET /api/github/board/detail`); GitHub is a link inside it. A To do card's **▶** starts
|
|
1610
|
+
the issue as above but **sends the issue text at once** and stays on the board; the new cell joins
|
|
1611
|
+
the grid behind it, and the card moves to Implementing. The board keeps itself current while open: cells follow the same live `sessions` feed as the grid, a card whose cell is waiting for you gets an amber border, and the board reads itself again every minute while visible and a few seconds after one of its cells finishes a turn. Each cell in the detail panel can be answered there: its current screen (read by itself when the cell is waiting), a reply box that types one line and presses Enter — the phone's sanitized sender, which never clears what was already in the input box — and, when the question pane is switched on, Claude's question dialog as buttons. A permission prompt is answered with keys, so in the terminal. Backed by `GET /api/github/board`.
|
|
1612
|
+
|
|
1602
1613
|
**Which clone a repo's work happens in.** `GET /api/repo-dirs` answers the reverse of the
|
|
1603
1614
|
GitHub link a cell already shows: given `owner/repo`, which of your saved directories are
|
|
1604
1615
|
clones of it. The candidates are derived from your directory presets by reading each one's
|
|
@@ -2113,7 +2124,8 @@ Any resulting state change is published on the `sessions` pub/sub channel.
|
|
|
2113
2124
|
|
|
2114
2125
|
The endpoints above are the core; the server exposes many more (all under
|
|
2115
2126
|
`http://localhost:$PORT`; query params shown where relevant). Mutating endpoints are
|
|
2116
|
-
same-origin-guarded
|
|
2127
|
+
same-origin-guarded, and every request is refused (`403`) unless it is addressed to localhost or a
|
|
2128
|
+
name in `MULMOTERMINAL_HOST` / `MULMOTERMINAL_ALLOWED_ORIGINS`, against DNS rebinding (#3188).
|
|
2117
2129
|
|
|
2118
2130
|
**Sessions & agents**
|
|
2119
2131
|
|
|
@@ -2141,8 +2153,10 @@ same-origin-guarded.
|
|
|
2141
2153
|
| `GET /api/worktrees?cwd=` · `GET /api/worktrees/diff?cwd=` | List managed worktrees / diff one vs its base. |
|
|
2142
2154
|
| `POST /api/worktrees/create` · `/remove` · `/push` · `/pr` | Create on `agent/<slug>` — or, with `issue: <N>`, on `issue/<N>-<slug>` forked from a freshly fetched `origin/<base>`; remove (managed root only), push, open a PR (`gh`, else compare URL). |
|
|
2143
2155
|
| `GET /api/prs` · `GET /api/issues` | Open PRs / issues across the configured `prRepos` — `gh` for github.com entries, `glab` for gitlab.com and any host declared in `gitlabHosts`. |
|
|
2156
|
+
| `GET /api/github/board` · `GET /api/github/board/detail` | The experimental board: per configured GitHub repo, cards joining issues, the PRs that close them and the live cells on their branch, each in a progress column; and one card's issue body, checks and reviews (`?repo=owner/repo&issue=N&pr=M`, at least one number; a repo not in `prRepos` is a 404). GitHub only. |
|
|
2144
2157
|
| `GET /api/repo-dirs` | Which saved directories clone which GitHub repo, ordered, with the recorded choice per repo. |
|
|
2145
|
-
| `POST /api/
|
|
2158
|
+
| `GET /api/terminal/:sessionId/screen` · `POST /api/terminal/:sessionId/reply` | A session's current screen as plain text (the phone's capture), and one line typed into it with Enter (`{ text }`, the phone's sanitizer: control bytes stripped, bracketed paste, a separate Enter; the input box is not cleared). A malformed id or text with nothing printable is a 400, a session this host does not hold a 404 (screen), text over the limit a 413, a session with no live terminal here, or one with a question dialog open at that moment, a 409 (reply). |
|
|
2159
|
+
| `POST /api/issues/start` | Cut an issue's worktree in one of that repo's known clones and spawn a session there, seeded with the issue. An optional `agent` (any hosted agent; absent is `claude`, anything else is a 400) picks which. A Claude seed is a draft unless the request says `run: true` (the board's start does; the `/github` rows do not, and a non-boolean `run` is a 400); every other agent runs it at once. The reply names the `agent` and whether the seed runs (`seedRuns`), so the cell attaches on the right endpoint. |
|
|
2146
2160
|
| `GET /api/agents/availability` | Which hosted agents this machine can start — `{ agents: [{ agent, available, reason?, installGuide? }] }`, `reason` being `missing`, `no-such-path` (an `<AGENT>_BIN` naming nothing) or `not-executable`, and `installGuide` the agent's official install page (from `bin/agent-install-guides.json`) or `null`. The same check a spawn makes before it starts, run once at server start, so an agent installed later shows after a restart. |
|
|
2147
2161
|
| `GET /api/github/star` · `POST /api/github/star` | Whether you have starred MulmoTerminal, and star it (via `gh`). `starred: null` means `gh` could not answer, and hides the button. |
|
|
2148
2162
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// The `botJobs` setting: whether this host runs Python a remote bot submits through mulmoserver's
|
|
2
|
+
// submitBotJob, and with which interpreter (plans/feat-bot-gpu-jobs.md). Both sides read it — the
|
|
3
|
+
// server sanitizes the file, the Settings section edits the same shape.
|
|
4
|
+
import { isRecord } from "./isRecord.js";
|
|
5
|
+
|
|
6
|
+
export interface BotJobs {
|
|
7
|
+
/** Off by default: a job is code from another machine, so nothing runs until the user says so. */
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
/** The interpreter a job runs with. Usually a venv's python, since that is where the GPU packages
|
|
10
|
+
* (torch with MPS, …) live and the system python has none of them. A leading `~/` is the home. */
|
|
11
|
+
python: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const BOT_JOBS_DEFAULT: BotJobs = { enabled: false, python: "python3" };
|
|
15
|
+
|
|
16
|
+
const MAX_PYTHON_LENGTH = 1024;
|
|
17
|
+
// eslint-disable-next-line no-control-regex -- intentional: a path with a control byte is not a path anyone typed
|
|
18
|
+
const CONTROL_BYTES = /[\u0000-\u001F\u007F]/u;
|
|
19
|
+
|
|
20
|
+
const pythonOf = (value: unknown): string => {
|
|
21
|
+
if (typeof value !== "string") return BOT_JOBS_DEFAULT.python;
|
|
22
|
+
const python = value.trim();
|
|
23
|
+
return python && python.length <= MAX_PYTHON_LENGTH && !CONTROL_BYTES.test(python) ? python : BOT_JOBS_DEFAULT.python;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** Anything unrecognised is "unconfigured", and `enabled` is on only for a literal `true`: a typo
|
|
27
|
+
* must never be what lets another machine's code run here. */
|
|
28
|
+
export function sanitizeBotJobs(input: unknown): BotJobs {
|
|
29
|
+
if (!isRecord(input)) return BOT_JOBS_DEFAULT;
|
|
30
|
+
return { enabled: input.enabled === true, python: pythonOf(input.python) };
|
|
31
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// What GET /api/github/board answers with (#3172): per repo, one card per piece of work — the issue,
|
|
2
|
+
// the PR that closes it, and the live cells on its branch — placed in a column. Shared because the
|
|
3
|
+
// server decides the column and the board renders it.
|
|
4
|
+
import type { CiState } from "./ghItems.js";
|
|
5
|
+
|
|
6
|
+
export const BOARD_COLUMNS = ["todo", "implementing", "review", "qa", "merged"] as const;
|
|
7
|
+
|
|
8
|
+
export type BoardColumn = (typeof BOARD_COLUMNS)[number];
|
|
9
|
+
|
|
10
|
+
export interface BoardIssue {
|
|
11
|
+
number: number;
|
|
12
|
+
title: string;
|
|
13
|
+
url: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface BoardPr {
|
|
17
|
+
number: number;
|
|
18
|
+
title: string;
|
|
19
|
+
url: string;
|
|
20
|
+
branch: string;
|
|
21
|
+
isDraft: boolean;
|
|
22
|
+
ci: CiState;
|
|
23
|
+
/** gh reviewDecision, or null when the repo requires none. */
|
|
24
|
+
review: string | null;
|
|
25
|
+
/** Distinct commits that received a review — one per push a reviewer looked at. */
|
|
26
|
+
reviewRounds: number;
|
|
27
|
+
/** Whether the newest commit has been reviewed yet. */
|
|
28
|
+
headReviewed: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface BoardCell {
|
|
32
|
+
session: string;
|
|
33
|
+
cwd: string;
|
|
34
|
+
working: boolean;
|
|
35
|
+
waiting: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface BoardCard {
|
|
39
|
+
/** Stable within a repo: `pr-N`, `issue-N` or `branch-<name>`. */
|
|
40
|
+
key: string;
|
|
41
|
+
column: BoardColumn;
|
|
42
|
+
issue: BoardIssue | null;
|
|
43
|
+
pr: BoardPr | null;
|
|
44
|
+
/** The branch the work is on, when there is one — the PR's head, or a cell's branch with no PR. */
|
|
45
|
+
branch: string | null;
|
|
46
|
+
cells: BoardCell[];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface RepoBoard {
|
|
50
|
+
repo: string;
|
|
51
|
+
cards?: BoardCard[];
|
|
52
|
+
error?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface BoardResponse {
|
|
56
|
+
repos: RepoBoard[];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// What GET /api/github/board/detail answers with (#3177): the parts of one card that the board's
|
|
60
|
+
// list does not carry, read when its detail panel opens.
|
|
61
|
+
export interface BoardIssueDetail {
|
|
62
|
+
number: number;
|
|
63
|
+
title: string;
|
|
64
|
+
url: string;
|
|
65
|
+
author: string;
|
|
66
|
+
labels: string[];
|
|
67
|
+
/** Markdown, as written on GitHub. */
|
|
68
|
+
body: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface BoardCheck {
|
|
72
|
+
name: string;
|
|
73
|
+
ci: CiState;
|
|
74
|
+
/** The check's own page, or "" when it has none. */
|
|
75
|
+
url: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface BoardReview {
|
|
79
|
+
author: string;
|
|
80
|
+
/** gh's review state: APPROVED, CHANGES_REQUESTED, COMMENTED, … */
|
|
81
|
+
state: string;
|
|
82
|
+
/** The short oid of the commit the review was left on. */
|
|
83
|
+
commit: string;
|
|
84
|
+
submittedAt: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface BoardPrDetail {
|
|
88
|
+
number: number;
|
|
89
|
+
title: string;
|
|
90
|
+
url: string;
|
|
91
|
+
author: string;
|
|
92
|
+
body: string;
|
|
93
|
+
isDraft: boolean;
|
|
94
|
+
additions: number;
|
|
95
|
+
deletions: number;
|
|
96
|
+
checks: BoardCheck[];
|
|
97
|
+
reviews: BoardReview[];
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface BoardDetailResponse {
|
|
101
|
+
issue: BoardIssueDetail | null;
|
|
102
|
+
pr: BoardPrDetail | null;
|
|
103
|
+
/** One line per part that could not be read; the other part is still shown. */
|
|
104
|
+
errors: string[];
|
|
105
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// A URL that arrives as DATA and goes into an `<a href>`: `javascript:` in that attribute runs on
|
|
2
|
+
// click, so the scheme is not the data's decision. https only — github.com and GitHub Enterprise
|
|
3
|
+
// both serve it, and the cost of refusing anything else is a missing link beside text that still shows.
|
|
4
|
+
export const safeHttpsUrl = (value: unknown): string | null => {
|
|
5
|
+
if (typeof value !== "string" || value === "") return null;
|
|
6
|
+
try {
|
|
7
|
+
return new URL(value).protocol === "https:" ? value : null;
|
|
8
|
+
} catch {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
};
|