Repository navigation
feat(api): agent broadcasts - an account agent goes live on a channel - #188
Merged
Merged
Conversation
POST /api/v1/agent/broadcasts (Bearer pux_ag_) opens a public SFU room on a channel the agent's owner may use (can_use_resource), with the owner as host, and returns a publish-only LiveKit token whose identity is that host, so the webhook's host-left path ends the live when the publisher disconnects. POST /:id is the heartbeat the listings need, DELETE /:id ends it. Go-live notifications and channel restreams fire as for a person's live. For streaming podcasts (TUI Weekly, Off The Record) to pairux.com/@Moshcoding as they are recorded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan50 finding(s) HIGH/CRITICAL: 4 | MEDIUM: 24 | LOW: 22
Snippets are redacted; ThreatCrush never prints matched credential material. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets an account agent (Bearer
pux_ag_key) go live on a channel its owner may use, without a browser. Built so podcast episodes (TUI Weekly, Off The Record) stream to pairux.com/@Moshcoding when they are recorded.POST /api/v1/agent/broadcasts{ channel, title, description? }checkscan_use_resourcefor the agent owner, opens a public SFU session on the channel with the owner as host, and returns{ sessionId, joinCode, liveUrl, channelUrl, url, token }. The token can only publish (mic + camera) into that one room, and its identity is the host id, so the existing webhook host-left path ends the live when the publisher disconnects.POST /api/v1/agent/broadcasts/:idis the heartbeat (listings drop a host unseen for 90 s).DELETEends the broadcast. Only the agent that started a broadcast can do either.Checks run by hand (the pre-commit hook OOMs on this box): the new vitest file (6 pass),
tsc --noEmiton apps/web with no errors in the new files, eslint and prettier on the changed files.🤖 Generated with Claude Code