@cadenza.io/service 2.17.18 → 2.17.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/index.js CHANGED
@@ -8716,6 +8716,23 @@ var GraphSyncController = class _GraphSyncController {
8716
8716
  delayMs: 3e3
8717
8717
  });
8718
8718
  const intents = Array.isArray(ctx.intents) ? ctx.intents : Array.from(CadenzaService.inquiryBroker.intents.values());
8719
+ if (resolveSyncServiceName() === "CadenzaDB") {
8720
+ const intentNames = intents.map((intent) => String(intent?.name ?? "").trim()).filter(Boolean);
8721
+ const authorityIntentNames = intentNames.filter(
8722
+ (intentName) => intentName === "meta-service-registry-full-sync" || intentName.includes("service_instance") || intentName.includes("service_instance_transport") || intentName.includes("intent_to_task_map") || intentName.includes("signal_to_task_map")
8723
+ );
8724
+ CadenzaService.log(
8725
+ "CadenzaDB intent sweep diagnostics.",
8726
+ {
8727
+ totalIntents: intentNames.length,
8728
+ hasMetaServiceRegistryFullSync: intentNames.includes(
8729
+ "meta-service-registry-full-sync"
8730
+ ),
8731
+ authorityIntentNames
8732
+ },
8733
+ "info"
8734
+ );
8735
+ }
8719
8736
  for (const intent of intents) {
8720
8737
  const intentData = buildIntentRegistryData(intent);
8721
8738
  if (!intentData) {
@@ -8774,6 +8791,24 @@ var GraphSyncController = class _GraphSyncController {
8774
8791
  }
8775
8792
  task.__registeredIntents = task.__registeredIntents ?? /* @__PURE__ */ new Set();
8776
8793
  task.__invalidMetaIntentWarnings = task.__invalidMetaIntentWarnings ?? /* @__PURE__ */ new Set();
8794
+ if (serviceName === "CadenzaDB" && [
8795
+ "Query service_instance",
8796
+ "Query service_instance_transport",
8797
+ "Query intent_to_task_map",
8798
+ "Query signal_to_task_map"
8799
+ ].includes(task.name)) {
8800
+ CadenzaService.log(
8801
+ "CadenzaDB authority task intent diagnostics.",
8802
+ {
8803
+ taskName: task.name,
8804
+ taskVersion: task.version,
8805
+ isMeta: task.isMeta,
8806
+ handlesIntents: Array.from(task.handlesIntents ?? []),
8807
+ registeredIntents: Array.from(task.__registeredIntents ?? [])
8808
+ },
8809
+ "info"
8810
+ );
8811
+ }
8777
8812
  for (const intent of task.handlesIntents) {
8778
8813
  if (task.__registeredIntents.has(intent)) continue;
8779
8814
  if (isMetaIntentName(intent) && !task.isMeta) {