@mastra/temporal 0.0.0-temporal-20260427105254

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 (46) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE.md +30 -0
  3. package/README.md +5 -0
  4. package/dist/__tests__/__fixtures__/before/index.d.ts +11 -0
  5. package/dist/__tests__/__fixtures__/before/index.d.ts.map +1 -0
  6. package/dist/__tests__/__fixtures__/before/weather-workflow.d.ts +8 -0
  7. package/dist/__tests__/__fixtures__/before/weather-workflow.d.ts.map +1 -0
  8. package/dist/index.cjs +1075 -0
  9. package/dist/index.cjs.map +1 -0
  10. package/dist/index.d.ts +4 -0
  11. package/dist/index.d.ts.map +1 -0
  12. package/dist/index.js +1048 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/plugin.d.ts +18 -0
  15. package/dist/plugin.d.ts.map +1 -0
  16. package/dist/run.d.ts +24 -0
  17. package/dist/run.d.ts.map +1 -0
  18. package/dist/transforms/__fixtures__/activities/weather-workflow/input.d.ts +8 -0
  19. package/dist/transforms/__fixtures__/activities/weather-workflow/input.d.ts.map +1 -0
  20. package/dist/transforms/__fixtures__/activities/weather-workflow/output.d.ts +3 -0
  21. package/dist/transforms/__fixtures__/activities/weather-workflow/output.d.ts.map +1 -0
  22. package/dist/transforms/__fixtures__/workflow/weather-workflow/input.d.ts +8 -0
  23. package/dist/transforms/__fixtures__/workflow/weather-workflow/input.d.ts.map +1 -0
  24. package/dist/transforms/__fixtures__/workflow/weather-workflow/output.d.ts +2 -0
  25. package/dist/transforms/__fixtures__/workflow/weather-workflow/output.d.ts.map +1 -0
  26. package/dist/transforms/activities.d.ts +10 -0
  27. package/dist/transforms/activities.d.ts.map +1 -0
  28. package/dist/transforms/shared.d.ts +28 -0
  29. package/dist/transforms/shared.d.ts.map +1 -0
  30. package/dist/transforms/temporal-workflow-runtime.d.mts +85 -0
  31. package/dist/transforms/temporal-workflow-runtime.d.mts.map +1 -0
  32. package/dist/transforms/workflows.d.ts +28 -0
  33. package/dist/transforms/workflows.d.ts.map +1 -0
  34. package/dist/types.d.ts +4 -0
  35. package/dist/types.d.ts.map +1 -0
  36. package/dist/utils.d.ts +2 -0
  37. package/dist/utils.d.ts.map +1 -0
  38. package/dist/webpack-loader.cjs +856 -0
  39. package/dist/webpack-loader.cjs.map +1 -0
  40. package/dist/webpack-loader.d.ts +8 -0
  41. package/dist/webpack-loader.d.ts.map +1 -0
  42. package/dist/webpack-plugin.d.ts +18 -0
  43. package/dist/webpack-plugin.d.ts.map +1 -0
  44. package/dist/workflow.d.ts +27 -0
  45. package/dist/workflow.d.ts.map +1 -0
  46. package/package.json +89 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # @mastra/temporal
2
+
3
+ ## 0.0.0-temporal-20260427105254
4
+
5
+ ### Minor Changes
6
+
7
+ - Added a Temporal activities transform that exports workflow steps as named activities for Temporal bundling. ([`2891d24`](https://github.com/mastra-ai/mastra/commit/2891d2443e727bdbd4e7353232191151152bb3da))
8
+
9
+ ### Patch Changes
10
+
11
+ - Fixed Temporal workflow bundling for Mastra entry files by exporting configured workflows only. Inline `createStep()` calls in workflow chain methods now resolve their step ids during transformation. `MastraPlugin` also supports `debug: true` to persist transformed workflow modules and the emitted webpack bundle under `.mastra/temporal` for debugging. ([`2891d24`](https://github.com/mastra-ai/mastra/commit/2891d2443e727bdbd4e7353232191151152bb3da))
12
+
13
+ - Updated dependencies [[`b510d36`](https://github.com/mastra-ai/mastra/commit/b510d368f73dab6be2e2c2bc99035aaef1fb7d7a), [`7a7b313`](https://github.com/mastra-ai/mastra/commit/7a7b3138fb3bcf0b0c740eaea07971e43d330ef3), [`a6dac0a`](https://github.com/mastra-ai/mastra/commit/a6dac0a40c7181161b1add4e8534f962bcbc9aa7), [`9cef83b`](https://github.com/mastra-ai/mastra/commit/9cef83b8a642b8098747772921e3523b492bafbc), [`d30e215`](https://github.com/mastra-ai/mastra/commit/d30e2156c746bc9fd791745cec1cc24377b66789), [`73f2809`](https://github.com/mastra-ai/mastra/commit/73f2809721db24e98cdf122539652a455211b450), [`8126d86`](https://github.com/mastra-ai/mastra/commit/8126d8638411eacfafdc29036ac998e8757ea66f), [`73b45fa`](https://github.com/mastra-ai/mastra/commit/73b45facdef4fbcb8af710c50f0646f18619dbaa), [`ae97520`](https://github.com/mastra-ai/mastra/commit/ae975206fdb0f6ef03c4d5bf94f7dc7c3f706c02), [`7a7b313`](https://github.com/mastra-ai/mastra/commit/7a7b3138fb3bcf0b0c740eaea07971e43d330ef3)]:
14
+ - @mastra/core@0.0.0-temporal-20260427105254
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,5 @@
1
+ # @mastra/temporal
2
+
3
+ Mastra workflow engine integration with [Temporal](https://temporal.io/) for durable execution.
4
+
5
+ > **Work in progress** – this package is under active development and not yet ready for production use.
@@ -0,0 +1,11 @@
1
+ import { Mastra } from '@mastra/core/mastra';
2
+ export declare const mastra: Mastra<Record<string, import("@mastra/core/agent").Agent<any, import("@mastra/core/agent").ToolsInput, undefined, unknown>>, {
3
+ weatherWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, import("@mastra/core/workflows").Step<string, unknown, unknown, unknown, unknown, unknown, any, unknown>[], "weather-workflow", unknown, {
4
+ city: string;
5
+ }, {
6
+ city: string;
7
+ }, {
8
+ city: string;
9
+ }, unknown>;
10
+ }, Record<string, import("@mastra/core/vector").MastraVector<any>>, Record<string, import("@mastra/core/tts").MastraTTS>, import("@mastra/core/logger").IMastraLogger, Record<string, import("@mastra/core/mcp").MCPServerBase<any>>, Record<string, import("@mastra/core/evals").MastraScorer<any, any, any, any>>, Record<string, import("@mastra/core/tools").ToolAction<any, any, any, any, any, any, unknown>>, Record<string, import("@mastra/core/processors").Processor<any, unknown>>, Record<string, import("@mastra/core/memory").MastraMemory>>;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/__fixtures__/before/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG7C,eAAO,MAAM,MAAM;;;;;;;;2hBAIjB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const weatherWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, import("@mastra/core/workflows").Step<string, unknown, unknown, unknown, unknown, unknown, any, unknown>[], "weather-workflow", unknown, {
2
+ city: string;
3
+ }, {
4
+ city: string;
5
+ }, {
6
+ city: string;
7
+ }, unknown>;
8
+ //# sourceMappingURL=weather-workflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weather-workflow.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/__fixtures__/before/weather-workflow.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,eAAe;;;;;;WAYL,CAAC"}