mastra 0.10.6-alpha.3 → 0.10.6-alpha.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export { create } from '../../chunk-
|
|
1
|
+
export { create } from '../../chunk-DKHFKQWY.js';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
import { PosthogAnalytics } from './chunk-7OXWUU2Q.js';
|
|
3
3
|
export { PosthogAnalytics } from './chunk-7OXWUU2Q.js';
|
|
4
|
-
import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService } from './chunk-
|
|
5
|
-
export { create } from './chunk-
|
|
4
|
+
import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService } from './chunk-DKHFKQWY.js';
|
|
5
|
+
export { create } from './chunk-DKHFKQWY.js';
|
|
6
6
|
import { Command } from 'commander';
|
|
7
7
|
import { config } from 'dotenv';
|
|
8
8
|
import { join, dirname } from 'path';
|
|
@@ -122,6 +122,7 @@ async function build({
|
|
|
122
122
|
const platformDeployer = await getDeployer(mastraEntryFile, outputDirectory);
|
|
123
123
|
if (!platformDeployer) {
|
|
124
124
|
const deployer = new BuildBundler(env);
|
|
125
|
+
deployer.__setLogger(logger);
|
|
125
126
|
await deployer.prepare(outputDirectory);
|
|
126
127
|
await deployer.bundle(mastraEntryFile, outputDirectory, discoveredTools);
|
|
127
128
|
logger.info(`Build successful, you can now deploy the .mastra/output directory to your target platform.`);
|
|
@@ -131,6 +132,7 @@ async function build({
|
|
|
131
132
|
return;
|
|
132
133
|
}
|
|
133
134
|
logger.info("Deployer found, preparing deployer build...");
|
|
135
|
+
platformDeployer.__setLogger(logger);
|
|
134
136
|
await platformDeployer.prepare(outputDirectory);
|
|
135
137
|
await platformDeployer.bundle(mastraEntryFile, outputDirectory, discoveredTools);
|
|
136
138
|
logger.info("You can now deploy the .mastra/output directory to your target platform.");
|
|
@@ -282,6 +284,16 @@ var DevBundler = class extends Bundler {
|
|
|
282
284
|
const watcher = await createWatcher(
|
|
283
285
|
{
|
|
284
286
|
...inputOptions,
|
|
287
|
+
logLevel: inputOptions.logLevel === "silent" ? "warn" : inputOptions.logLevel,
|
|
288
|
+
onwarn: (warning) => {
|
|
289
|
+
if (warning.code === "CIRCULAR_DEPENDENCY") {
|
|
290
|
+
if (warning.ids?.[0]?.includes("node_modules")) {
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
this.logger.warn(`Circular dependency found:
|
|
294
|
+
${warning.message.replace("Circular dependency: ", "")}`);
|
|
295
|
+
}
|
|
296
|
+
},
|
|
285
297
|
plugins: [
|
|
286
298
|
// @ts-ignore - types are good
|
|
287
299
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
@@ -459,6 +471,7 @@ async function dev({
|
|
|
459
471
|
const fileService = new FileService$1();
|
|
460
472
|
const entryFile = fileService.getFirstExistingFile([join(mastraDir, "index.ts"), join(mastraDir, "index.js")]);
|
|
461
473
|
const bundler = new DevBundler(env);
|
|
474
|
+
bundler.__setLogger(logger);
|
|
462
475
|
await bundler.prepare(dotMastraPath);
|
|
463
476
|
const watcher = await bundler.watch(entryFile, dotMastraPath, discoveredTools);
|
|
464
477
|
const loadedEnv = await bundler.loadEnvVars();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mastra",
|
|
3
|
-
"version": "0.10.6-alpha.
|
|
3
|
+
"version": "0.10.6-alpha.5",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"description": "cli for mastra",
|
|
6
6
|
"type": "module",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
],
|
|
35
35
|
"author": "",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@clack/prompts": "^0.
|
|
37
|
+
"@clack/prompts": "^0.11.0",
|
|
38
38
|
"@lukeed/uuid": "^2.0.1",
|
|
39
|
-
"@opentelemetry/instrumentation": "^0.
|
|
39
|
+
"@opentelemetry/instrumentation": "^0.202.0",
|
|
40
40
|
"@webcontainer/env": "^1.1.1",
|
|
41
41
|
"commander": "^12.1.0",
|
|
42
42
|
"dotenv": "^16.5.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"json-schema-to-zod": "^2.6.1",
|
|
47
47
|
"open": "^10.1.2",
|
|
48
48
|
"picocolors": "^1.1.1",
|
|
49
|
-
"posthog-node": "4.
|
|
49
|
+
"posthog-node": "4.18.0",
|
|
50
50
|
"prettier": "^3.5.3",
|
|
51
51
|
"prompt": "^1.3.0",
|
|
52
52
|
"shell-quote": "^1.8.3",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"superjson": "^2.2.2",
|
|
56
56
|
"swr": "^2.3.3",
|
|
57
57
|
"tcp-port-used": "^1.0.2",
|
|
58
|
-
"yocto-spinner": "^0.
|
|
58
|
+
"yocto-spinner": "^0.2.3",
|
|
59
59
|
"zod": "^3.25.57",
|
|
60
60
|
"zod-to-json-schema": "^3.24.5",
|
|
61
|
+
"@mastra/deployer": "^0.10.6-alpha.4",
|
|
61
62
|
"@mastra/loggers": "^0.10.2",
|
|
62
|
-
"@mastra/deployer": "^0.10.6-alpha.2",
|
|
63
63
|
"@mastra/mcp": "^0.10.4-alpha.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"typescript": "^5.8.3",
|
|
80
80
|
"vitest": "^3.2.3",
|
|
81
81
|
"@internal/lint": "0.0.12",
|
|
82
|
-
"@mastra/client-js": "0.10.5-alpha.
|
|
83
|
-
"@mastra/core": "0.10.6-alpha.
|
|
84
|
-
"@mastra/playground-ui": "5.1.6-alpha.
|
|
82
|
+
"@mastra/client-js": "0.10.5-alpha.4",
|
|
83
|
+
"@mastra/core": "0.10.6-alpha.4",
|
|
84
|
+
"@mastra/playground-ui": "5.1.6-alpha.4"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"@mastra/core": "^0.10.2-alpha.0"
|