devicefix

command
v0.243.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command devicefix registers a paired phone's push endpoint for the browser suite (e2e/tests/push.spec.ts), as PUT /api/device/push does once its test push is accepted:

DATABASE_URL=…_e2e go run ./e2e/devicefix push <device-id> <endpoint>

⚠ WHY NOT THE ROUTE ITSELF: PUT /api/device/push keeps a registration only after muster has sent the endpoint a VAPID test push and got a 2xx, and the endpoint must be an https URL on the default port of an allowed push host. The e2e harness has no such service, so this command makes the SAME store write the route makes after its probe (push.PGStore.ClaimNative, owner and device from the device row). The route, probe included, is internal/api's TestTheDeviceListNoticesAPhonesPushRegistration.

🔴 IT REFUSES ANY DATABASE WHOSE NAME DOES NOT END IN "_e2e" (e2edb.Check).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL