@cadenza.io/service 2.17.28 → 2.17.29

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.
@@ -5831,6 +5831,7 @@ var DatabaseController = class _DatabaseController {
5831
5831
  import { v4 as uuid4 } from "uuid";
5832
5832
 
5833
5833
  // src/graph/controllers/GraphSyncController.ts
5834
+ import { GraphContext as GraphContext3 } from "@cadenza.io/core";
5834
5835
  var ACTOR_TASK_METADATA = /* @__PURE__ */ Symbol.for("@cadenza.io/core/actor-task-meta");
5835
5836
  function getActorTaskRuntimeMetadata(taskFunction) {
5836
5837
  if (typeof taskFunction !== "function") {
@@ -5968,17 +5969,21 @@ function resolveSyncInsertTask(isCadenzaDBReady, tableName, queryData = {}, opti
5968
5969
  if (!targetTask) {
5969
5970
  return false;
5970
5971
  }
5971
- return targetTask.taskFunction(
5972
- {
5972
+ return targetTask.execute(
5973
+ new GraphContext3({
5973
5974
  ...ctx,
5974
5975
  queryData: buildSyncInsertQueryData(
5975
5976
  ctx,
5976
5977
  queryData
5977
5978
  )
5978
- },
5979
+ }),
5979
5980
  emit,
5980
5981
  inquire,
5981
- progressCallback
5982
+ progressCallback,
5983
+ {
5984
+ nodeId: ctx.__previousTaskExecutionId ?? ctx.__metadata?.__previousTaskExecutionId ?? `graph-sync-${tableName}`,
5985
+ routineExecId: ctx.__routineExecId ?? ctx.__metadata?.__routineExecId ?? ctx.__metadata?.__localRoutineExecId ?? "graph-sync"
5986
+ }
5982
5987
  );
5983
5988
  },
5984
5989
  `Routes graph sync inserts for ${tableName} through the local authority task when available.`,
@@ -8935,7 +8940,7 @@ import {
8935
8940
  DebounceTask as DebounceTask2,
8936
8941
  EphemeralTask as EphemeralTask2,
8937
8942
  GraphRoutine as GraphRoutine2,
8938
- Task as Task4
8943
+ Task as Task5
8939
8944
  } from "@cadenza.io/core";
8940
8945
 
8941
8946
  // src/ssr/createSSRInquiryBridge.ts
@@ -9224,7 +9229,7 @@ export {
9224
9229
  SignalController,
9225
9230
  SignalTransmissionTask,
9226
9231
  SocketController,
9227
- Task4 as Task,
9232
+ Task5 as Task,
9228
9233
  createSSRInquiryBridge,
9229
9234
  index_default as default
9230
9235
  };