@mastra/client-js 1.10.1-alpha.4 → 1.10.1-alpha.5

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,12 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 1.10.1-alpha.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`f16d92c`](https://github.com/mastra-ai/mastra/commit/f16d92c677a119a135cebcf7e2b9f51ada7a9df4)]:
8
+ - @mastra/core@1.18.0-alpha.2
9
+
3
10
  ## 1.10.1-alpha.4
4
11
 
5
12
  ### 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.10.1-alpha.4"
6
+ version: "1.10.1-alpha.5"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.10.1-alpha.4",
2
+ "version": "1.10.1-alpha.5",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -32,7 +32,7 @@ export const mastraClient = new MastraClient({
32
32
 
33
33
  **getAgent(agentId)** (`Agent`): Retrieves a specific agent instance by ID.
34
34
 
35
- **getMemoryThreads(params)** (`Promise<StorageThreadType[]>`): Retrieves memory threads for the specified resource and agent. Requires a \`resourceId\` and an \`agentId\`.
35
+ **listMemoryThreads(params)** (`Promise<StorageThreadType[]>`): Retrieves memory threads for the specified resource and agent. Requires a \`resourceId\` and an \`agentId\`.
36
36
 
37
37
  **createMemoryThread(params)** (`Promise<MemoryThread>`): Creates a new memory thread with the given parameters.
38
38
 
@@ -7,7 +7,7 @@ The Memory API provides methods to manage conversation threads and message histo
7
7
  Retrieve all memory threads for a specific resource:
8
8
 
9
9
  ```typescript
10
- const threads = await mastraClient.getMemoryThreads({
10
+ const threads = await mastraClient.listMemoryThreads({
11
11
  resourceId: 'resource-1',
12
12
  agentId: 'agent-1', // Optional - can be omitted if storage is configured
13
13
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "1.10.1-alpha.4",
3
+ "version": "1.10.1-alpha.5",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "type": "module",
@@ -37,7 +37,7 @@
37
37
  "@ai-sdk/ui-utils": "^1.2.11",
38
38
  "@lukeed/uuid": "^2.0.1",
39
39
  "json-schema": "^0.4.0",
40
- "@mastra/core": "1.18.0-alpha.1",
40
+ "@mastra/core": "1.18.0-alpha.2",
41
41
  "@mastra/schema-compat": "1.2.7"
42
42
  },
43
43
  "peerDependencies": {
@@ -53,10 +53,10 @@
53
53
  "typescript": "^5.9.3",
54
54
  "vitest": "4.0.18",
55
55
  "zod": "^4.3.6",
56
- "@internal/ai-sdk-v5": "0.0.21",
57
- "@internal/types-builder": "0.0.49",
56
+ "@internal/ai-sdk-v4": "0.0.21",
58
57
  "@internal/lint": "0.0.74",
59
- "@internal/ai-sdk-v4": "0.0.21"
58
+ "@internal/types-builder": "0.0.49",
59
+ "@internal/ai-sdk-v5": "0.0.21"
60
60
  },
61
61
  "engines": {
62
62
  "node": ">=22.13.0"