mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
390 commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
3bdb4ec5f4 |
chore(deps): update build tools (major) (#29026)
> [!NOTE] > This PR body was truncated due to platform limits. This PR contains the following updates: | Package | Type | Update | Change | Pending | |---|---|---|---|---| | [@vitest/coverage-v8](https://vitest.dev/guide/coverage) ([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8)) | pnpm.catalog.default | major | [`4.1.12` → `5.0.5`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-v8/4.1.12/5.0.5) | `5.1.0` | | [@vitest/mocker@>=2.1.0 <4.1.12](https://redirect.github.com/vitest-dev/vitest/tree/main/packages/mocker) ([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/mocker)) | pnpm-workspace.overrides | major | [`4.1.12` → `5.0.5`](https://renovatebot.com/diffs/npm/@vitest%2fmocker@>=2.1.0 <4.1.12/4.1.12/5.0.5) | `5.1.0` | | [@vitest/ui](https://vitest.dev/guide/ui) ([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/ui)) | pnpm.catalog.default | major | [`4.1.12` → `5.0.5`](https://renovatebot.com/diffs/npm/@vitest%2fui/4.1.12/5.0.5) | `5.1.0` | | [dotenv](https://redirect.github.com/motdotla/dotenv) | devDependencies | major | [`^17.4.2` → `^18.0.9`](https://renovatebot.com/diffs/npm/dotenv/17.4.2/18.0.9) | | | [dotenv](https://redirect.github.com/motdotla/dotenv) | devDependencies | major | [`17.4.2` → `18.0.9`](https://renovatebot.com/diffs/npm/dotenv/17.4.2/18.0.9) | | | [vitest](https://vitest.dev) ([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | devDependencies | major | [`^4.1.12` → `^5.0.5`](https://renovatebot.com/diffs/npm/vitest/4.1.12/5.0.5) | `5.1.0` | | [vitest](https://vitest.dev) ([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | pnpm.catalog.default | major | [`4.1.12` → `5.0.5`](https://renovatebot.com/diffs/npm/vitest/4.1.12/5.0.5) | `5.1.0` | | [vitest](https://vitest.dev) ([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | devDependencies | major | [`4.1.12` → `5.0.5`](https://renovatebot.com/diffs/npm/vitest/4.1.12/5.0.5) | `5.1.0` | | [vitest@>=2.1.0 <4.1.12](https://vitest.dev) ([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | pnpm-workspace.overrides | major | [`4.1.12` → `5.0.5`](https://renovatebot.com/diffs/npm/vitest@>=2.1.0 <4.1.12/4.1.12/5.0.5) | `5.1.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the [Dependency Dashboard](../issues/9505) for more information. --- ### Release Notes <details> <summary>vitest-dev/vitest (@​vitest/coverage-v8)</summary> ### [`v5.0.5`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v5.0.5) [Compare Source](https://redirect.github.com/vitest-dev/vitest/compare/v5.0.4...v5.0.5) ##### 🐞 Bug Fixes - Keep vite default `fs.deny` with api token file - by [@​hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi Ogawa** and **Claude Opus 5.5** in [#​11578](https://redirect.github.com/vitest-dev/vitest/issues/11578) [<samp>(28dc1)</samp>]( |
||
|
|
6a191d46dc | chore: version - exit prerelease mode | ||
|
|
2c646b53d0 |
chore: version packages (alpha) (#28399)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or [setup this action to publish automatically](https://github.com/changesets/action#with-publishing). If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. ⚠️⚠️⚠️⚠️⚠️⚠️ `main` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `main`. ⚠️⚠️⚠️⚠️⚠️⚠️ # Releases > The changelog information of each package has been omitted from this message, as the content exceeds the size limit. ## @mastra/factory@0.25.0-alpha.5 ## @mastra/langsmith@1.4.0-alpha.2 ## @mastra/connect@1.2.0-alpha.2 ## @mastra/core@1.80.0-alpha.4 ## @mastra/playground-ui@66.0.0-alpha.4 ## @mastra/acp@0.4.4-alpha.0 ## @mastra/claude@0.3.4-alpha.0 ## @mastra/cursor@0.3.4-alpha.0 ## @mastra/openai@1.1.4-alpha.0 ## @mastra/auth-auth0@1.2.6-alpha.0 ## @mastra/auth-better-auth@1.1.9-alpha.0 ## @mastra/auth-clerk@1.3.2-alpha.0 ## @mastra/auth-cloud@1.2.8-alpha.0 ## @mastra/auth-firebase@1.1.5-alpha.0 ## @mastra/auth-google@0.1.7-alpha.0 ## @mastra/auth-neon@0.3.5-alpha.0 ## @mastra/auth-okta@0.2.6-alpha.0 ## @mastra/auth-studio@1.3.11-alpha.1 ## @mastra/auth-supabase@1.1.6-alpha.0 ## @mastra/auth-workos@1.6.8-alpha.0 ## @mastra/agent-browser@0.5.5-alpha.0 ## @mastra/browser-viewer@0.2.6-alpha.0 ## @mastra/browser-firecrawl@0.2.5-alpha.1 ## @mastra/stagehand@0.3.7-alpha.1 ## @mastra/discord@1.3.2-alpha.0 ## @mastra/slack@1.8.0-alpha.1 ## @mastra/teams@0.1.3-alpha.0 ## @mastra/telegram@0.2.4-alpha.0 ## @mastra/client-js@1.57.0-alpha.4 ## @mastra/react@1.13.0-alpha.4 ## @mastra/isolated-vm@0.1.4-alpha.0 ## @mastra/quickjs@0.1.5-alpha.0 ## @mastra/deployer-cloud@1.80.0-alpha.4 ## @mastra/deployer-cloudflare@1.2.39-alpha.1 ## @mastra/deployer-netlify@1.2.39-alpha.1 ## @mastra/deployer-sandbox@0.3.24-alpha.1 ## @mastra/deployer-vercel@1.2.39-alpha.1 ## @mastra/voyageai@0.4.3-alpha.0 ## @mastra/longmemeval@1.1.39-alpha.4 ## @mastra/livekit@0.5.2-alpha.0 ## @mastra/opencode@0.1.39-alpha.4 ## @mastra/parallel@0.1.4-alpha.0 ## create-factory@0.3.1-alpha.4 ## @mastra/code-sdk@1.15.1-alpha.5 ## mastracode@0.48.1-alpha.4 ## @mastra/arize@1.3.27-alpha.2 ## @mastra/arthur@0.4.27-alpha.2 ## @mastra/braintrust@1.3.24-alpha.2 ## @mastra/datadog@1.4.19-alpha.2 ## @mastra/deepeval@0.1.21-alpha.2 ## @mastra/laminar@1.3.29-alpha.2 ## @mastra/langfuse@1.6.3-alpha.2 ## @mastra/observability@1.21.1-alpha.2 ## @mastra/otel-bridge@1.5.19-alpha.2 ## @mastra/otel-exporter@1.4.10-alpha.2 ## @mastra/posthog@1.4.4-alpha.2 ## @mastra/sentry@1.2.29-alpha.2 ## @mastra/agent-builder@1.1.31-alpha.2 ## @mastra/auth@1.1.5-alpha.0 ## mastra@1.36.0-alpha.4 ## @mastra/codemod@1.1.8-alpha.0 ## create-mastra@1.36.0-alpha.4 ## @mastra/deployer@1.80.0-alpha.4 ## @mastra/editor@0.16.5-alpha.2 ## @mastra/evals@1.10.9-alpha.0 ## @mastra/fastembed@1.3.5-alpha.2 ## @mastra/loggers@1.3.10-alpha.1 ## @mastra/mcp@2.6.0-alpha.1 ## @mastra/mcp-docs-server@1.3.10-alpha.7 ## @mastra/mcp-registry-registry@1.1.7-alpha.0 ## @mastra/memory@1.39.1-alpha.2 ## @mastra/rag@2.7.1-alpha.0 ## @mastra/schema-compat@1.3.17-alpha.0 ## @mastra/server@1.80.0-alpha.4 ## @mastra/google-cloud-pubsub@1.1.5-alpha.1 ## @mastra/redis-streams@0.6.5-alpha.1 ## @mastra/valkey-streams@0.5.7-alpha.1 ## @mastra/elysia@0.1.20-alpha.4 ## @mastra/express@1.5.24-alpha.4 ## @mastra/fastify@1.5.24-alpha.4 ## @mastra/hono@1.7.22-alpha.4 ## @mastra/koa@1.7.24-alpha.4 ## @mastra/nestjs@0.2.39-alpha.4 ## @mastra/next@0.2.38-alpha.4 ## @mastra/server-adapters-test-suite@0.1.4-alpha.2 ## @mastra/tanstack-start@0.2.38-alpha.4 ## @mastra/astra@1.1.3-alpha.0 ## @mastra/azure-ai-search@0.1.2-alpha.1 ## @mastra/chroma@1.1.5-alpha.0 ## @mastra/clickhouse@1.27.0-alpha.1 ## @mastra/cloudflare@1.7.6-alpha.0 ## @mastra/cloudflare-d1@1.4.5-alpha.1 ## @mastra/convex@1.7.6-alpha.0 ## @mastra/couchbase@1.1.4-alpha.1 ## @mastra/dsql@1.5.5-alpha.0 ## @mastra/duckdb@1.16.0-alpha.1 ## @mastra/dynamodb@1.4.5-alpha.1 ## @mastra/elasticsearch@1.4.6-alpha.1 ## @mastra/lance@1.5.2-alpha.1 ## @mastra/libsql@1.27.1-alpha.0 ## @mastra/mongodb@1.24.1-alpha.1 ## @mastra/mssql@1.10.6-alpha.0 ## @mastra/mysql@0.14.1-alpha.0 ## @mastra/opensearch@1.1.4-alpha.1 ## @mastra/oracledb@0.5.5-alpha.0 ## @mastra/pg@1.33.0-alpha.2 ## @mastra/pinecone@1.1.3-alpha.0 ## @mastra/qdrant@1.1.6-alpha.0 ## @mastra/redis@1.4.12-alpha.1 ## @mastra/s3vectors@1.1.5-alpha.0 ## @mastra/spanner@1.10.1-alpha.1 ## @mastra/turbopuffer@1.2.3-alpha.0 ## @mastra/turso@0.1.18-alpha.0 ## @mastra/upstash@1.5.5-alpha.1 ## @mastra/valkey@0.2.8-alpha.1 ## @mastra/vectorize@1.1.4-alpha.0 ## @mastra/weaviate@0.1.4-alpha.0 ## @mastra/voice-aws-nova-sonic@0.2.6-alpha.0 ## @mastra/voice-azure@0.12.3-alpha.0 ## @mastra/voice-cloudflare@0.13.4-alpha.0 ## @mastra/voice-deepgram@0.13.3-alpha.0 ## @mastra/voice-elevenlabs@0.13.3-alpha.0 ## @mastra/voice-gladia@0.13.3-alpha.0 ## @mastra/voice-google@0.14.4-alpha.0 ## @mastra/voice-google-gemini-live@0.14.18-alpha.0 ## @mastra/voice-inworld@0.4.6-alpha.0 ## @mastra/voice-mistral@0.1.3-alpha.0 ## @mastra/voice-modelslab@0.2.3-alpha.0 ## @mastra/voice-murf@0.13.3-alpha.0 ## @mastra/voice-openai@0.13.4-alpha.0 ## @mastra/voice-openai-realtime@0.14.8-alpha.0 ## @mastra/voice-playai@0.13.3-alpha.0 ## @mastra/voice-sarvam@1.1.4-alpha.0 ## @mastra/voice-speechify@0.14.3-alpha.0 ## @mastra/voice-xai-realtime@0.2.17-alpha.0 ## @mastra/inngest@1.10.8-alpha.3 ## @mastra/temporal@0.4.18-alpha.4 ## @mastra/agentcore@0.5.3-alpha.0 ## @mastra/agentfs@0.2.3-alpha.0 ## @mastra/apple-container@0.5.2-alpha.0 ## @mastra/archil@0.3.2-alpha.0 ## @mastra/azure@0.3.3-alpha.1 ## @mastra/blaxel@0.10.2-alpha.0 ## @mastra/cloudflare-sandbox@0.5.4-alpha.0 ## @mastra/daytona@0.11.4-alpha.0 ## @mastra/docker@0.12.1-alpha.0 ## @mastra/e2b@0.15.1-alpha.1 ## @mastra/e2b-desktop@0.1.10-alpha.1 ## @mastra/files-sdk@0.3.3-alpha.0 ## @mastra/gcs@0.3.5-alpha.1 ## @mastra/google-drive@0.2.4-alpha.0 ## @mastra/mesa@0.3.3-alpha.0 ## @mastra/modal@0.7.3-alpha.0 ## @mastra/platform-workspace@1.10.0-alpha.1 ## @mastra/railway@0.10.2-alpha.1 ## @mastra/s3@0.6.5-alpha.1 ## @mastra/sprites@0.1.2-alpha.0 ## @mastra/vercel@1.6.2-alpha.0 ## @internal/playground@1.36.0-alpha.4 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
ce5d4731ee |
chore(deps): update dependencies across the monorepo (#28417)
Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com> |
||
|
|
dacb190944 |
chore: version packages (alpha) (#28009)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
40a522c142 |
chore(deps): update build tools (#27997) | ||
|
|
4a944b572c |
fix(loggers): support pino 10.4 typings (#28017) | ||
|
|
86875422bd |
chore(deps): update dependency pino-pretty to ^13.2.0 (#28002)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pino-pretty](https://redirect.github.com/pinojs/pino-pretty) | dependencies | minor | [`^13.1.3` → `^13.2.0`](https://renovatebot.com/diffs/npm/pino-pretty/13.1.3/13.2.0) | --- > [!WARNING] > Some dependencies could not be looked up. Check the [Dependency Dashboard](../issues/9505) for more information. --- ### Release Notes <details> <summary>pinojs/pino-pretty (pino-pretty)</summary> ### [`v13.2.0`](https://redirect.github.com/pinojs/pino-pretty/releases/tag/v13.2.0) [Compare Source](https://redirect.github.com/pinojs/pino-pretty/compare/v13.1.3...v13.2.0) #### What's Changed - Minor updates by [@​jsumners](https://redirect.github.com/jsumners) in [#​638](https://redirect.github.com/pinojs/pino-pretty/pull/638) - build(deps): bump actions/cache from 4 to 5 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​639](https://redirect.github.com/pinojs/pino-pretty/pull/639) - build(deps-dev): bump [@​types/node](https://redirect.github.com/types/node) from 24.10.4 to 25.0.3 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​640](https://redirect.github.com/pinojs/pino-pretty/pull/640) - Support "true" and "false" for boolean options by [@​leorossi](https://redirect.github.com/leorossi) in [#​642](https://redirect.github.com/pinojs/pino-pretty/pull/642) - fix: Remove unused (and undocumented) `outputStream` option by [@​cmfcmf](https://redirect.github.com/cmfcmf) in [#​641](https://redirect.github.com/pinojs/pino-pretty/pull/641) - build(deps-dev): bump borp from 0.21.0 to 1.0.0 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​646](https://redirect.github.com/pinojs/pino-pretty/pull/646) - fix: preserve newlines in messageFormat by [@​mahmoodhamdi](https://redirect.github.com/mahmoodhamdi) in [#​649](https://redirect.github.com/pinojs/pino-pretty/pull/649) - chore: use TSTyche for type testing by [@​mrazauskas](https://redirect.github.com/mrazauskas) in [#​650](https://redirect.github.com/pinojs/pino-pretty/pull/650) - chore: remove `coverage-map.js` by [@​mrazauskas](https://redirect.github.com/mrazauskas) in [#​652](https://redirect.github.com/pinojs/pino-pretty/pull/652) - build(deps-dev): bump neostandard from 0.12.2 to 0.13.0 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​654](https://redirect.github.com/pinojs/pino-pretty/pull/654) - build(deps-dev): bump typescript from 5.9.3 to 6.0.2 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​655](https://redirect.github.com/pinojs/pino-pretty/pull/655) - build(deps): bump sonic-boom from 4.2.1 to 5.0.0 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​656](https://redirect.github.com/pinojs/pino-pretty/pull/656) - chore: remove legacy `.eslintrc` config by [@​kshitijanurag](https://redirect.github.com/kshitijanurag) in [#​657](https://redirect.github.com/pinojs/pino-pretty/pull/657) - build(deps-dev): bump tstyche from 6.2.0 to 7.1.0 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​659](https://redirect.github.com/pinojs/pino-pretty/pull/659) - build(deps): bump actions/dependency-review-action from 4 to 5 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​661](https://redirect.github.com/pinojs/pino-pretty/pull/661) - build(deps): bump actions/cache from 5 to 6 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​666](https://redirect.github.com/pinojs/pino-pretty/pull/666) - build(deps-dev): bump [@​types/node](https://redirect.github.com/types/node) from 25.9.4 to 26.0.1 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​669](https://redirect.github.com/pinojs/pino-pretty/pull/669) - fix: strip unsafe terminal control characters by [@​mcollina](https://redirect.github.com/mcollina) in [#​671](https://redirect.github.com/pinojs/pino-pretty/pull/671) - docs: add security policy by [@​mcollina](https://redirect.github.com/mcollina) in [#​670](https://redirect.github.com/pinojs/pino-pretty/pull/670) - build(deps): bump actions/setup-node from 6 to 7 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​673](https://redirect.github.com/pinojs/pino-pretty/pull/673) - fix: support nested keys in the include filter by [@​DSeaStar](https://redirect.github.com/DSeaStar) in [#​677](https://redirect.github.com/pinojs/pino-pretty/pull/677) #### New Contributors - [@​leorossi](https://redirect.github.com/leorossi) made their first contribution in [#​642](https://redirect.github.com/pinojs/pino-pretty/pull/642) - [@​cmfcmf](https://redirect.github.com/cmfcmf) made their first contribution in [#​641](https://redirect.github.com/pinojs/pino-pretty/pull/641) - [@​mahmoodhamdi](https://redirect.github.com/mahmoodhamdi) made their first contribution in [#​649](https://redirect.github.com/pinojs/pino-pretty/pull/649) - [@​mrazauskas](https://redirect.github.com/mrazauskas) made their first contribution in [#​650](https://redirect.github.com/pinojs/pino-pretty/pull/650) - [@​kshitijanurag](https://redirect.github.com/kshitijanurag) made their first contribution in [#​657](https://redirect.github.com/pinojs/pino-pretty/pull/657) - [@​DSeaStar](https://redirect.github.com/DSeaStar) made their first contribution in [#​677](https://redirect.github.com/pinojs/pino-pretty/pull/677) **Full Changelog**: <https://github.com/pinojs/pino-pretty/compare/v13.1.3...v13.2.0> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - "before 6am every weekday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNzUuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjE3NS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhdXRvbWF0aW9uIl19--> --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> |
||
|
|
4c22623ea3 | chore: version - exit prerelease mode | ||
|
|
3dc61777dd |
chore: version packages (alpha) (#27703)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
3454f90a1d |
fix(loggers): let idle HttpTransport and UpstashTransport processes exit (#27704) | ||
|
|
03e4a73b78 |
chore: version packages (alpha) (#27375) | ||
|
|
9a423dae48 |
refactor(lint): replace ESLint with type-aware oxlint (#27476) | ||
|
|
4d7d50fcfa |
fix(loggers): keep Upstash log batches when Redis rejects a pipeline command (#27480) | ||
|
|
a15924e709 | chore: version packages | ||
|
|
fe516094f5 | chore: version - exit prerelease mode | ||
|
|
15f45e454d |
chore: version packages (alpha) (#27188)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
d77c0be3dc |
fix(loggers): reject invalid pagination in File and Upstash log queries (#27175) | ||
|
|
ab23e5ecf6 |
fix(loggers): serialize HttpTransport batches once before retrying (#27174) | ||
|
|
f88217d19b | chore: version - exit prerelease mode | ||
|
|
e45f83981a | chore: version packages | ||
|
|
20830e8a81 |
fix(loggers): stop HTTP and Upstash transports mutating caller-owned records (#26892)
> Opened by @abhiaiyer91 ## Description `HttpTransport` and `UpstashTransport` add a timestamp when a log record doesn't have one. They did this by assigning `time` directly on the object passed to them, which caused two problems: - Records shared with other consumers were changed. - Frozen records were rejected with `TypeError: Cannot add property time, object is not extensible` and never buffered. The transports now add `time` to a shallow copy used only for buffering: - Records that already have a timestamp, including `0`, are buffered unchanged and not copied. - The original chunk is still passed through. - JSON-string input and the normal `PinoLogger` path behave as before. Fixes #26818 ## Testing - Added 3 regression tests to each transport's `timestamp handling` suite: - object input is unchanged when `time` is missing; - object input is unchanged when `time` is `null`; - a frozen record is sent, and the original chunk is passed through. - Ran the 6 new tests against the old code (all failed) and against the fix (all passed). - `packages/loggers`: `npx vitest run` passes (159 tests), `tsc --noEmit` is clean, and prettier and eslint pass. ## Checklist - [x] Changeset added (`@mastra/loggers` patch) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## ELI5 The HTTP and Upstash transports can add a timestamp without changing the log record supplied by the caller. This prevents unexpected changes and lets the transports handle frozen records. ## Changes - When a record has no timestamp, or its timestamp is `undefined` or `null`, both transports add the current timestamp to a shallow copy. - When a record has a timestamp, including `0`, both transports keep it unchanged. - Both transports continue to pass the original chunk to the transform callback. - Added regression tests for record preservation, null timestamps, and frozen records. - Added a patch changeset for `@mastra/loggers`. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com> |
||
|
|
7841502f36 |
fix(loggers): skip malformed Upstash log entries (#26891)
> Opened by @abhiaiyer91
## Description
`UpstashTransport` log queries returned an empty `{}` record for every
Redis list entry that wasn't valid JSON. Those records have no message,
level or timestamp. For queries that read the whole list
(`returnPaginationResults: false`), they also counted toward `total`.
`parseLogs()` now skips entries it can't parse. It already skipped
entries that parse to JSON `null` or a non-object value, so this makes
the handling consistent. For unfiltered paginated queries, the Redis
requests (`LLEN` + `LRANGE`) and the `LLEN`-based `total`/`hasMore` stay
the same. A page that contains a malformed entry just returns fewer
records.
Fixes #26819
## Tests
Added three tests to `packages/loggers/src/upstash/index.test.ts`:
- whole-list query with one valid and one malformed entry → returns only
the valid entry, `total: 1`
- whole-list query where every entry is malformed → `logs: []`, `total:
0`
- unfiltered page containing a malformed entry → Redis requests and
paging fields unchanged; only the valid entry is returned
All three fail without the fix. The full `@mastra/loggers` suite passes
(156 tests), and `tsc --noEmit` is clean.
## Type of Change
- [x] Bug fix (non-breaking change that fixes an issue)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## ELI5
When Upstash contains a damaged log entry, the logger now skips it
instead of showing a blank log. Valid logs still appear in their
original order.
## Summary
- `parseLogs()` skips entries that are not valid JSON instead of
creating empty log records.
- Snapshot totals exclude skipped entries. The existing unfiltered
pagination metadata and bounded `LRANGE` request remain unchanged; a
page can return fewer logs when it contains malformed entries.
- Added tests for mixed valid and malformed entries, all-malformed
results, and malformed entries in a paginated result.
- Added a patch changeset for `@mastra/loggers`.
Test execution results were not provided.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Co-authored-by: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
|
||
|
|
81299c921d | chore: version - exit prerelease mode | ||
|
|
036ac30dce |
chore: version packages (alpha) (#26541)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or [setup this action to publish automatically](https://github.com/changesets/action#with-publishing). If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. ⚠️⚠️⚠️⚠️⚠️⚠️ `main` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `main`. ⚠️⚠️⚠️⚠️⚠️⚠️ # Releases ## @mastra/code-sdk@1.12.0-alpha.9 ### Minor Changes - Added a `--pack <id>` flag to headless mode (`mastracode -p ... --pack anthropic`). It resolves builtin pack ids and saved custom packs (`custom:<name>` or bare name), exits with the list of valid packs on unknown ids, and applies the pack like `/models` → Activate: mode models, subagent models, model route, and thread `activeModelPackId`. An explicit `--model` still wins over the pack for the active mode. ([#26691](https://github.com/mastra-ai/mastra/pull/26691)) **Example** ```bash mastracode -p "summarize this repo" --pack anthropic mastracode -p "fix the tests" --pack Kimi --model openai/gpt-5.5 ``` ### Patch Changes - Fixed per-agent-type subagent model selections (`subagentModelId_explore/plan/execute`) being stripped from session state by schema validation. Pack activation (`/models` → Activate or `--pack`) assigned subagent models, but the next session state update silently dropped them, so subagents fell back to their default models. ([#26691](https://github.com/mastra-ai/mastra/pull/26691)) - Updated dependencies [[`a65d0c7`]( |
||
|
|
3bb1a21ec9 |
fix(loggers): normalize page 0 to 1 in HTTP and Upstash fallback results (#26678) | ||
|
|
b7d95a4cac |
fix(loggers): preserve epoch-zero timestamps in HTTP and Upstash transports (#26679) | ||
|
|
ebe143c491 | chore: version packages | ||
|
|
a19ad852b8 |
fix(loggers): bound UpstashTransport buffer during outages (#26605) | ||
|
|
db62a7772c | chore: version packages | ||
|
|
7c4f7bc226 |
fix(loggers): surface FileTransport read failures instead of returning empty results (#26371)
Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com> |
||
|
|
ecd3761594 | chore: version packages | ||
|
|
e995603f64 |
docs(observability): fix serialization defaults, custom sampler and getConfig types (#26425) | ||
|
|
85783b52ba |
fix(loggers): propagate FileTransport write errors (#26331)
> Opened by @abhiaiyer91 ## Summary `FileTransport._transform()` reported every log write as successful immediately, before the underlying `WriteStream` finished. Asynchronous failures (e.g. `ENOSPC` on a full disk) were never surfaced and synchronous throws were swallowed, so logs could be lost silently. The transform now passes a completion callback to `fileStream.write` and forwards any sync or async error to its callback; successful writes still return the original chunk. Fixes #25678 ## Test plan - Replaced the test that asserted errors were swallowed with one asserting sync errors propagate - Added tests for an async `ENOSPC` write error (callback not invoked early, receives the error) and for a successful write returning the chunk - `pnpm vitest run src/file` in `packages/loggers` — 14 passed; `tsc --noEmit` and eslint clean <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## ELI5 When the file system cannot save a log, `FileTransport` now reports the failure instead of saying the write worked. It also reports successful writes only after the file stream finishes writing. ## Changes - `_transform()` now waits for the file stream’s write callback. It passes synchronous and asynchronous write errors to the transform callback. - On success, `_transform()` returns the original chunk. - If the file stream emits an error before the transport is destroyed, `FileTransport` destroys itself with that error. - Tests cover synchronous errors, asynchronous write errors, successful writes, and an `EISDIR` failure. - Added a patch changeset for `@mastra/loggers`. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Abhi Aiyer <abhiaiyer91@gmail.com> Co-authored-by: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com> |
||
|
|
dc0cf8dbc1 | chore: version packages | ||
|
|
66747f1d28 |
fix(loggers): reject directory paths in FileTransport (#26330)
Co-authored-by: Abhi Aiyer <abhiaiyer91@gmail.com> |
||
|
|
60bfdc5ea4 | chore: version packages | ||
|
|
9694779665 |
fix(loggers): paginate Upstash log queries (#26173)
UpstashTransport pagination currently loads the entire Redis list before slicing, so memory use and response size grow with log history. This retrieves unfiltered pages directly with LLEN and bounded LRANGE calls. Filtered and run ID queries retain a single LRANGE snapshot so concurrent LPUSH and LTRIM operations cannot shift records between reads. Validated with the full @mastra/loggers Vitest suite (120 tests), package build, Oxlint, ESLint, and oxfmt. Closes #26172 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## ELI5 When you ask for a page of logs without filters, Upstash now sends only that page instead of the whole log list. Filtered and run-ID searches still read one consistent snapshot so new logs cannot shift records between reads. ## Summary - `listLogs` uses `LLEN` and a page-specific `LRANGE` for unfiltered requests with pagination enabled. - Filtered `listLogs` requests and `listLogsByRunId` use one `LRANGE 0 -1` snapshot, then filter and paginate locally. - When `returnPaginationResults` is false, `listLogs` returns all matching logs and sets `perPage` to the result count. - Added tests for Redis command shapes, returned logs, pagination metadata, and disabled pagination results. - Added a patch changeset for `@mastra/loggers`. ## Validation Validation results are not established by the inspected source. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
945e6b34d8 |
fix(loggers): drain Upstash logs on destroy (#26174)
UpstashTransport currently flushes only one batch during destroy, which can leave buffered logs unsent when the buffer exceeds batchSize. This drains successive batches before the destroy callback completes. Validated with the full @mastra/loggers Vitest suite (117 tests), package build, Oxlint, ESLint, and oxfmt. Closes #26171 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## ELI5 When the logger shuts down, it now sends all saved messages instead of stopping after one group. This helps prevent logs from being left behind. ## Changes - `UpstashTransport` drains its buffer in batches before the destroy callback completes. - If a batch fails, draining stops and the destroy callback receives the error. - Added a test that checks five logs are sent in three batches with a batch size of two. - Declared a patch release for `@mastra/loggers`. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Anurag Ojha <aojharaj2004@gmail.com> |
||
|
|
b10b70fd77 | chore: version - exit prerelease mode | ||
|
|
2a478e00a1 | chore: version packages | ||
|
|
e6979aec9f |
fix(loggers): stream FileTransport log queries (#26191)
Co-authored-by: Abhi Aiyer <abhiaiyer91@gmail.com> |
||
|
|
9fc60a1748 | chore: version packages | ||
|
|
fab2daf5e5 |
fix(loggers): stop HttpTransport retrying permanent client errors (#26079) | ||
|
|
4968d0732c |
fix(loggers): bound HttpTransport buffer during endpoint outages (#25958) | ||
|
|
873b67e1e8 |
feat(editor): per-usage display conditions on prompt block references (#25991)
Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com> |
||
|
|
8b35a6c1d6 | chore: version - exit prerelease mode | ||
|
|
de967f00ab | chore: version packages | ||
|
|
365f6f26cc |
fix(loggers): skip malformed lines in FileTransport log queries (#25624)
Co-authored-by: Abhi Aiyer <abhiaiyer91@gmail.com> |
||
|
|
5306a14346 | chore: version - exit prerelease mode |