@mastra/deployer 0.0.1-alpha.7 → 0.0.1-alpha.9

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 0.0.1-alpha.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 9066f95: CF deployer fixes
8
+
9
+ ## 0.0.1-alpha.8
10
+
11
+ ### Patch Changes
12
+
13
+ - b425845: Logger and execa logs
14
+
3
15
  ## 0.0.1-alpha.7
4
16
 
5
17
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/build/bundle.ts"],"names":[],"mappings":"AA6LA,wBAAsB,MAAM,CAC1B,KAAK,EAAE,MAAM,EACb,EACE,SAAgB,EAChB,SAAmB,EACnB,OAAO,EACP,OAAO,GACR,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,iBAsB7G"}
1
+ {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/build/bundle.ts"],"names":[],"mappings":"AAgMA,wBAAsB,MAAM,CAC1B,KAAK,EAAE,MAAM,EACb,EACE,SAAgB,EAChB,SAAmB,EACnB,OAAO,EACP,OAAO,GACR,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,iBAoB7G"}
@@ -1,4 +1,5 @@
1
- export declare class Deps {
1
+ import { MastraBase } from '@mastra/core';
2
+ export declare class Deps extends MastraBase {
2
3
  private packageManager;
3
4
  constructor();
4
5
  private findLockFile;
@@ -8,14 +9,13 @@ export declare class Deps {
8
9
  packages?: string[];
9
10
  }): Promise<import("execa").Result<{
10
11
  cwd: string;
11
- all: true;
12
+ env: Record<string, string>;
12
13
  shell: true;
13
- stdio: "inherit";
14
14
  }>>;
15
15
  installPackages(packages: string[]): Promise<import("execa").Result<{
16
- all: true;
16
+ cwd: string;
17
+ env: Record<string, string>;
17
18
  shell: true;
18
- stdio: "inherit";
19
19
  }>>;
20
20
  checkDependencies(dependencies: string[]): Promise<string>;
21
21
  getProjectName(): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../src/build/deps.ts"],"names":[],"mappings":"AASA,qBAAa,IAAI;IACf,OAAO,CAAC,cAAc,CAAS;;IAM/B,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,iBAAiB;IAcZ,OAAO,CAAC,EAAE,GAAmB,EAAE,QAAa,EAAE,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE;;;;;;IAgBrF,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE;;;;;IAgBlC,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAwB1D,cAAc;IAWd,iBAAiB;IASjB,uBAAuB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAQrE"}
1
+ {"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../src/build/deps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAW1C,qBAAa,IAAK,SAAQ,UAAU;IAClC,OAAO,CAAC,cAAc,CAAS;;IAO/B,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,iBAAiB;IAcZ,OAAO,CAAC,EAAE,GAAmB,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E,WAAW,CACf,EAAE,UAAkB,EAAE,SAAiB,EAAE,GAAE;QAAE,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAGrF;IAiBG,eAAe;IAMf,OAAO,CAAC,EACZ,GAAG,EACH,UAAU,EACV,SAAgB,EAChB,SAAS,GACV,EAAE;QACD,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB;CAUF"}
@@ -1,2 +1,3 @@
1
1
  export * from './base.js';
2
+ export * from './log.js';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/deploy/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/deploy/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { Logger } from '@mastra/core';
2
+ import { Transform } from 'stream';
3
+ export declare const createPinoStream: (logger: Logger) => Transform;
4
+ export declare function createExecaLogger({ logger, root }: {
5
+ logger: Logger;
6
+ root: string;
7
+ }): ({ cmd, args, env }: {
8
+ cmd: string;
9
+ args: string[];
10
+ env: Record<string, string>;
11
+ }) => Promise<import("execa").Result<{
12
+ cwd: string;
13
+ env: Record<string, string>;
14
+ shell: true;
15
+ }>>;
16
+ export declare function createChildProcessLogger({ logger, root }: {
17
+ logger: Logger;
18
+ root: string;
19
+ }): ({ cmd, args, env }: {
20
+ cmd: string;
21
+ args: string[];
22
+ env: Record<string, string>;
23
+ }) => Promise<unknown>;
24
+ //# sourceMappingURL=log.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/deploy/log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,eAAO,MAAM,gBAAgB,WAAY,MAAM,cAgB9C,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,wBAEhD;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE;;;;IAa/F;AAED,wBAAgB,wBAAwB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,wBAEvD;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,sBAoC/F"}
@@ -10,8 +10,9 @@ var esbuild = require('esbuild');
10
10
  var zod = require('zod');
11
11
  var fsExtra = require('fs-extra/esm');
12
12
  var child_process = require('child_process');
13
- var execa = require('execa');
14
13
  var fsPromises = require('fs/promises');
14
+ var execa = require('execa');
15
+ var stream = require('stream');
15
16
  var nodeServer = require('@hono/node-server');
16
17
  var serveStatic = require('@hono/node-server/serve-static');
17
18
  var swaggerUi = require('@hono/swagger-ui');
@@ -647,6 +648,10 @@ function upsertMastraDir(_ref) {
647
648
  }
648
649
  }
649
650
 
651
+ var logger = /*#__PURE__*/core.createLogger({
652
+ name: 'Mastra CLI',
653
+ level: 'debug'
654
+ });
650
655
  var buildWorkflow = /*#__PURE__*/new core.Workflow({
651
656
  name: 'Build',
652
657
  triggerSchema: /*#__PURE__*/zod.z.object({
@@ -657,7 +662,6 @@ var buildWorkflow = /*#__PURE__*/new core.Workflow({
657
662
  devMode: /*#__PURE__*/zod.z["boolean"]().optional()
658
663
  })
659
664
  });
660
- buildWorkflow.__setLogger(null);
661
665
  var ensureDir = /*#__PURE__*/new core.Step({
662
666
  id: 'Ensure Directory',
663
667
  execute: (/*#__PURE__*/function () {
@@ -763,11 +767,11 @@ var bundleStep = /*#__PURE__*/new core.Step({
763
767
  case 17:
764
768
  result = _context2.sent;
765
769
  if (devMode && missingMastraDependency) {
766
- console.error("Missing Mastra dependency. Please install the mastra package in your project or globally using npm i -g mastra");
770
+ logger.error("Missing Mastra dependency. Please install the mastra package in your project or globally using npm i -g mastra");
767
771
  process.exit(1);
768
772
  }
769
773
  // Log build results
770
- console.log("[" + buildName + "]: build completed successfully");
774
+ logger.info("[" + buildName + "]: completed successfully");
771
775
  return _context2.abrupt("return", result);
772
776
  case 21:
773
777
  case "end":
@@ -826,8 +830,9 @@ function _bundle() {
826
830
  case 0:
827
831
  _ref3 = _temp === void 0 ? {} : _temp, _ref3$useBanner = _ref3.useBanner, useBanner = _ref3$useBanner === void 0 ? true : _ref3$useBanner, _ref3$buildName = _ref3.buildName, buildName = _ref3$buildName === void 0 ? 'Build' : _ref3$buildName, outfile = _ref3.outfile, devMode = _ref3.devMode;
828
832
  _buildWorkflow$create = buildWorkflow.createRun(), start = _buildWorkflow$create.start;
829
- _context4.prev = 2;
830
- _context4.next = 5;
833
+ buildWorkflow.__setLogger(core.noopLogger);
834
+ _context4.prev = 3;
835
+ _context4.next = 6;
831
836
  return start({
832
837
  triggerData: {
833
838
  buildName: buildName,
@@ -837,28 +842,149 @@ function _bundle() {
837
842
  devMode: devMode
838
843
  }
839
844
  });
840
- case 5:
841
- _context4.next = 11;
845
+ case 6:
846
+ _context4.next = 12;
842
847
  break;
843
- case 7:
844
- _context4.prev = 7;
845
- _context4.t0 = _context4["catch"](2);
846
- console.error('Failed to build:', _context4.t0);
848
+ case 8:
849
+ _context4.prev = 8;
850
+ _context4.t0 = _context4["catch"](3);
851
+ logger.error('Failed to build:', {
852
+ error: _context4.t0
853
+ });
847
854
  process.exit(1);
848
- case 11:
855
+ case 12:
849
856
  case "end":
850
857
  return _context4.stop();
851
858
  }
852
- }, _callee4, null, [[2, 7]]);
859
+ }, _callee4, null, [[3, 8]]);
853
860
  }));
854
861
  return _bundle.apply(this, arguments);
855
862
  }
856
863
 
857
- var Deps = /*#__PURE__*/function () {
864
+ var createPinoStream = function createPinoStream(logger) {
865
+ return new stream.Transform({
866
+ transform: function transform(chunk, _encoding, callback) {
867
+ // Convert Buffer/string to string and trim whitespace
868
+ var line = chunk.toString().trim();
869
+ if (line) {
870
+ console.log(line);
871
+ // Log each line through Pino
872
+ logger.info(line);
873
+ }
874
+ // Pass through the original data
875
+ callback(null, chunk);
876
+ }
877
+ });
878
+ };
879
+ function createExecaLogger(_ref) {
880
+ var logger = _ref.logger,
881
+ root = _ref.root;
882
+ var pinoStream = createPinoStream(logger);
883
+ return /*#__PURE__*/function () {
884
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
885
+ var _subprocess$stdout, _subprocess$stderr;
886
+ var cmd, args, env, subprocess;
887
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
888
+ while (1) switch (_context.prev = _context.next) {
889
+ case 0:
890
+ cmd = _ref2.cmd, args = _ref2.args, env = _ref2.env;
891
+ subprocess = execa.execa(cmd, args, {
892
+ cwd: root,
893
+ env: env,
894
+ shell: true
895
+ }); // Pipe stdout and stderr through the Pino stream
896
+ (_subprocess$stdout = subprocess.stdout) == null || _subprocess$stdout.pipe(pinoStream);
897
+ (_subprocess$stderr = subprocess.stderr) == null || _subprocess$stderr.pipe(pinoStream);
898
+ _context.next = 6;
899
+ return subprocess;
900
+ case 6:
901
+ return _context.abrupt("return", _context.sent);
902
+ case 7:
903
+ case "end":
904
+ return _context.stop();
905
+ }
906
+ }, _callee);
907
+ }));
908
+ return function (_x) {
909
+ return _ref3.apply(this, arguments);
910
+ };
911
+ }();
912
+ }
913
+ function createChildProcessLogger(_ref4) {
914
+ var logger = _ref4.logger,
915
+ root = _ref4.root;
916
+ var pinoStream = createPinoStream(logger);
917
+ return /*#__PURE__*/function () {
918
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref5) {
919
+ var cmd, args, env, _subprocess$stdout2, _subprocess$stderr2, subprocess;
920
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
921
+ while (1) switch (_context2.prev = _context2.next) {
922
+ case 0:
923
+ cmd = _ref5.cmd, args = _ref5.args, env = _ref5.env;
924
+ _context2.prev = 1;
925
+ subprocess = child_process.spawn(cmd, args, {
926
+ cwd: root,
927
+ shell: true,
928
+ env: env
929
+ }); // Pipe stdout and stderr through the Pino stream
930
+ (_subprocess$stdout2 = subprocess.stdout) == null || _subprocess$stdout2.pipe(pinoStream);
931
+ (_subprocess$stderr2 = subprocess.stderr) == null || _subprocess$stderr2.pipe(pinoStream);
932
+ // Wait for the process to complete
933
+ return _context2.abrupt("return", new Promise(function (resolve, reject) {
934
+ subprocess.on('close', function (code) {
935
+ pinoStream.end();
936
+ if (code === 0) {
937
+ resolve({
938
+ success: true
939
+ });
940
+ } else {
941
+ reject(new Error("Process exited with code " + code));
942
+ }
943
+ });
944
+ subprocess.on('error', function (error) {
945
+ pinoStream.end();
946
+ logger.error('Process failed', {
947
+ error: error
948
+ });
949
+ reject(error);
950
+ });
951
+ }));
952
+ case 8:
953
+ _context2.prev = 8;
954
+ _context2.t0 = _context2["catch"](1);
955
+ console.log(_context2.t0);
956
+ logger.error('Process failed', {
957
+ error: _context2.t0
958
+ });
959
+ pinoStream.end();
960
+ return _context2.abrupt("return", {
961
+ success: false,
962
+ error: _context2.t0
963
+ });
964
+ case 14:
965
+ case "end":
966
+ return _context2.stop();
967
+ }
968
+ }, _callee2, null, [[1, 8]]);
969
+ }));
970
+ return function (_x2) {
971
+ return _ref6.apply(this, arguments);
972
+ };
973
+ }();
974
+ }
975
+
976
+ var Deps = /*#__PURE__*/function (_MastraBase) {
858
977
  function Deps() {
859
- this.packageManager = void 0;
860
- this.packageManager = this.getPackageManager();
978
+ var _this;
979
+ _this = _MastraBase.call(this, {
980
+ component: 'DEPLOYER',
981
+ name: 'DEPS'
982
+ }) || this;
983
+ _this.packageManager = void 0;
984
+ _this.packageManager = _this.getPackageManager();
985
+ return _this;
861
986
  }
987
+ _inheritsLoose(Deps, _MastraBase);
862
988
  var _proto = Deps.prototype;
863
989
  _proto.findLockFile = function findLockFile(dir) {
864
990
  var lockFiles = ['pnpm-lock.yaml', 'package-lock.json', 'yarn.lock'];
@@ -889,7 +1015,7 @@ var Deps = /*#__PURE__*/function () {
889
1015
  };
890
1016
  _proto.install = /*#__PURE__*/function () {
891
1017
  var _install = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
892
- var _ref$dir, dir, _ref$packages, packages, runCommand;
1018
+ var _ref$dir, dir, _ref$packages, packages, runCommand, execaLogger;
893
1019
  return _regeneratorRuntime().wrap(function _callee$(_context) {
894
1020
  while (1) switch (_context.prev = _context.next) {
895
1021
  case 0:
@@ -900,13 +1026,16 @@ var Deps = /*#__PURE__*/function () {
900
1026
  } else {
901
1027
  runCommand = this.packageManager + " " + ((packages == null ? void 0 : packages.length) > 0 ? "add" : "install");
902
1028
  }
903
- return _context.abrupt("return", execa.execa("" + runCommand, packages, {
904
- cwd: dir,
905
- all: true,
906
- shell: true,
907
- stdio: 'inherit'
1029
+ execaLogger = createExecaLogger({
1030
+ logger: this.logger,
1031
+ root: dir
1032
+ });
1033
+ return _context.abrupt("return", execaLogger({
1034
+ cmd: runCommand,
1035
+ args: packages,
1036
+ env: {}
908
1037
  }));
909
- case 4:
1038
+ case 5:
910
1039
  case "end":
911
1040
  return _context.stop();
912
1041
  }
@@ -919,7 +1048,7 @@ var Deps = /*#__PURE__*/function () {
919
1048
  }();
920
1049
  _proto.installPackages = /*#__PURE__*/function () {
921
1050
  var _installPackages = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(packages) {
922
- var runCommand, packageList;
1051
+ var runCommand, execaLogger;
923
1052
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
924
1053
  while (1) switch (_context2.prev = _context2.next) {
925
1054
  case 0:
@@ -929,11 +1058,14 @@ var Deps = /*#__PURE__*/function () {
929
1058
  } else {
930
1059
  runCommand = this.packageManager + " add";
931
1060
  }
932
- packageList = packages.join(' ');
933
- return _context2.abrupt("return", execa.execa(runCommand + " " + packageList, {
934
- all: true,
935
- shell: true,
936
- stdio: 'inherit'
1061
+ execaLogger = createExecaLogger({
1062
+ logger: this.logger,
1063
+ root: ''
1064
+ });
1065
+ return _context2.abrupt("return", execaLogger({
1066
+ cmd: "" + runCommand,
1067
+ args: packages,
1068
+ env: {}
937
1069
  }));
938
1070
  case 4:
939
1071
  case "end":
@@ -1085,7 +1217,7 @@ var Deps = /*#__PURE__*/function () {
1085
1217
  return addScriptsToPackageJson;
1086
1218
  }();
1087
1219
  return Deps;
1088
- }();
1220
+ }(core.MastraBase);
1089
1221
 
1090
1222
  var Deployer = /*#__PURE__*/function (_MastraBase) {
1091
1223
  function Deployer(_ref) {
@@ -1094,7 +1226,7 @@ var Deployer = /*#__PURE__*/function (_MastraBase) {
1094
1226
  type = _ref.type;
1095
1227
  _this = _MastraBase.call(this, {
1096
1228
  component: 'DEPLOYER',
1097
- name: 'DEPLOYER'
1229
+ name: "Mastra " + type
1098
1230
  }) || this;
1099
1231
  _this.deps = new Deps();
1100
1232
  _this.dotMastraPath = void 0;
@@ -1104,6 +1236,7 @@ var Deployer = /*#__PURE__*/function (_MastraBase) {
1104
1236
  _this.projectPath = dir;
1105
1237
  _this.dotMastraPath = path.join(dir, '.mastra');
1106
1238
  _this.type = type;
1239
+ _this.deps.__setLogger(_this.logger);
1107
1240
  return _this;
1108
1241
  }
1109
1242
  _inheritsLoose(Deployer, _MastraBase);
@@ -1137,7 +1270,7 @@ var Deployer = /*#__PURE__*/function (_MastraBase) {
1137
1270
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1138
1271
  while (1) switch (_context2.prev = _context2.next) {
1139
1272
  case 0:
1140
- this.logger.info("[Mastra " + this.type + "] - Writing package.json");
1273
+ this.logger.debug("[Mastra " + this.type + "] - Writing package.json");
1141
1274
  projectPkg = {
1142
1275
  dependencies: {}
1143
1276
  };
@@ -3542,7 +3675,10 @@ exports.EnvService = EnvService;
3542
3675
  exports.FileEnvService = FileEnvService;
3543
3676
  exports.FileService = FileService;
3544
3677
  exports.bundle = bundle;
3678
+ exports.createChildProcessLogger = createChildProcessLogger;
3679
+ exports.createExecaLogger = createExecaLogger;
3545
3680
  exports.createHonoServer = createHonoServer;
3546
3681
  exports.createNodeServer = createNodeServer;
3682
+ exports.createPinoStream = createPinoStream;
3547
3683
  exports.upsertMastraDir = upsertMastraDir;
3548
3684
  //# sourceMappingURL=deployer.cjs.development.js.map