@mastra/deployer-netlify 0.0.0-mastra-2973-fast-mcp-removal-20250409163028 → 0.0.0-mastra-3123-mcp-server-20250419180157

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,4 +1,6 @@
1
- Elastic License 2.0 (ELv2)
1
+ # Elastic License 2.0 (ELv2)
2
+
3
+ Copyright (c) 2025 Mastra AI, Inc.
2
4
 
3
5
  **Acceptance**
4
6
  By using the software, you agree to all of the terms and conditions below.
@@ -29,9 +29,10 @@ export declare class NetlifyDeployer extends Deployer {
29
29
  writeFiles({ dir }: {
30
30
  dir: string;
31
31
  }): void;
32
+ protected installDependencies(outputDirectory: string, rootDir?: string): Promise<void>;
32
33
  deploy(outputDirectory: string): Promise<void>;
33
34
  prepare(outputDirectory: string): Promise<void>;
34
- bundle(entryFile: string, outputDirectory: string): Promise<void>;
35
+ bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
35
36
  private getEntry;
36
37
  }
37
38
 
@@ -29,9 +29,10 @@ export declare class NetlifyDeployer extends Deployer {
29
29
  writeFiles({ dir }: {
30
30
  dir: string;
31
31
  }): void;
32
+ protected installDependencies(outputDirectory: string, rootDir?: string): Promise<void>;
32
33
  deploy(outputDirectory: string): Promise<void>;
33
34
  prepare(outputDirectory: string): Promise<void>;
34
- bundle(entryFile: string, outputDirectory: string): Promise<void>;
35
+ bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
35
36
  private getEntry;
36
37
  }
37
38
 
package/dist/index.cjs CHANGED
@@ -3,6 +3,7 @@
3
3
  var fs = require('fs');
4
4
  var path = require('path');
5
5
  var deployer = require('@mastra/deployer');
6
+ var services = require('@mastra/deployer/services');
6
7
  var execa = require('execa');
7
8
 
8
9
  // src/index.ts
@@ -89,6 +90,18 @@ to = "/.netlify/functions/api/:splat"
89
90
  `
90
91
  );
91
92
  }
93
+ async installDependencies(outputDirectory, rootDir = process.cwd()) {
94
+ const deps = new services.DepsService(rootDir);
95
+ deps.__setLogger(this.logger);
96
+ await deps.install({
97
+ dir: path.join(outputDirectory, this.outputDir),
98
+ architecture: {
99
+ os: ["linux"],
100
+ cpu: ["x64"],
101
+ libc: ["gnu"]
102
+ }
103
+ });
104
+ }
92
105
  async deploy(outputDirectory) {
93
106
  const site = await getOrCreateSite({ token: this.token, name: this.projectName || `mastra`, scope: this.scope });
94
107
  const p2 = execa.execa(
@@ -116,11 +129,12 @@ to = "/.netlify/functions/api/:splat"
116
129
  await super.prepare(outputDirectory);
117
130
  this.writeFiles({ dir: path.join(outputDirectory, this.outputDir) });
118
131
  }
119
- async bundle(entryFile, outputDirectory) {
132
+ async bundle(entryFile, outputDirectory, toolsPaths) {
120
133
  return this._bundle(
121
134
  this.getEntry(),
122
135
  entryFile,
123
136
  outputDirectory,
137
+ toolsPaths,
124
138
  path.join(outputDirectory, this.outputDir, "netlify", "functions", "api")
125
139
  );
126
140
  }
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { existsSync, mkdirSync, writeFileSync } from 'fs';
2
2
  import { join } from 'path';
3
3
  import { Deployer } from '@mastra/deployer';
4
+ import { DepsService } from '@mastra/deployer/services';
4
5
  import { execa } from 'execa';
5
6
 
6
7
  // src/index.ts
@@ -87,6 +88,18 @@ to = "/.netlify/functions/api/:splat"
87
88
  `
88
89
  );
89
90
  }
91
+ async installDependencies(outputDirectory, rootDir = process.cwd()) {
92
+ const deps = new DepsService(rootDir);
93
+ deps.__setLogger(this.logger);
94
+ await deps.install({
95
+ dir: join(outputDirectory, this.outputDir),
96
+ architecture: {
97
+ os: ["linux"],
98
+ cpu: ["x64"],
99
+ libc: ["gnu"]
100
+ }
101
+ });
102
+ }
90
103
  async deploy(outputDirectory) {
91
104
  const site = await getOrCreateSite({ token: this.token, name: this.projectName || `mastra`, scope: this.scope });
92
105
  const p2 = execa(
@@ -114,11 +127,12 @@ to = "/.netlify/functions/api/:splat"
114
127
  await super.prepare(outputDirectory);
115
128
  this.writeFiles({ dir: join(outputDirectory, this.outputDir) });
116
129
  }
117
- async bundle(entryFile, outputDirectory) {
130
+ async bundle(entryFile, outputDirectory, toolsPaths) {
118
131
  return this._bundle(
119
132
  this.getEntry(),
120
133
  entryFile,
121
134
  outputDirectory,
135
+ toolsPaths,
122
136
  join(outputDirectory, this.outputDir, "netlify", "functions", "api")
123
137
  );
124
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer-netlify",
3
- "version": "0.0.0-mastra-2973-fast-mcp-removal-20250409163028",
3
+ "version": "0.0.0-mastra-3123-mcp-server-20250419180157",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -23,15 +23,15 @@
23
23
  },
24
24
  "keywords": [],
25
25
  "author": "",
26
- "license": "ISC",
26
+ "license": "Elastic-2.0",
27
27
  "dependencies": {
28
28
  "@rollup/plugin-virtual": "^3.0.2",
29
29
  "date-fns": "^4.1.0",
30
30
  "execa": "^9.5.2",
31
31
  "netlify-cli": "^19.0.3",
32
32
  "zod": "^3.24.2",
33
- "@mastra/core": "0.0.0-mastra-2973-fast-mcp-removal-20250409163028",
34
- "@mastra/deployer": "0.0.0-mastra-2973-fast-mcp-removal-20250409163028"
33
+ "@mastra/deployer": "0.0.0-mastra-3123-mcp-server-20250419180157",
34
+ "@mastra/core": "0.0.0-mastra-3123-mcp-server-20250419180157"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@microsoft/api-extractor": "^7.52.1",
@@ -40,7 +40,7 @@
40
40
  "tsup": "^8.4.0",
41
41
  "typescript": "^5.8.2",
42
42
  "vitest": "^3.0.9",
43
- "@internal/lint": "0.0.1"
43
+ "@internal/lint": "0.0.2"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",