@almadar/core 8.8.2 → 9.0.1
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 +218 -0
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-5X8HNONp.d.ts → compose-behaviors-EFvCpOGu.d.ts} +1 -1
- package/dist/factory/index.d.ts +18 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +228 -1
- package/dist/index.js.map +1 -1
- package/dist/schema-Dp3KfQHm.d.ts +57541 -0
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.js +228 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/schema-mcIpWPzS.d.ts +0 -19771
- package/dist/{trait-BVLBQ9uk.d.ts → trait-C23jbaBB.d.ts} +24 -24
|
@@ -2807,20 +2807,20 @@ declare const TraitTickSchema: z.ZodObject<{
|
|
|
2807
2807
|
interval: number | "frame";
|
|
2808
2808
|
description?: string | undefined;
|
|
2809
2809
|
guard?: SExpr | undefined;
|
|
2810
|
+
emits?: string[] | undefined;
|
|
2810
2811
|
pages?: string[] | undefined;
|
|
2811
2812
|
priority?: number | undefined;
|
|
2812
2813
|
appliesTo?: string[] | undefined;
|
|
2813
|
-
emits?: string[] | undefined;
|
|
2814
2814
|
}, {
|
|
2815
2815
|
name: string;
|
|
2816
2816
|
effects: unknown[][];
|
|
2817
2817
|
interval: number | "frame";
|
|
2818
2818
|
description?: string | undefined;
|
|
2819
2819
|
guard?: SExpr | undefined;
|
|
2820
|
+
emits?: string[] | undefined;
|
|
2820
2821
|
pages?: string[] | undefined;
|
|
2821
2822
|
priority?: number | undefined;
|
|
2822
2823
|
appliesTo?: string[] | undefined;
|
|
2823
|
-
emits?: string[] | undefined;
|
|
2824
2824
|
}>;
|
|
2825
2825
|
/**
|
|
2826
2826
|
* Event scope determines visibility:
|
|
@@ -3217,9 +3217,9 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3217
3217
|
events?: Record<string, string> | undefined;
|
|
3218
3218
|
from?: string | undefined;
|
|
3219
3219
|
effects?: Record<string, unknown[]> | undefined;
|
|
3220
|
+
listens?: unknown[] | undefined;
|
|
3220
3221
|
appliesTo?: string[] | undefined;
|
|
3221
3222
|
linkedEntity?: string | undefined;
|
|
3222
|
-
listens?: unknown[] | undefined;
|
|
3223
3223
|
emitsScope?: "internal" | "external" | undefined;
|
|
3224
3224
|
}, {
|
|
3225
3225
|
ref: string;
|
|
@@ -3228,9 +3228,9 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3228
3228
|
events?: Record<string, string> | undefined;
|
|
3229
3229
|
from?: string | undefined;
|
|
3230
3230
|
effects?: Record<string, unknown[]> | undefined;
|
|
3231
|
+
listens?: unknown[] | undefined;
|
|
3231
3232
|
appliesTo?: string[] | undefined;
|
|
3232
3233
|
linkedEntity?: string | undefined;
|
|
3233
|
-
listens?: unknown[] | undefined;
|
|
3234
3234
|
emitsScope?: "internal" | "external" | undefined;
|
|
3235
3235
|
}>, {
|
|
3236
3236
|
ref: string;
|
|
@@ -3239,9 +3239,9 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3239
3239
|
events?: Record<string, string> | undefined;
|
|
3240
3240
|
from?: string | undefined;
|
|
3241
3241
|
effects?: Record<string, unknown[]> | undefined;
|
|
3242
|
+
listens?: unknown[] | undefined;
|
|
3242
3243
|
appliesTo?: string[] | undefined;
|
|
3243
3244
|
linkedEntity?: string | undefined;
|
|
3244
|
-
listens?: unknown[] | undefined;
|
|
3245
3245
|
emitsScope?: "internal" | "external" | undefined;
|
|
3246
3246
|
}, {
|
|
3247
3247
|
ref: string;
|
|
@@ -3250,9 +3250,9 @@ declare const TraitReferenceSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3250
3250
|
events?: Record<string, string> | undefined;
|
|
3251
3251
|
from?: string | undefined;
|
|
3252
3252
|
effects?: Record<string, unknown[]> | undefined;
|
|
3253
|
+
listens?: unknown[] | undefined;
|
|
3253
3254
|
appliesTo?: string[] | undefined;
|
|
3254
3255
|
linkedEntity?: string | undefined;
|
|
3255
|
-
listens?: unknown[] | undefined;
|
|
3256
3256
|
emitsScope?: "internal" | "external" | undefined;
|
|
3257
3257
|
}>;
|
|
3258
3258
|
/**
|
|
@@ -3662,20 +3662,20 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
3662
3662
|
interval: number | "frame";
|
|
3663
3663
|
description?: string | undefined;
|
|
3664
3664
|
guard?: SExpr | undefined;
|
|
3665
|
+
emits?: string[] | undefined;
|
|
3665
3666
|
pages?: string[] | undefined;
|
|
3666
3667
|
priority?: number | undefined;
|
|
3667
3668
|
appliesTo?: string[] | undefined;
|
|
3668
|
-
emits?: string[] | undefined;
|
|
3669
3669
|
}, {
|
|
3670
3670
|
name: string;
|
|
3671
3671
|
effects: unknown[][];
|
|
3672
3672
|
interval: number | "frame";
|
|
3673
3673
|
description?: string | undefined;
|
|
3674
3674
|
guard?: SExpr | undefined;
|
|
3675
|
+
emits?: string[] | undefined;
|
|
3675
3676
|
pages?: string[] | undefined;
|
|
3676
3677
|
priority?: number | undefined;
|
|
3677
3678
|
appliesTo?: string[] | undefined;
|
|
3678
|
-
emits?: string[] | undefined;
|
|
3679
3679
|
}>, "many">>;
|
|
3680
3680
|
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3681
3681
|
/**
|
|
@@ -3906,7 +3906,6 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
3906
3906
|
}[] | undefined;
|
|
3907
3907
|
scope?: "internal" | "external" | undefined;
|
|
3908
3908
|
}[] | undefined;
|
|
3909
|
-
linkedEntity?: string | undefined;
|
|
3910
3909
|
listens?: {
|
|
3911
3910
|
event: string;
|
|
3912
3911
|
triggers: string;
|
|
@@ -3924,6 +3923,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
3924
3923
|
scope?: "internal" | "external" | undefined;
|
|
3925
3924
|
payloadMapping?: Record<string, string> | undefined;
|
|
3926
3925
|
}[] | undefined;
|
|
3926
|
+
linkedEntity?: string | undefined;
|
|
3927
3927
|
description_visual_prompt?: string | undefined;
|
|
3928
3928
|
requiredFields?: {
|
|
3929
3929
|
type: "string" | "number" | "boolean" | "object" | "date" | "timestamp" | "datetime" | "array" | "enum";
|
|
@@ -3989,10 +3989,10 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
3989
3989
|
interval: number | "frame";
|
|
3990
3990
|
description?: string | undefined;
|
|
3991
3991
|
guard?: SExpr | undefined;
|
|
3992
|
+
emits?: string[] | undefined;
|
|
3992
3993
|
pages?: string[] | undefined;
|
|
3993
3994
|
priority?: number | undefined;
|
|
3994
3995
|
appliesTo?: string[] | undefined;
|
|
3995
|
-
emits?: string[] | undefined;
|
|
3996
3996
|
}[] | undefined;
|
|
3997
3997
|
sourceBehavior?: {
|
|
3998
3998
|
behavior: string;
|
|
@@ -4037,7 +4037,6 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
4037
4037
|
}[] | undefined;
|
|
4038
4038
|
scope?: "internal" | "external" | undefined;
|
|
4039
4039
|
}[] | undefined;
|
|
4040
|
-
linkedEntity?: string | undefined;
|
|
4041
4040
|
listens?: {
|
|
4042
4041
|
event: string;
|
|
4043
4042
|
triggers: string;
|
|
@@ -4055,6 +4054,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
4055
4054
|
scope?: "internal" | "external" | undefined;
|
|
4056
4055
|
payloadMapping?: Record<string, string> | undefined;
|
|
4057
4056
|
}[] | undefined;
|
|
4057
|
+
linkedEntity?: string | undefined;
|
|
4058
4058
|
description_visual_prompt?: string | undefined;
|
|
4059
4059
|
requiredFields?: {
|
|
4060
4060
|
type: "string" | "number" | "boolean" | "object" | "date" | "timestamp" | "datetime" | "array" | "enum";
|
|
@@ -4120,10 +4120,10 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
4120
4120
|
interval: number | "frame";
|
|
4121
4121
|
description?: string | undefined;
|
|
4122
4122
|
guard?: SExpr | undefined;
|
|
4123
|
+
emits?: string[] | undefined;
|
|
4123
4124
|
pages?: string[] | undefined;
|
|
4124
4125
|
priority?: number | undefined;
|
|
4125
4126
|
appliesTo?: string[] | undefined;
|
|
4126
|
-
emits?: string[] | undefined;
|
|
4127
4127
|
}[] | undefined;
|
|
4128
4128
|
sourceBehavior?: {
|
|
4129
4129
|
behavior: string;
|
|
@@ -4437,20 +4437,20 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
4437
4437
|
interval: number | "frame";
|
|
4438
4438
|
description?: string | undefined;
|
|
4439
4439
|
guard?: SExpr | undefined;
|
|
4440
|
+
emits?: string[] | undefined;
|
|
4440
4441
|
pages?: string[] | undefined;
|
|
4441
4442
|
priority?: number | undefined;
|
|
4442
4443
|
appliesTo?: string[] | undefined;
|
|
4443
|
-
emits?: string[] | undefined;
|
|
4444
4444
|
}, {
|
|
4445
4445
|
name: string;
|
|
4446
4446
|
effects: unknown[][];
|
|
4447
4447
|
interval: number | "frame";
|
|
4448
4448
|
description?: string | undefined;
|
|
4449
4449
|
guard?: SExpr | undefined;
|
|
4450
|
+
emits?: string[] | undefined;
|
|
4450
4451
|
pages?: string[] | undefined;
|
|
4451
4452
|
priority?: number | undefined;
|
|
4452
4453
|
appliesTo?: string[] | undefined;
|
|
4453
|
-
emits?: string[] | undefined;
|
|
4454
4454
|
}>, "many">>;
|
|
4455
4455
|
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4456
4456
|
/**
|
|
@@ -4681,7 +4681,6 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
4681
4681
|
}[] | undefined;
|
|
4682
4682
|
scope?: "internal" | "external" | undefined;
|
|
4683
4683
|
}[] | undefined;
|
|
4684
|
-
linkedEntity?: string | undefined;
|
|
4685
4684
|
listens?: {
|
|
4686
4685
|
event: string;
|
|
4687
4686
|
triggers: string;
|
|
@@ -4699,6 +4698,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
4699
4698
|
scope?: "internal" | "external" | undefined;
|
|
4700
4699
|
payloadMapping?: Record<string, string> | undefined;
|
|
4701
4700
|
}[] | undefined;
|
|
4701
|
+
linkedEntity?: string | undefined;
|
|
4702
4702
|
description_visual_prompt?: string | undefined;
|
|
4703
4703
|
requiredFields?: {
|
|
4704
4704
|
type: "string" | "number" | "boolean" | "object" | "date" | "timestamp" | "datetime" | "array" | "enum";
|
|
@@ -4764,10 +4764,10 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
4764
4764
|
interval: number | "frame";
|
|
4765
4765
|
description?: string | undefined;
|
|
4766
4766
|
guard?: SExpr | undefined;
|
|
4767
|
+
emits?: string[] | undefined;
|
|
4767
4768
|
pages?: string[] | undefined;
|
|
4768
4769
|
priority?: number | undefined;
|
|
4769
4770
|
appliesTo?: string[] | undefined;
|
|
4770
|
-
emits?: string[] | undefined;
|
|
4771
4771
|
}[] | undefined;
|
|
4772
4772
|
sourceBehavior?: {
|
|
4773
4773
|
behavior: string;
|
|
@@ -4812,7 +4812,6 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
4812
4812
|
}[] | undefined;
|
|
4813
4813
|
scope?: "internal" | "external" | undefined;
|
|
4814
4814
|
}[] | undefined;
|
|
4815
|
-
linkedEntity?: string | undefined;
|
|
4816
4815
|
listens?: {
|
|
4817
4816
|
event: string;
|
|
4818
4817
|
triggers: string;
|
|
@@ -4830,6 +4829,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
4830
4829
|
scope?: "internal" | "external" | undefined;
|
|
4831
4830
|
payloadMapping?: Record<string, string> | undefined;
|
|
4832
4831
|
}[] | undefined;
|
|
4832
|
+
linkedEntity?: string | undefined;
|
|
4833
4833
|
description_visual_prompt?: string | undefined;
|
|
4834
4834
|
requiredFields?: {
|
|
4835
4835
|
type: "string" | "number" | "boolean" | "object" | "date" | "timestamp" | "datetime" | "array" | "enum";
|
|
@@ -4895,10 +4895,10 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
4895
4895
|
interval: number | "frame";
|
|
4896
4896
|
description?: string | undefined;
|
|
4897
4897
|
guard?: SExpr | undefined;
|
|
4898
|
+
emits?: string[] | undefined;
|
|
4898
4899
|
pages?: string[] | undefined;
|
|
4899
4900
|
priority?: number | undefined;
|
|
4900
4901
|
appliesTo?: string[] | undefined;
|
|
4901
|
-
emits?: string[] | undefined;
|
|
4902
4902
|
}[] | undefined;
|
|
4903
4903
|
sourceBehavior?: {
|
|
4904
4904
|
behavior: string;
|
|
@@ -5282,20 +5282,20 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
5282
5282
|
interval: number | "frame";
|
|
5283
5283
|
description?: string | undefined;
|
|
5284
5284
|
guard?: SExpr | undefined;
|
|
5285
|
+
emits?: string[] | undefined;
|
|
5285
5286
|
pages?: string[] | undefined;
|
|
5286
5287
|
priority?: number | undefined;
|
|
5287
5288
|
appliesTo?: string[] | undefined;
|
|
5288
|
-
emits?: string[] | undefined;
|
|
5289
5289
|
}, {
|
|
5290
5290
|
name: string;
|
|
5291
5291
|
effects: unknown[][];
|
|
5292
5292
|
interval: number | "frame";
|
|
5293
5293
|
description?: string | undefined;
|
|
5294
5294
|
guard?: SExpr | undefined;
|
|
5295
|
+
emits?: string[] | undefined;
|
|
5295
5296
|
pages?: string[] | undefined;
|
|
5296
5297
|
priority?: number | undefined;
|
|
5297
5298
|
appliesTo?: string[] | undefined;
|
|
5298
|
-
emits?: string[] | undefined;
|
|
5299
5299
|
}>, "many">>;
|
|
5300
5300
|
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5301
5301
|
/**
|
|
@@ -5526,7 +5526,6 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
5526
5526
|
}[] | undefined;
|
|
5527
5527
|
scope?: "internal" | "external" | undefined;
|
|
5528
5528
|
}[] | undefined;
|
|
5529
|
-
linkedEntity?: string | undefined;
|
|
5530
5529
|
listens?: {
|
|
5531
5530
|
event: string;
|
|
5532
5531
|
triggers: string;
|
|
@@ -5544,6 +5543,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
5544
5543
|
scope?: "internal" | "external" | undefined;
|
|
5545
5544
|
payloadMapping?: Record<string, string> | undefined;
|
|
5546
5545
|
}[] | undefined;
|
|
5546
|
+
linkedEntity?: string | undefined;
|
|
5547
5547
|
description_visual_prompt?: string | undefined;
|
|
5548
5548
|
requiredFields?: {
|
|
5549
5549
|
type: "string" | "number" | "boolean" | "object" | "date" | "timestamp" | "datetime" | "array" | "enum";
|
|
@@ -5609,10 +5609,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
5609
5609
|
interval: number | "frame";
|
|
5610
5610
|
description?: string | undefined;
|
|
5611
5611
|
guard?: SExpr | undefined;
|
|
5612
|
+
emits?: string[] | undefined;
|
|
5612
5613
|
pages?: string[] | undefined;
|
|
5613
5614
|
priority?: number | undefined;
|
|
5614
5615
|
appliesTo?: string[] | undefined;
|
|
5615
|
-
emits?: string[] | undefined;
|
|
5616
5616
|
}[] | undefined;
|
|
5617
5617
|
sourceBehavior?: {
|
|
5618
5618
|
behavior: string;
|
|
@@ -5657,7 +5657,6 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
5657
5657
|
}[] | undefined;
|
|
5658
5658
|
scope?: "internal" | "external" | undefined;
|
|
5659
5659
|
}[] | undefined;
|
|
5660
|
-
linkedEntity?: string | undefined;
|
|
5661
5660
|
listens?: {
|
|
5662
5661
|
event: string;
|
|
5663
5662
|
triggers: string;
|
|
@@ -5675,6 +5674,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
5675
5674
|
scope?: "internal" | "external" | undefined;
|
|
5676
5675
|
payloadMapping?: Record<string, string> | undefined;
|
|
5677
5676
|
}[] | undefined;
|
|
5677
|
+
linkedEntity?: string | undefined;
|
|
5678
5678
|
description_visual_prompt?: string | undefined;
|
|
5679
5679
|
requiredFields?: {
|
|
5680
5680
|
type: "string" | "number" | "boolean" | "object" | "date" | "timestamp" | "datetime" | "array" | "enum";
|
|
@@ -5740,10 +5740,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
5740
5740
|
interval: number | "frame";
|
|
5741
5741
|
description?: string | undefined;
|
|
5742
5742
|
guard?: SExpr | undefined;
|
|
5743
|
+
emits?: string[] | undefined;
|
|
5743
5744
|
pages?: string[] | undefined;
|
|
5744
5745
|
priority?: number | undefined;
|
|
5745
5746
|
appliesTo?: string[] | undefined;
|
|
5746
|
-
emits?: string[] | undefined;
|
|
5747
5747
|
}[] | undefined;
|
|
5748
5748
|
sourceBehavior?: {
|
|
5749
5749
|
behavior: string;
|