@mastra/deployer 0.3.2-alpha.4 → 0.3.2-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.
@@ -85,6 +85,7 @@ export declare abstract class Bundler extends MastraBundler {
85
85
  protected getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>, toolsPaths: string[]): Promise<InputOptions>;
86
86
  getToolsInputOptions(toolsPaths: string[]): Promise<Record<string, string>>;
87
87
  protected _bundle(serverFile: string, mastraEntryFile: string, outputDirectory: string, toolsPaths?: string[], bundleLocation?: string): Promise<void>;
88
+ lint(_entryFile: string, _outputDirectory: string, toolsPaths: string[]): Promise<void>;
88
89
  }
89
90
 
90
91
  /**
@@ -85,6 +85,7 @@ export declare abstract class Bundler extends MastraBundler {
85
85
  protected getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>, toolsPaths: string[]): Promise<InputOptions>;
86
86
  getToolsInputOptions(toolsPaths: string[]): Promise<Record<string, string>>;
87
87
  protected _bundle(serverFile: string, mastraEntryFile: string, outputDirectory: string, toolsPaths?: string[], bundleLocation?: string): Promise<void>;
88
+ lint(_entryFile: string, _outputDirectory: string, toolsPaths: string[]): Promise<void>;
88
89
  }
89
90
 
90
91
  /**
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkGO4WLOL7_cjs = require('../chunk-GO4WLOL7.cjs');
3
+ var chunkFA7LXQU6_cjs = require('../chunk-FA7LXQU6.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Bundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkGO4WLOL7_cjs.Bundler; }
9
+ get: function () { return chunkFA7LXQU6_cjs.Bundler; }
10
10
  });
@@ -1 +1 @@
1
- export { Bundler } from '../chunk-OV2EMRTY.js';
1
+ export { Bundler } from '../chunk-37LFSIVL.js';
@@ -304,6 +304,13 @@ var Bundler = class extends MastraBundler {
304
304
  await this.installDependencies(outputDirectory);
305
305
  this.logger.info("Done installing dependencies");
306
306
  }
307
+ async lint(_entryFile, _outputDirectory, toolsPaths) {
308
+ const toolsInputOptions = await this.getToolsInputOptions(toolsPaths);
309
+ const toolsLength = Object.keys(toolsInputOptions).length;
310
+ if (toolsLength > 0) {
311
+ this.logger.info(`Found ${toolsLength} ${toolsLength === 1 ? "tool" : "tools"}`);
312
+ }
313
+ }
307
314
  };
308
315
 
309
316
  export { Bundler };
@@ -130,7 +130,7 @@ var Bundler = class extends bundler.MastraBundler {
130
130
  }
131
131
  async writeInstrumentationFile(outputDirectory) {
132
132
  const instrumentationFile = path.join(outputDirectory, "instrumentation.mjs");
133
- const __dirname = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-GO4WLOL7.cjs', document.baseURI).href))));
133
+ const __dirname = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-FA7LXQU6.cjs', document.baseURI).href))));
134
134
  await fsExtra.copy(path.join(__dirname, "templates", "instrumentation-template.js"), instrumentationFile);
135
135
  }
136
136
  async writePackageJson(outputDirectory, dependencies, resolutions) {
@@ -314,6 +314,13 @@ var Bundler = class extends bundler.MastraBundler {
314
314
  await this.installDependencies(outputDirectory);
315
315
  this.logger.info("Done installing dependencies");
316
316
  }
317
+ async lint(_entryFile, _outputDirectory, toolsPaths) {
318
+ const toolsInputOptions = await this.getToolsInputOptions(toolsPaths);
319
+ const toolsLength = Object.keys(toolsInputOptions).length;
320
+ if (toolsLength > 0) {
321
+ this.logger.info(`Found ${toolsLength} ${toolsLength === 1 ? "tool" : "tools"}`);
322
+ }
323
+ }
317
324
  };
318
325
 
319
326
  exports.Bundler = Bundler;
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkGO4WLOL7_cjs = require('./chunk-GO4WLOL7.cjs');
3
+ var chunkFA7LXQU6_cjs = require('./chunk-FA7LXQU6.cjs');
4
4
  var chunk3R6WDRBB_cjs = require('./chunk-3R6WDRBB.cjs');
5
5
  var chunk4VC5Z4YR_cjs = require('./chunk-4VC5Z4YR.cjs');
6
6
  var babel = require('@babel/core');
@@ -33,7 +33,7 @@ var esbuild__default = /*#__PURE__*/_interopDefault(esbuild);
33
33
  var commonjs__default = /*#__PURE__*/_interopDefault(commonjs);
34
34
 
35
35
  // src/deploy/base.ts
36
- var Deployer = class extends chunkGO4WLOL7_cjs.Bundler {
36
+ var Deployer = class extends chunkFA7LXQU6_cjs.Bundler {
37
37
  deps = new chunk4VC5Z4YR_cjs.DepsService();
38
38
  constructor(args) {
39
39
  super(args.name, "DEPLOYER");
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Bundler } from './chunk-OV2EMRTY.js';
1
+ import { Bundler } from './chunk-37LFSIVL.js';
2
2
  import { recursiveRemoveNonReferencedNodes } from './chunk-TUMXQX4H.js';
3
3
  import { DepsService, FileService } from './chunk-UV4RQQ3R.js';
4
4
  export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-UV4RQQ3R.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.3.2-alpha.4",
3
+ "version": "0.3.2-alpha.5",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -107,8 +107,8 @@
107
107
  "rollup-plugin-node-externals": "^8.0.0",
108
108
  "typescript-paths": "^1.5.1",
109
109
  "zod": "^3.24.2",
110
- "@mastra/core": "^0.9.2-alpha.4",
111
- "@mastra/server": "^2.0.2-alpha.4"
110
+ "@mastra/server": "^2.0.2-alpha.5",
111
+ "@mastra/core": "^0.9.2-alpha.5"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@hono/node-server": "^1.13.8",