pocketshell 0.5.9__tar.gz → 0.5.10__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 (431) hide show
  1. {pocketshell-0.5.9 → pocketshell-0.5.10}/PKG-INFO +1 -1
  2. {pocketshell-0.5.9 → pocketshell-0.5.10}/docs/gateway.md +35 -2
  3. {pocketshell-0.5.9 → pocketshell-0.5.10}/docs/tray.md +36 -0
  4. {pocketshell-0.5.9 → pocketshell-0.5.10}/docs/windows-gateway-client.md +4 -5
  5. {pocketshell-0.5.9 → pocketshell-0.5.10}/docs/windows-gateway-private-runtime.md +2 -2
  6. {pocketshell-0.5.9 → pocketshell-0.5.10}/docs/windows-tray-installer.md +2 -1
  7. {pocketshell-0.5.9 → pocketshell-0.5.10}/pyproject.toml +1 -1
  8. pocketshell-0.5.10/release/inputs/pocketshell-link-70f5a4b/README.md +35 -0
  9. pocketshell-0.5.10/release/inputs/pocketshell-link-70f5a4b/SHA256SUMS +1 -0
  10. pocketshell-0.5.10/release/inputs/pocketshell-link-70f5a4b/pocketshell-link-windows-amd64.exe +0 -0
  11. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/release/build_closure.py +1 -1
  12. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/release/build_tray_installer.py +45 -0
  13. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/cli.py +196 -0
  14. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/helper.py +5 -3
  15. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/service_windows.py +9 -0
  16. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tray/app.py +135 -2
  17. pocketshell-0.5.10/src/pocketshell/tray/dialogs.py +112 -0
  18. pocketshell-0.5.10/src/pocketshell/tray/gateway_auth.py +294 -0
  19. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tray_bundle.py +18 -1
  20. pocketshell-0.5.10/tests/gateway/test_gateway_auth_cli.py +210 -0
  21. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_service.py +16 -2
  22. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/release/test_tray_installer.py +48 -0
  23. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/test_bundle.py +38 -0
  24. pocketshell-0.5.10/tests/tray/test_gateway_auth.py +367 -0
  25. {pocketshell-0.5.9 → pocketshell-0.5.10}/uv.lock +1 -1
  26. {pocketshell-0.5.9 → pocketshell-0.5.10}/.gitattributes +0 -0
  27. {pocketshell-0.5.9 → pocketshell-0.5.10}/.gitignore +0 -0
  28. {pocketshell-0.5.9 → pocketshell-0.5.10}/LICENSE +0 -0
  29. {pocketshell-0.5.9 → pocketshell-0.5.10}/README.md +0 -0
  30. {pocketshell-0.5.9 → pocketshell-0.5.10}/docs/account.md +0 -0
  31. {pocketshell-0.5.9 → pocketshell-0.5.10}/docs/architecture.md +0 -0
  32. {pocketshell-0.5.9 → pocketshell-0.5.10}/docs/gateway-distribution.md +0 -0
  33. {pocketshell-0.5.9 → pocketshell-0.5.10}/docs/keys.md +0 -0
  34. {pocketshell-0.5.9 → pocketshell-0.5.10}/docs/link-transport.md +0 -0
  35. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/launcher/go.mod +0 -0
  36. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/launcher/main.go +0 -0
  37. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/verify/context.go +0 -0
  38. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/verify/context_test.go +0 -0
  39. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/verify/context_windows.go +0 -0
  40. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/verify/entry.go +0 -0
  41. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/verify/go.mod +0 -0
  42. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/verify/go.sum +0 -0
  43. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/verify/main.go +0 -0
  44. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/verify/protocol.go +0 -0
  45. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/verify/protocol_test.go +0 -0
  46. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/verify/spawn_test.go +0 -0
  47. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/verify/spawn_windows.go +0 -0
  48. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/verify/verify_other.go +0 -0
  49. {pocketshell-0.5.9 → pocketshell-0.5.10}/native/verify/verify_windows.go +0 -0
  50. {pocketshell-0.5.9 → pocketshell-0.5.10}/pocketshell-tray.spec +0 -0
  51. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/aplexer-fc396/README.md +0 -0
  52. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/aplexer-fc396/SHA256SUMS +0 -0
  53. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/aplexer-fc396/windows-native-fc396.zip +0 -0
  54. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/dossiers/OWNED-BUILD-V26A.json +0 -0
  55. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/dossiers/SHA256SUMS +0 -0
  56. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/dossiers/quiet-build-terminal-fields-addendum.json +0 -0
  57. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/dossiers/quiet-host-source-build-role-handoff.json +0 -0
  58. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/dossiers/transfer-manifest.json +0 -0
  59. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/dossiers/windows-aplexer-msys-backend-source-role-handoff.json +0 -0
  60. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-6cf7ae85/.gitattributes +0 -0
  61. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-6cf7ae85/README.md +0 -0
  62. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-6cf7ae85/SHA256SUMS +0 -0
  63. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-6cf7ae85/guardian.py +0 -0
  64. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-6cf7ae85/native_api.py +0 -0
  65. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-6cf7ae85/policy.py +0 -0
  66. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-e862645d/DERIVATION.diff +0 -0
  67. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-e862645d/README.md +0 -0
  68. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-e862645d/SHA256SUMS +0 -0
  69. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-e862645d/guardian.py +0 -0
  70. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-e862645d/native_api.py +0 -0
  71. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-e862645d/policy.py +0 -0
  72. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-servicing/README.md +0 -0
  73. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-servicing/SHA256SUMS +0 -0
  74. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-servicing/guardian.py +0 -0
  75. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-servicing/native_api.py +0 -0
  76. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/guardian-servicing/policy.py +0 -0
  77. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/msys2-runtime-5a1665c8/SHA256SUMS +0 -0
  78. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/msys2-runtime-5a1665c8/console.cc +0 -0
  79. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/openssh-quiet-e302fe1/NULL-PATH-FIX.md +0 -0
  80. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/openssh-quiet-e302fe1/SHA256SUMS +0 -0
  81. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/openssh-quiet-e302fe1/policy-manifest.json +0 -0
  82. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/openssh-quiet-e302fe1/shell-host.c +0 -0
  83. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/openssh-quiet-e302fe1/w32fd.c +0 -0
  84. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/openssh-quiet-e302fe1/wmain_sshd-auth.c +0 -0
  85. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/openssh-quiet-e302fe1/wmain_sshd-session.c +0 -0
  86. {pocketshell-0.5.9 → pocketshell-0.5.10}/release/inputs/openssh-quiet-e302fe1/wmain_sshd.c +0 -0
  87. {pocketshell-0.5.9 → pocketshell-0.5.10}/scheduler/README.md +0 -0
  88. {pocketshell-0.5.9 → pocketshell-0.5.10}/scheduler/pocketshell-usage-capture.service +0 -0
  89. {pocketshell-0.5.9 → pocketshell-0.5.10}/scheduler/pocketshell-usage-capture.timer +0 -0
  90. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/check-antigravity-contract.py +0 -0
  91. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/check-cgroup-cap-proof.sh +0 -0
  92. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/check-product-tmux-absent.sh +0 -0
  93. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/check-python-ci-lock.sh +0 -0
  94. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/reinstall-box-cli.sh +0 -0
  95. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/release/build_backend_windows.py +0 -0
  96. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/release/private_shell_overlay.py +0 -0
  97. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/release/smoke_tray_bundle.py +0 -0
  98. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/release/tray-installer.nsi +0 -0
  99. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/sync-readme-exit-codes.py +0 -0
  100. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/test-usage-missing-window-mutation.sh +0 -0
  101. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/windows-e2e-sshd-setup.ps1 +0 -0
  102. {pocketshell-0.5.9 → pocketshell-0.5.10}/scripts/windows-gateway-qualify.py +0 -0
  103. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/__init__.py +0 -0
  104. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/__main__.py +0 -0
  105. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/account/__init__.py +0 -0
  106. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/account/broker.py +0 -0
  107. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/account/cli.py +0 -0
  108. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/account/config.py +0 -0
  109. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/account/credentials.py +0 -0
  110. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/account/device.py +0 -0
  111. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/account/errors.py +0 -0
  112. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/account/jsonutil.py +0 -0
  113. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/account/sanitize.py +0 -0
  114. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/__init__.py +0 -0
  115. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/conversations/__init__.py +0 -0
  116. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/conversations/cli.py +0 -0
  117. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/conversations/handoff.py +0 -0
  118. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/conversations/messages.py +0 -0
  119. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/conversations/readers.py +0 -0
  120. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/conversations/resolve.py +0 -0
  121. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/conversations/roots.py +0 -0
  122. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/kind.py +0 -0
  123. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/launch/__init__.py +0 -0
  124. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/launch/cli.py +0 -0
  125. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/launch/command.py +0 -0
  126. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/launch/environment.py +0 -0
  127. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/launch/run.py +0 -0
  128. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/launch/spec.py +0 -0
  129. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/agents/launch/trust.py +0 -0
  130. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/attachments/__init__.py +0 -0
  131. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/attachments/cli.py +0 -0
  132. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/attachments/prune.py +0 -0
  133. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/cards/__init__.py +0 -0
  134. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/cards/cli.py +0 -0
  135. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/cards/paths.py +0 -0
  136. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/cards/push.py +0 -0
  137. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/cards/store.py +0 -0
  138. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/cards/types/__init__.py +0 -0
  139. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/cards/types/checklist.py +0 -0
  140. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/cards/types/note.py +0 -0
  141. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/cards/types/registry.py +0 -0
  142. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/cli.py +0 -0
  143. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/daemon/__init__.py +0 -0
  144. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/daemon/cache.py +0 -0
  145. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/daemon/client.py +0 -0
  146. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/daemon/dispatch.py +0 -0
  147. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/daemon/failures.py +0 -0
  148. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/daemon/lifecycle.py +0 -0
  149. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/daemon/methods.py +0 -0
  150. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/daemon/paths.py +0 -0
  151. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/daemon/protocol.py +0 -0
  152. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/daemon/server.py +0 -0
  153. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/engines/__init__.py +0 -0
  154. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/engines/builtin.py +0 -0
  155. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/engines/cli.py +0 -0
  156. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/engines/harness.py +0 -0
  157. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/engines/registry.py +0 -0
  158. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/engines/spec.py +0 -0
  159. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/env/__init__.py +0 -0
  160. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/env/cli.py +0 -0
  161. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/env/parse.py +0 -0
  162. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/env/store.py +0 -0
  163. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/__init__.py +0 -0
  164. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/client_cli.py +0 -0
  165. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/devices.py +0 -0
  166. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/endpoint.py +0 -0
  167. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/pins.py +0 -0
  168. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/private_endpoint.py +0 -0
  169. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/proxy.py +0 -0
  170. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/service.py +0 -0
  171. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/service_agent_endpoint.py +0 -0
  172. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/service_agent_firstuse.py +0 -0
  173. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/service_agent_install.py +0 -0
  174. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/service_common.py +0 -0
  175. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/service_endpoint.py +0 -0
  176. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/service_hostkey.py +0 -0
  177. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/service_linux.py +0 -0
  178. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/service_task_acl.py +0 -0
  179. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/service_user_agent.py +0 -0
  180. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/service_windows_endpoint.py +0 -0
  181. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/sshcmd.py +0 -0
  182. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/status.py +0 -0
  183. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/tokens.py +0 -0
  184. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/gateway/winssh.py +0 -0
  185. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/github.py +0 -0
  186. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/hooks/__init__.py +0 -0
  187. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/hooks/cli.py +0 -0
  188. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/hooks/handlers.py +0 -0
  189. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/hooks/installers.py +0 -0
  190. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/hooks/paths.py +0 -0
  191. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/hooks/providers/__init__.py +0 -0
  192. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/hooks/providers/claude.py +0 -0
  193. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/hooks/providers/codex.py +0 -0
  194. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/hooks/status.py +0 -0
  195. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/keys/__init__.py +0 -0
  196. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/keys/cli.py +0 -0
  197. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/keys/crypto.py +0 -0
  198. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/keys/prompt.py +0 -0
  199. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/keys/session.py +0 -0
  200. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/keys/sshkeys.py +0 -0
  201. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/keys/store.py +0 -0
  202. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/link/__init__.py +0 -0
  203. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/link/cli.py +0 -0
  204. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/link/client.py +0 -0
  205. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/link/daemon.py +0 -0
  206. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/link/protocol.py +0 -0
  207. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/link/relay.py +0 -0
  208. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/logs/__init__.py +0 -0
  209. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/logs/cli.py +0 -0
  210. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/logs/events.py +0 -0
  211. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/logs/hooks.py +0 -0
  212. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/logs/paths.py +0 -0
  213. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/logs/redact.py +0 -0
  214. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/profiles/__init__.py +0 -0
  215. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/profiles/cli.py +0 -0
  216. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/profiles/discovery.py +0 -0
  217. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/profiles/model.py +0 -0
  218. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/profiles/resolve.py +0 -0
  219. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/push/__init__.py +0 -0
  220. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/push/cli.py +0 -0
  221. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/push/events.py +0 -0
  222. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/push/fcm.py +0 -0
  223. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/push/store.py +0 -0
  224. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/repos/__init__.py +0 -0
  225. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/repos/cli.py +0 -0
  226. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/repos/handlers.py +0 -0
  227. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/repos/local.py +0 -0
  228. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/repos/model.py +0 -0
  229. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/repos/remote.py +0 -0
  230. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/repos/render.py +0 -0
  231. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/runtime/__init__.py +0 -0
  232. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/runtime/aplexer.py +0 -0
  233. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/runtime/cgroups.py +0 -0
  234. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/runtime/console_scripts.py +0 -0
  235. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/runtime/memcap.py +0 -0
  236. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/runtime/sessions.py +0 -0
  237. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/serve.py +0 -0
  238. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/sessions/__init__.py +0 -0
  239. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/sessions/attach.py +0 -0
  240. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/sessions/cli.py +0 -0
  241. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/sessions/create.py +0 -0
  242. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/sessions/kill.py +0 -0
  243. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/sessions/listing.py +0 -0
  244. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/sessions/rename.py +0 -0
  245. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/sessions/warnings.py +0 -0
  246. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tokentls.py +0 -0
  247. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tray/__init__.py +0 -0
  248. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tray/__main__.py +0 -0
  249. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tray/autostart.py +0 -0
  250. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tray/cli.py +0 -0
  251. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tray/icons.py +0 -0
  252. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tray/model.py +0 -0
  253. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tray/single_instance.py +0 -0
  254. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tray/status_client.py +0 -0
  255. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tray_repair.py +0 -0
  256. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tray_supervisor.py +0 -0
  257. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tree/__init__.py +0 -0
  258. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tree/cli.py +0 -0
  259. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tree/daemon.py +0 -0
  260. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tree/model.py +0 -0
  261. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tree/paths.py +0 -0
  262. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tree/storage.py +0 -0
  263. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tree/workspaces/__init__.py +0 -0
  264. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tree/workspaces/cli.py +0 -0
  265. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/tree/workspaces/membership.py +0 -0
  266. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/usage/__init__.py +0 -0
  267. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/usage/capture/__init__.py +0 -0
  268. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/usage/capture/durability.py +0 -0
  269. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/usage/capture/history.py +0 -0
  270. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/usage/capture/paths.py +0 -0
  271. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/usage/capture/quarantine.py +0 -0
  272. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/usage/cli.py +0 -0
  273. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/usage/normalize.py +0 -0
  274. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/usage/quse.py +0 -0
  275. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/usage/reset/__init__.py +0 -0
  276. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/usage/reset/detect.py +0 -0
  277. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/usage/reset/store.py +0 -0
  278. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/windows_security.py +0 -0
  279. {pocketshell-0.5.9 → pocketshell-0.5.10}/src/pocketshell/windows_sessions.py +0 -0
  280. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/__init__.py +0 -0
  281. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/account/test_account_basics.py +0 -0
  282. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/account/test_account_broker.py +0 -0
  283. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/account/test_account_cli.py +0 -0
  284. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/account/test_account_credentials.py +0 -0
  285. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/account/test_account_device_flow.py +0 -0
  286. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/account/test_account_tls.py +0 -0
  287. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/account/test_windows_private_storage.py +0 -0
  288. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/conftest.py +0 -0
  289. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/data/quse-0.0.11-usage.json +0 -0
  290. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/data/quse-0.0.13-usage.json +0 -0
  291. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/data/quse-0.0.15-usage.json +0 -0
  292. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/data/quse-0.0.15-usage.ndjson +0 -0
  293. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/data/quse-0.0.15-usage.provenance.txt +0 -0
  294. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/data/quse-0.0.17-gemini.json +0 -0
  295. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/data/quse-0.0.17-gemini.provenance.txt +0 -0
  296. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/data/quse-0.0.9-usage.json +0 -0
  297. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/data/sshd_anchor/Dockerfile.from-unanchored-base +0 -0
  298. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/docker/link/e2e.sh +0 -0
  299. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/docker/link/e2e_client.py +0 -0
  300. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/docker/link/host_entry.py +0 -0
  301. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/docker/link/relay_entry.py +0 -0
  302. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/fake_broker.py +0 -0
  303. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/fixtures/aplexer/README.md +0 -0
  304. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/fixtures/aplexer/snapshot-agent.json +0 -0
  305. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/fixtures/aplexer/snapshot-crashed-start.json +0 -0
  306. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/fixtures/aplexer/snapshot-liveness-mix.json +0 -0
  307. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/fixtures/aplexer/snapshot-mid-create.json +0 -0
  308. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/fixtures/aplexer/snapshot-post-kill-window.json +0 -0
  309. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/fixtures/aplexer/snapshot-reported-state.json +0 -0
  310. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/fixtures/aplexer/snapshot.json +0 -0
  311. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/agent_harness.py +0 -0
  312. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/conftest.py +0 -0
  313. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/fake_gateway.py +0 -0
  314. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/fakeguardian/go.mod +0 -0
  315. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/fakeguardian/go.sum +0 -0
  316. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/fakeguardian/main.go +0 -0
  317. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/fakelink/main.go +0 -0
  318. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/fixtures/ordinary-v2-authority.schema.json +0 -0
  319. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/fixtures/task-object-authority.ps1 +0 -0
  320. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/gateway_keyblobs.py +0 -0
  321. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_bundled_hostkey.py +0 -0
  322. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_agent_firstuse.py +0 -0
  323. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_agent_install.py +0 -0
  324. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_agent_resume.py +0 -0
  325. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_agent_setup_cli.py +0 -0
  326. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_cli.py +0 -0
  327. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_connect_e2e.py +0 -0
  328. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_devices.py +0 -0
  329. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_endpoint.py +0 -0
  330. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_endpoint_setup.py +0 -0
  331. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_enroll_login.py +0 -0
  332. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_exec_passthrough.py +0 -0
  333. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_helper_metadata.py +0 -0
  334. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_helper_resolution.py +0 -0
  335. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_helper_wheel.py +0 -0
  336. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_pins.py +0 -0
  337. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_proxy.py +0 -0
  338. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_service_endpoint.py +0 -0
  339. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_service_task_acl.py +0 -0
  340. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_service_task_object.py +0 -0
  341. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_ssh.py +0 -0
  342. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_ssh_key.py +0 -0
  343. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_ssh_key_e2e.py +0 -0
  344. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_status.py +0 -0
  345. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_gateway_user_agent.py +0 -0
  346. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_private_endpoint.py +0 -0
  347. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_agent_install_native.py +0 -0
  348. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_aplexer_probe_native.py +0 -0
  349. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_complete_runtime_native.py +0 -0
  350. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_endpoint_keys_native.py +0 -0
  351. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_gateway_e2e.py +0 -0
  352. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_gateway_service_native.py +0 -0
  353. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_gateway_user_agent_native.py +0 -0
  354. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_helper_execution.py +0 -0
  355. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_launcher_quiet_native.py +0 -0
  356. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_release_closure_native.py +0 -0
  357. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_service_private_read.py +0 -0
  358. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_spawn_entry_tree_native.py +0 -0
  359. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_sshcmd.py +0 -0
  360. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_verify_native.py +0 -0
  361. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_windows_winssh_native.py +0 -0
  362. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/test_winssh.py +0 -0
  363. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/gateway/unelevated.py +0 -0
  364. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/keys/conftest.py +0 -0
  365. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/keys/keyhelpers.py +0 -0
  366. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/keys/test_keys_cli.py +0 -0
  367. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/keys/test_keys_crypto.py +0 -0
  368. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/keys/test_keys_store.py +0 -0
  369. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/link/test_adversarial_security.py +0 -0
  370. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/link/test_cli_link.py +0 -0
  371. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/link/test_exec_semantics.py +0 -0
  372. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/link/test_loopback.py +0 -0
  373. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/link/test_protocol.py +0 -0
  374. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/link/test_resilience.py +0 -0
  375. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/link/test_workload_integrity.py +0 -0
  376. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/release/test_build_backend.py +0 -0
  377. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_agent_card_push.py +0 -0
  378. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_agent_log.py +0 -0
  379. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_agents.py +0 -0
  380. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_agents_kind.py +0 -0
  381. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_antigravity.py +0 -0
  382. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_aplexer_contract.py +0 -0
  383. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_aplexer_resolution.py +0 -0
  384. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_attachments.py +0 -0
  385. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_cards.py +0 -0
  386. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_cards_push_notify.py +0 -0
  387. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_cgroup_agents.py +0 -0
  388. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_cli.py +0 -0
  389. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_daemon.py +0 -0
  390. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_daemon_fallback.py +0 -0
  391. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_daemon_wire.py +0 -0
  392. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_engines.py +0 -0
  393. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_env.py +0 -0
  394. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_github.py +0 -0
  395. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_hooks.py +0 -0
  396. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_logs.py +0 -0
  397. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_main.py +0 -0
  398. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_profiles.py +0 -0
  399. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_push.py +0 -0
  400. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_repos.py +0 -0
  401. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_serve.py +0 -0
  402. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_serve_http.py +0 -0
  403. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_session_cgroup_kernel_proof.py +0 -0
  404. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_session_enum.py +0 -0
  405. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_sessions.py +0 -0
  406. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_sessions_attach.py +0 -0
  407. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_sessions_create_routing.py +0 -0
  408. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_sessions_kill.py +0 -0
  409. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_sessions_mem_cap.py +0 -0
  410. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_sessions_rename.py +0 -0
  411. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_sessions_warnings.py +0 -0
  412. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_tree.py +0 -0
  413. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_usage.py +0 -0
  414. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_usage_capture.py +0 -0
  415. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_usage_reset.py +0 -0
  416. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_windows_startup.py +0 -0
  417. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/test_workspaces.py +0 -0
  418. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/__init__.py +0 -0
  419. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/conftest.py +0 -0
  420. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/test_app.py +0 -0
  421. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/test_autostart.py +0 -0
  422. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/test_cli.py +0 -0
  423. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/test_endpoint_native.py +0 -0
  424. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/test_icons.py +0 -0
  425. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/test_model.py +0 -0
  426. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/test_private_replacement.py +0 -0
  427. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/test_repair.py +0 -0
  428. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/test_single_instance.py +0 -0
  429. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/test_status_client.py +0 -0
  430. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/test_supervisor.py +0 -0
  431. {pocketshell-0.5.9 → pocketshell-0.5.10}/tests/tray/test_windows_sessions.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: pocketshell
