@cadenza.io/service 2.17.55 → 2.17.56

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.
@@ -6464,13 +6464,24 @@ var SYNC_DEBUG_TASK_NAMES = /* @__PURE__ */ new Set([
6464
6464
  "Forward service instance sync",
6465
6465
  "Forward service transport sync",
6466
6466
  "Forward intent to task map sync",
6467
- "Forward signal to task map sync"
6467
+ "Forward signal to task map sync",
6468
+ "Normalize telemetry ingest payload",
6469
+ "Get telemetry session state",
6470
+ "Normalize anomaly detect input",
6471
+ "Read anomaly runtime session",
6472
+ "Normalize prediction compute input",
6473
+ "Normalize telemetry insert queryData"
6468
6474
  ]);
6469
6475
  var SYNC_DEBUG_ROUTINE_NAMES = /* @__PURE__ */ new Set(["Sync services"]);
6470
6476
  var SYNC_DEBUG_INTENT_NAMES = /* @__PURE__ */ new Set([
6471
6477
  "meta-service-registry-full-sync",
6472
6478
  "runner-traffic-runtime-get",
6473
6479
  "iot-telemetry-ingest",
6480
+ "iot-telemetry-session-get",
6481
+ "iot-anomaly-detect",
6482
+ "iot-anomaly-runtime-get",
6483
+ "iot-prediction-compute",
6484
+ "iot-db-telemetry-insert",
6474
6485
  "query-pg-CadenzaDBPostgresActor-service_instance",
6475
6486
  "query-pg-CadenzaDBPostgresActor-service_instance_transport",
6476
6487
  "query-pg-CadenzaDBPostgresActor-intent_to_task_map",
@@ -7521,6 +7532,22 @@ var GraphSyncController = class _GraphSyncController {
7521
7532
  }
7522
7533
  task.__registeredIntents = task.__registeredIntents ?? /* @__PURE__ */ new Set();
7523
7534
  task.__invalidMetaIntentWarnings = task.__invalidMetaIntentWarnings ?? /* @__PURE__ */ new Set();
7535
+ const shouldDebugTask = shouldDebugSyncTaskName(task.name);
7536
+ if (shouldDebugTask) {
7537
+ logSyncDebug("intent_map_task_state", {
7538
+ taskName: task.name,
7539
+ taskVersion: task.version,
7540
+ serviceName: serviceName2,
7541
+ registered: task.registered,
7542
+ register: task.register,
7543
+ hidden: task.hidden,
7544
+ handledIntents: Array.from(task.handlesIntents),
7545
+ registeredIntents: Array.from(task.__registeredIntents),
7546
+ tasksSynced: this.tasksSynced,
7547
+ intentsSynced: this.intentsSynced
7548
+ });
7549
+ }
7550
+ let emittedCount = 0;
7524
7551
  for (const intent of task.handlesIntents) {
7525
7552
  if (task.__registeredIntents.has(intent)) continue;
7526
7553
  if (isLocalOnlySyncIntent(intent)) {
@@ -7572,8 +7599,18 @@ var GraphSyncController = class _GraphSyncController {
7572
7599
  serviceName: serviceName2
7573
7600
  }
7574
7601
  });
7602
+ emittedCount += 1;
7603
+ }
7604
+ if (shouldDebugTask && emittedCount === 0) {
7605
+ logSyncDebug("intent_map_task_noop", {
7606
+ taskName: task.name,
7607
+ taskVersion: task.version,
7608
+ serviceName: serviceName2,
7609
+ handledIntents: Array.from(task.handlesIntents),
7610
+ registeredIntents: Array.from(task.__registeredIntents)
7611
+ });
7575
7612
  }
7576
- return true;
7613
+ return emittedCount > 0;
7577
7614
  }.bind(this)
7578
7615
  );
7579
7616
  const processSplitIntentToTaskMapTask = CadenzaService.createMetaTask(