@mastra/lance 0.0.0-fix-bundle-cleanup-20250911062914 → 0.0.0-fix-cloud-peer-deps-20250923194656

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
@@ -187,7 +187,6 @@ function processResultWithTypeConversion(rawResult, tableSchema) {
187
187
  } else if (fieldTypeStr.includes("float64") && ["createdAt", "updatedAt"].includes(key)) {
188
188
  processedResult[key] = new Date(processedResult[key]);
189
189
  }
190
- console.log(key, "processedResult", processedResult);
191
190
  }
192
191
  return processedResult;
193
192
  }
@@ -1264,7 +1263,7 @@ var StoreOperationsLance = class extends StoreOperations {
1264
1263
  processedRecord[key] = JSON.stringify(processedRecord[key]);
1265
1264
  }
1266
1265
  }
1267
- console.log(await table.schema());
1266
+ console.info(await table.schema());
1268
1267
  await table.mergeInsert(primaryId).whenMatchedUpdateAll().whenNotMatchedInsertAll().execute([processedRecord]);
1269
1268
  } catch (error) {
1270
1269
  throw new MastraError(
@@ -1314,7 +1313,6 @@ var StoreOperationsLance = class extends StoreOperations {
1314
1313
  }
1315
1314
  return processedRecord;
1316
1315
  });
1317
- console.log(processedRecords);
1318
1316
  await table.mergeInsert(primaryId).whenMatchedUpdateAll().whenNotMatchedInsertAll().execute(processedRecords);
1319
1317
  } catch (error) {
1320
1318
  throw new MastraError(
@@ -1816,6 +1814,7 @@ var StoreWorkflowsLance = class extends WorkflowsStorage {
1816
1814
  async persistWorkflowSnapshot({
1817
1815
  workflowName,
1818
1816
  runId,
1817
+ resourceId,
1819
1818
  snapshot
1820
1819
  }) {
1821
1820
  try {
@@ -1832,6 +1831,7 @@ var StoreWorkflowsLance = class extends WorkflowsStorage {
1832
1831
  const record = {
1833
1832
  workflow_name: workflowName,
1834
1833
  run_id: runId,
1834
+ resourceId,
1835
1835
  snapshot: JSON.stringify(snapshot),
1836
1836
  createdAt,
1837
1837
  updatedAt: now
@@ -2201,9 +2201,10 @@ var LanceStorage = class _LanceStorage extends MastraStorage {
2201
2201
  async persistWorkflowSnapshot({
2202
2202
  workflowName,
2203
2203
  runId,
2204
+ resourceId,
2204
2205
  snapshot
2205
2206
  }) {
2206
- return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, snapshot });
2207
+ return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot });
2207
2208
  }
2208
2209
  async loadWorkflowSnapshot({
2209
2210
  workflowName,