Repository navigation
@agent-native/core@0.81.0
Minor Changes
-
3164729: Add secure localhost bridge write endpoints to the design connect bridge.
startDesignConnectBridgenow mints a cryptographically random per-session
bridgeToken(exposed on the returnedDesignConnectBridgeobject) and
serves three new token-gated POST endpoints on the same localhost-only server:POST /read-file— reads any file within the root (no extension restriction)POST /write-file— writes.html,.htm, or.cssfiles within the rootPOST /apply-edit— patches an existing file via{search, replace}or
replaces it entirely via{content}
All three endpoints require the
X-Bridge-Tokenheader to match the minted
token (constant-time comparison). Path confinement is enforced via
fs.realpathon both the root and the target parent directory, blocking
directory traversal and symlink escape attacks. The token is never serialised
into the public/manifest.jsonresponse.The
DesignConnectManifestcapabilities array now marksreadFile,
applyEdit, andwriteFileas"available"(previously"planned").
Patch Changes
-
3164729: Builder waitlist submissions now include a use-case field so Forms and Slack routing can distinguish background coding requests from Design publish requests.
-
3164729: Fix bridge token registration so design localhost write-back works end-to-end.
registerConnectionWithServeris a new exported function that POSTs the
bridge's realbridgeToken(minted bystartDesignConnectBridge) to the
design app'sconnect-localhostaction endpoint on startup. This stores the
token on thedesignLocalhostConnectionsrow sogrant-localhost-write-consent
can read it instead of minting an unrelated token, which previously caused every
bridge write to return 401.DesignConnectArgsgains an optionalappUrlfield (populated by the new
--app-url <url>CLI flag or theAGENT_NATIVE_URL/DESIGN_APP_URLenv
vars) that controls where self-registration is sent. Registration is
best-effort: if no app URL is configured or the request fails, the bridge
continues running normally. -
3164729: Register Figma as a Design provider API so Design actions can browse and render Figma library components through scoped
FIGMA_ACCESS_TOKENcredentials. -
3164729: Make the Connect AI setup card adapt to narrow chat sidebars with container queries.
-
3164729: Keep reserved organization switcher slots stable with a disabled loading placeholder.
-
3164729: Redirect relative PGlite data directories to writable
/tmppaths on serverless runtimes. -
3164729: Make the default shared share button outline trigger transparent at rest.