@mastra/deployer 0.0.0-error-handler-fix-20251020202607 → 0.0.0-esbuild-bundle-worker-20260807182016
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 +5691 -5
- package/LICENSE.md +15 -0
- package/dist/_types/@hono_node-server/dist/index.d.mts +101 -0
- package/dist/_types/@mastra_hono/dist/auth-middleware.d.ts +8 -0
- package/dist/_types/@mastra_hono/dist/browser-stream/index.d.ts +35 -0
- package/dist/_types/@mastra_hono/dist/index.d.ts +59 -0
- package/dist/analyze-7xxwhB5F.js +1405 -0
- package/dist/analyze-7xxwhB5F.js.map +1 -0
- package/dist/analyze-D100622N.cjs +1434 -0
- package/dist/analyze-D100622N.cjs.map +1 -0
- package/dist/arktype-aI7TBD0R-BWucI7hY.cjs +8 -0
- package/dist/arktype-aI7TBD0R-BWucI7hY.cjs.map +1 -0
- package/dist/arktype-aI7TBD0R-D06--n84.js +8 -0
- package/dist/arktype-aI7TBD0R-D06--n84.js.map +1 -0
- package/dist/build/analyze/analyzeEntry.d.ts +17 -11
- package/dist/build/analyze/analyzeEntry.d.ts.map +1 -1
- package/dist/build/analyze/bundleExternals.d.ts +8 -7
- package/dist/build/analyze/bundleExternals.d.ts.map +1 -1
- package/dist/build/analyze/constants.d.ts.map +1 -1
- package/dist/build/analyze.cjs +3 -12
- package/dist/build/analyze.d.ts +15 -7
- package/dist/build/analyze.d.ts.map +1 -1
- package/dist/build/analyze.js +2 -3
- package/dist/build/analyzeEntryProjectType.d.ts +12 -0
- package/dist/build/analyzeEntryProjectType.d.ts.map +1 -0
- package/dist/build/babel/check-config-export.d.ts +3 -2
- package/dist/build/babel/check-config-export.d.ts.map +1 -1
- package/dist/build/babel/detect-pino-transports.d.ts +13 -0
- package/dist/build/babel/detect-pino-transports.d.ts.map +1 -0
- package/dist/build/babel/remove-all-options-except.d.ts +3 -3
- package/dist/build/babel/remove-all-options-except.d.ts.map +1 -1
- package/dist/build/babel/remove-deployer.d.ts +6 -2
- package/dist/build/babel/remove-deployer.d.ts.map +1 -1
- package/dist/build/babel/remove-non-referenced-nodes.d.ts +2 -2
- package/dist/build/babel/remove-non-referenced-nodes.d.ts.map +1 -1
- package/dist/build/bundler.cjs +6 -16
- package/dist/build/bundler.d.ts +13 -3
- package/dist/build/bundler.d.ts.map +1 -1
- package/dist/build/bundler.js +2 -3
- package/dist/build/bundlerOptions.d.ts +1 -1
- package/dist/build/bundlerOptions.d.ts.map +1 -1
- package/dist/build/deployer.d.ts +1 -1
- package/dist/build/deployer.d.ts.map +1 -1
- package/dist/build/fs-routing/codegen.d.ts +42 -0
- package/dist/build/fs-routing/codegen.d.ts.map +1 -0
- package/dist/build/fs-routing/discover.d.ts +178 -0
- package/dist/build/fs-routing/discover.d.ts.map +1 -0
- package/dist/build/fs-routing/mirror.d.ts +16 -0
- package/dist/build/fs-routing/mirror.d.ts.map +1 -0
- package/dist/build/fs-routing/prepare.d.ts +67 -0
- package/dist/build/fs-routing/prepare.d.ts.map +1 -0
- package/dist/build/index.cjs +29 -52
- package/dist/build/index.d.ts +9 -1
- package/dist/build/index.d.ts.map +1 -1
- package/dist/build/index.js +7 -7
- package/dist/build/package-info.d.ts +14 -0
- package/dist/build/package-info.d.ts.map +1 -0
- package/dist/build/plugins/esm-shim.d.ts +14 -0
- package/dist/build/plugins/esm-shim.d.ts.map +1 -0
- package/dist/build/plugins/local-storage-detector.d.ts +50 -0
- package/dist/build/plugins/local-storage-detector.d.ts.map +1 -0
- package/dist/build/plugins/module-resolve-map.d.ts +3 -0
- package/dist/build/plugins/module-resolve-map.d.ts.map +1 -0
- package/dist/build/plugins/node-gyp-detector.d.ts +3 -0
- package/dist/build/plugins/node-gyp-detector.d.ts.map +1 -0
- package/dist/build/plugins/node-modules-extension-resolver.d.ts +7 -0
- package/dist/build/plugins/node-modules-extension-resolver.d.ts.map +1 -1
- package/dist/build/plugins/pino.d.ts.map +1 -1
- package/dist/build/plugins/protocol-external-resolver.d.ts +5 -0
- package/dist/build/plugins/protocol-external-resolver.d.ts.map +1 -0
- package/dist/build/plugins/remove-all-except.d.ts +10 -0
- package/dist/build/plugins/remove-all-except.d.ts.map +1 -0
- package/dist/build/plugins/remove-deployer.d.ts.map +1 -1
- package/dist/build/plugins/remove-unused-references.d.ts.map +1 -1
- package/dist/build/plugins/subpath-externals-resolver.d.ts +3 -0
- package/dist/build/plugins/subpath-externals-resolver.d.ts.map +1 -0
- package/dist/build/plugins/tsconfig-paths.d.ts +8 -0
- package/dist/build/plugins/tsconfig-paths.d.ts.map +1 -1
- package/dist/build/plugins/workspace-deps-watcher.d.ts +33 -0
- package/dist/build/plugins/workspace-deps-watcher.d.ts.map +1 -0
- package/dist/build/serverOptions.d.ts +1 -1
- package/dist/build/serverOptions.d.ts.map +1 -1
- package/dist/build/shared/extract-mastra-option.d.ts +5 -9
- package/dist/build/shared/extract-mastra-option.d.ts.map +1 -1
- package/dist/build/types.d.ts +35 -0
- package/dist/build/types.d.ts.map +1 -1
- package/dist/build/utils.d.ts +106 -2
- package/dist/build/utils.d.ts.map +1 -1
- package/dist/build/watcher.d.ts +5 -1
- package/dist/build/watcher.d.ts.map +1 -1
- package/dist/build-DEie1huB.js +1084 -0
- package/dist/build-DEie1huB.js.map +1 -0
- package/dist/build-YV8-9zZy.cjs +1158 -0
- package/dist/build-YV8-9zZy.cjs.map +1 -0
- package/dist/bundler/entries.d.ts +12 -0
- package/dist/bundler/entries.d.ts.map +1 -0
- package/dist/bundler/index.cjs +7 -12
- package/dist/bundler/index.d.ts +85 -12
- package/dist/bundler/index.d.ts.map +1 -1
- package/dist/bundler/index.js +2 -3
- package/dist/bundler/workspaceDependencies.d.ts +3 -5
- package/dist/bundler/workspaceDependencies.d.ts.map +1 -1
- package/dist/bundler-CD-PSWRS.cjs +591 -0
- package/dist/bundler-CD-PSWRS.cjs.map +1 -0
- package/dist/bundler-NdSt2FYG.js +558 -0
- package/dist/bundler-NdSt2FYG.js.map +1 -0
- package/dist/bundler-U9F2---r.js +704 -0
- package/dist/bundler-U9F2---r.js.map +1 -0
- package/dist/bundler-u9WOUtpl.cjs +791 -0
- package/dist/bundler-u9WOUtpl.cjs.map +1 -0
- package/dist/bundlerOptions-9DigsVhY.js +180 -0
- package/dist/bundlerOptions-9DigsVhY.js.map +1 -0
- package/dist/bundlerOptions-CYRir4LE.cjs +194 -0
- package/dist/bundlerOptions-CYRir4LE.cjs.map +1 -0
- package/dist/core-D0wEgdn3.cjs +790 -0
- package/dist/core-D0wEgdn3.cjs.map +1 -0
- package/dist/core-DF65PJXc.js +790 -0
- package/dist/core-DF65PJXc.js.map +1 -0
- package/dist/deploy/log.d.ts +2 -2
- package/dist/deploy/log.d.ts.map +1 -1
- package/dist/dist-BauTimif.js +532 -0
- package/dist/dist-BauTimif.js.map +1 -0
- package/dist/dist-Cv-mAEtr.cjs +532 -0
- package/dist/dist-Cv-mAEtr.cjs.map +1 -0
- package/dist/docs/SKILL.md +31 -0
- package/dist/docs/assets/SOURCE_MAP.json +6 -0
- package/dist/docs/references/docs-deployment-cloud-providers.md +23 -0
- package/dist/docs/references/docs-deployment-mastra-server.md +157 -0
- package/dist/docs/references/docs-deployment-monorepo.md +140 -0
- package/dist/docs/references/docs-deployment-overview.md +79 -0
- package/dist/docs/references/docs-deployment-web-framework.md +54 -0
- package/dist/docs/references/docs-deployment-workflow-runners.md +17 -0
- package/dist/docs/references/reference-deployer.md +102 -0
- package/dist/effect-QlVUlMFu-CWx-dnsz.cjs +14 -0
- package/dist/effect-QlVUlMFu-CWx-dnsz.cjs.map +1 -0
- package/dist/effect-QlVUlMFu-CovUzKO9.js +14 -0
- package/dist/effect-QlVUlMFu-CovUzKO9.js.map +1 -0
- package/dist/esm-B51vJPGv.js +4634 -0
- package/dist/esm-B51vJPGv.js.map +1 -0
- package/dist/esm-DZ1Siz1C.cjs +4634 -0
- package/dist/esm-DZ1Siz1C.cjs.map +1 -0
- package/dist/index-CLddUTqr-Btqs8t-3.js +140 -0
- package/dist/index-CLddUTqr-Btqs8t-3.js.map +1 -0
- package/dist/index-CLddUTqr-C8lMvBz9.cjs +145 -0
- package/dist/index-CLddUTqr-C8lMvBz9.cjs.map +1 -0
- package/dist/index.cjs +35 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +29 -41
- package/dist/index.js.map +1 -1
- package/dist/rolldown-runtime-emK7D4bc.cjs +35 -0
- package/dist/server/handlers/a2a.d.ts +28 -3
- package/dist/server/handlers/a2a.d.ts.map +1 -1
- package/dist/server/handlers/agent-learning.d.ts +3 -0
- package/dist/server/handlers/agent-learning.d.ts.map +1 -0
- package/dist/server/handlers/health.d.ts +5 -0
- package/dist/server/handlers/health.d.ts.map +1 -0
- package/dist/server/handlers/restart-active-runs.d.ts +3 -0
- package/dist/server/handlers/restart-active-runs.d.ts.map +1 -0
- package/dist/server/handlers/utils/query-parsers.d.ts +15 -0
- package/dist/server/handlers/utils/query-parsers.d.ts.map +1 -1
- package/dist/server/handlers/utils.d.ts +0 -7
- package/dist/server/handlers/utils.d.ts.map +1 -1
- package/dist/server/index.cjs +4375 -11856
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.ts +4 -13
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +4370 -11830
- package/dist/server/index.js.map +1 -1
- package/dist/server/types.d.ts +2 -1
- package/dist/server/types.d.ts.map +1 -1
- package/dist/server/welcome.d.ts +1 -1
- package/dist/server/welcome.d.ts.map +1 -1
- package/dist/services/deps.d.ts +9 -1
- package/dist/services/deps.d.ts.map +1 -1
- package/dist/services/env.d.ts.map +1 -1
- package/dist/services/index.cjs +5 -20
- package/dist/services/index.js +2 -3
- package/dist/services-BRF1RRXB.js +430 -0
- package/dist/services-BRF1RRXB.js.map +1 -0
- package/dist/services-_ksvysL5.cjs +469 -0
- package/dist/services-_ksvysL5.cjs.map +1 -0
- package/dist/sury-CWZTCd75-Bbjr0vWq.cjs +14 -0
- package/dist/sury-CWZTCd75-Bbjr0vWq.cjs.map +1 -0
- package/dist/sury-CWZTCd75-C3LyvnOp.js +14 -0
- package/dist/sury-CWZTCd75-C3LyvnOp.js.map +1 -0
- package/dist/typebox-Dei93FPO-EcvSqxpn.js +8 -0
- package/dist/typebox-Dei93FPO-EcvSqxpn.js.map +1 -0
- package/dist/typebox-Dei93FPO-n37w7tHC.cjs +8 -0
- package/dist/typebox-Dei93FPO-n37w7tHC.cjs.map +1 -0
- package/dist/utils-FVOUvj-I.js +190 -0
- package/dist/utils-FVOUvj-I.js.map +1 -0
- package/dist/utils-O98BGdnP.cjs +267 -0
- package/dist/utils-O98BGdnP.cjs.map +1 -0
- package/dist/valibot--1zFm7rT-BN2-Xy7Y.cjs +14 -0
- package/dist/valibot--1zFm7rT-BN2-Xy7Y.cjs.map +1 -0
- package/dist/valibot--1zFm7rT-DLXBDt2x.js +14 -0
- package/dist/valibot--1zFm7rT-DLXBDt2x.js.map +1 -0
- package/dist/validator/custom-resolver.cjs +77 -45
- package/dist/validator/custom-resolver.cjs.map +1 -1
- package/dist/validator/custom-resolver.d.ts +15 -1
- package/dist/validator/custom-resolver.d.ts.map +1 -1
- package/dist/validator/custom-resolver.js +74 -42
- package/dist/validator/custom-resolver.js.map +1 -1
- package/dist/validator/loader.cjs +6 -7
- package/dist/validator/loader.cjs.map +1 -1
- package/dist/validator/loader.js +8 -4
- package/dist/validator/loader.js.map +1 -1
- package/dist/validator/validate.d.ts +16 -1
- package/dist/validator/validate.d.ts.map +1 -1
- package/dist/zod-Bwrt9trS-Cbwhu5Zl.cjs +23 -0
- package/dist/zod-Bwrt9trS-Cbwhu5Zl.cjs.map +1 -0
- package/dist/zod-Bwrt9trS-Si3ZkB_H.js +23 -0
- package/dist/zod-Bwrt9trS-Si3ZkB_H.js.map +1 -0
- package/package.json +50 -45
- package/dist/build/analyze.cjs.map +0 -1
- package/dist/build/analyze.js.map +0 -1
- package/dist/build/babel/get-deployer.d.ts +0 -3
- package/dist/build/babel/get-deployer.d.ts.map +0 -1
- package/dist/build/babel/remove-all-options-bundler.d.ts +0 -5
- package/dist/build/babel/remove-all-options-bundler.d.ts.map +0 -1
- package/dist/build/babel/remove-all-options-deployer.d.ts +0 -5
- package/dist/build/babel/remove-all-options-deployer.d.ts.map +0 -1
- package/dist/build/babel/remove-all-options-server.d.ts +0 -5
- package/dist/build/babel/remove-all-options-server.d.ts.map +0 -1
- package/dist/build/babel/remove-all-options-telemetry.d.ts +0 -5
- package/dist/build/babel/remove-all-options-telemetry.d.ts.map +0 -1
- package/dist/build/bundler.cjs.map +0 -1
- package/dist/build/bundler.js.map +0 -1
- package/dist/build/customInstrumentation.d.ts +0 -10
- package/dist/build/customInstrumentation.d.ts.map +0 -1
- package/dist/build/index.cjs.map +0 -1
- package/dist/build/index.js.map +0 -1
- package/dist/build/telemetry.d.ts +0 -8
- package/dist/build/telemetry.d.ts.map +0 -1
- package/dist/bundler/index.cjs.map +0 -1
- package/dist/bundler/index.js.map +0 -1
- package/dist/chunk-3JYRSECU.cjs +0 -430
- package/dist/chunk-3JYRSECU.cjs.map +0 -1
- package/dist/chunk-465ZVXAK.js +0 -409
- package/dist/chunk-465ZVXAK.js.map +0 -1
- package/dist/chunk-5QFG6SCM.js +0 -398
- package/dist/chunk-5QFG6SCM.js.map +0 -1
- package/dist/chunk-CEXVMFUD.js +0 -1265
- package/dist/chunk-CEXVMFUD.js.map +0 -1
- package/dist/chunk-CKUCDCGI.js +0 -168
- package/dist/chunk-CKUCDCGI.js.map +0 -1
- package/dist/chunk-HMMDNIEQ.cjs +0 -167
- package/dist/chunk-HMMDNIEQ.cjs.map +0 -1
- package/dist/chunk-LGC3GUMR.cjs +0 -437
- package/dist/chunk-LGC3GUMR.cjs.map +0 -1
- package/dist/chunk-MCDDO4WY.cjs +0 -1309
- package/dist/chunk-MCDDO4WY.cjs.map +0 -1
- package/dist/chunk-OYO2MJED.cjs +0 -195
- package/dist/chunk-OYO2MJED.cjs.map +0 -1
- package/dist/chunk-SBTEIZ3B.js +0 -26
- package/dist/chunk-SBTEIZ3B.js.map +0 -1
- package/dist/chunk-WAWEQ3DP.js +0 -156
- package/dist/chunk-WAWEQ3DP.js.map +0 -1
- package/dist/chunk-WIQEFIRX.cjs +0 -28
- package/dist/chunk-WIQEFIRX.cjs.map +0 -1
- package/dist/server/handlers/auth/defaults.d.ts +0 -3
- package/dist/server/handlers/auth/defaults.d.ts.map +0 -1
- package/dist/server/handlers/auth/helpers.d.ts +0 -11
- package/dist/server/handlers/auth/helpers.d.ts.map +0 -1
- package/dist/server/handlers/auth/index.d.ts +0 -11
- package/dist/server/handlers/auth/index.d.ts.map +0 -1
- package/dist/server/handlers/prompt.d.ts +0 -3
- package/dist/server/handlers/prompt.d.ts.map +0 -1
- package/dist/server/handlers/routes/agent-builder/handlers.d.ts +0 -17
- package/dist/server/handlers/routes/agent-builder/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/agent-builder/router.d.ts +0 -4
- package/dist/server/handlers/routes/agent-builder/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/agents/handlers.d.ts +0 -363
- package/dist/server/handlers/routes/agents/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/agents/router.d.ts +0 -5
- package/dist/server/handlers/routes/agents/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/agents/voice.d.ts +0 -18
- package/dist/server/handlers/routes/agents/voice.d.ts.map +0 -1
- package/dist/server/handlers/routes/logs/handlers.d.ts +0 -5
- package/dist/server/handlers/routes/logs/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/logs/router.d.ts +0 -3
- package/dist/server/handlers/routes/logs/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/mcp/handlers.d.ts +0 -139
- package/dist/server/handlers/routes/mcp/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/mcp/router.d.ts +0 -4
- package/dist/server/handlers/routes/mcp/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/memory/handlers.d.ts +0 -17
- package/dist/server/handlers/routes/memory/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/memory/router.d.ts +0 -4
- package/dist/server/handlers/routes/memory/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/observability/handlers.d.ts +0 -6
- package/dist/server/handlers/routes/observability/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/observability/router.d.ts +0 -3
- package/dist/server/handlers/routes/observability/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/scores/handlers.d.ts +0 -300
- package/dist/server/handlers/routes/scores/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/scores/router.d.ts +0 -4
- package/dist/server/handlers/routes/scores/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/telemetry/handlers.d.ts +0 -4
- package/dist/server/handlers/routes/telemetry/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/telemetry/router.d.ts +0 -3
- package/dist/server/handlers/routes/telemetry/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/tools/handlers.d.ts +0 -7
- package/dist/server/handlers/routes/tools/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/tools/router.d.ts +0 -4
- package/dist/server/handlers/routes/tools/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/vector/handlers.d.ts +0 -10
- package/dist/server/handlers/routes/vector/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/vector/router.d.ts +0 -4
- package/dist/server/handlers/routes/vector/router.d.ts.map +0 -1
- package/dist/server/handlers/routes/workflows/handlers.d.ts +0 -20
- package/dist/server/handlers/routes/workflows/handlers.d.ts.map +0 -1
- package/dist/server/handlers/routes/workflows/legacyWorkflows.d.ts +0 -11
- package/dist/server/handlers/routes/workflows/legacyWorkflows.d.ts.map +0 -1
- package/dist/server/handlers/routes/workflows/router.d.ts +0 -4
- package/dist/server/handlers/routes/workflows/router.d.ts.map +0 -1
- package/dist/services/index.cjs.map +0 -1
- package/dist/services/index.js.map +0 -1
- package/dist/templates/instrumentation-template.js +0 -172
package/dist/build/bundler.cjs
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "createBundler", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunkHMMDNIEQ_cjs.createBundler; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "getInputOptions", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunkHMMDNIEQ_cjs.getInputOptions; }
|
|
14
|
-
});
|
|
15
|
-
//# sourceMappingURL=bundler.cjs.map
|
|
16
|
-
//# sourceMappingURL=bundler.cjs.map
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_bundler = require("../bundler-u9WOUtpl.cjs");
|
|
3
|
+
exports.createBundler = require_bundler.createBundler;
|
|
4
|
+
exports.getInputOptions = require_bundler.getInputOptions;
|
|
5
|
+
exports.mastraInternalAliasPlugin = require_bundler.mastraInternalAliasPlugin;
|
|
6
|
+
exports.mastraToolsAliasPlugin = require_bundler.mastraToolsAliasPlugin;
|
package/dist/build/bundler.d.ts
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import type { InputOptions, OutputOptions, Plugin } from 'rollup';
|
|
2
|
+
import type { WorkspacePackageInfo } from '../bundler/workspaceDependencies.js';
|
|
3
|
+
import type { ExternalDependencyInfo } from './types.js';
|
|
4
|
+
import type { BundlerPlatform } from './utils.js';
|
|
5
|
+
export declare function mastraInternalAliasPlugin(entryFile: string): Plugin;
|
|
6
|
+
export declare function mastraToolsAliasPlugin(): Plugin;
|
|
7
|
+
export declare function getInputOptions(entryFile: string, analyzedBundleInfo: {
|
|
8
|
+
dependencies: Map<string, string>;
|
|
9
|
+
externalDependencies: Map<string, ExternalDependencyInfo>;
|
|
10
|
+
workspaceMap: Map<string, WorkspacePackageInfo>;
|
|
11
|
+
projectType?: string;
|
|
12
|
+
}, platform: BundlerPlatform, env: Record<string, string> | undefined, { sourcemap, isDev, projectRoot, workspaceRoot, enableEsmShim, externalsPreset, }: {
|
|
4
13
|
sourcemap?: boolean;
|
|
5
14
|
isDev?: boolean;
|
|
6
15
|
workspaceRoot?: string;
|
|
7
16
|
projectRoot: string;
|
|
8
17
|
enableEsmShim?: boolean;
|
|
18
|
+
externalsPreset?: boolean;
|
|
9
19
|
}): Promise<InputOptions>;
|
|
10
20
|
export declare function createBundler(inputOptions: InputOptions, outputOptions: Partial<OutputOptions> & {
|
|
11
21
|
dir: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../src/build/bundler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../src/build/bundler.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAS7E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAuBnE;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAY/C;AAED,wBAAsB,eAAe,CACnC,SAAS,EAAE,MAAM,EACjB,kBAAkB,EAAE;IAClB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,oBAAoB,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IAC1D,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,EACD,QAAQ,EAAE,eAAe,EACzB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,YAA2D,EACtF,EACE,SAAiB,EACjB,KAAa,EACb,WAAW,EACX,aAAyB,EACzB,aAAoB,EACpB,eAAuB,GACxB,EAAE;IACD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GACA,OAAO,CAAC,YAAY,CAAC,CAoFvB;AAED,wBAAsB,aAAa,CACjC,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE;;;GAiBxD"}
|
package/dist/build/bundler.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=bundler.js.map
|
|
1
|
+
import { i as mastraToolsAliasPlugin, n as getInputOptions, r as mastraInternalAliasPlugin, t as createBundler } from "../bundler-U9F2---r.js";
|
|
2
|
+
export { createBundler, getInputOptions, mastraInternalAliasPlugin, mastraToolsAliasPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Config } from '@mastra/core/mastra';
|
|
2
1
|
import type { IMastraLogger } from '@mastra/core/logger';
|
|
2
|
+
import type { Config } from '@mastra/core/mastra';
|
|
3
3
|
export declare function getBundlerOptionsBundler(entryFile: string, result: {
|
|
4
4
|
hasCustomConfig: false;
|
|
5
5
|
}): Promise<import("rollup").RollupBuild>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundlerOptions.d.ts","sourceRoot":"","sources":["../../src/build/bundlerOptions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bundlerOptions.d.ts","sourceRoot":"","sources":["../../src/build/bundlerOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE;IACN,eAAe,EAAE,KAAK,CAAC;CACxB,yCAGF;AAED,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,aAAa,GACrB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAQnC"}
|
package/dist/build/deployer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Config } from '@mastra/core/mastra';
|
|
2
1
|
import type { IMastraLogger } from '@mastra/core/logger';
|
|
2
|
+
import type { Config } from '@mastra/core/mastra';
|
|
3
3
|
export declare function getDeployerBundler(entryFile: string, result: {
|
|
4
4
|
hasCustomConfig: false;
|
|
5
5
|
}): Promise<import("rollup").RollupBuild>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployer.d.ts","sourceRoot":"","sources":["../../src/build/deployer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deployer.d.ts","sourceRoot":"","sources":["../../src/build/deployer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE;IACN,eAAe,EAAE,KAAK,CAAC;CACxB,yCAGF;AAED,wBAAsB,WAAW,CAC/B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,aAAa,GACrB,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAOpC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { DiscoveredFsAgent, DiscoveredFsSingleton, DiscoveredFsWorkflow } from './discover.js';
|
|
2
|
+
/**
|
|
3
|
+
* Generate the source of a wrapper module that:
|
|
4
|
+
* 1. imports the user's real Mastra entry,
|
|
5
|
+
* 2. imports each discovered `config.ts`, `instructions.ts`, `tools/*.ts`,
|
|
6
|
+
* `skills/*.ts` (`createSkill(...)` modules), `workspace.ts`, and
|
|
7
|
+
* `memory.ts`, inlining packaged `SKILL.md` skills,
|
|
8
|
+
* 3. assembles `Agent` instances via `assembleAgentFromFsEntry`, wiring any
|
|
9
|
+
* declared `subagents/` into the parent (nested up to `MAX_FS_SUBAGENT_DEPTH`),
|
|
10
|
+
* 4. registers them onto the user's `mastra` instance (code-registered agents
|
|
11
|
+
* win on name collisions), and
|
|
12
|
+
* 5. re-exports everything from the user's entry so this module is a drop-in
|
|
13
|
+
* replacement for the original `#mastra` target.
|
|
14
|
+
*
|
|
15
|
+
* `instructions.md` is read into the generated wrapper. In dev, the CLI watcher
|
|
16
|
+
* regenerates that wrapper when the markdown file changes. `instructions.ts` is
|
|
17
|
+
* imported instead, so the bundler already tracks it through the module graph.
|
|
18
|
+
*
|
|
19
|
+
* @param userEntry slash-normalized absolute path to the user's mastra entry.
|
|
20
|
+
* @param agents discovered fs-routed agents (absolute, slash-normalized paths).
|
|
21
|
+
*/
|
|
22
|
+
export declare function generateFsAgentsModule(userEntry: string | undefined, agents: DiscoveredFsAgent[], options?: {
|
|
23
|
+
workflows?: DiscoveredFsWorkflow[];
|
|
24
|
+
storage?: DiscoveredFsSingleton;
|
|
25
|
+
observability?: DiscoveredFsSingleton;
|
|
26
|
+
logger?: DiscoveredFsSingleton;
|
|
27
|
+
server?: DiscoveredFsSingleton;
|
|
28
|
+
studio?: DiscoveredFsSingleton;
|
|
29
|
+
}): Promise<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Generate the workflow-registration lines to splice into the generated wrapper
|
|
32
|
+
* module. Emits import statements for each discovered workflow module and a
|
|
33
|
+
* registration block that calls `__registerFsWorkflows` on the user's mastra.
|
|
34
|
+
*
|
|
35
|
+
* Returns `{ importLines, registrationLines }` so the caller can place them at
|
|
36
|
+
* the correct positions in the wrapper source.
|
|
37
|
+
*/
|
|
38
|
+
export declare function generateFsWorkflowsCodegen(workflows: DiscoveredFsWorkflow[]): {
|
|
39
|
+
importLines: string[];
|
|
40
|
+
registrationLines: string[];
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=codegen.d.ts.map
|
|
@@ -0,0 +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;AA4LjG;;;;;;;;;;;;;;;;;;;GAmBG;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"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import type { AgentSchedulePromptDefinition } from '@mastra/core/schedules';
|
|
2
|
+
/**
|
|
3
|
+
* A file-system routed agent directory discovered under `<mastraDir>/agents/`.
|
|
4
|
+
* All paths are absolute and slash-normalized so they can be embedded into
|
|
5
|
+
* generated module source on any platform.
|
|
6
|
+
*/
|
|
7
|
+
export interface DiscoveredFsAgent {
|
|
8
|
+
/** Agent directory name. Used as the default `id`/`name`. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Absolute, slash-normalized path to the agent directory. */
|
|
11
|
+
dir: string;
|
|
12
|
+
/** Absolute path to `config.ts`/`config.js`, if present. */
|
|
13
|
+
configPath?: string;
|
|
14
|
+
/** Absolute path to `instructions.md`, if present. */
|
|
15
|
+
instructionsPath?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Absolute path to `instructions.ts`/`instructions.js`, if present. Unlike
|
|
18
|
+
* `instructions.md` (whose contents are inlined at build time), this module is
|
|
19
|
+
* imported by the generated wrapper, so it can compute its prompt or export a
|
|
20
|
+
* runtime-resolved function.
|
|
21
|
+
*/
|
|
22
|
+
instructionsModulePath?: string;
|
|
23
|
+
/** Absolute path to `workspace.ts`/`workspace.js`, if present. */
|
|
24
|
+
workspacePath?: string;
|
|
25
|
+
/** Absolute path to `memory.ts`/`memory.js`, if present. */
|
|
26
|
+
memoryPath?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Absolute, slash-normalized path to an authored `workspace/` directory of
|
|
29
|
+
* seed files, if present. These are mirrored into the deployed workspace at
|
|
30
|
+
* build time (Eve parity) so the agent starts with them on disk.
|
|
31
|
+
*/
|
|
32
|
+
workspaceSeedDir?: string;
|
|
33
|
+
/** Tools discovered under `tools/`, in stable (sorted) order. */
|
|
34
|
+
tools: {
|
|
35
|
+
key: string;
|
|
36
|
+
path: string;
|
|
37
|
+
}[];
|
|
38
|
+
/** Input processors discovered under `processors/input/`, in stable (sorted) order. */
|
|
39
|
+
inputProcessors: {
|
|
40
|
+
key: string;
|
|
41
|
+
path: string;
|
|
42
|
+
}[];
|
|
43
|
+
/** Output processors discovered under `processors/output/`, in stable (sorted) order. */
|
|
44
|
+
outputProcessors: {
|
|
45
|
+
key: string;
|
|
46
|
+
path: string;
|
|
47
|
+
}[];
|
|
48
|
+
/** Scorers discovered under `scorers/`, in stable (sorted) order. */
|
|
49
|
+
scorers: {
|
|
50
|
+
key: string;
|
|
51
|
+
path: string;
|
|
52
|
+
}[];
|
|
53
|
+
/** Skills discovered under `skills/`, in stable (sorted) order. */
|
|
54
|
+
skills: DiscoveredFsSkill[];
|
|
55
|
+
/**
|
|
56
|
+
* Schedules discovered under `schedules/`, in stable (path-sorted) order.
|
|
57
|
+
* Nested files keep their relative path in `key` (`billing/sweep.ts` →
|
|
58
|
+
* `billing/sweep`) so a schedule's identity is stable across builds.
|
|
59
|
+
*/
|
|
60
|
+
schedules: DiscoveredFsSchedule[];
|
|
61
|
+
/**
|
|
62
|
+
* Declared subagents discovered under `subagents/`, in stable (sorted) order.
|
|
63
|
+
* Subagents may declare their own `subagents/`, up to `MAX_FS_SUBAGENT_DEPTH`
|
|
64
|
+
* levels below the top-level agent; deeper `subagents/` directories are
|
|
65
|
+
* ignored with a warning.
|
|
66
|
+
*/
|
|
67
|
+
subagents: DiscoveredFsAgent[];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* A skill discovered under `agents/<name>/skills/`.
|
|
71
|
+
*
|
|
72
|
+
* - `kind: 'module'` — a `.ts`/`.js` file whose default export is a `createSkill(...)`
|
|
73
|
+
* result. Codegen imports it directly; `name`/`description`/`instructions` are
|
|
74
|
+
* unknown at discovery time and resolved at runtime from the module.
|
|
75
|
+
* - `kind: 'packaged'` — a `SKILL.md` (optionally with a `references/` subdir) or a
|
|
76
|
+
* flat `<skill>.md`. Codegen inlines it via `createSkill(...)` using the parsed
|
|
77
|
+
* fields below so the deployed bundle carries no filesystem dependency.
|
|
78
|
+
*/
|
|
79
|
+
export type DiscoveredFsSkill = {
|
|
80
|
+
kind: 'module';
|
|
81
|
+
/** Absolute, slash-normalized path to the `.ts`/`.js` skill module. */
|
|
82
|
+
path: string;
|
|
83
|
+
} | {
|
|
84
|
+
kind: 'packaged';
|
|
85
|
+
name: string;
|
|
86
|
+
description: string;
|
|
87
|
+
instructions: string;
|
|
88
|
+
/** Reference file contents keyed by relative path (from `references/`). */
|
|
89
|
+
references: Record<string, string>;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* A schedule discovered under `agents/<name>/schedules/`.
|
|
93
|
+
*
|
|
94
|
+
* - `kind: 'module'` — a `.ts`/`.js` file whose default export is a
|
|
95
|
+
* `defineSchedule(...)` result. Codegen imports it directly, which is what
|
|
96
|
+
* makes handler mode possible: the handler is a live function, not data.
|
|
97
|
+
* - `kind: 'markdown'` — a `.md` file with cron frontmatter and the document
|
|
98
|
+
* body as the prompt. Codegen inlines it so the bundle carries no filesystem
|
|
99
|
+
* dependency.
|
|
100
|
+
*/
|
|
101
|
+
export type DiscoveredFsSchedule = {
|
|
102
|
+
kind: 'module';
|
|
103
|
+
/** Path-derived identity relative to `schedules/`, extension stripped. */
|
|
104
|
+
key: string;
|
|
105
|
+
/** Absolute, slash-normalized path to the `.ts`/`.js` schedule module. */
|
|
106
|
+
path: string;
|
|
107
|
+
} | {
|
|
108
|
+
kind: 'markdown';
|
|
109
|
+
key: string;
|
|
110
|
+
/**
|
|
111
|
+
* Absolute, slash-normalized path to the `.md` file. Its contents are
|
|
112
|
+
* inlined at build time, so the dev watcher has to watch this path
|
|
113
|
+
* explicitly — nothing imports it.
|
|
114
|
+
*/
|
|
115
|
+
path: string;
|
|
116
|
+
/** Parsed frontmatter fields plus the body as `prompt`. */
|
|
117
|
+
definition: MarkdownScheduleDefinition;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* A markdown schedule is always prompt mode — the document body is the prompt
|
|
121
|
+
* and handler mode needs a function, so it needs a `.ts`/`.js` module. Reuses core's
|
|
122
|
+
* definition type so the two can't drift; core validates the parsed result
|
|
123
|
+
* during agent assembly.
|
|
124
|
+
*/
|
|
125
|
+
export type MarkdownScheduleDefinition = AgentSchedulePromptDefinition;
|
|
126
|
+
/**
|
|
127
|
+
* Scan `<mastraDir>/agents/*` for file-system routed agents. A directory is
|
|
128
|
+
* treated as an agent only when it contains a `config.(ts|js)`, an
|
|
129
|
+
* `instructions.md`, or an `instructions.(ts|js)`; other directories are
|
|
130
|
+
* ignored. Each agent may declare `subagents/` up to `MAX_FS_SUBAGENT_DEPTH`
|
|
131
|
+
* levels deep. Returns descriptors with absolute, slash-normalized paths ready
|
|
132
|
+
* for codegen. Performs no module evaluation — only filesystem inspection.
|
|
133
|
+
*/
|
|
134
|
+
export declare function discoverFsAgents(mastraDir: string, onWarn?: (message: string) => void): Promise<DiscoveredFsAgent[]>;
|
|
135
|
+
/**
|
|
136
|
+
* A file-system routed workflow file discovered under `<mastraDir>/workflows/`.
|
|
137
|
+
* All paths are absolute and slash-normalized so they can be embedded into
|
|
138
|
+
* generated module source on any platform.
|
|
139
|
+
*/
|
|
140
|
+
export interface DiscoveredFsWorkflow {
|
|
141
|
+
/** Workflow key derived from the filename (without extension). */
|
|
142
|
+
key: string;
|
|
143
|
+
/** Absolute, slash-normalized path to the workflow module. */
|
|
144
|
+
path: string;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Scan `<mastraDir>/workflows/` for file-system routed workflow modules. Only
|
|
148
|
+
* files whose source contains an `export default` are treated as fs-routed
|
|
149
|
+
* workflows — this convention distinguishes them from workflow files that are
|
|
150
|
+
* manually imported and registered programmatically. Returns descriptors with
|
|
151
|
+
* absolute, slash-normalized paths ready for codegen. Performs no module
|
|
152
|
+
* evaluation — only filesystem and source-text inspection.
|
|
153
|
+
*/
|
|
154
|
+
export declare function discoverFsWorkflows(mastraDir: string): Promise<DiscoveredFsWorkflow[]>;
|
|
155
|
+
/**
|
|
156
|
+
* A discovered singleton config file under `<mastraDir>/`. All paths are
|
|
157
|
+
* absolute and slash-normalized so they can be embedded into generated module
|
|
158
|
+
* source on any platform.
|
|
159
|
+
*/
|
|
160
|
+
export interface DiscoveredFsSingleton {
|
|
161
|
+
/** Absolute, slash-normalized path to the singleton module. */
|
|
162
|
+
path: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Check for a singleton config file (e.g. `storage.ts`, `storage.js`) directly
|
|
166
|
+
* under `<mastraDir>`. Returns the first matching file path or `undefined`.
|
|
167
|
+
* Symlinks are rejected for security.
|
|
168
|
+
*
|
|
169
|
+
* Convention: only files with `export default` are fs-routed singletons. Files
|
|
170
|
+
* using named exports are assumed to be manually imported into the user's
|
|
171
|
+
* `index.ts`, so they are ignored to remain backward-compatible with existing
|
|
172
|
+
* project structures.
|
|
173
|
+
*
|
|
174
|
+
* `name` must be a bare identifier — path separators and traversal sequences are
|
|
175
|
+
* rejected so the lookup can never escape `<mastraDir>`.
|
|
176
|
+
*/
|
|
177
|
+
export declare function discoverFsSingleton(mastraDir: string, name: string): Promise<DiscoveredFsSingleton | undefined>;
|
|
178
|
+
//# sourceMappingURL=discover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../../src/build/fs-routing/discover.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAI5E;;;;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;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,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;;;;OAIG;IACH,SAAS,EAAE,oBAAoB,EAAE,CAAC;IAClC;;;;;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;AAEN;;;;;;;;;GASG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,0EAA0E;IAC1E,GAAG,EAAE,MAAM,CAAC;IACZ,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,UAAU,EAAE,0BAA0B,CAAC;CACxC,CAAC;AAEN;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG,6BAA6B,CAAC;AAggBvE;;;;;;;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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mirror authored `agents/<name>/workspace/**` seed files into the bundled
|
|
3
|
+
* output so each fs-routed agent starts with them on disk (Eve parity). Files
|
|
4
|
+
* are copied to `<bundleDir>/workspace/<name>`, which is exactly where the
|
|
5
|
+
* generated entry roots each agent's default workspace at runtime (resolved
|
|
6
|
+
* relative to the bundled module via `import.meta.url`). Declared subagents
|
|
7
|
+
* mirror to the nested `<bundleDir>/workspace/<parent>/<child>` path.
|
|
8
|
+
*
|
|
9
|
+
* Must run AFTER the bundle step, since bundling recreates the output dir.
|
|
10
|
+
*
|
|
11
|
+
* @param mastraDir The user's `src/mastra` directory (source of seeds).
|
|
12
|
+
* @param bundleDir The final bundle directory (e.g. `<outputDirectory>/output`).
|
|
13
|
+
* @returns the workspace names whose seeds were mirrored (`<parent>/<child>` for subagents).
|
|
14
|
+
*/
|
|
15
|
+
export declare function mirrorFsAgentWorkspaces(mastraDir: string, bundleDir: string): Promise<string[]>;
|
|
16
|
+
//# sourceMappingURL=mirror.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mirror.d.ts","sourceRoot":"","sources":["../../../src/build/fs-routing/mirror.ts"],"names":[],"mappings":"AAmCA;;;;;;;;;;;;;GAaG;AACH,wBAAsB,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CASrG"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export interface PrepareFsAgentsEntryResult {
|
|
2
|
+
/**
|
|
3
|
+
* The entry file that should be fed to the bundler/analyzer. When fs-routed
|
|
4
|
+
* primitives (agents, workflows, storage, observability, logger, server,
|
|
5
|
+
* studio) are
|
|
6
|
+
* found this is a generated wrapper module that registers them onto the
|
|
7
|
+
* user's mastra instance; otherwise it is the original entry unchanged.
|
|
8
|
+
* When auto-constructing (no user entry), this is always the generated module.
|
|
9
|
+
*/
|
|
10
|
+
entryFile: string;
|
|
11
|
+
/** Whether a standalone Mastra instance was auto-constructed (no index.ts). */
|
|
12
|
+
standalone: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Glob tool paths for tools defined under `agents/*\/tools` so they are
|
|
15
|
+
* bundled alongside the top-level `tools/` directory.
|
|
16
|
+
*/
|
|
17
|
+
toolPaths: string[];
|
|
18
|
+
/** Number of fs-routed agents discovered. */
|
|
19
|
+
agentCount: number;
|
|
20
|
+
/** Number of fs-routed workflows discovered. */
|
|
21
|
+
workflowCount: number;
|
|
22
|
+
/** Whether a `storage.ts` singleton was discovered. */
|
|
23
|
+
hasStorage: boolean;
|
|
24
|
+
/** Whether an `observability.ts` singleton was discovered. */
|
|
25
|
+
hasObservability: boolean;
|
|
26
|
+
/** Whether a `logger.ts` singleton was discovered. */
|
|
27
|
+
hasLogger: boolean;
|
|
28
|
+
/** Whether a `server.ts` singleton was discovered. */
|
|
29
|
+
hasServer: boolean;
|
|
30
|
+
/** Whether a `studio.ts` singleton was discovered. */
|
|
31
|
+
hasStudio: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Generated wrapper source to write to {@link entryFile}, or `undefined` when
|
|
34
|
+
* there are no fs-routed primitives. The write is deferred so callers can run
|
|
35
|
+
* it *after* `bundler.prepare()` empties the output directory — otherwise the
|
|
36
|
+
* wrapper is wiped before the bundler reads it.
|
|
37
|
+
*/
|
|
38
|
+
moduleSource?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Discover fs-routed agents under `<mastraDir>/agents/*`, workflows under
|
|
42
|
+
* `<mastraDir>/workflows/`, and singleton config files (e.g. `storage.ts`,
|
|
43
|
+
* `observability.ts`, `logger.ts`, `server.ts`, `studio.ts`).
|
|
44
|
+
* When any are found, generate a wrapper entry module that registers them onto
|
|
45
|
+
* the user's mastra instance. Returns the entry the bundler should use plus
|
|
46
|
+
* extra tool glob paths so `agents/*\/tools` are bundled.
|
|
47
|
+
*
|
|
48
|
+
* This does NOT write the wrapper to disk; call {@link writeFsAgentsEntry} with
|
|
49
|
+
* the result after `bundler.prepare()` so the generated file is not wiped when
|
|
50
|
+
* the output directory is emptied.
|
|
51
|
+
*
|
|
52
|
+
* When `entryFile` is `undefined` (no `index.ts`/`index.js`) and fs-routed
|
|
53
|
+
* primitives are found, a standalone Mastra instance is auto-constructed from
|
|
54
|
+
* them — no user code required.
|
|
55
|
+
*
|
|
56
|
+
* When no fs-routed primitives are present the original entry is returned
|
|
57
|
+
* unchanged, so existing code-only projects are completely unaffected.
|
|
58
|
+
*/
|
|
59
|
+
export declare function prepareFsAgentsEntry(mastraDir: string, entryFile: string | undefined, outputDirectory: string): Promise<PrepareFsAgentsEntryResult>;
|
|
60
|
+
/**
|
|
61
|
+
* Write the generated fs-agents wrapper produced by {@link prepareFsAgentsEntry}
|
|
62
|
+
* to its `entryFile`. No-op when there are no fs-routed agents. Call this AFTER
|
|
63
|
+
* `bundler.prepare()` (which empties the output directory) so the wrapper
|
|
64
|
+
* survives for the bundler/watcher to read.
|
|
65
|
+
*/
|
|
66
|
+
export declare function writeFsAgentsEntry(result: PrepareFsAgentsEntryResult): Promise<void>;
|
|
67
|
+
//# sourceMappingURL=prepare.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,52 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "getBundlerInputOptions", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return chunkHMMDNIEQ_cjs.getInputOptions; }
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(exports, "analyzeBundle", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function () { return chunkMCDDO4WY_cjs.analyzeBundle; }
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "getBundlerOptions", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () { return chunkMCDDO4WY_cjs.getBundlerOptions; }
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, "Deps", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () { return chunk3JYRSECU_cjs.Deps; }
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(exports, "FileService", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function () { return chunk3JYRSECU_cjs.FileService; }
|
|
50
|
-
});
|
|
51
|
-
//# sourceMappingURL=index.cjs.map
|
|
52
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_analyze = require("../analyze-D100622N.cjs");
|
|
3
|
+
const require_utils = require("../utils-O98BGdnP.cjs");
|
|
4
|
+
const require_services = require("../services-_ksvysL5.cjs");
|
|
5
|
+
const require_bundler = require("../bundler-u9WOUtpl.cjs");
|
|
6
|
+
const require_bundlerOptions = require("../bundlerOptions-CYRir4LE.cjs");
|
|
7
|
+
const require_build = require("../build-YV8-9zZy.cjs");
|
|
8
|
+
exports.Deps = require_services.Deps;
|
|
9
|
+
exports.FileService = require_services.FileService;
|
|
10
|
+
exports.analyzeBundle = require_analyze.analyzeBundle;
|
|
11
|
+
exports.analyzeEntryProjectType = require_build.analyzeEntryProjectType;
|
|
12
|
+
exports.createBundler = require_bundler.createBundler;
|
|
13
|
+
exports.createWatcher = require_build.createWatcher;
|
|
14
|
+
exports.detectRuntime = require_utils.detectRuntime;
|
|
15
|
+
exports.discoverFsAgents = require_build.discoverFsAgents;
|
|
16
|
+
exports.discoverFsSingleton = require_build.discoverFsSingleton;
|
|
17
|
+
exports.discoverFsWorkflows = require_build.discoverFsWorkflows;
|
|
18
|
+
exports.escapeStudioHtmlValue = require_utils.escapeStudioHtmlValue;
|
|
19
|
+
exports.generateFsAgentsModule = require_build.generateFsAgentsModule;
|
|
20
|
+
exports.generateFsWorkflowsCodegen = require_build.generateFsWorkflowsCodegen;
|
|
21
|
+
exports.getBundlerInputOptions = require_bundler.getInputOptions;
|
|
22
|
+
exports.getBundlerOptions = require_bundlerOptions.getBundlerOptions;
|
|
23
|
+
exports.getServerOptions = require_build.getServerOptions;
|
|
24
|
+
exports.getWatcherInputOptions = require_build.getInputOptions;
|
|
25
|
+
exports.injectStudioHtmlConfig = require_utils.injectStudioHtmlConfig;
|
|
26
|
+
exports.mirrorFsAgentWorkspaces = require_build.mirrorFsAgentWorkspaces;
|
|
27
|
+
exports.normalizeStudioBase = require_utils.normalizeStudioBase;
|
|
28
|
+
exports.prepareFsAgentsEntry = require_build.prepareFsAgentsEntry;
|
|
29
|
+
exports.writeFsAgentsEntry = require_build.writeFsAgentsEntry;
|
package/dist/build/index.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
export { createBundler, getInputOptions as getBundlerInputOptions } from './bundler.js';
|
|
2
2
|
export { createWatcher, getInputOptions as getWatcherInputOptions } from './watcher.js';
|
|
3
3
|
export { analyzeBundle } from './analyze/index.js';
|
|
4
|
+
export { analyzeEntryProjectType } from './analyzeEntryProjectType.js';
|
|
4
5
|
export { FileService } from '../services/fs.js';
|
|
5
6
|
export { Deps } from '../services/deps.js';
|
|
6
|
-
export { writeTelemetryConfig } from './telemetry.js';
|
|
7
7
|
export { getServerOptions } from './serverOptions.js';
|
|
8
8
|
export { getBundlerOptions } from './bundlerOptions.js';
|
|
9
|
+
export { normalizeStudioBase, detectRuntime, injectStudioHtmlConfig, escapeStudioHtmlValue } from './utils.js';
|
|
10
|
+
export type { RuntimePlatform, BundlerPlatform, StudioInjectionConfig } from './utils.js';
|
|
11
|
+
export { discoverFsAgents, discoverFsSingleton, discoverFsWorkflows } from './fs-routing/discover.js';
|
|
12
|
+
export type { DiscoveredFsAgent, DiscoveredFsSingleton, DiscoveredFsWorkflow } from './fs-routing/discover.js';
|
|
13
|
+
export { generateFsAgentsModule, generateFsWorkflowsCodegen } from './fs-routing/codegen.js';
|
|
14
|
+
export { prepareFsAgentsEntry, writeFsAgentsEntry } from './fs-routing/prepare.js';
|
|
15
|
+
export type { PrepareFsAgentsEntryResult } from './fs-routing/prepare.js';
|
|
16
|
+
export { mirrorFsAgentWorkspaces } from './fs-routing/mirror.js';
|
|
9
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,
|
|
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,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { t as analyzeBundle } from "../analyze-7xxwhB5F.js";
|
|
2
|
+
import { d as normalizeStudioBase, n as escapeStudioHtmlValue, o as injectStudioHtmlConfig, t as detectRuntime } from "../utils-FVOUvj-I.js";
|
|
3
|
+
import { r as Deps, t as FileService } from "../services-BRF1RRXB.js";
|
|
4
|
+
import { n as getInputOptions, t as createBundler } from "../bundler-U9F2---r.js";
|
|
5
|
+
import { t as getBundlerOptions } from "../bundlerOptions-9DigsVhY.js";
|
|
6
|
+
import { a as generateFsWorkflowsCodegen, c as discoverFsWorkflows, d as createWatcher, f as getInputOptions$1, i as generateFsAgentsModule, l as getServerOptions, n as prepareFsAgentsEntry, o as discoverFsAgents, r as writeFsAgentsEntry, s as discoverFsSingleton, t as mirrorFsAgentWorkspaces, u as analyzeEntryProjectType } from "../build-DEie1huB.js";
|
|
7
|
+
export { Deps, FileService, analyzeBundle, analyzeEntryProjectType, createBundler, createWatcher, detectRuntime, discoverFsAgents, discoverFsSingleton, discoverFsWorkflows, escapeStudioHtmlValue, generateFsAgentsModule, generateFsWorkflowsCodegen, getInputOptions as getBundlerInputOptions, getBundlerOptions, getServerOptions, getInputOptions$1 as getWatcherInputOptions, injectStudioHtmlConfig, mirrorFsAgentWorkspaces, normalizeStudioBase, prepareFsAgentsEntry, writeFsAgentsEntry };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Note: This function depends on local-pkg and should only be used at build-time.
|
|
3
|
+
* It is in a separate file to avoid including local-pkg in runtime code.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Get package root path
|
|
7
|
+
*/
|
|
8
|
+
export declare function getPackageRootPath(packageName: string, parentPath?: string): Promise<string | null>;
|
|
9
|
+
export declare function getPackageMetadata(packageName: string, parentPath?: string): Promise<{
|
|
10
|
+
rootPath: string | null;
|
|
11
|
+
version?: string;
|
|
12
|
+
packageSpec?: string;
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=package-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-info.d.ts","sourceRoot":"","sources":["../../src/build/package-info.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAiCH;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAkBzG;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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Plugin } from 'rollup';
|
|
2
|
+
/**
|
|
3
|
+
* Custom ESM shim plugin wrapper that respects user-declared __filename/__dirname variables.
|
|
4
|
+
*
|
|
5
|
+
* The original @rollup/plugin-esm-shim would inject shims even when users had already declared
|
|
6
|
+
* their own __filename/__dirname, causing "Identifier '__filename' has already been declared" errors.
|
|
7
|
+
*
|
|
8
|
+
* This wrapper checks if the user has already declared these variables and skips the shim injection
|
|
9
|
+
* if so. If either variable is declared, we skip the shim entirely since the original plugin injects
|
|
10
|
+
* both together and we assume users who declare one will also handle the other if needed.
|
|
11
|
+
*/
|
|
12
|
+
export declare function esmShim(): Plugin;
|
|
13
|
+
export default esmShim;
|
|
14
|
+
//# sourceMappingURL=esm-shim.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esm-shim.d.ts","sourceRoot":"","sources":["../../../src/build/plugins/esm-shim.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAOrC;;;;;;;;;GASG;AACH,wBAAgB,OAAO,IAAI,MAAM,CA2BhC;AAED,eAAe,OAAO,CAAC"}
|