@cadenza.io/service 2.17.30 → 2.17.32

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
@@ -3551,6 +3551,7 @@ var RestController = class _RestController {
3551
3551
  (ctx, emit) => {
3552
3552
  if (isBrowser || ctx.__isFrontend) {
3553
3553
  emit("meta.service_registry.instance_registration_requested", {
3554
+ ...ctx,
3554
3555
  data: {
3555
3556
  uuid: ctx.__serviceInstanceId,
3556
3557
  process_pid: 1,
@@ -3571,8 +3572,7 @@ var RestController = class _RestController {
3571
3572
  is_blocked: false,
3572
3573
  health: {}
3573
3574
  },
3574
- __transportData: [],
3575
- ...ctx
3575
+ __transportData: []
3576
3576
  });
3577
3577
  return;
3578
3578
  }
@@ -8296,7 +8296,10 @@ function tableFieldTypeToSchemaType(type) {
8296
8296
  import { v4 as uuid5 } from "uuid";
8297
8297
 
8298
8298
  // src/graph/controllers/GraphSyncController.ts
8299
- import { GraphContext as GraphContext4 } from "@cadenza.io/core";
8299
+ import {
8300
+ GraphContext as GraphContext4,
8301
+ META_ACTOR_SESSION_STATE_PERSIST_INTENT as META_ACTOR_SESSION_STATE_PERSIST_INTENT2
8302
+ } from "@cadenza.io/core";
8300
8303
  var ACTOR_TASK_METADATA = /* @__PURE__ */ Symbol.for("@cadenza.io/core/actor-task-meta");
8301
8304
  function getActorTaskRuntimeMetadata(taskFunction) {
8302
8305
  if (typeof taskFunction !== "function") {
@@ -8361,6 +8364,9 @@ function resolveSyncServiceName(task) {
8361
8364
  const registryServiceName = typeof CadenzaService.serviceRegistry.serviceName === "string" ? CadenzaService.serviceRegistry.serviceName.trim() : "";
8362
8365
  return taskServiceName || registryServiceName || void 0;
8363
8366
  }
8367
+ function isLocalOnlySyncIntent(intentName) {
8368
+ return intentName === META_ACTOR_SESSION_STATE_PERSIST_INTENT2;
8369
+ }
8364
8370
  function buildIntentRegistryData(intent) {
8365
8371
  const name = String(intent?.name ?? "").trim();
8366
8372
  if (!name) {
@@ -9159,6 +9165,9 @@ var GraphSyncController = class _GraphSyncController {
9159
9165
  task.__invalidMetaIntentWarnings = task.__invalidMetaIntentWarnings ?? /* @__PURE__ */ new Set();
9160
9166
  for (const intent of task.handlesIntents) {
9161
9167
  if (task.__registeredIntents.has(intent)) continue;
9168
+ if (isLocalOnlySyncIntent(intent)) {
9169
+ continue;
9170
+ }
9162
9171
  if (isMetaIntentName(intent) && !task.isMeta) {
9163
9172
  if (!task.__invalidMetaIntentWarnings.has(intent)) {
9164
9173
  task.__invalidMetaIntentWarnings.add(intent);