@almadar/std 16.143.0 → 16.145.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.
Files changed (97) hide show
  1. package/behaviors/lolo/ml/atoms/std-ml-classify.lolo +121 -0
  2. package/behaviors/lolo/ml/atoms/std-ml-exact-check.lolo +90 -0
  3. package/behaviors/lolo/ml/atoms/std-ml-infer.lolo +141 -0
  4. package/behaviors/lolo/ml/atoms/std-ml-label-capture.lolo +75 -0
  5. package/behaviors/lolo/ml/atoms/std-ml-lookup.lolo +83 -0
  6. package/behaviors/lolo/ml/atoms/std-ml-posterior.lolo +104 -0
  7. package/behaviors/lolo/ml/atoms/std-ml-similarity.lolo +154 -0
  8. package/behaviors/lolo/ml/molecules/std-escalating-decision.lolo +271 -0
  9. package/behaviors/lolo/ml/molecules/std-knowledge-tracing.lolo +115 -0
  10. package/behaviors/lolo/ui/core/atoms/std-board.lolo +28 -6
  11. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +23 -6
  12. package/behaviors/lolo/ui/core/atoms/std-calendar.lolo +85 -2
  13. package/behaviors/lolo/ui/core/atoms/std-file-store.lolo +17 -0
  14. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +17 -0
  15. package/behaviors/lolo/ui/core/atoms/ui-typography.lolo +1 -1
  16. package/behaviors/lolo/ui/core/molecules/ui-calendar-grid.lolo +18 -0
  17. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +2 -0
  18. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +3 -2
  19. package/behaviors/lolo/ui/core/molecules/ui-filter-group.lolo +20 -0
  20. package/behaviors/lolo/ui/core/molecules/ui-search-input.lolo +7 -2
  21. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +3 -2
  22. package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +2 -0
  23. package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +2 -0
  24. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +2 -0
  25. package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +2 -0
  26. package/behaviors/registry/factory-signatures.json +5018 -824
  27. package/behaviors/registry/ml/atoms/std-ml-classify.orb +622 -0
  28. package/behaviors/registry/ml/atoms/std-ml-exact-check.orb +505 -0
  29. package/behaviors/registry/ml/atoms/std-ml-infer.orb +770 -0
  30. package/behaviors/registry/ml/atoms/std-ml-label-capture.orb +367 -0
  31. package/behaviors/registry/ml/atoms/std-ml-lookup.orb +473 -0
  32. package/behaviors/registry/ml/atoms/std-ml-posterior.orb +669 -0
  33. package/behaviors/registry/ml/atoms/std-ml-similarity.orb +862 -0
  34. package/behaviors/registry/ml/molecules/std-escalating-decision.orb +1553 -0
  35. package/behaviors/registry/ml/molecules/std-knowledge-tracing.orb +577 -0
  36. package/behaviors/registry/ui/core/atoms/std-board.orb +90 -20
  37. package/behaviors/registry/ui/core/atoms/std-browse.orb +83 -48
  38. package/behaviors/registry/ui/core/atoms/std-calendar.orb +238 -3
  39. package/behaviors/registry/ui/core/atoms/std-file-store.orb +40 -0
  40. package/behaviors/registry/ui/core/atoms/std-version-history.orb +40 -0
  41. package/behaviors/registry/ui/core/atoms/ui-typography.orb +1 -1
  42. package/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +27 -0
  43. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +25 -12
  44. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +26 -13
  45. package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +86 -0
  46. package/behaviors/registry/ui/core/molecules/ui-search-input.orb +37 -1
  47. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +25 -12
  48. package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +13 -0
  49. package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +21 -8
  50. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +13 -0
  51. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +13 -0
  52. package/canonical-operators.json +30 -6
  53. package/dist/behaviors/behaviors-embeddings.json +134 -134
  54. package/dist/behaviors/exports-reader.js +2462 -2080
  55. package/dist/behaviors/functions/index.d.ts +725 -1
  56. package/dist/behaviors/functions/index.js +2437 -2081
  57. package/dist/behaviors/index.d.ts +1 -1
  58. package/dist/behaviors/index.js +2463 -2081
  59. package/dist/behaviors/knob-embeddings.json +1 -1
  60. package/dist/behaviors/query.js +2462 -2080
  61. package/dist/behaviors/registry/factory-signatures.json +5018 -824
  62. package/dist/behaviors/registry/ml/atoms/std-ml-classify.orb +622 -0
  63. package/dist/behaviors/registry/ml/atoms/std-ml-exact-check.orb +505 -0
  64. package/dist/behaviors/registry/ml/atoms/std-ml-infer.orb +770 -0
  65. package/dist/behaviors/registry/ml/atoms/std-ml-label-capture.orb +367 -0
  66. package/dist/behaviors/registry/ml/atoms/std-ml-lookup.orb +473 -0
  67. package/dist/behaviors/registry/ml/atoms/std-ml-posterior.orb +669 -0
  68. package/dist/behaviors/registry/ml/atoms/std-ml-similarity.orb +862 -0
  69. package/dist/behaviors/registry/ml/molecules/std-escalating-decision.orb +1553 -0
  70. package/dist/behaviors/registry/ml/molecules/std-knowledge-tracing.orb +577 -0
  71. package/dist/behaviors/registry/ui/core/atoms/std-board.orb +90 -20
  72. package/dist/behaviors/registry/ui/core/atoms/std-browse.orb +83 -48
  73. package/dist/behaviors/registry/ui/core/atoms/std-calendar.orb +238 -3
  74. package/dist/behaviors/registry/ui/core/atoms/std-file-store.orb +40 -0
  75. package/dist/behaviors/registry/ui/core/atoms/std-version-history.orb +40 -0
  76. package/dist/behaviors/registry/ui/core/atoms/ui-typography.orb +1 -1
  77. package/dist/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +27 -0
  78. package/dist/behaviors/registry/ui/core/molecules/ui-data-grid.orb +25 -12
  79. package/dist/behaviors/registry/ui/core/molecules/ui-data-list.orb +26 -13
  80. package/dist/behaviors/registry/ui/core/molecules/ui-filter-group.orb +86 -0
  81. package/dist/behaviors/registry/ui/core/molecules/ui-search-input.orb +37 -1
  82. package/dist/behaviors/registry/ui/core/molecules/ui-table-view.orb +25 -12
  83. package/dist/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +13 -0
  84. package/dist/behaviors/registry/ui/core/organisms/ui-entity-list.orb +21 -8
  85. package/dist/behaviors/registry/ui/core/organisms/ui-entity-table.orb +13 -0
  86. package/dist/behaviors/registry/ui/core/organisms/ui-timeline.orb +13 -0
  87. package/dist/behaviors-embeddings.json +134 -134
  88. package/dist/index.d.ts +1 -1
  89. package/dist/index.js +2498 -2088
  90. package/dist/knob-embeddings.json +1 -1
  91. package/dist/modules/array.js +28 -0
  92. package/dist/modules/contract.js +4 -4
  93. package/dist/modules/data.js +3 -3
  94. package/dist/modules/index.js +35 -7
  95. package/dist/registry/factory-signatures.json +5018 -824
  96. package/dist/registry.js +35 -7
  97. package/package.json +6 -5
