@mastra/temporal 0.0.0-ag-example-20260516005230

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 (45) hide show
  1. package/CHANGELOG.md +366 -0
  2. package/LICENSE.md +30 -0
  3. package/README.md +107 -0
  4. package/dist/chunk-BF6TR7JX.js +9 -0
  5. package/dist/chunk-BF6TR7JX.js.map +1 -0
  6. package/dist/chunk-DYBSPLCJ.cjs +11 -0
  7. package/dist/chunk-DYBSPLCJ.cjs.map +1 -0
  8. package/dist/index.cjs +132 -0
  9. package/dist/index.cjs.map +1 -0
  10. package/dist/index.d.ts +3 -0
  11. package/dist/index.d.ts.map +1 -0
  12. package/dist/index.js +130 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/mastra-deployer-UCBGECM5.js +39 -0
  15. package/dist/mastra-deployer-UCBGECM5.js.map +1 -0
  16. package/dist/mastra-deployer-YVT5GB5G.cjs +41 -0
  17. package/dist/mastra-deployer-YVT5GB5G.cjs.map +1 -0
  18. package/dist/mastra-deployer.d.ts +16 -0
  19. package/dist/mastra-deployer.d.ts.map +1 -0
  20. package/dist/plugin.d.ts +16 -0
  21. package/dist/plugin.d.ts.map +1 -0
  22. package/dist/run.d.ts +24 -0
  23. package/dist/run.d.ts.map +1 -0
  24. package/dist/temporal-workflow-runtime.mjs +295 -0
  25. package/dist/transforms/activities.d.ts +11 -0
  26. package/dist/transforms/activities.d.ts.map +1 -0
  27. package/dist/transforms/shared.d.ts +23 -0
  28. package/dist/transforms/shared.d.ts.map +1 -0
  29. package/dist/transforms/temporal-workflow-runtime.d.mts +92 -0
  30. package/dist/transforms/temporal-workflow-runtime.d.mts.map +1 -0
  31. package/dist/transforms/workflows.d.ts +20 -0
  32. package/dist/transforms/workflows.d.ts.map +1 -0
  33. package/dist/types.d.ts +4 -0
  34. package/dist/types.d.ts.map +1 -0
  35. package/dist/utils.d.ts +2 -0
  36. package/dist/utils.d.ts.map +1 -0
  37. package/dist/worker.cjs +1336 -0
  38. package/dist/worker.cjs.map +1 -0
  39. package/dist/worker.d.ts +2 -0
  40. package/dist/worker.d.ts.map +1 -0
  41. package/dist/worker.js +1310 -0
  42. package/dist/worker.js.map +1 -0
  43. package/dist/workflow.d.ts +27 -0
  44. package/dist/workflow.d.ts.map +1 -0
  45. package/package.json +95 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,366 @@
