@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.
@@ -6277,6 +6277,23 @@ var GraphSyncController = class _GraphSyncController {
6277
6277
  delayMs: 3e3
6278
6278
  });
6279
6279
  const intents = Array.isArray(ctx.intents) ? ctx.intents : Array.from(CadenzaService.inquiryBroker.intents.values());
6280
+ if (resolveSyncServiceName() === "CadenzaDB") {
6281
+ const intentNames = intents.map((intent) => String(intent?.name ?? "").trim()).filter(Boolean);
6282
+ const authorityIntentNames = intentNames.filter(
6283
+ (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")
6284
+ );
6285
+ CadenzaService.log(
6286
+ "CadenzaDB intent sweep diagnostics.",
6287
+ {
6288
+ totalIntents: intentNames.length,
6289
+ hasMetaServiceRegistryFullSync: intentNames.includes(
6290
+ "meta-service-registry-full-sync"
6291
+ ),
6292
+ authorityIntentNames
6293
+ },
6294
+ "info"
6295
+ );
6296
+ }
6280
6297
  for (const intent of intents) {
6281
6298
  const intentData = buildIntentRegistryData(intent);
6282
6299
  if (!intentData) {
@@ -6335,6 +6352,24 @@ var GraphSyncController = class _GraphSyncController {
6335
6352
  }
6336
6353
  task.__registeredIntents = task.__registeredIntents ?? /* @__PURE__ */ new Set();
6337
6354
  task.__invalidMetaIntentWarnings = task.__invalidMetaIntentWarnings ?? /* @__PURE__ */ new Set();
6355
+ if (serviceName === "CadenzaDB" && [
6356
+ "Query service_instance",
6357
+ "Query service_instance_transport",
6358
+ "Query intent_to_task_map",
6359
+ "Query signal_to_task_map"
6360
+ ].includes(task.name)) {
6361
+ CadenzaService.log(
6362
+ "CadenzaDB authority task intent diagnostics.",
6363
+ {
6364
+ taskName: task.name,
6365
+ taskVersion: task.version,
6366
+ isMeta: task.isMeta,
6367
+ handlesIntents: Array.from(task.handlesIntents ?? []),
6368
+ registeredIntents: Array.from(task.__registeredIntents ?? [])
6369
+ },
6370
+ "info"
6371
+ );
6372
+ }
6338
6373
  for (const intent of task.handlesIntents) {
6339
6374
  if (task.__registeredIntents.has(intent)) continue;
6340
6375
  if (isMetaIntentName(intent) && !task.isMeta) {