@props-labs/mesh-os 0.1.18 → 0.1.19
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/entities.d.ts
CHANGED
@@ -47,7 +47,7 @@ export declare class EntityManager {
|
|
47
47
|
/**
|
48
48
|
* Link an entity to a memory.
|
49
49
|
*/
|
50
|
-
linkMemory(entityId: string, memoryId: string, relationship: EntityRelationshipType, confidence?: number
|
50
|
+
linkMemory(entityId: string, memoryId: string, relationship: EntityRelationshipType, confidence?: number): Promise<EntityMemoryLink>;
|
51
51
|
/**
|
52
52
|
* Get all memories linked to an entity.
|
53
53
|
*/
|
package/dist/core/entities.js
CHANGED
@@ -269,7 +269,7 @@ class EntityManager {
|
|
269
269
|
/**
|
270
270
|
* Link an entity to a memory.
|
271
271
|
*/
|
272
|
-
async linkMemory(entityId, memoryId, relationship, confidence
|
272
|
+
async linkMemory(entityId, memoryId, relationship, confidence) {
|
273
273
|
const query = `
|
274
274
|
mutation LinkEntityMemory($link: entity_memory_links_insert_input!) {
|
275
275
|
insert_entity_memory_links_one(object: $link) {
|
@@ -278,7 +278,6 @@ class EntityManager {
|
|
278
278
|
memory_id
|
279
279
|
relationship
|
280
280
|
confidence
|
281
|
-
metadata
|
282
281
|
created_at
|
283
282
|
}
|
284
283
|
}
|
@@ -288,8 +287,7 @@ class EntityManager {
|
|
288
287
|
entity_id: entityId,
|
289
288
|
memory_id: memoryId,
|
290
289
|
relationship,
|
291
|
-
confidence: confidence || 1.0
|
292
|
-
metadata: metadata || {}
|
290
|
+
confidence: confidence || 1.0
|
293
291
|
}
|
294
292
|
});
|
295
293
|
// Convert snake_case to camelCase
|
package/dist/core/taxonomy.d.ts
CHANGED
@@ -75,10 +75,8 @@ export declare const entityMemoryLinkSchema: z.ZodObject<{
|
|
75
75
|
memoryId: z.ZodString;
|
76
76
|
relationship: z.ZodNativeEnum<typeof EntityRelationshipType>;
|
77
77
|
confidence: z.ZodDefault<z.ZodNumber>;
|
78
|
-
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
79
78
|
createdAt: z.ZodOptional<z.ZodString>;
|
80
79
|
}, "strip", z.ZodTypeAny, {
|
81
|
-
metadata: Record<string, unknown>;
|
82
80
|
entityId: string;
|
83
81
|
memoryId: string;
|
84
82
|
relationship: EntityRelationshipType;
|
@@ -90,7 +88,6 @@ export declare const entityMemoryLinkSchema: z.ZodObject<{
|
|
90
88
|
memoryId: string;
|
91
89
|
relationship: EntityRelationshipType;
|
92
90
|
id?: string | undefined;
|
93
|
-
metadata?: Record<string, unknown> | undefined;
|
94
91
|
createdAt?: string | undefined;
|
95
92
|
confidence?: number | undefined;
|
96
93
|
}>;
|
package/dist/core/taxonomy.js
CHANGED
@@ -60,7 +60,6 @@ exports.entityMemoryLinkSchema = zod_1.z.object({
|
|
60
60
|
memoryId: zod_1.z.string().uuid(),
|
61
61
|
relationship: zod_1.z.nativeEnum(EntityRelationshipType),
|
62
62
|
confidence: zod_1.z.number().min(0).max(1).default(1.0),
|
63
|
-
metadata: zod_1.z.record(zod_1.z.unknown()).default({}),
|
64
63
|
createdAt: zod_1.z.string().optional(),
|
65
64
|
});
|
66
65
|
/**
|