Skip to content

Add npm run cue: one command puts Cue in a call and takes it out - #30

Merged
a-Fig merged 1 commit into
mainfrom
cue-launcher
Nov 13, 2026
Merged

a-Fig merged 1 commit into
mainfrom
cue-launcher

Conversation

@a-Fig

@a-Fig a-Fig commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Closes #29

Why

Tyler chose to run Cue on your own machine for the hackathon and hand it a Meet link (#16). By hand that took four steps, and nothing ever removed the bot, which keeps billing Recall until it leaves ($5 budget, about $0.65/h).

Change

  • npm run cue -- <meeting-url> (scripts/cue.mjs):
    • Uses the server on PORT if one already serves Cue's page, or starts server.js as a child process and passes its think lines through.
    • Uses PUBLIC_URL if it serves Cue's page, or opens a cloudflared quick tunnel and waits until its new address resolves. So a stale tunnel address is never sent to Recall.
    • Sends the bot and prints its status in plain words ("in the lobby: admit Cue from the meeting").
    • Removes the bot on Ctrl+C, or after CUE_MAX_MINUTES (60 by default). A second Ctrl+C exits at once. Recall itself leaves about 2 s after everyone else has gone.
    • Stops only the server and tunnel it started itself.
  • scripts/recall.mjs: Recall's bot API (create, status, leave), so send-bot and cue share one bot definition. send-bot works as before.
  • README and CLAUDE.md document the new command.

Not changed: server.js, agent.js, the API.

Screenshots

None: nothing on Cue's screen changes.

Verified

  • npm run check passes.
  • Fresh path (PORT=3100, no PUBLIC_URL): it started the server, opened a tunnel, and waited until the tunnel served the page. Recall rejected the fake meeting link with a 400, which the launcher printed, and then it stopped both the server and the tunnel. Port 3100 was free afterwards.
  • Reuse path: it found the running server on 3000 and the working PUBLIC_URL, used both, and left them running after its error exit.
  • Not checked yet: a real bot joining, the status lines, and Ctrl+C taking the bot out. Under npm on Windows, Ctrl+C may also print "Terminate batch job (Y/N)?". I'll check all of this in Tyler's next call.

Review

No review rule applies: server.js, agent.js and the API are unchanged. It adds no dependencies and doesn't raise spend; it cuts it, by removing forgotten bots.

🤖 Generated with Claude Code

Tyler chose, for the hackathon, to run Cue on your own machine and hand it a Meet link (#16).
By hand that took four steps: start the server, open a tunnel, copy its address into
PUBLIC_URL, send the bot. And nothing ever removed the bot, which keeps billing Recall until
it leaves.

`npm run cue -- <link>` reuses a running server and a PUBLIC_URL that serves Cue's page, or
starts them itself. That way a stale quick-tunnel address can't be sent to Recall. It then
sends the bot, prints its status in plain words, and removes it on Ctrl+C or after
CUE_MAX_MINUTES. Recall's own default already covers the case where everyone else leaves.

The Recall calls move to scripts/recall.mjs, so send-bot and cue share one bot definition.
server.js is untouched: the launcher runs it as a child process.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@a-Fig
a-Fig merged commit 767d65c into main Nov 13, 2026
1 check passed
@a-Fig
a-Fig deleted the cue-launcher branch November 13, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

One command puts Cue in a call and takes it out again

1 participant