pocketshell 0.5.14__tar.gz → 0.5.16__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 (464) hide show
  1. {pocketshell-0.5.14 → pocketshell-0.5.16}/PKG-INFO +2 -1
  2. pocketshell-0.5.16/docs/account-intercepting-proxy.md +112 -0
  3. {pocketshell-0.5.14 → pocketshell-0.5.16}/docs/account.md +4 -0
  4. {pocketshell-0.5.14 → pocketshell-0.5.16}/docs/windows-tray-installer.md +25 -5
  5. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/launcher/main.go +10 -6
  6. pocketshell-0.5.16/native/launcher/stdio_windows.go +119 -0
  7. {pocketshell-0.5.14 → pocketshell-0.5.16}/pyproject.toml +4 -1
  8. pocketshell-0.5.16/release/inputs/guardian-login-shell/DERIVATION.diff +11 -0
  9. pocketshell-0.5.16/release/inputs/guardian-login-shell/README.md +14 -0
  10. pocketshell-0.5.16/release/inputs/guardian-login-shell/SHA256SUMS +3 -0
  11. pocketshell-0.5.16/release/inputs/guardian-login-shell/guardian.py +332 -0
  12. pocketshell-0.5.16/release/inputs/guardian-login-shell/policy.py +95 -0
  13. pocketshell-0.5.16/release/inputs/guardian-servicing/native_api.py +94 -0
  14. pocketshell-0.5.16/scripts/ci/tray_terminal_gate.py +111 -0
  15. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/release/build_backend_windows.py +3 -3
  16. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/release/build_tray_installer.py +30 -2
  17. pocketshell-0.5.16/scripts/release/private_shell_overlay.py +386 -0
  18. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/release/update_tray_runtime.py +6 -4
  19. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/account/broker.py +86 -0
  20. pocketshell-0.5.16/src/pocketshell/account/sealed.py +175 -0
  21. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/service_agent_endpoint.py +14 -1
  22. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/service_endpoint.py +8 -1
  23. pocketshell-0.5.16/src/pocketshell/runtime/windows_job.py +102 -0
  24. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray_bundle.py +11 -3
  25. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray_repair.py +6 -6
  26. pocketshell-0.5.16/src/pocketshell/windows_session_lifecycle.py +280 -0
  27. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/windows_sessions.py +5 -1
  28. pocketshell-0.5.16/tests/account/fixtures/sealed-v1-vector.json +21 -0
  29. pocketshell-0.5.16/tests/account/test_account_sealed.py +265 -0
  30. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_endpoint_setup.py +40 -1
  31. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_service_endpoint.py +3 -0
  32. pocketshell-0.5.16/tests/release/test_build_backend.py +223 -0
  33. pocketshell-0.5.16/tests/release/test_private_pty_argv_native.py +130 -0
  34. pocketshell-0.5.16/tests/release/test_private_shell_path_native.py +111 -0
  35. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/release/test_tray_installer.py +41 -0
  36. pocketshell-0.5.16/tests/release/test_tray_memory_oracle.py +80 -0
  37. pocketshell-0.5.16/tests/release/test_tray_terminal_gate.py +238 -0
  38. pocketshell-0.5.16/tests/release/test_windows_tray_terminal_native.py +256 -0
  39. pocketshell-0.5.16/tests/release/tray_endpoint_harness.py +21 -0
  40. pocketshell-0.5.16/tests/release/tray_launcher_probe.py +94 -0
  41. pocketshell-0.5.16/tests/release/tray_memory_oracle.py +130 -0
  42. pocketshell-0.5.16/tests/release/tray_terminal_fixture.py +544 -0
  43. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_aplexer_contract.py +6 -4
  44. pocketshell-0.5.16/tests/test_windows_session_lifecycle.py +290 -0
  45. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_windows_startup.py +18 -0
  46. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/test_bundle.py +45 -0
  47. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/test_repair.py +9 -3
  48. {pocketshell-0.5.14 → pocketshell-0.5.16}/uv.lock +15 -1
  49. pocketshell-0.5.14/scripts/release/private_shell_overlay.py +0 -126
  50. pocketshell-0.5.14/tests/release/test_build_backend.py +0 -128
  51. {pocketshell-0.5.14 → pocketshell-0.5.16}/.gitattributes +0 -0
  52. {pocketshell-0.5.14 → pocketshell-0.5.16}/.gitignore +0 -0
  53. {pocketshell-0.5.14 → pocketshell-0.5.16}/LICENSE +0 -0
  54. {pocketshell-0.5.14 → pocketshell-0.5.16}/README.md +0 -0
  55. {pocketshell-0.5.14 → pocketshell-0.5.16}/SCOPE.md +0 -0
  56. {pocketshell-0.5.14 → pocketshell-0.5.16}/docs/architecture.md +0 -0
  57. {pocketshell-0.5.14 → pocketshell-0.5.16}/docs/bounded-container-sessions.md +0 -0
  58. {pocketshell-0.5.14 → pocketshell-0.5.16}/docs/gateway-distribution.md +0 -0
  59. {pocketshell-0.5.14 → pocketshell-0.5.16}/docs/gateway.md +0 -0
  60. {pocketshell-0.5.14 → pocketshell-0.5.16}/docs/keys.md +0 -0
  61. {pocketshell-0.5.14 → pocketshell-0.5.16}/docs/link-transport.md +0 -0
  62. {pocketshell-0.5.14 → pocketshell-0.5.16}/docs/tray.md +0 -0
  63. {pocketshell-0.5.14 → pocketshell-0.5.16}/docs/vault-enrollment.md +0 -0
  64. {pocketshell-0.5.14 → pocketshell-0.5.16}/docs/windows-gateway-client.md +0 -0
  65. {pocketshell-0.5.14 → pocketshell-0.5.16}/docs/windows-gateway-private-runtime.md +0 -0
  66. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/launcher/go.mod +0 -0
  67. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/verify/context.go +0 -0
  68. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/verify/context_test.go +0 -0
  69. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/verify/context_windows.go +0 -0
  70. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/verify/entry.go +0 -0
  71. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/verify/go.mod +0 -0
  72. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/verify/go.sum +0 -0
  73. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/verify/main.go +0 -0
  74. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/verify/protocol.go +0 -0
  75. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/verify/protocol_test.go +0 -0
  76. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/verify/spawn_test.go +0 -0
  77. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/verify/spawn_windows.go +0 -0
  78. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/verify/verify_other.go +0 -0
  79. {pocketshell-0.5.14 → pocketshell-0.5.16}/native/verify/verify_windows.go +0 -0
  80. {pocketshell-0.5.14 → pocketshell-0.5.16}/pocketshell-tray.spec +0 -0
  81. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/aplexer-fc396/README.md +0 -0
  82. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/aplexer-fc396/SHA256SUMS +0 -0
  83. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/aplexer-fc396/windows-native-fc396.zip +0 -0
  84. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/dossiers/OWNED-BUILD-V26A.json +0 -0
  85. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/dossiers/SHA256SUMS +0 -0
  86. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/dossiers/quiet-build-terminal-fields-addendum.json +0 -0
  87. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/dossiers/quiet-host-source-build-role-handoff.json +0 -0
  88. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/dossiers/transfer-manifest.json +0 -0
  89. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/dossiers/windows-aplexer-msys-backend-source-role-handoff.json +0 -0
  90. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-6cf7ae85/.gitattributes +0 -0
  91. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-6cf7ae85/README.md +0 -0
  92. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-6cf7ae85/SHA256SUMS +0 -0
  93. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-6cf7ae85/guardian.py +0 -0
  94. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-6cf7ae85/native_api.py +0 -0
  95. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-6cf7ae85/policy.py +0 -0
  96. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-e862645d/DERIVATION.diff +0 -0
  97. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-e862645d/README.md +0 -0
  98. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-e862645d/SHA256SUMS +0 -0
  99. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-e862645d/guardian.py +0 -0
  100. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-e862645d/native_api.py +0 -0
  101. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-e862645d/policy.py +0 -0
  102. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-interactive/README.md +0 -0
  103. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-interactive/SHA256SUMS +0 -0
  104. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-interactive/guardian.py +0 -0
  105. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-interactive/native_api.py +0 -0
  106. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-interactive/policy.py +0 -0
  107. {pocketshell-0.5.14/release/inputs/guardian-servicing → pocketshell-0.5.16/release/inputs/guardian-login-shell}/native_api.py +0 -0
  108. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-servicing/README.md +0 -0
  109. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-servicing/SHA256SUMS +0 -0
  110. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-servicing/guardian.py +0 -0
  111. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/guardian-servicing/policy.py +0 -0
  112. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/msys2-runtime-5a1665c8/SHA256SUMS +0 -0
  113. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/msys2-runtime-5a1665c8/console.cc +0 -0
  114. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/openssh-quiet-e302fe1/NULL-PATH-FIX.md +0 -0
  115. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/openssh-quiet-e302fe1/SHA256SUMS +0 -0
  116. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/openssh-quiet-e302fe1/policy-manifest.json +0 -0
  117. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/openssh-quiet-e302fe1/shell-host.c +0 -0
  118. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/openssh-quiet-e302fe1/w32fd.c +0 -0
  119. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/openssh-quiet-e302fe1/wmain_sshd-auth.c +0 -0
  120. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/openssh-quiet-e302fe1/wmain_sshd-session.c +0 -0
  121. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/openssh-quiet-e302fe1/wmain_sshd.c +0 -0
  122. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/pocketshell-link-70f5a4b/README.md +0 -0
  123. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/pocketshell-link-70f5a4b/SHA256SUMS +0 -0
  124. {pocketshell-0.5.14 → pocketshell-0.5.16}/release/inputs/pocketshell-link-70f5a4b/pocketshell-link-windows-amd64.exe +0 -0
  125. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/check-antigravity-contract.py +0 -0
  126. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/check-cgroup-cap-proof.sh +0 -0
  127. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/check-product-tmux-absent.sh +0 -0
  128. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/check-python-ci-lock.sh +0 -0
  129. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/ci/scope_guard.py +0 -0
  130. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/ci/test_scope_guard.py +0 -0
  131. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/reinstall-box-cli.sh +0 -0
  132. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/release/build_closure.py +0 -0
  133. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/release/psc-install.ps1 +0 -0
  134. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/release/smoke_tray_bundle.py +0 -0
  135. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/release/tray-installer.nsi +0 -0
  136. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/sync-readme-exit-codes.py +0 -0
  137. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/test-usage-missing-window-mutation.sh +0 -0
  138. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/windows-e2e-sshd-setup.ps1 +0 -0
  139. {pocketshell-0.5.14 → pocketshell-0.5.16}/scripts/windows-gateway-qualify.py +0 -0
  140. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/__init__.py +0 -0
  141. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/__main__.py +0 -0
  142. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/account/__init__.py +0 -0
  143. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/account/cli.py +0 -0
  144. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/account/config.py +0 -0
  145. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/account/credentials.py +0 -0
  146. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/account/device.py +0 -0
  147. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/account/errors.py +0 -0
  148. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/account/jsonutil.py +0 -0
  149. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/account/sanitize.py +0 -0
  150. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/account/shared_vault.py +0 -0
  151. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/agents/__init__.py +0 -0
  152. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/agents/conversations/__init__.py +0 -0
  153. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/agents/conversations/cli.py +0 -0
  154. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/agents/conversations/readers.py +0 -0
  155. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/agents/conversations/resolve.py +0 -0
  156. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/agents/conversations/roots.py +0 -0
  157. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/agents/kind.py +0 -0
  158. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/agents/launch/__init__.py +0 -0
  159. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/agents/launch/cli.py +0 -0
  160. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/agents/launch/command.py +0 -0
  161. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/agents/launch/environment.py +0 -0
  162. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/agents/launch/run.py +0 -0
  163. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/agents/launch/spec.py +0 -0
  164. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/agents/launch/trust.py +0 -0
  165. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/attachments/__init__.py +0 -0
  166. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/attachments/cli.py +0 -0
  167. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/attachments/prune.py +0 -0
  168. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/cli.py +0 -0
  169. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/daemon/__init__.py +0 -0
  170. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/daemon/cache.py +0 -0
  171. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/daemon/client.py +0 -0
  172. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/daemon/dispatch.py +0 -0
  173. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/daemon/failures.py +0 -0
  174. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/daemon/lifecycle.py +0 -0
  175. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/daemon/methods.py +0 -0
  176. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/daemon/paths.py +0 -0
  177. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/daemon/protocol.py +0 -0
  178. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/daemon/server.py +0 -0
  179. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/engines/__init__.py +0 -0
  180. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/engines/builtin.py +0 -0
  181. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/engines/cli.py +0 -0
  182. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/engines/harness.py +0 -0
  183. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/engines/registry.py +0 -0
  184. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/engines/spec.py +0 -0
  185. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/env/__init__.py +0 -0
  186. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/env/cli.py +0 -0
  187. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/env/parse.py +0 -0
  188. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/env/store.py +0 -0
  189. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/__init__.py +0 -0
  190. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/cli.py +0 -0
  191. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/client_cli.py +0 -0
  192. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/devices.py +0 -0
  193. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/endpoint.py +0 -0
  194. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/helper.py +0 -0
  195. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/pins.py +0 -0
  196. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/private_endpoint.py +0 -0
  197. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/proxy.py +0 -0
  198. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/service.py +0 -0
  199. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/service_agent_firstuse.py +0 -0
  200. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/service_agent_install.py +0 -0
  201. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/service_common.py +0 -0
  202. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/service_hostkey.py +0 -0
  203. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/service_linux.py +0 -0
  204. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/service_task_acl.py +0 -0
  205. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/service_user_agent.py +0 -0
  206. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/service_windows.py +0 -0
  207. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/service_windows_endpoint.py +0 -0
  208. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/sshcmd.py +0 -0
  209. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/status.py +0 -0
  210. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/tokens.py +0 -0
  211. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/vault_enrollment.py +0 -0
  212. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/gateway/winssh.py +0 -0
  213. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/github.py +0 -0
  214. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/hooks/__init__.py +0 -0
  215. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/hooks/cli.py +0 -0
  216. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/hooks/handlers.py +0 -0
  217. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/hooks/installers.py +0 -0
  218. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/hooks/paths.py +0 -0
  219. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/hooks/providers/__init__.py +0 -0
  220. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/hooks/providers/claude.py +0 -0
  221. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/hooks/providers/codex.py +0 -0
  222. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/hooks/status.py +0 -0
  223. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/keys/__init__.py +0 -0
  224. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/keys/cli.py +0 -0
  225. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/keys/crypto.py +0 -0
  226. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/keys/prompt.py +0 -0
  227. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/keys/session.py +0 -0
  228. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/keys/sshkeys.py +0 -0
  229. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/keys/store.py +0 -0
  230. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/link/__init__.py +0 -0
  231. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/link/cli.py +0 -0
  232. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/link/client.py +0 -0
  233. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/link/daemon.py +0 -0
  234. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/link/protocol.py +0 -0
  235. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/link/relay.py +0 -0
  236. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/logs/__init__.py +0 -0
  237. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/logs/cli.py +0 -0
  238. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/logs/events.py +0 -0
  239. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/logs/hooks.py +0 -0
  240. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/logs/paths.py +0 -0
  241. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/logs/redact.py +0 -0
  242. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/profiles/__init__.py +0 -0
  243. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/profiles/cli.py +0 -0
  244. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/profiles/discovery.py +0 -0
  245. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/profiles/model.py +0 -0
  246. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/profiles/resolve.py +0 -0
  247. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/repos/__init__.py +0 -0
  248. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/repos/cli.py +0 -0
  249. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/repos/handlers.py +0 -0
  250. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/repos/local.py +0 -0
  251. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/repos/model.py +0 -0
  252. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/repos/remote.py +0 -0
  253. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/repos/render.py +0 -0
  254. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/runtime/__init__.py +0 -0
  255. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/runtime/aplexer.py +0 -0
  256. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/runtime/cgroups.py +0 -0
  257. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/runtime/console_scripts.py +0 -0
  258. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/runtime/inherited_cgroup.py +0 -0
  259. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/runtime/memcap.py +0 -0
  260. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/runtime/sessions.py +0 -0
  261. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/serve.py +0 -0
  262. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/sessions/__init__.py +0 -0
  263. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/sessions/attach.py +0 -0
  264. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/sessions/cli.py +0 -0
  265. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/sessions/create.py +0 -0
  266. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/sessions/kill.py +0 -0
  267. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/sessions/listing.py +0 -0
  268. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/sessions/rename.py +0 -0
  269. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/sessions/warnings.py +0 -0
  270. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tokentls.py +0 -0
  271. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray/__init__.py +0 -0
  272. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray/__main__.py +0 -0
  273. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray/app.py +0 -0
  274. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray/autostart.py +0 -0
  275. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray/cli.py +0 -0
  276. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray/dialogs.py +0 -0
  277. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray/gateway_auth.py +0 -0
  278. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray/icons.py +0 -0
  279. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray/model.py +0 -0
  280. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray/single_instance.py +0 -0
  281. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray/status_client.py +0 -0
  282. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray/vault_password.py +0 -0
  283. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tray_supervisor.py +0 -0
  284. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tree/__init__.py +0 -0
  285. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tree/cli.py +0 -0
  286. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tree/daemon.py +0 -0
  287. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tree/model.py +0 -0
  288. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tree/paths.py +0 -0
  289. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tree/storage.py +0 -0
  290. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tree/workspaces/__init__.py +0 -0
  291. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tree/workspaces/cli.py +0 -0
  292. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/tree/workspaces/membership.py +0 -0
  293. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/usage/__init__.py +0 -0
  294. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/usage/cli.py +0 -0
  295. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/usage/normalize.py +0 -0
  296. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/usage/quse.py +0 -0
  297. {pocketshell-0.5.14 → pocketshell-0.5.16}/src/pocketshell/windows_security.py +0 -0
  298. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/__init__.py +0 -0
  299. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/fixtures/trusted-host-v1-vector.json +0 -0
  300. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/fixtures/vault-v1-vectors.json +0 -0
  301. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/fixtures/windows-gateway-config-native-v1.json +0 -0
  302. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/test_account_basics.py +0 -0
  303. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/test_account_broker.py +0 -0
  304. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/test_account_cli.py +0 -0
  305. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/test_account_credentials.py +0 -0
  306. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/test_account_device_flow.py +0 -0
  307. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/test_account_tls.py +0 -0
  308. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/test_shared_vault.py +0 -0
  309. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/test_vault_enrollment.py +0 -0
  310. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/test_vault_revocation_replay.py +0 -0
  311. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/test_vault_trust_store.py +0 -0
  312. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/test_windows_gateway_config_native.py +0 -0
  313. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/account/test_windows_private_storage.py +0 -0
  314. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/aplexer_requirement.py +0 -0
  315. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/conftest.py +0 -0
  316. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/data/quse-0.0.11-usage.json +0 -0
  317. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/data/quse-0.0.13-usage.json +0 -0
  318. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/data/quse-0.0.15-usage.json +0 -0
  319. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/data/quse-0.0.15-usage.ndjson +0 -0
  320. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/data/quse-0.0.15-usage.provenance.txt +0 -0
  321. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/data/quse-0.0.17-gemini.json +0 -0
  322. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/data/quse-0.0.17-gemini.provenance.txt +0 -0
  323. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/data/quse-0.0.9-usage.json +0 -0
  324. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/data/sshd_anchor/Dockerfile.from-unanchored-base +0 -0
  325. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/docker/inherited-memory/Dockerfile +0 -0
  326. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/docker/inherited-memory/proof.py +0 -0
  327. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/docker/link/e2e.sh +0 -0
  328. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/docker/link/e2e_client.py +0 -0
  329. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/docker/link/host_entry.py +0 -0
  330. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/docker/link/relay_entry.py +0 -0
  331. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/docker/phone-host/.gitattributes +0 -0
  332. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/docker/phone-host/Dockerfile +0 -0
  333. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/docker/phone-host/README.md +0 -0
  334. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/docker/phone-host/entrypoint.sh +0 -0
  335. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/fake_broker.py +0 -0
  336. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/fixtures/aplexer/README.md +0 -0
  337. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/fixtures/aplexer/snapshot-agent.json +0 -0
  338. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/fixtures/aplexer/snapshot-crashed-start.json +0 -0
  339. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/fixtures/aplexer/snapshot-liveness-mix.json +0 -0
  340. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/fixtures/aplexer/snapshot-mid-create.json +0 -0
  341. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/fixtures/aplexer/snapshot-post-kill-window.json +0 -0
  342. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/fixtures/aplexer/snapshot-reported-state.json +0 -0
  343. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/fixtures/aplexer/snapshot.json +0 -0
  344. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/agent_harness.py +0 -0
  345. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/conftest.py +0 -0
  346. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/fake_gateway.py +0 -0
  347. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/fakeguardian/go.mod +0 -0
  348. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/fakeguardian/go.sum +0 -0
  349. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/fakeguardian/main.go +0 -0
  350. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/fakelink/main.go +0 -0
  351. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/fixtures/ordinary-v2-authority.schema.json +0 -0
  352. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/fixtures/task-object-authority.ps1 +0 -0
  353. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/gateway_keyblobs.py +0 -0
  354. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/packaged_gateway_config_runner.py +0 -0
  355. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_bundled_hostkey.py +0 -0
  356. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_agent_firstuse.py +0 -0
  357. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_agent_install.py +0 -0
  358. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_agent_resume.py +0 -0
  359. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_agent_setup_cli.py +0 -0
  360. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_auth_cli.py +0 -0
  361. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_cli.py +0 -0
  362. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_connect_e2e.py +0 -0
  363. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_devices.py +0 -0
  364. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_endpoint.py +0 -0
  365. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_enroll_login.py +0 -0
  366. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_exec_passthrough.py +0 -0
  367. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_helper_metadata.py +0 -0
  368. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_helper_resolution.py +0 -0
  369. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_helper_wheel.py +0 -0
  370. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_pins.py +0 -0
  371. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_proxy.py +0 -0
  372. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_service.py +0 -0
  373. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_service_task_acl.py +0 -0
  374. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_service_task_object.py +0 -0
  375. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_ssh.py +0 -0
  376. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_ssh_key.py +0 -0
  377. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_ssh_key_e2e.py +0 -0
  378. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_status.py +0 -0
  379. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_gateway_user_agent.py +0 -0
  380. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_private_endpoint.py +0 -0
  381. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_agent_install_native.py +0 -0
  382. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_aplexer_probe_native.py +0 -0
  383. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_complete_runtime_native.py +0 -0
  384. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_endpoint_keys_native.py +0 -0
  385. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_gateway_e2e.py +0 -0
  386. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_gateway_service_native.py +0 -0
  387. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_gateway_user_agent_native.py +0 -0
  388. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_helper_execution.py +0 -0
  389. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_launcher_quiet_native.py +0 -0
  390. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_packaged_gateway_config_native.py +0 -0
  391. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_qualify_accounting.py +0 -0
  392. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_release_closure_native.py +0 -0
  393. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_service_private_read.py +0 -0
  394. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_spawn_entry_tree_native.py +0 -0
  395. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_sshcmd.py +0 -0
  396. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_verify_native.py +0 -0
  397. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_windows_winssh_native.py +0 -0
  398. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/test_winssh.py +0 -0
  399. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/gateway/unelevated.py +0 -0
  400. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/keys/conftest.py +0 -0
  401. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/keys/keyhelpers.py +0 -0
  402. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/keys/test_keys_cli.py +0 -0
  403. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/keys/test_keys_crypto.py +0 -0
  404. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/keys/test_keys_store.py +0 -0
  405. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/link/test_adversarial_security.py +0 -0
  406. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/link/test_cli_link.py +0 -0
  407. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/link/test_exec_semantics.py +0 -0
  408. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/link/test_loopback.py +0 -0
  409. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/link/test_protocol.py +0 -0
  410. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/link/test_resilience.py +0 -0
  411. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/link/test_workload_integrity.py +0 -0
  412. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/release/test_windows_psc_install_native.py +0 -0
  413. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/release/test_windows_psc_upgrade_native.py +0 -0
  414. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_agent_log.py +0 -0
  415. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_agents.py +0 -0
  416. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_agents_kind.py +0 -0
  417. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_antigravity.py +0 -0
  418. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_aplexer_resolution.py +0 -0
  419. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_attachments.py +0 -0
  420. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_cgroup_agents.py +0 -0
  421. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_cli.py +0 -0
  422. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_daemon.py +0 -0
  423. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_daemon_fallback.py +0 -0
  424. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_daemon_wire.py +0 -0
  425. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_engines.py +0 -0
  426. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_env.py +0 -0
  427. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_github.py +0 -0
  428. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_hooks.py +0 -0
  429. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_inherited_cgroup.py +0 -0
  430. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_inherited_cgroup_kernel_proof.py +0 -0
  431. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_logs.py +0 -0
  432. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_main.py +0 -0
  433. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_profiles.py +0 -0
  434. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_repos.py +0 -0
  435. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_serve.py +0 -0
  436. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_serve_http.py +0 -0
  437. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_session_cgroup_kernel_proof.py +0 -0
  438. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_session_enum.py +0 -0
  439. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_sessions.py +0 -0
  440. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_sessions_attach.py +0 -0
  441. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_sessions_create_routing.py +0 -0
  442. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_sessions_kill.py +0 -0
  443. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_sessions_mem_cap.py +0 -0
  444. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_sessions_rename.py +0 -0
  445. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_sessions_warnings.py +0 -0
  446. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_tree.py +0 -0
  447. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_usage.py +0 -0
  448. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_windows_config_ci_selection.py +0 -0
  449. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/test_workspaces.py +0 -0
  450. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/__init__.py +0 -0
  451. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/conftest.py +0 -0
  452. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/test_app.py +0 -0
  453. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/test_autostart.py +0 -0
  454. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/test_cli.py +0 -0
  455. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/test_endpoint_native.py +0 -0
  456. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/test_gateway_auth.py +0 -0
  457. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/test_icons.py +0 -0
  458. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/test_model.py +0 -0
  459. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/test_private_replacement.py +0 -0
  460. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/test_single_instance.py +0 -0
  461. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/test_status_client.py +0 -0
  462. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/test_supervisor.py +0 -0
  463. {pocketshell-0.5.14 → pocketshell-0.5.16}/tests/tray/test_vault_password.py +0 -0
  464. {pocketshell-0.5.14 → pocketshell-0.5.16}/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.14
