@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.
@@ -6415,13 +6415,24 @@ var SYNC_DEBUG_TASK_NAMES = /* @__PURE__ */ new Set([
6415
6415
  "Forward service instance sync",
6416
6416
  "Forward service transport sync",
6417
6417
  "Forward intent to task map sync",
6418
- "Forward signal to task map sync"
6418
+ "Forward signal to task map sync",
6419
+ "Normalize telemetry ingest payload",
6420
+ "Get telemetry session state",
6421
+ "Normalize anomaly detect input",
6422
+ "Read anomaly runtime session",
6423
+ "Normalize prediction compute input",
6424
+ "Normalize telemetry insert queryData"
6419
6425
  ]);
6420
6426
  var SYNC_DEBUG_ROUTINE_NAMES = /* @__PURE__ */ new Set(["Sync services"]);
6421
6427
  var SYNC_DEBUG_INTENT_NAMES = /* @__PURE__ */ new Set([
6422
6428
  "meta-service-registry-full-sync",
6423
6429
  "runner-traffic-runtime-get",
6424
6430
  "iot-telemetry-ingest",
6431
+ "iot-telemetry-session-get",
6432
+ "iot-anomaly-detect",
6433
+ "iot-anomaly-runtime-get",
6434
+ "iot-prediction-compute",
6435
+ "iot-db-telemetry-insert",
6425
6436
  "query-pg-CadenzaDBPostgresActor-service_instance",
6426
6437
  "query-pg-CadenzaDBPostgresActor-service_instance_transport",
6427
6438
  "query-pg-CadenzaDBPostgresActor-intent_to_task_map",
@@ -7472,6 +7483,22 @@ var GraphSyncController = class _GraphSyncController {
7472
7483
  }
7473
7484
  task.__registeredIntents = task.__registeredIntents ?? /* @__PURE__ */ new Set();
7474
7485
  task.__invalidMetaIntentWarnings = task.__invalidMetaIntentWarnings ?? /* @__PURE__ */ new Set();
7486
+ const shouldDebugTask = shouldDebugSyncTaskName(task.name);
7487
+ if (shouldDebugTask) {
7488
+ logSyncDebug("intent_map_task_state", {
7489
+ taskName: task.name,
7490
+ taskVersion: task.version,
7491
+ serviceName: serviceName2,
7492
+ registered: task.registered,
7493
+ register: task.register,
7494
+ hidden: task.hidden,
7495
+ handledIntents: Array.from(task.handlesIntents),
7496
+ registeredIntents: Array.from(task.__registeredIntents),
7497
+ tasksSynced: this.tasksSynced,
7498
+ intentsSynced: this.intentsSynced
7499
+ });
7500
+ }
7501
+ let emittedCount = 0;
7475
7502
  for (const intent of task.handlesIntents) {
7476
7503
  if (task.__registeredIntents.has(intent)) continue;
7477
7504
  if (isLocalOnlySyncIntent(intent)) {
@@ -7523,8 +7550,18 @@ var GraphSyncController = class _GraphSyncController {
7523
7550
  serviceName: serviceName2
7524
7551
  }
7525
7552
  });
7553
+ emittedCount += 1;
7554
+ }
7555
+ if (shouldDebugTask && emittedCount === 0) {
7556
+ logSyncDebug("intent_map_task_noop", {
7557
+ taskName: task.name,
7558
+ taskVersion: task.version,
7559
+ serviceName: serviceName2,
7560
+ handledIntents: Array.from(task.handlesIntents),
7561
+ registeredIntents: Array.from(task.__registeredIntents)
7562
+ });
7526
7563
  }
7527
- return true;
7564
+ return emittedCount > 0;
7528
7565
  }.bind(this)
7529
7566
  );
7530
7567
  const processSplitIntentToTaskMapTask = CadenzaService.createMetaTask(