mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
chore: version packages (alpha) (#30660)
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/core@1.84.0-alpha.6 ### Minor Changes - Knowledge storage can supply scope declarations, access rules included. ([#29428](https://github.com/mastra-ai/mastra/pull/29428)) A store returns declarations from `getScopeDeclarations()` (none by default). Knowledge merges them under its config's: the config wins on a key both declare, and a declaration that doesn't compile is skipped with a warning. When stored scopes come from a skipped declaration, the declaration check's error names that declaration and why it was skipped, so it can be fixed in the store. The store's answer is reused for 30 seconds and read again after `renameScopeDeclaration`, so a declaration the store adds, removes or changes (access rules included) applies within that window without a store read on every call. Revoking access through the store can therefore take up to 30 seconds to take effect. ```ts class ImportingKnowledgeStorage extends InMemoryKnowledgeStorage { override async getScopeDeclarations() { return { 'imports:$name': {}, 'linear:$account:$connection': { access: [{ principal: 'imports:all', role: 'viewer' }] }, }; } } ``` Runs that hold `imports:all` then read every Linear connection's pages. ## @mastra/platform@0.1.0-alpha.1 ### Minor Changes - Added `PlatformBrowser`, a Stagehand browser backed by a Mastra Platform browser session. By default it provisions a session with `POST /v1/browsers/sessions` on the Platform and connects to the returned CDP URL; pass `cdpUrl` to connect to a session you already provisioned, with no token or API call. The access token falls back to `MASTRA_PLATFORM_ACCESS_TOKEN` / `MASTRA_PLATFORM_SECRET_KEY`, the project to `MASTRA_PROJECT_ID`, and the API URL to `MASTRA_BROWSER_API_URL`. `@mastra/platform` now depends on `@mastra/stagehand` at runtime. ([#29428](https://github.com/mastra-ai/mastra/pull/29428)) ```ts import { PlatformBrowser } from '@mastra/platform'; const agent = new Agent({ name: 'browser-agent', model, browser: new PlatformBrowser() }); ``` - Added `@mastra/platform`: hosted Mastra Platform Memory and Knowledge clients, with Platform Sandbox and Filesystem re-exported from `@mastra/platform-workspace`. `PlatformMemory` is a drop-in `memory` for `Agent` that loads observations and recent messages from a Platform Memory instance and saves each turn back; observation and reflection run on the Platform. `PlatformMemoryClient` exposes the same API directly. Credentials fall back to `MASTRA_PLATFORM_ACCESS_TOKEN` / `MASTRA_PLATFORM_SECRET_KEY`. `PlatformMemory` uses `MASTRA_MEMORY_INSTANCE_ID`; `PlatformKnowledge` uses `MASTRA_KNOWLEDGE_INSTANCE_ID`. `PlatformKnowledge` takes every scope declaration and access rule from its instance, Memory's and Platform importers' included, and has no `scopes` option. Agents read imported pages when their runs hold the scope an importer's rule grants (for now `imports:all`). ([#29428](https://github.com/mastra-ai/mastra/pull/29428)) ```ts import { PlatformMemory, PlatformKnowledge, PlatformSandbox, PlatformFilesystem } from '@mastra/platform'; const agent = new Agent({ name: 'assistant', model, memory: new PlatformMemory() }); ``` ### Patch Changes - `PlatformKnowledge` now supports listing pins: `knowledge_pin` with `kind: 'list'` pins a page's listing on hosted Knowledge instead of refusing it as an old storage adapter. ([#29428](https://github.com/mastra-ai/mastra/pull/29428)) - `PlatformMemory` fixes for read-only runs and working memory: ([#29428](https://github.com/mastra-ai/mastra/pull/29428)) - A read-only run (`memory: { options: { readOnly: true } }`) now sees the thread's observations and unobserved messages, read through the Memory instance's read-only context route. Before, it got no stored context at all. It still saves nothing and starts no observation. - The `workingMemory` option now delivers what it says: `readonly` and `tool` add the resource's stored working memory to each run's prompt, read fresh each run; `tool` also tells the agent to update it with `updateWorkingMemory`; `off` leaves it out. Before, stored working memory never reached the prompt in any mode. - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 See [release notes](https://github.com/mastra-ai/mastra/releases) for published changes. ## @mastra/client-js@1.60.1-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 ## @mastra/react@1.15.1-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/client-js@1.60.1-alpha.6 ## @mastra/deployer-cloud@1.84.0-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/deployer@1.84.0-alpha.6 ## @mastra/longmemeval@1.1.43-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 ## @mastra/opencode@0.1.43-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 ## @mastra/factory@0.29.0-alpha.7 ### Patch Changes - The **Activity** sort in the Factory sidebar now orders sessions that share a status by their last update instead of their creation date, the same as **Last updated** does. An older session that was updated since no longer sinks below a newer one that was left alone. ([#30656](https://github.com/mastra-ai/mastra/pull/30656)) - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/code-sdk@1.19.1-alpha.7 ## create-factory@0.5.0-alpha.6 ### Patch Changes - Updated dependencies [[`bfcb0f7`](bfcb0f738d), [`383a19d`](383a19d047)]: - mastra@1.40.0-alpha.6 ## @mastra/code-sdk@1.19.1-alpha.7 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/client-js@1.60.1-alpha.6 ## mastracode@0.50.1-alpha.7 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/code-sdk@1.19.1-alpha.7 ## mastra@1.40.0-alpha.6 ### Patch Changes - The Factory sidebar now groups sessions by board and shows a second line under each session by default, with when it last changed and its pull request. Turn on **Compact view** or set **Group** to **None** in the sidebar's properties menu to get one line per session or a single list back. Settings you already changed keep their values; the rest follow the new defaults. ([#30656](https://github.com/mastra-ai/mastra/pull/30656)) - Factory **Settings** now shows theme and completion sound on **My account**, next to your profile and log out, instead of on a separate **Preferences** page. Settings opens on **My account**, and old Preferences links go there. ([#30658](https://github.com/mastra-ai/mastra/pull/30658)) - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/deployer@1.84.0-alpha.6 ## @mastra/deployer@1.84.0-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/server@1.84.0-alpha.6 ## @mastra/mcp-docs-server@1.3.14-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 ## @mastra/playground-ui@69.1.0-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/client-js@1.60.1-alpha.6 - @mastra/react@1.15.1-alpha.6 ## @mastra/server@1.84.0-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 ## @mastra/elysia@0.1.24-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/server@1.84.0-alpha.6 ## @mastra/express@1.5.28-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/server@1.84.0-alpha.6 ## @mastra/fastify@1.5.28-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/server@1.84.0-alpha.6 ## @mastra/hono@1.7.26-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/server@1.84.0-alpha.6 ## @mastra/koa@1.7.28-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/server@1.84.0-alpha.6 ## @mastra/nestjs@0.3.1-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/server@1.84.0-alpha.6 ## @mastra/next@0.2.42-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/hono@1.7.26-alpha.6 - @mastra/server@1.84.0-alpha.6 ## @mastra/tanstack-start@0.2.42-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/hono@1.7.26-alpha.6 - @mastra/server@1.84.0-alpha.6 ## @mastra/temporal@0.6.1-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/deployer@1.84.0-alpha.6 ## create-mastra@1.40.0-alpha.6 ## @internal/playground@1.40.0-alpha.6 ### Patch Changes - Updated dependencies [[`0eb407e`](0eb407ebcc)]: - @mastra/core@1.84.0-alpha.6 - @mastra/client-js@1.60.1-alpha.6 - @mastra/react@1.15.1-alpha.6 - @mastra/playground-ui@69.1.0-alpha.6 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
de5af00226
commit
f346f6c4af
55 changed files with 289 additions and 28 deletions
Loading…
Add table
Add a link
Reference in a new issue