3
- Version: 0.5.9
3
+ Version: 0.5.10
4
4
  Summary: Unified server-side Python utility for the PocketShell Android and desktop clients.
5
5
  Project-URL: Homepage, https://github.com/PocketShell-io/pocketshell-cli
6
6
  Project-URL: Issues, https://github.com/PocketShell-io/pocketshell-cli/issues
@@ -341,8 +341,11 @@ Refusals before anything is registered:
341
341
 
342
342
  - **Helper trust.** The task runs the exe directly, so its sha256 must be on
343
343
  the reviewed allow-list in `service_windows.ALLOWED_HELPER_SHA256` —
344
- today exactly `f9582de6a3f635ec70e4daaf755479788f788d8d493c3ed1fd58812f555dabe1`
345
- (private qualified build of pocketshell-gateway cd7c6f6). The historical
344
+ today `5672354b647d2ffddf7e69f753b90f1a031d9af7e57ca6d0c3ab002db28cedd8`
345
+ (reproducible build of pocketshell-gateway 70f5a4b, the first with
346
+ `gateway-auth`) and `f9582de6a3f635ec70e4daaf755479788f788d8d493c3ed1fd58812f555dabe1`
347
+ (private qualified build of cd7c6f6, kept so enrolled installs can be
348
+ repaired onto the newer build). The historical
346
349
  8cbeb8f (`57f3a86e…`) and 771c9e1 (`f6e357d8…`) builds are refused by
