sshler 1.2.1__tar.gz → 1.3.1__tar.gz
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.
- {sshler-1.2.1/sshler.egg-info → sshler-1.3.1}/PKG-INFO +1 -1
- {sshler-1.2.1 → sshler-1.3.1}/pyproject.toml +1 -1
- sshler-1.3.1/scripts/capture_views.py +287 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/boxes.py +7 -5
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/claude_sessions.py +7 -2
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/file_contract.py +4 -2
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/files.py +1 -2
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/local_files.py +97 -8
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/recovery.py +2 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/remote.py +25 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/remote_files.py +48 -8
- {sshler-1.2.1 → sshler-1.3.1}/sshler/snapshot.py +41 -7
- sshler-1.2.1/sshler/static/dist/assets/Add-DVj_NAD5.js → sshler-1.3.1/sshler/static/dist/assets/Add-DEmZuhBN.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/Alert-CKoH27Xv.js → sshler-1.3.1/sshler/static/dist/assets/Alert-jRvWI2WC.js +3 -3
- sshler-1.3.1/sshler/static/dist/assets/ArtifactsView-DlJSiZGZ.js +1 -0
- sshler-1.3.1/sshler/static/dist/assets/ArtifactsView-WEoMOwvv.css +1 -0
- sshler-1.3.1/sshler/static/dist/assets/BoxesView-BC5znPo4.js +1 -0
- sshler-1.3.1/sshler/static/dist/assets/BoxesView-Kv_-7He8.css +1 -0
- sshler-1.2.1/sshler/static/dist/assets/ChevronRight-CB13mv_U.js → sshler-1.3.1/sshler/static/dist/assets/ChevronRight-BRxEsqaL.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/ClaudeSessionsView-CnKaHEEU.js +137 -0
- sshler-1.3.1/sshler/static/dist/assets/ClaudeSessionsView-J38dToU5.css +1 -0
- sshler-1.3.1/sshler/static/dist/assets/CommanderView-C3kzrrRj.css +1 -0
- sshler-1.3.1/sshler/static/dist/assets/CommanderView-DydCX36L.js +1 -0
- sshler-1.3.1/sshler/static/dist/assets/ContextMenu-DryX3Hez.js +1 -0
- sshler-1.3.1/sshler/static/dist/assets/ContextMenu-Dzb8gEM5.css +1 -0
- sshler-1.2.1/sshler/static/dist/assets/DiffView-BuaOaZHV.css → sshler-1.3.1/sshler/static/dist/assets/DiffView-Bd2YUXEh.css +1 -1
- sshler-1.3.1/sshler/static/dist/assets/DiffView-CaOFglH-.js +9 -0
- sshler-1.2.1/sshler/static/dist/assets/DiffViewer-CNSxZac5.js → sshler-1.3.1/sshler/static/dist/assets/DiffViewer-CwS6Pb5U.js +2 -2
- sshler-1.3.1/sshler/static/dist/assets/DirectoryPickerModal-DrCOl01D.js +95 -0
- sshler-1.3.1/sshler/static/dist/assets/DirectoryPickerModal-s0UA0vR3.css +1 -0
- sshler-1.3.1/sshler/static/dist/assets/FilesView-Be8J49T-.js +772 -0
- sshler-1.3.1/sshler/static/dist/assets/FilesView-ZU_L2alt.css +1 -0
- sshler-1.3.1/sshler/static/dist/assets/GitBadge-CnKJtAGb.js +1 -0
- sshler-1.3.1/sshler/static/dist/assets/Input-DnapVD4O.js +234 -0
- sshler-1.3.1/sshler/static/dist/assets/InputNumber-twOkKAEo.js +13 -0
- sshler-1.3.1/sshler/static/dist/assets/LoginView-BVD5vU89.css +1 -0
- sshler-1.3.1/sshler/static/dist/assets/LoginView-pyknQc1U.js +110 -0
- sshler-1.3.1/sshler/static/dist/assets/MultiTerminalView-C6Chi4e9.js +1 -0
- sshler-1.3.1/sshler/static/dist/assets/MultiTerminalView-DK69qR-F.css +1 -0
- sshler-1.3.1/sshler/static/dist/assets/NotFoundView-D_bm6QDQ.css +1 -0
- sshler-1.3.1/sshler/static/dist/assets/NotFoundView-Dj55XWwy.js +1 -0
- sshler-1.3.1/sshler/static/dist/assets/OverviewView-CA09wOlC.css +1 -0
- sshler-1.3.1/sshler/static/dist/assets/OverviewView-DSq8n51R.js +1 -0
- sshler-1.3.1/sshler/static/dist/assets/PhArrowLeft.vue-BMs1SZjy.js +1 -0
- sshler-1.2.1/sshler/static/dist/assets/PhArrowsClockwise.vue-DIpXw-wC.js → sshler-1.3.1/sshler/static/dist/assets/PhArrowsClockwise.vue-9RBDD46V.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/PhArrowsLeftRight.vue-8OgBoRAo.js → sshler-1.3.1/sshler/static/dist/assets/PhArrowsLeftRight.vue-DjncoiiD.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/PhArrowsOut.vue-DQptlW4v.js → sshler-1.3.1/sshler/static/dist/assets/PhArrowsOut.vue-BOCyKglI.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/PhCheck.vue-DVhfUCos.js +1 -0
- sshler-1.3.1/sshler/static/dist/assets/PhCircle.vue-BMTIJDex.js +1 -0
- sshler-1.2.1/sshler/static/dist/assets/PhClockCounterClockwise.vue-8fEtbkeo.js → sshler-1.3.1/sshler/static/dist/assets/PhClockCounterClockwise.vue-eSgjR-is.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/PhCopy.vue-FKiTGwf5.js +1 -0
- sshler-1.3.1/sshler/static/dist/assets/PhCopySimple.vue-lAo26JOS.js +1 -0
- sshler-1.2.1/sshler/static/dist/assets/PhFloppyDisk.vue-BzUr1KeQ.js → sshler-1.3.1/sshler/static/dist/assets/PhFloppyDisk.vue-DG1DzU7a.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/PhFolderOpen.vue-BliJ8f_D.js → sshler-1.3.1/sshler/static/dist/assets/PhFolderOpen.vue-DXTvd5o3.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/PhGitBranch.vue-Bcy7lLT8.js → sshler-1.3.1/sshler/static/dist/assets/PhGitBranch.vue-B09vnVPP.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/PhPencilSimple.vue-CZyPwIW4.js → sshler-1.3.1/sshler/static/dist/assets/PhPencilSimple.vue-DEromwmD.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/PhPlay.vue-YnRHvIIa.js → sshler-1.3.1/sshler/static/dist/assets/PhPlay.vue-D_wZ8r3z.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/PhPushPinSimple.vue-BMQpg4HB.js +1 -0
- sshler-1.2.1/sshler/static/dist/assets/PhQuestion.vue-BG4hB2wF.js → sshler-1.3.1/sshler/static/dist/assets/PhQuestion.vue-6r8_Wp_x.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/PhTrash.vue-UcyRJtzp.js → sshler-1.3.1/sshler/static/dist/assets/PhTrash.vue-B_MgjXry.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/Popconfirm-GAogkxIj.js +16 -0
- sshler-1.3.1/sshler/static/dist/assets/Popover-B7DitKyC.js +117 -0
- sshler-1.3.1/sshler/static/dist/assets/Progress-Cr4ocr-T.js +166 -0
- sshler-1.3.1/sshler/static/dist/assets/ProgressView-3p_OIi-y.css +1 -0
- sshler-1.3.1/sshler/static/dist/assets/ProgressView-DOg2c__b.js +1 -0
- sshler-1.3.1/sshler/static/dist/assets/Select-Cc7bvkLZ.js +317 -0
- sshler-1.3.1/sshler/static/dist/assets/SettingsView-CXh_Z9eJ.js +74 -0
- sshler-1.3.1/sshler/static/dist/assets/SettingsView-quFzRgtz.css +1 -0
- sshler-1.2.1/sshler/static/dist/assets/Spin-DMtfGyTl.js → sshler-1.3.1/sshler/static/dist/assets/Spin-Dd0ayTqa.js +2 -2
- sshler-1.3.1/sshler/static/dist/assets/Suffix-B36DzEY5.js +25 -0
- sshler-1.2.1/sshler/static/dist/assets/Switch-CUeyUos9.js → sshler-1.3.1/sshler/static/dist/assets/Switch-DrpUt9Nz.js +2 -2
- sshler-1.3.1/sshler/static/dist/assets/Tag-DuIn8UVX.js +94 -0
- sshler-1.3.1/sshler/static/dist/assets/TerminalView-B9PJBhCP.css +1 -0
- sshler-1.3.1/sshler/static/dist/assets/TerminalView-D7JN-b_L.js +2 -0
- sshler-1.2.1/sshler/static/dist/assets/Warning-DQEelS-y.js → sshler-1.3.1/sshler/static/dist/assets/Warning-DdY8ttUA.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/_plugin-vue_export-helper-Bq7SfXed.js +400 -0
- sshler-1.2.1/sshler/static/dist/assets/abnfDiagram-S7VZAUFO-CRAuAPKn.js → sshler-1.3.1/sshler/static/dist/assets/abnfDiagram-S7VZAUFO-BXmyzah1.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/architectureDiagram-YGSQEFNW-DpqGi7F5.js → sshler-1.3.1/sshler/static/dist/assets/architectureDiagram-YGSQEFNW-DbJJ89EZ.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/blockDiagram-APKKGZFW-DDgqpToC.js → sshler-1.3.1/sshler/static/dist/assets/blockDiagram-APKKGZFW-BlKltNxu.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/bootstrap-C2zuJ98F.js +1 -0
- sshler-1.2.1/sshler/static/dist/assets/c4Diagram-KJ2TOQU5-C1xXULaU.js → sshler-1.3.1/sshler/static/dist/assets/c4Diagram-KJ2TOQU5-Bz9i7KF7.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-6MUBBAK2-CJDfnB2x.js → sshler-1.3.1/sshler/static/dist/assets/chunk-6MUBBAK2-B2NLXqT4.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-AXFCVDMN-BPNpFjIz.js → sshler-1.3.1/sshler/static/dist/assets/chunk-AXFCVDMN-DakP4-YK.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-BG4553SI-31NRIiO1.js → sshler-1.3.1/sshler/static/dist/assets/chunk-BG4553SI-BfRfmhh7.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-DQASFODM-PhNJXukx.js → sshler-1.3.1/sshler/static/dist/assets/chunk-DQASFODM-DXrWP-kx.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-HFQBQIA3-BJOOoMyZ.js → sshler-1.3.1/sshler/static/dist/assets/chunk-HFQBQIA3-xcauvTnF.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-KQLB2F66-Culypxju.js → sshler-1.3.1/sshler/static/dist/assets/chunk-KQLB2F66-61rBFBXq.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-KS47KZWR-DC-0YsSj.js → sshler-1.3.1/sshler/static/dist/assets/chunk-KS47KZWR-UJvKAHG6.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-LEVMRMFU-B0cxXb-O.js → sshler-1.3.1/sshler/static/dist/assets/chunk-LEVMRMFU--KidKXNQ.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-M57EVK23-YCUPLlVX.js → sshler-1.3.1/sshler/static/dist/assets/chunk-M57EVK23-Dmk5ucte.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-OY52VR5R-Dt5cnDg4.js → sshler-1.3.1/sshler/static/dist/assets/chunk-OY52VR5R-kiRVNVft.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-QB3YPZ4I-Bxd9TvGD.js → sshler-1.3.1/sshler/static/dist/assets/chunk-QB3YPZ4I-D-lBU0DO.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-R3KSYZAL-CDf2N8ls.js → sshler-1.3.1/sshler/static/dist/assets/chunk-R3KSYZAL-COXJcTO9.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-STOXU5M4-DrkFUR4Q.js → sshler-1.3.1/sshler/static/dist/assets/chunk-STOXU5M4-C4HInLDb.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-TU62E6Q5-BjGh__rd.js → sshler-1.3.1/sshler/static/dist/assets/chunk-TU62E6Q5-Ch6w8vFU.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/chunk-X4PVCEUW-VSKCw2t0.js → sshler-1.3.1/sshler/static/dist/assets/chunk-X4PVCEUW-BqUQcqSD.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/classDiagram-v2-L25IHNXF-Dc5jD78x.js → sshler-1.3.1/sshler/static/dist/assets/classDiagram-v2-L25IHNXF-BOffEKFc.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/composables-t62CRov_.js +1 -0
- sshler-1.2.1/sshler/static/dist/assets/cynefinDiagram-L36ESFBY-D7tNGZw8.js → sshler-1.3.1/sshler/static/dist/assets/cynefinDiagram-L36ESFBY-BrC5P4fC.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/dagre-SPEB5RXH-DNdGxsVE.js → sshler-1.3.1/sshler/static/dist/assets/dagre-SPEB5RXH-ZbpHQSdw.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/diagram-3B7GL73J-CqdGkx6m.js → sshler-1.3.1/sshler/static/dist/assets/diagram-3B7GL73J-CAawnK4Q.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/diagram-DNEMPZML-CnUwrV1Q.js → sshler-1.3.1/sshler/static/dist/assets/diagram-DNEMPZML-D4qPMJcE.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/diagram-L3MUGCDN-dVze692u.js → sshler-1.3.1/sshler/static/dist/assets/diagram-L3MUGCDN-yCVyI7Su.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/diagram-LA4NIPWU-BQ5wXtyf.js → sshler-1.3.1/sshler/static/dist/assets/diagram-LA4NIPWU-CelyOCFL.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/diagram-MHCOC4E2-BRDZ4aI4.js → sshler-1.3.1/sshler/static/dist/assets/diagram-MHCOC4E2-CgsQUkRP.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/diagram-XPFHEONP-CK4hrnDe.js → sshler-1.3.1/sshler/static/dist/assets/diagram-XPFHEONP-MMZNgHhI.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/dirLinks-DYgN3kuT.js +1 -0
- sshler-1.2.1/sshler/static/dist/assets/ebnfDiagram-UZSYDL2S-DDWraZHo.js → sshler-1.3.1/sshler/static/dist/assets/ebnfDiagram-UZSYDL2S-D2GPcmHD.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/elk-XV6XMXQE-CBaL4Ym6.js → sshler-1.3.1/sshler/static/dist/assets/elk-XV6XMXQE-V9S6bpy2.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/erDiagram-EYBAPDEH-BVPB658E.js → sshler-1.3.1/sshler/static/dist/assets/erDiagram-EYBAPDEH-Bv43gdjQ.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/event-Db0nAmVz.js +1 -0
- sshler-1.2.1/sshler/static/dist/assets/favorites-xRCBAWJ7.js → sshler-1.3.1/sshler/static/dist/assets/favorites-CnJj5YSa.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/flatten-C237jh8P.js +1 -0
- sshler-1.3.1/sshler/static/dist/assets/flowDiagram-MALGAFMO-CgOJX1Nx.js +1 -0
- sshler-1.2.1/sshler/static/dist/assets/ganttDiagram-23REXITY-CBlsecvz.js → sshler-1.3.1/sshler/static/dist/assets/ganttDiagram-23REXITY-BwTvnO8q.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/gitGraphDiagram-STJD7YCW-CTaWVdXt.js → sshler-1.3.1/sshler/static/dist/assets/gitGraphDiagram-STJD7YCW-B3sy0acO.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/http-C62oEuQ5.js +3 -0
- sshler-1.3.1/sshler/static/dist/assets/i18n-gQdbl5sJ.js +5 -0
- sshler-1.3.1/sshler/static/dist/assets/index-CQsIhqEW.css +1 -0
- sshler-1.3.1/sshler/static/dist/assets/index-zvBSG0-h.js +591 -0
- sshler-1.2.1/sshler/static/dist/assets/infoDiagram-KBXO4MBG-DkSOQT-R.js → sshler-1.3.1/sshler/static/dist/assets/infoDiagram-KBXO4MBG-DRLCCKBZ.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/ishikawaDiagram-M35NCXHK-BgjsD5bI.js → sshler-1.3.1/sshler/static/dist/assets/ishikawaDiagram-M35NCXHK-CaFZPrbQ.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/journeyDiagram-OPLOXDXO-CZ1ETyhW.js → sshler-1.3.1/sshler/static/dist/assets/journeyDiagram-OPLOXDXO-BbiLA9Y1.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/kanban-definition-BZKZHSQY-qkOaCBel.js → sshler-1.3.1/sshler/static/dist/assets/kanban-definition-BZKZHSQY-DJkD-KJ9.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/light-B3Z7NuY-.js +1 -0
- sshler-1.3.1/sshler/static/dist/assets/light-Bw_xNwn4.js +108 -0
- sshler-1.3.1/sshler/static/dist/assets/light-COnbaPWa.js +105 -0
- sshler-1.2.1/sshler/static/dist/assets/mermaid.core-D5w3hbD9.js → sshler-1.3.1/sshler/static/dist/assets/mermaid.core-4ol_UC_A.js +4 -4
- sshler-1.2.1/sshler/static/dist/assets/mindmap-definition-I2QAS2VK-C-g7iR5I.js → sshler-1.3.1/sshler/static/dist/assets/mindmap-definition-I2QAS2VK-BJRCcmyd.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/pathParts-CdTzPsGR.js → sshler-1.3.1/sshler/static/dist/assets/pathParts-B6X81jnP.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/pegDiagram-FD4XPPHP-BD4SCum0.js → sshler-1.3.1/sshler/static/dist/assets/pegDiagram-FD4XPPHP-CvZ_Wegk.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/pieDiagram-J4AKIIQI-jgo_yfAe.js → sshler-1.3.1/sshler/static/dist/assets/pieDiagram-J4AKIIQI--6t0D6Kz.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/quadrantDiagram-XTYBLID2-CMNwkjsj.js → sshler-1.3.1/sshler/static/dist/assets/quadrantDiagram-XTYBLID2-CwPocKQT.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/railroadDiagram-MRQ6NCDL-CtghQNBS.js → sshler-1.3.1/sshler/static/dist/assets/railroadDiagram-MRQ6NCDL-CSacJZiy.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/requirementDiagram-Y7LWUY3S-D5lIq31W.js → sshler-1.3.1/sshler/static/dist/assets/requirementDiagram-Y7LWUY3S-Bp9sTYTi.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/runtime-core.esm-bundler-Dg-ZVrJt.js +1 -0
- sshler-1.2.1/sshler/static/dist/assets/sankeyDiagram-WGJFYUXA-BgJgBQSA.js → sshler-1.3.1/sshler/static/dist/assets/sankeyDiagram-WGJFYUXA-q9ffgr3H.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/sequenceDiagram-5NDRBG5M-Biszpcaf.js → sshler-1.3.1/sshler/static/dist/assets/sequenceDiagram-5NDRBG5M-C3KrgMTi.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/sessionName-m9Owacal.js → sshler-1.3.1/sshler/static/dist/assets/sessionName-CkNEygtv.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/stateDiagram-v2-FJ4FJNEA-Dgy1pNMu.js → sshler-1.3.1/sshler/static/dist/assets/stateDiagram-v2-FJ4FJNEA-CZG2C6q3.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/swimlanes-UMQ2AFYF-BuWt8UN7.js → sshler-1.3.1/sshler/static/dist/assets/swimlanes-UMQ2AFYF-BTd3Xb9k.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/swimlanesDiagram-OMPLPG4O-Bt7AYwUB.js +8 -0
- sshler-1.2.1/sshler/static/dist/assets/timeline-definition-SEUHKTQE-CXhY3lRv.js → sshler-1.3.1/sshler/static/dist/assets/timeline-definition-SEUHKTQE-CdX5pcmY.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/use-merged-state-CuoatQ1O.js → sshler-1.3.1/sshler/static/dist/assets/use-merged-state-Dm-xuTAu.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/useApi-SF8tY_yo-CGxurG4J.js +1 -0
- sshler-1.3.1/sshler/static/dist/assets/useBoxAnswer-B2esh4Oy.js +153 -0
- sshler-1.2.1/sshler/static/dist/assets/useFolderSearch-NCF-aCNV.js → sshler-1.3.1/sshler/static/dist/assets/useFolderSearch-CWE9k81L.js +1 -1
- sshler-1.3.1/sshler/static/dist/assets/useReplacePrompt-DCG_eG_K.js +376 -0
- sshler-1.2.1/sshler/static/dist/assets/usecaseDiagram-AFA6YXN4-D2HPDd5g.js → sshler-1.3.1/sshler/static/dist/assets/usecaseDiagram-AFA6YXN4-JC2hWcJp.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/vennDiagram-NNMJR3RB-DMr6IXjZ.js → sshler-1.3.1/sshler/static/dist/assets/vennDiagram-NNMJR3RB-BHJ1Ome8.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/wardleyDiagram-S7YFUSEH-3O3u2OIU.js → sshler-1.3.1/sshler/static/dist/assets/wardleyDiagram-S7YFUSEH-B8ajWmU2.js +1 -1
- sshler-1.2.1/sshler/static/dist/assets/xychartDiagram-GGNKY7IX-CUYbM1pN.js → sshler-1.3.1/sshler/static/dist/assets/xychartDiagram-GGNKY7IX-CK5-6aMZ.js +1 -1
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/index.html +19 -11
- {sshler-1.2.1 → sshler-1.3.1}/sshler/validation.py +36 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/webapp.py +4 -1
- {sshler-1.2.1 → sshler-1.3.1/sshler.egg-info}/PKG-INFO +1 -1
- sshler-1.3.1/sshler.egg-info/SOURCES.txt +375 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_api_body_models.py +22 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_api_v1.py +25 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_box_files_contract.py +20 -5
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_claude_sessions.py +40 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_existing_name_rule.py +13 -9
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_files_folder_zip_remote.py +6 -1
- sshler-1.3.1/tests/test_home_guard.py +338 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_local_git_runs.py +26 -1
- sshler-1.3.1/tests/test_local_stats_thread.py +23 -0
- sshler-1.3.1/tests/test_login_lockout.py +74 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_path_validation.py +52 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_remote_tilde_routes.py +23 -4
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_session_active_flag.py +9 -2
- sshler-1.3.1/tests/test_snapshot_interval_wake.py +78 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_snapshot_loop_settings.py +3 -3
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_ssh.py +3 -3
- sshler-1.2.1/sshler/static/dist/assets/ArtifactsView-Dv33f2Fs.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/ArtifactsView-afhw1qXI.css +0 -1
- sshler-1.2.1/sshler/static/dist/assets/BoxesView-9Vjlf5Iv.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/BoxesView-C2c0xItr.css +0 -1
- sshler-1.2.1/sshler/static/dist/assets/ClaudeSessionsView-vF7gyCQp.js +0 -137
- sshler-1.2.1/sshler/static/dist/assets/ClaudeSessionsView-xGWjqzNK.css +0 -1
- sshler-1.2.1/sshler/static/dist/assets/CommanderView-4LyZJYDy.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/CommanderView-ThrOCSOS.css +0 -1
- sshler-1.2.1/sshler/static/dist/assets/DiffView-BXCpZW0Z.js +0 -9
- sshler-1.2.1/sshler/static/dist/assets/DirectoryPickerModal-3MJl9Fe_.js +0 -95
- sshler-1.2.1/sshler/static/dist/assets/DirectoryPickerModal-BchEuEbT.css +0 -1
- sshler-1.2.1/sshler/static/dist/assets/FilesView-BkB3GWQ_.css +0 -1
- sshler-1.2.1/sshler/static/dist/assets/FilesView-BtZrU3i_.js +0 -772
- sshler-1.2.1/sshler/static/dist/assets/GitBadge-DBBiAe6y.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/Grid-C0Ybw0fx.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/InputNumber-DLHiw-vi.js +0 -13
- sshler-1.2.1/sshler/static/dist/assets/LoginView-BPjMtIkt.js +0 -110
- sshler-1.2.1/sshler/static/dist/assets/LoginView-ZzJUJyPs.css +0 -1
- sshler-1.2.1/sshler/static/dist/assets/MultiTerminalView-BY769dER.css +0 -1
- sshler-1.2.1/sshler/static/dist/assets/MultiTerminalView-D9Moh7Zr.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/NotFoundView-DWZwQy5Q.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/NotFoundView-DwnT1Qmo.css +0 -1
- sshler-1.2.1/sshler/static/dist/assets/OverviewView-Aq1mzCKn.css +0 -1
- sshler-1.2.1/sshler/static/dist/assets/OverviewView-CCyD27cf.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/PhArrowLeft.vue-Bx2QsCJM.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/PhCheck.vue-CEm_oMEb.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/PhCircle.vue-vHfAO3d-.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/PhCopy.vue-BLGEnEkX.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/PhCopySimple.vue-DEwhUG3v.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/PhList.vue-KPsdW08_.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/PhPushPinSimple.vue-B8qMbkV_.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/Popconfirm-BzPxPplj.js +0 -16
- sshler-1.2.1/sshler/static/dist/assets/ProgressView-CPI0lyZX.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/ProgressView-DbwfQb8J.css +0 -1
- sshler-1.2.1/sshler/static/dist/assets/RadioGroup-DwZph3HN.js +0 -153
- sshler-1.2.1/sshler/static/dist/assets/SettingsView-B21c--4o.js +0 -74
- sshler-1.2.1/sshler/static/dist/assets/SettingsView-xAJiWU9o.css +0 -1
- sshler-1.2.1/sshler/static/dist/assets/Tag-BXB6UJbk.js +0 -210
- sshler-1.2.1/sshler/static/dist/assets/TerminalView-Bxk8zgzW.css +0 -1
- sshler-1.2.1/sshler/static/dist/assets/TerminalView-C6hzrcMJ.js +0 -2
- sshler-1.2.1/sshler/static/dist/assets/_plugin-vue_export-helper-BUbEWP3a.js +0 -400
- sshler-1.2.1/sshler/static/dist/assets/bootstrap-B1hYOSMw.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/composables-BklhQYb_.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/flatten-blBgGSOx.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/flowDiagram-MALGAFMO-Dn6Ozus2.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/http-BqXQFLQe.js +0 -7
- sshler-1.2.1/sshler/static/dist/assets/index-B3oOG2dl.js +0 -1557
- sshler-1.2.1/sshler/static/dist/assets/index-CEzH1A4_.css +0 -1
- sshler-1.2.1/sshler/static/dist/assets/runtime-core.esm-bundler-BrzYnu9e.js +0 -1
- sshler-1.2.1/sshler/static/dist/assets/swimlanesDiagram-OMPLPG4O-DH2U0TbL.js +0 -8
- sshler-1.2.1/sshler/static/dist/assets/useReplacePrompt-4JyUiYgK.js +0 -376
- sshler-1.2.1/sshler.egg-info/SOURCES.txt +0 -358
- {sshler-1.2.1 → sshler-1.3.1}/LICENSE +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/MANIFEST.in +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/README.md +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/scripts/check_frontend_dist.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/setup.cfg +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/__init__.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/_pty_child.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/access.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/__init__.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/archive.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/artifacts.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/auth.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/batch.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/box_files.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/box_runner.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/config.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/dependencies.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/diff.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/excel.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/failure.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/git.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/grep.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/helpers.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/models.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/pdf.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/ping.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/placement.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/progress.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/rate_limiting.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/run_failures.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/search.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/sessions.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/snippets.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/stats_stream.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/terminal.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/transfer.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/api/tunnels.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/artifacts.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/auth.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/claude_sessions.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/cli/__init__.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/cli/_main.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/cli/artifacts.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/cli/client.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/cli/password.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/cli/ping.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/cli/progress.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/cli/runtime_token.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/cli/server.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/config.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/config_cache.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/config_dir.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/pdf.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/proc.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/ptyspawn.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/rate_limit.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/scripts/install-sshler-task.ps1 +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/scripts/remove-sshler-task.ps1 +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/scripts/run-sshler.ps1 +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/session.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/session_activity.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/settings.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/spa.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/ssh.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/ssh_config.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/ssh_pool.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/state.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/DiffViewer-BRAHvu6K.css +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/GitBadge-i4R5k8Yn.css +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/_baseEach-DRxRab5x.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/architecture-WOLXFQ4H-C6rElQ7Y.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/bpmnIcons-APHXDYXF-C0jbCElo.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/chunk-DUW6YSOI-Dgx8z5s3.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/chunk-J5ZVWO5B-oDCd-gWO.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/chunk-NGNAAXSQ-DI_UYJZ4.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/chunk-XXDRQBXY-i7MKP1NY.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/cose-bilkent-JH36ORCC-C6J2IoHg.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/cynefin-EF2NZ3EQ-lPUjyvIZ.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/cytoscape.esm-nTrd5EVq.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/d3-scale-CElPUUud.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/d3-selection-COWvaQNI.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/dist-DdXDFcej.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/eventmodeling-K75KTNOO-BEvQBdS3.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/get-Jkx-poUl.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/get-slot-6kXJmSMP.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/gitGraph-VSP46ZUC-DPePhKd7.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/graphlib-C-M0B7mD.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/happens-in-D4nrdV77.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/info-OHQRW6UA-FXs-3RzV.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/isArrayLikeObject-DDw98r_w.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/katex-MEuSR36T.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/map-qc1plvxH.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/merge-DVfkhdQt.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/mermaid-parser.core-gWF4TbpQ.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/packet-JDAUHWVQ-DWI00mii.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/pageLoad-86LfyLdt.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/pie-XZMESJXO-mEep_piW.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/preload-helper-BSZHtiEo.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/radar-ABXABTNO-Co9rsjbw.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/railroad-I3PHUGI6-_QD7qyEP.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/railroad-abnf-LNEFI6M7-Dya2h1Ax.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/railroad-ebnf-DWYD2UWJ-xXJLDf9V.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/railroad-peg-JR7BVNR7-CCnFE6SM.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/rolldown-runtime-COiEfhsA.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/rough.esm-Dy-Kn_BL.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/sizeCapture-INFHLROL-3uHXrFqA.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/treeView-D4JQ5SDB-v1jaVIUB.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/treemap-SAJKECNS-DNI-q7O8.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/useReplacePrompt-g2-2SknS.css +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/assets/wardley-7MLQ67FV-B8BqdR-s.js +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/favicon.png +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/fonts/MonaspaceNeon-Bold.woff2 +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/fonts/MonaspaceNeon-Regular.woff2 +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/fonts/MonaspaceNeon-Variable.woff2 +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/icon-192.png +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/icon-512-maskable.png +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/icon-512.png +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/logo.png +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/static/dist/manifest.webmanifest +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/terminal/__init__.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/terminal/conpty.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/terminal/local.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/terminal/pump.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/terminal/remote.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/terminal/transport.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/tmux.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/win_terminal_registry.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler/winpty_proc.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler.egg-info/dependency_links.txt +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler.egg-info/entry_points.txt +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler.egg-info/requires.txt +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/sshler.egg-info/top_level.txt +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_api_artifacts.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_api_diff.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_api_progress.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_archive.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_archive_existing_names.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_artifacts.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_basic.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_batch_ops.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_box_program_failure_reasons.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_box_runner_contract.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_cli_artifacts.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_cli_imports.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_cli_progress.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_cli_stop.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_client_address.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_command_injection.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_config.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_database_indexes.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_dev_workflow.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_failure_answers.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_failure_reasons.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_fake_tmux.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_files_upload_local.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_force_kill.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_git_refs.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_grep.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_handshake_status.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_httpx_ws.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_keep_both.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_local_folder_copy.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_origin_csrf.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_page_failure_reasons.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_ping_websocket.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_plain_shell.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_platform_support.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_progress_websocket.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_ptyspawn.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_rate_limit.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_rate_limit_middleware.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_recovery.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_remote_git_info_quoting.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_remote_home_callers.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_remote_owners.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_remote_program_checks.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_require_token.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_route_failure_reasons.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_search.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_serve_token_cache.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_session_auth.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_session_name_parity.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_snippets.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_ssh_connection_leaks.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_ssh_loopback.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_ssh_pool_age.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_state_store.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_stats_stream.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_terminal_closes.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_terminal_endings.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_terminal_teardown.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_terminal_transport_contract.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_tmux_subprocess.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_tmux_window_list.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_tunnels.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_websocket.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_win_terminal_registry.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_windows_terminal.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_ws_access.py +0 -0
- {sshler-1.2.1 → sshler-1.3.1}/tests/test_ws_term_auth.py +0 -0
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "sshler"
|
|
8
|
-
version = "1.
|
|
8
|
+
version = "1.3.1"
|
|
9
9
|
description = "A local FastAPI-powered SSH multiplexer for tmux-in-browser — from your laptop only."
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
requires-python = ">=3.12"
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"""Screenshots of sshler's views at chosen widths, languages and themes.
|
|
2
|
+
|
|
3
|
+
uv run python scripts/capture_views.py --out DIR [--views overview,files,...]
|
|
4
|
+
[--widths 390,760,1366] [--langs en,ja] [--themes dark,light]
|
|
5
|
+
[--platform posix|windows] [--dist FOLDER]
|
|
6
|
+
|
|
7
|
+
Writes one PNG per combination, named ``<view>-<width>-<lang>-<theme>.png``. It checks
|
|
8
|
+
nothing: it is for looking at the page.
|
|
9
|
+
|
|
10
|
+
``--platform windows`` shows the page a Windows host would get: the browser rewrites the
|
|
11
|
+
bootstrap answer to say the platform is Windows, with its four shells, so the views that
|
|
12
|
+
decide on it (the terminal's shell choice and tabs) draw their Windows form. File paths
|
|
13
|
+
do not: they come from the server, which is unchanged and still runs here on Linux, so
|
|
14
|
+
they stay in Linux form (no drive letters). A Windows shell does not open; the page
|
|
15
|
+
around it renders. Those files end in ``-windows.png``.
|
|
16
|
+
|
|
17
|
+
``--dist FOLDER`` serves the page from another built frontend (``vite build --outDir
|
|
18
|
+
FOLDER``), as the code of an earlier commit, while the API is still this server's.
|
|
19
|
+
|
|
20
|
+
The app starts the way the browser suites start it: this script runs pytest on itself
|
|
21
|
+
with ``tests/e2e/conftest.py`` loaded as a plugin, so the ``app_server`` fixture there
|
|
22
|
+
(its isolated config, HOME and tmux directory, and their teardown) is the one server
|
|
23
|
+
start. The page is the built frontend in ``sshler/static/dist``: run
|
|
24
|
+
``pnpm --prefix frontend build`` first, and ``uv run playwright install chromium`` once.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
from __future__ import annotations
|
|
28
|
+
|
|
29
|
+
import argparse
|
|
30
|
+
import importlib.util
|
|
31
|
+
import json
|
|
32
|
+
import os
|
|
33
|
+
import shutil
|
|
34
|
+
import sys
|
|
35
|
+
import tempfile
|
|
36
|
+
from pathlib import Path
|
|
37
|
+
from urllib.parse import quote, unquote, urlparse
|
|
38
|
+
|
|
39
|
+
ROOT = Path(__file__).resolve().parents[1]
|
|
40
|
+
CONFTEST = ROOT / "tests" / "e2e" / "conftest.py"
|
|
41
|
+
ARGS_ENV = "SSHLER_CAPTURE_ARGS"
|
|
42
|
+
|
|
43
|
+
# The window height that goes with each common width: a phone, a narrow window, a laptop.
|
|
44
|
+
HEIGHTS = {390: 844, 760: 700, 1366: 768}
|
|
45
|
+
DEFAULT_HEIGHT = 900
|
|
46
|
+
|
|
47
|
+
# Storage keys the page reads at start (stores/app.ts, i18n.ts).
|
|
48
|
+
COLOR_KEY = "sshler:ui:color-mode"
|
|
49
|
+
LOCALE_KEY = "sshler:locale"
|
|
50
|
+
|
|
51
|
+
# Each view: its route. ``{dir}`` is a small known folder made for the run.
|
|
52
|
+
VIEWS: dict[str, str] = {
|
|
53
|
+
"overview": "/app/",
|
|
54
|
+
"files": "/app/files?box=local&dir={dir}",
|
|
55
|
+
"terminal": "/app/terminal?box=local&dir={dir}",
|
|
56
|
+
"multi-terminal": "/app/multi-terminal?box=local",
|
|
57
|
+
"commander": "/app/commander?box=local&dir={dir}",
|
|
58
|
+
"boxes": "/app/boxes",
|
|
59
|
+
"settings": "/app/settings",
|
|
60
|
+
"login": "/app/login",
|
|
61
|
+
"progress": "/app/progress",
|
|
62
|
+
"claude": "/app/claude",
|
|
63
|
+
"diff": "/app/diff",
|
|
64
|
+
"artifacts": "/app/artifacts",
|
|
65
|
+
"notfound": "/app/no-such-page",
|
|
66
|
+
}
|
|
67
|
+
DEFAULT_VIEWS = [
|
|
68
|
+
"overview",
|
|
69
|
+
"files",
|
|
70
|
+
"terminal",
|
|
71
|
+
"multi-terminal",
|
|
72
|
+
"commander",
|
|
73
|
+
"boxes",
|
|
74
|
+
"settings",
|
|
75
|
+
"login",
|
|
76
|
+
]
|
|
77
|
+
|
|
78
|
+
# What a Windows host's bootstrap adds (sshler/api/helpers.py `available_windows_shells`).
|
|
79
|
+
WINDOWS_BOOTSTRAP = {
|
|
80
|
+
"platform": "windows",
|
|
81
|
+
"windows_shells": [
|
|
82
|
+
{"id": "pwsh", "label": "PowerShell 7", "available": True},
|
|
83
|
+
{"id": "powershell", "label": "Windows PowerShell", "available": True},
|
|
84
|
+
{"id": "cmd", "label": "Command Prompt", "available": True},
|
|
85
|
+
{"id": "wsl", "label": "WSL (Ubuntu)", "available": True},
|
|
86
|
+
],
|
|
87
|
+
"default_shell": "pwsh",
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
# How long to wait for a view's own content before taking the picture anyway.
|
|
91
|
+
READY_TIMEOUT_MS = 15_000
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def _csv(value: str) -> list[str]:
|
|
95
|
+
return [item.strip() for item in value.split(",") if item.strip()]
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def parse_args(argv: list[str]) -> argparse.Namespace:
|
|
99
|
+
parser = argparse.ArgumentParser(description=__doc__.split("\n\n")[0])
|
|
100
|
+
parser.add_argument("--out", required=True, type=Path, help="folder for the PNG files")
|
|
101
|
+
parser.add_argument(
|
|
102
|
+
"--views", type=_csv, default=DEFAULT_VIEWS, help=f"any of: {', '.join(VIEWS)}"
|
|
103
|
+
)
|
|
104
|
+
parser.add_argument("--widths", type=_csv, default=["390", "760", "1366"])
|
|
105
|
+
parser.add_argument("--langs", type=_csv, default=["en", "ja"])
|
|
106
|
+
parser.add_argument("--themes", type=_csv, default=["dark", "light"])
|
|
107
|
+
parser.add_argument("--platform", choices=["posix", "windows"], default="posix")
|
|
108
|
+
parser.add_argument("--dist", type=Path, default=None, help="a built frontend to serve instead")
|
|
109
|
+
args = parser.parse_args(argv)
|
|
110
|
+
unknown = [view for view in args.views if view not in VIEWS]
|
|
111
|
+
if unknown:
|
|
112
|
+
parser.error(f"unknown view(s): {', '.join(unknown)}; known: {', '.join(VIEWS)}")
|
|
113
|
+
bad_langs = [lang for lang in args.langs if lang not in ("en", "ja")]
|
|
114
|
+
if bad_langs:
|
|
115
|
+
parser.error(f"unknown language(s): {', '.join(bad_langs)}")
|
|
116
|
+
bad_themes = [theme for theme in args.themes if theme not in ("dark", "light")]
|
|
117
|
+
if bad_themes:
|
|
118
|
+
parser.error(f"unknown theme(s): {', '.join(bad_themes)}")
|
|
119
|
+
if args.dist is not None and not (args.dist / "index.html").is_file():
|
|
120
|
+
parser.error(f"--dist {args.dist} has no index.html")
|
|
121
|
+
try:
|
|
122
|
+
args.widths = [int(width) for width in args.widths]
|
|
123
|
+
except ValueError:
|
|
124
|
+
parser.error("--widths takes whole numbers, as 390,760,1366")
|
|
125
|
+
return args
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def make_fixture_dir() -> Path:
|
|
129
|
+
"""A folder with a few known entries, so the file views show rows."""
|
|
130
|
+
folder = Path(tempfile.mkdtemp(prefix="capture"))
|
|
131
|
+
(folder / "docs").mkdir()
|
|
132
|
+
(folder / "src").mkdir()
|
|
133
|
+
readme = "# Capture\n\nA folder made for the screenshots.\n"
|
|
134
|
+
(folder / "README.md").write_text(readme, encoding="utf-8")
|
|
135
|
+
(folder / "notes.txt").write_text("one\ntwo\nthree\n", encoding="utf-8")
|
|
136
|
+
(folder / "src" / "main.py").write_text("print('hello')\n", encoding="utf-8")
|
|
137
|
+
return folder
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
def _wait_for_view(page, view: str) -> None:
|
|
141
|
+
"""Wait for the view's own content; take the picture anyway when it does not come."""
|
|
142
|
+
try:
|
|
143
|
+
# Sockets do not count here, so the terminal's and the progress strip's stay open.
|
|
144
|
+
page.wait_for_load_state("networkidle", timeout=READY_TIMEOUT_MS)
|
|
145
|
+
if view == "terminal":
|
|
146
|
+
page.locator(".xterm-screen").first.wait_for(state="visible", timeout=READY_TIMEOUT_MS)
|
|
147
|
+
elif view == "files":
|
|
148
|
+
page.get_by_text("README.md").first.wait_for(state="visible", timeout=READY_TIMEOUT_MS)
|
|
149
|
+
# No loading spinner left on the page.
|
|
150
|
+
page.wait_for_function(
|
|
151
|
+
"() => ![...document.querySelectorAll('.n-spin')].some(el => el.offsetParent !== null)",
|
|
152
|
+
timeout=READY_TIMEOUT_MS,
|
|
153
|
+
)
|
|
154
|
+
except Exception as exc: # noqa: BLE001 - a missing landmark still gets its picture
|
|
155
|
+
print(f" {view}: content did not settle ({type(exc).__name__}); capturing as is")
|
|
156
|
+
page.evaluate(
|
|
157
|
+
"document.fonts.ready.then(() => new Promise("
|
|
158
|
+
"r => requestAnimationFrame(() => requestAnimationFrame(r))))"
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
def _serve_dist(context, base_url: str, dist: Path) -> None:
|
|
163
|
+
"""Answer every /app/ request from *dist*, as sshler/spa.py does from its own folder."""
|
|
164
|
+
root = dist.resolve()
|
|
165
|
+
index = root / "index.html"
|
|
166
|
+
|
|
167
|
+
def handle(route) -> None:
|
|
168
|
+
path = urlparse(route.request.url).path.removeprefix("/app").lstrip("/")
|
|
169
|
+
target = (root / unquote(path)).resolve() if path else index
|
|
170
|
+
if not (target.is_relative_to(root) and target.is_file()):
|
|
171
|
+
target = index
|
|
172
|
+
route.fulfill(path=str(target))
|
|
173
|
+
|
|
174
|
+
context.route(f"{base_url}/app", handle)
|
|
175
|
+
context.route(f"{base_url}/app/**", handle)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
def _answer_as_windows(context, base_url: str) -> None:
|
|
179
|
+
def handle(route) -> None:
|
|
180
|
+
response = route.fetch()
|
|
181
|
+
body = response.json()
|
|
182
|
+
body.update(WINDOWS_BOOTSTRAP)
|
|
183
|
+
route.fulfill(response=response, json=body)
|
|
184
|
+
|
|
185
|
+
context.route(f"{base_url}/api/v1/bootstrap*", handle)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
def capture(base_url: str, token: str, args: dict) -> list[Path]:
|
|
189
|
+
folder = make_fixture_dir()
|
|
190
|
+
try:
|
|
191
|
+
return _capture(base_url, token, args, folder)
|
|
192
|
+
finally:
|
|
193
|
+
shutil.rmtree(folder, ignore_errors=True)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
def _capture(base_url: str, token: str, args: dict, folder: Path) -> list[Path]:
|
|
197
|
+
from playwright.sync_api import sync_playwright
|
|
198
|
+
|
|
199
|
+
out = Path(args["out"])
|
|
200
|
+
out.mkdir(parents=True, exist_ok=True)
|
|
201
|
+
written: list[Path] = []
|
|
202
|
+
suffix = "-windows" if args["platform"] == "windows" else ""
|
|
203
|
+
with sync_playwright() as playwright:
|
|
204
|
+
browser = playwright.chromium.launch(headless=True)
|
|
205
|
+
try:
|
|
206
|
+
for lang in args["langs"]:
|
|
207
|
+
for theme in args["themes"]:
|
|
208
|
+
context = browser.new_context(base_url=base_url, color_scheme=theme)
|
|
209
|
+
context.set_extra_http_headers({"X-SSHLER-TOKEN": token})
|
|
210
|
+
if args["dist"]:
|
|
211
|
+
_serve_dist(context, base_url, Path(args["dist"]))
|
|
212
|
+
if args["platform"] == "windows":
|
|
213
|
+
_answer_as_windows(context, base_url)
|
|
214
|
+
context.add_init_script(
|
|
215
|
+
f"localStorage.setItem({json.dumps(COLOR_KEY)}, {json.dumps(theme)});"
|
|
216
|
+
f"localStorage.setItem({json.dumps(LOCALE_KEY)}, {json.dumps(lang)});"
|
|
217
|
+
)
|
|
218
|
+
page = context.new_page()
|
|
219
|
+
for view in args["views"]:
|
|
220
|
+
url = VIEWS[view].replace("{dir}", quote(str(folder)))
|
|
221
|
+
for width in args["widths"]:
|
|
222
|
+
height = HEIGHTS.get(width, DEFAULT_HEIGHT)
|
|
223
|
+
page.set_viewport_size({"width": width, "height": height})
|
|
224
|
+
page.goto(url, wait_until="load")
|
|
225
|
+
_wait_for_view(page, view)
|
|
226
|
+
path = out / f"{view}-{width}-{lang}-{theme}{suffix}.png"
|
|
227
|
+
page.screenshot(path=str(path))
|
|
228
|
+
written.append(path)
|
|
229
|
+
print(f" wrote {path.name}")
|
|
230
|
+
context.close()
|
|
231
|
+
finally:
|
|
232
|
+
browser.close()
|
|
233
|
+
return written
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def test_capture_views(app_server) -> None:
|
|
237
|
+
"""The pytest entry this script runs on itself: the conftest's server, then the pictures."""
|
|
238
|
+
base_url, token = app_server
|
|
239
|
+
args = json.loads(os.environ[ARGS_ENV])
|
|
240
|
+
written = capture(base_url, token, args)
|
|
241
|
+
print(f"{len(written)} screenshot(s) in {args['out']}")
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
def _load_conftest():
|
|
245
|
+
spec = importlib.util.spec_from_file_location("sshler_e2e_conftest", CONFTEST)
|
|
246
|
+
if spec is None or spec.loader is None:
|
|
247
|
+
raise SystemExit(f"cannot load {CONFTEST}")
|
|
248
|
+
module = importlib.util.module_from_spec(spec)
|
|
249
|
+
spec.loader.exec_module(module)
|
|
250
|
+
return module
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
def main(argv: list[str] | None = None) -> int:
|
|
254
|
+
import pytest
|
|
255
|
+
|
|
256
|
+
args = parse_args(sys.argv[1:] if argv is None else argv)
|
|
257
|
+
os.environ[ARGS_ENV] = json.dumps(
|
|
258
|
+
{
|
|
259
|
+
"out": str(args.out.resolve()),
|
|
260
|
+
"views": args.views,
|
|
261
|
+
"widths": args.widths,
|
|
262
|
+
"langs": args.langs,
|
|
263
|
+
"themes": args.themes,
|
|
264
|
+
"platform": args.platform,
|
|
265
|
+
"dist": str(args.dist.resolve()) if args.dist else None,
|
|
266
|
+
}
|
|
267
|
+
)
|
|
268
|
+
return int(
|
|
269
|
+
pytest.main(
|
|
270
|
+
[
|
|
271
|
+
str(Path(__file__).resolve()),
|
|
272
|
+
"--rootdir",
|
|
273
|
+
str(ROOT),
|
|
274
|
+
"-p",
|
|
275
|
+
"no:cacheprovider",
|
|
276
|
+
"-o",
|
|
277
|
+
"timeout=0",
|
|
278
|
+
"-q",
|
|
279
|
+
"-s",
|
|
280
|
+
],
|
|
281
|
+
plugins=[_load_conftest()],
|
|
282
|
+
)
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
if __name__ == "__main__":
|
|
287
|
+
raise SystemExit(main())
|
|
@@ -37,7 +37,7 @@ if TYPE_CHECKING: # pragma: no cover - type checking only
|
|
|
37
37
|
from ..webapp import ServerSettings # noqa: F401
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
_VALID_THEMES = {"cyberpunk", "default", "solarized", "dracula", "nord", "monokai", "light"}
|
|
40
|
+
_VALID_THEMES = {"cyberpunk", "default", "solarized", "dracula", "nord", "monokai", "light", "calm"}
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
def _box_to_api(box: StoredBox | Box) -> APIBox:
|
|
@@ -148,9 +148,11 @@ def get_router(deps: APIDependencies) -> APIRouter:
|
|
|
148
148
|
application_config: AppConfig = Depends(deps.get_application_config),
|
|
149
149
|
) -> APIRefreshResult:
|
|
150
150
|
"""Remove connection overrides so SSH config values apply."""
|
|
151
|
-
deps.get_box_or_404(application_config, name)
|
|
151
|
+
box = deps.get_box_or_404(application_config, name)
|
|
152
152
|
stored_override = application_config.stored.get(name)
|
|
153
|
-
|
|
153
|
+
# A box defined only in boxes.yaml has no SSH config to fall back to: its
|
|
154
|
+
# stored entry is the box itself, so a refresh must leave it alone.
|
|
155
|
+
if stored_override is not None and box.source != "custom":
|
|
154
156
|
stored_override.host = None
|
|
155
157
|
stored_override.user = None
|
|
156
158
|
stored_override.port = None
|
|
@@ -244,8 +246,8 @@ async def _get_local_stats(name: str) -> APIBoxStats:
|
|
|
244
246
|
|
|
245
247
|
import psutil
|
|
246
248
|
|
|
247
|
-
# CPU usage (average over 0.1 second)
|
|
248
|
-
cpu_percent = psutil.cpu_percent
|
|
249
|
+
# CPU usage (average over 0.1 second), sampled off the event loop
|
|
250
|
+
cpu_percent = await asyncio.to_thread(psutil.cpu_percent, 0.1)
|
|
249
251
|
|
|
250
252
|
# Memory info
|
|
251
253
|
mem = psutil.virtual_memory()
|
|
@@ -32,7 +32,7 @@ from ..tmux import (
|
|
|
32
32
|
ts_session_name,
|
|
33
33
|
)
|
|
34
34
|
from .dependencies import APIDependencies
|
|
35
|
-
from .failure import REASON_INVALID, REASON_NOT_FOUND, Failure
|
|
35
|
+
from .failure import REASON_INVALID, REASON_NOT_FOUND, REASON_UNREACHABLE, Failure
|
|
36
36
|
from .models import APIClaudeOpenRequest, APIClaudeOpenResult, APIClaudeSession
|
|
37
37
|
|
|
38
38
|
logger = logging.getLogger(__name__)
|
|
@@ -132,7 +132,12 @@ def get_router(deps: APIDependencies) -> APIRouter:
|
|
|
132
132
|
target = f"{session}:{window}"
|
|
133
133
|
|
|
134
134
|
# Ensure the repo-root session exists.
|
|
135
|
-
|
|
135
|
+
live = await discover_local_sessions()
|
|
136
|
+
if session not in live.names:
|
|
137
|
+
if not live.complete:
|
|
138
|
+
# A server could not be asked: the session may run there, and
|
|
139
|
+
# `new-session` would start a second one.
|
|
140
|
+
raise Failure(REASON_UNREACHABLE, "Could not list local tmux sessions")
|
|
136
141
|
await _run_local_tmux_command(
|
|
137
142
|
session, ["new-session", "-d", "-s", session, "-c", session_dir]
|
|
138
143
|
)
|
|
@@ -291,8 +291,10 @@ class BoxFiles(Protocol):
|
|
|
291
291
|
(``ensure_source_unchanged``, which names ``target``); otherwise keep it."""
|
|
292
292
|
...
|
|
293
293
|
|
|
294
|
-
async def delete(self, path: str) ->
|
|
295
|
-
"""Delete one file
|
|
294
|
+
async def delete(self, path: str) -> str:
|
|
295
|
+
"""Delete one file, given as the client sent it; a link is removed, never what it
|
|
296
|
+
points to, and the home folder or a folder above it is refused. Returns the path
|
|
297
|
+
removed."""
|
|
296
298
|
...
|
|
297
299
|
|
|
298
300
|
async def chmod(self, path: str, mode: int) -> None: ...
|
|
@@ -130,8 +130,7 @@ def get_router(deps: APIDependencies) -> APIRouter:
|
|
|
130
130
|
) -> APISimpleMessage:
|
|
131
131
|
box = deps.get_box_or_404(application_config, name)
|
|
132
132
|
async with box_files(deps, box, application_config, _FILE) as files:
|
|
133
|
-
target = await files.
|
|
134
|
-
await files.delete(target)
|
|
133
|
+
target = await files.delete(payload.path)
|
|
135
134
|
return APISimpleMessage(status="ok", message="deleted", path=target)
|
|
136
135
|
|
|
137
136
|
@router.post("/boxes/{name}/move", response_model=APISimpleMessage)
|
|
@@ -695,7 +695,9 @@ async def _local_read_bytes(path: str, limit: int) -> tuple[bytes, bool]:
|
|
|
695
695
|
async def _local_batch_delete(path: str) -> None:
|
|
696
696
|
def _worker() -> None:
|
|
697
697
|
target = Path(path)
|
|
698
|
-
if target.
|
|
698
|
+
if target.is_symlink() or target.is_junction():
|
|
699
|
+
target.unlink() # the link itself, never what it points to
|
|
700
|
+
elif target.is_dir():
|
|
699
701
|
shutil.rmtree(target)
|
|
700
702
|
else:
|
|
701
703
|
target.unlink()
|
|
@@ -713,22 +715,50 @@ async def _local_delete_file(path: str) -> None:
|
|
|
713
715
|
# The gitignore marks of a listing are a nicety: a git that does not answer in
|
|
714
716
|
# this time is given up on and the listing goes out without them.
|
|
715
717
|
GITIGNORE_TIMEOUT = 5.0
|
|
718
|
+
# Finding the folders that ignore all they hold walks the folder's tree as `git status`
|
|
719
|
+
# does; a tree too big for this time keeps only the marks of the first check.
|
|
720
|
+
WHOLLY_IGNORED_TIMEOUT = 2.0
|
|
716
721
|
|
|
717
722
|
|
|
718
723
|
async def _get_gitignored_names(directory: str, names: list[str]) -> set[str]:
|
|
719
|
-
"""
|
|
724
|
+
"""The names in *directory* that `git status --ignored` lists as ignored.
|
|
725
|
+
|
|
726
|
+
`check-ignore` marks the names a rule matches. A folder that ignores its own contents
|
|
727
|
+
with a `.gitignore` of `*` (.mypy_cache, .pytest_cache, a uv .venv) is matched by no
|
|
728
|
+
rule, so `ls-files` adds the folders git reports as wholly ignored (`name/`).
|
|
729
|
+
"""
|
|
720
730
|
try:
|
|
721
731
|
returncode, stdout, _ = await run_bounded(
|
|
722
|
-
|
|
732
|
+
# -z: names in and out as they are; without it git prints a name with
|
|
733
|
+
# non-ASCII characters (日本.log) quoted and escaped, and it never matches.
|
|
734
|
+
["git", "check-ignore", "--stdin", "-z"],
|
|
723
735
|
GITIGNORE_TIMEOUT,
|
|
724
736
|
cwd=directory,
|
|
725
|
-
stdin_data="\
|
|
737
|
+
stdin_data="\0".join(names).encode(),
|
|
726
738
|
)
|
|
727
739
|
if returncode not in (0, 1): # 1 means none matched, 128 means not a git repo
|
|
728
740
|
return set()
|
|
729
|
-
|
|
741
|
+
ignored = {name for name in stdout.decode(errors="replace").split("\0") if name}
|
|
730
742
|
except Exception:
|
|
731
743
|
return set()
|
|
744
|
+
if ignored.issuperset(names):
|
|
745
|
+
return ignored
|
|
746
|
+
try:
|
|
747
|
+
returncode, stdout, _ = await run_bounded(
|
|
748
|
+
["git", "ls-files", "-z", "--others", "--ignored", "--exclude-standard", "--directory"],
|
|
749
|
+
WHOLLY_IGNORED_TIMEOUT,
|
|
750
|
+
cwd=directory,
|
|
751
|
+
)
|
|
752
|
+
except Exception:
|
|
753
|
+
return ignored
|
|
754
|
+
if returncode != 0:
|
|
755
|
+
return ignored
|
|
756
|
+
wanted = set(names)
|
|
757
|
+
for path in stdout.decode(errors="replace").split("\0"):
|
|
758
|
+
name, slash, rest = path.partition("/")
|
|
759
|
+
if slash and not rest and name in wanted:
|
|
760
|
+
ignored.add(name)
|
|
761
|
+
return ignored
|
|
732
762
|
|
|
733
763
|
|
|
734
764
|
def _safe_extract_zip(zf: zipfile.ZipFile, dest_dir: Path) -> None:
|
|
@@ -1023,6 +1053,37 @@ def _local_path(path: str) -> str:
|
|
|
1023
1053
|
return _normalize_local_path(path)
|
|
1024
1054
|
|
|
1025
1055
|
|
|
1056
|
+
def _local_link_itself(sent: str, resolved: str) -> str:
|
|
1057
|
+
"""The link ``sent`` names when its last part is a link (worker thread), else
|
|
1058
|
+
``resolved``. ``_local_path`` follows every link, so a delete or a move of a link
|
|
1059
|
+
would act on what it points to; the link's folder is resolved, its name is not."""
|
|
1060
|
+
try:
|
|
1061
|
+
base = os.path.abspath(os.path.expanduser(sent))
|
|
1062
|
+
name = os.path.basename(base)
|
|
1063
|
+
if name not in ("", ".", ".."):
|
|
1064
|
+
candidate = os.path.join(os.path.realpath(os.path.dirname(base)), name)
|
|
1065
|
+
# A Windows directory junction links a folder as a symlink does, but
|
|
1066
|
+
# `islink` says False for it.
|
|
1067
|
+
if os.path.islink(candidate) or os.path.isjunction(candidate):
|
|
1068
|
+
return local_path_form(candidate)
|
|
1069
|
+
except (OSError, ValueError):
|
|
1070
|
+
pass
|
|
1071
|
+
return resolved
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
def _local_refuse_home_or_above(resolved: Sequence[str]) -> None:
|
|
1075
|
+
"""Refuse the whole batch when one path is the home folder or above it."""
|
|
1076
|
+
try:
|
|
1077
|
+
home = local_path_form(Path.home().resolve())
|
|
1078
|
+
except (OSError, RuntimeError):
|
|
1079
|
+
return
|
|
1080
|
+
for path in resolved:
|
|
1081
|
+
try:
|
|
1082
|
+
PathValidator.refuse_home_or_ancestor(path, home, windows=LOCAL_IS_WINDOWS)
|
|
1083
|
+
except ValidationError as exc:
|
|
1084
|
+
raise Failure(REASON_INVALID, str(exc)) from exc
|
|
1085
|
+
|
|
1086
|
+
|
|
1026
1087
|
def _local_folder_size(base: Path) -> int:
|
|
1027
1088
|
"""The bytes of the files under ``base`` (worker thread). A missing or unreadable
|
|
1028
1089
|
``base`` fails as the system says; an unreadable entry under it is left out."""
|
|
@@ -1068,6 +1129,16 @@ class LocalFiles:
|
|
|
1068
1129
|
def _resolve(self, path: str) -> str:
|
|
1069
1130
|
return self._spelled.note(_local_path(path), path)
|
|
1070
1131
|
|
|
1132
|
+
def _refuse_home_in(self, paths: Sequence[str]) -> None:
|
|
1133
|
+
"""Worker thread: a path that cannot be resolved fails on its own later."""
|
|
1134
|
+
resolved: list[str] = []
|
|
1135
|
+
for path in paths:
|
|
1136
|
+
try:
|
|
1137
|
+
resolved.append(self._resolve(path))
|
|
1138
|
+
except Exception:
|
|
1139
|
+
continue
|
|
1140
|
+
_local_refuse_home_or_above(resolved)
|
|
1141
|
+
|
|
1071
1142
|
# --- paths -----------------------------------------------------------------------
|
|
1072
1143
|
|
|
1073
1144
|
async def path(self, path: str) -> str:
|
|
@@ -1249,8 +1320,15 @@ class LocalFiles:
|
|
|
1249
1320
|
|
|
1250
1321
|
await asyncio.to_thread(_check_and_remove)
|
|
1251
1322
|
|
|
1252
|
-
async def delete(self, path: str) ->
|
|
1253
|
-
|
|
1323
|
+
async def delete(self, path: str) -> str:
|
|
1324
|
+
def _target() -> str:
|
|
1325
|
+
resolved = self._resolve(path)
|
|
1326
|
+
_local_refuse_home_or_above([resolved])
|
|
1327
|
+
return _local_link_itself(path, resolved)
|
|
1328
|
+
|
|
1329
|
+
target = await asyncio.to_thread(_target)
|
|
1330
|
+
await _local_delete_file(target)
|
|
1331
|
+
return target
|
|
1254
1332
|
|
|
1255
1333
|
async def chmod(self, path: str, mode: int) -> None:
|
|
1256
1334
|
await asyncio.to_thread(Path(path).chmod, mode)
|
|
@@ -1261,7 +1339,9 @@ class LocalFiles:
|
|
|
1261
1339
|
new_name = PathValidator.validate_filename(new_name)
|
|
1262
1340
|
|
|
1263
1341
|
def _rename() -> str:
|
|
1264
|
-
|
|
1342
|
+
resolved = self._resolve(path)
|
|
1343
|
+
_local_refuse_home_or_above([resolved])
|
|
1344
|
+
source = Path(_local_link_itself(path, resolved))
|
|
1265
1345
|
target = str(source.parent / new_name)
|
|
1266
1346
|
landed = _local_place(
|
|
1267
1347
|
str(source), target, move=True, overwrite=overwrite, keep_both=keep_both
|
|
@@ -1284,6 +1364,9 @@ class LocalFiles:
|
|
|
1284
1364
|
if new_name:
|
|
1285
1365
|
PathValidator.validate_filename(new_name)
|
|
1286
1366
|
resolved = await asyncio.to_thread(self._resolve, source)
|
|
1367
|
+
if move:
|
|
1368
|
+
await asyncio.to_thread(_local_refuse_home_or_above, [resolved])
|
|
1369
|
+
resolved = await asyncio.to_thread(_local_link_itself, source, resolved)
|
|
1287
1370
|
dest_dir = Path(await asyncio.to_thread(self._resolve, destination))
|
|
1288
1371
|
landed = await asyncio.to_thread(
|
|
1289
1372
|
_local_place_into,
|
|
@@ -1343,9 +1426,11 @@ class LocalFiles:
|
|
|
1343
1426
|
|
|
1344
1427
|
async def delete_many(self, paths: Sequence[str]) -> BatchOutcome:
|
|
1345
1428
|
outcome = BatchOutcome()
|
|
1429
|
+
await asyncio.to_thread(self._refuse_home_in, paths)
|
|
1346
1430
|
for path in paths:
|
|
1347
1431
|
try:
|
|
1348
1432
|
normalized = await asyncio.to_thread(self._resolve, path)
|
|
1433
|
+
normalized = await asyncio.to_thread(_local_link_itself, path, normalized)
|
|
1349
1434
|
await _local_batch_delete(normalized)
|
|
1350
1435
|
outcome.succeeded.append(path)
|
|
1351
1436
|
except Exception as exc:
|
|
@@ -1366,9 +1451,13 @@ class LocalFiles:
|
|
|
1366
1451
|
outcome = BatchOutcome()
|
|
1367
1452
|
landed: set[str] = set()
|
|
1368
1453
|
dest_dir = Path(await asyncio.to_thread(self._resolve, destination))
|
|
1454
|
+
if move:
|
|
1455
|
+
await asyncio.to_thread(self._refuse_home_in, paths)
|
|
1369
1456
|
for path in paths:
|
|
1370
1457
|
try:
|
|
1371
1458
|
source = await asyncio.to_thread(self._resolve, path)
|
|
1459
|
+
if move:
|
|
1460
|
+
source = await asyncio.to_thread(_local_link_itself, path, source)
|
|
1372
1461
|
target, at = await asyncio.to_thread(
|
|
1373
1462
|
partial(
|
|
1374
1463
|
_local_batch_item,
|
|
@@ -13,6 +13,7 @@ from ..session_activity import match_tmux
|
|
|
13
13
|
from ..snapshot import (
|
|
14
14
|
get_last_snapshot_at,
|
|
15
15
|
get_recovery_sessions,
|
|
16
|
+
notify_interval_changed,
|
|
16
17
|
recreate_session,
|
|
17
18
|
remove_recovery_session,
|
|
18
19
|
saved_layout,
|
|
@@ -197,6 +198,7 @@ def get_router(deps: APIDependencies) -> APIRouter:
|
|
|
197
198
|
deps.settings.snapshot_enabled = update.enabled
|
|
198
199
|
if update.interval is not None:
|
|
199
200
|
deps.settings.snapshot_interval = max(5, min(300, update.interval))
|
|
201
|
+
notify_interval_changed()
|
|
200
202
|
return APISnapshotConfig(
|
|
201
203
|
enabled=deps.settings.snapshot_enabled,
|
|
202
204
|
interval=deps.settings.snapshot_interval,
|
|
@@ -20,6 +20,8 @@ import shlex
|
|
|
20
20
|
import weakref
|
|
21
21
|
from pathlib import PurePosixPath
|
|
22
22
|
|
|
23
|
+
import asyncssh
|
|
24
|
+
|
|
23
25
|
from ..validation import PathValidator, ValidationError
|
|
24
26
|
from .failure import REASON_INVALID, REASON_UNREACHABLE, Failure
|
|
25
27
|
|
|
@@ -60,6 +62,29 @@ async def remote_home(connection) -> str:
|
|
|
60
62
|
return home
|
|
61
63
|
|
|
62
64
|
|
|
65
|
+
# The server's real path of each live connection's home folder, for the home guard.
|
|
66
|
+
_real_homes: weakref.WeakKeyDictionary[object, str] = weakref.WeakKeyDictionary()
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
async def remote_real_home(connection, sftp_client) -> str | None:
|
|
70
|
+
"""The real path of the home folder (a link along it followed), asked once per
|
|
71
|
+
connection; None when the server cannot say."""
|
|
72
|
+
try:
|
|
73
|
+
return _real_homes[connection]
|
|
74
|
+
except (KeyError, TypeError):
|
|
75
|
+
pass
|
|
76
|
+
home = await remote_home(connection)
|
|
77
|
+
try:
|
|
78
|
+
real = str(await sftp_client.realpath(home))
|
|
79
|
+
except asyncssh.SFTPError:
|
|
80
|
+
return None
|
|
81
|
+
try:
|
|
82
|
+
_real_homes[connection] = real
|
|
83
|
+
except TypeError:
|
|
84
|
+
pass
|
|
85
|
+
return real
|
|
86
|
+
|
|
87
|
+
|
|
63
88
|
async def resolve_tilde(connection, path: str) -> str:
|
|
64
89
|
"""``path`` with a leading ``~`` or ``~/`` replaced by the remote home, normalised.
|
|
65
90
|
|