Skip to content

@agent-native/core@0.70.0

Choose a tag to compare

@builder-io-integration builder-io-integration released this 23 Jun 19:26
· 7221 commits to main since this release
5edec22

Minor Changes

  • b35c8cb: Add an in-app changelog ("What's new") surface. Every app can now ship a
    user-facing CHANGELOG.md that renders in the command menu (Cmd+K) and in
    settings. Core provides <ChangelogDialog>, <ChangelogSettingsCard>, a
    changelog prop on CommandMenu (with an unseen-release dot), and an
    agent-native changelog add|release|list CLI that authors changeset-style
    pending entry files and rolls them up into the dated CHANGELOG.md.

Patch Changes

  • b35c8cb: Fix MCP app embeds for OpenAI's default web-sandbox origin and keep an Open in new tab fallback available when inline app loading fails.
  • b35c8cb: Return native redirect responses from web OAuth callbacks so successful sign-ins
    land on the clean return URL instead of retaining provider callback query
    parameters.
  • b35c8cb: Add a public GET /_agent-native/health route that runs a trivial SELECT 1
    to report database liveness and, as a side effect, keep a scale-to-zero
    serverless database (e.g. Neon) warm. A scheduled ping against this endpoint
    prevents the multi-second cold-start that otherwise stalls the first request
    to an idle app. The probe always responds (apps with no database report
    db: false rather than failing) and is never cached. Disable it with the
    disableHealth core-routes option.
  • b35c8cb: Fix MCP app embeds rendering only a flashing/permanent loading state in Codex
    and Cursor. These standards-track hosts render the ui:// resource in a strict
    opaque-origin sandbox (sandbox="allow-scripts") and talk to it over the
    postMessage ui/* bridge. The shell's handshake was already correct, but for
    these hosts it fell through to self-navigating the sandboxed iframe to the real
    app origin, which tears down the host bridge and loses the opaque-origin auth
    context. Any host connected through the native MCP Apps bridge (Codex, Cursor,
    the SDK App fallback, our own renderer) now transplants the app document into
    the shell — the same robust path Claude already uses — keeping the bridge alive
    and loading via embed-token auth. Also handle the spec host-context-changed
    notification and bump the cached resource shell version so hosts refetch.
  • b35c8cb: Fix the missing inline screenshot on PR Visual Recap comments. The recap shot
    command runs page.evaluate/addInitScript payloads that contain named inner
    functions; when the CLI is run through tsx/esbuild (CI's trusted-workspace
    path), esbuild's keepNames wraps those functions in __name(...), which
    Playwright then serializes into the browser where __name is undefined —
    throwing ReferenceError: __name is not defined, dropping the screenshot, and
    falling back to a link-only comment. runShot now injects an identity __name
    shim as the first browser init script, so every main-world payload is safe
    regardless of how the CLI was transpiled (the tsc-built published package, which
    never emits __name, is unaffected).
  • b35c8cb: When a long agent run is cut off mid-stream while assembling one large tool input (a generation that exceeds the ~40s soft-timeout window), the auto-continue nudge now points the resumed model at the incremental-edit path for that specific action instead of only handling create-extension. Designs (generate-design → edit-design), plans (create-visual-plan/create-ui-plan → update-visual-plan/patch-visual-plan-source), and dashboards (update-dashboard incremental ops) get tailored "ship a compact first version, then refine" guidance, with a generic compact-first fallback for any other large-payload action. This breaks the re-stream-the-same-oversized-payload thrash loop that could otherwise burn the whole continuation budget without making progress.
  • b35c8cb: Capture first-touch referral attribution and enrich the signup event (referral_source, referrer_user, UTM, first_touch_path) to measure app virality. The browser records an anonymous visitor's first-touch context (ref/via/utm_* params, landing path, and referring host) into an an_attribution localStorage key and a first-party an_ft cookie, and the server-side signup event is enriched from that cookie so every template can see where new users came from.