Commit Graph
11 Commits
Author SHA1 Message Date
debpalash 97ee0f3707 feat(mobile): add native production workspaces and phone processing 2026-10-25 01:59:47 +05:30
debpalash c547c166ad Merge remote-tracking branch 'origin/fix/issue-batch-2026-10b' into release/sec-combined
# Conflicts:
#	backend/api/routers/openai_compat.py
2026-10-07 12:51:20 +05:30
debpalash 60184c4f5d feat(openai): accept a voice-profile name as the speech voice (#2617)
/v1/audio/speech resolved a voice only by profile UUID, so the name a user
sees in the app fell through to an engine preset. An exact id still wins;
otherwise a unique case-insensitive name matches, a name shared by several
profiles is a 409 ambiguous_voice listing their ids, and OpenAI voice names
and 'default' keep their built-in meaning. GET /v1/audio/voices marks which
profile names are usable as voice. No schema change.
2026-10-07 09:49:01 +05:30
debpalash ff2d72ac1b fix(api): accept container host aliases and credentialed loopback proxies in the host check
Docker Desktop and Podman reach the desktop backend as a loopback peer
addressed by host.docker.internal / host.containers.internal, and a reverse
proxy on the same machine forwards the client's Host with its API key.
Both were refused by the host check. Allow the reserved .internal container
aliases by default, and skip the host check for any peer that presents a
valid API key, admin session, WebSocket ticket or share PIN; requests
without a valid credential stay host-checked.

The refusal now names the user env file for desktop installs. Dub stem,
segment and preview downloads, Ogg/Opus encoding, profile-image search,
storage rescans, HF token checks and Tailscale status also refuse
cross-site GETs. Docs list the guarded routes and where to set
OMNIVOICE_ALLOWED_HOSTS.
2026-10-04 22:41:41 +05:30
swadhinbiswas f9ef22b05f call-agent: never speak reasoning prefilled by the chat template (#2428)
Some chat templates write the opening think tag into the prompt
(Spark-X2.5, Qwen3 thinking variants, DeepSeek-R1-0528 served without a
reasoning parser), so the model streams only …SAY:. ReplyParser had no
opening tag to match, settled on plain mode at the first non-format
characters, and spoke every reasoning sentence — to the person on the
phone, in the user's voice — plus the stray tags.

Implements the reporter's recommended parser-side fix (FenjuFu,
option 1):

- _body now drops everything up to a closing tag found anywhere, or up
  to a line-start SAY: when no closing tag comes either. Both searches
  are stable on the append-only raw text, so _emitted stays aligned.
- _decide_mode no longer settles plain early: the system prompt
  requires replies to start with SAY: or {, so a body with neither is
  held while it streams (it may be prefilled thinking) and only
  finish() speaks it as plain text. Format-following replies keep
  first-sentence streaming.

Regression tests fail before the parser change; the reporter's exact
repro now returns only the SAY: text in both variants.
2026-09-29 21:24:12 +06:00
debpalashandClaude Opus 5.5 58a306fddd feat(integrations): guided Twilio setup and responsive integration pages (#2304)
* feat(integrations): guided Twilio setup and responsive integration pages

- Twilio detail page is a step-by-step checklist (account, tunnel, phone
  number, voice and behavior) with live status, per-step saves, exact
  cloudflared/ngrok commands for the OS and gateway port, copyable webhook
  URL, readiness rail, test card with explicit disabled reasons, recent calls
  and a "How it works" security explainer. Calls backend endpoints
  (/calls/settings, /calls/readiness) and the /calls route are feature-detected.
- Detail pages: per-integration taglines from the registry, own category
  labels (no borrowed "Dubbing" key), one docs link, full-width scroller with
  a two-column container-query layout and sticky rail.
- Select triggers always label their value (no raw __default__, auto, *, or
  locale codes); a source-scan test guards the class.
- Catalog and featured logos open the in-app page, never a vendor website.
- Gateway state exposes preferred_port so the tunnel command is exact before
  calls are turned on.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* docs(changelog): reference #2304

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(integrations): exact tunnel port and honest webhook status

- preferred_port uses the same free-port probe as gateway start, so a taken
  base port no longer yields a tunnel command for the wrong service.
- The phone-number step is Done only after a call that passed the signature
  check; rejected or busy attempts do not count.
- Docs: Learn more applies to pages with a built-in setup.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* docs(changelog): list the #2304 docs update

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(i18n): phone step completes on a signed call; merge changelog Docs

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 17:40:46 +05:30
debpalashandClaude Opus 5.5 535da5e92d feat(calls): phone call agent — outbound Twilio calls and inbound agent mode (#2306)
* feat(calls): phone call agent backend — outbound/inbound calls in your voice

Adds a task-driven call agent on top of the Twilio integration: outbound
calls via Twilio REST with signed status callbacks, a provider-agnostic
conversation loop (energy VAD -> capture ASR -> streamed LLM turn -> streaming
TTS, barge-in via clear), persisted call sessions (alembic 0012), the /calls
local API with SSE events, take-over/say/hangup, and inbound agent mode.

Owner safeguards: editable AI disclosure on by default, outbound voices gated
to verified-own or designed profiles (403), one explicit request per call with
max 1-2 concurrent, recording only when enabled and disclosed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* docs(changelog): reference #2306

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* docs(changelog): add Unreleased highlights

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(calls): address review — affirmative recording notice, one agent-call limit, wider number guard

- Recording needs an affirmative notice; negated disclosures never record (greptile)
- max_concurrent now limits agent calls in both directions (greptile)
- Sensitive-number guard also catches comma and Unicode-dash separators (greptile)
- Constant upsert SQL, https-only urlopen guard, no BaseException catch (code scanning)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(calls): always finalize a connected call; allow brief numbers in any phone style

- Finalize agent calls in a shielded finally so a failed/cancelled stream frees its slot (coderabbit)
- Guard allows numbers from the brief written with parentheses or a country code (coderabbit)
- Docs: the no-LLM fallback needs a configured greeting (coderabbit)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(calls): wait on record changes instead of sleeping; assert the injected stream failure

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 16:35:02 +05:30
debpalashandClaude Opus 5.5 09ec78c711 feat(integrations): Twilio phone calls speak a greeting in a saved voice (#2291)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 07:17:08 +05:30
Palash Debnath 5f1b2123c0 fix(n8n): validate real imports and cover cold-start budgets 2026-09-20 21:42:50 +05:30
Palash Debnath 11e851e401 docs(n8n): require TLS before remote bearer authentication 2026-09-20 21:21:36 +05:30
Palash Debnath 11ea6355cc feat(integrations): export a local n8n speech workflow 2026-09-20 21:17:03 +05:30