@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.
@@ -6226,6 +6226,23 @@ var GraphSyncController = class _GraphSyncController {
6226
6226
  delayMs: 3e3
6227
6227
  });
6228
6228
  const intents = Array.isArray(ctx.intents) ? ctx.intents : Array.from(CadenzaService.inquiryBroker.intents.values());
6229
+ if (resolveSyncServiceName() === "CadenzaDB") {
6230
+ const intentNames = intents.map((intent) => String(intent?.name ?? "").trim()).filter(Boolean);
6231
+ const authorityIntentNames = intentNames.filter(
6232
+ (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")
6233
+ );
6234
+ CadenzaService.log(
6235
+ "CadenzaDB intent sweep diagnostics.",
6236
+ {
6237
+ totalIntents: intentNames.length,
6238
+ hasMetaServiceRegistryFullSync: intentNames.includes(
6239
+ "meta-service-registry-full-sync"
6240
+ ),
6241
+ authorityIntentNames
6242
+ },
6243
+ "info"
6244
+ );
6245
+ }
6229
6246
  for (const intent of intents) {
6230
6247
  const intentData = buildIntentRegistryData(intent);
6231
6248
  if (!intentData) {
@@ -6284,6 +6301,24 @@ var GraphSyncController = class _GraphSyncController {
6284
6301
  }
6285
6302
  task.__registeredIntents = task.__registeredIntents ?? /* @__PURE__ */ new Set();
6286
6303
  task.__invalidMetaIntentWarnings = task.__invalidMetaIntentWarnings ?? /* @__PURE__ */ new Set();
6304
+ if (serviceName === "CadenzaDB" && [
6305
+ "Query service_instance",
6306
+ "Query service_instance_transport",
6307
+ "Query intent_to_task_map",
6308
+ "Query signal_to_task_map"
6309
+ ].includes(task.name)) {
6310
+ CadenzaService.log(
6311
+ "CadenzaDB authority task intent diagnostics.",
6312
+ {
6313
+ taskName: task.name,
6314
+ taskVersion: task.version,
6315
+ isMeta: task.isMeta,
6316
+ handlesIntents: Array.from(task.handlesIntents ?? []),
6317
+ registeredIntents: Array.from(task.__registeredIntents ?? [])
6318
+ },
6319
+ "info"
6320
+ );
6321
+ }
6287
6322
  for (const intent of task.handlesIntents) {
6288
6323
  if (task.__registeredIntents.has(intent)) continue;
6289
6324
  if (isMetaIntentName(intent) && !task.isMeta) {