@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.mjs CHANGED
@@ -8665,6 +8665,23 @@ var GraphSyncController = class _GraphSyncController {
8665
8665
  delayMs: 3e3
8666
8666
  });
8667
8667
  const intents = Array.isArray(ctx.intents) ? ctx.intents : Array.from(CadenzaService.inquiryBroker.intents.values());
8668
+ if (resolveSyncServiceName() === "CadenzaDB") {
8669
+ const intentNames = intents.map((intent) => String(intent?.name ?? "").trim()).filter(Boolean);
8670
+ const authorityIntentNames = intentNames.filter(
8671
+ (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")
8672
+ );
8673
+ CadenzaService.log(
8674
+ "CadenzaDB intent sweep diagnostics.",
8675
+ {
8676
+ totalIntents: intentNames.length,
8677
+ hasMetaServiceRegistryFullSync: intentNames.includes(
8678
+ "meta-service-registry-full-sync"
8679
+ ),
8680
+ authorityIntentNames
8681
+ },
8682
+ "info"
8683
+ );
8684
+ }
8668
8685
  for (const intent of intents) {
8669
8686
  const intentData = buildIntentRegistryData(intent);
8670
8687
  if (!intentData) {
@@ -8723,6 +8740,24 @@ var GraphSyncController = class _GraphSyncController {
8723
8740
  }
8724
8741
  task.__registeredIntents = task.__registeredIntents ?? /* @__PURE__ */ new Set();
8725
8742
  task.__invalidMetaIntentWarnings = task.__invalidMetaIntentWarnings ?? /* @__PURE__ */ new Set();
8743
+ if (serviceName === "CadenzaDB" && [
8744
+ "Query service_instance",
8745
+ "Query service_instance_transport",
8746
+ "Query intent_to_task_map",
8747
+ "Query signal_to_task_map"
8748
+ ].includes(task.name)) {
8749
+ CadenzaService.log(
8750
+ "CadenzaDB authority task intent diagnostics.",
8751
+ {
8752
+ taskName: task.name,
8753
+ taskVersion: task.version,
8754
+ isMeta: task.isMeta,
8755
+ handlesIntents: Array.from(task.handlesIntents ?? []),
8756
+ registeredIntents: Array.from(task.__registeredIntents ?? [])
8757
+ },
8758
+ "info"
8759
+ );
8760
+ }
8726
8761
  for (const intent of task.handlesIntents) {
8727
8762
  if (task.__registeredIntents.has(intent)) continue;
8728
8763
  if (isMetaIntentName(intent) && !task.isMeta) {