@almadar/core 10.38.0 → 10.40.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-BoyWDFfH.d.ts → builders-Dw270YQh.d.ts} +116 -3
- package/dist/builders.d.ts +4 -4
- package/dist/builders.js +5 -0
- package/dist/builders.js.map +1 -1
- package/dist/{effect-5kg4MCeB.d.ts → effect-DQPFowvO.d.ts} +7 -2
- package/dist/{entity-CVylqnAf.d.ts → entity-DfD-iXkn.d.ts} +13 -0
- package/dist/factory/index.d.ts +6 -6
- package/dist/factory-runtime/index.d.ts +4 -4
- package/dist/factory-runtime/index.js +5 -0
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +526 -37
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +1 -1
- package/dist/mock/index.js +5 -0
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +765 -47
- package/dist/patterns/index.js +521 -37
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +275 -31
- package/dist/patterns/patterns-registry.json +245 -5
- package/dist/patterns/registry.json +245 -5
- package/dist/{trait-Bnd3i_2G.d.ts → trait-C_TZnqb_.d.ts} +17 -2
- package/dist/types/index.d.ts +15 -9
- package/dist/types/index.js +5 -0
- package/dist/types/index.js.map +1 -1
- package/dist/{types-BE598tvP.d.ts → types-BUqLsSEN.d.ts} +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { S as SExpr, a as EventPayload, E as Expression } from './expression-DpAj1RzP.js';
|
|
3
|
-
import { F as FieldValue, b as EntityRow } from './entity-
|
|
3
|
+
import { F as FieldValue, b as EntityRow } from './entity-DfD-iXkn.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Service Types for Orbital Schema
|
|
@@ -751,7 +751,7 @@ type ServiceParams = {
|
|
|
751
751
|
*
|
|
752
752
|
* DO NOT EDIT MANUALLY — regenerated by almadar-pattern-sync `patterns` command.
|
|
753
753
|
*
|
|
754
|
-
* Generated: 2026-07-
|
|
754
|
+
* Generated: 2026-07-28T10:40:00.682Z
|
|
755
755
|
* Pattern count: 266
|
|
756
756
|
*/
|
|
757
757
|
|
|
@@ -1581,7 +1581,9 @@ interface PatternPropsMap {
|
|
|
1581
1581
|
variant?: string | SExpr;
|
|
1582
1582
|
groupBy?: string | SExpr;
|
|
1583
1583
|
senderField?: string | SExpr;
|
|
1584
|
+
senderLabelField?: string | SExpr;
|
|
1584
1585
|
currentUser?: string | SExpr;
|
|
1586
|
+
emptyMessage?: string | SExpr;
|
|
1585
1587
|
className?: string | SExpr;
|
|
1586
1588
|
isLoading?: boolean | string | SExpr;
|
|
1587
1589
|
error?: PatternPropValue | string | SExpr;
|
|
@@ -2253,6 +2255,7 @@ interface PatternPropsMap {
|
|
|
2253
2255
|
title?: string | SExpr;
|
|
2254
2256
|
nodes?: unknown[] | string | SExpr;
|
|
2255
2257
|
edges?: unknown[] | string | SExpr;
|
|
2258
|
+
proposedEdges?: unknown[] | string | SExpr;
|
|
2256
2259
|
similarity?: unknown[] | string | SExpr;
|
|
2257
2260
|
height?: number | string | SExpr;
|
|
2258
2261
|
showLabels?: boolean | string | SExpr;
|
|
@@ -2260,6 +2263,7 @@ interface PatternPropsMap {
|
|
|
2260
2263
|
draggable?: boolean | string | SExpr;
|
|
2261
2264
|
actions?: unknown[] | string | SExpr;
|
|
2262
2265
|
onNodeClick?: ((...args: unknown[]) => unknown) | string | SExpr;
|
|
2266
|
+
onMarkClick?: ((...args: unknown[]) => unknown) | string | SExpr;
|
|
2263
2267
|
onNodeDoubleClick?: ((...args: unknown[]) => unknown) | string | SExpr;
|
|
2264
2268
|
onBadgeClick?: ((...args: unknown[]) => unknown) | string | SExpr;
|
|
2265
2269
|
nodeClickEvent?: string | SExpr;
|
|
@@ -4028,6 +4032,7 @@ interface PatternPropsMap {
|
|
|
4028
4032
|
id?: string | SExpr;
|
|
4029
4033
|
className?: string | SExpr;
|
|
4030
4034
|
style?: PatternPropValue | string | SExpr;
|
|
4035
|
+
format?: string | SExpr;
|
|
4031
4036
|
content?: unknown | string | SExpr;
|
|
4032
4037
|
children?: unknown | string | SExpr;
|
|
4033
4038
|
};
|
|
@@ -1271,6 +1271,13 @@ type OrbitalEntity = {
|
|
|
1271
1271
|
persistence?: EntityPersistence;
|
|
1272
1272
|
/** Whether this entity's state is shared across all bound traits (vs per-trait copy). Orthogonal to persistence. */
|
|
1273
1273
|
shared?: boolean;
|
|
1274
|
+
/**
|
|
1275
|
+
* Whether this entity types the ambient `@user` viewer. Orthogonal to both
|
|
1276
|
+
* `persistence` and `shared`: `[persistent: people, identity]` is an
|
|
1277
|
+
* app-owned user directory, `[runtime, identity]` the provider-supplied
|
|
1278
|
+
* current viewer. At most one per composed program.
|
|
1279
|
+
*/
|
|
1280
|
+
identity?: boolean;
|
|
1274
1281
|
/** Collection name (auto-derived if not provided for persistent entities) */
|
|
1275
1282
|
collection?: string;
|
|
1276
1283
|
/** Entity fields */
|
|
@@ -1292,6 +1299,7 @@ declare const OrbitalEntitySchema: z.ZodObject<{
|
|
|
1292
1299
|
name: z.ZodString;
|
|
1293
1300
|
persistence: z.ZodDefault<z.ZodEnum<["persistent", "runtime"]>>;
|
|
1294
1301
|
shared: z.ZodOptional<z.ZodBoolean>;
|
|
1302
|
+
identity: z.ZodOptional<z.ZodBoolean>;
|
|
1295
1303
|
collection: z.ZodOptional<z.ZodString>;
|
|
1296
1304
|
fields: z.ZodArray<z.ZodType<EntityField, z.ZodTypeDef, unknown>, "many">;
|
|
1297
1305
|
instances: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
@@ -1330,6 +1338,7 @@ declare const OrbitalEntitySchema: z.ZodObject<{
|
|
|
1330
1338
|
fields: EntityField[];
|
|
1331
1339
|
description?: string | undefined;
|
|
1332
1340
|
shared?: boolean | undefined;
|
|
1341
|
+
identity?: boolean | undefined;
|
|
1333
1342
|
collection?: string | undefined;
|
|
1334
1343
|
instances?: Record<string, unknown>[] | undefined;
|
|
1335
1344
|
timestamps?: boolean | undefined;
|
|
@@ -1350,6 +1359,7 @@ declare const OrbitalEntitySchema: z.ZodObject<{
|
|
|
1350
1359
|
description?: string | undefined;
|
|
1351
1360
|
persistence?: "persistent" | "runtime" | undefined;
|
|
1352
1361
|
shared?: boolean | undefined;
|
|
1362
|
+
identity?: boolean | undefined;
|
|
1353
1363
|
collection?: string | undefined;
|
|
1354
1364
|
instances?: Record<string, unknown>[] | undefined;
|
|
1355
1365
|
timestamps?: boolean | undefined;
|
|
@@ -1373,6 +1383,7 @@ declare const EntitySchema: z.ZodObject<{
|
|
|
1373
1383
|
name: z.ZodString;
|
|
1374
1384
|
persistence: z.ZodDefault<z.ZodEnum<["persistent", "runtime"]>>;
|
|
1375
1385
|
shared: z.ZodOptional<z.ZodBoolean>;
|
|
1386
|
+
identity: z.ZodOptional<z.ZodBoolean>;
|
|
1376
1387
|
collection: z.ZodOptional<z.ZodString>;
|
|
1377
1388
|
fields: z.ZodArray<z.ZodType<EntityField, z.ZodTypeDef, unknown>, "many">;
|
|
1378
1389
|
instances: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
@@ -1411,6 +1422,7 @@ declare const EntitySchema: z.ZodObject<{
|
|
|
1411
1422
|
fields: EntityField[];
|
|
1412
1423
|
description?: string | undefined;
|
|
1413
1424
|
shared?: boolean | undefined;
|
|
1425
|
+
identity?: boolean | undefined;
|
|
1414
1426
|
collection?: string | undefined;
|
|
1415
1427
|
instances?: Record<string, unknown>[] | undefined;
|
|
1416
1428
|
timestamps?: boolean | undefined;
|
|
@@ -1431,6 +1443,7 @@ declare const EntitySchema: z.ZodObject<{
|
|
|
1431
1443
|
description?: string | undefined;
|
|
1432
1444
|
persistence?: "persistent" | "runtime" | undefined;
|
|
1433
1445
|
shared?: boolean | undefined;
|
|
1446
|
+
identity?: boolean | undefined;
|
|
1434
1447
|
collection?: string | undefined;
|
|
1435
1448
|
instances?: Record<string, unknown>[] | undefined;
|
|
1436
1449
|
timestamps?: boolean | undefined;
|
package/dist/factory/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 { E as EntityPersistence, a as EntityField } from '../entity-
|
|
4
|
-
export { J as JsonValue } from '../entity-
|
|
5
|
-
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-BUqLsSEN.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-BUqLsSEN.js';
|
|
3
|
+
import { E as EntityPersistence, a as EntityField } from '../entity-DfD-iXkn.js';
|
|
4
|
+
export { J as JsonValue } from '../entity-DfD-iXkn.js';
|
|
5
|
+
import { a as TraitReference } from '../trait-C_TZnqb_.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../expression-DpAj1RzP.js';
|
|
8
|
-
import '../effect-
|
|
8
|
+
import '../effect-DQPFowvO.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Typed questionnaire surface — shapes the studio renders + answers.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { O as OrbitalSchema, M as MakeTraitRefOpts, a as OrbitalDefinition } from '../builders-
|
|
2
|
-
import { C as CallSiteConfig, b as CallSiteConfigEntry, c as Trait } from '../trait-
|
|
3
|
-
import { a as EntityField, E as EntityPersistence } from '../entity-
|
|
1
|
+
import { O as OrbitalSchema, M as MakeTraitRefOpts, a as OrbitalDefinition } from '../builders-Dw270YQh.js';
|
|
2
|
+
import { C as CallSiteConfig, b as CallSiteConfigEntry, c as Trait } from '../trait-C_TZnqb_.js';
|
|
3
|
+
import { a as EntityField, E as EntityPersistence } from '../entity-DfD-iXkn.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../effect-
|
|
5
|
+
import '../effect-DQPFowvO.js';
|
|
6
6
|
import '../expression-DpAj1RzP.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -336,6 +336,11 @@ var OrbitalEntitySchema = z.object({
|
|
|
336
336
|
name: z.string().min(1, "Entity name is required"),
|
|
337
337
|
persistence: EntityPersistenceSchema.default("persistent"),
|
|
338
338
|
shared: z.boolean().optional(),
|
|
339
|
+
// Must stay in step with the Rust serde field (`EntityDefinition.identity`,
|
|
340
|
+
// orbital-core/src/schema/types.rs). `z.object()` STRIPS unknown keys rather
|
|
341
|
+
// than rejecting them, so a Rust-only field works on the compiled path and
|
|
342
|
+
// silently vanishes on the interpreter path.
|
|
343
|
+
identity: z.boolean().optional(),
|
|
339
344
|
collection: z.string().optional(),
|
|
340
345
|
fields: z.array(EntityFieldSchema).min(1, "At least one field is required"),
|
|
341
346
|
instances: z.array(z.record(z.unknown())).optional(),
|