pocketshell 0.5.11__tar.gz → 0.5.12__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.
- {pocketshell-0.5.11 → pocketshell-0.5.12}/PKG-INFO +1 -1
- {pocketshell-0.5.11 → pocketshell-0.5.12}/docs/tray.md +2 -2
- {pocketshell-0.5.11 → pocketshell-0.5.12}/pyproject.toml +1 -1
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/status.py +274 -30
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tray/app.py +20 -5
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tray/model.py +75 -25
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tray_bundle.py +33 -2
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_status.py +332 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_private_endpoint.py +2 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/test_app.py +42 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/test_bundle.py +32 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/test_model.py +96 -8
- {pocketshell-0.5.11 → pocketshell-0.5.12}/uv.lock +1 -1
- {pocketshell-0.5.11 → pocketshell-0.5.12}/.gitattributes +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/.gitignore +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/LICENSE +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/README.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/docs/account.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/docs/architecture.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/docs/gateway-distribution.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/docs/gateway.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/docs/keys.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/docs/link-transport.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/docs/windows-gateway-client.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/docs/windows-gateway-private-runtime.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/docs/windows-tray-installer.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/launcher/go.mod +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/launcher/main.go +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/verify/context.go +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/verify/context_test.go +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/verify/context_windows.go +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/verify/entry.go +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/verify/go.mod +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/verify/go.sum +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/verify/main.go +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/verify/protocol.go +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/verify/protocol_test.go +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/verify/spawn_test.go +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/verify/spawn_windows.go +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/verify/verify_other.go +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/native/verify/verify_windows.go +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/pocketshell-tray.spec +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/aplexer-fc396/README.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/aplexer-fc396/SHA256SUMS +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/aplexer-fc396/windows-native-fc396.zip +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/dossiers/OWNED-BUILD-V26A.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/dossiers/SHA256SUMS +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/dossiers/quiet-build-terminal-fields-addendum.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/dossiers/quiet-host-source-build-role-handoff.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/dossiers/transfer-manifest.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/dossiers/windows-aplexer-msys-backend-source-role-handoff.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-6cf7ae85/.gitattributes +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-6cf7ae85/README.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-6cf7ae85/SHA256SUMS +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-6cf7ae85/guardian.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-6cf7ae85/native_api.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-6cf7ae85/policy.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-e862645d/DERIVATION.diff +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-e862645d/README.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-e862645d/SHA256SUMS +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-e862645d/guardian.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-e862645d/native_api.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-e862645d/policy.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-servicing/README.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-servicing/SHA256SUMS +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-servicing/guardian.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-servicing/native_api.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/guardian-servicing/policy.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/msys2-runtime-5a1665c8/SHA256SUMS +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/msys2-runtime-5a1665c8/console.cc +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/openssh-quiet-e302fe1/NULL-PATH-FIX.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/openssh-quiet-e302fe1/SHA256SUMS +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/openssh-quiet-e302fe1/policy-manifest.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/openssh-quiet-e302fe1/shell-host.c +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/openssh-quiet-e302fe1/w32fd.c +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/openssh-quiet-e302fe1/wmain_sshd-auth.c +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/openssh-quiet-e302fe1/wmain_sshd-session.c +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/openssh-quiet-e302fe1/wmain_sshd.c +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/pocketshell-link-70f5a4b/README.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/pocketshell-link-70f5a4b/SHA256SUMS +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/release/inputs/pocketshell-link-70f5a4b/pocketshell-link-windows-amd64.exe +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scheduler/README.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scheduler/pocketshell-usage-capture.service +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scheduler/pocketshell-usage-capture.timer +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/check-antigravity-contract.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/check-cgroup-cap-proof.sh +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/check-product-tmux-absent.sh +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/check-python-ci-lock.sh +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/reinstall-box-cli.sh +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/release/build_backend_windows.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/release/build_closure.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/release/build_tray_installer.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/release/private_shell_overlay.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/release/psc-install.ps1 +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/release/smoke_tray_bundle.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/release/tray-installer.nsi +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/sync-readme-exit-codes.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/test-usage-missing-window-mutation.sh +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/windows-e2e-sshd-setup.ps1 +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/scripts/windows-gateway-qualify.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/__main__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/account/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/account/broker.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/account/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/account/config.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/account/credentials.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/account/device.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/account/errors.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/account/jsonutil.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/account/sanitize.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/conversations/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/conversations/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/conversations/handoff.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/conversations/messages.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/conversations/readers.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/conversations/resolve.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/conversations/roots.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/kind.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/launch/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/launch/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/launch/command.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/launch/environment.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/launch/run.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/launch/spec.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/agents/launch/trust.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/attachments/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/attachments/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/attachments/prune.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/cards/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/cards/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/cards/paths.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/cards/push.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/cards/store.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/cards/types/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/cards/types/checklist.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/cards/types/note.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/cards/types/registry.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/daemon/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/daemon/cache.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/daemon/client.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/daemon/dispatch.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/daemon/failures.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/daemon/lifecycle.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/daemon/methods.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/daemon/paths.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/daemon/protocol.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/daemon/server.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/engines/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/engines/builtin.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/engines/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/engines/harness.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/engines/registry.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/engines/spec.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/env/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/env/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/env/parse.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/env/store.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/client_cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/devices.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/endpoint.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/helper.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/pins.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/private_endpoint.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/proxy.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/service.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/service_agent_endpoint.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/service_agent_firstuse.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/service_agent_install.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/service_common.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/service_endpoint.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/service_hostkey.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/service_linux.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/service_task_acl.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/service_user_agent.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/service_windows.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/service_windows_endpoint.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/sshcmd.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/tokens.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/gateway/winssh.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/github.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/hooks/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/hooks/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/hooks/handlers.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/hooks/installers.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/hooks/paths.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/hooks/providers/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/hooks/providers/claude.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/hooks/providers/codex.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/hooks/status.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/keys/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/keys/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/keys/crypto.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/keys/prompt.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/keys/session.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/keys/sshkeys.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/keys/store.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/link/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/link/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/link/client.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/link/daemon.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/link/protocol.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/link/relay.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/logs/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/logs/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/logs/events.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/logs/hooks.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/logs/paths.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/logs/redact.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/profiles/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/profiles/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/profiles/discovery.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/profiles/model.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/profiles/resolve.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/push/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/push/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/push/events.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/push/fcm.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/push/store.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/repos/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/repos/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/repos/handlers.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/repos/local.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/repos/model.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/repos/remote.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/repos/render.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/runtime/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/runtime/aplexer.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/runtime/cgroups.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/runtime/console_scripts.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/runtime/memcap.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/runtime/sessions.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/serve.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/sessions/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/sessions/attach.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/sessions/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/sessions/create.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/sessions/kill.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/sessions/listing.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/sessions/rename.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/sessions/warnings.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tokentls.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tray/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tray/__main__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tray/autostart.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tray/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tray/dialogs.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tray/gateway_auth.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tray/icons.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tray/single_instance.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tray/status_client.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tray_repair.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tray_supervisor.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tree/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tree/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tree/daemon.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tree/model.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tree/paths.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tree/storage.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tree/workspaces/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tree/workspaces/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/tree/workspaces/membership.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/usage/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/usage/capture/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/usage/capture/durability.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/usage/capture/history.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/usage/capture/paths.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/usage/capture/quarantine.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/usage/cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/usage/normalize.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/usage/quse.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/usage/reset/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/usage/reset/detect.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/usage/reset/store.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/windows_security.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/src/pocketshell/windows_sessions.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/account/test_account_basics.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/account/test_account_broker.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/account/test_account_cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/account/test_account_credentials.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/account/test_account_device_flow.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/account/test_account_tls.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/account/test_windows_private_storage.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/conftest.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/data/quse-0.0.11-usage.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/data/quse-0.0.13-usage.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/data/quse-0.0.15-usage.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/data/quse-0.0.15-usage.ndjson +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/data/quse-0.0.15-usage.provenance.txt +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/data/quse-0.0.17-gemini.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/data/quse-0.0.17-gemini.provenance.txt +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/data/quse-0.0.9-usage.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/data/sshd_anchor/Dockerfile.from-unanchored-base +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/docker/link/e2e.sh +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/docker/link/e2e_client.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/docker/link/host_entry.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/docker/link/relay_entry.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/fake_broker.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/fixtures/aplexer/README.md +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/fixtures/aplexer/snapshot-agent.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/fixtures/aplexer/snapshot-crashed-start.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/fixtures/aplexer/snapshot-liveness-mix.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/fixtures/aplexer/snapshot-mid-create.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/fixtures/aplexer/snapshot-post-kill-window.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/fixtures/aplexer/snapshot-reported-state.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/fixtures/aplexer/snapshot.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/agent_harness.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/conftest.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/fake_gateway.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/fakeguardian/go.mod +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/fakeguardian/go.sum +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/fakeguardian/main.go +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/fakelink/main.go +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/fixtures/ordinary-v2-authority.schema.json +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/fixtures/task-object-authority.ps1 +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/gateway_keyblobs.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_bundled_hostkey.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_agent_firstuse.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_agent_install.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_agent_resume.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_agent_setup_cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_auth_cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_connect_e2e.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_devices.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_endpoint.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_endpoint_setup.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_enroll_login.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_exec_passthrough.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_helper_metadata.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_helper_resolution.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_helper_wheel.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_pins.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_proxy.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_service.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_service_endpoint.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_service_task_acl.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_service_task_object.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_ssh.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_ssh_key.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_ssh_key_e2e.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_gateway_user_agent.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_agent_install_native.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_aplexer_probe_native.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_complete_runtime_native.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_endpoint_keys_native.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_gateway_e2e.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_gateway_service_native.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_gateway_user_agent_native.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_helper_execution.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_launcher_quiet_native.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_release_closure_native.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_service_private_read.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_spawn_entry_tree_native.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_sshcmd.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_verify_native.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_windows_winssh_native.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/test_winssh.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/gateway/unelevated.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/keys/conftest.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/keys/keyhelpers.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/keys/test_keys_cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/keys/test_keys_crypto.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/keys/test_keys_store.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/link/test_adversarial_security.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/link/test_cli_link.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/link/test_exec_semantics.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/link/test_loopback.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/link/test_protocol.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/link/test_resilience.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/link/test_workload_integrity.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/release/test_build_backend.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/release/test_tray_installer.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/release/test_windows_psc_install_native.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/release/test_windows_psc_upgrade_native.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_agent_card_push.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_agent_log.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_agents.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_agents_kind.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_antigravity.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_aplexer_contract.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_aplexer_resolution.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_attachments.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_cards.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_cards_push_notify.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_cgroup_agents.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_daemon.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_daemon_fallback.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_daemon_wire.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_engines.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_env.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_github.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_hooks.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_logs.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_main.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_profiles.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_push.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_repos.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_serve.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_serve_http.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_session_cgroup_kernel_proof.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_session_enum.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_sessions.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_sessions_attach.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_sessions_create_routing.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_sessions_kill.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_sessions_mem_cap.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_sessions_rename.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_sessions_warnings.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_tree.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_usage.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_usage_capture.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_usage_reset.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_windows_startup.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/test_workspaces.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/__init__.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/conftest.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/test_autostart.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/test_cli.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/test_endpoint_native.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/test_gateway_auth.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/test_icons.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/test_private_replacement.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/test_repair.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/test_single_instance.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/test_status_client.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/tests/tray/test_supervisor.py +0 -0
- {pocketshell-0.5.11 → pocketshell-0.5.12}/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.
|
|
3
|
+
Version: 0.5.12
|
|
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
|
|
@@ -92,7 +92,7 @@ Right-clicking (or left-clicking on Windows) the tray icon opens the context men
|
|
|
92
92
|
5. **`Stop gateway`**: Stops the gateway background service (enabled when online/degraded).
|
|
93
93
|
6. **`Restart`**: Restarts the gateway agent and endpoint.
|
|
94
94
|
7. **`Open logs folder`**: Opens the PocketShell logs directory in Explorer (Windows) or the system file manager (Linux).
|
|
95
|
-
8. **`Copy device id`**: Copies the
|
|
95
|
+
8. **`Copy device id`**: Copies the live device ID to the system clipboard (the registration the running link actually serves, taken from the link's config; falls back to the enrolled ID when no link runs).
|
|
96
96
|
9. **`Start at login`**: Checkbox toggling autostart at user logon.
|
|
97
97
|
10. **`Quit tray`**: Closes the tray application (does **not** stop the background gateway service).
|
|
98
98
|
|
|
@@ -137,5 +137,5 @@ alone cannot add a login key.
|
|
|
137
137
|
## 6. Notifications
|
|
138
138
|
|
|
139
139
|
The application delivers native system notifications (balloons):
|
|
140
|
-
- **State transitions**: When the gateway moves between states (e.g. `Offline` -> `Online`, or `Online` -> `Degraded`).
|
|
140
|
+
- **State transitions**: When the gateway moves between states (e.g. `Offline` -> `Online`, or `Online` -> `Degraded`). Outage transitions (`offline` / `degraded` / `error`) are announced only after persisting for at least 60 seconds across polls, so a single bad poll never flaps a balloon; the tray icon itself always tracks the latest state. Recovery is announced immediately once an outage was announced — a blip resolving inside the window stays silent.
|
|
141
141
|
- **Client connections**: When a new remote user or key establishes an SSH connection through the gateway.
|
|
@@ -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
|
+
version = "0.5.12"
|
|
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"
|
|
@@ -337,6 +337,143 @@ def read_enrolled_config(config_dir: Optional[str] = None) -> tuple[Optional[str
|
|
|
337
337
|
return None, DEFAULT_SSHD_PORT, None
|
|
338
338
|
|
|
339
339
|
|
|
340
|
+
def _cmdline_argv(raw: bytes) -> list[str]:
|
|
341
|
+
"""Split a /proc/<pid>/cmdline blob into argv (NUL-separated)."""
|
|
342
|
+
return [seg.decode("utf-8", "replace") for seg in raw.split(b"\x00") if seg]
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
def _is_link_run_argv(argv: list[str]) -> bool:
|
|
346
|
+
"""Whether argv invokes a link process (not a client-side subcommand).
|
|
347
|
+
|
|
348
|
+
Token-exact: a client ``gateway proxy`` shares the substrings
|
|
349
|
+
"pocketshell", "gateway" and "run" (via /run/... socket paths) but never
|
|
350
|
+
the token sequence, so substring matching would mistake a connected
|
|
351
|
+
client for a running link.
|
|
352
|
+
"""
|
|
353
|
+
if not argv:
|
|
354
|
+
return False
|
|
355
|
+
prog = os.path.basename(argv[0])
|
|
356
|
+
if prog in ("pocketshell-link", "pocketshell-link.exe"):
|
|
357
|
+
return "run" in argv[1:]
|
|
358
|
+
return any(
|
|
359
|
+
argv[i : i + 3] == ["pocketshell", "gateway", "run"]
|
|
360
|
+
for i in range(len(argv) - 2)
|
|
361
|
+
)
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
def _proc_link_run_entries() -> list[tuple[int, list[str]]]:
|
|
365
|
+
"""(pid, argv) of running link processes via Linux /proc (empty elsewhere)."""
|
|
366
|
+
if not sys.platform.startswith("linux"):
|
|
367
|
+
return []
|
|
368
|
+
entries: list[tuple[int, list[str]]] = []
|
|
369
|
+
try:
|
|
370
|
+
with os.scandir("/proc") as it:
|
|
371
|
+
candidates = [entry for entry in it if entry.name.isdigit()]
|
|
372
|
+
except OSError:
|
|
373
|
+
return []
|
|
374
|
+
for entry in candidates:
|
|
375
|
+
pid = int(entry.name)
|
|
376
|
+
if pid == os.getpid():
|
|
377
|
+
continue
|
|
378
|
+
try:
|
|
379
|
+
with open(os.path.join(entry.path, "cmdline"), "rb") as f:
|
|
380
|
+
raw = f.read(4096)
|
|
381
|
+
except OSError:
|
|
382
|
+
continue
|
|
383
|
+
argv = _cmdline_argv(raw)
|
|
384
|
+
if _is_link_run_argv(argv):
|
|
385
|
+
entries.append((pid, argv))
|
|
386
|
+
return entries
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
def _config_dir_from_argv(argv: list[str]) -> Optional[str]:
|
|
390
|
+
"""The ``--config-dir`` value of a link/run argv, if present.
|
|
391
|
+
|
|
392
|
+
Accepts both ``--config-dir DIR`` and ``--config-dir=DIR``. Returns None
|
|
393
|
+
when the flag is absent (the link then uses the helper's default config
|
|
394
|
+
dir).
|
|
395
|
+
"""
|
|
396
|
+
for i, part in enumerate(argv):
|
|
397
|
+
if part == "--config-dir" and i + 1 < len(argv):
|
|
398
|
+
return argv[i + 1] or None
|
|
399
|
+
if part.startswith("--config-dir="):
|
|
400
|
+
return part.partition("=")[2] or None
|
|
401
|
+
return None
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
def live_link_configs(
|
|
405
|
+
*,
|
|
406
|
+
_entries: Optional[list[tuple[int, list[str]]]] = None,
|
|
407
|
+
) -> list[tuple[str, str]]:
|
|
408
|
+
"""(config_dir, device_id) backing the currently running link processes.
|
|
409
|
+
|
|
410
|
+
Each running ``pocketshell-link run`` / ``pocketshell gateway run``
|
|
411
|
+
process serves exactly one enrollment: the config dir on its command
|
|
412
|
+
line (or the helper default when the flag is absent). Entries are
|
|
413
|
+
deduplicated by config dir, in stable (sorted) order. Empty when no link
|
|
414
|
+
process runs, or when a command line cannot be read on this platform
|
|
415
|
+
(Windows has no cheap locale-independent command-line source; the
|
|
416
|
+
managed tray there already polls with the binding's live config dir).
|
|
417
|
+
"""
|
|
418
|
+
if _entries is None:
|
|
419
|
+
if not sys.platform.startswith("linux"):
|
|
420
|
+
return []
|
|
421
|
+
_entries = _proc_link_run_entries()
|
|
422
|
+
configs: dict[str, str] = {}
|
|
423
|
+
for _pid, argv in _entries:
|
|
424
|
+
flag_dir = _config_dir_from_argv(argv)
|
|
425
|
+
config_dir = flag_dir or common.default_config_dir()
|
|
426
|
+
if config_dir in configs:
|
|
427
|
+
continue
|
|
428
|
+
try:
|
|
429
|
+
device_id, _, _ = read_enrolled_config(config_dir)
|
|
430
|
+
except Exception: # noqa: BLE001 - a half-written config never breaks status
|
|
431
|
+
continue
|
|
432
|
+
if device_id:
|
|
433
|
+
configs[config_dir] = device_id
|
|
434
|
+
return sorted(configs.items())
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
def live_link_device_ids(
|
|
438
|
+
*,
|
|
439
|
+
_entries: Optional[list[tuple[int, list[str]]]] = None,
|
|
440
|
+
) -> list[str]:
|
|
441
|
+
"""Device ids backing the running links, deduplicated, in stable order."""
|
|
442
|
+
return sorted({device_id for _, device_id in live_link_configs(_entries=_entries)})
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
def _prefer_live_device_id(
|
|
446
|
+
enrolled_id: Optional[str], live_ids: list[str]
|
|
447
|
+
) -> tuple[Optional[str], list[str]]:
|
|
448
|
+
"""Pick the device id status should track, plus warning strings.
|
|
449
|
+
|
|
450
|
+
When exactly one enrollment backs the running link(s) it is the live
|
|
451
|
+
host id even if the (default) enrolled config says otherwise — e.g. a
|
|
452
|
+
leftover pre-managed enrollment next to the managed link. When several
|
|
453
|
+
different enrollments each have a live link, the choice is kept
|
|
454
|
+
deterministic (the enrolled id) so status cannot flip-flop between ids
|
|
455
|
+
on every poll; the duplicate-link warning tells the user to remove the
|
|
456
|
+
leftover instead.
|
|
457
|
+
"""
|
|
458
|
+
if len(live_ids) == 1 and live_ids[0] != enrolled_id:
|
|
459
|
+
live = live_ids[0]
|
|
460
|
+
if enrolled_id:
|
|
461
|
+
return live, [
|
|
462
|
+
f"the running gateway link reports device '{live}', not the "
|
|
463
|
+
f"enrolled '{enrolled_id}'; tracking the live registration "
|
|
464
|
+
"(remove the leftover enrollment or service to stop the warning)"
|
|
465
|
+
]
|
|
466
|
+
return live, []
|
|
467
|
+
if len(live_ids) > 1:
|
|
468
|
+
return enrolled_id, [
|
|
469
|
+
f"multiple gateway links are running with different device ids "
|
|
470
|
+
f"({', '.join(live_ids)}); tracking '{enrolled_id or 'none'}' — "
|
|
471
|
+
"stop the leftover link (e.g. the legacy scheduled task) so "
|
|
472
|
+
"presence stops flapping"
|
|
473
|
+
]
|
|
474
|
+
return enrolled_id, []
|
|
475
|
+
|
|
476
|
+
|
|
340
477
|
def _presence_cache_path(device_id: str) -> str:
|
|
341
478
|
uid = getattr(os, "getuid", lambda: "u")()
|
|
342
479
|
safe_id = re.sub(r"[^A-Za-z0-9_-]", "_", device_id)
|
|
@@ -722,7 +859,22 @@ def collect_gateway_status(
|
|
|
722
859
|
all_errors: list[str] = []
|
|
723
860
|
|
|
724
861
|
# 1. Config & Enrollment
|
|
725
|
-
|
|
862
|
+
enrolled_id, sshd_port, server_url = read_enrolled_config(config_dir)
|
|
863
|
+
# The default enrolled config can be a leftover (e.g. a pre-managed
|
|
864
|
+
# enrollment) while the actually running link serves another one. Track
|
|
865
|
+
# the live host id from the link's config so status, presence and "copy
|
|
866
|
+
# device id" follow the live registration instead of a stale file.
|
|
867
|
+
live_configs = live_link_configs()
|
|
868
|
+
live_ids = sorted({dev for _, dev in live_configs})
|
|
869
|
+
device_id, id_warnings = _prefer_live_device_id(enrolled_id, live_ids)
|
|
870
|
+
all_errors: list[str] = []
|
|
871
|
+
all_errors.extend(id_warnings)
|
|
872
|
+
# A single live link from another enrollment is the serving setup: take
|
|
873
|
+
# its endpoint facts (sshd target, server, exec kind) as well.
|
|
874
|
+
status_config_dir = config_dir
|
|
875
|
+
if len(live_configs) == 1 and device_id != enrolled_id:
|
|
876
|
+
status_config_dir = live_configs[0][0]
|
|
877
|
+
_, sshd_port, server_url = read_enrolled_config(status_config_dir)
|
|
726
878
|
|
|
727
879
|
# 2. Agent Status
|
|
728
880
|
agent_dict, agent_errors = collect_agent_status(
|
|
@@ -737,7 +889,7 @@ def collect_gateway_status(
|
|
|
737
889
|
# 3. SSHD Reachability
|
|
738
890
|
endpoint = {"kind": "loopback"}
|
|
739
891
|
try:
|
|
740
|
-
with open(os.path.join(
|
|
892
|
+
with open(os.path.join(status_config_dir or common.default_config_dir(), common.CONFIG_FILE)) as f:
|
|
741
893
|
config = json.load(f)
|
|
742
894
|
if config.get("ssh_exec"):
|
|
743
895
|
endpoint = {"kind": "exec"}
|
|
@@ -851,30 +1003,72 @@ def format_human_status(doc: Mapping[str, Any]) -> str:
|
|
|
851
1003
|
|
|
852
1004
|
# --- Lifecycle commands (start / stop / restart) --------------------------------------
|
|
853
1005
|
|
|
1006
|
+
# The link scheduled task and how long `start` waits for its action to
|
|
1007
|
+
# actually produce a running link process before reporting failure.
|
|
1008
|
+
WINDOWS_LINK_TASK = r"\PocketShell\GatewayLink"
|
|
1009
|
+
START_CONFIRM_SECONDS = 15.0
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
def _windows_task_command(runner: Optional[common.Runner] = None) -> Optional[str]:
|
|
1013
|
+
"""The registered link task's Exec command path, or None when unreadable.
|
|
1014
|
+
|
|
1015
|
+
Uses the locale-independent COM query; any failure returns None so the
|
|
1016
|
+
caller simply skips the stale-path precheck.
|
|
1017
|
+
"""
|
|
1018
|
+
try:
|
|
1019
|
+
from pocketshell.gateway import service_windows
|
|
1020
|
+
info = service_windows.query_task(runner=runner)
|
|
1021
|
+
except Exception: # noqa: BLE001 - lifecycle commands never traceback
|
|
1022
|
+
return None
|
|
1023
|
+
if info is None:
|
|
1024
|
+
return None
|
|
1025
|
+
try:
|
|
1026
|
+
return service_windows.parse_task_xml(info.xml).get("command")
|
|
1027
|
+
except Exception: # noqa: BLE001
|
|
1028
|
+
return None
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
def _windows_task_detail(runner: Optional[common.Runner] = None) -> str:
|
|
1032
|
+
"""Diagnostic suffix (task state, last result) for start failures."""
|
|
1033
|
+
try:
|
|
1034
|
+
from pocketshell.gateway import service_windows
|
|
1035
|
+
info = service_windows.query_task(runner=runner)
|
|
1036
|
+
except Exception: # noqa: BLE001
|
|
1037
|
+
return ""
|
|
1038
|
+
if info is None:
|
|
1039
|
+
return " (the task is no longer registered)"
|
|
1040
|
+
return f" (task state {info.state}, last result {info.last_result})"
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
def _await_agent_start(
|
|
1044
|
+
runner: Optional[common.Runner] = None,
|
|
1045
|
+
timeout: float = START_CONFIRM_SECONDS,
|
|
1046
|
+
*,
|
|
1047
|
+
sleep_fn: Optional[Callable[[float], None]] = None,
|
|
1048
|
+
) -> bool:
|
|
1049
|
+
"""Poll until a link process is running (image-based, locale-independent).
|
|
1050
|
+
|
|
1051
|
+
Service managers report success even when the agent instantly fails
|
|
1052
|
+
(``systemctl start`` exits 0 while the unit crash-loops; ``schtasks
|
|
1053
|
+
/Run`` exits 0 when the task's action instantly fails), so the only
|
|
1054
|
+
honest confirmation is the process itself.
|
|
1055
|
+
"""
|
|
1056
|
+
sleep = sleep_fn or time.sleep
|
|
1057
|
+
deadline = time.monotonic() + timeout
|
|
1058
|
+
while True:
|
|
1059
|
+
if find_running_gateway_pids(runner=runner):
|
|
1060
|
+
return True
|
|
1061
|
+
if time.monotonic() >= deadline:
|
|
1062
|
+
return False
|
|
1063
|
+
sleep(1.0)
|
|
1064
|
+
|
|
1065
|
+
|
|
854
1066
|
def find_running_gateway_pids(runner: Optional[common.Runner] = None) -> list[int]:
|
|
855
1067
|
"""Find process IDs of running pocketshell-link run or pocketshell gateway run processes."""
|
|
856
1068
|
pids: list[int] = []
|
|
857
1069
|
if sys.platform.startswith("linux"):
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
if not entry.name.isdigit():
|
|
861
|
-
continue
|
|
862
|
-
pid = int(entry.name)
|
|
863
|
-
if pid == os.getpid():
|
|
864
|
-
continue
|
|
865
|
-
cmdline_path = os.path.join(entry.path, "cmdline")
|
|
866
|
-
try:
|
|
867
|
-
with open(cmdline_path, "rb") as f:
|
|
868
|
-
raw = f.read(1024)
|
|
869
|
-
cmd = raw.replace(b"\x00", b" ").decode("utf-8", "replace")
|
|
870
|
-
if ("pocketshell-link" in cmd and " run" in cmd) or (
|
|
871
|
-
"pocketshell" in cmd and "gateway" in cmd and "run" in cmd
|
|
872
|
-
):
|
|
873
|
-
pids.append(pid)
|
|
874
|
-
except OSError:
|
|
875
|
-
continue
|
|
876
|
-
except OSError:
|
|
877
|
-
pass
|
|
1070
|
+
for pid, _argv in _proc_link_run_entries():
|
|
1071
|
+
pids.append(pid)
|
|
878
1072
|
if not pids:
|
|
879
1073
|
run_fn = runner or common.run_child
|
|
880
1074
|
try:
|
|
@@ -942,26 +1136,70 @@ def start_gateway(
|
|
|
942
1136
|
if res.returncode != 0:
|
|
943
1137
|
err = common.decode(res.stderr or res.stdout).strip()
|
|
944
1138
|
raise common.ServiceError(f"failed to start pocketshell-gateway.service: {err}")
|
|
1139
|
+
# `systemctl start` exits 0 while the unit crash-loops, so only a
|
|
1140
|
+
# running link process proves the service really started.
|
|
1141
|
+
if not _await_agent_start(run_fn):
|
|
1142
|
+
raise common.ServiceError(
|
|
1143
|
+
"pocketshell-gateway.service accepted the start request but no "
|
|
1144
|
+
f"link process appeared within {START_CONFIRM_SECONDS:g}s; "
|
|
1145
|
+
"check `journalctl --user -u pocketshell-gateway`"
|
|
1146
|
+
)
|
|
945
1147
|
return "started pocketshell-gateway.service"
|
|
946
1148
|
|
|
1149
|
+
already = find_running_gateway_pids(runner=run_fn)
|
|
1150
|
+
if already:
|
|
1151
|
+
return f"gateway agent is already running (PID {', '.join(map(str, already))})"
|
|
1152
|
+
device_id, _, _ = read_enrolled_config()
|
|
1153
|
+
if not device_id:
|
|
1154
|
+
raise common.ServiceError(
|
|
1155
|
+
"no enrolled gateway configuration found; run "
|
|
1156
|
+
"`pocketshell gateway enroll` before starting the agent"
|
|
1157
|
+
)
|
|
947
1158
|
pid = spawn_detached_run(spawn_fn=spawn_fn)
|
|
948
1159
|
return f"pocketshell-gateway.service is not installed; spawned detached 'pocketshell gateway run' (PID {pid})"
|
|
949
1160
|
|
|
950
1161
|
elif sys.platform == "win32":
|
|
1162
|
+
already = find_running_gateway_pids(runner=run_fn)
|
|
1163
|
+
if already:
|
|
1164
|
+
return f"gateway agent is already running (PID {', '.join(map(str, already))})"
|
|
1165
|
+
|
|
951
1166
|
task_installed = False
|
|
952
1167
|
try:
|
|
953
|
-
res = run_fn(["schtasks.exe", "/Query", "/TN",
|
|
1168
|
+
res = run_fn(["schtasks.exe", "/Query", "/TN", WINDOWS_LINK_TASK, "/FO", "CSV"])
|
|
954
1169
|
task_installed = (res.returncode == 0)
|
|
955
1170
|
except Exception:
|
|
956
1171
|
task_installed = False
|
|
957
1172
|
|
|
958
1173
|
if task_installed:
|
|
959
|
-
|
|
1174
|
+
# /Run reports success even when the task's action instantly
|
|
1175
|
+
# fails (a stale helper path after an interrupted upgrade, an
|
|
1176
|
+
# S4U logon refusal), so verify the agent actually came up.
|
|
1177
|
+
command = _windows_task_command(runner)
|
|
1178
|
+
if command and not os.path.exists(command):
|
|
1179
|
+
raise common.ServiceError(
|
|
1180
|
+
f"the {WINDOWS_LINK_TASK} task points at {command}, which does not "
|
|
1181
|
+
"exist; reinstall the gateway (Gateway Setup) or re-run "
|
|
1182
|
+
"`pocketshell gateway service install` with the current helper"
|
|
1183
|
+
)
|
|
1184
|
+
res = run_fn(["schtasks.exe", "/Run", "/TN", WINDOWS_LINK_TASK])
|
|
960
1185
|
if res.returncode != 0:
|
|
961
1186
|
err = common.decode(res.stderr or res.stdout).strip()
|
|
962
1187
|
raise common.ServiceError(f"failed to start GatewayLink task: {err}")
|
|
963
|
-
|
|
964
|
-
|
|
1188
|
+
if not _await_agent_start(runner):
|
|
1189
|
+
raise common.ServiceError(
|
|
1190
|
+
f"the {WINDOWS_LINK_TASK} task accepted the start request but no "
|
|
1191
|
+
f"link process appeared within {START_CONFIRM_SECONDS:g}s"
|
|
1192
|
+
f"{_windows_task_detail(runner)}; check the task's last run "
|
|
1193
|
+
"result in Task Scheduler"
|
|
1194
|
+
)
|
|
1195
|
+
return rf"started {WINDOWS_LINK_TASK} task"
|
|
1196
|
+
|
|
1197
|
+
device_id, _, _ = read_enrolled_config()
|
|
1198
|
+
if not device_id:
|
|
1199
|
+
raise common.ServiceError(
|
|
1200
|
+
"no enrolled gateway configuration found; run "
|
|
1201
|
+
"`pocketshell gateway enroll` (or Gateway Setup) before starting"
|
|
1202
|
+
)
|
|
965
1203
|
pid = spawn_detached_run(spawn_fn=spawn_fn)
|
|
966
1204
|
return f"Task Scheduler task is not installed; spawned detached 'pocketshell gateway run' (PID {pid})"
|
|
967
1205
|
|
|
@@ -1009,14 +1247,14 @@ def stop_gateway(
|
|
|
1009
1247
|
elif sys.platform == "win32":
|
|
1010
1248
|
task_installed = False
|
|
1011
1249
|
try:
|
|
1012
|
-
res = run_fn(["schtasks.exe", "/Query", "/TN",
|
|
1250
|
+
res = run_fn(["schtasks.exe", "/Query", "/TN", WINDOWS_LINK_TASK, "/FO", "CSV"])
|
|
1013
1251
|
task_installed = (res.returncode == 0)
|
|
1014
1252
|
except Exception:
|
|
1015
1253
|
task_installed = False
|
|
1016
1254
|
|
|
1017
1255
|
stopped_task = False
|
|
1018
1256
|
if task_installed:
|
|
1019
|
-
res = run_fn(["schtasks.exe", "/End", "/TN",
|
|
1257
|
+
res = run_fn(["schtasks.exe", "/End", "/TN", WINDOWS_LINK_TASK])
|
|
1020
1258
|
if res.returncode != 0:
|
|
1021
1259
|
err = common.decode(res.stderr or res.stdout).strip()
|
|
1022
1260
|
raise common.ServiceError(f"failed to stop GatewayLink task: {err}")
|
|
@@ -1030,7 +1268,7 @@ def stop_gateway(
|
|
|
1030
1268
|
run_fn(["taskkill", "/PID", str(pid), "/F"])
|
|
1031
1269
|
|
|
1032
1270
|
if stopped_task:
|
|
1033
|
-
return
|
|
1271
|
+
return rf"stopped {WINDOWS_LINK_TASK} task"
|
|
1034
1272
|
elif pids:
|
|
1035
1273
|
return f"stopped detached gateway agent (PID {', '.join(map(str, pids))})"
|
|
1036
1274
|
else:
|
|
@@ -1058,6 +1296,12 @@ def restart_gateway(
|
|
|
1058
1296
|
if res.returncode != 0:
|
|
1059
1297
|
err = common.decode(res.stderr or res.stdout).strip()
|
|
1060
1298
|
raise common.ServiceError(f"failed to restart pocketshell-gateway.service: {err}")
|
|
1299
|
+
if not _await_agent_start(run_fn):
|
|
1300
|
+
raise common.ServiceError(
|
|
1301
|
+
"pocketshell-gateway.service accepted the restart request but no "
|
|
1302
|
+
f"link process appeared within {START_CONFIRM_SECONDS:g}s; "
|
|
1303
|
+
"check `journalctl --user -u pocketshell-gateway`"
|
|
1304
|
+
)
|
|
1061
1305
|
return "restarted pocketshell-gateway.service"
|
|
1062
1306
|
|
|
1063
1307
|
stop_gateway(runner=run_fn, kill_fn=kill_fn)
|
|
@@ -1067,7 +1311,7 @@ def restart_gateway(
|
|
|
1067
1311
|
elif sys.platform == "win32":
|
|
1068
1312
|
task_installed = False
|
|
1069
1313
|
try:
|
|
1070
|
-
res = run_fn(["schtasks.exe", "/Query", "/TN",
|
|
1314
|
+
res = run_fn(["schtasks.exe", "/Query", "/TN", WINDOWS_LINK_TASK, "/FO", "CSV"])
|
|
1071
1315
|
task_installed = (res.returncode == 0)
|
|
1072
1316
|
except Exception:
|
|
1073
1317
|
task_installed = False
|
|
@@ -164,17 +164,32 @@ class TrayApp:
|
|
|
164
164
|
|
|
165
165
|
def do_start(self) -> None:
|
|
166
166
|
logger.info("Starting gateway...")
|
|
167
|
-
self.status_client.start_gateway
|
|
168
|
-
self.poll_once()
|
|
167
|
+
self._run_control("start", self.status_client.start_gateway)
|
|
169
168
|
|
|
170
169
|
def do_stop(self) -> None:
|
|
171
170
|
logger.info("Stopping gateway...")
|
|
172
|
-
self.status_client.stop_gateway
|
|
173
|
-
self.poll_once()
|
|
171
|
+
self._run_control("stop", self.status_client.stop_gateway)
|
|
174
172
|
|
|
175
173
|
def do_restart(self) -> None:
|
|
176
174
|
logger.info("Restarting gateway...")
|
|
177
|
-
self.status_client.restart_gateway
|
|
175
|
+
self._run_control("restart", self.status_client.restart_gateway)
|
|
176
|
+
|
|
177
|
+
def _run_control(self, action: str, control: Callable[[], Any]) -> None:
|
|
178
|
+
"""Run one lifecycle action and actually report what happened.
|
|
179
|
+
|
|
180
|
+
The result is an ``(ok, message)`` pair; both the result and any
|
|
181
|
+
raised exception used to be dropped on the worker-thread floor, so
|
|
182
|
+
a Start that failed left the tray silently showing "offline" with
|
|
183
|
+
no explanation for the user.
|
|
184
|
+
"""
|
|
185
|
+
try:
|
|
186
|
+
result = control()
|
|
187
|
+
ok, message = result if isinstance(result, tuple) and len(result) == 2 else (True, "")
|
|
188
|
+
except Exception as exc:
|
|
189
|
+
ok, message = False, f"gateway {action} failed: {exc}"
|
|
190
|
+
if not ok:
|
|
191
|
+
logger.error("Gateway %s failed: %s", action, message)
|
|
192
|
+
self.notify(message or f"Gateway {action} failed", "Gateway needs attention")
|
|
178
193
|
self.poll_once()
|
|
179
194
|
|
|
180
195
|
def do_open_logs(self) -> None:
|
|
@@ -6,8 +6,9 @@ event detection from any GUI toolkit (pystray/Pillow).
|
|
|
6
6
|
|
|
7
7
|
from __future__ import annotations
|
|
8
8
|
|
|
9
|
+
import time
|
|
9
10
|
from dataclasses import dataclass, field
|
|
10
|
-
from typing import Any, Optional
|
|
11
|
+
from typing import Any, Callable, Optional
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
@dataclass(frozen=True)
|
|
@@ -97,6 +98,15 @@ class MenuItemSpec:
|
|
|
97
98
|
children: tuple[MenuItemSpec, ...] = ()
|
|
98
99
|
|
|
99
100
|
|
|
101
|
+
STATE_LABELS = {
|
|
102
|
+
"online": "Online",
|
|
103
|
+
"degraded": "Degraded",
|
|
104
|
+
"offline": "Offline",
|
|
105
|
+
"not_installed": "Not Installed",
|
|
106
|
+
"error": "Error",
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
100
110
|
@dataclass(frozen=True)
|
|
101
111
|
class TrayModel:
|
|
102
112
|
"""State snapshot for the tray app derived from `gateway status --json`."""
|
|
@@ -173,14 +183,7 @@ class TrayModel:
|
|
|
173
183
|
|
|
174
184
|
@property
|
|
175
185
|
def header_title(self) -> str:
|
|
176
|
-
|
|
177
|
-
"online": "Online",
|
|
178
|
-
"degraded": "Degraded",
|
|
179
|
-
"offline": "Offline",
|
|
180
|
-
"not_installed": "Not Installed",
|
|
181
|
-
"error": "Error",
|
|
182
|
-
}
|
|
183
|
-
label = state_labels.get(self.state, self.state.capitalize())
|
|
186
|
+
label = STATE_LABELS.get(self.state, self.state.capitalize())
|
|
184
187
|
return f"PocketShell: {label}"
|
|
185
188
|
|
|
186
189
|
@property
|
|
@@ -318,32 +321,79 @@ class NotificationEvent:
|
|
|
318
321
|
|
|
319
322
|
|
|
320
323
|
class NotificationDetector:
|
|
321
|
-
"""Detects state changes and new client connections across poll cycles.
|
|
322
|
-
|
|
323
|
-
|
|
324
|
+
"""Detects state changes and new client connections across poll cycles.
|
|
325
|
+
|
|
326
|
+
Downward transitions (offline / degraded / error) are debounced: the
|
|
327
|
+
announcement only goes out once the new state has persisted for
|
|
328
|
+
``debounce_seconds`` across polls, so a single bad poll (a slow broker
|
|
329
|
+
probe, a link process restart between guardian checks) no longer
|
|
330
|
+
produces an "offline" balloon followed by an "online" one. The tray
|
|
331
|
+
icon still tracks the real state on every poll; only the balloons are
|
|
332
|
+
debounced. Recovery to a healthy state is announced immediately, but
|
|
333
|
+
only after the outage itself was announced — a blip that resolved
|
|
334
|
+
inside the window stays completely silent.
|
|
335
|
+
"""
|
|
336
|
+
|
|
337
|
+
DOWN_STATES = ("offline", "degraded", "error")
|
|
338
|
+
DEBOUNCE_SECONDS = 60.0
|
|
339
|
+
|
|
340
|
+
def __init__(
|
|
341
|
+
self,
|
|
342
|
+
*,
|
|
343
|
+
debounce_seconds: float = DEBOUNCE_SECONDS,
|
|
344
|
+
clock: Callable[[], float] = time.monotonic,
|
|
345
|
+
) -> None:
|
|
324
346
|
self._last_state: Optional[str] = None
|
|
325
347
|
self._known_client_keys: Optional[set[str]] = None
|
|
348
|
+
# The last state the user was told about (the first poll counts as
|
|
349
|
+
# announced baseline), the down state waiting out its debounce
|
|
350
|
+
# window, and when that window started.
|
|
351
|
+
self._announced_state: Optional[str] = None
|
|
352
|
+
self._pending_state: Optional[str] = None
|
|
353
|
+
self._pending_since: float = 0.0
|
|
354
|
+
self._debounce_seconds = max(0.0, float(debounce_seconds))
|
|
355
|
+
self._clock = clock
|
|
326
356
|
|
|
327
357
|
def update(self, model: TrayModel) -> list[NotificationEvent]:
|
|
328
358
|
events: list[NotificationEvent] = []
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
359
|
+
now = self._clock()
|
|
360
|
+
state = model.state
|
|
361
|
+
|
|
362
|
+
# 1. Debounced state-transition notification
|
|
363
|
+
if self._last_state is None:
|
|
364
|
+
# Baseline: the first poll sets the reference, never notifies.
|
|
365
|
+
self._announced_state = state
|
|
366
|
+
elif state != self._last_state:
|
|
367
|
+
if state in self.DOWN_STATES:
|
|
368
|
+
# An outage is only announced once it persists; switching
|
|
369
|
+
# between down states keeps the original timer running.
|
|
370
|
+
if self._pending_state is None:
|
|
371
|
+
self._pending_since = now
|
|
372
|
+
self._pending_state = state
|
|
373
|
+
else:
|
|
374
|
+
self._pending_state = None
|
|
375
|
+
if self._announced_state is not None and state != self._announced_state:
|
|
376
|
+
events.append(
|
|
377
|
+
NotificationEvent(
|
|
378
|
+
title=f"PocketShell Gateway: {STATE_LABELS.get(state, state.capitalize())}",
|
|
379
|
+
message=model.summary,
|
|
380
|
+
)
|
|
381
|
+
)
|
|
382
|
+
self._announced_state = state
|
|
383
|
+
elif (
|
|
384
|
+
self._pending_state is not None
|
|
385
|
+
and state == self._pending_state
|
|
386
|
+
and now - self._pending_since >= self._debounce_seconds
|
|
387
|
+
):
|
|
340
388
|
events.append(
|
|
341
389
|
NotificationEvent(
|
|
342
|
-
title=f"PocketShell Gateway: {
|
|
390
|
+
title=f"PocketShell Gateway: {STATE_LABELS.get(state, state.capitalize())}",
|
|
343
391
|
message=model.summary,
|
|
344
392
|
)
|
|
345
393
|
)
|
|
346
|
-
|
|
394
|
+
self._announced_state = state
|
|
395
|
+
self._pending_state = None
|
|
396
|
+
self._last_state = state
|
|
347
397
|
|
|
348
398
|
# 2. New client connection notification
|
|
349
399
|
current_keys = {c.key_identifier for c in model.clients}
|
|
@@ -214,7 +214,9 @@ def control(action):
|
|
|
214
214
|
start_gateway()
|
|
215
215
|
set_enabled(True)
|
|
216
216
|
return True, f"Gateway {action} completed"
|
|
217
|
-
except
|
|
217
|
+
except Exception as exc:
|
|
218
|
+
# A ServiceError or a native-spawn refusal must reach the user as a
|
|
219
|
+
# "needs attention" balloon, not die on the worker-thread floor.
|
|
218
220
|
return False, str(exc)
|
|
219
221
|
|
|
220
222
|
|
|
@@ -273,9 +275,35 @@ def managed_status():
|
|
|
273
275
|
outbound = local.get("outbound") or {}
|
|
274
276
|
doc["agent"].update(installed=True, running=outbound.get("state") == "running", pid=outbound.get("pid"))
|
|
275
277
|
doc["state"], doc["summary"] = status.derive_state(doc["agent"], doc["sshd"], doc["device_id"])
|
|
278
|
+
legacy = legacy_link_task_warning()
|
|
279
|
+
if legacy:
|
|
280
|
+
doc["errors"] = [*doc.get("errors", []), legacy]
|
|
276
281
|
return doc
|
|
277
282
|
|
|
278
283
|
|
|
284
|
+
def legacy_link_task_warning():
|
|
285
|
+
r"""A warning when a pre-managed \PocketShell\GatewayLink task survives.
|
|
286
|
+
|
|
287
|
+
The managed runtime never creates a scheduled task, so a registered
|
|
288
|
+
\PocketShell\GatewayLink is a leftover of an older install. Its 5-minute
|
|
289
|
+
watchdog keeps a SECOND link alive from the old enrollment: duplicate
|
|
290
|
+
device registrations on the gateway and flapping presence. Detection
|
|
291
|
+
only; removal is the user's explicit decision.
|
|
292
|
+
"""
|
|
293
|
+
if sys.platform != "win32":
|
|
294
|
+
return None
|
|
295
|
+
try:
|
|
296
|
+
from pocketshell.gateway import service_windows
|
|
297
|
+
info = service_windows.query_task()
|
|
298
|
+
except Exception:
|
|
299
|
+
return None
|
|
300
|
+
if info is None:
|
|
301
|
+
return None
|
|
302
|
+
return (f"legacy scheduled task \\PocketShell\\GatewayLink is still registered "
|
|
303
|
+
f"(state {info.state}); it can start a duplicate gateway link from an old "
|
|
304
|
+
"enrollment — remove it with `pocketshell gateway service uninstall`")
|
|
305
|
+
|
|
306
|
+
|
|
279
307
|
def status_document():
|
|
280
308
|
# Polling failures are data for the tray, never a modal dialog in a child.
|
|
281
309
|
try:
|
|
@@ -360,7 +388,10 @@ def run_tray(root):
|
|
|
360
388
|
os.startfile(home())
|
|
361
389
|
|
|
362
390
|
def do_control(self, action):
|
|
363
|
-
|
|
391
|
+
try:
|
|
392
|
+
ok, detail = getattr(self.status_client, action + "_gateway")()
|
|
393
|
+
except Exception as exc:
|
|
394
|
+
ok, detail = False, str(exc)
|
|
364
395
|
if not ok:
|
|
365
396
|
self.notify(detail, "Gateway needs attention")
|
|
366
397
|
logging.error("Gateway %s failed: %s", action, detail)
|