@elaraai/e3-ui 1.0.7 → 1.0.9

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.
Files changed (63) hide show
  1. package/dist/src/data.d.ts +76 -71
  2. package/dist/src/data.d.ts.map +1 -1
  3. package/dist/src/data.js +79 -75
  4. package/dist/src/data.js.map +1 -1
  5. package/dist/src/decision/bind.d.ts +5 -5
  6. package/dist/src/decision/bind.js +1 -1
  7. package/dist/src/derive.d.ts +2 -1
  8. package/dist/src/derive.d.ts.map +1 -1
  9. package/dist/src/derive.js +23 -1
  10. package/dist/src/derive.js.map +1 -1
  11. package/dist/src/diff.d.ts +1 -1
  12. package/dist/src/diff.js +1 -1
  13. package/dist/src/func.d.ts +272 -0
  14. package/dist/src/func.d.ts.map +1 -0
  15. package/dist/src/func.js +222 -0
  16. package/dist/src/func.js.map +1 -0
  17. package/dist/src/index.d.ts +3 -1
  18. package/dist/src/index.d.ts.map +1 -1
  19. package/dist/src/index.js +3 -1
  20. package/dist/src/index.js.map +1 -1
  21. package/dist/src/internal.d.ts +2 -1
  22. package/dist/src/internal.d.ts.map +1 -1
  23. package/dist/src/internal.js +2 -1
  24. package/dist/src/internal.js.map +1 -1
  25. package/dist/src/manifest.d.ts +17 -4
  26. package/dist/src/manifest.d.ts.map +1 -1
  27. package/dist/src/manifest.js +28 -4
  28. package/dist/src/manifest.js.map +1 -1
  29. package/dist/src/ontology.d.ts +77 -51
  30. package/dist/src/ontology.d.ts.map +1 -1
  31. package/dist/src/ontology.js +30 -2
  32. package/dist/src/ontology.js.map +1 -1
  33. package/dist/src/runtime/decision/queue.d.ts +2 -6
  34. package/dist/src/runtime/decision/queue.d.ts.map +1 -1
  35. package/dist/src/runtime/decision/queue.js +2 -6
  36. package/dist/src/runtime/decision/queue.js.map +1 -1
  37. package/dist/src/runtime/diff.d.ts +1 -1
  38. package/dist/src/runtime/diff.js +1 -1
  39. package/dist/src/runtime/ontology.d.ts +1 -1
  40. package/dist/src/runtime/ontology.js +1 -1
  41. package/dist/src/ui.d.ts +1 -1
  42. package/dist/src/ui.js +2 -2
  43. package/dist/src/ui.js.map +1 -1
  44. package/dist/test/data/data.examples.js +9 -9
  45. package/dist/test/data/data.examples.js.map +1 -1
  46. package/dist/test/decision/journal.examples.js +4 -4
  47. package/dist/test/decision/journal.examples.js.map +1 -1
  48. package/dist/test/decision/loop.examples.js +3 -3
  49. package/dist/test/decision/loop.examples.js.map +1 -1
  50. package/dist/test/decision/queue.examples.js +12 -12
  51. package/dist/test/decision/queue.examples.js.map +1 -1
  52. package/dist/test/diff/diff.examples.d.ts.map +1 -1
  53. package/dist/test/diff/diff.examples.js +34 -34
  54. package/dist/test/diff/diff.examples.js.map +1 -1
  55. package/dist/test/func/func.examples.d.ts +5 -0
  56. package/dist/test/func/func.examples.d.ts.map +1 -0
  57. package/dist/test/func/func.examples.js +73 -0
  58. package/dist/test/func/func.examples.js.map +1 -0
  59. package/dist/test/ontology/ontology.examples.d.ts +13 -393
  60. package/dist/test/ontology/ontology.examples.d.ts.map +1 -1
  61. package/dist/test/ontology/ontology.examples.js +121 -190
  62. package/dist/test/ontology/ontology.examples.js.map +1 -1
  63. package/package.json +7 -7
@@ -4,24 +4,37 @@
4
4
  */
5
5
  /**
6
6
  * Data manifest for UI tasks — declares which datasets a UI binds to via
7
- * `Data.bind()`. Stored as a beast2-encoded blob in the task's `metadata`.
7
+ * `Data.bind()` and which named functions it calls via `Func.bind()`.
8
+ * Stored as a beast2-encoded blob in the task's `metadata`.
8
9
  *
9
10
  * @packageDocumentation
10
11
  */
11
- import { StructType, ArrayType, type ValueTypeOf } from '@elaraai/east';
12
+ import { StructType, ArrayType, StringType, type ValueTypeOf } from '@elaraai/east';
12
13
  /**
13
14
  * East type for the UI binding manifest.
14
15
  *
15
16
  * @property paths - Dataset paths this UI accesses (read or write) via Data.bind.
17
+ * @property functions - Named package functions this UI calls via Func.bind.
16
18
  */
