@mastra/client-js 1.12.0-alpha.2 → 1.12.1-alpha.0

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 CHANGED
@@ -1,5 +1,101 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 1.12.1-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Added `memoryType` field to `GetMemoryStatusResponse` and `GetMemoryConfigResponseExtended` types to distinguish between `'local'` and `'gateway'` memory backends. ([#14952](https://github.com/mastra-ai/mastra/pull/14952))
8
+
9
+ - Updated dependencies [[`2b4ea10`](https://github.com/mastra-ai/mastra/commit/2b4ea10b053e4ea1ab232d536933a4a3c4cba999), [`a0544f0`](https://github.com/mastra-ai/mastra/commit/a0544f0a1e6bd52ac12676228967c1938e43648d), [`c8c86aa`](https://github.com/mastra-ai/mastra/commit/c8c86aa1458017fbd1c0776fdc0c520d129df8a6)]:
10
+ - @mastra/core@1.22.0-alpha.0
11
+
12
+ ## 1.12.0
13
+
14
+ ### Minor Changes
15
+
16
+ - **Added Responses API support for local Mastra apps** ([#14339](https://github.com/mastra-ai/mastra/pull/14339))
17
+
18
+ You can now call Mastra through a Responses API flow and continue stored turns with
19
+ `previous_response_id`, while keeping `model` as a Mastra model string and using
20
+ `agent_id` to target the registered Mastra agent that handles the request. This API acts as an agent-backed
21
+ adapter layer on top of Mastra memory and storage. Advanced provider-native settings can
22
+ also be passed through with `providerOptions`, and provider-returned continuation state
23
+ is surfaced back on the response under the same `providerOptions` field. Stored
24
+ response IDs now map directly to the persisted assistant turn ID in Mastra memory.
25
+ Configured tool definitions are returned under `tools`, while executed tool activity
26
+ is surfaced through `output` items such as `function_call`, `function_call_output`,
27
+ and the final assistant message. Stored responses also return `conversation_id`, which
28
+ maps directly to the underlying Mastra memory thread ID. You can create a conversation
29
+ explicitly with `client.conversations.create()` or let the first stored response create
30
+ it implicitly, inspect the stored item history with `client.conversations.items.list()`,
31
+ retrieve the conversation with `client.conversations.retrieve()`, or remove it with
32
+ `client.conversations.delete()`. Responses requests also support
33
+ `text.format`, including `json_object` for JSON mode and `json_schema` for
34
+ schema-constrained structured output, through the same agent-backed route.
35
+
36
+ ```ts
37
+ import { MastraClient } from '@mastra/client-js';
38
+
39
+ const client = new MastraClient({
40
+ baseUrl: 'http://localhost:4111',
41
+ });
42
+
43
+ const first = await client.responses.create({
44
+ model: 'openai/gpt-5',
45
+ agent_id: 'support-agent',
46
+ input: 'Write a short bedtime story.',
47
+ store: true,
48
+ });
49
+
50
+ const second = await client.responses.create({
51
+ model: 'openai/gpt-5',
52
+ agent_id: 'support-agent',
53
+ input: 'Make it funnier.',
54
+ store: true,
55
+ previous_response_id: first.id,
56
+ });
57
+
58
+ const items = await client.conversations.items.list(first.conversation_id!);
59
+
60
+ const jsonResponse = await client.responses.create({
61
+ model: 'openai/gpt-5',
62
+ agent_id: 'support-agent',
63
+ input: 'Return a JSON object with a title and summary.',
64
+ text: {
65
+ format: {
66
+ type: 'json_object',
67
+ },
68
+ },
69
+ });
70
+
71
+ const structuredResponse = await client.responses.create({
72
+ model: 'openai/gpt-5',
73
+ agent_id: 'support-agent',
74
+ input: 'Return a structured support ticket summary.',
75
+ text: {
76
+ format: {
77
+ type: 'json_schema',
78
+ name: 'ticket_summary',
79
+ strict: true,
80
+ schema: {
81
+ type: 'object',
82
+ properties: {
83
+ summary: { type: 'string' },
84
+ priority: { type: 'string' },
85
+ },
86
+ required: ['summary', 'priority'],
87
+ additionalProperties: false,
88
+ },
89
+ },
90
+ },
91
+ });
92
+ ```
93
+
94
+ ### Patch Changes
95
+
96
+ - Updated dependencies [[`9a43b47`](https://github.com/mastra-ai/mastra/commit/9a43b476465e86c9aca381c2831066b5c33c999a), [`ec5c319`](https://github.com/mastra-ai/mastra/commit/ec5c3197a50d034cb8e9cc494eebfddc684b5d81), [`6517789`](https://github.com/mastra-ai/mastra/commit/65177895b74b5471fe2245c7292f0176d9b3385d), [`13f4327`](https://github.com/mastra-ai/mastra/commit/13f4327f052faebe199cefbe906d33bf90238767), [`9ad6aa6`](https://github.com/mastra-ai/mastra/commit/9ad6aa6dfe858afc6955d1df5f3f78c40bb96b9c), [`2862127`](https://github.com/mastra-ai/mastra/commit/2862127d0a7cbd28523120ad64fea067a95838e6), [`3d16814`](https://github.com/mastra-ai/mastra/commit/3d16814c395931373543728994ff45ac98093074), [`7f498d0`](https://github.com/mastra-ai/mastra/commit/7f498d099eacef64fd43ee412e3bd6f87965a8a6), [`8cf8a67`](https://github.com/mastra-ai/mastra/commit/8cf8a67b061b737cb06d501fb8c1967a98bbf3cb), [`d7827e3`](https://github.com/mastra-ai/mastra/commit/d7827e393937c6cb0c7a744dde4d31538cb542b7)]:
97
+ - @mastra/core@1.21.0
98
+
3
99
  ## 1.12.0-alpha.2
4
100
 
5
101
  ### Patch Changes
@@ -3,7 +3,7 @@ name: mastra-client-js
3
3
  description: Documentation for @mastra/client-js. Use when working with @mastra/client-js APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/client-js"
6
- version: "1.12.0-alpha.2"
6
+ version: "1.12.1-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.12.0-alpha.2",
2
+ "version": "1.12.1-alpha.0",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {},
5
5
  "modules": {}