Hey Anna app developers! ![]()
This one’s big: video generation and audio (TTS / STT) are now open to your Apps and Agents ![]()
— a brand-new async job pipeline, four launch video models, a capability catalog so you never guess parameters, and SDK sugar that makes “submit → wait → play” a single await. On the trust side, the App live bridge now actually delivers what the spec promised (entry_payload to an already-open window, runtime_state_synced, chat artifact cards), apps push makes your permission declarations live instantly, and Apps bundling skills no longer get stuck on NEEDS REPAIR. ![]()
Massive thanks to the developers who drove this cycle: @martindelophy (#373 — the Timeline Studio feature request with real, end-to-end use cases that shaped the entire media API, and #376 — a surgical live-bridge report that uncovered three unimplemented spec paths plus a years-old transport bug
), @Yinghuo_Mars (#358 — the multimodal push that put TTS/STT on the same train), and @sadi (#359 — the Error Journal “permanent NEEDS REPAIR” mystery). You make this platform better with every post. ![]()
Let’s dive in! ![]()
New Features
-
Video generation for Apps & Agents (beta.185, #373/#358) — new video.generate / getJob / cancelJob / listJobsHost API (text-to-video and image-to-video), backed by an async job pipeline (webhook-first with poller fallback, idempotent state machine). Launch catalog: Kling v3 Pro, MiniMax H3 Max, H3 Max Turbo, Seedance 2.5. Job progress and completion arrive asmedia_jobwindow events, and results land on R2 with a presigned URL (re-sign anytime viagetJob). Billing is a clean pre-charge → settle → full refund on failure/cancel cycle driven by your user’s CU pool — no platform-level concurrency or daily caps. Declareui.host_api.video+ ACLllm.videoin your manifest to opt in.
-
Audio for Apps: audio.speak(TTS) +audio.transcribe(STT) (beta.185, #358) — synchronous, straightforward, and covered by the same grant / permission-gate flow as image. The TTS catalog ships six entries (DashScope plus/flash/realtime + fal eleven-v3 / speech-02-hd / xai) with voices and options now living in the catalog, so new voices appear in your App automatically. Declareui.host_api.audio+llm.audio.speak. -
llm.catalogcapability discovery (beta.185) — one call returns availablevideo_gen / image_gen / image_edit / tts / sttmodels, their parameter space, CU pricing, and the user’s remaining quota. Show users the cost before they click generate — no more parameter trial-and-error.
-
@anna-ai/app-runtime 0.20.0 — generateAwaitsugar —anna.video.generateAwait(params, { onProgress, signal })= submit +media_jobsubscription + adaptivegetJobpolling fallback (2s→15s) +AbortSignal→cancelJob. Oneawait, a progress callback, done:const job = await anna.video.generateAwait( { prompt: "Aerial drone shot over a misty pine forest", durationSec: 5, resolution: "768p" }, { onProgress: (p) => bar.update(p), signal: ac.signal } ); video.src = job.result.url; const speech = await anna.audio.speak({ text: "Welcome!", voice: "Cherry" }); const catalog = await anna.llm.catalog({ serviceType: "video_gen" }); -
Agent generate_videotool + Executa media channel (beta.185) — Anna’s agent can now generate video directly in chat, and your Executas getvideo/{generate,getJob,cancelJob}+audio/speakvia reverse RPC with a dedicatedmedia_token— mirroring the image gate’s security model 1:1. -
App live bridge: entry_payloaddelivered to open windows (beta.183, #376) — when a single-instance App is re-invoked with a payload (LLMopen_app_view, REST, orapps.launch), the host now pushes anentry_payloadevent straight into the live iframe (with a fresh token) instead of waiting for a reload. Pure-focus re-invokes (empty payload) don’t push, so your App never replays a stale request.runtime_state_syncedis now dispatched to the frontend too (it was silently dropped before
). SDK 0.19.0 auto-refreshes runtime.entryPayload/ shallow-mergesruntime.runtimeStatebefore your handlers run — older SDKs still receive both viaanna.on(...). -
window.hellonow tells you who you are (beta.184, #376) — the handshake returnsapp: { id, slug, name }, soopen_app_view(which needs the numericapp_id) is finally discoverable from inside the iframe. Available asruntime.appin SDK ≥ 0.19 (nullon older hosts). Dispatcher 0.25.0, additive wire change. -
chat.append_artifactrenders a card (beta.183, #376) — theartifact_appendedevent had zero frontend listeners (RPC returned success, user saw nothing). It now renders a transient chat card (App name + kind badge + summary + collapsible data, injection-safe, 10 KB cap). Thread persistence is a later phase. -
Platform-default Specialized Models (beta.185) — a new system-level default_model_preferencesslot sits between “user preference” and “catalog auto-pick” in routing. If a user never configured vision/TTS/STT/image/video models — or their pick got delisted — your App still gets a sensible default instead of a surprise.
Bug Fixes
-
Draft ACL now tracks your code (beta.183, #376 root cause B) — draft windows read their RPC ACL from the 0.0.0-draftversion row (only projected at install), while bundle code served live from the working slot. Result: push a new permission declaration → running window sayspermission_denieduntil you reinstall.apps pushnow re-projects the manifest in place (only manifest/changelog; bundle pointer and grants untouched), so declarations are live the moment you push. Grants still flow throughapps installas the single write point. -
Agent-worker window events never reached the browser (beta.184, #376) — production verification showed open_viewevents from chat tools (open_app_viewetc.) never arrived. Root cause: the agent worker process never initialized its realtime transport, so every window event it published was silently dropped — a latent bug nobody noticed because the old frontend only didfocus. Fixed, plus a one-time warning if transport is ever missing again.

-
Stale HTML after deploys (beta.184, #376) — assets were content-hashed, but the HTML itself had no Cache-Control, so browsers heuristically cached old pages (with old hash URLs) and pure-frontend fixes didn’t reach users for ages. HTML now shipsCache-Control: no-cache(always revalidate). Your users see your fixes when you ship them. -
Skill/builtin Executas no longer trigger NEEDS REPAIR (beta.184, #359) — @sadi’s Error Journal shipped a bundled skill and immediately got a permanent NEEDS REPAIR badge with a Repair button that did nothing. Skills/builtins by design never produce a deployment row, but four UI checks (detail badge, install list, deck update status, window-ready overlay) still counted them as required. They’re now excluded everywhere; unknown tool IDs still surface honestly. -
Grant-all actually grants all (beta.184) — the one-click “allow everything” skipped default-off sub-toggles (web.allowSearch/allowFetch/allowAdvanced/allowImageSearch/allowImageFetch,image.allowGenerate/allowEdit) and, on the Executa side, skippedweb.*entirely — so users clicked “Allow all” and your calls still got 403. Now every declared sub-toggle is flipped explicitly, andimage_grant.enabledis written so image tokens can actually be minted. A missing key now means “undecided” (so new methods added by an App update re-prompt and can be one-click completed); an explicitfalseis respected and never re-asked. -
Window drag/resize returned 422 on Retina (beta.184) — fractional clientX/Yvs. integer geometry.Math.roundapplied. Tiny bug, very annoying.
-
Permissions panel shows only declared image toggles (beta.184) — “Allow edit” no longer appears for Apps that never declared image.edit. -
Docs corrected (beta.183, #376 Q4) — open_app_viewtakes a numericapp_id: int(docs said slug — the live tool rejected it), andchat.append_artifacttakes nested{ artifact: { kind, summary, data } }. A new official example, anna-executa-examples/anna-app-live-bridge-demo, showsentry_payloadreuse +runtime_state_synced+append_artifactdone right.
@anna-ai/cli 0.1.58 — update now!
npm i -g @anna-ai/cli@latest
# or
pnpm add -g @anna-ai/cli@latest
Dev harness bridges video / audio / catalog locally — seven new host routes (host.video.{generate,getJob,cancelJob,listJobs},host.audio.{speak,transcribe},host.llm.catalog), shared by the iframe SDK path and Executa reverse-RPC path, same shape asimage.*. In real mode they forward to nexus with your existing app session token; in mock mode they answer only from--mock-llmfixtures and returnnot_implementedotherwise (no more accidental fallthrough to generic LLM mock replies).
window.helloapp identity in the local harness too —runtime.appresolves from your attached session, so what you build locally matches production.
Pins @anna-ai/app-runtime 0.20.0, @anna-ai/app-schema 0.26.0 (manifest ui.host_api.video/audio+ ACLllm.video/llm.audio.speakvalidate locally), and runtime-local 0.2.0a28 — verified against beta.185.
Compatibility Notes
Everything is additive. video.*,audio.*,llm.catalog,runtime.app, and theentry_payload/runtime_state_synced/media_jobevents are all new. Apps that change nothing keep working.
To use video/audio, declare them: add ui.host_api.video/ui.host_api.audioand the matching ACL capabilities (llm.video,llm.audio.speak) to your manifest, then bump schema to 0.26.0 (CLI 0.1.58 validates this). Users see the new sub-toggles in the permission gate.
Presigned media URLs expire (~30 min) — handle 403 on <video>by re-signing viavideo.getJob. For permanent storage, fetch the bytes and useupload.negotiate/confirm(counts toward your App storage quota).
Grant semantics — a missing sub-toggle key now means “undecided” and may re-prompt after an App update; explicit falseis a user decision and stays silent. If your App recently addedweb.*/image.*methods, users will get a chance to approve them on next launch.
entry_payloadon re-invoke — if your App previously relied on a reload to receive a new payload, it now arrives live. Handleanna.on("entry_payload", …)(or just readruntime.entryPayloadwith SDK ≥ 0.19) and you’re set.
Feedback Welcome!
Generating your first clip with generateAwait? Wiring llm.catalog into a cost preview? Finally watching entry_payload land in a window that was already open? Tell us how it goes — and what you build with it! ![]()
Once again, this release was community-powered — @martindelophy’s two threads became an entire media subsystem and a live-bridge overhaul, @Yinghuo_Mars got audio on the roadmap and into the release, and @sadi’s report fixed a badge that was lying to every skill-bundling App. Detailed reproductions and real use cases are the fastest route from “request” to “shipped” — keep them coming! ![]()
Happy building! ![]()
![]()