Skip to content

@agent-native/core@0.236.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 20:58
· 6 commits to main since this release
673ad14

Minor Changes

  • 378cc07: A worker whose lease ran out can no longer overwrite the work of the worker that took over. @agent-native/core/db adds leases over a table the app owns (lease_key, holder, expires_at in epoch milliseconds), so no migration is needed:

    • claimLease, renewLease, releaseLease, isLeaseHeld and holdsLease.
    • leaseHeld(lease), a condition to put in a write's own WHERE. It is true only while the lease is still held by this token and hasn't expired, and it locks the lease row, so a takeover waits for that write to finish.
    • writeUnderLease(lease, write), which runs one such write and throws LeaseLostError (code: "lease_lost", checked with isLeaseLost) when the write changed nothing because the lease ran out. An empty result while the lease is still held means the write's own conditions didn't match.

    compareAndSetAppState and appStateCompareAndSet take an optional lease: the write applies only while the lease is held, and throws LeaseLostError when it changed nothing because the lease ran out.

    Clips' thumbnail worker and track finalize write under their leases, including the application state they keep. A renew only shows nobody has taken over yet, so their storage deletes are fenced by state instead: a track finalize first marks the upload's session as discarded under its lease, and no finalize keeps a marked upload. Thumbnail and manifest files at a URL storage can hand out again (Builder and other shared providers) are left in storage; only uploads private to the run (s3, clips-hosted) are deleted when a write fails or a thumbnail is replaced. A hosted track's bytes are charged in the same transaction that marks its session counted. A thumbnail run renews its lease before it uploads. A run that lost its lease returns skipped-lease, which the post-finalize worker neither retries nor counts toward giving up. A thumbnail failure is recorded only while no other run holds the recording and its thumbnail status is still what the failing run read. A track finalize whose lease ran out answers its existing 409, or the finalized recording when the finalize that took over finished it.

  • ffa5724: Connect one Google account once for Mail, Calendar, and Drive. A personal Gmail, Google Calendar, or Google Drive connect now asks for the other Google services in the same consent and records a connection for every service the account's token holds, so a second sign-in is no longer needed. Gated by the on-by-default google-suite-connect lab; the provider OAuth start also accepts an explicit suite list. Adds the read-only list-google-accounts action, which reports each account's per-service state without returning tokens.

  • 6c84762: Add the opt-in "Connect to your agent" UX flow (connect-to-your-agent feature flag + Core Lab toggle), public app-aware /mcp/connect/llms.txt instructions endpoint covering desktop side-browser, CLI, and ChatGPT/Claude Web MCP App side-view modes, and one-click prompt copy surfaces under full-page prompt composers, in the empty chat sidebar, and in the chat header overflow menu.

  • a1af52d: Finish connecting Google once. Mail's and Calendar's own Google sign-in now records a connection for every Google service the account's token holds, so connecting in either app makes both ready, and Calendar's connect flow asks for Gmail in the same consent. Adds the GoogleServicesCard toolkit component, which shows each Google service as ready or needing access with an incremental request for the missing one, and the idempotent sync-google-connections action that records accounts connected before this change. All behind the google-suite-connect lab.

  • 4ed2641: Add server-only prompt skill limits with maxEntries (1–500, including supporting files when enabled) and maxDescriptionChars (1–1000), preserving the defaults of 40 entries and 180 description characters.