347
350
  name. Adding a build is a reviewed source change, never a flag or env var.
348
351
  It must also answer `version --json` with protocol `pocketshell-tunnel-v1`.
@@ -447,6 +450,36 @@ client's strict pin parser — deliberately **not** a ready-to-run shell
447
450
  command (a compromised host could otherwise hand you `…; curl evil | sh` to
448
451
  paste). Compare the fingerprint on both ends.
449
452
 
453
+ ### 5.1 Gateway auth policy: `pocketshell gateway auth`
454
+
455
+ Choose which authorized keys gateway SSH accepts on this host (key vault,
456
+ needs a `pocketshell-link` built from pocketshell-gateway `70f5a4b` or later):
457
+
458
+ ```bash
459
+ pocketshell gateway auth show [--json]
460
+ pocketshell gateway auth set --policy host|managed|both [--keys-stdin] [--json] < vault-keys.pub
461
+ ```
462
+
463
+ `host` means `~/.ssh/authorized_keys`, `managed` means a PocketShell-managed
464
+ file of vault public keys (`--keys-stdin` replaces it with authorized_keys
465
+ lines; empty input clears it), and `both` means both. Without a policy the
466
+ private endpoint config decides, as before. A change applies to the next
467
+ connection. Only the private exec endpoint can enforce `managed`. An invalid
468
+ policy refuses connections and never falls back to accepting more keys.
469
+ Private keys, key options and certificates are refused. Run it on the host, or
470
+ over an SSH session you already have. The gateway never relays it, so an
471
+ account token alone cannot add a login key. The helper contract is
472
+ documented in pocketshell-gateway `docs/tunnel.md`.
473
+
474
+ `pocketshell gateway enroll --gateway-auth-policy host|managed|both` sets the
475
+ policy right after a successful enrollment, so the helper checks it against the
476
+ enrolled endpoint. If that step is refused, the host stays enrolled with its
477
+ host keys and the command prints the retry. Without the flag nothing changes
478
+ (`host`). `managed`
479
+ is refused until vault public keys are installed, because no login would work,
480
+ and loopback `--ssh-host` endpoints accept only `host`. The tray shows and
481
+ changes the same setting (docs/tray.md).
482
+
450
483
  ## 6. Docker / local development gateways
