@almadar/std 16.212.0 → 16.214.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 (60) hide show
  1. package/behaviors/lolo/agent/organisms/std-agent-rabit.lolo +1 -0
  2. package/behaviors/lolo/infra/atoms/std-notification-center.lolo +19 -1
  3. package/behaviors/lolo/ui/core/atoms/std-rating-review.lolo +214 -3
  4. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +13 -0
  5. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +13 -0
  6. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +13 -0
  7. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +13 -0
  8. package/behaviors/lolo/ui/game/atoms/ui-canvas-2d.lolo +2 -2
  9. package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +2 -2
  10. package/behaviors/lolo/ui/game/atoms/ui-control-grid.lolo +2 -2
  11. package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +2 -2
  12. package/behaviors/registry/agent/organisms/std-agent-rabit.orb +8 -0
  13. package/behaviors/registry/infra/atoms/std-notification-center.orb +176 -1
  14. package/behaviors/registry/ui/core/atoms/std-rating-review.orb +443 -2
  15. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +58 -0
  16. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +58 -0
  17. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +58 -0
  18. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +58 -0
  19. package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +2 -2
  20. package/behaviors/registry/ui/game/atoms/ui-canvas.orb +2 -2
  21. package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +2 -2
  22. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +2 -2
  23. package/canonical-operators.json +322 -234
  24. package/dist/behaviors/exports-reader.js +626 -6
  25. package/dist/behaviors/functions/index.d.ts +27 -13
  26. package/dist/behaviors/functions/index.js +624 -7
  27. package/dist/behaviors/index.d.ts +1 -1
  28. package/dist/behaviors/index.js +627 -7
  29. package/dist/behaviors/query.js +626 -6
  30. package/dist/behaviors-embeddings.hash.json +3 -3
  31. package/dist/behaviors-embeddings.json +1 -1
  32. package/dist/behaviors-registry.json +293 -309
  33. package/dist/index.d.ts +1 -1
  34. package/dist/index.js +824 -208
  35. package/dist/knob-embeddings.hash.json +3 -3
  36. package/dist/knob-embeddings.json +1 -1
  37. package/dist/modules/array.js +22 -22
  38. package/dist/modules/behavior.js +2 -2
  39. package/dist/modules/browser.js +1 -1
  40. package/dist/modules/contract.js +6 -6
  41. package/dist/modules/core.js +18 -18
  42. package/dist/modules/data.js +7 -7
  43. package/dist/modules/graph.js +14 -14
  44. package/dist/modules/index.js +197 -201
  45. package/dist/modules/integration.js +1 -1
  46. package/dist/modules/llm.js +2 -2
  47. package/dist/modules/nn.js +6 -6
  48. package/dist/modules/object.js +11 -11
  49. package/dist/modules/prob.js +4 -4
  50. package/dist/modules/session.js +4 -4
  51. package/dist/modules/str.js +1 -1
  52. package/dist/modules/tensor.js +29 -29
  53. package/dist/modules/time.js +17 -17
  54. package/dist/modules/trace.js +1 -1
  55. package/dist/modules/train.js +23 -23
  56. package/dist/modules/validate.js +23 -27
  57. package/dist/modules/workspace.js +5 -5
  58. package/dist/registry/factory-signatures.json +1 -1
  59. package/dist/registry.js +197 -201
  60. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "2.0.0",
3
3
  "description": "Canonical operator registry for Almadar. Generated from @almadar/std/modules. Consumed by orbital-compiler via include_str!.",
4
- "generated": "2026-08-22T07:56:44.692Z",
4
+ "generated": "2026-09-14T02:52:39.103Z",
5
5
  "categories": {
6
6
  "arithmetic": {
7
7
  "description": "Numeric operations",
@@ -728,7 +728,7 @@
728
728
  }
729
729
  ],
730
730
  "examples": [
731
- "(array/avg @ratings \"score\")"
731
+ "(array/avg [{\"score\":80},{\"score\":90}] \"score\")"
732
732
  ],
733
733
  "docsSource": "reference-docs"
734
734
  },
@@ -799,7 +799,7 @@
799
799
  }
800
800
  ],
801
801
  "examples": [
802
- "(array/count @tasks (fn t (= @t.status \"done\")))"
802
+ "(array/count [{\"status\":\"done\"},{\"status\":\"todo\"}] [\"fn\",\"t\",[\"=\",\"@t.status\",\"done\"]])"
803
803
  ],
804
804
  "docsSource": "reference-docs"
805
805
  },
@@ -824,7 +824,7 @@
824
824
  }
825
825
  ],
826
826
  "examples": [
827
- "(array/drop @items 5)"
827
+ "(array/drop [1,2,3,4,5,6,7] 5)"
828
828
  ],
829
829
  "docsSource": "reference-docs"
830
830
  },
@@ -849,7 +849,7 @@
849
849
  }
850
850
  ],
851
851
  "examples": [
852
- "(array/dropLast @items 2)"
852
+ "(array/dropLast [1,2,3,4,5] 2)"
853
853
  ],
854
854
  "docsSource": "reference-docs"
855
855
  },
@@ -875,7 +875,7 @@
875
875
  }
876
876
  ],
877
877
  "examples": [
878
- "(array/every @items (fn x (> @x.price 0)))"
878
+ "(array/every [{\"price\":5},{\"price\":10}] [\"fn\",\"x\",[\">\",\"@x.price\",0]])"
879
879
  ],
880
880
  "docsSource": "reference-docs"
881
881
  },
@@ -902,7 +902,7 @@
902
902
  }
903
903
  ],
904
904
  "examples": [
905
- "(array/filter @items (fn x (> @x.price 100)))"
905
+ "(array/filter [{\"price\":50},{\"price\":150}] [\"fn\",\"x\",[\">\",\"@x.price\",100]])"
906
906
  ],
907
907
  "docsSource": "reference-docs"
908
908
  },
@@ -929,7 +929,7 @@
929
929
  }
930
930
  ],
931
931
  "examples": [
932
- "(array/find @items (fn x (= @x.status \"active\")))"
932
+ "(array/find [{\"status\":\"active\"},{\"status\":\"archived\"}] [\"fn\",\"x\",[\"=\",\"@x.status\",\"active\"]])"
933
933
  ],
934
934
  "docsSource": "reference-docs"
935
935
  },
@@ -955,7 +955,7 @@
955
955
  }
956
956
  ],
957
957
  "examples": [
958
- "(array/findIndex @items (fn x (= @x.status \"active\")))"
958
+ "(array/findIndex [{\"status\":\"active\"},{\"status\":\"archived\"}] [\"fn\",\"x\",[\"=\",\"@x.status\",\"active\"]])"
959
959
  ],
960
960
  "docsSource": "reference-docs"
961
961
  },
@@ -1021,7 +1021,7 @@
1021
1021
  }
1022
1022
  ],
1023
1023
  "examples": [
1024
- "(array/groupBy @orders \"status\")"
1024
+ "(array/groupBy [{\"status\":\"new\"},{\"status\":\"done\"}] \"status\")"
1025
1025
  ],
1026
1026
  "docsSource": "reference-docs"
1027
1027
  },
@@ -1169,7 +1169,7 @@
1169
1169
  }
1170
1170
  ],
1171
1171
  "examples": [
1172
- "(array/map @items (fn x (* @x.price 1.1)))"
1172
+ "(array/map [{\"price\":100},{\"price\":200}] [\"fn\",\"x\",[\"*\",\"@x.price\",1.1]])"
1173
1173
  ],
1174
1174
  "docsSource": "reference-docs"
1175
1175
  },
@@ -1194,7 +1194,7 @@
1194
1194
  }
1195
1195
  ],
1196
1196
  "examples": [
1197
- "(array/max @products \"price\")"
1197
+ "(array/max [{\"price\":3},{\"price\":9}] \"price\")"
1198
1198
  ],
1199
1199
  "docsSource": "reference-docs"
1200
1200
  },
@@ -1219,7 +1219,7 @@
1219
1219
  }
1220
1220
  ],
1221
1221
  "examples": [
1222
- "(array/min @products \"price\")"
1222
+ "(array/min [{\"price\":3},{\"price\":9}] \"price\")"
1223
1223
  ],
1224
1224
  "docsSource": "reference-docs"
1225
1225
  },
@@ -1296,7 +1296,7 @@
1296
1296
  }
1297
1297
  ],
1298
1298
  "examples": [
1299
- "(array/partition @items (fn x (> @x.price 50)))"
1299
+ "(array/partition [{\"price\":30},{\"price\":80}] [\"fn\",\"x\",[\">\",\"@x.price\",50]])"
1300
1300
  ],
1301
1301
  "docsSource": "reference-docs"
1302
1302
  },
@@ -1373,7 +1373,7 @@
1373
1373
  }
1374
1374
  ],
1375
1375
  "examples": [
1376
- "(array/reduce @items (fn (acc \"x\") (+ @acc @x.price)) 0)"
1376
+ "(array/reduce [{\"price\":10},{\"price\":25}] 0 [\"fn\",[\"acc\",\"x\"],[\"+\",\"@acc\",\"@x.price\"]])"
1377
1377
  ],
1378
1378
  "docsSource": "reference-docs"
1379
1379
  },
@@ -1400,7 +1400,7 @@
1400
1400
  }
1401
1401
  ],
1402
1402
  "examples": [
1403
- "(array/reject @items (fn x (= @x.status \"deleted\")))"
1403
+ "(array/reject [{\"status\":\"active\"},{\"status\":\"deleted\"}] [\"fn\",\"x\",[\"=\",\"@x.status\",\"deleted\"]])"
1404
1404
  ],
1405
1405
  "docsSource": "reference-docs"
1406
1406
  },
@@ -1546,7 +1546,7 @@
1546
1546
  }
1547
1547
  ],
1548
1548
  "examples": [
1549
- "(array/some @items (fn x (= @x.status \"active\")))"
1549
+ "(array/some [{\"status\":\"archived\"},{\"status\":\"active\"}] [\"fn\",\"x\",[\"=\",\"@x.status\",\"active\"]])"
1550
1550
  ],
1551
1551
  "docsSource": "reference-docs"
1552
1552
  },
@@ -1576,7 +1576,7 @@
1576
1576
  }
1577
1577
  ],
1578
1578
  "examples": [
1579
- "(array/sort @items \"price\" \"desc\")"
1579
+ "(array/sort [{\"price\":3},{\"price\":9},{\"price\":5}] \"price\" \"desc\")"
1580
1580
  ],
1581
1581
  "docsSource": "reference-docs"
1582
1582
  },
@@ -1601,7 +1601,7 @@
1601
1601
  }
1602
1602
  ],
1603
1603
  "examples": [
1604
- "(array/sum @cart.items \"price\")"
1604
+ "(array/sum [{\"price\":10},{\"price\":25}] \"price\")"
1605
1605
  ],
1606
1606
  "docsSource": "reference-docs"
1607
1607
  },
@@ -1626,7 +1626,7 @@
1626
1626
  }
1627
1627
  ],
