@mastra/deployer 1.50.0-alpha.1 → 1.50.0-alpha.3
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 +44 -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 +18 -2
- package/dist/build/fs-routing/codegen.d.ts.map +1 -1
- package/dist/build/fs-routing/discover.d.ts +43 -0
- package/dist/build/fs-routing/discover.d.ts.map +1 -1
- package/dist/build/fs-routing/prepare.d.ts +19 -10
- package/dist/build/fs-routing/prepare.d.ts.map +1 -1
- package/dist/build/index.cjs +28 -16
- package/dist/build/index.d.ts +3 -3
- package/dist/build/index.d.ts.map +1 -1
- package/dist/build/index.js +4 -4
- package/dist/build/package-info.d.ts.map +1 -1
- package/dist/bundler/index.cjs +3 -3
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-YWKYOGOS.cjs → chunk-5QC4TJK2.cjs} +21 -21
- package/dist/{chunk-YWKYOGOS.cjs.map → chunk-5QC4TJK2.cjs.map} +1 -1
- package/dist/{chunk-ILNCPWNL.cjs → chunk-JFZNJSRK.cjs} +7 -7
- package/dist/{chunk-ILNCPWNL.cjs.map → chunk-JFZNJSRK.cjs.map} +1 -1
- package/dist/{chunk-LJBNHINW.js → chunk-NMFATLML.js} +3 -3
- package/dist/{chunk-LJBNHINW.js.map → chunk-NMFATLML.js.map} +1 -1
- package/dist/{chunk-YMYRP2K7.cjs → chunk-O44B4WZN.cjs} +157 -22
- package/dist/chunk-O44B4WZN.cjs.map +1 -0
- package/dist/{chunk-THSS3CYX.js → chunk-SAYJHBRI.js} +149 -17
- package/dist/chunk-SAYJHBRI.js.map +1 -0
- package/dist/{chunk-6ARGMWNC.js → chunk-TA65GR5X.js} +46 -5
- package/dist/chunk-TA65GR5X.js.map +1 -0
- package/dist/{chunk-FR6IK3FQ.cjs → chunk-WWXZGA4Z.cjs} +11 -11
- package/dist/{chunk-FR6IK3FQ.cjs.map → chunk-WWXZGA4Z.cjs.map} +1 -1
- package/dist/{chunk-I7PL3OZ7.js → chunk-XDPH3U25.js} +5 -5
- package/dist/{chunk-I7PL3OZ7.js.map → chunk-XDPH3U25.js.map} +1 -1
- package/dist/{chunk-UA2DJWFT.js → chunk-YPDATVNL.js} +3 -3
- package/dist/{chunk-UA2DJWFT.js.map → chunk-YPDATVNL.js.map} +1 -1
- package/dist/{chunk-2GJY6H6M.cjs → chunk-YZYIXVB4.cjs} +47 -5
- package/dist/chunk-YZYIXVB4.cjs.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/package.json +7 -7
- package/dist/chunk-2GJY6H6M.cjs.map +0 -1
- package/dist/chunk-6ARGMWNC.js.map +0 -1
- package/dist/chunk-THSS3CYX.js.map +0 -1
- package/dist/chunk-YMYRP2K7.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 1.50.0-alpha.3
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added file-system routed storage support. A `storage.ts` file under the mastra directory is now auto-discovered and registered during `mastra dev` / `mastra build`. The default export replaces the InMemoryStore fallback. Code-registered storage (passed to `new Mastra({storage})`) wins on collision. ([#18885](https://github.com/mastra-ai/mastra/pull/18885))
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
// src/mastra/storage.ts
|
|
11
|
+
import { LibSQLStore } from '@mastra/libsql';
|
|
12
|
+
|
|
13
|
+
export default new LibSQLStore({ url: 'file:local.db' });
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Fixed flat markdown skills crashing at runtime when missing a description in frontmatter. Discovery now fails early with a clear error pointing to the file and the Agent Skills spec. ([#18935](https://github.com/mastra-ai/mastra/pull/18935))
|
|
19
|
+
|
|
20
|
+
- Fixed deployer output dependency versions for packages that do not export package.json. ([#18930](https://github.com/mastra-ai/mastra/pull/18930))
|
|
21
|
+
|
|
22
|
+
- Update `@mastra/core` peer dependency for the unified schedules API ([#18874](https://github.com/mastra-ai/mastra/pull/18874))
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [[`b291760`](https://github.com/mastra-ai/mastra/commit/b291760df9d6c7e4fc72606c8f0a4af2cf6e946c), [`29b7ea6`](https://github.com/mastra-ai/mastra/commit/29b7ea64e72b5523d5bdcbd34ee03d2b854d54e1), [`10959d5`](https://github.com/mastra-ai/mastra/commit/10959d509d824f682d40ff96e05ee044aec3b0e5), [`d889c04`](https://github.com/mastra-ai/mastra/commit/d889c046468a97ba9e90007dbca729b4fecf5db0), [`ffc3c17`](https://github.com/mastra-ai/mastra/commit/ffc3c17274ea17c11aa6f73d3140649cd7fc8abc), [`3908e53`](https://github.com/mastra-ai/mastra/commit/3908e53ce04bbea04f5e0c097d7aa298c35fabee), [`3908e53`](https://github.com/mastra-ai/mastra/commit/3908e53ce04bbea04f5e0c097d7aa298c35fabee), [`3908e53`](https://github.com/mastra-ai/mastra/commit/3908e53ce04bbea04f5e0c097d7aa298c35fabee)]:
|
|
25
|
+
- @mastra/core@1.50.0-alpha.3
|
|
26
|
+
- @mastra/server@1.50.0-alpha.3
|
|
27
|
+
|
|
28
|
+
## 1.50.0-alpha.2
|
|
29
|
+
|
|
30
|
+
### Minor Changes
|
|
31
|
+
|
|
32
|
+
- Added file-system-routed workflows support. Workflows placed in `workflows/*.ts` under the mastra directory are now auto-discovered and registered during `mastra dev` / `mastra build`, matching the existing file-based agents convention. Code-registered workflows win on name collisions. ([#18883](https://github.com/mastra-ai/mastra/pull/18883))
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
// src/mastra/workflows/onboarding.ts
|
|
36
|
+
import { createWorkflow } from '@mastra/core/workflows';
|
|
37
|
+
|
|
38
|
+
export default createWorkflow({ id: 'onboarding' /* ...steps */ });
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- Updated dependencies [[`a51c63d`](https://github.com/mastra-ai/mastra/commit/a51c63d8ee639e4daeba2a0be093efa6a1b5e52f), [`02705fd`](https://github.com/mastra-ai/mastra/commit/02705fd2f5a9062210d64ea061adeeb10dc9452e)]:
|
|
44
|
+
- @mastra/core@1.50.0-alpha.2
|
|
45
|
+
- @mastra/server@1.50.0-alpha.2
|
|
46
|
+
|
|
3
47
|
## 1.50.0-alpha.1
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
package/dist/build/analyze.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5QC4TJK2_cjs = require('../chunk-5QC4TJK2.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 chunk5QC4TJK2_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 chunkYZYIXVB4_cjs = require('../chunk-YZYIXVB4.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 chunkYZYIXVB4_cjs.createBundler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getInputOptions", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkYZYIXVB4_cjs.getInputOptions; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "mastraInternalAliasPlugin", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkYZYIXVB4_cjs.mastraInternalAliasPlugin; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "mastraToolsAliasPlugin", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkYZYIXVB4_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-TA65GR5X.js';
|
|
2
2
|
//# sourceMappingURL=bundler.js.map
|
|
3
3
|
//# sourceMappingURL=bundler.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DiscoveredFsAgent } from './discover.js';
|
|
1
|
+
import type { DiscoveredFsAgent, DiscoveredFsSingleton, DiscoveredFsWorkflow } from './discover.js';
|
|
2
2
|
/**
|
|
3
3
|
* Generate the source of a wrapper module that:
|
|
4
4
|
* 1. imports the user's real Mastra entry,
|
|
@@ -18,5 +18,21 @@ import type { DiscoveredFsAgent } from './discover.js';
|
|
|
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).
|
|
20
20
|
*/
|
|
21
|
-
export declare function generateFsAgentsModule(userEntry: string, agents: DiscoveredFsAgent[]
|
|
21
|
+
export declare function generateFsAgentsModule(userEntry: string, agents: DiscoveredFsAgent[], options?: {
|
|
22
|
+
workflows?: DiscoveredFsWorkflow[];
|
|
23
|
+
storage?: DiscoveredFsSingleton;
|
|
24
|
+
observability?: DiscoveredFsSingleton;
|
|
25
|
+
}): Promise<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Generate the workflow-registration lines to splice into the generated wrapper
|
|
28
|
+
* module. Emits import statements for each discovered workflow module and a
|
|
29
|
+
* registration block that calls `__registerFsWorkflows` on the user's mastra.
|
|
30
|
+
*
|
|
31
|
+
* Returns `{ importLines, registrationLines }` so the caller can place them at
|
|
32
|
+
* the correct positions in the wrapper source.
|
|
33
|
+
*/
|
|
34
|
+
export declare function generateFsWorkflowsCodegen(workflows: DiscoveredFsWorkflow[]): {
|
|
35
|
+
importLines: string[];
|
|
36
|
+
registrationLines: string[];
|
|
37
|
+
};
|
|
22
38
|
//# sourceMappingURL=codegen.d.ts.map
|
|
@@ -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,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;AA0HjG;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,sBAAsB,CAC1C,SAAS,EAAE,MAAM,EACjB,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;CACvC,GACA,OAAO,CAAC,MAAM,CAAC,CA2GjB;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"}
|
|
@@ -68,4 +68,47 @@ export type DiscoveredFsSkill = {
|
|
|
68
68
|
* evaluation — only filesystem inspection.
|
|
69
69
|
*/
|
|
70
70
|
export declare function discoverFsAgents(mastraDir: string, onWarn?: (message: string) => void): Promise<DiscoveredFsAgent[]>;
|
|
71
|
+
/**
|
|
72
|
+
* A file-system routed workflow file discovered under `<mastraDir>/workflows/`.
|
|
73
|
+
* All paths are absolute and slash-normalized so they can be embedded into
|
|
74
|
+
* generated module source on any platform.
|
|
75
|
+
*/
|
|
76
|
+
export interface DiscoveredFsWorkflow {
|
|
77
|
+
/** Workflow key derived from the filename (without extension). */
|
|
78
|
+
key: string;
|
|
79
|
+
/** Absolute, slash-normalized path to the workflow module. */
|
|
80
|
+
path: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Scan `<mastraDir>/workflows/` for file-system routed workflow modules. Only
|
|
84
|
+
* files whose source contains an `export default` are treated as fs-routed
|
|
85
|
+
* workflows — this convention distinguishes them from workflow files that are
|
|
86
|
+
* manually imported and registered programmatically. Returns descriptors with
|
|
87
|
+
* absolute, slash-normalized paths ready for codegen. Performs no module
|
|
88
|
+
* evaluation — only filesystem and source-text inspection.
|
|
89
|
+
*/
|
|
90
|
+
export declare function discoverFsWorkflows(mastraDir: string): Promise<DiscoveredFsWorkflow[]>;
|
|
91
|
+
/**
|
|
92
|
+
* A discovered singleton config file under `<mastraDir>/`. All paths are
|
|
93
|
+
* absolute and slash-normalized so they can be embedded into generated module
|
|
94
|
+
* source on any platform.
|
|
95
|
+
*/
|
|
96
|
+
export interface DiscoveredFsSingleton {
|
|
97
|
+
/** Absolute, slash-normalized path to the singleton module. */
|
|
98
|
+
path: string;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Check for a singleton config file (e.g. `storage.ts`, `storage.js`) directly
|
|
102
|
+
* under `<mastraDir>`. Returns the first matching file path or `undefined`.
|
|
103
|
+
* Symlinks are rejected for security.
|
|
104
|
+
*
|
|
105
|
+
* Convention: only files with `export default` are fs-routed singletons. Files
|
|
106
|
+
* using named exports are assumed to be manually imported into the user's
|
|
107
|
+
* `index.ts`, so they are ignored to remain backward-compatible with existing
|
|
108
|
+
* project structures.
|
|
109
|
+
*
|
|
110
|
+
* `name` must be a bare identifier — path separators and traversal sequences are
|
|
111
|
+
* rejected so the lookup can never escape `<mastraDir>`.
|
|
112
|
+
*/
|
|
113
|
+
export declare function discoverFsSingleton(mastraDir: string, name: string): Promise<DiscoveredFsSingleton | undefined>;
|
|
71
114
|
//# sourceMappingURL=discover.d.ts.map
|
|
@@ -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,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,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;AAqSN;;;;;;;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,8 +1,9 @@
|
|
|
1
1
|
export interface PrepareFsAgentsEntryResult {
|
|
2
2
|
/**
|
|
3
3
|
* The entry file that should be fed to the bundler/analyzer. When fs-routed
|
|
4
|
-
* agents are found this is a
|
|
5
|
-
*
|
|
4
|
+
* primitives (agents, workflows, storage, observability) are found this is a
|
|
5
|
+
* generated wrapper module that registers them onto the user's mastra
|
|
6
|
+
* instance; otherwise it is the original entry unchanged.
|
|
6
7
|
*/
|
|
7
8
|
entryFile: string;
|
|
8
9
|
/**
|
|
@@ -12,26 +13,34 @@ export interface PrepareFsAgentsEntryResult {
|
|
|
12
13
|
toolPaths: string[];
|
|
13
14
|
/** Number of fs-routed agents discovered. */
|
|
14
15
|
agentCount: number;
|
|
16
|
+
/** Number of fs-routed workflows discovered. */
|
|
17
|
+
workflowCount: number;
|
|
18
|
+
/** Whether a `storage.ts` singleton was discovered. */
|
|
19
|
+
hasStorage: boolean;
|
|
20
|
+
/** Whether an `observability.ts` singleton was discovered. */
|
|
21
|
+
hasObservability: boolean;
|
|
15
22
|
/**
|
|
16
23
|
* Generated wrapper source to write to {@link entryFile}, or `undefined` when
|
|
17
|
-
* there are no fs-routed
|
|
18
|
-
* *after* `bundler.prepare()` empties the output directory — otherwise the
|
|
24
|
+
* there are no fs-routed primitives. The write is deferred so callers can run
|
|
25
|
+
* it *after* `bundler.prepare()` empties the output directory — otherwise the
|
|
19
26
|
* wrapper is wiped before the bundler reads it.
|
|
20
27
|
*/
|
|
21
28
|
moduleSource?: string;
|
|
22
29
|
}
|
|
23
30
|
/**
|
|
24
|
-
* Discover fs-routed agents under `<mastraDir>/agents
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
31
|
+
* Discover fs-routed agents under `<mastraDir>/agents/*`, workflows under
|
|
32
|
+
* `<mastraDir>/workflows/`, and singleton config files (e.g. `storage.ts`,
|
|
33
|
+
* `observability.ts`).
|
|
34
|
+
* When any are found, generate a wrapper entry module that registers them onto
|
|
35
|
+
* the user's mastra instance. Returns the entry the bundler should use plus
|
|
36
|
+
* extra tool glob paths so `agents/*\/tools` are bundled.
|
|
28
37
|
*
|
|
29
38
|
* This does NOT write the wrapper to disk; call {@link writeFsAgentsEntry} with
|
|
30
39
|
* the result after `bundler.prepare()` so the generated file is not wiped when
|
|
31
40
|
* the output directory is emptied.
|
|
32
41
|
*
|
|
33
|
-
* When no fs-routed
|
|
34
|
-
* so existing code-only projects are completely unaffected.
|
|
42
|
+
* When no fs-routed primitives are present the original entry is returned
|
|
43
|
+
* unchanged, so existing code-only projects are completely unaffected.
|
|
35
44
|
*/
|
|
36
45
|
export declare function prepareFsAgentsEntry(mastraDir: string, entryFile: string, outputDirectory: string): Promise<PrepareFsAgentsEntryResult>;
|
|
37
46
|
/**
|
|
@@ -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;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;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;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,0BAA0B,CAAC,CAkCrC;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 chunkO44B4WZN_cjs = require('../chunk-O44B4WZN.cjs');
|
|
4
|
+
var chunkJFZNJSRK_cjs = require('../chunk-JFZNJSRK.cjs');
|
|
5
|
+
var chunk5QC4TJK2_cjs = require('../chunk-5QC4TJK2.cjs');
|
|
6
|
+
var chunkYZYIXVB4_cjs = require('../chunk-YZYIXVB4.cjs');
|
|
7
7
|
var chunkVKAFARW6_cjs = require('../chunk-VKAFARW6.cjs');
|
|
8
8
|
var chunkJZRFRUGM_cjs = require('../chunk-JZRFRUGM.cjs');
|
|
9
9
|
|
|
@@ -11,51 +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 chunkO44B4WZN_cjs.createWatcher; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "discoverFsAgents", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkO44B4WZN_cjs.discoverFsAgents; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "discoverFsSingleton", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkO44B4WZN_cjs.discoverFsSingleton; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "discoverFsWorkflows", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkO44B4WZN_cjs.discoverFsWorkflows; }
|
|
19
27
|
});
|
|
20
28
|
Object.defineProperty(exports, "generateFsAgentsModule", {
|
|
21
29
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkO44B4WZN_cjs.generateFsAgentsModule; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "generateFsWorkflowsCodegen", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkO44B4WZN_cjs.generateFsWorkflowsCodegen; }
|
|
23
35
|
});
|
|
24
36
|
Object.defineProperty(exports, "getServerOptions", {
|
|
25
37
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkO44B4WZN_cjs.getServerOptions; }
|
|
27
39
|
});
|
|
28
40
|
Object.defineProperty(exports, "getWatcherInputOptions", {
|
|
29
41
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkO44B4WZN_cjs.getInputOptions; }
|
|
31
43
|
});
|
|
32
44
|
Object.defineProperty(exports, "mirrorFsAgentWorkspaces", {
|
|
33
45
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkO44B4WZN_cjs.mirrorFsAgentWorkspaces; }
|
|
35
47
|
});
|
|
36
48
|
Object.defineProperty(exports, "prepareFsAgentsEntry", {
|
|
37
49
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkO44B4WZN_cjs.prepareFsAgentsEntry; }
|
|
39
51
|
});
|
|
40
52
|
Object.defineProperty(exports, "writeFsAgentsEntry", {
|
|
41
53
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkO44B4WZN_cjs.writeFsAgentsEntry; }
|
|
43
55
|
});
|
|
44
56
|
Object.defineProperty(exports, "getBundlerOptions", {
|
|
45
57
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkJFZNJSRK_cjs.getBundlerOptions; }
|
|
47
59
|
});
|
|
48
60
|
Object.defineProperty(exports, "analyzeBundle", {
|
|
49
61
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk5QC4TJK2_cjs.analyzeBundle; }
|
|
51
63
|
});
|
|
52
64
|
Object.defineProperty(exports, "createBundler", {
|
|
53
65
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkYZYIXVB4_cjs.createBundler; }
|
|
55
67
|
});
|
|
56
68
|
Object.defineProperty(exports, "getBundlerInputOptions", {
|
|
57
69
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkYZYIXVB4_cjs.getInputOptions; }
|
|
59
71
|
});
|
|
60
72
|
Object.defineProperty(exports, "Deps", {
|
|
61
73
|
enumerable: true,
|
package/dist/build/index.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ export { getServerOptions } from './serverOptions.js';
|
|
|
7
7
|
export { getBundlerOptions } from './bundlerOptions.js';
|
|
8
8
|
export { normalizeStudioBase, detectRuntime, injectStudioHtmlConfig, escapeStudioHtmlValue } from './utils.js';
|
|
9
9
|
export type { RuntimePlatform, BundlerPlatform, StudioInjectionConfig } from './utils.js';
|
|
10
|
-
export { discoverFsAgents } from './fs-routing/discover.js';
|
|
11
|
-
export type { DiscoveredFsAgent } from './fs-routing/discover.js';
|
|
12
|
-
export { generateFsAgentsModule } from './fs-routing/codegen.js';
|
|
10
|
+
export { discoverFsAgents, discoverFsSingleton, discoverFsWorkflows } from './fs-routing/discover.js';
|
|
11
|
+
export type { DiscoveredFsAgent, DiscoveredFsSingleton, DiscoveredFsWorkflow } from './fs-routing/discover.js';
|
|
12
|
+
export { generateFsAgentsModule, generateFsWorkflowsCodegen } from './fs-routing/codegen.js';
|
|
13
13
|
export { prepareFsAgentsEntry, writeFsAgentsEntry } from './fs-routing/prepare.js';
|
|
14
14
|
export type { PrepareFsAgentsEntryResult } from './fs-routing/prepare.js';
|
|
15
15
|
export { mirrorFsAgentWorkspaces } from './fs-routing/mirror.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,MAAM,uBAAuB,CAAC;
|
|
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,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { createWatcher, discoverFsAgents, generateFsAgentsModule, 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-SAYJHBRI.js';
|
|
2
|
+
export { getBundlerOptions } from '../chunk-YPDATVNL.js';
|
|
3
|
+
export { analyzeBundle } from '../chunk-NMFATLML.js';
|
|
4
|
+
export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-TA65GR5X.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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-info.d.ts","sourceRoot":"","sources":["../../src/build/package-info.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"package-info.d.ts","sourceRoot":"","sources":["../../src/build/package-info.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA4DH;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAyBzG;AAqBD,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,EACnB,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAmB9E"}
|
package/dist/bundler/index.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWWXZGA4Z_cjs = require('../chunk-WWXZGA4Z.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 chunkWWXZGA4Z_cjs.Bundler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "IS_DEFAULT", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkWWXZGA4Z_cjs.IS_DEFAULT; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=index.cjs.map
|
|
16
16
|
//# sourceMappingURL=index.cjs.map
|
package/dist/bundler/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYZYIXVB4_cjs = require('./chunk-YZYIXVB4.cjs');
|
|
4
4
|
var chunkJZRFRUGM_cjs = require('./chunk-JZRFRUGM.cjs');
|
|
5
5
|
var fs = require('fs');
|
|
6
6
|
var promises = require('fs/promises');
|
|
@@ -298,22 +298,22 @@ function getInputPlugins({ entry, isVirtualFile }, mastraEntry, { sourcemapEnabl
|
|
|
298
298
|
}
|
|
299
299
|
plugins.push(
|
|
300
300
|
...[
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
301
|
+
chunkYZYIXVB4_cjs.protocolExternalResolver(),
|
|
302
|
+
chunkYZYIXVB4_cjs.mastraInternalAliasPlugin(mastraEntry),
|
|
303
|
+
chunkYZYIXVB4_cjs.mastraToolsAliasPlugin(),
|
|
304
|
+
chunkYZYIXVB4_cjs.tsConfigPaths(),
|
|
305
305
|
json__default.default(),
|
|
306
|
-
|
|
306
|
+
chunkYZYIXVB4_cjs.esbuild(),
|
|
307
307
|
commonjs__default.default({
|
|
308
308
|
strictRequires: "debug",
|
|
309
309
|
ignoreTryCatch: false,
|
|
310
310
|
transformMixedEsModules: true,
|
|
311
311
|
extensions: [".js", ".ts"]
|
|
312
312
|
}),
|
|
313
|
-
|
|
313
|
+
chunkYZYIXVB4_cjs.removeDeployer(mastraEntry, {
|
|
314
314
|
sourcemap: sourcemapEnabled
|
|
315
315
|
}),
|
|
316
|
-
|
|
316
|
+
chunkYZYIXVB4_cjs.esbuild()
|
|
317
317
|
]
|
|
318
318
|
);
|
|
319
319
|
return plugins;
|
|
@@ -331,7 +331,7 @@ async function captureDependenciesToOptimize(output, workspaceMap, projectRoot,
|
|
|
331
331
|
}
|
|
332
332
|
let entryRootPath = projectRoot;
|
|
333
333
|
if (!output.facadeModuleId.startsWith("\0virtual:")) {
|
|
334
|
-
entryRootPath = await
|
|
334
|
+
entryRootPath = await chunkYZYIXVB4_cjs.getPackageRootPath(output.facadeModuleId) || projectRoot;
|
|
335
335
|
}
|
|
336
336
|
for (const [dependency, bindings] of Object.entries(output.importedBindings)) {
|
|
337
337
|
if (!chunkJZRFRUGM_cjs.isBareModuleSpecifier(dependency)) {
|
|
@@ -343,7 +343,7 @@ async function captureDependenciesToOptimize(output, workspaceMap, projectRoot,
|
|
|
343
343
|
let version;
|
|
344
344
|
let packageSpec;
|
|
345
345
|
if (pkgName) {
|
|
346
|
-
const metadata = await
|
|
346
|
+
const metadata = await chunkYZYIXVB4_cjs.getPackageMetadata(dependency, entryRootPath);
|
|
347
347
|
rootPath = metadata.rootPath;
|
|
348
348
|
version = metadata.version;
|
|
349
349
|
packageSpec = metadata.packageSpec;
|
|
@@ -428,7 +428,7 @@ async function captureDependenciesToOptimize(output, workspaceMap, projectRoot,
|
|
|
428
428
|
let packageSpec;
|
|
429
429
|
let rootPath = null;
|
|
430
430
|
if (pkgName) {
|
|
431
|
-
const metadata = await
|
|
431
|
+
const metadata = await chunkYZYIXVB4_cjs.getPackageMetadata(dynamicImport, entryRootPath);
|
|
432
432
|
rootPath = metadata.rootPath;
|
|
433
433
|
version = metadata.version;
|
|
434
434
|
packageSpec = metadata.packageSpec;
|
|
@@ -670,7 +670,7 @@ async function getInputPlugins2(virtualDependencies, {
|
|
|
670
670
|
}) {
|
|
671
671
|
const transpilePackagesMap = /* @__PURE__ */ new Map();
|
|
672
672
|
for (const pkg2 of transpilePackages) {
|
|
673
|
-
const dir = await
|
|
673
|
+
const dir = await chunkYZYIXVB4_cjs.getPackageRootPath(pkg2);
|
|
674
674
|
if (dir) {
|
|
675
675
|
transpilePackagesMap.set(pkg2, chunkJZRFRUGM_cjs.slash(dir));
|
|
676
676
|
} else {
|
|
@@ -687,10 +687,10 @@ async function getInputPlugins2(virtualDependencies, {
|
|
|
687
687
|
{}
|
|
688
688
|
)
|
|
689
689
|
),
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
transpilePackagesMap.size ?
|
|
690
|
+
chunkYZYIXVB4_cjs.tsConfigPaths(),
|
|
691
|
+
chunkYZYIXVB4_cjs.protocolExternalResolver(),
|
|
692
|
+
chunkYZYIXVB4_cjs.subpathExternalsResolver(externals),
|
|
693
|
+
transpilePackagesMap.size ? chunkYZYIXVB4_cjs.esbuild({
|
|
694
694
|
format: "esm",
|
|
695
695
|
include: [
|
|
696
696
|
// Match files from transpilePackages by their actual directory paths
|
|
@@ -746,7 +746,7 @@ async function getInputPlugins2(virtualDependencies, {
|
|
|
746
746
|
ignoreTryCatch: false
|
|
747
747
|
}),
|
|
748
748
|
bundlerOptions.noBundling ? null : nodeResolve__default.default(chunkJZRFRUGM_cjs.getNodeResolveOptions(platform)),
|
|
749
|
-
bundlerOptions.noBundling ?
|
|
749
|
+
bundlerOptions.noBundling ? chunkYZYIXVB4_cjs.esmShim() : null,
|
|
750
750
|
// hono is imported from deployer, so we need to resolve from here instead of the project root
|
|
751
751
|
aliasHono(),
|
|
752
752
|
json__default.default(),
|
|
@@ -1147,14 +1147,14 @@ async function resolveDependencyInfo(dep, existing, parentPaths) {
|
|
|
1147
1147
|
const packageNames = [...new Set([dep, packageName].filter(Boolean))];
|
|
1148
1148
|
for (const parentPath of parentPaths) {
|
|
1149
1149
|
for (const name of packageNames) {
|
|
1150
|
-
const metadata = await
|
|
1150
|
+
const metadata = await chunkYZYIXVB4_cjs.getPackageMetadata(name, parentPath);
|
|
1151
1151
|
if (metadata.version || metadata.packageSpec) {
|
|
1152
1152
|
return preferDependencyInfo(existing, metadata);
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
1156
|
for (const name of packageNames) {
|
|
1157
|
-
const metadata = await
|
|
1157
|
+
const metadata = await chunkYZYIXVB4_cjs.getPackageMetadata(name);
|
|
1158
1158
|
if (metadata.version || metadata.packageSpec) {
|
|
1159
1159
|
return preferDependencyInfo(existing, metadata);
|
|
1160
1160
|
}
|
|
@@ -1557,5 +1557,5 @@ async function analyzeBundle(entries, mastraEntry, {
|
|
|
1557
1557
|
exports.aliasHono = aliasHono;
|
|
1558
1558
|
exports.analyzeBundle = analyzeBundle;
|
|
1559
1559
|
exports.getWorkspaceInformation = getWorkspaceInformation;
|
|
1560
|
-
//# sourceMappingURL=chunk-
|
|
1561
|
-
//# sourceMappingURL=chunk-
|
|
1560
|
+
//# sourceMappingURL=chunk-5QC4TJK2.cjs.map
|
|
1561
|
+
//# sourceMappingURL=chunk-5QC4TJK2.cjs.map
|