17
19
  export declare const DataManifestType: StructType<{
18
20
  readonly paths: ArrayType<ArrayType<import("@elaraai/east").VariantType<{
19
- readonly field: import("@elaraai/east").StringType;
21
+ readonly field: StringType;
20
22
  }>>>;
23
+ readonly functions: ArrayType<StringType>;
21
24
  }>;
22
25
  export type DataManifest = ValueTypeOf<typeof DataManifestType>;
23
26
  /** Encode a manifest to beast2 bytes for storage in task metadata. */
24
27
  export declare function encodeManifest(manifest: DataManifest): Uint8Array;
25
- /** Decode a manifest from beast2 bytes. */
28
+ /**
29
+ * Decode a manifest from beast2 bytes.
30
+ *
31
+ * @remarks
32
+ * Dual-decode: tries the current shape first, then falls back to the
33
+ * legacy `{ paths }` shape (defaulting `functions` to empty) so manifests
34
+ * exported by older SDKs keep decoding. The reverse is NOT true — old
35
+ * viewers cannot decode new manifests — so viewers must update before UIs
36
+ * exporting function manifests are deployed to shared repos (the same
37
+ * landing-order constraint as `decodePackageObject`).
38
+ */
26
39
  export declare function decodeManifest(blob: Uint8Array): DataManifest;
27
40
  //# sourceMappingURL=manifest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/manifest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAoC,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAG1G;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;EAE3B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,QAAQ,EAAE,YAAY,GAAG,UAAU,CAEjE;AAED,2CAA2C;AAC3C,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,YAAY,CAE7D"}
1
+ {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/manifest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAoC,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAGtH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;;EAG3B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAQhE,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,QAAQ,EAAE,YAAY,GAAG,UAAU,CAEjE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,YAAY,CAO7D"}
@@ -4,26 +4,50 @@
4
4
  */
5
5
  /**
6
6
  * Data manifest for UI tasks — declares which datasets a UI binds to via
7
- * `Data.bind()`. Stored as a beast2-encoded blob in the task's `metadata`.
7
+ * `Data.bind()` and which named functions it calls via `Func.bind()`.
8
+ * Stored as a beast2-encoded blob in the task's `metadata`.
8
9
  *
9
10
  * @packageDocumentation
10
11
  */
11
- import { StructType, ArrayType, encodeBeast2For, decodeBeast2For } from '@elaraai/east';
12
+ import { StructType, ArrayType, StringType, encodeBeast2For, decodeBeast2For } from '@elaraai/east';
12
13
  import { TreePathType } from '@elaraai/e3-types';
13
14
  /**
14
15
  * East type for the UI binding manifest.
15
16
  *
16
17
  * @property paths - Dataset paths this UI accesses (read or write) via Data.bind.
18
+ * @property functions - Named package functions this UI calls via Func.bind.
17
19
  */
18
20
  export const DataManifestType = StructType({
19
21
  paths: ArrayType(TreePathType),
22
+ functions: ArrayType(StringType),
23
+ });
24
+ /** The pre-`functions` manifest shape — kept for dual-decode of blobs
25
+ * written by older SDKs. */
26
+ const LegacyDataManifestType = StructType({
27
+ paths: ArrayType(TreePathType),
20
28
  });
21
29
  /** Encode a manifest to beast2 bytes for storage in task metadata. */
22
30
  export function encodeManifest(manifest) {
23
31
  return encodeBeast2For(DataManifestType)(manifest);
24
32
  }
25
- /** Decode a manifest from beast2 bytes. */
33
+ /**
34
+ * Decode a manifest from beast2 bytes.
35
+ *
36
+ * @remarks
37
+ * Dual-decode: tries the current shape first, then falls back to the
38
+ * legacy `{ paths }` shape (defaulting `functions` to empty) so manifests
39
+ * exported by older SDKs keep decoding. The reverse is NOT true — old
40
+ * viewers cannot decode new manifests — so viewers must update before UIs
41
+ * exporting function manifests are deployed to shared repos (the same
42
+ * landing-order constraint as `decodePackageObject`).
43
+ */
26
44
  export function decodeManifest(blob) {
27
- return decodeBeast2For(DataManifestType)(blob);
45
+ try {
46
+ return decodeBeast2For(DataManifestType)(blob);
47
+ }
48
+ catch {
49
+ const legacy = decodeBeast2For(LegacyDataManifestType)(blob);
50
+ return { paths: legacy.paths, functions: [] };
51
+ }
28
52
  }
29
53
  //# sourceMappingURL=manifest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/manifest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,eAAe,EAAoB,MAAM,eAAe,CAAC;AAC1G,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;IACzC,KAAK,EAAE,SAAS,CAAC,YAAY,CAAC;CAC/B,CAAC,CAAC;AAIH,sEAAsE;AACtE,MAAM,UAAU,cAAc,CAAC,QAAsB;IACnD,OAAO,eAAe,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC;AACrD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,cAAc,CAAC,IAAgB;IAC7C,OAAO,eAAe,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAAC;AACjD,CAAC"}
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/manifest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAoB,MAAM,eAAe,CAAC;AACtH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;IACzC,KAAK,EAAE,SAAS,CAAC,YAAY,CAAC;IAC9B,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC;CACjC,CAAC,CAAC;AAIH;6BAC6B;AAC7B,MAAM,sBAAsB,GAAG,UAAU,CAAC;IACxC,KAAK,EAAE,SAAS,CAAC,YAAY,CAAC;CAC/B,CAAC,CAAC;AAEH,sEAAsE;AACtE,MAAM,UAAU,cAAc,CAAC,QAAsB;IACnD,OAAO,eAAe,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC;AACrD,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,cAAc,CAAC,IAAgB;IAC7C,IAAI,CAAC;QACH,OAAO,eAAe,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,MAAM,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC,CAAC;QAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAChD,CAAC;AACH,CAAC"}
@@ -30,6 +30,8 @@ import { type BoundValue } from './data.js';
30
30
  * @property resource - A consumable or capacity tracked by the business.
31
31
  * @property kpi - A measurable indicator.
32
32
  * @property decision - A point at which the business chooses among options.
33
+ * @property agent - A person, team, or system role that executes processes
34
+ * and owns decisions (REA's third leg: resources, events, agents).
33
35
  * @property data - A dataset or signal flowing through the business.
34
36
  * @property objective - A strategic goal the business pursues.
35
37
  * @property policy - A rule constraining other elements.
@@ -42,6 +44,7 @@ export declare const NodeKindType: VariantType<{
42
44
  readonly resource: NullType;
43
45
  readonly kpi: NullType;
44
46
  readonly decision: NullType;
47
+ readonly agent: NullType;
45
48
  readonly data: NullType;
46
49
  readonly objective: NullType;
47
50
  readonly policy: NullType;
@@ -141,6 +144,7 @@ export declare const NodeType: StructType<{
141
144
  readonly resource: NullType;
142
145
  readonly kpi: NullType;
143
146
  readonly decision: NullType;
147
+ readonly agent: NullType;
144
148
  readonly data: NullType;
145
149
  readonly objective: NullType;
146
150
  readonly policy: NullType;
@@ -176,7 +180,7 @@ export type OntologyMetadataType = typeof OntologyMetadataType;
176
180
  * warnings in the editor.
177
181
  * @property metadata - Optional versioning + provenance metadata.
178
182
  */
179
- export declare const OntologyType: StructType<{
183
+ declare const OntologyTypeImpl: StructType<{
180
184
  readonly nodes: ArrayType<StructType<{
181
185
  readonly id: StringType;
182
186
  readonly name: StringType;
@@ -186,6 +190,7 @@ export declare const OntologyType: StructType<{
186
190
  readonly resource: NullType;
187
191
  readonly kpi: NullType;
188
192
  readonly decision: NullType;
193
+ readonly agent: NullType;
189
194
  readonly data: NullType;
190
195
  readonly objective: NullType;
191
196
  readonly policy: NullType;
@@ -224,6 +229,25 @@ export declare const OntologyType: StructType<{
224
229
  readonly description: OptionType<StringType>;
225
230
  }>>;
226
231
  }>;
232
+ /**
233
+ * The structural type of {@link OntologyType}, as a named interface.
234
+ *
235
+ * Same declaration-emit fix as `UIComponentNode` in east-ui: the struct
236
+ * literal's inferred type is a large anonymous structural type (every
237
+ * node/link variant spelled out). Type aliases lose their name through
238
+ * generic inference, so a downstream `export const x = e3.input('o',
239
+ * OntologyType, …)` compiled with declaration emit would serialize the
240
+ * whole structure inline into the `.d.ts`. An interface is a symbol, so
241
+ * the declaration emitter references it by name instead.
242
+ *
243
+ * The interface wraps the whole `StructType` (not its fields record):
244
+ * `StructType`'s `Record<string, …>` fields constraint rejects closed
245
+ * interfaces, but the struct value type itself extends cleanly.
246
+ */
247
+ export interface OntologyStructType extends OntologyTypeImpl {
248
+ }
249
+ type OntologyTypeImpl = typeof OntologyTypeImpl;
250
+ export declare const OntologyType: OntologyStructType;
227
251
  /** Type alias for {@link OntologyType}. */
228
252
  export type OntologyType = typeof OntologyType;
229
253
  /**
@@ -272,6 +296,24 @@ export declare const OntologyStyleType: StructType<{
272
296
  }>;
273
297
  /** Type alias for {@link OntologyStyleType}. */
274
298
  export type OntologyStyleType = typeof OntologyStyleType;
299
+ /**
300
+ * The Ontology editor's display mode — the segmented control in the header
301
+ * switches between them. Both are projections of the same bound value and
302
+ * share the staged-buffer + commit machinery.
303
+ *
304
+ * @property graph - The ReactFlow node/link canvas (default).
305
+ * @property table - The process table: rows are `process` nodes grouped by
306
+ * the `objective` they serve and ordered by topological value-chain stage
307
+ * (derived from `uses` / `produces` resource flow).
308
+ */
309
+ export declare const OntologyViewType: VariantType<{
310
+ readonly graph: NullType;
311
+ readonly table: NullType;
312
+ }>;
313
+ /** Type alias for {@link OntologyViewType}. */
314
+ export type OntologyViewType = typeof OntologyViewType;
315
+ /** String literal form of {@link OntologyViewType}. */
316
+ export type OntologyViewLiteral = 'graph' | 'table';
275
317
  /** Re-exported from {@link Data}; see {@link DiffBindingType}. */
276
318
  export { DiffBindingType } from './data.js';
277
319
  /**
@@ -338,6 +380,11 @@ export declare const OntologyPayloadType: StructType<{
338
380
  readonly gridColor: OptionType<StringType>;
339
381
  readonly minimapMaskColor: OptionType<StringType>;
340
382
  }>>;
383
+ /** Initial display mode — graph canvas (default) or process table. */
384
+ readonly defaultView: OptionType<VariantType<{
385
+ readonly graph: NullType;
386
+ readonly table: NullType;
387
+ }>>;
341
388
  }>;
342
389
  /** Type alias for {@link OntologyPayloadType}. */
343
390
  export type OntologyPayloadType = typeof OntologyPayloadType;
@@ -387,6 +434,11 @@ export declare const OntologyComponent: import("@elaraai/east-ui").UIComponentDe
387
434
  readonly gridColor: OptionType<StringType>;
388
435
  readonly minimapMaskColor: OptionType<StringType>;
389
436
  }>>;
437
+ /** Initial display mode — graph canvas (default) or process table. */
438
+ readonly defaultView: OptionType<VariantType<{
439
+ readonly graph: NullType;
440
+ readonly table: NullType;
441
+ }>>;
390
442
  }>>;
391
443
  /**
392
444
  * Options for {@link Ontology.Root}.
@@ -407,7 +459,7 @@ export declare const OntologyComponent: import("@elaraai/east-ui").UIComponentDe
407
459
  * {@link OntologyStyleType}.
408
460
  */
409
461
  export interface OntologyOptions {
410
- /** The bound dataset to surface — pass the `Data.bind([OntologyType], …)`
462
+ /** The bound dataset to surface — pass the `Data.bind(…)`
411
463
  * handle itself (e.g. `value={view}`). Its East type carries the source
412
464
  * type, so a handle bound to any non-`OntologyType` dataset is a compile
413
465
  * error here. */
@@ -426,6 +478,10 @@ export interface OntologyOptions {
426
478
  onDiscarded?: SubtypeExprOrValue<OptionType<FunctionType<[], NullType>>>;
427
479
  /** Visual style escape hatches — see {@link OntologyStyleType}. */
428
480
  style?: SubtypeExprOrValue<OptionType<OntologyStyleType>>;
481
+ /** Initial display mode — `'graph'` (canvas, default) or `'table'`
482
+ * (objective-grouped process table). The header's segmented control
483
+ * switches between them at runtime either way. */
484
+ defaultView?: SubtypeExprOrValue<OptionType<OntologyViewType>> | OntologyViewLiteral;
429
485
  }
430
486
  /**
431
487
  * The Ontology component namespace. Surfaces a graph editor over an
@@ -461,7 +517,7 @@ export declare const Ontology: {
461
517
  *
462
518
  * const editor = East.function([], UIComponentType, (_$) =>
463
519
  * Reactive.Root(East.function([], UIComponentType, $ => {
464
- * const view = $.let(Data.bind([OntologyType], ontologyInput.path));
520
+ * const view = $.let(Data.bind(ontologyInput));
465
521
  * return Ontology.Root({ value: view });
466
522
  * })),
467
523
  * );
@@ -515,6 +571,11 @@ export declare const Ontology: {
515
571
  readonly gridColor: OptionType<StringType>;
516
572
  readonly minimapMaskColor: OptionType<StringType>;
517
573
  }>>;
574
+ /** Initial display mode — graph canvas (default) or process table. */
575
+ readonly defaultView: OptionType<VariantType<{
576
+ readonly graph: NullType;
577
+ readonly table: NullType;
578
+ }>>;
518
579
  }>>;
519
580
  readonly Types: {
520
581
  /** Rendered Ontology payload struct (binding + style). */
@@ -558,6 +619,11 @@ export declare const Ontology: {
558
619
  readonly gridColor: OptionType<StringType>;
559
620
  readonly minimapMaskColor: OptionType<StringType>;
560
621
  }>>;
622
+ /** Initial display mode — graph canvas (default) or process table. */
623
+ readonly defaultView: OptionType<VariantType<{
624
+ readonly graph: NullType;
625
+ readonly table: NullType;
626
+ }>>;
561
627
  }>;
562
628
  /** Visual-presentation sub-struct (density, readonly, …). */
563
629
  readonly Style: StructType<{
@@ -578,54 +644,7 @@ export declare const Ontology: {
578
644
  readonly minimapMaskColor: OptionType<StringType>;
579
645
  }>;
580
646
  /** The bound graph value type. */
581
- readonly Ontology: StructType<{
582
- readonly nodes: ArrayType<StructType<{
583
- readonly id: StringType;
584
- readonly name: StringType;
585
- readonly description: OptionType<StringType>;
586
- readonly type: VariantType<{
587
- readonly process: NullType;
588
- readonly resource: NullType;
589
- readonly kpi: NullType;
590
- readonly decision: NullType;
591
- readonly data: NullType;
592
- readonly objective: NullType;
593
- readonly policy: NullType;
594
- readonly document: NullType;
595
- readonly computation: NullType;
596
- readonly group: NullType;
597
- }>;
598
- }>>;
599
- readonly links: ArrayType<StructType<{
600
- readonly id: StringType;
601
- readonly source: StringType;
602
- readonly target: StringType;
603
- readonly type: VariantType<{
604
- readonly uses: NullType;
605
- readonly produces: NullType;
606
- readonly results_in: NullType;
607
- readonly gets_data_from: NullType;
608
- readonly inserts_data_into: NullType;
609
- readonly informs: NullType;
610
- readonly drives: NullType;
611
- readonly constrains: NullType;
612
- readonly defines: NullType;
613
- readonly executes: NullType;
614
- readonly references: NullType;
615
- readonly validates: NullType;
616
- readonly measures: NullType;
617
- readonly simulates: NullType;
618
- readonly contains: NullType;
619
- readonly used_by: NullType;
620
- }>;
621
- }>>;
622
- readonly metadata: OptionType<StructType<{
623
- readonly version: StringType;
624
- readonly created: DateTimeType;
625
- readonly updated: DateTimeType;
626
- readonly description: OptionType<StringType>;
627
- }>>;
628
- }>;
647
+ readonly Ontology: OntologyStructType;
629
648
  /** Node struct. */
630
649
  readonly Node: StructType<{
631
650
  readonly id: StringType;
@@ -636,6 +655,7 @@ export declare const Ontology: {
636
655
  readonly resource: NullType;
637
656
  readonly kpi: NullType;
638
657
  readonly decision: NullType;
658
+ readonly agent: NullType;
639
659
  readonly data: NullType;
640
660
  readonly objective: NullType;
641
661
  readonly policy: NullType;
@@ -674,6 +694,7 @@ export declare const Ontology: {
674
694
  readonly resource: NullType;
675
695
  readonly kpi: NullType;
676
696
  readonly decision: NullType;
697
+ readonly agent: NullType;
677
698
  readonly data: NullType;
678
699
  readonly objective: NullType;
679
700
  readonly policy: NullType;
@@ -707,6 +728,11 @@ export declare const Ontology: {
707
728
  readonly updated: DateTimeType;
708
729
  readonly description: OptionType<StringType>;
709
730
  }>;
731
+ /** Display-mode variant enum (graph | table). */
732
+ readonly View: VariantType<{
733
+ readonly graph: NullType;
734
+ readonly table: NullType;
735
+ }>;
710
736
  };
711
737
  };
712
738
  //# sourceMappingURL=ontology.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ontology.d.ts","sourceRoot":"","sources":["../../src/ontology.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAEH,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,WAAW,EACX,SAAS,EACT,UAAU,EACV,WAAW,EACX,UAAU,EACV,YAAY,EAIZ,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAU,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAElG,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAM7D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;EAWvB,CAAC;AACH,2CAA2C;AAC3C,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;GA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;;;;;;QAyIlE,6DAA6D;;;;;;;;;;;;;;;;;;QAE7D,kCAAkC;;QAElC,mBAAmB;;;;;;;;;;;;;;;;;;;QAEnB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;QAEnB,8BAA8B;;;;;;;;;;;;;;QAE9B,8BAA8B;;;;;;;;;;;;;;;;;;;QAE9B,yCAAyC;;;;;;;QAEzC,iDAAiD;;;;;;CAG/C,CAAC"}
@@ -33,6 +33,8 @@ import { DiffBindingType } from './data.js';
33
33
  * @property resource - A consumable or capacity tracked by the business.
34
34
  * @property kpi - A measurable indicator.
35
35
  * @property decision - A point at which the business chooses among options.
36
+ * @property agent - A person, team, or system role that executes processes
37
+ * and owns decisions (REA's third leg: resources, events, agents).
36
38
  * @property data - A dataset or signal flowing through the business.
37
39
  * @property objective - A strategic goal the business pursues.
38
40
  * @property policy - A rule constraining other elements.
@@ -45,6 +47,7 @@ export const NodeKindType = VariantType({
45
47
  resource: NullType,
46
48
  kpi: NullType,
47
49
  decision: NullType,
50
+ agent: NullType,
48
51
  data: NullType,
49
52
  objective: NullType,
50
53
  policy: NullType,
@@ -141,11 +144,12 @@ export const OntologyMetadataType = StructType({
141
144
  * warnings in the editor.
142
145
  * @property metadata - Optional versioning + provenance metadata.
143
146
  */
144
- export const OntologyType = StructType({
147
+ const OntologyTypeImpl = StructType({
145
148
  nodes: ArrayType(NodeType),
146
149
  links: ArrayType(LinkType),
147
150
  metadata: OptionType(OntologyMetadataType),
148
151
  });
152
+ export const OntologyType = OntologyTypeImpl;
149
153
  // ============================================================================
150
154
  // Sub-types — visual style escape hatches.
151
155
  // ============================================================================
@@ -193,6 +197,20 @@ export const OntologyStyleType = StructType({
193
197
  gridColor: OptionType(StringType),
194
198
  minimapMaskColor: OptionType(StringType),
195
199
  });
200
+ /**
201
+ * The Ontology editor's display mode — the segmented control in the header
202
+ * switches between them. Both are projections of the same bound value and
203
+ * share the staged-buffer + commit machinery.
204
+ *
205
+ * @property graph - The ReactFlow node/link canvas (default).
206
+ * @property table - The process table: rows are `process` nodes grouped by
207
+ * the `objective` they serve and ordered by topological value-chain stage
208
+ * (derived from `uses` / `produces` resource flow).
209
+ */
210
+ export const OntologyViewType = VariantType({
211
+ graph: NullType,
212
+ table: NullType,
213
+ });
196
214
  // ============================================================================
197
215
  // Re-export the binding descriptor — same opaque carrier the Diff card uses.
198
216
  // ============================================================================
@@ -234,6 +252,8 @@ export const OntologyPayloadType = StructType({
234
252
  onCommitted: OptionType(FunctionType([], NullType)),
235
253
  onDiscarded: OptionType(FunctionType([], NullType)),
236
254
  style: OptionType(OntologyStyleType),
255
+ /** Initial display mode — graph canvas (default) or process table. */
256
+ defaultView: OptionType(OntologyViewType),
237
257
  });
238
258
  /**
239
259
  * Internal `EastUI.component` carrier. Renderers register against this in
@@ -276,7 +296,7 @@ export const Ontology = {
276
296
  *
277
297
  * const editor = East.function([], UIComponentType, (_$) =>
278
298
  * Reactive.Root(East.function([], UIComponentType, $ => {
279
- * const view = $.let(Data.bind([OntologyType], ontologyInput.path));
299
+ * const view = $.let(Data.bind(ontologyInput));
280
300
  * return Ontology.Root({ value: view });
281
301
  * })),
282
302
  * );
@@ -289,6 +309,11 @@ export const Ontology = {
289
309
  : typeof options.density === 'string'
290
310
  ? some(East.value(variant(options.density, null), DensityType))
291
311
  : options.density;
312
+ const defaultView = options.defaultView === undefined
313
+ ? none
314
+ : typeof options.defaultView === 'string'
315
+ ? some(East.value(variant(options.defaultView, null), OntologyViewType))
316
+ : options.defaultView;
292
317
  return OntologyComponent.Root({
293
318
  binding: view.binding,
294
319
  readonly: options.readonly ?? none,
@@ -298,6 +323,7 @@ export const Ontology = {
298
323
  onCommitted: options.onCommitted ?? none,
299
324
  onDiscarded: options.onDiscarded ?? none,
300
325
  style: options.style ?? none,
326
+ defaultView,
301
327
  });
302
328
  },
303
329
  /**
@@ -325,6 +351,8 @@ export const Ontology = {
325
351
  LinkKind: LinkKindType,
326
352
  /** Optional ontology metadata struct. */
327
353
  Metadata: OntologyMetadataType,
354
+ /** Display-mode variant enum (graph | table). */
355
+ View: OntologyViewType,
328
356
  },
329
357
  };
330
358
  //# sourceMappingURL=ontology.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ontology.js","sourceRoot":"","sources":["../../src/ontology.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACH,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,WAAW,EACX,SAAS,EACT,UAAU,EACV,WAAW,EACX,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,IAAI,EACJ,OAAO,GAGV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,WAAW,EAA6C,MAAM,kBAAkB,CAAC;AAElG,OAAO,EAAE,eAAe,EAAmB,MAAM,WAAW,CAAC;AAE7D,+EAA+E;AAC/E,kDAAkD;AAClD,+EAA+E;AAE/E;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC;IACpC,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE,QAAQ;IACb,QAAQ,EAAE,QAAQ;IAClB,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,QAAQ;IACnB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,QAAQ;IAClB,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,QAAQ;CAClB,CAAC,CAAC;AAIH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC;IACpC,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;IACxB,iBAAiB,EAAE,QAAQ;IAC3B,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,QAAQ;IACpB,OAAO,EAAE,QAAQ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O,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,gBAAgB,CAAC,CAAC;gBACxE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;QAC9B,OAAO,iBAAiB,CAAC,IAAI,CAAC;YAC1B,OAAO,EAAM,IAAI,CAAC,OAAO;YACzB,QAAQ,EAAK,OAAO,CAAC,QAAQ,IAAO,IAAI;YACxC,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,IAAI;YACxC,UAAU,EAAG,OAAO,CAAC,UAAU,IAAK,IAAI;YACxC,OAAO;YACP,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,IAAI;YACxC,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,IAAI;YACxC,KAAK,EAAQ,OAAO,CAAC,KAAK,IAAU,IAAI;YACxC,WAAW;SACd,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACH,SAAS,EAAE,iBAAiB;IAC5B,KAAK,EAAE;QACH,0DAA0D;QAC1D,OAAO,EAAE,mBAAmB;QAC5B,6DAA6D;QAC7D,KAAK,EAAE,iBAAiB;QACxB,kCAAkC;QAClC,QAAQ,EAAE,YAAY;QACtB,mBAAmB;QACnB,IAAI,EAAE,QAAQ;QACd,mBAAmB;QACnB,IAAI,EAAE,QAAQ;QACd,8BAA8B;QAC9B,QAAQ,EAAE,YAAY;QACtB,8BAA8B;QAC9B,QAAQ,EAAE,YAAY;QACtB,yCAAyC;QACzC,QAAQ,EAAE,oBAAoB;QAC9B,iDAAiD;QACjD,IAAI,EAAE,gBAAgB;KACzB;CACK,CAAC"}
@@ -8,7 +8,7 @@ import { DecisionQueue as DecisionQueueFactory } from "../../decision/queue.js";
8
8
  /**
9
9
  * Decision queue — surfaces an `ArrayType(DecisionType)`-bound dataset as a
10
10
  * prioritised, actionable list (the entry surface for Decide). Pass the
11
- * `Data.bind([ArrayType(Decision.Types.Decision)], …, { patch })` handle as
11
+ * `Data.bind(…, { patch })` handle as
12
12
  * `value`; Apply / Modify write back through the binding (Modify's edit diffs
13
13
  * into the patch overlay).
14
14
  *
@@ -21,11 +21,7 @@ import { DecisionQueue as DecisionQueueFactory } from "../../decision/queue.js";
21
21
  *
22
22
  * const surface = East.function([], UIComponentType, _$ => (
23
23
  * <Reactive>{$ => {
24
- * const view = $.let(Data.bind(
25
- * [ArrayType(Decision.Types.Decision)],
26
- * decisionsTask.output.path,
27
- * { mode: "direct", patch: decisionPatch.path },
28
- * ));
24
+ * const view = $.let(Data.bind(decisionsTask, { mode: "direct", patch: decisionPatch }));
29
25
  * return (
30
26
  * <DecisionQueue
31
27
  * value={view}
@@ -1 +1 @@
1
- {"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../../src/runtime/decision/queue.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sDAAsD;AAEtD,OAAO,EAAc,KAAK,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC,GAAG;IACjF,KAAK,EAAE,OAAO,oBAAoB,CAAC,KAAK,CAAC;CACkD,CAAC"}
1
+ {"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../../src/runtime/decision/queue.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sDAAsD;AAEtD,OAAO,EAAc,KAAK,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC,GAAG;IACjF,KAAK,EAAE,OAAO,oBAAoB,CAAC,KAAK,CAAC;CACkD,CAAC"}
@@ -8,7 +8,7 @@ import { DecisionQueue as DecisionQueueFactory } from "../../decision/queue.js";
8
8
  /**
9
9
  * Decision queue — surfaces an `ArrayType(DecisionType)`-bound dataset as a
10
10
  * prioritised, actionable list (the entry surface for Decide). Pass the
11
- * `Data.bind([ArrayType(Decision.Types.Decision)], …, { patch })` handle as
11
+ * `Data.bind(…, { patch })` handle as
12
12
  * `value`; Apply / Modify write back through the binding (Modify's edit diffs
13
13
  * into the patch overlay).
14
14
  *
@@ -21,11 +21,7 @@ import { DecisionQueue as DecisionQueueFactory } from "../../decision/queue.js";
21
21
  *
22
22
  * const surface = East.function([], UIComponentType, _$ => (
23
23
  * <Reactive>{$ => {
24
- * const view = $.let(Data.bind(
25
- * [ArrayType(Decision.Types.Decision)],
26
- * decisionsTask.output.path,
27
- * { mode: "direct", patch: decisionPatch.path },
28
- * ));
24
+ * const view = $.let(Data.bind(decisionsTask, { mode: "direct", patch: decisionPatch }));
29
25
  * return (
30
26
  * <DecisionQueue
31
27
  * value={view}
@@ -1 +1 @@
1
- {"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../../src/runtime/decision/queue.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sDAAsD;AAEtD,OAAO,EAAE,UAAU,EAAkC,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,MAAM,aAAa,GAEtB,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,oBAAoB,CAAC,KAAK,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../../src/runtime/decision/queue.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sDAAsD;AAEtD,OAAO,EAAE,UAAU,EAAkC,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,CAAC,MAAM,aAAa,GAEtB,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,oBAAoB,CAAC,KAAK,EAAE,CAAC,CAAC"}
@@ -19,7 +19,7 @@ import { Diff as DiffFactory } from "../diff.js";
19
19
  *
20
20
  * const review = East.function([], UIComponentType, _$ => (
21
21
  * <Reactive>{$ => {
22
- * const view = $.let(Data.bind([FloatType], maxHoursInput.path));
22
+ * const view = $.let(Data.bind(maxHoursInput));
23
23
  * return <Diff bindings={[view.binding]} hideUnchanged={some(true)} />;
24
24
  * }}</Reactive>
25
25
  * ));
@@ -19,7 +19,7 @@ import { Diff as DiffFactory } from "../diff.js";
19
19
  *
20
20
  * const review = East.function([], UIComponentType, _$ => (
21
21
  * <Reactive>{$ => {
22
- * const view = $.let(Data.bind([FloatType], maxHoursInput.path));
22
+ * const view = $.let(Data.bind(maxHoursInput));
23
23
  * return <Diff bindings={[view.binding]} hideUnchanged={some(true)} />;
24
24
  * }}</Reactive>
25
25
  * ));
@@ -19,7 +19,7 @@ import { Ontology as OntologyFactory } from "../ontology.js";
19
19
  *
20
20
  * const editor = East.function([], UIComponentType, _$ => (
21
21
  * <Reactive>{$ => {
22
- * const view = $.let(Data.bind([OntologyType], ontologyInput.path));
22
+ * const view = $.let(Data.bind(ontologyInput));
23
23
  * return <Ontology value={view} />;
24
24
  * }}</Reactive>
25
25
  * ));
@@ -19,7 +19,7 @@ import { Ontology as OntologyFactory } from "../ontology.js";
19
19
  *
20
20
  * const editor = East.function([], UIComponentType, _$ => (
21
21
  * <Reactive>{$ => {
22
- * const view = $.let(Data.bind([OntologyType], ontologyInput.path));
22
+ * const view = $.let(Data.bind(ontologyInput));
23
23
  * return <Ontology value={view} />;
24
24
  * }}</Reactive>
25
25
  * ));
package/dist/src/ui.d.ts CHANGED
@@ -39,7 +39,7 @@ import { type EastType, type CallableFunctionExpr, type CallableAsyncFunctionExp
39
39
  * // No compute-time inputs (fn arg list is []), reactive bindings only:
40
40
  * const dashboard = ui('dashboard', [], East.function([], UIComponentType, (_$) =>
41
41
  * Reactive.Root(East.function([], UIComponentType, $ => {
42
- * const t = $.let(Data.bind([FloatType], threshold.path));
42
+ * const t = $.let(Data.bind(threshold));
43
43
  * return Slider.Root($.let(t.read()), { onChange: t.write });
44
44
  * }))
45
45
  * ));
package/dist/src/ui.js CHANGED
@@ -41,7 +41,7 @@ import { deriveManifest } from './derive.js';
41
41
  * // No compute-time inputs (fn arg list is []), reactive bindings only:
42
42
  * const dashboard = ui('dashboard', [], East.function([], UIComponentType, (_$) =>
43
43
  * Reactive.Root(East.function([], UIComponentType, $ => {
44
- * const t = $.let(Data.bind([FloatType], threshold.path));
44
+ * const t = $.let(Data.bind(threshold));
45
45
  * return Slider.Root($.let(t.read()), { onChange: t.write });
46
46
  * }))
47
47
  * ));
@@ -74,7 +74,7 @@ function buildUiTask(name, inputs, fn, options) {
74
74
  return task(name, inputs, fn, {
75
75
  runner: options?.runner ?? { runtime: 'east-c' },
76
76
  kind: 'ui',
77
- metadata: encodeManifest({ paths }),
77
+ metadata: encodeManifest({ paths, functions: derived.functions }),
78
78
  });
79
79
  }
80
80
  //# sourceMappingURL=ui.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui.js","sourceRoot":"","sources":["../../src/ui.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;GAQG;AAEH,OAAO,EAAE,IAAI,EAA8C,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAKN,MAAM,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