1628
1628
  "examples": [
1629
- "(array/take @items 5)"
1629
+ "(array/take [1,2,3,4,5,6,7] 5)"
1630
1630
  ],
1631
1631
  "docsSource": "reference-docs"
1632
1632
  },
@@ -1651,7 +1651,7 @@
1651
1651
  }
1652
1652
  ],
1653
1653
  "examples": [
1654
- "(array/takeLast @items 3)"
1654
+ "(array/takeLast [1,2,3,4,5] 3)"
1655
1655
  ],
1656
1656
  "docsSource": "reference-docs"
1657
1657
  },
@@ -1837,7 +1837,7 @@
1837
1837
  }
1838
1838
  ],
1839
1839
  "examples": [
1840
- "(async/retry)\n (call \"api\" \"fetchData\" { \"id\": @entity.id })\n { \"attempts\": 3, \"backoff\": \"exponential\", \"baseDelay\": 1000 }]"
1840
+ "(async/race [\"call\",\"api1\"] [\"call\",\"api2\"])"
1841
1841
  ],
1842
1842
  "docsSource": "reference-docs"
1843
1843
  },
@@ -2119,6 +2119,22 @@
2119
2119
  }
2120
2120
  },
2121
2121
  "title": "Geolocation Current",
2122
+ "params": [
2123
+ {
2124
+ "name": "options",
2125
+ "type": {
2126
+ "kind": "object",
2127
+ "fields": {
2128
+ "enableHighAccuracy": "string",
2129
+ "timeout": "number",
2130
+ "maximumAge": "number"
2131
+ },
2132
+ "open": true
2133
+ },
2134
+ "description": "Optional PositionOptions: { enableHighAccuracy?: boolean, timeout?: number, maximumAge?: number }",
2135
+ "optional": true
2136
+ }
2137
+ ],
2122
2138
  "examples": [
2123
2139
  "(browser/geolocation-current) // => {\"latitude\": 37.77, \"longitude\": -122.41, \"accuracy\": 100}"
2124
2140
  ],
@@ -2148,6 +2164,21 @@
2148
2164
  }
2149
2165
  },
2150
2166
  "title": "Open File Picker",
2167
+ "params": [
2168
+ {
2169
+ "name": "options",
2170
+ "type": {
2171
+ "kind": "object",
2172
+ "fields": {
2173
+ "multiple": "string",
2174
+ "accept": "string"
2175
+ },
2176
+ "open": true
2177
+ },
2178
+ "description": "Optional picker config: { multiple?: boolean, accept?: string, types?: Array<{description, accept}> }",
2179
+ "optional": true
2180
+ }
2181
+ ],
2151
2182
  "examples": [
2152
2183
  "(browser/open-file-picker) // => [{\"name\": \"file.txt\", \"size\": 1024, \"type\": \"text/plain\", \"lastModified\": 1234567890}]"
2153
2184
  ],
@@ -2250,7 +2281,7 @@
2250
2281
  }
2251
2282
  ],
2252
2283
  "examples": [
2253
- "(checkpoint/save @model \"model-v1\")"
2284
+ "(checkpoint/save {\"layers\":[{\"type\":\"dense\",\"units\":2}]} \"ckpt-1\")"
2254
2285
  ],
2255
2286
  "docsSource": "generated"
2256
2287
  },
@@ -2285,7 +2316,7 @@
2285
2316
  }
2286
2317
  ],
2287
2318
  "examples": [
2288
- "(compose/compose-children @parent) // => {}"
2319
+ "(compose/compose-children \"GameScreenOrbital\") // => {}"
2289
2320
  ],
2290
2321
  "docsSource": "generated"
2291
2322
  },
@@ -2335,7 +2366,7 @@
2335
2366
  }
2336
2367
  ],
2337
2368
  "examples": [
2338
- "(contract/entity-to-tensor @entity @contract) // => []"
2369
+ "(contract/entity-to-tensor {\"price\":10,\"qty\":2} {\"fields\":[\"price\",\"qty\"]}) // => []"
2339
2370
  ],
2340
2371
  "docsSource": "generated"
2341
2372
  },
@@ -2360,7 +2391,7 @@
2360
2391
  }
2361
2392
  ],
2362
2393
  "examples": [
2363
- "(contract/tensor-to-payload [1 2 3] @contract) // => {}"
2394
+ "(contract/tensor-to-payload [0.5,0.7] {\"fields\":[\"price\",\"qty\"]}) // => {}"
2364
2395
  ],
2365
2396
  "docsSource": "generated"
2366
2397
  },
@@ -2385,7 +2416,7 @@
2385
2416
  }
2386
2417
  ],
2387
2418
  "examples": [
2388
- "(contract/validate-input [1 2 3] @contract) // => {\"valid\": true, \"violations\": []}"
2419
+ "(contract/validate-input [0.5,0.7] {\"ranges\":{\"0\":{\"min\":0,\"max\":1},\"1\":{\"min\":0,\"max\":1}}}) // => {\"valid\": true, \"violations\": []}"
2389
2420
  ],
2390
2421
  "docsSource": "generated"
2391
2422
  },
@@ -2410,7 +2441,7 @@
2410
2441
  }
2411
2442
  ],
2412
2443
  "examples": [
2413
- "(contract/validate-output [1 2 3] @contract) // => {\"valid\": true, \"violations\": []}"
2444
+ "(contract/validate-output [0.5,0.7] {\"ranges\":{\"0\":{\"min\":0,\"max\":1},\"1\":{\"min\":0,\"max\":1}}}) // => {\"valid\": true, \"violations\": []}"
2414
2445
  ],
2415
2446
  "docsSource": "generated"
2416
2447
  },
@@ -2435,7 +2466,7 @@
2435
2466
  }
2436
2467
  ],
2437
2468
  "examples": [
2438
- "(contract/violations [1 2 3] @contract) // => []"
2469
+ "(contract/violations [0.5,1.7] {\"ranges\":{\"0\":{\"min\":0,\"max\":1},\"1\":{\"min\":0,\"max\":1}}}) // => []"
2439
2470
  ],
2440
2471
  "docsSource": "generated"
2441
2472
  },
@@ -2460,7 +2491,7 @@
2460
2491
  }
2461
2492
  ],
2462
2493
  "examples": [
2463
- "(data/augment @data @augmentConfig) // => {}"
2494
+ "(data/augment [[1.0,2.0],[3.0,4.0]] {\"flip\":true,\"rotate\":15}) // => {}"
2464
2495
  ],
2465
2496
  "docsSource": "generated"
2466
2497
  },
@@ -2485,7 +2516,7 @@
2485
2516
  }
2486
2517
  ],
2487
2518
  "examples": [
2488
- "(data/dataloader @dataset 32)"
2519
+ "(data/dataloader [\"data/dataset\",[[1,2],[3,4],[5,6]],{}] {\"batch-size\":2,\"shuffle\":true})"
2489
2520
  ],
2490
2521
  "docsSource": "generated"
2491
2522
  },
@@ -2510,7 +2541,7 @@
2510
2541
  }
2511
2542
  ],
2512
2543
  "examples": [
2513
- "(data/dataset @items @schema)"
2544
+ "(data/dataset [{\"x\":1,\"y\":2}] {\"input\":{\"fields\":[\"x\"]},\"output\":{\"fields\":[\"y\"]}})"
2514
2545
  ],
2515
2546
  "docsSource": "generated"
2516
2547
  },
@@ -2535,7 +2566,7 @@
2535
2566
  }
2536
2567
  ],
2537
2568
  "examples": [
2538
- "(data/normalize @tensor \"z-score\")"
2569
+ "(data/normalize [[1,2],[3,4]] {\"method\":\"standard\"})"
2539
2570
  ],
2540
2571
  "docsSource": "generated"
2541
2572
  },
@@ -2560,7 +2591,7 @@
2560
2591
  }
2561
2592
  ],
2562
2593
  "examples": [
2563
- "(data/pad @sequences 100)"
2594
+ "(data/pad [[1,2,3],[4,5]] {\"max-length\":4,\"pad-value\":0})"
2564
2595
  ],
2565
2596
  "docsSource": "generated"
2566
2597
  },
@@ -2585,7 +2616,7 @@
2585
2616
  }
2586
2617
  ],
2587
2618
  "examples": [
2588
- "(data/split @dataset {\"trainRatio\" 0.8})"
2619
+ "(data/split [\"data/dataset\",[1,2,3,4,5],{}] {\"trainRatio\":0.8})"
2589
2620
  ],
2590
2621
  "docsSource": "generated"
2591
2622
  },
@@ -2610,7 +2641,7 @@
2610
2641
  }
2611
2642
  ],
2612
2643
  "examples": [
2613
- "(data/tokenize @texts @vocab)"
2644
+ "(data/tokenize \"hello world\" {\"method\":\"bpe\",\"max-length\":512})"
2614
2645
  ],
2615
2646
  "docsSource": "generated"
2616
2647
  },
@@ -2626,6 +2657,14 @@
2626
2657
  "kind": "despawn"
2627
2658
  },
2628
2659
  "title": "Despawn",
2660
+ "params": [
2661
+ {
2662
+ "name": "entityId",
2663
+ "type": "string",
2664
+ "description": "Target entity id (defaults to @entity.id)",
2665
+ "optional": true
2666
+ }
2667
+ ],
2629
2668
  "examples": [
2630
2669
  "(despawn)"
2631
2670
  ],
@@ -2756,7 +2795,7 @@
2756
2795
  }
2757
2796
  ],
2758
2797
  "examples": [
2759
- "(evaluate @model)"
2798
+ "(evaluate {\"layers\":[{\"type\":\"dense\",\"units\":2}]} [{\"input\":[0],\"expected\":[1]}])"
2760
2799
  ],
2761
2800
  "docsSource": "generated"
2762
2801
  },
@@ -2771,25 +2810,18 @@
2771
2810
  "effect": {
2772
2811
  "kind": "fetch",
2773
2812
  "produces": {
2774
- "kind": "object",
2775
- "fields": {
2776
- "data": {
2777
- "kind": "union",
2778
- "of": [
2779
- {
2780
- "kind": "entity"
2781
- },
2782
- {
2783
- "kind": "array",
2784
- "of": {
2785
- "kind": "entity"
2786
- }
2787
- }
2788
- ]
2813
+ "kind": "union",
2814
+ "of": [
2815
+ {
2816
+ "kind": "entity"
2789
2817
  },
2790
- "totalCount": "number"
2791
- },
2792
- "open": false
2818
+ {
2819
+ "kind": "array",
2820
+ "of": {
2821
+ "kind": "entity"
2822
+ }
2823
+ }
2824
+ ]
2793
2825
  }
2794
2826
  },
2795
2827
  "title": "Fetch",
@@ -2801,7 +2833,7 @@
2801
2833
  }
2802
2834
  ],
2803
2835
  "examples": [
2804
- "(fetch @entityId)"
2836
+ "(fetch \"Task\" {\"id\":\"t1\",\"emit\":{\"success\":\"TASK_LOADED\"}})"
2805
2837
  ],
2806
2838
  "docsSource": "generated"
2807
2839
  },
@@ -3099,7 +3131,7 @@
3099
3131
  }
