@cadenza.io/service 2.17.29 → 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,7 +5838,7 @@ var DatabaseController = class _DatabaseController {
5831
5838
  import { v4 as uuid4 } from "uuid";
5832
5839
 
5833
5840
  // src/graph/controllers/GraphSyncController.ts
5834
- import { GraphContext as GraphContext3 } from "@cadenza.io/core";
5841
+ import { GraphContext as GraphContext4 } from "@cadenza.io/core";
5835
5842
  var ACTOR_TASK_METADATA = /* @__PURE__ */ Symbol.for("@cadenza.io/core/actor-task-meta");
5836
5843
  function getActorTaskRuntimeMetadata(taskFunction) {
5837
5844
  if (typeof taskFunction !== "function") {
@@ -5970,7 +5977,7 @@ function resolveSyncInsertTask(isCadenzaDBReady, tableName, queryData = {}, opti
5970
5977
  return false;
5971
5978
  }
5972
5979
  return targetTask.execute(
5973
- new GraphContext3({
5980
+ new GraphContext4({
5974
5981
  ...ctx,
5975
5982
  queryData: buildSyncInsertQueryData(
5976
5983
  ctx,
@@ -8939,8 +8946,8 @@ import {
8939
8946
  Actor as Actor2,
8940
8947
  DebounceTask as DebounceTask2,
8941
8948
  EphemeralTask as EphemeralTask2,
8942
- GraphRoutine as GraphRoutine2,
8943
- Task as Task5
8949
+ GraphRoutine as GraphRoutine3,
8950
+ Task as Task6
8944
8951
  } from "@cadenza.io/core";
8945
8952
 
8946
8953
  // src/ssr/createSSRInquiryBridge.ts
@@ -9223,13 +9230,13 @@ export {
9223
9230
  DeputyTask,
9224
9231
  EphemeralTask2 as EphemeralTask,
9225
9232
  GraphMetadataController,
9226
- GraphRoutine2 as GraphRoutine,
9233
+ GraphRoutine3 as GraphRoutine,
9227
9234
  RestController,
9228
9235
  ServiceRegistry,
9229
9236
  SignalController,
9230
9237
  SignalTransmissionTask,
9231
9238
  SocketController,
9232
- Task5 as Task,
9239
+ Task6 as Task,
9233
9240
  createSSRInquiryBridge,
9234
9241
  index_default as default
9235
9242
  };