@elaraai/e3-ui 1.0.4 → 1.0.6
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/README.md +3 -2
- package/dist/src/data.d.ts +22 -1
- package/dist/src/data.d.ts.map +1 -1
- package/dist/src/data.js.map +1 -1
- package/dist/src/decision/bind.d.ts +4594 -0
- package/dist/src/decision/bind.d.ts.map +1 -0
- package/dist/src/decision/bind.js +156 -0
- package/dist/src/decision/bind.js.map +1 -0
- package/dist/src/decision/index.d.ts +1787 -0
- package/dist/src/decision/index.d.ts.map +1 -0
- package/dist/src/decision/index.js +36 -0
- package/dist/src/decision/index.js.map +1 -0
- package/dist/src/decision/journal.d.ts +405 -0
- package/dist/src/decision/journal.d.ts.map +1 -0
- package/dist/src/decision/journal.js +74 -0
- package/dist/src/decision/journal.js.map +1 -0
- package/dist/src/decision/queue.d.ts +2876 -0
- package/dist/src/decision/queue.d.ts.map +1 -0
- package/dist/src/decision/queue.js +166 -0
- package/dist/src/decision/queue.js.map +1 -0
- package/dist/src/decision/types.d.ts +1338 -0
- package/dist/src/decision/types.d.ts.map +1 -0
- package/dist/src/decision/types.js +389 -0
- package/dist/src/decision/types.js.map +1 -0
- package/dist/src/diff.d.ts +72 -0
- package/dist/src/diff.d.ts.map +1 -1
- package/dist/src/diff.js +6 -0
- package/dist/src/diff.js.map +1 -1
- package/dist/src/index.d.ts +27 -11
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +30 -10
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +28 -0
- package/dist/src/internal.d.ts.map +1 -0
- package/dist/src/internal.js +28 -0
- package/dist/src/internal.js.map +1 -0
- package/dist/src/ontology.d.ts +205 -10
- package/dist/src/ontology.d.ts.map +1 -1
- package/dist/src/ontology.js +23 -4
- package/dist/src/ontology.js.map +1 -1
- package/dist/src/runtime/decision/journal.d.ts +29 -0
- package/dist/src/runtime/decision/journal.d.ts.map +1 -0
- package/dist/src/runtime/decision/journal.js +27 -0
- package/dist/src/runtime/decision/journal.js.map +1 -0
- package/dist/src/runtime/decision/queue.d.ts +47 -0
- package/dist/src/runtime/decision/queue.d.ts.map +1 -0
- package/dist/src/runtime/decision/queue.js +45 -0
- package/dist/src/runtime/decision/queue.js.map +1 -0
- package/dist/src/runtime/diff.d.ts +36 -0
- package/dist/src/runtime/diff.d.ts.map +1 -0
- package/dist/src/runtime/diff.js +34 -0
- package/dist/src/runtime/diff.js.map +1 -0
- package/dist/src/runtime/index.d.ts +15 -0
- package/dist/src/runtime/index.d.ts.map +1 -0
- package/dist/src/runtime/index.js +15 -0
- package/dist/src/runtime/index.js.map +1 -0
- package/dist/src/runtime/ontology.d.ts +36 -0
- package/dist/src/runtime/ontology.d.ts.map +1 -0
- package/dist/src/runtime/ontology.js +34 -0
- package/dist/src/runtime/ontology.js.map +1 -0
- package/dist/src/runtime/runtime.d.ts +7 -0
- package/dist/src/runtime/runtime.d.ts.map +1 -0
- package/dist/src/runtime/runtime.js +7 -0
- package/dist/src/runtime/runtime.js.map +1 -0
- package/dist/src/ui.d.ts +6 -6
- package/dist/src/ui.d.ts.map +1 -1
- package/dist/src/ui.js +9 -1
- package/dist/src/ui.js.map +1 -1
- package/dist/test/{data.examples.d.ts → data/data.examples.d.ts} +1 -0
- package/dist/test/data/data.examples.d.ts.map +1 -0
- package/dist/test/{data.examples.js → data/data.examples.js} +30 -68
- package/dist/test/data/data.examples.js.map +1 -0
- package/dist/test/decision/journal.examples.d.ts +266 -0
- package/dist/test/decision/journal.examples.d.ts.map +1 -0
- package/dist/test/decision/journal.examples.js +107 -0
- package/dist/test/decision/journal.examples.js.map +1 -0
- package/dist/test/decision/loop.examples.d.ts +455 -0
- package/dist/test/decision/loop.examples.d.ts.map +1 -0
- package/dist/test/decision/loop.examples.js +120 -0
- package/dist/test/decision/loop.examples.js.map +1 -0
- package/dist/test/decision/queue.examples.d.ts +269 -0
- package/dist/test/decision/queue.examples.d.ts.map +1 -0
- package/dist/test/decision/queue.examples.js +273 -0
- package/dist/test/decision/queue.examples.js.map +1 -0
- package/dist/test/{diff.examples.d.ts → diff/diff.examples.d.ts} +5 -4
- package/dist/test/diff/diff.examples.d.ts.map +1 -0
- package/dist/test/diff/diff.examples.js +582 -0
- package/dist/test/diff/diff.examples.js.map +1 -0
- package/dist/test/{ontology.examples.d.ts → ontology/ontology.examples.d.ts} +6 -4
- package/dist/test/ontology/ontology.examples.d.ts.map +1 -0
- package/dist/test/{ontology.examples.js → ontology/ontology.examples.js} +37 -57
- package/dist/test/ontology/ontology.examples.js.map +1 -0
- package/package.json +19 -19
- package/dist/test/data.examples.d.ts.map +0 -1
- package/dist/test/data.examples.js.map +0 -1
- package/dist/test/diff.examples.d.ts.map +0 -1
- package/dist/test/diff.examples.js +0 -964
- package/dist/test/diff.examples.js.map +0 -1
- package/dist/test/ontology.examples.d.ts.map +0 -1
- package/dist/test/ontology.examples.js.map +0 -1
package/dist/src/index.js
CHANGED
|
@@ -3,23 +3,43 @@
|
|
|
3
3
|
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @elaraai/e3-ui — e3 + UI bridge
|
|
6
|
+
* @elaraai/e3-ui — e3 + UI bridge.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* The public surface is the e3-specific JSX **tags** plus the platform
|
|
9
|
+
* helpers:
|
|
10
|
+
* - `<Diff>` — review pending changes for any combination of bindings.
|
|
11
|
+
* - `<Ontology>` — graph editor over an `OntologyType`-bound dataset.
|
|
9
12
|
* - `Data.bind` — workspace-scoped reactive dataset binding.
|
|
10
|
-
* - `
|
|
11
|
-
* - `Ontology` — graph editor over an `OntologyType`-bound dataset.
|
|
12
|
-
* - `DataManifestType` — manifest type for reads/writes metadata.
|
|
13
|
+
* - `ui()` — declare a first-class UI task.
|
|
13
14
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* east-ui tags (`<VStack>`, `<Text>`, …) are imported from `@elaraai/east-ui`
|
|
16
|
+
* — this package does not re-export them. The underlying factories
|
|
17
|
+
* (`Diff.Root(…)`) live under `@elaraai/e3-ui/internal` for renderers and tests.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* `ui()` pulls in `@elaraai/e3` (Node-only). Browser bundles that only need
|
|
21
|
+
* `Data` / `<Diff>` / `<Ontology>` / types should import from
|
|
22
|
+
* `@elaraai/e3-ui/internal`, which is e3-free.
|
|
17
23
|
*
|
|
18
24
|
* @packageDocumentation
|
|
19
25
|
*/
|
|
20
26
|
export { Data, DataBindModeType, DiffBindingType, DataBindHandleType, bindPlatformFn, } from './data.js';
|
|
21
27
|
export { DataManifestType, encodeManifest, decodeManifest } from './manifest.js';
|
|
22
28
|
export { deriveManifest } from './derive.js';
|
|
23
|
-
export {
|
|
24
|
-
|
|
29
|
+
export { ui } from './ui.js';
|
|
30
|
+
// e3 `<Diff>` tag + its types
|
|
31
|
+
export { Diff } from './runtime/diff.js';
|
|
32
|
+
export { DiffPayloadType, DiffStyleType, } from './diff.js';
|
|
33
|
+
// e3 `<Ontology>` tag + its types
|
|
34
|
+
export { Ontology } from './runtime/ontology.js';
|
|
35
|
+
export { OntologyPayloadType, OntologyStyleType, NodeKindType, LinkKindType, NodeType, LinkType, OntologyMetadataType, OntologyType, } from './ontology.js';
|
|
36
|
+
// Decision platform types + factory
|
|
37
|
+
export { Decision } from './decision/index.js';
|
|
38
|
+
export { DecisionType, DecisionOptionType, UrgencyType, StakesLevelType, EvidenceType, AnswerType, VerdictType, ReferenceType, JudgementInputType, DecisionConstraintType, PromptType, LeverType, judgementInputType, } from './decision/types.js';
|
|
39
|
+
export { decisionBind, decisionBindPlatformFn, DecisionHandleType, DecisionHandleRefType, CommitStateType, JudgementsType, } from './decision/bind.js';
|
|
40
|
+
// e3 `<DecisionQueue>` tag (+ author-facing options type)
|
|
41
|
+
export { DecisionQueue } from './runtime/decision/queue.js';
|
|
42
|
+
export {} from './decision/queue.js';
|
|
43
|
+
export { DecisionJournal } from './runtime/decision/journal.js';
|
|
44
|
+
export {} from './decision/journal.js';
|
|
25
45
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EACH,IAAI,EACJ,gBAAgB,EAEhB,eAAe,EAEf,kBAAkB,EAElB,cAAc,GACjB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,gBAAgB,EAAqB,cAAc,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAE7B,8BAA8B;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACH,eAAe,EACf,aAAa,GAEhB,MAAM,WAAW,CAAC;AAEnB,kCAAkC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EACH,mBAAmB,EACnB,iBAAiB,EAEjB,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACpB,YAAY,GACf,MAAM,eAAe,CAAC;AAEvB,oCAAoC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EACH,YAAY,EACZ,kBAAkB,EAClB,WAAW,EAEX,eAAe,EAEf,YAAY,EACZ,UAAU,EAEV,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,sBAAsB,EACtB,UAAU,EACV,SAAS,EACT,kBAAkB,GAQrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,YAAY,EACZ,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,cAAc,GAGjB,MAAM,oBAAoB,CAAC;AAC5B,0DAA0D;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAA6B,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAA+B,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Internal exports — the `Diff` / `Ontology` **factories** (`Diff.Root(…)`,
|
|
7
|
+
* `Diff.Component`) plus `Data`, manifest helpers and types.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* The public `@elaraai/e3-ui` entry exports JSX **tags** (and `ui()`, which
|
|
11
|
+
* pulls in Node-only `@elaraai/e3`). This entry is e3-free and is what the
|
|
12
|
+
* renderer (`e3-ui-components`) and the in-repo specs import — they build /
|
|
13
|
+
* inspect IR directly via the factories and the `*.Component` carriers.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
export { Data, DataBindModeType, type DataBindModeLiteral, DiffBindingType, type BoundValue, DataBindHandleType, type DataBindOptions, bindPlatformFn, } from './data.js';
|
|
19
|
+
export { DataManifestType, type DataManifest, encodeManifest, decodeManifest } from './manifest.js';
|
|
20
|
+
export { deriveManifest } from './derive.js';
|
|
21
|
+
export { Diff, DiffComponent, DiffPayloadType, DiffStyleType, type DiffOptions, } from './diff.js';
|
|
22
|
+
export { Ontology, OntologyComponent, OntologyPayloadType, OntologyStyleType, type OntologyOptions, NodeKindType, LinkKindType, NodeType, LinkType, OntologyMetadataType, OntologyType, } from './ontology.js';
|
|
23
|
+
export { Decision } from './decision/index.js';
|
|
24
|
+
export { DecisionType, DecisionOptionType, UrgencyType, type UrgencyLiteral, StakesLevelType, type StakesLevelLiteral, EvidenceType, AnswerType, type AnswerLiteral, VerdictType, ReferenceType, JudgementInputType, DecisionConstraintType, PromptType, LeverType, judgementInputType, type PromptInput, type LeverInput, type DecisionInput, type DecisionOptionInput, type EvidenceInput, type DecisionReferenceInput, type DecisionJudgementInput, } from './decision/types.js';
|
|
25
|
+
export { decisionBind, decisionBindPlatformFn, DecisionHandleType, DecisionHandleRefType, CommitStateType, JudgementsType, type DecisionHandle, type DecisionBindOptions, } from './decision/bind.js';
|
|
26
|
+
export { DecisionQueue, DecisionQueueComponent, DecisionQueuePayloadType, DecisionUpdateType, type DecisionQueueOptions, } from './decision/queue.js';
|
|
27
|
+
export { DecisionJournal, DecisionJournalComponent, DecisionJournalPayloadType, type DecisionJournalOptions, } from './decision/journal.js';
|
|
28
|
+
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../src/internal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;GAYG;AAEH,OAAO,EACH,IAAI,EACJ,gBAAgB,EAChB,KAAK,mBAAmB,EACxB,eAAe,EACf,KAAK,UAAU,EACf,kBAAkB,EAClB,KAAK,eAAe,EACpB,cAAc,GACjB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,gBAAgB,EAAE,KAAK,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EACH,IAAI,EACJ,aAAa,EACb,eAAe,EACf,aAAa,EACb,KAAK,WAAW,GACnB,MAAM,WAAW,CAAC;AACnB,OAAO,EACH,QAAQ,EACR,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,KAAK,eAAe,EACpB,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACpB,YAAY,GACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EACH,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,KAAK,cAAc,EACnB,eAAe,EACf,KAAK,kBAAkB,EACvB,YAAY,EACZ,UAAU,EACV,KAAK,aAAa,EAClB,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,sBAAsB,EACtB,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,YAAY,EACZ,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,KAAK,cAAc,EACnB,KAAK,mBAAmB,GAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACH,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,KAAK,oBAAoB,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,eAAe,EACf,wBAAwB,EACxB,0BAA0B,EAC1B,KAAK,sBAAsB,GAC9B,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Internal exports — the `Diff` / `Ontology` **factories** (`Diff.Root(…)`,
|
|
7
|
+
* `Diff.Component`) plus `Data`, manifest helpers and types.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* The public `@elaraai/e3-ui` entry exports JSX **tags** (and `ui()`, which
|
|
11
|
+
* pulls in Node-only `@elaraai/e3`). This entry is e3-free and is what the
|
|
12
|
+
* renderer (`e3-ui-components`) and the in-repo specs import — they build /
|
|
13
|
+
* inspect IR directly via the factories and the `*.Component` carriers.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
export { Data, DataBindModeType, DiffBindingType, DataBindHandleType, bindPlatformFn, } from './data.js';
|
|
19
|
+
export { DataManifestType, encodeManifest, decodeManifest } from './manifest.js';
|
|
20
|
+
export { deriveManifest } from './derive.js';
|
|
21
|
+
export { Diff, DiffComponent, DiffPayloadType, DiffStyleType, } from './diff.js';
|
|
22
|
+
export { Ontology, OntologyComponent, OntologyPayloadType, OntologyStyleType, NodeKindType, LinkKindType, NodeType, LinkType, OntologyMetadataType, OntologyType, } from './ontology.js';
|
|
23
|
+
export { Decision } from './decision/index.js';
|
|
24
|
+
export { DecisionType, DecisionOptionType, UrgencyType, StakesLevelType, EvidenceType, AnswerType, VerdictType, ReferenceType, JudgementInputType, DecisionConstraintType, PromptType, LeverType, judgementInputType, } from './decision/types.js';
|
|
25
|
+
export { decisionBind, decisionBindPlatformFn, DecisionHandleType, DecisionHandleRefType, CommitStateType, JudgementsType, } from './decision/bind.js';
|
|
26
|
+
export { DecisionQueue, DecisionQueueComponent, DecisionQueuePayloadType, DecisionUpdateType, } from './decision/queue.js';
|
|
27
|
+
export { DecisionJournal, DecisionJournalComponent, DecisionJournalPayloadType, } from './decision/journal.js';
|
|
28
|
+
//# sourceMappingURL=internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../src/internal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;GAYG;AAEH,OAAO,EACH,IAAI,EACJ,gBAAgB,EAEhB,eAAe,EAEf,kBAAkB,EAElB,cAAc,GACjB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,gBAAgB,EAAqB,cAAc,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EACH,IAAI,EACJ,aAAa,EACb,eAAe,EACf,aAAa,GAEhB,MAAM,WAAW,CAAC;AACnB,OAAO,EACH,QAAQ,EACR,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EAEjB,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACpB,YAAY,GACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EACH,YAAY,EACZ,kBAAkB,EAClB,WAAW,EAEX,eAAe,EAEf,YAAY,EACZ,UAAU,EAEV,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,sBAAsB,EACtB,UAAU,EACV,SAAS,EACT,kBAAkB,GAQrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,YAAY,EACZ,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,cAAc,GAGjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACH,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,GAErB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,eAAe,EACf,wBAAwB,EACxB,0BAA0B,GAE7B,MAAM,uBAAuB,CAAC"}
|
package/dist/src/ontology.d.ts
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*/
|
|
23
23
|
import { NullType, StringType, DateTimeType, BooleanType, ArrayType, StructType, VariantType, OptionType, FunctionType, type ExprType, type SubtypeExprOrValue } from '@elaraai/east';
|
|
24
24
|
import { DensityType, type DensityLiteral, type UIComponentType } from '@elaraai/east-ui';
|
|
25
|
-
import {
|
|
25
|
+
import { type BoundValue } from './data.js';
|
|
26
26
|
/**
|
|
27
27
|
* Discriminator for the kind of business element a node represents.
|
|
28
28
|
*
|
|
@@ -391,10 +391,10 @@ export declare const OntologyComponent: import("@elaraai/east-ui").UIComponentDe
|
|
|
391
391
|
/**
|
|
392
392
|
* Options for {@link Ontology.Root}.
|
|
393
393
|
*
|
|
394
|
-
* @property
|
|
395
|
-
* {@link Data.bind} handle whose source dataset is typed as
|
|
396
|
-
* {@link OntologyType}
|
|
397
|
-
*
|
|
394
|
+
* @property value - The bound dataset to surface. Pass the
|
|
395
|
+
* {@link Data.bind} handle (`value={view}`) whose source dataset is typed as
|
|
396
|
+
* {@link OntologyType}. The handle's East type carries the source type, so a
|
|
397
|
+
* handle bound to any non-`OntologyType` dataset is a compile error here.
|
|
398
398
|
* @property readonly - Render without mutation surfaces. The footer
|
|
399
399
|
* commit-bar and property drawer still render. Defaults to false.
|
|
400
400
|
* @property hideMiniMap - Suppress the minimap overlay. Defaults to false.
|
|
@@ -407,8 +407,11 @@ export declare const OntologyComponent: import("@elaraai/east-ui").UIComponentDe
|
|
|
407
407
|
* {@link OntologyStyleType}.
|
|
408
408
|
*/
|
|
409
409
|
export interface OntologyOptions {
|
|
410
|
-
/**
|
|
411
|
-
|
|
410
|
+
/** The bound dataset to surface — pass the `Data.bind([OntologyType], …)`
|
|
411
|
+
* handle itself (e.g. `value={view}`). Its East type carries the source
|
|
412
|
+
* type, so a handle bound to any non-`OntologyType` dataset is a compile
|
|
413
|
+
* error here. */
|
|
414
|
+
value: BoundValue<OntologyType>;
|
|
412
415
|
/** Render without mutation surfaces. Defaults to false. */
|
|
413
416
|
readonly?: SubtypeExprOrValue<OptionType<BooleanType>>;
|
|
414
417
|
/** Suppress the minimap overlay. Defaults to false. */
|
|
@@ -430,7 +433,7 @@ export interface OntologyOptions {
|
|
|
430
433
|
* commit pipeline that powers {@link Diff}.
|
|
431
434
|
*
|
|
432
435
|
* @remarks
|
|
433
|
-
* Use `Ontology.Root({
|
|
436
|
+
* Use `Ontology.Root({ value: view })` to render the editor.
|
|
434
437
|
* The `Component` property is the internal {@link EastUI.component}
|
|
435
438
|
* carrier that renderers register against — most callers shouldn't need
|
|
436
439
|
* it.
|
|
@@ -440,7 +443,7 @@ export declare const Ontology: {
|
|
|
440
443
|
* Build an Ontology editor. Renders the bound graph as a ReactFlow
|
|
441
444
|
* canvas with node/link mutation surfaces wired through the binding.
|
|
442
445
|
*
|
|
443
|
-
* @param options - {@link OntologyOptions}. Only `
|
|
446
|
+
* @param options - {@link OntologyOptions}. Only `value` is required;
|
|
444
447
|
* the rest default to absent / interactive.
|
|
445
448
|
* @returns An East expression of {@link UIComponentType} representing
|
|
446
449
|
* the Ontology editor.
|
|
@@ -459,7 +462,7 @@ export declare const Ontology: {
|
|
|
459
462
|
* const editor = East.function([], UIComponentType, (_$) =>
|
|
460
463
|
* Reactive.Root(East.function([], UIComponentType, $ => {
|
|
461
464
|
* const view = $.let(Data.bind([OntologyType], ontologyInput.path));
|
|
462
|
-
* return Ontology.Root({
|
|
465
|
+
* return Ontology.Root({ value: view });
|
|
463
466
|
* })),
|
|
464
467
|
* );
|
|
465
468
|
* ```
|
|
@@ -513,5 +516,197 @@ export declare const Ontology: {
|
|
|
513
516
|
readonly minimapMaskColor: OptionType<StringType>;
|
|
514
517
|
}>>;
|
|
515
518
|
}>>;
|
|
519
|
+
readonly Types: {
|
|
520
|
+
/** Rendered Ontology payload struct (binding + style). */
|
|
521
|
+
readonly Payload: StructType<{
|
|
522
|
+
readonly binding: StructType<{
|
|
523
|
+
readonly source: ArrayType<VariantType<{
|
|
524
|
+
readonly field: StringType;
|
|
525
|
+
}>>;
|
|
526
|
+
readonly patch: OptionType<ArrayType<VariantType<{
|
|
527
|
+
readonly field: StringType;
|
|
528
|
+
}>>>;
|
|
529
|
+
readonly mode: VariantType<{
|
|
530
|
+
readonly staged: NullType;
|
|
531
|
+
readonly direct: NullType;
|
|
532
|
+
}>;
|
|
533
|
+
}>;
|
|
534
|
+
readonly readonly: OptionType<BooleanType>;
|
|
535
|
+
readonly hideMiniMap: OptionType<BooleanType>;
|
|
536
|
+
readonly hideSearch: OptionType<BooleanType>;
|
|
537
|
+
readonly density: OptionType<VariantType<{
|
|
538
|
+
readonly comfortable: NullType;
|
|
539
|
+
readonly compact: NullType;
|
|
540
|
+
readonly condensed: NullType;
|
|
541
|
+
}>>;
|
|
542
|
+
readonly onCommitted: OptionType<FunctionType<[], NullType>>;
|
|
543
|
+
readonly onDiscarded: OptionType<FunctionType<[], NullType>>;
|
|
544
|
+
readonly style: OptionType<StructType<{
|
|
545
|
+
readonly nodeBackground: OptionType<StringType>;
|
|
546
|
+
readonly nodeBorderColor: OptionType<StringType>;
|
|
547
|
+
readonly nodeSelectedBackground: OptionType<StringType>;
|
|
548
|
+
readonly nodeSelectedBorderColor: OptionType<StringType>;
|
|
549
|
+
readonly nodeAccentColor: OptionType<StringType>;
|
|
550
|
+
readonly edgeColor: OptionType<StringType>;
|
|
551
|
+
readonly edgeEmphasizedColor: OptionType<StringType>;
|
|
552
|
+
readonly labelBackground: OptionType<StringType>;
|
|
553
|
+
readonly labelBorderColor: OptionType<StringType>;
|
|
554
|
+
readonly panelBackground: OptionType<StringType>;
|
|
555
|
+
readonly panelBorderColor: OptionType<StringType>;
|
|
556
|
+
readonly headerBackground: OptionType<StringType>;
|
|
557
|
+
readonly footerBackground: OptionType<StringType>;
|
|
558
|
+
readonly gridColor: OptionType<StringType>;
|
|
559
|
+
readonly minimapMaskColor: OptionType<StringType>;
|
|
560
|
+
}>>;
|
|
561
|
+
}>;
|
|
562
|
+
/** Visual-presentation sub-struct (density, readonly, …). */
|
|
563
|
+
readonly Style: StructType<{
|
|
564
|
+
readonly nodeBackground: OptionType<StringType>;
|
|
565
|
+
readonly nodeBorderColor: OptionType<StringType>;
|
|
566
|
+
readonly nodeSelectedBackground: OptionType<StringType>;
|
|
567
|
+
readonly nodeSelectedBorderColor: OptionType<StringType>;
|
|
568
|
+
readonly nodeAccentColor: OptionType<StringType>;
|
|
569
|
+
readonly edgeColor: OptionType<StringType>;
|
|
570
|
+
readonly edgeEmphasizedColor: OptionType<StringType>;
|
|
571
|
+
readonly labelBackground: OptionType<StringType>;
|
|
572
|
+
readonly labelBorderColor: OptionType<StringType>;
|
|
573
|
+
readonly panelBackground: OptionType<StringType>;
|
|
574
|
+
readonly panelBorderColor: OptionType<StringType>;
|
|
575
|
+
readonly headerBackground: OptionType<StringType>;
|
|
576
|
+
readonly footerBackground: OptionType<StringType>;
|
|
577
|
+
readonly gridColor: OptionType<StringType>;
|
|
578
|
+
readonly minimapMaskColor: OptionType<StringType>;
|
|
579
|
+
}>;
|
|
580
|
+
/** 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
|
+
}>;
|
|
629
|
+
/** Node struct. */
|
|
630
|
+
readonly Node: StructType<{
|
|
631
|
+
readonly id: StringType;
|
|
632
|
+
readonly name: StringType;
|
|
633
|
+
readonly description: OptionType<StringType>;
|
|
634
|
+
readonly type: VariantType<{
|
|
635
|
+
readonly process: NullType;
|
|
636
|
+
readonly resource: NullType;
|
|
637
|
+
readonly kpi: NullType;
|
|
638
|
+
readonly decision: NullType;
|
|
639
|
+
readonly data: NullType;
|
|
640
|
+
readonly objective: NullType;
|
|
641
|
+
readonly policy: NullType;
|
|
642
|
+
readonly document: NullType;
|
|
643
|
+
readonly computation: NullType;
|
|
644
|
+
readonly group: NullType;
|
|
645
|
+
}>;
|
|
646
|
+
}>;
|
|
647
|
+
/** Link struct. */
|
|
648
|
+
readonly Link: StructType<{
|
|
649
|
+
readonly id: StringType;
|
|
650
|
+
readonly source: StringType;
|
|
651
|
+
readonly target: StringType;
|
|
652
|
+
readonly type: VariantType<{
|
|
653
|
+
readonly uses: NullType;
|
|
654
|
+
readonly produces: NullType;
|
|
655
|
+
readonly results_in: NullType;
|
|
656
|
+
readonly gets_data_from: NullType;
|
|
657
|
+
readonly inserts_data_into: NullType;
|
|
658
|
+
readonly informs: NullType;
|
|
659
|
+
readonly drives: NullType;
|
|
660
|
+
readonly constrains: NullType;
|
|
661
|
+
readonly defines: NullType;
|
|
662
|
+
readonly executes: NullType;
|
|
663
|
+
readonly references: NullType;
|
|
664
|
+
readonly validates: NullType;
|
|
665
|
+
readonly measures: NullType;
|
|
666
|
+
readonly simulates: NullType;
|
|
667
|
+
readonly contains: NullType;
|
|
668
|
+
readonly used_by: NullType;
|
|
669
|
+
}>;
|
|
670
|
+
}>;
|
|
671
|
+
/** Node-kind variant enum. */
|
|
672
|
+
readonly NodeKind: VariantType<{
|
|
673
|
+
readonly process: NullType;
|
|
674
|
+
readonly resource: NullType;
|
|
675
|
+
readonly kpi: NullType;
|
|
676
|
+
readonly decision: NullType;
|
|
677
|
+
readonly data: NullType;
|
|
678
|
+
readonly objective: NullType;
|
|
679
|
+
readonly policy: NullType;
|
|
680
|
+
readonly document: NullType;
|
|
681
|
+
readonly computation: NullType;
|
|
682
|
+
readonly group: NullType;
|
|
683
|
+
}>;
|
|
684
|
+
/** Link-kind variant enum. */
|
|
685
|
+
readonly LinkKind: VariantType<{
|
|
686
|
+
readonly uses: NullType;
|
|
687
|
+
readonly produces: NullType;
|
|
688
|
+
readonly results_in: NullType;
|
|
689
|
+
readonly gets_data_from: NullType;
|
|
690
|
+
readonly inserts_data_into: NullType;
|
|
691
|
+
readonly informs: NullType;
|
|
692
|
+
readonly drives: NullType;
|
|
693
|
+
readonly constrains: NullType;
|
|
694
|
+
readonly defines: NullType;
|
|
695
|
+
readonly executes: NullType;
|
|
696
|
+
readonly references: NullType;
|
|
697
|
+
readonly validates: NullType;
|
|
698
|
+
readonly measures: NullType;
|
|
699
|
+
readonly simulates: NullType;
|
|
700
|
+
readonly contains: NullType;
|
|
701
|
+
readonly used_by: NullType;
|
|
702
|
+
}>;
|
|
703
|
+
/** Optional ontology metadata struct. */
|
|
704
|
+
readonly Metadata: StructType<{
|
|
705
|
+
readonly version: StringType;
|
|
706
|
+
readonly created: DateTimeType;
|
|
707
|
+
readonly updated: DateTimeType;
|
|
708
|
+
readonly description: OptionType<StringType>;
|
|
709
|
+
}>;
|
|
710
|
+
};
|
|
516
711
|
};
|
|
517
712
|
//# 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,
|
|
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;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;EAiBvB,CAAC;AACH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;;;;QAEnB,8BAA8B;;;;;;;;;;;;;QAE9B,8BAA8B;;;;;;;;;;;;;;;;;;;QAE9B,yCAAyC;;;;;;;;CAGvC,CAAC"}
|
package/dist/src/ontology.js
CHANGED
|
@@ -248,7 +248,7 @@ export const OntologyComponent = EastUI.component('Ontology', OntologyPayloadTyp
|
|
|
248
248
|
* commit pipeline that powers {@link Diff}.
|
|
249
249
|
*
|
|
250
250
|
* @remarks
|
|
251
|
-
* Use `Ontology.Root({
|
|
251
|
+
* Use `Ontology.Root({ value: view })` to render the editor.
|
|
252
252
|
* The `Component` property is the internal {@link EastUI.component}
|
|
253
253
|
* carrier that renderers register against — most callers shouldn't need
|
|
254
254
|
* it.
|
|
@@ -258,7 +258,7 @@ export const Ontology = {
|
|
|
258
258
|
* Build an Ontology editor. Renders the bound graph as a ReactFlow
|
|
259
259
|
* canvas with node/link mutation surfaces wired through the binding.
|
|
260
260
|
*
|
|
261
|
-
* @param options - {@link OntologyOptions}. Only `
|
|
261
|
+
* @param options - {@link OntologyOptions}. Only `value` is required;
|
|
262
262
|
* the rest default to absent / interactive.
|
|
263
263
|
* @returns An East expression of {@link UIComponentType} representing
|
|
264
264
|
* the Ontology editor.
|
|
@@ -277,19 +277,20 @@ export const Ontology = {
|
|
|
277
277
|
* const editor = East.function([], UIComponentType, (_$) =>
|
|
278
278
|
* Reactive.Root(East.function([], UIComponentType, $ => {
|
|
279
279
|
* const view = $.let(Data.bind([OntologyType], ontologyInput.path));
|
|
280
|
-
* return Ontology.Root({
|
|
280
|
+
* return Ontology.Root({ value: view });
|
|
281
281
|
* })),
|
|
282
282
|
* );
|
|
283
283
|
* ```
|
|
284
284
|
*/
|
|
285
285
|
Root(options) {
|
|
286
|
+
const view = options.value;
|
|
286
287
|
const density = options.density === undefined
|
|
287
288
|
? none
|
|
288
289
|
: typeof options.density === 'string'
|
|
289
290
|
? some(East.value(variant(options.density, null), DensityType))
|
|
290
291
|
: options.density;
|
|
291
292
|
return OntologyComponent.Root({
|
|
292
|
-
binding:
|
|
293
|
+
binding: view.binding,
|
|
293
294
|
readonly: options.readonly ?? none,
|
|
294
295
|
hideMiniMap: options.hideMiniMap ?? none,
|
|
295
296
|
hideSearch: options.hideSearch ?? none,
|
|
@@ -307,5 +308,23 @@ export const Ontology = {
|
|
|
307
308
|
* factory) and never touch this directly.
|
|
308
309
|
*/
|
|
309
310
|
Component: OntologyComponent,
|
|
311
|
+
Types: {
|
|
312
|
+
/** Rendered Ontology payload struct (binding + style). */
|
|
313
|
+
Payload: OntologyPayloadType,
|
|
314
|
+
/** Visual-presentation sub-struct (density, readonly, …). */
|
|
315
|
+
Style: OntologyStyleType,
|
|
316
|
+
/** The bound graph value type. */
|
|
317
|
+
Ontology: OntologyType,
|
|
318
|
+
/** Node struct. */
|
|
319
|
+
Node: NodeType,
|
|
320
|
+
/** Link struct. */
|
|
321
|
+
Link: LinkType,
|
|
322
|
+
/** Node-kind variant enum. */
|
|
323
|
+
NodeKind: NodeKindType,
|
|
324
|
+
/** Link-kind variant enum. */
|
|
325
|
+
LinkKind: LinkKindType,
|
|
326
|
+
/** Optional ontology metadata struct. */
|
|
327
|
+
Metadata: OntologyMetadataType,
|
|
328
|
+
},
|
|
310
329
|
};
|
|
311
330
|
//# sourceMappingURL=ontology.js.map
|
package/dist/src/ontology.js.map
CHANGED
|
@@ -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,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AC9B,QAAQ,EAAE,YAAY;QACtB,8BAA8B;QAC9B,QAAQ,EAAE,YAAY;QACtB,yCAAyC;QACzC,QAAQ,EAAE,oBAAoB;KACjC;CACK,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/** `<DecisionJournal>` tag — see the export's JSDoc. */
|
|
6
|
+
import { type OptionsProps, type JsxTag } from "@elaraai/east-ui";
|
|
7
|
+
import { DecisionJournal as DecisionJournalFactory } from "../../decision/journal.js";
|
|
8
|
+
/**
|
|
9
|
+
* The resolved-cases read-back — the Decide↔Trust seam. Pass the same
|
|
10
|
+
* `Decision.bind` handle the queue consumes: as cases resolve they leave
|
|
11
|
+
* the queue and appear here, newest first, each entry showing how the case
|
|
12
|
+
* left (accepted / rejected / deferred / handoff), when, the operator's
|
|
13
|
+
* captured knowledge, and any injected constraints.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* // .tsx with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
18
|
+
* <DecisionJournal handle={handle} heading="Decision journal" />
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Carries `DecisionJournal.Types`. Desugars to `DecisionJournal.Root(options)`.
|
|
23
|
+
* The renderer registers against `DecisionJournal.Component` (from
|
|
24
|
+
* `@elaraai/e3-ui/internal`).
|
|
25
|
+
*/
|
|
26
|
+
export declare const DecisionJournal: JsxTag<OptionsProps<typeof DecisionJournalFactory.Root>> & {
|
|
27
|
+
Types: typeof DecisionJournalFactory.Types;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=journal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"journal.d.ts","sourceRoot":"","sources":["../../../../src/runtime/decision/journal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,wDAAwD;AAExD,OAAO,EAAc,KAAK,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,eAAe,IAAI,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEtF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,YAAY,CAAC,OAAO,sBAAsB,CAAC,IAAI,CAAC,CAAC,GAAG;IACrF,KAAK,EAAE,OAAO,sBAAsB,CAAC,KAAK,CAAC;CACoD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/** `<DecisionJournal>` tag — see the export's JSDoc. */
|
|
6
|
+
import { optionsTag } from "@elaraai/east-ui";
|
|
7
|
+
import { DecisionJournal as DecisionJournalFactory } from "../../decision/journal.js";
|
|
8
|
+
/**
|
|
9
|
+
* The resolved-cases read-back — the Decide↔Trust seam. Pass the same
|
|
10
|
+
* `Decision.bind` handle the queue consumes: as cases resolve they leave
|
|
11
|
+
* the queue and appear here, newest first, each entry showing how the case
|
|
12
|
+
* left (accepted / rejected / deferred / handoff), when, the operator's
|
|
13
|
+
* captured knowledge, and any injected constraints.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* // .tsx with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
18
|
+
* <DecisionJournal handle={handle} heading="Decision journal" />
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Carries `DecisionJournal.Types`. Desugars to `DecisionJournal.Root(options)`.
|
|
23
|
+
* The renderer registers against `DecisionJournal.Component` (from
|
|
24
|
+
* `@elaraai/e3-ui/internal`).
|
|
25
|
+
*/
|
|
26
|
+
export const DecisionJournal = Object.assign(optionsTag(DecisionJournalFactory.Root), { Types: DecisionJournalFactory.Types });
|
|
27
|
+
//# sourceMappingURL=journal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"journal.js","sourceRoot":"","sources":["../../../../src/runtime/decision/journal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,wDAAwD;AAExD,OAAO,EAAE,UAAU,EAAkC,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,eAAe,IAAI,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEtF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,eAAe,GAExB,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,sBAAsB,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,sBAAsB,CAAC,KAAK,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/** `<DecisionQueue>` tag — see the export's JSDoc. */
|
|
6
|
+
import { type OptionsProps, type JsxTag } from "@elaraai/east-ui";
|
|
7
|
+
import { DecisionQueue as DecisionQueueFactory } from "../../decision/queue.js";
|
|
8
|
+
/**
|
|
9
|
+
* Decision queue — surfaces an `ArrayType(DecisionType)`-bound dataset as a
|
|
10
|
+
* prioritised, actionable list (the entry surface for Decide). Pass the
|
|
11
|
+
* `Data.bind([ArrayType(Decision.Types.Decision)], …, { patch })` handle as
|
|
12
|
+
* `value`; Apply / Modify write back through the binding (Modify's edit diffs
|
|
13
|
+
* into the patch overlay).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* // .tsx with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
18
|
+
* import { East, ArrayType } from "@elaraai/east";
|
|
19
|
+
* import { Reactive, Text, UIComponentType } from "@elaraai/east-ui";
|
|
20
|
+
* import { Data, Decision, DecisionQueue } from "@elaraai/e3-ui";
|
|
21
|
+
*
|
|
22
|
+
* const surface = East.function([], UIComponentType, _$ => (
|
|
23
|
+
* <Reactive>{$ => {
|
|
24
|
+
* const view = $.let(Data.bind(
|
|
25
|
+
* [ArrayType(Decision.Types.Decision)],
|
|
26
|
+
* decisionsTask.output.path,
|
|
27
|
+
* { mode: "direct", patch: decisionPatch.path },
|
|
28
|
+
* ));
|
|
29
|
+
* return (
|
|
30
|
+
* <DecisionQueue
|
|
31
|
+
* value={view}
|
|
32
|
+
* modify={(decision, update) => <Text>{decision.title}</Text>}
|
|
33
|
+
* />
|
|
34
|
+
* );
|
|
35
|
+
* }}</Reactive>
|
|
36
|
+
* ));
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* Carries `DecisionQueue.Types`. Desugars to `DecisionQueue.Root(options)`. The
|
|
41
|
+
* renderer registers against `DecisionQueue.Component` (from
|
|
42
|
+
* `@elaraai/e3-ui/internal`).
|
|
43
|
+
*/
|
|
44
|
+
export declare const DecisionQueue: JsxTag<OptionsProps<typeof DecisionQueueFactory.Root>> & {
|
|
45
|
+
Types: typeof DecisionQueueFactory.Types;
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=queue.d.ts.map
|
|
@@ -0,0 +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"}
|