@mastra/server 1.29.1 → 1.29.2-alpha.0

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/{chunk-53QVLUCB.cjs → chunk-6SUTXWOK.cjs} +16 -10
  3. package/dist/chunk-6SUTXWOK.cjs.map +1 -0
  4. package/dist/{chunk-KBD6NZE2.cjs → chunk-B5RUOKFI.cjs} +20 -20
  5. package/dist/{chunk-KBD6NZE2.cjs.map → chunk-B5RUOKFI.cjs.map} +1 -1
  6. package/dist/{chunk-HU57X24H.js → chunk-BR6MQNNL.js} +16 -10
  7. package/dist/chunk-BR6MQNNL.js.map +1 -0
  8. package/dist/{chunk-3DKWFTZU.js → chunk-PRK4GVU6.js} +164 -27
  9. package/dist/chunk-PRK4GVU6.js.map +1 -0
  10. package/dist/{chunk-E6E2VFIT.js → chunk-QDNKVREO.js} +5 -5
  11. package/dist/{chunk-E6E2VFIT.js.map → chunk-QDNKVREO.js.map} +1 -1
  12. package/dist/{chunk-H4HRQ7ZN.cjs → chunk-W6TZ2TNY.cjs} +164 -27
  13. package/dist/chunk-W6TZ2TNY.cjs.map +1 -0
  14. package/dist/docs/SKILL.md +1 -1
  15. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  16. package/dist/{observational-memory-YYO73QMY-CHIPDTZY.cjs → observational-memory-JX7VDONY-6J77R6HH.cjs} +26 -26
  17. package/dist/{observational-memory-YYO73QMY-CHIPDTZY.cjs.map → observational-memory-JX7VDONY-6J77R6HH.cjs.map} +1 -1
  18. package/dist/{observational-memory-YYO73QMY-JNLMPY5B.js → observational-memory-JX7VDONY-AOV7JL6X.js} +3 -3
  19. package/dist/{observational-memory-YYO73QMY-JNLMPY5B.js.map → observational-memory-JX7VDONY-AOV7JL6X.js.map} +1 -1
  20. package/dist/server/handlers/a2a.cjs +10 -10
  21. package/dist/server/handlers/a2a.d.ts +17 -3
  22. package/dist/server/handlers/a2a.d.ts.map +1 -1
  23. package/dist/server/handlers/a2a.js +1 -1
  24. package/dist/server/handlers/agent-builder.cjs +16 -16
  25. package/dist/server/handlers/agent-builder.js +1 -1
  26. package/dist/server/handlers.cjs +4 -4
  27. package/dist/server/handlers.js +2 -2
  28. package/dist/server/server-adapter/index.cjs +18 -18
  29. package/dist/server/server-adapter/index.js +2 -2
  30. package/package.json +5 -5
  31. package/dist/chunk-3DKWFTZU.js.map +0 -1
  32. package/dist/chunk-53QVLUCB.cjs.map +0 -1
  33. package/dist/chunk-H4HRQ7ZN.cjs.map +0 -1
  34. package/dist/chunk-HU57X24H.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @mastra/server
2
2
 
3
+ ## 1.29.2-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix A2A streaming to emit incremental artifact updates from the agent full stream while preserving final structured output artifacts. ([#15941](https://github.com/mastra-ai/mastra/pull/15941))
8
+
9
+ - Updated dependencies [[`d587199`](https://github.com/mastra-ai/mastra/commit/d5871993c0371bde2b0717d6b47194755baa1443)]:
10
+ - @mastra/core@1.29.2-alpha.0
11
+
3
12
  ## 1.29.1
4
13
 
5
14
  ### Patch Changes
@@ -1042,7 +1042,7 @@ function imageSize(input) {
1042
1042
  throw new TypeError(`unsupported file type: ${type}`);
1043
1043
  }
1044
1044
 
1045
- // ../memory/dist/chunk-7742VTN5.js
1045
+ // ../memory/dist/chunk-XLJGXHP5.js
1046
1046
  var OM_DEBUG_LOG = process.env.OM_DEBUG ? path.join(process.cwd(), "om-debug.log") : null;
1047
1047
  function omDebug(msg) {
1048
1048
  if (!OM_DEBUG_LOG) return;
@@ -5612,13 +5612,19 @@ var ReflectorRunner = class {
5612
5612
  const bufferKey = this.buffering.getReflectionBufferKey(lockKey);
5613
5613
  const asyncOp = BufferingCoordinator.asyncBufferingOps.get(bufferKey);
5614
5614
  if (asyncOp) {
5615
- omDebug(`[OM:reflect] tryActivateBufferedReflection: waiting for in-progress op...`);
5616
- try {
5617
- await Promise.race([
5618
- asyncOp,
5619
- new Promise((_, reject) => setTimeout(() => reject(new Error("Timeout")), 6e4))
5620
- ]);
5621
- } catch {
5615
+ if (activationMetadata?.triggeredBy === "ttl" || activationMetadata?.triggeredBy === "provider_change") {
5616
+ omDebug(
5617
+ `[OM:reflect] tryActivateBufferedReflection: async op in progress, not blocking for ${activationMetadata.triggeredBy} trigger`
5618
+ );
5619
+ } else {
5620
+ omDebug(`[OM:reflect] tryActivateBufferedReflection: waiting for in-progress op...`);
5621
+ try {
5622
+ await Promise.race([
5623
+ asyncOp,
5624
+ new Promise((_, reject) => setTimeout(() => reject(new Error("Timeout")), 5e3))
5625
+ ]);
5626
+ } catch {
5627
+ }
5622
5628
  }
5623
5629
  }
5624
5630
  const freshRecord = await this.storage.getObservationalMemory(record.threadId, record.resourceId);
@@ -10342,5 +10348,5 @@ exports.stripEphemeralAnchorIds = stripEphemeralAnchorIds;
10342
10348
  exports.stripObservationGroups = stripObservationGroups;
10343
10349
  exports.truncateStringByTokens = truncateStringByTokens;
10344
10350
  exports.wrapInObservationGroup = wrapInObservationGroup;
10345
- //# sourceMappingURL=chunk-53QVLUCB.cjs.map
10346
- //# sourceMappingURL=chunk-53QVLUCB.cjs.map
10351
+ //# sourceMappingURL=chunk-6SUTXWOK.cjs.map
10352
+ //# sourceMappingURL=chunk-6SUTXWOK.cjs.map