@mastra/deployer 1.52.0-alpha.8 → 1.52.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 (69) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/dist/build/analyze.cjs +2 -2
  3. package/dist/build/analyze.d.ts +1 -0
  4. package/dist/build/analyze.d.ts.map +1 -1
  5. package/dist/build/analyze.js +1 -1
  6. package/dist/build/analyzeEntryProjectType.d.ts +12 -0
  7. package/dist/build/analyzeEntryProjectType.d.ts.map +1 -0
  8. package/dist/build/babel/check-config-export.d.ts +1 -0
  9. package/dist/build/babel/check-config-export.d.ts.map +1 -1
  10. package/dist/build/babel/remove-all-options-except.d.ts +2 -2
  11. package/dist/build/babel/remove-all-options-except.d.ts.map +1 -1
  12. package/dist/build/babel/remove-deployer.d.ts +3 -3
  13. package/dist/build/babel/remove-deployer.d.ts.map +1 -1
  14. package/dist/build/babel/remove-non-referenced-nodes.d.ts +2 -2
  15. package/dist/build/babel/remove-non-referenced-nodes.d.ts.map +1 -1
  16. package/dist/build/bundler.cjs +5 -5
  17. package/dist/build/bundler.js +1 -1
  18. package/dist/build/index.cjs +23 -19
  19. package/dist/build/index.d.ts +1 -0
  20. package/dist/build/index.d.ts.map +1 -1
  21. package/dist/build/index.js +4 -4
  22. package/dist/build/plugins/remove-all-except.d.ts.map +1 -1
  23. package/dist/build/plugins/remove-deployer.d.ts.map +1 -1
  24. package/dist/bundler/index.cjs +3 -3
  25. package/dist/bundler/index.d.ts +7 -0
  26. package/dist/bundler/index.d.ts.map +1 -1
  27. package/dist/bundler/index.js +1 -1
  28. package/dist/{chunk-4XMRN3U4.cjs → chunk-36AWZH7Z.cjs} +26 -47
  29. package/dist/chunk-36AWZH7Z.cjs.map +1 -0
  30. package/dist/{chunk-7CT7DAME.cjs → chunk-3XIMK24X.cjs} +13 -33
  31. package/dist/chunk-3XIMK24X.cjs.map +1 -0
  32. package/dist/{chunk-HPYZGYQL.js → chunk-5PORNUPF.js} +13 -14
  33. package/dist/chunk-5PORNUPF.js.map +1 -0
  34. package/dist/{chunk-QGBVR3DR.cjs → chunk-7BCMZXLF.cjs} +39 -11
  35. package/dist/chunk-7BCMZXLF.cjs.map +1 -0
  36. package/dist/{chunk-H6J5QQ45.js → chunk-B6MAUTLE.js} +18 -7
  37. package/dist/chunk-B6MAUTLE.js.map +1 -0
  38. package/dist/{chunk-PXUWQC3X.js → chunk-E5SBYHQK.js} +22 -24
  39. package/dist/chunk-E5SBYHQK.js.map +1 -0
  40. package/dist/{chunk-GPKHP7J7.cjs → chunk-EJVFMOG5.cjs} +24 -12
  41. package/dist/chunk-EJVFMOG5.cjs.map +1 -0
  42. package/dist/{chunk-XOP6IB66.cjs → chunk-GRTBDDCI.cjs} +58 -51
  43. package/dist/chunk-GRTBDDCI.cjs.map +1 -0
  44. package/dist/{chunk-72CHYUGH.js → chunk-ODUZW57J.js} +33 -5
  45. package/dist/chunk-ODUZW57J.js.map +1 -0
  46. package/dist/{chunk-CBK2CAL4.js → chunk-YMXE5MTP.js} +23 -17
  47. package/dist/chunk-YMXE5MTP.js.map +1 -0
  48. package/dist/docs/SKILL.md +1 -1
  49. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  50. package/dist/index.cjs +4 -4
  51. package/dist/index.js +2 -2
  52. package/dist/server/handlers/agent-learning.d.ts +3 -0
  53. package/dist/server/handlers/agent-learning.d.ts.map +1 -0
  54. package/dist/server/index.cjs +59 -2
  55. package/dist/server/index.cjs.map +1 -1
  56. package/dist/server/index.d.ts.map +1 -1
  57. package/dist/server/index.js +57 -1
  58. package/dist/server/index.js.map +1 -1
  59. package/package.json +9 -9
  60. package/dist/chunk-4XMRN3U4.cjs.map +0 -1
  61. package/dist/chunk-72CHYUGH.js.map +0 -1
  62. package/dist/chunk-7CT7DAME.cjs.map +0 -1
  63. package/dist/chunk-CBK2CAL4.js.map +0 -1
  64. package/dist/chunk-GPKHP7J7.cjs.map +0 -1
  65. package/dist/chunk-H6J5QQ45.js.map +0 -1
  66. package/dist/chunk-HPYZGYQL.js.map +0 -1
  67. package/dist/chunk-PXUWQC3X.js.map +0 -1
  68. package/dist/chunk-QGBVR3DR.cjs.map +0 -1
  69. package/dist/chunk-XOP6IB66.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,99 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 1.52.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Added automatic detection of Software Factory projects when the Mastra entry imports and constructs a `MastraFactory` binding. Detected projects receive a `mastra-project.json` manifest in `.mastra/output/` identifying the project type and UI asset location. ([#19948](https://github.com/mastra-ai/mastra/pull/19948))
8
+
9
+ Use the lightweight public helper when project-type detection is needed before a full bundle:
10
+
11
+ ```ts
12
+ import { analyzeEntryProjectType } from '@mastra/deployer/build';
13
+
14
+ const projectType = await analyzeEntryProjectType('./src/mastra/index.ts');
15
+ ```
16
+
17
+ ### Patch Changes
18
+
19
+ - dependencies updates: ([#19393](https://github.com/mastra-ai/mastra/pull/19393))
20
+ - Updated dependency [`@babel/core@^8.0.1` ↗︎](https://www.npmjs.com/package/@babel/core/v/8.0.1) (from `^7.29.7`, in `dependencies`)
21
+ - Updated dependency [`@babel/preset-typescript@^8.0.1` ↗︎](https://www.npmjs.com/package/@babel/preset-typescript/v/8.0.1) (from `^7.29.7`, in `dependencies`)
22
+ - Updated dependency [`@babel/traverse@^8.0.4` ↗︎](https://www.npmjs.com/package/@babel/traverse/v/8.0.4) (from `^7.29.7`, in `dependencies`)
23
+ - Removed dependency [`@types/babel__traverse@^7.28.0` ↗︎](https://www.npmjs.com/package/@types/babel__traverse/v/7.28.0) (from `dependencies`)
24
+
25
+ - Fixed Babel 8 compatibility for build-time transforms. ([#19393](https://github.com/mastra-ai/mastra/pull/19393))
26
+
27
+ - Fixed "Error: ENOTDIR: not a directory, open '...chunk-XYZ.js/package.json'" errors being printed during `mastra build` when using custom bundler options without `externals: true`. Package resolution no longer treats module files as directories when looking up dependency metadata, so builds run without these confusing (but harmless) errors in the output. ([#19514](https://github.com/mastra-ai/mastra/pull/19514))
28
+
29
+ - Added secure Agent Learning reads to local Studio development. Requests stay same-origin, and browser-supplied credentials and tenant scope are ignored. ([#19759](https://github.com/mastra-ai/mastra/pull/19759))
30
+
31
+ ```sh
32
+ MASTRA_PLATFORM_ACCESS_TOKEN=<organization-api-key> \\
33
+ MASTRA_PROJECT_ID=<project-id> \\
34
+ mastra dev
35
+ ```
36
+
37
+ - Fixed Mastra development startup with Babel 8. ([#19849](https://github.com/mastra-ai/mastra/pull/19849))
38
+
39
+ - Updated dependencies [[`ec857fc`](https://github.com/mastra-ai/mastra/commit/ec857fc79c264b53b38e16478c789b7177f2ad59), [`d7385ad`](https://github.com/mastra-ai/mastra/commit/d7385ad9e88f9e4f33d15c0ec0bfebedde0cbc2e), [`41a5392`](https://github.com/mastra-ai/mastra/commit/41a5392d9f6c5e18d6b227f0fc0ddf49c50774e9), [`3d6e539`](https://github.com/mastra-ai/mastra/commit/3d6e539272eb2ea0407034605ee1906b3be06b39), [`1426af2`](https://github.com/mastra-ai/mastra/commit/1426af24975879c000d13ac75673f630fcc970c1), [`a40adeb`](https://github.com/mastra-ai/mastra/commit/a40adeb222b961a56a58af56a106106525721b74), [`8a0d145`](https://github.com/mastra-ai/mastra/commit/8a0d145aadbdf7278665aceaaec364b35dd9bd94), [`bd2f1d2`](https://github.com/mastra-ai/mastra/commit/bd2f1d274d05e60e2366f005ea0d94d5cea0d5ff), [`e1f2fae`](https://github.com/mastra-ai/mastra/commit/e1f2faebaf048c3d4c2e2c01d293767c195d5794), [`63aa799`](https://github.com/mastra-ai/mastra/commit/63aa799c6b44eacc7806cda6846b7c5bbee06b37), [`b7e79c3`](https://github.com/mastra-ai/mastra/commit/b7e79c3c02ac5cd415db34ba0975ceafc1464333), [`675fbff`](https://github.com/mastra-ai/mastra/commit/675fbff84d3274391b33e852f76083c38a5514e5), [`bed6cf4`](https://github.com/mastra-ai/mastra/commit/bed6cf440860395c3a6e5c17c0af477b8741233e), [`da009e1`](https://github.com/mastra-ai/mastra/commit/da009e1aacd89ed94b8d1b2af09c9d4fe7c4db49), [`3b77e77`](https://github.com/mastra-ai/mastra/commit/3b77e7704936522e4769d29de1b5ea6901f302bd), [`c7d30cd`](https://github.com/mastra-ai/mastra/commit/c7d30cd86009c407df91105591f03cd6e3d2854d), [`21a0eb8`](https://github.com/mastra-ai/mastra/commit/21a0eb86746ba0b703acea360d4f84c6a5a493f2), [`8b20926`](https://github.com/mastra-ai/mastra/commit/8b20926cd59e2ba3d66458e062fa0e6e2ada3e68), [`975295d`](https://github.com/mastra-ai/mastra/commit/975295d418552f0d46a59edfef4c3ee555f9930a), [`73db8db`](https://github.com/mastra-ai/mastra/commit/73db8db90d69ab6153c7942749f624db0d96952d), [`6b1bf3b`](https://github.com/mastra-ai/mastra/commit/6b1bf3b9494bd51aa8f654c68c9355d6046fa2a1), [`35c2181`](https://github.com/mastra-ai/mastra/commit/35c2181e6a50e47c90ba36260db7c9723d54696f), [`6bd7d1c`](https://github.com/mastra-ai/mastra/commit/6bd7d1c85473c5accf73fd6bf0e444ba4a93b8e9), [`0a2c22c`](https://github.com/mastra-ai/mastra/commit/0a2c22c902604439ec490319e14c17f331e0c84c), [`660bebd`](https://github.com/mastra-ai/mastra/commit/660bebd81af91098ce4df440eb3b8a4945a9a619), [`4cfdd64`](https://github.com/mastra-ai/mastra/commit/4cfdd645794feaea0c4ea711e70ecdfbef0c5b8e), [`a40adeb`](https://github.com/mastra-ai/mastra/commit/a40adeb222b961a56a58af56a106106525721b74), [`b75d749`](https://github.com/mastra-ai/mastra/commit/b75d749621ff5d17e86bcb4ee809d301fb4f7cf3), [`821648b`](https://github.com/mastra-ai/mastra/commit/821648bf2871ef840100c7bacbecf676010bd12a), [`de86fd7`](https://github.com/mastra-ai/mastra/commit/de86fd7119f0438381d1a642e3d258143c0b9c29), [`2745031`](https://github.com/mastra-ai/mastra/commit/2745031d1d4a4978f037092da371428c32e2842a), [`b4b7ea8`](https://github.com/mastra-ai/mastra/commit/b4b7ea8733f033fc441ea47ed03f6afb17ec2248), [`7d273ca`](https://github.com/mastra-ai/mastra/commit/7d273cacdcdca72425ce1c4dc5d78ed4aaa9141c), [`3a8024c`](https://github.com/mastra-ai/mastra/commit/3a8024ce615f8aa89479c0d71fe61d10bb0040be), [`35865a5`](https://github.com/mastra-ai/mastra/commit/35865a53e194aa9634d6a70a97010e7a6b9d58b1), [`11f6cd9`](https://github.com/mastra-ai/mastra/commit/11f6cd96fe42582403416608beb212cc1a2cc79e), [`74faf8b`](https://github.com/mastra-ai/mastra/commit/74faf8bd9c1018f2492653c06b1e25fc8300e9e6), [`ef03fbc`](https://github.com/mastra-ai/mastra/commit/ef03fbcc556bcbc04c9b3d06fab88771ecaa043c), [`675fbff`](https://github.com/mastra-ai/mastra/commit/675fbff84d3274391b33e852f76083c38a5514e5), [`70687f7`](https://github.com/mastra-ai/mastra/commit/70687f7e495a322a02070b4a67cb0c77a5ca91ec), [`1fadac4`](https://github.com/mastra-ai/mastra/commit/1fadac44537caeefe81f9f775ae2f2f3d94e9069), [`73db8db`](https://github.com/mastra-ai/mastra/commit/73db8db90d69ab6153c7942749f624db0d96952d), [`76b7181`](https://github.com/mastra-ai/mastra/commit/76b71810366e6d90b9d3973149d1c7ba3659ffb9), [`792ec9a`](https://github.com/mastra-ai/mastra/commit/792ec9a0869bab8274cf5e0ed2840738737a1607), [`712b864`](https://github.com/mastra-ai/mastra/commit/712b864aa1ed12b14c54390ec17b69de163c37f7), [`85e4fb5`](https://github.com/mastra-ai/mastra/commit/85e4fb50087a81c74df3a762f53b56373db0b912), [`4696604`](https://github.com/mastra-ai/mastra/commit/4696604a8db7517459e7075ed4a6924114cdbdfb), [`0c0e8d7`](https://github.com/mastra-ai/mastra/commit/0c0e8d7becd4d1445c656b78d5d845f606c1ff9d), [`a7bbe77`](https://github.com/mastra-ai/mastra/commit/a7bbe773577f60bc4761b534ef7ec6b476332dad), [`72e437c`](https://github.com/mastra-ai/mastra/commit/72e437c515942c80b9def5b026e0bdee61b469d9), [`8f7a5de`](https://github.com/mastra-ai/mastra/commit/8f7a5dedc246cdc938bb65516703cf9b27b03756), [`a7bbe77`](https://github.com/mastra-ai/mastra/commit/a7bbe773577f60bc4761b534ef7ec6b476332dad), [`11f6cd9`](https://github.com/mastra-ai/mastra/commit/11f6cd96fe42582403416608beb212cc1a2cc79e), [`ef03c0c`](https://github.com/mastra-ai/mastra/commit/ef03c0cfc62367a458e4cc56462e2148b35681c5), [`39c6753`](https://github.com/mastra-ai/mastra/commit/39c6753788a8d17278531b3381eb508747495b67), [`4fb4d88`](https://github.com/mastra-ai/mastra/commit/4fb4d881bc107acee13890ad4d78661016c510ed), [`675fbff`](https://github.com/mastra-ai/mastra/commit/675fbff84d3274391b33e852f76083c38a5514e5), [`4e68363`](https://github.com/mastra-ai/mastra/commit/4e683634f94ebd062d26a3bb6093a8dfc7263d37), [`c328769`](https://github.com/mastra-ai/mastra/commit/c3287698ff8ef98dba86d415faa566fa3e5f4d56), [`9f7c67a`](https://github.com/mastra-ai/mastra/commit/9f7c67abeeb52c41c51a9b5edee60b62afe7cd8d), [`3b65e68`](https://github.com/mastra-ai/mastra/commit/3b65e68d7f1c771c7a70eea42d83fefdd28cad88), [`4eba27a`](https://github.com/mastra-ai/mastra/commit/4eba27adcf60f991df0e62f94b3e75b4e67f3b4b), [`c701be3`](https://github.com/mastra-ai/mastra/commit/c701be32d7d9aa94a66da8c6cc38dcac6856f464), [`db650ce`](https://github.com/mastra-ai/mastra/commit/db650ce490348914e85b93651d83acdf8f2a4c31), [`232fcbc`](https://github.com/mastra-ai/mastra/commit/232fcbc14fce625dd672ba043329c0b732c62be2), [`6354eeb`](https://github.com/mastra-ai/mastra/commit/6354eeb32efa9f5f68f51dda394e90e2ee76f1fb), [`a8799bb`](https://github.com/mastra-ai/mastra/commit/a8799bb8e44f4a60d01e4e2acd3448ff80bf14f8), [`3d6e539`](https://github.com/mastra-ai/mastra/commit/3d6e539272eb2ea0407034605ee1906b3be06b39), [`e3868e2`](https://github.com/mastra-ai/mastra/commit/e3868e22babfffd0133771669ca724501c2dd58e), [`6040ab9`](https://github.com/mastra-ai/mastra/commit/6040ab95bdfff38fceb1c0b9781a64a6d30f3cbd), [`9251370`](https://github.com/mastra-ai/mastra/commit/9251370ad413af464aa22d7566338bec5613e8de), [`3491666`](https://github.com/mastra-ai/mastra/commit/34916663c4fdd43b48c21f4ab2d5fb6dcccc94f9), [`c0bec73`](https://github.com/mastra-ai/mastra/commit/c0bec732c93d1a22ae5e51ed66cf8cacca8bd6a6)]:
40
+ - @mastra/core@1.52.0
41
+ - @mastra/server@1.52.0
42
+
43
+ ## 1.52.0-alpha.13
44
+
45
+ ### Minor Changes
46
+
47
+ - Added automatic detection of Software Factory projects from the Mastra entry's imports. When a Factory entry is detected, the bundler writes a `mastra-project.json` manifest to `.mastra/output/` identifying the project type and UI asset location. Also exposed an `analyzeEntryProjectType` helper for pre-build classification. ([#19948](https://github.com/mastra-ai/mastra/pull/19948))
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies:
52
+ - @mastra/core@1.52.0-alpha.13
53
+ - @mastra/server@1.52.0-alpha.13
54
+
55
+ ## 1.52.0-alpha.12
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies [[`d7385ad`](https://github.com/mastra-ai/mastra/commit/d7385ad9e88f9e4f33d15c0ec0bfebedde0cbc2e), [`3d6e539`](https://github.com/mastra-ai/mastra/commit/3d6e539272eb2ea0407034605ee1906b3be06b39), [`35865a5`](https://github.com/mastra-ai/mastra/commit/35865a53e194aa9634d6a70a97010e7a6b9d58b1), [`70687f7`](https://github.com/mastra-ai/mastra/commit/70687f7e495a322a02070b4a67cb0c77a5ca91ec), [`3d6e539`](https://github.com/mastra-ai/mastra/commit/3d6e539272eb2ea0407034605ee1906b3be06b39)]:
60
+ - @mastra/core@1.52.0-alpha.12
61
+ - @mastra/server@1.52.0-alpha.12
62
+
63
+ ## 1.52.0-alpha.11
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [[`c7d30cd`](https://github.com/mastra-ai/mastra/commit/c7d30cd86009c407df91105591f03cd6e3d2854d), [`ef03fbc`](https://github.com/mastra-ai/mastra/commit/ef03fbcc556bcbc04c9b3d06fab88771ecaa043c), [`a7bbe77`](https://github.com/mastra-ai/mastra/commit/a7bbe773577f60bc4761b534ef7ec6b476332dad), [`a7bbe77`](https://github.com/mastra-ai/mastra/commit/a7bbe773577f60bc4761b534ef7ec6b476332dad), [`4e68363`](https://github.com/mastra-ai/mastra/commit/4e683634f94ebd062d26a3bb6093a8dfc7263d37), [`6040ab9`](https://github.com/mastra-ai/mastra/commit/6040ab95bdfff38fceb1c0b9781a64a6d30f3cbd), [`9251370`](https://github.com/mastra-ai/mastra/commit/9251370ad413af464aa22d7566338bec5613e8de)]:
68
+ - @mastra/core@1.52.0-alpha.11
69
+ - @mastra/server@1.52.0-alpha.11
70
+
71
+ ## 1.52.0-alpha.10
72
+
73
+ ### Patch Changes
74
+
75
+ - Added secure Agent Learning reads to local Studio development. Requests stay same-origin, and browser-supplied credentials and tenant scope are ignored. ([#19759](https://github.com/mastra-ai/mastra/pull/19759))
76
+
77
+ ```sh
78
+ MASTRA_PLATFORM_ACCESS_TOKEN=<organization-api-key> \\
79
+ MASTRA_PROJECT_ID=<project-id> \\
80
+ mastra dev
81
+ ```
82
+
83
+ - Fixed Mastra development startup with Babel 8. ([#19849](https://github.com/mastra-ai/mastra/pull/19849))
84
+
85
+ - Updated dependencies [[`41a5392`](https://github.com/mastra-ai/mastra/commit/41a5392d9f6c5e18d6b227f0fc0ddf49c50774e9), [`675fbff`](https://github.com/mastra-ai/mastra/commit/675fbff84d3274391b33e852f76083c38a5514e5), [`da009e1`](https://github.com/mastra-ai/mastra/commit/da009e1aacd89ed94b8d1b2af09c9d4fe7c4db49), [`35c2181`](https://github.com/mastra-ai/mastra/commit/35c2181e6a50e47c90ba36260db7c9723d54696f), [`b4b7ea8`](https://github.com/mastra-ai/mastra/commit/b4b7ea8733f033fc441ea47ed03f6afb17ec2248), [`675fbff`](https://github.com/mastra-ai/mastra/commit/675fbff84d3274391b33e852f76083c38a5514e5), [`675fbff`](https://github.com/mastra-ai/mastra/commit/675fbff84d3274391b33e852f76083c38a5514e5), [`c328769`](https://github.com/mastra-ai/mastra/commit/c3287698ff8ef98dba86d415faa566fa3e5f4d56), [`232fcbc`](https://github.com/mastra-ai/mastra/commit/232fcbc14fce625dd672ba043329c0b732c62be2), [`3491666`](https://github.com/mastra-ai/mastra/commit/34916663c4fdd43b48c21f4ab2d5fb6dcccc94f9)]:
86
+ - @mastra/core@1.52.0-alpha.10
87
+ - @mastra/server@1.52.0-alpha.10
88
+
89
+ ## 1.52.0-alpha.9
90
+
91
+ ### Patch Changes
92
+
93
+ - Updated dependencies [[`0a2c22c`](https://github.com/mastra-ai/mastra/commit/0a2c22c902604439ec490319e14c17f331e0c84c), [`3a8024c`](https://github.com/mastra-ai/mastra/commit/3a8024ce615f8aa89479c0d71fe61d10bb0040be)]:
94
+ - @mastra/core@1.52.0-alpha.9
95
+ - @mastra/server@1.52.0-alpha.9
96
+
3
97
  ## 1.52.0-alpha.8
4
98
 
5
99
  ### Patch Changes
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkXOP6IB66_cjs = require('../chunk-XOP6IB66.cjs');
3
+ var chunkGRTBDDCI_cjs = require('../chunk-GRTBDDCI.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "analyzeBundle", {
8
8
  enumerable: true,
9
- get: function () { return chunkXOP6IB66_cjs.analyzeBundle; }
9
+ get: function () { return chunkGRTBDDCI_cjs.analyzeBundle; }
10
10
  });
11
11
  //# sourceMappingURL=analyze.cjs.map
12
12
  //# sourceMappingURL=analyze.cjs.map
@@ -17,6 +17,7 @@ export declare function analyzeBundle(entries: string[], mastraEntry: string, {
17
17
  isDev?: boolean;
18
18
  bundlerOptions?: Pick<BundlerOptions, 'externals' | 'enableSourcemap' | 'dynamicPackages'> | null;
19
19
  }, logger: IMastraLogger): Promise<{
20
+ projectType?: string | undefined;
20
21
  externalDependencies: Map<string, ExternalDependencyInfo>;
21
22
  dependencies: Map<string, string>;
22
23
  workspaceMap: Map<string, WorkspacePackageInfo>;
@@ -1 +1 @@
1
- {"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../src/build/analyze.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAQ7E,OAAO,KAAK,EAAE,cAAc,EAAsB,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAS1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkV/C;;;;;;;GAOG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,MAAM,EAAE,EACjB,WAAW,EAAE,MAAM,EACnB,EACE,SAAS,EACT,WAAW,EACX,QAAQ,EACR,KAAa,EACb,cAAc,GACf,EAAE;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,eAAe,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,iBAAiB,GAAG,iBAAiB,CAAC,GAAG,IAAI,CAAC;CACnG,EACD,MAAM,EAAE,aAAa;;;;GA8PtB"}
1
+ {"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../src/build/analyze.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAQ7E,OAAO,KAAK,EAAE,cAAc,EAAsB,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAS1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkV/C;;;;;;;GAOG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,MAAM,EAAE,EACjB,WAAW,EAAE,MAAM,EACnB,EACE,SAAS,EACT,WAAW,EACX,QAAQ,EACR,KAAa,EACb,cAAc,GACf,EAAE;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,eAAe,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,iBAAiB,GAAG,iBAAiB,CAAC,GAAG,IAAI,CAAC;CACnG,EACD,MAAM,EAAE,aAAa;;;;;GA6PtB"}
@@ -1,3 +1,3 @@
1
- export { analyzeBundle } from '../chunk-CBK2CAL4.js';
1
+ export { analyzeBundle } from '../chunk-YMXE5MTP.js';
2
2
  //# sourceMappingURL=analyze.js.map
3
3
  //# sourceMappingURL=analyze.js.map
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Lightweight entry analysis that returns the detected project type by running
3
+ * only the Babel check-config-export plugin on the Mastra entry file. This is
4
+ * intentionally cheaper than `analyzeBundle` and is used by the CLI before
5
+ * `prepare()` clears `.mastra` to decide whether Factory-specific assets
6
+ * should be copied.
7
+ *
8
+ * Returns `'factory'` when the entry imports `MastraFactory` and
9
+ * constructs it, or `undefined` for ordinary Mastra projects.
10
+ */
11
+ export declare function analyzeEntryProjectType(mastraEntry: string): Promise<string | undefined>;
12
+ //# sourceMappingURL=analyzeEntryProjectType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analyzeEntryProjectType.d.ts","sourceRoot":"","sources":["../../src/build/analyzeEntryProjectType.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,wBAAsB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAW9F"}
@@ -1,5 +1,6 @@
1
1
  import type { PluginObject } from '@babel/core';
2
2
  export declare function checkConfigExport(result: {
3
3
  hasValidConfig: boolean;
4
+ projectType?: string;
4
5
  }): PluginObject;
5
6
  //# sourceMappingURL=check-config-export.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"check-config-export.d.ts","sourceRoot":"","sources":["../../../src/build/babel/check-config-export.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IAAE,cAAc,EAAE,OAAO,CAAA;CAAE,GAAG,YAAY,CAoDnF"}
1
+ {"version":3,"file":"check-config-export.d.ts","sourceRoot":"","sources":["../../../src/build/babel/check-config-export.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IAAE,cAAc,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,CAgEzG"}
@@ -1,7 +1,7 @@
1
- import * as babel from '@babel/core';
1
+ import type { PluginObject } from '@babel/core';
2
2
  import type { IMastraLogger } from '@mastra/core/logger';
3
3
  import type { Config as MastraConfig } from '@mastra/core/mastra';
4
4
  export declare function removeAllOptionsFromMastraExcept(result: {
5
5
  hasCustomConfig: boolean;
6
- }, option: keyof MastraConfig, logger?: IMastraLogger): babel.PluginObject;
6
+ }, option: keyof MastraConfig, logger?: IMastraLogger): PluginObject;
7
7
  //# sourceMappingURL=remove-all-options-except.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-all-options-except.d.ts","sourceRoot":"","sources":["../../../src/build/babel/remove-all-options-except.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AAErC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAElE,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE,EACpC,MAAM,EAAE,MAAM,YAAY,EAC1B,MAAM,CAAC,EAAE,aAAa,GACrB,KAAK,CAAC,YAAY,CAuGpB"}
1
+ {"version":3,"file":"remove-all-options-except.d.ts","sourceRoot":"","sources":["../../../src/build/babel/remove-all-options-except.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAY,YAAY,EAAS,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAElE,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE,EACpC,MAAM,EAAE,MAAM,YAAY,EAC1B,MAAM,CAAC,EAAE,aAAa,GACrB,YAAY,CAqGd"}
@@ -1,7 +1,7 @@
1
- import * as babel from '@babel/core';
2
- interface RemoveDeployerState extends babel.PluginPass {
1
+ import type { PluginObject, PluginPass } from '@babel/core';
2
+ interface RemoveDeployerState extends PluginPass {
3
3
  hasReplaced?: boolean;
4
4
  }
5
- export declare function removeDeployer(): babel.PluginObject<RemoveDeployerState>;
5
+ export declare function removeDeployer(): PluginObject<RemoveDeployerState>;
6
6
  export {};
7
7
  //# sourceMappingURL=remove-deployer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-deployer.d.ts","sourceRoot":"","sources":["../../../src/build/babel/remove-deployer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AAErC,UAAU,mBAAoB,SAAQ,KAAK,CAAC,UAAU;IACpD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,cAAc,IAAI,KAAK,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAgFxE"}
1
+ {"version":3,"file":"remove-deployer.d.ts","sourceRoot":"","sources":["../../../src/build/babel/remove-deployer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAY,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtE,UAAU,mBAAoB,SAAQ,UAAU;IAC9C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,cAAc,IAAI,YAAY,CAAC,mBAAmB,CAAC,CA8ElE"}
@@ -1,3 +1,3 @@
1
- import * as babel from '@babel/core';
2
- export declare function removeNonReferencedNodes(): babel.PluginObject;
1
+ import type { PluginObject } from '@babel/core';
2
+ export declare function removeNonReferencedNodes(): PluginObject;
3
3
  //# sourceMappingURL=remove-non-referenced-nodes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-non-referenced-nodes.d.ts","sourceRoot":"","sources":["../../../src/build/babel/remove-non-referenced-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AAErC,wBAAgB,wBAAwB,IA8DjC,KAAK,CAAC,YAAY,CACxB"}
1
+ {"version":3,"file":"remove-non-referenced-nodes.d.ts","sourceRoot":"","sources":["../../../src/build/babel/remove-non-referenced-nodes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,wBAAgB,wBAAwB,IA4DjC,YAAY,CAClB"}
@@ -1,24 +1,24 @@
1
1
  'use strict';
2
2
 
3
- var chunk7CT7DAME_cjs = require('../chunk-7CT7DAME.cjs');
3
+ var chunk3XIMK24X_cjs = require('../chunk-3XIMK24X.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createBundler", {
8
8
  enumerable: true,
9
- get: function () { return chunk7CT7DAME_cjs.createBundler; }
9
+ get: function () { return chunk3XIMK24X_cjs.createBundler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getInputOptions", {
12
12
  enumerable: true,
13
- get: function () { return chunk7CT7DAME_cjs.getInputOptions; }
13
+ get: function () { return chunk3XIMK24X_cjs.getInputOptions; }
14
14
  });
15
15
  Object.defineProperty(exports, "mastraInternalAliasPlugin", {
16
16
  enumerable: true,
17
- get: function () { return chunk7CT7DAME_cjs.mastraInternalAliasPlugin; }
17
+ get: function () { return chunk3XIMK24X_cjs.mastraInternalAliasPlugin; }
18
18
  });
19
19
  Object.defineProperty(exports, "mastraToolsAliasPlugin", {
20
20
  enumerable: true,
21
- get: function () { return chunk7CT7DAME_cjs.mastraToolsAliasPlugin; }
21
+ get: function () { return chunk3XIMK24X_cjs.mastraToolsAliasPlugin; }
22
22
  });
23
23
  //# sourceMappingURL=bundler.cjs.map
24
24
  //# sourceMappingURL=bundler.cjs.map
@@ -1,3 +1,3 @@
1
- export { createBundler, getInputOptions, mastraInternalAliasPlugin, mastraToolsAliasPlugin } from '../chunk-HPYZGYQL.js';
1
+ export { createBundler, getInputOptions, mastraInternalAliasPlugin, mastraToolsAliasPlugin } from '../chunk-5PORNUPF.js';
2
2
  //# sourceMappingURL=bundler.js.map
3
3
  //# sourceMappingURL=bundler.js.map
@@ -1,73 +1,77 @@
1
1
  'use strict';
2
2
 
3
- var chunkGPKHP7J7_cjs = require('../chunk-GPKHP7J7.cjs');
4
- var chunk4XMRN3U4_cjs = require('../chunk-4XMRN3U4.cjs');
5
- var chunkXOP6IB66_cjs = require('../chunk-XOP6IB66.cjs');
6
- var chunk7CT7DAME_cjs = require('../chunk-7CT7DAME.cjs');
3
+ var chunkEJVFMOG5_cjs = require('../chunk-EJVFMOG5.cjs');
4
+ var chunk36AWZH7Z_cjs = require('../chunk-36AWZH7Z.cjs');
5
+ var chunkGRTBDDCI_cjs = require('../chunk-GRTBDDCI.cjs');
6
+ var chunk3XIMK24X_cjs = require('../chunk-3XIMK24X.cjs');
7
7
  var chunkFKKJQUGR_cjs = require('../chunk-FKKJQUGR.cjs');
8
8
  var chunkJZRFRUGM_cjs = require('../chunk-JZRFRUGM.cjs');
9
9
 
10
10
 
11
11
 
12
+ Object.defineProperty(exports, "analyzeEntryProjectType", {
13
+ enumerable: true,
14
+ get: function () { return chunkEJVFMOG5_cjs.analyzeEntryProjectType; }
15
+ });
12
16
  Object.defineProperty(exports, "createWatcher", {
13
17
  enumerable: true,
14
- get: function () { return chunkGPKHP7J7_cjs.createWatcher; }
18
+ get: function () { return chunkEJVFMOG5_cjs.createWatcher; }
15
19
  });
16
20
  Object.defineProperty(exports, "discoverFsAgents", {
17
21
  enumerable: true,
18
- get: function () { return chunkGPKHP7J7_cjs.discoverFsAgents; }
22
+ get: function () { return chunkEJVFMOG5_cjs.discoverFsAgents; }
19
23
  });
20
24
  Object.defineProperty(exports, "discoverFsSingleton", {
21
25
  enumerable: true,
22
- get: function () { return chunkGPKHP7J7_cjs.discoverFsSingleton; }
26
+ get: function () { return chunkEJVFMOG5_cjs.discoverFsSingleton; }
23
27
  });
24
28
  Object.defineProperty(exports, "discoverFsWorkflows", {
25
29
  enumerable: true,
26
- get: function () { return chunkGPKHP7J7_cjs.discoverFsWorkflows; }
30
+ get: function () { return chunkEJVFMOG5_cjs.discoverFsWorkflows; }
27
31
  });
28
32
  Object.defineProperty(exports, "generateFsAgentsModule", {
29
33
  enumerable: true,
30
- get: function () { return chunkGPKHP7J7_cjs.generateFsAgentsModule; }
34
+ get: function () { return chunkEJVFMOG5_cjs.generateFsAgentsModule; }
31
35
  });
32
36
  Object.defineProperty(exports, "generateFsWorkflowsCodegen", {
33
37
  enumerable: true,
34
- get: function () { return chunkGPKHP7J7_cjs.generateFsWorkflowsCodegen; }
38
+ get: function () { return chunkEJVFMOG5_cjs.generateFsWorkflowsCodegen; }
35
39
  });
36
40
  Object.defineProperty(exports, "getServerOptions", {
37
41
  enumerable: true,
38
- get: function () { return chunkGPKHP7J7_cjs.getServerOptions; }
42
+ get: function () { return chunkEJVFMOG5_cjs.getServerOptions; }
39
43
  });
40
44
  Object.defineProperty(exports, "getWatcherInputOptions", {
41
45
  enumerable: true,
42
- get: function () { return chunkGPKHP7J7_cjs.getInputOptions; }
46
+ get: function () { return chunkEJVFMOG5_cjs.getInputOptions; }
43
47
  });
44
48
  Object.defineProperty(exports, "mirrorFsAgentWorkspaces", {
45
49
  enumerable: true,
46
- get: function () { return chunkGPKHP7J7_cjs.mirrorFsAgentWorkspaces; }
50
+ get: function () { return chunkEJVFMOG5_cjs.mirrorFsAgentWorkspaces; }
47
51
  });
48
52
  Object.defineProperty(exports, "prepareFsAgentsEntry", {
49
53
  enumerable: true,
50
- get: function () { return chunkGPKHP7J7_cjs.prepareFsAgentsEntry; }
54
+ get: function () { return chunkEJVFMOG5_cjs.prepareFsAgentsEntry; }
51
55
  });
52
56
  Object.defineProperty(exports, "writeFsAgentsEntry", {
53
57
  enumerable: true,
54
- get: function () { return chunkGPKHP7J7_cjs.writeFsAgentsEntry; }
58
+ get: function () { return chunkEJVFMOG5_cjs.writeFsAgentsEntry; }
55
59
  });
56
60
  Object.defineProperty(exports, "getBundlerOptions", {
57
61
  enumerable: true,
58
- get: function () { return chunk4XMRN3U4_cjs.getBundlerOptions; }
62
+ get: function () { return chunk36AWZH7Z_cjs.getBundlerOptions; }
59
63
  });
60
64
  Object.defineProperty(exports, "analyzeBundle", {
61
65
  enumerable: true,
62
- get: function () { return chunkXOP6IB66_cjs.analyzeBundle; }
66
+ get: function () { return chunkGRTBDDCI_cjs.analyzeBundle; }
63
67
  });
64
68
  Object.defineProperty(exports, "createBundler", {
65
69
  enumerable: true,
66
- get: function () { return chunk7CT7DAME_cjs.createBundler; }
70
+ get: function () { return chunk3XIMK24X_cjs.createBundler; }
67
71
  });
68
72
  Object.defineProperty(exports, "getBundlerInputOptions", {
69
73
  enumerable: true,
70
- get: function () { return chunk7CT7DAME_cjs.getInputOptions; }
74
+ get: function () { return chunk3XIMK24X_cjs.getInputOptions; }
71
75
  });
72
76
  Object.defineProperty(exports, "Deps", {
73
77
  enumerable: true,
@@ -1,6 +1,7 @@
1
1
  export { createBundler, getInputOptions as getBundlerInputOptions } from './bundler.js';
2
2
  export { createWatcher, getInputOptions as getWatcherInputOptions } from './watcher.js';
3
3
  export { analyzeBundle } from './analyze/index.js';
4
+ export { analyzeEntryProjectType } from './analyzeEntryProjectType.js';
4
5
  export { FileService } from '../services/fs.js';
5
6
  export { Deps } from '../services/deps.js';
6
7
  export { getServerOptions } from './serverOptions.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,IAAI,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,eAAe,IAAI,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAC5G,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACvF,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACnG,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC5G,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAChF,YAAY,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, discoverFsAgents, discoverFsSingleton, discoverFsWorkflows, generateFsAgentsModule, generateFsWorkflowsCodegen, getServerOptions, getInputOptions as getWatcherInputOptions, mirrorFsAgentWorkspaces, prepareFsAgentsEntry, writeFsAgentsEntry } from '../chunk-H6J5QQ45.js';
2
- export { getBundlerOptions } from '../chunk-PXUWQC3X.js';
3
- export { analyzeBundle } from '../chunk-CBK2CAL4.js';
4
- export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-HPYZGYQL.js';
1
+ export { analyzeEntryProjectType, createWatcher, discoverFsAgents, discoverFsSingleton, discoverFsWorkflows, generateFsAgentsModule, generateFsWorkflowsCodegen, getServerOptions, getInputOptions as getWatcherInputOptions, mirrorFsAgentWorkspaces, prepareFsAgentsEntry, writeFsAgentsEntry } from '../chunk-B6MAUTLE.js';
2
+ export { getBundlerOptions } from '../chunk-E5SBYHQK.js';
3
+ export { analyzeBundle } from '../chunk-YMXE5MTP.js';
4
+ export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-5PORNUPF.js';
5
5
  export { Deps, FileService } from '../chunk-YUBKHO52.js';
6
6
  export { detectRuntime, escapeStudioHtmlValue, injectStudioHtmlConfig, normalizeStudioBase } from '../chunk-WP65JQAT.js';
7
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-all-except.d.ts","sourceRoot":"","sources":["../../../src/build/plugins/remove-all-except.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAkB,MAAM,QAAQ,CAAC;AAGrD,wBAAgB,sCAAsC,CACpD,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,YAAY,EACxB,MAAM,EAAE;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE,EACpC,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,aAAa,CAAA;CAAE,GACxD,MAAM,CAsBR"}
1
+ {"version":3,"file":"remove-all-except.d.ts","sourceRoot":"","sources":["../../../src/build/plugins/remove-all-except.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAkB,MAAM,QAAQ,CAAC;AAGrD,wBAAgB,sCAAsC,CACpD,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,YAAY,EACxB,MAAM,EAAE;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE,EACpC,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,aAAa,CAAA;CAAE,GACxD,MAAM,CAoBR"}
@@ -1 +1 @@
1
- {"version":3,"file":"remove-deployer.d.ts","sourceRoot":"","sources":["../../../src/build/plugins/remove-deployer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAkB,MAAM,QAAQ,CAAC;AAIrD,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,MAAM,CAsB7F"}
1
+ {"version":3,"file":"remove-deployer.d.ts","sourceRoot":"","sources":["../../../src/build/plugins/remove-deployer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAkB,MAAM,QAAQ,CAAC;AAIrD,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,MAAM,CAoB7F"}
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunkQGBVR3DR_cjs = require('../chunk-QGBVR3DR.cjs');
3
+ var chunk7BCMZXLF_cjs = require('../chunk-7BCMZXLF.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Bundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkQGBVR3DR_cjs.Bundler; }
9
+ get: function () { return chunk7BCMZXLF_cjs.Bundler; }
10
10
  });
11
11
  Object.defineProperty(exports, "IS_DEFAULT", {
12
12
  enumerable: true,
13
- get: function () { return chunkQGBVR3DR_cjs.IS_DEFAULT; }
13
+ get: function () { return chunk7BCMZXLF_cjs.IS_DEFAULT; }
14
14
  });
15
15
  //# sourceMappingURL=index.cjs.map
16
16
  //# sourceMappingURL=index.cjs.map
@@ -22,6 +22,7 @@ export declare abstract class Bundler extends MastraBundler {
22
22
  }>;
23
23
  protected getUserBundlerOptions(mastraEntryFile: string, outputDirectory: string): Promise<NonNullable<Config['bundler']>>;
24
24
  protected analyze(entry: string | string[], mastraFile: string, outputDirectory: string): Promise<{
25
+ projectType?: string | undefined;
25
26
  externalDependencies: Map<string, ExternalDependencyInfo>;
26
27
  dependencies: Map<string, string>;
27
28
  workspaceMap: Map<string, import("./workspaceDependencies").WorkspacePackageInfo>;
@@ -42,6 +43,12 @@ export declare abstract class Bundler extends MastraBundler {
42
43
  rootDir?: string;
43
44
  outputDirectory: string;
44
45
  }): Promise<void>;
46
+ /**
47
+ * Writes the `mastra-project.json` deployment marker for Software Factory
48
+ * projects after public assets have been copied. Verifies that the Factory
49
+ * SPA (`factory/index.html`) exists in the output before emitting the marker.
50
+ */
51
+ protected writeFactoryMarker(outputDirectory: string): Promise<void>;
45
52
  protected getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>, toolsPaths: (string | string[])[], { enableSourcemap, enableEsmShim, externals }: BundlerOptions): Promise<InputOptions>;
46
53
  getAllToolPaths(mastraDir: string, toolsPaths?: (string | string[])[]): (string | string[])[];
47
54
  listToolsInputOptions(toolsPaths: (string | string[])[]): Promise<Record<string, string>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAIlD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAMtD,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,eAAO,MAAM,UAAU,eAAuB,CAAC;AAE/C,8BAAsB,OAAQ,SAAQ,aAAa;IACjD,SAAS,CAAC,gBAAgB,SAAY;IACtC,SAAS,CAAC,SAAS,SAAY;IAC/B,SAAS,CAAC,QAAQ,EAAE,eAAe,CAAU;gBAEjC,IAAI,EAAE,MAAM,EAAE,SAAS,GAAE,SAAS,GAAG,UAAsB;IAIjE,OAAO,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ/C,gBAAgB,CACpB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,sBAAsB,CAAC,EAC1D,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IA0CtC,SAAS,CAAC,aAAa,CAAC,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE;;;;cAI3F,qBAAqB,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G,MAAM,EAAE,CAAC,EAAE;cAqC7C,OAAO,CACrB,UAAU,EAAE,MAAM,EAClB,eAAe,EAAE,MAAM,EACvB,EACE,WAAW,EACX,eAAe,EACf,aAAoB,GACrB,EAAE;QACD,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,EAAE,MAAM,CAAC;QACxB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,EACD,UAAU,GAAE,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EAAO,EACtC,cAAc,GAAE,MAA8C,GAC7D,OAAO,CAAC,IAAI,CAAC;IAqJV,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAO3G"}
@@ -1,3 +1,3 @@
1
- export { Bundler, IS_DEFAULT } from '../chunk-72CHYUGH.js';
1
+ export { Bundler, IS_DEFAULT } from '../chunk-ODUZW57J.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map