@cadenza.io/service 2.17.28 → 2.17.30

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.
@@ -248,6 +248,9 @@ var DatabaseTask = class extends DeputyTask {
248
248
  }
249
249
  };
250
250
 
251
+ // src/registry/ServiceRegistry.ts
252
+ import { GraphContext as GraphContext2 } from "@cadenza.io/core";
253
+
251
254
  // src/utils/environment.ts
252
255
  var isNode = typeof process !== "undefined" && process.versions?.node != null;
253
256
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
@@ -777,11 +780,15 @@ function resolveServiceRegistryInsertTask(tableName, queryData = {}, options = {
777
780
  delegationContext.__metadata.__skipRemoteExecution = delegationContext.__metadata.__skipRemoteExecution ?? delegationContext.__skipRemoteExecution ?? false;
778
781
  delegationContext.__metadata.__blockRemoteExecution = delegationContext.__metadata.__blockRemoteExecution ?? delegationContext.__blockRemoteExecution ?? false;
779
782
  return Promise.resolve(
780
- targetTask.taskFunction(
781
- delegationContext,
783
+ targetTask.execute(
784
+ new GraphContext2(delegationContext),
782
785
  emit,
783
786
  inquire,
784
- progressCallback
787
+ progressCallback,
788
+ {
789
+ nodeId: delegationContext.__previousTaskExecutionId ?? delegationContext.__metadata?.__previousTaskExecutionId ?? `service-registry-${tableName}`,
790
+ routineExecId: delegationContext.__routineExecId ?? delegationContext.__metadata?.__routineExecId ?? delegationContext.__metadata?.__localRoutineExecId ?? "service-registry"
791
+ }
785
792
  )
786
793
  ).then(
787
794
  (result) => normalizeServiceRegistryInsertResult(
@@ -3374,9 +3381,9 @@ var ServiceRegistry = class _ServiceRegistry {
3374
3381
  };
3375
3382
 
3376
3383
  // src/graph/definition/SignalTransmissionTask.ts
3377
- import { Task as Task2 } from "@cadenza.io/core";
3384
+ import { Task as Task3 } from "@cadenza.io/core";
3378
3385
  import { v4 as uuid3 } from "uuid";
3379
- var SignalTransmissionTask = class extends Task2 {
3386
+ var SignalTransmissionTask = class extends Task3 {
3380
3387
  /**
3381
3388
  * Constructs a new instance of the class and initializes it with the provided parameters.
3382
3389
  *
@@ -5831,6 +5838,7 @@ var DatabaseController = class _DatabaseController {
5831
5838
  import { v4 as uuid4 } from "uuid";
5832
5839
 
5833
5840
  // src/graph/controllers/GraphSyncController.ts
5841
+ import { GraphContext as GraphContext4 } from "@cadenza.io/core";
5834
5842
  var ACTOR_TASK_METADATA = /* @__PURE__ */ Symbol.for("@cadenza.io/core/actor-task-meta");
5835
5843
  function getActorTaskRuntimeMetadata(taskFunction) {
5836
5844
  if (typeof taskFunction !== "function") {
@@ -5968,17 +5976,21 @@ function resolveSyncInsertTask(isCadenzaDBReady, tableName, queryData = {}, opti
5968
5976
  if (!targetTask) {
5969
5977
  return false;
5970
5978
  }
5971
- return targetTask.taskFunction(
5972
- {
5979
+ return targetTask.execute(
5980
+ new GraphContext4({
5973
5981
  ...ctx,
5974
5982
  queryData: buildSyncInsertQueryData(
5975
5983
  ctx,
5976
5984
  queryData
5977
5985
  )
5978
- },
5986
+ }),
5979
5987
  emit,
5980
5988
  inquire,
5981
- progressCallback
5989
+ progressCallback,
5990
+ {
5991
+ nodeId: ctx.__previousTaskExecutionId ?? ctx.__metadata?.__previousTaskExecutionId ?? `graph-sync-${tableName}`,
5992
+ routineExecId: ctx.__routineExecId ?? ctx.__metadata?.__routineExecId ?? ctx.__metadata?.__localRoutineExecId ?? "graph-sync"
5993
+ }
5982
5994
  );
5983
5995
  },
5984
5996
  `Routes graph sync inserts for ${tableName} through the local authority task when available.`,
@@ -8934,8 +8946,8 @@ import {
8934
8946
  Actor as Actor2,
8935
8947
  DebounceTask as DebounceTask2,
8936
8948
  EphemeralTask as EphemeralTask2,
8937
- GraphRoutine as GraphRoutine2,
8938
- Task as Task4
8949
+ GraphRoutine as GraphRoutine3,
8950
+ Task as Task6
8939
8951
  } from "@cadenza.io/core";
8940
8952
 
8941
8953
  // src/ssr/createSSRInquiryBridge.ts
@@ -9218,13 +9230,13 @@ export {
9218
9230
  DeputyTask,
9219
9231
  EphemeralTask2 as EphemeralTask,
9220
9232
  GraphMetadataController,
9221
- GraphRoutine2 as GraphRoutine,
9233
+ GraphRoutine3 as GraphRoutine,
9222
9234
  RestController,
9223
9235
  ServiceRegistry,
9224
9236
  SignalController,
9225
9237
  SignalTransmissionTask,
9226
9238
  SocketController,
9227
- Task4 as Task,
9239
+ Task6 as Task,
9228
9240
  createSSRInquiryBridge,
9229
9241
  index_default as default
9230
9242
  };