@mastra/deployer 1.50.0-alpha.0 → 1.50.0-alpha.2
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 +31 -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 +16 -2
- package/dist/build/fs-routing/codegen.d.ts.map +1 -1
- package/dist/build/fs-routing/discover.d.ts +20 -0
- package/dist/build/fs-routing/discover.d.ts.map +1 -1
- package/dist/build/fs-routing/prepare.d.ts +13 -10
- package/dist/build/fs-routing/prepare.d.ts.map +1 -1
- package/dist/build/index.cjs +32 -20
- package/dist/build/index.d.ts +4 -4
- package/dist/build/index.d.ts.map +1 -1
- package/dist/build/index.js +5 -5
- package/dist/build/utils.d.ts +7 -0
- package/dist/build/utils.d.ts.map +1 -1
- package/dist/bundler/index.cjs +3 -3
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-N5CQWHN3.cjs → chunk-2GJY6H6M.cjs} +11 -11
- package/dist/{chunk-N5CQWHN3.cjs.map → chunk-2GJY6H6M.cjs.map} +1 -1
- package/dist/{chunk-FHLWDI5H.js → chunk-6ARGMWNC.js} +3 -3
- package/dist/{chunk-FHLWDI5H.js.map → chunk-6ARGMWNC.js.map} +1 -1
- package/dist/{chunk-3GTT2N4V.cjs → chunk-FR6IK3FQ.cjs} +14 -14
- package/dist/{chunk-3GTT2N4V.cjs.map → chunk-FR6IK3FQ.cjs.map} +1 -1
- package/dist/{chunk-ULWJZHTN.js → chunk-I7PL3OZ7.js} +6 -6
- package/dist/{chunk-ULWJZHTN.js.map → chunk-I7PL3OZ7.js.map} +1 -1
- package/dist/{chunk-VNJLLLQN.cjs → chunk-ILNCPWNL.cjs} +7 -7
- package/dist/{chunk-VNJLLLQN.cjs.map → chunk-ILNCPWNL.cjs.map} +1 -1
- package/dist/{chunk-7YI2AEFO.cjs → chunk-JZRFRUGM.cjs} +6 -2
- package/dist/chunk-JZRFRUGM.cjs.map +1 -0
- package/dist/{chunk-4MVAT24Z.js → chunk-LJBNHINW.js} +4 -4
- package/dist/{chunk-4MVAT24Z.js.map → chunk-LJBNHINW.js.map} +1 -1
- package/dist/{chunk-CCBU3OII.js → chunk-UA2DJWFT.js} +3 -3
- package/dist/{chunk-CCBU3OII.js.map → chunk-UA2DJWFT.js.map} +1 -1
- package/dist/{chunk-YG455MPH.js → chunk-UBCDMTQL.js} +88 -16
- package/dist/chunk-UBCDMTQL.js.map +1 -0
- package/dist/{chunk-ANDDGKY5.js → chunk-WP65JQAT.js} +6 -3
- package/dist/chunk-WP65JQAT.js.map +1 -0
- package/dist/{chunk-EU74XSTG.cjs → chunk-XSAPBEYT.cjs} +105 -31
- package/dist/chunk-XSAPBEYT.cjs.map +1 -0
- package/dist/{chunk-IMPHNLMW.cjs → chunk-YWKYOGOS.cjs} +52 -52
- package/dist/{chunk-IMPHNLMW.cjs.map → chunk-YWKYOGOS.cjs.map} +1 -1
- 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/dist/server/index.cjs +18 -14
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +15 -11
- package/dist/server/index.js.map +1 -1
- package/dist/server/welcome.d.ts.map +1 -1
- package/dist/validator/custom-resolver.cjs +3 -3
- package/dist/validator/custom-resolver.js +1 -1
- package/package.json +8 -8
- package/dist/chunk-7YI2AEFO.cjs.map +0 -1
- package/dist/chunk-ANDDGKY5.js.map +0 -1
- package/dist/chunk-EU74XSTG.cjs.map +0 -1
- package/dist/chunk-YG455MPH.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 1.50.0-alpha.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 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))
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
// src/mastra/workflows/onboarding.ts
|
|
11
|
+
import { createWorkflow } from '@mastra/core/workflows';
|
|
12
|
+
|
|
13
|
+
export default createWorkflow({ id: 'onboarding' /* ...steps */ });
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`a51c63d`](https://github.com/mastra-ai/mastra/commit/a51c63d8ee639e4daeba2a0be093efa6a1b5e52f), [`02705fd`](https://github.com/mastra-ai/mastra/commit/02705fd2f5a9062210d64ea061adeeb10dc9452e)]:
|
|
19
|
+
- @mastra/core@1.50.0-alpha.2
|
|
20
|
+
- @mastra/server@1.50.0-alpha.2
|
|
21
|
+
|
|
22
|
+
## 1.50.0-alpha.1
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Fixed Studio HTML config injection so platform environment values are escaped before they are embedded in served or deployed `index.html` files. This keeps organization IDs, project IDs, observability endpoints and telemetry flags intact when they contain quotes, angle brackets, newlines or `$` sequences, and exposes `escapeStudioHtmlValue` from `@mastra/deployer/build` for the shared injection paths. ([#18812](https://github.com/mastra-ai/mastra/pull/18812))
|
|
27
|
+
|
|
28
|
+
- Hardened several string-parsing code paths against regular-expression denial of service (ReDoS). Path normalization, URL trimming, LLM token stripping, and observation parsing now use linear-time string scanning instead of regexes that could back-track polynomially on adversarial input. No behavior changes. ([#18801](https://github.com/mastra-ai/mastra/pull/18801))
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [[`3ffb8b7`](https://github.com/mastra-ai/mastra/commit/3ffb8b720e90f5e6977129ec1f6707d43c2bebe0), [`5ea76a7`](https://github.com/mastra-ai/mastra/commit/5ea76a723d966c72da9aa3ab30ae20276e049765), [`6445560`](https://github.com/mastra-ai/mastra/commit/6445560327045d20b239585fc63fed72e9ce36ec), [`a2ba369`](https://github.com/mastra-ai/mastra/commit/a2ba369e796dfab610f41c6875965b488272fa55), [`ae51e81`](https://github.com/mastra-ai/mastra/commit/ae51e818825582d42500338dfc1929a082eff0ba), [`6f304ef`](https://github.com/mastra-ai/mastra/commit/6f304ef319e99725e884bdb8d3193c001b6e5964)]:
|
|
31
|
+
- @mastra/core@1.50.0-alpha.1
|
|
32
|
+
- @mastra/server@1.50.0-alpha.1
|
|
33
|
+
|
|
3
34
|
## 1.50.0-alpha.0
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
package/dist/build/analyze.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYWKYOGOS_cjs = require('../chunk-YWKYOGOS.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 chunkYWKYOGOS_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 chunk2GJY6H6M_cjs = require('../chunk-2GJY6H6M.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 chunk2GJY6H6M_cjs.createBundler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getInputOptions", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk2GJY6H6M_cjs.getInputOptions; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "mastraInternalAliasPlugin", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk2GJY6H6M_cjs.mastraInternalAliasPlugin; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "mastraToolsAliasPlugin", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk2GJY6H6M_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-6ARGMWNC.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, 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,19 @@ 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
|
+
}): Promise<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Generate the workflow-registration lines to splice into the generated wrapper
|
|
26
|
+
* module. Emits import statements for each discovered workflow module and a
|
|
27
|
+
* registration block that calls `__registerFsWorkflows` on the user's mastra.
|
|
28
|
+
*
|
|
29
|
+
* Returns `{ importLines, registrationLines }` so the caller can place them at
|
|
30
|
+
* the correct positions in the wrapper source.
|
|
31
|
+
*/
|
|
32
|
+
export declare function generateFsWorkflowsCodegen(workflows: DiscoveredFsWorkflow[]): {
|
|
33
|
+
importLines: string[];
|
|
34
|
+
registrationLines: string[];
|
|
35
|
+
};
|
|
22
36
|
//# 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,oBAAoB,EAAE,MAAM,YAAY,CAAC;AA0H1E;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,sBAAsB,CAC1C,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,iBAAiB,EAAE,EAC3B,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,oBAAoB,EAAE,CAAA;CAAE,GAC/C,OAAO,CAAC,MAAM,CAAC,CAwEjB;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,24 @@ 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[]>;
|
|
71
91
|
//# 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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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 generated wrapper module
|
|
5
|
-
* the user's mastra instance; otherwise it is the
|
|
4
|
+
* primitives (agents, workflows) are found this is a generated wrapper module
|
|
5
|
+
* that registers them onto the user's mastra instance; otherwise it is the
|
|
6
|
+
* original entry unchanged.
|
|
6
7
|
*/
|
|
7
8
|
entryFile: string;
|
|
8
9
|
/**
|
|
@@ -12,26 +13,28 @@ 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;
|
|
15
18
|
/**
|
|
16
19
|
* 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
|
|
20
|
+
* there are no fs-routed primitives. The write is deferred so callers can run
|
|
21
|
+
* it *after* `bundler.prepare()` empties the output directory — otherwise the
|
|
19
22
|
* wrapper is wiped before the bundler reads it.
|
|
20
23
|
*/
|
|
21
24
|
moduleSource?: string;
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
24
|
-
* Discover fs-routed agents under `<mastraDir>/agents/*` and
|
|
25
|
-
* generate a wrapper entry module
|
|
26
|
-
*
|
|
27
|
-
* so `agents/*\/tools` are bundled.
|
|
27
|
+
* Discover fs-routed agents under `<mastraDir>/agents/*` and workflows under
|
|
28
|
+
* `<mastraDir>/workflows/`. When any are found, generate a wrapper entry module
|
|
29
|
+
* that registers them onto the user's mastra instance. Returns the entry the
|
|
30
|
+
* bundler should use plus extra tool glob paths so `agents/*\/tools` are bundled.
|
|
28
31
|
*
|
|
29
32
|
* This does NOT write the wrapper to disk; call {@link writeFsAgentsEntry} with
|
|
30
33
|
* the result after `bundler.prepare()` so the generated file is not wiped when
|
|
31
34
|
* the output directory is emptied.
|
|
32
35
|
*
|
|
33
|
-
* When no fs-routed
|
|
34
|
-
* so existing code-only projects are completely unaffected.
|
|
36
|
+
* When no fs-routed primitives are present the original entry is returned
|
|
37
|
+
* unchanged, so existing code-only projects are completely unaffected.
|
|
35
38
|
*/
|
|
36
39
|
export declare function prepareFsAgentsEntry(mastraDir: string, entryFile: string, outputDirectory: string): Promise<PrepareFsAgentsEntryResult>;
|
|
37
40
|
/**
|
|
@@ -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;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,0BAA0B,CAAC,CA2BrC;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAO1F"}
|
package/dist/build/index.cjs
CHANGED
|
@@ -1,61 +1,69 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkXSAPBEYT_cjs = require('../chunk-XSAPBEYT.cjs');
|
|
4
|
+
var chunkILNCPWNL_cjs = require('../chunk-ILNCPWNL.cjs');
|
|
5
|
+
var chunkYWKYOGOS_cjs = require('../chunk-YWKYOGOS.cjs');
|
|
6
|
+
var chunk2GJY6H6M_cjs = require('../chunk-2GJY6H6M.cjs');
|
|
7
7
|
var chunkVKAFARW6_cjs = require('../chunk-VKAFARW6.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkJZRFRUGM_cjs = require('../chunk-JZRFRUGM.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "createWatcher", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkXSAPBEYT_cjs.createWatcher; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "discoverFsAgents", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkXSAPBEYT_cjs.discoverFsAgents; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "discoverFsWorkflows", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkXSAPBEYT_cjs.discoverFsWorkflows; }
|
|
19
23
|
});
|
|
20
24
|
Object.defineProperty(exports, "generateFsAgentsModule", {
|
|
21
25
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkXSAPBEYT_cjs.generateFsAgentsModule; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "generateFsWorkflowsCodegen", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkXSAPBEYT_cjs.generateFsWorkflowsCodegen; }
|
|
23
31
|
});
|
|
24
32
|
Object.defineProperty(exports, "getServerOptions", {
|
|
25
33
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkXSAPBEYT_cjs.getServerOptions; }
|
|
27
35
|
});
|
|
28
36
|
Object.defineProperty(exports, "getWatcherInputOptions", {
|
|
29
37
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkXSAPBEYT_cjs.getInputOptions; }
|
|
31
39
|
});
|
|
32
40
|
Object.defineProperty(exports, "mirrorFsAgentWorkspaces", {
|
|
33
41
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkXSAPBEYT_cjs.mirrorFsAgentWorkspaces; }
|
|
35
43
|
});
|
|
36
44
|
Object.defineProperty(exports, "prepareFsAgentsEntry", {
|
|
37
45
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkXSAPBEYT_cjs.prepareFsAgentsEntry; }
|
|
39
47
|
});
|
|
40
48
|
Object.defineProperty(exports, "writeFsAgentsEntry", {
|
|
41
49
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkXSAPBEYT_cjs.writeFsAgentsEntry; }
|
|
43
51
|
});
|
|
44
52
|
Object.defineProperty(exports, "getBundlerOptions", {
|
|
45
53
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkILNCPWNL_cjs.getBundlerOptions; }
|
|
47
55
|
});
|
|
48
56
|
Object.defineProperty(exports, "analyzeBundle", {
|
|
49
57
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkYWKYOGOS_cjs.analyzeBundle; }
|
|
51
59
|
});
|
|
52
60
|
Object.defineProperty(exports, "createBundler", {
|
|
53
61
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk2GJY6H6M_cjs.createBundler; }
|
|
55
63
|
});
|
|
56
64
|
Object.defineProperty(exports, "getBundlerInputOptions", {
|
|
57
65
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk2GJY6H6M_cjs.getInputOptions; }
|
|
59
67
|
});
|
|
60
68
|
Object.defineProperty(exports, "Deps", {
|
|
61
69
|
enumerable: true,
|
|
@@ -67,15 +75,19 @@ Object.defineProperty(exports, "FileService", {
|
|
|
67
75
|
});
|
|
68
76
|
Object.defineProperty(exports, "detectRuntime", {
|
|
69
77
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkJZRFRUGM_cjs.detectRuntime; }
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "escapeStudioHtmlValue", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () { return chunkJZRFRUGM_cjs.escapeStudioHtmlValue; }
|
|
71
83
|
});
|
|
72
84
|
Object.defineProperty(exports, "injectStudioHtmlConfig", {
|
|
73
85
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkJZRFRUGM_cjs.injectStudioHtmlConfig; }
|
|
75
87
|
});
|
|
76
88
|
Object.defineProperty(exports, "normalizeStudioBase", {
|
|
77
89
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkJZRFRUGM_cjs.normalizeStudioBase; }
|
|
79
91
|
});
|
|
80
92
|
//# sourceMappingURL=index.cjs.map
|
|
81
93
|
//# sourceMappingURL=index.cjs.map
|
package/dist/build/index.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ export { FileService } from '../services/fs.js';
|
|
|
5
5
|
export { Deps } from '../services/deps.js';
|
|
6
6
|
export { getServerOptions } from './serverOptions.js';
|
|
7
7
|
export { getBundlerOptions } from './bundlerOptions.js';
|
|
8
|
-
export { normalizeStudioBase, detectRuntime, injectStudioHtmlConfig } from './utils.js';
|
|
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, discoverFsWorkflows } from './fs-routing/discover.js';
|
|
11
|
+
export type { DiscoveredFsAgent, 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,MAAM,SAAS,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,MAAM,uBAAuB,CAAC;AAC9E,YAAY,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACrF,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,8 +1,8 @@
|
|
|
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, discoverFsWorkflows, generateFsAgentsModule, generateFsWorkflowsCodegen, getServerOptions, getInputOptions as getWatcherInputOptions, mirrorFsAgentWorkspaces, prepareFsAgentsEntry, writeFsAgentsEntry } from '../chunk-UBCDMTQL.js';
|
|
2
|
+
export { getBundlerOptions } from '../chunk-UA2DJWFT.js';
|
|
3
|
+
export { analyzeBundle } from '../chunk-LJBNHINW.js';
|
|
4
|
+
export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-6ARGMWNC.js';
|
|
5
5
|
export { Deps, FileService } from '../chunk-ZL66GDLP.js';
|
|
6
|
-
export { detectRuntime, injectStudioHtmlConfig, normalizeStudioBase } from '../chunk-
|
|
6
|
+
export { detectRuntime, escapeStudioHtmlValue, injectStudioHtmlConfig, normalizeStudioBase } from '../chunk-WP65JQAT.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/build/utils.d.ts
CHANGED
|
@@ -128,6 +128,13 @@ export interface StudioInjectionConfig {
|
|
|
128
128
|
* source HTML) with the provided expression verbatim.
|
|
129
129
|
*/
|
|
130
130
|
export declare function injectStudioHtmlConfig(html: string, config: StudioInjectionConfig): string;
|
|
131
|
+
/**
|
|
132
|
+
* Escape a dynamic value for embedding inside a single-quoted JavaScript
|
|
133
|
+
* string literal in the Studio `index.html` (e.g. `window.X = '<value>'`).
|
|
134
|
+
* Without it, an env-derived value containing `'` or `</script>` breaks out
|
|
135
|
+
* of the literal and corrupts (or injects into) the served page.
|
|
136
|
+
*/
|
|
137
|
+
export declare function escapeStudioHtmlValue(value: string): string;
|
|
131
138
|
/**
|
|
132
139
|
* Check if a module is a Node.js builtin module
|
|
133
140
|
* @param specifier - Module specifier
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/build/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,kDAAkD;AAClD,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,KAAK,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;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AAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,6BAA6B,EAAE,MAAM,CAAC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,MAAM,CA+B1F;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAU3D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAM1D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAkBhE"}
|
package/dist/bundler/index.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFR6IK3FQ_cjs = require('../chunk-FR6IK3FQ.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 chunkFR6IK3FQ_cjs.Bundler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "IS_DEFAULT", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkFR6IK3FQ_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 chunkJZRFRUGM_cjs = require('./chunk-JZRFRUGM.cjs');
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var url = require('url');
|
|
6
6
|
var rollupPlugin = require('@optimize-lodash/rollup-plugin');
|
|
@@ -171,7 +171,7 @@ async function readPackageMetadata(rootPath, requestedPackageName) {
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
async function getPackageMetadata(packageName, parentPath) {
|
|
174
|
-
const requestedPackageName =
|
|
174
|
+
const requestedPackageName = chunkJZRFRUGM_cjs.getPackageName(packageName);
|
|
175
175
|
const packageNames = [...new Set([packageName, requestedPackageName].filter(Boolean))];
|
|
176
176
|
let firstRootPath = null;
|
|
177
177
|
for (const name of packageNames) {
|
|
@@ -202,7 +202,7 @@ function nodeModulesExtensionResolver() {
|
|
|
202
202
|
return {
|
|
203
203
|
name: "node-modules-extension-resolver",
|
|
204
204
|
async resolveId(id, importer, options) {
|
|
205
|
-
if (!importer || !
|
|
205
|
+
if (!importer || !chunkJZRFRUGM_cjs.isBareModuleSpecifier(id) || chunkJZRFRUGM_cjs.isExternalProtocolImport(id) || path.isAbsolute(id)) {
|
|
206
206
|
return null;
|
|
207
207
|
}
|
|
208
208
|
const parts = id.split("/");
|
|
@@ -210,7 +210,7 @@ function nodeModulesExtensionResolver() {
|
|
|
210
210
|
if (isScoped && parts.length === 2 || !isScoped && parts.length === 1) {
|
|
211
211
|
return null;
|
|
212
212
|
}
|
|
213
|
-
const pkgName =
|
|
213
|
+
const pkgName = chunkJZRFRUGM_cjs.getPackageName(id);
|
|
214
214
|
if (!pkgName) {
|
|
215
215
|
return null;
|
|
216
216
|
}
|
|
@@ -246,7 +246,7 @@ function protocolExternalResolver({ exclude = ["node:"] } = {}) {
|
|
|
246
246
|
return {
|
|
247
247
|
name: "protocol-external-resolver",
|
|
248
248
|
resolveId(id) {
|
|
249
|
-
if (!
|
|
249
|
+
if (!chunkJZRFRUGM_cjs.isExternalProtocolImport(id, exclude)) {
|
|
250
250
|
return null;
|
|
251
251
|
}
|
|
252
252
|
return {
|
|
@@ -360,7 +360,7 @@ function subpathExternalsResolver(externals) {
|
|
|
360
360
|
if (id.startsWith(".") || id.startsWith("/")) {
|
|
361
361
|
return null;
|
|
362
362
|
}
|
|
363
|
-
const isPartOfExternals = externals.some((external) =>
|
|
363
|
+
const isPartOfExternals = externals.some((external) => chunkJZRFRUGM_cjs.isDependencyPartOfPackage(id, external));
|
|
364
364
|
if (isPartOfExternals) {
|
|
365
365
|
return {
|
|
366
366
|
id,
|
|
@@ -531,12 +531,12 @@ function tsConfigPaths({ tsConfigPath, respectCoreModule, localResolve } = {}) {
|
|
|
531
531
|
|
|
532
532
|
// src/build/bundler.ts
|
|
533
533
|
function mastraInternalAliasPlugin(entryFile) {
|
|
534
|
-
const normalizedEntryFile =
|
|
534
|
+
const normalizedEntryFile = chunkJZRFRUGM_cjs.slash(entryFile);
|
|
535
535
|
return alias__default.default({
|
|
536
536
|
entries: [
|
|
537
537
|
{
|
|
538
538
|
find: /^\#server$/,
|
|
539
|
-
replacement:
|
|
539
|
+
replacement: chunkJZRFRUGM_cjs.slash(url.fileURLToPath(undefined("@mastra/deployer/server")))
|
|
540
540
|
},
|
|
541
541
|
{
|
|
542
542
|
find: /^\@mastra\/server\/(.*)/,
|
|
@@ -574,7 +574,7 @@ async function getInputOptions(entryFile, analyzedBundleInfo, platform, env = {
|
|
|
574
574
|
enableEsmShim = true,
|
|
575
575
|
externalsPreset = false
|
|
576
576
|
}) {
|
|
577
|
-
const nodeResolvePlugin = nodeResolve__default.default(
|
|
577
|
+
const nodeResolvePlugin = nodeResolve__default.default(chunkJZRFRUGM_cjs.getNodeResolveOptions(platform));
|
|
578
578
|
const externalsCopy = new Set(analyzedBundleInfo.externalDependencies.keys());
|
|
579
579
|
const externals = externalsPreset ? [] : Array.from(externalsCopy);
|
|
580
580
|
return {
|
|
@@ -679,5 +679,5 @@ exports.protocolExternalResolver = protocolExternalResolver;
|
|
|
679
679
|
exports.removeDeployer = removeDeployer2;
|
|
680
680
|
exports.subpathExternalsResolver = subpathExternalsResolver;
|
|
681
681
|
exports.tsConfigPaths = tsConfigPaths;
|
|
682
|
-
//# sourceMappingURL=chunk-
|
|
683
|
-
//# sourceMappingURL=chunk-
|
|
682
|
+
//# sourceMappingURL=chunk-2GJY6H6M.cjs.map
|
|
683
|
+
//# sourceMappingURL=chunk-2GJY6H6M.cjs.map
|