3100
3132
  ],
3101
3133
  "examples": [
3102
- "(forward @model @input)"
3134
+ "(forward {\"layers\":[{\"type\":\"dense\",\"units\":2}]} [0.5])"
3103
3135
  ],
3104
3136
  "docsSource": "generated"
3105
3137
  },
@@ -3124,7 +3156,7 @@
3124
3156
  }
3125
3157
  ],
3126
3158
  "examples": [
3127
- "(geo/aabb-overlap {\"x\" 0 \"y\" 0 \"w\" 10 \"h\" 10} {\"x\" 5 \"y\" 5 \"w\" 10 \"h\" 10}) // => true"
3159
+ "(geo/aabb-overlap {\"x\":0,\"y\":0,\"w\":10,\"h\":10} {\"x\":5,\"y\":5,\"w\":10,\"h\":10}) // => true"
3128
3160
  ],
3129
3161
  "docsSource": "generated"
3130
3162
  },
@@ -3149,7 +3181,7 @@
3149
3181
  }
3150
3182
  ],
3151
3183
  "examples": [
3152
- "(geo/circle-overlap {\"x\" 0 \"y\" 0 \"r\" 5} {\"x\" 10 \"y\" 0 \"r\" 5}) // => true"
3184
+ "(geo/circle-overlap {\"x\":0,\"y\":0,\"r\":3} {\"x\":4,\"y\":0,\"r\":2}) // => true"
3153
3185
  ],
3154
3186
  "docsSource": "generated"
3155
3187
  },
@@ -3174,7 +3206,7 @@
3174
3206
  }
3175
3207
  ],
3176
3208
  "examples": [
3177
- "(geo/point-in-circle {\"x\" 0 \"y\" 0} {\"x\" 0 \"y\" 0 \"r\" 10}) // => true"
3209
+ "(geo/point-in-circle {\"x\":1,\"y\":1} {\"x\":0,\"y\":0,\"r\":2}) // => true"
3178
3210
  ],
3179
3211
  "docsSource": "generated"
3180
3212
  },
@@ -3199,7 +3231,7 @@
3199
3231
  }
3200
3232
  ],
3201
3233
  "examples": [
3202
- "(geo/point-in-rect {\"x\" 5 \"y\" 5} {\"x\" 0 \"y\" 0 \"w\" 10 \"h\" 10}) // => true"
3234
+ "(geo/point-in-rect {\"x\":5,\"y\":5} {\"x\":0,\"y\":0,\"w\":10,\"h\":10}) // => true"
3203
3235
  ],
3204
3236
  "docsSource": "generated"
3205
3237
  },
@@ -3224,7 +3256,7 @@
3224
3256
  }
3225
3257
  ],
3226
3258
  "examples": [
3227
- "(geo/rect-circle-overlap {\"x\" 0 \"y\" 0 \"w\" 10 \"h\" 10} {\"x\" 15 \"y\" 5 \"r\" 10}) // => true"
3259
+ "(geo/rect-circle-overlap {\"x\":0,\"y\":0,\"w\":10,\"h\":10} {\"x\":12,\"y\":5,\"r\":3}) // => true"
3228
3260
  ],
3229
3261
  "docsSource": "generated"
3230
3262
  },
@@ -3249,7 +3281,7 @@
3249
3281
  }
3250
3282
  ],
3251
3283
  "examples": [
3252
- "(geo/reflect {\"x\" 1 \"y\" 0} {\"x\" 0 \"y\" 1})"
3284
+ "(geo/reflect {\"x\":1,\"y\":-1} {\"x\":0,\"y\":1})"
3253
3285
  ],
3254
3286
  "docsSource": "generated"
3255
3287
  },
@@ -3274,7 +3306,7 @@
3274
3306
  }
3275
3307
  ],
3276
3308
  "examples": [
3277
- "(geo/segment-intersect [{\"x\" 0 \"y\" 0} {\"x\" 10 \"y\" 10}] [{\"x\" 0 \"y\" 10} {\"x\" 10 \"y\" 0}])"
3309
+ "(geo/segment-intersect {\"x1\":0,\"y1\":0,\"x2\":4,\"y2\":4} {\"x1\":0,\"y1\":4,\"x2\":4,\"y2\":0})"
3278
3310
  ],
3279
3311
  "docsSource": "generated"
3280
3312
  },
@@ -3294,7 +3326,7 @@
3294
3326
  }
3295
3327
  ],
3296
3328
  "examples": [
3297
- "(graph/add-self-loops @graph)"
3329
+ "(graph/add-self-loops [\"graph/from-adjacency\",[[0,1],[1,0]],[[1.0],[2.0]]])"
3298
3330
  ],
3299
3331
  "docsSource": "generated"
3300
3332
  },
@@ -3314,7 +3346,7 @@
3314
3346
  }
3315
3347
  ],
3316
3348
  "examples": [
3317
- "(graph/batch @graphList)"
3349
+ "(graph/batch [[\"graph/from-adjacency\",[[0,1],[1,0]],[[1.0],[2.0]]]])"
3318
3350
  ],
3319
3351
  "docsSource": "generated"
3320
3352
  },
@@ -3334,7 +3366,7 @@
3334
3366
  }
3335
3367
  ],
3336
3368
  "examples": [
3337
- "(graph/degree @graph)"
3369
+ "(graph/degree [\"graph/from-adjacency\",[[0,1],[1,0]],[[1.0],[2.0]]])"
3338
3370
  ],
3339
3371
  "docsSource": "generated"
3340
3372
  },
@@ -3354,7 +3386,7 @@
3354
3386
  }
3355
3387
  ],
3356
3388
  "examples": [
3357
- "(graph/edge-features @graph)"
3389
+ "(graph/edge-features [\"graph/from-adjacency\",[[0,1],[1,0]],[[1.0],[2.0]]])"
3358
3390
  ],
3359
3391
  "docsSource": "generated"
3360
3392
  },
@@ -3374,7 +3406,7 @@
3374
3406
  }
3375
3407
  ],
3376
3408
  "examples": [
3377
- "(graph/edge-index @graph)"
3409
+ "(graph/edge-index [\"graph/from-adjacency\",[[0,1],[1,0]],[[1.0],[2.0]]])"
3378
3410
  ],
3379
3411
  "docsSource": "generated"
3380
3412
  },
@@ -3399,7 +3431,7 @@
3399
3431
  }
3400
3432
  ],
3401
3433
  "examples": [
3402
- "(graph/from-adjacency @adjMatrix @nodeFeatures)"
3434
+ "(graph/from-adjacency [[0,1],[1,0]] [[1.0],[2.0]])"
3403
3435
  ],
3404
3436
  "docsSource": "generated"
3405
3437
  },
@@ -3424,7 +3456,7 @@
3424
3456
  }
3425
3457
  ],
3426
3458
  "examples": [
3427
- "(graph/from-edge-list @edgeList @nodeFeatures)"
3459
+ "(graph/from-edge-list [[0,1]] [[1.0],[2.0]])"
3428
3460
  ],
3429
3461
  "docsSource": "generated"
3430
3462
  },
@@ -3444,7 +3476,7 @@
3444
3476
  }
3445
3477
  ],
3446
3478
  "examples": [
3447
- "(graph/from-entities @nodes)"
3479
+ "(graph/from-entities [{\"age\":30,\"score\":0.5},{\"age\":25,\"score\":0.7}])"
3448
3480
  ],
3449
3481
  "docsSource": "generated"
3450
3482
  },
@@ -3474,7 +3506,7 @@
3474
3506
  }
3475
3507
  ],
3476
3508
  "examples": [
3477
- "(graph/k-hop @graph \"node-1\" 2)"
3509
+ "(graph/k-hop [\"graph/from-adjacency\",[[0,1],[1,0]],[[1.0],[2.0]]] 0 2)"
3478
3510
  ],
3479
3511
  "docsSource": "generated"
3480
3512
  },
@@ -3494,7 +3526,7 @@
3494
3526
  }
3495
3527
  ],
3496
3528
  "examples": [
3497
- "(graph/node-features @graph)"
3529
+ "(graph/node-features [\"graph/from-adjacency\",[[0,1],[1,0]],[[1.0],[2.0]]])"
3498
3530
  ],
3499
3531
  "docsSource": "generated"
3500
3532
  },
@@ -3514,7 +3546,7 @@
3514
3546
  }
3515
3547
  ],
3516
3548
  "examples": [
3517
- "(graph/num-edges @graph) // => 15"
3549
+ "(graph/num-edges [\"graph/from-adjacency\",[[0,1],[1,0]],[[1.0],[2.0]]]) // => 2"
3518
3550
  ],
3519
3551
  "docsSource": "generated"
3520
3552
  },
@@ -3534,7 +3566,7 @@
3534
3566
  }
3535
3567
  ],
3536
3568
  "examples": [
3537
- "(graph/num-nodes @graph) // => 10"
3569
+ "(graph/num-nodes [\"graph/from-adjacency\",[[0,1],[1,0]],[[1.0],[2.0]]]) // => 2"
3538
3570
  ],
3539
3571
  "docsSource": "generated"
3540
3572
  },
@@ -3559,7 +3591,7 @@
3559
3591
  }
3560
3592
  ],
3561
3593
  "examples": [
3562
- "(graph/subgraph @graph [true true false true])"
3594
+ "(graph/subgraph [\"graph/from-adjacency\",[[0,1],[1,0]],[[1.0],[2.0]]] [true,false])"
3563
3595
  ],
3564
3596
  "docsSource": "generated"
3565
3597
  },
@@ -3579,7 +3611,7 @@
3579
3611
  }
3580
3612
  ],
3581
3613
  "examples": [
3582
- "(graph/to-undirected @graph)"
3614
+ "(graph/to-undirected [\"graph/from-adjacency\",[[0,1],[1,0]],[[1.0],[2.0]]])"
3583
3615
  ],
3584
3616
  "docsSource": "generated"
3585
3617
  },
@@ -3604,7 +3636,7 @@
3604
3636
  }
3605
3637
  ],
3606
3638
  "examples": [
3607
- "(grid/cells-in-radius {\"row\" 5 \"col\" 5} 3)"
3639
+ "(grid/cells-in-radius {\"x\":0,\"y\":0} 1)"
3608
3640
  ],
3609
3641
  "docsSource": "generated"
3610
3642
  },
@@ -3629,7 +3661,7 @@
3629
3661
  }
3630
3662
  ],
3631
3663
  "examples": [
3632
- "(grid/distance {\"row\" 0 \"col\" 0} {\"row\" 3 \"col\" 4}) // => 4"
3664
+ "(grid/distance {\"x\":0,\"y\":0} {\"x\":3,\"y\":2}) // => 3"
3633
3665
  ],
3634
3666
  "docsSource": "generated"
3635
3667
  },
@@ -3654,7 +3686,7 @@
3654
3686
  }
3655
3687
  ],
3656
3688
  "examples": [
3657
- "(grid/from-world {\"x\" 10 \"y\" 20} 5)"
3689
+ "(grid/from-world {\"x\":80,\"y\":112} 32)"
3658
3690
  ],
