@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.
package/dist/index.js CHANGED
@@ -9020,13 +9020,24 @@ var SYNC_DEBUG_TASK_NAMES = /* @__PURE__ */ new Set([
9020
9020
  "Forward service instance sync",
9021
9021
  "Forward service transport sync",
9022
9022
  "Forward intent to task map sync",
9023
- "Forward signal to task map sync"
9023
+ "Forward signal to task map sync",
9024
+ "Normalize telemetry ingest payload",
9025
+ "Get telemetry session state",
9026
+ "Normalize anomaly detect input",
9027
+ "Read anomaly runtime session",
9028
+ "Normalize prediction compute input",
9029
+ "Normalize telemetry insert queryData"
9024
9030
  ]);
9025
9031
  var SYNC_DEBUG_ROUTINE_NAMES = /* @__PURE__ */ new Set(["Sync services"]);
9026
9032
  var SYNC_DEBUG_INTENT_NAMES = /* @__PURE__ */ new Set([
9027
9033
  "meta-service-registry-full-sync",
9028
9034
  "runner-traffic-runtime-get",
9029
9035
  "iot-telemetry-ingest",
9036
+ "iot-telemetry-session-get",
9037
+ "iot-anomaly-detect",
9038
+ "iot-anomaly-runtime-get",
9039
+ "iot-prediction-compute",
9040
+ "iot-db-telemetry-insert",
9030
9041
  "query-pg-CadenzaDBPostgresActor-service_instance",
9031
9042
  "query-pg-CadenzaDBPostgresActor-service_instance_transport",
9032
9043
  "query-pg-CadenzaDBPostgresActor-intent_to_task_map",
@@ -10077,6 +10088,22 @@ var GraphSyncController = class _GraphSyncController {
10077
10088
  }
10078
10089
  task.__registeredIntents = task.__registeredIntents ?? /* @__PURE__ */ new Set();
10079
10090
  task.__invalidMetaIntentWarnings = task.__invalidMetaIntentWarnings ?? /* @__PURE__ */ new Set();
10091
+ const shouldDebugTask = shouldDebugSyncTaskName(task.name);
10092
+ if (shouldDebugTask) {
10093
+ logSyncDebug("intent_map_task_state", {
10094
+ taskName: task.name,
10095
+ taskVersion: task.version,
10096
+ serviceName: serviceName2,
10097
+ registered: task.registered,
10098
+ register: task.register,
10099
+ hidden: task.hidden,
10100
+ handledIntents: Array.from(task.handlesIntents),
10101
+ registeredIntents: Array.from(task.__registeredIntents),
10102
+ tasksSynced: this.tasksSynced,
10103
+ intentsSynced: this.intentsSynced
10104
+ });
10105
+ }
10106
+ let emittedCount = 0;
10080
10107
  for (const intent of task.handlesIntents) {
10081
10108
  if (task.__registeredIntents.has(intent)) continue;
10082
10109
  if (isLocalOnlySyncIntent(intent)) {
@@ -10128,8 +10155,18 @@ var GraphSyncController = class _GraphSyncController {
10128
10155
  serviceName: serviceName2
10129
10156
  }
10130
10157
  });
10158
+ emittedCount += 1;
10131
10159
  }
10132
- return true;
10160
+ if (shouldDebugTask && emittedCount === 0) {
10161
+ logSyncDebug("intent_map_task_noop", {
10162
+ taskName: task.name,
10163
+ taskVersion: task.version,
10164
+ serviceName: serviceName2,
10165
+ handledIntents: Array.from(task.handlesIntents),
10166
+ registeredIntents: Array.from(task.__registeredIntents)
10167
+ });
10168
+ }
10169
+ return emittedCount > 0;
10133
10170
  }.bind(this)
10134
10171
  );
10135
10172
  const processSplitIntentToTaskMapTask = CadenzaService.createMetaTask(