sshler 1.2.0__tar.gz → 1.3.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.
Files changed (425) hide show
  1. {sshler-1.2.0/sshler.egg-info → sshler-1.3.0}/PKG-INFO +1 -1
  2. {sshler-1.2.0 → sshler-1.3.0}/pyproject.toml +1 -1
  3. sshler-1.3.0/scripts/capture_views.py +287 -0
  4. {sshler-1.2.0 → sshler-1.3.0}/sshler/access.py +64 -15
  5. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/boxes.py +1 -1
  6. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/helpers.py +15 -1
  7. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/local_files.py +6 -1
  8. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/models.py +2 -0
  9. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/terminal.py +2 -0
  10. sshler-1.2.0/sshler/static/dist/assets/Add-DVj_NAD5.js → sshler-1.3.0/sshler/static/dist/assets/Add-DEmZuhBN.js +1 -1
  11. sshler-1.2.0/sshler/static/dist/assets/Alert-BE4-y9sm.js → sshler-1.3.0/sshler/static/dist/assets/Alert-DIRa-mLO.js +3 -3
  12. sshler-1.3.0/sshler/static/dist/assets/ArtifactsView-DBlFlU7Q.js +1 -0
  13. sshler-1.3.0/sshler/static/dist/assets/ArtifactsView-WEoMOwvv.css +1 -0
  14. sshler-1.3.0/sshler/static/dist/assets/BoxesView-Kv_-7He8.css +1 -0
  15. sshler-1.3.0/sshler/static/dist/assets/BoxesView-zc5PoApp.js +1 -0
  16. sshler-1.2.0/sshler/static/dist/assets/ChevronRight-CB13mv_U.js → sshler-1.3.0/sshler/static/dist/assets/ChevronRight-BRxEsqaL.js +1 -1
  17. sshler-1.3.0/sshler/static/dist/assets/ClaudeSessionsView-CFiCqe9_.css +1 -0
  18. sshler-1.3.0/sshler/static/dist/assets/ClaudeSessionsView-Dsr1b3SU.js +137 -0
  19. sshler-1.3.0/sshler/static/dist/assets/CommanderView-BXUhbX5j.js +1 -0
  20. sshler-1.3.0/sshler/static/dist/assets/CommanderView-C3kzrrRj.css +1 -0
  21. sshler-1.3.0/sshler/static/dist/assets/ContextMenu-Bf1q3yh_.js +1 -0
  22. sshler-1.3.0/sshler/static/dist/assets/ContextMenu-Dzb8gEM5.css +1 -0
  23. sshler-1.2.0/sshler/static/dist/assets/DiffView-BuaOaZHV.css → sshler-1.3.0/sshler/static/dist/assets/DiffView-C0go8e8Z.css +1 -1
  24. sshler-1.3.0/sshler/static/dist/assets/DiffView-QYPKtJgq.js +9 -0
  25. sshler-1.2.0/sshler/static/dist/assets/DiffViewer-CNSxZac5.js → sshler-1.3.0/sshler/static/dist/assets/DiffViewer-CwS6Pb5U.js +2 -2
  26. sshler-1.3.0/sshler/static/dist/assets/DirectoryPickerModal-V3skxPqP.js +95 -0
  27. sshler-1.3.0/sshler/static/dist/assets/DirectoryPickerModal-s0UA0vR3.css +1 -0
  28. sshler-1.3.0/sshler/static/dist/assets/FilesView-BKMMXyhy.css +1 -0
  29. sshler-1.3.0/sshler/static/dist/assets/FilesView-DgaZaJ8F.js +772 -0
  30. sshler-1.3.0/sshler/static/dist/assets/GitBadge-DXhwNg1u.js +1 -0
  31. sshler-1.3.0/sshler/static/dist/assets/Input-DnapVD4O.js +234 -0
  32. sshler-1.3.0/sshler/static/dist/assets/InputNumber-vaLjPFY8.js +13 -0
  33. sshler-1.3.0/sshler/static/dist/assets/LoginView-BVD5vU89.css +1 -0
  34. sshler-1.3.0/sshler/static/dist/assets/LoginView-CjBkF355.js +110 -0
  35. sshler-1.3.0/sshler/static/dist/assets/MultiTerminalView-DK69qR-F.css +1 -0
  36. sshler-1.3.0/sshler/static/dist/assets/MultiTerminalView-y_VKl809.js +1 -0
  37. sshler-1.3.0/sshler/static/dist/assets/NotFoundView-D_bm6QDQ.css +1 -0
  38. sshler-1.3.0/sshler/static/dist/assets/NotFoundView-Dj55XWwy.js +1 -0
  39. sshler-1.3.0/sshler/static/dist/assets/OverviewView-BYKkvHRn.css +1 -0
  40. sshler-1.3.0/sshler/static/dist/assets/OverviewView-DztAV6t8.js +1 -0
  41. sshler-1.3.0/sshler/static/dist/assets/PhArrowLeft.vue-BMs1SZjy.js +1 -0
  42. sshler-1.2.0/sshler/static/dist/assets/PhArrowsClockwise.vue-DIpXw-wC.js → sshler-1.3.0/sshler/static/dist/assets/PhArrowsClockwise.vue-9RBDD46V.js +1 -1
  43. sshler-1.2.0/sshler/static/dist/assets/PhArrowsLeftRight.vue-8OgBoRAo.js → sshler-1.3.0/sshler/static/dist/assets/PhArrowsLeftRight.vue-DjncoiiD.js +1 -1
  44. sshler-1.2.0/sshler/static/dist/assets/PhArrowsOut.vue-DQptlW4v.js → sshler-1.3.0/sshler/static/dist/assets/PhArrowsOut.vue-BOCyKglI.js +1 -1
  45. sshler-1.3.0/sshler/static/dist/assets/PhCheck.vue-DVhfUCos.js +1 -0
  46. sshler-1.3.0/sshler/static/dist/assets/PhCircle.vue-BMTIJDex.js +1 -0
  47. sshler-1.2.0/sshler/static/dist/assets/PhClockCounterClockwise.vue-8fEtbkeo.js → sshler-1.3.0/sshler/static/dist/assets/PhClockCounterClockwise.vue-eSgjR-is.js +1 -1
  48. sshler-1.3.0/sshler/static/dist/assets/PhCopy.vue-FKiTGwf5.js +1 -0
  49. sshler-1.3.0/sshler/static/dist/assets/PhCopySimple.vue-lAo26JOS.js +1 -0
  50. sshler-1.2.0/sshler/static/dist/assets/PhFloppyDisk.vue-BzUr1KeQ.js → sshler-1.3.0/sshler/static/dist/assets/PhFloppyDisk.vue-DG1DzU7a.js +1 -1
  51. sshler-1.2.0/sshler/static/dist/assets/PhFolderOpen.vue-BliJ8f_D.js → sshler-1.3.0/sshler/static/dist/assets/PhFolderOpen.vue-DXTvd5o3.js +1 -1
  52. sshler-1.2.0/sshler/static/dist/assets/PhGitBranch.vue-Bcy7lLT8.js → sshler-1.3.0/sshler/static/dist/assets/PhGitBranch.vue-B09vnVPP.js +1 -1
  53. sshler-1.2.0/sshler/static/dist/assets/PhPencilSimple.vue-CZyPwIW4.js → sshler-1.3.0/sshler/static/dist/assets/PhPencilSimple.vue-DEromwmD.js +1 -1
  54. sshler-1.2.0/sshler/static/dist/assets/PhPlay.vue-YnRHvIIa.js → sshler-1.3.0/sshler/static/dist/assets/PhPlay.vue-D_wZ8r3z.js +1 -1
  55. sshler-1.3.0/sshler/static/dist/assets/PhPushPinSimple.vue-BMQpg4HB.js +1 -0
  56. sshler-1.2.0/sshler/static/dist/assets/PhQuestion.vue-BG4hB2wF.js → sshler-1.3.0/sshler/static/dist/assets/PhQuestion.vue-6r8_Wp_x.js +1 -1
  57. sshler-1.2.0/sshler/static/dist/assets/PhTrash.vue-UcyRJtzp.js → sshler-1.3.0/sshler/static/dist/assets/PhTrash.vue-B_MgjXry.js +1 -1
  58. sshler-1.3.0/sshler/static/dist/assets/Popconfirm-BNVwQU1b.js +16 -0
  59. sshler-1.3.0/sshler/static/dist/assets/Popover-B7DitKyC.js +117 -0
  60. sshler-1.3.0/sshler/static/dist/assets/Progress-BZXXtjea.js +166 -0
  61. sshler-1.3.0/sshler/static/dist/assets/ProgressView-3p_OIi-y.css +1 -0
  62. sshler-1.3.0/sshler/static/dist/assets/ProgressView-o8nNcvpx.js +1 -0
  63. sshler-1.3.0/sshler/static/dist/assets/Select-Cc7bvkLZ.js +317 -0
  64. sshler-1.3.0/sshler/static/dist/assets/SettingsView-a2sUA5vI.js +74 -0
  65. sshler-1.3.0/sshler/static/dist/assets/SettingsView-quFzRgtz.css +1 -0
  66. sshler-1.2.0/sshler/static/dist/assets/Spin-BNtZdCEU.js → sshler-1.3.0/sshler/static/dist/assets/Spin-Dd0ayTqa.js +2 -2
  67. sshler-1.3.0/sshler/static/dist/assets/Suffix-B36DzEY5.js +25 -0
  68. sshler-1.2.0/sshler/static/dist/assets/Switch-a403-8cO.js → sshler-1.3.0/sshler/static/dist/assets/Switch-qbvDBLs_.js +2 -2
  69. sshler-1.3.0/sshler/static/dist/assets/Tag-DuIn8UVX.js +94 -0
  70. sshler-1.3.0/sshler/static/dist/assets/TerminalView-B9PJBhCP.css +1 -0
  71. sshler-1.3.0/sshler/static/dist/assets/TerminalView-CtuLeLw6.js +2 -0
  72. sshler-1.2.0/sshler/static/dist/assets/Warning-DQEelS-y.js → sshler-1.3.0/sshler/static/dist/assets/Warning-DdY8ttUA.js +1 -1
  73. sshler-1.3.0/sshler/static/dist/assets/_plugin-vue_export-helper-Bq7SfXed.js +400 -0
  74. sshler-1.2.0/sshler/static/dist/assets/abnfDiagram-S7VZAUFO-CajoiVBk.js → sshler-1.3.0/sshler/static/dist/assets/abnfDiagram-S7VZAUFO-Dl62XIa8.js +1 -1
  75. sshler-1.2.0/sshler/static/dist/assets/architectureDiagram-YGSQEFNW-DJ8U4x9Q.js → sshler-1.3.0/sshler/static/dist/assets/architectureDiagram-YGSQEFNW-CX2aIRmb.js +1 -1
  76. sshler-1.2.0/sshler/static/dist/assets/blockDiagram-APKKGZFW-R-0QQV5G.js → sshler-1.3.0/sshler/static/dist/assets/blockDiagram-APKKGZFW-h8c8DRn_.js +1 -1
  77. sshler-1.3.0/sshler/static/dist/assets/bootstrap-DMKDM0gE.js +1 -0
  78. sshler-1.2.0/sshler/static/dist/assets/c4Diagram-KJ2TOQU5-BOOHY9Sl.js → sshler-1.3.0/sshler/static/dist/assets/c4Diagram-KJ2TOQU5-CETSG46L.js +1 -1
  79. sshler-1.2.0/sshler/static/dist/assets/chunk-6MUBBAK2-x93F1fks.js → sshler-1.3.0/sshler/static/dist/assets/chunk-6MUBBAK2-QI-PvRu8.js +1 -1
  80. sshler-1.2.0/sshler/static/dist/assets/chunk-AXFCVDMN-DXrEduZS.js → sshler-1.3.0/sshler/static/dist/assets/chunk-AXFCVDMN-B6oAzgGh.js +1 -1
  81. sshler-1.2.0/sshler/static/dist/assets/chunk-BG4553SI-BrzD6dvX.js → sshler-1.3.0/sshler/static/dist/assets/chunk-BG4553SI-Cz90o6c2.js +1 -1
  82. sshler-1.2.0/sshler/static/dist/assets/chunk-DQASFODM-iUJge2Ck.js → sshler-1.3.0/sshler/static/dist/assets/chunk-DQASFODM-CBQyowXs.js +1 -1
  83. sshler-1.2.0/sshler/static/dist/assets/chunk-HFQBQIA3-CcB-Xg7i.js → sshler-1.3.0/sshler/static/dist/assets/chunk-HFQBQIA3-BNSGSFhc.js +1 -1
  84. sshler-1.2.0/sshler/static/dist/assets/chunk-KQLB2F66-CTUvMLQo.js → sshler-1.3.0/sshler/static/dist/assets/chunk-KQLB2F66-W3LJLXaT.js +1 -1
  85. sshler-1.2.0/sshler/static/dist/assets/chunk-KS47KZWR-DZVR01tB.js → sshler-1.3.0/sshler/static/dist/assets/chunk-KS47KZWR-CiMX3_TA.js +1 -1
  86. sshler-1.2.0/sshler/static/dist/assets/chunk-LEVMRMFU-z0TIEV2m.js → sshler-1.3.0/sshler/static/dist/assets/chunk-LEVMRMFU-QVTambqF.js +1 -1
  87. sshler-1.2.0/sshler/static/dist/assets/chunk-M57EVK23-B07NlzLN.js → sshler-1.3.0/sshler/static/dist/assets/chunk-M57EVK23-DaZQyPnU.js +1 -1
  88. sshler-1.2.0/sshler/static/dist/assets/chunk-OY52VR5R-bvnR98E7.js → sshler-1.3.0/sshler/static/dist/assets/chunk-OY52VR5R-PoE6xPk0.js +1 -1
  89. sshler-1.2.0/sshler/static/dist/assets/chunk-QB3YPZ4I-Cxa0XDSa.js → sshler-1.3.0/sshler/static/dist/assets/chunk-QB3YPZ4I-DTzHDg1d.js +1 -1
  90. sshler-1.2.0/sshler/static/dist/assets/chunk-R3KSYZAL-B37OlUeP.js → sshler-1.3.0/sshler/static/dist/assets/chunk-R3KSYZAL-Co4cu03u.js +1 -1
  91. sshler-1.2.0/sshler/static/dist/assets/chunk-STOXU5M4-CsRrfwC2.js → sshler-1.3.0/sshler/static/dist/assets/chunk-STOXU5M4-DQS_GffP.js +1 -1
  92. sshler-1.2.0/sshler/static/dist/assets/chunk-TU62E6Q5-gZVIQ6qo.js → sshler-1.3.0/sshler/static/dist/assets/chunk-TU62E6Q5-DgV5rx-o.js +1 -1
  93. sshler-1.2.0/sshler/static/dist/assets/chunk-X4PVCEUW-B_9wa1VD.js → sshler-1.3.0/sshler/static/dist/assets/chunk-X4PVCEUW-Nu_AGfdq.js +1 -1
  94. sshler-1.2.0/sshler/static/dist/assets/classDiagram-v2-L25IHNXF-bELcNd9W.js → sshler-1.3.0/sshler/static/dist/assets/classDiagram-v2-L25IHNXF-Cy3mefYn.js +1 -1
  95. sshler-1.3.0/sshler/static/dist/assets/composables-t62CRov_.js +1 -0
  96. sshler-1.2.0/sshler/static/dist/assets/cynefinDiagram-L36ESFBY-D0Kcps6O.js → sshler-1.3.0/sshler/static/dist/assets/cynefinDiagram-L36ESFBY-CitA4c9o.js +1 -1
  97. sshler-1.2.0/sshler/static/dist/assets/dagre-SPEB5RXH-Cw4LZNeA.js → sshler-1.3.0/sshler/static/dist/assets/dagre-SPEB5RXH-CgWivpDz.js +1 -1
  98. sshler-1.2.0/sshler/static/dist/assets/diagram-3B7GL73J-B4TUJqGG.js → sshler-1.3.0/sshler/static/dist/assets/diagram-3B7GL73J-C4x_nMmI.js +1 -1
  99. sshler-1.2.0/sshler/static/dist/assets/diagram-DNEMPZML-CI880NPD.js → sshler-1.3.0/sshler/static/dist/assets/diagram-DNEMPZML-O7cqJkdu.js +1 -1
  100. sshler-1.2.0/sshler/static/dist/assets/diagram-L3MUGCDN-DePXnf8A.js → sshler-1.3.0/sshler/static/dist/assets/diagram-L3MUGCDN-C8OSMZVz.js +1 -1
  101. sshler-1.2.0/sshler/static/dist/assets/diagram-LA4NIPWU-CBrmXqsJ.js → sshler-1.3.0/sshler/static/dist/assets/diagram-LA4NIPWU-DtrA47zY.js +1 -1
  102. sshler-1.2.0/sshler/static/dist/assets/diagram-MHCOC4E2-Dx-PTz2i.js → sshler-1.3.0/sshler/static/dist/assets/diagram-MHCOC4E2-DtH_Z1dL.js +1 -1
  103. sshler-1.2.0/sshler/static/dist/assets/diagram-XPFHEONP-BpZk17xz.js → sshler-1.3.0/sshler/static/dist/assets/diagram-XPFHEONP-D0vdRQt6.js +1 -1
  104. sshler-1.2.0/sshler/static/dist/assets/ebnfDiagram-UZSYDL2S-DkpFa5Oa.js → sshler-1.3.0/sshler/static/dist/assets/ebnfDiagram-UZSYDL2S-jUftlOMT.js +1 -1
  105. sshler-1.2.0/sshler/static/dist/assets/elk-XV6XMXQE-DtDufPR3.js → sshler-1.3.0/sshler/static/dist/assets/elk-XV6XMXQE-CkUwtCDs.js +1 -1
  106. sshler-1.2.0/sshler/static/dist/assets/erDiagram-EYBAPDEH-Cw0iOwQn.js → sshler-1.3.0/sshler/static/dist/assets/erDiagram-EYBAPDEH-DZvAyEAy.js +1 -1
  107. sshler-1.3.0/sshler/static/dist/assets/event-Db0nAmVz.js +1 -0
  108. sshler-1.2.0/sshler/static/dist/assets/favorites-uzRMGfT4.js → sshler-1.3.0/sshler/static/dist/assets/favorites-CPj5Zj-5.js +1 -1
  109. sshler-1.3.0/sshler/static/dist/assets/flatten-C237jh8P.js +1 -0
  110. sshler-1.3.0/sshler/static/dist/assets/flowDiagram-MALGAFMO-jiDO23TT.js +1 -0
  111. sshler-1.2.0/sshler/static/dist/assets/ganttDiagram-23REXITY-pKoZkaze.js → sshler-1.3.0/sshler/static/dist/assets/ganttDiagram-23REXITY-DgFgtUtE.js +1 -1
  112. sshler-1.2.0/sshler/static/dist/assets/gitGraphDiagram-STJD7YCW-CANBud7q.js → sshler-1.3.0/sshler/static/dist/assets/gitGraphDiagram-STJD7YCW-fIg-hNNm.js +1 -1
  113. sshler-1.3.0/sshler/static/dist/assets/http-5jBZtK3s.js +3 -0
  114. sshler-1.3.0/sshler/static/dist/assets/i18n-gQdbl5sJ.js +5 -0
  115. sshler-1.3.0/sshler/static/dist/assets/index-D2Lnc2ko.css +1 -0
  116. sshler-1.3.0/sshler/static/dist/assets/index-D6bev0bd.js +591 -0
  117. sshler-1.2.0/sshler/static/dist/assets/infoDiagram-KBXO4MBG-CNqN02Kw.js → sshler-1.3.0/sshler/static/dist/assets/infoDiagram-KBXO4MBG-BVVfHFcQ.js +1 -1
  118. sshler-1.2.0/sshler/static/dist/assets/ishikawaDiagram-M35NCXHK-C_wPTOhy.js → sshler-1.3.0/sshler/static/dist/assets/ishikawaDiagram-M35NCXHK-CqGTk0dp.js +1 -1
  119. sshler-1.2.0/sshler/static/dist/assets/journeyDiagram-OPLOXDXO-BGGraFzl.js → sshler-1.3.0/sshler/static/dist/assets/journeyDiagram-OPLOXDXO-BFB5FKSr.js +1 -1
  120. sshler-1.2.0/sshler/static/dist/assets/kanban-definition-BZKZHSQY-CSVKn6fe.js → sshler-1.3.0/sshler/static/dist/assets/kanban-definition-BZKZHSQY-DSSNLkvk.js +1 -1
  121. sshler-1.3.0/sshler/static/dist/assets/light-B3Z7NuY-.js +1 -0
  122. sshler-1.3.0/sshler/static/dist/assets/light-Bw_xNwn4.js +108 -0
  123. sshler-1.3.0/sshler/static/dist/assets/light-COnbaPWa.js +105 -0
  124. sshler-1.2.0/sshler/static/dist/assets/mermaid.core-5T9-XRJ4.js → sshler-1.3.0/sshler/static/dist/assets/mermaid.core-C2mTQdtl.js +4 -4
  125. sshler-1.2.0/sshler/static/dist/assets/mindmap-definition-I2QAS2VK-Cdq6HOIa.js → sshler-1.3.0/sshler/static/dist/assets/mindmap-definition-I2QAS2VK-_q85r7dF.js +1 -1
  126. sshler-1.3.0/sshler/static/dist/assets/pathParts-B6X81jnP.js +1 -0
  127. sshler-1.2.0/sshler/static/dist/assets/pegDiagram-FD4XPPHP-C33S8n8c.js → sshler-1.3.0/sshler/static/dist/assets/pegDiagram-FD4XPPHP-DDudVw-Y.js +1 -1
  128. sshler-1.2.0/sshler/static/dist/assets/pieDiagram-J4AKIIQI-Cie-N6xJ.js → sshler-1.3.0/sshler/static/dist/assets/pieDiagram-J4AKIIQI-BqvFr1aO.js +1 -1
  129. sshler-1.2.0/sshler/static/dist/assets/quadrantDiagram-XTYBLID2-DMHgK2pW.js → sshler-1.3.0/sshler/static/dist/assets/quadrantDiagram-XTYBLID2-BoymLJsF.js +1 -1
  130. sshler-1.2.0/sshler/static/dist/assets/railroadDiagram-MRQ6NCDL-DqQNmYV4.js → sshler-1.3.0/sshler/static/dist/assets/railroadDiagram-MRQ6NCDL-DSoHEHCg.js +1 -1
  131. sshler-1.2.0/sshler/static/dist/assets/requirementDiagram-Y7LWUY3S-CI35i5Kp.js → sshler-1.3.0/sshler/static/dist/assets/requirementDiagram-Y7LWUY3S-YZ16mKPo.js +1 -1
  132. sshler-1.3.0/sshler/static/dist/assets/runtime-core.esm-bundler-Dg-ZVrJt.js +1 -0
  133. sshler-1.2.0/sshler/static/dist/assets/sankeyDiagram-WGJFYUXA-CJSZp4X1.js → sshler-1.3.0/sshler/static/dist/assets/sankeyDiagram-WGJFYUXA-CAxDBX7v.js +1 -1
  134. sshler-1.2.0/sshler/static/dist/assets/sequenceDiagram-5NDRBG5M-SOFKzwk3.js → sshler-1.3.0/sshler/static/dist/assets/sequenceDiagram-5NDRBG5M-CcwEdL0y.js +1 -1
  135. sshler-1.3.0/sshler/static/dist/assets/sessionName-DUN8bJpk.js +1 -0
  136. sshler-1.2.0/sshler/static/dist/assets/stateDiagram-v2-FJ4FJNEA-C-2HjUxD.js → sshler-1.3.0/sshler/static/dist/assets/stateDiagram-v2-FJ4FJNEA-DCGJ2ioH.js +1 -1
  137. sshler-1.2.0/sshler/static/dist/assets/swimlanes-UMQ2AFYF-Du7IPm4w.js → sshler-1.3.0/sshler/static/dist/assets/swimlanes-UMQ2AFYF-D9gDCaI4.js +1 -1
  138. sshler-1.3.0/sshler/static/dist/assets/swimlanesDiagram-OMPLPG4O-CyX5GEB6.js +8 -0
  139. sshler-1.2.0/sshler/static/dist/assets/timeline-definition-SEUHKTQE-Cp29Y94P.js → sshler-1.3.0/sshler/static/dist/assets/timeline-definition-SEUHKTQE-DdmcvoJw.js +1 -1
  140. sshler-1.2.0/sshler/static/dist/assets/use-merged-state-CuoatQ1O.js → sshler-1.3.0/sshler/static/dist/assets/use-merged-state-Dm-xuTAu.js +1 -1
  141. sshler-1.3.0/sshler/static/dist/assets/useApi-SF8tY_yo-CGxurG4J.js +1 -0
  142. sshler-1.3.0/sshler/static/dist/assets/useBoxAnswer-CZQidpPa.js +153 -0
  143. sshler-1.2.0/sshler/static/dist/assets/useFolderSearch-CD8GWYxX.js → sshler-1.3.0/sshler/static/dist/assets/useFolderSearch-CJjr_Jqh.js +1 -1
  144. sshler-1.3.0/sshler/static/dist/assets/useReplacePrompt-YQcfeUCq.js +376 -0
  145. sshler-1.2.0/sshler/static/dist/assets/usecaseDiagram-AFA6YXN4-f3OI7LFO.js → sshler-1.3.0/sshler/static/dist/assets/usecaseDiagram-AFA6YXN4-BCh0_dta.js +1 -1
  146. sshler-1.2.0/sshler/static/dist/assets/vennDiagram-NNMJR3RB-DMpf54UQ.js → sshler-1.3.0/sshler/static/dist/assets/vennDiagram-NNMJR3RB-HmLde3vs.js +1 -1
  147. sshler-1.2.0/sshler/static/dist/assets/wardleyDiagram-S7YFUSEH-xw3hJv7x.js → sshler-1.3.0/sshler/static/dist/assets/wardleyDiagram-S7YFUSEH--TohOzHi.js +1 -1
  148. sshler-1.2.0/sshler/static/dist/assets/xychartDiagram-GGNKY7IX-CJzvdRtv.js → sshler-1.3.0/sshler/static/dist/assets/xychartDiagram-GGNKY7IX-Cf76Eobh.js +1 -1
  149. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/index.html +19 -11
  150. {sshler-1.2.0 → sshler-1.3.0}/sshler/webapp.py +25 -8
  151. {sshler-1.2.0 → sshler-1.3.0/sshler.egg-info}/PKG-INFO +1 -1
  152. sshler-1.3.0/sshler.egg-info/SOURCES.txt +370 -0
  153. {sshler-1.2.0 → sshler-1.3.0}/tests/test_api_body_models.py +22 -0
  154. {sshler-1.2.0 → sshler-1.3.0}/tests/test_handshake_status.py +14 -0
  155. {sshler-1.2.0 → sshler-1.3.0}/tests/test_path_validation.py +39 -0
  156. {sshler-1.2.0 → sshler-1.3.0}/tests/test_plain_shell.py +6 -2
  157. {sshler-1.2.0 → sshler-1.3.0}/tests/test_progress_websocket.py +4 -5
  158. {sshler-1.2.0 → sshler-1.3.0}/tests/test_session_active_flag.py +9 -2
  159. {sshler-1.2.0 → sshler-1.3.0}/tests/test_terminal_closes.py +14 -8
  160. {sshler-1.2.0 → sshler-1.3.0}/tests/test_ws_access.py +208 -29
  161. {sshler-1.2.0 → sshler-1.3.0}/tests/test_ws_term_auth.py +53 -5
  162. sshler-1.2.0/sshler/static/dist/assets/ArtifactsView-CT0tUDxB.js +0 -1
  163. sshler-1.2.0/sshler/static/dist/assets/ArtifactsView-afhw1qXI.css +0 -1
  164. sshler-1.2.0/sshler/static/dist/assets/BoxesView-C2c0xItr.css +0 -1
  165. sshler-1.2.0/sshler/static/dist/assets/BoxesView-DJsnqfNZ.js +0 -1
  166. sshler-1.2.0/sshler/static/dist/assets/ClaudeSessionsView-Bp4SAvcs.js +0 -137
  167. sshler-1.2.0/sshler/static/dist/assets/ClaudeSessionsView-xGWjqzNK.css +0 -1
  168. sshler-1.2.0/sshler/static/dist/assets/CommanderView-CgoY_xnh.js +0 -1
  169. sshler-1.2.0/sshler/static/dist/assets/CommanderView-llDVAtC7.css +0 -1
  170. sshler-1.2.0/sshler/static/dist/assets/DiffView-DOf2gg2F.js +0 -9
  171. sshler-1.2.0/sshler/static/dist/assets/DirectoryPickerModal-BGWrGHdB.js +0 -95
  172. sshler-1.2.0/sshler/static/dist/assets/DirectoryPickerModal-DRUwiBYA.css +0 -1
  173. sshler-1.2.0/sshler/static/dist/assets/FilesView-CoBUDqLi.js +0 -772
  174. sshler-1.2.0/sshler/static/dist/assets/FilesView-ce4qAYne.css +0 -1
  175. sshler-1.2.0/sshler/static/dist/assets/GitBadge-C1Rcp2p0.js +0 -1
  176. sshler-1.2.0/sshler/static/dist/assets/Grid-C0Ybw0fx.js +0 -1
  177. sshler-1.2.0/sshler/static/dist/assets/InputNumber-DgBR50ZW.js +0 -13
  178. sshler-1.2.0/sshler/static/dist/assets/LoginView-Ci67K6IQ.js +0 -110
  179. sshler-1.2.0/sshler/static/dist/assets/LoginView-ZzJUJyPs.css +0 -1
  180. sshler-1.2.0/sshler/static/dist/assets/MultiTerminalView-BY769dER.css +0 -1
  181. sshler-1.2.0/sshler/static/dist/assets/MultiTerminalView-CUIclpbQ.js +0 -1
  182. sshler-1.2.0/sshler/static/dist/assets/NotFoundView-DWZwQy5Q.js +0 -1
  183. sshler-1.2.0/sshler/static/dist/assets/NotFoundView-DwnT1Qmo.css +0 -1
  184. sshler-1.2.0/sshler/static/dist/assets/OverviewView-Aq1mzCKn.css +0 -1
  185. sshler-1.2.0/sshler/static/dist/assets/OverviewView-COlEwvfZ.js +0 -1
  186. sshler-1.2.0/sshler/static/dist/assets/PhArrowLeft.vue-Bx2QsCJM.js +0 -1
  187. sshler-1.2.0/sshler/static/dist/assets/PhCheck.vue-CEm_oMEb.js +0 -1
  188. sshler-1.2.0/sshler/static/dist/assets/PhCircle.vue-vHfAO3d-.js +0 -1
  189. sshler-1.2.0/sshler/static/dist/assets/PhCopy.vue-BLGEnEkX.js +0 -1
  190. sshler-1.2.0/sshler/static/dist/assets/PhCopySimple.vue-DEwhUG3v.js +0 -1
  191. sshler-1.2.0/sshler/static/dist/assets/PhList.vue-KPsdW08_.js +0 -1
  192. sshler-1.2.0/sshler/static/dist/assets/PhPushPinSimple.vue-B8qMbkV_.js +0 -1
  193. sshler-1.2.0/sshler/static/dist/assets/Popconfirm-xtNwxll_.js +0 -16
  194. sshler-1.2.0/sshler/static/dist/assets/ProgressView-CspfTIrc.js +0 -1
  195. sshler-1.2.0/sshler/static/dist/assets/ProgressView-DbwfQb8J.css +0 -1
  196. sshler-1.2.0/sshler/static/dist/assets/RadioGroup-BHDdhWjS.js +0 -153
  197. sshler-1.2.0/sshler/static/dist/assets/SettingsView-DBmEBFPo.js +0 -74
  198. sshler-1.2.0/sshler/static/dist/assets/SettingsView-xAJiWU9o.css +0 -1
  199. sshler-1.2.0/sshler/static/dist/assets/Tag-BXB6UJbk.js +0 -210
  200. sshler-1.2.0/sshler/static/dist/assets/TerminalView-B2y7aup8.js +0 -2
  201. sshler-1.2.0/sshler/static/dist/assets/TerminalView-Bxk8zgzW.css +0 -1
  202. sshler-1.2.0/sshler/static/dist/assets/_plugin-vue_export-helper-BUbEWP3a.js +0 -400
  203. sshler-1.2.0/sshler/static/dist/assets/bootstrap-DS0hywTO.js +0 -1
  204. sshler-1.2.0/sshler/static/dist/assets/composables-C01ou8AJ.js +0 -1
  205. sshler-1.2.0/sshler/static/dist/assets/flatten-blBgGSOx.js +0 -1
  206. sshler-1.2.0/sshler/static/dist/assets/flowDiagram-MALGAFMO-BuwM9WdF.js +0 -1
  207. sshler-1.2.0/sshler/static/dist/assets/http-BTTrDO0D.js +0 -7
  208. sshler-1.2.0/sshler/static/dist/assets/index-CEzH1A4_.css +0 -1
  209. sshler-1.2.0/sshler/static/dist/assets/index-D1N-ERS4.js +0 -1557
  210. sshler-1.2.0/sshler/static/dist/assets/runtime-core.esm-bundler-BrzYnu9e.js +0 -1
  211. sshler-1.2.0/sshler/static/dist/assets/sessionName-BTmv8h0d.js +0 -1
  212. sshler-1.2.0/sshler/static/dist/assets/swimlanesDiagram-OMPLPG4O-BJ0QMtS_.js +0 -8
  213. sshler-1.2.0/sshler/static/dist/assets/useReplacePrompt-PM0VIxIJ.js +0 -376
  214. sshler-1.2.0/sshler.egg-info/SOURCES.txt +0 -357
  215. {sshler-1.2.0 → sshler-1.3.0}/LICENSE +0 -0
  216. {sshler-1.2.0 → sshler-1.3.0}/MANIFEST.in +0 -0
  217. {sshler-1.2.0 → sshler-1.3.0}/README.md +0 -0
  218. {sshler-1.2.0 → sshler-1.3.0}/scripts/check_frontend_dist.py +0 -0
  219. {sshler-1.2.0 → sshler-1.3.0}/setup.cfg +0 -0
  220. {sshler-1.2.0 → sshler-1.3.0}/sshler/__init__.py +0 -0
  221. {sshler-1.2.0 → sshler-1.3.0}/sshler/_pty_child.py +0 -0
  222. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/__init__.py +0 -0
  223. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/archive.py +0 -0
  224. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/artifacts.py +0 -0
  225. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/auth.py +0 -0
  226. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/batch.py +0 -0
  227. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/box_files.py +0 -0
  228. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/box_runner.py +0 -0
  229. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/claude_sessions.py +0 -0
  230. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/config.py +0 -0
  231. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/dependencies.py +0 -0
  232. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/diff.py +0 -0
  233. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/excel.py +0 -0
  234. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/failure.py +0 -0
  235. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/file_contract.py +0 -0
  236. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/files.py +0 -0
  237. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/git.py +0 -0
  238. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/grep.py +0 -0
  239. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/pdf.py +0 -0
  240. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/ping.py +0 -0
  241. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/placement.py +0 -0
  242. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/progress.py +0 -0
  243. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/rate_limiting.py +0 -0
  244. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/recovery.py +0 -0
  245. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/remote.py +0 -0
  246. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/remote_files.py +0 -0
  247. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/run_failures.py +0 -0
  248. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/search.py +0 -0
  249. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/sessions.py +0 -0
  250. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/snippets.py +0 -0
  251. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/stats_stream.py +0 -0
  252. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/transfer.py +0 -0
  253. {sshler-1.2.0 → sshler-1.3.0}/sshler/api/tunnels.py +0 -0
  254. {sshler-1.2.0 → sshler-1.3.0}/sshler/artifacts.py +0 -0
  255. {sshler-1.2.0 → sshler-1.3.0}/sshler/auth.py +0 -0
  256. {sshler-1.2.0 → sshler-1.3.0}/sshler/claude_sessions.py +0 -0
  257. {sshler-1.2.0 → sshler-1.3.0}/sshler/cli/__init__.py +0 -0
  258. {sshler-1.2.0 → sshler-1.3.0}/sshler/cli/_main.py +0 -0
  259. {sshler-1.2.0 → sshler-1.3.0}/sshler/cli/artifacts.py +0 -0
  260. {sshler-1.2.0 → sshler-1.3.0}/sshler/cli/client.py +0 -0
  261. {sshler-1.2.0 → sshler-1.3.0}/sshler/cli/password.py +0 -0
  262. {sshler-1.2.0 → sshler-1.3.0}/sshler/cli/ping.py +0 -0
  263. {sshler-1.2.0 → sshler-1.3.0}/sshler/cli/progress.py +0 -0
  264. {sshler-1.2.0 → sshler-1.3.0}/sshler/cli/runtime_token.py +0 -0
  265. {sshler-1.2.0 → sshler-1.3.0}/sshler/cli/server.py +0 -0
  266. {sshler-1.2.0 → sshler-1.3.0}/sshler/config.py +0 -0
  267. {sshler-1.2.0 → sshler-1.3.0}/sshler/config_cache.py +0 -0
  268. {sshler-1.2.0 → sshler-1.3.0}/sshler/config_dir.py +0 -0
  269. {sshler-1.2.0 → sshler-1.3.0}/sshler/pdf.py +0 -0
  270. {sshler-1.2.0 → sshler-1.3.0}/sshler/proc.py +0 -0
  271. {sshler-1.2.0 → sshler-1.3.0}/sshler/ptyspawn.py +0 -0
  272. {sshler-1.2.0 → sshler-1.3.0}/sshler/rate_limit.py +0 -0
  273. {sshler-1.2.0 → sshler-1.3.0}/sshler/scripts/install-sshler-task.ps1 +0 -0
  274. {sshler-1.2.0 → sshler-1.3.0}/sshler/scripts/remove-sshler-task.ps1 +0 -0
  275. {sshler-1.2.0 → sshler-1.3.0}/sshler/scripts/run-sshler.ps1 +0 -0
  276. {sshler-1.2.0 → sshler-1.3.0}/sshler/session.py +0 -0
  277. {sshler-1.2.0 → sshler-1.3.0}/sshler/session_activity.py +0 -0
  278. {sshler-1.2.0 → sshler-1.3.0}/sshler/settings.py +0 -0
  279. {sshler-1.2.0 → sshler-1.3.0}/sshler/snapshot.py +0 -0
  280. {sshler-1.2.0 → sshler-1.3.0}/sshler/spa.py +0 -0
  281. {sshler-1.2.0 → sshler-1.3.0}/sshler/ssh.py +0 -0
  282. {sshler-1.2.0 → sshler-1.3.0}/sshler/ssh_config.py +0 -0
  283. {sshler-1.2.0 → sshler-1.3.0}/sshler/ssh_pool.py +0 -0
  284. {sshler-1.2.0 → sshler-1.3.0}/sshler/state.py +0 -0
  285. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/DiffViewer-BRAHvu6K.css +0 -0
  286. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/GitBadge-i4R5k8Yn.css +0 -0
  287. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/_baseEach-DRxRab5x.js +0 -0
  288. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/architecture-WOLXFQ4H-C6rElQ7Y.js +0 -0
  289. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/bpmnIcons-APHXDYXF-C0jbCElo.js +0 -0
  290. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +0 -0
  291. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +0 -0
  292. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/chunk-DUW6YSOI-Dgx8z5s3.js +0 -0
  293. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/chunk-J5ZVWO5B-oDCd-gWO.js +0 -0
  294. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +0 -0
  295. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/chunk-NGNAAXSQ-DI_UYJZ4.js +0 -0
  296. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/chunk-XXDRQBXY-i7MKP1NY.js +0 -0
  297. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +0 -0
  298. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/cose-bilkent-JH36ORCC-C6J2IoHg.js +0 -0
  299. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/cynefin-EF2NZ3EQ-lPUjyvIZ.js +0 -0
  300. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/cytoscape.esm-nTrd5EVq.js +0 -0
  301. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/d3-scale-CElPUUud.js +0 -0
  302. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/d3-selection-COWvaQNI.js +0 -0
  303. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/dist-DdXDFcej.js +0 -0
  304. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/eventmodeling-K75KTNOO-BEvQBdS3.js +0 -0
  305. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/get-Jkx-poUl.js +0 -0
  306. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/get-slot-6kXJmSMP.js +0 -0
  307. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/gitGraph-VSP46ZUC-DPePhKd7.js +0 -0
  308. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/graphlib-C-M0B7mD.js +0 -0
  309. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/happens-in-D4nrdV77.js +0 -0
  310. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/info-OHQRW6UA-FXs-3RzV.js +0 -0
  311. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/isArrayLikeObject-DDw98r_w.js +0 -0
  312. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/katex-MEuSR36T.js +0 -0
  313. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/map-qc1plvxH.js +0 -0
  314. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/merge-DVfkhdQt.js +0 -0
  315. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/mermaid-parser.core-gWF4TbpQ.js +0 -0
  316. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/packet-JDAUHWVQ-DWI00mii.js +0 -0
  317. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/pageLoad-86LfyLdt.js +0 -0
  318. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/pie-XZMESJXO-mEep_piW.js +0 -0
  319. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/preload-helper-BSZHtiEo.js +0 -0
  320. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/radar-ABXABTNO-Co9rsjbw.js +0 -0
  321. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/railroad-I3PHUGI6-_QD7qyEP.js +0 -0
  322. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/railroad-abnf-LNEFI6M7-Dya2h1Ax.js +0 -0
  323. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/railroad-ebnf-DWYD2UWJ-xXJLDf9V.js +0 -0
  324. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/railroad-peg-JR7BVNR7-CCnFE6SM.js +0 -0
  325. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/rolldown-runtime-COiEfhsA.js +0 -0
  326. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/rough.esm-Dy-Kn_BL.js +0 -0
  327. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/sizeCapture-INFHLROL-3uHXrFqA.js +0 -0
  328. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/treeView-D4JQ5SDB-v1jaVIUB.js +0 -0
  329. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/treemap-SAJKECNS-DNI-q7O8.js +0 -0
  330. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/useReplacePrompt-g2-2SknS.css +0 -0
  331. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/assets/wardley-7MLQ67FV-B8BqdR-s.js +0 -0
  332. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/favicon.png +0 -0
  333. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/fonts/MonaspaceNeon-Bold.woff2 +0 -0
  334. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/fonts/MonaspaceNeon-Regular.woff2 +0 -0
  335. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/fonts/MonaspaceNeon-Variable.woff2 +0 -0
  336. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/icon-192.png +0 -0
  337. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/icon-512-maskable.png +0 -0
  338. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/icon-512.png +0 -0
  339. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/logo.png +0 -0
  340. {sshler-1.2.0 → sshler-1.3.0}/sshler/static/dist/manifest.webmanifest +0 -0
  341. {sshler-1.2.0 → sshler-1.3.0}/sshler/terminal/__init__.py +0 -0
  342. {sshler-1.2.0 → sshler-1.3.0}/sshler/terminal/conpty.py +0 -0
  343. {sshler-1.2.0 → sshler-1.3.0}/sshler/terminal/local.py +0 -0
  344. {sshler-1.2.0 → sshler-1.3.0}/sshler/terminal/pump.py +0 -0
  345. {sshler-1.2.0 → sshler-1.3.0}/sshler/terminal/remote.py +0 -0
  346. {sshler-1.2.0 → sshler-1.3.0}/sshler/terminal/transport.py +0 -0
  347. {sshler-1.2.0 → sshler-1.3.0}/sshler/tmux.py +0 -0
  348. {sshler-1.2.0 → sshler-1.3.0}/sshler/validation.py +0 -0
  349. {sshler-1.2.0 → sshler-1.3.0}/sshler/win_terminal_registry.py +0 -0
  350. {sshler-1.2.0 → sshler-1.3.0}/sshler/winpty_proc.py +0 -0
  351. {sshler-1.2.0 → sshler-1.3.0}/sshler.egg-info/dependency_links.txt +0 -0
  352. {sshler-1.2.0 → sshler-1.3.0}/sshler.egg-info/entry_points.txt +0 -0
  353. {sshler-1.2.0 → sshler-1.3.0}/sshler.egg-info/requires.txt +0 -0
  354. {sshler-1.2.0 → sshler-1.3.0}/sshler.egg-info/top_level.txt +0 -0
  355. {sshler-1.2.0 → sshler-1.3.0}/tests/test_api_artifacts.py +0 -0
  356. {sshler-1.2.0 → sshler-1.3.0}/tests/test_api_diff.py +0 -0
  357. {sshler-1.2.0 → sshler-1.3.0}/tests/test_api_progress.py +0 -0
  358. {sshler-1.2.0 → sshler-1.3.0}/tests/test_api_v1.py +0 -0
  359. {sshler-1.2.0 → sshler-1.3.0}/tests/test_archive.py +0 -0
  360. {sshler-1.2.0 → sshler-1.3.0}/tests/test_archive_existing_names.py +0 -0
  361. {sshler-1.2.0 → sshler-1.3.0}/tests/test_artifacts.py +0 -0
  362. {sshler-1.2.0 → sshler-1.3.0}/tests/test_basic.py +0 -0
  363. {sshler-1.2.0 → sshler-1.3.0}/tests/test_batch_ops.py +0 -0
  364. {sshler-1.2.0 → sshler-1.3.0}/tests/test_box_files_contract.py +0 -0
  365. {sshler-1.2.0 → sshler-1.3.0}/tests/test_box_program_failure_reasons.py +0 -0
  366. {sshler-1.2.0 → sshler-1.3.0}/tests/test_box_runner_contract.py +0 -0
  367. {sshler-1.2.0 → sshler-1.3.0}/tests/test_claude_sessions.py +0 -0
  368. {sshler-1.2.0 → sshler-1.3.0}/tests/test_cli_artifacts.py +0 -0
  369. {sshler-1.2.0 → sshler-1.3.0}/tests/test_cli_imports.py +0 -0
  370. {sshler-1.2.0 → sshler-1.3.0}/tests/test_cli_progress.py +0 -0
  371. {sshler-1.2.0 → sshler-1.3.0}/tests/test_cli_stop.py +0 -0
  372. {sshler-1.2.0 → sshler-1.3.0}/tests/test_client_address.py +0 -0
  373. {sshler-1.2.0 → sshler-1.3.0}/tests/test_command_injection.py +0 -0
  374. {sshler-1.2.0 → sshler-1.3.0}/tests/test_config.py +0 -0
  375. {sshler-1.2.0 → sshler-1.3.0}/tests/test_database_indexes.py +0 -0
  376. {sshler-1.2.0 → sshler-1.3.0}/tests/test_dev_workflow.py +0 -0
  377. {sshler-1.2.0 → sshler-1.3.0}/tests/test_existing_name_rule.py +0 -0
  378. {sshler-1.2.0 → sshler-1.3.0}/tests/test_failure_answers.py +0 -0
  379. {sshler-1.2.0 → sshler-1.3.0}/tests/test_failure_reasons.py +0 -0
  380. {sshler-1.2.0 → sshler-1.3.0}/tests/test_fake_tmux.py +0 -0
  381. {sshler-1.2.0 → sshler-1.3.0}/tests/test_files_folder_zip_remote.py +0 -0
  382. {sshler-1.2.0 → sshler-1.3.0}/tests/test_files_upload_local.py +0 -0
  383. {sshler-1.2.0 → sshler-1.3.0}/tests/test_force_kill.py +0 -0
  384. {sshler-1.2.0 → sshler-1.3.0}/tests/test_git_refs.py +0 -0
  385. {sshler-1.2.0 → sshler-1.3.0}/tests/test_grep.py +0 -0
  386. {sshler-1.2.0 → sshler-1.3.0}/tests/test_httpx_ws.py +0 -0
  387. {sshler-1.2.0 → sshler-1.3.0}/tests/test_keep_both.py +0 -0
  388. {sshler-1.2.0 → sshler-1.3.0}/tests/test_local_folder_copy.py +0 -0
  389. {sshler-1.2.0 → sshler-1.3.0}/tests/test_local_git_runs.py +0 -0
  390. {sshler-1.2.0 → sshler-1.3.0}/tests/test_origin_csrf.py +0 -0
  391. {sshler-1.2.0 → sshler-1.3.0}/tests/test_page_failure_reasons.py +0 -0
  392. {sshler-1.2.0 → sshler-1.3.0}/tests/test_ping_websocket.py +0 -0
  393. {sshler-1.2.0 → sshler-1.3.0}/tests/test_platform_support.py +0 -0
  394. {sshler-1.2.0 → sshler-1.3.0}/tests/test_ptyspawn.py +0 -0
  395. {sshler-1.2.0 → sshler-1.3.0}/tests/test_rate_limit.py +0 -0
  396. {sshler-1.2.0 → sshler-1.3.0}/tests/test_rate_limit_middleware.py +0 -0
  397. {sshler-1.2.0 → sshler-1.3.0}/tests/test_recovery.py +0 -0
  398. {sshler-1.2.0 → sshler-1.3.0}/tests/test_remote_git_info_quoting.py +0 -0
  399. {sshler-1.2.0 → sshler-1.3.0}/tests/test_remote_home_callers.py +0 -0
  400. {sshler-1.2.0 → sshler-1.3.0}/tests/test_remote_owners.py +0 -0
  401. {sshler-1.2.0 → sshler-1.3.0}/tests/test_remote_program_checks.py +0 -0
  402. {sshler-1.2.0 → sshler-1.3.0}/tests/test_remote_tilde_routes.py +0 -0
  403. {sshler-1.2.0 → sshler-1.3.0}/tests/test_require_token.py +0 -0
  404. {sshler-1.2.0 → sshler-1.3.0}/tests/test_route_failure_reasons.py +0 -0
  405. {sshler-1.2.0 → sshler-1.3.0}/tests/test_search.py +0 -0
  406. {sshler-1.2.0 → sshler-1.3.0}/tests/test_serve_token_cache.py +0 -0
  407. {sshler-1.2.0 → sshler-1.3.0}/tests/test_session_auth.py +0 -0
  408. {sshler-1.2.0 → sshler-1.3.0}/tests/test_session_name_parity.py +0 -0
  409. {sshler-1.2.0 → sshler-1.3.0}/tests/test_snapshot_loop_settings.py +0 -0
  410. {sshler-1.2.0 → sshler-1.3.0}/tests/test_snippets.py +0 -0
  411. {sshler-1.2.0 → sshler-1.3.0}/tests/test_ssh.py +0 -0
  412. {sshler-1.2.0 → sshler-1.3.0}/tests/test_ssh_connection_leaks.py +0 -0
  413. {sshler-1.2.0 → sshler-1.3.0}/tests/test_ssh_loopback.py +0 -0
  414. {sshler-1.2.0 → sshler-1.3.0}/tests/test_ssh_pool_age.py +0 -0
  415. {sshler-1.2.0 → sshler-1.3.0}/tests/test_state_store.py +0 -0
  416. {sshler-1.2.0 → sshler-1.3.0}/tests/test_stats_stream.py +0 -0
  417. {sshler-1.2.0 → sshler-1.3.0}/tests/test_terminal_endings.py +0 -0
  418. {sshler-1.2.0 → sshler-1.3.0}/tests/test_terminal_teardown.py +0 -0
  419. {sshler-1.2.0 → sshler-1.3.0}/tests/test_terminal_transport_contract.py +0 -0
  420. {sshler-1.2.0 → sshler-1.3.0}/tests/test_tmux_subprocess.py +0 -0
  421. {sshler-1.2.0 → sshler-1.3.0}/tests/test_tmux_window_list.py +0 -0
  422. {sshler-1.2.0 → sshler-1.3.0}/tests/test_tunnels.py +0 -0
  423. {sshler-1.2.0 → sshler-1.3.0}/tests/test_websocket.py +0 -0
  424. {sshler-1.2.0 → sshler-1.3.0}/tests/test_win_terminal_registry.py +0 -0
  425. {sshler-1.2.0 → sshler-1.3.0}/tests/test_windows_terminal.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sshler
