@mastra/cloudflare 0.12.1-alpha.1 → 0.12.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @mastra/cloudflare
2
2
 
3
+ ## 0.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - clean up console logs in monorepo ([#7926](https://github.com/mastra-ai/mastra/pull/7926))
8
+
9
+ - Update peerdep of @mastra/core ([#7619](https://github.com/mastra-ai/mastra/pull/7619))
10
+
11
+ - Add resource id to workflow run snapshots ([#7740](https://github.com/mastra-ai/mastra/pull/7740))
12
+
13
+ - Updated dependencies [[`197cbb2`](https://github.com/mastra-ai/mastra/commit/197cbb248fc8cb4bbf61bf70b770f1388b445df2), [`a1bb887`](https://github.com/mastra-ai/mastra/commit/a1bb887e8bfae44230f487648da72e96ef824561), [`6590763`](https://github.com/mastra-ai/mastra/commit/65907630ef4bf4127067cecd1cb21b56f55d5f1b), [`fb84c21`](https://github.com/mastra-ai/mastra/commit/fb84c21859d09bdc8f158bd5412bdc4b5835a61c), [`5802bf5`](https://github.com/mastra-ai/mastra/commit/5802bf57f6182e4b67c28d7d91abed349a8d14f3), [`5bda53a`](https://github.com/mastra-ai/mastra/commit/5bda53a9747bfa7d876d754fc92c83a06e503f62), [`c2eade3`](https://github.com/mastra-ai/mastra/commit/c2eade3508ef309662f065e5f340d7840295dd53), [`f26a8fd`](https://github.com/mastra-ai/mastra/commit/f26a8fd99fcb0497a5d86c28324430d7f6a5fb83), [`222965a`](https://github.com/mastra-ai/mastra/commit/222965a98ce8197b86673ec594244650b5960257), [`6047778`](https://github.com/mastra-ai/mastra/commit/6047778e501df460648f31decddf8e443f36e373), [`a0f5f1c`](https://github.com/mastra-ai/mastra/commit/a0f5f1ca39c3c5c6d26202e9fcab986b4fe14568), [`9d4fc09`](https://github.com/mastra-ai/mastra/commit/9d4fc09b2ad55caa7738c7ceb3a905e454f74cdd), [`05c7abf`](https://github.com/mastra-ai/mastra/commit/05c7abfe105a015b7760c9bf33ff4419727502a0), [`0324ceb`](https://github.com/mastra-ai/mastra/commit/0324ceb8af9d16c12a531f90e575f6aab797ac81), [`d75ccf0`](https://github.com/mastra-ai/mastra/commit/d75ccf06dfd2582b916aa12624e3cd61b279edf1), [`0f9d227`](https://github.com/mastra-ai/mastra/commit/0f9d227890a98db33865abbea39daf407cd55ef7), [`b356f5f`](https://github.com/mastra-ai/mastra/commit/b356f5f7566cb3edb755d91f00b72fc1420b2a37), [`de056a0`](https://github.com/mastra-ai/mastra/commit/de056a02cbb43f6aa0380ab2150ea404af9ec0dd), [`f5ce05f`](https://github.com/mastra-ai/mastra/commit/f5ce05f831d42c69559bf4c0fdb46ccb920fc3a3), [`60c9cec`](https://github.com/mastra-ai/mastra/commit/60c9cec7048a79a87440f7840c383875bd710d93), [`c93532a`](https://github.com/mastra-ai/mastra/commit/c93532a340b80e4dd946d4c138d9381de5f70399), [`6cb1fcb`](https://github.com/mastra-ai/mastra/commit/6cb1fcbc8d0378ffed0d17784c96e68f30cb0272), [`aee4f00`](https://github.com/mastra-ai/mastra/commit/aee4f00e61e1a42e81a6d74ff149dbe69e32695a), [`9f6f30f`](https://github.com/mastra-ai/mastra/commit/9f6f30f04ec6648bbca798ea8aad59317c40d8db), [`547c621`](https://github.com/mastra-ai/mastra/commit/547c62104af3f7a551b3754e9cbdf0a3fbba15e4), [`897995e`](https://github.com/mastra-ai/mastra/commit/897995e630d572fe2891e7ede817938cabb43251), [`0fed8f2`](https://github.com/mastra-ai/mastra/commit/0fed8f2aa84b167b3415ea6f8f70755775132c8d), [`4f9ea8c`](https://github.com/mastra-ai/mastra/commit/4f9ea8c95ea74ba9abbf3b2ab6106c7d7bc45689), [`1a1fbe6`](https://github.com/mastra-ai/mastra/commit/1a1fbe66efb7d94abc373ed0dd9676adb8122454), [`d706fad`](https://github.com/mastra-ai/mastra/commit/d706fad6e6e4b72357b18d229ba38e6c913c0e70), [`87fd07f`](https://github.com/mastra-ai/mastra/commit/87fd07ff35387a38728967163460231b5d33ae3b), [`5c3768f`](https://github.com/mastra-ai/mastra/commit/5c3768fa959454232ad76715c381f4aac00c6881), [`2685a78`](https://github.com/mastra-ai/mastra/commit/2685a78f224b8b04e20d4fab5ac1adb638190071), [`36f39c0`](https://github.com/mastra-ai/mastra/commit/36f39c00dc794952dc3c11aab91c2fa8bca74b11), [`239b5a4`](https://github.com/mastra-ai/mastra/commit/239b5a497aeae2e8b4d764f46217cfff2284788e), [`8a3f5e4`](https://github.com/mastra-ai/mastra/commit/8a3f5e4212ec36b302957deb4bd47005ab598382)]:
14
+ - @mastra/core@0.17.0
15
+
16
+ ## 0.12.1-alpha.2
17
+
18
+ ### Patch Changes
19
+
20
+ - clean up console logs in monorepo ([#7926](https://github.com/mastra-ai/mastra/pull/7926))
21
+
22
+ - Updated dependencies [[`197cbb2`](https://github.com/mastra-ai/mastra/commit/197cbb248fc8cb4bbf61bf70b770f1388b445df2), [`6590763`](https://github.com/mastra-ai/mastra/commit/65907630ef4bf4127067cecd1cb21b56f55d5f1b), [`c2eade3`](https://github.com/mastra-ai/mastra/commit/c2eade3508ef309662f065e5f340d7840295dd53), [`222965a`](https://github.com/mastra-ai/mastra/commit/222965a98ce8197b86673ec594244650b5960257), [`0324ceb`](https://github.com/mastra-ai/mastra/commit/0324ceb8af9d16c12a531f90e575f6aab797ac81), [`0f9d227`](https://github.com/mastra-ai/mastra/commit/0f9d227890a98db33865abbea39daf407cd55ef7), [`de056a0`](https://github.com/mastra-ai/mastra/commit/de056a02cbb43f6aa0380ab2150ea404af9ec0dd), [`c93532a`](https://github.com/mastra-ai/mastra/commit/c93532a340b80e4dd946d4c138d9381de5f70399), [`6cb1fcb`](https://github.com/mastra-ai/mastra/commit/6cb1fcbc8d0378ffed0d17784c96e68f30cb0272), [`2685a78`](https://github.com/mastra-ai/mastra/commit/2685a78f224b8b04e20d4fab5ac1adb638190071), [`239b5a4`](https://github.com/mastra-ai/mastra/commit/239b5a497aeae2e8b4d764f46217cfff2284788e)]:
23
+ - @mastra/core@0.17.0-alpha.6
24
+
3
25
  ## 0.12.1-alpha.1
4
26
 
5
27
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -469,9 +469,9 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
469
469
  const messageMigrationTasks = [];
470
470
  for (const message of validatedMessages) {
471
471
  const existingMessage = await this.findMessageInAnyThread(message.id);
472
- console.log(`Checking message ${message.id}: existing=${existingMessage?.threadId}, new=${message.threadId}`);
472
+ console.info(`Checking message ${message.id}: existing=${existingMessage?.threadId}, new=${message.threadId}`);
473
473
  if (existingMessage && existingMessage.threadId && existingMessage.threadId !== message.threadId) {
474
- console.log(`Migrating message ${message.id} from ${existingMessage.threadId} to ${message.threadId}`);
474
+ console.info(`Migrating message ${message.id} from ${existingMessage.threadId} to ${message.threadId}`);
475
475
  messageMigrationTasks.push(this.migrateMessage(message.id, existingMessage.threadId, message.threadId));
476
476
  }
477
477
  }
@@ -500,7 +500,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
500
500
  ...cleanMessage,
501
501
  createdAt: storage.serializeDate(cleanMessage.createdAt)
502
502
  };
503
- console.log(`Saving message ${message.id} with content:`, {
503
+ console.info(`Saving message ${message.id} with content:`, {
504
504
  content: serializedMessage.content,
505
505
  contentType: typeof serializedMessage.content,
506
506
  isArray: Array.isArray(serializedMessage.content)
@@ -603,7 +603,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
603
603
  const latestIds = await this.getLastN(threadMessagesKey, limit);
604
604
  latestIds.forEach((id) => messageIds.add(id));
605
605
  } catch {
606
- console.log(`No message order found for thread ${threadId}, skipping latest messages`);
606
+ console.info(`No message order found for thread ${threadId}, skipping latest messages`);
607
607
  }
608
608
  }
609
609
  async fetchAndParseMessagesFromMultipleThreads(messageIds, include, targetThreadId) {
@@ -634,7 +634,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
634
634
  const data = await this.operations.getKV(storage.TABLE_MESSAGES, key);
635
635
  if (!data) return null;
636
636
  const parsed = typeof data === "string" ? JSON.parse(data) : data;
637
- console.log(`Retrieved message ${id} from thread ${threadId} with content:`, {
637
+ console.info(`Retrieved message ${id} from thread ${threadId} with content:`, {
638
638
  content: parsed.content,
639
639
  contentType: typeof parsed.content,
640
640
  isArray: Array.isArray(parsed.content)
@@ -655,9 +655,9 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
655
655
  selectBy,
656
656
  format
657
657
  }) {
658
- console.log(`getMessages called with format: ${format}, threadId: ${threadId}`);
658
+ console.info(`getMessages called with format: ${format}, threadId: ${threadId}`);
659
659
  const actualFormat = format || "v1";
660
- console.log(`Using format: ${actualFormat}`);
660
+ console.info(`Using format: ${actualFormat}`);
661
661
  const limit = storage.resolveMessageLimit({ last: selectBy?.last, defaultLimit: 40 });
662
662
  const messageIds = /* @__PURE__ */ new Set();
663
663
  if (limit === 0 && !selectBy?.include?.length) return [];
@@ -707,7 +707,7 @@ var MemoryStorageCloudflare = class extends storage.MemoryStorage {
707
707
  createdAt: storage.ensureDate(message.createdAt)
708
708
  }));
709
709
  if (actualFormat === `v1`) {
710
- console.log(`Processing ${prepared.length} messages for v1 format - returning directly without MessageList`);
710
+ console.info(`Processing ${prepared.length} messages for v1 format - returning directly without MessageList`);
711
711
  return prepared.map((msg) => ({
712
712
  ...msg,
713
713
  createdAt: new Date(msg.createdAt)