451
484
 
452
485
  Against a gateway running locally or in Docker (plain `ws://`, no TLS), the
@@ -96,6 +96,42 @@ Right-clicking (or left-clicking on Windows) the tray icon opens the context men
96
96
  9. **`Start at login`**: Checkbox toggling autostart at user logon.
97
97
  10. **`Quit tray`**: Closes the tray application (does **not** stop the background gateway service).
98
98
 
99
+ After **Sessions**, a **`Key policy: <policy>`** submenu shows which authorized
100
+ keys gateway SSH accepts on this host (key vault). See
101
+ [Gateway key policy](#gateway-key-policy).
102
+
103
+ ### Gateway key policy
104
+
105
+ The submenu runs `pocketshell gateway auth show|set --json`, which wraps
106
+ `pocketshell-link gateway-auth` (pocketshell-gateway `70f5a4b` or later):
107
+
108
+ - **Host keys only**: `~/.ssh/authorized_keys`. This is the default, and an
109
+ enrollment without a policy keeps it.
110
+ - **Vault keys only (managed)**: only the vault public keys installed on this host.
111
+ - **Host keys and vault keys**: both.
112
+
113
+ **Vault keys on this host** lists each managed key as type, `SHA256:`
114
+ fingerprint and comment, never key bytes. Vault public keys normally reach the
115
+ host from the web keys page or a client ("Apply to host"). The tray can also
116
+ import them from the clipboard or a file as authorized_keys lines. An import
117
+ replaces the whole managed set after confirmation. Private keys (anything
118
+ containing `PRIVATE KEY`), key options and certificates are refused before
119
+ anything runs. The host never sees a private key or the vault passphrase.
120
+
121
+ Refusals happen before the change and are explained:
122
+
123
+ - **Windows** gateways use a loopback SSH endpoint, which can only accept the
124
+ host's own keys. The tray shows the policy as `host` and refuses vault-only,
125
+ combined and managed-key imports. Enforcing them needs the private exec
126
+ endpoint (Linux and macOS hosts).
127
+ - **Vault keys only** with no managed keys installed would refuse every login,
128
+ so import keys first, or choose **Host keys and vault keys**.
129
+ - Removing every key while the policy is vault-only is refused for the same reason.
130
+
131
+ The helper validates everything again and fails closed. A change applies to the
132
+ next connection. The gateway never relays this setting, so an account token
133
+ alone cannot add a login key.
134
+
99
135
  ---
100
136
 
101
137
  ## 6. Notifications
@@ -196,11 +196,10 @@ state, the helper's `version`/`show`) uses `CREATE_NO_WINDOW`. Verified on
196
196
  the windows-latest CI runner against the real Task Scheduler with a fake
197
197
  helper (`tests/gateway/test_windows_gateway_service_native.py`).
198
198
 
199
- The CLI's own `gateway run/show/enroll` wrappers still pin the historical
200
- helper digest in the fleet-owned `helper.py`; the service path has its own
201
- allow-list (`service_windows.ALLOWED_HELPER_SHA256`, today only the qualified
202
- cd7c6f6 build `f9582de6…dabe1`). Unifying the two is a pending change for
203
- that file's owner.
199
+ The CLI's own `gateway run/show/enroll/auth` wrappers pin one digest in
200
+ `helper.py` (the 70f5a4b build `5672354b…cedd8`); the service path has its own
201
+ allow-list (`service_windows.ALLOWED_HELPER_SHA256`: that build plus the
202
+ qualified cd7c6f6 build `f9582de6…dabe1`, kept for repairing enrolled installs).
204
203
 
205
204
  ## Pending change in a fleet-owned file
206
205
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  Account/gateway on Windows requires the explicitly pinned private native
4
4
  `pocketshell-link` build from gateway source
5
- 8cbeb8f9593d37bab410e24edc1aa321397a4c3c, SHA256
6
- 57f3a86e2166b079e99479a985fd8cbc56a91260cf3d8dee76c446e60189ac63.
5
+ 70f5a4b9e8ee7461a7eedd8ebcfa18aefab90b9e, SHA256
6
+ 5672354b647d2ffddf7e69f753b90f1a031d9af7e57ca6d0c3ab002db28cedd8.
7
7
  Set `POCKETSHELL_GATEWAY_HELPER` to its absolute .exe path in the protected
8
8
  private runtime. Windows does not discover a helper through PATH or public
9
9
  platform wheels. The digest gate establishes this reviewed artifact; the
@@ -3,7 +3,8 @@
3
3
  The Windows x64 installer belongs to `pocketshell-cli`: the tray uses the CLI's
4
4
  gateway status, enrollment and owner-bound guardian instead of embedding a
5
5
  second gateway implementation in Desktop. It bundles Python, Pillow, pystray,
6
- the reviewed gateway helper, BOTH `a.exe` and `aplexer.exe`, the native aplexer
6
+ the reviewed gateway helper (pocketshell-gateway 70f5a4b, with `gateway-auth`;
7
+ `build_tray_installer.py --helper` swaps it into the BASE closure), BOTH `a.exe` and `aplexer.exe`, the native aplexer
7
8
  client (0.1.13, including `rpc --stdio` protocols 1 and 2), the private OpenSSH endpoint and Git Bash. No Python, uv, Git or aplexer
8
9
  installation is required on the destination, including win35.
9
10
  The installer also includes the standalone PSC Windows x64 package (Node,
@@ -11,7 +11,7 @@ name = "pocketshell"
11
11
  # since the extraction (PocketShell-io/pocketshell#2643): the first
12
12
  # self-governed release is 0.5.5, continuing from the last app-coupled
13
13
  # release 0.5.4 so `uv tool upgrade pocketshell` stays monotonic.
14
- version = "0.5.9"
14
+ version = "0.5.10"
15
15
  description = "Unified server-side Python utility for the PocketShell Android and desktop clients."
16
16
  readme = "README.md"
17
17
  requires-python = ">=3.11"
@@ -0,0 +1,35 @@
1
+ # pocketshell-link 70f5a4b Windows helper (key vault)
2
+
3
+ `pocketshell-link-windows-amd64.exe` is the Windows x64 host helper built from
4
+ pocketshell-gateway `70f5a4b9e8ee7461a7eedd8ebcfa18aefab90b9e` ("Add per-host
5
+ gateway auth policy to the host agent"), the first build with
6
+ `gateway-auth show|set`. sha256
7
+ `5672354b647d2ffddf7e69f753b90f1a031d9af7e57ca6d0c3ab002db28cedd8`,
8
+ 8645120 bytes. `version --json` reports
9
+ `{"version":"git-70f5a4b9e8ee","protocol":"pocketshell-tunnel-v1","commit":"70f5a4b9e8ee7461a7eedd8ebcfa18aefab90b9e"}`.
10
+
11
+ Recipe (reproducible): clean checkout of that commit, Go 1.27.2,
12
+
13
+ ```
14
+ GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -trimpath \
15
+ -ldflags "-s -w -X main.version=git-70f5a4b9e8ee -X main.commit=70f5a4b9e8ee7461a7eedd8ebcfa18aefab90b9e" \
16
+ ./cmd/pocketshell-link
17
+ ```
18
+
19
+ Two independent builds (key-vault W5 in pocketshell-gateway, W8 here)
20
+ produced identical bytes. The same recipe on cd7c6f6a0c7b reproduces the
21
+ previously allow-listed `f9582de6…dabe1`.
22
+
23
+ Pins: `service_windows.ALLOWED_HELPER_SHA256` (next to `f9582de6…`, which
24
+ stays so enrolled installs can be validated and repaired onto this build) and
25
+ `helper.WINDOWS_HELPER_SHA256`. `build_tray_installer.py --helper` replaces the
26
+ BASE closure's helper with this file after checking the digest.
27
+
28
+ Publication review (2026-10-15, `strings -n 6`, 21667 strings): no local or
29
+ user paths (`-trimpath`), no tokens, keys or credentials. Hosts embedded:
30
+ `gateway.pocketshell.io` (public gateway), `accounts.google.com`, the
31
+ production broker issuer `a7sota2qic.execute-api.eu-west-1.amazonaws.com`
32
+ (already public in this repo, `src/pocketshell/account/config.py`), plus Go
33
+ standard library references. Go symbol names include the private
34
+ `PocketShell-io/pocketshell-gateway` module paths, as in every helper already
35
+ shipped inside the public installer. Numeric dotted strings are ASN.1 OIDs.
@@ -0,0 +1 @@
1
+ 5672354b647d2ffddf7e69f753b90f1a031d9af7e57ca6d0c3ab002db28cedd8 pocketshell-link-windows-amd64.exe
@@ -14,7 +14,7 @@ are the same on every build host and at every install location:
14
14
  <release>/guardian/guardian.py role guardian (6cf7ae85…)
15
15
  <release>/guardian/native_api.py role native-api (cab601e2…)
16
16
  <release>/guardian/policy.py role policy (e92bbe02…)
17
- <release>/bin/pocketshell-link.exe role helper (the reviewed helper; f9582de6… for cd7)
17
+ <release>/bin/pocketshell-link.exe role helper (the reviewed helper; 5672354b… for 70f5a4b)
18
18
 
19
19
  Usage:
20
20
  build_closure.py --out DIR --helper EXE --helper-sha256 HEX --helper-version V \
@@ -251,6 +251,44 @@ def stage_private_backend(source, receipt_sha256, root, catalog):
251
251
  return {"receiptSHA256": receipt_sha256, "files": doc["files"], "source": doc["source"]}
252
252
 
253
253
 
254
+ def stage_helper(helper, expected_sha256, version, root, catalog):
255
+ """Replace the BASE closure's pocketshell-link with a reviewed newer build.
256
+
257
+ The digest must be on the Windows allow-list, so the installed guardian
258
+ and wrapper will accept what this installer ships.
259
+ """
260
+ from pocketshell.gateway.helper import WINDOWS_HELPER_SHA256
261
+ from pocketshell.gateway.service_windows import ALLOWED_HELPER_SHA256
262
+
263
+ helper = Path(helper)
264
+ if digest(helper) != expected_sha256:
265
+ raise ValueError("The helper differs from its expected SHA256")
266
+ if expected_sha256 not in ALLOWED_HELPER_SHA256 or expected_sha256 != WINDOWS_HELPER_SHA256:
267
+ raise ValueError("The helper is not the reviewed Windows build pinned by this CLI")
268
+ rows = [row for row in catalog["files"] if row["role"] == "helper"]
269
+ if len(rows) != 1:
270
+ raise ValueError("The base catalog has no single helper")
271
+ target = root / rows[0]["path"]
272
+ if not target.is_file():
273
+ raise ValueError("The base closure has no helper file")
274
+ shutil.copyfile(helper, target)
275
+ catalog["lineage"]["helper"] = {"version": version, "sha256": expected_sha256}
276
+ return {"path": rows[0]["path"], "sha256": expected_sha256, "version": version}
277
+
278
+
279
+ def gateway_auth_probe(helper, timeout=30):
280
+ """Prove the bundled helper answers `gateway-auth show --json`."""
281
+ with tempfile.TemporaryDirectory() as scratch:
282
+ proc = subprocess.run([str(helper), "gateway-auth", "show", "--json", "--config-dir", scratch],
283
+ capture_output=True, timeout=timeout)
284
+ if proc.returncode != 0:
285
+ raise ValueError("The bundled helper does not support gateway-auth")
286
+ doc = json.loads(proc.stdout)
287
+ if doc.get("policy") != "host" or doc.get("source") != "default":
288
+ raise ValueError("The bundled helper reported an unexpected gateway-auth default")
289
+ return doc
290
+
291
+
254
292
  def stage_guardian(root, catalog):
255
293
  from pocketshell.gateway import service_endpoint as ep
256
294
  source = REPO / "release/inputs/guardian-servicing"
@@ -324,6 +362,9 @@ def build(args):
324
362
  entries[rel.as_posix()] = p.read_bytes()
325
363
  write_zip(root / "python/app.zip", entries)
326
364
  stage_guardian(root, catalog)
365
+ helper_receipt = stage_helper(args.helper, args.helper_sha256, args.helper_version, root, catalog)
366
+ if sys.platform == "win32":
367
+ gateway_auth_probe(root / helper_receipt["path"])
327
368
  aplexer_receipt = stage_aplexer(args.aplexer_cli_wheel, args.aplexer_client_wheel, root)
328
369
  commit = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=REPO, text=True).strip()
329
370
  catalog = copy.deepcopy(catalog)
@@ -359,6 +400,7 @@ def build(args):
359
400
  "installerBytes": exe.stat().st_size, "files": len(catalog["files"]),
360
401
  "aplexerSHA256": digest(root / "python/a.exe"), "launcherSHA256": digest(root / "GatewayTray.exe")}
361
402
  receipt["aplexer"] = aplexer_receipt
403
+ receipt["helper"] = helper_receipt
362
404
  receipt["psc"] = psc_receipt
363
405
  receipt["privateEndpoint"] = backend_receipt
364
406
  (out / "installer-receipt.json").write_text(json.dumps(receipt, indent=2))
@@ -378,6 +420,9 @@ if __name__ == "__main__":
378
420
  parser.add_argument("--ssh-sha256", required=True, help="Expected SHA256 of the OpenSSH zip")
379
421
  parser.add_argument("--endpoint-backend", required=True, help="Complete owned private-shell OpenSSH rebuild")
380
422
  parser.add_argument("--endpoint-backend-receipt-sha256", required=True)
423
+ parser.add_argument("--helper", required=True, help="Reviewed pocketshell-link Windows build (release/inputs)")
424
+ parser.add_argument("--helper-sha256", required=True, help="Expected SHA256 of the helper")
425
+ parser.add_argument("--helper-version", required=True, help="Helper version for the catalog lineage")
381
426
  parser.add_argument("--makensis", required=True)
382
427
  parser.add_argument("--out", required=True)
383
428
  build(parser.parse_args())
@@ -10,6 +10,7 @@ keep their own protocol and CLI untouched.
10
10
 
11
11
  from __future__ import annotations
12
12
 
13
+ import sys
13
14
  from typing import Optional, Sequence
14
15
 
15
16
  import click
@@ -257,6 +258,17 @@ def gateway_group() -> None:
257
258
  "its relay.pocketshell.io alias, whatever the URL spelling)."
258
259
  ),
