@almadar/core 2.7.0 → 2.9.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 +2 -2
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-Be7k7Esx.d.ts → compose-behaviors-j53THIou.d.ts} +1 -1
- package/dist/domain-language/index.d.ts +1 -1
- package/dist/domain-language/index.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +177 -14
- package/dist/index.js.map +1 -1
- package/dist/{schema-Cm63mgSP.d.ts → schema-BNBpNxGb.d.ts} +112 -2
- package/dist/state-machine/index.d.ts +56 -1
- package/dist/state-machine/index.js +149 -1
- package/dist/state-machine/index.js.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +26 -11
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/dist/types/index.js
CHANGED
|
@@ -301,6 +301,21 @@ function doEffects(...effects) {
|
|
|
301
301
|
function notify(channel, message, recipient) {
|
|
302
302
|
return recipient ? ["notify", channel, message, recipient] : ["notify", channel, message];
|
|
303
303
|
}
|
|
304
|
+
function ref(binding, selector) {
|
|
305
|
+
return selector ? ["ref", binding, selector] : ["ref", binding];
|
|
306
|
+
}
|
|
307
|
+
function deref(binding, selector) {
|
|
308
|
+
return selector ? ["deref", binding, selector] : ["deref", binding];
|
|
309
|
+
}
|
|
310
|
+
function swap(binding, transform) {
|
|
311
|
+
return ["swap!", binding, transform];
|
|
312
|
+
}
|
|
313
|
+
function watch(binding, event, options) {
|
|
314
|
+
return options ? ["watch", binding, event, options] : ["watch", binding, event];
|
|
315
|
+
}
|
|
316
|
+
function atomic(...effects) {
|
|
317
|
+
return ["atomic", ...effects];
|
|
318
|
+
}
|
|
304
319
|
var SExprAtomSchema = z.union([
|
|
305
320
|
z.string(),
|
|
306
321
|
z.number(),
|
|
@@ -822,8 +837,8 @@ var ServiceRefSchema = z.union([
|
|
|
822
837
|
ServiceDefinitionSchema,
|
|
823
838
|
ServiceRefStringSchema
|
|
824
839
|
]);
|
|
825
|
-
function parseServiceRef(
|
|
826
|
-
const match =
|
|
840
|
+
function parseServiceRef(ref2) {
|
|
841
|
+
const match = ref2.match(
|
|
827
842
|
/^([A-Z][a-zA-Z0-9]*)\.services\.([a-zA-Z][a-zA-Z0-9]*)$/
|
|
828
843
|
);
|
|
829
844
|
if (!match) return null;
|
|
@@ -890,21 +905,21 @@ z.string().regex(
|
|
|
890
905
|
/^([A-Z][a-zA-Z0-9]*\.traits\.)?[A-Z][a-zA-Z0-9]*$/,
|
|
891
906
|
'Trait reference must be "TraitName" or "Alias.traits.TraitName"'
|
|
892
907
|
);
|
|
893
|
-
function isImportedTraitRef(
|
|
894
|
-
return /^[A-Z][a-zA-Z0-9]*\.traits\.[A-Z][a-zA-Z0-9]*$/.test(
|
|
908
|
+
function isImportedTraitRef(ref2) {
|
|
909
|
+
return /^[A-Z][a-zA-Z0-9]*\.traits\.[A-Z][a-zA-Z0-9]*$/.test(ref2);
|
|
895
910
|
}
|
|
896
|
-
function parseImportedTraitRef(
|
|
897
|
-
const match =
|
|
911
|
+
function parseImportedTraitRef(ref2) {
|
|
912
|
+
const match = ref2.match(/^([A-Z][a-zA-Z0-9]*)\.traits\.([A-Z][a-zA-Z0-9]*)$/);
|
|
898
913
|
if (!match) return null;
|
|
899
914
|
return { alias: match[1], traitName: match[2] };
|
|
900
915
|
}
|
|
901
|
-
function parseEntityRef(
|
|
902
|
-
const match =
|
|
916
|
+
function parseEntityRef(ref2) {
|
|
917
|
+
const match = ref2.match(/^([A-Z][a-zA-Z0-9]*)\.entity$/);
|
|
903
918
|
if (!match) return null;
|
|
904
919
|
return { alias: match[1] };
|
|
905
920
|
}
|
|
906
|
-
function parsePageRef(
|
|
907
|
-
const match =
|
|
921
|
+
function parsePageRef(ref2) {
|
|
922
|
+
const match = ref2.match(/^([A-Z][a-zA-Z0-9]*)\.pages\.([A-Z][a-zA-Z0-9]*)$/);
|
|
908
923
|
if (!match) return null;
|
|
909
924
|
return { alias: match[1], pageName: match[2] };
|
|
910
925
|
}
|
|
@@ -1212,6 +1227,6 @@ function isResolvedIR(ir) {
|
|
|
1212
1227
|
return typeof r.appName === "string" && r.traits instanceof Map && r.pages instanceof Map;
|
|
1213
1228
|
}
|
|
1214
1229
|
|
|
1215
|
-
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, AgentDomainCategorySchema, AnimationDefSchema, AssetMapSchema, AssetMappingSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BindingSchema, CORE_BINDINGS, ComputedEventContractSchema, ComputedEventListenerSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GameSubCategorySchema, GameTypeSchema, GuardSchema, InteractionModelSchema, McpServiceDefSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PatternTypeSchema, PayloadFieldSchema, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, ResolvedAssetSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SocketEventsSchema, SocketServiceDefSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SuggestedGuardSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TraitCategorySchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, callService, collectBindings, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deriveCollection, despawn, doEffects, emit, findService, getAllOperators, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, inferTsType, isBinding, isCircuitEvent, isEffect, isEntityReference, isImportedTraitRef, isInlineTrait, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isSingletonEntity, isSocketService, isThemeReference, isValidBinding, navigate, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, renderUI, safeParseOrbitalSchema, set, sexpr, spawn, validateAssetAnimations, validateBindingInContext, walkSExpr };
|
|
1230
|
+
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, AgentDomainCategorySchema, AnimationDefSchema, AssetMapSchema, AssetMappingSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BindingSchema, CORE_BINDINGS, ComputedEventContractSchema, ComputedEventListenerSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GameSubCategorySchema, GameTypeSchema, GuardSchema, InteractionModelSchema, McpServiceDefSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PatternTypeSchema, PayloadFieldSchema, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, ResolvedAssetSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SocketEventsSchema, SocketServiceDefSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SuggestedGuardSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TraitCategorySchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, atomic, callService, collectBindings, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createLazyService, createResolvedField, createTypedEventBus, deref, deriveCollection, despawn, doEffects, emit, findService, getAllOperators, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, inferTsType, isBinding, isCircuitEvent, isEffect, isEntityReference, isImportedTraitRef, isInlineTrait, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isSingletonEntity, isSocketService, isThemeReference, isValidBinding, navigate, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, ref, renderUI, safeParseOrbitalSchema, set, sexpr, spawn, swap, validateAssetAnimations, validateBindingInContext, walkSExpr, watch };
|
|
1216
1231
|
//# sourceMappingURL=index.js.map
|
|
1217
1232
|
//# sourceMappingURL=index.js.map
|