3659
3691
  "docsSource": "generated"
3660
3692
  },
@@ -3684,7 +3716,7 @@
3684
3716
  }
3685
3717
  ],
3686
3718
  "examples": [
3687
- "(grid/in-bounds {\"row\" 5 \"col\" 5} 10 10) // => true"
3719
+ "(grid/in-bounds {\"x\":2,\"y\":3} 5 5) // => true"
3688
3720
  ],
3689
3721
  "docsSource": "generated"
3690
3722
  },
@@ -3714,7 +3746,7 @@
3714
3746
  }
3715
3747
  ],
3716
3748
  "examples": [
3717
- "(grid/iso-to-screen {\"row\" 5 \"col\" 5} 32 16)"
3749
+ "(grid/iso-to-screen {\"x\":1,\"y\":0} 64 32)"
3718
3750
  ],
3719
3751
  "docsSource": "generated"
3720
3752
  },
@@ -3739,7 +3771,7 @@
3739
3771
  }
3740
3772
  ],
3741
3773
  "examples": [
3742
- "(grid/line {\"row\" 0 \"col\" 0} {\"row\" 3 \"col\" 4})"
3774
+ "(grid/line {\"x\":0,\"y\":0} {\"x\":2,\"y\":2})"
3743
3775
  ],
3744
3776
  "docsSource": "generated"
3745
3777
  },
@@ -3764,7 +3796,7 @@
3764
3796
  }
3765
3797
  ],
3766
3798
  "examples": [
3767
- "(grid/manhattan-distance @p1 @p2) // => 7"
3799
+ "(grid/manhattan-distance {\"x\":0,\"y\":0} {\"x\":3,\"y\":2}) // => 5"
3768
3800
  ],
3769
3801
  "docsSource": "generated"
3770
3802
  },
@@ -3784,7 +3816,7 @@
3784
3816
  }
3785
3817
  ],
3786
3818
  "examples": [
3787
- "(grid/neighbors @cell)"
3819
+ "(grid/neighbors {\"x\":1,\"y\":1})"
3788
3820
  ],
3789
3821
  "docsSource": "generated"
3790
3822
  },
@@ -3983,7 +4015,7 @@
3983
4015
  }
3984
4016
  ],
3985
4017
  "examples": [
3986
- "(let [[x 5] [y 10]] (+ @x @y)) // => 15"
4018
+ "(let [[\"x\",10]] [\"+\",\"x\",1]) // => 15"
3987
4019
  ],
3988
4020
  "docsSource": "generated"
3989
4021
  },
@@ -3995,6 +4027,15 @@
3995
4027
  "description": "Literal array constructor — evaluates each argument and returns them as an array. Lowering wraps a literal list bound for a literal-array slot in `list` so it is unambiguously data, never a call (disambiguates a list whose first element collides with an operator name, e.g. [path method …]).",
3996
4028
  "module": "core",
3997
4029
  "title": "List",
4030
+ "params": [
4031
+ {
4032
+ "name": "...items",
4033
+ "type": {
4034
+ "kind": "sexpr"
4035
+ },
4036
+ "description": "Items to collect into a literal array"
4037
+ }
4038
+ ],
3998
4039
  "examples": [
3999
4040
  "(list 1 2 3) // => [1 2 3]"
4000
4041
  ],
@@ -4022,7 +4063,7 @@
4022
4063
  }
4023
4064
  ],
4024
4065
  "examples": [
4025
- "(llm/call-tools \"What is 2+2?\" [{name: \"calculator\"}])"
4066
+ "(llm/call-tools [{\"role\":\"user\",\"content\":\"What time is it?\"}] [{\"name\":\"getTime\",\"description\":\"Get current time\",\"parameters\":{}}])"
4026
4067
  ],
4027
4068
  "docsSource": "generated"
4028
4069
  },
@@ -4035,6 +4076,34 @@
4035
4076
  "module": "llm",
4036
4077
  "hasSideEffects": true,
4037
4078
  "title": "Compact Context",
4079
+ "params": [
4080
+ {
4081
+ "name": "strategy",
4082
+ "type": {
4083
+ "kind": "union",
4084
+ "of": [
4085
+ {
4086
+ "kind": "literal",
4087
+ "value": "hybrid"
4088
+ },
4089
+ {
4090
+ "kind": "literal",
4091
+ "value": "summarize"
4092
+ },
4093
+ {
4094
+ "kind": "literal",
4095
+ "value": "truncate"
4096
+ },
4097
+ {
4098
+ "kind": "literal",
4099
+ "value": "extract"
4100
+ }
4101
+ ]
4102
+ },
4103
+ "description": "Compaction strategy",
4104
+ "optional": true
4105
+ }
4106
+ ],
4038
4107
  "examples": [
4039
4108
  "(llm/compact) // => {before: 10000 after: 8000}"
4040
4109
  ],
@@ -4167,7 +4236,7 @@
4167
4236
  }
4168
4237
  ],
4169
4238
  "examples": [
4170
- "(lolo/emit-body \"Create a counter\" @ctx {})"
4239
+ "(lolo/emit-body \"PlayerOrbital\" {\"topics\":[\"game/2d\"]} \"player ship with movement\")"
4171
4240
  ],
4172
4241
  "docsSource": "generated"
4173
4242
  },
@@ -4822,6 +4891,14 @@
4822
4891
  "description": "List all memories, optionally filtered by category.",
4823
4892
  "module": "memory",
4824
4893
  "title": "List Memories",
4894
+ "params": [
4895
+ {
4896
+ "name": "category",
4897
+ "type": "string",
4898
+ "description": "Memory category filter",
4899
+ "optional": true
4900
+ }
4901
+ ],
4825
4902
  "examples": [
4826
4903
  "(memory/list)"
4827
4904
  ],
@@ -4930,7 +5007,7 @@
4930
5007
  }
4931
5008
  ],
4932
5009
  "examples": [
4933
- "(nn/batchnorm @layer)"
5010
+ "(nn/batchnorm 64)"
4934
5011
  ],
4935
5012
  "docsSource": "generated"
4936
5013
  },
@@ -4950,7 +5027,7 @@
4950
5027
  }
4951
5028
  ],
4952
5029
  "examples": [
4953
- "(nn/clone @net)"
5030
+ "(nn/clone {\"layers\":[{\"type\":\"dense\",\"units\":2}]})"
4954
5031
  ],
4955
5032
  "docsSource": "generated"
4956
5033
  },
@@ -4962,6 +5039,15 @@
4962
5039
  "description": "Dropout layer for regularization (randomly zeros elements during training)",
4963
5040
  "module": "nn",
4964
5041
  "title": "Dropout",
5042
+ "params": [
5043
+ {
5044
+ "name": "p",
5045
+ "type": "number",
5046
+ "description": "Dropout probability",
5047
+ "optional": true,
5048
+ "defaultValue": 0.5
5049
+ }
5050
+ ],
4965
5051
  "examples": [
4966
5052
  "(nn/dropout)"
4967
5053
  ],
@@ -4988,7 +5074,7 @@
4988
5074
  }
4989
5075
  ],
4990
5076
  "examples": [
4991
- "(nn/forward @net @data)"
5077
+ "(nn/forward {\"layers\":[{\"type\":\"dense\",\"units\":2}]} [0.1,0.2])"
4992
5078
  ],
4993
5079
  "docsSource": "generated"
4994
5080
  },
@@ -5008,7 +5094,7 @@
5008
5094
  }
5009
5095
  ],
5010
5096
  "examples": [
5011
- "(nn/getWeights @net)"
5097
+ "(nn/getWeights {\"layers\":[{\"type\":\"dense\",\"units\":2}]})"
5012
5098
  ],
5013
5099
  "docsSource": "generated"
5014
5100
  },
@@ -5028,7 +5114,7 @@
5028
5114
  }
5029
5115
  ],
5030
5116
  "examples": [
5031
- "(nn/layernorm @layer)"
5117
+ "(nn/layernorm 64)"
5032
5118
  ],
5033
5119
  "docsSource": "generated"
5034
5120
  },
@@ -5073,7 +5159,7 @@
5073
5159
  }
5074
5160
  ],
5075
5161
  "examples": [
5076
- "(nn/paramCount @model) // => 45000"
5162
+ "(nn/paramCount {\"layers\":[{\"type\":\"dense\",\"units\":2}]})"
5077
5163
  ],
5078
5164
  "docsSource": "generated"
5079
5165
  },
@@ -5106,7 +5192,7 @@
5106
5192
  }
5107
5193
  ],
5108
5194
  "examples": [
5109
- "(nn/sequential @relu @sigmoid)"
5195
+ "(nn/sequential [\"nn/linear\",16,64] [\"nn/relu\"] [\"nn/linear\",64,4])"
5110
5196
  ],
5111
5197
  "docsSource": "generated"
5112
5198
  },
@@ -5132,7 +5218,7 @@
5132
5218
  }
5133
5219
  ],
5134
5220
  "examples": [
5135
- "(nn/setWeights @model @weightTensor)"
5221
+ "(nn/setWeights {\"layers\":[{\"type\":\"dense\",\"units\":2}]} [0.1,0.2,0.3])"
5136
5222
  ],
5137
5223
  "docsSource": "generated"
5138
5224
  },
@@ -5157,6 +5243,15 @@
5157
5243
  "description": "Softmax activation function (normalizes to probability distribution)",
5158
5244
  "module": "nn",
5159
5245
  "title": "Softmax",
5246
+ "params": [
5247
+ {
5248
+ "name": "dim",
5249
+ "type": "number",
5250
+ "description": "Dimension to apply softmax",
5251
+ "optional": true,
5252
+ "defaultValue": -1
5253
+ }
5254
+ ],
5160
5255
  "examples": [
5161
5256
  "(nn/softmax)"
5162
5257
  ],
@@ -5315,7 +5410,7 @@
5315
5410
  }
5316
5411
  ],
5317
5412
  "examples": [
5318
- "(object/clone @entity)"
5413
+ "(object/clone {\"a\":1,\"b\":2})"
5319
5414
  ],
5320
5415
  "docsSource": "reference-docs"
5321
5416
  },
@@ -5335,7 +5430,7 @@
5335
5430
  }
5336
5431
  ],
5337
5432
  "examples": [
5338
- "(object/deepClone @entity)"
5433
+ "(object/deepClone {\"a\":{\"b\":2}})"
5339
5434
  ],
5340
5435
  "docsSource": "reference-docs"
5341
5436
  },
@@ -5426,7 +5521,7 @@
5426
5521
  }
5427
5522
  ],
5428
5523
  "examples": [
5429
- "(object/filter @data (fn (k \"v\") (!= @v null)))"
5524
+ "(object/filter {\"a\":1,\"b\":null} [\"fn\",[\"k\",\"v\"],[\"!=\",\"@v\",null]])"
5430
5525
  ],
5431
5526
  "docsSource": "reference-docs"
5432
5527
  },
@@ -5477,7 +5572,7 @@
5477
5572
  }
5478
5573
  ],
