Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,19 @@
- GitHub owner sign-out removes local authorization before attempting remote revocation. Older refreshes and sign-in completions can no longer restore signed-out state or overwrite a newer sign-in.
- MCP sign-out and OAuth client changes now prevent older sign-in and refresh requests from restoring local authorization. Sign-out does not revoke the remote grant.
- Resumed desktop jobs refresh password protection after other jobs fill logins, preventing stale exposure records from leaking passwords in desktop output.
- `GET /v1/agents/{id}/events?partial=true` streams the reply a bot is writing in each snapshot's `partial`, about every 100 ms. Without the parameter, `partial` stays empty as before. The voice gateway uses it to speak while the bot writes.
- Native sign-in accepts the iOS app's new `ng.crumbli.ios:/oauth/callback` redirect instead of `dev.crumble.ios:/oauth/callback`.
- `compose.push.yaml` passes APNs and FCM keys to the server container, and the self-hosting docs describe how to set up remote push.
- A message with a `voice:<callId>:<uuid>` request ID is a spoken message, with `origin.via` `voice`. The bot reads each with a note that its reply is read aloud, and the web transcript shows "Spoken on a call" under it.
- `GET` and `PUT /v1/voice-gateway` read and save the voice gateway's lines and the owner's numbers, and `POST` and `DELETE /v1/voice-gateway/token` issue and revoke the voice gateway token, returned once and stored only as a hash. A line whose bot was deleted or disabled stays saved and is listed in `unavailableLines`.
- A voice gateway connects with its token under `/v1/voice/`, which accepts nothing else and which the token cannot leave: `GET /v1/voice/events` streams the served lines and owner's numbers as `config`, `POST /v1/voice/lines/{username}/messages` sends a spoken message to the line's bot, `GET /v1/voice/lines/{username}/events` streams that bot's chat, and `GET /v1/voice/lines/{username}/executions/{executionId}` reads a spoken message's reply. Revoking or replacing the token closes every voice gateway stream, giving a line another bot or disabling or deleting its bot closes that line's stream, and a second connection replaces the first with `replaced`. `GET /v1/voice-gateway` reports whether a voice gateway is connected.
- **Settings > Voice gateway** in the web app turns the voice gateway on, edits the owner's numbers and each bot's line, shows the connection status and lines whose bot was deleted or disabled, and issues and revokes the voice gateway token, shown once. The docs gain a Voice gateway page.
- A bot whose line may call the owner gets the `call_owner` tool while a voice gateway that opened `GET /v1/voice/events?calls=true` is connected. The server asks the voice gateway to dial the owner's first number with a `call` event, re-sends it after a reconnect until the voice gateway reports `ringing` to `POST /v1/voice/calls/{callId}`, and sends `cancel` when the bot's turn is aborted or the call isn't acknowledged in 15 seconds or settled in 3 minutes 30 seconds. An answered call ends the bot's turn. `PUT /v1/voice/lines` reports line registration while the voice gateway's event stream is live (`409` otherwise), and **Settings > Voice gateway** shows it until that stream closes. A message gateway adapter can't use the ID `voice`, which spoken messages carry as `origin.via`.
- A voice gateway reports each call with `PUT /v1/voice/lines/{username}/calls/{callId}` before the greeting and its end with `POST /v1/voice/calls/{callId}` and `outcome` `ended` with a `reason`. The bot chat shows "Call started", "{bot} called you" with the greeting, and "Call ended" with how long the call lasted and why, as `call-started` and `call-ended` events with a `call` field. A call's end starts one bot turn, from a message with `origin.kind` `call`, after a call the bot placed or one with a spoken message, unless the bot is disabled or the token was revoked; a turn that only reacts or writes nothing sends no notification. The server ends a call itself after 60 seconds without an events stream, 15 seconds after a new stream without a start report, when the token or the line changes, or 4 hours 5 minutes after the start. Active calls and the IDs of ended ones are kept in the settings row `voice-gateway:calls`, so a restart keeps a call until the voice gateway confirms it or the 60 seconds pass, and an ended call stays ended. A start report for a ringing bot-placed call settles it as answered. A ringing call that is cancelled, times out, or whose line goes to another bot is ended for good: its late start report answers `409`. `call_owner` is not offered, and refused, while the bot's line has a call or a call is ringing. A start report or spoken message for an ended call answers `409`.
- Outside calls: a bot whose line has `callsOthers` gets the `request_call` tool and proposes a call to someone other than the owner, with the number, the callee, the goal, and its opening. The owner lists, approves, and declines call requests under `/v1/agents/{id}/call-requests` and reads a call's transcript at `/v1/agents/{id}/call-requests/{requestId}/transcript`; a pending request sends a push notification with `waitingFor` `approval`. Approval dials at once with a `call` event whose new `party` is `outside`. The call runs in its own conversation, whose prompt holds only the goal, the opening, and the call rules, and whose only tool is `hang_up`, with `objected` when the callee objects. What the callee says never reaches the bot chat, and the server answers `409` to every use of an outside call's ID except the line's active outside call; `GET /v1/voice/lines/{username}/events` takes an optional `callId`. When the call ends or isn't answered, the bot chat gets one notice, and the model alone reads the goal and the escaped transcript. A restart ends a request that was still calling as failed. Call events gain an optional `callee`, and new message origins are `callee` and `call_request`.
- The web app shows a call request as a card in the bot chat with the callee, the number, the goal, and the opening, under a reminder of what the opening must say, with **Approve** and **Decline**; a refused approval shows why. After approval the card shows the call's state and outcome, and selecting it opens the call beside the chat, as a job's card does: the goal, the opening, and the transcript, which updates during the call. An outside call shows in the chat as one card where it ended, with how it went, in place of the start and end markers. **Settings > Voice gateway** gains **Calls others** for each line, saved as `callsOthers`. The Voice gateway docs page gains "The bot calls someone else".
- A bot can end a call with the new `hang_up` tool, offered instead of `call_owner` while its line has a call. `GET /v1/voice/lines/{username}/executions/{executionId}` gains `hangUp`: the voice gateway hangs up once the reply was read aloud, and the chat reads "Call ended after …: the bot hung up."
- **Settings > Voice gateway** lists lines as a table with **Calls you** and **Calls others** checkboxes and a **Status** column: **Registered**, **Not registered** with the reason on hover, **Off**, **Offline**, **Connecting**, **Waiting**, or **Not saved**. Select lines to delete them.

