sshler 1.0.6__tar.gz → 1.2.0__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.0.6/sshler.egg-info → sshler-1.2.0}/PKG-INFO +18 -11
- {sshler-1.0.6 → sshler-1.2.0}/README.md +15 -9
- {sshler-1.0.6 → sshler-1.2.0}/pyproject.toml +8 -3
- sshler-1.2.0/sshler/_pty_child.py +52 -0
- sshler-1.2.0/sshler/access.py +148 -0
- sshler-1.2.0/sshler/api/archive.py +113 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/artifacts.py +34 -32
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/auth.py +18 -46
- sshler-1.2.0/sshler/api/batch.py +139 -0
- sshler-1.2.0/sshler/api/box_files.py +88 -0
- sshler-1.2.0/sshler/api/box_runner.py +455 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/boxes.py +192 -200
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/claude_sessions.py +9 -16
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/config.py +35 -10
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/dependencies.py +20 -70
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/diff.py +8 -7
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/excel.py +25 -45
- sshler-1.2.0/sshler/api/failure.py +327 -0
- sshler-1.2.0/sshler/api/file_contract.py +390 -0
- sshler-1.2.0/sshler/api/files.py +349 -0
- sshler-1.2.0/sshler/api/git.py +461 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/grep.py +129 -112
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/helpers.py +26 -161
- sshler-1.2.0/sshler/api/local_files.py +1385 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/models.py +59 -4
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/pdf.py +11 -11
- sshler-1.2.0/sshler/api/placement.py +313 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/progress.py +7 -9
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/rate_limiting.py +10 -17
- sshler-1.2.0/sshler/api/recovery.py +205 -0
- sshler-1.2.0/sshler/api/remote.py +191 -0
- sshler-1.2.0/sshler/api/remote_files.py +1493 -0
- sshler-1.2.0/sshler/api/run_failures.py +19 -0
- sshler-1.2.0/sshler/api/search.py +497 -0
- sshler-1.2.0/sshler/api/sessions.py +599 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/snippets.py +6 -5
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/stats_stream.py +20 -28
- sshler-1.2.0/sshler/api/transfer.py +265 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/tunnels.py +60 -23
- {sshler-1.0.6 → sshler-1.2.0}/sshler/auth.py +37 -9
- {sshler-1.0.6 → sshler-1.2.0}/sshler/claude_sessions.py +4 -11
- sshler-1.2.0/sshler/cli/__init__.py +3 -0
- sshler-1.2.0/sshler/cli/_main.py +324 -0
- sshler-1.2.0/sshler/cli/artifacts.py +271 -0
- sshler-1.2.0/sshler/cli/client.py +105 -0
- sshler-1.2.0/sshler/cli/password.py +153 -0
- sshler-1.2.0/sshler/cli/ping.py +100 -0
- sshler-1.2.0/sshler/cli/progress.py +269 -0
- sshler-1.2.0/sshler/cli/runtime_token.py +47 -0
- sshler-1.2.0/sshler/cli/server.py +539 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/config.py +33 -26
- sshler-1.2.0/sshler/config_dir.py +28 -0
- sshler-1.2.0/sshler/proc.py +71 -0
- sshler-1.2.0/sshler/ptyspawn.py +64 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/rate_limit.py +16 -8
- sshler-1.2.0/sshler/session.py +359 -0
- sshler-1.2.0/sshler/session_activity.py +151 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/settings.py +0 -4
- {sshler-1.0.6 → sshler-1.2.0}/sshler/snapshot.py +119 -81
- {sshler-1.0.6 → sshler-1.2.0}/sshler/spa.py +13 -10
- {sshler-1.0.6 → sshler-1.2.0}/sshler/ssh.py +61 -39
- {sshler-1.0.6 → sshler-1.2.0}/sshler/ssh_config.py +0 -1
- {sshler-1.0.6 → sshler-1.2.0}/sshler/ssh_pool.py +13 -12
- {sshler-1.0.6 → sshler-1.2.0}/sshler/state.py +316 -499
- sshler-1.2.0/sshler/static/dist/assets/Add-DVj_NAD5.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/Alert-BE4-y9sm.js +48 -0
- sshler-1.2.0/sshler/static/dist/assets/ArtifactsView-CT0tUDxB.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/ArtifactsView-afhw1qXI.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/BoxesView-C2c0xItr.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/BoxesView-DJsnqfNZ.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/ChevronRight-CB13mv_U.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/ClaudeSessionsView-Bp4SAvcs.js +137 -0
- sshler-1.2.0/sshler/static/dist/assets/ClaudeSessionsView-xGWjqzNK.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/CommanderView-CgoY_xnh.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/CommanderView-llDVAtC7.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/DiffView-BuaOaZHV.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/DiffView-DOf2gg2F.js +9 -0
- sshler-1.0.6/sshler/static/dist/assets/DiffViewer-Ds8qyy47.css → sshler-1.2.0/sshler/static/dist/assets/DiffViewer-BRAHvu6K.css +1 -1
- sshler-1.2.0/sshler/static/dist/assets/DiffViewer-CNSxZac5.js +47 -0
- sshler-1.2.0/sshler/static/dist/assets/DirectoryPickerModal-BGWrGHdB.js +95 -0
- sshler-1.2.0/sshler/static/dist/assets/DirectoryPickerModal-DRUwiBYA.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/FilesView-CoBUDqLi.js +772 -0
- sshler-1.2.0/sshler/static/dist/assets/FilesView-ce4qAYne.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/GitBadge-C1Rcp2p0.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/GitBadge-i4R5k8Yn.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/Grid-C0Ybw0fx.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/InputNumber-DgBR50ZW.js +13 -0
- sshler-1.2.0/sshler/static/dist/assets/LoginView-Ci67K6IQ.js +110 -0
- sshler-1.2.0/sshler/static/dist/assets/LoginView-ZzJUJyPs.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/MultiTerminalView-BY769dER.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/MultiTerminalView-CUIclpbQ.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/NotFoundView-DWZwQy5Q.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/NotFoundView-DwnT1Qmo.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/OverviewView-Aq1mzCKn.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/OverviewView-COlEwvfZ.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhArrowLeft.vue-Bx2QsCJM.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhArrowsClockwise.vue-DIpXw-wC.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhArrowsLeftRight.vue-8OgBoRAo.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhArrowsOut.vue-DQptlW4v.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhCheck.vue-CEm_oMEb.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhCircle.vue-vHfAO3d-.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhClockCounterClockwise.vue-8fEtbkeo.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhCopy.vue-BLGEnEkX.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhCopySimple.vue-DEwhUG3v.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhFloppyDisk.vue-BzUr1KeQ.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhFolderOpen.vue-BliJ8f_D.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhGitBranch.vue-Bcy7lLT8.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhList.vue-KPsdW08_.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhPencilSimple.vue-CZyPwIW4.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhPlay.vue-YnRHvIIa.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhPushPinSimple.vue-B8qMbkV_.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhQuestion.vue-BG4hB2wF.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/PhTrash.vue-UcyRJtzp.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/Popconfirm-xtNwxll_.js +16 -0
- sshler-1.2.0/sshler/static/dist/assets/ProgressView-CspfTIrc.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/ProgressView-DbwfQb8J.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/RadioGroup-BHDdhWjS.js +153 -0
- sshler-1.2.0/sshler/static/dist/assets/SettingsView-DBmEBFPo.js +74 -0
- sshler-1.2.0/sshler/static/dist/assets/SettingsView-xAJiWU9o.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/Spin-BNtZdCEU.js +43 -0
- sshler-1.2.0/sshler/static/dist/assets/Switch-a403-8cO.js +102 -0
- sshler-1.2.0/sshler/static/dist/assets/Tag-BXB6UJbk.js +210 -0
- sshler-1.2.0/sshler/static/dist/assets/TerminalView-B2y7aup8.js +2 -0
- sshler-1.2.0/sshler/static/dist/assets/TerminalView-Bxk8zgzW.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/Warning-DQEelS-y.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/_baseEach-DRxRab5x.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/_plugin-vue_export-helper-BUbEWP3a.js +400 -0
- sshler-1.2.0/sshler/static/dist/assets/abnfDiagram-S7VZAUFO-CajoiVBk.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/architecture-WOLXFQ4H-C6rElQ7Y.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/architectureDiagram-YGSQEFNW-DJ8U4x9Q.js +36 -0
- sshler-1.2.0/sshler/static/dist/assets/blockDiagram-APKKGZFW-R-0QQV5G.js +140 -0
- sshler-1.2.0/sshler/static/dist/assets/bootstrap-DS0hywTO.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/bpmnIcons-APHXDYXF-C0jbCElo.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/c4Diagram-KJ2TOQU5-BOOHY9Sl.js +38 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- sshler-1.0.6/sshler/static/dist/assets/chunk-FMBD7UC4-CQhutD92.js → sshler-1.2.0/sshler/static/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +2 -2
- sshler-1.2.0/sshler/static/dist/assets/chunk-6MUBBAK2-x93F1fks.js +2 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-AXFCVDMN-DXrEduZS.js +62 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-BG4553SI-BrzD6dvX.js +127 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-DQASFODM-iUJge2Ck.js +10 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-HFQBQIA3-CcB-Xg7i.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-KQLB2F66-CTUvMLQo.js +2 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-KS47KZWR-DZVR01tB.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-LEVMRMFU-z0TIEV2m.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-M57EVK23-B07NlzLN.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-NGNAAXSQ-DI_UYJZ4.js +136 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-OY52VR5R-bvnR98E7.js +88 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-QB3YPZ4I-Cxa0XDSa.js +213 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-R3KSYZAL-B37OlUeP.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-STOXU5M4-CsRrfwC2.js +72 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-TU62E6Q5-gZVIQ6qo.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-X4PVCEUW-B_9wa1VD.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-XXDRQBXY-i7MKP1NY.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/classDiagram-v2-L25IHNXF-bELcNd9W.js +217 -0
- sshler-1.2.0/sshler/static/dist/assets/composables-C01ou8AJ.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/cose-bilkent-JH36ORCC-C6J2IoHg.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/cynefin-EF2NZ3EQ-lPUjyvIZ.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/cynefinDiagram-L36ESFBY-D0Kcps6O.js +62 -0
- sshler-1.2.0/sshler/static/dist/assets/cytoscape.esm-nTrd5EVq.js +321 -0
- sshler-1.2.0/sshler/static/dist/assets/d3-scale-CElPUUud.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/d3-selection-COWvaQNI.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/dagre-SPEB5RXH-Cw4LZNeA.js +4 -0
- sshler-1.2.0/sshler/static/dist/assets/diagram-3B7GL73J-B4TUJqGG.js +200 -0
- sshler-1.2.0/sshler/static/dist/assets/diagram-DNEMPZML-CI880NPD.js +24 -0
- sshler-1.2.0/sshler/static/dist/assets/diagram-L3MUGCDN-DePXnf8A.js +41 -0
- sshler-1.2.0/sshler/static/dist/assets/diagram-LA4NIPWU-CBrmXqsJ.js +24 -0
- sshler-1.2.0/sshler/static/dist/assets/diagram-MHCOC4E2-Dx-PTz2i.js +3 -0
- sshler-1.2.0/sshler/static/dist/assets/diagram-XPFHEONP-BpZk17xz.js +30 -0
- sshler-1.2.0/sshler/static/dist/assets/dist-DdXDFcej.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/ebnfDiagram-UZSYDL2S-DkpFa5Oa.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/elk-XV6XMXQE-DtDufPR3.js +27 -0
- sshler-1.2.0/sshler/static/dist/assets/erDiagram-EYBAPDEH-Cw0iOwQn.js +99 -0
- sshler-1.2.0/sshler/static/dist/assets/eventmodeling-K75KTNOO-BEvQBdS3.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/favorites-uzRMGfT4.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/flatten-blBgGSOx.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/flowDiagram-MALGAFMO-BuwM9WdF.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/ganttDiagram-23REXITY-pKoZkaze.js +292 -0
- sshler-1.2.0/sshler/static/dist/assets/get-Jkx-poUl.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/get-slot-6kXJmSMP.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/gitGraph-VSP46ZUC-DPePhKd7.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/gitGraphDiagram-STJD7YCW-CANBud7q.js +106 -0
- sshler-1.2.0/sshler/static/dist/assets/graphlib-C-M0B7mD.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/happens-in-D4nrdV77.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/http-BTTrDO0D.js +7 -0
- sshler-1.2.0/sshler/static/dist/assets/index-CEzH1A4_.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/index-D1N-ERS4.js +1557 -0
- sshler-1.2.0/sshler/static/dist/assets/info-OHQRW6UA-FXs-3RzV.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/infoDiagram-KBXO4MBG-CNqN02Kw.js +2 -0
- sshler-1.2.0/sshler/static/dist/assets/isArrayLikeObject-DDw98r_w.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/ishikawaDiagram-M35NCXHK-C_wPTOhy.js +70 -0
- sshler-1.2.0/sshler/static/dist/assets/journeyDiagram-OPLOXDXO-BGGraFzl.js +139 -0
- sshler-1.2.0/sshler/static/dist/assets/kanban-definition-BZKZHSQY-CSVKn6fe.js +89 -0
- sshler-1.2.0/sshler/static/dist/assets/katex-MEuSR36T.js +257 -0
- sshler-1.2.0/sshler/static/dist/assets/map-qc1plvxH.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/merge-DVfkhdQt.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/mermaid-parser.core-gWF4TbpQ.js +7 -0
- sshler-1.2.0/sshler/static/dist/assets/mermaid.core-5T9-XRJ4.js +44 -0
- sshler-1.2.0/sshler/static/dist/assets/mindmap-definition-I2QAS2VK-Cdq6HOIa.js +98 -0
- sshler-1.2.0/sshler/static/dist/assets/packet-JDAUHWVQ-DWI00mii.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/pageLoad-86LfyLdt.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/pegDiagram-FD4XPPHP-C33S8n8c.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/pie-XZMESJXO-mEep_piW.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/pieDiagram-J4AKIIQI-Cie-N6xJ.js +39 -0
- sshler-1.2.0/sshler/static/dist/assets/preload-helper-BSZHtiEo.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/quadrantDiagram-XTYBLID2-DMHgK2pW.js +7 -0
- sshler-1.2.0/sshler/static/dist/assets/radar-ABXABTNO-Co9rsjbw.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/railroad-I3PHUGI6-_QD7qyEP.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/railroad-abnf-LNEFI6M7-Dya2h1Ax.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/railroad-ebnf-DWYD2UWJ-xXJLDf9V.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/railroad-peg-JR7BVNR7-CCnFE6SM.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/railroadDiagram-MRQ6NCDL-DqQNmYV4.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/requirementDiagram-Y7LWUY3S-CI35i5Kp.js +84 -0
- sshler-1.2.0/sshler/static/dist/assets/rolldown-runtime-COiEfhsA.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/rough.esm-Dy-Kn_BL.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/runtime-core.esm-bundler-BrzYnu9e.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/sankeyDiagram-WGJFYUXA-CJSZp4X1.js +40 -0
- sshler-1.2.0/sshler/static/dist/assets/sequenceDiagram-5NDRBG5M-SOFKzwk3.js +169 -0
- sshler-1.2.0/sshler/static/dist/assets/sessionName-BTmv8h0d.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/stateDiagram-v2-FJ4FJNEA-C-2HjUxD.js +291 -0
- sshler-1.2.0/sshler/static/dist/assets/swimlanes-UMQ2AFYF-Du7IPm4w.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/swimlanesDiagram-OMPLPG4O-BJ0QMtS_.js +8 -0
- sshler-1.2.0/sshler/static/dist/assets/timeline-definition-SEUHKTQE-Cp29Y94P.js +120 -0
- sshler-1.2.0/sshler/static/dist/assets/treeView-D4JQ5SDB-v1jaVIUB.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/treemap-SAJKECNS-DNI-q7O8.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/use-merged-state-CuoatQ1O.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/useFolderSearch-CD8GWYxX.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/useReplacePrompt-PM0VIxIJ.js +376 -0
- sshler-1.2.0/sshler/static/dist/assets/useReplacePrompt-g2-2SknS.css +1 -0
- sshler-1.2.0/sshler/static/dist/assets/usecaseDiagram-AFA6YXN4-f3OI7LFO.js +328 -0
- sshler-1.2.0/sshler/static/dist/assets/vennDiagram-NNMJR3RB-DMpf54UQ.js +34 -0
- sshler-1.2.0/sshler/static/dist/assets/wardley-7MLQ67FV-B8BqdR-s.js +1 -0
- sshler-1.2.0/sshler/static/dist/assets/wardleyDiagram-S7YFUSEH-xw3hJv7x.js +78 -0
- sshler-1.2.0/sshler/static/dist/assets/xychartDiagram-GGNKY7IX-CJzvdRtv.js +7 -0
- sshler-1.2.0/sshler/static/dist/index.html +39 -0
- sshler-1.2.0/sshler/terminal/__init__.py +21 -0
- sshler-1.2.0/sshler/terminal/conpty.py +96 -0
- sshler-1.2.0/sshler/terminal/local.py +165 -0
- sshler-1.2.0/sshler/terminal/pump.py +230 -0
- sshler-1.2.0/sshler/terminal/remote.py +118 -0
- sshler-1.2.0/sshler/terminal/transport.py +123 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/tmux.py +214 -105
- {sshler-1.0.6 → sshler-1.2.0}/sshler/validation.py +1 -4
- sshler-1.2.0/sshler/webapp.py +1642 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/win_terminal_registry.py +4 -12
- {sshler-1.0.6 → sshler-1.2.0/sshler.egg-info}/PKG-INFO +18 -11
- sshler-1.2.0/sshler.egg-info/SOURCES.txt +357 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler.egg-info/requires.txt +2 -1
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_api_artifacts.py +1 -1
- sshler-1.2.0/tests/test_api_body_models.py +158 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_api_progress.py +1 -3
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_api_v1.py +0 -21
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_archive.py +277 -0
- sshler-1.2.0/tests/test_archive_existing_names.py +773 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_batch_ops.py +135 -0
- sshler-1.2.0/tests/test_box_files_contract.py +2188 -0
- sshler-1.2.0/tests/test_box_program_failure_reasons.py +896 -0
- sshler-1.2.0/tests/test_box_runner_contract.py +1685 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_claude_sessions.py +25 -13
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_cli_artifacts.py +6 -6
- sshler-1.2.0/tests/test_cli_imports.py +55 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_cli_progress.py +25 -31
- sshler-1.2.0/tests/test_cli_stop.py +205 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_client_address.py +18 -17
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_command_injection.py +16 -5
- sshler-1.2.0/tests/test_config.py +205 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_dev_workflow.py +52 -28
- sshler-1.2.0/tests/test_existing_name_rule.py +2346 -0
- sshler-1.2.0/tests/test_failure_answers.py +343 -0
- sshler-1.2.0/tests/test_failure_reasons.py +433 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_fake_tmux.py +3 -5
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_files_folder_zip_remote.py +166 -78
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_files_upload_local.py +87 -7
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_force_kill.py +200 -46
- sshler-1.2.0/tests/test_git_refs.py +22 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_grep.py +99 -13
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_httpx_ws.py +3 -2
- sshler-1.2.0/tests/test_keep_both.py +568 -0
- sshler-1.2.0/tests/test_local_folder_copy.py +170 -0
- sshler-1.2.0/tests/test_local_git_runs.py +92 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_origin_csrf.py +6 -6
- sshler-1.2.0/tests/test_page_failure_reasons.py +34 -0
- sshler-1.2.0/tests/test_ping_websocket.py +44 -0
- sshler-1.2.0/tests/test_plain_shell.py +789 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_platform_support.py +1 -4
- sshler-1.2.0/tests/test_progress_websocket.py +295 -0
- sshler-1.2.0/tests/test_ptyspawn.py +244 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_rate_limit_middleware.py +12 -11
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_recovery.py +23 -7
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_remote_git_info_quoting.py +27 -21
- sshler-1.2.0/tests/test_remote_home_callers.py +424 -0
- sshler-1.2.0/tests/test_remote_owners.py +460 -0
- sshler-1.2.0/tests/test_remote_program_checks.py +352 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_remote_tilde_routes.py +147 -32
- sshler-1.2.0/tests/test_require_token.py +60 -0
- sshler-1.2.0/tests/test_route_failure_reasons.py +1130 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_search.py +293 -39
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_serve_token_cache.py +8 -8
- sshler-1.2.0/tests/test_session_active_flag.py +1195 -0
- sshler-1.2.0/tests/test_session_auth.py +1063 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_snapshot_loop_settings.py +1 -3
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_snippets.py +1 -1
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_ssh.py +34 -8
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_ssh_connection_leaks.py +432 -52
- sshler-1.2.0/tests/test_ssh_loopback.py +351 -0
- sshler-1.2.0/tests/test_state_store.py +241 -0
- sshler-1.2.0/tests/test_terminal_closes.py +264 -0
- sshler-1.2.0/tests/test_terminal_endings.py +668 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_terminal_teardown.py +7 -16
- sshler-1.2.0/tests/test_terminal_transport_contract.py +204 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_tmux_subprocess.py +46 -6
- sshler-1.2.0/tests/test_tmux_window_list.py +134 -0
- sshler-1.2.0/tests/test_tunnels.py +145 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_win_terminal_registry.py +1 -1
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_windows_terminal.py +2 -0
- sshler-1.2.0/tests/test_ws_access.py +687 -0
- sshler-1.0.6/sshler/api/archive.py +0 -270
- sshler-1.0.6/sshler/api/batch.py +0 -305
- sshler-1.0.6/sshler/api/files.py +0 -1310
- sshler-1.0.6/sshler/api/git.py +0 -516
- sshler-1.0.6/sshler/api/recovery.py +0 -163
- sshler-1.0.6/sshler/api/search.py +0 -401
- sshler-1.0.6/sshler/api/sessions.py +0 -533
- sshler-1.0.6/sshler/api/transfer.py +0 -319
- sshler-1.0.6/sshler/cli.py +0 -1700
- sshler-1.0.6/sshler/session.py +0 -215
- sshler-1.0.6/sshler/static/dist/assets/Add-DGoUmgap.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/Alert-0KqwC3YO.js +0 -48
- sshler-1.0.6/sshler/static/dist/assets/ArtifactsView-Br1b7kfM.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/ArtifactsView-DMnfzE9w.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/BoxesView-Cw5NiFP6.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/BoxesView-DjjiCMdg.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/ClaudeSessionsView-BcS0-CLq.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/ClaudeSessionsView-CKmx68D_.js +0 -137
- sshler-1.0.6/sshler/static/dist/assets/CommanderView-BpsWdFho.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/CommanderView-Bvzg3bq2.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/DiffView-9QDQycKp.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/DiffView-CG63VPJD.js +0 -10
- sshler-1.0.6/sshler/static/dist/assets/DiffViewer-CXULVvdb.js +0 -31
- sshler-1.0.6/sshler/static/dist/assets/DirectoryPickerModal-B1GuKICB.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/DirectoryPickerModal-BLFEzn26.js +0 -79
- sshler-1.0.6/sshler/static/dist/assets/FileEditorModal-Bh_rOoK8.js +0 -352
- sshler-1.0.6/sshler/static/dist/assets/FileEditorModal-D7TNr5fU.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/FilesView-B9vdgK9X.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/FilesView-CsXrHG8e.js +0 -751
- sshler-1.0.6/sshler/static/dist/assets/GitBadge-BfbyoB28.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/GitBadge-sLcMA5A6.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/Grid-C2irvtWE.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/InputNumber-DqRo5amt.js +0 -13
- sshler-1.0.6/sshler/static/dist/assets/LoginView-BLrnakeI.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/LoginView-f6RcdVpb.js +0 -110
- sshler-1.0.6/sshler/static/dist/assets/MultiTerminalView-Co_RmbGo.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/MultiTerminalView-DBkuEwlF.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/NotFoundView-DYaoqkDb.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/NotFoundView-w7Cl7Ym7.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/OverviewView-C-tLZP2F.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/OverviewView-CgWwBOTj.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhArrowsClockwise.vue-BLzKHOQI.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhArrowsLeftRight.vue-BMQwztWr.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhArrowsOut.vue-CfXBtK9v.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhCheck.vue-D10oKwxK.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhCircle.vue-CDDAxWJ4.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhClockCounterClockwise.vue-ozOziCVh.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhCopy.vue-CqBWFqLj.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhFloppyDisk.vue-DVHuBUZ8.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhFolderOpen.vue-KUDm7_MU.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhGitBranch.vue-CM7CswoU.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhList.vue-BONFOegp.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhPencilSimple.vue-C8Ra8brU.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhPlay.vue-DI0IIVIo.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhPushPinSimple.vue-dmWHfMI6.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhQuestion.vue-B9Lhkd5u.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/PhTrash.vue-CT8G9xgK.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/Popconfirm-BmiKMWil.js +0 -16
- sshler-1.0.6/sshler/static/dist/assets/ProgressView-D7O3-bB2.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/ProgressView-DNrZCAJg.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/RadioGroup-F433hdNw.js +0 -153
- sshler-1.0.6/sshler/static/dist/assets/SettingsView-DGgZTd12.js +0 -74
- sshler-1.0.6/sshler/static/dist/assets/SettingsView-yHE_fgSm.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/Spin-DfJo_6oJ.js +0 -43
- sshler-1.0.6/sshler/static/dist/assets/Switch-D52CI86b.js +0 -102
- sshler-1.0.6/sshler/static/dist/assets/TerminalView-BNzxpxUp.js +0 -2
- sshler-1.0.6/sshler/static/dist/assets/TerminalView-BqAcovL_.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/arc-DoC24Idu.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/architectureDiagram-3BPJPVTR-CxqAp6ok.js +0 -36
- sshler-1.0.6/sshler/static/dist/assets/blockDiagram-GPEHLZMM-BPsYLd3R.js +0 -132
- sshler-1.0.6/sshler/static/dist/assets/c4Diagram-AAUBKEIU-CaadjczC.js +0 -10
- sshler-1.0.6/sshler/static/dist/assets/channel-Ddemxpr4.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/chunk-2J33WTMH-AqzQ1jMU.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/chunk-4BX2VUAB-rgggKmJc.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/chunk-55IACEB6-C4URB_Xu.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/chunk-727SXJPM-NfBIzwJo.js +0 -206
- sshler-1.0.6/sshler/static/dist/assets/chunk-AQP2D5EJ-BdhL-cEx.js +0 -231
- sshler-1.0.6/sshler/static/dist/assets/chunk-ND2GUHAM-BNWn_lJ6.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/chunk-QZHKN3VN-CkVgZO1f.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/classDiagram-4FO5ZUOK-BvViZFGy.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/classDiagram-v2-Q7XG4LA2-BvViZFGy.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/composables-CD_j1SQC.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/cose-bilkent-S5V4N54A-cjfguF9m.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/cytoscape.esm-ChuFH5G7.js +0 -321
- sshler-1.0.6/sshler/static/dist/assets/dagre-BM42HDAG-B1uYyW53.js +0 -4
- sshler-1.0.6/sshler/static/dist/assets/defaultLocale-DX6XiGOO.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/diagram-2AECGRRQ-CPLREfvT.js +0 -43
- sshler-1.0.6/sshler/static/dist/assets/diagram-5GNKFQAL-D5Rnk309.js +0 -10
- sshler-1.0.6/sshler/static/dist/assets/diagram-KO2AKTUF-Ca9qhE-b.js +0 -3
- sshler-1.0.6/sshler/static/dist/assets/diagram-LMA3HP47-DioIhere.js +0 -24
- sshler-1.0.6/sshler/static/dist/assets/diagram-OG6HWLK6-hQ4p88dE.js +0 -24
- sshler-1.0.6/sshler/static/dist/assets/erDiagram-TEJ5UH35-C7mAHSNg.js +0 -85
- sshler-1.0.6/sshler/static/dist/assets/favorites-PFBt8R3Y.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/flowDiagram-I6XJVG4X-278Uq6BX.js +0 -162
- sshler-1.0.6/sshler/static/dist/assets/ganttDiagram-6RSMTGT7-Ia5pxiF_.js +0 -292
- sshler-1.0.6/sshler/static/dist/assets/gitGraphDiagram-PVQCEYII-BSDQcuPz.js +0 -106
- sshler-1.0.6/sshler/static/dist/assets/graph-CoRzpK5X.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/index-C9aYRSRY.js +0 -2136
- sshler-1.0.6/sshler/static/dist/assets/index-DgzHEFf2.css +0 -1
- sshler-1.0.6/sshler/static/dist/assets/infoDiagram-5YYISTIA-CuQ4nHjX.js +0 -2
- sshler-1.0.6/sshler/static/dist/assets/init-Gi6I4Gst.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/ishikawaDiagram-YF4QCWOH-Y4_8uIsJ.js +0 -70
- sshler-1.0.6/sshler/static/dist/assets/journeyDiagram-JHISSGLW-d6TRjbDM.js +0 -139
- sshler-1.0.6/sshler/static/dist/assets/kanban-definition-UN3LZRKU-CsU9Ka-o.js +0 -89
- sshler-1.0.6/sshler/static/dist/assets/katex-BbnesVCl.js +0 -257
- sshler-1.0.6/sshler/static/dist/assets/layout-C-0fEkyA.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/linear-DnGsrReS.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/mermaid.core-CP-W_xk4.js +0 -301
- sshler-1.0.6/sshler/static/dist/assets/mindmap-definition-RKZ34NQL-C-kVN-13.js +0 -96
- sshler-1.0.6/sshler/static/dist/assets/ordinal-Cboi1Yqb.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/pieDiagram-4H26LBE5-DWu3sP_u.js +0 -30
- sshler-1.0.6/sshler/static/dist/assets/quadrantDiagram-W4KKPZXB-CA5p5ZZG.js +0 -7
- sshler-1.0.6/sshler/static/dist/assets/requirementDiagram-4Y6WPE33-CRknzv2z.js +0 -84
- sshler-1.0.6/sshler/static/dist/assets/sankeyDiagram-5OEKKPKP-BrAEn3K4.js +0 -40
- sshler-1.0.6/sshler/static/dist/assets/sequenceDiagram-3UESZ5HK-CxCetFEa.js +0 -162
- sshler-1.0.6/sshler/static/dist/assets/sessionName-CGRTFJ4P.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/stateDiagram-AJRCARHV-DEJmR75A.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/stateDiagram-v2-BHNVJYJU-C_YqTgOQ.js +0 -1
- sshler-1.0.6/sshler/static/dist/assets/timeline-definition-PNZ67QCA-DvBRNETl.js +0 -120
- sshler-1.0.6/sshler/static/dist/assets/vennDiagram-CIIHVFJN-CVEff8DW.js +0 -34
- sshler-1.0.6/sshler/static/dist/assets/wardley-L42UT6IY-BouMTXtd.js +0 -161
- sshler-1.0.6/sshler/static/dist/assets/wardleyDiagram-YWT4CUSO-DllsKsFW.js +0 -78
- sshler-1.0.6/sshler/static/dist/assets/xychartDiagram-2RQKCTM6-1aWX1pcd.js +0 -7
- sshler-1.0.6/sshler/static/dist/index.html +0 -22
- sshler-1.0.6/sshler/webapp.py +0 -1936
- sshler-1.0.6/sshler.egg-info/SOURCES.txt +0 -238
- sshler-1.0.6/tests/test_config.py +0 -102
- sshler-1.0.6/tests/test_progress_websocket.py +0 -154
- sshler-1.0.6/tests/test_session_auth.py +0 -416
- sshler-1.0.6/tests/test_tunnels.py +0 -111
- {sshler-1.0.6 → sshler-1.2.0}/LICENSE +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/MANIFEST.in +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/scripts/check_frontend_dist.py +1 -1
- {sshler-1.0.6 → sshler-1.2.0}/setup.cfg +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/__init__.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/__init__.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/ping.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/api/terminal.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/artifacts.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/config_cache.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/pdf.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/scripts/install-sshler-task.ps1 +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/scripts/remove-sshler-task.ps1 +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/scripts/run-sshler.ps1 +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/static/dist/favicon.png +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/static/dist/fonts/MonaspaceNeon-Bold.woff2 +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/static/dist/fonts/MonaspaceNeon-Regular.woff2 +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/static/dist/fonts/MonaspaceNeon-Variable.woff2 +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/static/dist/icon-192.png +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/static/dist/icon-512-maskable.png +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/static/dist/icon-512.png +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/static/dist/logo.png +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/static/dist/manifest.webmanifest +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler/winpty_proc.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler.egg-info/dependency_links.txt +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler.egg-info/entry_points.txt +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/sshler.egg-info/top_level.txt +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_api_diff.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_artifacts.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_basic.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_database_indexes.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_handshake_status.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_path_validation.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_rate_limit.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_session_name_parity.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_ssh_pool_age.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_stats_stream.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_websocket.py +0 -0
- {sshler-1.0.6 → sshler-1.2.0}/tests/test_ws_term_auth.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sshler
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: A local FastAPI-powered SSH multiplexer for tmux-in-browser — from your laptop only.
|
|
5
5
|
Author-email: Gabu <gabu@gabu.quest>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -30,7 +30,7 @@ Requires-Dist: asyncssh>=2.14.0
|
|
|
30
30
|
Requires-Dist: platformdirs>=4.2
|
|
31
31
|
Requires-Dist: pydantic>=2.7
|
|
32
32
|
Requires-Dist: python-multipart>=0.0.9
|
|
33
|
-
Requires-Dist: sqler>=1.
|
|
33
|
+
Requires-Dist: sqler[pydantic]>=1.2026.11.3
|
|
34
34
|
Requires-Dist: pydantic-settings>=2.12.0
|
|
35
35
|
Requires-Dist: python-dotenv>=1.0.0
|
|
36
36
|
Requires-Dist: psutil>=5.9.0
|
|
@@ -40,6 +40,7 @@ Requires-Dist: pywinpty>=3.0.3; sys_platform == "win32"
|
|
|
40
40
|
Provides-Extra: dev
|
|
41
41
|
Requires-Dist: anyio>=4.4; extra == "dev"
|
|
42
42
|
Requires-Dist: httpx>=0.27.0; extra == "dev"
|
|
43
|
+
Requires-Dist: httpx2>=2.0.0; extra == "dev"
|
|
43
44
|
Requires-Dist: pytest>=8.2; extra == "dev"
|
|
44
45
|
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
|
|
45
46
|
Requires-Dist: playwright>=1.48.0; extra == "dev"
|
|
@@ -276,7 +277,7 @@ For hot-reload development:
|
|
|
276
277
|
# Terminal 1: Backend
|
|
277
278
|
sshler serve --no-browser
|
|
278
279
|
|
|
279
|
-
# Terminal 2: Frontend dev server
|
|
280
|
+
# Terminal 2: Frontend dev server
|
|
280
281
|
cd frontend && pnpm dev -- --host --base /app/
|
|
281
282
|
# Visit http://localhost:5173/app/
|
|
282
283
|
```
|
|
@@ -405,11 +406,15 @@ export SSHLER_PASSWORD_HASH='$argon2id$...' # Use sshler hash-password to gener
|
|
|
405
406
|
sshler serve --host 0.0.0.0 --auth myuser:mypassword
|
|
406
407
|
```
|
|
407
408
|
|
|
409
|
+
**Signing in:** with a password set, the page loads and shows its sign-in form; a session lasts 8 hours (`SSHLER_SESSION_TTL_SECONDS`), and **Settings → Sign out** ends it. Five failed sign-ins lock the address out for five minutes, and the form says how long to wait. A script may instead send an `Authorization: Basic` header with each request (plus the `X-SSHLER-TOKEN`); that header passes the one request and makes no session. The browser's own password prompt is never shown.
|
|
410
|
+
|
|
411
|
+
**Upgrading:** a browser that signed in through the old password prompt keeps sending that password until it is restarted. Until then it stays signed in, and Sign out takes effect only after the restart.
|
|
412
|
+
|
|
408
413
|
**Additional security notes:**
|
|
409
414
|
- **Environment variables**: Never commit your `.env` file to version control. Use `.env.example` as a template. The `.env` file may contain sensitive credentials like password hashes.
|
|
410
415
|
- File uploads are capped at 50 MB (tunable via `--max-upload-mb`). Uploaded content is never executed server-side.
|
|
411
416
|
- SSH connections still honour your system `known_hosts`. Only set `known_hosts: ignore` if you fully understand the risk.
|
|
412
|
-
- If you expose sshler beyond localhost, opt-in via `--allow-origin` and add `--auth user:pass` (
|
|
417
|
+
- If you expose sshler beyond localhost, opt-in via `--allow-origin` and add `--auth user:pass` (a password). Use it only on networks you trust and put TLS in front (nginx, Caddy, etc.).
|
|
413
418
|
- There is no telemetry, analytics, or call-home behaviour.
|
|
414
419
|
|
|
415
420
|
### CLI options
|
|
@@ -428,7 +433,7 @@ sshler serve \
|
|
|
428
433
|
- `--host` (alias `--bind`) sets the bind address (default: `127.0.0.1` for localhost-only). Use `0.0.0.0` to expose on all interfaces, but **only on trusted networks with `--auth` and TLS**.
|
|
429
434
|
- `--port` sets the port number (default: `8822`).
|
|
430
435
|
- `--allow-origin` can be repeated to expand CORS; combine it with `--auth` if you expose the UI beyond localhost.
|
|
431
|
-
- `--auth user:pass`
|
|
436
|
+
- `--auth user:pass` sets a password: the page shows its sign-in form, and scripts may send a Basic header (recommended if binding to `0.0.0.0`).
|
|
432
437
|
- `--max-upload-mb` sets the upload size limit (default: 50 MB).
|
|
433
438
|
- `--no-ssh-alias` disables the `ssh -G` fallback when DNS fails.
|
|
434
439
|
- `--token` lets you supply your own `X-SSHLER-TOKEN` (otherwise a secure random value is generated).
|
|
@@ -682,7 +687,6 @@ When deploying sshler in production:
|
|
|
682
687
|
- ✅ **Set `SSHLER_COOKIE_SECURE=true`** in your `.env` file
|
|
683
688
|
- ✅ **Set `SSHLER_PUBLIC_URL`** to your actual HTTPS URL
|
|
684
689
|
- ✅ **Use strong passwords** (generate with `sshler hash-password`)
|
|
685
|
-
- ✅ **Keep `SSHLER_REQUIRE_AUTH=true`** (never disable auth in production)
|
|
686
690
|
- ✅ **Bind to localhost** (`SSHLER_HOST=127.0.0.1`) when behind a reverse proxy
|
|
687
691
|
- ✅ **Enable firewall rules** to restrict access to trusted networks
|
|
688
692
|
- ✅ **Keep sshler updated** to receive security patches
|
|
@@ -693,7 +697,7 @@ sshler security works in layers:
|
|
|
693
697
|
|
|
694
698
|
1. **Transport Security (HTTPS)** - Encrypts all traffic, protects session cookies
|
|
695
699
|
2. **Application Auth (Session Cookies)** - Verifies user identity with httpOnly cookies
|
|
696
|
-
3. **CSRF Protection** - Origin header validation on state-changing requests
|
|
700
|
+
3. **CSRF Protection** - Origin header validation on state-changing requests and on every WebSocket upgrade
|
|
697
701
|
4. **Network Isolation** (Optional) - Tailscale, VPN, or firewall rules
|
|
698
702
|
|
|
699
703
|
**Recommendation:** Use HTTPS + session auth for most deployments. Add network isolation (Tailscale/VPN) for extra security when accessing over the internet.
|
|
@@ -1126,11 +1130,15 @@ export SSHLER_PASSWORD_HASH='$argon2id$...' # sshler hash-password で生成
|
|
|
1126
1130
|
sshler serve --host 0.0.0.0 --auth myuser:mypassword
|
|
1127
1131
|
```
|
|
1128
1132
|
|
|
1133
|
+
**サインイン:** パスワードを設定すると、ページが開いてサインインフォームを表示します。セッションは 8 時間(`SSHLER_SESSION_TTL_SECONDS`)有効で、**設定 → サインアウト** で終了します。サインインに 5 回失敗するとそのアドレスは 5 分間ロックされ、フォームが待ち時間を表示します。スクリプトは代わりに各リクエストで `Authorization: Basic` ヘッダー(と `X-SSHLER-TOKEN`)を送れます。このヘッダーはそのリクエストだけを通し、セッションは作りません。ブラウザ自身のパスワード入力ダイアログは表示されません。
|
|
1134
|
+
|
|
1135
|
+
**アップグレード時の注意:** 以前のパスワード入力ダイアログでサインインしたブラウザーは、再起動するまでそのパスワードを送り続けます。その間はサインインしたままになり、サインアウトはブラウザーの再起動後に有効になります。
|
|
1136
|
+
|
|
1129
1137
|
**追加のセキュリティに関する注意:**
|
|
1130
1138
|
- **環境変数**: `.env` ファイルをバージョン管理にコミットしないでください。`.env.example` をテンプレートとして使用してください。`.env` ファイルにはパスワードハッシュなどの機密情報が含まれる可能性があります。
|
|
1131
1139
|
- ファイルアップロードは 50 MB まで(`--max-upload-mb` で調整可能)。アップロードされたコンテンツはサーバー側で実行されません。
|
|
1132
1140
|
- SSH 接続はシステムの `known_hosts` を尊重します。リスクを完全に理解している場合のみ `known_hosts: ignore` を設定してください。
|
|
1133
|
-
- ローカルホスト以外に公開する場合は、`--allow-origin` でオプトインし、`--auth user:pass
|
|
1141
|
+
- ローカルホスト以外に公開する場合は、`--allow-origin` でオプトインし、`--auth user:pass`(パスワード)を追加してください。信頼できるネットワークでのみ使用し、TLS(nginx、Caddy など)を前段に配置してください。
|
|
1134
1142
|
- テレメトリ、アナリティクス、コールホーム機能は一切ありません。
|
|
1135
1143
|
|
|
1136
1144
|
### CLI オプション
|
|
@@ -1149,7 +1157,7 @@ sshler serve \
|
|
|
1149
1157
|
- `--host`(別名 `--bind`): バインドアドレスを設定(デフォルト: `127.0.0.1` でローカルホストのみ)。すべてのインターフェースに公開するには `0.0.0.0` を使用しますが、**信頼できるネットワーク上でのみ `--auth` と TLS を併用してください**。
|
|
1150
1158
|
- `--port`: ポート番号を設定(デフォルト: `8822`)。
|
|
1151
1159
|
- `--allow-origin`: CORS を拡張するために繰り返し使用可能。ローカルホスト以外に UI を公開する場合は `--auth` と組み合わせてください。
|
|
1152
|
-
- `--auth user:pass`:
|
|
1160
|
+
- `--auth user:pass`: パスワードを設定。ページはサインインフォームを表示し、スクリプトは Basic ヘッダーを送れます(`0.0.0.0` にバインドする場合は推奨)。
|
|
1153
1161
|
- `--max-upload-mb`: アップロードサイズ制限を設定(デフォルト: 50 MB)。
|
|
1154
1162
|
- `--no-ssh-alias`: DNS 失敗時の `ssh -G` フォールバックを無効化。
|
|
1155
1163
|
- `--token`: 独自の `X-SSHLER-TOKEN` を指定(指定しない場合は安全なランダム値が生成されます)。
|
|
@@ -1384,7 +1392,6 @@ sshler を本番環境にデプロイする際:
|
|
|
1384
1392
|
- **`SSHLER_COOKIE_SECURE=true` を設定** - `.env` ファイルで
|
|
1385
1393
|
- **`SSHLER_PUBLIC_URL` を設定** - 実際の HTTPS URL に
|
|
1386
1394
|
- **強力なパスワードを使用** - `sshler hash-password` で生成
|
|
1387
|
-
- **`SSHLER_REQUIRE_AUTH=true` を維持** - 本番環境では認証を無効化しない
|
|
1388
1395
|
- **localhost にバインド** - リバースプロキシの背後では `SSHLER_HOST=127.0.0.1`
|
|
1389
1396
|
- **ファイアウォールルールを有効化** - 信頼できるネットワークにアクセスを制限
|
|
1390
1397
|
- **sshler を最新に保つ** - セキュリティパッチを受け取るため
|
|
@@ -1395,7 +1402,7 @@ sshler のセキュリティは多層構造です:
|
|
|
1395
1402
|
|
|
1396
1403
|
1. **トランスポートセキュリティ(HTTPS)** - すべてのトラフィックを暗号化し、セッション Cookie を保護
|
|
1397
1404
|
2. **アプリケーション認証(セッション Cookie)** - httpOnly Cookie でユーザー ID を検証
|
|
1398
|
-
3. **CSRF 保護** -
|
|
1405
|
+
3. **CSRF 保護** - 状態変更リクエストと全 WebSocket 接続に対する Origin ヘッダー検証
|
|
1399
1406
|
4. **ネットワーク分離**(オプション) - Tailscale、VPN、またはファイアウォールルール
|
|
1400
1407
|
|
|
1401
1408
|
**推奨:** ほとんどのデプロイでは HTTPS + セッション認証を使用してください。インターネット経由でアクセスする場合は、ネットワーク分離(Tailscale/VPN)を追加してセキュリティを強化してください。
|
|
@@ -224,7 +224,7 @@ For hot-reload development:
|
|
|
224
224
|
# Terminal 1: Backend
|
|
225
225
|
sshler serve --no-browser
|
|
226
226
|
|
|
227
|
-
# Terminal 2: Frontend dev server
|
|
227
|
+
# Terminal 2: Frontend dev server
|
|
228
228
|
cd frontend && pnpm dev -- --host --base /app/
|
|
229
229
|
# Visit http://localhost:5173/app/
|
|
230
230
|
```
|
|
@@ -353,11 +353,15 @@ export SSHLER_PASSWORD_HASH='$argon2id$...' # Use sshler hash-password to gener
|
|
|
353
353
|
sshler serve --host 0.0.0.0 --auth myuser:mypassword
|
|
354
354
|
```
|
|
355
355
|
|
|
356
|
+
**Signing in:** with a password set, the page loads and shows its sign-in form; a session lasts 8 hours (`SSHLER_SESSION_TTL_SECONDS`), and **Settings → Sign out** ends it. Five failed sign-ins lock the address out for five minutes, and the form says how long to wait. A script may instead send an `Authorization: Basic` header with each request (plus the `X-SSHLER-TOKEN`); that header passes the one request and makes no session. The browser's own password prompt is never shown.
|
|
357
|
+
|
|
358
|
+
**Upgrading:** a browser that signed in through the old password prompt keeps sending that password until it is restarted. Until then it stays signed in, and Sign out takes effect only after the restart.
|
|
359
|
+
|
|
356
360
|
**Additional security notes:**
|
|
357
361
|
- **Environment variables**: Never commit your `.env` file to version control. Use `.env.example` as a template. The `.env` file may contain sensitive credentials like password hashes.
|
|
358
362
|
- File uploads are capped at 50 MB (tunable via `--max-upload-mb`). Uploaded content is never executed server-side.
|
|
359
363
|
- SSH connections still honour your system `known_hosts`. Only set `known_hosts: ignore` if you fully understand the risk.
|
|
360
|
-
- If you expose sshler beyond localhost, opt-in via `--allow-origin` and add `--auth user:pass` (
|
|
364
|
+
- If you expose sshler beyond localhost, opt-in via `--allow-origin` and add `--auth user:pass` (a password). Use it only on networks you trust and put TLS in front (nginx, Caddy, etc.).
|
|
361
365
|
- There is no telemetry, analytics, or call-home behaviour.
|
|
362
366
|
|
|
363
367
|
### CLI options
|
|
@@ -376,7 +380,7 @@ sshler serve \
|
|
|
376
380
|
- `--host` (alias `--bind`) sets the bind address (default: `127.0.0.1` for localhost-only). Use `0.0.0.0` to expose on all interfaces, but **only on trusted networks with `--auth` and TLS**.
|
|
377
381
|
- `--port` sets the port number (default: `8822`).
|
|
378
382
|
- `--allow-origin` can be repeated to expand CORS; combine it with `--auth` if you expose the UI beyond localhost.
|
|
379
|
-
- `--auth user:pass`
|
|
383
|
+
- `--auth user:pass` sets a password: the page shows its sign-in form, and scripts may send a Basic header (recommended if binding to `0.0.0.0`).
|
|
380
384
|
- `--max-upload-mb` sets the upload size limit (default: 50 MB).
|
|
381
385
|
- `--no-ssh-alias` disables the `ssh -G` fallback when DNS fails.
|
|
382
386
|
- `--token` lets you supply your own `X-SSHLER-TOKEN` (otherwise a secure random value is generated).
|
|
@@ -630,7 +634,6 @@ When deploying sshler in production:
|
|
|
630
634
|
- ✅ **Set `SSHLER_COOKIE_SECURE=true`** in your `.env` file
|
|
631
635
|
- ✅ **Set `SSHLER_PUBLIC_URL`** to your actual HTTPS URL
|
|
632
636
|
- ✅ **Use strong passwords** (generate with `sshler hash-password`)
|
|
633
|
-
- ✅ **Keep `SSHLER_REQUIRE_AUTH=true`** (never disable auth in production)
|
|
634
637
|
- ✅ **Bind to localhost** (`SSHLER_HOST=127.0.0.1`) when behind a reverse proxy
|
|
635
638
|
- ✅ **Enable firewall rules** to restrict access to trusted networks
|
|
636
639
|
- ✅ **Keep sshler updated** to receive security patches
|
|
@@ -641,7 +644,7 @@ sshler security works in layers:
|
|
|
641
644
|
|
|
642
645
|
1. **Transport Security (HTTPS)** - Encrypts all traffic, protects session cookies
|
|
643
646
|
2. **Application Auth (Session Cookies)** - Verifies user identity with httpOnly cookies
|
|
644
|
-
3. **CSRF Protection** - Origin header validation on state-changing requests
|
|
647
|
+
3. **CSRF Protection** - Origin header validation on state-changing requests and on every WebSocket upgrade
|
|
645
648
|
4. **Network Isolation** (Optional) - Tailscale, VPN, or firewall rules
|
|
646
649
|
|
|
647
650
|
**Recommendation:** Use HTTPS + session auth for most deployments. Add network isolation (Tailscale/VPN) for extra security when accessing over the internet.
|
|
@@ -1074,11 +1077,15 @@ export SSHLER_PASSWORD_HASH='$argon2id$...' # sshler hash-password で生成
|
|
|
1074
1077
|
sshler serve --host 0.0.0.0 --auth myuser:mypassword
|
|
1075
1078
|
```
|
|
1076
1079
|
|
|
1080
|
+
**サインイン:** パスワードを設定すると、ページが開いてサインインフォームを表示します。セッションは 8 時間(`SSHLER_SESSION_TTL_SECONDS`)有効で、**設定 → サインアウト** で終了します。サインインに 5 回失敗するとそのアドレスは 5 分間ロックされ、フォームが待ち時間を表示します。スクリプトは代わりに各リクエストで `Authorization: Basic` ヘッダー(と `X-SSHLER-TOKEN`)を送れます。このヘッダーはそのリクエストだけを通し、セッションは作りません。ブラウザ自身のパスワード入力ダイアログは表示されません。
|
|
1081
|
+
|
|
1082
|
+
**アップグレード時の注意:** 以前のパスワード入力ダイアログでサインインしたブラウザーは、再起動するまでそのパスワードを送り続けます。その間はサインインしたままになり、サインアウトはブラウザーの再起動後に有効になります。
|
|
1083
|
+
|
|
1077
1084
|
**追加のセキュリティに関する注意:**
|
|
1078
1085
|
- **環境変数**: `.env` ファイルをバージョン管理にコミットしないでください。`.env.example` をテンプレートとして使用してください。`.env` ファイルにはパスワードハッシュなどの機密情報が含まれる可能性があります。
|
|
1079
1086
|
- ファイルアップロードは 50 MB まで(`--max-upload-mb` で調整可能)。アップロードされたコンテンツはサーバー側で実行されません。
|
|
1080
1087
|
- SSH 接続はシステムの `known_hosts` を尊重します。リスクを完全に理解している場合のみ `known_hosts: ignore` を設定してください。
|
|
1081
|
-
- ローカルホスト以外に公開する場合は、`--allow-origin` でオプトインし、`--auth user:pass
|
|
1088
|
+
- ローカルホスト以外に公開する場合は、`--allow-origin` でオプトインし、`--auth user:pass`(パスワード)を追加してください。信頼できるネットワークでのみ使用し、TLS(nginx、Caddy など)を前段に配置してください。
|
|
1082
1089
|
- テレメトリ、アナリティクス、コールホーム機能は一切ありません。
|
|
1083
1090
|
|
|
1084
1091
|
### CLI オプション
|
|
@@ -1097,7 +1104,7 @@ sshler serve \
|
|
|
1097
1104
|
- `--host`(別名 `--bind`): バインドアドレスを設定(デフォルト: `127.0.0.1` でローカルホストのみ)。すべてのインターフェースに公開するには `0.0.0.0` を使用しますが、**信頼できるネットワーク上でのみ `--auth` と TLS を併用してください**。
|
|
1098
1105
|
- `--port`: ポート番号を設定(デフォルト: `8822`)。
|
|
1099
1106
|
- `--allow-origin`: CORS を拡張するために繰り返し使用可能。ローカルホスト以外に UI を公開する場合は `--auth` と組み合わせてください。
|
|
1100
|
-
- `--auth user:pass`:
|
|
1107
|
+
- `--auth user:pass`: パスワードを設定。ページはサインインフォームを表示し、スクリプトは Basic ヘッダーを送れます(`0.0.0.0` にバインドする場合は推奨)。
|
|
1101
1108
|
- `--max-upload-mb`: アップロードサイズ制限を設定(デフォルト: 50 MB)。
|
|
1102
1109
|
- `--no-ssh-alias`: DNS 失敗時の `ssh -G` フォールバックを無効化。
|
|
1103
1110
|
- `--token`: 独自の `X-SSHLER-TOKEN` を指定(指定しない場合は安全なランダム値が生成されます)。
|
|
@@ -1332,7 +1339,6 @@ sshler を本番環境にデプロイする際:
|
|
|
1332
1339
|
- **`SSHLER_COOKIE_SECURE=true` を設定** - `.env` ファイルで
|
|
1333
1340
|
- **`SSHLER_PUBLIC_URL` を設定** - 実際の HTTPS URL に
|
|
1334
1341
|
- **強力なパスワードを使用** - `sshler hash-password` で生成
|
|
1335
|
-
- **`SSHLER_REQUIRE_AUTH=true` を維持** - 本番環境では認証を無効化しない
|
|
1336
1342
|
- **localhost にバインド** - リバースプロキシの背後では `SSHLER_HOST=127.0.0.1`
|
|
1337
1343
|
- **ファイアウォールルールを有効化** - 信頼できるネットワークにアクセスを制限
|
|
1338
1344
|
- **sshler を最新に保つ** - セキュリティパッチを受け取るため
|
|
@@ -1343,7 +1349,7 @@ sshler のセキュリティは多層構造です:
|
|
|
1343
1349
|
|
|
1344
1350
|
1. **トランスポートセキュリティ(HTTPS)** - すべてのトラフィックを暗号化し、セッション Cookie を保護
|
|
1345
1351
|
2. **アプリケーション認証(セッション Cookie)** - httpOnly Cookie でユーザー ID を検証
|
|
1346
|
-
3. **CSRF 保護** -
|
|
1352
|
+
3. **CSRF 保護** - 状態変更リクエストと全 WebSocket 接続に対する Origin ヘッダー検証
|
|
1347
1353
|
4. **ネットワーク分離**(オプション) - Tailscale、VPN、またはファイアウォールルール
|
|
1348
1354
|
|
|
1349
1355
|
**推奨:** ほとんどのデプロイでは HTTPS + セッション認証を使用してください。インターネット経由でアクセスする場合は、ネットワーク分離(Tailscale/VPN)を追加してセキュリティを強化してください。
|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "sshler"
|
|
8
|
-
version = "1.0
|
|
8
|
+
version = "1.2.0"
|
|
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"
|
|
@@ -20,7 +20,7 @@ dependencies = [
|
|
|
20
20
|
"platformdirs>=4.2",
|
|
21
21
|
"pydantic>=2.7",
|
|
22
22
|
"python-multipart>=0.0.9",
|
|
23
|
-
"sqler>=1.
|
|
23
|
+
"sqler[pydantic]>=1.2026.11.3",
|
|
24
24
|
"pydantic-settings>=2.12.0",
|
|
25
25
|
"python-dotenv>=1.0.0",
|
|
26
26
|
"psutil>=5.9.0",
|
|
@@ -52,6 +52,7 @@ Issues = "https://github.com/gabu-quest/sshler/issues"
|
|
|
52
52
|
dev = [
|
|
53
53
|
"anyio>=4.4",
|
|
54
54
|
"httpx>=0.27.0",
|
|
55
|
+
"httpx2>=2.0.0",
|
|
55
56
|
"pytest>=8.2",
|
|
56
57
|
"pytest-asyncio>=0.23",
|
|
57
58
|
"playwright>=1.48.0",
|
|
@@ -67,12 +68,12 @@ pdf = [
|
|
|
67
68
|
dev = [
|
|
68
69
|
"anyio>=4.4",
|
|
69
70
|
"httpx>=0.27.0",
|
|
71
|
+
"httpx2>=2.0.0",
|
|
70
72
|
"pytest>=8.2",
|
|
71
73
|
"pytest-asyncio>=0.23",
|
|
72
74
|
"playwright>=1.48.0",
|
|
73
75
|
"pytest-playwright>=0.5.0",
|
|
74
76
|
"ruff>=0.5.6",
|
|
75
|
-
"hypothesis>=6.100.0",
|
|
76
77
|
"mypy>=1.19.1",
|
|
77
78
|
"types-pyyaml>=6.0.12.20250915",
|
|
78
79
|
"pre-commit>=4.0.0",
|
|
@@ -105,6 +106,8 @@ quote-style = "double"
|
|
|
105
106
|
indent-style = "space"
|
|
106
107
|
skip-magic-trailing-comma = false
|
|
107
108
|
line-ending = "lf"
|
|
109
|
+
# Code blocks in Markdown are examples with hand-aligned comments; leave them as written.
|
|
110
|
+
exclude = ["*.md"]
|
|
108
111
|
|
|
109
112
|
[tool.mypy]
|
|
110
113
|
python_version = "3.12"
|
|
@@ -122,9 +125,11 @@ strict_equality = true
|
|
|
122
125
|
[tool.pytest.ini_options]
|
|
123
126
|
testpaths = ["tests"]
|
|
124
127
|
asyncio_mode = "strict"
|
|
128
|
+
asyncio_default_fixture_loop_scope = "function"
|
|
125
129
|
timeout = 60
|
|
126
130
|
timeout_method = "thread"
|
|
127
131
|
addopts = "--strict-markers"
|
|
132
|
+
filterwarnings = ["error::DeprecationWarning:sshler\\.state"]
|
|
128
133
|
markers = [
|
|
129
134
|
"e2e: Playwright end-to-end tests under tests/e2e (deselect with -m \"not e2e\")",
|
|
130
135
|
]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Run by path (never imported): become session leader on the PTY, then run the command.
|
|
2
|
+
|
|
3
|
+
``ptyspawn.spawn_on_pty`` starts this with the PTY slave on fds 0 to 2. The first
|
|
4
|
+
three arguments are optional values, each ``-`` for none or ``=`` and the value: the
|
|
5
|
+
``LC_CTYPE`` the command gets, the folder it starts in, and the name it reads as its
|
|
6
|
+
own (``argv[0]``). The rest is the command. An interpreter started in the C locale sets
|
|
7
|
+
``LC_CTYPE`` in its own environment; the command must get the environment the caller
|
|
8
|
+
gave, so it is put back.
|
|
9
|
+
``posix_spawn`` hands down every inheritable descriptor of the server (what its own
|
|
10
|
+
launcher left open, for one), so all above 2 are closed: the command gets the PTY only.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import os
|
|
14
|
+
import sys
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def _value(word: str) -> str | None:
|
|
18
|
+
return word[1:] if word.startswith("=") else None
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def main() -> None:
|
|
22
|
+
argv = sys.argv[4:]
|
|
23
|
+
doing = f"run {argv[0] if argv else ''}"
|
|
24
|
+
try:
|
|
25
|
+
import fcntl
|
|
26
|
+
import termios
|
|
27
|
+
|
|
28
|
+
lc_ctype, cwd, arg0 = (_value(word) for word in sys.argv[1:4])
|
|
29
|
+
if lc_ctype is not None:
|
|
30
|
+
os.environ["LC_CTYPE"] = lc_ctype
|
|
31
|
+
else:
|
|
32
|
+
os.environ.pop("LC_CTYPE", None)
|
|
33
|
+
os.setsid()
|
|
34
|
+
fcntl.ioctl(0, termios.TIOCSCTTY, 0)
|
|
35
|
+
if cwd is not None:
|
|
36
|
+
doing, running = f"enter {cwd}", doing
|
|
37
|
+
os.chdir(cwd)
|
|
38
|
+
doing = running
|
|
39
|
+
for fd in map(int, os.listdir("/dev/fd")):
|
|
40
|
+
if fd > 2:
|
|
41
|
+
os.closerange(fd, fd + 1) # ignores the listing's own, already closed
|
|
42
|
+
os.execvp(argv[0], [arg0 if arg0 is not None else argv[0], *argv[1:]])
|
|
43
|
+
except (OSError, IndexError) as exc:
|
|
44
|
+
reason = exc.strerror if isinstance(exc, OSError) and exc.strerror else str(exc)
|
|
45
|
+
try:
|
|
46
|
+
os.write(2, f"sshler: cannot {doing}: {reason}\n".encode(errors="replace"))
|
|
47
|
+
finally:
|
|
48
|
+
os._exit(127)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
if __name__ == "__main__":
|
|
52
|
+
main()
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"""Who may open a WebSocket, and the comparisons the REST routes share with it."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import asyncio
|
|
6
|
+
import contextlib
|
|
7
|
+
import hashlib
|
|
8
|
+
import hmac
|
|
9
|
+
import logging
|
|
10
|
+
from urllib.parse import urlparse
|
|
11
|
+
|
|
12
|
+
from fastapi import WebSocket
|
|
13
|
+
|
|
14
|
+
from .session import SocketHold, hold_on_session, live_session
|
|
15
|
+
from .settings import SshlerSettings
|
|
16
|
+
from .settings import get_settings as get_app_settings
|
|
17
|
+
|
|
18
|
+
logger = logging.getLogger(__name__)
|
|
19
|
+
|
|
20
|
+
CLOSE_UNAUTHORIZED = 4401
|
|
21
|
+
CLOSE_FORBIDDEN = 4403
|
|
22
|
+
SESSION_ENDED = "Session ended"
|
|
23
|
+
|
|
24
|
+
# Closes started by a session's end, kept until done so none is collected half-way.
|
|
25
|
+
_closing: set[asyncio.Task] = set()
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def _digest(value: str) -> bytes:
|
|
29
|
+
return hashlib.sha256(value.encode("utf-8", "surrogatepass")).digest()
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def token_matches(supplied: str | None, expected: str) -> bool:
|
|
33
|
+
"""Compare a supplied token with the server's, in constant time.
|
|
34
|
+
|
|
35
|
+
Both sides are hashed first, so the comparison never raises (non-ASCII,
|
|
36
|
+
empty and very long inputs included) and always sees two values of the
|
|
37
|
+
same length: its time says nothing about where a wrong token differs from
|
|
38
|
+
the right one, nor about the right one's length.
|
|
39
|
+
"""
|
|
40
|
+
return hmac.compare_digest(_digest(supplied or ""), _digest(expected))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def allowed_origins(cli_settings, app_settings: SshlerSettings) -> list[str]:
|
|
44
|
+
"""Every origin a state-changing request or a socket may come from.
|
|
45
|
+
|
|
46
|
+
The command-line origins, the ``allowed_origins`` setting, and the origin of
|
|
47
|
+
``public_url``.
|
|
48
|
+
"""
|
|
49
|
+
origins = list(cli_settings.allow_origins) + app_settings.allowed_origins_list
|
|
50
|
+
if app_settings.public_url:
|
|
51
|
+
parsed = urlparse(app_settings.public_url)
|
|
52
|
+
public_origin = f"{parsed.scheme}://{parsed.netloc}"
|
|
53
|
+
if public_origin not in origins:
|
|
54
|
+
origins.append(public_origin)
|
|
55
|
+
return origins
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def origin_base(origin: str) -> str:
|
|
59
|
+
"""Reduce an Origin or Referer value to ``scheme://host:port``."""
|
|
60
|
+
parsed = urlparse(origin)
|
|
61
|
+
return f"{parsed.scheme}://{parsed.netloc}"
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def websocket_refusal(websocket: WebSocket) -> tuple[int, str] | None:
|
|
65
|
+
"""Decide whether a socket may be opened; None means it may.
|
|
66
|
+
|
|
67
|
+
Checked in this order, and the caller closes the socket before accepting it
|
|
68
|
+
when a refusal comes back: credentials (Basic header, else a live session
|
|
69
|
+
cookie) give 4401; the token (``token`` query parameter, else the
|
|
70
|
+
``x-sshler-token`` header) gives 4403; an Origin header that is present and
|
|
71
|
+
not allowed gives 4403. A request without an Origin header is not a browser
|
|
72
|
+
and passes, as for a POST. ``origin_check_enabled`` turns the Origin check off.
|
|
73
|
+
|
|
74
|
+
A socket let in by a session cookie carries that session's id in
|
|
75
|
+
``websocket.state.session_id`` for ``hold_socket``; one let in otherwise (a good
|
|
76
|
+
Basic header, or no password set) carries None and belongs to no session.
|
|
77
|
+
"""
|
|
78
|
+
cli_settings = websocket.app.state.settings
|
|
79
|
+
app_settings = get_app_settings()
|
|
80
|
+
websocket.state.session_id = None
|
|
81
|
+
|
|
82
|
+
if cli_settings.auth_manager:
|
|
83
|
+
authenticated = False
|
|
84
|
+
auth_header = websocket.headers.get("authorization")
|
|
85
|
+
if auth_header and cli_settings.auth_manager.verify_basic_auth_header(auth_header):
|
|
86
|
+
authenticated = True
|
|
87
|
+
if not authenticated:
|
|
88
|
+
cookie_sid = websocket.cookies.get(app_settings.cookie_name)
|
|
89
|
+
if cookie_sid and live_session(cookie_sid):
|
|
90
|
+
authenticated = True
|
|
91
|
+
websocket.state.session_id = cookie_sid
|
|
92
|
+
if not authenticated:
|
|
93
|
+
logger.warning("[Connection] WebSocket refused: no valid credentials")
|
|
94
|
+
return CLOSE_UNAUTHORIZED, "Unauthorized"
|
|
95
|
+
|
|
96
|
+
if cli_settings.csrf_token:
|
|
97
|
+
supplied = websocket.query_params.get("token") or websocket.headers.get("x-sshler-token")
|
|
98
|
+
if not token_matches(supplied, cli_settings.csrf_token):
|
|
99
|
+
logger.warning("[Connection] WebSocket refused: invalid token")
|
|
100
|
+
return CLOSE_FORBIDDEN, "Invalid token"
|
|
101
|
+
|
|
102
|
+
if app_settings.origin_check_enabled:
|
|
103
|
+
origin = websocket.headers.get("origin")
|
|
104
|
+
if origin is not None and origin_base(origin) not in allowed_origins(
|
|
105
|
+
cli_settings, app_settings
|
|
106
|
+
):
|
|
107
|
+
logger.warning("[Security] WebSocket refused: origin %r is not allowed", origin)
|
|
108
|
+
return CLOSE_FORBIDDEN, "Invalid origin"
|
|
109
|
+
|
|
110
|
+
return None
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
class _Unheld:
|
|
114
|
+
"""The place of a socket that belongs to no session: nothing to release."""
|
|
115
|
+
|
|
116
|
+
def release(self) -> None:
|
|
117
|
+
return None
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
async def hold_socket(websocket: WebSocket) -> SocketHold | _Unheld | None:
|
|
121
|
+
"""Put an accepted socket in the record of the session it was let in on.
|
|
122
|
+
|
|
123
|
+
When that session ends (signed out, or its time is up) the socket is closed with
|
|
124
|
+
4401, and whatever runs on it ends as on any close. A socket let in without a
|
|
125
|
+
session is not held. None means the session ended between ``websocket_refusal``
|
|
126
|
+
and this call: the socket has been closed with 4401 and the caller returns. The
|
|
127
|
+
caller releases the hold when the socket closes for any other reason.
|
|
128
|
+
"""
|
|
129
|
+
session_id = getattr(websocket.state, "session_id", None)
|
|
130
|
+
if session_id is None:
|
|
131
|
+
return _Unheld()
|
|
132
|
+
loop = asyncio.get_running_loop()
|
|
133
|
+
|
|
134
|
+
def end() -> None:
|
|
135
|
+
closing = loop.create_task(_close_ended(websocket))
|
|
136
|
+
_closing.add(closing)
|
|
137
|
+
closing.add_done_callback(_closing.discard)
|
|
138
|
+
|
|
139
|
+
hold = hold_on_session(session_id, end)
|
|
140
|
+
if hold is None:
|
|
141
|
+
await _close_ended(websocket)
|
|
142
|
+
return hold
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
async def _close_ended(websocket: WebSocket) -> None:
|
|
146
|
+
logger.info("[Connection] WebSocket closed: its session ended")
|
|
147
|
+
with contextlib.suppress(Exception): # the socket has already closed
|
|
148
|
+
await websocket.close(code=CLOSE_UNAUTHORIZED, reason=SESSION_ENDED)
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"""Archive creation and extraction API."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import logging
|
|
6
|
+
|
|
7
|
+
from fastapi import APIRouter, Depends, Request
|
|
8
|
+
from pydantic import BaseModel, StrictBool
|
|
9
|
+
|
|
10
|
+
from ..config import AppConfig
|
|
11
|
+
from ..validation import PathValidator, ValidationError
|
|
12
|
+
from .box_files import Answers, box_files
|
|
13
|
+
from .dependencies import APIDependencies
|
|
14
|
+
from .failure import REASON_INVALID, Failure
|
|
15
|
+
from .file_contract import MISSING_ARCHIVE
|
|
16
|
+
from .placement import refuse_replace_and_keep_both
|
|
17
|
+
from .rate_limiting import rate_limit_file_ops
|
|
18
|
+
|
|
19
|
+
logger = logging.getLogger(__name__)
|
|
20
|
+
|
|
21
|
+
MAX_ARCHIVE_PATHS = 100
|
|
22
|
+
_ARCHIVE = Answers(missing=MISSING_ARCHIVE)
|
|
23
|
+
VALID_FORMATS = {"tar.gz", "tgz", "zip"}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class APIArchiveCreateRequest(BaseModel):
|
|
27
|
+
paths: list[str]
|
|
28
|
+
destination: str
|
|
29
|
+
archive_name: str
|
|
30
|
+
format: str # "tar.gz" | "tgz" | "zip"
|
|
31
|
+
overwrite: StrictBool = False
|
|
32
|
+
keep_both: StrictBool = False
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class APIArchiveExtractRequest(BaseModel):
|
|
36
|
+
archive_path: str
|
|
37
|
+
destination: str
|
|
38
|
+
overwrite: StrictBool = False
|
|
39
|
+
keep_both: StrictBool = False
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _validate_archive_name(name: str, fmt: str) -> str:
|
|
43
|
+
"""Validate archive filename."""
|
|
44
|
+
try:
|
|
45
|
+
validated = PathValidator.validate_filename(name)
|
|
46
|
+
except ValidationError as exc:
|
|
47
|
+
raise Failure(REASON_INVALID, str(exc)) from exc
|
|
48
|
+
|
|
49
|
+
expected_exts = {"tar.gz": (".tar.gz",), "tgz": (".tgz",), "zip": (".zip",)}
|
|
50
|
+
valid_exts = expected_exts.get(fmt, ())
|
|
51
|
+
if not any(validated.lower().endswith(ext) for ext in valid_exts):
|
|
52
|
+
raise Failure(REASON_INVALID, f"Archive name must end in {' or '.join(valid_exts)}")
|
|
53
|
+
|
|
54
|
+
return validated
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def get_router(deps: APIDependencies) -> APIRouter:
|
|
58
|
+
router = APIRouter()
|
|
59
|
+
|
|
60
|
+
@router.post("/boxes/{name}/archive/create")
|
|
61
|
+
async def api_archive_create(
|
|
62
|
+
request: Request,
|
|
63
|
+
name: str,
|
|
64
|
+
payload: APIArchiveCreateRequest,
|
|
65
|
+
application_config: AppConfig = Depends(deps.get_application_config),
|
|
66
|
+
_rate_limit: None = Depends(rate_limit_file_ops),
|
|
67
|
+
):
|
|
68
|
+
refuse_replace_and_keep_both(payload.overwrite, payload.keep_both)
|
|
69
|
+
if len(payload.paths) > MAX_ARCHIVE_PATHS:
|
|
70
|
+
raise Failure(REASON_INVALID, f"Too many paths (max {MAX_ARCHIVE_PATHS})")
|
|
71
|
+
if not payload.paths:
|
|
72
|
+
raise Failure(REASON_INVALID, "No paths provided")
|
|
73
|
+
if payload.format not in VALID_FORMATS:
|
|
74
|
+
raise Failure(
|
|
75
|
+
REASON_INVALID, f"Invalid format. Must be one of: {', '.join(VALID_FORMATS)}"
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
archive_name = _validate_archive_name(payload.archive_name, payload.format)
|
|
79
|
+
box = deps.get_box_or_404(application_config, name)
|
|
80
|
+
|
|
81
|
+
async with box_files(deps, box, application_config) as files:
|
|
82
|
+
archive_path = await files.create_archive(
|
|
83
|
+
payload.paths,
|
|
84
|
+
payload.destination,
|
|
85
|
+
archive_name,
|
|
86
|
+
payload.format,
|
|
87
|
+
overwrite=payload.overwrite,
|
|
88
|
+
keep_both=payload.keep_both,
|
|
89
|
+
)
|
|
90
|
+
landed_name = files.name(archive_path)
|
|
91
|
+
return {"status": "ok", "message": f"Created {landed_name}", "path": archive_path}
|
|
92
|
+
|
|
93
|
+
@router.post("/boxes/{name}/archive/extract")
|
|
94
|
+
async def api_archive_extract(
|
|
95
|
+
request: Request,
|
|
96
|
+
name: str,
|
|
97
|
+
payload: APIArchiveExtractRequest,
|
|
98
|
+
application_config: AppConfig = Depends(deps.get_application_config),
|
|
99
|
+
_rate_limit: None = Depends(rate_limit_file_ops),
|
|
100
|
+
):
|
|
101
|
+
refuse_replace_and_keep_both(payload.overwrite, payload.keep_both)
|
|
102
|
+
box = deps.get_box_or_404(application_config, name)
|
|
103
|
+
|
|
104
|
+
async with box_files(deps, box, application_config, _ARCHIVE) as files:
|
|
105
|
+
destination = await files.extract_archive(
|
|
106
|
+
payload.archive_path,
|
|
107
|
+
payload.destination,
|
|
108
|
+
overwrite=payload.overwrite,
|
|
109
|
+
keep_both=payload.keep_both,
|
|
110
|
+
)
|
|
111
|
+
return {"status": "ok", "message": "Extracted", "path": destination}
|
|
112
|
+
|
|
113
|
+
return router
|