5479
5574
  "examples": [
5480
- "(object/get @user \"profile.name\" \"Anonymous\")"
5575
+ "(object/get {\"profile\":{\"name\":\"Ann\"}} \"profile.name\" \"Anonymous\")"
5481
5576
  ],
5482
5577
  "docsSource": "reference-docs"
5483
5578
  },
@@ -5502,7 +5597,7 @@
5502
5597
  }
5503
5598
  ],
5504
5599
  "examples": [
5505
- "(object/has @user \"profile.name\")"
5600
+ "(object/has {\"profile\":{\"name\":\"Ann\"}} \"profile.name\")"
5506
5601
  ],
5507
5602
  "docsSource": "reference-docs"
5508
5603
  },
@@ -5522,7 +5617,7 @@
5522
5617
  }
5523
5618
  ],
5524
5619
  "examples": [
5525
- "(object/keys {\"a\": 1 \"b\": 2}) // => [\"a\", \"b\"]"
5620
+ "(object/keys {\"a\":1,\"b\":2}) // => [\"a\", \"b\"]"
5526
5621
  ],
5527
5622
  "docsSource": "reference-docs"
5528
5623
  },
@@ -5548,7 +5643,7 @@
5548
5643
  }
5549
5644
  ],
5550
5645
  "examples": [
5551
- "(object/mapKeys @data (fn k (str/upper @k)))"
5646
+ "(object/mapKeys {\"a\":1,\"b\":2} [\"fn\",\"k\",[\"str/upper\",\"@k\"]])"
5552
5647
  ],
5553
5648
  "docsSource": "reference-docs"
5554
5649
  },
@@ -5574,7 +5669,7 @@
5574
5669
  }
5575
5670
  ],
5576
5671
  "examples": [
5577
- "(object/mapValues @stats (fn v (* @v 100)))"
5672
+ "(object/mapValues {\"a\":0.5,\"b\":0.25} [\"fn\",\"v\",[\"*\",\"@v\",100]])"
5578
5673
  ],
5579
5674
  "docsSource": "reference-docs"
5580
5675
  },
@@ -5619,7 +5714,7 @@
5619
5714
  }
5620
5715
  ],
5621
5716
  "examples": [
5622
- "(object/omit @entity (password \"secret\"))"
5717
+ "(object/omit {\"name\":\"Ann\",\"password\":\"x\"} [\"password\"])"
5623
5718
  ],
5624
5719
  "docsSource": "reference-docs"
5625
5720
  },
@@ -5645,7 +5740,7 @@
5645
5740
  }
5646
5741
  ],
5647
5742
  "examples": [
5648
- "(object/pick @entity (name \"email\"))"
5743
+ "(object/pick {\"name\":\"Ann\",\"email\":\"ann@example.com\",\"age\":30} [\"name\",\"email\"])"
5649
5744
  ],
5650
5745
  "docsSource": "reference-docs"
5651
5746
  },
@@ -5675,7 +5770,7 @@
5675
5770
  }
5676
5771
  ],
5677
5772
  "examples": [
5678
- "(object/set @user \"profile.name\" \"John\")"
5773
+ "(object/set {\"profile\":{\"name\":\"Ann\"}} \"profile.name\" \"John\")"
5679
5774
  ],
5680
5775
  "docsSource": "reference-docs"
5681
5776
  },
@@ -5695,7 +5790,7 @@
5695
5790
  }
5696
5791
  ],
5697
5792
  "examples": [
5698
- "(object/values {\"a\": 1 \"b\": 2}) // => [1, 2]"
5793
+ "(object/values {\"a\":1,\"b\":2}) // => [1, 2]"
5699
5794
  ],
5700
5795
  "docsSource": "reference-docs"
5701
5796
  },
@@ -5954,7 +6049,7 @@
5954
6049
  }
5955
6050
  ],
5956
6051
  "examples": [
5957
- "(path/astar 10 10 @grid [0 0] [9 9])"
6052
+ "(path/astar {\"x\":0,\"y\":0} {\"x\":2,\"y\":0} [] 3 1)"
5958
6053
  ],
5959
6054
  "docsSource": "generated"
5960
6055
  },
@@ -5994,7 +6089,7 @@
5994
6089
  }
5995
6090
  ],
5996
6091
  "examples": [
5997
- "(path/reachable 10 10 @grid [0 0] 3)"
6092
+ "(path/reachable {\"x\":1,\"y\":1} 1 [] 3 3 false)"
5998
6093
  ],
5999
6094
  "docsSource": "generated"
6000
6095
  },
@@ -6003,7 +6098,7 @@
6003
6098
  "minArity": 2,
6004
6099
  "maxArity": 4,
6005
6100
  "returnType": "void",
6006
- "description": "Create, update, delete, or batch entity records. Optional trailing { emit: { success, failure } } options object attaches closed-circuit emit routing.",
6101
+ "description": "Create, update, delete, clear, or batch entity records. Optional trailing { emit: { success, failure } } options object attaches closed-circuit emit routing.",
6007
6102
  "module": "core",
6008
6103
  "hasSideEffects": true,
6009
6104
  "effect": {
@@ -6051,7 +6146,7 @@
6051
6146
  }
6052
6147
  ],
6053
6148
  "examples": [
6054
- "(persist \"create\" @newEntity)"
6149
+ "(persist \"create\" \"Task\" {\"title\":\"Buy milk\"} {\"emit\":{\"success\":\"TASK_CREATED\"}})"
6055
6150
  ],
6056
6151
  "docsSource": "generated"
6057
6152
  },
@@ -6122,7 +6217,7 @@
6122
6217
  }
6123
6218
  ],
6124
6219
  "examples": [
6125
- "(prob/condition (> @entity.x 5))"
6220
+ "(prob/condition [\">\",5,0])"
6126
6221
  ],
6127
6222
  "docsSource": "reference-docs"
6128
6223
  },
@@ -6147,7 +6242,7 @@
6147
6242
  }
6148
6243
  ],
6149
6244
  "examples": [
6150
- "(prob/credible-interval samples 0.05) // => 95% CI"
6245
+ "(prob/credible-interval [1,2,3,4,5] 0.05) // => 95% CI"
6151
6246
  ],
6152
6247
  "docsSource": "reference-docs"
6153
6248
  },
@@ -6237,7 +6332,7 @@
6237
6332
  }
6238
6333
  ],
6239
6334
  "examples": [
6240
- "(prob/histogram samples 10)"
6335
+ "(prob/histogram [1,2,3,4,5] 2)"
6241
6336
  ],
6242
6337
  "docsSource": "reference-docs"
6243
6338
  },
@@ -6272,7 +6367,7 @@
6272
6367
  }
6273
6368
  ],
6274
6369
  "examples": [
6275
- "(prob/infer model evidence @entity.x 5000)"
6370
+ "(prob/infer [\"prob/gaussian\",0,1] [0.5] \"mu\" 5000)"
6276
6371
  ],
6277
6372
  "docsSource": "reference-docs"
6278
6373
  },
@@ -6297,7 +6392,7 @@
6297
6392
  }
6298
6393
  ],
6299
6394
  "examples": [
6300
- "(prob/percentile samples 50) // => median"
6395
+ "(prob/percentile [1,2,3,4,5] 50) // => median"
6301
6396
  ],
6302
6397
  "docsSource": "reference-docs"
6303
6398
  },
@@ -6352,7 +6447,7 @@
6352
6447
  }
6353
6448
  ],
6354
6449
  "examples": [
6355
- "(prob/posterior model evidence @entity.x 5000)"
6450
+ "(prob/posterior [\"prob/gaussian\",0,1] [0.5] \"mu\" 5000)"
6356
6451
  ],
6357
6452
  "docsSource": "reference-docs"
6358
6453
  },
@@ -6458,25 +6553,18 @@
6458
6553
  "effect": {
6459
6554
  "kind": "ref",
6460
6555
  "produces": {
6461
- "kind": "object",
6462
- "fields": {
6463
- "data": {
6464
- "kind": "union",
6465
- "of": [
6466
- {
6467
- "kind": "entity"
6468
- },
6469
- {
6470
- "kind": "array",
6471
- "of": {
6472
- "kind": "entity"
6473
- }
6474
- }
6475
- ]
6556
+ "kind": "union",
6557
+ "of": [
6558
+ {
6559
+ "kind": "entity"
6476
6560
  },
6477
- "totalCount": "number"
6478
- },
6479
- "open": false
6561
+ {
6562
+ "kind": "array",
6563
+ "of": {
6564
+ "kind": "entity"
6565
+ }
6566
+ }
6567
+ ]
6480
6568
  }
6481
6569
  },
6482
6570
  "title": "Reference",
@@ -6488,7 +6576,7 @@
6488
6576
  }
6489
6577
  ],
6490
6578
  "examples": [
6491
- "(ref @user.id)"
6579
+ "(ref \"Task\")"
6492
6580
  ],
6493
6581
  "docsSource": "generated"
6494
6582
  },
@@ -6567,7 +6655,7 @@
6567
6655
  }
6568
6656
  ],
6569
6657
  "examples": [
6570
- "(session/append-history \"chat\" @historyEntry)"
6658
+ "(session/append-history \"ProductOrbital\" {\"role\":\"user\",\"content\":\"Add a search bar\"})"
6571
6659
  ],
6572
6660
  "docsSource": "generated"
6573
6661
  },
@@ -6712,7 +6800,7 @@
6712
6800
  }
6713
6801
  ],
6714
6802
  "examples": [
6715
- "(session/write-memory \"agent\" @memoryData)"
6803
+ "(session/write-memory \"ProductOrbital\" {\"notes\":[\"initial draft\"]})"
6716
6804
  ],
6717
6805
  "docsSource": "generated"
6718
6806
  },
@@ -6738,7 +6826,7 @@
6738
6826
  }
6739
6827
  ],
6740
6828
  "examples": [
6741
- "(session/write-spec \"game\" @newSpec)"
6829
+ "(session/write-spec \"ProductOrbital\" {\"goal\":\"manage products\"})"
6742
6830
  ],
6743
6831
  "docsSource": "generated"
6744
6832
  },
@@ -6819,7 +6907,7 @@
6819
6907
  }
6820
6908
  ],
6821
6909
  "examples": [
6822
- "(spawn @newEntity)"
6910
+ "(spawn \"Bullet\" {\"x\":10,\"y\":20})"
6823
6911
  ],
6824
6912
  "docsSource": "generated"
6825
6913
  },
@@ -7324,7 +7412,7 @@
7324
7412
  }
7325
7413
  ],
7326
7414
  "examples": [
7327
- "(str/template \"Hello, {name}!\" {\"name\": \"World\"}) // => \"Hello, World!\""
7415
+ "(str/template \"Hello, {name}!\" {\"name\":\"World\"}) // => \"Hello, World!\""
7328
7416
  ],
7329
7417
  "docsSource": "reference-docs"
7330
7418
  },
@@ -7479,7 +7567,7 @@
7479
7567
  }
7480
7568
  ],
7481
7569
  "examples": [
7482
- "(tensor/add @tensorA @tensorB)"
7570
+ "(tensor/add [1,2] [3,4])"
7483
7571
  ],
