@mastra/deployer 0.1.0-alpha.63 → 0.1.1-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.
- package/.turbo/daemon/97c1e5b5f5662411-turbo.log.2025-02-14 +5 -0
- package/.turbo/turbo-build.log +29 -0
- package/.turbo/turbo-lint.log +31 -0
- package/CHANGELOG.md +243 -0
- package/dist/_tsup-dts-rollup.d.ts +12 -8
- package/dist/build/analyze.js +1 -1
- package/dist/build/index.js +3 -3
- package/dist/bundler/index.js +3 -3
- package/dist/{chunk-VCRMX3ZD.js → chunk-2S4LOARP.js} +1 -1
- package/dist/{chunk-E4D6R3B4.js → chunk-AXS5WSIK.js} +0 -1
- package/dist/{chunk-2YECHHR3.js → chunk-S6JYNXAW.js} +2 -2
- package/dist/{chunk-ERNQNTBH.js → chunk-Z3IHWUWI.js} +5 -2
- package/dist/index.js +7 -7
- package/dist/server/index.js +320 -223
- package/dist/templates/instrumentation-template.js +4 -3
- package/eslint.config.js +6 -0
- package/package.json +7 -4
- package/public/templates/instrumentation-template.js +4 -3
- package/src/build/analyze.ts +4 -2
- package/src/deploy/base.ts +1 -1
- package/src/deploy/log.ts +1 -1
- package/src/server/handlers/workflows.ts +40 -1
- package/src/server/index.ts +64 -3
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
2025-02-14T13:05:41.282192Z WARN daemon_server: turborepo_lib::commands::daemon: daemon already running
|
|
2
|
+
2025-02-14T13:05:41.413552Z WARN daemon_server: turborepo_lib::commands::daemon: daemon already running
|
|
3
|
+
2025-02-14T13:05:50.325906Z WARN daemon_server: turborepo_lib::commands::daemon: daemon already running
|
|
4
|
+
2025-02-14T13:05:50.443582Z WARN daemon_server: turborepo_lib::commands::daemon: daemon already running
|
|
5
|
+
2025-02-14T13:05:50.568485Z WARN daemon_server: turborepo_lib::commands::daemon: daemon already running
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
> @mastra/deployer@0.1.0-alpha.61 build C:\Users\Ward\projects\mastra\mastra\packages\deployer
|
|
3
|
+
> tsup src/index.ts src/build/index.ts src/server/index.ts src/build/bundler.ts src/build/analyze.ts src/bundler/index.ts --format esm --clean --experimental-dts --treeshake --publicDir
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: src/index.ts, src/build/analyze.ts, src/build/bundler.ts, src/build/index.ts, src/bundler/index.ts, src/server/index.ts
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v8.3.6
|
|
8
|
+
[34mTSC[39m Build start
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 2533ms
|
|
10
|
+
[34mDTS[39m Build start
|
|
11
|
+
[34mCLI[39m Target: es2022
|
|
12
|
+
Analysis will use the bundled TypeScript version 5.7.3
|
|
13
|
+
[36mWriting package typings: C:\Users\Ward\projects\mastra\mastra\packages\deployer\dist\_tsup-dts-rollup.d.ts[39m
|
|
14
|
+
[32mDTS[39m ⚡️ Build success in 1720ms
|
|
15
|
+
[34mCLI[39m Cleaning output folder
|
|
16
|
+
[34mESM[39m Build start
|
|
17
|
+
[32mESM[39m [1mdist\bundler\index.js [22m[32m172.00 B[39m
|
|
18
|
+
[32mESM[39m [1mdist\build\index.js [22m[32m361.00 B[39m
|
|
19
|
+
[32mESM[39m [1mdist\index.js [22m[32m3.73 KB[39m
|
|
20
|
+
[32mESM[39m [1mdist\build\analyze.js [22m[32m85.00 B[39m
|
|
21
|
+
[32mESM[39m [1mdist\build\bundler.js [22m[32m102.00 B[39m
|
|
22
|
+
[32mESM[39m [1mdist\chunk-I7EFK2FV.js [22m[32m7.41 KB[39m
|
|
23
|
+
[32mESM[39m [1mdist\chunk-OAZTIJDC.js [22m[32m4.30 KB[39m
|
|
24
|
+
[32mESM[39m [1mdist\chunk-YNXJO2XU.js [22m[32m2.08 KB[39m
|
|
25
|
+
[32mESM[39m [1mdist\chunk-ERNQNTBH.js [22m[32m7.96 KB[39m
|
|
26
|
+
[32mESM[39m [1mdist\server\index.js [22m[32m145.00 KB[39m
|
|
27
|
+
[32mESM[39m [1mdist\chunk-Q3WKR6OZ.js [22m[32m5.16 KB[39m
|
|
28
|
+
[32mESM[39m [1mdist\chunk-KXS4XYEJ.js [22m[32m7.20 KB[39m
|
|
29
|
+
[32mESM[39m ⚡️ Build success in 334ms
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
> @mastra/deployer@0.1.0 lint C:\Users\Ward\projects\mastra\mastra\packages\deployer
|
|
3
|
+
> eslint .
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
C:\Users\Ward\projects\mastra\mastra\packages\deployer\src\bundler\index.ts
|
|
7
|
+
1:1 warning `@mastra/core/bundler` import should occur after import of `node:url` import/order
|
|
8
|
+
2:1 warning `@rollup/plugin-virtual` import should occur after import of `node:url` import/order
|
|
9
|
+
3:1 warning `fs-extra` import should occur after import of `node:url` import/order
|
|
10
|
+
8:1 warning `rollup` type import should occur after import of `fs-extra/esm` import/order
|
|
11
|
+
|
|
12
|
+
C:\Users\Ward\projects\mastra\mastra\packages\deployer\src\deploy\log.ts
|
|
13
|
+
1:1 warning `@mastra/core/logger` type import should occur after import of `stream` import/order
|
|
14
|
+
|
|
15
|
+
C:\Users\Ward\projects\mastra\mastra\packages\deployer\src\server\handlers\agents.ts
|
|
16
|
+
6:1 warning `hono/http-exception` import should occur before import of `superjson` import/order
|
|
17
|
+
|
|
18
|
+
C:\Users\Ward\projects\mastra\mastra\packages\deployer\src\server\handlers\tools.ts
|
|
19
|
+
5:1 warning `hono/http-exception` import should occur before import of `superjson` import/order
|
|
20
|
+
|
|
21
|
+
C:\Users\Ward\projects\mastra\mastra\packages\deployer\src\server\index.ts
|
|
22
|
+
8:1 warning `path` import should occur before import of `@hono/node-server` import/order
|
|
23
|
+
9:1 warning `url` import should occur before import of `@hono/node-server` import/order
|
|
24
|
+
11:1 warning `fs/promises` import should occur before import of `@hono/node-server` import/order
|
|
25
|
+
12:1 warning `hono/body-limit` import should occur before import of `hono-openapi` import/order
|
|
26
|
+
13:1 warning `hono/cors` import should occur before import of `hono-openapi` import/order
|
|
27
|
+
14:1 warning `hono/logger` import should occur before import of `hono-openapi` import/order
|
|
28
|
+
|
|
29
|
+
✖ 13 problems (0 errors, 13 warnings)
|
|
30
|
+
0 errors and 13 warnings potentially fixable with the `--fix` option.
|
|
31
|
+
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,248 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 0.1.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 936dc26: Add mastra server endpoints for watch/resume + plug watch and resume functionality to dev playground
|
|
8
|
+
- 91ef439: Add eslint and ran autofix
|
|
9
|
+
- aac1667: Improve treeshaking of core and output
|
|
10
|
+
- Updated dependencies [d59f1a8]
|
|
11
|
+
- Updated dependencies [91ef439]
|
|
12
|
+
- Updated dependencies [4a25be4]
|
|
13
|
+
- Updated dependencies [bf2e88f]
|
|
14
|
+
- Updated dependencies [2f0d707]
|
|
15
|
+
- Updated dependencies [aac1667]
|
|
16
|
+
- @mastra/core@0.2.1-alpha.0
|
|
17
|
+
|
|
18
|
+
## 0.1.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- 4d4f6b6: Update deployer
|
|
23
|
+
- 5916f9d: Update deps from fixed to ^
|
|
24
|
+
- 8b416d9: Breaking changes
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- 2ab57d6: Fix: Workflows require a trigger schema otherwise it fails to run in dev
|
|
29
|
+
- a1774e7: Improve bundling
|
|
30
|
+
- 291fe57: mastra openapi, swagger ui, dynamic servers
|
|
31
|
+
- e4d4ede: Better setLogger()
|
|
32
|
+
- 73d112c: Core and deployer fixes
|
|
33
|
+
- 9d1796d: Fix storage and eval serialization on api
|
|
34
|
+
- e27fe69: Add dir to deployer
|
|
35
|
+
- 246f06c: Fix import \* from telemetry package
|
|
36
|
+
- ac8c61a: Mastra server vector operations
|
|
37
|
+
- 82a6d53: better create-mastra tsconfig, better error for mastra server agent stream
|
|
38
|
+
- bdaf834: publish packages
|
|
39
|
+
- 7d83b92: Create default storage and move evals towards it
|
|
40
|
+
- 8fa48b9: Add an API to enhance agent instructions
|
|
41
|
+
- 685108a: Remove syncs and excess rag
|
|
42
|
+
- 5fdc87c: Update evals storage in attachListeners
|
|
43
|
+
- ae7bf94: Fix loggers messing up deploys
|
|
44
|
+
- b97ca96: Tracing into default storage
|
|
45
|
+
- ad2cd74: Deploy fix
|
|
46
|
+
- 7babd5c: CLI build and other
|
|
47
|
+
- a9b5ddf: Publish new versions
|
|
48
|
+
- 9066f95: CF deployer fixes
|
|
49
|
+
- 4139b43: Deployer utils
|
|
50
|
+
- ab01c53: Fix mastra server agent streamObject
|
|
51
|
+
- 1944807: Unified logger and major step in better logs
|
|
52
|
+
- 8aec8b7: Normalize imports to package name and dedupe while writing package.json after mastra build
|
|
53
|
+
- 685108a: Removing mastra syncs
|
|
54
|
+
- 382f4dc: move telemetry init to instrumentation.mjs file in build directory
|
|
55
|
+
- 7892533: Updated test evals to use Mastra Storage
|
|
56
|
+
- 9c10484: update all packages
|
|
57
|
+
- 88f18d7: Update cors support
|
|
58
|
+
- 70dabd9: Fix broken publish
|
|
59
|
+
- 1a41fbf: Fix playground workflow triggerData on execution
|
|
60
|
+
- 391d5ea: Add @opentelemetry/instrumentation to pkg json of build artifcat
|
|
61
|
+
- 8329f1a: Add debug env
|
|
62
|
+
- e6d8055: Added Mastra Storage to add and query live evals
|
|
63
|
+
- a18e96c: Array schemas for dev tool playground
|
|
64
|
+
- 5950de5: Added update instructions API
|
|
65
|
+
- b425845: Logger and execa logs
|
|
66
|
+
- 0696eeb: Cleanup Mastra server
|
|
67
|
+
- 6780223: fix workflow runId not unique per execution in dev
|
|
68
|
+
- a8a459a: Updated Evals table UI
|
|
69
|
+
- 0b96376: fix pino of being null
|
|
70
|
+
- cfb966f: Deprecate @mastra/tts for mastra speech providers
|
|
71
|
+
- 9625602: Use mastra core splitted bundles in other packages
|
|
72
|
+
- 72d1990: Updated evals table schema
|
|
73
|
+
- a291824: Deployer fixes
|
|
74
|
+
- 8ea426a: Fix patch
|
|
75
|
+
- c5f2d50: Split deployer package
|
|
76
|
+
- 7064554: deployer fixes
|
|
77
|
+
- 72c280b: Fixes
|
|
78
|
+
- b80ea8d: Fix bundling of server
|
|
79
|
+
- 42a2e69: Fix playground error parsing
|
|
80
|
+
- 28dceab: Catch apiKey error in dev
|
|
81
|
+
- a5604c4: Deployer initial
|
|
82
|
+
- 38b7f66: Update deployer logic
|
|
83
|
+
- b9c7047: Move to non deprecated table name for eval insertion
|
|
84
|
+
- 4a328af: Set request limit to 4.5MB
|
|
85
|
+
- 9ade36e: Changed measure for evals, added endpoints, attached metrics to agent, added ui for evals in playground, and updated docs
|
|
86
|
+
- d9c8dd0: Logger changes for default transports
|
|
87
|
+
- 9fb59d6: changeset
|
|
88
|
+
- f1e3105: Now that memory can be added to an agent, the playground needs to look up memory on the agent, not on mastra. Now the playground looks up on the agent to properly access memory
|
|
89
|
+
- ae7bf94: Changeset
|
|
90
|
+
- 4f1d1a1: Enforce types ann cleanup package.json
|
|
91
|
+
- Updated dependencies [f537e33]
|
|
92
|
+
- Updated dependencies [6f2c0f5]
|
|
93
|
+
- Updated dependencies [e4d4ede]
|
|
94
|
+
- Updated dependencies [0be7181]
|
|
95
|
+
- Updated dependencies [dd6d87f]
|
|
96
|
+
- Updated dependencies [9029796]
|
|
97
|
+
- Updated dependencies [6fa4bd2]
|
|
98
|
+
- Updated dependencies [f031a1f]
|
|
99
|
+
- Updated dependencies [8151f44]
|
|
100
|
+
- Updated dependencies [d7d465a]
|
|
101
|
+
- Updated dependencies [4d4f6b6]
|
|
102
|
+
- Updated dependencies [73d112c]
|
|
103
|
+
- Updated dependencies [592e3cf]
|
|
104
|
+
- Updated dependencies [9d1796d]
|
|
105
|
+
- Updated dependencies [e897f1c]
|
|
106
|
+
- Updated dependencies [4a54c82]
|
|
107
|
+
- Updated dependencies [3967e69]
|
|
108
|
+
- Updated dependencies [8ae2bbc]
|
|
109
|
+
- Updated dependencies [e9d1b47]
|
|
110
|
+
- Updated dependencies [016493a]
|
|
111
|
+
- Updated dependencies [bc40916]
|
|
112
|
+
- Updated dependencies [93a3719]
|
|
113
|
+
- Updated dependencies [7d83b92]
|
|
114
|
+
- Updated dependencies [9fb3039]
|
|
115
|
+
- Updated dependencies [d5e12de]
|
|
116
|
+
- Updated dependencies [e1dd94a]
|
|
117
|
+
- Updated dependencies [07c069d]
|
|
118
|
+
- Updated dependencies [5cdfb88]
|
|
119
|
+
- Updated dependencies [837a288]
|
|
120
|
+
- Updated dependencies [685108a]
|
|
121
|
+
- Updated dependencies [c8ff2f5]
|
|
122
|
+
- Updated dependencies [5fdc87c]
|
|
123
|
+
- Updated dependencies [ae7bf94]
|
|
124
|
+
- Updated dependencies [8e7814f]
|
|
125
|
+
- Updated dependencies [66a03ec]
|
|
126
|
+
- Updated dependencies [7d87a15]
|
|
127
|
+
- Updated dependencies [b97ca96]
|
|
128
|
+
- Updated dependencies [23dcb23]
|
|
129
|
+
- Updated dependencies [033eda6]
|
|
130
|
+
- Updated dependencies [8105fae]
|
|
131
|
+
- Updated dependencies [e097800]
|
|
132
|
+
- Updated dependencies [1944807]
|
|
133
|
+
- Updated dependencies [30322ce]
|
|
134
|
+
- Updated dependencies [1874f40]
|
|
135
|
+
- Updated dependencies [685108a]
|
|
136
|
+
- Updated dependencies [f7d1131]
|
|
137
|
+
- Updated dependencies [79acad0]
|
|
138
|
+
- Updated dependencies [7a19083]
|
|
139
|
+
- Updated dependencies [382f4dc]
|
|
140
|
+
- Updated dependencies [1ebd071]
|
|
141
|
+
- Updated dependencies [0b74006]
|
|
142
|
+
- Updated dependencies [2f17a5f]
|
|
143
|
+
- Updated dependencies [f368477]
|
|
144
|
+
- Updated dependencies [7892533]
|
|
145
|
+
- Updated dependencies [9c10484]
|
|
146
|
+
- Updated dependencies [b726bf5]
|
|
147
|
+
- Updated dependencies [70dabd9]
|
|
148
|
+
- Updated dependencies [21fe536]
|
|
149
|
+
- Updated dependencies [176bc42]
|
|
150
|
+
- Updated dependencies [401a4d9]
|
|
151
|
+
- Updated dependencies [2e099d2]
|
|
152
|
+
- Updated dependencies [0b826f6]
|
|
153
|
+
- Updated dependencies [d68b532]
|
|
154
|
+
- Updated dependencies [75bf3f0]
|
|
155
|
+
- Updated dependencies [e6d8055]
|
|
156
|
+
- Updated dependencies [e2e76de]
|
|
157
|
+
- Updated dependencies [ccbc581]
|
|
158
|
+
- Updated dependencies [5950de5]
|
|
159
|
+
- Updated dependencies [fe3dcb0]
|
|
160
|
+
- Updated dependencies [78eec7c]
|
|
161
|
+
- Updated dependencies [a8a459a]
|
|
162
|
+
- Updated dependencies [0be7181]
|
|
163
|
+
- Updated dependencies [7b87567]
|
|
164
|
+
- Updated dependencies [b524c22]
|
|
165
|
+
- Updated dependencies [d7d465a]
|
|
166
|
+
- Updated dependencies [df843d3]
|
|
167
|
+
- Updated dependencies [4534e77]
|
|
168
|
+
- Updated dependencies [d6d8159]
|
|
169
|
+
- Updated dependencies [0bd142c]
|
|
170
|
+
- Updated dependencies [9625602]
|
|
171
|
+
- Updated dependencies [72d1990]
|
|
172
|
+
- Updated dependencies [f6ba259]
|
|
173
|
+
- Updated dependencies [2712098]
|
|
174
|
+
- Updated dependencies [eedb829]
|
|
175
|
+
- Updated dependencies [5285356]
|
|
176
|
+
- Updated dependencies [74b3078]
|
|
177
|
+
- Updated dependencies [cb290ee]
|
|
178
|
+
- Updated dependencies [b4d7416]
|
|
179
|
+
- Updated dependencies [e608d8c]
|
|
180
|
+
- Updated dependencies [06b2c0a]
|
|
181
|
+
- Updated dependencies [002d6d8]
|
|
182
|
+
- Updated dependencies [e448a26]
|
|
183
|
+
- Updated dependencies [8b416d9]
|
|
184
|
+
- Updated dependencies [fd494a3]
|
|
185
|
+
- Updated dependencies [dc90663]
|
|
186
|
+
- Updated dependencies [c872875]
|
|
187
|
+
- Updated dependencies [3c4488b]
|
|
188
|
+
- Updated dependencies [a7b016d]
|
|
189
|
+
- Updated dependencies [fd75f3c]
|
|
190
|
+
- Updated dependencies [7f24c29]
|
|
191
|
+
- Updated dependencies [2017553]
|
|
192
|
+
- Updated dependencies [a10b7a3]
|
|
193
|
+
- Updated dependencies [cf6d825]
|
|
194
|
+
- Updated dependencies [963c15a]
|
|
195
|
+
- Updated dependencies [7365b6c]
|
|
196
|
+
- Updated dependencies [5ee67d3]
|
|
197
|
+
- Updated dependencies [d38f7a6]
|
|
198
|
+
- Updated dependencies [38b7f66]
|
|
199
|
+
- Updated dependencies [2fa7f53]
|
|
200
|
+
- Updated dependencies [1420ae2]
|
|
201
|
+
- Updated dependencies [f6da688]
|
|
202
|
+
- Updated dependencies [3700be1]
|
|
203
|
+
- Updated dependencies [9ade36e]
|
|
204
|
+
- Updated dependencies [10870bc]
|
|
205
|
+
- Updated dependencies [2b01511]
|
|
206
|
+
- Updated dependencies [a870123]
|
|
207
|
+
- Updated dependencies [ccf115c]
|
|
208
|
+
- Updated dependencies [04434b6]
|
|
209
|
+
- Updated dependencies [5811de6]
|
|
210
|
+
- Updated dependencies [9f3ab05]
|
|
211
|
+
- Updated dependencies [66a5392]
|
|
212
|
+
- Updated dependencies [4b1ce2c]
|
|
213
|
+
- Updated dependencies [14064f2]
|
|
214
|
+
- Updated dependencies [f5dfa20]
|
|
215
|
+
- Updated dependencies [327ece7]
|
|
216
|
+
- Updated dependencies [da2e8d3]
|
|
217
|
+
- Updated dependencies [95a4697]
|
|
218
|
+
- Updated dependencies [d5fccfb]
|
|
219
|
+
- Updated dependencies [3427b95]
|
|
220
|
+
- Updated dependencies [538a136]
|
|
221
|
+
- Updated dependencies [e66643a]
|
|
222
|
+
- Updated dependencies [b5393f1]
|
|
223
|
+
- Updated dependencies [d2cd535]
|
|
224
|
+
- Updated dependencies [c2dd6b5]
|
|
225
|
+
- Updated dependencies [67637ba]
|
|
226
|
+
- Updated dependencies [836f4e3]
|
|
227
|
+
- Updated dependencies [5ee2e78]
|
|
228
|
+
- Updated dependencies [cd02c56]
|
|
229
|
+
- Updated dependencies [01502b0]
|
|
230
|
+
- Updated dependencies [16e5b04]
|
|
231
|
+
- Updated dependencies [d9c8dd0]
|
|
232
|
+
- Updated dependencies [9fb59d6]
|
|
233
|
+
- Updated dependencies [a9345f9]
|
|
234
|
+
- Updated dependencies [99f1847]
|
|
235
|
+
- Updated dependencies [04f3171]
|
|
236
|
+
- Updated dependencies [8769a62]
|
|
237
|
+
- Updated dependencies [d5ec619]
|
|
238
|
+
- Updated dependencies [27275c9]
|
|
239
|
+
- Updated dependencies [ae7bf94]
|
|
240
|
+
- Updated dependencies [4f1d1a1]
|
|
241
|
+
- Updated dependencies [ee4de15]
|
|
242
|
+
- Updated dependencies [202d404]
|
|
243
|
+
- Updated dependencies [a221426]
|
|
244
|
+
- @mastra/core@0.2.0
|
|
245
|
+
|
|
3
246
|
## 0.1.0-alpha.63
|
|
4
247
|
|
|
5
248
|
### Patch Changes
|
|
@@ -3,10 +3,10 @@ import { BlankSchema } from 'hono/types';
|
|
|
3
3
|
import { ContentfulStatusCode } from 'hono/utils/http-status';
|
|
4
4
|
import type { Context } from 'hono';
|
|
5
5
|
import { Hono } from 'hono';
|
|
6
|
-
import { IDeployer } from '@mastra/core/deployer';
|
|
6
|
+
import type { IDeployer } from '@mastra/core/deployer';
|
|
7
7
|
import { InputOption } from 'rollup';
|
|
8
8
|
import { InputOptions } from 'rollup';
|
|
9
|
-
import { Logger } from '@mastra/core/logger';
|
|
9
|
+
import type { Logger } from '@mastra/core/logger';
|
|
10
10
|
import type { Logger as Logger_2 } from '@mastra/core';
|
|
11
11
|
import type { Mastra } from '@mastra/core';
|
|
12
12
|
import { MastraBase } from '@mastra/core/base';
|
|
@@ -14,7 +14,7 @@ import { MastraBundler } from '@mastra/core/bundler';
|
|
|
14
14
|
import type { MastraDeployer } from '@mastra/core';
|
|
15
15
|
import type { MastraVector } from '@mastra/core/vector';
|
|
16
16
|
import { OutputOptions } from 'rollup';
|
|
17
|
-
import { Plugin
|
|
17
|
+
import { Plugin } from 'rollup';
|
|
18
18
|
import { PluginContext } from 'rollup';
|
|
19
19
|
import { RenderedChunk } from 'rollup';
|
|
20
20
|
import { RollupBuild } from 'rollup';
|
|
@@ -24,7 +24,7 @@ import { ServerType } from '@hono/node-server';
|
|
|
24
24
|
import { Transform } from 'stream';
|
|
25
25
|
import { TypedResponse } from 'hono';
|
|
26
26
|
|
|
27
|
-
export declare function aliasHono():
|
|
27
|
+
export declare function aliasHono(): Plugin;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Main bundle analysis function that orchestrates the three-step process:
|
|
@@ -283,12 +283,12 @@ export declare const html = "\n<!doctype html>\n<html lang=\"en\">\n <head>\n
|
|
|
283
283
|
|
|
284
284
|
export declare function isNodeBuiltin(dep: string): boolean;
|
|
285
285
|
|
|
286
|
-
export declare function libSqlFix():
|
|
286
|
+
export declare function libSqlFix(): Plugin;
|
|
287
287
|
|
|
288
288
|
export declare function listIndexes(c: Context): Promise<Response>;
|
|
289
289
|
|
|
290
290
|
declare type NormalizedInputOptions = Omit<Partial<InputOptions>, 'plugins' | 'input' | 'external'> & {
|
|
291
|
-
plugins?:
|
|
291
|
+
plugins?: Plugin[];
|
|
292
292
|
input: InputOption;
|
|
293
293
|
external?: (string | RegExp)[];
|
|
294
294
|
};
|
|
@@ -314,7 +314,9 @@ export declare function removeAllExceptTelemetryConfig(result: {
|
|
|
314
314
|
|
|
315
315
|
export declare function removeDeployer(): babel_2.PluginObj;
|
|
316
316
|
|
|
317
|
-
export declare function removeDeployer_alias_1(mastraEntry: string):
|
|
317
|
+
export declare function removeDeployer_alias_1(mastraEntry: string): Plugin;
|
|
318
|
+
|
|
319
|
+
export declare function resumeWorkflowHandler(c: Context): Promise<Response>;
|
|
318
320
|
|
|
319
321
|
export declare function rewriteLibsqlImport(): babel_2.PluginObj;
|
|
320
322
|
|
|
@@ -326,7 +328,7 @@ export declare function setAgentInstructionsHandler(c: Context): Promise<Respons
|
|
|
326
328
|
|
|
327
329
|
export declare function streamGenerateHandler(c: Context): Promise<Response | undefined>;
|
|
328
330
|
|
|
329
|
-
export declare function telemetryFix():
|
|
331
|
+
export declare function telemetryFix(): Plugin;
|
|
330
332
|
|
|
331
333
|
export declare function updateThreadHandler(c: Context): Promise<Response>;
|
|
332
334
|
|
|
@@ -347,6 +349,8 @@ declare type Variables = {
|
|
|
347
349
|
playground: boolean;
|
|
348
350
|
};
|
|
349
351
|
|
|
352
|
+
export declare function watchWorkflowHandler(c: Context): Promise<Response>;
|
|
353
|
+
|
|
350
354
|
declare function writeTelemetryConfig(entryFile: string, outputDir: string): Promise<{
|
|
351
355
|
hasCustomConfig: boolean;
|
|
352
356
|
}>;
|
package/dist/build/analyze.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { analyzeBundle } from '../chunk-
|
|
1
|
+
export { analyzeBundle } from '../chunk-Z3IHWUWI.js';
|
|
2
2
|
import '../chunk-YNXJO2XU.js';
|
package/dist/build/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { FileService, createWatcher, getBundler, getWatcher, getInputOptions as getWatcherInputOptions } from '../chunk-
|
|
2
|
-
export { Deps, writeTelemetryConfig } from '../chunk-
|
|
3
|
-
export { analyzeBundle } from '../chunk-
|
|
1
|
+
export { FileService, createWatcher, getBundler, getWatcher, getInputOptions as getWatcherInputOptions } from '../chunk-2S4LOARP.js';
|
|
2
|
+
export { Deps, writeTelemetryConfig } from '../chunk-AXS5WSIK.js';
|
|
3
|
+
export { analyzeBundle } from '../chunk-Z3IHWUWI.js';
|
|
4
4
|
export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-KXS4XYEJ.js';
|
|
5
5
|
import '../chunk-YNXJO2XU.js';
|
package/dist/bundler/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Bundler } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { Bundler } from '../chunk-S6JYNXAW.js';
|
|
2
|
+
import '../chunk-AXS5WSIK.js';
|
|
3
|
+
import '../chunk-Z3IHWUWI.js';
|
|
4
4
|
import '../chunk-KXS4XYEJ.js';
|
|
5
5
|
import '../chunk-YNXJO2XU.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aliasHono } from './chunk-
|
|
1
|
+
import { aliasHono } from './chunk-Z3IHWUWI.js';
|
|
2
2
|
import { getInputOptions, telemetryFix, libSqlFix } from './chunk-KXS4XYEJ.js';
|
|
3
3
|
import { removeDeployer } from './chunk-YNXJO2XU.js';
|
|
4
4
|
import alias from '@rollup/plugin-alias';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Deps, writeTelemetryConfig } from './chunk-
|
|
2
|
-
import { analyzeBundle } from './chunk-
|
|
1
|
+
import { Deps, writeTelemetryConfig } from './chunk-AXS5WSIK.js';
|
|
2
|
+
import { analyzeBundle } from './chunk-Z3IHWUWI.js';
|
|
3
3
|
import { createBundler, getInputOptions } from './chunk-KXS4XYEJ.js';
|
|
4
4
|
import { MastraBundler } from '@mastra/core/bundler';
|
|
5
5
|
import virtual from '@rollup/plugin-virtual';
|
|
@@ -188,7 +188,7 @@ async function bundleExternals(depsToOptimize, outputDir, logger) {
|
|
|
188
188
|
// this dependency breaks the build, so we need to exclude it
|
|
189
189
|
// TODO actually fix this so we don't need to exclude it
|
|
190
190
|
external: ["jsdom"],
|
|
191
|
-
treeshake:
|
|
191
|
+
treeshake: "smallest",
|
|
192
192
|
preserveSymlinks: true,
|
|
193
193
|
plugins: [
|
|
194
194
|
virtual(
|
|
@@ -207,7 +207,9 @@ async function bundleExternals(depsToOptimize, outputDir, logger) {
|
|
|
207
207
|
ignoreTryCatch: false
|
|
208
208
|
}),
|
|
209
209
|
nodeResolve({
|
|
210
|
-
preferBuiltins: true
|
|
210
|
+
preferBuiltins: true,
|
|
211
|
+
exportConditions: ["node", "import", "require"],
|
|
212
|
+
mainFields: ["module", "main"]
|
|
211
213
|
}),
|
|
212
214
|
// hono is imported from deployer, so we need to resolve from here instead of the project root
|
|
213
215
|
aliasHono(),
|
|
@@ -244,6 +246,7 @@ async function validateOutput(output, reverseVirtualReferenceMap, outputDir, log
|
|
|
244
246
|
if (file.isEntry && reverseVirtualReferenceMap.has(file.name)) {
|
|
245
247
|
result.externalDependencies.add(reverseVirtualReferenceMap.get(file.name));
|
|
246
248
|
}
|
|
249
|
+
console.log(file.fileName, file.isEntry, file.isDynamicEntry, err);
|
|
247
250
|
}
|
|
248
251
|
}
|
|
249
252
|
return result;
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { FileService } from './chunk-
|
|
2
|
-
export { FileService, getBundler, getWatcher } from './chunk-
|
|
3
|
-
import { Bundler } from './chunk-
|
|
4
|
-
import { Deps } from './chunk-
|
|
5
|
-
export { Deps, createChildProcessLogger, createPinoStream } from './chunk-
|
|
6
|
-
import './chunk-
|
|
1
|
+
import { FileService } from './chunk-2S4LOARP.js';
|
|
2
|
+
export { FileService, getBundler, getWatcher } from './chunk-2S4LOARP.js';
|
|
3
|
+
import { Bundler } from './chunk-S6JYNXAW.js';
|
|
4
|
+
import { Deps } from './chunk-AXS5WSIK.js';
|
|
5
|
+
export { Deps, createChildProcessLogger, createPinoStream } from './chunk-AXS5WSIK.js';
|
|
6
|
+
import './chunk-Z3IHWUWI.js';
|
|
7
7
|
import './chunk-KXS4XYEJ.js';
|
|
8
8
|
import './chunk-YNXJO2XU.js';
|
|
9
|
-
import '@mastra/core/deployer';
|
|
10
9
|
import * as babel from '@babel/core';
|
|
11
10
|
import babel__default from '@babel/core';
|
|
12
11
|
import { rollup } from 'rollup';
|
|
13
12
|
import esbuild from 'rollup-plugin-esbuild';
|
|
14
13
|
|
|
14
|
+
// src/deploy/base.ts
|
|
15
15
|
var Deployer = class extends Bundler {
|
|
16
16
|
deps = new Deps();
|
|
17
17
|
constructor(args) {
|