@mastra/lance 1.0.6-alpha.0 → 1.0.6-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.
package/dist/index.js CHANGED
@@ -854,10 +854,13 @@ var StoreMemoryLance = class extends MemoryStorage {
854
854
  escapeSql(str) {
855
855
  return str.replace(/'/g, "''");
856
856
  }
857
- async getThreadById({ threadId }) {
857
+ async getThreadById({
858
+ threadId,
859
+ resourceId
860
+ }) {
858
861
  try {
859
862
  const thread = await this.#db.load({ tableName: TABLE_THREADS, keys: { id: threadId } });
860
- if (!thread) {
863
+ if (!thread || resourceId !== void 0 && thread.resourceId !== resourceId) {
861
864
  return null;
862
865
  }
863
866
  return {