7484
7572
  "docsSource": "generated"
7485
7573
  },
@@ -7504,7 +7592,7 @@
7504
7592
  }
7505
7593
  ],
7506
7594
  "examples": [
7507
- "(tensor/allInRange @data [0 1]) // => true"
7595
+ "(tensor/allInRange [0.5,-0.2] [-1.0,1.0]) // => true"
7508
7596
  ],
7509
7597
  "docsSource": "generated"
7510
7598
  },
@@ -7524,7 +7612,7 @@
7524
7612
  }
7525
7613
  ],
7526
7614
  "examples": [
7527
- "(tensor/argmax @data) // => 5"
7615
+ "(tensor/argmax [0.1,0.9,0.3]) // => 1"
7528
7616
  ],
7529
7617
  "docsSource": "generated"
7530
7618
  },
@@ -7549,7 +7637,7 @@
7549
7637
  }
7550
7638
  ],
7551
7639
  "examples": [
7552
- "(tensor/cat @t1 @t2)"
7640
+ "(tensor/cat [1,2] [3,4])"
7553
7641
  ],
7554
7642
  "docsSource": "generated"
7555
7643
  },
@@ -7579,7 +7667,7 @@
7579
7667
  }
7580
7668
  ],
7581
7669
  "examples": [
7582
- "(tensor/clamp @t 0 100)"
7670
+ "(tensor/clamp [5,-15,3] -10.0 10.0)"
7583
7671
  ],
7584
7672
  "docsSource": "generated"
7585
7673
  },
@@ -7604,7 +7692,7 @@
7604
7692
  }
7605
7693
  ],
7606
7694
  "examples": [
7607
- "(tensor/clampPerDim @t @dimRanges)"
7695
+ "(tensor/clampPerDim [5,-15] {\"0\":{\"min\":0,\"max\":10},\"1\":{\"min\":-10,\"max\":10}})"
7608
7696
  ],
7609
7697
  "docsSource": "generated"
7610
7698
  },
@@ -7629,7 +7717,7 @@
7629
7717
  }
7630
7718
  ],
7631
7719
  "examples": [
7632
- "(tensor/div @t1 @t2)"
7720
+ "(tensor/div [10,20] 2)"
7633
7721
  ],
7634
7722
  "docsSource": "generated"
7635
7723
  },
@@ -7654,7 +7742,7 @@
7654
7742
  }
7655
7743
  ],
7656
7744
  "examples": [
7657
- "(tensor/dot @v1 @v2) // => 42.5"
7745
+ "(tensor/dot [1,2] [3,4]) // => 11"
7658
7746
  ],
7659
7747
  "docsSource": "generated"
7660
7748
  },
@@ -7674,7 +7762,7 @@
7674
7762
  }
7675
7763
  ],
7676
7764
  "examples": [
7677
- "(tensor/flatten @t)"
7765
+ "(tensor/flatten [[1,2],[3,4]])"
7678
7766
  ],
7679
7767
  "docsSource": "generated"
7680
7768
  },
@@ -7719,7 +7807,7 @@
7719
7807
  }
7720
7808
  ],
7721
7809
  "examples": [
7722
- "(tensor/get @t 0) // => 3.14"
7810
+ "(tensor/get [10,20,30,40] 3) // => 3.14"
7723
7811
  ],
7724
7812
  "docsSource": "generated"
7725
7813
  },
@@ -7744,7 +7832,7 @@
7744
7832
  }
7745
7833
  ],
7746
7834
  "examples": [
7747
- "(tensor/matmul @m1 @m2)"
7835
+ "(tensor/matmul [[1,2],[3,4]] [[5,6],[7,8]])"
7748
7836
  ],
7749
7837
  "docsSource": "generated"
7750
7838
  },
@@ -7764,7 +7852,7 @@
7764
7852
  }
7765
7853
  ],
7766
7854
  "examples": [
7767
- "(tensor/max @t) // => 99"
7855
+ "(tensor/max [0.1,0.9,0.3]) // => 99"
7768
7856
  ],
7769
7857
  "docsSource": "generated"
7770
7858
  },
@@ -7784,7 +7872,7 @@
7784
7872
  }
7785
7873
  ],
7786
7874
  "examples": [
7787
- "(tensor/mean @t) // => 50"
7875
+ "(tensor/mean [0.2,0.4,0.6]) // => 50"
7788
7876
  ],
7789
7877
  "docsSource": "generated"
7790
7878
  },
@@ -7804,7 +7892,7 @@
7804
7892
  }
7805
7893
  ],
7806
7894
  "examples": [
7807
- "(tensor/min @t) // => 1"
7895
+ "(tensor/min [3,1,2]) // => 1"
7808
7896
  ],
7809
7897
  "docsSource": "generated"
7810
7898
  },
@@ -7829,7 +7917,7 @@
7829
7917
  }
7830
7918
  ],
7831
7919
  "examples": [
7832
- "(tensor/mul @t1 @t2)"
7920
+ "(tensor/mul [0.5,0.7] 0.99)"
7833
7921
  ],
7834
7922
  "docsSource": "generated"
7835
7923
  },
@@ -7849,7 +7937,7 @@
7849
7937
  }
7850
7938
  ],
7851
7939
  "examples": [
7852
- "(tensor/norm @t) // => 5.2"
7940
+ "(tensor/norm [3,4]) // => 5.2"
7853
7941
  ],
7854
7942
  "docsSource": "generated"
7855
7943
  },
@@ -7894,7 +7982,7 @@
7894
7982
  }
7895
7983
  ],
7896
7984
  "examples": [
7897
- "(tensor/outOfRangeDims @t @ranges) // => [0]"
7985
+ "(tensor/outOfRangeDims [5,-15] {\"0\":{\"min\":0,\"max\":10},\"1\":{\"min\":-10,\"max\":10}}) // => [0]"
7898
7986
  ],
7899
7987
  "docsSource": "generated"
7900
7988
  },
@@ -7919,7 +8007,7 @@
7919
8007
  }
7920
8008
  ],
7921
8009
  "examples": [
7922
- "(tensor/outOfRangeIndices @t @ranges) // => [0 2]"
8010
+ "(tensor/outOfRangeIndices [0.5,1.5] [-1.0,1.0]) // => [0 2]"
7923
8011
  ],
7924
8012
  "docsSource": "generated"
7925
8013
  },
@@ -7984,7 +8072,7 @@
7984
8072
  }
7985
8073
  ],
7986
8074
  "examples": [
7987
- "(tensor/reshape @t [4 3])"
8075
+ "(tensor/reshape [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16] [4,4])"
7988
8076
  ],
7989
8077
  "docsSource": "generated"
7990
8078
  },
@@ -8004,7 +8092,7 @@
8004
8092
  }
8005
8093
  ],
8006
8094
  "examples": [
8007
- "(tensor/shape @t) // => [3 4 5]"
8095
+ "(tensor/shape [[1,2],[3,4]]) // => [3 4 5]"
8008
8096
  ],
8009
8097
  "docsSource": "generated"
8010
8098
  },
@@ -8034,7 +8122,7 @@
8034
8122
  }
8035
8123
  ],
8036
8124
  "examples": [
8037
- "(tensor/slice @t 0 5)"
8125
+ "(tensor/slice [10,20,30,40] 0 3)"
8038
8126
  ],
8039
8127
  "docsSource": "generated"
8040
8128
  },
@@ -8054,7 +8142,7 @@
8054
8142
  }
8055
8143
  ],
8056
8144
  "examples": [
8057
- "(tensor/squeeze @t)"
8145
+ "(tensor/squeeze [[1,2,3]])"
8058
8146
  ],
8059
8147
  "docsSource": "generated"
8060
8148
  },
@@ -8079,7 +8167,7 @@
8079
8167
  }
8080
8168
  ],
8081
8169
  "examples": [
8082
- "(tensor/stack @t1 @t2)"
8170
+ "(tensor/stack [1,2] [3,4])"
8083
8171
  ],
8084
8172
  "docsSource": "generated"
8085
8173
  },
@@ -8104,7 +8192,7 @@
8104
8192
  }
8105
8193
  ],
8106
8194
  "examples": [
8107
- "(tensor/sub @t1 @t2)"
8195
+ "(tensor/sub [1,2] [3,4])"
8108
8196
  ],
8109
8197
  "docsSource": "generated"
8110
8198
  },
@@ -8124,7 +8212,7 @@
8124
8212
  }
8125
8213
  ],
8126
8214
  "examples": [
8127
- "(tensor/sum @t) // => 500"
8215
+ "(tensor/sum [1,0,1]) // => 500"
8128
8216
  ],
8129
8217
  "docsSource": "generated"
8130
8218
  },
@@ -8144,7 +8232,7 @@
8144
8232
  }
8145
8233
  ],
8146
8234
  "examples": [
8147
- "(tensor/toArray @t) // => [[1 2] [3 4]]"
8235
+ "(tensor/toArray [[1,2],[3,4]]) // => [[1 2] [3 4]]"
8148
8236
  ],
8149
8237
  "docsSource": "generated"
8150
8238
  },
@@ -8164,7 +8252,7 @@
8164
8252
  }
8165
8253
  ],
8166
8254
  "examples": [
8167
- "(tensor/toList @t) // => [1 2 3]"
8255
+ "(tensor/toList [1,2,3]) // => [1 2 3]"
8168
8256
  ],
8169
8257
  "docsSource": "generated"
8170
8258
  },
@@ -8184,7 +8272,7 @@
8184
8272
  }
8185
8273
  ],
8186
8274
  "examples": [
8187
- "(tensor/transpose @t)"
8275
+ "(tensor/transpose [[1,2],[3,4]] 0 1)"
8188
8276
  ],
8189
8277
  "docsSource": "generated"
8190
8278
  },
@@ -8209,7 +8297,7 @@
8209
8297
  }
8210
8298
  ],
8211
8299
  "examples": [
8212
- "(tensor/unsqueeze @t 0)"
8300
+ "(tensor/unsqueeze [1,2,3] 0)"
8213
8301
  ],
8214
8302
  "docsSource": "generated"
8215
8303
  },
@@ -8279,7 +8367,7 @@
8279
8367
  }
8280
8368
  ],
8281
8369
  "examples": [
8282
- "(time/day @entity.createdAt) // => 18"
8370
+ "(time/day 1700000000000) // => 14"
8283
8371
  ],
8284
8372
  "docsSource": "reference-docs"
8285
8373
  },
@@ -8309,7 +8397,7 @@
8309
8397
  }
8310
8398
  ],
8311
8399
  "examples": [
8312
- "(time/diff @entity.birthDate (time/now) \"year\")"
8400
+ "(time/diff 1700000000000 [\"time/now\"] \"year\")"
8313
8401
  ],
8314
8402
  "docsSource": "reference-docs"
8315
8403
  },
@@ -8379,7 +8467,7 @@
8379
8467
  }
8380
8468
  ],
8381
8469
  "examples": [
8382
- "(time/format @entity.createdAt \"MMM DD, YYYY\")"
8470
+ "(time/format 1700000000000 \"MMM DD, YYYY\")"
8383
8471
  ],