3
+ Version: 0.5.16
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
@@ -23,6 +23,7 @@ Requires-Dist: aplexer<0.2,>=0.1.19; sys_platform == 'linux'
23
23
  Requires-Dist: argon2-cffi>=23.1.0
24
24
  Requires-Dist: click>=8.2.0
25
25
  Requires-Dist: cryptography>=42
26
+ Requires-Dist: pyhpke<1,>=0.6
26
27
  Requires-Dist: pyyaml>=6.0
27
28
  Requires-Dist: quse>=0.0.15
28
29
  Provides-Extra: dev
@@ -0,0 +1,112 @@
1
+ # Login through a TLS-intercepting egress proxy (design and blocker)
2
+
3
+ Status: **broker deployed and production key pinned (2026-11-27).**
4
+ The plain path still refuses an intercepting proxy, which is correct. The opt-in
5
+ sealed transport (`POCKETSHELL_BROKER_SEALED=1`, `pocketshell.account.sealed`) is
6
+ in this repo, and its broker route came from PocketShell-io/pocketshell-sync PR #3
7
+ (`docs/SEALED-TRANSPORT.md` there has the wire format and the key runbook). The
8
+ broker serves `POST /sealed` with the SSM key `/pocketshell-sync/sealed-transport-key`;
9
+ its public half is pinned in `PINNED_KEYS` (`sealed.py`, kid `575a6a86`). Sealed
10
+ mode works from the first CLI release that contains this pin.
11
+
12
+ Rotation is not supported yet: the broker accepts only its current key, so the
13
+ CLI must pin exactly one key until the broker accepts a current+previous pair.
14
+
15
+ Usage once released: `POCKETSHELL_BROKER_SEALED=1 pocketshell login --no-open`
16
+ with the sandbox's `HTTPS_PROXY` (and CA bundle) set. Sealed mode applies to
17
+ `login`, `whoami`, `logout` and token mints against the production broker only.
18
+ `pocketshell gateway ssh/proxy` talk to the gateway, not the broker, and are not
19
+ covered.
20
+
21
+ ## The case
22
+
23
+ Some managed cloud sandboxes have no direct DNS or routing. Their only egress
24
+ is an environment HTTP proxy (`HTTPS_PROXY`) that terminates TLS and
25
+ re-signs it with its own CA. For example, a `CONNECT` probe of the production
26
+ broker through one such proxy completes, but the leaf certificate is issued by
27
+ the proxy operator, not by a public CA. Everything sent inside that "TLS"
28
+ session is readable by the proxy, including `device_code` and the `psc_`
29
+ session token returned by `/auth/device/token`.
30
+
31
+ ## Why the current client refuses (and must keep refusing)
32
+
33
+ See [account.md](account.md#network-and-trust). Token-bearing requests ignore
34
+ proxy variables and `SSL_CERT_FILE`/`SSL_CERT_DIR`, never follow redirects, and
35
+ verify against the platform CA bundle only.
36
+
37
+ Each of the usual fixes breaks that guarantee:
38
+
39
+ | Change | Why it is not acceptable |
40
+ | --- | --- |
41
+ | Honour `HTTPS_PROXY` | Direct DNS fails, so this is needed, but alone it makes the request go to the interceptor and then fail certificate verification. |
42
+ | Also trust the proxy CA / `SSL_CERT_FILE` | The proxy then reads `device_code` and the 30-day `psc_` token. The proxy is an eavesdropper by construction. |
43
+ | Insecure mode, pinning the proxy leaf | Same disclosure. |
44
+ | Pinning the broker's own TLS leaf | Fails closed, as it should: the proxy presents a different leaf, so nothing completes. |
45
+
46
+ TLS between the CLI and the broker cannot be end-to-end through this proxy, so
47
+ the protection has to live **above TLS**.
48
+
49
+ ## Verified facts
50
+
51
+ - Broker: AWS API Gateway HTTP API + Lambda in eu-west-1 (default endpoint
52
+ `https://a7sota2qic.execute-api.eu-west-1.amazonaws.com`). Canonical repo:
53
+ private `PocketShell-io/pocketshell-sync` (`lambda/device-flow.mjs`,
54
+ `docs/CLI-DEVICE-FLOW.md`). Infra stack lives in `aws-infra`.
55
+ - Nothing in that repo (or in this one) provides an application-layer sealed
56
+ channel, a pinned broker key for the CLI, or a first-party tunnel that avoids
57
+ the interceptor. The only broker public key is the RS256 gateway-JWT key at
58
+ `GET /gateway/jwks`, which signs tokens and cannot be used to protect a
59
+ request, and which would itself be fetched through the proxy.
60
+ - This repo's latest PyPI release when checked was 0.5.15; `main` is 0.5.16.
61
+ No released version supports this case.
62
+
63
+ ## Design (as implemented)
64
+
65
+ Use an established construction, not custom crypto: **HPKE (RFC 9180) with
66
+ Oblivious-HTTP-style request/response encapsulation (RFC 9458)**. The proxy
67
+ acts as the (untrusted) relay.
68
+
69
+ 1. The broker publishes an HPKE key config (for example DHKEM(P-256) or
70
+ X25519, HKDF-SHA256, AES-128-GCM). The private key stays server-side; with
71
+ P-256 it can stay in AWS KMS (`DeriveSharedSecret`).
72
+ 2. The **public key and key id are pinned inside the CLI release**, with a short
73
+ list of accepted keys for rotation. It is never fetched through the proxy
74
+ and never taken from the environment.
75
+ 3. A new broker route accepts `POST` of an encapsulated request (`message/ohttp-req`
76
+ style): the inner request is the existing `/auth/device/start`,
77
+ `/auth/device/token`, `/cli/gateway/token`, `/cli/session` or `/cli/logout`
78
+ call, including its body and `Authorization` header. The Lambda decapsulates,
79
+ dispatches internally to the existing handlers and encapsulates the
80
+ response, so `device_code` and `psc_` never appear in clear outside the
81
+ client and the Lambda. The `Origin`-refusal rule applies to the inner request.
82
+ 4. The CLI uses this transport only when explicitly opted in (`POCKETSHELL_BROKER_SEALED=1`, exact value). The default direct
83
+ TLS path is unchanged.
84
+ 5. In sealed mode the outer connection may use the environment proxy and its CA,
85
+ but carries only ciphertext and public routing data. There is no fallback to
86
+ the plain path in either direction: any decapsulation, key id, length or
87
+ replay failure aborts the command.
88
+ 6. Only the approved origins are contacted, with no redirects. The verification
89
+ URL printed to the user stays pinned to `https://app.pocketshell.io`. The
90
+ user approves in their own browser, so the cloud never holds a browser session.
91
+
92
+ Residual exposure the proxy still has: it sees that a login happened, its timing
93
+ and size, and can withhold service. It cannot read or alter the credentials.
94
+
95
+ ## Work split
96
+
97
+ - `pocketshell-sync` (broker): key config, sealed route, tests with fixed vectors,
98
+ deploy. This must land and be deployed first. It needs an owner decision on
99
+ key custody (KMS vs Secrets Manager) and rollout.
100
+ - `pocketshell-cli` (this repo): pinned key list, opt-in transport in
101
+ `pocketshell.account.broker`, a vetted HPKE implementation (for example
102
+ `cryptography`'s HPKE support if the pinned version has it, otherwise a
103
+ maintained library), and tests against the broker vectors: synthetic secrets,
104
+ an intercepting fake proxy that records every byte, a wrong-key broker, and
105
+ replay/truncation cases.
106
+ - Hub: nothing, except tracking the dependency.
107
+
108
+ ## What was not verified
109
+
110
+ The cloud sandbox itself was not reachable from the worker that wrote this, so
111
+ the real proxy behaviour above rests on the probe reported in the task. No
112
+ login credentials were created or sent.
@@ -146,6 +146,9 @@ device. See [keys.md](keys.md).
146
146
  commands won't work there. If no CA bundle exists at the default location
147
147
  (e.g. a python.org macOS build without "Install Certificates"), TLS
148
148
  verification fails rather than falling back to the environment.
149
+ Behind a TLS-intercepting proxy login cannot work safely today; see
150
+ [account-intercepting-proxy.md](account-intercepting-proxy.md) for why and the
151
+ opt-in sealed transport that fixes it.
149
152
  - Beyond those variables and `POCKETSHELL_BROKER_URL` (see above), the
150
153
  process environment is trusted. An `.envrc` or profile that can set
151
154
  `PYTHONPATH`, `LD_PRELOAD` and the like can run code inside the CLI
@@ -182,6 +185,7 @@ device. See [keys.md](keys.md).
182
185
  | --- | --- |
183
186
  | `POCKETSHELL_BROKER_URL` | Broker base URL for `login` (default: the production broker). Must be `https://` with no credentials, query or fragment. An existing session always uses the broker stored with it, and the command refuses to run when this variable names a different one. |
184
187
  | `POCKETSHELL_DEV_WEB_ORIGIN` | Staging and development only: the trusted approval origin, as a bare `https://host[:port]`. It's honored only when `POCKETSHELL_BROKER_URL` is also set. |
188
+ | `POCKETSHELL_BROKER_SEALED=1` | Opt in to the sealed broker transport for networks that intercept TLS (production broker only; see [account-intercepting-proxy.md](account-intercepting-proxy.md)). The only mode that honors `HTTPS_PROXY` and the ambient CA bundle, and only for ciphertext; it never falls back to the plain path. |
185
189
  | `POCKETSHELL_BROKER_INSECURE_DEV=1` | Development and tests only: also allows `http://` when the host is loopback (`127.0.0.0/8`, `::1`, `localhost`). |
186
190
 
187
191
  ## Exit codes
@@ -119,7 +119,8 @@ $env:GOOS = 'windows'
119
119
  $env:GOARCH = 'amd64'
120
120
  $env:CGO_ENABLED = '0'
121
121
  go -C native/launcher build -trimpath -buildvcs=false '-ldflags=-s -w -buildid= -H=windowsgui -X main.module=pocketshell.tray_bundle' -o C:/BUILD/GatewayTray.exe .
122
- uv run --frozen python scripts/release/build_tray_installer.py --resources BASE --catalog-sha256 CATALOG_SHA256 --aplexer-cli-wheel C:/BUILD/aplexer-0.1.13-py3-none-win_amd64.whl --aplexer-client-wheel C:/BUILD/aplexer_client-0.1.13-cp311-abi3-win_amd64.whl --tray-launcher C:/BUILD/GatewayTray.exe --psc-zip C:/BUILD/psc-windows-x64-0.3.2.zip --psc-sha256 PSC_ZIP_SHA256 --ssh-zip C:/BUILD/OpenSSH-Win64.zip --ssh-sha256 SSH_ZIP_SHA256 --makensis C:/NSIS/makensis.exe --out FRESH_OUTPUT
122
+ go -C native/launcher build -trimpath -buildvcs=false '-ldflags=-s -w -buildid= -H=windowsgui' -o C:/BUILD/pocketshell.exe .
123
+ uv run --frozen python scripts/release/build_tray_installer.py --resources BASE --catalog-sha256 CATALOG_SHA256 --aplexer-cli-wheel C:/BUILD/aplexer-0.1.13-py3-none-win_amd64.whl --aplexer-client-wheel C:/BUILD/aplexer_client-0.1.13-cp311-abi3-win_amd64.whl --tray-launcher C:/BUILD/GatewayTray.exe --cli-launcher C:/BUILD/pocketshell.exe --psc-zip C:/BUILD/psc-windows-x64-0.3.2.zip --psc-sha256 PSC_ZIP_SHA256 --ssh-zip C:/BUILD/OpenSSH-Win64.zip --ssh-sha256 SSH_ZIP_SHA256 --makensis C:/NSIS/makensis.exe --out FRESH_OUTPUT
123
124
  uv run --frozen --extra tray python -m pytest tests/tray tests/release/test_tray_installer.py tests/gateway/test_gateway_status.py
124
125
  uv run --frozen python scripts/release/smoke_tray_bundle.py --payload FRESH_OUTPUT/payload --install-check FRESH_TEST_USER_DATA
125
126
  ```
@@ -147,11 +148,30 @@ The tray builder also requires `--endpoint-backend OWNED_OPENSSH_OUTPUT` and
147
148
  `--endpoint-backend-receipt-sha256 RECEIPT_SHA256`. Build the pinned backend with
148
149
  `scripts/release/build_backend_windows.py --part openssh --work FRESH_WORK --out
149
150
  BACKEND_OUTPUT`; its `openssh` directory includes the measured `receipt.json`.
150
- The private OpenSSH source overlay derives Bash and command PATH from its own
151
- release directory, not the registry's DefaultShell or user/system PATH. Plain
152
- `pocketshell` and `a` commands from older PSC clients therefore resolve the
153
- bundled executables without client provisioning. The builder verifies the
151
+ The private OpenSSH source overlay derives the Bash executable from its own
152
+ release directory, not the registry's DefaultShell. Session PATH is the managed
153
+ runtime directories first (so plain `pocketshell` and `a` from older PSC clients
154
+ resolve the bundled executables, which also stay pinned as exported Bash
155
+ functions), followed by the expanded machine and user registry `Path` values,
156
+ read fresh at every session start (REG_EXPAND_SZ entries such as `%USERPROFILE%\...` expand against the user's own environment block, not sshd-session's closed one) so tools installed later (claude, codex, npm,
157
+ git, ...) are found without reinstalling. Interactive shells, both the SSH PTY
158
+ and the aplexer `shell` engine, run `bash --login -i`, so the user's
159
+ `~/.bash_profile` and `~/.bashrc` apply as in Git Bash. Exec commands and probes
160
+ stay `bash --noprofile --norc -c` with `BASH_ENV`/`ENV` cleared, so a user's
161
+ startup files can never change a non-interactive command. Durable `a` sessions (shell and agent engines) are
162
+ spawned by `a start` / `pocketshell sessions create` run inside that SSH session,
163
+ so they inherit this environment; the bundled `/etc/profile` keeps
164
+ `MSYS2_PATH_TYPE=inherit`. Already-running `a` workers and their shells keep the
165
+ environment they were started with: after upgrading, stop and recreate old
166
+ sessions. The guardian daemon's own closed environment is unchanged. The `guardian-login-shell` source trio pins
167
+ the `--login -i` engine command (`DERIVATION.diff` is one line).
168
+ The builder verifies the
154
169
  complete rebuilt executable/DLL inventory and every digest before staging it.
170
+ For this managed Bash, PTY and non-PTY commands use its MSYS argument decoder,
171
+ which requires escaping every backslash as well as quotes. A private spawn
172
+ attribute selects this codec only for `SH_BASH`; other spawn callers retain
173
+ the standard codec. The native unit exercises the measured Bash executable,
174
+ and the packaged SSH gate checks raw Python source with Windows path literals.
155
175
 
156
176
  Obtain the PSC zip and SHA256 from the reviewed pocketshell-tui-client release
157
177
  or its Windows package workflow artifact. The tray builder validates the zip
@@ -9,9 +9,8 @@
9
9
  // catalogued closure (no site, no PATH, no PYTHON* variables: -I).
10
10
  //
11
11
  // Quiet (no visible CMD): it is linked as a GUI-subsystem binary
12
- // (-H=windowsgui, so Windows allocates no console for it) and starts the
13
- // console-subsystem interpreter with CREATE_NO_WINDOW, so the child gets no
14
- // console either. stdio still flows through the inherited handles.
12
+ // (-H=windowsgui, so Windows allocates no console for it). GUI/background
13
+ // children stay quiet; the CLI can preserve an existing parent terminal.
15
14
  //go:build windows
16
15
 
17
16
  package main
@@ -37,9 +36,14 @@ func main() {
37
36
  os.Exit(1)
38
37
  }
39
38
  python := filepath.Join(filepath.Dir(self), "python", "python.exe")
39
+ streams, flags, err := childStdio(module)
40
+ if err != nil {
41
+ streams[2].WriteString("pocketshell: cannot preserve the existing console stdio\n")
42
+ os.Exit(1)
43
+ }
40
44
  cmd := exec.Command(python, append([]string{"-I", "-B", "-m", module}, os.Args[1:]...)...)
41
- cmd.Stdin, cmd.Stdout, cmd.Stderr = os.Stdin, os.Stdout, os.Stderr
42
- cmd.SysProcAttr = &syscall.SysProcAttr{CreationFlags: createNoWindow, HideWindow: true}
45
+ cmd.Stdin, cmd.Stdout, cmd.Stderr = streams[0], streams[1], streams[2]
46
+ cmd.SysProcAttr = &syscall.SysProcAttr{CreationFlags: flags, HideWindow: flags == createNoWindow}
43
47
  // Console control events reach the child directly; the launcher only waits.
44
48
  signal.Ignore(os.Interrupt)
45
49
  err = cmd.Run()
@@ -50,7 +54,7 @@ func main() {
50
54
  case errors.As(err, &exit):
51
55
  os.Exit(exit.ExitCode())
52
56
  default:
53
- os.Stderr.WriteString("pocketshell: cannot start the bundled interpreter\n")
57
+ streams[2].WriteString("pocketshell: cannot start the bundled interpreter\n")
54
58
  os.Exit(1)
55
59
  }
56
60
  }
@@ -0,0 +1,119 @@
1
+ //go:build windows
2
+
3
+ package main
4
+
5
+ import (
6
+ "errors"
7
+ "os"
8
+ "syscall"
9
+ )
10
+
11
+ var consoleKernel = syscall.NewLazyDLL("kernel32.dll")
12
+ var attachParentConsole = consoleKernel.NewProc("AttachConsole")
13
+ var consoleCodePage = consoleKernel.NewProc("GetConsoleCP")
14
+ var detachConsole = consoleKernel.NewProc("FreeConsole")
15
+
16
+ func validStream(file *os.File) bool {
17
+ if file == nil || file.Fd() == 0 || syscall.Handle(file.Fd()) == syscall.InvalidHandle {
18
+ return false
19
+ }
20
+ _, err := syscall.GetFileType(syscall.Handle(file.Fd()))
21
+ return err == nil
22
+ }
23
+
24
+ func consoleStream(file *os.File) bool {
25
+ if !validStream(file) {
26
+ return false
27
+ }
28
+ var mode uint32
29
+ return syscall.GetConsoleMode(syscall.Handle(file.Fd()), &mode) == nil
30
+ }
31
+
32
+ func quietChild(files [3]*os.File) ([3]*os.File, uint32, error) {
33
+ for index, file := range files {
34
+ if validStream(file) {
35
+ continue
36
+ }
37
+ // A GUI parent may supply nonzero INVALID handles. Go duplicates
38
+ // them before CreateProcess and would otherwise never launch Python.
39
+ null, err := os.OpenFile(os.DevNull, os.O_RDWR, 0)
40
+ if err != nil {
41
+ return files, createNoWindow, err
42
+ }
43
+ files[index] = null
44
+ }
45
+ return files, createNoWindow, nil
46
+ }
47
+
48
+ // GUI entries never attach a console. The CLI can join an EXISTING parent
49
+ // console when it actually has console streams, or when Windows gave this
50
+ // GUI-subsystem child no usable stdio at all (the native OpenSSH PTY case).
51
+ // A valid inherited pipe/file/NUL is never replaced. Ambiguous partial,
52
+ // nonconsole stdio retains the quiet behavior used by background callers.
53
+ func childStdio(entry string) ([3]*os.File, uint32, error) {
54
+ files := [3]*os.File{os.Stdin, os.Stdout, os.Stderr}
55
+ if entry != "pocketshell" {
56
+ return quietChild(files)
57
+ }
58
+ anyValid, anyConsole := false, false
59
+ for _, file := range files {
60
+ anyValid = anyValid || validStream(file)
61
+ anyConsole = anyConsole || consoleStream(file)
62
+ }
63
+ if anyValid && !anyConsole {
64
+ return quietChild(files)
65
+ }
66
+ attached := false
67
+ cp, _, _ := consoleCodePage.Call()
68
+ if cp == 0 {
69
+ ok, _, _ := attachParentConsole.Call(0xffffffff) // ATTACH_PARENT_PROCESS, never AllocConsole.
70
+ if ok == 0 {
71
+ return quietChild(files)
72
+ }
73
+ attached = true
74
+ }
75
+ selectors := [3]int{syscall.STD_INPUT_HANDLE, syscall.STD_OUTPUT_HANDLE, syscall.STD_ERROR_HANDLE}
76
+ for index, file := range files {
77
+ if validStream(file) {
78
+ continue
79
+ }
80
+ handle, err := syscall.GetStdHandle(selectors[index])
81
+ var mode uint32
82
+ if err != nil || syscall.GetConsoleMode(handle, &mode) != nil {
83
+ // STARTF_USESTDHANDLES can leave the OS stdio table invalid even
84
+ // after AttachConsole. Open only that EXISTING console's device;
85
+ // no console is ever allocated and valid inherited files stay put.
86
+ device := "CONOUT$"
87
+ if index == 0 {
88
+ device = "CONIN$"
89
+ }
90
+ path, _ := syscall.UTF16PtrFromString(device)
91
+ handle, err = syscall.CreateFile(path, syscall.GENERIC_READ|syscall.GENERIC_WRITE,
92
+ syscall.FILE_SHARE_READ|syscall.FILE_SHARE_WRITE, nil, syscall.OPEN_EXISTING, 0, 0)
93
+ if err != nil {
94
+ continue
95
+ }
96
+ if syscall.GetConsoleMode(handle, &mode) != nil {
97
+ syscall.CloseHandle(handle)
98
+ continue
99
+ }
100
+ }
101
+ files[index] = os.NewFile(uintptr(handle), "parent-console")
102
+ }
103
+ anyConsole = false
104
+ for _, file := range files {
105
+ anyConsole = anyConsole || consoleStream(file)
106
+ }
107
+ if !anyConsole {
108
+ if attached {
109
+ detachConsole.Call()
110
+ }
111
+ return quietChild(files)
112
+ }
113
+ for _, file := range files {
114
+ if !validStream(file) {
115
+ return files, createNoWindow, errors.New("existing parent console has incomplete stdio")
116
+ }
117
+ }
118
+ return files, 0, nil // Inherit the existing console; never create a new one.
119
+ }
@@ -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.14"
14
+ version = "0.5.16"
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"
@@ -57,6 +57,9 @@ dependencies = [
57
57
  # of transitive dependency choices. 42 is a conservative floor for the
58
58
  # APIs used (GCM `update_into`, OpenSSH private-key serialization).
59
59
  "cryptography>=42",
60
+ # Sealed broker transport (RFC 9180 HPKE) for logins behind a TLS-intercepting
61
+ # proxy; see docs/account-intercepting-proxy.md. No custom primitives.
62
+ "pyhpke>=0.6,<1",
60
63
  # The account vault shares the clients' Argon2id v1 format. Never use
61
64
  # the separate local device-password vault's PBKDF2 format for sync.
62
65
  "argon2-cffi>=23.1.0",
@@ -0,0 +1,11 @@
1
+ --- guardian-interactive/guardian.py 2026-11-17 21:26:59.850772910 +0100
2
+ +++ guardian-login-shell/guardian.py 2026-11-17 21:30:19.519551334 +0100
3
+ @@ -263,7 +263,7 @@
4
+ import tomllib
5
+ backend=tomllib.loads(pathlib.Path(m['configBindings']['backendConfig']).read_text(encoding='utf8'))
6
+ shell=backend.get('engines',{}).get('shell',{})
7
+ - if shell.get('command')!=[m['configBindings']['backendExecutable'],'--noprofile','--norc','-i'] or shell.get('env_unset')!=['BASH_ENV','ENV','ZDOTDIR']:raise RuntimeError('Pinned interactive backend command mismatch')
8
+ + if shell.get('command')!=[m['configBindings']['backendExecutable'],'--login','-i'] or shell.get('env_unset')!=['BASH_ENV','ENV','ZDOTDIR']:raise RuntimeError('Pinned interactive backend command mismatch')
9
+ for p in (m['environment']['TEMP'],m['environment']['TMP']):path_authority(p,m['ownerSID'],True,True)
10
+ if args.check_only:
11
+ print(json.dumps({'phase':'preflight-only','manifestSHA256':manifest_sha,'context':context,'port':m['port'],'sourceSHA256':a.digest(pathlib.Path(__file__)),'daemonSpawned':False,'stateAllocated':False}),flush=True)
@@ -0,0 +1,14 @@
1
+ # Login-shell guardian
2
+
3
+ Derived from `guardian-interactive` by one line (`DERIVATION.diff`): the pinned
4
+ aplexer `engines.shell` command is `[bash, "--login", "-i"]` instead of
5
+ `[bash, "--noprofile", "--norc", "-i"]`, so durable shell sessions read the
6
+ user's `~/.bash_profile` / `~/.bashrc` like Git Bash does. `env_unset` stays
7
+ `["BASH_ENV", "ENV", "ZDOTDIR"]`. `native_api.py` and `policy.py` are unchanged
8
+ (same hashes as `guardian-interactive`).
9
+
10
+ The generated endpoint config selects the pinned command from the guardian's
11
+ own source digest (`service_agent_endpoint.SHELL_ARGV_BY_GUARDIAN`), so an older
12
+ guardian still validates the older command. Older source triples stay trusted
13
+ only so the existing tray-repair path can stop and upgrade enrolled installs.
14
+ Never modify hashes or installed guardian files manually.
@@ -0,0 +1,3 @@
1
+ 75ab56270bdc59e195d980f0fe1164616ff0f43e7a29e9b8920dc454c855e2c7 guardian.py
2
+ cab601e27e9814ee8c4e3cd72e0dfd55fd2808682d302655725885b4a4812231 native_api.py
3
+ e39ee0ea26879f3418e1d14c270a507def71acd84be2e6cfe409afee3bcb1c17 policy.py