@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
|
@@ -0,0 +1,455 @@
|
|
|
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
|
+
/** @jsxImportSource @elaraai/east-ui */
|
|
6
|
+
/**
|
|
7
|
+
* The decision loop, end to end — decisions from MULTIPLE reasoning tasks
|
|
8
|
+
* union into one queue through a single `Decision.bind` handle; resolved
|
|
9
|
+
* cases land in the journal beneath. Rows expand in place (selection is the
|
|
10
|
+
* expanded row); the Judgement facet gates Apply; Apply / Reject resolve
|
|
11
|
+
* through the handle: the verdict lands in the staged judgements dict
|
|
12
|
+
* (visible in the journal), the case leaves the bound queue, and the loop
|
|
13
|
+
* closes back to Triage.
|
|
14
|
+
*
|
|
15
|
+
* Two seeded inputs stand in for the two task outputs (a roster optimiser
|
|
16
|
+
* and an order optimiser); in a real app each would be a task's output
|
|
17
|
+
* bound with its own patch overlay.
|
|
18
|
+
*/
|
|
19
|
+
import { ArrayType, StructType, VariantType, StringType, FloatType, DateTimeType, variant } from '@elaraai/east';
|
|
20
|
+
import * as e3 from '@elaraai/e3';
|
|
21
|
+
/** The solution's constraint contract — shared with the reasoning tasks. */
|
|
22
|
+
export declare const LoopConstraint: VariantType<{
|
|
23
|
+
readonly cho_hours_cap: VariantType<{
|
|
24
|
+
readonly atMost: FloatType;
|
|
25
|
+
readonly atLeast: FloatType;
|
|
26
|
+
}>;
|
|
27
|
+
readonly blackout: StructType<{
|
|
28
|
+
readonly person: StringType;
|
|
29
|
+
readonly from: DateTimeType;
|
|
30
|
+
readonly to: DateTimeType;
|
|
31
|
+
}>;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const loopRosterDecisions: e3.DatasetDef<ArrayType<StructType<{
|
|
34
|
+
readonly id: StringType;
|
|
35
|
+
readonly kind: StringType;
|
|
36
|
+
readonly title: StringType;
|
|
37
|
+
readonly urgency: VariantType<{
|
|
38
|
+
readonly overdue: import("@elaraai/east").NullType;
|
|
39
|
+
readonly due: import("@elaraai/east").NullType;
|
|
40
|
+
readonly routine: import("@elaraai/east").NullType;
|
|
41
|
+
}>;
|
|
42
|
+
readonly value: FloatType;
|
|
43
|
+
readonly deadline: import("@elaraai/east").OptionType<DateTimeType>;
|
|
44
|
+
readonly format: import("@elaraai/east").OptionType<VariantType<{
|
|
45
|
+
readonly number: import("@elaraai/east").StructType<{
|
|
46
|
+
readonly minimumFractionDigits: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
47
|
+
readonly maximumFractionDigits: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
48
|
+
readonly signDisplay: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
49
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
50
|
+
readonly never: import("@elaraai/east").NullType;
|
|
51
|
+
readonly always: import("@elaraai/east").NullType;
|
|
52
|
+
readonly exceptZero: import("@elaraai/east").NullType;
|
|
53
|
+
}>>;
|
|
54
|
+
}>;
|
|
55
|
+
readonly currency: import("@elaraai/east").StructType<{
|
|
56
|
+
readonly currency: import("@elaraai/east").VariantType<{
|
|
57
|
+
readonly USD: import("@elaraai/east").NullType;
|
|
58
|
+
readonly EUR: import("@elaraai/east").NullType;
|
|
59
|
+
readonly GBP: import("@elaraai/east").NullType;
|
|
60
|
+
readonly JPY: import("@elaraai/east").NullType;
|
|
61
|
+
readonly CHF: import("@elaraai/east").NullType;
|
|
62
|
+
readonly CAD: import("@elaraai/east").NullType;
|
|
63
|
+
readonly AUD: import("@elaraai/east").NullType;
|
|
64
|
+
readonly NZD: import("@elaraai/east").NullType;
|
|
65
|
+
readonly CNY: import("@elaraai/east").NullType;
|
|
66
|
+
readonly HKD: import("@elaraai/east").NullType;
|
|
67
|
+
readonly SGD: import("@elaraai/east").NullType;
|
|
68
|
+
readonly KRW: import("@elaraai/east").NullType;
|
|
69
|
+
readonly INR: import("@elaraai/east").NullType;
|
|
70
|
+
readonly TWD: import("@elaraai/east").NullType;
|
|
71
|
+
readonly THB: import("@elaraai/east").NullType;
|
|
72
|
+
readonly MYR: import("@elaraai/east").NullType;
|
|
73
|
+
readonly IDR: import("@elaraai/east").NullType;
|
|
74
|
+
readonly PHP: import("@elaraai/east").NullType;
|
|
75
|
+
readonly VND: import("@elaraai/east").NullType;
|
|
76
|
+
readonly SEK: import("@elaraai/east").NullType;
|
|
77
|
+
readonly NOK: import("@elaraai/east").NullType;
|
|
78
|
+
readonly DKK: import("@elaraai/east").NullType;
|
|
79
|
+
readonly PLN: import("@elaraai/east").NullType;
|
|
80
|
+
readonly CZK: import("@elaraai/east").NullType;
|
|
81
|
+
readonly HUF: import("@elaraai/east").NullType;
|
|
82
|
+
readonly RUB: import("@elaraai/east").NullType;
|
|
83
|
+
readonly UAH: import("@elaraai/east").NullType;
|
|
84
|
+
readonly RON: import("@elaraai/east").NullType;
|
|
85
|
+
readonly MXN: import("@elaraai/east").NullType;
|
|
86
|
+
readonly BRL: import("@elaraai/east").NullType;
|
|
87
|
+
readonly ARS: import("@elaraai/east").NullType;
|
|
88
|
+
readonly CLP: import("@elaraai/east").NullType;
|
|
89
|
+
readonly COP: import("@elaraai/east").NullType;
|
|
90
|
+
readonly PEN: import("@elaraai/east").NullType;
|
|
91
|
+
readonly AED: import("@elaraai/east").NullType;
|
|
92
|
+
readonly SAR: import("@elaraai/east").NullType;
|
|
93
|
+
readonly ILS: import("@elaraai/east").NullType;
|
|
94
|
+
readonly ZAR: import("@elaraai/east").NullType;
|
|
95
|
+
readonly TRY: import("@elaraai/east").NullType;
|
|
96
|
+
readonly EGP: import("@elaraai/east").NullType;
|
|
97
|
+
readonly NGN: import("@elaraai/east").NullType;
|
|
98
|
+
readonly KES: import("@elaraai/east").NullType;
|
|
99
|
+
}>;
|
|
100
|
+
readonly display: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
101
|
+
readonly code: import("@elaraai/east").NullType;
|
|
102
|
+
readonly symbol: import("@elaraai/east").NullType;
|
|
103
|
+
readonly narrowSymbol: import("@elaraai/east").NullType;
|
|
104
|
+
readonly name: import("@elaraai/east").NullType;
|
|
105
|
+
}>>;
|
|
106
|
+
readonly compact: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
107
|
+
readonly short: import("@elaraai/east").NullType;
|
|
108
|
+
readonly long: import("@elaraai/east").NullType;
|
|
109
|
+
}>>;
|
|
110
|
+
readonly minimumFractionDigits: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
111
|
+
readonly maximumFractionDigits: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
112
|
+
}>;
|
|
113
|
+
readonly percent: import("@elaraai/east").StructType<{
|
|
114
|
+
readonly minimumFractionDigits: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
115
|
+
readonly maximumFractionDigits: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
116
|
+
readonly signDisplay: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
117
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
118
|
+
readonly never: import("@elaraai/east").NullType;
|
|
119
|
+
readonly always: import("@elaraai/east").NullType;
|
|
120
|
+
readonly exceptZero: import("@elaraai/east").NullType;
|
|
121
|
+
}>>;
|
|
122
|
+
}>;
|
|
123
|
+
readonly compact: import("@elaraai/east").StructType<{
|
|
124
|
+
readonly display: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
125
|
+
readonly short: import("@elaraai/east").NullType;
|
|
126
|
+
readonly long: import("@elaraai/east").NullType;
|
|
127
|
+
}>>;
|
|
128
|
+
}>;
|
|
129
|
+
readonly unit: import("@elaraai/east").StructType<{
|
|
130
|
+
readonly unit: import("@elaraai/east").VariantType<{
|
|
131
|
+
readonly bit: import("@elaraai/east").NullType;
|
|
132
|
+
readonly byte: import("@elaraai/east").NullType;
|
|
133
|
+
readonly kilobit: import("@elaraai/east").NullType;
|
|
134
|
+
readonly kilobyte: import("@elaraai/east").NullType;
|
|
135
|
+
readonly megabit: import("@elaraai/east").NullType;
|
|
136
|
+
readonly megabyte: import("@elaraai/east").NullType;
|
|
137
|
+
readonly gigabit: import("@elaraai/east").NullType;
|
|
138
|
+
readonly gigabyte: import("@elaraai/east").NullType;
|
|
139
|
+
readonly terabit: import("@elaraai/east").NullType;
|
|
140
|
+
readonly terabyte: import("@elaraai/east").NullType;
|
|
141
|
+
readonly petabyte: import("@elaraai/east").NullType;
|
|
142
|
+
readonly nanosecond: import("@elaraai/east").NullType;
|
|
143
|
+
readonly microsecond: import("@elaraai/east").NullType;
|
|
144
|
+
readonly millisecond: import("@elaraai/east").NullType;
|
|
145
|
+
readonly second: import("@elaraai/east").NullType;
|
|
146
|
+
readonly minute: import("@elaraai/east").NullType;
|
|
147
|
+
readonly hour: import("@elaraai/east").NullType;
|
|
148
|
+
readonly day: import("@elaraai/east").NullType;
|
|
149
|
+
readonly week: import("@elaraai/east").NullType;
|
|
150
|
+
readonly month: import("@elaraai/east").NullType;
|
|
151
|
+
readonly year: import("@elaraai/east").NullType;
|
|
152
|
+
readonly millimeter: import("@elaraai/east").NullType;
|
|
153
|
+
readonly centimeter: import("@elaraai/east").NullType;
|
|
154
|
+
readonly meter: import("@elaraai/east").NullType;
|
|
155
|
+
readonly kilometer: import("@elaraai/east").NullType;
|
|
156
|
+
readonly inch: import("@elaraai/east").NullType;
|
|
157
|
+
readonly foot: import("@elaraai/east").NullType;
|
|
158
|
+
readonly yard: import("@elaraai/east").NullType;
|
|
159
|
+
readonly mile: import("@elaraai/east").NullType;
|
|
160
|
+
readonly gram: import("@elaraai/east").NullType;
|
|
161
|
+
readonly kilogram: import("@elaraai/east").NullType;
|
|
162
|
+
readonly milligram: import("@elaraai/east").NullType;
|
|
163
|
+
readonly ounce: import("@elaraai/east").NullType;
|
|
164
|
+
readonly pound: import("@elaraai/east").NullType;
|
|
165
|
+
readonly stone: import("@elaraai/east").NullType;
|
|
166
|
+
readonly celsius: import("@elaraai/east").NullType;
|
|
167
|
+
readonly fahrenheit: import("@elaraai/east").NullType;
|
|
168
|
+
readonly milliliter: import("@elaraai/east").NullType;
|
|
169
|
+
readonly liter: import("@elaraai/east").NullType;
|
|
170
|
+
readonly gallon: import("@elaraai/east").NullType;
|
|
171
|
+
readonly fluidOunce: import("@elaraai/east").NullType;
|
|
172
|
+
readonly acre: import("@elaraai/east").NullType;
|
|
173
|
+
readonly hectare: import("@elaraai/east").NullType;
|
|
174
|
+
readonly meterPerSecond: import("@elaraai/east").NullType;
|
|
175
|
+
readonly kilometerPerHour: import("@elaraai/east").NullType;
|
|
176
|
+
readonly milePerHour: import("@elaraai/east").NullType;
|
|
177
|
+
readonly percent: import("@elaraai/east").NullType;
|
|
178
|
+
readonly degree: import("@elaraai/east").NullType;
|
|
179
|
+
}>;
|
|
180
|
+
readonly display: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
181
|
+
readonly short: import("@elaraai/east").NullType;
|
|
182
|
+
readonly narrow: import("@elaraai/east").NullType;
|
|
183
|
+
readonly long: import("@elaraai/east").NullType;
|
|
184
|
+
}>>;
|
|
185
|
+
}>;
|
|
186
|
+
readonly scientific: import("@elaraai/east").NullType;
|
|
187
|
+
readonly engineering: import("@elaraai/east").NullType;
|
|
188
|
+
readonly date: import("@elaraai/east").StructType<{
|
|
189
|
+
readonly format: StringType;
|
|
190
|
+
}>;
|
|
191
|
+
readonly time: import("@elaraai/east").StructType<{
|
|
192
|
+
readonly format: StringType;
|
|
193
|
+
}>;
|
|
194
|
+
readonly datetime: import("@elaraai/east").StructType<{
|
|
195
|
+
readonly format: StringType;
|
|
196
|
+
}>;
|
|
197
|
+
}>>;
|
|
198
|
+
readonly summary: import("@elaraai/east").OptionType<StringType>;
|
|
199
|
+
readonly downside: import("@elaraai/east").OptionType<FloatType>;
|
|
200
|
+
readonly confidence: import("@elaraai/east").OptionType<FloatType>;
|
|
201
|
+
readonly detail: import("@elaraai/east").OptionType<StringType>;
|
|
202
|
+
readonly stakes: import("@elaraai/east").OptionType<VariantType<{
|
|
203
|
+
readonly low: import("@elaraai/east").NullType;
|
|
204
|
+
readonly medium: import("@elaraai/east").NullType;
|
|
205
|
+
readonly high: import("@elaraai/east").NullType;
|
|
206
|
+
readonly critical: import("@elaraai/east").NullType;
|
|
207
|
+
}>>;
|
|
208
|
+
readonly prompts: ArrayType<StructType<{
|
|
209
|
+
readonly id: StringType;
|
|
210
|
+
readonly text: StringType;
|
|
211
|
+
}>>;
|
|
212
|
+
readonly levers: ArrayType<StructType<{
|
|
213
|
+
readonly case: StringType;
|
|
214
|
+
readonly label: StringType;
|
|
215
|
+
}>>;
|
|
216
|
+
readonly evidence: ArrayType<StructType<{
|
|
217
|
+
readonly label: StringType;
|
|
218
|
+
readonly text: StringType;
|
|
219
|
+
readonly note: import("@elaraai/east").OptionType<StringType>;
|
|
220
|
+
}>>;
|
|
221
|
+
readonly alternatives: ArrayType<StructType<{
|
|
222
|
+
readonly id: import("@elaraai/east").OptionType<StringType>;
|
|
223
|
+
readonly label: StringType;
|
|
224
|
+
readonly value: FloatType;
|
|
225
|
+
readonly downside: import("@elaraai/east").OptionType<FloatType>;
|
|
226
|
+
readonly confidence: import("@elaraai/east").OptionType<FloatType>;
|
|
227
|
+
readonly note: import("@elaraai/east").OptionType<StringType>;
|
|
228
|
+
}>>;
|
|
229
|
+
}>>, [variant<"field", "inputs">, variant<"field", "loop_roster_decisions">]>;
|
|
230
|
+
export declare const loopOrderDecisions: e3.DatasetDef<ArrayType<StructType<{
|
|
231
|
+
readonly id: StringType;
|
|
232
|
+
readonly kind: StringType;
|
|
233
|
+
readonly title: StringType;
|
|
234
|
+
readonly urgency: VariantType<{
|
|
235
|
+
readonly overdue: import("@elaraai/east").NullType;
|
|
236
|
+
readonly due: import("@elaraai/east").NullType;
|
|
237
|
+
readonly routine: import("@elaraai/east").NullType;
|
|
238
|
+
}>;
|
|
239
|
+
readonly value: FloatType;
|
|
240
|
+
readonly deadline: import("@elaraai/east").OptionType<DateTimeType>;
|
|
241
|
+
readonly format: import("@elaraai/east").OptionType<VariantType<{
|
|
242
|
+
readonly number: import("@elaraai/east").StructType<{
|
|
243
|
+
readonly minimumFractionDigits: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
244
|
+
readonly maximumFractionDigits: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
245
|
+
readonly signDisplay: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
246
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
247
|
+
readonly never: import("@elaraai/east").NullType;
|
|
248
|
+
readonly always: import("@elaraai/east").NullType;
|
|
249
|
+
readonly exceptZero: import("@elaraai/east").NullType;
|
|
250
|
+
}>>;
|
|
251
|
+
}>;
|
|
252
|
+
readonly currency: import("@elaraai/east").StructType<{
|
|
253
|
+
readonly currency: import("@elaraai/east").VariantType<{
|
|
254
|
+
readonly USD: import("@elaraai/east").NullType;
|
|
255
|
+
readonly EUR: import("@elaraai/east").NullType;
|
|
256
|
+
readonly GBP: import("@elaraai/east").NullType;
|
|
257
|
+
readonly JPY: import("@elaraai/east").NullType;
|
|
258
|
+
readonly CHF: import("@elaraai/east").NullType;
|
|
259
|
+
readonly CAD: import("@elaraai/east").NullType;
|
|
260
|
+
readonly AUD: import("@elaraai/east").NullType;
|
|
261
|
+
readonly NZD: import("@elaraai/east").NullType;
|
|
262
|
+
readonly CNY: import("@elaraai/east").NullType;
|
|
263
|
+
readonly HKD: import("@elaraai/east").NullType;
|
|
264
|
+
readonly SGD: import("@elaraai/east").NullType;
|
|
265
|
+
readonly KRW: import("@elaraai/east").NullType;
|
|
266
|
+
readonly INR: import("@elaraai/east").NullType;
|
|
267
|
+
readonly TWD: import("@elaraai/east").NullType;
|
|
268
|
+
readonly THB: import("@elaraai/east").NullType;
|
|
269
|
+
readonly MYR: import("@elaraai/east").NullType;
|
|
270
|
+
readonly IDR: import("@elaraai/east").NullType;
|
|
271
|
+
readonly PHP: import("@elaraai/east").NullType;
|
|
272
|
+
readonly VND: import("@elaraai/east").NullType;
|
|
273
|
+
readonly SEK: import("@elaraai/east").NullType;
|
|
274
|
+
readonly NOK: import("@elaraai/east").NullType;
|
|
275
|
+
readonly DKK: import("@elaraai/east").NullType;
|
|
276
|
+
readonly PLN: import("@elaraai/east").NullType;
|
|
277
|
+
readonly CZK: import("@elaraai/east").NullType;
|
|
278
|
+
readonly HUF: import("@elaraai/east").NullType;
|
|
279
|
+
readonly RUB: import("@elaraai/east").NullType;
|
|
280
|
+
readonly UAH: import("@elaraai/east").NullType;
|
|
281
|
+
readonly RON: import("@elaraai/east").NullType;
|
|
282
|
+
readonly MXN: import("@elaraai/east").NullType;
|
|
283
|
+
readonly BRL: import("@elaraai/east").NullType;
|
|
284
|
+
readonly ARS: import("@elaraai/east").NullType;
|
|
285
|
+
readonly CLP: import("@elaraai/east").NullType;
|
|
286
|
+
readonly COP: import("@elaraai/east").NullType;
|
|
287
|
+
readonly PEN: import("@elaraai/east").NullType;
|
|
288
|
+
readonly AED: import("@elaraai/east").NullType;
|
|
289
|
+
readonly SAR: import("@elaraai/east").NullType;
|
|
290
|
+
readonly ILS: import("@elaraai/east").NullType;
|
|
291
|
+
readonly ZAR: import("@elaraai/east").NullType;
|
|
292
|
+
readonly TRY: import("@elaraai/east").NullType;
|
|
293
|
+
readonly EGP: import("@elaraai/east").NullType;
|
|
294
|
+
readonly NGN: import("@elaraai/east").NullType;
|
|
295
|
+
readonly KES: import("@elaraai/east").NullType;
|
|
296
|
+
}>;
|
|
297
|
+
readonly display: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
298
|
+
readonly code: import("@elaraai/east").NullType;
|
|
299
|
+
readonly symbol: import("@elaraai/east").NullType;
|
|
300
|
+
readonly narrowSymbol: import("@elaraai/east").NullType;
|
|
301
|
+
readonly name: import("@elaraai/east").NullType;
|
|
302
|
+
}>>;
|
|
303
|
+
readonly compact: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
304
|
+
readonly short: import("@elaraai/east").NullType;
|
|
305
|
+
readonly long: import("@elaraai/east").NullType;
|
|
306
|
+
}>>;
|
|
307
|
+
readonly minimumFractionDigits: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
308
|
+
readonly maximumFractionDigits: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
309
|
+
}>;
|
|
310
|
+
readonly percent: import("@elaraai/east").StructType<{
|
|
311
|
+
readonly minimumFractionDigits: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
312
|
+
readonly maximumFractionDigits: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
313
|
+
readonly signDisplay: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
314
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
315
|
+
readonly never: import("@elaraai/east").NullType;
|
|
316
|
+
readonly always: import("@elaraai/east").NullType;
|
|
317
|
+
readonly exceptZero: import("@elaraai/east").NullType;
|
|
318
|
+
}>>;
|
|
319
|
+
}>;
|
|
320
|
+
readonly compact: import("@elaraai/east").StructType<{
|
|
321
|
+
readonly display: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
322
|
+
readonly short: import("@elaraai/east").NullType;
|
|
323
|
+
readonly long: import("@elaraai/east").NullType;
|
|
324
|
+
}>>;
|
|
325
|
+
}>;
|
|
326
|
+
readonly unit: import("@elaraai/east").StructType<{
|
|
327
|
+
readonly unit: import("@elaraai/east").VariantType<{
|
|
328
|
+
readonly bit: import("@elaraai/east").NullType;
|
|
329
|
+
readonly byte: import("@elaraai/east").NullType;
|
|
330
|
+
readonly kilobit: import("@elaraai/east").NullType;
|
|
331
|
+
readonly kilobyte: import("@elaraai/east").NullType;
|
|
332
|
+
readonly megabit: import("@elaraai/east").NullType;
|
|
333
|
+
readonly megabyte: import("@elaraai/east").NullType;
|
|
334
|
+
readonly gigabit: import("@elaraai/east").NullType;
|
|
335
|
+
readonly gigabyte: import("@elaraai/east").NullType;
|
|
336
|
+
readonly terabit: import("@elaraai/east").NullType;
|
|
337
|
+
readonly terabyte: import("@elaraai/east").NullType;
|
|
338
|
+
readonly petabyte: import("@elaraai/east").NullType;
|
|
339
|
+
readonly nanosecond: import("@elaraai/east").NullType;
|
|
340
|
+
readonly microsecond: import("@elaraai/east").NullType;
|
|
341
|
+
readonly millisecond: import("@elaraai/east").NullType;
|
|
342
|
+
readonly second: import("@elaraai/east").NullType;
|
|
343
|
+
readonly minute: import("@elaraai/east").NullType;
|
|
344
|
+
readonly hour: import("@elaraai/east").NullType;
|
|
345
|
+
readonly day: import("@elaraai/east").NullType;
|
|
346
|
+
readonly week: import("@elaraai/east").NullType;
|
|
347
|
+
readonly month: import("@elaraai/east").NullType;
|
|
348
|
+
readonly year: import("@elaraai/east").NullType;
|
|
349
|
+
readonly millimeter: import("@elaraai/east").NullType;
|
|
350
|
+
readonly centimeter: import("@elaraai/east").NullType;
|
|
351
|
+
readonly meter: import("@elaraai/east").NullType;
|
|
352
|
+
readonly kilometer: import("@elaraai/east").NullType;
|
|
353
|
+
readonly inch: import("@elaraai/east").NullType;
|
|
354
|
+
readonly foot: import("@elaraai/east").NullType;
|
|
355
|
+
readonly yard: import("@elaraai/east").NullType;
|
|
356
|
+
readonly mile: import("@elaraai/east").NullType;
|
|
357
|
+
readonly gram: import("@elaraai/east").NullType;
|
|
358
|
+
readonly kilogram: import("@elaraai/east").NullType;
|
|
359
|
+
readonly milligram: import("@elaraai/east").NullType;
|
|
360
|
+
readonly ounce: import("@elaraai/east").NullType;
|
|
361
|
+
readonly pound: import("@elaraai/east").NullType;
|
|
362
|
+
readonly stone: import("@elaraai/east").NullType;
|
|
363
|
+
readonly celsius: import("@elaraai/east").NullType;
|
|
364
|
+
readonly fahrenheit: import("@elaraai/east").NullType;
|
|
365
|
+
readonly milliliter: import("@elaraai/east").NullType;
|
|
366
|
+
readonly liter: import("@elaraai/east").NullType;
|
|
367
|
+
readonly gallon: import("@elaraai/east").NullType;
|
|
368
|
+
readonly fluidOunce: import("@elaraai/east").NullType;
|
|
369
|
+
readonly acre: import("@elaraai/east").NullType;
|
|
370
|
+
readonly hectare: import("@elaraai/east").NullType;
|
|
371
|
+
readonly meterPerSecond: import("@elaraai/east").NullType;
|
|
372
|
+
readonly kilometerPerHour: import("@elaraai/east").NullType;
|
|
373
|
+
readonly milePerHour: import("@elaraai/east").NullType;
|
|
374
|
+
readonly percent: import("@elaraai/east").NullType;
|
|
375
|
+
readonly degree: import("@elaraai/east").NullType;
|
|
376
|
+
}>;
|
|
377
|
+
readonly display: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
378
|
+
readonly short: import("@elaraai/east").NullType;
|
|
379
|
+
readonly narrow: import("@elaraai/east").NullType;
|
|
380
|
+
readonly long: import("@elaraai/east").NullType;
|
|
381
|
+
}>>;
|
|
382
|
+
}>;
|
|
383
|
+
readonly scientific: import("@elaraai/east").NullType;
|
|
384
|
+
readonly engineering: import("@elaraai/east").NullType;
|
|
385
|
+
readonly date: import("@elaraai/east").StructType<{
|
|
386
|
+
readonly format: StringType;
|
|
387
|
+
}>;
|
|
388
|
+
readonly time: import("@elaraai/east").StructType<{
|
|
389
|
+
readonly format: StringType;
|
|
390
|
+
}>;
|
|
391
|
+
readonly datetime: import("@elaraai/east").StructType<{
|
|
392
|
+
readonly format: StringType;
|
|
393
|
+
}>;
|
|
394
|
+
}>>;
|
|
395
|
+
readonly summary: import("@elaraai/east").OptionType<StringType>;
|
|
396
|
+
readonly downside: import("@elaraai/east").OptionType<FloatType>;
|
|
397
|
+
readonly confidence: import("@elaraai/east").OptionType<FloatType>;
|
|
398
|
+
readonly detail: import("@elaraai/east").OptionType<StringType>;
|
|
399
|
+
readonly stakes: import("@elaraai/east").OptionType<VariantType<{
|
|
400
|
+
readonly low: import("@elaraai/east").NullType;
|
|
401
|
+
readonly medium: import("@elaraai/east").NullType;
|
|
402
|
+
readonly high: import("@elaraai/east").NullType;
|
|
403
|
+
readonly critical: import("@elaraai/east").NullType;
|
|
404
|
+
}>>;
|
|
405
|
+
readonly prompts: ArrayType<StructType<{
|
|
406
|
+
readonly id: StringType;
|
|
407
|
+
readonly text: StringType;
|
|
408
|
+
}>>;
|
|
409
|
+
readonly levers: ArrayType<StructType<{
|
|
410
|
+
readonly case: StringType;
|
|
411
|
+
readonly label: StringType;
|
|
412
|
+
}>>;
|
|
413
|
+
readonly evidence: ArrayType<StructType<{
|
|
414
|
+
readonly label: StringType;
|
|
415
|
+
readonly text: StringType;
|
|
416
|
+
readonly note: import("@elaraai/east").OptionType<StringType>;
|
|
417
|
+
}>>;
|
|
418
|
+
readonly alternatives: ArrayType<StructType<{
|
|
419
|
+
readonly id: import("@elaraai/east").OptionType<StringType>;
|
|
420
|
+
readonly label: StringType;
|
|
421
|
+
readonly value: FloatType;
|
|
422
|
+
readonly downside: import("@elaraai/east").OptionType<FloatType>;
|
|
423
|
+
readonly confidence: import("@elaraai/east").OptionType<FloatType>;
|
|
424
|
+
readonly note: import("@elaraai/east").OptionType<StringType>;
|
|
425
|
+
}>>;
|
|
426
|
+
}>>, [variant<"field", "inputs">, variant<"field", "loop_order_decisions">]>;
|
|
427
|
+
export declare const loopJudgements: e3.DatasetDef<import("@elaraai/east").DictType<StringType, StructType<{
|
|
428
|
+
readonly caseId: StringType;
|
|
429
|
+
readonly answers: import("@elaraai/east").DictType<StringType, VariantType<{
|
|
430
|
+
readonly yes: import("@elaraai/east").NullType;
|
|
431
|
+
readonly no: import("@elaraai/east").NullType;
|
|
432
|
+
readonly unknown: import("@elaraai/east").NullType;
|
|
433
|
+
}>>;
|
|
434
|
+
readonly knowledge: import("@elaraai/east").OptionType<StringType>;
|
|
435
|
+
readonly constraints: ArrayType<VariantType<{
|
|
436
|
+
readonly cho_hours_cap: VariantType<{
|
|
437
|
+
readonly atMost: FloatType;
|
|
438
|
+
readonly atLeast: FloatType;
|
|
439
|
+
}>;
|
|
440
|
+
readonly blackout: StructType<{
|
|
441
|
+
readonly person: StringType;
|
|
442
|
+
readonly from: DateTimeType;
|
|
443
|
+
readonly to: DateTimeType;
|
|
444
|
+
}>;
|
|
445
|
+
}>>;
|
|
446
|
+
readonly verdict: import("@elaraai/east").OptionType<VariantType<{
|
|
447
|
+
readonly accepted: StringType;
|
|
448
|
+
readonly rejected: import("@elaraai/east").NullType;
|
|
449
|
+
readonly deferred: import("@elaraai/east").OptionType<StringType>;
|
|
450
|
+
readonly handoff: StringType;
|
|
451
|
+
}>>;
|
|
452
|
+
readonly resolvedAt: import("@elaraai/east").OptionType<DateTimeType>;
|
|
453
|
+
}>>, [variant<"field", "inputs">, variant<"field", "loop_judgements">]>;
|
|
454
|
+
export declare const decisionLoop: import("@elaraai/east").ExampleDef<[], any>;
|
|
455
|
+
//# sourceMappingURL=loop.examples.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loop.examples.d.ts","sourceRoot":"","sources":["../../../test/decision/loop.examples.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wCAAwC;AAExC;;;;;;;;;;;;GAYG;AAEH,OAAO,EACG,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EACjE,OAAO,EACtB,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAElC,4EAA4E;AAC5E,eAAO,MAAM,cAAc;;;;;;;;;;EAGzB,CAAC;AAUH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA+C/B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAuB9B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;uEAI1B,CAAC;AAOF,eAAO,MAAM,YAAY,6CA2BvB,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@elaraai/east-ui/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
4
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
5
|
+
*/
|
|
6
|
+
/** @jsxImportSource @elaraai/east-ui */
|
|
7
|
+
/**
|
|
8
|
+
* The decision loop, end to end — decisions from MULTIPLE reasoning tasks
|
|
9
|
+
* union into one queue through a single `Decision.bind` handle; resolved
|
|
10
|
+
* cases land in the journal beneath. Rows expand in place (selection is the
|
|
11
|
+
* expanded row); the Judgement facet gates Apply; Apply / Reject resolve
|
|
12
|
+
* through the handle: the verdict lands in the staged judgements dict
|
|
13
|
+
* (visible in the journal), the case leaves the bound queue, and the loop
|
|
14
|
+
* closes back to Triage.
|
|
15
|
+
*
|
|
16
|
+
* Two seeded inputs stand in for the two task outputs (a roster optimiser
|
|
17
|
+
* and an order optimiser); in a real app each would be a task's output
|
|
18
|
+
* bound with its own patch overlay.
|
|
19
|
+
*/
|
|
20
|
+
import { East, ArrayType, StructType, VariantType, StringType, FloatType, DateTimeType, some, none, variant, example, } from '@elaraai/east';
|
|
21
|
+
import { Reactive, UIComponentType, VStack } from '@elaraai/east-ui';
|
|
22
|
+
import { Data, Decision, DecisionQueue, DecisionJournal } from '@elaraai/e3-ui';
|
|
23
|
+
import * as e3 from '@elaraai/e3';
|
|
24
|
+
/** The solution's constraint contract — shared with the reasoning tasks. */
|
|
25
|
+
export const LoopConstraint = VariantType({
|
|
26
|
+
cho_hours_cap: VariantType({ atMost: FloatType, atLeast: FloatType }),
|
|
27
|
+
blackout: StructType({ person: StringType, from: DateTimeType, to: DateTimeType }),
|
|
28
|
+
});
|
|
29
|
+
const CURRENCY = variant('currency', {
|
|
30
|
+
currency: variant('USD', null),
|
|
31
|
+
display: none,
|
|
32
|
+
compact: some(variant('short', null)),
|
|
33
|
+
minimumFractionDigits: none,
|
|
34
|
+
maximumFractionDigits: none,
|
|
35
|
+
});
|
|
36
|
+
export const loopRosterDecisions = e3.input('loop_roster_decisions', ArrayType(Decision.Types.Decision), [
|
|
37
|
+
{
|
|
38
|
+
id: 'ros-patel-cho',
|
|
39
|
+
kind: 'roster',
|
|
40
|
+
title: 'Move 3 SE shifts Patel → Cho',
|
|
41
|
+
urgency: variant('overdue', null),
|
|
42
|
+
value: 80000,
|
|
43
|
+
deadline: some(new Date(Date.now() - 2 * 3_600_000)),
|
|
44
|
+
format: some(CURRENCY),
|
|
45
|
+
summary: some('SE region · wk 09-16'),
|
|
46
|
+
downside: some(-8000),
|
|
47
|
+
confidence: some(0.82),
|
|
48
|
+
detail: none,
|
|
49
|
+
stakes: some(variant('high', null)),
|
|
50
|
+
prompts: [{ id: 'cho_told', text: 'Has Cho been told this is on the table?' }],
|
|
51
|
+
levers: [
|
|
52
|
+
{ case: 'cho_hours_cap', label: 'Cho weekly hours cap' },
|
|
53
|
+
{ case: 'blackout', label: 'Roster blackout window' },
|
|
54
|
+
],
|
|
55
|
+
evidence: [
|
|
56
|
+
{ label: 'forecast', text: 'SE region +14%', note: some('next 2 wks') },
|
|
57
|
+
{ label: 'capacity', text: 'Cho +12h slack', note: none },
|
|
58
|
+
],
|
|
59
|
+
alternatives: [],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 'ros-riggs-tidy',
|
|
63
|
+
kind: 'roster',
|
|
64
|
+
title: 'Rebalance Riggs roster −6h',
|
|
65
|
+
urgency: variant('routine', null),
|
|
66
|
+
value: 1200,
|
|
67
|
+
deadline: none,
|
|
68
|
+
format: some(CURRENCY),
|
|
69
|
+
summary: none,
|
|
70
|
+
downside: none,
|
|
71
|
+
confidence: none,
|
|
72
|
+
detail: none,
|
|
73
|
+
stakes: none,
|
|
74
|
+
prompts: [],
|
|
75
|
+
levers: [],
|
|
76
|
+
evidence: [],
|
|
77
|
+
alternatives: [],
|
|
78
|
+
},
|
|
79
|
+
]);
|
|
80
|
+
export const loopOrderDecisions = e3.input('loop_order_decisions', ArrayType(Decision.Types.Decision), [
|
|
81
|
+
{
|
|
82
|
+
id: 'ord-sku-001',
|
|
83
|
+
kind: 'reorder',
|
|
84
|
+
title: 'SKU-001 · 2k units',
|
|
85
|
+
urgency: variant('due', null),
|
|
86
|
+
value: 42000,
|
|
87
|
+
deadline: some(new Date(new Date().setHours(16, 0, 0, 0))),
|
|
88
|
+
format: some(CURRENCY),
|
|
89
|
+
summary: some('supplier lead time 6 days'),
|
|
90
|
+
downside: some(-5000),
|
|
91
|
+
confidence: some(0.77),
|
|
92
|
+
detail: none,
|
|
93
|
+
stakes: none,
|
|
94
|
+
prompts: [],
|
|
95
|
+
levers: [],
|
|
96
|
+
evidence: [{ label: 'demand', text: 'wk 10 forecast +9%', note: none }],
|
|
97
|
+
alternatives: [],
|
|
98
|
+
},
|
|
99
|
+
]);
|
|
100
|
+
export const loopJudgements = e3.input('loop_judgements', Decision.Types.Judgements(LoopConstraint), new Map());
|
|
101
|
+
// ============================================================================
|
|
102
|
+
// 1. The full loop — multi-task queue (Judgement facet open on the gated
|
|
103
|
+
// case) + the journal beneath, one handle.
|
|
104
|
+
// ============================================================================
|
|
105
|
+
export const decisionLoop = example({
|
|
106
|
+
keywords: ['Decision', 'bind', 'handle', 'loop', 'queue', 'journal', 'judgement', 'multi-task'],
|
|
107
|
+
description: 'Two task outputs union into one queue via Decision.bind; the gated case opens on the Judgement facet, and resolved cases land in the journal beneath — one handle for the whole loop',
|
|
108
|
+
fn: East.function([], UIComponentType, (_$) => {
|
|
109
|
+
return (_jsx(Reactive, { children: $ => {
|
|
110
|
+
const roster = $.let(Data.bind([ArrayType(Decision.Types.Decision)], loopRosterDecisions.path, { mode: 'direct' }));
|
|
111
|
+
const orders = $.let(Data.bind([ArrayType(Decision.Types.Decision)], loopOrderDecisions.path, { mode: 'direct' }));
|
|
112
|
+
const judgements = $.let(Data.bind([Decision.Types.Judgements(LoopConstraint)], loopJudgements.path, { mode: 'direct' }));
|
|
113
|
+
const handle = $.let(Decision.bind([LoopConstraint], { decisions: [roster, orders], judgements }));
|
|
114
|
+
const gated = $.let(roster.read().firstMap(($, d) => d.urgency.hasTag('overdue').ifElse(() => some(d), () => none)));
|
|
115
|
+
return (_jsxs(VStack, { gap: "6", align: "stretch", children: [_jsx(DecisionQueue, { handle: handle, heading: "Decisions waiting", defaultExpanded: gated, defaultFacet: "judgement" }), _jsx(DecisionJournal, { handle: handle })] }));
|
|
116
|
+
} }));
|
|
117
|
+
}),
|
|
118
|
+
inputs: [],
|
|
119
|
+
});
|
|
120
|
+
//# sourceMappingURL=loop.examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loop.examples.js","sourceRoot":"","sources":["../../../test/decision/loop.examples.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,wCAAwC;AAExC;;;;;;;;;;;;GAYG;AAEH,OAAO,EACH,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAC7E,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,GAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAElC,4EAA4E;AAC5E,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC;IACtC,aAAa,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IACrE,QAAQ,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC;CACrF,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,EAAE;IACjC,QAAQ,EAAE,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC;IAC9B,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACrC,qBAAqB,EAAE,IAAI;IAC3B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,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