@almadar/std 17.0.3 → 17.1.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 (313) hide show
  1. package/behaviors/lolo/auth/atoms/std-dev-personas.lolo +27 -2
  2. package/behaviors/lolo/cli/atoms/std-orb-goldens.lolo +6 -3
  3. package/behaviors/lolo/cli/atoms/std-orb-lint-mem-handles.lolo +54 -34
  4. package/behaviors/lolo/cli/atoms/std-orb-lint-os-grants.lolo +4 -4
  5. package/behaviors/lolo/cli/atoms/std-orb-mcp.lolo +16 -21
  6. package/behaviors/lolo/cli/atoms/std-orb-serve.lolo +24 -4
  7. package/behaviors/lolo/codec/atoms/std-lolo-kotlin.lolo +26 -3
  8. package/behaviors/lolo/codec/atoms/std-lolo-python.lolo +15 -2
  9. package/behaviors/lolo/codec/atoms/std-lolo-rust.lolo +27 -2
  10. package/behaviors/lolo/codec/atoms/std-lolo-source.lolo +251 -60
  11. package/behaviors/lolo/codec/atoms/std-lolo-swift.lolo +24 -1
  12. package/behaviors/lolo/codec/atoms/std-lolo-typescript.lolo +24 -3
  13. package/behaviors/lolo/connect/atoms/std-meta-ads.lolo +4 -4
  14. package/behaviors/lolo/connect/atoms/std-stdio-lines.lolo +7 -4
  15. package/behaviors/lolo/connect/atoms/std-youtube.lolo +9 -9
  16. package/behaviors/lolo/dev/atoms/std-guest-session.lolo +122 -10
  17. package/behaviors/lolo/dev/atoms/std-mock-seed-marks.lolo +66 -0
  18. package/behaviors/lolo/dev/organisms/std-behavior-playground.lolo +5 -2
  19. package/behaviors/lolo/dev/organisms/std-launchpad.lolo +4 -3
  20. package/behaviors/lolo/gpu/atoms/std-gpu-compute.lolo +329 -0
  21. package/behaviors/lolo/net/atoms/std-http-client.lolo +4 -4
  22. package/behaviors/lolo/net/atoms/std-http-fetch.lolo +6 -6
  23. package/behaviors/lolo/net/atoms/std-npm-lookup.lolo +1 -1
  24. package/behaviors/lolo/net/atoms/std-npm-registry.lolo +2 -2
  25. package/behaviors/lolo/spec/auth/dev-personas.replay.goldens.json +263 -2
  26. package/behaviors/lolo/spec/cli/lint-all.lolo +1 -0
  27. package/behaviors/lolo/spec/cli/lint-item-action-event.replay.goldens.json +9 -9
  28. package/behaviors/lolo/spec/cli/lint-mem-handles.replay.goldens.json +3021 -1
  29. package/behaviors/lolo/spec/cli/lint-os-grants.replay.goldens.json +284 -12
  30. package/behaviors/lolo/spec/cli/mcp-server.replay.goldens.json +51 -55
  31. package/behaviors/lolo/spec/cli/orb-compile.replay.goldens.json +10 -4
  32. package/behaviors/lolo/spec/codec/lolo-kotlin.replay.goldens.json +7496 -7497
  33. package/behaviors/lolo/spec/codec/lolo-python.replay.goldens.json +341 -3
  34. package/behaviors/lolo/spec/codec/lolo-rust.replay.goldens.json +18931 -6142
  35. package/behaviors/lolo/spec/codec/lolo-source.fixtures/compose-pair.lolo +44 -0
  36. package/behaviors/lolo/spec/codec/lolo-source.fixtures/config-read.lolo +2 -1
  37. package/behaviors/lolo/spec/codec/lolo-source.fixtures/divide-default.lolo +2 -1
  38. package/behaviors/lolo/spec/codec/lolo-source.fixtures/divide-plain.lolo +2 -1
  39. package/behaviors/lolo/spec/codec/lolo-source.fixtures/get-past-end.lolo +2 -1
  40. package/behaviors/lolo/spec/codec/lolo-source.fixtures/list-call.lolo +2 -1
  41. package/behaviors/lolo/spec/codec/lolo-source.fixtures/list-plain.lolo +2 -1
  42. package/behaviors/lolo/spec/codec/lolo-source.fixtures/minus-binary.lolo +2 -1
  43. package/behaviors/lolo/spec/codec/lolo-source.fixtures/minus-unary.lolo +2 -1
  44. package/behaviors/lolo/spec/codec/lolo-source.fixtures/nested-let.lolo +2 -1
  45. package/behaviors/lolo/spec/codec/lolo-source.fixtures/no-machine.lolo +2 -1
  46. package/behaviors/lolo/spec/codec/lolo-source.fixtures/no-template.lolo +2 -1
  47. package/behaviors/lolo/spec/codec/lolo-source.fixtures/nth-past-end.lolo +2 -1
  48. package/behaviors/lolo/spec/codec/lolo-source.fixtures/nth-raw.lolo +2 -1
  49. package/behaviors/lolo/spec/codec/lolo-source.fixtures/ports-call.lolo +2 -1
  50. package/behaviors/lolo/spec/codec/lolo-source.fixtures/range-one.lolo +2 -1
  51. package/behaviors/lolo/spec/codec/lolo-source.fixtures/range-two.lolo +2 -1
  52. package/behaviors/lolo/spec/codec/lolo-source.fixtures/router-trio.lolo +88 -0
  53. package/behaviors/lolo/spec/codec/lolo-source.fixtures/store-pair.lolo +62 -0
  54. package/behaviors/lolo/spec/codec/lolo-source.fixtures/string-literal.lolo +2 -1
  55. package/behaviors/lolo/spec/codec/lolo-source.gen/knobs.py +27 -1
  56. package/behaviors/lolo/spec/codec/lolo-source.gen/src_assemble.in +54 -2
  57. package/behaviors/lolo/spec/codec/lolo-source.gen/src_finish.in +1 -1
  58. package/behaviors/lolo/spec/codec/lolo-source.gen/src_fold.in +24 -4
  59. package/behaviors/lolo/spec/codec/lolo-source.gen/src_head.in +8 -3
  60. package/behaviors/lolo/spec/codec/lolo-source.gen/src_prepare.in +6 -2
  61. package/behaviors/lolo/spec/codec/lolo-source.gen/src_trait.in +12 -2
  62. package/behaviors/lolo/spec/codec/lolo-source.parity/agent-step.lolo +2 -1
  63. package/behaviors/lolo/spec/codec/lolo-source.parity/agent-step.server.lolo +1 -0
  64. package/behaviors/lolo/spec/codec/lolo-source.parity/chunk.lolo +2 -1
  65. package/behaviors/lolo/spec/codec/lolo-source.parity/chunk.server.lolo +1 -0
  66. package/behaviors/lolo/spec/codec/lolo-source.parity/compose-pair.events.json +36 -0
  67. package/behaviors/lolo/spec/codec/lolo-source.parity/compose-pair.replay.goldens.json +91 -0
  68. package/behaviors/lolo/spec/codec/lolo-source.parity/cosine.lolo +2 -1
  69. package/behaviors/lolo/spec/codec/lolo-source.parity/cosine.server.lolo +1 -0
  70. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/compose-pair.kt +31 -0
  71. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/router-trio.kt +31 -0
  72. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/store-pair.kt +31 -0
  73. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/compose-pair.py +18 -0
  74. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/router-trio.py +18 -0
  75. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/store-pair.py +17 -0
  76. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/compose-pair.rs +37 -0
  77. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/router-trio.rs +37 -0
  78. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/store-pair.rs +36 -0
  79. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/compose-pair.swift +24 -0
  80. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/router-trio.swift +24 -0
  81. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/store-pair.swift +23 -0
  82. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/compose-pair.mts +24 -0
  83. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/router-trio.mts +24 -0
  84. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/store-pair.mts +22 -0
  85. package/behaviors/lolo/spec/codec/lolo-source.parity/recall-at-k.lolo +2 -1
  86. package/behaviors/lolo/spec/codec/lolo-source.parity/recall-at-k.server.lolo +1 -0
  87. package/behaviors/lolo/spec/codec/lolo-source.parity/router-trio.events.json +18 -0
  88. package/behaviors/lolo/spec/codec/lolo-source.parity/router-trio.replay.goldens.json +87 -0
  89. package/behaviors/lolo/spec/codec/lolo-source.parity/store-pair.events.json +58 -0
  90. package/behaviors/lolo/spec/codec/lolo-source.parity/store-pair.replay.goldens.json +238 -0
  91. package/behaviors/lolo/spec/codec/lolo-swift.replay.goldens.json +15599 -2204
  92. package/behaviors/lolo/spec/codec/lolo-typescript.replay.goldens.json +28930 -28929
  93. package/behaviors/lolo/spec/connect/bearer-api.replay.goldens.json +1 -1
  94. package/behaviors/lolo/spec/connect/esign.replay.goldens.json +3 -3
  95. package/behaviors/lolo/spec/connect/github.replay.goldens.json +13 -13
  96. package/behaviors/lolo/spec/connect/google-calendar.replay.goldens.json +2 -2
  97. package/behaviors/lolo/spec/connect/image.replay.goldens.json +1 -1
  98. package/behaviors/lolo/spec/connect/meta-ads.replay.goldens.json +2 -2
  99. package/behaviors/lolo/spec/connect/stdio-lines.replay.goldens.json +90 -0
  100. package/behaviors/lolo/spec/connect/twilio.replay.goldens.json +2 -2
  101. package/behaviors/lolo/spec/connect/youtube.replay.goldens.json +1 -1
  102. package/behaviors/lolo/spec/dev/guest-session.replay.goldens.json +824 -0
  103. package/behaviors/lolo/spec/dev/mock-seed-marks.replay.goldens.json +365 -0
  104. package/behaviors/lolo/spec/dev/verify-walk.replay.goldens.json +2 -1
  105. package/behaviors/lolo/spec/gpu/gpu-compute.replay.goldens.json +784 -0
  106. package/behaviors/lolo/spec/mem/mem-buffer.replay.goldens.json +97 -1
  107. package/behaviors/lolo/spec/ml/vector-write.goldens.json +1 -1
  108. package/behaviors/lolo/spec/ml/vector-write.replay.goldens.json +2 -2
  109. package/behaviors/lolo/spec/net/http-client-call-host.replay.goldens.json +3 -3
  110. package/behaviors/lolo/spec/net/http-client-env-host.replay.goldens.json +3 -3
  111. package/behaviors/lolo/spec/net/http-client.replay.goldens.json +56 -56
  112. package/behaviors/lolo/spec/net/http-fetch.replay.goldens.json +2 -2
  113. package/behaviors/lolo/spec/net/npm-lookup.replay.goldens.json +1 -1
  114. package/behaviors/lolo/spec/net/npm-registry.replay.goldens.json +2 -2
  115. package/behaviors/lolo/spec/net/server-declared-traits.replay.goldens.json +6 -3
  116. package/behaviors/lolo/spec/net/server-external-inputs.replay.goldens.json +16 -8
  117. package/behaviors/lolo/spec/net/server-retargeted-leg.replay.goldens.json +4 -2
  118. package/behaviors/lolo/spec/net/server-untargeted-discovery.replay.goldens.json +50 -45
  119. package/behaviors/lolo/spec/ops/llm-spend-board.replay.goldens.json +112 -16
  120. package/behaviors/lolo/spec/store/firestore-twin.replay.goldens.json +1 -1
  121. package/behaviors/lolo/spec/store/row-store-postgres.gen/record_real_sql.py +1 -1
  122. package/behaviors/lolo/spec/ui/game/fx-particles.replay.goldens.json +37 -0
  123. package/behaviors/lolo/ui/avl/atoms/std-avl-cosmic-zoom.lolo +2 -2
  124. package/behaviors/lolo/ui/game/atoms/std-fx-particles.lolo +10 -1
  125. package/behaviors/lolo/ui/game/atoms/ui-draw-fx-layer.lolo +4 -4
  126. package/behaviors/lolo/ui/game/organisms/std-arcade-board-3d.lolo +9 -9
  127. package/behaviors/lolo/ui/game/organisms/std-crew-board-2d.lolo +4 -4
  128. package/behaviors/lolo/ui/game/organisms/std-dungeon-board-2d.lolo +5 -5
  129. package/behaviors/lolo/ui/game/organisms/std-market-board-3d.lolo +9 -9
  130. package/behaviors/lolo/ui/game/organisms/std-objective-board-3d.lolo +9 -9
  131. package/behaviors/lolo/ui/game/organisms/std-platformer-board-2d.lolo +5 -5
  132. package/behaviors/lolo/ui/game/organisms/std-platformer-puzzle.lolo +4 -4
  133. package/behaviors/lolo/ui/game/organisms/std-survival-board-3d.lolo +9 -9
  134. package/behaviors/lolo/ui/game/organisms/std-tactics-board-2d.lolo +5 -5
  135. package/behaviors/lolo/ui/game/organisms/std-tactics-board-3d.lolo +9 -9
  136. package/behaviors/registry/auth/atoms/std-dev-personas.orb +1 -1
  137. package/behaviors/registry/cli/atoms/std-orb-goldens.orb +1 -1
  138. package/behaviors/registry/cli/atoms/std-orb-lint-mem-handles.orb +1 -1
  139. package/behaviors/registry/cli/atoms/std-orb-lint-os-grants.orb +1 -1
  140. package/behaviors/registry/cli/atoms/std-orb-mcp.orb +1 -1
  141. package/behaviors/registry/cli/atoms/std-orb-serve.orb +1 -1
  142. package/behaviors/registry/codec/atoms/std-lolo-kotlin.orb +1 -1
  143. package/behaviors/registry/codec/atoms/std-lolo-python.orb +1 -1
  144. package/behaviors/registry/codec/atoms/std-lolo-rust.orb +1 -1
  145. package/behaviors/registry/codec/atoms/std-lolo-source.orb +1 -1
  146. package/behaviors/registry/codec/atoms/std-lolo-swift.orb +1 -1
  147. package/behaviors/registry/codec/atoms/std-lolo-typescript.orb +1 -1
  148. package/behaviors/registry/connect/atoms/std-meta-ads.orb +1 -1
  149. package/behaviors/registry/connect/atoms/std-stdio-lines.orb +1 -1
  150. package/behaviors/registry/connect/atoms/std-youtube.orb +1 -1
  151. package/behaviors/registry/dev/atoms/std-guest-session.orb +1 -1
  152. package/behaviors/registry/dev/atoms/std-mock-seed-marks.orb +1 -0
  153. package/behaviors/registry/dev/organisms/std-behavior-playground.orb +37 -0
  154. package/behaviors/registry/dev/organisms/std-launchpad.orb +25 -0
  155. package/behaviors/registry/gpu/atoms/std-gpu-compute.orb +1 -0
  156. package/behaviors/registry/net/atoms/std-http-client.orb +1 -1
  157. package/behaviors/registry/net/atoms/std-http-fetch.orb +1 -1
  158. package/behaviors/registry/net/atoms/std-npm-lookup.orb +1 -1
  159. package/behaviors/registry/net/atoms/std-npm-registry.orb +1 -1
  160. package/behaviors/registry/spec/cli/lint-all.orb +1 -1
  161. package/behaviors/registry/spec/codec/lolo-source.fixtures/compose-pair.orb +1 -0
  162. package/behaviors/registry/spec/codec/lolo-source.fixtures/config-read.orb +1 -1
  163. package/behaviors/registry/spec/codec/lolo-source.fixtures/divide-default.orb +1 -1
  164. package/behaviors/registry/spec/codec/lolo-source.fixtures/divide-plain.orb +1 -1
  165. package/behaviors/registry/spec/codec/lolo-source.fixtures/get-past-end.orb +1 -1
  166. package/behaviors/registry/spec/codec/lolo-source.fixtures/list-call.orb +1 -1
  167. package/behaviors/registry/spec/codec/lolo-source.fixtures/list-plain.orb +1 -1
  168. package/behaviors/registry/spec/codec/lolo-source.fixtures/minus-binary.orb +1 -1
  169. package/behaviors/registry/spec/codec/lolo-source.fixtures/minus-unary.orb +1 -1
  170. package/behaviors/registry/spec/codec/lolo-source.fixtures/nested-let.orb +1 -1
  171. package/behaviors/registry/spec/codec/lolo-source.fixtures/no-machine.orb +1 -1
  172. package/behaviors/registry/spec/codec/lolo-source.fixtures/no-template.orb +1 -1
  173. package/behaviors/registry/spec/codec/lolo-source.fixtures/nth-past-end.orb +1 -1
  174. package/behaviors/registry/spec/codec/lolo-source.fixtures/nth-raw.orb +1 -1
  175. package/behaviors/registry/spec/codec/lolo-source.fixtures/ports-call.orb +1 -1
  176. package/behaviors/registry/spec/codec/lolo-source.fixtures/range-one.orb +1 -1
  177. package/behaviors/registry/spec/codec/lolo-source.fixtures/range-two.orb +1 -1
  178. package/behaviors/registry/spec/codec/lolo-source.fixtures/router-trio.orb +1 -0
  179. package/behaviors/registry/spec/codec/lolo-source.fixtures/store-pair.orb +1 -0
  180. package/behaviors/registry/spec/codec/lolo-source.fixtures/string-literal.orb +1 -1
  181. package/behaviors/registry/spec/codec/lolo-source.parity/agent-step.orb +1 -1
  182. package/behaviors/registry/spec/codec/lolo-source.parity/agent-step.server.orb +1 -1
  183. package/behaviors/registry/spec/codec/lolo-source.parity/chunk.orb +1 -1
  184. package/behaviors/registry/spec/codec/lolo-source.parity/chunk.server.orb +1 -1
  185. package/behaviors/registry/spec/codec/lolo-source.parity/cosine.orb +1 -1
  186. package/behaviors/registry/spec/codec/lolo-source.parity/cosine.server.orb +1 -1
  187. package/behaviors/registry/spec/codec/lolo-source.parity/recall-at-k.orb +1 -1
  188. package/behaviors/registry/spec/codec/lolo-source.parity/recall-at-k.server.orb +1 -1
  189. package/behaviors/registry/ui/avl/atoms/std-avl-cosmic-zoom.orb +1 -1
  190. package/behaviors/registry/ui/game/atoms/std-fx-particles.orb +1 -1
  191. package/behaviors/registry/ui/game/atoms/ui-draw-fx-layer.orb +1 -1
  192. package/behaviors/registry/ui/game/organisms/std-arcade-board-3d.orb +20 -13
  193. package/behaviors/registry/ui/game/organisms/std-crew-board-2d.orb +9 -5
  194. package/behaviors/registry/ui/game/organisms/std-dungeon-board-2d.orb +17 -7
  195. package/behaviors/registry/ui/game/organisms/std-market-board-3d.orb +19 -15
  196. package/behaviors/registry/ui/game/organisms/std-objective-board-3d.orb +15 -12
  197. package/behaviors/registry/ui/game/organisms/std-platformer-board-2d.orb +17 -7
  198. package/behaviors/registry/ui/game/organisms/std-platformer-puzzle.orb +4 -0
  199. package/behaviors/registry/ui/game/organisms/std-survival-board-3d.orb +15 -12
  200. package/behaviors/registry/ui/game/organisms/std-tactics-board-2d.orb +13 -6
  201. package/behaviors/registry/ui/game/organisms/std-tactics-board-3d.orb +14 -12
  202. package/canonical-operators.json +1426 -103
  203. package/dist/{chunk-EK22WRB6.js → chunk-2UGHBVU2.js} +2 -2
  204. package/dist/{chunk-GDMH5T4J.js → chunk-3DK7GI2C.js} +2 -2
  205. package/dist/chunk-3MDASC5C.js +26 -0
  206. package/dist/{chunk-K5ZI27PB.js → chunk-3PHO4RRF.js} +1 -1
  207. package/dist/{chunk-7IEMMYM6.js → chunk-4MJCLAZW.js} +1 -1
  208. package/dist/{chunk-W4IEV4BY.js → chunk-55JPIL7A.js} +2 -2
  209. package/dist/{chunk-RUGBZTV3.js → chunk-66BLZLFI.js} +1 -1
  210. package/dist/{chunk-YWFISV7L.js → chunk-66RAJFOD.js} +1 -1
  211. package/dist/{chunk-JWOWWGNZ.js → chunk-6ED4SUC6.js} +1 -1
  212. package/dist/{chunk-LL7P6EII.js → chunk-6KFCHNE2.js} +2 -2
  213. package/dist/{chunk-GFBL2TW6.js → chunk-A4QB3Y6L.js} +1 -1
  214. package/dist/chunk-BVWMLS32.js +123 -0
  215. package/dist/{chunk-5KQCGSNC.js → chunk-CRKVDCY7.js} +1 -1
  216. package/dist/{chunk-WHQDLLC3.js → chunk-EKWEY4OJ.js} +1 -1
  217. package/dist/{chunk-Y3BRVNYK.js → chunk-EU22GCGV.js} +2 -2
  218. package/dist/{chunk-XQPYTDZ4.js → chunk-FB6PKNRS.js} +1 -1
  219. package/dist/{chunk-UX3MDFX6.js → chunk-FSVOJQLP.js} +1 -1
  220. package/dist/{chunk-LDBD2FBQ.js → chunk-GAKLBWBR.js} +1 -1
  221. package/dist/{chunk-C3IEMPRZ.js → chunk-GO3FKBV2.js} +2 -2
  222. package/dist/{chunk-LZSPEHSM.js → chunk-GPDTJHYY.js} +1 -1
  223. package/dist/{chunk-W5ABMOXU.js → chunk-JQBWLH5V.js} +1 -1
  224. package/dist/{chunk-63X6RNY6.js → chunk-KKW3JHTC.js} +1 -1
  225. package/dist/{chunk-5PLJE42Q.js → chunk-LF2EZVAM.js} +1 -1
  226. package/dist/{chunk-RXWBYWQB.js → chunk-LGCKOZP3.js} +2 -2
  227. package/dist/{chunk-JJEADYP7.js → chunk-LMZ6XJFB.js} +2 -2
  228. package/dist/{chunk-CWYSQZJU.js → chunk-M2YQNSAZ.js} +2 -2
  229. package/dist/{chunk-GNCKJV3P.js → chunk-MKWHYBIS.js} +1 -1
  230. package/dist/{chunk-ZB2CLGEG.js → chunk-MXBGYTYF.js} +1 -1
  231. package/dist/{chunk-UN76TRSK.js → chunk-NH6MXHZR.js} +41 -41
  232. package/dist/{chunk-II2VW7T6.js → chunk-ODBIX4DB.js} +1 -1
  233. package/dist/{chunk-3F3CNWOG.js → chunk-OYDQR6DT.js} +2 -2
  234. package/dist/{chunk-FVL6BT6L.js → chunk-PD6POR44.js} +1 -1
  235. package/dist/{chunk-U6USXZ5M.js → chunk-PHFT3QNS.js} +2 -2
  236. package/dist/{chunk-RJYKIZMS.js → chunk-PQZ6PVKG.js} +2 -2
  237. package/dist/{chunk-TQPQXCSZ.js → chunk-Q6NHXIOZ.js} +2 -2
  238. package/dist/{chunk-KYGWVCTM.js → chunk-QMDVYTB7.js} +1 -1
  239. package/dist/{chunk-XKTATY45.js → chunk-RW2KMSG5.js} +4 -4
  240. package/dist/{chunk-UHNSPTFT.js → chunk-SA2ZS24W.js} +1 -1
  241. package/dist/{chunk-6YPUQK36.js → chunk-SFWP4UMK.js} +2 -2
  242. package/dist/{chunk-ZZYLFHBU.js → chunk-TLNEQA4D.js} +1 -1
  243. package/dist/{chunk-RGTBRWWA.js → chunk-TOODE5AD.js} +2 -2
  244. package/dist/{chunk-QGWAHOFR.js → chunk-U57GY7SM.js} +2 -2
  245. package/dist/{chunk-FDJZKB7J.js → chunk-UIDQQJSX.js} +1 -1
  246. package/dist/{chunk-LLH3WXM3.js → chunk-UVFP2B7I.js} +1 -1
  247. package/dist/{chunk-4OF7727E.js → chunk-VEGZPCTZ.js} +2 -2
  248. package/dist/{chunk-73YUPNIT.js → chunk-VXN4V7LC.js} +1 -1
  249. package/dist/{chunk-4D3W6AAE.js → chunk-YHQVZWPG.js} +1 -1
  250. package/dist/{chunk-XXYBHYLM.js → chunk-YQO3TO66.js} +2 -2
  251. package/dist/{chunk-YZAYFR5A.js → chunk-ZSJ3GEOJ.js} +1 -1
  252. package/dist/index.d.ts +3 -3
  253. package/dist/index.js +50 -50
  254. package/dist/modules/anim.js +2 -2
  255. package/dist/modules/array.js +2 -2
  256. package/dist/modules/auth.js +3 -3
  257. package/dist/modules/behavior.js +2 -2
  258. package/dist/modules/bit.js +2 -2
  259. package/dist/modules/browser.js +2 -2
  260. package/dist/modules/bytes.js +2 -2
  261. package/dist/modules/codec.js +3 -3
  262. package/dist/modules/composition.js +2 -2
  263. package/dist/modules/core.js +2 -2
  264. package/dist/modules/csv.js +2 -2
  265. package/dist/modules/ffi.js +3 -3
  266. package/dist/modules/format.js +2 -2
  267. package/dist/modules/geo.js +2 -2
  268. package/dist/modules/gpu.d.ts +12 -0
  269. package/dist/modules/gpu.js +3 -0
  270. package/dist/modules/grid.js +2 -2
  271. package/dist/modules/i18n.js +2 -2
  272. package/dist/modules/index.d.ts +1 -2
  273. package/dist/modules/index.js +45 -46
  274. package/dist/modules/json.js +2 -2
  275. package/dist/modules/kernel.js +3 -3
  276. package/dist/modules/kv.js +3 -3
  277. package/dist/modules/llm.js +2 -2
  278. package/dist/modules/math.js +2 -2
  279. package/dist/modules/mem.js +3 -3
  280. package/dist/modules/object.js +2 -2
  281. package/dist/modules/os-common.d.ts +1 -1
  282. package/dist/modules/os-common.js +2 -2
  283. package/dist/modules/os-desktop.js +3 -3
  284. package/dist/modules/os-dev.js +3 -3
  285. package/dist/modules/os-dir.js +3 -3
  286. package/dist/modules/os-env-stdio.js +3 -3
  287. package/dist/modules/os-fs.js +3 -3
  288. package/dist/modules/os-net.js +3 -3
  289. package/dist/modules/os-path.js +3 -3
  290. package/dist/modules/os-process.js +3 -3
  291. package/dist/modules/os-sys.js +3 -3
  292. package/dist/modules/os-time-users.js +3 -3
  293. package/dist/modules/os.js +13 -13
  294. package/dist/modules/path.js +2 -2
  295. package/dist/modules/prob.js +2 -2
  296. package/dist/modules/program.js +2 -2
  297. package/dist/modules/session.js +2 -2
  298. package/dist/modules/str.js +2 -2
  299. package/dist/modules/time.js +2 -2
  300. package/dist/modules/validate.js +2 -2
  301. package/dist/modules/vector.js +2 -2
  302. package/dist/modules/workspace.js +2 -2
  303. package/dist/modules/xml.js +2 -2
  304. package/dist/modules/yaml.js +2 -2
  305. package/dist/registry.d.ts +2 -2
  306. package/dist/registry.js +49 -49
  307. package/dist/{types-BA4LkhNJ.d.ts → types-CgiGhK6t.d.ts} +17 -3
  308. package/package.json +5 -5
  309. package/dist/chunk-F5TP25JA.js +0 -26
  310. package/dist/chunk-NE4WSTN7.js +0 -26
  311. package/dist/modules/trace.d.ts +0 -15
  312. package/dist/modules/trace.js +0 -2
  313. /package/dist/{chunk-SHSBTDDX.js → chunk-QUQ33UXH.js} +0 -0
