@librechat/data-schemas 0.0.37 → 0.0.38

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.cjs CHANGED
@@ -94,6 +94,7 @@ async function loadDefaultInterface({ config, configDefaults, }) {
94
94
  fileCitations: interfaceConfig === null || interfaceConfig === void 0 ? void 0 : interfaceConfig.fileCitations,
95
95
  peoplePicker: interfaceConfig === null || interfaceConfig === void 0 ? void 0 : interfaceConfig.peoplePicker,
96
96
  marketplace: interfaceConfig === null || interfaceConfig === void 0 ? void 0 : interfaceConfig.marketplace,
97
+ remoteAgents: interfaceConfig === null || interfaceConfig === void 0 ? void 0 : interfaceConfig.remoteAgents,
97
98
  });
98
99
  return loadedInterface;
99
100
  }
@@ -3004,9 +3005,11 @@ const createMeiliMongooseModel = ({ index, attributesToIndex, syncOptions, }) =>
3004
3005
  try {
3005
3006
  // Add documents to MeiliSearch
3006
3007
  await index.addDocumentsInBatches(formattedDocs);
3007
- // Update MongoDB to mark documents as indexed
3008
+ // Update MongoDB to mark documents as indexed.
3009
+ // { timestamps: false } prevents Mongoose from touching updatedAt, preserving
3010
+ // original conversation/message timestamps (fixes sidebar chronological sort).
3008
3011
  const docsIds = documents.map((doc) => doc._id);
3009
- await this.updateMany({ _id: { $in: docsIds } }, { $set: { _meiliIndex: true } });
3012
+ await this.updateMany({ _id: { $in: docsIds } }, { $set: { _meiliIndex: true } }, { timestamps: false });
3010
3013
  }
3011
3014
  catch (error) {
3012
3015
  logger.error('[processSyncBatch] Error processing batch:', error);