@@ -0,0 +1,473 @@
1
+ {
2
+ "description": "Rung R1 of the intelligence ladder — finds the candidate value in a list of accepted values; abstains when nothing matches.",
3
+ "ledger": {
4
+ "entries": {
5
+ "ent_01KYBMJJT4DMQ50X37K7WJ7XDD": {
6
+ "bakedName": "KeyLookup",
7
+ "curName": "KeyLookup",
8
+ "id": "ent_01KYBMJJT4DMQ50X37K7WJ7XDD",
9
+ "kind": "entity",
10
+ "owner": "workspace",
11
+ "renames": []
12
+ },
13
+ "evt_01KYBMJJT48QRYPT14NG0GMXMY": {
14
+ "bakedName": "KEY_MISS",
15
+ "curName": "KEY_MISS",
16
+ "id": "evt_01KYBMJJT48QRYPT14NG0GMXMY",
17
+ "kind": "event",
18
+ "owner": "workspace",
19
+ "parent": "trt_01KYBMJJT4887BT5V7KWCDW7XR",
20
+ "renames": []
21
+ },
22
+ "evt_01KYBMJJT4K8ANYTCSAH8QZ0JC": {
23
+ "bakedName": "INIT",
24
+ "curName": "INIT",
25
+ "id": "evt_01KYBMJJT4K8ANYTCSAH8QZ0JC",
26
+ "kind": "event",
27
+ "owner": "workspace",
28
+ "parent": "trt_01KYBMJJT4887BT5V7KWCDW7XR",
29
+ "renames": []
30
+ },
31
+ "evt_01KYBMJJT4NBFQTG784CP78ERD": {
32
+ "bakedName": "LOOKUP",
33
+ "curName": "LOOKUP",
34
+ "id": "evt_01KYBMJJT4NBFQTG784CP78ERD",
35
+ "kind": "event",
36
+ "owner": "workspace",
37
+ "parent": "trt_01KYBMJJT4887BT5V7KWCDW7XR",
38
+ "renames": []
39
+ },
40
+ "evt_01KYBMJJT4XY85SQDER4Q9CHW1": {
41
+ "bakedName": "KEY_HIT",
42
+ "curName": "KEY_HIT",
43
+ "id": "evt_01KYBMJJT4XY85SQDER4Q9CHW1",
44
+ "kind": "event",
45
+ "owner": "workspace",
46
+ "parent": "trt_01KYBMJJT4887BT5V7KWCDW7XR",
47
+ "renames": []
48
+ },
49
+ "evt_01KYC09GZR0684YDEM0BAP2W5X": {
50
+ "bakedName": "RESET",
51
+ "curName": "RESET",
52
+ "id": "evt_01KYC09GZR0684YDEM0BAP2W5X",
53
+ "kind": "event",
54
+ "owner": "workspace",
55
+ "parent": "trt_01KYBMJJT4887BT5V7KWCDW7XR",
56
+ "renames": []
57
+ },
58
+ "orb_01KYBMJJT4GF4NBRN7SX8PTDSE": {
59
+ "bakedName": "MlLookupOrbital",
60
+ "curName": "MlLookupOrbital",
61
+ "id": "orb_01KYBMJJT4GF4NBRN7SX8PTDSE",
62
+ "kind": "orbital",
63
+ "owner": "workspace",
64
+ "renames": []
65
+ },
66
+ "pag_01KYBMJJT4GJK8ZDFRAM7HJ9HR": {
67
+ "bakedName": "MlLookupPage",
68
+ "curName": "MlLookupPage",
69
+ "id": "pag_01KYBMJJT4GJK8ZDFRAM7HJ9HR",
70
+ "kind": "page",
71
+ "owner": "workspace",
72
+ "renames": []
73
+ },
74
+ "trt_01KYBMJJT4887BT5V7KWCDW7XR": {
75
+ "bakedName": "LookupRun",
76
+ "curName": "LookupRun",
77
+ "id": "trt_01KYBMJJT4887BT5V7KWCDW7XR",
78
+ "kind": "trait",
79
+ "owner": "workspace",
80
+ "renames": []
81
+ }
82
+ },
83
+ "schemaVersion": 1
84
+ },
85
+ "name": "std-ml-lookup",
86
+ "orbitals": [
87
+ {
88
+ "entity": {
89
+ "fields": [
90
+ {
91
+ "default": false,
92
+ "name": "matched",
93
+ "type": "boolean"
94
+ },
95
+ {
96
+ "default": "idle",
97
+ "name": "status",
98
+ "type": "string",
99
+ "values": [
100
+ "idle",
101
+ "checked"
102
+ ]
103
+ }
104
+ ],
105
+ "id": "ent_01KYBMJJT4DMQ50X37K7WJ7XDD",
106
+ "name": "KeyLookup",
107
+ "persistence": "runtime"
108
+ },
109
+ "id": "orb_01KYBMJJT4GF4NBRN7SX8PTDSE",
110
+ "name": "MlLookupOrbital",
111
+ "pages": [
112
+ {
113
+ "id": "pag_01KYBMJJT4GJK8ZDFRAM7HJ9HR",
114
+ "name": "MlLookupPage",
115
+ "path": "/ml-lookup",
116
+ "traits": [
117
+ {
118
+ "ref": "LookupRun",
119
+ "refId": "trt_01KYBMJJT4887BT5V7KWCDW7XR"
120
+ }
121
+ ]
122
+ }
123
+ ],
124
+ "traits": [
125
+ {
126
+ "category": "lifecycle",
127
+ "config": {
128
+ "matchField": {
129
+ "default": "",
130
+ "description": "When the accepted list holds objects rather than scalars, the field to compare against the candidate; empty compares each element itself",
131
+ "label": "Match field",
132
+ "tier": "domain",
133
+ "type": "string"
134
+ },
135
+ "normalize": {
136
+ "default": true,
137
+ "description": "Trim and lowercase both sides before comparing",
138
+ "label": "Normalize",
139
+ "tier": "policy",
140
+ "type": "boolean"
141
+ }
142
+ },
143
+ "emits": [
144
+ {
145
+ "description": "Fired when the candidate matches an entry in the accepted list",
146
+ "event": "KEY_HIT",
147
+ "eventId": "evt_01KYBMJJT4XY85SQDER4Q9CHW1",
148
+ "payloadSchema": [
149
+ {
150
+ "name": "candidate",
151
+ "required": true,
152
+ "type": "any"
153
+ },
154
+ {
155
+ "name": "entry",
156
+ "required": true,
157
+ "type": "any"
158
+ }
159
+ ],
160
+ "scope": "external",
161
+ "tier": "primary"
162
+ },
163
+ {
164
+ "description": "Abstain — candidate matches nothing in the accepted list; the next rung should take over. request echoes the originating request untouched so the next rung can project its own inputs out of it",
165
+ "event": "KEY_MISS",
166
+ "eventId": "evt_01KYBMJJT48QRYPT14NG0GMXMY",
167
+ "payloadSchema": [
168
+ {
169
+ "name": "candidate",
170
+ "required": true,
171
+ "type": "any"
172
+ },
173
+ {
174
+ "name": "request",
175
+ "type": "object"
176
+ }
177
+ ],
178
+ "scope": "external",
179
+ "tier": "primary"
180
+ }
181
+ ],
182
+ "entityRefIds": {
183
+ "KeyLookup": "ent_01KYBMJJT4DMQ50X37K7WJ7XDD"
184
+ },
185
+ "id": "trt_01KYBMJJT4887BT5V7KWCDW7XR",
186
+ "linkedEntity": "KeyLookup",
187
+ "linkedEntityId": "ent_01KYBMJJT4DMQ50X37K7WJ7XDD",
188
+ "name": "LookupRun",
189
+ "scope": "instance",
190
+ "stateMachine": {
191
+ "events": [
192
+ {
193
+ "id": "evt_01KYBMJJT4K8ANYTCSAH8QZ0JC",
194
+ "key": "INIT",
195
+ "name": "Initialize"
196
+ },
197
+ {
198
+ "id": "evt_01KYBMJJT4NBFQTG784CP78ERD",
199
+ "key": "LOOKUP",
200
+ "name": "Lookup",
201
+ "payloadSchema": [
202
+ {
203
+ "name": "candidate",
204
+ "required": true,
205
+ "type": "any"
206
+ },
207
+ {
208
+ "name": "accepted",
209
+ "required": true,
210
+ "type": "[any]"
211
+ },
212
+ {
213
+ "name": "request",
214
+ "type": "object"
215
+ }
216
+ ]
217
+ },
218
+ {
219
+ "id": "evt_01KYC09GZR0684YDEM0BAP2W5X",
220
+ "key": "RESET",
221
+ "name": "Reset"
222
+ },
223
+ {
224
+ "description": "Fired when the candidate matches an entry in the accepted list",
225
+ "id": "evt_01KYBMJJT4XY85SQDER4Q9CHW1",
226
+ "key": "KEY_HIT",
227
+ "name": "Key Hit",
228
+ "payloadSchema": [
229
+ {
230
+ "name": "candidate",
231
+ "required": true,
232
+ "type": "any"
233
+ },
234
+ {
235
+ "name": "entry",
236
+ "required": true,
237
+ "type": "any"
238
+ }
239
+ ],
240
+ "tier": "primary"
241
+ },
242
+ {
243
+ "description": "Abstain — candidate matches nothing in the accepted list; the next rung should take over. request echoes the originating request untouched so the next rung can project its own inputs out of it",
244
+ "id": "evt_01KYBMJJT48QRYPT14NG0GMXMY",
245
+ "key": "KEY_MISS",
246
+ "name": "Key Miss",
247
+ "payloadSchema": [
248
+ {
249
+ "name": "candidate",
250
+ "required": true,
251
+ "type": "any"
252
+ },
253
+ {
254
+ "name": "request",
255
+ "type": "object"
256
+ }
257
+ ],
258
+ "tier": "primary"
259
+ }
260
+ ],
261
+ "states": [
262
+ {
263
+ "isInitial": true,
264
+ "name": "idle"
265
+ },
266
+ {
267
+ "name": "checked"
268
+ }
269
+ ],
270
+ "transitions": [
271
+ {
272
+ "effects": [
273
+ [
274
+ "set",
275
+ "@entity.matched",
276
+ false
277
+ ],
278
+ [
279
+ "set",
280
+ "@entity.status",
281
+ "idle"
282
+ ]
283
+ ],
284
+ "event": "INIT",
285
+ "eventId": "evt_01KYBMJJT4K8ANYTCSAH8QZ0JC",
286
+ "from": "idle",
287
+ "to": "idle"
288
+ },
289
+ {
290
+ "effects": [
291
+ [
292
+ "let",
293
+ [
294
+ [
295
+ "candStr",
296
+ [
297
+ "str/concat",
298
+ "@payload.candidate"
299
+ ]
300
+ ],
301
+ [
302
+ "candNorm",
303
+ [
304
+ "if",
305
+ "@config.normalize",
306
+ [
307
+ "str/lower",
308
+ [
309
+ "str/trim",
310
+ "@candStr"
311
+ ]
312
+ ],
313
+ "@candStr"
314
+ ]
315
+ ],
316
+ [
317
+ "found",
318
+ [
319
+ "array/find",
320
+ "@payload.accepted",
321
+ [
322
+ "fn",
323
+ "item",
324
+ [
325
+ "let",
326
+ [
327
+ [
328
+ "raw",
329
+ [
330
+ "if",
331
+ [
332
+ "==",
333
+ "@config.matchField",
334
+ ""
335
+ ],
336
+ "@item",
337
+ [
338
+ "object/get",
339
+ "@item",
340
+ "@config.matchField"
341
+ ]
342
+ ]
343
+ ],
344
+ [
345
+ "rawStr",
346
+ [
347
+ "str/concat",
348
+ "@raw"
349
+ ]
350
+ ],
351
+ [
352
+ "rawNorm",
353
+ [
354
+ "if",
355
+ "@config.normalize",
356
+ [
357
+ "str/lower",
358
+ [
359
+ "str/trim",
360
+ "@rawStr"
361
+ ]
362
+ ],
363
+ "@rawStr"
364
+ ]
365
+ ]
366
+ ],
367
+ [
368
+ "==",
369
+ "@rawNorm",
370
+ "@candNorm"
371
+ ]
372
+ ]
373
+ ]
374
+ ]
375
+ ]
376
+ ],
377
+ [
378
+ "if",
379
+ [
380
+ "!=",
381
+ "@found",
382
+ null
383
+ ],
384
+ [
385
+ "do",
386
+ [
387
+ "set",
388
+ "@entity.matched",
389
+ true
390
+ ],
391
+ [
392
+ "set",
393
+ "@entity.status",
394
+ "checked"
395
+ ],
396
+ [
397
+ "emit",
398
+ "KEY_HIT",
399
+ {
400
+ "candidate": "@payload.candidate",
401
+ "entry": "@found"
402
+ }
403
+ ]
404
+ ],
405
+ [
406
+ "do",
407
+ [
408
+ "set",
409
+ "@entity.matched",
410
+ false
411
+ ],
412
+ [
413
+ "set",
414
+ "@entity.status",
415
+ "checked"
416
+ ],
417
+ [
418
+ "emit",
419
+ "KEY_MISS",
420
+ {
421
+ "candidate": "@payload.candidate",
422
+ "request": "@payload.request"
423
+ }
424
+ ]
425
+ ]
426
+ ]
427
+ ]
428
+ ],
429
+ "event": "LOOKUP",
430
+ "eventId": "evt_01KYBMJJT4NBFQTG784CP78ERD",
431
+ "from": "idle",
432
+ "to": "checked"
433
+ },
434
+ {
435
+ "effects": [
436
+ [
437
+ "set",
438
+ "@entity.status",
439
+ "checked"
440
+ ]
441
+ ],
442
+ "event": "INIT",
443
+ "eventId": "evt_01KYBMJJT4K8ANYTCSAH8QZ0JC",
444
+ "from": "checked",
445
+ "to": "checked"
446
+ },
447
+ {
448
+ "effects": [
449
+ [
450
+ "set",
451
+ "@entity.matched",
452
+ false
453
+ ],
454
+ [
455
+ "set",
456
+ "@entity.status",
457
+ "idle"
458
+ ]
459
+ ],
460
+ "event": "RESET",
461
+ "eventId": "evt_01KYC09GZR0684YDEM0BAP2W5X",
462
+ "from": "checked",
463
+ "to": "idle"
464
+ }
465
+ ]
466
+ }
467
+ }
468
+ ]
469
+ }
470
+ ],
471
+ "schemaVersion": 1,
472
+ "version": "1.0.0"
473
+ }