@mastra/deployer 0.12.0-alpha.0 → 0.12.0-alpha.1

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.
@@ -2,9 +2,9 @@
2
2
 
3
3
  var chunkTK2RG7LU_cjs = require('../chunk-TK2RG7LU.cjs');
4
4
  var chunkE7ZSCQUV_cjs = require('../chunk-E7ZSCQUV.cjs');
5
- var chunkF25LATVR_cjs = require('../chunk-F25LATVR.cjs');
6
5
  var chunkWTGMSQT5_cjs = require('../chunk-WTGMSQT5.cjs');
7
6
  var chunkMOG6ASL4_cjs = require('../chunk-MOG6ASL4.cjs');
7
+ var chunkF25LATVR_cjs = require('../chunk-F25LATVR.cjs');
8
8
 
9
9
 
10
10
 
@@ -24,14 +24,6 @@ Object.defineProperty(exports, "writeTelemetryConfig", {
24
24
  enumerable: true,
25
25
  get: function () { return chunkE7ZSCQUV_cjs.writeTelemetryConfig; }
26
26
  });
27
- Object.defineProperty(exports, "Deps", {
28
- enumerable: true,
29
- get: function () { return chunkF25LATVR_cjs.Deps; }
30
- });
31
- Object.defineProperty(exports, "FileService", {
32
- enumerable: true,
33
- get: function () { return chunkF25LATVR_cjs.FileService; }
34
- });
35
27
  Object.defineProperty(exports, "analyzeBundle", {
36
28
  enumerable: true,
37
29
  get: function () { return chunkWTGMSQT5_cjs.analyzeBundle; }
@@ -48,3 +40,11 @@ Object.defineProperty(exports, "getBundlerInputOptions", {
48
40
  enumerable: true,
49
41
  get: function () { return chunkMOG6ASL4_cjs.getInputOptions; }
50
42
  });
43
+ Object.defineProperty(exports, "Deps", {
44
+ enumerable: true,
45
+ get: function () { return chunkF25LATVR_cjs.Deps; }
46
+ });
47
+ Object.defineProperty(exports, "FileService", {
48
+ enumerable: true,
49
+ get: function () { return chunkF25LATVR_cjs.FileService; }
50
+ });
@@ -1,5 +1,5 @@
1
1
  export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-APPDEIPA.js';
2
2
  export { writeTelemetryConfig } from '../chunk-NB6XIOPQ.js';
3
- export { Deps, FileService } from '../chunk-7HFWRNM7.js';
4
3
  export { analyzeBundle, getBundlerOptions } from '../chunk-TLGEPS44.js';
5
4
  export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-HZNWZQHG.js';
5
+ export { Deps, FileService } from '../chunk-7HFWRNM7.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkDNEQ6Q5S_cjs = require('../chunk-DNEQ6Q5S.cjs');
3
+ var chunkD73JIE6N_cjs = require('../chunk-D73JIE6N.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Bundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkDNEQ6Q5S_cjs.Bundler; }
9
+ get: function () { return chunkD73JIE6N_cjs.Bundler; }
10
10
  });
@@ -1 +1 @@
1
- export { Bundler } from '../chunk-3KEQFYU7.js';
1
+ export { Bundler } from '../chunk-DB7LRMOC.js';
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkE7ZSCQUV_cjs = require('./chunk-E7ZSCQUV.cjs');
4
- var chunkF25LATVR_cjs = require('./chunk-F25LATVR.cjs');
5
4
  var chunkWTGMSQT5_cjs = require('./chunk-WTGMSQT5.cjs');
6
5
  var chunkMOG6ASL4_cjs = require('./chunk-MOG6ASL4.cjs');
6
+ var chunkF25LATVR_cjs = require('./chunk-F25LATVR.cjs');
7
7
  var fs = require('fs');
8
8
  var promises = require('fs/promises');
9
9
  var path = require('path');
@@ -170,7 +170,7 @@ var Bundler = class extends bundler.MastraBundler {
170
170
  }
171
171
  async writeInstrumentationFile(outputDirectory, customInstrumentationFile) {
172
172
  const instrumentationFile = path.join(outputDirectory, "instrumentation.mjs");
173
- 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-DNEQ6Q5S.cjs', document.baseURI).href))));
173
+ 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-D73JIE6N.cjs', document.baseURI).href))));
174
174
  if (customInstrumentationFile) {
175
175
  await fsExtra.copy(customInstrumentationFile, instrumentationFile);
176
176
  } else {
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkDNEQ6Q5S_cjs = require('./chunk-DNEQ6Q5S.cjs');
4
- var chunkF25LATVR_cjs = require('./chunk-F25LATVR.cjs');
3
+ var chunkD73JIE6N_cjs = require('./chunk-D73JIE6N.cjs');
5
4
  var chunkWTGMSQT5_cjs = require('./chunk-WTGMSQT5.cjs');
5
+ var chunkF25LATVR_cjs = require('./chunk-F25LATVR.cjs');
6
6
  var babel = require('@babel/core');
7
7
  var rollup = require('rollup');
8
8
  var esbuild = require('rollup-plugin-esbuild');
@@ -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 chunkDNEQ6Q5S_cjs.Bundler {
36
+ var Deployer = class extends chunkD73JIE6N_cjs.Bundler {
37
37
  deps = new chunkF25LATVR_cjs.DepsService();
38
38
  constructor(args) {
39
39
  super(args.name, "DEPLOYER");
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { Bundler } from './chunk-3KEQFYU7.js';
1
+ import { Bundler } from './chunk-DB7LRMOC.js';
2
+ import { recursiveRemoveNonReferencedNodes } from './chunk-TLGEPS44.js';
2
3
  import { DepsService, FileService } from './chunk-7HFWRNM7.js';
3
4
  export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-7HFWRNM7.js';
4
- import { recursiveRemoveNonReferencedNodes } from './chunk-TLGEPS44.js';
5
5
  import * as babel from '@babel/core';
6
6
  import babel__default from '@babel/core';
7
7
  import { rollup } from 'rollup';
@@ -9025,7 +9025,7 @@ async function createHonoServer(mastra, options = {
9025
9025
  } else {
9026
9026
  const corsConfig = {
9027
9027
  origin: "*",
9028
- allowMethods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
9028
+ allowMethods: ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"],
9029
9029
  credentials: false,
9030
9030
  maxAge: 3600,
9031
9031
  ...server?.cors,
@@ -9018,7 +9018,7 @@ async function createHonoServer(mastra, options = {
9018
9018
  } else {
9019
9019
  const corsConfig = {
9020
9020
  origin: "*",
9021
- allowMethods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
9021
+ allowMethods: ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"],
9022
9022
  credentials: false,
9023
9023
  maxAge: 3600,
9024
9024
  ...server?.cors,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.12.0-alpha.0",
3
+ "version": "0.12.0-alpha.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -108,7 +108,7 @@
108
108
  "rollup-plugin-node-externals": "^8.0.1",
109
109
  "typescript-paths": "^1.5.1",
110
110
  "zod": "^3.25.67",
111
- "@mastra/server": "^0.12.0-alpha.0"
111
+ "@mastra/server": "^0.12.0-alpha.1"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@hono/node-server": "^1.17.1",
@@ -128,7 +128,7 @@
128
128
  "typescript": "^5.8.3",
129
129
  "vitest": "^3.2.4",
130
130
  "@internal/lint": "0.0.23",
131
- "@mastra/core": "0.12.0-alpha.0",
131
+ "@mastra/core": "0.12.0-alpha.1",
132
132
  "@mastra/mcp": "^0.10.7"
133
133
  },
134
134
  "peerDependencies": {
@@ -1,7 +1,7 @@
1
1
  import { writeTelemetryConfig } from './chunk-NB6XIOPQ.js';
2
- import { DepsService, FileService } from './chunk-7HFWRNM7.js';
3
2
  import { analyzeBundle, getBundlerOptions } from './chunk-TLGEPS44.js';
4
3
  import { createBundler, getInputOptions } from './chunk-HZNWZQHG.js';
4
+ import { DepsService, FileService } from './chunk-7HFWRNM7.js';
5
5
  import { existsSync } from 'fs';
6
6
  import { writeFile, stat } from 'fs/promises';
7
7
  import { join, dirname } from 'path';