@almadar/core 10.89.0 → 10.90.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 +9 -2
- package/dist/builders.js.map +1 -1
- package/dist/{effect-CdLBg9zL.d.ts → effect-7jQQxiIt.d.ts} +58 -42
- package/dist/{entityAccess-BmZHpQUv.d.ts → entityAccess-CpHfCQA3.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +467 -9
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +9 -2
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/i18n/index.js +6 -0
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-CV_iM5Cm.d.ts → index-BresfHJy.d.ts} +63 -6
- package/dist/index.d.ts +34 -12
- package/dist/index.js +582 -17
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +54 -5
- package/dist/mock/index.js +33 -3
- 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 +1160 -14
- package/dist/patterns/index.js +545 -12
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +72 -1
- package/dist/patterns/patterns-registry.json +461 -8
- package/dist/patterns/registry.json +461 -8
- package/dist/patterns/services-registry.json +150 -64
- package/dist/{schema-DYC_RnBX.d.ts → schema-C52juBr8.d.ts} +495 -323
- package/dist/{trait-DmWdtKlP.d.ts → trait-CFiL1YUN.d.ts} +98 -55
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +11 -6
- package/dist/types/index.js.map +1 -1
- package/dist/{types-DdK77hq2.d.ts → types-BgC8ETnl.d.ts} +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-
|
|
2
|
-
import { g as TraitConfigValue, i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-
|
|
3
|
-
import { E as EntityField, a as EntityPersistence } from '../effect-
|
|
1
|
+
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-C52juBr8.js';
|
|
2
|
+
import { g as TraitConfigValue, i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-CFiL1YUN.js';
|
|
3
|
+
import { E as EntityField, a as EntityPersistence } from '../effect-7jQQxiIt.js';
|
|
4
4
|
import { MakeTraitRefOpts } from '../builders.js';
|
|
5
5
|
import '../json-D8gmyK3l.js';
|
|
6
6
|
import '../expression-WfTp2arD.js';
|
|
@@ -264,7 +264,7 @@ var VISUAL_STYLES = ["pixel", "vector", "hd", "1-bit", "isometric"];
|
|
|
264
264
|
var VisualStyleSchema = z.enum(VISUAL_STYLES);
|
|
265
265
|
var ASSET_DIMENSIONS = ["2d", "3d"];
|
|
266
266
|
var AssetDimensionSchema = z.enum(ASSET_DIMENSIONS);
|
|
267
|
-
var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1"];
|
|
267
|
+
var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1", "4:1", "5:3", "1:2"];
|
|
268
268
|
var AssetAspectSchema = z.enum(ASSET_ASPECTS);
|
|
269
269
|
var ANIMATION_NAMES = ["idle", "walk", "skate", "jump", "fall", "attack", "hit", "death"];
|
|
270
270
|
z.enum(ANIMATION_NAMES);
|
|
@@ -334,7 +334,9 @@ SemanticAssetRefSchema.extend({
|
|
|
334
334
|
atlas: z.string().optional(),
|
|
335
335
|
sprite: z.string().optional(),
|
|
336
336
|
name: z.string().optional(),
|
|
337
|
-
thumbnailUrl: z.string().optional()
|
|
337
|
+
thumbnailUrl: z.string().optional(),
|
|
338
|
+
prompt: z.string().optional(),
|
|
339
|
+
choreography: z.record(z.string(), z.array(z.string())).optional()
|
|
338
340
|
});
|
|
339
341
|
var AssetCatalogEntrySchema = z.object({
|
|
340
342
|
url: z.string(),
|
|
@@ -469,6 +471,9 @@ var EntitySchema = OrbitalEntitySchema;
|
|
|
469
471
|
function persistenceModeAllowsOverrides(persistence) {
|
|
470
472
|
return persistence === "persistent" || persistence === void 0;
|
|
471
473
|
}
|
|
474
|
+
var FieldValueSchema = z.lazy(
|
|
475
|
+
() => z.union([z.string(), z.number(), z.boolean(), z.date(), z.null(), z.array(FieldValueSchema), z.record(FieldValueSchema.optional())])
|
|
476
|
+
);
|
|
472
477
|
var UI_SLOTS = [
|
|
473
478
|
// App slots
|
|
474
479
|
"main",
|
|
@@ -878,6 +883,8 @@ var TraitSchema = z.object({
|
|
|
878
883
|
entityBindingSynonyms: z.string().optional(),
|
|
879
884
|
capabilities: z.array(z.string()).optional(),
|
|
880
885
|
scope: TraitScopeSchema,
|
|
886
|
+
/** `local` trait-header flag — declares client-only dispatch (mirrors Rust `OirTrait::local`). Undeclared = server-gated dispatch. */
|
|
887
|
+
local: z.boolean().optional(),
|
|
881
888
|
linkedEntity: z.string().optional(),
|
|
882
889
|
linkedEntityId: EntityIdSchema.optional(),
|
|
883
890
|
entityRefIds: z.record(z.string().min(1), EntityIdSchema).optional(),
|