@lucern/graph-primitives 1.0.18 → 1.0.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.
@@ -301,7 +301,7 @@ function scopeFromTopicAnchor(topicNode) {
301
301
  }
302
302
  async function createRequiredBeliefTopicEdge(ctx, args) {
303
303
  const topicGlobalId = args.topicNode.globalId;
304
- const edgeGlobalId = `edge:${args.beliefGlobalId}:${topicGlobalId}:scoped_by`;
304
+ const edgeGlobalId = `edge:${args.beliefGlobalId}:${topicGlobalId}:belongs_to`;
305
305
  const now = Date.now();
306
306
  const existing = await ctx.db.query("epistemicEdges").withIndex("by_globalId", (q) => q.eq("globalId", edgeGlobalId)).first();
307
307
  if (!existing) {
@@ -311,7 +311,7 @@ async function createRequiredBeliefTopicEdge(ctx, args) {
311
311
  toNodeId: String(args.topicNode._id),
312
312
  sourceGlobalId: args.beliefGlobalId,
313
313
  targetGlobalId: topicGlobalId,
314
- edgeType: "scoped_by",
314
+ edgeType: "belongs_to",
315
315
  weight: 1,
316
316
  confidence: 1,
317
317
  context: "Belief creation topic anchor invariant.",
@@ -335,7 +335,7 @@ async function createRequiredBeliefTopicEdge(ctx, args) {
335
335
  globalId: edgeGlobalId,
336
336
  fromGlobalId: args.beliefGlobalId,
337
337
  toGlobalId: topicGlobalId,
338
- edgeType: "scoped_by",
338
+ edgeType: "belongs_to",
339
339
  weight: 1,
340
340
  confidence: 1,
341
341
  context: "Belief creation topic anchor invariant.",