create-mastra 1.13.0 → 1.14.0

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,26 @@
1
1
  # create-mastra
2
2
 
3
+ ## 1.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Added five Gateway-first templates for documentation search, browser automation, meeting notes, company knowledge, and Claw workspace assistance. ([#17425](https://github.com/mastra-ai/mastra/pull/17425))
8
+
9
+ Example:
10
+
11
+ ```sh
12
+ npx create-mastra@latest --template template-docs-expert
13
+ ```
14
+
15
+ ### Patch Changes
16
+
17
+ - dependencies updates: ([#17846](https://github.com/mastra-ai/mastra/pull/17846))
18
+ - Updated dependency [`posthog-node@^5.37.0` ↗︎](https://www.npmjs.com/package/posthog-node/v/5.37.0) (from `^5.30.6`, in `dependencies`)
19
+
20
+ - Republished clean patch versions after compromised npm releases were published outside of the trusted release workflow. ([#18049](https://github.com/mastra-ai/mastra/pull/18049))
21
+
22
+ These packages must be released as clean versions higher than the compromised versions currently present on npm so semver ranges resolve to trusted tarballs.
23
+
3
24
  ## 1.13.0
4
25
 
5
26
  ## 1.13.0-alpha.4
package/dist/index.js CHANGED
@@ -11300,30 +11300,47 @@ function requireUtimes () {
11300
11300
  const u = requireUniversalify().fromPromise;
11301
11301
 
11302
11302
  async function utimesMillis (path, atime, mtime) {
11303
- // if (!HAS_MILLIS_RES) return fs.utimes(path, atime, mtime, callback)
11304
11303
  const fd = await fs.open(path, 'r+');
11305
11304
 
11306
- let closeErr = null;
11305
+ let error = null;
11307
11306
 
11308
11307
  try {
11309
11308
  await fs.futimes(fd, atime, mtime);
11309
+ } catch (futimesErr) {
11310
+ error = futimesErr;
11310
11311
  } finally {
11311
11312
  try {
11312
11313
  await fs.close(fd);
11313
- } catch (e) {
11314
- closeErr = e;
11314
+ } catch (closeErr) {
11315
+ if (!error) error = closeErr;
11315
11316
  }
11316
11317
  }
11317
11318
 
11318
- if (closeErr) {
11319
- throw closeErr
11319
+ if (error) {
11320
+ throw error
11320
11321
  }
11321
11322
  }
11322
11323
 
11323
11324
  function utimesMillisSync (path, atime, mtime) {
11324
11325
  const fd = fs.openSync(path, 'r+');
11325
- fs.futimesSync(fd, atime, mtime);
11326
- return fs.closeSync(fd)
11326
+
11327
+ let error = null;
11328
+
11329
+ try {
11330
+ fs.futimesSync(fd, atime, mtime);
11331
+ } catch (futimesErr) {
11332
+ error = futimesErr;
11333
+ } finally {
11334
+ try {
11335
+ fs.closeSync(fd);
11336
+ } catch (closeErr) {
11337
+ if (!error) error = closeErr;
11338
+ }
11339
+ }
11340
+
11341
+ if (error) {
11342
+ throw error
11343
+ }
11327
11344
  }
11328
11345
 
11329
11346
  utimes = {
@@ -12087,14 +12104,14 @@ function requireLink () {
12087
12104
  async function createLink (srcpath, dstpath) {
12088
12105
  let dstStat;
12089
12106
  try {
12090
- dstStat = await fs.lstat(dstpath);
12107
+ dstStat = await fs.lstat(dstpath, { bigint: true });
12091
12108
  } catch {
12092
12109
  // ignore error
12093
12110
  }
12094
12111
 
12095
12112
  let srcStat;
12096
12113
  try {
12097
- srcStat = await fs.lstat(srcpath);
12114
+ srcStat = await fs.lstat(srcpath, { bigint: true });
12098
12115
  } catch (err) {
12099
12116
  err.message = err.message.replace('lstat', 'ensureLink');
12100
12117
  throw err
@@ -12116,11 +12133,11 @@ function requireLink () {
12116
12133
  function createLinkSync (srcpath, dstpath) {
12117
12134
  let dstStat;
12118
12135
  try {
12119
- dstStat = fs.lstatSync(dstpath);
12136
+ dstStat = fs.lstatSync(dstpath, { bigint: true });
12120
12137
  } catch {}
12121
12138
 
12122
12139
  try {
12123
- const srcStat = fs.lstatSync(srcpath);
12140
+ const srcStat = fs.lstatSync(srcpath, { bigint: true });
12124
12141
  if (dstStat && areIdentical(srcStat, dstStat)) return
12125
12142
  } catch (err) {
12126
12143
  err.message = err.message.replace('lstat', 'ensureLink');
@@ -12324,18 +12341,18 @@ function requireSymlink () {
12324
12341
  // (standard symlink behavior) or fall back to cwd if that doesn't exist
12325
12342
  let srcStat;
12326
12343
  if (path$1.isAbsolute(srcpath)) {
12327
- srcStat = await fs.stat(srcpath);
12344
+ srcStat = await fs.stat(srcpath, { bigint: true });
12328
12345
  } else {
12329
12346
  const dstdir = path$1.dirname(dstpath);
12330
12347
  const relativeToDst = path$1.join(dstdir, srcpath);
12331
12348
  try {
12332
- srcStat = await fs.stat(relativeToDst);
12349
+ srcStat = await fs.stat(relativeToDst, { bigint: true });
12333
12350
  } catch {
12334
- srcStat = await fs.stat(srcpath);
12351
+ srcStat = await fs.stat(srcpath, { bigint: true });
12335
12352
  }
12336
12353
  }
12337
12354
 
12338
- const dstStat = await fs.stat(dstpath);
12355
+ const dstStat = await fs.stat(dstpath, { bigint: true });
12339
12356
  if (areIdentical(srcStat, dstStat)) return
12340
12357
  }
12341
12358
 
@@ -12361,18 +12378,18 @@ function requireSymlink () {
12361
12378
  // (standard symlink behavior) or fall back to cwd if that doesn't exist
12362
12379
  let srcStat;
12363
12380
  if (path$1.isAbsolute(srcpath)) {
12364
- srcStat = fs.statSync(srcpath);
12381
+ srcStat = fs.statSync(srcpath, { bigint: true });
12365
12382
  } else {
12366
12383
  const dstdir = path$1.dirname(dstpath);
12367
12384
  const relativeToDst = path$1.join(dstdir, srcpath);
12368
12385
  try {
12369
- srcStat = fs.statSync(relativeToDst);
12386
+ srcStat = fs.statSync(relativeToDst, { bigint: true });
12370
12387
  } catch {
12371
- srcStat = fs.statSync(srcpath);
12388
+ srcStat = fs.statSync(srcpath, { bigint: true });
12372
12389
  }
12373
12390
  }
12374
12391
 
12375
- const dstStat = fs.statSync(dstpath);
12392
+ const dstStat = fs.statSync(dstpath, { bigint: true });
12376
12393
  if (areIdentical(srcStat, dstStat)) return
12377
12394
  }
12378
12395
 
@@ -13488,13 +13505,55 @@ function requireQuote () {
13488
13505
  if (hasRequiredQuote) return quote;
13489
13506
  hasRequiredQuote = 1;
13490
13507
 
13508
+ var OPS = [
13509
+ '||',
13510
+ '&&',
13511
+ ';;',
13512
+ '|&',
13513
+ '<(',
13514
+ '<<<',
13515
+ '>>',
13516
+ '>&',
13517
+ '<&',
13518
+ '&',
13519
+ ';',
13520
+ '(',
13521
+ ')',
13522
+ '|',
13523
+ '<',
13524
+ '>'
13525
+ ];
13526
+ var LINE_TERMINATORS = /[\n\r\u2028\u2029]/;
13527
+ var GLOB_SHELL_SPECIAL = /[\s#!"$&'():;<=>@\\^`|]/g;
13528
+
13491
13529
  quote = function quote(xs) {
13492
13530
  return xs.map(function (s) {
13493
13531
  if (s === '') {
13494
13532
  return '\'\'';
13495
13533
  }
13496
13534
  if (s && typeof s === 'object') {
13497
- return s.op.replace(/(.)/g, '\\$1');
13535
+ if (s.op === 'glob') {
13536
+ if (typeof s.pattern !== 'string') {
13537
+ throw new TypeError('glob token requires a string `pattern`');
13538
+ }
13539
+ if (LINE_TERMINATORS.test(s.pattern)) {
13540
+ throw new TypeError('glob `pattern` must not contain line terminators');
13541
+ }
13542
+ return s.pattern.replace(GLOB_SHELL_SPECIAL, '\\$&');
13543
+ }
13544
+ if (typeof s.op === 'string') {
13545
+ if (OPS.indexOf(s.op) < 0) {
13546
+ throw new TypeError('invalid `op` value: ' + JSON.stringify(s.op));
13547
+ }
13548
+ return s.op.replace(/[\s\S]/g, '\\$&');
13549
+ }
13550
+ if (typeof s.comment === 'string') {
13551
+ if (LINE_TERMINATORS.test(s.comment)) {
13552
+ throw new TypeError('`comment` must not contain line terminators');
13553
+ }
13554
+ return '#' + s.comment;
13555
+ }
13556
+ throw new TypeError('unrecognized object token shape');
13498
13557
  }
13499
13558
  if ((/["\s\\]/).test(s) && !(/'/).test(s)) {
13500
13559
  return "'" + s.replace(/(['])/g, '\\$1') + "'";
@@ -15783,7 +15842,7 @@ var PinoLogger = class _PinoLogger extends MastraLogger {
15783
15842
  };
15784
15843
 
15785
15844
  var package_default = {
15786
- version: "1.13.0"};
15845
+ version: "1.14.0"};
15787
15846
  var logger = createLogger(false);
15788
15847
  function createLogger(debug = false) {
15789
15848
  return new PinoLogger({