@props-labs/mesh-os 0.1.11 → 0.1.12
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/client.d.ts +0 -1
- package/dist/core/client.js +4 -5
- package/package.json +1 -1
package/dist/core/client.d.ts
CHANGED
package/dist/core/client.js
CHANGED
@@ -742,7 +742,7 @@ class MeshOS {
|
|
742
742
|
* Query memories with flexible filtering, sorting, and pagination.
|
743
743
|
*/
|
744
744
|
async getMemories(options) {
|
745
|
-
const { where, orderBy, limit, offset,
|
745
|
+
const { where, orderBy, limit, offset, distinctOn } = options;
|
746
746
|
// Build the GraphQL query dynamically
|
747
747
|
const query = `
|
748
748
|
query GetMemories(
|
@@ -756,9 +756,8 @@ class MeshOS {
|
|
756
756
|
where: $where,
|
757
757
|
order_by: $orderBy,
|
758
758
|
limit: $limit,
|
759
|
-
offset: $offset
|
760
|
-
|
761
|
-
distinct_on: $distinctOn
|
759
|
+
offset: $offset
|
760
|
+
${distinctOn ? ', distinct_on: $distinctOn' : ''}
|
762
761
|
) {
|
763
762
|
id
|
764
763
|
agent_id
|
@@ -776,7 +775,7 @@ class MeshOS {
|
|
776
775
|
orderBy,
|
777
776
|
limit,
|
778
777
|
offset,
|
779
|
-
distinctOn
|
778
|
+
...(distinctOn ? { distinctOn } : {})
|
780
779
|
});
|
781
780
|
return result.memories.map(memory => ({
|
782
781
|
id: memory.id,
|