8384
8472
  "docsSource": "reference-docs"
8385
8473
  },
@@ -8399,7 +8487,7 @@
8399
8487
  }
8400
8488
  ],
8401
8489
  "examples": [
8402
- "(time/hour @entity.createdAt) // => 14"
8490
+ "(time/hour 1700000000000)"
8403
8491
  ],
8404
8492
  "docsSource": "reference-docs"
8405
8493
  },
@@ -8424,7 +8512,7 @@
8424
8512
  }
8425
8513
  ],
8426
8514
  "examples": [
8427
- "(time/isAfter (time/now) @entity.deadline)"
8515
+ "(time/isAfter [\"time/now\"] 1700000000000)"
8428
8516
  ],
8429
8517
  "docsSource": "reference-docs"
8430
8518
  },
@@ -8449,7 +8537,7 @@
8449
8537
  }
8450
8538
  ],
8451
8539
  "examples": [
8452
- "(time/isBefore @entity.startDate @entity.endDate)"
8540
+ "(time/isBefore 1700000000000 1700086400000)"
8453
8541
  ],
8454
8542
  "docsSource": "reference-docs"
8455
8543
  },
@@ -8479,7 +8567,7 @@
8479
8567
  }
8480
8568
  ],
8481
8569
  "examples": [
8482
- "(time/isBetween (time/now) @entity.startDate @entity.endDate)"
8570
+ "(time/isBetween [\"time/now\"] 1700000000000 2000000000000)"
8483
8571
  ],
8484
8572
  "docsSource": "reference-docs"
8485
8573
  },
@@ -8499,7 +8587,7 @@
8499
8587
  }
8500
8588
  ],
8501
8589
  "examples": [
8502
- "(time/isFuture @entity.scheduledAt)"
8590
+ "(time/isFuture 2000000000000)"
8503
8591
  ],
8504
8592
  "docsSource": "reference-docs"
8505
8593
  },
@@ -8519,7 +8607,7 @@
8519
8607
  }
8520
8608
  ],
8521
8609
  "examples": [
8522
- "(time/isPast @entity.expiresAt)"
8610
+ "(time/isPast 1700000000000)"
8523
8611
  ],
8524
8612
  "docsSource": "reference-docs"
8525
8613
  },
@@ -8549,7 +8637,7 @@
8549
8637
  }
8550
8638
  ],
8551
8639
  "examples": [
8552
- "(time/isSame @a @b \"day\")"
8640
+ "(time/isSame 1700000000000 1700001000000 \"day\")"
8553
8641
  ],
8554
8642
  "docsSource": "reference-docs"
8555
8643
  },
@@ -8569,7 +8657,7 @@
8569
8657
  }
8570
8658
  ],
8571
8659
  "examples": [
8572
- "(time/isToday @entity.createdAt)"
8660
+ "(time/isToday [\"time/now\"])"
8573
8661
  ],
8574
8662
  "docsSource": "reference-docs"
8575
8663
  },
@@ -8589,7 +8677,7 @@
8589
8677
  }
8590
8678
  ],
8591
8679
  "examples": [
8592
- "(time/minute @entity.createdAt) // => 30"
8680
+ "(time/minute 1700000000000)"
8593
8681
  ],
8594
8682
  "docsSource": "reference-docs"
8595
8683
  },
@@ -8609,7 +8697,7 @@
8609
8697
  }
8610
8698
  ],
8611
8699
  "examples": [
8612
- "(time/month @entity.createdAt) // => 1"
8700
+ "(time/month 1700000000000) // => 11"
8613
8701
  ],
8614
8702
  "docsSource": "reference-docs"
8615
8703
  },
@@ -8667,7 +8755,7 @@
8667
8755
  }
8668
8756
  ],
8669
8757
  "examples": [
8670
- "(time/relative @entity.lastActivityAt) // => \"2 hours ago\""
8758
+ "(time/relative 1700000000000) // => \"2 hours ago\""
8671
8759
  ],
8672
8760
  "docsSource": "reference-docs"
8673
8761
  },
@@ -8687,7 +8775,7 @@
8687
8775
  }
8688
8776
  ],
8689
8777
  "examples": [
8690
- "(time/second @entity.createdAt) // => 45"
8778
+ "(time/second 1700000000000)"
8691
8779
  ],
8692
8780
  "docsSource": "reference-docs"
8693
8781
  },
@@ -8775,7 +8863,7 @@
8775
8863
  }
8776
8864
  ],
8777
8865
  "examples": [
8778
- "(time/weekday @entity.createdAt) // => 4 (Thursday)"
8866
+ "(time/weekday 1700000000000) // => 2 (Tuesday)"
8779
8867
  ],
8780
8868
  "docsSource": "reference-docs"
8781
8869
  },
@@ -8795,7 +8883,7 @@
8795
8883
  }
8796
8884
  ],
8797
8885
  "examples": [
8798
- "(time/year @entity.createdAt) // => 2024"
8886
+ "(time/year 1700000000000) // => 2023"
8799
8887
  ],
8800
8888
  "docsSource": "reference-docs"
8801
8889
  },
@@ -8863,7 +8951,7 @@
8863
8951
  }
8864
8952
  ],
8865
8953
  "examples": [
8866
- "(train @data)"
8954
+ "(train {\"layers\":[{\"type\":\"dense\",\"units\":2}]} [[0,1],[1,0]] {\"epochs\":100})"
8867
8955
  ],
8868
8956
  "docsSource": "generated"
8869
8957
  },
@@ -8889,7 +8977,7 @@
8889
8977
  }
8890
8978
  ],
8891
8979
  "examples": [
8892
- "(train/adam @weights @gradients)"
8980
+ "(train/adam {\"layers\":[{\"type\":\"dense\",\"units\":2}]} 0.001)"
8893
8981
  ],
8894
8982
  "docsSource": "generated"
8895
8983
  },
@@ -8914,7 +9002,7 @@
8914
9002
  }
8915
9003
  ],
8916
9004
  "examples": [
8917
- "(train/checkConstraints @w @c)"
9005
+ "(train/checkConstraints [0.1,0.2] {\"maxMagnitude\":10})"
8918
9006
  ],
8919
9007
  "docsSource": "generated"
8920
9008
  },
@@ -8944,7 +9032,7 @@
8944
9032
  }
8945
9033
  ],
8946
9034
  "examples": [
8947
- "(train/checkForbiddenOutputs @model @out @ranges)"
9035
+ "(train/checkForbiddenOutputs {\"layers\":[{\"type\":\"dense\",\"units\":2}]} [[0],[1]] {\"0\":{\"min\":100,\"max\":200}})"
8948
9036
  ],
8949
9037
  "docsSource": "generated"
8950
9038
  },
@@ -8974,7 +9062,7 @@
8974
9062
  }
8975
9063
  ],
8976
9064
  "examples": [
8977
- "(train/checkRegression @m1 @m2 @test)"
9065
+ "(train/checkRegression [0.1,0.2] {\"layers\":[{\"type\":\"dense\",\"units\":2}]} [{\"input\":[0],\"expected\":[1]}])"
8978
9066
  ],
8979
9067
  "docsSource": "generated"
8980
9068
  },
@@ -8999,7 +9087,7 @@
8999
9087
  }
9000
9088
  ],
9001
9089
  "examples": [
9002
- "(train/checkWeightMagnitude @w 1.0) // => true"
9090
+ "(train/checkWeightMagnitude {\"layers\":[{\"type\":\"dense\",\"units\":2}]} 10.0) // => true"
9003
9091
  ],
9004
9092
  "docsSource": "generated"
9005
9093
  },
@@ -9025,7 +9113,7 @@
9025
9113
  }
9026
9114
  ],
9027
9115
  "examples": [
9028
- "(train/clipGradients @g 1.0) // => 0.95"
9116
+ "(train/clipGradients {\"layers\":[{\"type\":\"dense\",\"units\":2}]} 1.0)"
9029
9117
  ],
9030
9118
  "docsSource": "generated"
9031
9119
  },
@@ -9051,7 +9139,7 @@
9051
9139
  }
9052
9140
  ],
9053
9141
  "examples": [
9054
- "(train/clipWeights @w 1.0)"
9142
+ "(train/clipWeights {\"layers\":[{\"type\":\"dense\",\"units\":2}]} 10.0)"
9055
9143
  ],
9056
9144
  "docsSource": "generated"
9057
9145
  },
@@ -9081,7 +9169,7 @@
9081
9169
  }
9082
9170
  ],
9083
9171
  "examples": [
9084
- "(train/computeAdvantages @rewards @baseline 0.99)"
9172
+ "(train/computeAdvantages [1,0,1] [0.5,0.4,0.3] {\"gamma\":0.99,\"lambda\":0.95})"
9085
9173
  ],
9086
9174
  "docsSource": "generated"
9087
9175
  },
@@ -9106,7 +9194,7 @@
9106
9194
  }
9107
9195
  ],
9108
9196
  "examples": [
9109
- "(train/computeReturns @rewards 0.99)"
9197
+ "(train/computeReturns [1,0,1] 0.99)"
9110
9198
  ],
9111
9199
  "docsSource": "generated"
9112
9200
  },
@@ -9151,7 +9239,7 @@
9151
9239
  }
9152
9240
  ],
9153
9241
  "examples": [
9154
- "(train/getGradientNorm @gradients)"
9242
+ "(train/getGradientNorm {\"layers\":[{\"type\":\"dense\",\"units\":2}]})"
9155
9243
  ],
9156
9244
  "docsSource": "generated"
9157
9245
  },
@@ -9171,7 +9259,7 @@
9171
9259
  }
9172
9260
  ],
9173
9261
  "examples": [
9174
- "(train/getMaxWeightMagnitude @model)"
9262
+ "(train/getMaxWeightMagnitude {\"layers\":[{\"type\":\"dense\",\"units\":2}]})"
9175
9263
  ],
9176
9264
  "docsSource": "generated"
9177
9265
  },
@@ -9227,7 +9315,7 @@
9227
9315
  }
9228
9316
  ],
9229
9317
  "examples": [
9230
- "(train/loop @model @config (fn epoch (log @epoch)))"
9318
+ "(train/loop {\"layers\":[{\"type\":\"dense\",\"units\":2}]} [{\"state\":[0],\"action\":1,\"reward\":1}] {\"epochs\":10})"
9231
9319
  ],
9232
9320
  "docsSource": "generated"
9233
9321
  },
@@ -9277,7 +9365,7 @@
9277
9365
  }
9278
9366
  ],
9279
9367
  "examples": [
9280
- "(train/sampleBatch @replay_buffer 32)"
9368
+ "(train/sampleBatch [{\"state\":[0],\"reward\":1},{\"state\":[1],\"reward\":0}] 2)"
9281
9369
  ],
9282
9370
  "docsSource": "generated"
9283
9371
  },
@@ -9303,7 +9391,7 @@
9303
9391
  }
9304
9392
  ],
9305
9393
  "examples": [
9306
- "(train/sgd @gradients 0.01 0.9)"
9394
+ "(train/sgd {\"layers\":[{\"type\":\"dense\",\"units\":2}]} 0.01 0.9)"
9307
9395
  ],
