@mastra/client-js 0.10.1 → 0.10.2-alpha.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @mastra/client-js@0.10.1-alpha.3 build /home/runner/work/mastra/mastra/client-sdks/client-js
2
+ > @mastra/client-js@0.10.2-alpha.1 build /home/runner/work/mastra/mastra/client-sdks/client-js
3
3
  > tsup src/index.ts --format esm,cjs --dts --clean --treeshake=smallest --splitting
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,10 +10,10 @@
10
10
  ESM Build start
11
11
  CJS Build start
12
12
  ESM dist/index.js 43.40 KB
13
- ESM ⚡️ Build success in 1799ms
13
+ ESM ⚡️ Build success in 1819ms
14
14
  CJS dist/index.cjs 43.69 KB
15
- CJS ⚡️ Build success in 1803ms
15
+ CJS ⚡️ Build success in 1835ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 14331ms
18
- DTS dist/index.d.ts 31.64 KB
19
- DTS dist/index.d.cts 31.64 KB
17
+ DTS ⚡️ Build success in 14517ms
18
+ DTS dist/index.d.ts 31.68 KB
19
+ DTS dist/index.d.cts 31.68 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 0.10.2-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f0d559f: Fix peerdeps for alpha channel
8
+ - Updated dependencies [1e8bb40]
9
+ - @mastra/core@0.10.2-alpha.2
10
+
11
+ ## 0.10.2-alpha.0
12
+
13
+ ### Patch Changes
14
+
15
+ - 592a2db: Added different icons for agents and workflows in mcp tools list
16
+ - Updated dependencies [592a2db]
17
+ - Updated dependencies [e5dc18d]
18
+ - @mastra/core@0.10.2-alpha.0
19
+
3
20
  ## 0.10.1
4
21
 
5
22
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { AbstractAgent } from '@ag-ui/client';
2
- import { ServerInfo, ServerDetailInfo } from '@mastra/core/mcp';
2
+ import { ServerInfo, MCPToolType, ServerDetailInfo } from '@mastra/core/mcp';
3
3
  import { processDataStream } from '@ai-sdk/ui-utils';
4
4
  import { CoreMessage, AiMessageType, StorageThreadType, MessageType, LegacyWorkflowRuns, WorkflowRuns, QueryResult, GenerateReturn } from '@mastra/core';
5
5
  import { JSONSchema7 } from 'json-schema';
6
6
  import { ZodSchema } from 'zod';
7
- import { BaseLogMessage } from '@mastra/core/logger';
8
7
  import { AgentGenerateOptions, AgentStreamOptions } from '@mastra/core/agent';
8
+ import { BaseLogMessage } from '@mastra/core/logger';
9
9
  import { RuntimeContext } from '@mastra/core/runtime-context';
10
10
  import { Workflow as Workflow$1, WorkflowResult, WatchEvent } from '@mastra/core/workflows';
11
11
  import { StepAction, StepGraph, LegacyWorkflowRunResult as LegacyWorkflowRunResult$1 } from '@mastra/core/workflows/legacy';
@@ -259,6 +259,7 @@ interface McpToolInfo {
259
259
  name: string;
260
260
  description?: string;
261
261
  inputSchema: string;
262
+ toolType?: MCPToolType;
262
263
  }
263
264
  interface McpServerToolListResponse {
264
265
  tools: McpToolInfo[];
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { AbstractAgent } from '@ag-ui/client';
2
- import { ServerInfo, ServerDetailInfo } from '@mastra/core/mcp';
2
+ import { ServerInfo, MCPToolType, ServerDetailInfo } from '@mastra/core/mcp';
3
3
  import { processDataStream } from '@ai-sdk/ui-utils';
4
4
  import { CoreMessage, AiMessageType, StorageThreadType, MessageType, LegacyWorkflowRuns, WorkflowRuns, QueryResult, GenerateReturn } from '@mastra/core';
5
5
  import { JSONSchema7 } from 'json-schema';
6
6
  import { ZodSchema } from 'zod';
7
- import { BaseLogMessage } from '@mastra/core/logger';
8
7
  import { AgentGenerateOptions, AgentStreamOptions } from '@mastra/core/agent';
8
+ import { BaseLogMessage } from '@mastra/core/logger';
9
9
  import { RuntimeContext } from '@mastra/core/runtime-context';
10
10
  import { Workflow as Workflow$1, WorkflowResult, WatchEvent } from '@mastra/core/workflows';
11
11
  import { StepAction, StepGraph, LegacyWorkflowRunResult as LegacyWorkflowRunResult$1 } from '@mastra/core/workflows/legacy';
@@ -259,6 +259,7 @@ interface McpToolInfo {
259
259
  name: string;
260
260
  description?: string;
261
261
  inputSchema: string;
262
+ toolType?: MCPToolType;
262
263
  }
263
264
  interface McpServerToolListResponse {
264
265
  tools: McpToolInfo[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "0.10.1",
3
+ "version": "0.10.2-alpha.1",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "type": "module",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "peerDependencies": {
33
33
  "zod": "^3.0.0",
34
- "@mastra/core": "^0.10.0"
34
+ "@mastra/core": "^0.10.0-alpha.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@babel/preset-env": "^7.26.9",
@@ -43,7 +43,7 @@
43
43
  "typescript": "^5.8.2",
44
44
  "vitest": "^3.1.2",
45
45
  "@internal/lint": "0.0.7",
46
- "@mastra/core": "0.10.1"
46
+ "@mastra/core": "0.10.2-alpha.2"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "tsup src/index.ts --format esm,cjs --dts --clean --treeshake=smallest --splitting",
package/src/types.ts CHANGED
@@ -7,10 +7,10 @@ import type {
7
7
  WorkflowRuns,
8
8
  LegacyWorkflowRuns,
9
9
  } from '@mastra/core';
10
+ import type { AgentGenerateOptions, AgentStreamOptions } from '@mastra/core/agent';
10
11
  import type { BaseLogMessage } from '@mastra/core/logger';
11
12
 
12
- import type { AgentGenerateOptions, AgentStreamOptions } from '@mastra/core/agent';
13
- import type { ServerInfo } from '@mastra/core/mcp';
13
+ import type { MCPToolType, ServerInfo } from '@mastra/core/mcp';
14
14
  import type { RuntimeContext } from '@mastra/core/runtime-context';
15
15
  import type { Workflow, WatchEvent, WorkflowResult } from '@mastra/core/workflows';
16
16
  import type {
@@ -306,6 +306,7 @@ export interface McpToolInfo {
306
306
  name: string;
307
307
  description?: string;
308
308
  inputSchema: string;
309
+ toolType?: MCPToolType;
309
310
  }
310
311
 
311
312
  export interface McpServerToolListResponse {