259
260
  )
261
+ @click.option(
262
+ "--gateway-auth-policy",
263
+ type=click.Choice(("host", "managed", "both")),
264
+ default=None,
265
+ help=(
266
+ "Also set which authorized keys gateway SSH accepts (key vault): "
267
+ "`host`, `managed` (vault public keys installed with `gateway auth "
268
+ "set --keys-stdin`) or `both`. Default: unchanged (host). Loopback "
269
+ "--ssh-host endpoints support only `host`."
270
+ ),
271
+ )
260
272
  @click.option("--verbose", is_flag=True, help="Log debug output.")
261
273
  @click.pass_context
262
274
  def enroll(
@@ -272,6 +284,7 @@ def enroll(
272
284
  dev_broker_issuer: Optional[str],
273
285
  verbose: bool,
274
286
  trust_gateway: Optional[str],
287
+ gateway_auth_policy: Optional[str],
275
288
  ) -> None:
276
289
  """Generate the device key, pin the local sshd host key, enroll.
277
290
 
@@ -303,6 +316,11 @@ def enroll(
303
316
  an explicit lab `--server`.
304
317
  """
305
318
  _preflight_dev_broker_issuer(dev_broker_issuer, insecure_dev, server)
319
+ if gateway_auth_policy not in (None, "host") and ssh_host is not None:
320
+ raise click.UsageError(
321
+ f"--gateway-auth-policy {gateway_auth_policy} needs the private exec endpoint; "
322
+ "loopback --ssh-host endpoints support only host"
323
+ )
306
324
  if not token_stdin:
307
325
  _preflight_auto_mint(dev_broker_issuer, insecure_dev, server, trust_gateway)
308
326
  binary = _verified_helper(ctx)
@@ -315,6 +333,8 @@ def enroll(
315
333
  raise private_endpoint.EndpointError("system SSH port 22 is forbidden")
316
334
  except (ValueError, OSError) as exc:
317
335
  raise click.ClickException(str(exc)) from None
336
+ if gateway_auth_policy == "managed":
337
+ _require_managed_keys(binary, config_dir)
318
338
  argv = gateway_helper.build_helper_argv(
319
339
  "enroll",
320
340
  server=server,
@@ -332,6 +352,10 @@ def enroll(
332
352
  re_enroll=re_enroll,
333
353
  )
334
354
  if token_stdin:
355
+ if gateway_auth_policy is not None:
356
+ # The token stays on the inherited stdin; this wrapper never reads it.
357
+ _enroll_then_set_gateway_auth(ctx, binary, argv, None, gateway_auth_policy, config_dir)
358
+ return
335
359
  gateway_helper.exec_helper(binary, argv)
336
360
  return
337
361
  # Logged-in path. Order matters: the helper is resolved and
@@ -346,12 +370,91 @@ def enroll(
346
370
  ) from None
347
371
  except gateway_tokens.GatewayTokenError as exc:
348
372
  raise click.ClickException(str(exc)) from None
373
+ if gateway_auth_policy is not None:
374
+ _enroll_then_set_gateway_auth(ctx, binary, argv, token, gateway_auth_policy, config_dir)
375
+ return
349
376
  try:
350
377
  gateway_helper.exec_helper_with_stdin_token(binary, argv, token)
351
378
  except ValueError as exc:
352
379
  raise click.ClickException(str(exc)) from None
353
380
 
354
381
 
382
+ _ON_WINDOWS = sys.platform == "win32"
383
+
384
+
385
+ def _reverify_windows_helper(binary: str) -> None:
386
+ """Re-check the pinned Windows digest right before each child run, as
387
+ exec_helper does, so a helper swapped after resolution never runs."""
388
+ if not _ON_WINDOWS:
389
+ return
390
+ try:
391
+ gateway_helper._verify_windows_helper(binary)
392
+ except gateway_helper.HelperNotFoundError as exc:
393
+ raise click.ClickException(str(exc)) from None
394
+
395
+
396
+ def _gateway_auth_child(binary: str, argv: list[str]) -> dict:
397
+ """Run one `gateway-auth --json` call as a bounded child; refusals raise."""
398
+ import json
399
+ import subprocess
400
+
401
+ flags = 0x08000000 if sys.platform == "win32" else 0
402
+ _reverify_windows_helper(binary)
403
+ try:
404
+ proc = subprocess.run([binary, *argv], stdin=subprocess.DEVNULL, capture_output=True,
405
+ timeout=60, creationflags=flags)
406
+ except (OSError, subprocess.TimeoutExpired) as exc:
407
+ raise click.ClickException(f"gateway-auth could not run: {type(exc).__name__}") from None
408
+ if proc.returncode != 0:
409
+ lines = proc.stderr.decode("utf-8", "replace").strip().splitlines()
410
+ raise click.ClickException(f"gateway-auth refused: {lines[-1] if lines else proc.returncode}")
411
+ try:
412
+ return json.loads(proc.stdout.decode("utf-8", "replace").strip().splitlines()[-1])
413
+ except (ValueError, IndexError):
414
+ raise click.ClickException("gateway-auth returned no JSON state") from None
415
+
416
+
417
+ def _require_managed_keys(binary: str, config_dir: Optional[str]) -> None:
418
+ """A vault-only policy without managed keys would refuse every login."""
419
+ state = _gateway_auth_child(binary, build_gateway_auth_argv("show", config_dir=config_dir, as_json=True))
420
+ if not state.get("managed_keys"):
421
+ raise click.ClickException(
422
+ "--gateway-auth-policy managed needs vault public keys first (no login would work); "
423
+ "install them with `pocketshell gateway auth set --keys-stdin`, or use `both`"
424
+ )
425
+
426
+
427
+ def _enroll_then_set_gateway_auth(ctx: click.Context, binary: str, argv: list[str], token: Optional[str],
428
+ policy: str, config_dir: Optional[str]) -> None:
429
+ """Enroll as a child, then set the policy against the enrolled endpoint.
430
+
431
+ Without --gateway-auth-policy, enroll still execs the helper. Here the
432
+ helper must validate managed/both against the enrolled exec endpoint's
433
+ sshd config, so it runs after enrollment. A minted token is the child's
434
+ whole stdin. With --token-stdin the child inherits stdin unread.
435
+ """
436
+ import subprocess
437
+
438
+ flags = 0x08000000 if sys.platform == "win32" else 0
439
+ stdin_data = None if token is None else token.encode("ascii") + b"\n"
440
+ _reverify_windows_helper(binary)
441
+ try:
442
+ proc = subprocess.run([binary, *argv], input=stdin_data, creationflags=flags)
443
+ except OSError:
444
+ raise click.ClickException("could not start the gateway helper") from None
445
+ if proc.returncode != 0:
446
+ ctx.exit(proc.returncode)
447
+ try:
448
+ state = _gateway_auth_child(
449
+ binary, build_gateway_auth_argv("set", config_dir=config_dir, policy=policy, as_json=True))
450
+ except click.ClickException as exc:
451
+ raise click.ClickException(
452
+ f"enrolled, but the gateway auth policy was not set ({exc.message}); the host keeps "
453
+ f"its host keys. Retry: pocketshell gateway auth set --policy {policy}"
454
+ ) from None
455
+ click.echo(f"gateway auth policy: {state.get('policy', policy)}", err=True)
456
+
457
+
355
458
  @click.command("run")
356
459
  @click.option(
357
460
  "--server",
@@ -485,9 +588,102 @@ def show(ctx: click.Context, config_dir: Optional[str], host_key: bool) -> None:
485
588
  _run_helper(argv, ctx)
486
589
 
487
590
 
591
+ GATEWAY_AUTH_POLICIES = ("host", "managed", "both")
592
+ _CONFIG_DIR_HELP = "Agent state directory (default: ${XDG_CONFIG_HOME:-$HOME/.config}/pocketshell-link)."
593
+
594
+
595
+ def build_gateway_auth_argv(
596
+ action: str,
597
+ *,
598
+ config_dir: Optional[str] = None,
599
+ policy: Optional[str] = None,
600
+ keys_stdin: bool = False,
601
+ as_json: bool = False,
602
+ ) -> list[str]:
603
+ """Helper argv for ``pocketshell-link gateway-auth show|set``.
604
+
605
+ Like :func:`gateway_helper.build_helper_argv`, only passed options are
606
+ forwarded and values stay single argv elements; the helper owns the
607
+ defaults and validates the policy and keys itself.
608
+ """
609
+ if action not in ("show", "set"):
610
+ raise ValueError(f"unsupported gateway-auth action: {action!r}")
611
+ if action == "show" and (policy is not None or keys_stdin):
612
+ raise ValueError("--policy/--keys-stdin are set-only")
613
+ argv = ["gateway-auth", action]
614
+ if policy is not None:
615
+ argv.extend(["--policy", policy])
616
+ if keys_stdin:
617
+ argv.append("--keys-stdin")
618
+ if as_json:
619
+ argv.append("--json")
620
+ if config_dir is not None:
621
+ argv.extend(["--config-dir", config_dir])
622
+ return argv
623
+
624
+
625
+ @click.group(
626
+ "auth",
627
+ help=(
628
+ "Which authorized keys gateway SSH accepts on this host: `host` "
629
+ "(~/.ssh/authorized_keys), `managed` (PocketShell vault public keys) "
630
+ "or `both`. Without a policy the private endpoint config decides, "
631
+ "as before. Changes apply to the next connection. Run it on the host, "
632
+ "or over an SSH session you already have; the gateway never relays it."
633
+ ),
634
+ )
635
+ def gateway_auth_group() -> None:
636
+ """Per-host gateway auth policy (wraps `pocketshell-link gateway-auth`)."""
637
+
638
+
639
+ @gateway_auth_group.command("show")
640
+ @click.option("--json", "as_json", is_flag=True, help="One JSON line: policy, source, endpoint, managed key fingerprints.")
641
+ @click.option("--config-dir", default=None, metavar="DIR", help=_CONFIG_DIR_HELP)
642
+ @click.pass_context
643
+ def gateway_auth_show(ctx: click.Context, as_json: bool, config_dir: Optional[str]) -> None:
644
+ """Print the policy and the managed key fingerprints (never key bytes)."""
645
+ _run_helper(build_gateway_auth_argv("show", config_dir=config_dir, as_json=as_json), ctx)
646
+
647
+
648
+ @gateway_auth_group.command("set")
649
+ @click.option("--policy", type=click.Choice(GATEWAY_AUTH_POLICIES), default=None, help="New policy (default: keep current).")
650
+ @click.option(
651
+ "--keys-stdin",
652
+ is_flag=True,
653
+ help=(
654
+ "Replace the managed keys with authorized_keys PUBLIC key lines read "
655
+ "from stdin (empty input clears them). Options, certificates and "
656
+ "private keys are refused."
657
+ ),
658
+ )
659
+ @click.option("--json", "as_json", is_flag=True, help="Print the resulting state as one JSON line.")
660
+ @click.option("--config-dir", default=None, metavar="DIR", help=_CONFIG_DIR_HELP)
661
+ @click.pass_context
662
+ def gateway_auth_set(
663
+ ctx: click.Context,
664
+ policy: Optional[str],
665
+ keys_stdin: bool,
666
+ as_json: bool,
667
+ config_dir: Optional[str],
668
+ ) -> None:
669
+ """Set the policy and/or the managed public keys.
670
+
671
+ pocketshell gateway auth set --policy managed --keys-stdin < vault-keys.pub
672
+ """
673
+ if policy is None and not keys_stdin:
674
+ raise click.UsageError("pass --policy and/or --keys-stdin")
675
+ _run_helper(
676
+ build_gateway_auth_argv(
677
+ "set", config_dir=config_dir, policy=policy, keys_stdin=keys_stdin, as_json=as_json
678
+ ),
679
+ ctx,
680
+ )
681
+
682
+
488
683
  gateway_group.add_command(enroll)
489
684
  gateway_group.add_command(run)
490
685
  gateway_group.add_command(show)
686
+ gateway_group.add_command(gateway_auth_group)
491
687
  gateway_group.add_command(gateway_service.service_group)
492
688
 
493
689
 
@@ -77,9 +77,11 @@ from typing import NoReturn, Optional
77
77
 
78
78
  HELPER_NAME = "pocketshell-link"
79
79
  HELPER_ENV_VAR = "POCKETSHELL_GATEWAY_HELPER"
80
- # Private Windows rollout: only the independently reviewed 8cbeb8f build.
81
- # This is an artifact trust gate, separate from the protocol compatibility gate.
82
- WINDOWS_HELPER_SHA256 = "57f3a86e2166b079e99479a985fd8cbc56a91260cf3d8dee76c446e60189ac63"
80
+ # Private Windows rollout: the reproducible build of pocketshell-gateway
81
+ # 70f5a4b (first with `gateway-auth`), also on service_windows'
82
+ # ALLOWED_HELPER_SHA256. This is an artifact trust gate, separate from the
83
+ # protocol compatibility gate.
84
+ WINDOWS_HELPER_SHA256 = "5672354b647d2ffddf7e69f753b90f1a031d9af7e57ca6d0c3ab002db28cedd8"
83
85
 
84
86
  # The installed-wheel route: the delivery pipeline packages the built
85
87
  # helper as platform wheels carrying ONLY the binary at this in-package
@@ -76,6 +76,14 @@ START_CONFIRM_SECONDS = 15.0
76
76
  # f9582de6…dabe1 pocketshell-link-windows-amd64.exe, private qualified
77
77
  # build of pocketshell-gateway cd7c6f6a0c7b (tree 08344a90),
78
78
  # Go 1.27.2, 8488960 bytes (fleet Revision 3, 2026-10-09).
79
+ # Kept so enrolled installs can still be validated and
80
+ # repaired onto the newer build.
81
+ # 5672354b…cedd8 pocketshell-link-windows-amd64.exe, build of
82
+ # pocketshell-gateway 70f5a4b9e8ee (per-host gateway-auth),
83
+ # Go 1.27.2, 8645120 bytes, CGO_ENABLED=0 -trimpath
84
+ # -ldflags "-s -w -X main.version=git-70f5a4b9e8ee -X
85
+ # main.commit=70f5a4b9…"; reproduced byte for byte by two
86
+ # independent builds (key vault W5/W8, 2026-10-15).
79
87
  #
80
88
  # Deliberately ABSENT (historical, must be refused): 8cbeb8f / 57f3a86e…,
81
89
  # 771c9e1 / f6e357d8…. A signed release manifest replaces this list once
@@ -84,6 +92,7 @@ START_CONFIRM_SECONDS = 15.0
84
92
  ALLOWED_HELPER_SHA256 = frozenset(
85
93
  {
86
94
  "f9582de6a3f635ec70e4daaf755479788f788d8d493c3ed1fd58812f555dabe1",
95
+ "5672354b647d2ffddf7e69f753b90f1a031d9af7e57ca6d0c3ab002db28cedd8",
87
96
  }
88
97
  )
89
98
  HISTORICAL_HELPER_SHA256 = {