@almadar/std 16.174.0 → 16.176.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +4 -9
- package/behaviors/lolo/ui/learning/atoms/std-learn-classify.lolo +132 -22
- package/behaviors/lolo/ui/learning/atoms/std-learn-derivation.lolo +428 -0
- package/behaviors/lolo/ui/learning/atoms/std-learn-doser.lolo +520 -0
- package/behaviors/lolo/ui/learning/atoms/std-learn-scatter-fit.lolo +805 -0
- package/behaviors/lolo/ui/learning/atoms/std-learn-tour-3d.lolo +31 -2
- package/behaviors/lolo/ui/learning/atoms/std-learn-transport.lolo +186 -0
- package/behaviors/lolo/ui/learning/atoms/std-learn-tree.lolo +522 -0
- package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +192 -0
- package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +111 -2
- package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +150 -1
- package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +132 -1
- package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +48 -1
- package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +141 -1
- package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +199 -1
- package/behaviors/registry/ui/core/molecules/ui-table-view.orb +4 -39
- package/behaviors/registry/ui/learning/atoms/std-learn-classify.orb +1288 -197
- package/behaviors/registry/ui/learning/atoms/std-learn-derivation.orb +2512 -0
- package/behaviors/registry/ui/learning/atoms/std-learn-doser.orb +3678 -0
- package/behaviors/registry/ui/learning/atoms/std-learn-scatter-fit.orb +6539 -0
- package/behaviors/registry/ui/learning/atoms/std-learn-tour-3d.orb +173 -2
- package/behaviors/registry/ui/learning/atoms/std-learn-transport.orb +986 -0
- package/behaviors/registry/ui/learning/atoms/std-learn-tree.orb +3333 -0
- package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +716 -0
- package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +506 -1
- package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +684 -0
- package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +634 -0
- package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +256 -0
- package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +736 -12
- package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +1061 -33
- package/dist/behaviors/exports-reader.js +2448 -2184
- package/dist/behaviors/functions/index.d.ts +800 -13
- package/dist/behaviors/functions/index.js +2431 -2185
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +2449 -2185
- package/dist/behaviors/query.js +2448 -2184
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +318 -294
- package/dist/behaviors-registry.json +4391 -1298
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2449 -2185
- package/dist/knob-embeddings.hash.json +3 -3
- package/dist/knob-embeddings.json +1 -1
- package/dist/registry/factory-signatures.json +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
app std-learn-tour-3d "1.0.0"
|
|
2
2
|
"Generic guided-tour-over-3D-stations instrument. Contract: a config-declared roster of stations (id, name, caption, x, y, z, radius, color, shape, opacity) plus optional connector edges (from, to, color, label), rendered as an orbit-rotatable volumetric scene on a biology-canvas in 3D mode; pressing Tour advances the selection to the next station (mod the roster length) and clicking a shape selects its station — either way the camera retargets onto the selected station's x/y/z, the station enlarges, a name — caption narration renders, and a progress readout tracks visited stations until every station has been toured. A `backdrop` knob renders non-station scene geometry under the stations (painted, never toured). SYNC_STATIONS hot-swaps the roster mid-flight (a composed preset coordinator emits it with new stations/edges/backdrop; the tour adopts them and restarts progress at the first new station) — the single-writer entry point for dynamic rosters. Composed of a biology-canvas in 3D mode plus a tour state machine. Standalone by default; behind a lab router set matchMode and it renders only when MODE_SELECTED matches."
|
|
3
3
|
orbital LearnTour3DOrbital {
|
|
4
|
+
type SceneLight = {
|
|
5
|
+
intensity : number
|
|
6
|
+
color : string
|
|
7
|
+
position : [number]
|
|
8
|
+
}
|
|
9
|
+
type SceneHemiLight = {
|
|
10
|
+
intensity : number
|
|
11
|
+
color : string
|
|
12
|
+
groundColor : string
|
|
13
|
+
}
|
|
14
|
+
type ScenePointLight = {
|
|
15
|
+
intensity : number
|
|
16
|
+
color : string
|
|
17
|
+
position : [number]!
|
|
18
|
+
distance : number
|
|
19
|
+
decay : number
|
|
20
|
+
}
|
|
21
|
+
type Lighting3D = {
|
|
22
|
+
ambient : SceneLight
|
|
23
|
+
directional : SceneLight
|
|
24
|
+
hemisphere : SceneHemiLight
|
|
25
|
+
points : [ScenePointLight]
|
|
26
|
+
environment : "room" | "none"
|
|
27
|
+
toneMapping : "aces" | "none"
|
|
28
|
+
}
|
|
29
|
+
type Post3D = {
|
|
30
|
+
bloom : { intensity : number threshold : number smoothing : number }
|
|
31
|
+
vignette : { offset : number darkness : number }
|
|
32
|
+
}
|
|
4
33
|
type Learn3DStation = {
|
|
5
34
|
id : string!
|
|
6
35
|
name : string!
|
|
@@ -353,11 +382,11 @@ orbital LearnTour3DOrbital {
|
|
|
353
382
|
@label "Azimuth"
|
|
354
383
|
@description "Camera orbit azimuth in radians; the learner can orbit freely on top of this."
|
|
355
384
|
@tier "presentation"
|
|
356
|
-
lighting :
|
|
385
|
+
lighting : Lighting3D = {}
|
|
357
386
|
@label "Lighting"
|
|
358
387
|
@description "3D scene light rig as data; empty object uses the standard rig."
|
|
359
388
|
@tier "presentation"
|
|
360
|
-
post :
|
|
389
|
+
post : Post3D = {}
|
|
361
390
|
@label "Post Processing"
|
|
362
391
|
@description "3D post-processing stack (bloom/vignette) as data; empty object disables it."
|
|
363
392
|
@tier "presentation"
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
app std-learn-transport "1.0.0"
|
|
2
|
+
"Generic 2D step-transport (clock) instrument — the substrate twin of std-learn-sim-3d for discrete-step instruments. Contract: the atom owns the Step/Run-Pause/Reset transport and the clock but NOT the subject computation — STEP advances one step manually, TOGGLE_RUN engages a 32ms tick that accumulates elapsed time and fires one step every stepIntervalMs, RESET zeroes the counters and restores autoRun. Every step (button or clock) broadcasts LEARN_STEP; a composed sibling trait transitions directly on the LEARN_STEP / LEARN_RESET / LEARN_UPDATED broadcasts (the same bare-event cascade the lab routers use), applies the domain computation, halts the clock by setting the shared entity's done flag (the sibling is done's ONLY writer — it must also clear it on LEARN_RESET), and owns the scene render — this atom renders only its control strip and step caption. Standalone by default; behind a lab router set matchMode and it renders only when MODE_SELECTED matches."
|
|
3
|
+
orbital LearnTransportOrbital {
|
|
4
|
+
entity LearnTransportScene [runtime, shared] {
|
|
5
|
+
id : string!
|
|
6
|
+
active : boolean = false
|
|
7
|
+
title : string
|
|
8
|
+
running : boolean = false
|
|
9
|
+
steps : int = 0
|
|
10
|
+
elapsedMs : number = 0
|
|
11
|
+
done : boolean = false
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
trait LearnTransportSim -> @rebindable LearnTransportScene [interaction, instance] {
|
|
15
|
+
initial: idle
|
|
16
|
+
|
|
17
|
+
state idle {
|
|
18
|
+
INIT -> idle when (== @config.matchMode "")
|
|
19
|
+
(set @entity.active true)
|
|
20
|
+
(set @entity.title @config.title)
|
|
21
|
+
(set @entity.running @config.autoRun)
|
|
22
|
+
(set @entity.steps 0)
|
|
23
|
+
(set @entity.elapsedMs 0)
|
|
24
|
+
(render-ui main {
|
|
25
|
+
type: box
|
|
26
|
+
padding: md
|
|
27
|
+
children: [
|
|
28
|
+
{ type: stack, direction: vertical, gap: sm, children: [
|
|
29
|
+
{ type: typography, variant: h4, content: @entity.title },
|
|
30
|
+
{ type: stack, direction: horizontal, gap: sm, children: [
|
|
31
|
+
{ type: button, action: STEP, label: "Step", variant: primary },
|
|
32
|
+
{ type: button, action: TOGGLE_RUN, label: (if @entity.running "Pause" "Run"), variant: secondary },
|
|
33
|
+
{ type: button, action: RESET, label: "Reset", variant: ghost }
|
|
34
|
+
] },
|
|
35
|
+
{ type: typography, variant: caption, content: (str/concat "Steps: " @entity.steps (if @entity.done " — done" (if @entity.running " — auto-stepping" " — paused"))) }
|
|
36
|
+
] }
|
|
37
|
+
]
|
|
38
|
+
})
|
|
39
|
+
(emit LEARN_UPDATED { running: @entity.running, steps: @entity.steps })
|
|
40
|
+
|
|
41
|
+
MODE_SELECTED -> idle when (== ?mode @config.matchMode)
|
|
42
|
+
(set @entity.active true)
|
|
43
|
+
(set @entity.title @config.title)
|
|
44
|
+
(set @entity.running @config.autoRun)
|
|
45
|
+
(set @entity.steps 0)
|
|
46
|
+
(set @entity.elapsedMs 0)
|
|
47
|
+
(render-ui main {
|
|
48
|
+
type: box
|
|
49
|
+
padding: md
|
|
50
|
+
children: [
|
|
51
|
+
{ type: stack, direction: vertical, gap: sm, children: [
|
|
52
|
+
{ type: typography, variant: h4, content: @entity.title },
|
|
53
|
+
{ type: stack, direction: horizontal, gap: sm, children: [
|
|
54
|
+
{ type: button, action: STEP, label: "Step", variant: primary },
|
|
55
|
+
{ type: button, action: TOGGLE_RUN, label: (if @entity.running "Pause" "Run"), variant: secondary },
|
|
56
|
+
{ type: button, action: RESET, label: "Reset", variant: ghost }
|
|
57
|
+
] },
|
|
58
|
+
{ type: typography, variant: caption, content: (str/concat "Steps: " @entity.steps (if @entity.done " — done" (if @entity.running " — auto-stepping" " — paused"))) }
|
|
59
|
+
] }
|
|
60
|
+
]
|
|
61
|
+
})
|
|
62
|
+
(emit LEARN_UPDATED { running: @entity.running, steps: @entity.steps })
|
|
63
|
+
|
|
64
|
+
STEP -> idle when (and (== @entity.active true) (not (== @entity.done true)))
|
|
65
|
+
(set @entity.steps (+ @entity.steps 1))
|
|
66
|
+
(render-ui main {
|
|
67
|
+
type: box
|
|
68
|
+
padding: md
|
|
69
|
+
children: [
|
|
70
|
+
{ type: stack, direction: vertical, gap: sm, children: [
|
|
71
|
+
{ type: typography, variant: h4, content: @entity.title },
|
|
72
|
+
{ type: stack, direction: horizontal, gap: sm, children: [
|
|
73
|
+
{ type: button, action: STEP, label: "Step", variant: primary },
|
|
74
|
+
{ type: button, action: TOGGLE_RUN, label: (if @entity.running "Pause" "Run"), variant: secondary },
|
|
75
|
+
{ type: button, action: RESET, label: "Reset", variant: ghost }
|
|
76
|
+
] },
|
|
77
|
+
{ type: typography, variant: caption, content: (str/concat "Steps: " @entity.steps (if @entity.done " — done" (if @entity.running " — auto-stepping" " — paused"))) }
|
|
78
|
+
] }
|
|
79
|
+
]
|
|
80
|
+
})
|
|
81
|
+
(emit LEARN_STEP { steps: @entity.steps })
|
|
82
|
+
|
|
83
|
+
TOGGLE_RUN -> idle when (== @entity.active true)
|
|
84
|
+
(set @entity.running (not @entity.running))
|
|
85
|
+
(render-ui main {
|
|
86
|
+
type: box
|
|
87
|
+
padding: md
|
|
88
|
+
children: [
|
|
89
|
+
{ type: stack, direction: vertical, gap: sm, children: [
|
|
90
|
+
{ type: typography, variant: h4, content: @entity.title },
|
|
91
|
+
{ type: stack, direction: horizontal, gap: sm, children: [
|
|
92
|
+
{ type: button, action: STEP, label: "Step", variant: primary },
|
|
93
|
+
{ type: button, action: TOGGLE_RUN, label: (if @entity.running "Pause" "Run"), variant: secondary },
|
|
94
|
+
{ type: button, action: RESET, label: "Reset", variant: ghost }
|
|
95
|
+
] },
|
|
96
|
+
{ type: typography, variant: caption, content: (str/concat "Steps: " @entity.steps (if @entity.done " — done" (if @entity.running " — auto-stepping" " — paused"))) }
|
|
97
|
+
] }
|
|
98
|
+
]
|
|
99
|
+
})
|
|
100
|
+
(emit LEARN_UPDATED { running: @entity.running, steps: @entity.steps })
|
|
101
|
+
|
|
102
|
+
RESET -> idle when (== @entity.active true)
|
|
103
|
+
(set @entity.running @config.autoRun)
|
|
104
|
+
(set @entity.steps 0)
|
|
105
|
+
(set @entity.elapsedMs 0)
|
|
106
|
+
(render-ui main {
|
|
107
|
+
type: box
|
|
108
|
+
padding: md
|
|
109
|
+
children: [
|
|
110
|
+
{ type: stack, direction: vertical, gap: sm, children: [
|
|
111
|
+
{ type: typography, variant: h4, content: @entity.title },
|
|
112
|
+
{ type: stack, direction: horizontal, gap: sm, children: [
|
|
113
|
+
{ type: button, action: STEP, label: "Step", variant: primary },
|
|
114
|
+
{ type: button, action: TOGGLE_RUN, label: (if @entity.running "Pause" "Run"), variant: secondary },
|
|
115
|
+
{ type: button, action: RESET, label: "Reset", variant: ghost }
|
|
116
|
+
] },
|
|
117
|
+
{ type: typography, variant: caption, content: (str/concat "Steps: " @entity.steps (if @entity.done " — done" (if @entity.running " — auto-stepping" " — paused"))) }
|
|
118
|
+
] }
|
|
119
|
+
]
|
|
120
|
+
})
|
|
121
|
+
(emit LEARN_RESET { })
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
ticks {
|
|
125
|
+
transportTick every 32ms
|
|
126
|
+
when (and (== @entity.active true) (and (== @entity.running true) (not (== @entity.done true))))
|
|
127
|
+
(set @entity.elapsedMs (+ @entity.elapsedMs 32))
|
|
128
|
+
(when (>= @entity.elapsedMs @config.stepIntervalMs)
|
|
129
|
+
(do
|
|
130
|
+
(set @entity.elapsedMs 0)
|
|
131
|
+
(set @entity.steps (+ @entity.steps 1))
|
|
132
|
+
(emit LEARN_STEP { steps: @entity.steps })
|
|
133
|
+
))
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
listens {
|
|
137
|
+
MODE_SELECTED {
|
|
138
|
+
mode : string
|
|
139
|
+
}
|
|
140
|
+
@description "Lab router broadcast naming the active mode; this instrument renders when the mode equals matchMode, otherwise renders null."
|
|
141
|
+
@tier "domain"
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
emits {
|
|
145
|
+
LEARN_STEP -> external {
|
|
146
|
+
steps : int
|
|
147
|
+
}
|
|
148
|
+
@description "Fires once per domain step — from the Step button or every stepIntervalMs of running clock — with the step counter; the composed subject trait transitions on it and applies one step of the domain computation. A harmless no-op when the atom runs standalone."
|
|
149
|
+
@synonyms "step, advance, tick, iterate, next"
|
|
150
|
+
@tier "domain"
|
|
151
|
+
LEARN_RESET -> external {
|
|
152
|
+
}
|
|
153
|
+
@description "Fires on Reset after the transport counters re-zero; the composed subject trait reseeds its domain state from config on it. A harmless no-op when the atom runs standalone."
|
|
154
|
+
@synonyms "reset, reseed, restart, clear"
|
|
155
|
+
@tier "domain"
|
|
156
|
+
LEARN_UPDATED -> external {
|
|
157
|
+
running : boolean
|
|
158
|
+
steps : int
|
|
159
|
+
}
|
|
160
|
+
@description "Fires on INIT/MODE_SELECTED/Run-Pause toggle with the transport state — running flag and step counter — so the composed subject trait can repaint its shell (Run/Pause label, step readout). A harmless no-op when the atom runs standalone."
|
|
161
|
+
@synonyms "run, pause, transport, running state"
|
|
162
|
+
@tier "domain"
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
config {
|
|
166
|
+
matchMode : string = ""
|
|
167
|
+
@label "Match Mode"
|
|
168
|
+
@description "When composed behind a lab router, the MODE_SELECTED mode value this instrument responds to. Empty string means standalone — render immediately on INIT."
|
|
169
|
+
@tier "presentation"
|
|
170
|
+
title : string = "Learning Instrument"
|
|
171
|
+
@label "Title"
|
|
172
|
+
@description "Title shown above the transport controls."
|
|
173
|
+
@tier "presentation"
|
|
174
|
+
autoRun : boolean = false
|
|
175
|
+
@label "Auto Run"
|
|
176
|
+
@description "When true the clock starts stepping on INIT; the Reset arm restores this value."
|
|
177
|
+
@tier "domain"
|
|
178
|
+
stepIntervalMs : number = 500
|
|
179
|
+
@label "Step Interval (ms)"
|
|
180
|
+
@description "Milliseconds of running clock per domain step — the 32ms base tick accumulates elapsed time and fires LEARN_STEP each time this interval elapses. 300-900 suits narrated steppers; 32 fires every frame for continuous sims."
|
|
181
|
+
@tier "domain"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
page "/learn-transport" as LearnTransportPage -> LearnTransportSim
|
|
186
|
+
}
|