1
+ # @mastra/temporal
2
+
3
+ ## 0.0.0-ag-example-20260516005230
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`58aadb8`](https://github.com/mastra-ai/mastra/commit/58aadb8a2ab713c945df04351290bb572dffad21), [`4d90188`](https://github.com/mastra-ai/mastra/commit/4d9018840fba28d40e9bc3238727bbc28b29e996), [`58aadb8`](https://github.com/mastra-ai/mastra/commit/58aadb8a2ab713c945df04351290bb572dffad21), [`58aadb8`](https://github.com/mastra-ai/mastra/commit/58aadb8a2ab713c945df04351290bb572dffad21), [`58aadb8`](https://github.com/mastra-ai/mastra/commit/58aadb8a2ab713c945df04351290bb572dffad21), [`58aadb8`](https://github.com/mastra-ai/mastra/commit/58aadb8a2ab713c945df04351290bb572dffad21), [`58aadb8`](https://github.com/mastra-ai/mastra/commit/58aadb8a2ab713c945df04351290bb572dffad21), [`2487b50`](https://github.com/mastra-ai/mastra/commit/2487b50af3b11dada6301afcb2f4da25612da1da), [`db58726`](https://github.com/mastra-ai/mastra/commit/db58726abd9cedd990ef40e85cec82aeb47594af), [`7c3a1ad`](https://github.com/mastra-ai/mastra/commit/7c3a1adedd155d126a15ad74b8985aa355af86e2), [`94556bf`](https://github.com/mastra-ai/mastra/commit/94556bffcf30aa1dae02662b80809df8957f81e1)]:
8
+ - @mastra/core@0.0.0-ag-example-20260516005230
9
+ - @mastra/deployer@0.0.0-ag-example-20260516005230
10
+
11
+ ## 0.1.5-alpha.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [[`bad08e9`](https://github.com/mastra-ai/mastra/commit/bad08e99c5291884c3ac76743c78c74f53a302c2)]:
16
+ - @mastra/core@1.35.0-alpha.1
17
+ - @mastra/deployer@1.35.0-alpha.1
18
+
19
+ ## 0.1.5-alpha.0
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [[`b661349`](https://github.com/mastra-ai/mastra/commit/b661349281514691db78941a9044e6e4f1cde7a7)]:
24
+ - @mastra/core@1.34.1-alpha.0
25
+ - @mastra/deployer@1.34.1-alpha.0
26
+
27
+ ## 0.1.4
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [[`20787de`](https://github.com/mastra-ai/mastra/commit/20787de5965234a1af28fe35f49437c537dbfa0d), [`784ad98`](https://github.com/mastra-ai/mastra/commit/784ad989549de91dc5d33ab8ef36caa6f7dcd34e), [`fceae1f`](https://github.com/mastra-ai/mastra/commit/fceae1f5f5db4722cb078a663c6eb4bd22944123), [`090a647`](https://github.com/mastra-ai/mastra/commit/090a647ba5a66d36f203f9f49457e03a1ff4e6fb), [`bf02acb`](https://github.com/mastra-ai/mastra/commit/bf02acbb8a6110f638ac844e89f1ebf04cb7fe74), [`090a647`](https://github.com/mastra-ai/mastra/commit/090a647ba5a66d36f203f9f49457e03a1ff4e6fb), [`bdb4cbf`](https://github.com/mastra-ai/mastra/commit/bdb4cbf8ba4b685d7481f28bb9dc3de6c79c9ed2), [`0fd3fbe`](https://github.com/mastra-ai/mastra/commit/0fd3fbe40fb63657aedd72f6e7b38c8e8ee6940d), [`f84447d`](https://github.com/mastra-ai/mastra/commit/f84447d6c80f3471836a9b300d246b331fb47e0d), [`a1a5b3e`](https://github.com/mastra-ai/mastra/commit/a1a5b3e42ab2ca5161ea21db59ebf28442680fa7), [`af84f57`](https://github.com/mastra-ai/mastra/commit/af84f571ed762e92e8e61c5f9a72363520914274), [`8b3c6f9`](https://github.com/mastra-ai/mastra/commit/8b3c6f90f7879833ba7d1bc70937e1d8f69d0804), [`fed0475`](https://github.com/mastra-ai/mastra/commit/fed0475ccfea31e4fc251469ac05640d0742c1f0), [`0d53730`](https://github.com/mastra-ai/mastra/commit/0d53730c1ed87ef80c87caa5701c4170ea8028e6), [`522f44d`](https://github.com/mastra-ai/mastra/commit/522f44d947214bfc06cff50599bae1ef3494880d)]:
32
+ - @mastra/core@1.34.0
33
+ - @mastra/deployer@1.34.0
34
+
35
+ ## 0.1.4-alpha.3
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [[`090a647`](https://github.com/mastra-ai/mastra/commit/090a647ba5a66d36f203f9f49457e03a1ff4e6fb), [`090a647`](https://github.com/mastra-ai/mastra/commit/090a647ba5a66d36f203f9f49457e03a1ff4e6fb), [`f84447d`](https://github.com/mastra-ai/mastra/commit/f84447d6c80f3471836a9b300d246b331fb47e0d), [`a1a5b3e`](https://github.com/mastra-ai/mastra/commit/a1a5b3e42ab2ca5161ea21db59ebf28442680fa7), [`af84f57`](https://github.com/mastra-ai/mastra/commit/af84f571ed762e92e8e61c5f9a72363520914274), [`8b3c6f9`](https://github.com/mastra-ai/mastra/commit/8b3c6f90f7879833ba7d1bc70937e1d8f69d0804)]:
40
+ - @mastra/core@1.34.0-alpha.3
41
+ - @mastra/deployer@1.34.0-alpha.3
42
+
43
+ ## 0.1.4-alpha.2
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies [[`bdb4cbf`](https://github.com/mastra-ai/mastra/commit/bdb4cbf8ba4b685d7481f28bb9dc3de6c79c9ed2)]:
48
+ - @mastra/core@1.34.0-alpha.2
49
+ - @mastra/deployer@1.34.0-alpha.2
50
+
51
+ ## 0.1.4-alpha.1
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies [[`fceae1f`](https://github.com/mastra-ai/mastra/commit/fceae1f5f5db4722cb078a663c6eb4bd22944123), [`bf02acb`](https://github.com/mastra-ai/mastra/commit/bf02acbb8a6110f638ac844e89f1ebf04cb7fe74), [`0fd3fbe`](https://github.com/mastra-ai/mastra/commit/0fd3fbe40fb63657aedd72f6e7b38c8e8ee6940d), [`fed0475`](https://github.com/mastra-ai/mastra/commit/fed0475ccfea31e4fc251469ac05640d0742c1f0), [`522f44d`](https://github.com/mastra-ai/mastra/commit/522f44d947214bfc06cff50599bae1ef3494880d)]:
56
+ - @mastra/core@1.34.0-alpha.1
57
+ - @mastra/deployer@1.34.0-alpha.1
58
+
59
+ ## 0.1.4-alpha.0
60
+
61
+ ### Patch Changes
62
+
63
+ - Updated dependencies [[`20787de`](https://github.com/mastra-ai/mastra/commit/20787de5965234a1af28fe35f49437c537dbfa0d), [`784ad98`](https://github.com/mastra-ai/mastra/commit/784ad989549de91dc5d33ab8ef36caa6f7dcd34e), [`0d53730`](https://github.com/mastra-ai/mastra/commit/0d53730c1ed87ef80c87caa5701c4170ea8028e6)]:
64
+ - @mastra/core@1.34.0-alpha.0
65
+ - @mastra/deployer@1.34.0-alpha.0
66
+
67
+ ## 0.1.3
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [[`6ba46dc`](https://github.com/mastra-ai/mastra/commit/6ba46dc1ac04af635d0f59377d7384ca6af44cd1), [`3e63fca`](https://github.com/mastra-ai/mastra/commit/3e63fca7aa41269b2a9518effdd09b8ab8f1ff04), [`bc386e0`](https://github.com/mastra-ai/mastra/commit/bc386e08249dd30f3e66cf59de0c151a8dc26afb), [`fd1d852`](https://github.com/mastra-ai/mastra/commit/fd1d85248ccf197d138ebfed2f71a25319102919)]:
72
+ - @mastra/core@1.33.1
73
+ - @mastra/deployer@1.33.1
74
+
75
+ ## 0.1.3-alpha.1
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies [[`3e63fca`](https://github.com/mastra-ai/mastra/commit/3e63fca7aa41269b2a9518effdd09b8ab8f1ff04), [`bc386e0`](https://github.com/mastra-ai/mastra/commit/bc386e08249dd30f3e66cf59de0c151a8dc26afb), [`fd1d852`](https://github.com/mastra-ai/mastra/commit/fd1d85248ccf197d138ebfed2f71a25319102919)]:
80
+ - @mastra/core@1.33.1-alpha.1
81
+ - @mastra/deployer@1.33.1-alpha.1
82
+
83
+ ## 0.1.3-alpha.0
84
+
85
+ ### Patch Changes
86
+
87
+ - Updated dependencies [[`6ba46dc`](https://github.com/mastra-ai/mastra/commit/6ba46dc1ac04af635d0f59377d7384ca6af44cd1)]:
88
+ - @mastra/core@1.33.1-alpha.0
89
+ - @mastra/deployer@1.33.1-alpha.0
90
+
91
+ ## 0.1.2
92
+
93
+ ### Patch Changes
94
+
95
+ - dependencies updates: ([#16399](https://github.com/mastra-ai/mastra/pull/16399))
96
+ - Updated dependency [`@babel/generator@^7.29.1` ↗︎](https://www.npmjs.com/package/@babel/generator/v/7.29.1) (from `^7.28.3`, in `dependencies`)
97
+ - Updated dependency [`@babel/parser@^7.29.3` ↗︎](https://www.npmjs.com/package/@babel/parser/v/7.29.3) (from `^7.28.4`, in `dependencies`)
98
+ - Updated dependency [`@babel/types@^7.29.0` ↗︎](https://www.npmjs.com/package/@babel/types/v/7.29.0) (from `^7.28.4`, in `dependencies`)
99
+
100
+ - Fixed peer dependency ranges so packages that use the Mastra server require a compatible Mastra core version. ([#16208](https://github.com/mastra-ai/mastra/pull/16208))
101
+
102
+ - Updated dependencies [[`9f17410`](https://github.com/mastra-ai/mastra/commit/9f1741080def23d42ee50b39887a385ae316a3c6), [`7ad5585`](https://github.com/mastra-ai/mastra/commit/7ad55856406f1de398dc713f6a9eaa78b2784bb6), [`ac47842`](https://github.com/mastra-ai/mastra/commit/ac478427aa7a5f5fdaed633a911218689b438c60), [`cc189cc`](https://github.com/mastra-ai/mastra/commit/cc189cc0128eb7af233476b5e421ec6888bffde7), [`d1fdbd0`](https://github.com/mastra-ai/mastra/commit/d1fdbd012add5623cb7e6b7f882b605ab358bbb4), [`210ea7a`](https://github.com/mastra-ai/mastra/commit/210ea7af559791b73a44fc9c12179908aaa3183f), [`7c275a8`](https://github.com/mastra-ai/mastra/commit/7c275a810595e1a6c41ccc39720531ab65734700), [`bae019e`](https://github.com/mastra-ai/mastra/commit/bae019ecb6694da96909f7ec7b9eb3a0a33aa887), [`890b24c`](https://github.com/mastra-ai/mastra/commit/890b24cc7d32ed6aa4dfe253e54dc6bf4099f690), [`f984b4d`](https://github.com/mastra-ai/mastra/commit/f984b4d6c60bf2ae2a9b156f0e8c35a66fe96c91), [`6742347`](https://github.com/mastra-ai/mastra/commit/6742347d71955d7639adc9ddf6ff8282de7ee3ba), [`b59316f`](https://github.com/mastra-ai/mastra/commit/b59316ffa0f7688165b0f9c81ccdf85da461e5b2), [`0f48ebf`](https://github.com/mastra-ai/mastra/commit/0f48ebfc7ac7897b2092a189f45751924cf56d1c), [`37c0dc5`](https://github.com/mastra-ai/mastra/commit/37c0dc5697d343db98628bf867bf71ce6deec6d7), [`087e413`](https://github.com/mastra-ai/mastra/commit/087e4133e5d6efa36619e9556c16750e4179c047), [`83218c8`](https://github.com/mastra-ai/mastra/commit/83218c88b37773c9424fbe733b37be556e55e94d), [`ef6b584`](https://github.com/mastra-ai/mastra/commit/ef6b5847ac33c0a7e80af3a86e8801e2933dd3ee), [`c6eb39e`](https://github.com/mastra-ai/mastra/commit/c6eb39ea6dca381c6563cb240237fbe608e02f93), [`7b0ad1f`](https://github.com/mastra-ai/mastra/commit/7b0ad1f5c53dc118c6da12ae82ae2587037dc2b8), [`d91ebe2`](https://github.com/mastra-ai/mastra/commit/d91ebe28ee065d8f2ed6df741c3c07f58d359529), [`62666c3`](https://github.com/mastra-ai/mastra/commit/62666c367eaeac3941ead454b1d38810cc855721), [`33f5061`](https://github.com/mastra-ai/mastra/commit/33f5061cd1c0335020c3faae61ce96de822854fa), [`4af2160`](https://github.com/mastra-ai/mastra/commit/4af2160322f4718cac421930cce85641e9512389), [`087e413`](https://github.com/mastra-ai/mastra/commit/087e4133e5d6efa36619e9556c16750e4179c047), [`265ec9f`](https://github.com/mastra-ai/mastra/commit/265ec9f887b5c81255c873a76ff7796f16e4f99b), [`0011a7e`](https://github.com/mastra-ai/mastra/commit/0011a7e2bba6a4fc97a638c3f4089c0e9308b37c), [`ce01024`](https://github.com/mastra-ai/mastra/commit/ce010242eee9bdfc09e4c26725b9d37998679a8d), [`6ce80bf`](https://github.com/mastra-ai/mastra/commit/6ce80bf4872a891e0bddf8b80561a80584efb14b), [`f984b4d`](https://github.com/mastra-ai/mastra/commit/f984b4d6c60bf2ae2a9b156f0e8c35a66fe96c91), [`136c959`](https://github.com/mastra-ai/mastra/commit/136c9592fb0eeb0cd212f28629d8a29b7557a2fc), [`9268531`](https://github.com/mastra-ai/mastra/commit/9268531e7ec4be98beeba3b3ae8be0a7ea380662), [`13ead79`](https://github.com/mastra-ai/mastra/commit/13ead79149486b88144db7e11e6ff551caef5be1), [`dccd8f1`](https://github.com/mastra-ai/mastra/commit/dccd8f1f8b8f1ad203b77556207e5529567c616d), [`4df7cc7`](https://github.com/mastra-ai/mastra/commit/4df7cc79342fd065fe7fdeef93c094db14b12bcd), [`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), [`aca3121`](https://github.com/mastra-ai/mastra/commit/aca31211233dac25459f140ea4fcfb3a5af64c18), [`e06a159`](https://github.com/mastra-ai/mastra/commit/e06a1598ca07a6c3778aefc2a2d288363c6294ff), [`4dd900d`](https://github.com/mastra-ai/mastra/commit/4dd900d75dfe9be89f8c15188b368a8622aa1e18), [`b560d6f`](https://github.com/mastra-ai/mastra/commit/b560d6f88b9b904b15c10f75c949eb145bc27684), [`99869ec`](https://github.com/mastra-ai/mastra/commit/99869ecb1f2aa6dfcc44fa4e843e5ee0344efa64), [`900d086`](https://github.com/mastra-ai/mastra/commit/900d086bb737b9cf2fcf68f11b0389b801a2738c), [`4c0e286`](https://github.com/mastra-ai/mastra/commit/4c0e28637c9cfb4f416549b55e97ebfa13319dfc), [`55f1e2d`](https://github.com/mastra-ai/mastra/commit/55f1e2d65425b95a49ae788053b266f256e38c96), [`4ff5bdf`](https://github.com/mastra-ai/mastra/commit/4ff5bdfe170cba6dfb5260c6af0f4ba668430772), [`9cdf38e`](https://github.com/mastra-ai/mastra/commit/9cdf38e58506e1109c8b38f97cd7770978a4218e), [`087e413`](https://github.com/mastra-ai/mastra/commit/087e4133e5d6efa36619e9556c16750e4179c047), [`db34bc6`](https://github.com/mastra-ai/mastra/commit/db34bc6fb36cf125bda0c46be4d3fdc774b70cc4), [`990851e`](https://github.com/mastra-ai/mastra/commit/990851edcb0e30be5c2c18b6532f1a876cc2d335), [`bbcd93c`](https://github.com/mastra-ai/mastra/commit/bbcd93cf7d8aa1007d6d84bfd033b8015c912087), [`8373ff4`](https://github.com/mastra-ai/mastra/commit/8373ff46745d77af79f183c4470f80fa2727a6b2), [`d48a705`](https://github.com/mastra-ai/mastra/commit/d48a705ff3dfbdc7a996e07ecd8293b5effd9a2a), [`308bd07`](https://github.com/mastra-ai/mastra/commit/308bd074f35cef0c75d82fc1eb19382fe04ecf6f), [`6068a6c`](https://github.com/mastra-ai/mastra/commit/6068a6c42950fad3ebfc92346417896ba60803d2), [`36b3bbf`](https://github.com/mastra-ai/mastra/commit/36b3bbf5a8d59f7e23d47e29340e76c681b4929c), [`d86f031`](https://github.com/mastra-ai/mastra/commit/d86f031eb6b0b2570145afafea664e59bf688962), [`b275631`](https://github.com/mastra-ai/mastra/commit/b275631dc10541a482b2e2d4a3e3cfa843bd5fa1), [`00106be`](https://github.com/mastra-ai/mastra/commit/00106bede59b81e5b0e9cd6aad8d3b5dbc336387), [`bd36d8e`](https://github.com/mastra-ai/mastra/commit/bd36d8eb6de8c9a0310352649dbd4b06703c2299), [`11c1528`](https://github.com/mastra-ai/mastra/commit/11c152848c5d0ef227184853b5040f5b41ee7b1e), [`4999667`](https://github.com/mastra-ai/mastra/commit/49996678b68356cad7f088430009690406c50fbd), [`e2a079c`](https://github.com/mastra-ai/mastra/commit/e2a079cc3755b1895f7bd5dc36e9be81b11c7c22), [`8ac9141`](https://github.com/mastra-ai/mastra/commit/8ac9141439caa8fdd674944c4d84f29b3c730296), [`25184ff`](https://github.com/mastra-ai/mastra/commit/25184ffaf1293ec95119426eb1a1f8d38831b96c), [`534a456`](https://github.com/mastra-ai/mastra/commit/534a456a25e4df1e5407e7e632f4cb3b1fa14f9d), [`105e454`](https://github.com/mastra-ai/mastra/commit/105e454c95af06a7c741c15969d8f9b0f02463a7), [`aebde9c`](https://github.com/mastra-ai/mastra/commit/aebde9cfacf56592c6b6350cae721740fe090b8a), [`36bae07`](https://github.com/mastra-ai/mastra/commit/36bae07c0e70b1b3006f2fd20830e8883dcbd066), [`5688881`](https://github.com/mastra-ai/mastra/commit/5688881669c7ed157f31ac77f6fc5f8d95ceea32)]:
103
+ - @mastra/core@1.33.0
104
+ - @mastra/deployer@1.33.0
105
+
106
+ ## 0.1.2-alpha.17
107
+
108
+ ### Patch Changes
109
+
110
+ - Updated dependencies [[`4999667`](https://github.com/mastra-ai/mastra/commit/49996678b68356cad7f088430009690406c50fbd)]:
111
+ - @mastra/core@1.33.0-alpha.17
112
+ - @mastra/deployer@1.33.0-alpha.17
113
+
114
+ ## 0.1.2-alpha.16
115
+
116
+ ### Patch Changes
117
+
118
+ - Updated dependencies [[`cc189cc`](https://github.com/mastra-ai/mastra/commit/cc189cc0128eb7af233476b5e421ec6888bffde7)]:
119
+ - @mastra/core@1.33.0-alpha.16
120
+ - @mastra/deployer@1.33.0-alpha.16
121
+
122
+ ## 0.1.2-alpha.15
123
+
124
+ ### Patch Changes
125
+
126
+ - Updated dependencies [[`105e454`](https://github.com/mastra-ai/mastra/commit/105e454c95af06a7c741c15969d8f9b0f02463a7)]:
127
+ - @mastra/core@1.33.0-alpha.15
128
+ - @mastra/deployer@1.33.0-alpha.15
129
+
130
+ ## 0.1.2-alpha.14
131
+
132
+ ### Patch Changes
133
+
134
+ - Updated dependencies:
135
+ - @mastra/deployer@1.33.0-alpha.14
136
+ - @mastra/core@1.33.0-alpha.14
137
+
138
+ ## 0.1.2-alpha.13
139
+
140
+ ### Patch Changes
141
+
142
+ - Updated dependencies [[`f984b4d`](https://github.com/mastra-ai/mastra/commit/f984b4d6c60bf2ae2a9b156f0e8c35a66fe96c91), [`ce01024`](https://github.com/mastra-ai/mastra/commit/ce010242eee9bdfc09e4c26725b9d37998679a8d), [`f984b4d`](https://github.com/mastra-ai/mastra/commit/f984b4d6c60bf2ae2a9b156f0e8c35a66fe96c91), [`8373ff4`](https://github.com/mastra-ai/mastra/commit/8373ff46745d77af79f183c4470f80fa2727a6b2), [`11c1528`](https://github.com/mastra-ai/mastra/commit/11c152848c5d0ef227184853b5040f5b41ee7b1e)]:
143
+ - @mastra/core@1.33.0-alpha.13
144
+ - @mastra/deployer@1.33.0-alpha.13
145
+
146
+ ## 0.1.2-alpha.12
147
+
148
+ ### Patch Changes
149
+
150
+ - Updated dependencies [[`b59316f`](https://github.com/mastra-ai/mastra/commit/b59316ffa0f7688165b0f9c81ccdf85da461e5b2), [`55f1e2d`](https://github.com/mastra-ai/mastra/commit/55f1e2d65425b95a49ae788053b266f256e38c96), [`d48a705`](https://github.com/mastra-ai/mastra/commit/d48a705ff3dfbdc7a996e07ecd8293b5effd9a2a)]:
151
+ - @mastra/core@1.33.0-alpha.12
152
+ - @mastra/deployer@1.33.0-alpha.12
153
+
154
+ ## 0.1.2-alpha.11
155
+
156
+ ### Patch Changes
157
+
158
+ - Updated dependencies [[`37c0dc5`](https://github.com/mastra-ai/mastra/commit/37c0dc5697d343db98628bf867bf71ce6deec6d7), [`ef6b584`](https://github.com/mastra-ai/mastra/commit/ef6b5847ac33c0a7e80af3a86e8801e2933dd3ee), [`4dd900d`](https://github.com/mastra-ai/mastra/commit/4dd900d75dfe9be89f8c15188b368a8622aa1e18), [`4ff5bdf`](https://github.com/mastra-ai/mastra/commit/4ff5bdfe170cba6dfb5260c6af0f4ba668430772), [`bbcd93c`](https://github.com/mastra-ai/mastra/commit/bbcd93cf7d8aa1007d6d84bfd033b8015c912087), [`308bd07`](https://github.com/mastra-ai/mastra/commit/308bd074f35cef0c75d82fc1eb19382fe04ecf6f)]:
159
+ - @mastra/core@1.33.0-alpha.11
160
+ - @mastra/deployer@1.33.0-alpha.11
161
+
162
+ ## 0.1.2-alpha.10
163
+
164
+ ### Patch Changes
165
+
166
+ - dependencies updates: ([#16399](https://github.com/mastra-ai/mastra/pull/16399))
167
+ - Updated dependency [`@babel/generator@^7.29.1` ↗︎](https://www.npmjs.com/package/@babel/generator/v/7.29.1) (from `^7.28.3`, in `dependencies`)
168
+ - Updated dependency [`@babel/parser@^7.29.3` ↗︎](https://www.npmjs.com/package/@babel/parser/v/7.29.3) (from `^7.28.4`, in `dependencies`)
169
+ - Updated dependency [`@babel/types@^7.29.0` ↗︎](https://www.npmjs.com/package/@babel/types/v/7.29.0) (from `^7.28.4`, in `dependencies`)
170
+ - Updated dependencies [[`7ad5585`](https://github.com/mastra-ai/mastra/commit/7ad55856406f1de398dc713f6a9eaa78b2784bb6), [`210ea7a`](https://github.com/mastra-ai/mastra/commit/210ea7af559791b73a44fc9c12179908aaa3183f), [`83218c8`](https://github.com/mastra-ai/mastra/commit/83218c88b37773c9424fbe733b37be556e55e94d), [`265ec9f`](https://github.com/mastra-ai/mastra/commit/265ec9f887b5c81255c873a76ff7796f16e4f99b), [`6ce80bf`](https://github.com/mastra-ai/mastra/commit/6ce80bf4872a891e0bddf8b80561a80584efb14b), [`9268531`](https://github.com/mastra-ai/mastra/commit/9268531e7ec4be98beeba3b3ae8be0a7ea380662), [`13ead79`](https://github.com/mastra-ai/mastra/commit/13ead79149486b88144db7e11e6ff551caef5be1), [`bd36d8e`](https://github.com/mastra-ai/mastra/commit/bd36d8eb6de8c9a0310352649dbd4b06703c2299), [`8ac9141`](https://github.com/mastra-ai/mastra/commit/8ac9141439caa8fdd674944c4d84f29b3c730296)]:
171
+ - @mastra/core@1.33.0-alpha.10
172
+ - @mastra/deployer@1.33.0-alpha.10
173
+
174
+ ## 0.1.2-alpha.9
175
+
176
+ ### Patch Changes
177
+
178
+ - Updated dependencies [[`5688881`](https://github.com/mastra-ai/mastra/commit/5688881669c7ed157f31ac77f6fc5f8d95ceea32)]:
179
+ - @mastra/core@1.33.0-alpha.9
180
+ - @mastra/deployer@1.33.0-alpha.9
181
+
182
+ ## 0.1.2-alpha.8
183
+
184
+ ### Patch Changes
185
+
186
+ - 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)]:
187
+ - @mastra/core@1.33.0-alpha.8
188
+ - @mastra/deployer@1.33.0-alpha.8
189
+
190
+ ## 0.1.2-alpha.7
191
+
192
+ ### Patch Changes
193
+
194
+ - Updated dependencies [[`6742347`](https://github.com/mastra-ai/mastra/commit/6742347d71955d7639adc9ddf6ff8282de7ee3ba), [`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), [`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), [`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)]:
195
+ - @mastra/core@1.33.0-alpha.7
196
+ - @mastra/deployer@1.33.0-alpha.7
197
+
198
+ ## 0.1.2-alpha.6
199
+
200
+ ### Patch Changes
201
+
202
+ - Updated dependencies [[`b560d6f`](https://github.com/mastra-ai/mastra/commit/b560d6f88b9b904b15c10f75c949eb145bc27684), [`36b3bbf`](https://github.com/mastra-ai/mastra/commit/36b3bbf5a8d59f7e23d47e29340e76c681b4929c), [`b275631`](https://github.com/mastra-ai/mastra/commit/b275631dc10541a482b2e2d4a3e3cfa843bd5fa1)]:
203
+ - @mastra/core@1.33.0-alpha.6
204
+ - @mastra/deployer@1.33.0-alpha.6
205
+
206
+ ## 0.1.2-alpha.5
207
+
208
+ ### Patch Changes
209
+
210
+ - Updated dependencies [[`bae019e`](https://github.com/mastra-ai/mastra/commit/bae019ecb6694da96909f7ec7b9eb3a0a33aa887), [`33f5061`](https://github.com/mastra-ai/mastra/commit/33f5061cd1c0335020c3faae61ce96de822854fa), [`99869ec`](https://github.com/mastra-ai/mastra/commit/99869ecb1f2aa6dfcc44fa4e843e5ee0344efa64), [`d86f031`](https://github.com/mastra-ai/mastra/commit/d86f031eb6b0b2570145afafea664e59bf688962)]:
211
+ - @mastra/core@1.33.0-alpha.5
212
+ - @mastra/deployer@1.33.0-alpha.5
213
+
214
+ ## 0.1.2-alpha.4
215
+
216
+ ### Patch Changes
217
+
218
+ - Updated dependencies [[`9f17410`](https://github.com/mastra-ai/mastra/commit/9f1741080def23d42ee50b39887a385ae316a3c6), [`c6eb39e`](https://github.com/mastra-ai/mastra/commit/c6eb39ea6dca381c6563cb240237fbe608e02f93), [`900d086`](https://github.com/mastra-ai/mastra/commit/900d086bb737b9cf2fcf68f11b0389b801a2738c), [`4c0e286`](https://github.com/mastra-ai/mastra/commit/4c0e28637c9cfb4f416549b55e97ebfa13319dfc), [`25184ff`](https://github.com/mastra-ai/mastra/commit/25184ffaf1293ec95119426eb1a1f8d38831b96c), [`aebde9c`](https://github.com/mastra-ai/mastra/commit/aebde9cfacf56592c6b6350cae721740fe090b8a)]:
219
+ - @mastra/core@1.33.0-alpha.4
220
+ - @mastra/deployer@1.33.0-alpha.4
221
+
222
+ ## 0.1.2-alpha.3
223
+
224
+ ### Patch Changes
225
+
226
+ - Updated dependencies [[`087e413`](https://github.com/mastra-ai/mastra/commit/087e4133e5d6efa36619e9556c16750e4179c047), [`087e413`](https://github.com/mastra-ai/mastra/commit/087e4133e5d6efa36619e9556c16750e4179c047), [`087e413`](https://github.com/mastra-ai/mastra/commit/087e4133e5d6efa36619e9556c16750e4179c047)]:
227
+ - @mastra/core@1.33.0-alpha.3
228
+ - @mastra/deployer@1.33.0-alpha.3
229
+
230
+ ## 0.1.2-alpha.2
231
+
232
+ ### Patch Changes
233
+
234
+ - Updated dependencies [[`d1fdbd0`](https://github.com/mastra-ai/mastra/commit/d1fdbd012add5623cb7e6b7f882b605ab358bbb4), [`d91ebe2`](https://github.com/mastra-ai/mastra/commit/d91ebe28ee065d8f2ed6df741c3c07f58d359529)]:
235
+ - @mastra/core@1.33.0-alpha.2
236
+ - @mastra/deployer@1.33.0-alpha.2
237
+
238
+ ## 0.1.2-alpha.1
239
+
240
+ ### Patch Changes
241
+
242
+ - Updated dependencies [[`dccd8f1`](https://github.com/mastra-ai/mastra/commit/dccd8f1f8b8f1ad203b77556207e5529567c616d)]:
243
+ - @mastra/core@1.33.0-alpha.1
244
+ - @mastra/deployer@1.33.0-alpha.1
245
+
246
+ ## 0.1.2-alpha.0
247
+
248
+ ### Patch Changes
249
+
250
+ - Fixed peer dependency ranges so packages that use the Mastra server require a compatible Mastra core version. ([#16208](https://github.com/mastra-ai/mastra/pull/16208))
251
+
252
+ - Updated dependencies [[`ac47842`](https://github.com/mastra-ai/mastra/commit/ac478427aa7a5f5fdaed633a911218689b438c60), [`0011a7e`](https://github.com/mastra-ai/mastra/commit/0011a7e2bba6a4fc97a638c3f4089c0e9308b37c)]:
253
+ - @mastra/core@1.33.0-alpha.0
254
+ - @mastra/deployer@1.33.0-alpha.0
255
+
256
+ ## 0.1.1
257
+
258
+ ### Patch Changes
259
+
260
+ - Updated dependencies [[`cc0469d`](https://github.com/mastra-ai/mastra/commit/cc0469d671d6f7a426013e4425f9501da6fa45f2)]:
261
+ - @mastra/core@1.32.1
262
+ - @mastra/deployer@1.32.1
263
+
264
+ ## 0.1.1-alpha.0
265
+
266
+ ### Patch Changes
267
+
268
+ - Updated dependencies [[`cc0469d`](https://github.com/mastra-ai/mastra/commit/cc0469d671d6f7a426013e4425f9501da6fa45f2)]:
269
+ - @mastra/core@1.32.1-alpha.0
270
+ - @mastra/deployer@1.32.1-alpha.0
271
+
272
+ ## 0.1.0
273
+
274
+ ### Minor Changes
275
+
276
+ - Added the new `@mastra/temporal` package for running Mastra workflows on Temporal. ([#15789](https://github.com/mastra-ai/mastra/pull/15789))
277
+
278
+ **What changed**
279
+ - Added `init()` to create Temporal-backed Mastra workflows and steps.
280
+ - Added `MastraPlugin` to bundle workflow code for Temporal workers and load generated activities.
281
+ - Added `debug: true` support to write transformed workflow modules and emitted bundles to `.mastra/temporal`.
282
+
283
+ **Example**
284
+
285
+ ```ts
286
+ import { init } from '@mastra/temporal';
287
+ import { MastraPlugin } from '@mastra/temporal/worker';
288
+ import { Client, Connection } from '@temporalio/client';
289
+ import { Worker } from '@temporalio/worker';
290
+
291
+ const connection = await Connection.connect();
292
+ const client = new Client({ connection });
293
+ const { createWorkflow, createStep } = init({ client, taskQueue: 'mastra' });
294
+
295
+ const step = createStep({ id: 'hello', execute: async () => 'world' });
296
+ export const helloWorkflow = createWorkflow({ id: 'hello-workflow' }).then(step);
297
+
298
+ await Worker.create({
299
+ connection,
300
+ taskQueue: 'mastra',
301
+ plugins: [new MastraPlugin({ src: import.meta.resolve('./mastra/index.ts') })],
302
+ });
303
+ ```
304
+
305
+ ### Patch Changes
306
+
307
+ - Updated dependencies [[`6dcd65f`](https://github.com/mastra-ai/mastra/commit/6dcd65f2a34069e6dc43ba35f1d11119b9b40bef), [`86c0298`](https://github.com/mastra-ai/mastra/commit/86c0298e647306423c842f9d5ac827bd616bd13d), [`c05c9a1`](https://github.com/mastra-ai/mastra/commit/c05c9a13230988cef6d438a62f37760f31927bc7), [`ca28c23`](https://github.com/mastra-ai/mastra/commit/ca28c232a2f18801a6cf20fe053479237b4d4fb0), [`e24aacb`](https://github.com/mastra-ai/mastra/commit/e24aacba07bd66f5d95b636dc24016fca26b52cf), [`7679a63`](https://github.com/mastra-ai/mastra/commit/7679a634eae8e8ca459fd87538fdf72b4389b07f), [`7fce309`](https://github.com/mastra-ai/mastra/commit/7fce30912b14170bfc41f0ac736cca0f39fe0cd4), [`1d64a76`](https://github.com/mastra-ai/mastra/commit/1d64a765861a0772ea187bab76e5ed37bf82d042), [`1c2dda8`](https://github.com/mastra-ai/mastra/commit/1c2dda805fbfccc0abf55d4cb20cc34402dc3f0c), [`c721164`](https://github.com/mastra-ai/mastra/commit/c7211643f7ac861f83b19a3757cc921487fc9d75), [`1b55954`](https://github.com/mastra-ai/mastra/commit/1b559541c1e08a10e49d01ffc51a634dfc37a286), [`7997c2e`](https://github.com/mastra-ai/mastra/commit/7997c2e55ddd121562a4098cd8d2b89c68433bf1), [`5adc55e`](https://github.com/mastra-ai/mastra/commit/5adc55e63407be8ee977914957d68bcc2a075ceb), [`7679a63`](https://github.com/mastra-ai/mastra/commit/7679a634eae8e8ca459fd87538fdf72b4389b07f), [`a0d9b6d`](https://github.com/mastra-ai/mastra/commit/a0d9b6d6b810aeaa9e177a0dcc99a4402e609634), [`e97ccb9`](https://github.com/mastra-ai/mastra/commit/e97ccb900f8b7a390ce82c9f8eb8d6eb2c5e3777), [`c5daf48`](https://github.com/mastra-ai/mastra/commit/c5daf48556e98c46ae06caf00f92c249912007e9), [`70017d7`](https://github.com/mastra-ai/mastra/commit/70017d72ab741b5d7040e2a15c251a317782e39e), [`cd96779`](https://github.com/mastra-ai/mastra/commit/cd9677937f113b2856dc8b9f3d4bdabcee58bb2e), [`b0c7022`](https://github.com/mastra-ai/mastra/commit/b0c70224f80dad7c0cdbfb22cbff22e0f75c064f), [`e4942bc`](https://github.com/mastra-ai/mastra/commit/e4942bc7fdc903572f7d84f26d5e15f9d39c763d)]:
308
+ - @mastra/core@1.32.0
309
+ - @mastra/deployer@1.32.0
310
+
311
+ ## 0.1.0-alpha.3
312
+
313
+ ### Patch Changes
314
+
315
+ - Updated dependencies [[`7679a63`](https://github.com/mastra-ai/mastra/commit/7679a634eae8e8ca459fd87538fdf72b4389b07f), [`1d64a76`](https://github.com/mastra-ai/mastra/commit/1d64a765861a0772ea187bab76e5ed37bf82d042), [`7679a63`](https://github.com/mastra-ai/mastra/commit/7679a634eae8e8ca459fd87538fdf72b4389b07f), [`a0d9b6d`](https://github.com/mastra-ai/mastra/commit/a0d9b6d6b810aeaa9e177a0dcc99a4402e609634)]:
316
+ - @mastra/core@1.32.0-alpha.4
317
+ - @mastra/deployer@1.32.0-alpha.4
318
+
319
+ ## 0.1.0-alpha.2
320
+
321
+ ### Patch Changes
322
+
323
+ - Updated dependencies [[`ca28c23`](https://github.com/mastra-ai/mastra/commit/ca28c232a2f18801a6cf20fe053479237b4d4fb0)]:
324
+ - @mastra/core@1.32.0-alpha.3
325
+ - @mastra/deployer@1.32.0-alpha.3
326
+
327
+ ## 0.1.0-alpha.1
328
+
329
+ ### Patch Changes
330
+
331
+ - Updated dependencies [[`86c0298`](https://github.com/mastra-ai/mastra/commit/86c0298e647306423c842f9d5ac827bd616bd13d), [`7fce309`](https://github.com/mastra-ai/mastra/commit/7fce30912b14170bfc41f0ac736cca0f39fe0cd4), [`7997c2e`](https://github.com/mastra-ai/mastra/commit/7997c2e55ddd121562a4098cd8d2b89c68433bf1), [`e97ccb9`](https://github.com/mastra-ai/mastra/commit/e97ccb900f8b7a390ce82c9f8eb8d6eb2c5e3777), [`c5daf48`](https://github.com/mastra-ai/mastra/commit/c5daf48556e98c46ae06caf00f92c249912007e9), [`cd96779`](https://github.com/mastra-ai/mastra/commit/cd9677937f113b2856dc8b9f3d4bdabcee58bb2e)]:
332
+ - @mastra/core@1.32.0-alpha.2
333
+ - @mastra/deployer@1.32.0-alpha.2
334
+
335
+ ## 0.1.0-alpha.0
336
+
337
+ ### Minor Changes
338
+
339
+ - Added the new `@mastra/temporal` package for running Mastra workflows on Temporal. ([#15789](https://github.com/mastra-ai/mastra/pull/15789))
340
+
341
+ **What changed**
342
+ - Added `init()` to create Temporal-backed Mastra workflows and steps.
343
+ - Added `MastraPlugin` to bundle workflow code for Temporal workers and load generated activities.
344
+ - Added `debug: true` support to write transformed workflow modules and emitted bundles to `.mastra/temporal`.
345
+
346
+ **Example**
347
+
348
+ ```ts
349
+ import { init } from '@mastra/temporal';
350
+ import { MastraPlugin } from '@mastra/temporal/worker';
351
+ import { Client, Connection } from '@temporalio/client';
352
+ import { Worker } from '@temporalio/worker';
353
+
354
+ const connection = await Connection.connect();
355
+ const client = new Client({ connection });
356
+ const { createWorkflow, createStep } = init({ client, taskQueue: 'mastra' });
357
+
358
+ const step = createStep({ id: 'hello', execute: async () => 'world' });
359
+ export const helloWorkflow = createWorkflow({ id: 'hello-workflow' }).then(step);
360
+
361
+ await Worker.create({
362
+ connection,
363
+ taskQueue: 'mastra',
364
+ plugins: [new MastraPlugin({ src: import.meta.resolve('./mastra/index.ts') })],
365
+ });
366
+ ```
package/LICENSE.md ADDED
@@ -0,0 +1,30 @@
1
+ Portions of this software are licensed as follows:
2
+
3
+ - All content that resides under any directory named "ee/" within this
4
+ repository, including but not limited to:
5
+ - `packages/core/src/auth/ee/`
6
+ - `packages/server/src/server/auth/ee/`
7
+ is licensed under the license defined in `ee/LICENSE`.
8
+
9
+ - All third-party components incorporated into the Mastra Software are
10
+ licensed under the original license provided by the owner of the
11
+ applicable component.
12
+
13
+ - Content outside of the above-mentioned directories or restrictions is
14
+ available under the "Apache License 2.0" as defined below.
15
+
16
+ # Apache License 2.0
17
+
18
+ Copyright (c) 2025 Kepler Software, Inc.
19
+
20
+ Licensed under the Apache License, Version 2.0 (the "License");
21
+ you may not use this file except in compliance with the License.
22
+ You may obtain a copy of the License at
23
+
24
+ http://www.apache.org/licenses/LICENSE-2.0
25
+
26
+ Unless required by applicable law or agreed to in writing, software
27
+ distributed under the License is distributed on an "AS IS" BASIS,
28
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29
+ See the License for the specific language governing permissions and
30
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,107 @@
1
+ # @mastra/temporal
2
+
3
+ Run Mastra workflows on [Temporal](https://temporal.io/) with a workflow authoring API that stays close to standard Mastra workflows.
4
+
5
+ > **Experimental:** `@mastra/temporal` is under active development and is not ready for production use yet.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @mastra/temporal @temporalio/client @temporalio/worker @temporalio/envconfig
11
+ ```
12
+
13
+ ## Define a Temporal-backed workflow
14
+
15
+ The following example demonstrates the same pattern used in the `temporal-snapshot` app: create a Temporal client, call `init()`, and define workflows with `createWorkflow()` and `createStep()`.
16
+
17
+ ```ts
18
+ import { z } from 'zod';
19
+ import { init } from '@mastra/temporal';
20
+ import { loadClientConnectConfig } from '@temporalio/envconfig';
21
+ import { Client, Connection } from '@temporalio/client';
22
+
23
+ const config = loadClientConnectConfig();
24
+ const connection = await Connection.connect(config.connectionOptions);
25
+ const client = new Client({ connection });
26
+
27
+ const { createWorkflow, createStep } = init({
28
+ client,
29
+ taskQueue: 'mastra',
30
+ });
31
+
32
+ const fetchWeather = createStep({
33
+ id: 'fetch-weather',
34
+ inputSchema: z.object({ city: z.string() }),
35
+ outputSchema: z.object({ forecast: z.string() }),
36
+ execute: async ({ inputData }) => {
37
+ return {
38
+ forecast: `Sunny in ${inputData.city}`,
39
+ };
40
+ },
41
+ });
42
+
43
+ export const weatherWorkflow = createWorkflow({
44
+ id: 'weather-workflow',
45
+ inputSchema: z.object({ city: z.string() }),
46
+ outputSchema: z.object({ forecast: z.string() }),
47
+ }).then(fetchWeather);
48
+ ```
49
+
50
+ ## Register the workflow in your Mastra entry file
51
+
52
+ `MastraPlugin` precompiles your Mastra entry file into dedicated workflow and activity modules before Temporal starts. Point the plugin at the file where your `Mastra` instance registers workflows.
53
+
54
+ ```ts
55
+ import { Mastra } from '@mastra/core/mastra';
56
+ import { weatherWorkflow } from './workflows/weather-workflow';
57
+
58
+ export const mastra = new Mastra({
59
+ workflows: { weatherWorkflow },
60
+ });
61
+ ```
62
+
63
+ ## Start a Temporal worker
64
+
65
+ Create a worker, install `MastraPlugin`, and call `await plugin.init()` before `Worker.create()`. Use the Mastra entry file as `src`.
66
+
67
+ ```ts
68
+ import { NativeConnection, Worker } from '@temporalio/worker';
69
+ import { MastraPlugin } from '@mastra/temporal/worker';
70
+
71
+ const connection = await NativeConnection.connect({
72
+ address: 'localhost:7233',
73
+ });
74
+
75
+ const plugin = new MastraPlugin({
76
+ src: import.meta.resolve('./mastra/index.ts'),
77
+ });
78
+
79
+ await plugin.init();
80
+
81
+ const worker = await Worker.create({
82
+ connection,
83
+ namespace: 'default',
84
+ taskQueue: 'mastra',
85
+ plugins: [plugin],
86
+ });
87
+
88
+ await worker.run();
89
+ ```
90
+
91
+ ## How it works
92
+
93
+ - `init({ client, taskQueue })`: Returns `createWorkflow()` and `createStep()` helpers for Temporal-backed Mastra workflows.
94
+ - `MastraPlugin({ src })`: Point it at the Mastra entry file that registers workflows.
95
+ - `await plugin.init()`: Precompiles the Mastra app into `node_modules/.mastra/output/index.mjs`, then generates `node_modules/.mastra/workflow.mjs` for workflow bundling and `node_modules/.mastra/activities.mjs` for activity execution before the Temporal worker starts.
96
+ - Generated activities: The plugin extracts `createStep()` handlers into `node_modules/.mastra/activities.mjs` and wires them into the worker automatically.
97
+ - `debug: true`: Writes emitted workflow bundles to `node_modules/.mastra` for inspection.
98
+
99
+ ## Notes
100
+
101
+ - Workflow ids must be statically defined so the transformer can derive Temporal export names.
102
+ - The plugin expects `src` to point to the Mastra entry file that registers workflows in `new Mastra({ workflows: ... })`.
103
+ - Call `await plugin.init()` before `Worker.create()` so the compiled workflow entry is ready when Temporal configures the worker and bundler.
104
+
105
+ ## License
106
+
107
+ Apache-2.0
@@ -0,0 +1,9 @@
1
+ // src/utils.ts
2
+ function toWorkflowType(id) {
3
+ const camelCased = id.replace(/[-_]+([a-zA-Z0-9])/g, (_, char) => char.toUpperCase());
4
+ return camelCased.endsWith("Workflow") ? camelCased : `${camelCased}Workflow`;
5
+ }
6
+
7
+ export { toWorkflowType };
8
+ //# sourceMappingURL=chunk-BF6TR7JX.js.map
9
+ //# sourceMappingURL=chunk-BF6TR7JX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils.ts"],"names":[],"mappings":";AAAO,SAAS,eAAe,EAAA,EAAY;AACzC,EAAA,MAAM,UAAA,GAAa,GAAG,OAAA,CAAQ,qBAAA,EAAuB,CAAC,CAAA,EAAG,IAAA,KAAiB,IAAA,CAAK,WAAA,EAAa,CAAA;AAC5F,EAAA,OAAO,WAAW,QAAA,CAAS,UAAU,CAAA,GAAI,UAAA,GAAa,GAAG,UAAU,CAAA,QAAA,CAAA;AACrE","file":"chunk-BF6TR7JX.js","sourcesContent":["export function toWorkflowType(id: string) {\n const camelCased = id.replace(/[-_]+([a-zA-Z0-9])/g, (_, char: string) => char.toUpperCase());\n return camelCased.endsWith('Workflow') ? camelCased : `${camelCased}Workflow`;\n}\n"]}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ // src/utils.ts
4
+ function toWorkflowType(id) {
5
+ const camelCased = id.replace(/[-_]+([a-zA-Z0-9])/g, (_, char) => char.toUpperCase());
6
+ return camelCased.endsWith("Workflow") ? camelCased : `${camelCased}Workflow`;
7
+ }
8
+
9
+ exports.toWorkflowType = toWorkflowType;
10
+ //# sourceMappingURL=chunk-DYBSPLCJ.cjs.map
11
+ //# sourceMappingURL=chunk-DYBSPLCJ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils.ts"],"names":[],"mappings":";;;AAAO,SAAS,eAAe,EAAA,EAAY;AACzC,EAAA,MAAM,UAAA,GAAa,GAAG,OAAA,CAAQ,qBAAA,EAAuB,CAAC,CAAA,EAAG,IAAA,KAAiB,IAAA,CAAK,WAAA,EAAa,CAAA;AAC5F,EAAA,OAAO,WAAW,QAAA,CAAS,UAAU,CAAA,GAAI,UAAA,GAAa,GAAG,UAAU,CAAA,QAAA,CAAA;AACrE","file":"chunk-DYBSPLCJ.cjs","sourcesContent":["export function toWorkflowType(id: string) {\n const camelCased = id.replace(/[-_]+([a-zA-Z0-9])/g, (_, char: string) => char.toUpperCase());\n return camelCased.endsWith('Workflow') ? camelCased : `${camelCased}Workflow`;\n}\n"]}