3
- Version: 1.2.0
3
+ Version: 1.3.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
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
 
6
6
  [project]
7
7
  name = "sshler"
8
- version = "1.2.0"
8
+ version = "1.3.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"
@@ -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())
@@ -7,6 +7,7 @@ import contextlib
7
7
  import hashlib
8
8
  import hmac
9
9
  import logging
10
+ from dataclasses import dataclass
10
11
  from urllib.parse import urlparse
11
12
 
12
13
  from fastapi import WebSocket
@@ -61,15 +62,54 @@ def origin_base(origin: str) -> str:
61
62
  return f"{parsed.scheme}://{parsed.netloc}"
62
63
 
63
64
 
64
- def websocket_refusal(websocket: WebSocket) -> tuple[int, str] | None:
65
+ @dataclass(frozen=True)
66
+ class Refusal:
67
+ """Why a socket is refused, and how.
68
+
69
+ ``before_handshake`` is True only for a request whose Origin is present and not
70
+ allowed: such a socket is never upgraded (the server answers HTTP 403, and the
71
+ code and reason go no further than the log). Every other refusal is accepted and
72
+ closed at once, so the client receives ``code`` and ``reason``; nothing is read
73
+ from it first.
74
+ """
75
+
76
+ code: int
77
+ reason: str
78
+ before_handshake: bool = False
79
+
80
+
81
+ def _foreign_origin(websocket: WebSocket, cli_settings, app_settings: SshlerSettings) -> bool:
82
+ """True when the request carries an Origin header that is not allowed (``null`` too)."""
83
+ if not app_settings.origin_check_enabled:
84
+ return False
85
+ origin = websocket.headers.get("origin")
86
+ if origin is None:
87
+ return False
88
+ try:
89
+ listed = origin_base(origin) in allowed_origins(cli_settings, app_settings)
90
+ except ValueError:
91
+ # An Origin `urlparse` rejects (``http://[``) is not any listed origin.
92
+ listed = False
93
+ if listed:
94
+ return False
95
+ logger.warning("[Security] WebSocket refused: origin %r is not allowed", origin)
96
+ return True
97
+
98
+
99
+ def websocket_refusal(websocket: WebSocket) -> Refusal | None:
65
100
  """Decide whether a socket may be opened; None means it may.
66
101
 
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
102
+ The code is chosen in this order: credentials (Basic header, else a live session
69
103
  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.
104
+ ``x-sshler-token`` header) gives 4403 "Invalid token"; an Origin header that is
105
+ present and not allowed gives 4403 "Invalid origin". A request without an Origin
106
+ header is not a browser and passes, as for a POST. ``origin_check_enabled`` turns
107
+ the Origin check off.
108
+
109
+ How the socket is refused depends on the Origin alone: a present Origin that is not
110
+ allowed makes every refusal ``before_handshake``, whatever else is wrong with the
111
+ request, so a cross-site page never gets an upgraded socket. Pass the refusal to
112
+ ``refuse``.
73
113
 
74
114
  A socket let in by a session cookie carries that session's id in
75
115
  ``websocket.state.session_id`` for ``hold_socket``; one let in otherwise (a good
@@ -78,6 +118,7 @@ def websocket_refusal(websocket: WebSocket) -> tuple[int, str] | None:
78
118
  cli_settings = websocket.app.state.settings
79
119
  app_settings = get_app_settings()
80
120
  websocket.state.session_id = None
121
+ foreign = _foreign_origin(websocket, cli_settings, app_settings)
81
122
 
82
123
  if cli_settings.auth_manager:
83
124
  authenticated = False
@@ -91,25 +132,33 @@ def websocket_refusal(websocket: WebSocket) -> tuple[int, str] | None:
91
132
  websocket.state.session_id = cookie_sid
92
133
  if not authenticated:
93
134
  logger.warning("[Connection] WebSocket refused: no valid credentials")
94
- return CLOSE_UNAUTHORIZED, "Unauthorized"
135
+ return Refusal(CLOSE_UNAUTHORIZED, "Unauthorized", before_handshake=foreign)
95
136
 
96
137
  if cli_settings.csrf_token:
97
138
  supplied = websocket.query_params.get("token") or websocket.headers.get("x-sshler-token")
98
139
  if not token_matches(supplied, cli_settings.csrf_token):
99
140
  logger.warning("[Connection] WebSocket refused: invalid token")
100
- return CLOSE_FORBIDDEN, "Invalid token"
141
+ return Refusal(CLOSE_FORBIDDEN, "Invalid token", before_handshake=foreign)
101
142
 
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"
143
+ if foreign:
144
+ return Refusal(CLOSE_FORBIDDEN, "Invalid origin", before_handshake=True)
109
145
 
110
146
  return None
111
147
 
112
148
 
149
+ async def refuse(websocket: WebSocket, refusal: Refusal) -> None:
150
+ """Close a socket that is not yet accepted, as *refusal* says.
151
+
152
+ Before the handshake: closed unaccepted (the server answers HTTP 403). Otherwise
153
+ accepted and closed at once with the code and reason, so a browser sees them (a
154
+ close before the accept reaches it as 1006 with no reason). Nothing is read from
155
+ the socket, and no task or state is started for it.
156
+ """
157
+ if not refusal.before_handshake:
158
+ await websocket.accept()
159
+ await websocket.close(code=refusal.code, reason=refusal.reason)
160
+
161
+
113
162
  class _Unheld:
114
163
  """The place of a socket that belongs to no session: nothing to release."""
115
164
 
@@ -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:
@@ -4,6 +4,7 @@ import asyncio
4
4
  import logging
5
5
  import os
6
6
  import platform
7
+ import re
7
8
  import shutil
8
9
  import subprocess
9
10
  from pathlib import Path, PureWindowsPath
@@ -111,6 +112,19 @@ def local_path_form(path: str | os.PathLike[str]) -> str:
111
112
  return os.fspath(path)
112
113
 
113
114
 
115
+ _BARE_DRIVE = re.compile(r"[A-Za-z]:")
116
+
117
+
118
+ def _bare_drive_as_root(directory: str) -> str:
119
+ """On a Windows server a bare drive (``C:``) is the drive's root (``C:/``).
120
+
121
+ Windows reads ``Path("C:")`` as the process's current folder on that drive, a
122
+ place no page ever means; a page that asks for ``C:`` wants the drive."""
123
+ if LOCAL_IS_WINDOWS and _BARE_DRIVE.fullmatch(directory):
124
+ return f"{directory}/"
125
+ return directory
126
+
127
+
114
128
  def _normalize_local_path(directory: str | None, allowed_base: str | Path | None = None) -> str:
115
129
  """Normalize and validate local path, resolving symlinks to prevent directory escape.
