@ai-matrx/associations 0.2.0 → 0.3.0

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.
@@ -589,6 +589,19 @@ interface AssociationsStore {
589
589
  };
590
590
  /** Merge more host overlay entries in (icons/routes/candidate loaders). */
591
591
  registerEntityOverlay: EntityRegistry["registerEntityOverlay"];
592
+ /**
593
+ * The bound scream seam (W3, additive): /react surfaces route their loud
594
+ * recoveries here (the originals' console.error sites) without a second
595
+ * sink binding. Same function the host passed at construction.
596
+ */
597
+ errorSink: AssociationsConfig["errorSink"];
598
+ /**
599
+ * The bound identity port (W3, additive): /react hooks that FILTER by the
600
+ * current user (candidate owner scoping) read it leniently; write paths
601
+ * keep going through the services, where `requireUserId` failures stay
602
+ * loud. Same object the host passed at construction.
603
+ */
604
+ identity: AssociationsConfig["identity"];
592
605
  }
593
606
  /**
594
607
  * Build the one store a host binds. REQUIRED ports (dataSource / identity /
@@ -589,6 +589,19 @@ interface AssociationsStore {
589
589
  };
590
590
  /** Merge more host overlay entries in (icons/routes/candidate loaders). */
591
591
  registerEntityOverlay: EntityRegistry["registerEntityOverlay"];
592
+ /**
593
+ * The bound scream seam (W3, additive): /react surfaces route their loud
594
+ * recoveries here (the originals' console.error sites) without a second
595
+ * sink binding. Same function the host passed at construction.
596
+ */
597
+ errorSink: AssociationsConfig["errorSink"];
598
+ /**
599
+ * The bound identity port (W3, additive): /react hooks that FILTER by the
600
+ * current user (candidate owner scoping) read it leniently; write paths
601
+ * keep going through the services, where `requireUserId` failures stay
602
+ * loud. Same object the host passed at construction.
603
+ */
604
+ identity: AssociationsConfig["identity"];
592
605
  }
593
606
  /**
594
607
  * Build the one store a host binds. REQUIRED ports (dataSource / identity /
@@ -2967,7 +2967,9 @@ function createAssociationsStore(config) {
2967
2967
  helpers,
2968
2968
  registry,
2969
2969
  services: { associations, categories },
2970
- registerEntityOverlay: registry.registerEntityOverlay
2970
+ registerEntityOverlay: registry.registerEntityOverlay,
2971
+ errorSink,
2972
+ identity: config.identity
2971
2973
  };
2972
2974
  }
2973
2975