mastra 0.10.6-alpha.4 → 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.
@@ -372,7 +372,7 @@ var FileService = class {
372
372
  };
373
373
  var logger = new PinoLogger({
374
374
  name: "Mastra CLI",
375
- level: "debug"
375
+ level: "info"
376
376
  });
377
377
 
378
378
  // src/commands/init/utils.ts
@@ -1 +1 @@
1
- export { create } from '../../chunk-25NEZQOD.js';
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-25NEZQOD.js';
5
- export { create } from './chunk-25NEZQOD.js';
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.4",
3
+ "version": "0.10.6-alpha.5",
4
4
  "license": "Elastic-2.0",
5
5
  "description": "cli for mastra",
6
6
  "type": "module",
@@ -58,7 +58,7 @@
58
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.3",
61
+ "@mastra/deployer": "^0.10.6-alpha.4",
62
62
  "@mastra/loggers": "^0.10.2",
63
63
  "@mastra/mcp": "^0.10.4-alpha.0"
64
64
  },
@@ -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.3",
83
- "@mastra/playground-ui": "5.1.6-alpha.3",
84
- "@mastra/core": "0.10.6-alpha.3"
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"