@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.
package/dist/index.mjs CHANGED
@@ -8289,6 +8289,7 @@ function tableFieldTypeToSchemaType(type) {
8289
8289
  import { v4 as uuid5 } from "uuid";
8290
8290
 
8291
8291
  // src/graph/controllers/GraphSyncController.ts
8292
+ import { GraphContext as GraphContext3 } from "@cadenza.io/core";
8292
8293
  var ACTOR_TASK_METADATA = /* @__PURE__ */ Symbol.for("@cadenza.io/core/actor-task-meta");
8293
8294
  function getActorTaskRuntimeMetadata(taskFunction) {
8294
8295
  if (typeof taskFunction !== "function") {
@@ -8426,17 +8427,21 @@ function resolveSyncInsertTask(isCadenzaDBReady, tableName, queryData = {}, opti
8426
8427
  if (!targetTask) {
8427
8428
  return false;
8428
8429
  }
8429
- return targetTask.taskFunction(
8430
- {
8430
+ return targetTask.execute(
8431
+ new GraphContext3({
8431
8432
  ...ctx,
8432
8433
  queryData: buildSyncInsertQueryData(
8433
8434
  ctx,
8434
8435
  queryData
8435
8436
  )
8436
- },
8437
+ }),
8437
8438
  emit,
8438
8439
  inquire,
8439
- progressCallback
8440
+ progressCallback,
8441
+ {
8442
+ nodeId: ctx.__previousTaskExecutionId ?? ctx.__metadata?.__previousTaskExecutionId ?? `graph-sync-${tableName}`,
8443
+ routineExecId: ctx.__routineExecId ?? ctx.__metadata?.__routineExecId ?? ctx.__metadata?.__localRoutineExecId ?? "graph-sync"
8444
+ }
8440
8445
  );
8441
8446
  },
8442
8447
  `Routes graph sync inserts for ${tableName} through the local authority task when available.`,
@@ -11393,7 +11398,7 @@ import {
11393
11398
  DebounceTask as DebounceTask2,
11394
11399
  EphemeralTask as EphemeralTask2,
11395
11400
  GraphRoutine as GraphRoutine2,
11396
- Task as Task4
11401
+ Task as Task5
11397
11402
  } from "@cadenza.io/core";
11398
11403
 
11399
11404
  // src/ssr/createSSRInquiryBridge.ts
@@ -11682,7 +11687,7 @@ export {
11682
11687
  SignalController,
11683
11688
  SignalTransmissionTask,
11684
11689
  SocketController,
11685
- Task4 as Task,
11690
+ Task5 as Task,
11686
11691
  createSSRInquiryBridge,
11687
11692
  index_default as default
11688
11693
  };