@props-labs/mesh-os 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -157,7 +157,6 @@ export declare class MeshOS {
157
157
  }>;
158
158
  limit?: number;
159
159
  offset?: number;
160
- distinct?: boolean;
161
160
  distinctOn?: string[];
162
161
  }): Promise<Memory[]>;
163
162
  }
@@ -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, distinct, distinctOn } = options;
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
- distinct: ${distinct ? 'true' : 'false'},
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@props-labs/mesh-os",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "MeshOS - A memory system for AI agents",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",