@almadar/core 10.57.0 → 10.58.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.map +1 -1
- package/dist/{effect-D-_fm4No.d.ts → effect-BH2k4oK6.d.ts} +11 -8
- package/dist/{entityAccess-kTNoti84.d.ts → entityAccess-QAurFO7l.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +87 -7
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +145 -9
- package/dist/patterns/index.js +87 -7
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +42 -0
- package/dist/patterns/patterns-registry.json +43 -5
- package/dist/patterns/registry.json +43 -5
- package/dist/patterns/services-registry.json +141 -253
- package/dist/{schema-CrUFqWXN.d.ts → schema-Sk_irLOY.d.ts} +2 -2
- package/dist/{trait-A4_OlY_l.d.ts → trait-Bw4nWHu1.d.ts} +1 -1
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.js.map +1 -1
- package/dist/{types-AHD31Gn-.d.ts → types-D71hY_4A.d.ts} +2 -2
- package/package.json +1 -1
|
@@ -2430,7 +2430,7 @@ type EntityData = Record<string, EntityRow[]>;
|
|
|
2430
2430
|
*
|
|
2431
2431
|
* DO NOT EDIT MANUALLY — regenerated by almadar-pattern-sync `patterns` command.
|
|
2432
2432
|
*
|
|
2433
|
-
* Generated: 2026-08-
|
|
2433
|
+
* Generated: 2026-08-16T04:34:48.543Z
|
|
2434
2434
|
* Pattern count: 269
|
|
2435
2435
|
*/
|
|
2436
2436
|
|
|
@@ -6034,7 +6034,7 @@ type RenderChildrenMap = ['array/map', SExpr, RenderItemLambda];
|
|
|
6034
6034
|
* @example ['navigate', '/tasks'] or ['navigate', '/tasks/:id', { id: '123' }]
|
|
6035
6035
|
* @example ['navigate', 'https://example.com']
|
|
6036
6036
|
*/
|
|
6037
|
-
type NavigateEffect = ['navigate', string | SExpr] | ['navigate', string | SExpr, Record<string, string>];
|
|
6037
|
+
type NavigateEffect = ['navigate', string | SExpr] | ['navigate', string | SExpr, Record<string, string | SExpr>];
|
|
6038
6038
|
/**
|
|
6039
6039
|
* Emit effect - emits an event, optionally with payload.
|
|
6040
6040
|
* @example ['emit', 'SAVE'] or ['emit', 'PLAYER_DIED', { playerId: '@entity.id' }]
|
|
@@ -6114,7 +6114,10 @@ type PersistEmitConfig = {
|
|
|
6114
6114
|
* runtime, binding strings and expressions resolve to `EntityRow` values
|
|
6115
6115
|
* before the persist op runs — both paths evaluate the expression first.
|
|
6116
6116
|
*/
|
|
6117
|
-
type
|
|
6117
|
+
type PersistRowInput = {
|
|
6118
|
+
id?: string | SExpr;
|
|
6119
|
+
} & Record<string, FieldValue | SExpr | undefined>;
|
|
6120
|
+
type PersistData = EntityRow | PersistRowInput | string | SExpr[];
|
|
6118
6121
|
/**
|
|
6119
6122
|
* Persist effect - creates, updates, deletes, or clears entities.
|
|
6120
6123
|
*
|
|
@@ -6163,8 +6166,8 @@ type DespawnEffect = ['despawn', string];
|
|
|
6163
6166
|
type DoEffect = ['do', ...SExpr[]];
|
|
6164
6167
|
/**
|
|
6165
6168
|
* Notify effect - sends a notification.
|
|
6166
|
-
* @example ['notify', '
|
|
6167
|
-
* @example ['notify', '
|
|
6169
|
+
* @example ['notify', 'in-app', 'Task created successfully']
|
|
6170
|
+
* @example ['notify', 'in-app', ['str/concat', 'Item: ', '@entity.name']]
|
|
6168
6171
|
*/
|
|
6169
6172
|
type NotifyEffect = ['notify', string, string | SExpr] | ['notify', string, string | SExpr, string];
|
|
6170
6173
|
/**
|
|
@@ -6599,10 +6602,10 @@ declare function despawn(entityId: string): DespawnEffect;
|
|
|
6599
6602
|
declare function doEffects(...effects: SExpr[]): DoEffect;
|
|
6600
6603
|
/**
|
|
6601
6604
|
* Create a notify effect
|
|
6602
|
-
* @example ["notify", "
|
|
6605
|
+
* @example ["notify", "in-app", "Task created successfully"]
|
|
6603
6606
|
*/
|
|
6604
|
-
declare function notify(channel: 'email' | 'push' | 'sms' | '
|
|
6605
|
-
declare function notify(channel: 'email' | 'push' | 'sms' | '
|
|
6607
|
+
declare function notify(channel: 'email' | 'push' | 'sms' | 'in-app', message: string): NotifyEffect;
|
|
6608
|
+
declare function notify(channel: 'email' | 'push' | 'sms' | 'in-app', message: string, recipient: string): NotifyEffect;
|
|
6606
6609
|
/**
|
|
6607
6610
|
* Create a ref effect (reactive entity subscription).
|
|
6608
6611
|
*
|
package/dist/factory/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, T as TraitOverlay } from '../types-
|
|
2
|
-
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, k as FactorySignatureCatalog, l as FactorySignatureEntityField, m as FactoryTraitSignature, J as JsonSchema, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-
|
|
3
|
-
import { a as EntityPersistence, E as EntityField } from '../effect-
|
|
4
|
-
import { a as TraitReference } from '../trait-
|
|
1
|
+
import { h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, T as TraitOverlay } from '../types-D71hY_4A.js';
|
|
2
|
+
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, k as FactorySignatureCatalog, l as FactorySignatureEntityField, m as FactoryTraitSignature, J as JsonSchema, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-D71hY_4A.js';
|
|
3
|
+
import { a as EntityPersistence, E as EntityField } from '../effect-BH2k4oK6.js';
|
|
4
|
+
import { a as TraitReference } from '../trait-Bw4nWHu1.js';
|
|
5
5
|
export { J as JsonValue } from '../expression-Fk8bQWef.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-
|
|
2
|
-
import { h as CallSiteConfig, i as CallSiteConfigEntry, g as Trait } from '../trait-
|
|
3
|
-
import { E as EntityField, a as EntityPersistence } from '../effect-
|
|
1
|
+
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-Sk_irLOY.js';
|
|
2
|
+
import { h as CallSiteConfig, i as CallSiteConfigEntry, g as Trait } from '../trait-Bw4nWHu1.js';
|
|
3
|
+
import { E as EntityField, a as EntityPersistence } from '../effect-BH2k4oK6.js';
|
|
4
4
|
import { MakeTraitRefOpts } from '../builders.js';
|
|
5
5
|
import '../expression-Fk8bQWef.js';
|
|
6
6
|
import 'zod';
|