## 0.6.0

Expand Down
28 changes: 28 additions & 0 deletions GLOSSARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,34 @@ _Avoid_: Message execution, completed bot work
A connection that sends the owner's messages from an external platform to an existing bot chat and returns only their associated answers. Discord is the first supported platform.
_Avoid_: Chat mirror, new session

**Voice gateway**:
A connection that carries phone calls between the owner and a bot's chat over a telephone system: each bot has its own line, the owner's speech arrives as messages, and the bot's answers are spoken back. A bot can also call the owner, and, after the owner approved it, someone else in an outside call.
_Avoid_: Phone bot, voice session, call agent

**Spoken message**:
An owner message the voice gateway heard on a call. The transcript marks it as spoken, and the bot's answer is read aloud.
_Avoid_: Voice message, voice note

**Line**:
An account on the owner's telephone system that one bot answers and calls from. A call to it reaches that bot's chat.
_Avoid_: Extension, phone number, SIP account (in product language)

**Outside call**:
A call a bot places to someone other than the owner, after the owner approved its call request.
_Avoid_: Third-party call, external call

**Call request**:
A bot's proposal to phone someone other than the owner, with the number, the callee, the goal, and the opening line, which the owner approves or declines in the bot chat.
_Avoid_: Call approval, held call

**Callee**:
The person a bot phones in an outside call. What they say is not an owner message and never reaches the bot chat directly.
_Avoid_: Contact, recipient

**Voice gateway token**:
The credential a voice gateway connects with. It reaches only the account's lines, their bots' chats, and call requests; the owner issues and revokes it in settings.
_Avoid_: API key, password, session

**Group chat**:
A conversation between the owner and several bots, with one shared transcript in which every message shows its sender. It is separate from each member's bot chat.
_Avoid_: Room, channel, group session
Expand Down
4 changes: 4 additions & 0 deletions apps/docs/content/clients/web.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ A credential request card shows the hosts the credential is for. Select
**Decline**. The value goes straight to the credentials service and never
appears in the transcript.

A call request card shows whom a bot wants to phone, the goal, and the
opening it will say. Select **Approve** to dial or **Decline** to refuse; see
[The bot calls someone else](/concepts/voice-gateway#the-bot-calls-someone-else).

After you decide, a card collapses to show the outcome. Bot request decisions
also appear as centered notices in the chat.

Expand Down
Loading
Loading