@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/browser/index.js +8 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +12 -3
- package/dist/browser/index.mjs.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.mjs
CHANGED
|
@@ -3495,6 +3495,7 @@ var RestController = class _RestController {
|
|
|
3495
3495
|
"Declare browser network",
|
|
3496
3496
|
(ctx, emit) => {
|
|
3497
3497
|
emit("meta.service_registry.instance_registration_requested", {
|
|
3498
|
+
...ctx,
|
|
3498
3499
|
data: {
|
|
3499
3500
|
uuid: ctx.__serviceInstanceId,
|
|
3500
3501
|
process_pid: 1,
|
|
@@ -3515,8 +3516,7 @@ var RestController = class _RestController {
|
|
|
3515
3516
|
is_blocked: false,
|
|
3516
3517
|
health: {}
|
|
3517
3518
|
},
|
|
3518
|
-
__transportData: []
|
|
3519
|
-
...ctx
|
|
3519
|
+
__transportData: []
|
|
3520
3520
|
});
|
|
3521
3521
|
return true;
|
|
3522
3522
|
},
|
|
@@ -5838,7 +5838,10 @@ var DatabaseController = class _DatabaseController {
|
|
|
5838
5838
|
import { v4 as uuid4 } from "uuid";
|
|
5839
5839
|
|
|
5840
5840
|
// src/graph/controllers/GraphSyncController.ts
|
|
5841
|
-
import {
|
|
5841
|
+
import {
|
|
5842
|
+
GraphContext as GraphContext4,
|
|
5843
|
+
META_ACTOR_SESSION_STATE_PERSIST_INTENT as META_ACTOR_SESSION_STATE_PERSIST_INTENT2
|
|
5844
|
+
} from "@cadenza.io/core";
|
|
5842
5845
|
var ACTOR_TASK_METADATA = /* @__PURE__ */ Symbol.for("@cadenza.io/core/actor-task-meta");
|
|
5843
5846
|
function getActorTaskRuntimeMetadata(taskFunction) {
|
|
5844
5847
|
if (typeof taskFunction !== "function") {
|
|
@@ -5903,6 +5906,9 @@ function resolveSyncServiceName(task) {
|
|
|
5903
5906
|
const registryServiceName = typeof CadenzaService.serviceRegistry.serviceName === "string" ? CadenzaService.serviceRegistry.serviceName.trim() : "";
|
|
5904
5907
|
return taskServiceName || registryServiceName || void 0;
|
|
5905
5908
|
}
|
|
5909
|
+
function isLocalOnlySyncIntent(intentName) {
|
|
5910
|
+
return intentName === META_ACTOR_SESSION_STATE_PERSIST_INTENT2;
|
|
5911
|
+
}
|
|
5906
5912
|
function buildIntentRegistryData(intent) {
|
|
5907
5913
|
const name = String(intent?.name ?? "").trim();
|
|
5908
5914
|
if (!name) {
|
|
@@ -6701,6 +6707,9 @@ var GraphSyncController = class _GraphSyncController {
|
|
|
6701
6707
|
task.__invalidMetaIntentWarnings = task.__invalidMetaIntentWarnings ?? /* @__PURE__ */ new Set();
|
|
6702
6708
|
for (const intent of task.handlesIntents) {
|
|
6703
6709
|
if (task.__registeredIntents.has(intent)) continue;
|
|
6710
|
+
if (isLocalOnlySyncIntent(intent)) {
|
|
6711
|
+
continue;
|
|
6712
|
+
}
|
|
6704
6713
|
if (isMetaIntentName(intent) && !task.isMeta) {
|
|
6705
6714
|
if (!task.__invalidMetaIntentWarnings.has(intent)) {
|
|
6706
6715
|
task.__invalidMetaIntentWarnings.add(intent);
|