@mastra/deployer 0.1.0-alpha.43 → 0.1.0-alpha.44

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,13 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 0.1.0-alpha.44
4
+
5
+ ### Patch Changes
6
+
7
+ - 9fb59d6: changeset
8
+ - Updated dependencies [9fb59d6]
9
+ - @mastra/core@0.2.0-alpha.95
10
+
3
11
  ## 0.1.0-alpha.43
4
12
 
5
13
  ### Minor Changes
@@ -2801,9 +2801,9 @@ async function getAgentsHandler(c2) {
2801
2801
  }, {});
2802
2802
  acc[_id] = {
2803
2803
  name: agent.name,
2804
- model: agent.model,
2805
2804
  instructions: agent.instructions,
2806
- tools: serializedAgentTools
2805
+ tools: serializedAgentTools,
2806
+ provider: agent.llm?.getProvider()
2807
2807
  };
2808
2808
  return acc;
2809
2809
  }, {});
@@ -2831,9 +2831,9 @@ async function getAgentByIdHandler(c2) {
2831
2831
  }, {});
2832
2832
  return c2.json({
2833
2833
  name: agent.name,
2834
- model: agent.model,
2835
2834
  instructions: agent.instructions,
2836
- tools: serializedAgentTools
2835
+ tools: serializedAgentTools,
2836
+ provider: agent.llm?.getProvider()
2837
2837
  });
2838
2838
  } catch (error) {
2839
2839
  return handleError(error, "Error getting agent");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.1.0-alpha.43",
3
+ "version": "0.1.0-alpha.44",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -51,7 +51,7 @@
51
51
  "rollup-plugin-esbuild": "^6.1.1",
52
52
  "rollup-plugin-node-externals": "^8.0.0",
53
53
  "zod": "^3.24.1",
54
- "@mastra/core": "^0.2.0-alpha.94"
54
+ "@mastra/core": "^0.2.0-alpha.95"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@hono/node-server": "^1.13.7",
@@ -1,3 +1,4 @@
1
+ import type { Mastra } from '@mastra/core';
1
2
  import type { Context } from 'hono';
2
3
  import { stringify } from 'superjson';
3
4
  import zodToJsonSchema from 'zod-to-json-schema';
@@ -11,7 +12,7 @@ import { validateBody } from './utils';
11
12
  // Agent handlers
12
13
  export async function getAgentsHandler(c: Context) {
13
14
  try {
14
- const mastra = c.get('mastra');
15
+ const mastra: Mastra = c.get('mastra');
15
16
  const agents = mastra.getAgents();
16
17
 
17
18
  const serializedAgents = Object.entries(agents).reduce<any>((acc, [_id, _agent]) => {
@@ -27,9 +28,9 @@ export async function getAgentsHandler(c: Context) {
27
28
  }, {});
28
29
  acc[_id] = {
29
30
  name: agent.name,
30
- model: agent.model,
31
31
  instructions: agent.instructions,
32
32
  tools: serializedAgentTools,
33
+ provider: agent.llm?.getProvider(),
33
34
  };
34
35
  return acc;
35
36
  }, {});
@@ -42,7 +43,7 @@ export async function getAgentsHandler(c: Context) {
42
43
 
43
44
  export async function getAgentByIdHandler(c: Context) {
44
45
  try {
45
- const mastra = c.get('mastra');
46
+ const mastra: Mastra = c.get('mastra');
46
47
  const agentId = c.req.param('agentId');
47
48
  const agent = mastra.getAgent(agentId);
48
49
 
@@ -62,9 +63,9 @@ export async function getAgentByIdHandler(c: Context) {
62
63
 
63
64
  return c.json({
64
65
  name: agent.name,
65
- model: agent.model,
66
66
  instructions: agent.instructions,
67
67
  tools: serializedAgentTools,
68
+ provider: agent.llm?.getProvider(),
68
69
  });
69
70
  } catch (error) {
70
71
  return handleError(error, 'Error getting agent');