@mastra/deployer 0.16.3-alpha.0 → 0.16.3

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,30 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 0.16.3
4
+
5
+ ### Patch Changes
6
+
7
+ - dependencies updates: ([#7545](https://github.com/mastra-ai/mastra/pull/7545))
8
+ - Updated dependency [`hono@^4.9.6` ↗︎](https://www.npmjs.com/package/hono/v/4.9.6) (from `^4.8.12`, in `dependencies`)
9
+
10
+ - AN packages ([#7711](https://github.com/mastra-ai/mastra/pull/7711))
11
+
12
+ - Client SDK Agents, Mastra server - support runtimeContext with GET requests ([#7734](https://github.com/mastra-ai/mastra/pull/7734))
13
+
14
+ - Updated dependencies [[`b4379f7`](https://github.com/mastra-ai/mastra/commit/b4379f703fd74474f253420e8c3a684f2c4b2f8e), [`2a6585f`](https://github.com/mastra-ai/mastra/commit/2a6585f7cb71f023f805d521d1c3c95fb9a3aa59), [`3d26e83`](https://github.com/mastra-ai/mastra/commit/3d26e8353a945719028f087cc6ac4b06f0ce27d2), [`dd9119b`](https://github.com/mastra-ai/mastra/commit/dd9119b175a8f389082f75c12750e51f96d65dca), [`d34aaa1`](https://github.com/mastra-ai/mastra/commit/d34aaa1da5d3c5f991740f59e2fe6d28d3e2dd91), [`56e55d1`](https://github.com/mastra-ai/mastra/commit/56e55d1e9eb63e7d9e41aa46e012aae471256812), [`ce1e580`](https://github.com/mastra-ai/mastra/commit/ce1e580f6391e94a0c6816a9c5db0a21566a262f), [`4a2e636`](https://github.com/mastra-ai/mastra/commit/4a2e636719b410b25cdae46fb40d4a9c575d3ed0), [`9f67cb0`](https://github.com/mastra-ai/mastra/commit/9f67cb05eb4ad6aeccf6b73a7bb215e5fa581509), [`b2babfa`](https://github.com/mastra-ai/mastra/commit/b2babfa9e75b22f2759179e71d8473f6dc5421ed), [`d8c3ba5`](https://github.com/mastra-ai/mastra/commit/d8c3ba516f4173282d293f7e64769cfc8738d360), [`a566c4e`](https://github.com/mastra-ai/mastra/commit/a566c4e92d86c1671707c54359b1d33934f7cc13), [`af333aa`](https://github.com/mastra-ai/mastra/commit/af333aa30fe6d1b127024b03a64736c46eddeca2), [`4c81b65`](https://github.com/mastra-ai/mastra/commit/4c81b65a28d128560bdf63bc9b8a1bddd4884812), [`3863c52`](https://github.com/mastra-ai/mastra/commit/3863c52d44b4e5779968b802d977e87adf939d8e), [`6424c7e`](https://github.com/mastra-ai/mastra/commit/6424c7ec38b6921d66212431db1e0958f441b2a7), [`db94750`](https://github.com/mastra-ai/mastra/commit/db94750a41fd29b43eb1f7ce8e97ba8b9978c91b), [`a66a371`](https://github.com/mastra-ai/mastra/commit/a66a3716b00553d7f01842be9deb34f720b10fab), [`69fc3cd`](https://github.com/mastra-ai/mastra/commit/69fc3cd0fd814901785bdcf49bf536ab1e7fd975)]:
15
+ - @mastra/core@0.16.3
16
+ - @mastra/server@0.16.3
17
+
18
+ ## 0.16.3-alpha.1
19
+
20
+ ### Patch Changes
21
+
22
+ - Client SDK Agents, Mastra server - support runtimeContext with GET requests ([#7734](https://github.com/mastra-ai/mastra/pull/7734))
23
+
24
+ - Updated dependencies [[`2a6585f`](https://github.com/mastra-ai/mastra/commit/2a6585f7cb71f023f805d521d1c3c95fb9a3aa59), [`3d26e83`](https://github.com/mastra-ai/mastra/commit/3d26e8353a945719028f087cc6ac4b06f0ce27d2), [`56e55d1`](https://github.com/mastra-ai/mastra/commit/56e55d1e9eb63e7d9e41aa46e012aae471256812), [`9f67cb0`](https://github.com/mastra-ai/mastra/commit/9f67cb05eb4ad6aeccf6b73a7bb215e5fa581509), [`4c81b65`](https://github.com/mastra-ai/mastra/commit/4c81b65a28d128560bdf63bc9b8a1bddd4884812)]:
25
+ - @mastra/server@0.16.3-alpha.1
26
+ - @mastra/core@0.16.3-alpha.1
27
+
3
28
  ## 0.16.3-alpha.0
4
29
 
5
30
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/agents/voice.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAKpC;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,OAAO,qBAclD;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,CAAC,EAAE,OAAO,qBAmB5C;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,OAAO,qBAclD;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,CAAC,EAAE,OAAO,qBAmC7C"}
1
+ {"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/agents/voice.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAKpC;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,OAAO,qBAgBlD;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,CAAC,EAAE,OAAO,qBAqB5C;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,OAAO,qBAelD;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,CAAC,EAAE,OAAO,qBAoC7C"}
@@ -2681,9 +2681,11 @@ async function getSpeakersHandler(c2) {
2681
2681
  try {
2682
2682
  const mastra = c2.get("mastra");
2683
2683
  const agentId = c2.req.param("agentId");
2684
+ const runtimeContext = c2.get("runtimeContext");
2684
2685
  const speakers = await voice.getSpeakersHandler({
2685
2686
  mastra,
2686
- agentId
2687
+ agentId,
2688
+ runtimeContext
2687
2689
  });
2688
2690
  return c2.json(speakers);
2689
2691
  } catch (error) {
@@ -2694,10 +2696,12 @@ async function speakHandler(c2) {
2694
2696
  try {
2695
2697
  const mastra = c2.get("mastra");
2696
2698
  const agentId = c2.req.param("agentId");
2699
+ const runtimeContext = c2.get("runtimeContext");
2697
2700
  const { input, options } = await c2.req.json();
2698
2701
  const audioStream = await voice.generateSpeechHandler({
2699
2702
  mastra,
2700
2703
  agentId,
2704
+ runtimeContext,
2701
2705
  body: { text: input, speakerId: options?.speakerId }
2702
2706
  });
2703
2707
  c2.header("Content-Type", `audio/${options?.filetype ?? "mp3"}`);
@@ -2711,9 +2715,11 @@ async function getListenerHandler(c2) {
2711
2715
  try {
2712
2716
  const mastra = c2.get("mastra");
2713
2717
  const agentId = c2.req.param("agentId");
2718
+ const runtimeContext = c2.get("runtimeContext");
2714
2719
  const listeners = await voice.getListenerHandler({
2715
2720
  mastra,
2716
- agentId
2721
+ agentId,
2722
+ runtimeContext
2717
2723
  });
2718
2724
  return c2.json(listeners);
2719
2725
  } catch (error) {
@@ -2724,6 +2730,7 @@ async function listenHandler(c2) {
2724
2730
  try {
2725
2731
  const mastra = c2.get("mastra");
2726
2732
  const agentId = c2.req.param("agentId");
2733
+ const runtimeContext = c2.get("runtimeContext");
2727
2734
  const formData = await c2.req.formData();
2728
2735
  const audioFile = formData.get("audio");
2729
2736
  const options = formData.get("options");
@@ -2739,6 +2746,7 @@ async function listenHandler(c2) {
2739
2746
  const transcription = await voice.transcribeSpeechHandler({
2740
2747
  mastra,
2741
2748
  agentId,
2749
+ runtimeContext,
2742
2750
  body: {
2743
2751
  audioData: Buffer.from(audioData),
2744
2752
  options: parsedOptions
@@ -11005,6 +11013,27 @@ async function createHonoServer(mastra, options = {
11005
11013
  }
11006
11014
  }
11007
11015
  }
11016
+ if (c2.req.method === "GET") {
11017
+ try {
11018
+ const encodedRuntimeContext = c2.req.query("runtimeContext");
11019
+ if (encodedRuntimeContext) {
11020
+ let parsedRuntimeContext;
11021
+ try {
11022
+ parsedRuntimeContext = JSON.parse(encodedRuntimeContext);
11023
+ } catch {
11024
+ try {
11025
+ const json = Buffer.from(encodedRuntimeContext, "base64").toString("utf-8");
11026
+ parsedRuntimeContext = JSON.parse(json);
11027
+ } catch {
11028
+ }
11029
+ }
11030
+ if (parsedRuntimeContext && typeof parsedRuntimeContext === "object") {
11031
+ runtimeContext$1 = new runtimeContext.RuntimeContext([...runtimeContext$1.entries(), ...Object.entries(parsedRuntimeContext)]);
11032
+ }
11033
+ }
11034
+ } catch {
11035
+ }
11036
+ }
11008
11037
  c2.set("runtimeContext", runtimeContext$1);
11009
11038
  c2.set("mastra", mastra);
11010
11039
  c2.set("tools", options.tools);