@almadar/core 10.84.0 → 10.85.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 -0
- package/dist/builders.js.map +1 -1
- package/dist/{effect-DruTSW2O.d.ts → effect-BgDiw_bG.d.ts} +19 -3
- package/dist/{entityAccess-BoYVXf3b.d.ts → entityAccess-DK5S_2cT.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +180 -8
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +9 -0
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/{index-76Ff6JCE.d.ts → index-ChYsqVJj.d.ts} +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +289 -12
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/patterns/component-mapping.json +6 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +367 -13
- package/dist/patterns/index.js +189 -11
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +181 -9
- package/dist/patterns/registry.json +181 -9
- package/dist/{schema-BdeZ8R35.d.ts → schema-BhfQb1oe.d.ts} +498 -2
- package/dist/state-machine/index.js +91 -1
- package/dist/state-machine/index.js.map +1 -1
- package/dist/{trait-DKJWX0Ru.d.ts → trait-pavNlGqm.d.ts} +122 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +10 -0
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CRr2IuTj.d.ts → types-CCAmdxcH.d.ts} +12 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-
|
|
2
|
-
import { 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-BhfQb1oe.js';
|
|
2
|
+
import { i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-pavNlGqm.js';
|
|
3
|
+
import { E as EntityField, a as EntityPersistence } from '../effect-BgDiw_bG.js';
|
|
4
4
|
import { MakeTraitRefOpts } from '../builders.js';
|
|
5
5
|
import '../expression-Fk8bQWef.js';
|
|
6
6
|
import 'zod';
|
|
@@ -826,6 +826,14 @@ var EntityFieldContractSchema = z.object({
|
|
|
826
826
|
requires: z.array(z.string()),
|
|
827
827
|
provides: z.array(z.string())
|
|
828
828
|
});
|
|
829
|
+
var EffectSiteSchema = z.enum(["transition", "tick"]);
|
|
830
|
+
var EffectUseSchema = z.object({
|
|
831
|
+
kind: z.string(),
|
|
832
|
+
resource: z.string().optional(),
|
|
833
|
+
resolved: z.boolean().optional(),
|
|
834
|
+
site: EffectSiteSchema.optional()
|
|
835
|
+
});
|
|
836
|
+
var EffectRowSchema = z.array(EffectUseSchema);
|
|
829
837
|
var SourceBehaviorMetadataSchema = z.object({
|
|
830
838
|
behavior: z.string().min(1),
|
|
831
839
|
alias: z.string().min(1),
|
|
@@ -844,6 +852,7 @@ var TraitSchema = z.object({
|
|
|
844
852
|
category: TraitCategorySchema.optional(),
|
|
845
853
|
entityRebindable: z.boolean().optional(),
|
|
846
854
|
entityContract: EntityFieldContractSchema.optional(),
|
|
855
|
+
effectRow: EffectRowSchema.optional(),
|
|
847
856
|
entityBindingDescription: z.string().optional(),
|
|
848
857
|
entityBindingSynonyms: z.string().optional(),
|
|
849
858
|
capabilities: z.array(z.string()).optional(),
|