116
130
 
@@ -133,7 +147,7 @@ def _normalize_local_path(directory: str | None, allowed_base: str | Path | None
133
147
  - For "local" boxes, consider restricting to Path.home() or box.default_dir.
134
148
  """
135
149
  if directory:
136
- base = Path(directory).expanduser()
150
+ base = Path(_bare_drive_as_root(directory)).expanduser()
137
151
  else:
138
152
  base = Path.home()
139
153
 
@@ -1138,7 +1138,12 @@ class LocalFiles:
1138
1138
 
1139
1139
  async def stat(self, path: str) -> PathKind:
1140
1140
  p = Path(path)
1141
- if not p.exists():
1141
+ # Not `p.exists()`: from Python 3.14 it answers False for a path it may not
1142
+ # look at, so a folder sshler cannot read would read as "does not exist".
1143
+ # `stat()` raises PermissionError there on every version.
1144
+ try:
1145
+ p.stat()
1146
+ except (FileNotFoundError, NotADirectoryError):
1142
1147
  return PathKind(exists=False, is_directory=False, is_file=False)
1143
1148
  return PathKind(exists=True, is_directory=p.is_dir(), is_file=p.is_file())
1144
1149
 
@@ -129,6 +129,8 @@ class APITerminalHandshake(BaseModel):
129
129
  ws_url: str
130
130
  token_header: str
131
131
  token: str | None = None
132
+ # Seconds between the server's ping frames: the page's silence limit is a multiple of it.
133
+ ping_interval: float
132
134
 
133
135
 
134
136
  class APIPinToggle(BaseModel):
@@ -2,6 +2,7 @@ from __future__ import annotations
2
2
 
3
3
  from fastapi import APIRouter, Request
4
4
 
5
+ from ..terminal import pump
5
6
  from .dependencies import APIDependencies
6
7
  from .models import APITerminalHandshake
7
8
 
@@ -21,6 +22,7 @@ def get_router(deps: APIDependencies) -> APIRouter:
21
22
  ws_url=ws_url,
22
23
  token_header="X-SSHLER-TOKEN",
23
24
  token=deps.settings.csrf_token,
25
+ ping_interval=pump.PING_INTERVAL,
24
26
  )
25
27
 
26
28
  return router
@@ -1 +1 @@
1
- import{rt as e}from"./_plugin-vue_export-helper-BUbEWP3a.js";import{u as t,y as n}from"./runtime-core.esm-bundler-BrzYnu9e.js";var r=n({name:`Add`,render(){return(()=>{let n=e(`b30130fbba5c5b23`);return n[0]||=t(`svg`,{width:`512`,height:`512`,viewBox:`0 0 512 512`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[t(`path`,{d:`M256 112V400M400 256H112`,stroke:`currentColor`,"stroke-width":`32`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1)})()}});export{r as t};
1
+ import{rt as e}from"./_plugin-vue_export-helper-Bq7SfXed.js";import{u as t,v as n}from"./runtime-core.esm-bundler-Dg-ZVrJt.js";var r=n({name:`Add`,render(){return(()=>{let n=e(`b30130fbba5c5b23`);return n[0]||=t(`svg`,{width:`512`,height:`512`,viewBox:`0 0 512 512`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[t(`path`,{d:`M256 112V400M400 256H112`,stroke:`currentColor`,"stroke-width":`32`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1)})()}});export{r as t};
@@ -1,4 +1,4 @@
1
- import{A as e,Ct as t,Et as n,M as r,P as i,U as a,V as o,W as s,b as c,bt as l,et as u,ft as d,it as f,st as p,wt as m,xt as h,y as g}from"./_plugin-vue_export-helper-BUbEWP3a.js";import{i as _,n as v,r as y,t as b}from"./Warning-DQEelS-y.js";import{St as x,xt as S}from"./index-D1N-ERS4.js";import{D as C,I as w,d as T,it as E,l as D,p as O,u as k,y as A}from"./runtime-core.esm-bundler-BrzYnu9e.js";var j=h(`alert`,`
1
+ import{A as e,Ct as t,Et as n,M as r,P as i,U as a,V as o,W as s,b as c,bt as l,et as u,ft as d,it as f,st as p,wt as m,xt as h,y as g}from"./_plugin-vue_export-helper-Bq7SfXed.js";import{i as _,n as v,r as y,t as b}from"./Warning-DdY8ttUA.js";import{ct as x,lt as S}from"./index-D6bev0bd.js";import{E as C,F as w,d as T,l as E,p as D,rt as O,u as k,v as A}from"./runtime-core.esm-bundler-Dg-ZVrJt.js";var j=h(`alert`,`
2
2
  line-height: var(--n-line-height);
3
3
  border-radius: var(--n-border-radius);
4
4
  position: relative;
@@ -18,7 +18,7 @@ import{A as e,Ct as t,Et as n,M as r,P as i,U as a,V as o,W as s,b as c,bt as l,
18
18
  pointer-events: none;
19
19
  `),m(`closable`,[h(`alert-body`,[t(`title`,`
20
20
  padding-right: 24px;
21
- `)])]),t(`icon`,{color:`var(--n-icon-color)`}),h(`alert-body`,{padding:`var(--n-padding)`},[t(`title`,{color:`var(--n-title-text-color)`}),t(`content`,{color:`var(--n-content-text-color)`})]),S({originalTransition:`transform .3s var(--n-bezier)`,enterToProps:{transform:`scale(1)`},leaveToProps:{transform:`scale(0.9)`}}),t(`icon`,`
21
+ `)])]),t(`icon`,{color:`var(--n-icon-color)`}),h(`alert-body`,{padding:`var(--n-padding)`},[t(`title`,{color:`var(--n-title-text-color)`}),t(`content`,{color:`var(--n-content-text-color)`})]),x({originalTransition:`transform .3s var(--n-bezier)`,enterToProps:{transform:`scale(1)`},leaveToProps:{transform:`scale(0.9)`}}),t(`icon`,`
22
22
  position: absolute;
23
23
  left: 0;
24
24
  top: 0;
@@ -45,4 +45,4 @@ import{A as e,Ct as t,Et as n,M as r,P as i,U as a,V as o,W as s,b as c,bt as l,
45
45
  font-size: 16px;
46
46
  line-height: 19px;
47
47
  font-weight: var(--n-title-font-weight);
48
- `,[l(`& +`,[t(`content`,{marginTop:`9px`})])]),t(`content`,{transition:`color .3s var(--n-bezier)`,fontSize:`var(--n-font-size)`})]),t(`icon`,{transition:`color .3s var(--n-bezier)`})]),M={...a.props,title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:`default`},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function},N=A({name:`Alert`,inheritAttrs:!1,props:M,slots:Object,setup(t){let{mergedClsPrefixRef:r,mergedBorderedRef:i,inlineThemeDisabled:o,mergedRtlRef:c}=d(t),l=a(`Alert`,`-alert`,j,x,t,r),f=e(`Alert`,c,r),p=D(()=>{let{common:{cubicBezierEaseInOut:e},self:r}=l.value,{fontSize:i,borderRadius:a,titleFontWeight:o,lineHeight:s,iconSize:c,iconMargin:d,iconMarginRtl:f,closeIconSize:p,closeBorderRadius:m,closeSize:h,closeMargin:g,closeMarginRtl:_,padding:v}=r,{type:y}=t,{left:b,right:x}=u(d);return{"--n-bezier":e,"--n-color":r[n(`color`,y)],"--n-close-icon-size":p,"--n-close-border-radius":m,"--n-close-color-hover":r[n(`closeColorHover`,y)],"--n-close-color-pressed":r[n(`closeColorPressed`,y)],"--n-close-icon-color":r[n(`closeIconColor`,y)],"--n-close-icon-color-hover":r[n(`closeIconColorHover`,y)],"--n-close-icon-color-pressed":r[n(`closeIconColorPressed`,y)],"--n-icon-color":r[n(`iconColor`,y)],"--n-border":r[n(`border`,y)],"--n-title-text-color":r[n(`titleTextColor`,y)],"--n-content-text-color":r[n(`contentTextColor`,y)],"--n-line-height":s,"--n-border-radius":a,"--n-font-size":i,"--n-title-font-weight":o,"--n-icon-size":c,"--n-icon-margin":d,"--n-icon-margin-rtl":f,"--n-close-size":h,"--n-close-margin":g,"--n-close-margin-rtl":_,"--n-padding":v,"--n-icon-margin-left":b,"--n-icon-margin-right":x}}),m=o?s(`alert`,D(()=>t.type[0]),p,t):void 0,h=E(!0),g=()=>{let{onAfterLeave:e,onAfterHide:n}=t;e&&e(),n&&n()};return{rtlEnabled:f,mergedClsPrefix:r,mergedBordered:i,visible:h,handleCloseClick:()=>{Promise.resolve(t.onClose?.()).then(e=>{e!==!1&&(h.value=!1)})},handleAfterLeave:()=>{g()},mergedTheme:l,cssVars:o?void 0:p,themeClass:m?.themeClass,onRender:m?.onRender}},render(){return this.onRender?.(),w(),T(g,{onAfterLeave:this.handleAfterLeave},{default:()=>{let{mergedClsPrefix:e,$slots:t}=this,n={class:[`${e}-alert`,this.themeClass,this.closable&&`${e}-alert--closable`,this.showIcon&&`${e}-alert--show-icon`,!this.title&&this.closable&&`${e}-alert--right-adjust`,this.rtlEnabled&&`${e}-alert--rtl`],style:this.cssVars,role:`alert`};return this.visible?(w(),O(`div`,C({key:1},C(this.$attrs,n)),[p(()=>this.closable&&(w(),T(c,{clsPrefix:e,class:f(`${e}-alert__close`),onClick:this.handleCloseClick},null,8,[`clsPrefix`,`class`,`onClick`]))),p(()=>this.bordered&&(w(),O(`div`,{class:f(`${e}-alert__border`)},null,2))),p(()=>this.showIcon&&(w(),O(`div`,{class:f(`${e}-alert__icon`),"aria-hidden":`true`},[p(()=>r(t.icon,()=>[(w(),T(o,{clsPrefix:e},{default:()=>{switch(this.type){case`success`:return w(),T(v,{key:3});case`info`:return w(),T(y,{key:4});case`warning`:return w(),T(b,{key:5});case`error`:return w(),T(_,{key:6});default:return null}}},1032,[`clsPrefix`]))]))],2))),k(`div`,{class:f([`${e}-alert-body`,this.mergedBordered&&`${e}-alert-body--bordered`])},[p(()=>i(t.header,t=>{let n=t||this.title;return n?(w(),O(`div`,{key:2,class:f(`${e}-alert-body__title`)},[p(()=>n)],2)):null})),p(()=>t.default&&(w(),O(`div`,{class:f(`${e}-alert-body__content`)},[p(()=>t.default())],2)))],2)],16)):null}},1032,[`onAfterLeave`])}});export{N as t};
48
+ `,[l(`& +`,[t(`content`,{marginTop:`9px`})])]),t(`content`,{transition:`color .3s var(--n-bezier)`,fontSize:`var(--n-font-size)`})]),t(`icon`,{transition:`color .3s var(--n-bezier)`})]),M={...a.props,title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:`default`},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function},N=A({name:`Alert`,inheritAttrs:!1,props:M,slots:Object,setup(t){let{mergedClsPrefixRef:r,mergedBorderedRef:i,inlineThemeDisabled:o,mergedRtlRef:c}=d(t),l=a(`Alert`,`-alert`,j,S,t,r),f=e(`Alert`,c,r),p=E(()=>{let{common:{cubicBezierEaseInOut:e},self:r}=l.value,{fontSize:i,borderRadius:a,titleFontWeight:o,lineHeight:s,iconSize:c,iconMargin:d,iconMarginRtl:f,closeIconSize:p,closeBorderRadius:m,closeSize:h,closeMargin:g,closeMarginRtl:_,padding:v}=r,{type:y}=t,{left:b,right:x}=u(d);return{"--n-bezier":e,"--n-color":r[n(`color`,y)],"--n-close-icon-size":p,"--n-close-border-radius":m,"--n-close-color-hover":r[n(`closeColorHover`,y)],"--n-close-color-pressed":r[n(`closeColorPressed`,y)],"--n-close-icon-color":r[n(`closeIconColor`,y)],"--n-close-icon-color-hover":r[n(`closeIconColorHover`,y)],"--n-close-icon-color-pressed":r[n(`closeIconColorPressed`,y)],"--n-icon-color":r[n(`iconColor`,y)],"--n-border":r[n(`border`,y)],"--n-title-text-color":r[n(`titleTextColor`,y)],"--n-content-text-color":r[n(`contentTextColor`,y)],"--n-line-height":s,"--n-border-radius":a,"--n-font-size":i,"--n-title-font-weight":o,"--n-icon-size":c,"--n-icon-margin":d,"--n-icon-margin-rtl":f,"--n-close-size":h,"--n-close-margin":g,"--n-close-margin-rtl":_,"--n-padding":v,"--n-icon-margin-left":b,"--n-icon-margin-right":x}}),m=o?s(`alert`,E(()=>t.type[0]),p,t):void 0,h=O(!0),g=()=>{let{onAfterLeave:e,onAfterHide:n}=t;e&&e(),n&&n()};return{rtlEnabled:f,mergedClsPrefix:r,mergedBordered:i,visible:h,handleCloseClick:()=>{Promise.resolve(t.onClose?.()).then(e=>{e!==!1&&(h.value=!1)})},handleAfterLeave:()=>{g()},mergedTheme:l,cssVars:o?void 0:p,themeClass:m?.themeClass,onRender:m?.onRender}},render(){return this.onRender?.(),w(),T(g,{onAfterLeave:this.handleAfterLeave},{default:()=>{let{mergedClsPrefix:e,$slots:t}=this,n={class:[`${e}-alert`,this.themeClass,this.closable&&`${e}-alert--closable`,this.showIcon&&`${e}-alert--show-icon`,!this.title&&this.closable&&`${e}-alert--right-adjust`,this.rtlEnabled&&`${e}-alert--rtl`],style:this.cssVars,role:`alert`};return this.visible?(w(),D(`div`,C({key:1},C(this.$attrs,n)),[p(()=>this.closable&&(w(),T(c,{clsPrefix:e,class:f(`${e}-alert__close`),onClick:this.handleCloseClick},null,8,[`clsPrefix`,`class`,`onClick`]))),p(()=>this.bordered&&(w(),D(`div`,{class:f(`${e}-alert__border`)},null,2))),p(()=>this.showIcon&&(w(),D(`div`,{class:f(`${e}-alert__icon`),"aria-hidden":`true`},[p(()=>r(t.icon,()=>[(w(),T(o,{clsPrefix:e},{default:()=>{switch(this.type){case`success`:return w(),T(v,{key:3});case`info`:return w(),T(y,{key:4});case`warning`:return w(),T(b,{key:5});case`error`:return w(),T(_,{key:6});default:return null}}},1032,[`clsPrefix`]))]))],2))),k(`div`,{class:f([`${e}-alert-body`,this.mergedBordered&&`${e}-alert-body--bordered`])},[p(()=>i(t.header,t=>{let n=t||this.title;return n?(w(),D(`div`,{key:2,class:f(`${e}-alert-body__title`)},[p(()=>n)],2)):null})),p(()=>t.default&&(w(),D(`div`,{class:f(`${e}-alert-body__content`)},[p(()=>t.default())],2)))],2)],16)):null}},1032,[`onAfterLeave`])}});export{N as t};
@@ -0,0 +1 @@
1
+ import{A as e,Dt as t,F as n,K as r,L as i,M as a,Ot as o,W as ee,_ as s,d as c,f as l,g as u,i as d,l as f,p,rt as m,tt as te,u as h,ut as g,v as ne}from"./runtime-core.esm-bundler-Dg-ZVrJt.js";import{It as re,Lt as _,n as ie,s as v,t as y}from"./_plugin-vue_export-helper-Bq7SfXed.js";import{At as b,F as x,I as ae,It as S,L as C,b as w,d as T,f as E,ht as D,vt as O,y as k}from"./http-5jBZtK3s.js";import{_ as oe,g as se}from"./useApi-SF8tY_yo-CGxurG4J.js";import{t as A}from"./Alert-DIRa-mLO.js";import{C as j,t as ce}from"./Tag-DuIn8UVX.js";import{F as le,J as ue,S as de,T as fe,X as M,y as pe}from"./index-D6bev0bd.js";import{t as N}from"./Input-DnapVD4O.js";import{r as P}from"./light-Bw_xNwn4.js";import{t as F}from"./Select-Cc7bvkLZ.js";import{t as me}from"./Spin-Dd0ayTqa.js";import{t as he}from"./composables-t62CRov_.js";import{t as ge}from"./PhCopy.vue-FKiTGwf5.js";import{t as _e}from"./PhFolderOpen.vue-DXTvd5o3.js";import{t as I}from"./PhPencilSimple.vue-DEromwmD.js";import{t as L}from"./PhTrash.vue-B_MgjXry.js";import{i as ve}from"./i18n-gQdbl5sJ.js";import{i as R,n as ye}from"./bootstrap-DMKDM0gE.js";var be=R(`artifacts`,()=>{let e=m([]),t=m([]),n=m({}),r=m(new Set),i=m(!1),a=m(null),o=m({}),ee=f(()=>{let e={};for(let n of t.value)(e[n.project_id]??=[]).push(n);for(let t of Object.values(e))t.sort((e,t)=>`${e.group_path}/${e.title||e.source_path}`.localeCompare(`${t.group_path}/${t.title||t.source_path}`));return e});async function s(n,r=o.value){o.value={...r},i.value=!0,a.value=null;try{let[i,a]=await Promise.all([ae(n),C(n,r)]);e.value=[...i.projects].sort((e,t)=>e.name.localeCompare(t.name)),t.value=a.artifacts}catch(e){throw a.value=S(e),e}finally{i.value=!1}}async function c(e,t){if(n.value[e])return n.value[e];r.value.add(e);try{let r=await x(e,t);return n.value[e]=r.pages,r.pages}finally{r.value.delete(e)}}async function l(e,t){r.value.add(e);try{let r=await O(e,t);return n.value[e]=r.pages,r.pages}finally{r.value.delete(e)}}async function u(e,t){let n=await T(e,t);return await s(t),n}async function d(e,t,r){let i=await b(e,t,r);return delete n.value[e],await s(r),i}async function p(e,r){let i=await k(e,r);return delete n.value[e],t.value=t.value.filter(t=>t.id!==e),await s(r),i.removed}async function te(e,t){let n=await E(e,t);return await s(t),n}async function h(e,t,n){let r=await D(e,t,n);return await s(n),r}async function g(e,t){let r=await w(e,!0,t);return n.value={},await s(t),r}return{projects:e,artifacts:t,pagesByArtifact:n,loadingPages:r,loading:i,error:a,artifactsByProject:ee,refresh:s,ensurePages:c,rescan:l,create:u,update:d,remove:p,createProject:te,renameProject:h,removeProject:g}});function z(e){let t=e.replace(/^\[|\]$/g,``).toLowerCase();return t===`localhost`||t===`127.0.0.1`||t===`::1`}function xe(e,t,n=typeof location<`u`?location.hostname:``){return!t||!z(n)?null:`http://127.0.0.1:${t}${e.startsWith(`/`)?e:`/${e}`}`}var Se={class:`artifacts-view`},Ce={class:`page-header`},we={class:`header-actions`},Te={class:`catalog-filters`},Ee={class:`project-header`},De={key:0,class:`group-path`},Oe={class:`artifact-row`},ke={class:`artifact-details`},Ae={class:`artifact-title`},je={class:`artifact-alias`},Me=[`disabled`,`onClick`],Ne={class:`form-grid`},Pe={key:0},Fe={class:`modal-actions`},Ie={class:`modal-actions`},Le=[`src`],B=y(ne({__name:`ArtifactsView`,setup(ne){let y=be(),b=ye(),x=se(),ae=oe(),C=ue(),w=he(),{t:T}=ve(),E=f(()=>b.token||b.payload?.token||null),D=f(()=>b.payload?.artifact_server_port??null),O=f(()=>xe(`/`,D.value)!==null),k=m(!1),R=m(null),z=m(!1),B=m(null),V=m(``),H=m(null),U=m(new Set),W=m(!1),G=m(``),K=m(null),q=m(null),J=null,Y=te({source_path:``,project:``,group_path:``,mode:`auto`,entrypoint:``,title:``,slug:``,mount_path:``}),Re=[{label:T(`artifacts.mode.auto`),value:`auto`},{label:T(`artifacts.mode.file`),value:`file`},{label:T(`artifacts.mode.site`),value:`site`},{label:T(`artifacts.mode.collection`),value:`collection`}],ze=Re.filter(e=>e.value!==`auto`),Be=f(()=>y.projects.map(e=>({label:e.name,value:e.slug}))),X=f(()=>!!(G.value.trim()||K.value||q.value)),Ve=f(()=>X.value?y.projects.filter(e=>y.artifactsByProject[e.id]?.length):y.projects);function He(e){return e.split(/[/\\]/).filter(Boolean).pop()||e}function Ue(e){return e.title||He(e.source_path)}function We(){R.value=null,Object.assign(Y,{source_path:``,project:``,group_path:``,mode:`auto`,entrypoint:``,title:``,slug:``,mount_path:``})}function Ge(){We(),k.value=!0}function Ke(e){R.value=e.id,Object.assign(Y,{source_path:e.source_path,project:e.project_name,group_path:e.group_path,mode:e.mode,entrypoint:e.entrypoint||``,title:e.title||``,slug:e.slug,mount_path:e.mount_path?.replace(/^\//,``)||``}),k.value=!0}async function qe(){W.value=!0;try{let e={source_path:Y.source_path,project:Y.project||void 0,group_path:Y.group_path,mode:Y.mode,entrypoint:R.value?Y.entrypoint||null:Y.entrypoint||void 0,title:R.value?Y.title||null:Y.title||void 0,slug:R.value?Y.slug:Y.slug||void 0,mount_path:R.value?Y.mount_path||null:Y.mount_path||void 0};if(R.value)await y.update(R.value,e,E.value),C.success(T(`artifacts.updated`));else{let t=await y.create(e,E.value);C.success(t.created?T(`artifacts.registered`):T(`artifacts.already_registered`))}k.value=!1,We()}catch(e){C.error(S(e))}finally{W.value=!1}}async function Z(e){let t=new Set(U.value);if(t.has(e.id))t.delete(e.id),U.value=t;else try{await y.ensurePages(e.id,E.value),t.add(e.id),U.value=t}catch(e){C.error(S(e))}}function Q(e){return xe(e,D.value)}function Je(e){let t=Q(e.serve_path);if(!t)return;let n=window.open(t,`_blank`,`noopener,noreferrer`);n&&(n.opener=null)}async function Ye(e){try{let t=await y.ensurePages(e.id,E.value),n=t[0]?Q(t[0].serve_path):null;if(!n){C.warning(T(`artifacts.local_only`));return}H.value=n}catch(e){C.error(S(e))}}async function Xe(e){try{let t=await y.rescan(e.id,E.value);U.value=new Set([...U.value,e.id]),C.success(T(`artifacts.rescanned`,{n:t.length}))}catch(e){C.error(S(e))}}function Ze(e){w.warning({title:T(`artifacts.unregister`),content:T(`artifacts.unregister_confirm`,{title:Ue(e)}),positiveText:T(`artifacts.unregister`),negativeText:T(`common.cancel`),onPositiveClick:async()=>{await y.remove(e.id,E.value),C.success(T(`artifacts.unregistered`))}})}async function Qe(e){let t=Q(e.mount_path||e.alias_path)||`${window.location.origin}/app/artifacts/${e.id}`;await navigator.clipboard.writeText(t),C.success(T(`artifacts.link_copied`))}async function $e(){await y.refresh(E.value,{q:G.value.trim()||void 0,project:K.value||void 0,mode:q.value||void 0})}ee([G,K,q],()=>{J&&clearTimeout(J),J=setTimeout(()=>{$e().catch(e=>{C.error(S(e))})},220)}),e(()=>{J&&clearTimeout(J)});function $(e){B.value=e||null,V.value=e?.name||``,z.value=!0}async function et(){try{B.value?await y.renameProject(B.value.id,V.value,E.value):await y.createProject(V.value,E.value),z.value=!1,C.success(T(`artifacts.project_saved`))}catch(e){C.error(S(e))}}function tt(e){w.warning({title:T(`artifacts.project_remove`),content:T(`artifacts.project_remove_confirm`,{name:e.name,n:e.registration_count}),positiveText:T(`artifacts.project_remove`),negativeText:T(`common.cancel`),onPositiveClick:async()=>{await y.removeProject(e.id,E.value),C.success(T(`artifacts.project_removed`))}})}return a(async()=>{b.payload||await b.bootstrap(),await y.refresh(E.value);let e=typeof x.params.id==`string`?x.params.id:null;if(e){let t=y.artifacts.find(t=>t.id===e);t&&(await Z(t),ae.replace(`/artifacts`))}}),(e,a)=>(n(),p(`div`,Se,[h(`div`,Ce,[h(`div`,null,[h(`h1`,null,o(g(T)(`artifacts.title`)),1),h(`p`,null,o(g(T)(`artifacts.subtitle`)),1)]),h(`div`,we,[s(g(v),{secondary:``,onClick:a[0]||=e=>$()},{icon:r(()=>[s(g(M),null,{default:r(()=>[s(g(_e))]),_:1})]),default:r(()=>[u(` `+o(g(T)(`artifacts.new_project`)),1)]),_:1}),s(g(v),{type:`primary`,onClick:Ge},{icon:r(()=>[s(g(M),null,{default:r(()=>[s(g(pe))]),_:1})]),default:r(()=>[u(` `+o(g(T)(`artifacts.register`)),1)]),_:1})])]),O.value?l(``,!0):(n(),c(g(A),{key:0,type:`warning`,class:`local-alert`},{default:r(()=>[u(o(g(T)(`artifacts.local_only`)),1)]),_:1})),g(y).error?(n(),c(g(A),{key:1,type:`error`,class:`local-alert`},{default:r(()=>[u(o(g(y).error),1)]),_:1})):l(``,!0),h(`div`,Te,[s(g(N),{value:G.value,"onUpdate:value":a[1]||=e=>G.value=e,clearable:``,placeholder:g(T)(`artifacts.search_placeholder`)},{prefix:r(()=>[s(g(M),null,{default:r(()=>[s(g(de))]),_:1})]),_:1},8,[`value`,`placeholder`]),s(g(F),{value:K.value,"onUpdate:value":a[2]||=e=>K.value=e,clearable:``,options:Be.value,placeholder:g(T)(`artifacts.all_projects`)},null,8,[`value`,`options`,`placeholder`]),s(g(F),{value:q.value,"onUpdate:value":a[3]||=e=>q.value=e,clearable:``,options:g(ze),placeholder:g(T)(`artifacts.all_modes`)},null,8,[`value`,`options`,`placeholder`])]),s(g(me),{show:g(y).loading},{default:r(()=>[!g(y).loading&&g(y).projects.length===0?(n(),c(g(j),{key:0,description:g(T)(`artifacts.empty`)},{extra:r(()=>[s(g(v),{type:`primary`,onClick:Ge},{default:r(()=>[u(o(g(T)(`artifacts.register`)),1)]),_:1})]),_:1},8,[`description`])):l(``,!0),!g(y).loading&&X.value&&g(y).artifacts.length===0?(n(),c(g(j),{key:1,description:g(T)(`artifacts.no_matches`)},null,8,[`description`])):l(``,!0),(n(!0),p(d,null,i(Ve.value,e=>(n(),p(`section`,{key:e.id,class:`project-section`},[h(`div`,Ee,[h(`div`,null,[h(`h2`,null,o(e.name),1),h(`span`,null,o(g(T)(`artifacts.registration_count`,{n:e.registration_count})),1)]),h(`div`,null,[s(g(v),{quaternary:``,circle:``,onClick:t=>$(e),title:g(T)(`common.rename`)},{default:r(()=>[s(g(M),null,{default:r(()=>[s(g(I))]),_:1})]),_:1},8,[`onClick`,`title`]),s(g(v),{quaternary:``,circle:``,type:`error`,onClick:t=>tt(e),title:g(T)(`artifacts.project_remove`)},{default:r(()=>[s(g(M),null,{default:r(()=>[s(g(L))]),_:1})]),_:1},8,[`onClick`,`title`])])]),g(y).artifactsByProject[e.id]?.length?l(``,!0):(n(),c(g(j),{key:0,description:g(T)(`artifacts.project_empty`),size:`small`},null,8,[`description`])),(n(!0),p(d,null,i(g(y).artifactsByProject[e.id]||[],e=>(n(),p(`div`,{key:e.id,class:`artifact-indent`,style:t({"--depth":String((e.group_path.match(/\//g)||[]).length)})},[e.group_path?(n(),p(`div`,De,o(e.group_path.split(`/`).join(` › `)),1)):l(``,!0),s(g(ie),{size:`small`,class:`artifact-card`,role:`button`,tabindex:`0`,onClick:t=>Z(e),onKeydown:[re(_(t=>Z(e),[`prevent`]),[`enter`]),re(_(t=>Z(e),[`prevent`]),[`space`])]},{default:r(()=>[h(`div`,Oe,[h(`div`,ke,[h(`div`,Ae,[h(`span`,null,o(Ue(e)),1),s(g(ce),{size:`small`},{default:r(()=>[u(o(e.mode),1)]),_:2},1024),s(g(ce),{size:`small`,type:e.exists?`success`:`error`},{default:r(()=>[u(o(e.exists?g(T)(`artifacts.ready`):g(T)(`artifacts.missing`)),1)]),_:2},1032,[`type`])]),h(`code`,null,o(e.source_path),1),h(`code`,je,o(e.mount_path||e.alias_path),1)]),h(`div`,{class:`artifact-actions`,onClick:a[4]||=_(()=>{},[`stop`]),onKeydown:a[5]||=_(()=>{},[`stop`])},[s(g(v),{size:`small`,onClick:t=>Z(e)},{default:r(()=>[u(o(U.value.has(e.id)?g(T)(`common.close`):g(T)(`artifacts.pages`)),1)]),_:2},1032,[`onClick`]),s(g(v),{size:`small`,disabled:!e.exists,onClick:t=>Ye(e)},{icon:r(()=>[s(g(M),null,{default:r(()=>[s(g(fe))]),_:1})]),default:r(()=>[u(` `+o(g(T)(`common.preview`)),1)]),_:1},8,[`disabled`,`onClick`]),s(g(v),{size:`small`,onClick:t=>Qe(e)},{icon:r(()=>[s(g(M),null,{default:r(()=>[s(g(ge))]),_:1})]),_:1},8,[`onClick`]),s(g(v),{size:`small`,onClick:t=>Xe(e)},{icon:r(()=>[s(g(M),null,{default:r(()=>[s(g(le))]),_:1})]),_:1},8,[`onClick`]),s(g(v),{size:`small`,onClick:t=>Ke(e)},{icon:r(()=>[s(g(M),null,{default:r(()=>[s(g(I))]),_:1})]),_:1},8,[`onClick`]),s(g(v),{size:`small`,type:`error`,onClick:t=>Ze(e)},{icon:r(()=>[s(g(M),null,{default:r(()=>[s(g(L))]),_:1})]),_:1},8,[`onClick`])],32)]),U.value.has(e.id)?(n(),p(`div`,{key:0,class:`page-list`,onClick:a[6]||=_(()=>{},[`stop`]),onKeydown:a[7]||=_(()=>{},[`stop`])},[g(y).loadingPages.has(e.id)?(n(),c(g(me),{key:0,size:`small`})):g(y).pagesByArtifact[e.id]?.length?l(``,!0):(n(),c(g(j),{key:1,description:g(T)(`artifacts.no_pages`),size:`small`},null,8,[`description`])),(n(!0),p(d,null,i(g(y).pagesByArtifact[e.id]||[],t=>(n(),p(`button`,{key:t.relative_path,class:`page-link`,disabled:!O.value,onClick:e=>Je(t)},[h(`span`,null,o(t.title),1),h(`code`,null,o(t.relative_path||e.entrypoint||He(e.source_path)),1)],8,Me))),128))],32)):l(``,!0)]),_:2},1032,[`onClick`,`onKeydown`])],4))),128))]))),128))]),_:1},8,[`show`]),s(g(P),{show:k.value,"onUpdate:show":a[17]||=e=>k.value=e,preset:`card`,title:R.value?g(T)(`artifacts.edit`):g(T)(`artifacts.register`),class:`form-modal`},{default:r(()=>[h(`div`,Ne,[h(`label`,null,[h(`span`,null,o(g(T)(`artifacts.source`)),1),s(g(N),{value:Y.source_path,"onUpdate:value":a[8]||=e=>Y.source_path=e,placeholder:g(T)(`artifacts.source_placeholder`)},null,8,[`value`,`placeholder`])]),h(`label`,null,[h(`span`,null,o(g(T)(`artifacts.project`)),1),s(g(N),{value:Y.project,"onUpdate:value":a[9]||=e=>Y.project=e,placeholder:g(T)(`artifacts.project_hint`)},null,8,[`value`,`placeholder`])]),h(`label`,null,[h(`span`,null,o(g(T)(`artifacts.group`)),1),s(g(N),{value:Y.group_path,"onUpdate:value":a[10]||=e=>Y.group_path=e,placeholder:`design/experiments`},null,8,[`value`])]),h(`label`,null,[h(`span`,null,o(g(T)(`artifacts.mode`)),1),s(g(F),{value:Y.mode,"onUpdate:value":a[11]||=e=>Y.mode=e,options:Re},null,8,[`value`])]),Y.mode===`site`||Y.mode===`auto`?(n(),p(`label`,Pe,[h(`span`,null,o(g(T)(`artifacts.entrypoint`)),1),s(g(N),{value:Y.entrypoint,"onUpdate:value":a[12]||=e=>Y.entrypoint=e,placeholder:`index.html`},null,8,[`value`])])):l(``,!0),h(`label`,null,[h(`span`,null,o(g(T)(`artifacts.title_override`)),1),s(g(N),{value:Y.title,"onUpdate:value":a[13]||=e=>Y.title=e,placeholder:g(T)(`artifacts.title_hint`)},null,8,[`value`,`placeholder`])]),h(`label`,null,[h(`span`,null,o(g(T)(`artifacts.slug`)),1),s(g(N),{value:Y.slug,"onUpdate:value":a[14]||=e=>Y.slug=e,placeholder:`quarterly-summary`},null,8,[`value`])]),h(`label`,null,[h(`span`,null,o(g(T)(`artifacts.mount`)),1),s(g(N),{value:Y.mount_path,"onUpdate:value":a[15]||=e=>Y.mount_path=e,placeholder:`published/reports`},null,8,[`value`])])]),Y.mode===`file`?l(``,!0):(n(),c(g(A),{key:0,type:`info`,class:`scope-note`},{default:r(()=>[u(o(g(T)(`artifacts.directory_scope`)),1)]),_:1})),h(`div`,Fe,[s(g(v),{onClick:a[16]||=e=>k.value=!1},{default:r(()=>[u(o(g(T)(`common.cancel`)),1)]),_:1}),s(g(v),{type:`primary`,loading:W.value,disabled:!Y.source_path,onClick:qe},{default:r(()=>[u(o(g(T)(`common.save`)),1)]),_:1},8,[`loading`,`disabled`])])]),_:1},8,[`show`,`title`]),s(g(P),{show:z.value,"onUpdate:show":a[20]||=e=>z.value=e,preset:`card`,title:B.value?g(T)(`artifacts.rename_project`):g(T)(`artifacts.new_project`),class:`project-modal`},{default:r(()=>[s(g(N),{value:V.value,"onUpdate:value":a[18]||=e=>V.value=e,placeholder:g(T)(`artifacts.project`)},null,8,[`value`,`placeholder`]),h(`div`,Ie,[s(g(v),{onClick:a[19]||=e=>z.value=!1},{default:r(()=>[u(o(g(T)(`common.cancel`)),1)]),_:1}),s(g(v),{type:`primary`,disabled:!V.value.trim(),onClick:et},{default:r(()=>[u(o(g(T)(`common.save`)),1)]),_:1},8,[`disabled`])])]),_:1},8,[`show`,`title`]),s(g(P),{show:!!H.value,preset:`card`,title:g(T)(`artifacts.preview_title`),class:`preview-modal`,"onUpdate:show":a[21]||=e=>{e||(H.value=null)}},{default:r(()=>[H.value?(n(),p(`iframe`,{key:0,src:H.value,sandbox:`allow-scripts allow-same-origin allow-forms allow-downloads allow-modals allow-popups`,referrerpolicy:`no-referrer`,class:`artifact-frame`},null,8,Le)):l(``,!0)]),_:1},8,[`show`,`title`])]))}}),[[`__scopeId`,`data-v-78313e8c`]]);export{B as default};
@@ -0,0 +1 @@
1
+ .artifacts-view[data-v-78313e8c]{max-width:1180px;margin:0 auto}.page-header[data-v-78313e8c],.project-header[data-v-78313e8c],.artifact-row[data-v-78313e8c],.header-actions[data-v-78313e8c],.artifact-actions[data-v-78313e8c],.modal-actions[data-v-78313e8c]{align-items:center;display:flex}.page-header[data-v-78313e8c],.project-header[data-v-78313e8c],.artifact-row[data-v-78313e8c]{justify-content:space-between;gap:16px}.page-header h1[data-v-78313e8c],.project-header h2[data-v-78313e8c]{margin:0}.page-header p[data-v-78313e8c],.project-header span[data-v-78313e8c]{color:var(--muted);margin:4px 0 0}.header-actions[data-v-78313e8c],.artifact-actions[data-v-78313e8c],.modal-actions[data-v-78313e8c]{flex-wrap:wrap;gap:8px}.local-alert[data-v-78313e8c]{margin:14px 0}.catalog-filters[data-v-78313e8c]{grid-template-columns:minmax(240px,1fr) 220px 180px;gap:10px;margin:16px 0;display:grid}.project-section[data-v-78313e8c]{margin-top:24px}.project-header[data-v-78313e8c]{border-bottom:1px solid var(--stroke);padding:0 4px 10px}.artifact-indent[data-v-78313e8c]{margin:12px 0 0 calc(var(--depth) * 14px)}.group-path[data-v-78313e8c]{color:var(--muted);margin:0 0 4px 8px;font-size:12px}.artifact-card[data-v-78313e8c]{border-left:3px solid var(--accent);cursor:pointer}.artifact-card[data-v-78313e8c]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.artifact-details[data-v-78313e8c]{flex:1;min-width:0}.artifact-title[data-v-78313e8c]{flex-wrap:wrap;align-items:center;gap:8px;font-weight:700;display:flex}.artifact-details code[data-v-78313e8c],.page-link code[data-v-78313e8c]{color:var(--muted);overflow-wrap:anywhere;display:block}.artifact-details .artifact-alias[data-v-78313e8c]{color:var(--accent)}.page-list[data-v-78313e8c]{border-top:1px solid var(--stroke);gap:6px;margin-top:12px;padding-top:12px;display:grid}.page-link[data-v-78313e8c]{text-align:left;border:1px solid var(--stroke);background:var(--panel-bg);color:var(--text);cursor:pointer;border-radius:8px;padding:9px 11px}.page-link[data-v-78313e8c]:hover{border-color:var(--accent)}.page-link[data-v-78313e8c]:disabled{opacity:.5;cursor:not-allowed}.form-modal[data-v-78313e8c]{width:min(680px,92vw)}.project-modal[data-v-78313e8c]{width:min(460px,92vw)}.preview-modal[data-v-78313e8c]{width:min(1200px,96vw)}.form-grid[data-v-78313e8c]{grid-template-columns:1fr 1fr;gap:14px;display:grid}.form-grid label[data-v-78313e8c]{gap:6px;display:grid}.scope-note[data-v-78313e8c]{margin-top:14px}.modal-actions[data-v-78313e8c]{justify-content:flex-end;margin-top:18px}.artifact-frame[data-v-78313e8c]{background:#fff;border:0;border-radius:8px;width:100%;height:min(75vh,820px)}@media (width<=767px){.page-header[data-v-78313e8c],.artifact-row[data-v-78313e8c]{flex-direction:column;align-items:stretch}.form-grid[data-v-78313e8c],.catalog-filters[data-v-78313e8c]{grid-template-columns:1fr}.artifact-indent[data-v-78313e8c]{margin-left:0}}
@@ -0,0 +1 @@
1
+ .page[data-v-08414985]{flex-direction:column;gap:16px;display:flex}.page-header[data-v-08414985]{flex-direction:column;gap:4px;display:flex}.eyebrow[data-v-08414985]{text-transform:uppercase;letter-spacing:.4px;color:var(--muted);margin:0;font-size:12px}.box-grid[data-v-08414985]{grid-template-columns:1fr;gap:12px;display:grid}@media (width>=640px){.box-grid[data-v-08414985]{grid-template-columns:repeat(2,1fr)}}@media (width>=1024px){.box-grid[data-v-08414985]{grid-template-columns:repeat(3,1fr)}}.box-grid__item[data-v-08414985]{min-width:0}.small[data-v-08414985]{font-size:12px}
@@ -0,0 +1 @@
1
+ import{F as e,K as t,L as n,M as r,Ot as i,_ as a,d as o,f as s,g as c,i as l,l as u,p as d,u as f,ut as p,v as m}from"./runtime-core.esm-bundler-Dg-ZVrJt.js";import{t as h}from"./Alert-DIRa-mLO.js";import{n as g,s as _,t as v}from"./_plugin-vue_export-helper-Bq7SfXed.js";import{D as y,G as b,J as x,X as S,_ as C,a as w,h as T,n as E}from"./index-D6bev0bd.js";import{t as D}from"./PhPushPinSimple.vue-BMQpg4HB.js";import{i as O}from"./i18n-gQdbl5sJ.js";import{It as k,Lt as A,a as j}from"./http-5jBZtK3s.js";import{n as M}from"./bootstrap-DMKDM0gE.js";import{t as N}from"./favorites-CPj5Zj-5.js";var P={class:`page`},F={class:`page-header`},I={class:`eyebrow`},L={class:`text-muted`},R={class:`box-grid`},z={class:`card-title`},B={class:`text-muted small`},V=v(m({__name:`BoxesView`,setup(m){let v=M(),V=E(),H=N(),U=x(),{t:W}=O(),G=u(()=>v.token||v.payload?.token||null);async function K(){!v.payload&&!v.loading&&await v.bootstrap(),!V.items.length&&!V.loading&&await V.load(G.value),V.items.length&&H.hydrateFromBoxes(V.items)}function q(e,t){V.setBoxes(V.items.map(n=>n.name===e?{...n,...t}:n))}async function J(e){let t=await H.setPinned(e,G.value);H.error?U.error(H.error):(q(e,{pinned:t}),U.success(W(t?`boxes.pinned`:`boxes.unpinned`)))}async function Y(e,t){let n=!H.isFavorite(e,t),r=await H.setFavorite(e,t,n,G.value);if(H.error){U.error(H.error);return}let i=await H.loadBox(e,G.value);i?q(e,{favorites:i.favorites,pinned:i.pinned}):q(e,{favorites:Array.from(H.favoritesForBox(e).values())}),U.success(W(r?`boxes.favorited`:`boxes.unfavorited`))}async function X(e){let t;try{t=await j(e,G.value)}catch(e){U.error(k(e));return}t.status===`online`?U.info(W(`boxes.status_info`,{status:t.status,latency:String(t.latency_ms||0)})):U.error(A(t))}return r(async()=>{await K()}),(r,u)=>(e(),d(`div`,P,[f(`header`,F,[f(`div`,null,[f(`p`,I,i(p(W)(`boxes.title`)),1),f(`h1`,null,i(p(W)(`boxes.subtitle`)),1),f(`p`,L,i(p(W)(`boxes.description`)),1)])]),f(`div`,R,[(e(!0),d(l,null,n(p(V).items,n=>(e(),d(`div`,{key:n.name,class:`box-grid__item`},[a(p(g),{class:`surface-card`,size:`small`},{default:t(()=>[f(`div`,z,[a(p(S),{size:`16`},{default:t(()=>[a(p(y),{weight:`duotone`})]),_:1}),f(`span`,null,i(p(w)(n.name))+` `+i(n.name),1)]),f(`p`,B,i(n.host)+` • `+i(n.transport),1),a(p(b),{size:`small`,style:{"margin-bottom":`8px`}},{default:t(()=>[a(p(_),{size:`tiny`,type:`primary`,onClick:()=>r.$router.push(`/files?box=${encodeURIComponent(n.name)}`)},{default:t(()=>[a(p(S),{size:`14`},{default:t(()=>[a(p(y),{weight:`duotone`})]),_:1}),c(` `+i(p(W)(`boxes.files`)),1)]),_:1},8,[`onClick`]),a(p(_),{size:`tiny`,type:`primary`,onClick:()=>r.$router.push(`/terminal?box=${encodeURIComponent(n.name)}`)},{default:t(()=>[a(p(S),{size:`14`},{default:t(()=>[a(p(T),{weight:`duotone`})]),_:1}),c(` `+i(p(W)(`boxes.terminal`)),1)]),_:1},8,[`onClick`]),a(p(_),{size:`tiny`,onClick:()=>r.$router.push(`/multi-terminal?box=${encodeURIComponent(n.name)}`)},{default:t(()=>[c(i(p(W)(`boxes.multi`)),1)]),_:1},8,[`onClick`])]),_:2},1024),a(p(b),{size:`small`},{default:t(()=>[a(p(_),{size:`tiny`,secondary:``,onClick:()=>J(n.name)},{default:t(()=>[a(p(S),{size:`14`},{default:t(()=>[a(p(D),{weight:`duotone`})]),_:1}),c(` `+i(p(H).isPinned(n.name)?p(W)(`boxes.unpin`):p(W)(`boxes.pin`)),1)]),_:2},1032,[`onClick`]),a(p(_),{size:`tiny`,secondary:``,onClick:()=>Y(n.name,n.default_dir||`/`)},{default:t(()=>[a(p(S),{size:`14`},{default:t(()=>[a(p(C),{weight:`duotone`})]),_:1}),c(` `+i(p(H).isFavorite(n.name,n.default_dir||`/`)?p(W)(`boxes.unfavorite`):p(W)(`boxes.favorite`)),1)]),_:2},1032,[`onClick`]),a(p(_),{size:`tiny`,quaternary:``,onClick:()=>X(n.name)},{default:t(()=>[c(i(p(W)(`common.status`)),1)]),_:1},8,[`onClick`])]),_:2},1024)]),_:2},1024)]))),128))]),p(V).error?(e(),o(p(h),{key:0,type:`error`,closable:``},{default:t(()=>[c(i(p(V).error),1)]),_:1})):p(H).error?(e(),o(p(h),{key:1,type:`error`,closable:``},{default:t(()=>[c(i(p(H).error),1)]),_:1})):s(``,!0)]))}}),[[`__scopeId`,`data-v-08414985`]]);export{V as default};
@@ -1 +1 @@
1
- import{u as e,y as t}from"./runtime-core.esm-bundler-BrzYnu9e.js";import{rt as n}from"./_plugin-vue_export-helper-BUbEWP3a.js";var r=t({name:`ChevronLeft`,render(){return(()=>{let t=n(`dfe229c2639b2082`);return t[0]||=e(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[e(`path`,{d:`M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z`,fill:`currentColor`})],-1)})()}}),i=t({name:`ChevronRight`,render(){return(()=>{let t=n(`6ab04425f4fcb756`);return t[0]||=e(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[e(`path`,{d:`M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z`,fill:`currentColor`})],-1)})()}});export{r as n,i as t};
1
+ import{u as e,v as t}from"./runtime-core.esm-bundler-Dg-ZVrJt.js";import{rt as n}from"./_plugin-vue_export-helper-Bq7SfXed.js";var r=t({name:`ChevronLeft`,render(){return(()=>{let t=n(`dfe229c2639b2082`);return t[0]||=e(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[e(`path`,{d:`M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z`,fill:`currentColor`})],-1)})()}}),i=t({name:`ChevronRight`,render(){return(()=>{let t=n(`6ab04425f4fcb756`);return t[0]||=e(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[e(`path`,{d:`M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z`,fill:`currentColor`})],-1)})()}});export{r as n,i as t};
@@ -0,0 +1 @@
1
+ .claude-view[data-v-7b63a1a1]{flex-direction:column;gap:12px;max-width:960px;margin:0 auto;padding:8px;display:flex}.claude-view__header[data-v-7b63a1a1]{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.claude-view__title[data-v-7b63a1a1]{align-items:center;gap:8px;display:flex}.claude-view__title h1[data-v-7b63a1a1]{margin:0;font-size:20px;font-weight:600}.claude-view__meta[data-v-7b63a1a1]{align-items:center;gap:12px;font-size:13px;display:flex}.claude-view__count[data-v-7b63a1a1]{opacity:.7}.claude-view__center[data-v-7b63a1a1]{justify-content:center;padding:48px 0;display:flex}.claude-view__hint[data-v-7b63a1a1]{background:var(--n-action-color,color-mix(in srgb, currentColor 8%, transparent));font-family:var(--font-mono);border-radius:4px;padding:4px 8px;display:inline-block}.claude-view__toolbar[data-v-7b63a1a1]{align-items:center;gap:6px;display:flex}.claude-view__filter[data-v-7b63a1a1]{flex:1}.claude-view__groups[data-v-7b63a1a1]{flex-direction:column;display:flex}.claude-group__header[data-v-7b63a1a1]{align-items:center;gap:8px;min-width:0;display:flex}.claude-group__emoji[data-v-7b63a1a1]{border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;font-size:14px;line-height:1;display:inline-flex}.claude-group__name[data-v-7b63a1a1]{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.claude-group__summary[data-v-7b63a1a1]{opacity:.6;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}.claude-row[data-v-7b63a1a1]{align-items:center;gap:12px;padding:2px 0;display:flex}.claude-row__text[data-v-7b63a1a1]{flex:1;min-width:0}.claude-row__title[data-v-7b63a1a1]{text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.claude-row__sub[data-v-7b63a1a1]{flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px;font-size:12px;display:flex}.claude-row__time[data-v-7b63a1a1]{opacity:.65;white-space:nowrap}.claude-row__preview[data-v-7b63a1a1]{opacity:.5;text-overflow:ellipsis;white-space:nowrap;max-width:100%;margin-top:4px;font-size:12px;overflow:hidden}.claude-row__actions[data-v-7b63a1a1]{flex-shrink:0;align-items:center;gap:6px;display:flex}.claude-cmd-pop[data-v-7b63a1a1]{flex-direction:column;gap:8px;display:flex}.claude-cmd-pop__label[data-v-7b63a1a1]{font-size:13px;font-weight:500}.claude-cmd-pop__sub[data-v-7b63a1a1]{opacity:.7;text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.claude-cmd-pop__hint[data-v-7b63a1a1]{opacity:.6;font-size:11px}.claude-cmd-pop__actions[data-v-7b63a1a1]{justify-content:flex-end;gap:8px;margin-top:2px;display:flex}