@mastra/core 0.1.18 → 0.1.19

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/dist/core.esm.js CHANGED
@@ -1868,7 +1868,8 @@ var makeCallback = function makeCallback(framework) {
1868
1868
 
1869
1869
  var APP_ID = 'mastra';
1870
1870
  var client$1 = /*#__PURE__*/new Inngest({
1871
- id: APP_ID
1871
+ id: APP_ID,
1872
+ eventKey: process.env.INNGEST_EVENT_KEY
1872
1873
  });
1873
1874
 
1874
1875
  function readBlueprintSync(filePath) {
@@ -5534,16 +5535,22 @@ var getPineconeIndices = /*#__PURE__*/function () {
5534
5535
  return _regeneratorRuntime().wrap(function _callee5$(_context7) {
5535
5536
  while (1) switch (_context7.prev = _context7.next) {
5536
5537
  case 0:
5538
+ if (process.env.PINECONE_API_KEY) {
5539
+ _context7.next = 2;
5540
+ break;
5541
+ }
5542
+ return _context7.abrupt("return", []);
5543
+ case 2:
5537
5544
  vectorLayer = new VectorLayer();
5538
- _context7.next = 3;
5545
+ _context7.next = 5;
5539
5546
  return vectorLayer.fetchPineconeIndexes();
5540
- case 3:
5547
+ case 5:
5541
5548
  indexes = _context7.sent;
5542
5549
  if (!(indexes && (indexes == null ? void 0 : indexes.length) > 0)) {
5543
- _context7.next = 9;
5550
+ _context7.next = 11;
5544
5551
  break;
5545
5552
  }
5546
- _context7.next = 7;
5553
+ _context7.next = 9;
5547
5554
  return Promise.all(indexes.map(/*#__PURE__*/function () {
5548
5555
  var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(index) {
5549
5556
  var stats, namespaces;
@@ -5571,12 +5578,12 @@ var getPineconeIndices = /*#__PURE__*/function () {
5571
5578
  return _ref11.apply(this, arguments);
5572
5579
  };
5573
5580
  }()));
5574
- case 7:
5581
+ case 9:
5575
5582
  indexesWithStats = _context7.sent;
5576
5583
  return _context7.abrupt("return", indexesWithStats);
5577
- case 9:
5584
+ case 11:
5578
5585
  return _context7.abrupt("return", []);
5579
- case 10:
5586
+ case 12:
5580
5587
  case "end":
5581
5588
  return _context7.stop();
5582
5589
  }