9308
9396
  "docsSource": "generated"
9309
9397
  },
@@ -9339,7 +9427,7 @@
9339
9427
  }
9340
9428
  ],
9341
9429
  "examples": [
9342
- "(train/step @model @input @target @optimizer)"
9430
+ "(train/step {\"layers\":[{\"type\":\"dense\",\"units\":2}]} [0.1,0.2] [1] {\"lr\":0.01})"
9343
9431
  ],
9344
9432
  "docsSource": "generated"
9345
9433
  },
@@ -9364,7 +9452,7 @@
9364
9452
  }
9365
9453
  ],
9366
9454
  "examples": [
9367
- "(train/validate @model @test_data)"
9455
+ "(train/validate {\"layers\":[{\"type\":\"dense\",\"units\":2}]} [{\"input\":[0],\"expected\":[1]}])"
9368
9456
  ],
9369
9457
  "docsSource": "generated"
9370
9458
  },
@@ -9384,7 +9472,7 @@
9384
9472
  }
9385
9473
  ],
9386
9474
  "examples": [
9387
- "(validate/array @payload.items)"
9475
+ "(validate/array [1,2])"
9388
9476
  ],
9389
9477
  "docsSource": "reference-docs"
9390
9478
  },
@@ -9404,7 +9492,7 @@
9404
9492
  }
9405
9493
  ],
9406
9494
  "examples": [
9407
- "(validate/boolean @payload.active)"
9495
+ "(validate/boolean true)"
9408
9496
  ],
9409
9497
  "docsSource": "reference-docs"
9410
9498
  },
@@ -9429,7 +9517,7 @@
9429
9517
  }
9430
9518
  ],
9431
9519
  "examples": [
9432
- "(validate/check @payload.data)\n \"name\": [[\"required\"], [\"minLength\", 2], [\"maxLength\", 50]],\n \"email\": [[\"required\"], [\"email\"]],\n \"age\": [[\"number\"], [\"min\", 18]]\n}]"
9520
+ "(validate/check {\"name\":\"Ann\",\"email\":\"ann@example.com\",\"age\":20} {\"name\":[[\"required\"],[\"minLength\",2],[\"maxLength\",50]],\"email\":[[\"required\"],[\"email\"]],\"age\":[[\"number\"]]})"
9433
9521
  ],
9434
9522
  "docsSource": "reference-docs"
9435
9523
  },
@@ -9449,7 +9537,7 @@
9449
9537
  }
9450
9538
  ],
9451
9539
  "examples": [
9452
- "(validate/creditCard @payload.cardNumber)"
9540
+ "(validate/creditCard \"4111111111111111\")"
9453
9541
  ],
9454
9542
  "docsSource": "reference-docs"
9455
9543
  },
@@ -9469,7 +9557,7 @@
9469
9557
  }
9470
9558
  ],
9471
9559
  "examples": [
9472
- "(validate/date @payload.birthDate)"
9560
+ "(validate/date \"2024-01-18\")"
9473
9561
  ],
9474
9562
  "docsSource": "reference-docs"
9475
9563
  },
@@ -9489,7 +9577,7 @@
9489
9577
  }
9490
9578
  ],
9491
9579
  "examples": [
9492
- "(validate/email @payload.email)"
9580
+ "(validate/email \"ann@example.com\")"
9493
9581
  ],
9494
9582
  "docsSource": "reference-docs"
9495
9583
  },
@@ -9514,7 +9602,7 @@
9514
9602
  }
9515
9603
  ],
9516
9604
  "examples": [
9517
- "(validate/equals @payload.password @payload.confirmPassword)"
9605
+ "(validate/equals \"secret\" \"secret\")"
9518
9606
  ],
9519
9607
  "docsSource": "reference-docs"
9520
9608
  },
@@ -9534,7 +9622,7 @@
9534
9622
  }
9535
9623
  ],
9536
9624
  "examples": [
9537
- "(validate/length @payload.code 6)"
9625
+ "(validate/length \"ABC123\" 6)"
9538
9626
  ],
9539
9627
  "docsSource": "reference-docs"
9540
9628
  },
@@ -9559,7 +9647,7 @@
9559
9647
  }
9560
9648
  ],
9561
9649
  "examples": [
9562
- "(validate/max @payload.quantity 100)"
9650
+ "(validate/max 50 100)"
9563
9651
  ],
9564
9652
  "docsSource": "reference-docs"
9565
9653
  },
@@ -9579,7 +9667,7 @@
9579
9667
  }
9580
9668
  ],
9581
9669
  "examples": [
9582
- "(validate/maxLength @payload.name 50)"
9670
+ "(validate/maxLength \"Ann\" 50)"
9583
9671
  ],
9584
9672
  "docsSource": "reference-docs"
9585
9673
  },
@@ -9604,7 +9692,7 @@
9604
9692
  }
9605
9693
  ],
9606
9694
  "examples": [
9607
- "(validate/min @payload.age 18)"
9695
+ "(validate/min 21 18)"
9608
9696
  ],
9609
9697
  "docsSource": "reference-docs"
9610
9698
  },
@@ -9624,7 +9712,7 @@
9624
9712
  }
9625
9713
  ],
9626
9714
  "examples": [
9627
- "(validate/minLength @payload.password 8)"
9715
+ "(validate/minLength \"password123\" 8)"
9628
9716
  ],
9629
9717
  "docsSource": "reference-docs"
9630
9718
  },
@@ -9649,7 +9737,7 @@
9649
9737
  }
9650
9738
  ],
9651
9739
  "examples": [
9652
- "(validate/noneOf @payload.username (admin \"root\" \"system\"))"
9740
+ "(validate/noneOf \"alice\" [\"admin\",\"root\",\"system\"])"
9653
9741
  ],
9654
9742
  "docsSource": "reference-docs"
9655
9743
  },
@@ -9669,7 +9757,7 @@
9669
9757
  }
9670
9758
  ],
9671
9759
  "examples": [
9672
- "(validate/number @payload.age)"
9760
+ "(validate/number 42)"
9673
9761
  ],
9674
9762
  "docsSource": "reference-docs"
9675
9763
  },
@@ -9689,7 +9777,7 @@
9689
9777
  }
9690
9778
  ],
9691
9779
  "examples": [
9692
- "(validate/object @payload.data)"
9780
+ "(validate/object {\"a\":1})"
9693
9781
  ],
9694
9782
  "docsSource": "reference-docs"
9695
9783
  },
@@ -9714,7 +9802,7 @@
9714
9802
  }
9715
9803
  ],
9716
9804
  "examples": [
9717
- "(validate/oneOf @payload.role (admin \"user\" \"guest\"))"
9805
+ "(validate/oneOf \"admin\" [\"admin\",\"user\",\"guest\"])"
9718
9806
  ],
9719
9807
  "docsSource": "reference-docs"
9720
9808
  },
@@ -9739,7 +9827,7 @@
9739
9827
  }
9740
9828
  ],
9741
9829
  "examples": [
9742
- "(validate/pattern @payload.code \"^[A-Z]{3}[0-9]{3}$\")"
9830
+ "(validate/pattern \"ABC123\" \"^[A-Z]{3}[0-9]{3}$\")"
9743
9831
  ],
9744
9832
  "docsSource": "reference-docs"
9745
9833
  },
@@ -9759,7 +9847,7 @@
9759
9847
  }
9760
9848
  ],
9761
9849
  "examples": [
9762
- "(validate/phone @payload.phone)"
9850
+ "(validate/phone \"+15551234567\")"
9763
9851
  ],
9764
9852
  "docsSource": "reference-docs"
9765
9853
  },
@@ -9789,7 +9877,7 @@
9789
9877
  }
9790
9878
  ],
9791
9879
  "examples": [
9792
- "(validate/range @payload.rating 1 5)"
9880
+ "(validate/range 4 1 5)"
9793
9881
  ],
9794
9882
  "docsSource": "reference-docs"
9795
9883
  },
@@ -9809,7 +9897,7 @@
9809
9897
  }
9810
9898
  ],
9811
9899
  "examples": [
9812
- "(validate/required @payload.name)"
9900
+ "(validate/required \"Ann\")"
9813
9901
  ],
9814
9902
  "docsSource": "reference-docs"
9815
9903
  },
@@ -9829,7 +9917,7 @@
9829
9917
  }
9830
9918
  ],
9831
9919
  "examples": [
9832
- "(validate/string @payload.name)"
9920
+ "(validate/string \"Ann\")"
9833
9921
  ],
9834
9922
  "docsSource": "reference-docs"
9835
9923
  },
@@ -9849,7 +9937,7 @@
9849
9937
  }
9850
9938
  ],
9851
9939
  "examples": [
9852
- "(validate/url @payload.website)"
9940
+ "(validate/url \"https://example.com\")"
9853
9941
  ],
9854
9942
  "docsSource": "reference-docs"
9855
9943
  },
@@ -9869,7 +9957,7 @@
9869
9957
  }
9870
9958
  ],
9871
9959
  "examples": [
9872
- "(validate/uuid @payload.id)"
9960
+ "(validate/uuid \"550e8400-e29b-41d4-a716-446655440000\")"
9873
9961
  ],
9874
9962
  "docsSource": "reference-docs"
9875
9963
  },
@@ -9895,7 +9983,7 @@
9895
9983
  }
9896
9984
  ],
9897
9985
  "examples": [
9898
- "(validate/validate @orbital_path @opts)"
9986
+ "(validate/validate \"composed\")"
9899
9987
  ],
9900
9988
  "docsSource": "generated"
9901
9989
  },
@@ -10406,7 +10494,7 @@
10406
10494
  }
10407
10495
  ],
10408
10496
  "examples": [
10409
- "(workspace/write-file \"config.json\" @content)"
10497
+ "(workspace/write-file \"orbitals/Product.orb\" {\"orbitals\":[]})"
10410
10498
  ],
10411
10499
  "docsSource": "generated"
10412
10500
  },
@@ -10432,7 +10520,7 @@
10432
10520
  }
10433
10521
  ],
10434
10522
  "examples": [
10435
- "(workspace/write-orbital \"my-orbital\" @definition)"
10523
+ "(workspace/write-orbital \"ProductOrbital\" {\"name\":\"ProductOrbital\"})"
10436
10524
  ],
10437
10525
  "docsSource": "generated"
10438
10526
  },
@@ -10453,7 +10541,7 @@
10453
10541
  }
10454
10542
  ],
10455
10543
  "examples": [
10456
- "(workspace/write-plan @plan)"
10544
+ "(workspace/write-plan [\"create entity\",\"add list page\"])"
10457
10545
  ],
10458
10546
  "docsSource": "generated"
10459
10547
  },
@@ -10474,7 +10562,7 @@
10474
10562
  }
10475
10563
  ],
10476
10564
  "examples": [
10477
- "(workspace/write-schema @schema)"
10565
+ "(workspace/write-schema {\"orbitals\":[{\"name\":\"ProductOrbital\"}]})"
10478
10566
  ],
10479
10567
  "docsSource": "generated"
10480
10568
  }