Skip to content

build(deps): bump @mastra/core from 1.52.1 to 1.59.0 - #1028

Closed
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/npm_and_yarn/mastra/core-1.59.0
Closed

build(deps): bump @mastra/core from 1.52.1 to 1.59.0#1028
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/npm_and_yarn/mastra/core-1.59.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 17, 2026

Copy link
Copy Markdown
Contributor

Bumps @mastra/core from 1.52.1 to 1.59.0.

Release notes

Sourced from @​mastra/core's releases.

August 14, 2026

Highlights

TokenCostControl (renamed from CostGuard) with richer budgeting

CostGuardProcessor is now TokenCostControl (id: 'token-cost-control') with better diagnostics/reliability and new budgeting options like warnAtPercent, per-request maxCost functions, new cost scopes (user/organization/session), and optional per-model/provider breakdowns.

Active run introspection for agents/controllers (core, server, client-js)

New Agent.listActiveThreadRuns() / AgentController.listActiveThreadRuns() plus corresponding Server + JS client APIs let you cheaply list in-flight runs from in-memory tracking—ideal for polling activity indicators without creating sessions.

Observability fixes: external-parent traces now show up as trace roots in Studio

Tracing bridges (OTel + Datadog) now mark whether a span’s parent is external vs Mastra, fixing missing traces when runs start under an external parent so they correctly appear as trace roots in Mastra Studio.

Safer/more useful redaction with indexed tokens

SensitiveDataFilter gains redactionStyle: 'indexed', producing stable per-value tokens (e.g. [APIKEY_1]) instead of collapsing all sensitive values to [REDACTED], improving debugging while preserving secrecy.

Memory recall continuation for oversized message parts

The Observational Memory recall tool now supports continuation via nextCharOffset, allowing large message parts to be retrieved across multiple calls instead of repeatedly returning the same truncated prefix.

Breaking Changes

  • Factory: automatic agent runs are now opt-in per Factory (autoRunEnabled defaults off on upgrade); rules proposing runs now park them as proposed decisions until approved.
  • CostGuardProcessor renamed to TokenCostControl (deprecated aliases remain for now, but will be removed in a future major version).

Changelog

@​mastra/core@1.59.0

Minor Changes

  • Fixed traces that start under an external parent span not appearing in Mastra Studio. Resumed agent and workflow runs keep their link to the suspended run's trace. (#20499)

  • Renamed CostGuardProcessor to TokenCostControl, improved its reliability and diagnostics, and added new budgeting options. (#21372)

    Rename

    • CostGuardProcessor is now TokenCostControl with processor id 'token-cost-control'. The CostGuardProcessor export (and the CostGuardOptions, CostGuardUsage, CostGuardBreakdownEntry, CostGuardTripwireMetadata, and CostGuardViolationDetail types) remains available as a deprecated alias for the same class and will be removed in a future major version.

    Improvements

    • Each cost check now issues fewer queries against observability storage.
    • Diagnostics now go through the Mastra logger, and failed cost queries now log diagnostics and allow the request to continue instead of failing silently.
    • With the warn strategy, warnings and the onViolation callback now fire at most once per request instead of on every step.
    • Violation messages no longer contain float precision artifacts (e.g. 0.30000000000000004 now renders as 0.3).

    New options

    • warnAtPercent: soft threshold that warns (without blocking) when cost reaches a percentage of the limit.
    • maxCost now also accepts a function of RequestContext for per-tier or per-user budgets.
    • New scopes user, organization, and session track cumulative cost per userId, organizationId, and sessionId (read from the matching RequestContext keys; traces must carry the matching span metadata).
    • includeBreakdown: attaches a per-provider/model cost breakdown to violations.

... (truncated)

Commits
  • c5702d3 chore: version - exit prerelease mode
  • 7dafa4f fix(core): ship .d.ts for @​mastra/core/test-utils/llm-mock (#21427)
  • 32e1b5f chore: version packages (alpha) (#21455)
  • a40f915 fix(core): preserve actionable API errors (#21449)
  • 59d8898 fix(core): allow file-based agents to disable the default workspace (#21378)
  • 7961b8e chore: version packages (alpha) (#21418)
  • 79dd7c2 fix(core): release completed foreground processes (#21438)
  • cac7b19 chore: regenerate providers and docs [skip ci]
  • b9a28ec feat(platform-workspace): send acting user header (#20754)
  • be31796 fix(factory): keep workspace activity synchronized (#21353)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Aug 17, 2026
@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Coverage Report for server

Status Category Percentage Covered / Total
🟢 Lines 98.38% (🎯 97%) 3173 / 3225
🟢 Statements 97.7% (🎯 96%) 3322 / 3400
🟢 Functions 98.74% (🎯 97%) 551 / 558
🟢 Branches 89.1% (🎯 87%) 1300 / 1459
File CoverageNo changed files found.
Generated in workflow #2004 for commit 720693f by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Coverage Report for web

Status Category Percentage Covered / Total
🟢 Lines 97.32% (🎯 96%) 1526 / 1568
🟢 Statements 96.24% (🎯 95%) 1613 / 1676
🟢 Functions 95.82% (🎯 95%) 643 / 671
🟢 Branches 90.77% (🎯 88%) 1013 / 1116
File CoverageNo changed files found.
Generated in workflow #2004 for commit 720693f by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Coverage Report for shared

Status Category Percentage Covered / Total
🟢 Lines 99.12% (🎯 98%) 226 / 228
🟢 Statements 81.2% (🎯 80%) 242 / 298
🟢 Functions 100% (🎯 98%) 76 / 76
🟢 Branches 63.52% (🎯 62%) 101 / 159
File CoverageNo changed files found.
Generated in workflow #2004 for commit 720693f by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Coverage Report for widget

Status Category Percentage Covered / Total
🟢 Lines 99.56% (🎯 98%) 229 / 230
🟢 Statements 99.19% (🎯 96%) 246 / 248
🟢 Functions 100% (🎯 98%) 45 / 45
🟢 Branches 95.96% (🎯 92%) 119 / 124
File CoverageNo changed files found.
Generated in workflow #2004 for commit 720693f by the Vitest Coverage Report Action

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/mastra/core-1.59.0 branch 4 times, most recently from f04f6ee to 89074e9 Compare August 21, 2026 02:51
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/mastra/core-1.59.0 branch 3 times, most recently from a664687 to bd7d503 Compare August 21, 2026 04:37
Bumps [@mastra/core](https://github.com/mastra-ai/mastra/tree/HEAD/packages/core) from 1.52.1 to 1.59.0.
- [Release notes](https://github.com/mastra-ai/mastra/releases)
- [Changelog](https://github.com/mastra-ai/mastra/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/mastra-ai/mastra/commits/@mastra/core@1.59.0/packages/core)

---
updated-dependencies:
- dependency-name: "@mastra/core"
  dependency-version: 1.59.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/mastra/core-1.59.0 branch from bd7d503 to 720693f Compare August 21, 2026 04:40
@dependabot @github

dependabot Bot commented on behalf of github Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1065.

@dependabot dependabot Bot closed this Aug 24, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/mastra/core-1.59.0 branch August 24, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants