@mastra/nestjs 0.1.3-alpha.6 → 0.1.3-alpha.8

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,23 @@
1
1
  # @mastra/nestjs
2
2
 
3
+ ## 0.1.3-alpha.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`7c275a8`](https://github.com/mastra-ai/mastra/commit/7c275a810595e1a6c41ccc39720531ab65734700), [`890b24c`](https://github.com/mastra-ai/mastra/commit/890b24cc7d32ed6aa4dfe253e54dc6bf4099f690), [`0f48ebf`](https://github.com/mastra-ai/mastra/commit/0f48ebfc7ac7897b2092a189f45751924cf56d1c), [`f180e49`](https://github.com/mastra-ai/mastra/commit/f180e4990e71b04c9a475b523584071712f0048f), [`9260e01`](https://github.com/mastra-ai/mastra/commit/9260e015276fb1b500f7878ee452b47476bf1583), [`2f6c54e`](https://github.com/mastra-ai/mastra/commit/2f6c54e17c041cac1def54baaa6b771647836414), [`e06a159`](https://github.com/mastra-ai/mastra/commit/e06a1598ca07a6c3778aefc2a2d288363c6294ff), [`db34bc6`](https://github.com/mastra-ai/mastra/commit/db34bc6fb36cf125bda0c46be4d3fdc774b70cc4)]:
8
+ - @mastra/core@1.33.0-alpha.8
9
+ - @mastra/server@1.33.0-alpha.8
10
+
11
+ ## 0.1.3-alpha.7
12
+
13
+ ### Patch Changes
14
+
15
+ - Improved Studio agent serialization by making Studio mode and auth-related request context server-controlled across adapters. Playground requests now identify Studio traffic consistently, body and query request context cannot set reserved server values, and Studio placeholder fallback is limited to instruction rendering while serialized models, workspace, skills, tools, and default options use the real request context. ([#16152](https://github.com/mastra-ai/mastra/pull/16152))
16
+
17
+ - Updated dependencies [[`6742347`](https://github.com/mastra-ai/mastra/commit/6742347d71955d7639adc9ddf6ff8282de7ee3ba), [`7d57eeb`](https://github.com/mastra-ai/mastra/commit/7d57eeb8ad67c2e93c39d8fddb697aa11d677dbb), [`7b0ad1f`](https://github.com/mastra-ai/mastra/commit/7b0ad1f5c53dc118c6da12ae82ae2587037dc2b8), [`62666c3`](https://github.com/mastra-ai/mastra/commit/62666c367eaeac3941ead454b1d38810cc855721), [`4af2160`](https://github.com/mastra-ai/mastra/commit/4af2160322f4718cac421930cce85641e9512389), [`136c959`](https://github.com/mastra-ai/mastra/commit/136c9592fb0eeb0cd212f28629d8a29b7557a2fc), [`4df7cc7`](https://github.com/mastra-ai/mastra/commit/4df7cc79342fd065fe7fdeef93c094db14b12bcd), [`aca3121`](https://github.com/mastra-ai/mastra/commit/aca31211233dac25459f140ea4fcfb3a5af64c18), [`284b0d7`](https://github.com/mastra-ai/mastra/commit/284b0d78d0edb306413447e5268007491006937c), [`9cdf38e`](https://github.com/mastra-ai/mastra/commit/9cdf38e58506e1109c8b38f97cd7770978a4218e), [`990851e`](https://github.com/mastra-ai/mastra/commit/990851edcb0e30be5c2c18b6532f1a876cc2d335), [`6068a6c`](https://github.com/mastra-ai/mastra/commit/6068a6c42950fad3ebfc92346417896ba60803d2), [`00106be`](https://github.com/mastra-ai/mastra/commit/00106bede59b81e5b0e9cd6aad8d3b5dbc336387), [`284b0d7`](https://github.com/mastra-ai/mastra/commit/284b0d78d0edb306413447e5268007491006937c), [`e2a079c`](https://github.com/mastra-ai/mastra/commit/e2a079cc3755b1895f7bd5dc36e9be81b11c7c22), [`534a456`](https://github.com/mastra-ai/mastra/commit/534a456a25e4df1e5407e7e632f4cb3b1fa14f9d), [`36bae07`](https://github.com/mastra-ai/mastra/commit/36bae07c0e70b1b3006f2fd20830e8883dcbd066)]:
18
+ - @mastra/core@1.33.0-alpha.7
19
+ - @mastra/server@1.33.0-alpha.7
20
+
3
21
  ## 0.1.3-alpha.6
4
22
 
5
23
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -12521,6 +12521,7 @@ exports.RequestContextService = class _RequestContextService {
12521
12521
  throw error;
12522
12522
  }
12523
12523
  }
12524
+ this.applyRequestMetadata(context);
12524
12525
  return context;
12525
12526
  }
12526
12527
  /**
@@ -12547,9 +12548,15 @@ exports.RequestContextService = class _RequestContextService {
12547
12548
  */
12548
12549
  mergeContext(context, values) {
12549
12550
  for (const [key, value] of Object.entries(values)) {
12551
+ if (serverAdapter.isReservedRequestContextKey(key)) continue;
12550
12552
  context.set(key, value);
12551
12553
  }
12552
12554
  }
12555
+ applyRequestMetadata(context) {
12556
+ if (serverAdapter.isStudioClientTypeHeader(this.request.get(serverAdapter.MASTRA_CLIENT_TYPE_HEADER))) {
12557
+ context.set(serverAdapter.MASTRA_IS_STUDIO_KEY, true);
12558
+ }
12559
+ }
12553
12560
  /**
12554
12561
  * Setup abort handling for client disconnection.
12555
12562
  */