Patch Changes

  • 9506dbd: Share recursive action file scanning (@agent-native/actions/files) and gateway stringified-argument coercion (@agent-native/actions/contract) between @agent-native/actions and @agent-native/core, fix real reactivity in Vue 3 and Svelte 5 action bindings, improve init next-step hints, and expand cross-framework test coverage.
  • 7fb3c47: Add standalone @agent-native/actions package and share its portable action contract (@agent-native/actions/contract) with @agent-native/core.
  • 5b4dafb: Speed up client-side route navigation by preloading route JS and CSS modules aggressively without blocking initial render: emit low-priority modulepreload links immediately on non-WebKit browsers (keeping WebKit's unused-preload hold), warm near-viewport links (300px margin), warm on pointerdown and [data-an-prefetch-href], trickle-warm interactive manifest routes during browser idle, export warmRoute, and enable viewport warmup by default for workspace child apps with strict basename scoping.
  • 4916392: Reloading a page while the agent is replying no longer leaves the saved part of the reply as a second copy above the full reply, and the reply no longer reappears starting mid-sentence. The "Connect AI to chat" notice is no longer hidden behind the attached Connect AI card.
  • ef3cfe6: Let Mail, Calendar, and Brain list IDs from a scoped Dispatch Google grant through server-side actions.
  • c874ba0: Ensure Dispatch's "Open in new tab" always opens the standalone app URL (never Dispatch's /apps/<id> iframe host), add "Open in new tab" to the sidebar app context menu, and auto-detect iframes and embedded desktop/chat browsers (Electron, T3 Code, ChatGPT/Codex, Claude Desktop, Cursor, Windsurf, Tauri) so opening an app navigates directly to the standalone app at its root URL instead of loading inside Dispatch's iframe.
  • 876f962: Add createDragGesture / useDragGesture to @agent-native/core/client/drag-gesture and @agent-native/core/client/use-drag-gesture: a zero-render, rAF-coalesced finger-tracking drag primitive for mobile WebViews with axis locking, iOS edge-back guarding, velocity flick commit, rubber banding, once-per-crossing threshold callbacks, and ghost-click suppression.
  • ac6021e: Allow Access-Control-Request-Headers: authorization preflights from verified MCP embed origins (claudemcpcontent.com and web-sandbox.oaiusercontent.com), and refine the Connect-to-your-agent copied prompt and llms.txt copy so Claude Web and ChatGPT Web open the app directly without triggering prompt-injection confirmation pauses.
  • 8df34ec: Route authenticated MCP embed sessions targeting / directly to the app's configured home path (e.g. /home) so transplanted Claude Web embeds do not load the public sign-in page and trigger a window.location.replace blocked by frame-src blob: data:, and omit Authorization / X-Agent-Native-Embed-Target headers on static /assets/* fetches so CDN-served JS/CSS bundles do not fail CORS preflights.
  • 44df68a: Google Calendar connections no longer ask for the calendar list scope. Google hasn't verified that scope for Builder's sign-in app, so asking for it made Google refuse new Google Calendar connections with Error 401: disabled_client. Calendar colors changed in an app stay in that app until the scope is verified and requested again.
  • dd0b659: Stop a tab re-reading its own agent chat context writes. Persisting the context now names the tab as the writer, so the sync echo is ignored instead of triggering a read-back on every edit.
  • 21d839a: Keep the Desktop app's chat sidebar open or closed state in sync across every app, so a closed sidebar stays closed after relaunch.
  • Release all public npm packages with a patch version bump.
  • 30026a8: Voice transcript cleanup with OpenAI works again: the cleanup model refuses temperature: 0, so every OpenAI cleanup failed with a 400. It now sends reasoning_effort: "none" instead, which answers in about a second. Groq keeps temperature: 0.
  • 5a4163d: Update parse5 to 8.1.1 and entities to 9.0.0 so parse5's entities/decode import resolves.
  • 7b3b58c: Promoting a trace to an eval dataset no longer fails on Postgres with "could not determine data type of parameter".
  • 040332c: Stop the react-i18next "pass in an i18next instance" warning when first-paint chrome calls useT() before the i18n provider mounts, and render the runtime configuration notice and environment badge inside the app's locale.
  • 8cda728: Encode the 10% subtraction rule and native UX parity bar in synced frontend-design template skills.
  • d92bb25: Slack's channel status now asks Slack whether the saved bot token still works. It asks at most once every five minutes per token, or 30 seconds after a check that couldn't reach Slack. When Slack refuses the token (invalid_auth, token_revoked, token_expired or account_inactive), the status reports the token as rejected with Slack's reason. Dispatch's Messaging page then shows "Token rejected" with what to do, instead of "Connected" and "Messages are flowing". When a managed Slack workspace is connected, its status stands and only the legacy token row shows "Rejected".
  • b1e9f0e: Add the T3 Code agents Lab: with it on, Settings › Model has a T3 Code row under ChatGPT plan access that signs in to a person's own T3 Code through T3 Connect, shows the computer, access level and agents, and disconnects. New actions get-t3-code-status, check-t3-code-address, disconnect-t3-code and search-t3-code-threads back the row and let an app list that person's T3 threads.
  • bc41fc8: Classify Telegram webhook setup failures with appropriate status semantics: 422 for client/validation rejections, 429 for provider rate limits, and 424 (Failed Dependency) for upstream provider outages (5xx), request timeouts (408), non-JSON upstream responses, or network failures. Forward upstreamStatus and rate-limit retryAfterSeconds hints across both HTTP routes and action error details, setting the Retry-After header on 429 responses. Also validate that TELEGRAM_WEBHOOK_SECRET matches allowed characters (^[A-Za-z0-9_-]{1,256}$) when saving credentials and registering webhooks.
  • 8dcf062: Allow custom OpenAI-compatible endpoints that resolve to CGNAT addresses in trusted self-hosted runtimes, keeping SSRF validation elsewhere.
  • 88b36c0: Let the Windows launch of npm and pnpm shims accept a path that contains %NAME%. shimSpawnTarget now passes such an argument in a private environment variable instead of refusing it, and every caller adds that variable to the environment it spawns with.
  • Updated dependencies [9506dbd]
  • Updated dependencies [7fb3c47]
  • Updated dependencies
    • @agent-native/actions@0.1.1
    • @agent-native/agentkit@0.236.0
    • @agent-native/recap-cli@0.5.112