@@ -5694,9 +5694,10 @@
5694
5694
  {
5695
5695
  "event": "PYTHON_RENDERED",
5696
5696
  "payload": {
5697
- "text": "from orbital_app.generated.entities import Rec\nfrom orbital_app.generated.events import TDONEPayload, TGOPayload\n\n\ndef _text(v):\n if isinstance(v, bool): return 'true' if v else 'false'\n if isinstance(v, float) and v - v == 0 and v == int(v): return str(int(v))\n if isinstance(v, (int, float, str)): return str(v)\n raise TypeError('expected string, number or boolean')\n\n\nclass T:\n def __init__(self, entity: Rec, ports=None):\n self.state = \"idle\"\n self.entity = entity\n self.ports = ports\n self.emitted: list[tuple[str, object]] = []\n\n def emit(self, event, payload):\n self.emitted.append((event, payload))\n\n def on_init(self, payload=None) -> None:\n if self.state == \"idle\":\n self.state = \"idle\"\n\n def on_go(self, payload: TGOPayload) -> None:\n if self.state == \"idle\":\n self.ports.persist(\"upsert\", \"Rec\", {\"id\": \"r1\"})\n self.entity.label = \"y\"\n self.entity.n = (self.entity.n + 1)\n self.entity.tags = [\"\".join(_text(v_) for v_ in [x, \"-\", i]) for i, x in enumerate(payload.items)]\n self.emit(\"DONE\", TDONEPayload(n=self.entity.n, label=self.entity.label))\n self.state = \"idle\"\n",
5697
+ "text": "from collections import deque\nimport dataclasses\nimport json\nfrom orbital_app.generated.entities import Rec\nfrom orbital_app.generated.events import TDONEPayload, TGOPayload\n\n\nclass MemoryStore:\n def __init__(self):\n self.tables = {}\n self.minted = 0\n\n def persist(self, op, entity, data):\n rows = self.tables.setdefault(entity, {})\n if op == \"create\":\n row = dict(_plain(data))\n if not row.get(\"id\"):\n self.minted += 1\n row[\"id\"] = entity + \"-\" + str(self.minted)\n rows[row[\"id\"]] = row\n return True, dict(row)\n key = data if isinstance(data, str) else _plain(data).get(\"id\")\n if key not in rows:\n return False, {\"error\": entity + \" \" + str(key) + \" not found\", \"code\": \"not-found\"}\n if op == \"delete\":\n del rows[key]\n return True, {\"id\": key, \"deleted\": True}\n rows[key].update(_plain(data))\n return True, dict(rows[key])\n\n def fetch(self, entity, keep):\n rows = [dict(r) for r in self.tables.get(entity, {}).values() if keep is None or keep(dict(r))]\n rows.sort(key=lambda r: (0, r[\"createdAt\"], r[\"id\"]) if \"createdAt\" in r else (1, 0, r[\"id\"]))\n return True, {\"data\": rows, \"totalCount\": len(rows)}\nclass _Router:\n def __init__(self):\n self.traits = {}\n self.handles = {}\n self.rows = []\n self.log = []\n\n def add(self, key, trait):\n self.traits[key] = trait\n\n def row(self, source, event, target, trigger, guard, mapping):\n self.rows.append((source, event, target, trigger, guard, mapping))\n\n def targets(self, source, event, payload, completion):\n return [{\"trait\": target, \"event\": trigger, \"payload\": mapping(payload) if mapping else payload, \"source\": payload,\n \"guard\": guard, \"fans\": False, \"completion\": completion}\n for (s, e, target, trigger, guard, mapping) in self.rows if s == source and e == event]\n\n def dispatch(self, trait, event, payload):\n queue = deque([{\"trait\": trait, \"event\": event, \"payload\": payload, \"source\": payload, \"guard\": None, \"fans\": True, \"completion\": False}])\n seen = set()\n steps = 0\n while queue:\n item = queue.popleft()\n t = self.traits[item[\"trait\"]]\n key = json.dumps([item[\"trait\"], item[\"event\"], t.state, item[\"payload\"], _plain(t.entity)], sort_keys=True, default=str)\n if not item[\"completion\"] and key in seen:\n continue\n if item[\"guard\"] is not None and not item[\"guard\"](item[\"source\"]):\n continue\n if steps >= 2000:\n break\n steps += 1\n seen.add(key)\n n = len(t.emitted)\n self.deliver(item[\"trait\"], item[\"event\"], item[\"payload\"])\n own, fanned = [], []\n if item[\"fans\"]:\n fanned += self.targets(item[\"trait\"], item[\"event\"], item[\"payload\"], False)\n for emitted in t.emitted[n:]:\n ev, out = emitted[0], _plain(emitted[1])\n completion = len(emitted) > 2 and emitted[2]\n self.log.append((item[\"trait\"], ev, out))\n if ev in self.handles[item[\"trait\"]].get(t.state, ()):\n own.append({\"trait\": item[\"trait\"], \"event\": ev, \"payload\": out, \"source\": out, \"guard\": None, \"fans\": False, \"completion\": completion})\n fanned += self.targets(item[\"trait\"], ev, out, completion)\n queue.extendleft(reversed(own))\n queue.extend(fanned)\ndef _decode(cls, payload):\n names = {f.name for f in dataclasses.fields(cls)}\n return cls(**{k: v for k, v in (payload or {}).items() if k in names})\ndef _plain(v):\n if dataclasses.is_dataclass(v):\n return dataclasses.asdict(v)\n return {} if v is None else v\ndef _text(v):\n if isinstance(v, bool): return 'true' if v else 'false'\n if isinstance(v, float) and v - v == 0 and v == int(v): return str(int(v))\n if isinstance(v, (int, float, str)): return str(v)\n raise TypeError('expected string, number or boolean')\n\n\nclass T:\n def __init__(self, entity: Rec, ports=None):\n self.state = \"idle\"\n self.entity = entity\n self.ports = ports\n self.emitted: list[tuple[str, object]] = []\n\n def emit(self, event, payload):\n self.emitted.append((event, payload))\n\n def complete(self, answer, success, failure):\n ok, payload = answer\n route = success if ok else failure\n if route is not None:\n self.emitted.append((route, payload, True))\n\n def on_init(self, payload=None) -> None:\n if self.state == \"idle\":\n self.state = \"idle\"\n\n def on_go(self, payload: TGOPayload) -> None:\n if self.state == \"idle\":\n self.complete(self.ports.persist(\"upsert\", \"Rec\", {\"id\": \"r1\"}), None, None)\n self.entity.label = \"y\"\n self.entity.n = (self.entity.n + 1)\n self.entity.tags = [\"\".join(_text(v_) for v_ in [x, \"-\", i]) for i, x in enumerate(payload.items)]\n self.emit(\"DONE\", TDONEPayload(n=self.entity.n, label=self.entity.label))\n self.state = \"idle\"\n\n\nclass Program(_Router):\n def __init__(self, entities, ports=None):\n super().__init__()\n self.add(\"Fx.T\", T(entities[\"Fx.T\"], ports))\n self.handles[\"Fx.T\"] = {\"idle\": [\"INIT\", \"GO\"]}\n\n def deliver(self, target, event, payload):\n if target == \"Fx.T\" and event == \"INIT\":\n return self.traits[target].on_init()\n if target == \"Fx.T\" and event == \"GO\":\n return self.traits[target].on_go(_decode(TGOPayload, payload))\n",
5698
5698
  "warnings": [
5699
- "T.GO: persist is called on the ports object"
5699
+ "T.GO: persist has no options object with emit routes, so its answer reaches no event",
5700
+ "T.GO: persist has an operation the native store does not answer (create, update and delete are rendered)"
5700
5701
  ]
5701
5702
  }
5702
5703
  }
