Mastra 发布 1.80.0:用户级连接、Span 聚合与错误分类
原标题:October 28, 2026
AI 摘要
Mastra 发布 @mastra/core 1.80.0 等更新,新增 @mastra/connect 的终端用户级 OAuth 连接、聊天内“请求连接”提示、跨 ClickHouse/Postgres/DuckDB 的 span 聚合 API,以及统一的 provider 错误分类与持久化。更新还改进了运行状态订阅和持久执行取消控制,并包含多项破坏性变更,如 queryTraceThreads 移除 model/provider 字段、connect 会话返回 launchUrl 等。
正文节选
## Highlights ### End-user (per-resource) connections in `@mastra/connect` `tools({ resourceId })` and new `userConnectRoutes()` enable user-scoped OAuth connections so agents can safely use each end user’s accounts (in addition to global connections), with built-in caching and hard enforcement that one user’s connection can’t serve another user. ### In-chat “request connection” prompts for missing integrations Resource-scoped tool resolution now includes a built-in `request_connection`