-
Notifications
You must be signed in to change notification settings - Fork 3
DEVPROD-22435 Upgrade mastra to latest release #131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Bumps the mastra group with 7 updates: | Package | From | To | | --- | --- | --- | | [@mastra/core](https://github.com/mastra-ai/mastra/tree/HEAD/packages/core) | `0.17.1` | `0.20.0` | | [@mastra/libsql](https://github.com/mastra-ai/mastra/tree/HEAD/stores/libsql) | `0.14.2` | `0.15.1` | | [@mastra/loggers](https://github.com/mastra-ai/mastra/tree/HEAD/packages/loggers) | `0.10.12` | `0.10.15` | | [@mastra/memory](https://github.com/mastra-ai/mastra/tree/HEAD/packages/memory) | `0.15.2` | `0.15.5` | | [@mastra/mongodb](https://github.com/mastra-ai/mastra/tree/HEAD/stores/mongodb) | `0.14.1` | `0.14.4` | | [@mastra/rag](https://github.com/mastra-ai/mastra/tree/HEAD/packages/rag) | `1.2.5` | `1.3.0` | | [mastra](https://github.com/mastra-ai/mastra/tree/HEAD/packages/cli) | `0.13.1` | `0.14.1` | Updates `@mastra/core` from 0.17.1 to 0.20.0 - [Release notes](https://github.com/mastra-ai/mastra/releases) - [Changelog](https://github.com/mastra-ai/mastra/blob/main/packages/core/CHANGELOG.md) - [Commits](https://github.com/mastra-ai/mastra/commits/@mastra/core@0.20.0/packages/core) Updates `@mastra/libsql` from 0.14.2 to 0.15.1 - [Release notes](https://github.com/mastra-ai/mastra/releases) - [Changelog](https://github.com/mastra-ai/mastra/blob/main/stores/libsql/CHANGELOG.md) - [Commits](https://github.com/mastra-ai/mastra/commits/@mastra/libsql@0.15.1/stores/libsql) Updates `@mastra/loggers` from 0.10.12 to 0.10.15 - [Release notes](https://github.com/mastra-ai/mastra/releases) - [Changelog](https://github.com/mastra-ai/mastra/blob/main/packages/loggers/CHANGELOG.md) - [Commits](https://github.com/mastra-ai/mastra/commits/@mastra/loggers@0.10.15/packages/loggers) Updates `@mastra/memory` from 0.15.2 to 0.15.5 - [Release notes](https://github.com/mastra-ai/mastra/releases) - [Changelog](https://github.com/mastra-ai/mastra/blob/main/packages/memory/CHANGELOG.md) - [Commits](https://github.com/mastra-ai/mastra/commits/@mastra/memory@0.15.5/packages/memory) Updates `@mastra/mongodb` from 0.14.1 to 0.14.4 - [Release notes](https://github.com/mastra-ai/mastra/releases) - [Changelog](https://github.com/mastra-ai/mastra/blob/main/stores/mongodb/CHANGELOG.md) - [Commits](https://github.com/mastra-ai/mastra/commits/@mastra/mongodb@0.14.4/stores/mongodb) Updates `@mastra/rag` from 1.2.5 to 1.3.0 - [Release notes](https://github.com/mastra-ai/mastra/releases) - [Changelog](https://github.com/mastra-ai/mastra/blob/main/packages/rag/CHANGELOG.md) - [Commits](https://github.com/mastra-ai/mastra/commits/@mastra/rag@1.3.0/packages/rag) Updates `mastra` from 0.13.1 to 0.14.1 - [Release notes](https://github.com/mastra-ai/mastra/releases) - [Changelog](https://github.com/mastra-ai/mastra/blob/main/packages/cli/CHANGELOG.md) - [Commits](https://github.com/mastra-ai/mastra/commits/mastra@0.14.1/packages/cli) --- updated-dependencies: - dependency-name: "@mastra/core" dependency-version: 0.20.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: mastra - dependency-name: "@mastra/libsql" dependency-version: 0.15.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: mastra - dependency-name: "@mastra/loggers" dependency-version: 0.10.15 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: mastra - dependency-name: "@mastra/memory" dependency-version: 0.15.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: mastra - dependency-name: "@mastra/mongodb" dependency-version: 0.14.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: mastra - dependency-name: "@mastra/rag" dependency-version: 1.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: mastra - dependency-name: mastra dependency-version: 0.14.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: mastra ... Signed-off-by: dependabot[bot] <support@github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR upgrades the Mastra framework to the latest release, addressing breaking changes introduced in a previous pull request. Key changes include migrating from deprecated vNext
methods to standardized generate
and stream
methods, removing unused networking components, and updating dependencies.
- Migrated all
generateVNext
andstreamVNext
calls togenerate
andstream
methods - Removed unused parsleyOrchestrator vNext network and related constants
- Updated package dependencies including Mastra core, Zod v4, and Braintrust
Reviewed Changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/test-utils/workflow-helpers.ts | Updated type definitions and assertions for new Mastra workflow API |
src/mastra/workflows/logCoreAnalyzer/index.ts | Migrated from generateVNext to generate method calls |
src/mastra/workflows/evergreen/getVersionWorkflow.ts | Added suspend parameter to step execution context |
src/mastra/workflows/evergreen/getLogFileUrlWorkflow/index.ts | Added suspend parameter and improved tool type definitions |
src/mastra/utils/graphql/createGraphQLTool.ts | Enhanced GraphQL tool with suspend/resume schema generics |
src/mastra/tools/utils/index.ts | Updated tool creation with new type parameters and method migration |
src/mastra/tests/scripts/test-thinking-agent.ts | Migrated from generateVNext to generate method |
src/mastra/networks/parsleyOrchestrator.ts | Deleted unused parsleyOrchestrator network implementation |
src/mastra/networks/constants.ts | Removed constants file for deleted network |
src/mastra/networks/index.ts | Removed exports for deleted network |
src/mastra/index.ts | Removed vnext_networks configuration and parsleyOrchestrator import |
src/evals/utils/tracedAgent.ts | Migrated from generateVNext to generate method |
src/api-server/routes/completions/parsley/getMessages.ts | Switched from network-based to agent-based approach |
src/api-server/routes/completions/parsley/chat.ts | Migrated from streamVNext to stream method |
package.json | Updated Mastra packages, Braintrust, and Zod to latest versions |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
logger.error('Agent not found', { | ||
requestId: res.locals.requestId, | ||
networkName: ORCHESTRATOR_NAME, | ||
agentName: 'sageThinkingAgent', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can import and use SAGE_THINKING_AGENT_NAME
DEVPROD-22435
Description
There were a ton of breaking changes in #124 so I split it up into its own ticket so I can get a review.
Notable vNext was removed and all calls were migrated to stream and generate. This required braintrust to upgrade its monkey patch so I reached out to Ken to get that changed on their side. (Which is why I bumped braintrust)
I deleted the parsleyOrchestrator vNext network since we don't actually use it.
Updated Zod to v4 and typescript performance has been better