@mastra/react 0.2.36-alpha.9 → 0.3.0-alpha.16
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/CHANGELOG.md +66 -0
- package/dist/agent/hooks.d.ts +6 -1
- package/dist/agent/hooks.d.ts.map +1 -1
- package/dist/index.cjs +381 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +381 -68
- package/dist/index.js.map +1 -1
- package/dist/lib/ai-sdk/utils/toUIMessage.d.ts +2 -0
- package/dist/lib/ai-sdk/utils/toUIMessage.d.ts.map +1 -1
- package/dist/react.css +1 -1
- package/package.json +5 -5
|
@@ -7,6 +7,8 @@ type StreamChunk = {
|
|
|
7
7
|
runId: string;
|
|
8
8
|
from: 'AGENT' | 'WORKFLOW';
|
|
9
9
|
};
|
|
10
|
+
export declare const markStreamingPartsDone: (message: MastraUIMessage) => MastraUIMessage;
|
|
11
|
+
export declare const finishStreamingAssistantMessage: (conversation: MastraUIMessage[]) => MastraUIMessage[];
|
|
10
12
|
export declare const mapWorkflowStreamChunkToWatchResult: (prev: WorkflowStreamResult<any, any, any, any>, chunk: StreamChunk) => WorkflowStreamResult<any, any, any, any>;
|
|
11
13
|
export interface ToUIMessageArgs {
|
|
12
14
|
chunk: ChunkType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toUIMessage.d.ts","sourceRoot":"","sources":["../../../../src/lib/ai-sdk/utils/toUIMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAc,MAAM,wBAAwB,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAA0B,MAAM,UAAU,CAAC;AAGjG,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,GAAG,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,GAAG,UAAU,CAAC;CAC5B,CAAC;
|
|
1
|
+
{"version":3,"file":"toUIMessage.d.ts","sourceRoot":"","sources":["../../../../src/lib/ai-sdk/utils/toUIMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAc,MAAM,wBAAwB,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAA0B,MAAM,UAAU,CAAC;AAGjG,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,GAAG,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,GAAG,UAAU,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,SAAS,eAAe,KAAG,eAehE,CAAC;AAEH,eAAO,MAAM,+BAA+B,GAAI,cAAc,eAAe,EAAE,sBAK9E,CAAC;AAkBF,eAAO,MAAM,mCAAmC,GAC9C,MAAM,oBAAoB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC9C,OAAO,WAAW,KACjB,oBAAoB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CA0GzC,CAAC;AAmGF,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,QAAQ,EAAE,uBAAuB,CAAC;CACnC;AAED,eAAO,MAAM,WAAW,GAAI,mCAAmC,eAAe,KAAG,eAAe,EAotB/F,CAAC"}
|
package/dist/react.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-alpha.16",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/mastra-ai/mastra.git",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"lucide-react": "^0.522.0",
|
|
40
40
|
"shiki": "^1.29.2",
|
|
41
41
|
"tailwind-merge": "^3.5.0",
|
|
42
|
-
"@mastra/client-js": "1.18.0-alpha.
|
|
42
|
+
"@mastra/client-js": "1.18.0-alpha.16"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@mastra/core": ">=1.8.0-0 <2.0.0-0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"zod": "^3.25.0 || ^4.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@ai-sdk/react": "^2.0.
|
|
51
|
+
"@ai-sdk/react": "^2.0.187",
|
|
52
52
|
"@assistant-ui/react": "^0.12.26",
|
|
53
53
|
"@storybook/react-vite": "^9.1.20",
|
|
54
54
|
"@tailwindcss/cli": "^4.2.2",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"vite": "^7.3.1",
|
|
70
70
|
"vitest": "4.1.5",
|
|
71
71
|
"zod": "^3.25.76",
|
|
72
|
-
"@internal/types-builder": "0.0.67",
|
|
73
72
|
"@internal/lint": "0.0.92",
|
|
74
|
-
"@
|
|
73
|
+
"@internal/types-builder": "0.0.67",
|
|
74
|
+
"@mastra/core": "1.33.0-alpha.15"
|
|
75
75
|
},
|
|
76
76
|
"eslintConfig": {
|
|
77
77
|
"extends": [
|