@mastra/deployer 1.50.2-alpha.1 → 1.51.0-alpha.10
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/CHANGELOG.md +141 -0
- package/dist/build/analyze.cjs +2 -2
- package/dist/build/analyze.js +1 -1
- package/dist/build/bundler.cjs +5 -5
- package/dist/build/bundler.js +1 -1
- package/dist/build/fs-routing/codegen.d.ts +3 -2
- package/dist/build/fs-routing/codegen.d.ts.map +1 -1
- package/dist/build/fs-routing/discover.d.ts +5 -0
- package/dist/build/fs-routing/discover.d.ts.map +1 -1
- package/dist/build/fs-routing/prepare.d.ts +5 -2
- package/dist/build/fs-routing/prepare.d.ts.map +1 -1
- package/dist/build/index.cjs +19 -19
- package/dist/build/index.js +4 -4
- package/dist/build/plugins/local-storage-detector.d.ts +34 -6
- package/dist/build/plugins/local-storage-detector.d.ts.map +1 -1
- package/dist/bundler/index.cjs +3 -3
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-WIOL4WMZ.js → chunk-2P62SP4K.js} +3 -3
- package/dist/{chunk-WIOL4WMZ.js.map → chunk-2P62SP4K.js.map} +1 -1
- package/dist/{chunk-6ARGMWNC.js → chunk-B3NI3FBK.js} +116 -10
- package/dist/chunk-B3NI3FBK.js.map +1 -0
- package/dist/{chunk-R7M4BT5P.cjs → chunk-ETXDK7YK.cjs} +21 -21
- package/dist/{chunk-R7M4BT5P.cjs.map → chunk-ETXDK7YK.cjs.map} +1 -1
- package/dist/{chunk-ILNCPWNL.cjs → chunk-ICEWJMSM.cjs} +7 -7
- package/dist/{chunk-ILNCPWNL.cjs.map → chunk-ICEWJMSM.cjs.map} +1 -1
- package/dist/{chunk-JODIXW4D.js → chunk-RJWPICH3.js} +5 -5
- package/dist/{chunk-JODIXW4D.js.map → chunk-RJWPICH3.js.map} +1 -1
- package/dist/{chunk-2GJY6H6M.cjs → chunk-RVRIXED5.cjs} +116 -10
- package/dist/chunk-RVRIXED5.cjs.map +1 -0
- package/dist/{chunk-YODVBOD3.cjs → chunk-TF7ILBTX.cjs} +51 -21
- package/dist/chunk-TF7ILBTX.cjs.map +1 -0
- package/dist/{chunk-VQGZXTOJ.cjs → chunk-TPS3GZO7.cjs} +11 -11
- package/dist/{chunk-VQGZXTOJ.cjs.map → chunk-TPS3GZO7.cjs.map} +1 -1
- package/dist/{chunk-GGNUZ2A6.js → chunk-TUA7MQC5.js} +44 -14
- package/dist/chunk-TUA7MQC5.js.map +1 -0
- package/dist/{chunk-UA2DJWFT.js → chunk-WCHVXVD5.js} +3 -3
- package/dist/{chunk-UA2DJWFT.js.map → chunk-WCHVXVD5.js.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-deployment-mastra-server.md +2 -4
- package/dist/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/dist/server/handlers/restart-active-runs.d.ts.map +1 -1
- package/dist/server/index.cjs +10 -1
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +10 -1
- package/dist/server/index.js.map +1 -1
- package/package.json +12 -12
- package/dist/chunk-2GJY6H6M.cjs.map +0 -1
- package/dist/chunk-6ARGMWNC.js.map +0 -1
- package/dist/chunk-GGNUZ2A6.js.map +0 -1
- package/dist/chunk-YODVBOD3.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,146 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 1.51.0-alpha.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`4adc391`](https://github.com/mastra-ai/mastra/commit/4adc3911075249c352bb4832d2471922826344de), [`b486abf`](https://github.com/mastra-ai/mastra/commit/b486abfa2a7528c6f527e4015c819ea9fa54aaad)]:
|
|
8
|
+
- @mastra/core@1.51.0-alpha.10
|
|
9
|
+
- @mastra/server@1.51.0-alpha.10
|
|
10
|
+
|
|
11
|
+
## 1.51.0-alpha.9
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`edce8d2`](https://github.com/mastra-ai/mastra/commit/edce8d2769f19e27a05737c627af2d765472a4f8)]:
|
|
16
|
+
- @mastra/core@1.51.0-alpha.9
|
|
17
|
+
- @mastra/server@1.51.0-alpha.9
|
|
18
|
+
|
|
19
|
+
## 1.51.0-alpha.8
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`bd6d240`](https://github.com/mastra-ai/mastra/commit/bd6d2402db93dddaef0721667e7e8a030e7c6e16), [`0111486`](https://github.com/mastra-ai/mastra/commit/01114867612593eef5cfa2fda6a1194dfedda841), [`96a3749`](https://github.com/mastra-ai/mastra/commit/96a37492235f5b8076b3e3177d83ed5a5e44a640), [`02c2bd9`](https://github.com/mastra-ai/mastra/commit/02c2bd906b145ab806287712e1796d92bfc32c2a), [`3e26c87`](https://github.com/mastra-ai/mastra/commit/3e26c87de0c5bc2583b795ce6ca5889b6b161acb), [`a5008f2`](https://github.com/mastra-ai/mastra/commit/a5008f22ae710ad9402ea9f2547d8c02f74d384b)]:
|
|
24
|
+
- @mastra/core@1.51.0-alpha.8
|
|
25
|
+
- @mastra/server@1.51.0-alpha.8
|
|
26
|
+
|
|
27
|
+
## 1.51.0-alpha.7
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [[`25e7c12`](https://github.com/mastra-ai/mastra/commit/25e7c126a770069ae7fb7ecf1d2adb40e017b009), [`1ce5121`](https://github.com/mastra-ai/mastra/commit/1ce512155d122bb21f47d98383e82ffbf84b39e8), [`3cfc47a`](https://github.com/mastra-ai/mastra/commit/3cfc47a6b89940aadd0f46fb01ae9624a73a865d), [`2bb7817`](https://github.com/mastra-ai/mastra/commit/2bb78176112fde628483de2830528f7eee911e56), [`51d9870`](https://github.com/mastra-ai/mastra/commit/51d987032c689c2855374d0f244f5d654da809d1), [`5cab274`](https://github.com/mastra-ai/mastra/commit/5cab2744250e22d12fefa7b32637dce224233cee), [`7fa27d3`](https://github.com/mastra-ai/mastra/commit/7fa27d3b6f5ed68cd34e454a4d3ad9c482a0cfbc), [`a58dcbb`](https://github.com/mastra-ai/mastra/commit/a58dcbb546d7e1d65ebdc1f39e55f0908fcd9391), [`153bd3b`](https://github.com/mastra-ai/mastra/commit/153bd3b396bdfed6b74cf43de12db8fd2d83c04a), [`07bb863`](https://github.com/mastra-ai/mastra/commit/07bb8631919c6f7cf377dccd45b096e0f17fbed0), [`8a586ec`](https://github.com/mastra-ai/mastra/commit/8a586eca9a4914f31dff6140d0d45ac375b00669), [`3927473`](https://github.com/mastra-ai/mastra/commit/392747323ddb10c643d12be7b9ae913159dfaeed), [`25e7c12`](https://github.com/mastra-ai/mastra/commit/25e7c126a770069ae7fb7ecf1d2adb40e017b009), [`dce50dc`](https://github.com/mastra-ai/mastra/commit/dce50dc9a1c1fcd0f427bb5f6250ec74910cb04b), [`634caff`](https://github.com/mastra-ai/mastra/commit/634caff29a9200ad058b67d53f96d9e5832fb8a2), [`25e7c12`](https://github.com/mastra-ai/mastra/commit/25e7c126a770069ae7fb7ecf1d2adb40e017b009)]:
|
|
32
|
+
- @mastra/core@1.51.0-alpha.7
|
|
33
|
+
- @mastra/server@1.51.0-alpha.7
|
|
34
|
+
|
|
35
|
+
## 1.51.0-alpha.6
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Added durable-agent recovery for orphaned RUNNING runs after process restart. ([#19191](https://github.com/mastra-ai/mastra/pull/19191))
|
|
40
|
+
|
|
41
|
+
**What changed**
|
|
42
|
+
- `DurableAgent.listActiveRuns()` — discover in-flight durable runs for an agent from persistent storage, filtered by agentId, threadId, and resourceId (mirrors `listSuspendedRuns` but for `running` status).
|
|
43
|
+
- `DurableAgent.recover(runId, options?)` — rehydrate a single orphaned run's non-serializable state (`MessageList`, model, tools, memory, `SaveQueueManager`, processors, request context, agent span, `BackgroundTaskManager` + agent background-tasks config) from its persisted workflow snapshot, re-subscribe to the pubsub topic, and re-drive the workflow in the background. Returns the same `{ output, fullStream, runId, threadId, resourceId, cleanup, abort }` shape as `stream()`/`resume()`, so callers can stream the recovered response or attach later via `observe(runId)`. Memory writes flow through the rebuilt `SaveQueueManager` exactly like a fresh run.
|
|
44
|
+
- `DurableAgent.recoverActiveRuns(options?)` — bulk recovery hook that delegates to `recover(runId)` for each in-flight run discovered via `listActiveRuns()` (or a caller-supplied `runId`), awaits each workflow settlement, and returns `{ recovered, succeeded, failed }` counts. Use this on boot to drain the backlog; use `recover()` when you want to stream a specific run.
|
|
45
|
+
- The default workflow engine now persists `running` snapshots for the durable agentic loop, with a guard that prevents a `running` write from overwriting an already-`suspended` snapshot for the same run. Without this, `listActiveRuns()` would never see a live durable run in storage.
|
|
46
|
+
- Background-task state is re-wired on recovery so the `bg-task-check` step waits for pre-crash in-flight tasks (still tracked in `BackgroundTaskManager` storage), the `tool-call` step can still dispatch new tools as background tasks, and `llm-execution` still injects the background-task system prompt. Without this, the recovered segment would silently run with background-tasks disabled and could end before storage-backed tasks delivered their tool-result chunks.
|
|
47
|
+
- Snapshot rows are now deleted after a durable run reaches any non-suspended terminal status — this applies to `stream`/`generate` (the initial `run.start()`), `resume()`, `recover()`, and `recoverActiveRuns()`. Suspended terminals still keep their snapshots so a later resume/recover can find them. Mirrors the existing loop-stream cleanup so snapshot storage doesn't grow one stale row per completed durable run.
|
|
48
|
+
- `Mastra.recoverAllDurableAgents()` — new server-level fan-out that walks every registered agent, filters those exposing `recoverActiveRuns()` (default-engine `DurableAgent` only — Inngest and other externally-executed durable wrappers run their own recovery), and aggregates `{ agents, recovered, succeeded, failed }` counts. A per-agent failure is logged and skipped so one bad agent doesn't stop the rest.
|
|
49
|
+
- New `MastraConfig.recovery` option: `recovery?: { durableAgents?: 'auto' | 'off' }` (default `'off'`). When set to `'auto'`, the deployer's `/__restart-active-workflow-runs` boot handler will invoke `mastra.recoverAllDurableAgents()` right after `restartAllActiveWorkflowRuns()`, so both user workflows and durable-agent runs are re-driven from the same boot hook the CLI/deployer already call. Also exposed as `mastra.recoveryConfig` for callers who want to gate their own recovery pipelines on it.
|
|
50
|
+
- Recovery is opt-in on purpose. Auto-recovery re-runs the agentic loop from the last persisted snapshot, so it re-issues LLM calls (real cost) and re-executes tool calls (must be idempotent); in multi-instance deploys every replica will race to recover the same runs until a lease/lock is added. Leave `'off'` and call `mastra.recoverAllDurableAgents()` (or the per-agent APIs) from a cron, a leader-elected worker, or an admin endpoint if you need finer control.
|
|
51
|
+
|
|
52
|
+
**Why**
|
|
53
|
+
|
|
54
|
+
Previously, the durable agent's agentic loop was an awaited in-process Promise and `globalRunRegistry` was an in-memory TTLCache, so any RUNNING run silently died on process restart with no boot-time recovery or re-drive API (see issue #19056). Suspended runs already had `prepare`/`resume`/`listSuspendedRuns`; RUNNING runs now have the equivalent discover-and-recover pair.
|
|
55
|
+
|
|
56
|
+
**Usage**
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
// Opt into boot-time recovery for every durable agent on this Mastra instance.
|
|
60
|
+
// The deployer will call `mastra.recoverAllDurableAgents()` automatically
|
|
61
|
+
// after restarting active workflow runs.
|
|
62
|
+
const mastra = new Mastra({
|
|
63
|
+
agents: { support: supportDurableAgent },
|
|
64
|
+
storage,
|
|
65
|
+
recovery: { durableAgents: 'auto' },
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
// Or drive it yourself (cron, leader election, admin endpoint, etc.):
|
|
69
|
+
const { agents, recovered, succeeded, failed } = await mastra.recoverAllDurableAgents();
|
|
70
|
+
|
|
71
|
+
// Per-agent: drain all orphaned RUNNING runs on one agent.
|
|
72
|
+
const agent = mastra.getAgent('support') as DurableAgent;
|
|
73
|
+
await agent.recoverActiveRuns();
|
|
74
|
+
|
|
75
|
+
// Per-run: recover a specific run and stream its output to the caller.
|
|
76
|
+
const { fullStream, runId, cleanup } = await agent.recover('run-abc123');
|
|
77
|
+
for await (const chunk of fullStream) {
|
|
78
|
+
// forward chunks to the client, log them, etc.
|
|
79
|
+
}
|
|
80
|
+
cleanup();
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
- Updated dependencies [[`e2d5f37`](https://github.com/mastra-ai/mastra/commit/e2d5f373bd289be534d5f8694d34465010533df6), [`e2d5f37`](https://github.com/mastra-ai/mastra/commit/e2d5f373bd289be534d5f8694d34465010533df6)]:
|
|
84
|
+
- @mastra/server@1.51.0-alpha.6
|
|
85
|
+
- @mastra/core@1.51.0-alpha.6
|
|
86
|
+
|
|
87
|
+
## 1.51.0-alpha.5
|
|
88
|
+
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- Added file-system routing for a Mastra logger and per-agent scorers. ([#19262](https://github.com/mastra-ai/mastra/pull/19262))
|
|
92
|
+
|
|
93
|
+
Define a logger in `src/mastra/logger.ts` (default export) and it is auto-registered as the Mastra logger, just like `storage.ts` and `observability.ts`. A code-registered logger still wins.
|
|
94
|
+
|
|
95
|
+
Register scorers per agent by adding an `agents/<name>/scorers/` folder. Each module's default export (a `MastraScorer`, or a `{ scorer, sampling }` entry) is wired into that agent, keyed by filename. `config.scorers` wins on collision.
|
|
96
|
+
|
|
97
|
+
```text
|
|
98
|
+
src/mastra/
|
|
99
|
+
logger.ts # export default new PinoLogger({ name: 'App' })
|
|
100
|
+
agents/weather/
|
|
101
|
+
config.ts
|
|
102
|
+
scorers/
|
|
103
|
+
relevance.ts # export default myRelevanceScorer
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
- Updated dependencies [[`fb8aea3`](https://github.com/mastra-ai/mastra/commit/fb8aea384291e77311be3a64ee1717320d5c3c73), [`615783e`](https://github.com/mastra-ai/mastra/commit/615783ef8e27d7689faae84fc60709d4e423d4c9), [`4ce0163`](https://github.com/mastra-ai/mastra/commit/4ce0163dc86e675a86809685c8ce6c49f1aeb87e), [`fb8aea3`](https://github.com/mastra-ai/mastra/commit/fb8aea384291e77311be3a64ee1717320d5c3c73)]:
|
|
107
|
+
- @mastra/core@1.51.0-alpha.5
|
|
108
|
+
- @mastra/server@1.51.0-alpha.5
|
|
109
|
+
|
|
110
|
+
## 1.51.0-alpha.4
|
|
111
|
+
|
|
112
|
+
### Minor Changes
|
|
113
|
+
|
|
114
|
+
- Added anonymous feature usage telemetry for server startup surface counts and a `trackFeatureUsage()` API. ([#19159](https://github.com/mastra-ai/mastra/pull/19159))
|
|
115
|
+
|
|
116
|
+
### Patch Changes
|
|
117
|
+
|
|
118
|
+
- Updated dependencies [[`a5c6337`](https://github.com/mastra-ai/mastra/commit/a5c6337d23c7686c81a32ce62f550f610543a240), [`8b97958`](https://github.com/mastra-ai/mastra/commit/8b979589f9aa59ba67cac565949475f2ffeb4ac3), [`8410541`](https://github.com/mastra-ai/mastra/commit/84105412c60ecd3bb33a9838146f59c4b588228f), [`01b338c`](https://github.com/mastra-ai/mastra/commit/01b338c56271f0219606710e3e8b26dee27ac6c2), [`8b7361d`](https://github.com/mastra-ai/mastra/commit/8b7361d35de68b80d05d30a74e0c69e7218fd612), [`c43f3a9`](https://github.com/mastra-ai/mastra/commit/c43f3a9d1efde99b38789364ba4d0ba670f430e3)]:
|
|
119
|
+
- @mastra/core@1.51.0-alpha.4
|
|
120
|
+
- @mastra/server@1.51.0-alpha.4
|
|
121
|
+
|
|
122
|
+
## 1.51.0-alpha.3
|
|
123
|
+
|
|
124
|
+
### Patch Changes
|
|
125
|
+
|
|
126
|
+
- Updated dependencies [[`177010f`](https://github.com/mastra-ai/mastra/commit/177010ff096d2e4b28d89803be5b1a4cad2a0d6b), [`54a51e0`](https://github.com/mastra-ai/mastra/commit/54a51e0a484fe1ebad3fb1f7ef5282a075709eb7)]:
|
|
127
|
+
- @mastra/core@1.51.0-alpha.3
|
|
128
|
+
- @mastra/server@1.51.0-alpha.3
|
|
129
|
+
|
|
130
|
+
## 1.51.0-alpha.2
|
|
131
|
+
|
|
132
|
+
### Patch Changes
|
|
133
|
+
|
|
134
|
+
- Fixed a false-positive LOCAL_STORAGE_PATH preflight error that flagged storage paths like `file:./data.db` that don't exist in your project. The deploy bundler's local-storage detector now excludes everything under `.mastra/.build/` (deployer-generated intermediate chunks), not just `@mastra__*` shim files. Those chunks can carry JSDoc examples from library code (for example `LibSQLStore({ url: 'file:./data.db' })` from `@mastra/core`), which previously blocked `mastra server deploy` and forced `--skip-preflight` even though the user's code had no local storage paths. Local storage paths in your own source files are still detected. ([#19071](https://github.com/mastra-ai/mastra/pull/19071))
|
|
135
|
+
|
|
136
|
+
- Fixed deploy preflight false positives for env-guarded storage fallbacks. The build now records when a local storage path like `file:./.mastra-demo.db` is only used as a fallback behind an environment variable (for example `process.env.TURSO_DATABASE_URL || "file:./.mastra-demo.db"`), and which environment variables your own code reads, so the deploy preflight can tell dead fallbacks and library-internal variables apart from real problems. ([#19071](https://github.com/mastra-ai/mastra/pull/19071))
|
|
137
|
+
|
|
138
|
+
Also fixed another source of false `LOCAL_STORAGE_PATH` errors: dependencies installed via symlinks (pnpm `link:`/`file:`) resolve to paths outside `node_modules` and are no longer treated as your code.
|
|
139
|
+
|
|
140
|
+
- Updated dependencies [[`e955965`](https://github.com/mastra-ai/mastra/commit/e955965dce575a903e37cf054d28ea99aa48785e), [`860ef7e`](https://github.com/mastra-ai/mastra/commit/860ef7e77d92b63469cbe5857aa1e626197e43e9), [`17e818c`](https://github.com/mastra-ai/mastra/commit/17e818c51a958ba90641b1a959dc38faf8c034e9), [`4451dfe`](https://github.com/mastra-ai/mastra/commit/4451dfe857428e7abcc0261a507a2e186dae6d47), [`1d39058`](https://github.com/mastra-ai/mastra/commit/1d39058e548efd691799985d5c8af2737f1c3bd2)]:
|
|
141
|
+
- @mastra/core@1.51.0-alpha.2
|
|
142
|
+
- @mastra/server@1.51.0-alpha.2
|
|
143
|
+
|
|
3
144
|
## 1.50.2-alpha.1
|
|
4
145
|
|
|
5
146
|
### Patch Changes
|
package/dist/build/analyze.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkETXDK7YK_cjs = require('../chunk-ETXDK7YK.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "analyzeBundle", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkETXDK7YK_cjs.analyzeBundle; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=analyze.cjs.map
|
|
12
12
|
//# sourceMappingURL=analyze.cjs.map
|
package/dist/build/analyze.js
CHANGED
package/dist/build/bundler.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRVRIXED5_cjs = require('../chunk-RVRIXED5.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "createBundler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkRVRIXED5_cjs.createBundler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getInputOptions", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkRVRIXED5_cjs.getInputOptions; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "mastraInternalAliasPlugin", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkRVRIXED5_cjs.mastraInternalAliasPlugin; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "mastraToolsAliasPlugin", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkRVRIXED5_cjs.mastraToolsAliasPlugin; }
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=bundler.cjs.map
|
|
24
24
|
//# sourceMappingURL=bundler.cjs.map
|
package/dist/build/bundler.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createBundler, getInputOptions, mastraInternalAliasPlugin, mastraToolsAliasPlugin } from '../chunk-
|
|
1
|
+
export { createBundler, getInputOptions, mastraInternalAliasPlugin, mastraToolsAliasPlugin } from '../chunk-B3NI3FBK.js';
|
|
2
2
|
//# sourceMappingURL=bundler.js.map
|
|
3
3
|
//# sourceMappingURL=bundler.js.map
|
|
@@ -12,8 +12,8 @@ import type { DiscoveredFsAgent, DiscoveredFsSingleton, DiscoveredFsWorkflow } f
|
|
|
12
12
|
* 5. re-exports everything from the user's entry so this module is a drop-in
|
|
13
13
|
* replacement for the original `#mastra` target.
|
|
14
14
|
*
|
|
15
|
-
* `instructions.md`
|
|
16
|
-
*
|
|
15
|
+
* `instructions.md` is read into the generated wrapper. In dev, the CLI watcher
|
|
16
|
+
* regenerates that wrapper when the markdown file changes.
|
|
17
17
|
*
|
|
18
18
|
* @param userEntry slash-normalized absolute path to the user's mastra entry.
|
|
19
19
|
* @param agents discovered fs-routed agents (absolute, slash-normalized paths).
|
|
@@ -22,6 +22,7 @@ export declare function generateFsAgentsModule(userEntry: string | undefined, ag
|
|
|
22
22
|
workflows?: DiscoveredFsWorkflow[];
|
|
23
23
|
storage?: DiscoveredFsSingleton;
|
|
24
24
|
observability?: DiscoveredFsSingleton;
|
|
25
|
+
logger?: DiscoveredFsSingleton;
|
|
25
26
|
server?: DiscoveredFsSingleton;
|
|
26
27
|
studio?: DiscoveredFsSingleton;
|
|
27
28
|
}): Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../../src/build/fs-routing/codegen.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../../src/build/fs-routing/codegen.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AA4JjG;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,sBAAsB,CAC1C,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,MAAM,EAAE,iBAAiB,EAAE,EAC3B,OAAO,CAAC,EAAE;IACR,SAAS,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACnC,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC,GACA,OAAO,CAAC,MAAM,CAAC,CAgKjB;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,oBAAoB,EAAE,GAAG;IAC7E,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B,CAsBA"}
|
|
@@ -37,6 +37,11 @@ export interface DiscoveredFsAgent {
|
|
|
37
37
|
key: string;
|
|
38
38
|
path: string;
|
|
39
39
|
}[];
|
|
40
|
+
/** Scorers discovered under `scorers/`, in stable (sorted) order. */
|
|
41
|
+
scorers: {
|
|
42
|
+
key: string;
|
|
43
|
+
path: string;
|
|
44
|
+
}[];
|
|
40
45
|
/** Skills discovered under `skills/`, in stable (sorted) order. */
|
|
41
46
|
skills: DiscoveredFsSkill[];
|
|
42
47
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../../src/build/fs-routing/discover.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,GAAG,EAAE,MAAM,CAAC;IACZ,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iEAAiE;IACjE,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACvC,uFAAuF;IACvF,eAAe,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACjD,yFAAyF;IACzF,gBAAgB,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAClD,mEAAmE;IACnE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B;;;;;OAKG;IACH,SAAS,EAAE,iBAAiB,EAAE,CAAC;CAChC;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GACzB;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,uEAAuE;IACvE,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC,CAAC;
|
|
1
|
+
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../../src/build/fs-routing/discover.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,GAAG,EAAE,MAAM,CAAC;IACZ,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iEAAiE;IACjE,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACvC,uFAAuF;IACvF,eAAe,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACjD,yFAAyF;IACzF,gBAAgB,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAClD,qEAAqE;IACrE,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACzC,mEAAmE;IACnE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B;;;;;OAKG;IACH,SAAS,EAAE,iBAAiB,EAAE,CAAC;CAChC;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GACzB;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,uEAAuE;IACvE,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC,CAAC;AA0VN;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CACpC,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GACjC,OAAO,CAAC,iBAAiB,EAAE,CAAC,CA0B9B;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,kEAAkE;IAClE,GAAG,EAAE,MAAM,CAAC;IACZ,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAoC5F;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;CACd;AAOD;;;;;;;;;;;;GAYG;AACH,wBAAsB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAwBrH"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export interface PrepareFsAgentsEntryResult {
|
|
2
2
|
/**
|
|
3
3
|
* The entry file that should be fed to the bundler/analyzer. When fs-routed
|
|
4
|
-
* primitives (agents, workflows, storage, observability, server,
|
|
4
|
+
* primitives (agents, workflows, storage, observability, logger, server,
|
|
5
|
+
* studio) are
|
|
5
6
|
* found this is a generated wrapper module that registers them onto the
|
|
6
7
|
* user's mastra instance; otherwise it is the original entry unchanged.
|
|
7
8
|
* When auto-constructing (no user entry), this is always the generated module.
|
|
@@ -22,6 +23,8 @@ export interface PrepareFsAgentsEntryResult {
|
|
|
22
23
|
hasStorage: boolean;
|
|
23
24
|
/** Whether an `observability.ts` singleton was discovered. */
|
|
24
25
|
hasObservability: boolean;
|
|
26
|
+
/** Whether a `logger.ts` singleton was discovered. */
|
|
27
|
+
hasLogger: boolean;
|
|
25
28
|
/** Whether a `server.ts` singleton was discovered. */
|
|
26
29
|
hasServer: boolean;
|
|
27
30
|
/** Whether a `studio.ts` singleton was discovered. */
|
|
@@ -37,7 +40,7 @@ export interface PrepareFsAgentsEntryResult {
|
|
|
37
40
|
/**
|
|
38
41
|
* Discover fs-routed agents under `<mastraDir>/agents/*`, workflows under
|
|
39
42
|
* `<mastraDir>/workflows/`, and singleton config files (e.g. `storage.ts`,
|
|
40
|
-
* `observability.ts`, `server.ts`, `studio.ts`).
|
|
43
|
+
* `observability.ts`, `logger.ts`, `server.ts`, `studio.ts`).
|
|
41
44
|
* When any are found, generate a wrapper entry module that registers them onto
|
|
42
45
|
* the user's mastra instance. Returns the entry the bundler should use plus
|
|
43
46
|
* extra tool glob paths so `agents/*\/tools` are bundled.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare.d.ts","sourceRoot":"","sources":["../../../src/build/fs-routing/prepare.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,0BAA0B;IACzC
|
|
1
|
+
{"version":3,"file":"prepare.d.ts","sourceRoot":"","sources":["../../../src/build/fs-routing/prepare.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,0BAA0B;IACzC;;;;;;;OAOG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,+EAA+E;IAC/E,UAAU,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,6CAA6C;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,uDAAuD;IACvD,UAAU,EAAE,OAAO,CAAC;IACpB,8DAA8D;IAC9D,gBAAgB,EAAE,OAAO,CAAC;IAC1B,sDAAsD;IACtD,SAAS,EAAE,OAAO,CAAC;IACnB,sDAAsD;IACtD,SAAS,EAAE,OAAO,CAAC;IACnB,sDAAsD;IACtD,SAAS,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,0BAA0B,CAAC,CAsErC;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAO1F"}
|
package/dist/build/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkTF7ILBTX_cjs = require('../chunk-TF7ILBTX.cjs');
|
|
4
|
+
var chunkICEWJMSM_cjs = require('../chunk-ICEWJMSM.cjs');
|
|
5
|
+
var chunkETXDK7YK_cjs = require('../chunk-ETXDK7YK.cjs');
|
|
6
|
+
var chunkRVRIXED5_cjs = require('../chunk-RVRIXED5.cjs');
|
|
7
7
|
var chunkVKAFARW6_cjs = require('../chunk-VKAFARW6.cjs');
|
|
8
8
|
var chunkJZRFRUGM_cjs = require('../chunk-JZRFRUGM.cjs');
|
|
9
9
|
|
|
@@ -11,63 +11,63 @@ var chunkJZRFRUGM_cjs = require('../chunk-JZRFRUGM.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "createWatcher", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkTF7ILBTX_cjs.createWatcher; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "discoverFsAgents", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkTF7ILBTX_cjs.discoverFsAgents; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "discoverFsSingleton", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkTF7ILBTX_cjs.discoverFsSingleton; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "discoverFsWorkflows", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkTF7ILBTX_cjs.discoverFsWorkflows; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "generateFsAgentsModule", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkTF7ILBTX_cjs.generateFsAgentsModule; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "generateFsWorkflowsCodegen", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkTF7ILBTX_cjs.generateFsWorkflowsCodegen; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "getServerOptions", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkTF7ILBTX_cjs.getServerOptions; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "getWatcherInputOptions", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkTF7ILBTX_cjs.getInputOptions; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "mirrorFsAgentWorkspaces", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkTF7ILBTX_cjs.mirrorFsAgentWorkspaces; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "prepareFsAgentsEntry", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkTF7ILBTX_cjs.prepareFsAgentsEntry; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "writeFsAgentsEntry", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkTF7ILBTX_cjs.writeFsAgentsEntry; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "getBundlerOptions", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkICEWJMSM_cjs.getBundlerOptions; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "analyzeBundle", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkETXDK7YK_cjs.analyzeBundle; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "createBundler", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkRVRIXED5_cjs.createBundler; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "getBundlerInputOptions", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkRVRIXED5_cjs.getInputOptions; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "Deps", {
|
|
73
73
|
enumerable: true,
|
package/dist/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { createWatcher, discoverFsAgents, discoverFsSingleton, discoverFsWorkflows, generateFsAgentsModule, generateFsWorkflowsCodegen, getServerOptions, getInputOptions as getWatcherInputOptions, mirrorFsAgentWorkspaces, prepareFsAgentsEntry, writeFsAgentsEntry } from '../chunk-
|
|
2
|
-
export { getBundlerOptions } from '../chunk-
|
|
3
|
-
export { analyzeBundle } from '../chunk-
|
|
4
|
-
export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-
|
|
1
|
+
export { createWatcher, discoverFsAgents, discoverFsSingleton, discoverFsWorkflows, generateFsAgentsModule, generateFsWorkflowsCodegen, getServerOptions, getInputOptions as getWatcherInputOptions, mirrorFsAgentWorkspaces, prepareFsAgentsEntry, writeFsAgentsEntry } from '../chunk-TUA7MQC5.js';
|
|
2
|
+
export { getBundlerOptions } from '../chunk-WCHVXVD5.js';
|
|
3
|
+
export { analyzeBundle } from '../chunk-2P62SP4K.js';
|
|
4
|
+
export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-B3NI3FBK.js';
|
|
5
5
|
export { Deps, FileService } from '../chunk-ZL66GDLP.js';
|
|
6
6
|
export { detectRuntime, escapeStudioHtmlValue, injectStudioHtmlConfig, normalizeStudioBase } from '../chunk-WP65JQAT.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,20 +3,48 @@ export interface LocalStorageDetection {
|
|
|
3
3
|
value: string;
|
|
4
4
|
hint: string;
|
|
5
5
|
module: string;
|
|
6
|
+
/**
|
|
7
|
+
* Name of the env var that guards this literal at runtime, when the
|
|
8
|
+
* literal is the fallback arm of a `process.env.X || literal` (or `??`)
|
|
9
|
+
* expression. The CLI preflight uses this to suppress or soften the
|
|
10
|
+
* error when the guarding var is present in the deploy env.
|
|
11
|
+
*/
|
|
12
|
+
guardedBy?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Unified preflight metadata emitted as `preflight-metadata.json`.
|
|
16
|
+
* Superset of the legacy `preflight-local-paths.json` (which stays emitted
|
|
17
|
+
* for one release so older CLIs keep working with newer deployers).
|
|
18
|
+
*/
|
|
19
|
+
export interface PreflightMetadata {
|
|
20
|
+
version: 1;
|
|
21
|
+
localPaths: LocalStorageDetection[];
|
|
22
|
+
userEnvRefs: string[];
|
|
6
23
|
}
|
|
7
24
|
/**
|
|
8
25
|
* Rollup plugin that detects host-local storage URLs (e.g. `file:./mastra.db`,
|
|
9
|
-
* `postgres://localhost`) in **user source modules** during bundling
|
|
26
|
+
* `postgres://localhost`) in **user source modules** during bundling, and
|
|
27
|
+
* collects the env vars user code reads via `process.env.X`.
|
|
10
28
|
*
|
|
11
29
|
* Only modules outside `node_modules` (and the deployer's own
|
|
12
|
-
* `.mastra/.build
|
|
30
|
+
* `.mastra/.build/` pre-bundled files) are inspected, so library code
|
|
13
31
|
* (like Agent Builder prompt templates or JSDoc examples in `@mastra/core`)
|
|
14
|
-
* is naturally excluded.
|
|
32
|
+
* is naturally excluded. When `rootDir` is given, modules outside it are
|
|
33
|
+
* also excluded — symlinked dependencies (pnpm `link:`/`file:`) resolve to
|
|
34
|
+
* real paths that never contain `node_modules`. Tree-shaken modules are
|
|
35
|
+
* excluded via
|
|
15
36
|
* `generateBundle` — only modules that actually contribute rendered code to
|
|
16
37
|
* the output are reported.
|
|
17
38
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
39
|
+
* When a detected literal is the fallback arm of a `process.env.X || literal`
|
|
40
|
+
* expression, `guardedBy: "X"` is recorded so the CLI preflight can apply
|
|
41
|
+
* deploy-time env context instead of hard-erroring on a dead fallback.
|
|
42
|
+
*
|
|
43
|
+
* Two assets are emitted into the output directory for the CLI preflight:
|
|
44
|
+
* - `preflight-metadata.json` — unified metadata (local paths + user env refs)
|
|
45
|
+
* - `preflight-local-paths.json` — legacy shape, kept for one release so an
|
|
46
|
+
* older globally-installed CLI paired with a newer project-local deployer
|
|
47
|
+
* doesn't lose the LOCAL_STORAGE_PATH check.
|
|
20
48
|
*/
|
|
21
|
-
export declare function localStorageDetector(): Plugin;
|
|
49
|
+
export declare function localStorageDetector(rootDir?: string): Plugin;
|
|
22
50
|
//# sourceMappingURL=local-storage-detector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-storage-detector.d.ts","sourceRoot":"","sources":["../../../src/build/plugins/local-storage-detector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAqBrC,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"local-storage-detector.d.ts","sourceRoot":"","sources":["../../../src/build/plugins/local-storage-detector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAqBrC,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,CAAC,CAAC;IACX,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAgID;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAuG7D"}
|
package/dist/bundler/index.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkTPS3GZO7_cjs = require('../chunk-TPS3GZO7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Bundler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkTPS3GZO7_cjs.Bundler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "IS_DEFAULT", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkTPS3GZO7_cjs.IS_DEFAULT; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=index.cjs.map
|
|
16
16
|
//# sourceMappingURL=index.cjs.map
|
package/dist/bundler/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getPackageMetadata, protocolExternalResolver, mastraInternalAliasPlugin, mastraToolsAliasPlugin, tsConfigPaths, esbuild, removeDeployer, getPackageRootPath, subpathExternalsResolver, esmShim } from './chunk-
|
|
1
|
+
import { getPackageMetadata, protocolExternalResolver, mastraInternalAliasPlugin, mastraToolsAliasPlugin, tsConfigPaths, esbuild, removeDeployer, getPackageRootPath, subpathExternalsResolver, esmShim } from './chunk-B3NI3FBK.js';
|
|
2
2
|
import { slash, isDependencyPartOfPackage, getPackageName, isBuiltinModule, isBareModuleSpecifier, isExternalProtocolImport, getCompiledDepCachePath, rollupSafeName, getNodeResolveOptions } from './chunk-WP65JQAT.js';
|
|
3
3
|
import { existsSync } from 'fs';
|
|
4
4
|
import { readFile, writeFile } from 'fs/promises';
|
|
@@ -1504,5 +1504,5 @@ async function analyzeBundle(entries, mastraEntry, {
|
|
|
1504
1504
|
}
|
|
1505
1505
|
|
|
1506
1506
|
export { aliasHono, analyzeBundle, getWorkspaceInformation };
|
|
1507
|
-
//# sourceMappingURL=chunk-
|
|
1508
|
-
//# sourceMappingURL=chunk-
|
|
1507
|
+
//# sourceMappingURL=chunk-2P62SP4K.js.map
|
|
1508
|
+
//# sourceMappingURL=chunk-2P62SP4K.js.map
|