🎉 Anna 1.1.0-beta.183 → beta.185 + @anna-ai/cli 0.1.58: Video & Audio for Apps, Live Bridge That Delivers, Push-Instant Permissions

Hey Anna app developers! :waving_hand:

This one’s big: video generation and audio (TTS / STT) are now open to your Apps and Agents :clapper_board::speaker_high_volume: — 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. :fire_extinguisher:

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 :detective:), @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. :purple_heart:

Let’s dive in! :rocket:


:sparkles: New Features

  • :clapper_board: Video generation for Apps & Agents (beta.185, #373/#358) — new video.generate / getJob / cancelJob / listJobs Host 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 as media_job window events, and results land on R2 with a presigned URL (re-sign anytime via getJob). 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. Declare ui.host_api.video + ACL llm.video in your manifest to opt in. :popcorn:

  • :speaker_high_volume: 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. Declare ui.host_api.audio + llm.audio.speak.

  • :card_index_dividers: llm.catalog capability discovery (beta.185) — one call returns available video_gen / image_gen / image_edit / tts / stt models, 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. :light_bulb:

  • :toolbox: @anna-ai/app-runtime 0.20.0 — generateAwait sugar — anna.video.generateAwait(params, { onProgress, signal }) = submit + media_job subscription + adaptive getJob polling fallback (2s→15s) + AbortSignal → cancelJob. One await, 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" });
    
  • :robot: Agent generate_video tool + Executa media channel (beta.185) — Anna’s agent can now generate video directly in chat, and your Executas get video/{generate,getJob,cancelJob} + audio/speak via reverse RPC with a dedicated media_token — mirroring the image gate’s security model 1:1.

  • :window: App live bridge: entry_payload delivered to open windows (beta.183, #376) — when a single-instance App is re-invoked with a payload (LLM open_app_view, REST, or apps.launch), the host now pushes an entry_payload event 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_synced is now dispatched to the frontend too (it was silently dropped before :sweat_smile:). SDK 0.19.0 auto-refreshes runtime.entryPayload / shallow-merges runtime.runtimeState before your handlers run — older SDKs still receive both via anna.on(...).

  • :identification_card: window.hello now tells you who you are (beta.184, #376) — the handshake returns app: { id, slug, name }, so open_app_view (which needs the numeric app_id) is finally discoverable from inside the iframe. Available as runtime.app in SDK ≥ 0.19 (null on older hosts). Dispatcher 0.25.0, additive wire change.

  • :speech_balloon: chat.append_artifact renders a card (beta.183, #376) — the artifact_appended event 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.

  • :control_knobs: Platform-default Specialized Models (beta.185) — a new system-level default_model_preferences slot 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. :person_in_lotus_position:


:bug: Bug Fixes

  • :locked_with_key: Draft ACL now tracks your code (beta.183, #376 root cause B) — draft windows read their RPC ACL from the 0.0.0-draft version row (only projected at install), while bundle code served live from the working slot. Result: push a new permission declaration → running window says permission_denied until you reinstall. apps push now 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 through apps install as the single write point.

  • :satellite_antenna: Agent-worker window events never reached the browser (beta.184, #376) — production verification showed open_view events from chat tools (open_app_view etc.) 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 did focus. Fixed, plus a one-time warning if transport is ever missing again. :ear_with_hearing_aid::sparkles:

  • :file_cabinet: 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 ships Cache-Control: no-cache (always revalidate). Your users see your fixes when you ship them.

  • :wrench: 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.

  • :white_check_mark: 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, skipped web.* entirely — so users clicked “Allow all” and your calls still got 403. Now every declared sub-toggle is flipped explicitly, and image_grant.enabled is 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 explicit false is respected and never re-asked.

  • :computer_mouse: Window drag/resize returned 422 on Retina (beta.184) — fractional clientX/Y vs. integer geometry. Math.round applied. Tiny bug, very annoying. :grinning_face_with_smiling_eyes:

  • :puzzle_piece: Permissions panel shows only declared image toggles (beta.184) — “Allow edit” no longer appears for Apps that never declared image.edit.

  • :books: Docs corrected (beta.183, #376 Q4) — open_app_view takes a numeric app_id: int (docs said slug — the live tool rejected it), and chat.append_artifact takes nested { artifact: { kind, summary, data } }. A new official example, anna-executa-examples/anna-app-live-bridge-demo, shows entry_payload reuse + runtime_state_synced + append_artifact done right.


:toolbox: @anna-ai/cli 0.1.58 — update now!

npm i -g @anna-ai/cli@latest
# or
pnpm add -g @anna-ai/cli@latest
  • :clapper_board: 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 as image.*. In real mode they forward to nexus with your existing app session token; in mock mode they answer only from --mock-llm fixtures and return not_implemented otherwise (no more accidental fallthrough to generic LLM mock replies).
  • :identification_card: window.hello app identity in the local harness too — runtime.app resolves from your attached session, so what you build locally matches production.
  • :package: Pins @anna-ai/app-runtime 0.20.0, @anna-ai/app-schema 0.26.0 (manifest ui.host_api.video/audio + ACL llm.video / llm.audio.speak validate locally), and runtime-local 0.2.0a28 — verified against beta.185.

:puzzle_piece: Compatibility Notes

  • :green_circle: Everything is additive. video.*, audio.*, llm.catalog, runtime.app, and the entry_payload / runtime_state_synced / media_job events are all new. Apps that change nothing keep working.
  • :yellow_circle: To use video/audio, declare them: add ui.host_api.video / ui.host_api.audio and 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.
  • :yellow_circle: Presigned media URLs expire (~30 min) — handle 403 on <video> by re-signing via video.getJob. For permanent storage, fetch the bytes and use upload.negotiate/confirm (counts toward your App storage quota).
  • :yellow_circle: Grant semantics — a missing sub-toggle key now means “undecided” and may re-prompt after an App update; explicit false is a user decision and stays silent. If your App recently added web.* / image.* methods, users will get a chance to approve them on next launch.
  • :green_circle: entry_payload on re-invoke — if your App previously relied on a reload to receive a new payload, it now arrives live. Handle anna.on("entry_payload", …) (or just read runtime.entryPayload with SDK ≥ 0.19) and you’re set.

:open_mailbox_with_raised_flag: 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! :movie_camera:

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! :flexed_biceps:

Happy building! :purple_heart::sparkles:

1 Like