@almadar/runtime 6.51.0 → 6.53.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.
- package/dist/{OrbitalServerRuntime-DD9FKDpN.d.ts → OrbitalServerRuntime-DRvduqA7.d.ts} +1 -1
- package/dist/OrbitalServerRuntime.d.ts +2 -2
- package/dist/OrbitalServerRuntime.js +48 -4
- package/dist/ServerBridge.d.ts +1 -1
- package/dist/{chunk-BNTXTICR.js → chunk-DERIA6MO.js} +1 -1
- package/dist/{chunk-XLMDWRMB.js → chunk-ZJ62H3ES.js} +49 -2
- package/dist/createOsHandlers.d.ts +1 -1
- package/dist/entityAccess.js +1 -1
- package/dist/index.d.ts +4 -16
- package/dist/index.js +4 -4
- package/dist/{types-CL03tjGU.d.ts → types-BcPORH_x.d.ts} +13 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Router } from 'express';
|
|
2
|
-
import { I as IEventBus, R as RuntimeEvent, a as EventListener, U as Unsubscribe, T as TraitDefinition, b as RuntimeConfig, c as TransitionObserver, d as TraitState, C as ConfigContext, e as TransitionResult, f as EvaluationContextExtensions, E as EffectHandlers } from './types-
|
|
2
|
+
import { I as IEventBus, R as RuntimeEvent, a as EventListener, U as Unsubscribe, T as TraitDefinition, b as RuntimeConfig, c as TransitionObserver, d as TraitState, C as ConfigContext, e as TransitionResult, f as EvaluationContextExtensions, E as EffectHandlers } from './types-BcPORH_x.js';
|
|
3
3
|
import { EventPayload, EventId, EntityRow, UserContext, Orbital, ServiceCallResult, TraitConfig, DeclaredTraitConfig, Entity, OrbitalSchema, Trait, PatternConfig, ResolvedPatternProps, SExpr, BusEventSource, RawUserClaims, OrbitalDefinition, TraitTick } from '@almadar/core';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'express';
|
|
2
|
-
export { F as ClientEffectTuple, G as ClientNavigateTuple, H as ClientNotifyTuple, J as ClientRenderUITuple, K as EffectResult, e as InMemoryPersistence, M as LiveBroadcastItem, N as LoaderConfig, O as OrbitalEventRequest, f as OrbitalEventResponse, Q as OrbitalServerRuntime, g as OrbitalServerRuntimeConfig, P as PersistenceAdapter, R as RegisteredOrbital, l as RuntimeOrbital, m as RuntimeOrbitalSchema, n as RuntimeTrait, T as RuntimeTraitTick, p as collectDeclaredConfigDefaults, V as createOrbitalServerRuntime } from './OrbitalServerRuntime-
|
|
3
|
-
import './types-
|
|
2
|
+
export { F as ClientEffectTuple, G as ClientNavigateTuple, H as ClientNotifyTuple, J as ClientRenderUITuple, K as EffectResult, e as InMemoryPersistence, M as LiveBroadcastItem, N as LoaderConfig, O as OrbitalEventRequest, f as OrbitalEventResponse, Q as OrbitalServerRuntime, g as OrbitalServerRuntimeConfig, P as PersistenceAdapter, R as RegisteredOrbital, l as RuntimeOrbital, m as RuntimeOrbitalSchema, n as RuntimeTrait, T as RuntimeTraitTick, p as collectDeclaredConfigDefaults, V as createOrbitalServerRuntime } from './OrbitalServerRuntime-DRvduqA7.js';
|
|
3
|
+
import './types-BcPORH_x.js';
|
|
4
4
|
import '@almadar/core';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { createTickScheduler, EventBus, createUnifiedLoader, MockPersistenceAdapter, InMemoryPersistence, preprocessSchema, normalizeCallSiteConfigToValues, StateMachineManager, parseDurationString, validateEventPayload, formatPayloadValidationError, collectDeclaredConfigDefaults, collectDeclaredEntityDefaults, EffectExecutor } from './chunk-
|
|
2
|
-
export { InMemoryPersistence, collectDeclaredConfigDefaults } from './chunk-
|
|
1
|
+
import { createTickScheduler, EventBus, createUnifiedLoader, MockPersistenceAdapter, InMemoryPersistence, preprocessSchema, normalizeCallSiteConfigToValues, StateMachineManager, parseDurationString, validateEventPayload, formatPayloadValidationError, collectDeclaredConfigDefaults, collectDeclaredEntityDefaults, EffectExecutor } from './chunk-DERIA6MO.js';
|
|
2
|
+
export { InMemoryPersistence, collectDeclaredConfigDefaults } from './chunk-DERIA6MO.js';
|
|
3
3
|
import { isValidCronExpression } from './chunk-OU3ITB5S.js';
|
|
4
|
-
import { createContextFromBindings, resolveCallSitePayloadCaptures, applyRowAccess, checkMutationAccess, accessDeniedMessage } from './chunk-
|
|
4
|
+
import { createContextFromBindings, resolveCallSitePayloadCaptures, applyRowAccess, checkMutationAccess, accessDeniedMessage } from './chunk-ZJ62H3ES.js';
|
|
5
5
|
import './chunk-T4VDAB4C.js';
|
|
6
6
|
import './chunk-SCRAHWOC.js';
|
|
7
7
|
import './chunk-MLKGABMK.js';
|
|
8
8
|
import { createLogger } from '@almadar/logger';
|
|
9
9
|
import * as nodeModule from 'module';
|
|
10
10
|
import { evaluateListenPayloadExpr, evaluateGuard, evaluate } from '@almadar/evaluator';
|
|
11
|
-
import { DEFAULT_VIEWER, buildResolvedTraitConfigs, isInlineTrait, isEntityCall, applyListenPayloadMapping, personaFromIdentityRow, normalizeUserContext, isRuntimeEntity } from '@almadar/core';
|
|
11
|
+
import { DEFAULT_VIEWER, buildResolvedTraitConfigs, isInlineTrait, isEntityCall, applyListenPayloadMapping, personaFromIdentityRow, normalizeUserContext, isRuntimeEntity, isPageReference } from '@almadar/core';
|
|
12
12
|
import { ownerFieldsFromSchema, identityEntityName, entityAccessPolicies } from '@almadar/core/mock';
|
|
13
13
|
|
|
14
14
|
// src/identity/routing.ts
|
|
@@ -79,6 +79,36 @@ function needsPreprocessing(schema) {
|
|
|
79
79
|
}
|
|
80
80
|
return false;
|
|
81
81
|
}
|
|
82
|
+
function inlineNavItems(pages) {
|
|
83
|
+
const items = [];
|
|
84
|
+
for (const page of pages) {
|
|
85
|
+
if (isPageReference(page)) continue;
|
|
86
|
+
const p = page;
|
|
87
|
+
if (typeof p.path !== "string" || typeof p.name !== "string") continue;
|
|
88
|
+
if (p.path.includes(":")) continue;
|
|
89
|
+
const item = {
|
|
90
|
+
href: p.path,
|
|
91
|
+
// `@label` annotation wins; else derive by stripping a trailing
|
|
92
|
+
// `Page` suffix from `name` (`ContactsPage` → `Contacts`).
|
|
93
|
+
label: p.label ?? deriveNavLabel(p.name)
|
|
94
|
+
};
|
|
95
|
+
if (typeof p.icon === "string") item.icon = p.icon;
|
|
96
|
+
items.push(item);
|
|
97
|
+
}
|
|
98
|
+
return items;
|
|
99
|
+
}
|
|
100
|
+
function deriveNavLabel(name) {
|
|
101
|
+
if (name.endsWith("Page") && name.length > "Page".length) {
|
|
102
|
+
return name.slice(0, -"Page".length);
|
|
103
|
+
}
|
|
104
|
+
return name;
|
|
105
|
+
}
|
|
106
|
+
function themeDataKey(theme) {
|
|
107
|
+
if (theme === void 0) return "";
|
|
108
|
+
if (typeof theme === "string") return theme;
|
|
109
|
+
return theme.name;
|
|
110
|
+
}
|
|
111
|
+
var DEFAULT_THEME_KEY = "minimalist-light";
|
|
82
112
|
var OrbitalServerRuntime = class {
|
|
83
113
|
orbitals = /* @__PURE__ */ new Map();
|
|
84
114
|
eventBus;
|
|
@@ -1699,6 +1729,20 @@ var OrbitalServerRuntime = class {
|
|
|
1699
1729
|
...callSiteOverride ?? {}
|
|
1700
1730
|
};
|
|
1701
1731
|
}
|
|
1732
|
+
const sigilPages = [];
|
|
1733
|
+
const seenPaths = /* @__PURE__ */ new Set();
|
|
1734
|
+
for (const reg of this.orbitals.values()) {
|
|
1735
|
+
for (const item of inlineNavItems(reg.schema.pages ?? [])) {
|
|
1736
|
+
if (seenPaths.has(item.href)) continue;
|
|
1737
|
+
seenPaths.add(item.href);
|
|
1738
|
+
sigilPages.push(item);
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
if (sigilPages.length > 0) {
|
|
1742
|
+
bindings.pages = sigilPages;
|
|
1743
|
+
}
|
|
1744
|
+
const sigilTheme = themeDataKey(registered.schema.theme) || DEFAULT_THEME_KEY;
|
|
1745
|
+
bindings.currentTheme = sigilTheme;
|
|
1702
1746
|
const entityFieldDefaults = collectDeclaredEntityDefaults(registered.entity);
|
|
1703
1747
|
const traitFieldState = registered.traitFieldStates.get(this.sharedFieldKey(registered, traitName));
|
|
1704
1748
|
if (entityFieldDefaults || traitFieldState) {
|
package/dist/ServerBridge.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseCron, cronMinuteKey, cronMatches } from './chunk-OU3ITB5S.js';
|
|
2
|
-
import { createContextFromBindings, interpolateValue, deferEntityBindings } from './chunk-
|
|
2
|
+
import { createContextFromBindings, interpolateValue, deferEntityBindings } from './chunk-ZJ62H3ES.js';
|
|
3
3
|
import { seedRandom, randomArrayElement, randomInt, shuffleArray, randomPastDate } from './chunk-T4VDAB4C.js';
|
|
4
4
|
import { collectTraitRefsFromValue, collectTraitRefsFromEffects } from './chunk-SCRAHWOC.js';
|
|
5
5
|
import { createLogger, setNamespaceLevel } from '@almadar/logger';
|
|
@@ -113,6 +113,38 @@ function interpolateValue(value, ctx) {
|
|
|
113
113
|
}
|
|
114
114
|
return value;
|
|
115
115
|
}
|
|
116
|
+
function resolveConfigLeavesInLambdaBody(node, ctx) {
|
|
117
|
+
if (typeof node === "string") {
|
|
118
|
+
if (!node.startsWith("@config.") || node.includes(" ")) return node;
|
|
119
|
+
const resolved = resolveBinding(node, ctx);
|
|
120
|
+
deferLog.debug("lambda:config-leaf", () => ({
|
|
121
|
+
binding: node,
|
|
122
|
+
resolvedType: typeof resolved,
|
|
123
|
+
selfForward: resolved === node
|
|
124
|
+
}));
|
|
125
|
+
return resolved === node ? void 0 : resolved;
|
|
126
|
+
}
|
|
127
|
+
if (Array.isArray(node)) {
|
|
128
|
+
let changed = false;
|
|
129
|
+
const out = node.map((item) => {
|
|
130
|
+
const next = resolveConfigLeavesInLambdaBody(item, ctx);
|
|
131
|
+
if (next !== item) changed = true;
|
|
132
|
+
return next;
|
|
133
|
+
});
|
|
134
|
+
return changed ? out : node;
|
|
135
|
+
}
|
|
136
|
+
if (node !== null && typeof node === "object" && !(node instanceof Date)) {
|
|
137
|
+
let changed = false;
|
|
138
|
+
const out = {};
|
|
139
|
+
for (const [key, item] of Object.entries(node)) {
|
|
140
|
+
const next = resolveConfigLeavesInLambdaBody(item, ctx);
|
|
141
|
+
if (next !== item) changed = true;
|
|
142
|
+
out[key] = next;
|
|
143
|
+
}
|
|
144
|
+
return changed ? out : node;
|
|
145
|
+
}
|
|
146
|
+
return node;
|
|
147
|
+
}
|
|
116
148
|
function deferEntityBindings(value, ctx, configHops = 0) {
|
|
117
149
|
if (typeof value === "string") {
|
|
118
150
|
if (containsEntityBinding(value) && !containsPayloadBinding(value)) {
|
|
@@ -133,7 +165,7 @@ function deferEntityBindings(value, ctx, configHops = 0) {
|
|
|
133
165
|
}
|
|
134
166
|
if (Array.isArray(value)) {
|
|
135
167
|
if (value.length === 3 && value[0] === "fn" && typeof value[1] === "string") {
|
|
136
|
-
return value;
|
|
168
|
+
return resolveConfigLeavesInLambdaBody(value, ctx);
|
|
137
169
|
}
|
|
138
170
|
if (isSExpression(value)) {
|
|
139
171
|
if (containsEntityBinding(value) && !containsPayloadBinding(value)) {
|
|
@@ -170,6 +202,15 @@ function interpolateString(value, ctx) {
|
|
|
170
202
|
inFlightConfigRecursions.delete(value);
|
|
171
203
|
}
|
|
172
204
|
}
|
|
205
|
+
if (value.startsWith("@config.") && typeof resolved === "string" && resolved.startsWith("@") && isPureBinding(resolved) && !isClientOnlyBinding(resolved) && !inFlightConfigRecursions.has(value)) {
|
|
206
|
+
inFlightConfigRecursions.add(value);
|
|
207
|
+
try {
|
|
208
|
+
bindLog.debug("resolve:config-default-binding", { binding: value, resolvesTo: resolved });
|
|
209
|
+
return interpolateString(resolved, ctx);
|
|
210
|
+
} finally {
|
|
211
|
+
inFlightConfigRecursions.delete(value);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
173
214
|
return resolved;
|
|
174
215
|
}
|
|
175
216
|
if (value.includes("@")) {
|
|
@@ -194,7 +235,7 @@ function interpolateArray(value, ctx) {
|
|
|
194
235
|
return value;
|
|
195
236
|
}
|
|
196
237
|
if (Array.isArray(value) && value.length === 3 && value[0] === "fn" && typeof value[1] === "string") {
|
|
197
|
-
return value;
|
|
238
|
+
return resolveConfigLeavesInLambdaBody(value, ctx);
|
|
198
239
|
}
|
|
199
240
|
if (isSExpression(value)) {
|
|
200
241
|
const result = evaluate(value, ctx);
|
|
@@ -283,6 +324,12 @@ function createContextFromBindings(bindings, strictBindings, contextExtensions)
|
|
|
283
324
|
if (bindings.user) {
|
|
284
325
|
ctx.user = bindings.user;
|
|
285
326
|
}
|
|
327
|
+
if (bindings.pages) {
|
|
328
|
+
ctx.pages = bindings.pages;
|
|
329
|
+
}
|
|
330
|
+
if (bindings.currentTheme) {
|
|
331
|
+
ctx.currentTheme = bindings.currentTheme;
|
|
332
|
+
}
|
|
286
333
|
if (bindings.locals) {
|
|
287
334
|
ctx.locals = bindings.locals;
|
|
288
335
|
}
|
package/dist/entityAccess.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { accessDeniedMessage, applyRowAccess, checkMutationAccess } from './chunk-
|
|
1
|
+
export { accessDeniedMessage, applyRowAccess, checkMutationAccess } from './chunk-ZJ62H3ES.js';
|
|
2
2
|
import './chunk-MLKGABMK.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as RuntimePatternValue, B as BindingContext, f as EvaluationContextExtensions, P as PatternProps, E as EffectHandlers, h as EffectContext, i as ExecutionEnvironment, j as EffectResult, T as TraitDefinition } from './types-
|
|
2
|
-
export { k as BrowserFileMeta, l as BrowserFilePickerOptions, m as BrowserGeolocationOptions, n as BrowserGeolocationPosition, C as ConfigContext, o as Effect, a as EventListener, H as HANDLER_MANIFEST, I as IEventBus, b as RuntimeConfig, R as RuntimeEvent, d as TraitState, c as TransitionObserver, e as TransitionResult, U as Unsubscribe } from './types-
|
|
3
|
-
import { U as UnifiedLoaderOptions, S as SchemaLoader, I as ImportChainLike, L as LoadResult, a as LoadedSchema, b as LoadedOrbital, P as PersistenceAdapter } from './OrbitalServerRuntime-
|
|
4
|
-
export { E as EntitySharingMap, c as EventBus, d as EventNamespaceMap, e as InMemoryPersistence, O as OrbitalEventRequest, f as OrbitalEventResponse, g as OrbitalServerRuntimeConfig, h as PreprocessOptions, i as PreprocessResult, j as PreprocessedSchema, k as ProcessEventOptions, R as RegisteredOrbital, l as RuntimeOrbital, m as RuntimeOrbitalSchema, n as RuntimeTrait, o as StateMachineManager, p as collectDeclaredConfigDefaults, q as collectDeclaredEntityDefaults, r as createInitialTraitState, s as findInitialState, t as findTransition, u as getIsolatedCollectionName, v as getNamespacedEvent, w as isBrowser, x as isElectron, y as isNamespacedEvent, z as isNode, A as normalizeEventKey, B as parseNamespacedEvent, C as preprocessSchema, D as processEvent } from './OrbitalServerRuntime-
|
|
1
|
+
import { g as RuntimePatternValue, B as BindingContext, f as EvaluationContextExtensions, P as PatternProps, E as EffectHandlers, h as EffectContext, i as ExecutionEnvironment, j as EffectResult, T as TraitDefinition } from './types-BcPORH_x.js';
|
|
2
|
+
export { k as BrowserFileMeta, l as BrowserFilePickerOptions, m as BrowserGeolocationOptions, n as BrowserGeolocationPosition, C as ConfigContext, o as Effect, a as EventListener, H as HANDLER_MANIFEST, I as IEventBus, b as RuntimeConfig, R as RuntimeEvent, d as TraitState, c as TransitionObserver, e as TransitionResult, U as Unsubscribe } from './types-BcPORH_x.js';
|
|
3
|
+
import { U as UnifiedLoaderOptions, S as SchemaLoader, I as ImportChainLike, L as LoadResult, a as LoadedSchema, b as LoadedOrbital, P as PersistenceAdapter } from './OrbitalServerRuntime-DRvduqA7.js';
|
|
4
|
+
export { E as EntitySharingMap, c as EventBus, d as EventNamespaceMap, e as InMemoryPersistence, O as OrbitalEventRequest, f as OrbitalEventResponse, g as OrbitalServerRuntimeConfig, h as PreprocessOptions, i as PreprocessResult, j as PreprocessedSchema, k as ProcessEventOptions, R as RegisteredOrbital, l as RuntimeOrbital, m as RuntimeOrbitalSchema, n as RuntimeTrait, o as StateMachineManager, p as collectDeclaredConfigDefaults, q as collectDeclaredEntityDefaults, r as createInitialTraitState, s as findInitialState, t as findTransition, u as getIsolatedCollectionName, v as getNamespacedEvent, w as isBrowser, x as isElectron, y as isNamespacedEvent, z as isNode, A as normalizeEventKey, B as parseNamespacedEvent, C as preprocessSchema, D as processEvent } from './OrbitalServerRuntime-DRvduqA7.js';
|
|
5
5
|
import { EvaluationContext, SExpressionEvaluator } from '@almadar/evaluator';
|
|
6
6
|
export { EvaluationContext, createMinimalContext } from '@almadar/evaluator';
|
|
7
7
|
import { RenderBindingMarker, SExpr, TraitConfigObject, EventPayload, PatternConfig, EntityId, EntityField, EntityRow, EntityPersistence, ServiceParams, EntityAccessPolicies, PayloadField, OrbitalDefinition, OrbitalSchema } from '@almadar/core';
|
|
@@ -294,18 +294,6 @@ declare function interpolateValue(value: unknown, ctx: EvaluationContext): unkno
|
|
|
294
294
|
type DeferredPatternValue = RuntimePatternValue | RenderBindingMarker | SExpr | Date | readonly DeferredPatternValue[] | {
|
|
295
295
|
readonly [prop: string]: DeferredPatternValue;
|
|
296
296
|
};
|
|
297
|
-
/**
|
|
298
|
-
* Carry `@entity`-dependent prop leaves into slot content as
|
|
299
|
-
* `RenderBindingMarker`s instead of resolving them at flush time — the
|
|
300
|
-
* renderer (`@almadar/ui`'s SlotContentRenderer) evaluates each marker
|
|
301
|
-
* against the live entity store on every React render, the same model the
|
|
302
|
-
* compiled shell uses. Everything else resolves eagerly through the same
|
|
303
|
-
* `interpolateValue` path the non-deferring executor uses:
|
|
304
|
-
* - payload-referencing leaves stay eager (`@payload` is event-scoped and
|
|
305
|
-
* does not exist at render time);
|
|
306
|
-
* - `fn` render lambdas pass through raw (they are already render-time);
|
|
307
|
-
* - literal arrays (children lists) and plain objects recurse per item.
|
|
308
|
-
*/
|
|
309
297
|
declare function deferEntityBindings(value: SExpr, ctx: EvaluationContext, configHops?: number): DeferredPatternValue;
|
|
310
298
|
/**
|
|
311
299
|
* Check if a value contains any binding references.
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EffectExecutor } from './chunk-
|
|
2
|
-
export { EffectExecutor, EventBus, HANDLER_MANIFEST, InMemoryPersistence, MockPersistenceAdapter, StateMachineManager, TickScheduler, buildEmitsFromTraits, collectDeclaredConfigDefaults, collectDeclaredEntityDefaults, createInitialTraitState, createMockPersistence, createTestExecutor, createTickScheduler, createUnifiedLoader, findInitialState, findTransition, formatPayloadValidationError, getIsolatedCollectionName, getNamespacedEvent, isBrowser, isElectron, isNamespacedEvent, isNode, isValidDurationString, normalizeCallSiteConfigToValues, normalizeEventKey, parseDurationString, parseNamespacedEvent, preprocessSchema, processEvent, validateEventPayload, validatePayloadShapes } from './chunk-
|
|
1
|
+
import { EffectExecutor } from './chunk-DERIA6MO.js';
|
|
2
|
+
export { EffectExecutor, EventBus, HANDLER_MANIFEST, InMemoryPersistence, MockPersistenceAdapter, StateMachineManager, TickScheduler, buildEmitsFromTraits, collectDeclaredConfigDefaults, collectDeclaredEntityDefaults, createInitialTraitState, createMockPersistence, createTestExecutor, createTickScheduler, createUnifiedLoader, findInitialState, findTransition, formatPayloadValidationError, getIsolatedCollectionName, getNamespacedEvent, isBrowser, isElectron, isNamespacedEvent, isNode, isValidDurationString, normalizeCallSiteConfigToValues, normalizeEventKey, parseDurationString, parseNamespacedEvent, preprocessSchema, processEvent, validateEventPayload, validatePayloadShapes } from './chunk-DERIA6MO.js';
|
|
3
3
|
export { cronMatches, cronMinuteKey, isValidCronExpression, parseCron, parseCronField } from './chunk-OU3ITB5S.js';
|
|
4
|
-
import { createContextFromBindings, applyRowAccess, checkMutationAccess, accessDeniedMessage } from './chunk-
|
|
5
|
-
export { CALLSITE_PAYLOAD_PREFIX, applyRowAccess, checkMutationAccess, containsBindings, createContextFromBindings, createMinimalContext, deferEntityBindings, extractBindings, interpolateProps, interpolateValue, resolveCallSitePayloadCaptures } from './chunk-
|
|
4
|
+
import { createContextFromBindings, applyRowAccess, checkMutationAccess, accessDeniedMessage } from './chunk-ZJ62H3ES.js';
|
|
5
|
+
export { CALLSITE_PAYLOAD_PREFIX, applyRowAccess, checkMutationAccess, containsBindings, createContextFromBindings, createMinimalContext, deferEntityBindings, extractBindings, interpolateProps, interpolateValue, resolveCallSitePayloadCaptures } from './chunk-ZJ62H3ES.js';
|
|
6
6
|
import './chunk-T4VDAB4C.js';
|
|
7
7
|
export { PERF_NAMESPACE, RendererContractViolationError, adjustSchemaForMockData, aggregateSlotContent, assertIsMultiSourceSlotManager, assertIsSlotManager, bindEventBus, bindTraitStateGetter, buildMockData, buildOrbitalsByTrait, clearPerf, createSlotSetter, ensureVerificationApi, getOrbitalVerification, perfEnd, perfStart, perfStore, perfTime, prepareSchemaForPreview, pushPerfEntry, validateSlotContent, wrapCallbackForEvent } from './chunk-FOFLEZRJ.js';
|
|
8
8
|
export { collectEmbeddedTraits, collectTraitRefsFromResolvedTrait } from './chunk-SCRAHWOC.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _almadar_core from '@almadar/core';
|
|
2
|
-
import { TraitId, EventId, SExpr, TraitEventListener, AgentContext, LlmContext, WorkspaceContext, SessionContext, MemoryContext, TraceContext, IntegrationContext, TraitConfig, EventPayload, BusEvent, EntityRow, FieldValue, ServiceParams, FetchResult, PatternConfig, ResolvedPatternProps, Orbital, ServiceCallResult, BusEventSource, BusEventListener, Unsubscribe as Unsubscribe$1, UserContext } from '@almadar/core';
|
|
2
|
+
import { TraitId, EventId, SExpr, TraitEventListener, AgentContext, LlmContext, WorkspaceContext, SessionContext, MemoryContext, TraceContext, IntegrationContext, TraitConfig, EventPayload, BusEvent, EntityRow, FieldValue, ServiceParams, FetchResult, PatternConfig, ResolvedPatternProps, Orbital, ServiceCallResult, BusEventSource, BusEventListener, Unsubscribe as Unsubscribe$1, UserContext, NavItem } from '@almadar/core';
|
|
3
3
|
|
|
4
4
|
/** Alias for ResolvedPatternProps to avoid breaking internal consumers */
|
|
5
5
|
type PatternProps = ResolvedPatternProps;
|
|
@@ -326,6 +326,18 @@ interface BindingContext {
|
|
|
326
326
|
config?: ConfigContext;
|
|
327
327
|
/** Authenticated viewer behind `@user.x` — ownership (`@user.id`) and role gates. */
|
|
328
328
|
user?: UserContext;
|
|
329
|
+
/**
|
|
330
|
+
* The host orbital's pages for the `@pages` render sigil (`href`/`label`
|
|
331
|
+
* per inline page). Seeded onto the render binding context only — never
|
|
332
|
+
* present on a guard/tick context. Mirrors the compiler's
|
|
333
|
+
* `OirBindingRoot::Pages`.
|
|
334
|
+
*/
|
|
335
|
+
pages?: NavItem[];
|
|
336
|
+
/**
|
|
337
|
+
* The `data-theme` key string for the `@currentTheme` render sigil,
|
|
338
|
+
* derived from the host orbital's `Orbital.theme`. Render-context only.
|
|
339
|
+
*/
|
|
340
|
+
currentTheme?: string;
|
|
329
341
|
/**
|
|
330
342
|
* Local variables introduced by a `let` form, keyed by bare name and
|
|
331
343
|
* referenced via `@<name>` (the canonical evaluator convention — same as
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/runtime",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.53.0",
|
|
4
4
|
"description": "Interpreted runtime for Almadar orbital applications (OrbitalServerRuntime)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@almadar/core": "^10.
|
|
61
|
-
"@almadar/evaluator": "^2.
|
|
60
|
+
"@almadar/core": "^10.55.0",
|
|
61
|
+
"@almadar/evaluator": "^2.40.0",
|
|
62
62
|
"@almadar/logger": "^1.11.0",
|
|
63
63
|
"@almadar/server": "^2.34.0",
|
|
64
|
-
"@almadar/std": "^16.
|
|
64
|
+
"@almadar/std": "^16.168.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"express": "^5.0.0"
|