pocketshell 0.5.14__tar.gz → 0.5.15__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 (452) hide show
  1. {pocketshell-0.5.14 → pocketshell-0.5.15}/PKG-INFO +1 -1
  2. {pocketshell-0.5.14 → pocketshell-0.5.15}/docs/windows-tray-installer.md +7 -1
  3. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/launcher/main.go +10 -6
  4. pocketshell-0.5.15/native/launcher/stdio_windows.go +119 -0
  5. {pocketshell-0.5.14 → pocketshell-0.5.15}/pyproject.toml +1 -1
  6. pocketshell-0.5.15/scripts/ci/tray_terminal_gate.py +99 -0
  7. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/release/build_backend_windows.py +3 -3
  8. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/release/build_tray_installer.py +28 -0
  9. pocketshell-0.5.15/scripts/release/private_shell_overlay.py +250 -0
  10. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/release/update_tray_runtime.py +6 -4
  11. pocketshell-0.5.15/src/pocketshell/runtime/windows_job.py +102 -0
  12. pocketshell-0.5.15/src/pocketshell/windows_session_lifecycle.py +280 -0
  13. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/windows_sessions.py +5 -1
  14. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/release/test_build_backend.py +46 -1
  15. pocketshell-0.5.15/tests/release/test_private_pty_argv_native.py +130 -0
  16. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/release/test_tray_installer.py +41 -0
  17. pocketshell-0.5.15/tests/release/test_tray_memory_oracle.py +80 -0
  18. pocketshell-0.5.15/tests/release/test_tray_terminal_gate.py +227 -0
  19. pocketshell-0.5.15/tests/release/test_windows_tray_terminal_native.py +143 -0
  20. pocketshell-0.5.15/tests/release/tray_endpoint_harness.py +21 -0
  21. pocketshell-0.5.15/tests/release/tray_launcher_probe.py +94 -0
  22. pocketshell-0.5.15/tests/release/tray_memory_oracle.py +130 -0
  23. pocketshell-0.5.15/tests/release/tray_terminal_fixture.py +534 -0
  24. pocketshell-0.5.15/tests/test_windows_session_lifecycle.py +290 -0
  25. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_windows_startup.py +18 -0
  26. {pocketshell-0.5.14 → pocketshell-0.5.15}/uv.lock +1 -1
  27. pocketshell-0.5.14/scripts/release/private_shell_overlay.py +0 -126
  28. {pocketshell-0.5.14 → pocketshell-0.5.15}/.gitattributes +0 -0
  29. {pocketshell-0.5.14 → pocketshell-0.5.15}/.gitignore +0 -0
  30. {pocketshell-0.5.14 → pocketshell-0.5.15}/LICENSE +0 -0
  31. {pocketshell-0.5.14 → pocketshell-0.5.15}/README.md +0 -0
  32. {pocketshell-0.5.14 → pocketshell-0.5.15}/SCOPE.md +0 -0
  33. {pocketshell-0.5.14 → pocketshell-0.5.15}/docs/account.md +0 -0
  34. {pocketshell-0.5.14 → pocketshell-0.5.15}/docs/architecture.md +0 -0
  35. {pocketshell-0.5.14 → pocketshell-0.5.15}/docs/bounded-container-sessions.md +0 -0
  36. {pocketshell-0.5.14 → pocketshell-0.5.15}/docs/gateway-distribution.md +0 -0
  37. {pocketshell-0.5.14 → pocketshell-0.5.15}/docs/gateway.md +0 -0
  38. {pocketshell-0.5.14 → pocketshell-0.5.15}/docs/keys.md +0 -0
  39. {pocketshell-0.5.14 → pocketshell-0.5.15}/docs/link-transport.md +0 -0
  40. {pocketshell-0.5.14 → pocketshell-0.5.15}/docs/tray.md +0 -0
  41. {pocketshell-0.5.14 → pocketshell-0.5.15}/docs/vault-enrollment.md +0 -0
  42. {pocketshell-0.5.14 → pocketshell-0.5.15}/docs/windows-gateway-client.md +0 -0
  43. {pocketshell-0.5.14 → pocketshell-0.5.15}/docs/windows-gateway-private-runtime.md +0 -0
  44. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/launcher/go.mod +0 -0
  45. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/verify/context.go +0 -0
  46. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/verify/context_test.go +0 -0
  47. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/verify/context_windows.go +0 -0
  48. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/verify/entry.go +0 -0
  49. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/verify/go.mod +0 -0
  50. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/verify/go.sum +0 -0
  51. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/verify/main.go +0 -0
  52. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/verify/protocol.go +0 -0
  53. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/verify/protocol_test.go +0 -0
  54. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/verify/spawn_test.go +0 -0
  55. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/verify/spawn_windows.go +0 -0
  56. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/verify/verify_other.go +0 -0
  57. {pocketshell-0.5.14 → pocketshell-0.5.15}/native/verify/verify_windows.go +0 -0
  58. {pocketshell-0.5.14 → pocketshell-0.5.15}/pocketshell-tray.spec +0 -0
  59. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/aplexer-fc396/README.md +0 -0
  60. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/aplexer-fc396/SHA256SUMS +0 -0
  61. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/aplexer-fc396/windows-native-fc396.zip +0 -0
  62. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/dossiers/OWNED-BUILD-V26A.json +0 -0
  63. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/dossiers/SHA256SUMS +0 -0
  64. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/dossiers/quiet-build-terminal-fields-addendum.json +0 -0
  65. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/dossiers/quiet-host-source-build-role-handoff.json +0 -0
  66. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/dossiers/transfer-manifest.json +0 -0
  67. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/dossiers/windows-aplexer-msys-backend-source-role-handoff.json +0 -0
  68. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-6cf7ae85/.gitattributes +0 -0
  69. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-6cf7ae85/README.md +0 -0
  70. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-6cf7ae85/SHA256SUMS +0 -0
  71. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-6cf7ae85/guardian.py +0 -0
  72. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-6cf7ae85/native_api.py +0 -0
  73. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-6cf7ae85/policy.py +0 -0
  74. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-e862645d/DERIVATION.diff +0 -0
  75. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-e862645d/README.md +0 -0
  76. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-e862645d/SHA256SUMS +0 -0
  77. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-e862645d/guardian.py +0 -0
  78. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-e862645d/native_api.py +0 -0
  79. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-e862645d/policy.py +0 -0
  80. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-interactive/README.md +0 -0
  81. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-interactive/SHA256SUMS +0 -0
  82. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-interactive/guardian.py +0 -0
  83. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-interactive/native_api.py +0 -0
  84. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-interactive/policy.py +0 -0
  85. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-servicing/README.md +0 -0
  86. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-servicing/SHA256SUMS +0 -0
  87. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-servicing/guardian.py +0 -0
  88. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-servicing/native_api.py +0 -0
  89. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/guardian-servicing/policy.py +0 -0
  90. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/msys2-runtime-5a1665c8/SHA256SUMS +0 -0
  91. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/msys2-runtime-5a1665c8/console.cc +0 -0
  92. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/openssh-quiet-e302fe1/NULL-PATH-FIX.md +0 -0
  93. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/openssh-quiet-e302fe1/SHA256SUMS +0 -0
  94. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/openssh-quiet-e302fe1/policy-manifest.json +0 -0
  95. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/openssh-quiet-e302fe1/shell-host.c +0 -0
  96. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/openssh-quiet-e302fe1/w32fd.c +0 -0
  97. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/openssh-quiet-e302fe1/wmain_sshd-auth.c +0 -0
  98. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/openssh-quiet-e302fe1/wmain_sshd-session.c +0 -0
  99. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/openssh-quiet-e302fe1/wmain_sshd.c +0 -0
  100. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/pocketshell-link-70f5a4b/README.md +0 -0
  101. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/pocketshell-link-70f5a4b/SHA256SUMS +0 -0
  102. {pocketshell-0.5.14 → pocketshell-0.5.15}/release/inputs/pocketshell-link-70f5a4b/pocketshell-link-windows-amd64.exe +0 -0
  103. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/check-antigravity-contract.py +0 -0
  104. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/check-cgroup-cap-proof.sh +0 -0
  105. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/check-product-tmux-absent.sh +0 -0
  106. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/check-python-ci-lock.sh +0 -0
  107. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/ci/scope_guard.py +0 -0
  108. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/ci/test_scope_guard.py +0 -0
  109. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/reinstall-box-cli.sh +0 -0
  110. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/release/build_closure.py +0 -0
  111. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/release/psc-install.ps1 +0 -0
  112. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/release/smoke_tray_bundle.py +0 -0
  113. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/release/tray-installer.nsi +0 -0
  114. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/sync-readme-exit-codes.py +0 -0
  115. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/test-usage-missing-window-mutation.sh +0 -0
  116. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/windows-e2e-sshd-setup.ps1 +0 -0
  117. {pocketshell-0.5.14 → pocketshell-0.5.15}/scripts/windows-gateway-qualify.py +0 -0
  118. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/__init__.py +0 -0
  119. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/__main__.py +0 -0
  120. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/account/__init__.py +0 -0
  121. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/account/broker.py +0 -0
  122. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/account/cli.py +0 -0
  123. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/account/config.py +0 -0
  124. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/account/credentials.py +0 -0
  125. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/account/device.py +0 -0
  126. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/account/errors.py +0 -0
  127. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/account/jsonutil.py +0 -0
  128. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/account/sanitize.py +0 -0
  129. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/account/shared_vault.py +0 -0
  130. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/agents/__init__.py +0 -0
  131. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/agents/conversations/__init__.py +0 -0
  132. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/agents/conversations/cli.py +0 -0
  133. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/agents/conversations/readers.py +0 -0
  134. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/agents/conversations/resolve.py +0 -0
  135. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/agents/conversations/roots.py +0 -0
  136. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/agents/kind.py +0 -0
  137. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/agents/launch/__init__.py +0 -0
  138. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/agents/launch/cli.py +0 -0
  139. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/agents/launch/command.py +0 -0
  140. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/agents/launch/environment.py +0 -0
  141. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/agents/launch/run.py +0 -0
  142. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/agents/launch/spec.py +0 -0
  143. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/agents/launch/trust.py +0 -0
  144. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/attachments/__init__.py +0 -0
  145. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/attachments/cli.py +0 -0
  146. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/attachments/prune.py +0 -0
  147. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/cli.py +0 -0
  148. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/daemon/__init__.py +0 -0
  149. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/daemon/cache.py +0 -0
  150. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/daemon/client.py +0 -0
  151. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/daemon/dispatch.py +0 -0
  152. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/daemon/failures.py +0 -0
  153. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/daemon/lifecycle.py +0 -0
  154. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/daemon/methods.py +0 -0
  155. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/daemon/paths.py +0 -0
  156. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/daemon/protocol.py +0 -0
  157. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/daemon/server.py +0 -0
  158. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/engines/__init__.py +0 -0
  159. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/engines/builtin.py +0 -0
  160. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/engines/cli.py +0 -0
  161. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/engines/harness.py +0 -0
  162. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/engines/registry.py +0 -0
  163. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/engines/spec.py +0 -0
  164. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/env/__init__.py +0 -0
  165. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/env/cli.py +0 -0
  166. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/env/parse.py +0 -0
  167. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/env/store.py +0 -0
  168. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/__init__.py +0 -0
  169. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/cli.py +0 -0
  170. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/client_cli.py +0 -0
  171. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/devices.py +0 -0
  172. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/endpoint.py +0 -0
  173. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/helper.py +0 -0
  174. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/pins.py +0 -0
  175. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/private_endpoint.py +0 -0
  176. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/proxy.py +0 -0
  177. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/service.py +0 -0
  178. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/service_agent_endpoint.py +0 -0
  179. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/service_agent_firstuse.py +0 -0
  180. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/service_agent_install.py +0 -0
  181. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/service_common.py +0 -0
  182. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/service_endpoint.py +0 -0
  183. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/service_hostkey.py +0 -0
  184. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/service_linux.py +0 -0
  185. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/service_task_acl.py +0 -0
  186. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/service_user_agent.py +0 -0
  187. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/service_windows.py +0 -0
  188. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/service_windows_endpoint.py +0 -0
  189. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/sshcmd.py +0 -0
  190. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/status.py +0 -0
  191. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/tokens.py +0 -0
  192. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/vault_enrollment.py +0 -0
  193. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/gateway/winssh.py +0 -0
  194. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/github.py +0 -0
  195. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/hooks/__init__.py +0 -0
  196. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/hooks/cli.py +0 -0
  197. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/hooks/handlers.py +0 -0
  198. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/hooks/installers.py +0 -0
  199. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/hooks/paths.py +0 -0
  200. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/hooks/providers/__init__.py +0 -0
  201. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/hooks/providers/claude.py +0 -0
  202. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/hooks/providers/codex.py +0 -0
  203. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/hooks/status.py +0 -0
  204. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/keys/__init__.py +0 -0
  205. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/keys/cli.py +0 -0
  206. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/keys/crypto.py +0 -0
  207. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/keys/prompt.py +0 -0
  208. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/keys/session.py +0 -0
  209. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/keys/sshkeys.py +0 -0
  210. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/keys/store.py +0 -0
  211. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/link/__init__.py +0 -0
  212. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/link/cli.py +0 -0
  213. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/link/client.py +0 -0
  214. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/link/daemon.py +0 -0
  215. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/link/protocol.py +0 -0
  216. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/link/relay.py +0 -0
  217. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/logs/__init__.py +0 -0
  218. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/logs/cli.py +0 -0
  219. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/logs/events.py +0 -0
  220. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/logs/hooks.py +0 -0
  221. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/logs/paths.py +0 -0
  222. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/logs/redact.py +0 -0
  223. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/profiles/__init__.py +0 -0
  224. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/profiles/cli.py +0 -0
  225. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/profiles/discovery.py +0 -0
  226. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/profiles/model.py +0 -0
  227. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/profiles/resolve.py +0 -0
  228. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/repos/__init__.py +0 -0
  229. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/repos/cli.py +0 -0
  230. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/repos/handlers.py +0 -0
  231. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/repos/local.py +0 -0
  232. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/repos/model.py +0 -0
  233. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/repos/remote.py +0 -0
  234. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/repos/render.py +0 -0
  235. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/runtime/__init__.py +0 -0
  236. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/runtime/aplexer.py +0 -0
  237. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/runtime/cgroups.py +0 -0
  238. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/runtime/console_scripts.py +0 -0
  239. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/runtime/inherited_cgroup.py +0 -0
  240. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/runtime/memcap.py +0 -0
  241. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/runtime/sessions.py +0 -0
  242. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/serve.py +0 -0
  243. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/sessions/__init__.py +0 -0
  244. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/sessions/attach.py +0 -0
  245. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/sessions/cli.py +0 -0
  246. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/sessions/create.py +0 -0
  247. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/sessions/kill.py +0 -0
  248. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/sessions/listing.py +0 -0
  249. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/sessions/rename.py +0 -0
  250. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/sessions/warnings.py +0 -0
  251. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tokentls.py +0 -0
  252. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray/__init__.py +0 -0
  253. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray/__main__.py +0 -0
  254. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray/app.py +0 -0
  255. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray/autostart.py +0 -0
  256. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray/cli.py +0 -0
  257. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray/dialogs.py +0 -0
  258. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray/gateway_auth.py +0 -0
  259. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray/icons.py +0 -0
  260. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray/model.py +0 -0
  261. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray/single_instance.py +0 -0
  262. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray/status_client.py +0 -0
  263. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray/vault_password.py +0 -0
  264. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray_bundle.py +0 -0
  265. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray_repair.py +0 -0
  266. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tray_supervisor.py +0 -0
  267. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tree/__init__.py +0 -0
  268. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tree/cli.py +0 -0
  269. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tree/daemon.py +0 -0
  270. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tree/model.py +0 -0
  271. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tree/paths.py +0 -0
  272. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tree/storage.py +0 -0
  273. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tree/workspaces/__init__.py +0 -0
  274. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tree/workspaces/cli.py +0 -0
  275. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/tree/workspaces/membership.py +0 -0
  276. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/usage/__init__.py +0 -0
  277. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/usage/cli.py +0 -0
  278. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/usage/normalize.py +0 -0
  279. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/usage/quse.py +0 -0
  280. {pocketshell-0.5.14 → pocketshell-0.5.15}/src/pocketshell/windows_security.py +0 -0
  281. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/__init__.py +0 -0
  282. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/fixtures/trusted-host-v1-vector.json +0 -0
  283. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/fixtures/vault-v1-vectors.json +0 -0
  284. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/fixtures/windows-gateway-config-native-v1.json +0 -0
  285. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/test_account_basics.py +0 -0
  286. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/test_account_broker.py +0 -0
  287. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/test_account_cli.py +0 -0
  288. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/test_account_credentials.py +0 -0
  289. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/test_account_device_flow.py +0 -0
  290. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/test_account_tls.py +0 -0
  291. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/test_shared_vault.py +0 -0
  292. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/test_vault_enrollment.py +0 -0
  293. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/test_vault_revocation_replay.py +0 -0
  294. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/test_vault_trust_store.py +0 -0
  295. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/test_windows_gateway_config_native.py +0 -0
  296. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/account/test_windows_private_storage.py +0 -0
  297. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/aplexer_requirement.py +0 -0
  298. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/conftest.py +0 -0
  299. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/data/quse-0.0.11-usage.json +0 -0
  300. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/data/quse-0.0.13-usage.json +0 -0
  301. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/data/quse-0.0.15-usage.json +0 -0
  302. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/data/quse-0.0.15-usage.ndjson +0 -0
  303. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/data/quse-0.0.15-usage.provenance.txt +0 -0
  304. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/data/quse-0.0.17-gemini.json +0 -0
  305. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/data/quse-0.0.17-gemini.provenance.txt +0 -0
  306. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/data/quse-0.0.9-usage.json +0 -0
  307. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/data/sshd_anchor/Dockerfile.from-unanchored-base +0 -0
  308. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/docker/inherited-memory/Dockerfile +0 -0
  309. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/docker/inherited-memory/proof.py +0 -0
  310. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/docker/link/e2e.sh +0 -0
  311. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/docker/link/e2e_client.py +0 -0
  312. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/docker/link/host_entry.py +0 -0
  313. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/docker/link/relay_entry.py +0 -0
  314. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/docker/phone-host/.gitattributes +0 -0
  315. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/docker/phone-host/Dockerfile +0 -0
  316. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/docker/phone-host/README.md +0 -0
  317. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/docker/phone-host/entrypoint.sh +0 -0
  318. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/fake_broker.py +0 -0
  319. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/fixtures/aplexer/README.md +0 -0
  320. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/fixtures/aplexer/snapshot-agent.json +0 -0
  321. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/fixtures/aplexer/snapshot-crashed-start.json +0 -0
  322. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/fixtures/aplexer/snapshot-liveness-mix.json +0 -0
  323. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/fixtures/aplexer/snapshot-mid-create.json +0 -0
  324. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/fixtures/aplexer/snapshot-post-kill-window.json +0 -0
  325. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/fixtures/aplexer/snapshot-reported-state.json +0 -0
  326. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/fixtures/aplexer/snapshot.json +0 -0
  327. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/agent_harness.py +0 -0
  328. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/conftest.py +0 -0
  329. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/fake_gateway.py +0 -0
  330. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/fakeguardian/go.mod +0 -0
  331. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/fakeguardian/go.sum +0 -0
  332. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/fakeguardian/main.go +0 -0
  333. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/fakelink/main.go +0 -0
  334. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/fixtures/ordinary-v2-authority.schema.json +0 -0
  335. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/fixtures/task-object-authority.ps1 +0 -0
  336. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/gateway_keyblobs.py +0 -0
  337. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/packaged_gateway_config_runner.py +0 -0
  338. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_bundled_hostkey.py +0 -0
  339. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_agent_firstuse.py +0 -0
  340. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_agent_install.py +0 -0
  341. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_agent_resume.py +0 -0
  342. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_agent_setup_cli.py +0 -0
  343. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_auth_cli.py +0 -0
  344. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_cli.py +0 -0
  345. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_connect_e2e.py +0 -0
  346. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_devices.py +0 -0
  347. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_endpoint.py +0 -0
  348. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_endpoint_setup.py +0 -0
  349. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_enroll_login.py +0 -0
  350. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_exec_passthrough.py +0 -0
  351. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_helper_metadata.py +0 -0
  352. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_helper_resolution.py +0 -0
  353. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_helper_wheel.py +0 -0
  354. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_pins.py +0 -0
  355. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_proxy.py +0 -0
  356. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_service.py +0 -0
  357. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_service_endpoint.py +0 -0
  358. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_service_task_acl.py +0 -0
  359. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_service_task_object.py +0 -0
  360. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_ssh.py +0 -0
  361. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_ssh_key.py +0 -0
  362. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_ssh_key_e2e.py +0 -0
  363. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_status.py +0 -0
  364. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_gateway_user_agent.py +0 -0
  365. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_private_endpoint.py +0 -0
  366. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_agent_install_native.py +0 -0
  367. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_aplexer_probe_native.py +0 -0
  368. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_complete_runtime_native.py +0 -0
  369. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_endpoint_keys_native.py +0 -0
  370. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_gateway_e2e.py +0 -0
  371. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_gateway_service_native.py +0 -0
  372. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_gateway_user_agent_native.py +0 -0
  373. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_helper_execution.py +0 -0
  374. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_launcher_quiet_native.py +0 -0
  375. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_packaged_gateway_config_native.py +0 -0
  376. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_qualify_accounting.py +0 -0
  377. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_release_closure_native.py +0 -0
  378. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_service_private_read.py +0 -0
  379. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_spawn_entry_tree_native.py +0 -0
  380. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_sshcmd.py +0 -0
  381. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_verify_native.py +0 -0
  382. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_windows_winssh_native.py +0 -0
  383. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/test_winssh.py +0 -0
  384. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/gateway/unelevated.py +0 -0
  385. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/keys/conftest.py +0 -0
  386. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/keys/keyhelpers.py +0 -0
  387. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/keys/test_keys_cli.py +0 -0
  388. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/keys/test_keys_crypto.py +0 -0
  389. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/keys/test_keys_store.py +0 -0
  390. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/link/test_adversarial_security.py +0 -0
  391. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/link/test_cli_link.py +0 -0
  392. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/link/test_exec_semantics.py +0 -0
  393. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/link/test_loopback.py +0 -0
  394. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/link/test_protocol.py +0 -0
  395. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/link/test_resilience.py +0 -0
  396. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/link/test_workload_integrity.py +0 -0
  397. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/release/test_windows_psc_install_native.py +0 -0
  398. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/release/test_windows_psc_upgrade_native.py +0 -0
  399. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_agent_log.py +0 -0
  400. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_agents.py +0 -0
  401. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_agents_kind.py +0 -0
  402. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_antigravity.py +0 -0
  403. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_aplexer_contract.py +0 -0
  404. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_aplexer_resolution.py +0 -0
  405. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_attachments.py +0 -0
  406. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_cgroup_agents.py +0 -0
  407. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_cli.py +0 -0
  408. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_daemon.py +0 -0
  409. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_daemon_fallback.py +0 -0
  410. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_daemon_wire.py +0 -0
  411. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_engines.py +0 -0
  412. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_env.py +0 -0
  413. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_github.py +0 -0
  414. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_hooks.py +0 -0
  415. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_inherited_cgroup.py +0 -0
  416. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_inherited_cgroup_kernel_proof.py +0 -0
  417. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_logs.py +0 -0
  418. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_main.py +0 -0
  419. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_profiles.py +0 -0
  420. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_repos.py +0 -0
  421. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_serve.py +0 -0
  422. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_serve_http.py +0 -0
  423. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_session_cgroup_kernel_proof.py +0 -0
  424. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_session_enum.py +0 -0
  425. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_sessions.py +0 -0
  426. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_sessions_attach.py +0 -0
  427. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_sessions_create_routing.py +0 -0
  428. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_sessions_kill.py +0 -0
  429. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_sessions_mem_cap.py +0 -0
  430. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_sessions_rename.py +0 -0
  431. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_sessions_warnings.py +0 -0
  432. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_tree.py +0 -0
  433. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_usage.py +0 -0
  434. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_windows_config_ci_selection.py +0 -0
  435. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/test_workspaces.py +0 -0
  436. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/__init__.py +0 -0
  437. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/conftest.py +0 -0
  438. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/test_app.py +0 -0
  439. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/test_autostart.py +0 -0
  440. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/test_bundle.py +0 -0
  441. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/test_cli.py +0 -0
  442. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/test_endpoint_native.py +0 -0
  443. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/test_gateway_auth.py +0 -0
  444. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/test_icons.py +0 -0
  445. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/test_model.py +0 -0
  446. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/test_private_replacement.py +0 -0
  447. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/test_repair.py +0 -0
  448. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/test_single_instance.py +0 -0
  449. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/test_status_client.py +0 -0
  450. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/test_supervisor.py +0 -0
  451. {pocketshell-0.5.14 → pocketshell-0.5.15}/tests/tray/test_vault_password.py +0 -0
  452. {pocketshell-0.5.14 → pocketshell-0.5.15}/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.15
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
@@ -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
  ```
@@ -152,6 +153,11 @@ release directory, not the registry's DefaultShell or user/system PATH. Plain
152
153
  `pocketshell` and `a` commands from older PSC clients therefore resolve the
153
154
  bundled executables without client provisioning. The builder verifies the
154
155
  complete rebuilt executable/DLL inventory and every digest before staging it.
156
+ For this managed Bash, PTY and non-PTY commands use its MSYS argument decoder,
157
+ which requires escaping every backslash as well as quotes. A private spawn
158
+ attribute selects this codec only for `SH_BASH`; other spawn callers retain
159
+ the standard codec. The native unit exercises the measured Bash executable,
160
+ and the packaged SSH gate checks raw Python source with Windows path literals.
155
161
 
156
162
  Obtain the PSC zip and SHA256 from the reviewed pocketshell-tui-client release
157
163
  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.15"
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,99 @@
1
+ """Fail closed unless every real packaged Windows lifecycle case executes."""
2
+ from __future__ import annotations
3
+
4
+ import argparse
5
+ import hashlib
6
+ import json
7
+ import os
8
+ from pathlib import Path
9
+ import sys
10
+
11
+ import pytest
12
+
13
+ CASES = {
14
+ "test_fresh_create_pty_reconnect_and_owned_kill",
15
+ "test_project_cap_is_kernel_enforced_not_only_reported",
16
+ "test_invalid_caps_and_mutable_selectors_fail_closed",
17
+ "test_private_pty_encoder_preserves_one_exact_windows_operand",
18
+ "test_private_profile_preserves_complete_scripts_and_interactive_shell",
19
+ "test_packaged_launchers_preserve_console_and_quiet_stdio",
20
+ }
21
+
22
+
23
+ class Inventory:
24
+ def __init__(self):
25
+ self.collected, self.passed, self.rejected = [], [], []
26
+
27
+ def pytest_collection_finish(self, session):
28
+ self.collected = [item.name for item in session.items]
29
+
30
+ def pytest_runtest_logreport(self, report):
31
+ if report.skipped or report.failed:
32
+ self.rejected.append(report.nodeid)
33
+ if report.when == "call" and report.passed:
34
+ self.passed.append(report.nodeid.rsplit("::", 1)[-1])
35
+
36
+
37
+ def main():
38
+ parser = argparse.ArgumentParser()
39
+ parser.add_argument("--payload", required=True, type=Path)
40
+ parser.add_argument("--out", required=True, type=Path)
41
+ args = parser.parse_args()
42
+ assert sys.platform == "win32", "native gate cannot be qualified on another platform"
43
+ args.out.mkdir(parents=True, exist_ok=False)
44
+ proof_path = args.out / "native-proof.json"
45
+ os.environ["POCKETSHELL_TRAY_TERMINAL_PAYLOAD"] = str(args.payload.resolve())
46
+ os.environ["POCKETSHELL_TRAY_TERMINAL_PROOF"] = str(proof_path.resolve())
47
+ inventory = Inventory()
48
+ test = Path(__file__).resolve().parents[2] / "tests/release/test_windows_tray_terminal_native.py"
49
+ encoder = test.with_name("test_private_pty_argv_native.py")
50
+ code = pytest.main([str(test), str(encoder), "-v", "-rA", "-s",
51
+ "--junitxml=" + str(args.out / "junit.xml")], plugins=[inventory])
52
+ result = {"expected": sorted(CASES), "collected": inventory.collected,
53
+ "passed": inventory.passed, "rejected": inventory.rejected, "pytestCode": int(code)}
54
+ (args.out / "result.json").write_text(json.dumps(result, indent=2))
55
+ assert code == 0 and len(inventory.collected) == len(CASES) and set(inventory.collected) == CASES
56
+ assert len(inventory.passed) == len(CASES) and set(inventory.passed) == CASES and not inventory.rejected
57
+ proof = json.loads(proof_path.read_text())
58
+ assert proof["qualification"] == "clean-exact-head-artifact"
59
+ assert proof["provenance"]["elevated"] is False and proof["provenance"]["isolated"] is True
60
+ assert len(proof["proofs"]) == 12 and all(row["independentFileOracle"] for row in proof["proofs"])
61
+ assert any(row.get("interruptVerified") is True for row in proof["proofs"])
62
+ profiles = [row for row in proof["proofs"] if "privateProfilePTY" in row]
63
+ assert len(profiles) == 2 and {row["privateProfilePTY"] for row in profiles} == {False, True}
64
+ assert all(row["argvDataPreserved"] and row["shellExpansionPreserved"]
65
+ and row["embeddedSourcePreserved"] for row in profiles)
66
+ assert len(proof["killProofs"]) == 5 and all(len(row["ownedProcessesGone"]) == 2 for row in proof["killProofs"])
67
+ observations = proof["memoryObservations"]
68
+ assert len(observations) == 2
69
+ python_sha = hashlib.sha256((args.payload / "runtime/python/python.exe").read_bytes()).hexdigest()
70
+ interpreter = proof["provenance"]["module"].replace("\\", "/").casefold().split("/app.zip/", 1)[0] + "/python.exe"
71
+ assert all(row["isolated"] is True and row["childJobMember"] is True and row["imageVerified"] is True
72
+ and row["imageSHA256"] == python_sha
73
+ and row["imagePath"].replace("\\", "/").casefold() == interpreter for row in observations)
74
+ assert all(row["kernelFlags"] & 0x200 and row["kernelFlags"] & 0x2000
75
+ and not row["kernelFlags"] & (0x800 | 0x1000)
76
+ and row["before"]["memory_limit_bytes"] == row["after"]["memory_limit_bytes"] == row["kernelLimitBytes"]
77
+ for row in observations)
78
+ control, bounded = observations
79
+ assert control["kernelLimitBytes"] == 12 * 1024**3 and control["nativeExit"] == 0
80
+ assert control["allocation"]["value"]["allocated"] is True
81
+ assert control["before"]["oom_kill_count"] == control["after"]["oom_kill_count"]
82
+ assert bounded["kernelLimitBytes"] == 64 * 1024**2 and bounded["nativeExit"] == 0xC000012D
83
+ assert bounded["after"]["oom_kill_count"] == bounded["before"]["oom_kill_count"] + 1
84
+ assert len(proof["oomPreservations"]) == 1
85
+ preserved = proof["oomPreservations"][0]
86
+ assert preserved["preservedBeforeExplicitCleanup"] is True and len(preserved["preservationSHA256"]) == 64
87
+ ended = preserved["nativeEndedRecord"]
88
+ assert ended["exit"]["oom_killed"] is True and ended["phase"] == ended["state"] == "exited"
89
+ assert ended["worker_alive"] is False and ended["containment_empty"] is True
90
+ assert bounded["before"]["job"] == bounded["after"]["job"] == "aplexer-" + preserved["id"]
91
+ assert preserved["firstKill"]["uncertain"] is False and "not confirmed" in preserved["firstKill"]["error"]
92
+ assert preserved["absence"]["namedJobAbsent"] is True
93
+ explicit = [row for row in proof["killProofs"] if row["explicitEndedCleanup"]]
94
+ assert len(explicit) == 1 and explicit[0]["id"] == preserved["id"]
95
+ assert explicit[0]["ownedProcessesGone"] == preserved["absence"]["ownedPIDsUnallocated"]
96
+
97
+
98
+ if __name__ == "__main__":
99
+ main()
@@ -38,7 +38,7 @@ import urllib.request
38
38
  import zipfile
39
39
  from pathlib import Path
40
40
  sys.path.insert(0, str(Path(__file__).resolve().parent))
41
- from private_shell_overlay import patch_pwd, patch_session
41
+ from private_shell_overlay import patch_pwd, patch_session, patch_spawn
42
42
 
43
43
  REPO = Path(__file__).resolve().parents[2]
44
44
  INPUTS = REPO / "release" / "inputs"
@@ -173,7 +173,7 @@ def build_openssh(work: Path, out: Path, rec: Recorder) -> dict:
173
173
  overlay[rel] = {"upstream": upstream, "reviewed": reviewed}
174
174
  inputs["overlay"] = overlay
175
175
  inputs["privateShellOverlaySHA256"] = sha256(Path(__file__).with_name("private_shell_overlay.py"))
176
- for name, patch in (("pwd.c", patch_pwd), ("w32-doexec.c", patch_session)):
176
+ for name, patch in (("pwd.c", patch_pwd), ("w32-doexec.c", patch_session), ("w32fd.c", patch_spawn)):
177
177
  target = src / "contrib/win32/win32compat" / name
178
178
  upstream = sha256(target)
179
179
  target.write_text(patch(target.read_text(encoding="utf-8")), encoding="utf-8")
@@ -334,7 +334,7 @@ def main() -> int:
334
334
  if ok and args.part == "openssh":
335
335
  staging = {"sourceArchiveSHA256": OPENSSH["sha256"],
336
336
  "source": {name: result["inputs"]["overlay"][name]["reviewed"]
337
- for name in ("pwd.c", "w32-doexec.c")},
337
+ for name in ("pwd.c", "w32-doexec.c", "w32fd.c")},
338
338
  "files": result["outputs"], "processes": rec.processes}
339
339
  (out / "openssh/receipt.json").write_text(json.dumps(staging, indent=2))
340
340
  print(json.dumps({k: receipt.get(k) for k in ("part", "accepted", "outputs", "error")}, indent=1))
@@ -325,6 +325,31 @@ def stage_guardian(root, catalog):
325
325
  catalog["lineage"]["policy"]["sourceSHA256"] = expected[2]
326
326
 
327
327
 
328
+ def stage_cli_launcher(source, root, catalog):
329
+ """Stage the current GUI-subsystem CLI entry, preserving its catalog role."""
330
+ if source is None:
331
+ raise ValueError("The current source-built CLI launcher is required")
332
+ source = Path(source)
333
+ with source.open("rb") as stream:
334
+ header = stream.read(4096)
335
+ try:
336
+ pe, = struct.unpack_from("<I", header, 0x3c)
337
+ valid = (header[:2] == b"MZ" and header[pe:pe+4] == b"PE\0\0"
338
+ and struct.unpack_from("<H", header, pe+4)[0] == 0x8664
339
+ and struct.unpack_from("<H", header, pe+24)[0] == 0x20b
340
+ and struct.unpack_from("<H", header, pe+24+68)[0] == 2)
341
+ except struct.error:
342
+ valid = False
343
+ if not valid:
344
+ raise ValueError("The current CLI launcher must be an x64 GUI-subsystem PE")
345
+ rows = [row for row in catalog["files"] if row["role"] == "cli"]
346
+ if len(rows) != 1:
347
+ raise ValueError("The base catalog has no single CLI launcher")
348
+ target = root / rows[0]["path"]
349
+ shutil.copyfile(source, target)
350
+ return {"path": rows[0]["path"], "sha256": digest(target)}
351
+
352
+
328
353
  def stage_python_application(root):
329
354
  """Build the frozen Python application for a measured Windows closure."""
330
355
  with tempfile.TemporaryDirectory() as scratch:
@@ -388,6 +413,7 @@ def build(args):
388
413
  backend_receipt = stage_private_backend(args.endpoint_backend, args.endpoint_backend_receipt_sha256, root, catalog)
389
414
  shutil.copyfile(Path(args.endpoint_backend) / "receipt.json", out / "payload/private-endpoint-build-receipt.json")
390
415
  shutil.copyfile(args.tray_launcher, root / "GatewayTray.exe")
416
+ cli_launcher = stage_cli_launcher(args.cli_launcher, root, catalog)
391
417
  stage_python_application(root)
392
418
  stage_guardian(root, catalog)
393
419
  helper_receipt = stage_helper(args.helper, args.helper_sha256, args.helper_version, root, catalog)
@@ -431,6 +457,7 @@ def build(args):
431
457
  receipt["helper"] = helper_receipt
432
458
  receipt["psc"] = psc_receipt
433
459
  receipt["privateEndpoint"] = backend_receipt
460
+ receipt["cliLauncher"] = cli_launcher
434
461
  (out / "installer-receipt.json").write_text(json.dumps(receipt, indent=2))
435
462
  print(json.dumps(receipt, indent=2))
436
463
 
@@ -442,6 +469,7 @@ if __name__ == "__main__":
442
469
  parser.add_argument("--aplexer-cli-wheel", required=True, help="Pinned aplexer 0.1.13 Windows CLI wheel")
443
470
  parser.add_argument("--aplexer-client-wheel", required=True, help="Pinned aplexer-client 0.1.13 Windows wheel")
444
471
  parser.add_argument("--tray-launcher", required=True, help="native/launcher built with -X main.module=pocketshell.tray_bundle")
472
+ parser.add_argument("--cli-launcher", required=True, help="native/launcher built from this source for the default CLI entry")
445
473
  parser.add_argument("--psc-zip", required=True, help="Reviewed standalone psc-windows-x64 zip")
446
474
  parser.add_argument("--psc-sha256", required=True, help="Expected SHA256 of the PSC zip")
447
475
  parser.add_argument("--ssh-zip", required=True, help="Microsoft's portable OpenSSH-Win64.zip")
@@ -0,0 +1,250 @@
1
+ """Owned Win32 OpenSSH shell/PATH derivation for the catalogued private runtime.
2
+
3
+ No registry default shell or user/system PATH is consulted. Paths are derived
4
+ from the held sshd-session image's release layout, whose files the guardian
5
+ already validates. This adapter is deliberately not a system OpenSSH build.
6
+ """
7
+
8
+ PWD = r'''static int
9
+ set_defaultshell()
10
+ {
11
+ wchar_t candidate[PATH_MAX], path[PATH_MAX];
12
+ if (pw_shellpath != NULL)
13
+ return 0;
14
+ if (swprintf_s(candidate, _countof(candidate), L"%s\\..\\shell\\usr\\bin\\bash.exe", __wprogdir) < 0 ||
15
+ _wfullpath(path, candidate, _countof(path)) == NULL ||
16
+ GetFileAttributesW(path) == INVALID_FILE_ATTRIBUTES) {
17
+ errno = ENOENT;
18
+ return -1;
19
+ }
20
+ pw_shellpath = utf16_to_utf8(path);
21
+ shell_command_option = _strdup("--noprofile --norc -c");
22
+ shell_arguments = _strdup("--noprofile --norc -i");
23
+ if (!pw_shellpath || !shell_command_option || !shell_arguments) {
24
+ free(pw_shellpath); free(shell_command_option); free(shell_arguments);
25
+ pw_shellpath = shell_command_option = shell_arguments = NULL;
26
+ errno = ENOMEM;
27
+ return -1;
28
+ }
29
+ convertToBackslash(pw_shellpath);
30
+ to_lower_case(pw_shellpath);
31
+ arg_escape = TRUE;
32
+ return 0;
33
+ }'''
34
+
35
+ PATH = r''' /* PocketShell private release: managed tools precede every other directory.
36
+ * Never import user or registry PATH dependencies. */
37
+ wchar_t candidate[PATH_MAX], root[PATH_MAX], system[MAX_PATH], path[PATH_MAX * 5];
38
+ if (swprintf_s(candidate, _countof(candidate), L"%s\\..\\..", __wprogdir) < 0 ||
39
+ _wfullpath(root, candidate, _countof(root)) == NULL ||
40
+ !GetSystemDirectoryW(system, _countof(system)) ||
41
+ swprintf_s(path, _countof(path), L"%s\\python;%s;%s\\endpoint\\shell\\usr\\bin;%s\\endpoint\\shell\\mingw64\\bin;%s",
42
+ root, root, root, root, system) < 0 ||
43
+ _wputenv_s(L"PATH", path) != 0 || !SetEnvironmentVariableW(L"PATH", path))
44
+ fatal("Cannot construct the PocketShell private runtime PATH");
45
+ '''
46
+
47
+ COMMANDS = r'''static void
48
+ set_managed_commands(void)
49
+ {
50
+ wchar_t candidate[PATH_MAX], root[PATH_MAX];
51
+ if (swprintf_s(candidate, _countof(candidate), L"%s\\..\\..", __wprogdir) < 0 ||
52
+ _wfullpath(root, candidate, _countof(root)) == NULL)
53
+ fatal("Cannot derive the PocketShell command root");
54
+ for (wchar_t *p = root; *p; ++p)
55
+ if (*p == L'\\') *p = L'/';
56
+ /* Older PSC clients deliberately prepend user bin directories inside
57
+ * /bin/sh -lc. Exported Bash functions keep the managed commands selected
58
+ * through that nested shell, without modifying the user's profile/PATH. */
59
+ if (!SetEnvironmentVariableW(L"POCKETSHELL_RUNTIME_ROOT", root) ||
60
+ !SetEnvironmentVariableW(L"BASH_FUNC_pocketshell%%",
61
+ L"() { command \"$POCKETSHELL_RUNTIME_ROOT/pocketshell.exe\" \"$@\"; }") ||
62
+ !SetEnvironmentVariableW(L"BASH_FUNC_a%%",
63
+ L"() { command \"$POCKETSHELL_RUNTIME_ROOT/python/a.exe\" \"$@\"; }") ||
64
+ !SetEnvironmentVariableW(L"BASH_FUNC_aplexer%%",
65
+ L"() { command \"$POCKETSHELL_RUNTIME_ROOT/python/aplexer.exe\" \"$@\"; }"))
66
+ fatal("Cannot export the PocketShell managed commands");
67
+ }
68
+
69
+ '''
70
+
71
+ # MSYS Bash parses its Windows command line differently from the Microsoft CRT:
72
+ # paired backslashes must also be escaped before ordinary characters. This is
73
+ # argv transport, not Bash-language quoting; the complete script stays intact.
74
+ MSYS_SPAWN_FLAG = "#define POCKETSHELL_SPAWN_MSYS_ARGV 0x4000\n"
75
+ PTY_ARGV = r'''static char *
76
+ pocketshell_quote_pty_script(const char *script)
77
+ {
78
+ size_t length = strlen(script);
79
+ char *encoded, *out;
80
+ if (length > (SIZE_MAX - 3) / 2) {
81
+ errno = EOVERFLOW;
82
+ return NULL;
83
+ }
84
+ if ((encoded = malloc(length * 2 + 3)) == NULL)
85
+ return NULL;
86
+ out = encoded;
87
+ *out++ = '"';
88
+ for (const char *p = script; *p; p++) {
89
+ if (*p == '\\' || *p == '"') *out++ = '\\';
90
+ *out++ = *p;
91
+ }
92
+ *out++ = '"';
93
+ *out = '\0';
94
+ return encoded;
95
+ }
96
+
97
+ '''
98
+
99
+ MSYS_COMMANDLINE = r'''static char *
100
+ pocketshell_msys_commandline(const char *cmd, char *const argv[], BOOLEAN prepend_module_path)
101
+ {
102
+ /* Keep the existing executable resolution/argv[0] policy. Only the
103
+ * remaining operands use the explicitly selected MSYS decoder. */
104
+ char *base = build_commandline_string(cmd, NULL, prepend_module_path);
105
+ char *result, *out;
106
+ size_t size;
107
+ if (base == NULL) return NULL;
108
+ size = strlen(base) + 1;
109
+ if (argv) for (char *const *arg = argv; *arg; arg++) {
110
+ size_t length = strlen(*arg);
111
+ if (length > (SIZE_MAX - 4) / 2 || size > SIZE_MAX - (length * 2 + 4)) {
112
+ free(base); errno = EOVERFLOW; return NULL;
113
+ }
114
+ size += length * 2 + 4;
115
+ }
116
+ result = malloc(size);
117
+ if (result == NULL) { free(base); return NULL; }
118
+ strcpy_s(result, size, base);
119
+ free(base);
120
+ out = result + strlen(result);
121
+ if (argv) for (char *const *arg = argv; *arg; arg++) {
122
+ char *encoded = pocketshell_quote_pty_script(*arg);
123
+ if (encoded == NULL) { free(result); return NULL; }
124
+ *out++ = ' ';
125
+ size_t length = strlen(encoded);
126
+ memcpy(out, encoded, length);
127
+ out += length;
128
+ free(encoded);
129
+ }
130
+ *out = '\0';
131
+ return result;
132
+ }
133
+
134
+ '''
135
+
136
+
137
+ def patch_spawn(text):
138
+ """Explicit private attribute; preserve every unselected spawn caller."""
139
+ anchor = "static int\nspawn_child_internal("
140
+ signature = "BOOLEAN prepend_module_path, BOOLEAN load_user_env)\n{"
141
+ begin = text.index(anchor)
142
+ end = text.index("\n}", begin) + 2
143
+ body = text[begin:end]
144
+ if body.count(signature) != 1:
145
+ raise ValueError("Unexpected upstream spawn-child signature")
146
+ body = body.replace(signature, "BOOLEAN prepend_module_path, BOOLEAN load_user_env, BOOLEAN msys_argv)\n{")
147
+ old = "build_commandline_string(cmd, argv, prepend_module_path)"
148
+ if body.count(old) != 1:
149
+ raise ValueError("Unexpected upstream command-line construction")
150
+ body = body.replace(old, "(msys_argv ? pocketshell_msys_commandline(cmd, argv, prepend_module_path) : " + old + ")")
151
+ patched = text[:begin] + MSYS_SPAWN_FLAG + "#include <stdint.h>\n" + PTY_ARGV + MSYS_COMMANDLINE + body + text[end:]
152
+ old_call = "spawn_child_internal(path, argv + 1, &si_ex, sc_flags, user_token, prepend_module_path, load_user_env)"
153
+ if patched.count(old_call) != 1:
154
+ raise ValueError("Unexpected upstream spawn-child caller")
155
+ patched = patched.replace(old_call, old_call[:-1] + ",\n"
156
+ " attrp && (attrp->flags & POCKETSHELL_SPAWN_MSYS_ARGV))")
157
+ # The private attribute is never a Windows creation flag. Existing pgroup
158
+ # behavior is unchanged for every caller without this new attribute.
159
+ group = "attrp && attrp->flags == POSIX_SPAWN_SETPGROUP"
160
+ if patched.count(group) != 1:
161
+ raise ValueError("Unexpected upstream process-group selection")
162
+ return patched.replace(group, "attrp && (attrp->flags & ~POCKETSHELL_SPAWN_MSYS_ARGV) == POSIX_SPAWN_SETPGROUP")
163
+
164
+
165
+ def patch_pwd(text):
166
+ begin = text.index("static int\nset_defaultshell()\n{")
167
+ end = text.index("\n}", begin) + 2
168
+ if "RegQueryValueExW(reg_key, L\"DefaultShell\"" not in text[begin:end]:
169
+ raise ValueError("Unexpected upstream default-shell implementation")
170
+ return text[:begin] + PWD + text[end:]
171
+
172
+
173
+ def patch_session(text):
174
+ begin = text.index("\t/* PATH is a special case.")
175
+ end = text.index("\n}", begin)
176
+ if 'L"Environment", L"PATH"' not in text[begin:end]:
177
+ raise ValueError("Unexpected upstream session PATH implementation")
178
+ patched = text[:begin] + PATH + text[end:]
179
+ # Win32 environment names are case-insensitive; registry exports usually
180
+ # spell this one 'Path'. It must not overwrite the private PATH above.
181
+ old = 'strncmp(env_name, "PATH=", strlen("PATH="))'
182
+ if patched.count(old) != 1:
183
+ raise ValueError("Unexpected upstream environment PATH filter")
184
+ patched = patched.replace(old, '_strnicmp(env_name, "PATH=", strlen("PATH="))')
185
+ # The PTY branch constructs CreateProcessW's command line directly, unlike
186
+ # the non-PTY posix_spawn argv below. Raw SSH scripts otherwise lose every
187
+ # word after the first when Bash interprets its -c operand.
188
+ old_pty = '''\t\tif (command) {
189
+ \t\t\tsize_t len = strlen(shell) + 1 + strlen(shell_command_option_local) + 1 + strlen(command) + 1;'''
190
+ new_pty = '''\t\tif (command) {
191
+ char *encoded_script = shell_type == SH_BASH ? pocketshell_quote_pty_script(command) : NULL;
192
+ const char *pty_script = shell_type == SH_BASH ? encoded_script : command;
193
+ if (pty_script == NULL)
194
+ goto cleanup;
195
+ \t\t\tsize_t len = strlen(shell) + 1 + strlen(shell_command_option_local) + 1 + strlen(pty_script) + 1;'''
196
+ if patched.count(old_pty) != 1 or patched.count('strcat_s(pty_cmd, len, command);') != 1:
197
+ raise ValueError("Unexpected upstream PTY shell command construction")
198
+ patched = patched.replace(old_pty, new_pty)
199
+ patched = patched.replace('strcat_s(pty_cmd, len, command);', 'strcat_s(pty_cmd, len, pty_script);')
200
+ end_pty = '\t\t} else {\n\t\t\tif (shell_arguments) {'
201
+ if patched.count(end_pty) != 1:
202
+ raise ValueError("Unexpected upstream PTY no-command branch")
203
+ patched = patched.replace(end_pty, ' free(encoded_script);\n'
204
+ ' if (pty_cmd == NULL)\n goto cleanup;\n' + end_pty)
205
+ # Bash detects SSH stdin and reads .bashrc for noninteractive commands.
206
+ # shell_arguments is only used for an interactive PTY by upstream; it does
207
+ # not protect this exec branch. Pass separate argv elements for exec, and
208
+ # remove the explicit noninteractive startup-file environment hooks.
209
+ patched = patched.replace('char *spawn_argv[4] = { NULL, };', 'char *spawn_argv[6] = { NULL, };')
210
+ previous = '''\t\t\tif (exec_command) {
211
+ \t\t\t\tspawn_argv[1] = shell_command_option_local;
212
+ \t\t\t\tspawn_argv[2] = exec_command;
213
+ \t\t\t}'''
214
+ replacement = '''\t\t\tif (shell_type == SH_BASH) {
215
+ SetEnvironmentVariableW(L"BASH_ENV", NULL);
216
+ SetEnvironmentVariableW(L"ENV", NULL);
217
+ spawn_argv[1] = "--noprofile";
218
+ spawn_argv[2] = "--norc";
219
+ if (exec_command) {
220
+ spawn_argv[3] = "-c";
221
+ spawn_argv[4] = exec_command;
222
+ }
223
+ } else if (exec_command) {
224
+ spawn_argv[1] = shell_command_option_local;
225
+ spawn_argv[2] = exec_command;
226
+ }'''
227
+ if previous not in patched:
228
+ raise ValueError("Unexpected upstream exec-shell argv implementation")
229
+ patched = patched.replace(previous, replacement)
230
+ spawn = "posix_spawn(&pid, spawn_argv[0], &actions, NULL, spawn_argv, NULL)"
231
+ if patched.count(spawn) != 1:
232
+ raise ValueError("Unexpected upstream private-shell spawn call")
233
+ # This explicit attribute is local to this managed SH_BASH call. It does
234
+ # not depend on an environment switch or executable-name heuristic.
235
+ patched = patched.replace('char *spawn_argv[6] = { NULL, };',
236
+ 'char *spawn_argv[6] = { NULL, };\n'
237
+ ' posix_spawnattr_t msys_attrs = { 0 };\n'
238
+ ' msys_attrs.flags = POCKETSHELL_SPAWN_MSYS_ARGV;')
239
+ patched = patched.replace(spawn, "posix_spawn(&pid, spawn_argv[0], &actions,\n"
240
+ " shell_type == SH_BASH ? &msys_attrs : NULL, spawn_argv, NULL)")
241
+ anchor = "static int\nsetup_session_env(struct ssh *ssh, Session* s)"
242
+ if anchor not in patched:
243
+ raise ValueError("Unexpected upstream session environment implementation")
244
+ patched = patched.replace(anchor, MSYS_SPAWN_FLAG + PTY_ARGV + COMMANDS + anchor)
245
+ begin = patched.index(anchor)
246
+ end = patched.index("\nint do_exec_windows", begin)
247
+ section = patched[begin:end]
248
+ if section.count("\tret = 0;") != 1:
249
+ raise ValueError("Unexpected upstream session environment return")
250
+ return patched[:begin] + section.replace("\tret = 0;", "\tset_managed_commands();\n\tret = 0;") + patched[end:]