pushrec

command
v0.0.0-...-7235933 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 13 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 pushrec records what an app gets from a hub over its WebSocket, for replaying it through the hub's push logic (internal/hub/pushreplay_test.go, docs/operations/testing.md "Push replay"). Run it on the hub's machine:

go run ./scripts/pushrec 20m ~/push.jsonl

It connects like an app with the hub token from ~/.persona/hub.json (never printed), at the address the hub listens on (hub.json's listen, PERSONA_LISTEN over it), registers as nothing and opens no chat, and writes one line per message: {"t": Unix ms, "msg": the message}. The file holds real sessions (titles, last lines): it is created 0600 and stays on that machine.

Jump to

Keyboard shortcuts

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