@almadar/core 10.89.0 → 10.91.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/builders.d.ts +3 -3
- package/dist/builders.js +11 -3
- package/dist/builders.js.map +1 -1
- package/dist/{effect-CdLBg9zL.d.ts → effect-Bt8vKHwd.d.ts} +66 -42
- package/dist/{entityAccess-BmZHpQUv.d.ts → entityAccess-BdDX85rM.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +662 -49
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +11 -3
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/i18n/index.js +12 -0
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-CV_iM5Cm.d.ts → index-rOBf1Oag.d.ts} +83 -6
- package/dist/index.d.ts +34 -12
- package/dist/index.js +975 -57
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +60 -5
- package/dist/mock/index.js +35 -4
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +6 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +1875 -53
- package/dist/patterns/index.js +930 -51
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +264 -1
- package/dist/patterns/patterns-registry.json +654 -47
- package/dist/patterns/registry.json +654 -47
- package/dist/patterns/services-registry.json +284 -1
- package/dist/{schema-DYC_RnBX.d.ts → schema-ovDTDQz9.d.ts} +495 -323
- package/dist/{trait-DmWdtKlP.d.ts → trait-C3e3btfn.d.ts} +98 -55
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +13 -7
- package/dist/types/index.js.map +1 -1
- package/dist/{types-DdK77hq2.d.ts → types-rh0naR6C.d.ts} +2 -2
- package/package.json +1 -1
package/dist/builders.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, i as RenderBinding, j as RenderUIEffect, d as EntityId, e as Entity, E as EntityField, a as EntityPersistence, g as EntityRow } from './effect-
|
|
2
|
-
import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-
|
|
3
|
-
import { b as TraitConfig, h as Trait, T as TraitEventListener, i as CallSiteConfig, k as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-
|
|
1
|
+
import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, i as RenderBinding, j as RenderUIEffect, d as EntityId, e as Entity, E as EntityField, a as EntityPersistence, g as EntityRow } from './effect-Bt8vKHwd.js';
|
|
2
|
+
import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-ovDTDQz9.js';
|
|
3
|
+
import { b as TraitConfig, h as Trait, T as TraitEventListener, i as CallSiteConfig, k as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-C3e3btfn.js';
|
|
4
4
|
import { S as SExpr } from './expression-WfTp2arD.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import './json-D8gmyK3l.js';
|
package/dist/builders.js
CHANGED
|
@@ -157,7 +157,8 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
157
157
|
properties: z.record(EntityFieldSchema).optional(),
|
|
158
158
|
intrinsic: z.boolean().optional(),
|
|
159
159
|
description: z.string().optional(),
|
|
160
|
-
synonyms: z.string().optional()
|
|
160
|
+
synonyms: z.string().optional(),
|
|
161
|
+
mergedFrom: z.string().optional()
|
|
161
162
|
};
|
|
162
163
|
function scalarVariant(t) {
|
|
163
164
|
return z.object({
|
|
@@ -254,7 +255,7 @@ var VISUAL_STYLES = ["pixel", "vector", "hd", "1-bit", "isometric"];
|
|
|
254
255
|
var VisualStyleSchema = z.enum(VISUAL_STYLES);
|
|
255
256
|
var ASSET_DIMENSIONS = ["2d", "3d"];
|
|
256
257
|
var AssetDimensionSchema = z.enum(ASSET_DIMENSIONS);
|
|
257
|
-
var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1"];
|
|
258
|
+
var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1", "4:1", "5:3", "1:2"];
|
|
258
259
|
var AssetAspectSchema = z.enum(ASSET_ASPECTS);
|
|
259
260
|
var ANIMATION_NAMES = ["idle", "walk", "skate", "jump", "fall", "attack", "hit", "death"];
|
|
260
261
|
z.enum(ANIMATION_NAMES);
|
|
@@ -324,7 +325,9 @@ SemanticAssetRefSchema.extend({
|
|
|
324
325
|
atlas: z.string().optional(),
|
|
325
326
|
sprite: z.string().optional(),
|
|
326
327
|
name: z.string().optional(),
|
|
327
|
-
thumbnailUrl: z.string().optional()
|
|
328
|
+
thumbnailUrl: z.string().optional(),
|
|
329
|
+
prompt: z.string().optional(),
|
|
330
|
+
choreography: z.record(z.string(), z.array(z.string())).optional()
|
|
328
331
|
});
|
|
329
332
|
var AssetCatalogEntrySchema = z.object({
|
|
330
333
|
url: z.string(),
|
|
@@ -456,6 +459,9 @@ var OrbitalEntitySchema = z.object({
|
|
|
456
459
|
assetRef: SemanticAssetRefSchema.optional()
|
|
457
460
|
});
|
|
458
461
|
var EntitySchema = OrbitalEntitySchema;
|
|
462
|
+
var FieldValueSchema = z.lazy(
|
|
463
|
+
() => z.union([z.string(), z.number(), z.boolean(), z.date(), z.null(), z.array(FieldValueSchema), z.record(FieldValueSchema.optional())])
|
|
464
|
+
);
|
|
459
465
|
var UI_SLOTS = [
|
|
460
466
|
// App slots
|
|
461
467
|
"main",
|
|
@@ -852,6 +858,8 @@ var TraitSchema = z.object({
|
|
|
852
858
|
entityBindingSynonyms: z.string().optional(),
|
|
853
859
|
capabilities: z.array(z.string()).optional(),
|
|
854
860
|
scope: TraitScopeSchema,
|
|
861
|
+
/** `local` trait-header flag — declares client-only dispatch (mirrors Rust `OirTrait::local`). Undeclared = server-gated dispatch. */
|
|
862
|
+
local: z.boolean().optional(),
|
|
855
863
|
linkedEntity: z.string().optional(),
|
|
856
864
|
linkedEntityId: EntityIdSchema.optional(),
|
|
857
865
|
entityRefIds: z.record(z.string().min(1), EntityIdSchema).optional(),
|