feat: party knock asks an invite-only party's host for an invite

party list already shows invite-only parties; knock closes the loop.
The knocker can't run any tmux command against the server, so the
channel is write(1), the same one invite uses toward guests, except
here delivery failure is surfaced: the ping is the whole feature.
This commit is contained in:
veg 2026-07-11 12:24:31 +00:00
parent 7770289d85
commit 6799a57405
5 changed files with 163 additions and 4 deletions

16
party.1
View file

@ -20,6 +20,9 @@
.Nm
.Cm leave
.Nm
.Cm knock
.Op Ar name
.Nm
.Cm invite
.Ar user
.Op Fl r
@ -156,6 +159,19 @@ refuses session creation from read-only clients, so an active join is
not possible.
.It Cm leave
Detach from the current party and clean up the per-guest session.
.It Cm knock Op Ar name
Ask the host of an invite-only party for an invite.
Sends a
.Xr write 1
message to the host naming the caller and the exact
.Cm invite
command.
Works for parties
.Cm list
shows as invite-only: the caller shares the party's group but is not
on its allowlist.
Fails when the host has no tty or has messages disabled with
.Xr mesg 1 .
.It Cm invite Ar user Op Fl r Op Fl -party Ar name
Add
.Ar user