@almadar/runtime 5.2.0 → 5.3.0
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createLogger, EventBus, createUnifiedLoader, MockPersistenceAdapter, InMemoryPersistence, preprocessSchema, StateMachineManager, createContextFromBindings, validateEventPayload, formatPayloadValidationError, EffectExecutor } from './chunk-
|
|
2
|
-
export { InMemoryPersistence } from './chunk-
|
|
1
|
+
import { createLogger, EventBus, createUnifiedLoader, MockPersistenceAdapter, InMemoryPersistence, preprocessSchema, StateMachineManager, createContextFromBindings, validateEventPayload, formatPayloadValidationError, EffectExecutor } from './chunk-FAWWBERN.js';
|
|
2
|
+
export { InMemoryPersistence } from './chunk-FAWWBERN.js';
|
|
3
3
|
import './chunk-PZ5AY32C.js';
|
|
4
4
|
import { Router } from 'express';
|
|
5
5
|
import * as fs from 'fs';
|
|
@@ -360,6 +360,7 @@ function createOsHandlers(ctx) {
|
|
|
360
360
|
|
|
361
361
|
// src/OrbitalServerRuntime.ts
|
|
362
362
|
var effectLog = createLogger("almadar:runtime:effects");
|
|
363
|
+
var busLog = createLogger("almadar:runtime:bus");
|
|
363
364
|
var renderLog = createLogger("almadar:runtime:render-ui");
|
|
364
365
|
function collectDeclaredConfigDefaults(trait) {
|
|
365
366
|
if (!trait) return void 0;
|
|
@@ -1111,6 +1112,18 @@ var OrbitalServerRuntime = class {
|
|
|
1111
1112
|
payloadRowId: typeof payloadRowId === "string" || typeof payloadRowId === "number" ? payloadRowId : void 0,
|
|
1112
1113
|
entityId: request.entityId
|
|
1113
1114
|
});
|
|
1115
|
+
busLog.debug("bus:incoming", {
|
|
1116
|
+
orbital: orbitalName,
|
|
1117
|
+
event: request.event,
|
|
1118
|
+
payload: JSON.stringify(request.payload ?? null),
|
|
1119
|
+
entityId: request.entityId,
|
|
1120
|
+
traitStates: JSON.stringify(
|
|
1121
|
+
Array.from(registered.manager.getAllStates().entries()).map(([traitName, state]) => ({
|
|
1122
|
+
traitName,
|
|
1123
|
+
currentState: state.currentState
|
|
1124
|
+
}))
|
|
1125
|
+
)
|
|
1126
|
+
});
|
|
1114
1127
|
const { event, payload, entityId, user } = request;
|
|
1115
1128
|
const validationFailures = [];
|
|
1116
1129
|
for (const trait of registered.traits) {
|