@mastra/react 0.0.15 → 0.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */
2
2
  @layer properties {
3
3
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
4
4
  *, :before, :after, ::backdrop {
@@ -2,7 +2,7 @@ import { ModelSettings } from './types';
2
2
  import { UIMessage } from '@ai-sdk/react';
3
3
  import { MastraUIMessage } from '../lib/ai-sdk';
4
4
  import { CoreUserMessage } from '@mastra/core/llm';
5
- import { RuntimeContext } from '@mastra/core/runtime-context';
5
+ import { RequestContext } from '@mastra/core/request-context';
6
6
  import { ChunkType, NetworkChunkType } from '@mastra/core/stream';
7
7
  export interface MastraChatProps {
8
8
  agentId: string;
@@ -10,7 +10,7 @@ export interface MastraChatProps {
10
10
  }
11
11
  interface SharedArgs {
12
12
  coreUserMessages: CoreUserMessage[];
13
- runtimeContext?: RuntimeContext;
13
+ requestContext?: RequestContext;
14
14
  threadId?: string;
15
15
  modelSettings?: ModelSettings;
16
16
  signal?: AbortSignal;
@@ -0,0 +1,10 @@
1
+ import { CoreUserMessage } from '@mastra/core/llm';
2
+ import { MastraUIMessage } from '../types';
3
+ /**
4
+ * Converts a CoreUserMessage to a MastraUIMessage (UIMessage format).
5
+ *
6
+ * Handles all CoreUserMessage content types:
7
+ * - String content → single text part
8
+ * - Array content with text/image/file parts → corresponding UIMessage parts
9
+ */
10
+ export declare const fromCoreUserMessageToUIMessage: (coreUserMessage: CoreUserMessage) => MastraUIMessage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/react",
3
- "version": "0.0.15",
3
+ "version": "0.1.0-beta.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/mastra-ai/mastra.git",
@@ -38,7 +38,7 @@
38
38
  "lucide-react": "^0.522.0",
39
39
  "shiki": "^1.29.2",
40
40
  "tailwind-merge": "^3.3.1",
41
- "@mastra/client-js": "0.16.9"
41
+ "@mastra/client-js": "1.0.0-beta.1"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": ">=19.0.0",
@@ -47,8 +47,8 @@
47
47
  "devDependencies": {
48
48
  "@ai-sdk/react": "^2.0.57",
49
49
  "@assistant-ui/react": "^0.10.45",
50
- "@storybook/react-vite": "^9.1.10",
51
- "@tailwindcss/vite": "^4.1.13",
50
+ "@storybook/react-vite": "^9.1.16",
51
+ "@tailwindcss/vite": "^4.1.16",
52
52
  "@types/react": "^19.1.13",
53
53
  "@types/react-dom": "^19.1.9",
54
54
  "@vitejs/plugin-react": "^5.0.4",
@@ -65,19 +65,15 @@
65
65
  "vite": "^7.1.9",
66
66
  "vite-plugin-dts": "^4.5.4",
67
67
  "vitest": "^3.2.4",
68
- "@mastra/core": "0.24.0"
68
+ "@mastra/core": "1.0.0-beta.1"
69
69
  },
70
70
  "eslintConfig": {
71
71
  "extends": [
72
72
  "plugin:storybook/recommended"
73
73
  ]
74
74
  },
75
- "publishConfig": {
76
- "access": "public",
77
- "publish-branch": [
78
- "main",
79
- "0.x"
80
- ]
75
+ "engines": {
76
+ "node": ">=22.13.0"
81
77
  },
82
78
  "scripts": {
83
79
  "build": "vite build",