@@ -5986,6 +5987,343 @@
5986
5987
  }
5987
5988
  }
5988
5989
  ]
5990
+ },
5991
+ {
5992
+ "id": "composed-without-path",
5993
+ "entity": {
5994
+ "operatorNames": [
5995
+ "-",
5996
+ "emit",
5997
+ "set"
5998
+ ]
5999
+ },
6000
+ "note": "A program that composes behaviors (a trait with ref) renders from its composed program, read by program/read with resolve, which needs the source's absolute path: without one the render fails by name instead of rendering the reference as an empty class.",
6001
+ "steps": [
6002
+ {
6003
+ "from": "reading",
6004
+ "event": "LOLO_READ",
6005
+ "payload": {
6006
+ "result": {
6007
+ "typeContractVersion": 1,
6008
+ "name": "compose-pair",
6009
+ "version": "1.0.0",
6010
+ "description": "Fixture for the native renderers' composed mode: a local trait whose emit feeds a composed std atom (std-score's ScoreKeeper) with call-site config, so the native program must carry the composed traits the kernel runs.",
6011
+ "orbitals": [
6012
+ {
6013
+ "name": "ArenaOrbital",
6014
+ "id": "orb_48AHC4TTS0DCGE4S60DP8DHGRP",
6015
+ "uses": [
6016
+ {
6017
+ "from": "std/behaviors/std-score",
6018
+ "as": "S"
6019
+ }
6020
+ ],
6021
+ "entity": {
6022
+ "name": "Match",
6023
+ "id": "ent_A0XE5P9CHTP8X6HSYSFRBSV05M",
6024
+ "persistence": "runtime",
6025
+ "fields": [
6026
+ {
6027
+ "nullable": false,
6028
+ "name": "id",
6029
+ "type": "string",
6030
+ "required": true
6031
+ },
6032
+ {
6033
+ "nullable": false,
6034
+ "name": "enemies",
6035
+ "type": "number",
6036
+ "default": 3
6037
+ },
6038
+ {
6039
+ "nullable": false,
6040
+ "name": "score",
6041
+ "type": "number",
6042
+ "default": 0
6043
+ },
6044
+ {
6045
+ "nullable": false,
6046
+ "name": "scoreBaseline",
6047
+ "type": "number",
6048
+ "default": 0
6049
+ }
6050
+ ]
6051
+ },
6052
+ "traits": [
6053
+ {
6054
+ "name": "Arena",
6055
+ "id": "trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32",
6056
+ "effectRow": [
6057
+ {
6058
+ "kind": "emit",
6059
+ "resource": "WAVE"
6060
+ },
6061
+ {
6062
+ "kind": "set",
6063
+ "resource": "@entity.enemies"
6064
+ }
6065
+ ],
6066
+ "linkedEntity": "Match",
6067
+ "linkedEntityId": "ent_A0XE5P9CHTP8X6HSYSFRBSV05M",
6068
+ "entityRefIds": {
6069
+ "Match": "ent_A0XE5P9CHTP8X6HSYSFRBSV05M"
6070
+ },
6071
+ "emits": [
6072
+ {
6073
+ "event": "WAVE",
6074
+ "eventId": "evt_3NP6BVGF3D7HPQRPEVB8X9BSNN",
6075
+ "scope": "external",
6076
+ "payloadSchema": [
6077
+ {
6078
+ "nullable": false,
6079
+ "name": "enemiesAlive",
6080
+ "type": "number",
6081
+ "required": true
6082
+ },
6083
+ {
6084
+ "nullable": false,
6085
+ "name": "playersAlive",
6086
+ "type": "number",
6087
+ "required": true
6088
+ }
6089
+ ]
6090
+ }
6091
+ ],
6092
+ "stateMachine": {
6093
+ "states": [
6094
+ {
6095
+ "name": "idle",
6096
+ "isInitial": true
6097
+ }
6098
+ ],
6099
+ "events": [
6100
+ {
6101
+ "key": "INIT",
6102
+ "id": "evt_41EPVWQXNEYTQ93QHZNC3Q326R",
6103
+ "name": "Initialize"
6104
+ },
6105
+ {
6106
+ "key": "HIT",
6107
+ "id": "evt_WQ40AQKAANN5AYDAKKBKYJ6H92",
6108
+ "name": "Hit",
6109
+ "payloadSchema": [
6110
+ {
6111
+ "nullable": false,
6112
+ "name": "n",
6113
+ "type": "number",
6114
+ "required": true
6115
+ }
6116
+ ],
6117
+ "listened": true
6118
+ },
6119
+ {
6120
+ "key": "WAVE",
6121
+ "id": "evt_3NP6BVGF3D7HPQRPEVB8X9BSNN",
6122
+ "name": "Wave",
6123
+ "payloadSchema": [
6124
+ {
6125
+ "nullable": false,
6126
+ "name": "enemiesAlive",
6127
+ "type": "number",
6128
+ "required": true
6129
+ },
6130
+ {
6131
+ "nullable": false,
6132
+ "name": "playersAlive",
6133
+ "type": "number",
6134
+ "required": true
6135
+ }
6136
+ ]
6137
+ }
6138
+ ],
6139
+ "transitions": [
6140
+ {
6141
+ "from": "idle",
6142
+ "to": "idle",
6143
+ "event": "INIT",
6144
+ "eventId": "evt_41EPVWQXNEYTQ93QHZNC3Q326R"
6145
+ },
6146
+ {
6147
+ "from": "idle",
6148
+ "to": "idle",
6149
+ "event": "HIT",
6150
+ "eventId": "evt_WQ40AQKAANN5AYDAKKBKYJ6H92",
6151
+ "effects": [
6152
+ [
6153
+ "set",
6154
+ "@entity.enemies",
6155
+ [
6156
+ "-",
6157
+ "@entity.enemies",
6158
+ "@payload.n"
6159
+ ]
6160
+ ],
6161
+ [
6162
+ "emit",
6163
+ "WAVE",
6164
+ {
6165
+ "enemiesAlive": "@entity.enemies",
6166
+ "playersAlive": 1
6167
+ }
6168
+ ]
6169
+ ]
6170
+ }
6171
+ ]
6172
+ },
6173
+ "dispatch": "client",
6174
+ "sourceDeclaration": {
6175
+ "traitId": "trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32",
6176
+ "fingerprint": "b75413b5335211eac61f90cecf4397623c32881695fc7f1c932c89e3390dd018"
6177
+ }
6178
+ },
6179
+ {
6180
+ "ref": "S.traits.ScoreKeeper",
6181
+ "id": "trt_2QW1DSA6KN39TJK5YP6GZ0W9TT",
6182
+ "name": "Score",
6183
+ "linkedEntity": "Match",
6184
+ "linkedEntityId": "ent_A0XE5P9CHTP8X6HSYSFRBSV05M",
6185
+ "config": {
6186
+ "running": {
6187
+ "type": "unknown",
6188
+ "default": true,
6189
+ "wired": true
6190
+ },
6191
+ "pointsPerKill": {
6192
+ "type": "unknown",
6193
+ "default": 5,
6194
+ "wired": true
6195
+ },
6196
+ "startScore": {
6197
+ "type": "unknown",
6198
+ "default": 0,
6199
+ "wired": true
6200
+ },
6201
+ "initialEnemies": {
6202
+ "type": "unknown",
6203
+ "default": 3,
6204
+ "wired": true
6205
+ }
6206
+ },
6207
+ "listens": [
6208
+ {
6209
+ "event": "WAVE",
6210
+ "triggers": "UNITS_CHANGED",
6211
+ "source": {
6212
+ "kind": "trait",
6213
+ "trait": "Arena"
6214
+ }
6215
+ }
6216
+ ]
6217
+ }
6218
+ ],
6219
+ "pages": [
6220
+ {
6221
+ "name": "ArenaStart",
6222
+ "id": "pag_YDZTV6SAGKN89W9FQ08SHH0SZV",
6223
+ "path": "",
6224
+ "protocol": "boot",
6225
+ "traits": [
6226
+ {
6227
+ "ref": "Arena",
6228
+ "refId": "trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32"
6229
+ },
6230
+ {
6231
+ "ref": "Score",
6232
+ "refId": "trt_2QW1DSA6KN39TJK5YP6GZ0W9TT"
6233
+ }
6234
+ ]
6235
+ }
6236
+ ]
6237
+ }
6238
+ ],
6239
+ "schemaVersion": 1,
6240
+ "ledger": {
6241
+ "schemaVersion": 1,
6242
+ "entries": {
6243
+ "ent_A0XE5P9CHTP8X6HSYSFRBSV05M": {
6244
+ "id": "ent_A0XE5P9CHTP8X6HSYSFRBSV05M",
6245
+ "kind": "entity",
6246
+ "bakedName": "Match",
6247
+ "curName": "Match",
6248
+ "renames": [],
6249
+ "owner": "workspace"
6250
+ },
6251
+ "evt_3NP6BVGF3D7HPQRPEVB8X9BSNN": {
6252
+ "id": "evt_3NP6BVGF3D7HPQRPEVB8X9BSNN",
6253
+ "kind": "event",
6254
+ "bakedName": "WAVE",
6255
+ "curName": "WAVE",
6256
+ "renames": [],
6257
+ "owner": "workspace",
6258
+ "parent": "trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32"
6259
+ },
6260
+ "evt_41EPVWQXNEYTQ93QHZNC3Q326R": {
6261
+ "id": "evt_41EPVWQXNEYTQ93QHZNC3Q326R",
6262
+ "kind": "event",
6263
+ "bakedName": "INIT",
6264
+ "curName": "INIT",
6265
+ "renames": [],
6266
+ "owner": "workspace",
6267
+ "parent": "trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32"
6268
+ },
6269
+ "evt_WQ40AQKAANN5AYDAKKBKYJ6H92": {
6270
+ "id": "evt_WQ40AQKAANN5AYDAKKBKYJ6H92",
6271
+ "kind": "event",
6272
+ "bakedName": "HIT",
6273
+ "curName": "HIT",
6274
+ "renames": [],
6275
+ "owner": "workspace",
6276
+ "parent": "trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32"
6277
+ },
6278
+ "orb_48AHC4TTS0DCGE4S60DP8DHGRP": {
6279
+ "id": "orb_48AHC4TTS0DCGE4S60DP8DHGRP",
6280
+ "kind": "orbital",
6281
+ "bakedName": "ArenaOrbital",
6282
+ "curName": "ArenaOrbital",
6283
+ "renames": [],
6284
+ "owner": "workspace"
6285
+ },
6286
+ "pag_YDZTV6SAGKN89W9FQ08SHH0SZV": {
6287
+ "id": "pag_YDZTV6SAGKN89W9FQ08SHH0SZV",
6288
+ "kind": "page",
6289
+ "bakedName": "ArenaStart",
6290
+ "curName": "ArenaStart",
6291
+ "renames": [],
6292
+ "owner": "workspace"
6293
+ },
6294
+ "trt_2QW1DSA6KN39TJK5YP6GZ0W9TT": {
6295
+ "id": "trt_2QW1DSA6KN39TJK5YP6GZ0W9TT",
6296
+ "kind": "trait",
6297
+ "bakedName": "Score",
6298
+ "curName": "Score",
6299
+ "renames": [],
6300
+ "owner": "workspace"
6301
+ },
6302
+ "trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32": {
6303
+ "id": "trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32",
6304
+ "kind": "trait",
6305
+ "bakedName": "Arena",
6306
+ "curName": "Arena",
6307
+ "renames": [],
6308
+ "owner": "workspace"
6309
+ }
6310
+ }
6311
+ }
6312
+ }
6313
+ },
6314
+ "expect": {
6315
+ "emits": [
6316
+ {
6317
+ "event": "PYTHON_RENDER_FAILED",
6318
+ "payload": {
6319
+ "error": "a program that composes behaviors renders from its composed program, which needs the source's absolute path"
6320
+ }
6321
+ }
6322
+ ],
6323
+ "state": "ready"
6324
+ }
6325
+ }
6326
+ ]
5989
6327
  }
5990
6328
  ]
5991
- }
6329
+ }