@almadar/std 17.0.2 → 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 (317) 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-packages.lolo +26 -16
  7. package/behaviors/lolo/cli/atoms/std-orb-serve.lolo +24 -4
  8. package/behaviors/lolo/codec/atoms/std-lolo-kotlin.lolo +26 -3
  9. package/behaviors/lolo/codec/atoms/std-lolo-python.lolo +15 -2
  10. package/behaviors/lolo/codec/atoms/std-lolo-rust.lolo +27 -2
  11. package/behaviors/lolo/codec/atoms/std-lolo-source.lolo +251 -60
  12. package/behaviors/lolo/codec/atoms/std-lolo-swift.lolo +24 -1
  13. package/behaviors/lolo/codec/atoms/std-lolo-typescript.lolo +24 -3
  14. package/behaviors/lolo/connect/atoms/std-meta-ads.lolo +4 -4
  15. package/behaviors/lolo/connect/atoms/std-stdio-lines.lolo +7 -4
  16. package/behaviors/lolo/connect/atoms/std-youtube.lolo +9 -9
  17. package/behaviors/lolo/dev/atoms/std-guest-session.lolo +122 -10
  18. package/behaviors/lolo/dev/atoms/std-mock-seed-marks.lolo +66 -0
  19. package/behaviors/lolo/dev/organisms/std-behavior-playground.lolo +5 -2
  20. package/behaviors/lolo/dev/organisms/std-launchpad.lolo +4 -3
  21. package/behaviors/lolo/gpu/atoms/std-gpu-compute.lolo +329 -0
  22. package/behaviors/lolo/net/atoms/std-http-client.lolo +4 -4
  23. package/behaviors/lolo/net/atoms/std-http-fetch.lolo +6 -6
  24. package/behaviors/lolo/net/atoms/std-npm-lookup.lolo +1 -1
  25. package/behaviors/lolo/net/atoms/std-npm-registry.lolo +2 -2
  26. package/behaviors/lolo/spec/auth/dev-personas.replay.goldens.json +263 -2
  27. package/behaviors/lolo/spec/cli/lint-all.lolo +1 -0
  28. package/behaviors/lolo/spec/cli/lint-item-action-event.replay.goldens.json +9 -9
  29. package/behaviors/lolo/spec/cli/lint-mem-handles.replay.goldens.json +3021 -1
  30. package/behaviors/lolo/spec/cli/lint-os-grants.replay.goldens.json +284 -12
  31. package/behaviors/lolo/spec/cli/mcp-server.replay.goldens.json +51 -55
  32. package/behaviors/lolo/spec/cli/orb-compile.replay.goldens.json +10 -4
  33. package/behaviors/lolo/spec/cli/orb-packages.lolo +1 -1
  34. package/behaviors/lolo/spec/codec/lolo-kotlin.replay.goldens.json +7496 -7497
  35. package/behaviors/lolo/spec/codec/lolo-python.replay.goldens.json +341 -3
  36. package/behaviors/lolo/spec/codec/lolo-rust.replay.goldens.json +18931 -6142
  37. package/behaviors/lolo/spec/codec/lolo-source.fixtures/compose-pair.lolo +44 -0
  38. package/behaviors/lolo/spec/codec/lolo-source.fixtures/config-read.lolo +2 -1
  39. package/behaviors/lolo/spec/codec/lolo-source.fixtures/divide-default.lolo +2 -1
  40. package/behaviors/lolo/spec/codec/lolo-source.fixtures/divide-plain.lolo +2 -1
  41. package/behaviors/lolo/spec/codec/lolo-source.fixtures/get-past-end.lolo +2 -1
  42. package/behaviors/lolo/spec/codec/lolo-source.fixtures/list-call.lolo +2 -1
  43. package/behaviors/lolo/spec/codec/lolo-source.fixtures/list-plain.lolo +2 -1
  44. package/behaviors/lolo/spec/codec/lolo-source.fixtures/minus-binary.lolo +2 -1
  45. package/behaviors/lolo/spec/codec/lolo-source.fixtures/minus-unary.lolo +2 -1
  46. package/behaviors/lolo/spec/codec/lolo-source.fixtures/nested-let.lolo +2 -1
  47. package/behaviors/lolo/spec/codec/lolo-source.fixtures/no-machine.lolo +2 -1
  48. package/behaviors/lolo/spec/codec/lolo-source.fixtures/no-template.lolo +2 -1
  49. package/behaviors/lolo/spec/codec/lolo-source.fixtures/nth-past-end.lolo +2 -1
  50. package/behaviors/lolo/spec/codec/lolo-source.fixtures/nth-raw.lolo +2 -1
  51. package/behaviors/lolo/spec/codec/lolo-source.fixtures/ports-call.lolo +2 -1
  52. package/behaviors/lolo/spec/codec/lolo-source.fixtures/range-one.lolo +2 -1
  53. package/behaviors/lolo/spec/codec/lolo-source.fixtures/range-two.lolo +2 -1
  54. package/behaviors/lolo/spec/codec/lolo-source.fixtures/router-trio.lolo +88 -0
  55. package/behaviors/lolo/spec/codec/lolo-source.fixtures/store-pair.lolo +62 -0
  56. package/behaviors/lolo/spec/codec/lolo-source.fixtures/string-literal.lolo +2 -1
  57. package/behaviors/lolo/spec/codec/lolo-source.gen/knobs.py +27 -1
  58. package/behaviors/lolo/spec/codec/lolo-source.gen/src_assemble.in +54 -2
  59. package/behaviors/lolo/spec/codec/lolo-source.gen/src_finish.in +1 -1
  60. package/behaviors/lolo/spec/codec/lolo-source.gen/src_fold.in +24 -4
  61. package/behaviors/lolo/spec/codec/lolo-source.gen/src_head.in +8 -3
  62. package/behaviors/lolo/spec/codec/lolo-source.gen/src_prepare.in +6 -2
  63. package/behaviors/lolo/spec/codec/lolo-source.gen/src_trait.in +12 -2
  64. package/behaviors/lolo/spec/codec/lolo-source.parity/agent-step.lolo +2 -1
  65. package/behaviors/lolo/spec/codec/lolo-source.parity/agent-step.server.lolo +1 -0
  66. package/behaviors/lolo/spec/codec/lolo-source.parity/chunk.lolo +2 -1
  67. package/behaviors/lolo/spec/codec/lolo-source.parity/chunk.server.lolo +1 -0
  68. package/behaviors/lolo/spec/codec/lolo-source.parity/compose-pair.events.json +36 -0
  69. package/behaviors/lolo/spec/codec/lolo-source.parity/compose-pair.replay.goldens.json +91 -0
  70. package/behaviors/lolo/spec/codec/lolo-source.parity/cosine.lolo +2 -1
  71. package/behaviors/lolo/spec/codec/lolo-source.parity/cosine.server.lolo +1 -0
  72. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/compose-pair.kt +31 -0
  73. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/router-trio.kt +31 -0
  74. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/kotlin/store-pair.kt +31 -0
  75. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/compose-pair.py +18 -0
  76. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/router-trio.py +18 -0
  77. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/python/store-pair.py +17 -0
  78. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/compose-pair.rs +37 -0
  79. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/router-trio.rs +37 -0
  80. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/rust/store-pair.rs +36 -0
  81. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/compose-pair.swift +24 -0
  82. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/router-trio.swift +24 -0
  83. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/swift/store-pair.swift +23 -0
  84. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/compose-pair.mts +24 -0
  85. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/router-trio.mts +24 -0
  86. package/behaviors/lolo/spec/codec/lolo-source.parity/drivers/typescript/store-pair.mts +22 -0
  87. package/behaviors/lolo/spec/codec/lolo-source.parity/recall-at-k.lolo +2 -1
  88. package/behaviors/lolo/spec/codec/lolo-source.parity/recall-at-k.server.lolo +1 -0
  89. package/behaviors/lolo/spec/codec/lolo-source.parity/router-trio.events.json +18 -0
  90. package/behaviors/lolo/spec/codec/lolo-source.parity/router-trio.replay.goldens.json +87 -0
  91. package/behaviors/lolo/spec/codec/lolo-source.parity/store-pair.events.json +58 -0
  92. package/behaviors/lolo/spec/codec/lolo-source.parity/store-pair.replay.goldens.json +238 -0
  93. package/behaviors/lolo/spec/codec/lolo-swift.replay.goldens.json +15599 -2204
  94. package/behaviors/lolo/spec/codec/lolo-typescript.replay.goldens.json +28930 -28929
  95. package/behaviors/lolo/spec/connect/bearer-api.replay.goldens.json +1 -1
  96. package/behaviors/lolo/spec/connect/esign.replay.goldens.json +3 -3
  97. package/behaviors/lolo/spec/connect/github.replay.goldens.json +13 -13
  98. package/behaviors/lolo/spec/connect/google-calendar.replay.goldens.json +2 -2
  99. package/behaviors/lolo/spec/connect/image.replay.goldens.json +1 -1
  100. package/behaviors/lolo/spec/connect/meta-ads.replay.goldens.json +2 -2
  101. package/behaviors/lolo/spec/connect/stdio-lines.replay.goldens.json +90 -0
  102. package/behaviors/lolo/spec/connect/twilio.replay.goldens.json +2 -2
  103. package/behaviors/lolo/spec/connect/youtube.replay.goldens.json +1 -1
  104. package/behaviors/lolo/spec/dev/guest-session.replay.goldens.json +824 -0
  105. package/behaviors/lolo/spec/dev/mock-seed-marks.replay.goldens.json +365 -0
  106. package/behaviors/lolo/spec/dev/verify-walk.replay.goldens.json +2 -1
  107. package/behaviors/lolo/spec/gpu/gpu-compute.replay.goldens.json +784 -0
  108. package/behaviors/lolo/spec/mem/mem-buffer.replay.goldens.json +97 -1
  109. package/behaviors/lolo/spec/ml/vector-write.goldens.json +1 -1
  110. package/behaviors/lolo/spec/ml/vector-write.replay.goldens.json +2 -2
  111. package/behaviors/lolo/spec/net/http-client-call-host.replay.goldens.json +3 -3
  112. package/behaviors/lolo/spec/net/http-client-env-host.replay.goldens.json +3 -3
  113. package/behaviors/lolo/spec/net/http-client.replay.goldens.json +56 -56
  114. package/behaviors/lolo/spec/net/http-fetch.replay.goldens.json +2 -2
  115. package/behaviors/lolo/spec/net/npm-lookup.replay.goldens.json +1 -1
  116. package/behaviors/lolo/spec/net/npm-registry.replay.goldens.json +2 -2
  117. package/behaviors/lolo/spec/net/server-declared-traits.replay.goldens.json +6 -3
  118. package/behaviors/lolo/spec/net/server-external-inputs.replay.goldens.json +16 -8
  119. package/behaviors/lolo/spec/net/server-retargeted-leg.replay.goldens.json +4 -2
  120. package/behaviors/lolo/spec/net/server-untargeted-discovery.replay.goldens.json +50 -45
  121. package/behaviors/lolo/spec/ops/llm-spend-board.replay.goldens.json +112 -16
  122. package/behaviors/lolo/spec/store/firestore-twin.replay.goldens.json +1 -1
  123. package/behaviors/lolo/spec/store/row-store-postgres.gen/record_real_sql.py +1 -1
  124. package/behaviors/lolo/spec/ui/game/fx-particles.replay.goldens.json +37 -0
  125. package/behaviors/lolo/ui/avl/atoms/std-avl-cosmic-zoom.lolo +2 -2
  126. package/behaviors/lolo/ui/game/atoms/std-fx-particles.lolo +10 -1
  127. package/behaviors/lolo/ui/game/atoms/ui-draw-fx-layer.lolo +4 -4
  128. package/behaviors/lolo/ui/game/organisms/std-arcade-board-3d.lolo +9 -9
  129. package/behaviors/lolo/ui/game/organisms/std-crew-board-2d.lolo +4 -4
  130. package/behaviors/lolo/ui/game/organisms/std-dungeon-board-2d.lolo +5 -5
  131. package/behaviors/lolo/ui/game/organisms/std-market-board-3d.lolo +9 -9
  132. package/behaviors/lolo/ui/game/organisms/std-objective-board-3d.lolo +9 -9
  133. package/behaviors/lolo/ui/game/organisms/std-platformer-board-2d.lolo +5 -5
  134. package/behaviors/lolo/ui/game/organisms/std-platformer-puzzle.lolo +4 -4
  135. package/behaviors/lolo/ui/game/organisms/std-survival-board-3d.lolo +9 -9
  136. package/behaviors/lolo/ui/game/organisms/std-tactics-board-2d.lolo +5 -5
  137. package/behaviors/lolo/ui/game/organisms/std-tactics-board-3d.lolo +9 -9
  138. package/behaviors/registry/auth/atoms/std-dev-personas.orb +1 -1
  139. package/behaviors/registry/cli/atoms/std-orb-goldens.orb +1 -1
  140. package/behaviors/registry/cli/atoms/std-orb-lint-mem-handles.orb +1 -1
  141. package/behaviors/registry/cli/atoms/std-orb-lint-os-grants.orb +1 -1
  142. package/behaviors/registry/cli/atoms/std-orb-mcp.orb +1 -1
  143. package/behaviors/registry/cli/atoms/std-orb-packages.orb +1 -1
  144. package/behaviors/registry/cli/atoms/std-orb-serve.orb +1 -1
  145. package/behaviors/registry/codec/atoms/std-lolo-kotlin.orb +1 -1
  146. package/behaviors/registry/codec/atoms/std-lolo-python.orb +1 -1
  147. package/behaviors/registry/codec/atoms/std-lolo-rust.orb +1 -1
  148. package/behaviors/registry/codec/atoms/std-lolo-source.orb +1 -1
  149. package/behaviors/registry/codec/atoms/std-lolo-swift.orb +1 -1
  150. package/behaviors/registry/codec/atoms/std-lolo-typescript.orb +1 -1
  151. package/behaviors/registry/connect/atoms/std-meta-ads.orb +1 -1
  152. package/behaviors/registry/connect/atoms/std-stdio-lines.orb +1 -1
  153. package/behaviors/registry/connect/atoms/std-youtube.orb +1 -1
  154. package/behaviors/registry/dev/atoms/std-guest-session.orb +1 -1
  155. package/behaviors/registry/dev/atoms/std-mock-seed-marks.orb +1 -0
  156. package/behaviors/registry/dev/organisms/std-behavior-playground.orb +37 -0
  157. package/behaviors/registry/dev/organisms/std-launchpad.orb +25 -0
  158. package/behaviors/registry/gpu/atoms/std-gpu-compute.orb +1 -0
  159. package/behaviors/registry/net/atoms/std-http-client.orb +1 -1
  160. package/behaviors/registry/net/atoms/std-http-fetch.orb +1 -1
  161. package/behaviors/registry/net/atoms/std-npm-lookup.orb +1 -1
  162. package/behaviors/registry/net/atoms/std-npm-registry.orb +1 -1
  163. package/behaviors/registry/spec/cli/lint-all.orb +1 -1
  164. package/behaviors/registry/spec/cli/orb-packages.orb +1 -1
  165. package/behaviors/registry/spec/codec/lolo-source.fixtures/compose-pair.orb +1 -0
  166. package/behaviors/registry/spec/codec/lolo-source.fixtures/config-read.orb +1 -1
  167. package/behaviors/registry/spec/codec/lolo-source.fixtures/divide-default.orb +1 -1
  168. package/behaviors/registry/spec/codec/lolo-source.fixtures/divide-plain.orb +1 -1
  169. package/behaviors/registry/spec/codec/lolo-source.fixtures/get-past-end.orb +1 -1
  170. package/behaviors/registry/spec/codec/lolo-source.fixtures/list-call.orb +1 -1
  171. package/behaviors/registry/spec/codec/lolo-source.fixtures/list-plain.orb +1 -1
  172. package/behaviors/registry/spec/codec/lolo-source.fixtures/minus-binary.orb +1 -1
  173. package/behaviors/registry/spec/codec/lolo-source.fixtures/minus-unary.orb +1 -1
  174. package/behaviors/registry/spec/codec/lolo-source.fixtures/nested-let.orb +1 -1
  175. package/behaviors/registry/spec/codec/lolo-source.fixtures/no-machine.orb +1 -1
  176. package/behaviors/registry/spec/codec/lolo-source.fixtures/no-template.orb +1 -1
  177. package/behaviors/registry/spec/codec/lolo-source.fixtures/nth-past-end.orb +1 -1
  178. package/behaviors/registry/spec/codec/lolo-source.fixtures/nth-raw.orb +1 -1
  179. package/behaviors/registry/spec/codec/lolo-source.fixtures/ports-call.orb +1 -1
  180. package/behaviors/registry/spec/codec/lolo-source.fixtures/range-one.orb +1 -1
  181. package/behaviors/registry/spec/codec/lolo-source.fixtures/range-two.orb +1 -1
  182. package/behaviors/registry/spec/codec/lolo-source.fixtures/router-trio.orb +1 -0
  183. package/behaviors/registry/spec/codec/lolo-source.fixtures/store-pair.orb +1 -0
  184. package/behaviors/registry/spec/codec/lolo-source.fixtures/string-literal.orb +1 -1
  185. package/behaviors/registry/spec/codec/lolo-source.parity/agent-step.orb +1 -1
  186. package/behaviors/registry/spec/codec/lolo-source.parity/agent-step.server.orb +1 -1
  187. package/behaviors/registry/spec/codec/lolo-source.parity/chunk.orb +1 -1
  188. package/behaviors/registry/spec/codec/lolo-source.parity/chunk.server.orb +1 -1
  189. package/behaviors/registry/spec/codec/lolo-source.parity/cosine.orb +1 -1
  190. package/behaviors/registry/spec/codec/lolo-source.parity/cosine.server.orb +1 -1
  191. package/behaviors/registry/spec/codec/lolo-source.parity/recall-at-k.orb +1 -1
  192. package/behaviors/registry/spec/codec/lolo-source.parity/recall-at-k.server.orb +1 -1
  193. package/behaviors/registry/ui/avl/atoms/std-avl-cosmic-zoom.orb +1 -1
  194. package/behaviors/registry/ui/game/atoms/std-fx-particles.orb +1 -1
  195. package/behaviors/registry/ui/game/atoms/ui-draw-fx-layer.orb +1 -1
  196. package/behaviors/registry/ui/game/organisms/std-arcade-board-3d.orb +20 -13
  197. package/behaviors/registry/ui/game/organisms/std-crew-board-2d.orb +9 -5
  198. package/behaviors/registry/ui/game/organisms/std-dungeon-board-2d.orb +17 -7
  199. package/behaviors/registry/ui/game/organisms/std-market-board-3d.orb +19 -15
  200. package/behaviors/registry/ui/game/organisms/std-objective-board-3d.orb +15 -12
  201. package/behaviors/registry/ui/game/organisms/std-platformer-board-2d.orb +17 -7
  202. package/behaviors/registry/ui/game/organisms/std-platformer-puzzle.orb +4 -0
  203. package/behaviors/registry/ui/game/organisms/std-survival-board-3d.orb +15 -12
  204. package/behaviors/registry/ui/game/organisms/std-tactics-board-2d.orb +13 -6
  205. package/behaviors/registry/ui/game/organisms/std-tactics-board-3d.orb +14 -12
  206. package/canonical-operators.json +1426 -103
  207. package/dist/{chunk-EK22WRB6.js → chunk-2UGHBVU2.js} +2 -2
  208. package/dist/{chunk-GDMH5T4J.js → chunk-3DK7GI2C.js} +2 -2
  209. package/dist/chunk-3MDASC5C.js +26 -0
  210. package/dist/{chunk-K5ZI27PB.js → chunk-3PHO4RRF.js} +1 -1
  211. package/dist/{chunk-7IEMMYM6.js → chunk-4MJCLAZW.js} +1 -1
  212. package/dist/{chunk-W4IEV4BY.js → chunk-55JPIL7A.js} +2 -2
  213. package/dist/{chunk-RUGBZTV3.js → chunk-66BLZLFI.js} +1 -1
  214. package/dist/{chunk-YWFISV7L.js → chunk-66RAJFOD.js} +1 -1
  215. package/dist/{chunk-JWOWWGNZ.js → chunk-6ED4SUC6.js} +1 -1
  216. package/dist/{chunk-LL7P6EII.js → chunk-6KFCHNE2.js} +2 -2
  217. package/dist/{chunk-GFBL2TW6.js → chunk-A4QB3Y6L.js} +1 -1
  218. package/dist/chunk-BVWMLS32.js +123 -0
  219. package/dist/{chunk-5KQCGSNC.js → chunk-CRKVDCY7.js} +1 -1
  220. package/dist/{chunk-WHQDLLC3.js → chunk-EKWEY4OJ.js} +1 -1
  221. package/dist/{chunk-Y3BRVNYK.js → chunk-EU22GCGV.js} +2 -2
  222. package/dist/{chunk-XQPYTDZ4.js → chunk-FB6PKNRS.js} +1 -1
  223. package/dist/{chunk-UX3MDFX6.js → chunk-FSVOJQLP.js} +1 -1
  224. package/dist/{chunk-LDBD2FBQ.js → chunk-GAKLBWBR.js} +1 -1
  225. package/dist/{chunk-C3IEMPRZ.js → chunk-GO3FKBV2.js} +2 -2
  226. package/dist/{chunk-LZSPEHSM.js → chunk-GPDTJHYY.js} +1 -1
  227. package/dist/{chunk-W5ABMOXU.js → chunk-JQBWLH5V.js} +1 -1
  228. package/dist/{chunk-63X6RNY6.js → chunk-KKW3JHTC.js} +1 -1
  229. package/dist/{chunk-5PLJE42Q.js → chunk-LF2EZVAM.js} +1 -1
  230. package/dist/{chunk-RXWBYWQB.js → chunk-LGCKOZP3.js} +2 -2
  231. package/dist/{chunk-JJEADYP7.js → chunk-LMZ6XJFB.js} +2 -2
  232. package/dist/{chunk-CWYSQZJU.js → chunk-M2YQNSAZ.js} +2 -2
  233. package/dist/{chunk-GNCKJV3P.js → chunk-MKWHYBIS.js} +1 -1
  234. package/dist/{chunk-ZB2CLGEG.js → chunk-MXBGYTYF.js} +1 -1
  235. package/dist/{chunk-UN76TRSK.js → chunk-NH6MXHZR.js} +41 -41
  236. package/dist/{chunk-II2VW7T6.js → chunk-ODBIX4DB.js} +1 -1
  237. package/dist/{chunk-3F3CNWOG.js → chunk-OYDQR6DT.js} +2 -2
  238. package/dist/{chunk-FVL6BT6L.js → chunk-PD6POR44.js} +1 -1
  239. package/dist/{chunk-U6USXZ5M.js → chunk-PHFT3QNS.js} +2 -2
  240. package/dist/{chunk-RJYKIZMS.js → chunk-PQZ6PVKG.js} +2 -2
  241. package/dist/{chunk-TQPQXCSZ.js → chunk-Q6NHXIOZ.js} +2 -2
  242. package/dist/{chunk-KYGWVCTM.js → chunk-QMDVYTB7.js} +1 -1
  243. package/dist/{chunk-XKTATY45.js → chunk-RW2KMSG5.js} +4 -4
  244. package/dist/{chunk-UHNSPTFT.js → chunk-SA2ZS24W.js} +1 -1
  245. package/dist/{chunk-6YPUQK36.js → chunk-SFWP4UMK.js} +2 -2
  246. package/dist/{chunk-ZZYLFHBU.js → chunk-TLNEQA4D.js} +1 -1
  247. package/dist/{chunk-RGTBRWWA.js → chunk-TOODE5AD.js} +2 -2
  248. package/dist/{chunk-QGWAHOFR.js → chunk-U57GY7SM.js} +2 -2
  249. package/dist/{chunk-FDJZKB7J.js → chunk-UIDQQJSX.js} +1 -1
  250. package/dist/{chunk-LLH3WXM3.js → chunk-UVFP2B7I.js} +1 -1
  251. package/dist/{chunk-4OF7727E.js → chunk-VEGZPCTZ.js} +2 -2
  252. package/dist/{chunk-73YUPNIT.js → chunk-VXN4V7LC.js} +1 -1
  253. package/dist/{chunk-4D3W6AAE.js → chunk-YHQVZWPG.js} +1 -1
  254. package/dist/{chunk-XXYBHYLM.js → chunk-YQO3TO66.js} +2 -2
  255. package/dist/{chunk-YZAYFR5A.js → chunk-ZSJ3GEOJ.js} +1 -1
  256. package/dist/index.d.ts +3 -3
  257. package/dist/index.js +50 -50
  258. package/dist/modules/anim.js +2 -2
  259. package/dist/modules/array.js +2 -2
  260. package/dist/modules/auth.js +3 -3
  261. package/dist/modules/behavior.js +2 -2
  262. package/dist/modules/bit.js +2 -2
  263. package/dist/modules/browser.js +2 -2
  264. package/dist/modules/bytes.js +2 -2
  265. package/dist/modules/codec.js +3 -3
  266. package/dist/modules/composition.js +2 -2
  267. package/dist/modules/core.js +2 -2
  268. package/dist/modules/csv.js +2 -2
  269. package/dist/modules/ffi.js +3 -3
  270. package/dist/modules/format.js +2 -2
  271. package/dist/modules/geo.js +2 -2
  272. package/dist/modules/gpu.d.ts +12 -0
  273. package/dist/modules/gpu.js +3 -0
  274. package/dist/modules/grid.js +2 -2
  275. package/dist/modules/i18n.js +2 -2
  276. package/dist/modules/index.d.ts +1 -2
  277. package/dist/modules/index.js +45 -46
  278. package/dist/modules/json.js +2 -2
  279. package/dist/modules/kernel.js +3 -3
  280. package/dist/modules/kv.js +3 -3
  281. package/dist/modules/llm.js +2 -2
  282. package/dist/modules/math.js +2 -2
  283. package/dist/modules/mem.js +3 -3
  284. package/dist/modules/object.js +2 -2
  285. package/dist/modules/os-common.d.ts +1 -1
  286. package/dist/modules/os-common.js +2 -2
  287. package/dist/modules/os-desktop.js +3 -3
  288. package/dist/modules/os-dev.js +3 -3
  289. package/dist/modules/os-dir.js +3 -3
  290. package/dist/modules/os-env-stdio.js +3 -3
  291. package/dist/modules/os-fs.js +3 -3
  292. package/dist/modules/os-net.js +3 -3
  293. package/dist/modules/os-path.js +3 -3
  294. package/dist/modules/os-process.js +3 -3
  295. package/dist/modules/os-sys.js +3 -3
  296. package/dist/modules/os-time-users.js +3 -3
  297. package/dist/modules/os.js +13 -13
  298. package/dist/modules/path.js +2 -2
  299. package/dist/modules/prob.js +2 -2
  300. package/dist/modules/program.js +2 -2
  301. package/dist/modules/session.js +2 -2
  302. package/dist/modules/str.js +2 -2
  303. package/dist/modules/time.js +2 -2
  304. package/dist/modules/validate.js +2 -2
  305. package/dist/modules/vector.js +2 -2
  306. package/dist/modules/workspace.js +2 -2
  307. package/dist/modules/xml.js +2 -2
  308. package/dist/modules/yaml.js +2 -2
  309. package/dist/registry.d.ts +2 -2
  310. package/dist/registry.js +49 -49
  311. package/dist/{types-BA4LkhNJ.d.ts → types-CgiGhK6t.d.ts} +17 -3
  312. package/package.json +5 -5
  313. package/dist/chunk-F5TP25JA.js +0 -26
  314. package/dist/chunk-NE4WSTN7.js +0 -26
  315. package/dist/modules/trace.d.ts +0 -15
  316. package/dist/modules/trace.js +0 -2
  317. /package/dist/{chunk-SHSBTDDX.js → chunk-QUQ33UXH.js} +0 -0
@@ -1 +1 @@
1
- {"typeContractVersion":1,"types":{"HttpHeader":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"value","type":"string","required":true}],"NpmStrMap":[{"nullable":false,"name":"","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}}]},"name":"std-npm-registry","version":"1.0.0","description":"std-npm-registry — a client of an npm-protocol registry (public npm or GitHub Packages; the origin is the registry knob and the bearer token is the token credential, both from config). One ask at a time; an ask during another answers NPM_FAILED npm_busy. NPM_VERSIONS { name } answers NPM_VERSIONS_LISTED { name, versions (semver ascending), tags (dist-tags) } from the packument. NPM_NEXT_VERSION { name, current, bump, major } answers NPM_NEXT { name, current, next, skipped }: current bumped by patch, minor or major (a minor on a 0.x version is demoted to patch unless major is true, which cuts a major), then incremented by patch past every version already published; a package the registry does not know has none published. NPM_WAIT { name, version } polls the packument under std-retry backoff (every pollIntervalMs, up to 80 attempts) until the version is listed and its tarball downloads (one ranged byte, 200 or 206), then answers NPM_VISIBLE { name, version, attempts }; the attempts spent answer NPM_WAIT_TIMEOUT. NPM_AUTH_PROBE { name } reads one package and answers NPM_AUTH_OK. A reply is classified in NPM_FAILED.code: 401 and 403 are auth (never retried, the poll is cancelled), 404 absent, 5xx unreachable, any other status unexpected; a transport failure is unreachable, an unset credential unconfigured. The tarball url must sit under the registry origin. The poll cadence is std-retry's constant schedule: a changed pollIntervalMs needs the composing realization to restate WaitRetry's config.","orbitals":[{"name":"NpmRegistryOrbital","id":"orb_NRAEX18SN2CTHFG0X3C2VR4S0V","uses":[{"from":"almadar-std/npm-registry","as":"Spec"},{"from":"std/behaviors/std-retry","as":"Retry"},{"from":"std/behaviors/std-npm-lookup","as":"Lookup"}],"entity":{"name":"NpmRegistryAsk","id":"ent_7RYGBKCNQWAVY3TWATCRZ3GHPM","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"name","type":"string","default":"","description":"The package the ask in flight is about."},{"nullable":false,"name":"version","type":"string","default":"","description":"The version being waited for; empty otherwise."},{"nullable":false,"name":"bump","type":"string","default":"","description":"The bump a next-version ask applies: patch, minor or major."},{"nullable":false,"name":"major","type":"boolean","default":false,"description":"Whether a next-version ask cuts a major regardless of bump."},{"nullable":false,"name":"current","type":"string","default":"","description":"The version a next-version ask bumps from."},{"nullable":false,"name":"seq","type":"number","default":0,"description":"Waits accepted so far; makes each retry key unique."}]},"traits":[{"ref":"Retry.traits.Retry","id":"trt_RRVEPXKTVDXDPT5NAPE12CH5X1","name":"WaitRetry","config":{"maxAttempts":{"type":"unknown","default":80,"wired":true},"baseDelayMs":{"type":"unknown","default":15000,"wired":true},"multiplier":{"type":"unknown","default":1,"wired":true},"maxDelayMs":{"type":"unknown","default":15000,"wired":true}},"listens":[{"event":"NPM_WAIT_RETRY_START","triggers":"START","source":{"kind":"trait","trait":"NpmRegistry"}},{"event":"NPM_WAIT_RETRY_SUCCEEDED","triggers":"SUCCEEDED","source":{"kind":"trait","trait":"NpmRegistry"}},{"event":"NPM_WAIT_RETRY_FAILED","triggers":"FAILED","source":{"kind":"trait","trait":"NpmRegistry"}},{"event":"NPM_WAIT_RETRY_CANCEL","triggers":"CANCEL","source":{"kind":"trait","trait":"NpmRegistry"}}]},{"ref":"Lookup.traits.NpmLookup","id":"trt_WBF13N630V1GDP1ACD75Q01AF5","name":"PackumentLookup","config":{"registry":{"nullable":false,"type":"url","default":"@config.registry","wired":true}},"listens":[{"event":"NPM_LOOKUP_ASK","triggers":"NPM_LOOKUP","source":{"kind":"trait","trait":"NpmRegistry"}},{"event":"HTTP_REPLIED","triggers":"NPM_LOOKUP_PACKUMENT","payloadMapping":{"status":"@payload.status","headers":"@payload.headers","body":["default",["bytes/to-string","@payload.body"],""]},"guard":["=","@payload.key","lookup"],"source":{"kind":"trait","trait":"RegHttp"}},{"event":"HTTP_FAILED","triggers":"NPM_LOOKUP_UNREACHABLE","payloadMapping":{"error":"@payload.error","kind":"@payload.kind"},"guard":["=","@payload.key","lookup"],"source":{"kind":"trait","trait":"RegHttp"}},{"event":"TIMED_OUT","triggers":"NPM_LOOKUP_UNREACHABLE","payloadMapping":{"error":["str/concat","timeout of ","@payload.timeoutMs","ms exceeded"],"kind":"timeout"},"guard":["=","@payload.key","lookup"],"source":{"kind":"trait","trait":"RegTimeout"}}]},{"ref":"Lookup.traits.LookupHttp","id":"trt_PAKX2PB2C0H60538Y7Z9XG0RH5","name":"RegHttp","config":{"credential":{"nullable":false,"type":"secret","default":"@config.token","wired":true},"credentialHeader":{"type":"unknown","default":["if","@config.authenticated","authorization",""],"wired":true},"credentialPrefix":{"type":"unknown","default":"Bearer ","wired":true}},"listens":[{"event":"NPM_LOOKUP_HTTP_SEND","triggers":"HTTP_SEND","source":{"kind":"trait","trait":"PackumentLookup"}},{"event":"NPM_WAIT_HTTP_SEND","triggers":"HTTP_SEND","source":{"kind":"trait","trait":"NpmRegistry"}},{"event":"TIMED_OUT","triggers":"HTTP_CANCEL","payloadMapping":{"key":"@payload.key"},"source":{"kind":"trait","trait":"RegTimeout"}}]},{"ref":"Lookup.traits.LookupTimeout","id":"trt_WPYZ0RXKA4SN255AZPPJV7W38J","name":"RegTimeout","config":{"timeoutMs":{"nullable":false,"type":"number","default":"@config.timeoutMs","wired":true}},"listens":[{"event":"NPM_LOOKUP_HTTP_SEND","triggers":"START","payloadMapping":{"key":["as","@payload.key","CallKey"]},"source":{"kind":"trait","trait":"PackumentLookup"}},{"event":"NPM_WAIT_HTTP_SEND","triggers":"START","payloadMapping":{"key":["as","@payload.key","CallKey"]},"source":{"kind":"trait","trait":"NpmRegistry"}},{"event":"HTTP_REPLIED","triggers":"SUCCEEDED","payloadMapping":{"key":["as","@payload.key","CallKey"]},"source":{"kind":"trait","trait":"RegHttp"}},{"event":"HTTP_FAILED","triggers":"FAILED","payloadMapping":{"key":["as","@payload.key","CallKey"],"error":"@payload.error"},"source":{"kind":"trait","trait":"RegHttp"}}]},{"name":"NpmRegistry","id":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7","effectRow":[{"kind":"emit","resource":"NPM_AUTH_OK"},{"kind":"emit","resource":"NPM_FAILED"},{"kind":"emit","resource":"NPM_GET"},{"kind":"emit","resource":"NPM_LOOKUP_ASK"},{"kind":"emit","resource":"NPM_NEXT"},{"kind":"emit","resource":"NPM_PACKUMENT_READ"},{"kind":"emit","resource":"NPM_VERSIONS_LISTED"},{"kind":"emit","resource":"NPM_VISIBLE"},{"kind":"emit","resource":"NPM_WAIT_HTTP_SEND"},{"kind":"emit","resource":"NPM_WAIT_RETRY_CANCEL"},{"kind":"emit","resource":"NPM_WAIT_RETRY_FAILED"},{"kind":"emit","resource":"NPM_WAIT_RETRY_START"},{"kind":"emit","resource":"NPM_WAIT_RETRY_SUCCEEDED"},{"kind":"emit","resource":"NPM_WAIT_TARBALL"},{"kind":"emit","resource":"NPM_WAIT_TIMEOUT"},{"kind":"set","resource":"@entity.bump"},{"kind":"set","resource":"@entity.current"},{"kind":"set","resource":"@entity.major"},{"kind":"set","resource":"@entity.name"},{"kind":"set","resource":"@entity.seq"},{"kind":"set","resource":"@entity.version"}],"linkedEntity":"NpmRegistryAsk","linkedEntityId":"ent_7RYGBKCNQWAVY3TWATCRZ3GHPM","entityRefIds":{"NpmRegistryAsk":"ent_7RYGBKCNQWAVY3TWATCRZ3GHPM"},"emits":[{"event":"NPM_VERSIONS_LISTED","eventId":"evt_DV55Y25KGJSR9DA9WF1TN4YCEQ","description":"The package's published versions, semver ascending, and its dist-tags.","synonyms":"versions list, published versions, dist-tags","tier":"primary","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"versions","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"tags","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}}]},{"event":"NPM_NEXT","eventId":"evt_RNATPHVS27WH3XH0MHYJNSSACQ","description":"The next version to publish: current bumped, then past every already published version; skipped lists the published candidates passed over.","synonyms":"next version, bump version","tier":"primary","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"current","type":"string","required":true},{"nullable":false,"name":"next","type":"string","required":true},{"nullable":false,"name":"skipped","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}}]},{"event":"NPM_VISIBLE","eventId":"evt_G52DP2TCE2671AWGKV6D3FR7R5","description":"The version is listed and its tarball downloads.","synonyms":"version visible, published, installable","tier":"primary","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"attempts","type":"number","required":true}]},{"event":"NPM_WAIT_TIMEOUT","eventId":"evt_G450N0JB3Z5HZWA1BA2M1KTJ7Q","description":"The attempts were spent before the version became visible.","synonyms":"wait timed out, registry lag","tier":"primary","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"attempts","type":"number","required":true},{"nullable":false,"name":"error","type":"string"}]},{"event":"NPM_AUTH_OK","eventId":"evt_HCEG61FMTMTDADY44NN2N10KFM","description":"The token can read the probed package.","synonyms":"token ok, registry readable","tier":"primary","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true}]},{"event":"NPM_FAILED","eventId":"evt_59JNXECK349HJ62GCK3DTB3NS5","description":"The ask failed: code is auth, absent, unreachable, unexpected, unconfigured, invalid_version or npm_busy.","synonyms":"registry failed, 401, unauthorized","tier":"primary","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"error","type":"string","required":true}]},{"event":"NPM_LOOKUP_ASK","eventId":"evt_603C8AZ668K346PTN9S7TDNC1P","description":"Internal: ask the composed std-npm-lookup for the package in flight.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"requestId","type":"string","required":true},{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"tag","type":"string"}]},{"event":"NPM_PACKUMENT_READ","eventId":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","description":"Internal: the lookup's answer.","tier":"internal","payloadSchema":[{"nullable":false,"name":"requestId","type":"string","required":true},{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"versions","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"distTags","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"tarballs","type":"Map<string,string>","required":true,"items":{"nullable":false,"name":"","type":"string"}}]},{"event":"NPM_WAIT_HTTP_SEND","eventId":"evt_PMYBBC2B915MGS6ETEDAJ6S8WV","description":"Internal: the tarball probe, for the HTTP client.","tier":"internal","payloadSchema":[{"nullable":false,"name":"key","type":"string","required":true},{"nullable":false,"name":"method","type":"string","required":true},{"nullable":false,"name":"target","type":"string","required":true},{"nullable":false,"name":"headers","type":"[object]","required":true,"properties":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"value","type":"string","required":true}],"items":{"nullable":false,"name":"","type":"HttpHeader","projectedFrom":{"type":"HttpHeader"}}},{"nullable":false,"name":"body","type":"bytes","required":true},{"nullable":false,"name":"stream","type":"string","required":true},{"nullable":false,"name":"host","type":"string"}]},{"event":"NPM_GET","eventId":"evt_BSPJ6WHRPVWBDGT02CX0WM27WH","description":"Internal: read the packument of the package in flight.","tier":"internal","payloadSchema":[{"nullable":false,"name":"kind","type":"string","required":true}]},{"event":"NPM_WAIT_TARBALL","eventId":"evt_X6MQYNH7DZKPZPSK8DFZPVKQSM","description":"Internal: read one byte of the version's tarball.","tier":"internal","payloadSchema":[{"nullable":false,"name":"url","type":"string","required":true}]},{"event":"NPM_WAIT_RETRY_START","eventId":"evt_44VXE022ZC1FPD0YHDS17M4Y4G","description":"Internal: hand a wait to std-retry.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true}]},{"event":"NPM_WAIT_RETRY_SUCCEEDED","eventId":"evt_7T5R3HB4R3JC1V56W98WV406YT","description":"Internal: tell std-retry the attempt succeeded.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true}]},{"event":"NPM_WAIT_RETRY_FAILED","eventId":"evt_K82E5V40V20DH7NGYXJWWGCA90","description":"Internal: tell std-retry the attempt failed.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true},{"nullable":false,"name":"error","type":"string"}]},{"event":"NPM_WAIT_RETRY_CANCEL","eventId":"evt_FDB03ZZBE6NQ382VCBBWG49N09","description":"Internal: stop std-retry.","tier":"internal","scope":"external"}],"listens":[{"event":"HTTP_REPLIED","triggers":"NPM_WAIT_TARBALL_REPLIED","triggersId":"evt_3DR64EPV4SDJCMWW1VFSPDTES8","payloadMapping":{"status":"@payload.status","headers":"@payload.headers","body":["default",["bytes/to-string","@payload.body"],""]},"guard":["=","@payload.key","tarball"],"source":{"kind":"trait","trait":"RegHttp","traitId":"trt_PAKX2PB2C0H60538Y7Z9XG0RH5"}},{"event":"HTTP_FAILED","triggers":"NPM_WAIT_UNREACHABLE","triggersId":"evt_BXGX3RV8RGMC83FM19QDFY6M2H","payloadMapping":{"error":"@payload.error","kind":"@payload.kind"},"guard":["=","@payload.key","tarball"],"source":{"kind":"trait","trait":"RegHttp","traitId":"trt_PAKX2PB2C0H60538Y7Z9XG0RH5"}},{"event":"TIMED_OUT","triggers":"NPM_WAIT_UNREACHABLE","triggersId":"evt_BXGX3RV8RGMC83FM19QDFY6M2H","payloadMapping":{"error":["str/concat","timeout of ","@payload.timeoutMs","ms exceeded"],"kind":"timeout"},"guard":["=","@payload.key","tarball"],"source":{"kind":"trait","trait":"RegTimeout","traitId":"trt_WPYZ0RXKA4SN255AZPPJV7W38J"}},{"event":"NPM_LOOKED","triggers":"NPM_PACKUMENT_READ","triggersId":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","source":{"kind":"trait","trait":"PackumentLookup","traitId":"trt_WBF13N630V1GDP1ACD75Q01AF5"}},{"event":"NPM_LOOKUP_REFUSED","triggers":"NPM_PACKUMENT_REFUSED","triggersId":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","source":{"kind":"trait","trait":"PackumentLookup","traitId":"trt_WBF13N630V1GDP1ACD75Q01AF5"}},{"event":"ATTEMPT","triggers":"NPM_WAIT_ATTEMPT","triggersId":"evt_5TTR34NN7DTKPMZ4ADH2W713ZD","source":{"kind":"trait","trait":"WaitRetry","traitId":"trt_RRVEPXKTVDXDPT5NAPE12CH5X1"}},{"event":"COMPLETED","triggers":"NPM_WAIT_DONE","triggersId":"evt_Y8C0ZGB2B0H5GDMBYPGQ955A7N","source":{"kind":"trait","trait":"WaitRetry","traitId":"trt_RRVEPXKTVDXDPT5NAPE12CH5X1"}},{"event":"GAVE_UP","triggers":"NPM_WAIT_GAVE_UP","triggersId":"evt_Z140QTG6J0390CRXWYD5FFZXWY","source":{"kind":"trait","trait":"WaitRetry","traitId":"trt_RRVEPXKTVDXDPT5NAPE12CH5X1"}}],"stateMachine":{"states":[{"name":"idle","isInitial":true},{"name":"listing"},{"name":"waiting"}],"events":[{"key":"INIT","id":"evt_TPMASWE1Z00ZGFPT0ASN5KDQ1F","name":"Initialize"},{"key":"NPM_VERSIONS","id":"evt_9N5MVWMTT2DD19PNY96AEY9XVE","name":"Npm Versions","description":"List the package's published versions and dist-tags.","synonyms":"list versions, dist-tags, npm view","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true}],"listened":true},{"key":"NPM_AUTH_PROBE","id":"evt_CC1NKATZMHFT8YRQMW2G39479E","name":"Npm Auth Probe","description":"Read one package the token must be able to read.","synonyms":"preflight, token check","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true}],"listened":true},{"key":"NPM_NEXT_VERSION","id":"evt_XEJS2TMYF2F7HCNT5Y92YXY7SJ","name":"Npm Next Version","description":"Compute the next version to publish (bump patch, minor or major), skipping published versions.","synonyms":"next version, bump","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"current","type":"string","required":true},{"nullable":false,"name":"bump","type":"string","required":true},{"nullable":false,"name":"major","type":"boolean"}],"listened":true},{"key":"NPM_WAIT","id":"evt_WMGHD4004Y02FFZH2SZC21V1S6","name":"Npm Wait","description":"Poll until the version is listed and its tarball downloads.","synonyms":"wait for version, registry lag","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true}],"listened":true},{"key":"NPM_GET","id":"evt_BSPJ6WHRPVWBDGT02CX0WM27WH","name":"Npm Get","description":"Internal: read the packument of the package in flight.","tier":"internal","payloadSchema":[{"nullable":false,"name":"kind","type":"string","required":true}]},{"key":"NPM_PACKUMENT_READ","id":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","name":"Npm Packument Read","description":"Internal: the lookup's answer.","tier":"internal","payloadSchema":[{"nullable":false,"name":"requestId","type":"string","required":true},{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"versions","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"distTags","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"tarballs","type":"Map<string,string>","required":true,"items":{"nullable":false,"name":"","type":"string"}}]},{"key":"NPM_PACKUMENT_REFUSED","id":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","name":"Npm Packument Refused","description":"Internal: the lookup's refusal.","payloadSchema":[{"nullable":false,"name":"requestId","type":"string","required":true},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"error","type":"string","required":true}],"listened":true},{"key":"NPM_WAIT_ATTEMPT","id":"evt_5TTR34NN7DTKPMZ4ADH2W713ZD","name":"Npm Wait Attempt","description":"Internal: std-retry's ATTEMPT.","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true},{"nullable":false,"name":"attempt","type":"number","required":true}],"listened":true},{"key":"NPM_WAIT_TARBALL","id":"evt_X6MQYNH7DZKPZPSK8DFZPVKQSM","name":"Npm Wait Tarball","description":"Internal: read one byte of the version's tarball.","tier":"internal","payloadSchema":[{"nullable":false,"name":"url","type":"string","required":true}]},{"key":"NPM_WAIT_TARBALL_REPLIED","id":"evt_3DR64EPV4SDJCMWW1VFSPDTES8","name":"Npm Wait Tarball Replied","payloadSchema":[{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"headers","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"body","type":"string","required":true}],"listened":true},{"key":"NPM_WAIT_UNREACHABLE","id":"evt_BXGX3RV8RGMC83FM19QDFY6M2H","name":"Npm Wait Unreachable","payloadSchema":[{"nullable":false,"name":"error","type":"string","required":true},{"nullable":false,"name":"kind","type":"string","required":true}],"listened":true},{"key":"NPM_WAIT_DONE","id":"evt_Y8C0ZGB2B0H5GDMBYPGQ955A7N","name":"Npm Wait Done","description":"Internal: std-retry's COMPLETED.","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true},{"nullable":false,"name":"attempts","type":"number","required":true}],"listened":true},{"key":"NPM_WAIT_GAVE_UP","id":"evt_Z140QTG6J0390CRXWYD5FFZXWY","name":"Npm Wait Gave Up","description":"Internal: std-retry's GAVE_UP.","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true},{"nullable":false,"name":"attempts","type":"number","required":true},{"nullable":false,"name":"error","type":"string"}],"listened":true},{"key":"NPM_VERSIONS_LISTED","id":"evt_DV55Y25KGJSR9DA9WF1TN4YCEQ","name":"Npm Versions Listed","description":"The package's published versions, semver ascending, and its dist-tags.","synonyms":"versions list, published versions, dist-tags","tier":"primary","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"versions","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"tags","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}}]},{"key":"NPM_NEXT","id":"evt_RNATPHVS27WH3XH0MHYJNSSACQ","name":"Npm Next","description":"The next version to publish: current bumped, then past every already published version; skipped lists the published candidates passed over.","synonyms":"next version, bump version","tier":"primary","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"current","type":"string","required":true},{"nullable":false,"name":"next","type":"string","required":true},{"nullable":false,"name":"skipped","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}}]},{"key":"NPM_VISIBLE","id":"evt_G52DP2TCE2671AWGKV6D3FR7R5","name":"Npm Visible","description":"The version is listed and its tarball downloads.","synonyms":"version visible, published, installable","tier":"primary","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"attempts","type":"number","required":true}]},{"key":"NPM_WAIT_TIMEOUT","id":"evt_G450N0JB3Z5HZWA1BA2M1KTJ7Q","name":"Npm Wait Timeout","description":"The attempts were spent before the version became visible.","synonyms":"wait timed out, registry lag","tier":"primary","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"attempts","type":"number","required":true},{"nullable":false,"name":"error","type":"string"}]},{"key":"NPM_AUTH_OK","id":"evt_HCEG61FMTMTDADY44NN2N10KFM","name":"Npm Auth Ok","description":"The token can read the probed package.","synonyms":"token ok, registry readable","tier":"primary","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true}]},{"key":"NPM_FAILED","id":"evt_59JNXECK349HJ62GCK3DTB3NS5","name":"Npm Failed","description":"The ask failed: code is auth, absent, unreachable, unexpected, unconfigured, invalid_version or npm_busy.","synonyms":"registry failed, 401, unauthorized","tier":"primary","payloadSchema":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"error","type":"string","required":true}]},{"key":"NPM_LOOKUP_ASK","id":"evt_603C8AZ668K346PTN9S7TDNC1P","name":"Npm Lookup Ask","description":"Internal: ask the composed std-npm-lookup for the package in flight.","tier":"internal","payloadSchema":[{"nullable":false,"name":"requestId","type":"string","required":true},{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"tag","type":"string"}]},{"key":"NPM_WAIT_HTTP_SEND","id":"evt_PMYBBC2B915MGS6ETEDAJ6S8WV","name":"Npm Wait Http Send","description":"Internal: the tarball probe, for the HTTP client.","tier":"internal","payloadSchema":[{"nullable":false,"name":"key","type":"string","required":true},{"nullable":false,"name":"method","type":"string","required":true},{"nullable":false,"name":"target","type":"string","required":true},{"nullable":false,"name":"headers","type":"[object]","required":true,"properties":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"value","type":"string","required":true}],"items":{"nullable":false,"name":"","type":"HttpHeader","projectedFrom":{"type":"HttpHeader"}}},{"nullable":false,"name":"body","type":"bytes","required":true},{"nullable":false,"name":"stream","type":"string","required":true},{"nullable":false,"name":"host","type":"string"}]},{"key":"NPM_WAIT_RETRY_START","id":"evt_44VXE022ZC1FPD0YHDS17M4Y4G","name":"Npm Wait Retry Start","description":"Internal: hand a wait to std-retry.","tier":"internal","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true}]},{"key":"NPM_WAIT_RETRY_SUCCEEDED","id":"evt_7T5R3HB4R3JC1V56W98WV406YT","name":"Npm Wait Retry Succeeded","description":"Internal: tell std-retry the attempt succeeded.","tier":"internal","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true}]},{"key":"NPM_WAIT_RETRY_FAILED","id":"evt_K82E5V40V20DH7NGYXJWWGCA90","name":"Npm Wait Retry Failed","description":"Internal: tell std-retry the attempt failed.","tier":"internal","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true},{"nullable":false,"name":"error","type":"string"}]},{"key":"NPM_WAIT_RETRY_CANCEL","id":"evt_FDB03ZZBE6NQ382VCBBWG49N09","name":"Npm Wait Retry Cancel","description":"Internal: stop std-retry.","tier":"internal"}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_TPMASWE1Z00ZGFPT0ASN5KDQ1F"},{"from":"idle","to":"listing","event":"NPM_VERSIONS","eventId":"evt_9N5MVWMTT2DD19PNY96AEY9XVE","effects":[["set","@entity.name","@payload.name"],["emit","NPM_GET",{"kind":"versions"}]]},{"from":"idle","to":"listing","event":"NPM_AUTH_PROBE","eventId":"evt_CC1NKATZMHFT8YRQMW2G39479E","effects":[["set","@entity.name","@payload.name"],["emit","NPM_GET",{"kind":"probe"}]]},{"from":"idle","to":"listing","event":"NPM_NEXT_VERSION","eventId":"evt_XEJS2TMYF2F7HCNT5Y92YXY7SJ","guard":["and",["=",["str/replace-pattern","@payload.current","^[0-9]+\\.[0-9]+\\.[0-9]+$",""],""],["or",["=","@payload.bump","patch"],["=","@payload.bump","minor"],["=","@payload.bump","major"]]],"effects":[["set","@entity.name","@payload.name"],["set","@entity.current","@payload.current"],["set","@entity.bump","@payload.bump"],["set","@entity.major",["default","@payload.major",false]],["emit","NPM_GET",{"kind":"next"}]]},{"from":"idle","to":"idle","event":"NPM_NEXT_VERSION","eventId":"evt_XEJS2TMYF2F7HCNT5Y92YXY7SJ","guard":["not",["and",["=",["str/replace-pattern","@payload.current","^[0-9]+\\.[0-9]+\\.[0-9]+$",""],""],["or",["=","@payload.bump","patch"],["=","@payload.bump","minor"],["=","@payload.bump","major"]]]],"effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"invalid_version","status":0,"error":["str/concat","cannot bump ","@payload.current"," by ","@payload.bump"]}]]},{"from":"idle","to":"waiting","event":"NPM_WAIT","eventId":"evt_WMGHD4004Y02FFZH2SZC21V1S6","effects":[["set","@entity.name","@payload.name"],["set","@entity.version","@payload.version"],["set","@entity.seq",["+","@entity.seq",1]],["emit","NPM_WAIT_RETRY_START",{"key":["as",["str/concat","npm-wait:",["+","@entity.seq",1]],"CallKey"]}]]},{"from":"listing","to":"idle","event":"INIT","eventId":"evt_TPMASWE1Z00ZGFPT0ASN5KDQ1F"},{"from":"listing","to":"listing","event":"NPM_VERSIONS","eventId":"evt_9N5MVWMTT2DD19PNY96AEY9XVE","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being asked about ","@entity.name"]}]]},{"from":"listing","to":"listing","event":"NPM_NEXT_VERSION","eventId":"evt_XEJS2TMYF2F7HCNT5Y92YXY7SJ","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being asked about ","@entity.name"]}]]},{"from":"listing","to":"listing","event":"NPM_AUTH_PROBE","eventId":"evt_CC1NKATZMHFT8YRQMW2G39479E","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being asked about ","@entity.name"]}]]},{"from":"listing","to":"listing","event":"NPM_WAIT","eventId":"evt_WMGHD4004Y02FFZH2SZC21V1S6","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being asked about ","@entity.name"]}]]},{"from":"listing","to":"listing","event":"NPM_GET","eventId":"evt_BSPJ6WHRPVWBDGT02CX0WM27WH","effects":[["emit","NPM_LOOKUP_ASK",{"requestId":"@payload.kind","name":"@entity.name","tag":"latest"}]]},{"from":"listing","to":"idle","event":"NPM_PACKUMENT_READ","eventId":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","guard":["=","@payload.requestId","versions"],"effects":[["emit","NPM_VERSIONS_LISTED",{"name":"@entity.name","versions":"@payload.versions","tags":"@payload.distTags"}]]},{"from":"listing","to":"idle","event":"NPM_PACKUMENT_READ","eventId":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","guard":["=","@payload.requestId","probe"],"effects":[["emit","NPM_AUTH_OK",{"name":"@entity.name"}]]},{"from":"listing","to":"idle","event":"NPM_PACKUMENT_READ","eventId":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","guard":["=","@payload.requestId","next"],"effects":[["let",[["published","@payload.versions"]],["let",[["cm",["str/to-number",["default",["array/nth",["str/split","@entity.current","."],0],""]]],["cn",["str/to-number",["default",["array/nth",["str/split","@entity.current","."],1],""]]],["cp",["str/to-number",["default",["array/nth",["str/split","@entity.current","."],2],""]]]],["if",["or",["==","@cm",null],["==","@cn",null],["==","@cp",null]],["emit","NPM_FAILED",{"name":"@entity.name","code":"invalid_version","status":0,"error":["str/concat","cannot bump ","@entity.current"," by ","@entity.bump"]}],["let",[["cut",["if",["or",["=","@entity.bump","major"],"@entity.major"],"major",["if",["and",["=","@entity.bump","minor"],["=","@cm",0]],"patch","@entity.bump"]]]],["let",[["bm",["if",["=","@cut","major"],["+","@cm",1],"@cm"]],["bn",["if",["=","@cut","major"],0,["if",["=","@cut","minor"],["+","@cn",1],"@cn"]]],["bp",["if",["or",["=","@cut","major"],["=","@cut","minor"]],0,["+","@cp",1]]]],["let",[["n",["array/find",["array/range",0,1000],["fn","i",["not",["array/includes","@published",["str/concat","@bm",".","@bn",".",["+","@bp","@i"]]]]]]]],["if",["==","@n",null],["emit","NPM_FAILED",{"name":"@entity.name","code":"no_free_version","status":0,"error":["str/concat","no unpublished version found after ","@entity.current"]}],["emit","NPM_NEXT",{"name":"@entity.name","current":"@entity.current","next":["str/concat","@bm",".","@bn",".",["+","@bp","@n"]],"skipped":["array/map",["array/range",0,"@n"],["fn","i",["str/concat","@bm",".","@bn",".",["+","@bp","@i"]]]]}]]]]]]]]]},{"from":"listing","to":"listing","event":"NPM_PACKUMENT_REFUSED","eventId":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","guard":["and",["=","@payload.requestId","next"],["=","@payload.code","absent"]],"effects":[["emit","NPM_PACKUMENT_READ",{"requestId":"next","name":"@entity.name","versions":[],"distTags":["object/merge",{},{}],"version":"","tarballs":["object/merge",{},{}]}]]},{"from":"listing","to":"idle","event":"NPM_PACKUMENT_REFUSED","eventId":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","guard":["not",["and",["=","@payload.requestId","next"],["=","@payload.code","absent"]]],"effects":[["emit","NPM_FAILED",{"name":"@entity.name","code":"@payload.code","status":"@payload.status","error":"@payload.error"}]]},{"from":"waiting","to":"idle","event":"INIT","eventId":"evt_TPMASWE1Z00ZGFPT0ASN5KDQ1F"},{"from":"waiting","to":"waiting","event":"NPM_VERSIONS","eventId":"evt_9N5MVWMTT2DD19PNY96AEY9XVE","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being waited on for ","@entity.name"]}]]},{"from":"waiting","to":"waiting","event":"NPM_NEXT_VERSION","eventId":"evt_XEJS2TMYF2F7HCNT5Y92YXY7SJ","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being waited on for ","@entity.name"]}]]},{"from":"waiting","to":"waiting","event":"NPM_AUTH_PROBE","eventId":"evt_CC1NKATZMHFT8YRQMW2G39479E","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being waited on for ","@entity.name"]}]]},{"from":"waiting","to":"waiting","event":"NPM_WAIT","eventId":"evt_WMGHD4004Y02FFZH2SZC21V1S6","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being waited on for ","@entity.name"]}]]},{"from":"waiting","to":"waiting","event":"NPM_WAIT_ATTEMPT","eventId":"evt_5TTR34NN7DTKPMZ4ADH2W713ZD","effects":[["emit","NPM_LOOKUP_ASK",{"requestId":"wait","name":"@entity.name","tag":"latest"}]]},{"from":"waiting","to":"waiting","event":"NPM_PACKUMENT_READ","eventId":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","guard":["and",["array/includes","@payload.versions","@entity.version"],["!=",["default",["array/nth",["object/values",["object/pick","@payload.tarballs",["@entity.version"]]],0],""],""]],"effects":[["emit","NPM_WAIT_TARBALL",{"url":["default",["array/nth",["object/values",["object/pick","@payload.tarballs",["@entity.version"]]],0],""]}]]},{"from":"waiting","to":"waiting","event":"NPM_PACKUMENT_READ","eventId":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","guard":["not",["and",["array/includes","@payload.versions","@entity.version"],["!=",["default",["array/nth",["object/values",["object/pick","@payload.tarballs",["@entity.version"]]],0],""],""]]],"effects":[["emit","NPM_WAIT_RETRY_FAILED",{"key":["as",["str/concat","npm-wait:",["+","@entity.seq",1]],"CallKey"],"error":["str/concat","not yet visible: ","@entity.name",["quote","\"\\u0040\""],"@entity.version"," (200)"]}]]},{"from":"waiting","to":"idle","event":"NPM_PACKUMENT_REFUSED","eventId":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","guard":["=","@payload.code","auth"],"effects":[["emit","NPM_WAIT_RETRY_CANCEL",{}],["emit","NPM_FAILED",{"name":"@entity.name","code":"auth","status":"@payload.status","error":["str/concat","the registry refused the token (","@payload.status",") for ","@entity.name"]}]]},{"from":"waiting","to":"idle","event":"NPM_PACKUMENT_REFUSED","eventId":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","guard":["=","@payload.code","unconfigured"],"effects":[["emit","NPM_WAIT_RETRY_CANCEL",{}],["emit","NPM_FAILED",{"name":"@entity.name","code":"unconfigured","status":0,"error":"@payload.error"}]]},{"from":"waiting","to":"waiting","event":"NPM_PACKUMENT_REFUSED","eventId":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","guard":["and",["!=","@payload.code","auth"],["!=","@payload.code","unconfigured"],["=","@payload.status",0]],"effects":[["emit","NPM_WAIT_RETRY_FAILED",{"key":["as",["str/concat","npm-wait:",["+","@entity.seq",1]],"CallKey"],"error":"@payload.error"}]]},{"from":"waiting","to":"waiting","event":"NPM_PACKUMENT_REFUSED","eventId":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","guard":["and",["!=","@payload.code","auth"],["!=","@payload.code","unconfigured"],["!=","@payload.status",0]],"effects":[["emit","NPM_WAIT_RETRY_FAILED",{"key":["as",["str/concat","npm-wait:",["+","@entity.seq",1]],"CallKey"],"error":["str/concat","not yet visible: ","@entity.name",["quote","\"\\u0040\""],"@entity.version"," (","@payload.status",")"]}]]},{"from":"waiting","to":"waiting","event":"NPM_WAIT_TARBALL","eventId":"evt_X6MQYNH7DZKPZPSK8DFZPVKQSM","effects":[["emit","NPM_WAIT_HTTP_SEND",{"key":"tarball","method":"GET","target":["str/slice","@payload.url",["str/len","@config.origin"],["str/len","@payload.url"]],"headers":[{"name":"range","value":"bytes=0-0"}],"body":["bytes/from-string",""],"stream":"none","host":["str/slice","@config.origin",8,["str/len","@config.origin"]]}]]},{"from":"waiting","to":"waiting","event":"NPM_WAIT_TARBALL_REPLIED","eventId":"evt_3DR64EPV4SDJCMWW1VFSPDTES8","guard":["or",["=","@payload.status",200],["=","@payload.status",206]],"effects":[["emit","NPM_WAIT_RETRY_SUCCEEDED",{"key":["as",["str/concat","npm-wait:",["+","@entity.seq",1]],"CallKey"]}]]},{"from":"waiting","to":"idle","event":"NPM_WAIT_TARBALL_REPLIED","eventId":"evt_3DR64EPV4SDJCMWW1VFSPDTES8","guard":["or",["=","@payload.status",401],["=","@payload.status",403]],"effects":[["emit","NPM_WAIT_RETRY_CANCEL",{}],["emit","NPM_FAILED",{"name":"@entity.name","code":"auth","status":"@payload.status","error":["str/concat","the registry refused the token (","@payload.status",") for the tarball of ","@entity.name",["quote","\"\\u0040\""],"@entity.version"]}]]},{"from":"waiting","to":"waiting","event":"NPM_WAIT_TARBALL_REPLIED","eventId":"evt_3DR64EPV4SDJCMWW1VFSPDTES8","guard":["not",["or",["=","@payload.status",200],["=","@payload.status",206],["=","@payload.status",401],["=","@payload.status",403]]],"effects":[["emit","NPM_WAIT_RETRY_FAILED",{"key":["as",["str/concat","npm-wait:",["+","@entity.seq",1]],"CallKey"],"error":["str/concat","version listed but its tarball is not downloadable yet (","@payload.status",")"]}]]},{"from":"waiting","to":"idle","event":"NPM_WAIT_UNREACHABLE","eventId":"evt_BXGX3RV8RGMC83FM19QDFY6M2H","guard":["=","@payload.kind","denied"],"effects":[["emit","NPM_WAIT_RETRY_CANCEL",{}],["emit","NPM_FAILED",{"name":"@entity.name","code":"unconfigured","status":0,"error":"@payload.error"}]]},{"from":"waiting","to":"waiting","event":"NPM_WAIT_UNREACHABLE","eventId":"evt_BXGX3RV8RGMC83FM19QDFY6M2H","guard":["!=","@payload.kind","denied"],"effects":[["emit","NPM_WAIT_RETRY_FAILED",{"key":["as",["str/concat","npm-wait:",["+","@entity.seq",1]],"CallKey"],"error":"@payload.error"}]]},{"from":"waiting","to":"idle","event":"NPM_WAIT_DONE","eventId":"evt_Y8C0ZGB2B0H5GDMBYPGQ955A7N","effects":[["emit","NPM_VISIBLE",{"name":"@entity.name","version":"@entity.version","attempts":"@payload.attempts"}]]},{"from":"waiting","to":"idle","event":"NPM_WAIT_GAVE_UP","eventId":"evt_Z140QTG6J0390CRXWYD5FFZXWY","effects":[["emit","NPM_WAIT_TIMEOUT",{"name":"@entity.name","version":"@entity.version","attempts":"@payload.attempts","error":"@payload.error"}]]}]},"config":{"origin":{"nullable":false,"type":"url","default":"@config.registry"}},"sourceDeclaration":{"traitId":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7","fingerprint":"1f0c1157b8f3a72f0f788e7947ab0150cca984b03a36278aed5bd6c2889c69d8"}}],"pages":[{"name":"NpmRegistryPage","id":"pag_1P3AYQR35G1JR9CRCF61S7AM6K","path":"","protocol":"boot","traits":[{"ref":"NpmRegistry","refId":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},{"ref":"WaitRetry","refId":"trt_RRVEPXKTVDXDPT5NAPE12CH5X1"},{"ref":"PackumentLookup","refId":"trt_WBF13N630V1GDP1ACD75Q01AF5"},{"ref":"RegHttp","refId":"trt_PAKX2PB2C0H60538Y7Z9XG0RH5"},{"ref":"RegTimeout","refId":"trt_WPYZ0RXKA4SN255AZPPJV7W38J"}]}],"config":{"registry":{"nullable":false,"type":"url","default":"https://registry.npmjs.org","label":"Registry origin","description":"The registry origin (scheme://host, no trailing slash); https://npm.pkg.github.com for GitHub Packages; the host must be granted in net.","synonyms":"npm registry, github packages","tier":"infra"},"authenticated":{"nullable":false,"type":"boolean","default":false,"label":"Send the token","description":"Send the token credential as a bearer on every read; off for public npm.","synonyms":"private registry, auth","tier":"infra"},"token":{"nullable":false,"type":"secret","default":"NPM_REGISTRY_TOKEN","label":"Registry token","description":"Name of the credential holding the registry's bearer token (a GitHub PAT with read:packages for GitHub Packages).","synonyms":"npm token, github token","tier":"infra"},"timeoutMs":{"nullable":false,"type":"number","default":20000,"label":"Request timeout (ms)","description":"Milliseconds one registry read may take.","synonyms":"timeout","tier":"infra"}},"types":{"HttpHeader":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"value","type":"string","required":true}],"NpmStrMap":[{"nullable":false,"name":"","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}}]}}],"osGrants":{"fs":[],"exec":[],"net":[{"target":"registry.npmjs.org:443","kinds":["tcp"]},{"target":"npm.pkg.github.com:443","kinds":["tcp"]},{"target":"*.npmjs.org:443","kinds":["tcp"]},{"target":"*.pkg.github.com:443","kinds":["tcp"]}],"env":[],"stdio":[],"sys":[],"desktop":[]},"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_7RYGBKCNQWAVY3TWATCRZ3GHPM":{"id":"ent_7RYGBKCNQWAVY3TWATCRZ3GHPM","kind":"entity","bakedName":"NpmRegistryAsk","curName":"NpmRegistryAsk","renames":[],"owner":"workspace"},"evt_3DR64EPV4SDJCMWW1VFSPDTES8":{"id":"evt_3DR64EPV4SDJCMWW1VFSPDTES8","kind":"event","bakedName":"NPM_WAIT_TARBALL_REPLIED","curName":"NPM_WAIT_TARBALL_REPLIED","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_44VXE022ZC1FPD0YHDS17M4Y4G":{"id":"evt_44VXE022ZC1FPD0YHDS17M4Y4G","kind":"event","bakedName":"NPM_WAIT_RETRY_START","curName":"NPM_WAIT_RETRY_START","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_59JNXECK349HJ62GCK3DTB3NS5":{"id":"evt_59JNXECK349HJ62GCK3DTB3NS5","kind":"event","bakedName":"NPM_FAILED","curName":"NPM_FAILED","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_5TTR34NN7DTKPMZ4ADH2W713ZD":{"id":"evt_5TTR34NN7DTKPMZ4ADH2W713ZD","kind":"event","bakedName":"NPM_WAIT_ATTEMPT","curName":"NPM_WAIT_ATTEMPT","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_603C8AZ668K346PTN9S7TDNC1P":{"id":"evt_603C8AZ668K346PTN9S7TDNC1P","kind":"event","bakedName":"NPM_LOOKUP_ASK","curName":"NPM_LOOKUP_ASK","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_7T5R3HB4R3JC1V56W98WV406YT":{"id":"evt_7T5R3HB4R3JC1V56W98WV406YT","kind":"event","bakedName":"NPM_WAIT_RETRY_SUCCEEDED","curName":"NPM_WAIT_RETRY_SUCCEEDED","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_8DMYPH5WNPYAV41EFWG3YDNGPV":{"id":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","kind":"event","bakedName":"NPM_PACKUMENT_REFUSED","curName":"NPM_PACKUMENT_REFUSED","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_9N5MVWMTT2DD19PNY96AEY9XVE":{"id":"evt_9N5MVWMTT2DD19PNY96AEY9XVE","kind":"event","bakedName":"NPM_VERSIONS","curName":"NPM_VERSIONS","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_BSPJ6WHRPVWBDGT02CX0WM27WH":{"id":"evt_BSPJ6WHRPVWBDGT02CX0WM27WH","kind":"event","bakedName":"NPM_GET","curName":"NPM_GET","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_BXGX3RV8RGMC83FM19QDFY6M2H":{"id":"evt_BXGX3RV8RGMC83FM19QDFY6M2H","kind":"event","bakedName":"NPM_WAIT_UNREACHABLE","curName":"NPM_WAIT_UNREACHABLE","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_CC1NKATZMHFT8YRQMW2G39479E":{"id":"evt_CC1NKATZMHFT8YRQMW2G39479E","kind":"event","bakedName":"NPM_AUTH_PROBE","curName":"NPM_AUTH_PROBE","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_DV55Y25KGJSR9DA9WF1TN4YCEQ":{"id":"evt_DV55Y25KGJSR9DA9WF1TN4YCEQ","kind":"event","bakedName":"NPM_VERSIONS_LISTED","curName":"NPM_VERSIONS_LISTED","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_FDB03ZZBE6NQ382VCBBWG49N09":{"id":"evt_FDB03ZZBE6NQ382VCBBWG49N09","kind":"event","bakedName":"NPM_WAIT_RETRY_CANCEL","curName":"NPM_WAIT_RETRY_CANCEL","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_G450N0JB3Z5HZWA1BA2M1KTJ7Q":{"id":"evt_G450N0JB3Z5HZWA1BA2M1KTJ7Q","kind":"event","bakedName":"NPM_WAIT_TIMEOUT","curName":"NPM_WAIT_TIMEOUT","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_G52DP2TCE2671AWGKV6D3FR7R5":{"id":"evt_G52DP2TCE2671AWGKV6D3FR7R5","kind":"event","bakedName":"NPM_VISIBLE","curName":"NPM_VISIBLE","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC":{"id":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","kind":"event","bakedName":"NPM_PACKUMENT_READ","curName":"NPM_PACKUMENT_READ","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_HCEG61FMTMTDADY44NN2N10KFM":{"id":"evt_HCEG61FMTMTDADY44NN2N10KFM","kind":"event","bakedName":"NPM_AUTH_OK","curName":"NPM_AUTH_OK","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_K82E5V40V20DH7NGYXJWWGCA90":{"id":"evt_K82E5V40V20DH7NGYXJWWGCA90","kind":"event","bakedName":"NPM_WAIT_RETRY_FAILED","curName":"NPM_WAIT_RETRY_FAILED","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_PMYBBC2B915MGS6ETEDAJ6S8WV":{"id":"evt_PMYBBC2B915MGS6ETEDAJ6S8WV","kind":"event","bakedName":"NPM_WAIT_HTTP_SEND","curName":"NPM_WAIT_HTTP_SEND","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_RNATPHVS27WH3XH0MHYJNSSACQ":{"id":"evt_RNATPHVS27WH3XH0MHYJNSSACQ","kind":"event","bakedName":"NPM_NEXT","curName":"NPM_NEXT","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_TPMASWE1Z00ZGFPT0ASN5KDQ1F":{"id":"evt_TPMASWE1Z00ZGFPT0ASN5KDQ1F","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_WMGHD4004Y02FFZH2SZC21V1S6":{"id":"evt_WMGHD4004Y02FFZH2SZC21V1S6","kind":"event","bakedName":"NPM_WAIT","curName":"NPM_WAIT","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_X6MQYNH7DZKPZPSK8DFZPVKQSM":{"id":"evt_X6MQYNH7DZKPZPSK8DFZPVKQSM","kind":"event","bakedName":"NPM_WAIT_TARBALL","curName":"NPM_WAIT_TARBALL","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_XEJS2TMYF2F7HCNT5Y92YXY7SJ":{"id":"evt_XEJS2TMYF2F7HCNT5Y92YXY7SJ","kind":"event","bakedName":"NPM_NEXT_VERSION","curName":"NPM_NEXT_VERSION","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_Y8C0ZGB2B0H5GDMBYPGQ955A7N":{"id":"evt_Y8C0ZGB2B0H5GDMBYPGQ955A7N","kind":"event","bakedName":"NPM_WAIT_DONE","curName":"NPM_WAIT_DONE","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_Z140QTG6J0390CRXWYD5FFZXWY":{"id":"evt_Z140QTG6J0390CRXWYD5FFZXWY","kind":"event","bakedName":"NPM_WAIT_GAVE_UP","curName":"NPM_WAIT_GAVE_UP","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"orb_NRAEX18SN2CTHFG0X3C2VR4S0V":{"id":"orb_NRAEX18SN2CTHFG0X3C2VR4S0V","kind":"orbital","bakedName":"NpmRegistryOrbital","curName":"NpmRegistryOrbital","renames":[],"owner":"workspace"},"pag_1P3AYQR35G1JR9CRCF61S7AM6K":{"id":"pag_1P3AYQR35G1JR9CRCF61S7AM6K","kind":"page","bakedName":"NpmRegistryPage","curName":"NpmRegistryPage","renames":[],"owner":"workspace"},"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7":{"id":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7","kind":"trait","bakedName":"NpmRegistry","curName":"NpmRegistry","renames":[],"owner":"workspace"},"trt_PAKX2PB2C0H60538Y7Z9XG0RH5":{"id":"trt_PAKX2PB2C0H60538Y7Z9XG0RH5","kind":"trait","bakedName":"RegHttp","curName":"RegHttp","renames":[],"owner":"workspace"},"trt_RRVEPXKTVDXDPT5NAPE12CH5X1":{"id":"trt_RRVEPXKTVDXDPT5NAPE12CH5X1","kind":"trait","bakedName":"WaitRetry","curName":"WaitRetry","renames":[],"owner":"workspace"},"trt_WBF13N630V1GDP1ACD75Q01AF5":{"id":"trt_WBF13N630V1GDP1ACD75Q01AF5","kind":"trait","bakedName":"PackumentLookup","curName":"PackumentLookup","renames":[],"owner":"workspace"},"trt_WPYZ0RXKA4SN255AZPPJV7W38J":{"id":"trt_WPYZ0RXKA4SN255AZPPJV7W38J","kind":"trait","bakedName":"RegTimeout","curName":"RegTimeout","renames":[],"owner":"workspace"}}}}
1
+ {"typeContractVersion":1,"types":{"HttpHeader":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"value","type":"string","required":true}],"NpmStrMap":[{"nullable":false,"name":"","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}}]},"name":"std-npm-registry","version":"1.0.0","description":"std-npm-registry — a client of an npm-protocol registry (public npm or GitHub Packages; the origin is the registry knob and the bearer token is the token credential, both from config). One ask at a time; an ask during another answers NPM_FAILED npm_busy. NPM_VERSIONS { name } answers NPM_VERSIONS_LISTED { name, versions (semver ascending), tags (dist-tags) } from the packument. NPM_NEXT_VERSION { name, current, bump, major } answers NPM_NEXT { name, current, next, skipped }: current bumped by patch, minor or major (a minor on a 0.x version is demoted to patch unless major is true, which cuts a major), then incremented by patch past every version already published; a package the registry does not know has none published. NPM_WAIT { name, version } polls the packument under std-retry backoff (every pollIntervalMs, up to 80 attempts) until the version is listed and its tarball downloads (one ranged byte, 200 or 206), then answers NPM_VISIBLE { name, version, attempts }; the attempts spent answer NPM_WAIT_TIMEOUT. NPM_AUTH_PROBE { name } reads one package and answers NPM_AUTH_OK. A reply is classified in NPM_FAILED.code: 401 and 403 are auth (never retried, the poll is cancelled), 404 absent, 5xx unreachable, any other status unexpected; a transport failure is unreachable, an unset credential unconfigured. The tarball url must sit under the registry origin. The poll cadence is std-retry's constant schedule: a changed pollIntervalMs needs the composing realization to restate WaitRetry's config.","orbitals":[{"name":"NpmRegistryOrbital","id":"orb_NRAEX18SN2CTHFG0X3C2VR4S0V","uses":[{"from":"almadar-std/npm-registry","as":"Spec"},{"from":"std/behaviors/std-retry","as":"Retry"},{"from":"std/behaviors/std-npm-lookup","as":"Lookup"}],"entity":{"name":"NpmRegistryAsk","id":"ent_7RYGBKCNQWAVY3TWATCRZ3GHPM","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"name","type":"string","default":"","description":"The package the ask in flight is about."},{"nullable":false,"name":"version","type":"string","default":"","description":"The version being waited for; empty otherwise."},{"nullable":false,"name":"bump","type":"string","default":"","description":"The bump a next-version ask applies: patch, minor or major."},{"nullable":false,"name":"major","type":"boolean","default":false,"description":"Whether a next-version ask cuts a major regardless of bump."},{"nullable":false,"name":"current","type":"string","default":"","description":"The version a next-version ask bumps from."},{"nullable":false,"name":"seq","type":"number","default":0,"description":"Waits accepted so far; makes each retry key unique."}]},"traits":[{"ref":"Retry.traits.Retry","id":"trt_RRVEPXKTVDXDPT5NAPE12CH5X1","name":"WaitRetry","config":{"maxAttempts":{"type":"unknown","default":80,"wired":true},"baseDelayMs":{"type":"unknown","default":15000,"wired":true},"multiplier":{"type":"unknown","default":1,"wired":true},"maxDelayMs":{"type":"unknown","default":15000,"wired":true}},"listens":[{"event":"NPM_WAIT_RETRY_START","triggers":"START","source":{"kind":"trait","trait":"NpmRegistry"}},{"event":"NPM_WAIT_RETRY_SUCCEEDED","triggers":"SUCCEEDED","source":{"kind":"trait","trait":"NpmRegistry"}},{"event":"NPM_WAIT_RETRY_FAILED","triggers":"FAILED","source":{"kind":"trait","trait":"NpmRegistry"}},{"event":"NPM_WAIT_RETRY_CANCEL","triggers":"CANCEL","source":{"kind":"trait","trait":"NpmRegistry"}}]},{"ref":"Lookup.traits.NpmLookup","id":"trt_WBF13N630V1GDP1ACD75Q01AF5","name":"PackumentLookup","config":{"registry":{"nullable":false,"type":"url","default":"@config.registry","wired":true}},"listens":[{"event":"NPM_LOOKUP_ASK","triggers":"NPM_LOOKUP","source":{"kind":"trait","trait":"NpmRegistry"}},{"event":"HTTP_REPLIED","triggers":"NPM_LOOKUP_PACKUMENT","payloadMapping":{"status":"@payload.status","headers":"@payload.headers","body":["default",["bytes/to-string","@payload.body"],""]},"guard":["=","@payload.key","lookup"],"source":{"kind":"trait","trait":"RegHttp"}},{"event":"HTTP_FAILED","triggers":"NPM_LOOKUP_UNREACHABLE","payloadMapping":{"error":"@payload.error","kind":"@payload.kind"},"guard":["=","@payload.key","lookup"],"source":{"kind":"trait","trait":"RegHttp"}},{"event":"TIMED_OUT","triggers":"NPM_LOOKUP_UNREACHABLE","payloadMapping":{"error":["str/concat","timeout of ","@payload.timeoutMs","ms exceeded"],"kind":"timeout"},"guard":["=","@payload.key","lookup"],"source":{"kind":"trait","trait":"RegTimeout"}}]},{"ref":"Lookup.traits.LookupHttp","id":"trt_PAKX2PB2C0H60538Y7Z9XG0RH5","name":"RegHttp","config":{"credential":{"nullable":false,"type":"secret","default":"@config.token","wired":true},"credentialHeader":{"type":"unknown","default":["if","@config.authenticated","authorization",""],"wired":true},"credentialPrefix":{"type":"unknown","default":"Bearer ","wired":true}},"listens":[{"event":"NPM_LOOKUP_HTTP_SEND","triggers":"HTTP_SEND","source":{"kind":"trait","trait":"PackumentLookup"}},{"event":"NPM_WAIT_HTTP_SEND","triggers":"HTTP_SEND","source":{"kind":"trait","trait":"NpmRegistry"}},{"event":"TIMED_OUT","triggers":"HTTP_CANCEL","payloadMapping":{"key":"@payload.key"},"source":{"kind":"trait","trait":"RegTimeout"}}]},{"ref":"Lookup.traits.LookupTimeout","id":"trt_WPYZ0RXKA4SN255AZPPJV7W38J","name":"RegTimeout","config":{"timeoutMs":{"nullable":false,"type":"number","default":"@config.timeoutMs","wired":true}},"listens":[{"event":"NPM_LOOKUP_HTTP_SEND","triggers":"START","payloadMapping":{"key":["as","@payload.key","CallKey"]},"source":{"kind":"trait","trait":"PackumentLookup"}},{"event":"NPM_WAIT_HTTP_SEND","triggers":"START","payloadMapping":{"key":["as","@payload.key","CallKey"]},"source":{"kind":"trait","trait":"NpmRegistry"}},{"event":"HTTP_REPLIED","triggers":"SUCCEEDED","payloadMapping":{"key":["as","@payload.key","CallKey"]},"source":{"kind":"trait","trait":"RegHttp"}},{"event":"HTTP_FAILED","triggers":"FAILED","payloadMapping":{"key":["as","@payload.key","CallKey"],"error":"@payload.error"},"source":{"kind":"trait","trait":"RegHttp"}}]},{"name":"NpmRegistry","id":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7","effectRow":[{"kind":"emit","resource":"NPM_AUTH_OK"},{"kind":"emit","resource":"NPM_FAILED"},{"kind":"emit","resource":"NPM_GET"},{"kind":"emit","resource":"NPM_LOOKUP_ASK"},{"kind":"emit","resource":"NPM_NEXT"},{"kind":"emit","resource":"NPM_PACKUMENT_READ"},{"kind":"emit","resource":"NPM_VERSIONS_LISTED"},{"kind":"emit","resource":"NPM_VISIBLE"},{"kind":"emit","resource":"NPM_WAIT_HTTP_SEND"},{"kind":"emit","resource":"NPM_WAIT_RETRY_CANCEL"},{"kind":"emit","resource":"NPM_WAIT_RETRY_FAILED"},{"kind":"emit","resource":"NPM_WAIT_RETRY_START"},{"kind":"emit","resource":"NPM_WAIT_RETRY_SUCCEEDED"},{"kind":"emit","resource":"NPM_WAIT_TARBALL"},{"kind":"emit","resource":"NPM_WAIT_TIMEOUT"},{"kind":"set","resource":"@entity.bump"},{"kind":"set","resource":"@entity.current"},{"kind":"set","resource":"@entity.major"},{"kind":"set","resource":"@entity.name"},{"kind":"set","resource":"@entity.seq"},{"kind":"set","resource":"@entity.version"}],"linkedEntity":"NpmRegistryAsk","linkedEntityId":"ent_7RYGBKCNQWAVY3TWATCRZ3GHPM","entityRefIds":{"NpmRegistryAsk":"ent_7RYGBKCNQWAVY3TWATCRZ3GHPM"},"emits":[{"event":"NPM_VERSIONS_LISTED","eventId":"evt_DV55Y25KGJSR9DA9WF1TN4YCEQ","description":"The package's published versions, semver ascending, and its dist-tags.","synonyms":"versions list, published versions, dist-tags","tier":"primary","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"versions","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"tags","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}}]},{"event":"NPM_NEXT","eventId":"evt_RNATPHVS27WH3XH0MHYJNSSACQ","description":"The next version to publish: current bumped, then past every already published version; skipped lists the published candidates passed over.","synonyms":"next version, bump version","tier":"primary","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"current","type":"string","required":true},{"nullable":false,"name":"next","type":"string","required":true},{"nullable":false,"name":"skipped","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}}]},{"event":"NPM_VISIBLE","eventId":"evt_G52DP2TCE2671AWGKV6D3FR7R5","description":"The version is listed and its tarball downloads.","synonyms":"version visible, published, installable","tier":"primary","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"attempts","type":"number","required":true}]},{"event":"NPM_WAIT_TIMEOUT","eventId":"evt_G450N0JB3Z5HZWA1BA2M1KTJ7Q","description":"The attempts were spent before the version became visible.","synonyms":"wait timed out, registry lag","tier":"primary","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"attempts","type":"number","required":true},{"nullable":false,"name":"error","type":"string"}]},{"event":"NPM_AUTH_OK","eventId":"evt_HCEG61FMTMTDADY44NN2N10KFM","description":"The token can read the probed package.","synonyms":"token ok, registry readable","tier":"primary","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true}]},{"event":"NPM_FAILED","eventId":"evt_59JNXECK349HJ62GCK3DTB3NS5","description":"The ask failed: code is auth, absent, unreachable, unexpected, unconfigured, invalid_version or npm_busy.","synonyms":"registry failed, 401, unauthorized","tier":"primary","scope":"external","payloadSchema":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"error","type":"string","required":true}]},{"event":"NPM_LOOKUP_ASK","eventId":"evt_603C8AZ668K346PTN9S7TDNC1P","description":"Internal: ask the composed std-npm-lookup for the package in flight.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"requestId","type":"string","required":true},{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"tag","type":"string"}]},{"event":"NPM_PACKUMENT_READ","eventId":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","description":"Internal: the lookup's answer.","tier":"internal","payloadSchema":[{"nullable":false,"name":"requestId","type":"string","required":true},{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"versions","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"distTags","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"tarballs","type":"Map<string,string>","required":true,"items":{"nullable":false,"name":"","type":"string"}}]},{"event":"NPM_WAIT_HTTP_SEND","eventId":"evt_PMYBBC2B915MGS6ETEDAJ6S8WV","description":"Internal: the tarball probe, for the HTTP client.","tier":"internal","payloadSchema":[{"nullable":false,"name":"key","type":"string","required":true},{"nullable":false,"name":"method","type":"string","required":true},{"nullable":false,"name":"target","type":"string","required":true},{"nullable":false,"name":"headers","type":"[object]","required":true,"properties":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"value","type":"string","required":true}],"items":{"nullable":false,"name":"","type":"HttpHeader","projectedFrom":{"type":"HttpHeader"}}},{"nullable":false,"name":"body","type":"bytes","required":true},{"nullable":false,"name":"stream","type":"string","required":true},{"nullable":false,"name":"host","type":"string"}]},{"event":"NPM_GET","eventId":"evt_BSPJ6WHRPVWBDGT02CX0WM27WH","description":"Internal: read the packument of the package in flight.","tier":"internal","payloadSchema":[{"nullable":false,"name":"kind","type":"string","required":true}]},{"event":"NPM_WAIT_TARBALL","eventId":"evt_X6MQYNH7DZKPZPSK8DFZPVKQSM","description":"Internal: read one byte of the version's tarball.","tier":"internal","payloadSchema":[{"nullable":false,"name":"url","type":"string","required":true}]},{"event":"NPM_WAIT_RETRY_START","eventId":"evt_44VXE022ZC1FPD0YHDS17M4Y4G","description":"Internal: hand a wait to std-retry.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true}]},{"event":"NPM_WAIT_RETRY_SUCCEEDED","eventId":"evt_7T5R3HB4R3JC1V56W98WV406YT","description":"Internal: tell std-retry the attempt succeeded.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true}]},{"event":"NPM_WAIT_RETRY_FAILED","eventId":"evt_K82E5V40V20DH7NGYXJWWGCA90","description":"Internal: tell std-retry the attempt failed.","tier":"internal","scope":"external","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true},{"nullable":false,"name":"error","type":"string"}]},{"event":"NPM_WAIT_RETRY_CANCEL","eventId":"evt_FDB03ZZBE6NQ382VCBBWG49N09","description":"Internal: stop std-retry.","tier":"internal","scope":"external"}],"listens":[{"event":"HTTP_REPLIED","triggers":"NPM_WAIT_TARBALL_REPLIED","triggersId":"evt_3DR64EPV4SDJCMWW1VFSPDTES8","payloadMapping":{"status":"@payload.status","headers":"@payload.headers","body":["default",["bytes/to-string","@payload.body"],""]},"guard":["=","@payload.key","tarball"],"source":{"kind":"trait","trait":"RegHttp","traitId":"trt_PAKX2PB2C0H60538Y7Z9XG0RH5"}},{"event":"HTTP_FAILED","triggers":"NPM_WAIT_UNREACHABLE","triggersId":"evt_BXGX3RV8RGMC83FM19QDFY6M2H","payloadMapping":{"error":"@payload.error","kind":"@payload.kind"},"guard":["=","@payload.key","tarball"],"source":{"kind":"trait","trait":"RegHttp","traitId":"trt_PAKX2PB2C0H60538Y7Z9XG0RH5"}},{"event":"TIMED_OUT","triggers":"NPM_WAIT_UNREACHABLE","triggersId":"evt_BXGX3RV8RGMC83FM19QDFY6M2H","payloadMapping":{"error":["str/concat","timeout of ","@payload.timeoutMs","ms exceeded"],"kind":"timeout"},"guard":["=","@payload.key","tarball"],"source":{"kind":"trait","trait":"RegTimeout","traitId":"trt_WPYZ0RXKA4SN255AZPPJV7W38J"}},{"event":"NPM_LOOKED","triggers":"NPM_PACKUMENT_READ","triggersId":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","source":{"kind":"trait","trait":"PackumentLookup","traitId":"trt_WBF13N630V1GDP1ACD75Q01AF5"}},{"event":"NPM_LOOKUP_REFUSED","triggers":"NPM_PACKUMENT_REFUSED","triggersId":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","source":{"kind":"trait","trait":"PackumentLookup","traitId":"trt_WBF13N630V1GDP1ACD75Q01AF5"}},{"event":"ATTEMPT","triggers":"NPM_WAIT_ATTEMPT","triggersId":"evt_5TTR34NN7DTKPMZ4ADH2W713ZD","source":{"kind":"trait","trait":"WaitRetry","traitId":"trt_RRVEPXKTVDXDPT5NAPE12CH5X1"}},{"event":"COMPLETED","triggers":"NPM_WAIT_DONE","triggersId":"evt_Y8C0ZGB2B0H5GDMBYPGQ955A7N","source":{"kind":"trait","trait":"WaitRetry","traitId":"trt_RRVEPXKTVDXDPT5NAPE12CH5X1"}},{"event":"GAVE_UP","triggers":"NPM_WAIT_GAVE_UP","triggersId":"evt_Z140QTG6J0390CRXWYD5FFZXWY","source":{"kind":"trait","trait":"WaitRetry","traitId":"trt_RRVEPXKTVDXDPT5NAPE12CH5X1"}}],"stateMachine":{"states":[{"name":"idle","isInitial":true},{"name":"listing"},{"name":"waiting"}],"events":[{"key":"INIT","id":"evt_TPMASWE1Z00ZGFPT0ASN5KDQ1F","name":"Initialize"},{"key":"NPM_VERSIONS","id":"evt_9N5MVWMTT2DD19PNY96AEY9XVE","name":"Npm Versions","description":"List the package's published versions and dist-tags.","synonyms":"list versions, dist-tags, npm view","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true}],"listened":true},{"key":"NPM_AUTH_PROBE","id":"evt_CC1NKATZMHFT8YRQMW2G39479E","name":"Npm Auth Probe","description":"Read one package the token must be able to read.","synonyms":"preflight, token check","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true}],"listened":true},{"key":"NPM_NEXT_VERSION","id":"evt_XEJS2TMYF2F7HCNT5Y92YXY7SJ","name":"Npm Next Version","description":"Compute the next version to publish (bump patch, minor or major), skipping published versions.","synonyms":"next version, bump","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"current","type":"string","required":true},{"nullable":false,"name":"bump","type":"string","required":true},{"nullable":false,"name":"major","type":"boolean"}],"listened":true},{"key":"NPM_WAIT","id":"evt_WMGHD4004Y02FFZH2SZC21V1S6","name":"Npm Wait","description":"Poll until the version is listed and its tarball downloads.","synonyms":"wait for version, registry lag","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true}],"listened":true},{"key":"NPM_GET","id":"evt_BSPJ6WHRPVWBDGT02CX0WM27WH","name":"Npm Get","description":"Internal: read the packument of the package in flight.","tier":"internal","payloadSchema":[{"nullable":false,"name":"kind","type":"string","required":true}]},{"key":"NPM_PACKUMENT_READ","id":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","name":"Npm Packument Read","description":"Internal: the lookup's answer.","tier":"internal","payloadSchema":[{"nullable":false,"name":"requestId","type":"string","required":true},{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"versions","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"distTags","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"tarballs","type":"Map<string,string>","required":true,"items":{"nullable":false,"name":"","type":"string"}}]},{"key":"NPM_PACKUMENT_REFUSED","id":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","name":"Npm Packument Refused","description":"Internal: the lookup's refusal.","payloadSchema":[{"nullable":false,"name":"requestId","type":"string","required":true},{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"error","type":"string","required":true}],"listened":true},{"key":"NPM_WAIT_ATTEMPT","id":"evt_5TTR34NN7DTKPMZ4ADH2W713ZD","name":"Npm Wait Attempt","description":"Internal: std-retry's ATTEMPT.","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true},{"nullable":false,"name":"attempt","type":"number","required":true}],"listened":true},{"key":"NPM_WAIT_TARBALL","id":"evt_X6MQYNH7DZKPZPSK8DFZPVKQSM","name":"Npm Wait Tarball","description":"Internal: read one byte of the version's tarball.","tier":"internal","payloadSchema":[{"nullable":false,"name":"url","type":"string","required":true}]},{"key":"NPM_WAIT_TARBALL_REPLIED","id":"evt_3DR64EPV4SDJCMWW1VFSPDTES8","name":"Npm Wait Tarball Replied","payloadSchema":[{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"headers","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"body","type":"string","required":true}],"listened":true},{"key":"NPM_WAIT_UNREACHABLE","id":"evt_BXGX3RV8RGMC83FM19QDFY6M2H","name":"Npm Wait Unreachable","payloadSchema":[{"nullable":false,"name":"error","type":"string","required":true},{"nullable":false,"name":"kind","type":"string","required":true}],"listened":true},{"key":"NPM_WAIT_DONE","id":"evt_Y8C0ZGB2B0H5GDMBYPGQ955A7N","name":"Npm Wait Done","description":"Internal: std-retry's COMPLETED.","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true},{"nullable":false,"name":"attempts","type":"number","required":true}],"listened":true},{"key":"NPM_WAIT_GAVE_UP","id":"evt_Z140QTG6J0390CRXWYD5FFZXWY","name":"Npm Wait Gave Up","description":"Internal: std-retry's GAVE_UP.","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true},{"nullable":false,"name":"attempts","type":"number","required":true},{"nullable":false,"name":"error","type":"string"}],"listened":true},{"key":"NPM_VERSIONS_LISTED","id":"evt_DV55Y25KGJSR9DA9WF1TN4YCEQ","name":"Npm Versions Listed","description":"The package's published versions, semver ascending, and its dist-tags.","synonyms":"versions list, published versions, dist-tags","tier":"primary","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"versions","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}},{"nullable":false,"name":"tags","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}}]},{"key":"NPM_NEXT","id":"evt_RNATPHVS27WH3XH0MHYJNSSACQ","name":"Npm Next","description":"The next version to publish: current bumped, then past every already published version; skipped lists the published candidates passed over.","synonyms":"next version, bump version","tier":"primary","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"current","type":"string","required":true},{"nullable":false,"name":"next","type":"string","required":true},{"nullable":false,"name":"skipped","type":"[string]","required":true,"items":{"nullable":false,"name":"","type":"string"}}]},{"key":"NPM_VISIBLE","id":"evt_G52DP2TCE2671AWGKV6D3FR7R5","name":"Npm Visible","description":"The version is listed and its tarball downloads.","synonyms":"version visible, published, installable","tier":"primary","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"attempts","type":"number","required":true}]},{"key":"NPM_WAIT_TIMEOUT","id":"evt_G450N0JB3Z5HZWA1BA2M1KTJ7Q","name":"Npm Wait Timeout","description":"The attempts were spent before the version became visible.","synonyms":"wait timed out, registry lag","tier":"primary","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"attempts","type":"number","required":true},{"nullable":false,"name":"error","type":"string"}]},{"key":"NPM_AUTH_OK","id":"evt_HCEG61FMTMTDADY44NN2N10KFM","name":"Npm Auth Ok","description":"The token can read the probed package.","synonyms":"token ok, registry readable","tier":"primary","payloadSchema":[{"nullable":false,"name":"name","type":"string","required":true}]},{"key":"NPM_FAILED","id":"evt_59JNXECK349HJ62GCK3DTB3NS5","name":"Npm Failed","description":"The ask failed: code is auth, absent, unreachable, unexpected, unconfigured, invalid_version or npm_busy.","synonyms":"registry failed, 401, unauthorized","tier":"primary","payloadSchema":[{"nullable":false,"name":"name","type":"string"},{"nullable":false,"name":"code","type":"string","required":true},{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"error","type":"string","required":true}]},{"key":"NPM_LOOKUP_ASK","id":"evt_603C8AZ668K346PTN9S7TDNC1P","name":"Npm Lookup Ask","description":"Internal: ask the composed std-npm-lookup for the package in flight.","tier":"internal","payloadSchema":[{"nullable":false,"name":"requestId","type":"string","required":true},{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"tag","type":"string"}]},{"key":"NPM_WAIT_HTTP_SEND","id":"evt_PMYBBC2B915MGS6ETEDAJ6S8WV","name":"Npm Wait Http Send","description":"Internal: the tarball probe, for the HTTP client.","tier":"internal","payloadSchema":[{"nullable":false,"name":"key","type":"string","required":true},{"nullable":false,"name":"method","type":"string","required":true},{"nullable":false,"name":"target","type":"string","required":true},{"nullable":false,"name":"headers","type":"[object]","required":true,"properties":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"value","type":"string","required":true}],"items":{"nullable":false,"name":"","type":"HttpHeader","projectedFrom":{"type":"HttpHeader"}}},{"nullable":false,"name":"body","type":"bytes","required":true},{"nullable":false,"name":"stream","type":"string","required":true},{"nullable":false,"name":"host","type":"string"}]},{"key":"NPM_WAIT_RETRY_START","id":"evt_44VXE022ZC1FPD0YHDS17M4Y4G","name":"Npm Wait Retry Start","description":"Internal: hand a wait to std-retry.","tier":"internal","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true}]},{"key":"NPM_WAIT_RETRY_SUCCEEDED","id":"evt_7T5R3HB4R3JC1V56W98WV406YT","name":"Npm Wait Retry Succeeded","description":"Internal: tell std-retry the attempt succeeded.","tier":"internal","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true}]},{"key":"NPM_WAIT_RETRY_FAILED","id":"evt_K82E5V40V20DH7NGYXJWWGCA90","name":"Npm Wait Retry Failed","description":"Internal: tell std-retry the attempt failed.","tier":"internal","payloadSchema":[{"nullable":false,"name":"key","type":"CallKey","required":true},{"nullable":false,"name":"error","type":"string"}]},{"key":"NPM_WAIT_RETRY_CANCEL","id":"evt_FDB03ZZBE6NQ382VCBBWG49N09","name":"Npm Wait Retry Cancel","description":"Internal: stop std-retry.","tier":"internal"}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_TPMASWE1Z00ZGFPT0ASN5KDQ1F"},{"from":"idle","to":"listing","event":"NPM_VERSIONS","eventId":"evt_9N5MVWMTT2DD19PNY96AEY9XVE","effects":[["set","@entity.name","@payload.name"],["emit","NPM_GET",{"kind":"versions"}]]},{"from":"idle","to":"listing","event":"NPM_AUTH_PROBE","eventId":"evt_CC1NKATZMHFT8YRQMW2G39479E","effects":[["set","@entity.name","@payload.name"],["emit","NPM_GET",{"kind":"probe"}]]},{"from":"idle","to":"listing","event":"NPM_NEXT_VERSION","eventId":"evt_XEJS2TMYF2F7HCNT5Y92YXY7SJ","guard":["and",["=",["str/replace-pattern","@payload.current","^[0-9]+\\.[0-9]+\\.[0-9]+$",""],""],["or",["=","@payload.bump","patch"],["=","@payload.bump","minor"],["=","@payload.bump","major"]]],"effects":[["set","@entity.name","@payload.name"],["set","@entity.current","@payload.current"],["set","@entity.bump","@payload.bump"],["set","@entity.major",["default","@payload.major",false]],["emit","NPM_GET",{"kind":"next"}]]},{"from":"idle","to":"idle","event":"NPM_NEXT_VERSION","eventId":"evt_XEJS2TMYF2F7HCNT5Y92YXY7SJ","guard":["not",["and",["=",["str/replace-pattern","@payload.current","^[0-9]+\\.[0-9]+\\.[0-9]+$",""],""],["or",["=","@payload.bump","patch"],["=","@payload.bump","minor"],["=","@payload.bump","major"]]]],"effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"invalid_version","status":0,"error":["str/concat","cannot bump ","@payload.current"," by ","@payload.bump"]}]]},{"from":"idle","to":"waiting","event":"NPM_WAIT","eventId":"evt_WMGHD4004Y02FFZH2SZC21V1S6","effects":[["set","@entity.name","@payload.name"],["set","@entity.version","@payload.version"],["set","@entity.seq",["+","@entity.seq",1]],["emit","NPM_WAIT_RETRY_START",{"key":["as",["str/concat","npm-wait:",["+","@entity.seq",1]],"CallKey"]}]]},{"from":"listing","to":"idle","event":"INIT","eventId":"evt_TPMASWE1Z00ZGFPT0ASN5KDQ1F"},{"from":"listing","to":"listing","event":"NPM_VERSIONS","eventId":"evt_9N5MVWMTT2DD19PNY96AEY9XVE","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being asked about ","@entity.name"]}]]},{"from":"listing","to":"listing","event":"NPM_NEXT_VERSION","eventId":"evt_XEJS2TMYF2F7HCNT5Y92YXY7SJ","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being asked about ","@entity.name"]}]]},{"from":"listing","to":"listing","event":"NPM_AUTH_PROBE","eventId":"evt_CC1NKATZMHFT8YRQMW2G39479E","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being asked about ","@entity.name"]}]]},{"from":"listing","to":"listing","event":"NPM_WAIT","eventId":"evt_WMGHD4004Y02FFZH2SZC21V1S6","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being asked about ","@entity.name"]}]]},{"from":"listing","to":"listing","event":"NPM_GET","eventId":"evt_BSPJ6WHRPVWBDGT02CX0WM27WH","effects":[["emit","NPM_LOOKUP_ASK",{"requestId":"@payload.kind","name":"@entity.name","tag":"latest"}]]},{"from":"listing","to":"idle","event":"NPM_PACKUMENT_READ","eventId":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","guard":["=","@payload.requestId","versions"],"effects":[["emit","NPM_VERSIONS_LISTED",{"name":"@entity.name","versions":"@payload.versions","tags":"@payload.distTags"}]]},{"from":"listing","to":"idle","event":"NPM_PACKUMENT_READ","eventId":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","guard":["=","@payload.requestId","probe"],"effects":[["emit","NPM_AUTH_OK",{"name":"@entity.name"}]]},{"from":"listing","to":"idle","event":"NPM_PACKUMENT_READ","eventId":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","guard":["=","@payload.requestId","next"],"effects":[["let",[["published","@payload.versions"]],["let",[["cm",["str/to-number",["default",["array/nth",["str/split","@entity.current","."],0],""]]],["cn",["str/to-number",["default",["array/nth",["str/split","@entity.current","."],1],""]]],["cp",["str/to-number",["default",["array/nth",["str/split","@entity.current","."],2],""]]]],["if",["or",["==","@cm",null],["==","@cn",null],["==","@cp",null]],["emit","NPM_FAILED",{"name":"@entity.name","code":"invalid_version","status":0,"error":["str/concat","cannot bump ","@entity.current"," by ","@entity.bump"]}],["let",[["cut",["if",["or",["=","@entity.bump","major"],"@entity.major"],"major",["if",["and",["=","@entity.bump","minor"],["=","@cm",0]],"patch","@entity.bump"]]]],["let",[["bm",["if",["=","@cut","major"],["+","@cm",1],"@cm"]],["bn",["if",["=","@cut","major"],0,["if",["=","@cut","minor"],["+","@cn",1],"@cn"]]],["bp",["if",["or",["=","@cut","major"],["=","@cut","minor"]],0,["+","@cp",1]]]],["let",[["n",["array/find",["array/range",0,1000],["fn","i",["not",["array/includes","@published",["str/concat","@bm",".","@bn",".",["+","@bp","@i"]]]]]]]],["if",["==","@n",null],["emit","NPM_FAILED",{"name":"@entity.name","code":"no_free_version","status":0,"error":["str/concat","no unpublished version found after ","@entity.current"]}],["emit","NPM_NEXT",{"name":"@entity.name","current":"@entity.current","next":["str/concat","@bm",".","@bn",".",["+","@bp","@n"]],"skipped":["array/map",["array/range",0,"@n"],["fn","i",["str/concat","@bm",".","@bn",".",["+","@bp","@i"]]]]}]]]]]]]]]},{"from":"listing","to":"listing","event":"NPM_PACKUMENT_REFUSED","eventId":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","guard":["and",["=","@payload.requestId","next"],["=","@payload.code","absent"]],"effects":[["emit","NPM_PACKUMENT_READ",{"requestId":"next","name":"@entity.name","versions":[],"distTags":["object/merge",{},{}],"version":"","tarballs":["object/merge",{},{}]}]]},{"from":"listing","to":"idle","event":"NPM_PACKUMENT_REFUSED","eventId":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","guard":["not",["and",["=","@payload.requestId","next"],["=","@payload.code","absent"]]],"effects":[["emit","NPM_FAILED",{"name":"@entity.name","code":"@payload.code","status":"@payload.status","error":"@payload.error"}]]},{"from":"waiting","to":"idle","event":"INIT","eventId":"evt_TPMASWE1Z00ZGFPT0ASN5KDQ1F"},{"from":"waiting","to":"waiting","event":"NPM_VERSIONS","eventId":"evt_9N5MVWMTT2DD19PNY96AEY9XVE","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being waited on for ","@entity.name"]}]]},{"from":"waiting","to":"waiting","event":"NPM_NEXT_VERSION","eventId":"evt_XEJS2TMYF2F7HCNT5Y92YXY7SJ","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being waited on for ","@entity.name"]}]]},{"from":"waiting","to":"waiting","event":"NPM_AUTH_PROBE","eventId":"evt_CC1NKATZMHFT8YRQMW2G39479E","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being waited on for ","@entity.name"]}]]},{"from":"waiting","to":"waiting","event":"NPM_WAIT","eventId":"evt_WMGHD4004Y02FFZH2SZC21V1S6","effects":[["emit","NPM_FAILED",{"name":"@payload.name","code":"npm_busy","status":0,"error":["str/concat","the registry is being waited on for ","@entity.name"]}]]},{"from":"waiting","to":"waiting","event":"NPM_WAIT_ATTEMPT","eventId":"evt_5TTR34NN7DTKPMZ4ADH2W713ZD","effects":[["emit","NPM_LOOKUP_ASK",{"requestId":"wait","name":"@entity.name","tag":"latest"}]]},{"from":"waiting","to":"waiting","event":"NPM_PACKUMENT_READ","eventId":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","guard":["and",["array/includes","@payload.versions","@entity.version"],["!=",["default",["array/nth",["object/values",["object/pick","@payload.tarballs",["@entity.version"]]],0],""],""]],"effects":[["emit","NPM_WAIT_TARBALL",{"url":["default",["array/nth",["object/values",["object/pick","@payload.tarballs",["@entity.version"]]],0],""]}]]},{"from":"waiting","to":"waiting","event":"NPM_PACKUMENT_READ","eventId":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","guard":["not",["and",["array/includes","@payload.versions","@entity.version"],["!=",["default",["array/nth",["object/values",["object/pick","@payload.tarballs",["@entity.version"]]],0],""],""]]],"effects":[["emit","NPM_WAIT_RETRY_FAILED",{"key":["as",["str/concat","npm-wait:",["+","@entity.seq",1]],"CallKey"],"error":["str/concat","not yet visible: ","@entity.name",["quote","\"\\u0040\""],"@entity.version"," (200)"]}]]},{"from":"waiting","to":"idle","event":"NPM_PACKUMENT_REFUSED","eventId":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","guard":["=","@payload.code","auth"],"effects":[["emit","NPM_WAIT_RETRY_CANCEL",{}],["emit","NPM_FAILED",{"name":"@entity.name","code":"auth","status":"@payload.status","error":["str/concat","the registry refused the token (","@payload.status",") for ","@entity.name"]}]]},{"from":"waiting","to":"idle","event":"NPM_PACKUMENT_REFUSED","eventId":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","guard":["=","@payload.code","unconfigured"],"effects":[["emit","NPM_WAIT_RETRY_CANCEL",{}],["emit","NPM_FAILED",{"name":"@entity.name","code":"unconfigured","status":0,"error":"@payload.error"}]]},{"from":"waiting","to":"waiting","event":"NPM_PACKUMENT_REFUSED","eventId":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","guard":["and",["!=","@payload.code","auth"],["!=","@payload.code","unconfigured"],["=","@payload.status",0]],"effects":[["emit","NPM_WAIT_RETRY_FAILED",{"key":["as",["str/concat","npm-wait:",["+","@entity.seq",1]],"CallKey"],"error":"@payload.error"}]]},{"from":"waiting","to":"waiting","event":"NPM_PACKUMENT_REFUSED","eventId":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","guard":["and",["!=","@payload.code","auth"],["!=","@payload.code","unconfigured"],["!=","@payload.status",0]],"effects":[["emit","NPM_WAIT_RETRY_FAILED",{"key":["as",["str/concat","npm-wait:",["+","@entity.seq",1]],"CallKey"],"error":["str/concat","not yet visible: ","@entity.name",["quote","\"\\u0040\""],"@entity.version"," (","@payload.status",")"]}]]},{"from":"waiting","to":"waiting","event":"NPM_WAIT_TARBALL","eventId":"evt_X6MQYNH7DZKPZPSK8DFZPVKQSM","effects":[["emit","NPM_WAIT_HTTP_SEND",{"key":"tarball","method":"GET","target":["str/slice","@payload.url",["str/len","@config.origin"],["str/len","@payload.url"]],"headers":[{"name":"range","value":"bytes=0-0"}],"body":["bytes/from-string",""],"stream":"none","host":["str/slice","@config.origin",8,["str/len","@config.origin"]]}]]},{"from":"waiting","to":"waiting","event":"NPM_WAIT_TARBALL_REPLIED","eventId":"evt_3DR64EPV4SDJCMWW1VFSPDTES8","guard":["or",["=","@payload.status",200],["=","@payload.status",206]],"effects":[["emit","NPM_WAIT_RETRY_SUCCEEDED",{"key":["as",["str/concat","npm-wait:",["+","@entity.seq",1]],"CallKey"]}]]},{"from":"waiting","to":"idle","event":"NPM_WAIT_TARBALL_REPLIED","eventId":"evt_3DR64EPV4SDJCMWW1VFSPDTES8","guard":["or",["=","@payload.status",401],["=","@payload.status",403]],"effects":[["emit","NPM_WAIT_RETRY_CANCEL",{}],["emit","NPM_FAILED",{"name":"@entity.name","code":"auth","status":"@payload.status","error":["str/concat","the registry refused the token (","@payload.status",") for the tarball of ","@entity.name",["quote","\"\\u0040\""],"@entity.version"]}]]},{"from":"waiting","to":"waiting","event":"NPM_WAIT_TARBALL_REPLIED","eventId":"evt_3DR64EPV4SDJCMWW1VFSPDTES8","guard":["not",["or",["=","@payload.status",200],["=","@payload.status",206],["=","@payload.status",401],["=","@payload.status",403]]],"effects":[["emit","NPM_WAIT_RETRY_FAILED",{"key":["as",["str/concat","npm-wait:",["+","@entity.seq",1]],"CallKey"],"error":["str/concat","version listed but its tarball is not downloadable yet (","@payload.status",")"]}]]},{"from":"waiting","to":"idle","event":"NPM_WAIT_UNREACHABLE","eventId":"evt_BXGX3RV8RGMC83FM19QDFY6M2H","guard":["array/includes",["denied","unsupported"],"@payload.kind"],"effects":[["emit","NPM_WAIT_RETRY_CANCEL",{}],["emit","NPM_FAILED",{"name":"@entity.name","code":"unconfigured","status":0,"error":"@payload.error"}]]},{"from":"waiting","to":"waiting","event":"NPM_WAIT_UNREACHABLE","eventId":"evt_BXGX3RV8RGMC83FM19QDFY6M2H","guard":["not",["array/includes",["denied","unsupported"],"@payload.kind"]],"effects":[["emit","NPM_WAIT_RETRY_FAILED",{"key":["as",["str/concat","npm-wait:",["+","@entity.seq",1]],"CallKey"],"error":"@payload.error"}]]},{"from":"waiting","to":"idle","event":"NPM_WAIT_DONE","eventId":"evt_Y8C0ZGB2B0H5GDMBYPGQ955A7N","effects":[["emit","NPM_VISIBLE",{"name":"@entity.name","version":"@entity.version","attempts":"@payload.attempts"}]]},{"from":"waiting","to":"idle","event":"NPM_WAIT_GAVE_UP","eventId":"evt_Z140QTG6J0390CRXWYD5FFZXWY","effects":[["emit","NPM_WAIT_TIMEOUT",{"name":"@entity.name","version":"@entity.version","attempts":"@payload.attempts","error":"@payload.error"}]]}]},"config":{"origin":{"nullable":false,"type":"url","default":"@config.registry"}},"sourceDeclaration":{"traitId":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7","fingerprint":"b14b87ea1de9803f1e5b7adf99f46f0103ff641c9759b4f42240267144938bb4"}}],"pages":[{"name":"NpmRegistryPage","id":"pag_1P3AYQR35G1JR9CRCF61S7AM6K","path":"","protocol":"boot","traits":[{"ref":"NpmRegistry","refId":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},{"ref":"WaitRetry","refId":"trt_RRVEPXKTVDXDPT5NAPE12CH5X1"},{"ref":"PackumentLookup","refId":"trt_WBF13N630V1GDP1ACD75Q01AF5"},{"ref":"RegHttp","refId":"trt_PAKX2PB2C0H60538Y7Z9XG0RH5"},{"ref":"RegTimeout","refId":"trt_WPYZ0RXKA4SN255AZPPJV7W38J"}]}],"config":{"registry":{"nullable":false,"type":"url","default":"https://registry.npmjs.org","label":"Registry origin","description":"The registry origin (scheme://host, no trailing slash); https://npm.pkg.github.com for GitHub Packages; the host must be granted in net.","synonyms":"npm registry, github packages","tier":"infra"},"authenticated":{"nullable":false,"type":"boolean","default":false,"label":"Send the token","description":"Send the token credential as a bearer on every read; off for public npm.","synonyms":"private registry, auth","tier":"infra"},"token":{"nullable":false,"type":"secret","default":"NPM_REGISTRY_TOKEN","label":"Registry token","description":"Name of the credential holding the registry's bearer token (a GitHub PAT with read:packages for GitHub Packages).","synonyms":"npm token, github token","tier":"infra"},"timeoutMs":{"nullable":false,"type":"number","default":20000,"label":"Request timeout (ms)","description":"Milliseconds one registry read may take.","synonyms":"timeout","tier":"infra"}},"types":{"HttpHeader":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"value","type":"string","required":true}],"NpmStrMap":[{"nullable":false,"name":"","type":"Map<string,string>","items":{"nullable":false,"name":"","type":"string"}}]}}],"osGrants":{"fs":[],"exec":[],"net":[{"target":"registry.npmjs.org:443","kinds":["tcp"]},{"target":"npm.pkg.github.com:443","kinds":["tcp"]},{"target":"*.npmjs.org:443","kinds":["tcp"]},{"target":"*.pkg.github.com:443","kinds":["tcp"]}],"env":[],"stdio":[],"sys":[],"desktop":[]},"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_7RYGBKCNQWAVY3TWATCRZ3GHPM":{"id":"ent_7RYGBKCNQWAVY3TWATCRZ3GHPM","kind":"entity","bakedName":"NpmRegistryAsk","curName":"NpmRegistryAsk","renames":[],"owner":"workspace"},"evt_3DR64EPV4SDJCMWW1VFSPDTES8":{"id":"evt_3DR64EPV4SDJCMWW1VFSPDTES8","kind":"event","bakedName":"NPM_WAIT_TARBALL_REPLIED","curName":"NPM_WAIT_TARBALL_REPLIED","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_44VXE022ZC1FPD0YHDS17M4Y4G":{"id":"evt_44VXE022ZC1FPD0YHDS17M4Y4G","kind":"event","bakedName":"NPM_WAIT_RETRY_START","curName":"NPM_WAIT_RETRY_START","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_59JNXECK349HJ62GCK3DTB3NS5":{"id":"evt_59JNXECK349HJ62GCK3DTB3NS5","kind":"event","bakedName":"NPM_FAILED","curName":"NPM_FAILED","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_5TTR34NN7DTKPMZ4ADH2W713ZD":{"id":"evt_5TTR34NN7DTKPMZ4ADH2W713ZD","kind":"event","bakedName":"NPM_WAIT_ATTEMPT","curName":"NPM_WAIT_ATTEMPT","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_603C8AZ668K346PTN9S7TDNC1P":{"id":"evt_603C8AZ668K346PTN9S7TDNC1P","kind":"event","bakedName":"NPM_LOOKUP_ASK","curName":"NPM_LOOKUP_ASK","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_7T5R3HB4R3JC1V56W98WV406YT":{"id":"evt_7T5R3HB4R3JC1V56W98WV406YT","kind":"event","bakedName":"NPM_WAIT_RETRY_SUCCEEDED","curName":"NPM_WAIT_RETRY_SUCCEEDED","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_8DMYPH5WNPYAV41EFWG3YDNGPV":{"id":"evt_8DMYPH5WNPYAV41EFWG3YDNGPV","kind":"event","bakedName":"NPM_PACKUMENT_REFUSED","curName":"NPM_PACKUMENT_REFUSED","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_9N5MVWMTT2DD19PNY96AEY9XVE":{"id":"evt_9N5MVWMTT2DD19PNY96AEY9XVE","kind":"event","bakedName":"NPM_VERSIONS","curName":"NPM_VERSIONS","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_BSPJ6WHRPVWBDGT02CX0WM27WH":{"id":"evt_BSPJ6WHRPVWBDGT02CX0WM27WH","kind":"event","bakedName":"NPM_GET","curName":"NPM_GET","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_BXGX3RV8RGMC83FM19QDFY6M2H":{"id":"evt_BXGX3RV8RGMC83FM19QDFY6M2H","kind":"event","bakedName":"NPM_WAIT_UNREACHABLE","curName":"NPM_WAIT_UNREACHABLE","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_CC1NKATZMHFT8YRQMW2G39479E":{"id":"evt_CC1NKATZMHFT8YRQMW2G39479E","kind":"event","bakedName":"NPM_AUTH_PROBE","curName":"NPM_AUTH_PROBE","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_DV55Y25KGJSR9DA9WF1TN4YCEQ":{"id":"evt_DV55Y25KGJSR9DA9WF1TN4YCEQ","kind":"event","bakedName":"NPM_VERSIONS_LISTED","curName":"NPM_VERSIONS_LISTED","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_FDB03ZZBE6NQ382VCBBWG49N09":{"id":"evt_FDB03ZZBE6NQ382VCBBWG49N09","kind":"event","bakedName":"NPM_WAIT_RETRY_CANCEL","curName":"NPM_WAIT_RETRY_CANCEL","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_G450N0JB3Z5HZWA1BA2M1KTJ7Q":{"id":"evt_G450N0JB3Z5HZWA1BA2M1KTJ7Q","kind":"event","bakedName":"NPM_WAIT_TIMEOUT","curName":"NPM_WAIT_TIMEOUT","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_G52DP2TCE2671AWGKV6D3FR7R5":{"id":"evt_G52DP2TCE2671AWGKV6D3FR7R5","kind":"event","bakedName":"NPM_VISIBLE","curName":"NPM_VISIBLE","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC":{"id":"evt_GC9H12WNK3ASHHNYEKNFZ9MAQC","kind":"event","bakedName":"NPM_PACKUMENT_READ","curName":"NPM_PACKUMENT_READ","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_HCEG61FMTMTDADY44NN2N10KFM":{"id":"evt_HCEG61FMTMTDADY44NN2N10KFM","kind":"event","bakedName":"NPM_AUTH_OK","curName":"NPM_AUTH_OK","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_K82E5V40V20DH7NGYXJWWGCA90":{"id":"evt_K82E5V40V20DH7NGYXJWWGCA90","kind":"event","bakedName":"NPM_WAIT_RETRY_FAILED","curName":"NPM_WAIT_RETRY_FAILED","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_PMYBBC2B915MGS6ETEDAJ6S8WV":{"id":"evt_PMYBBC2B915MGS6ETEDAJ6S8WV","kind":"event","bakedName":"NPM_WAIT_HTTP_SEND","curName":"NPM_WAIT_HTTP_SEND","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_RNATPHVS27WH3XH0MHYJNSSACQ":{"id":"evt_RNATPHVS27WH3XH0MHYJNSSACQ","kind":"event","bakedName":"NPM_NEXT","curName":"NPM_NEXT","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_TPMASWE1Z00ZGFPT0ASN5KDQ1F":{"id":"evt_TPMASWE1Z00ZGFPT0ASN5KDQ1F","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_WMGHD4004Y02FFZH2SZC21V1S6":{"id":"evt_WMGHD4004Y02FFZH2SZC21V1S6","kind":"event","bakedName":"NPM_WAIT","curName":"NPM_WAIT","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_X6MQYNH7DZKPZPSK8DFZPVKQSM":{"id":"evt_X6MQYNH7DZKPZPSK8DFZPVKQSM","kind":"event","bakedName":"NPM_WAIT_TARBALL","curName":"NPM_WAIT_TARBALL","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_XEJS2TMYF2F7HCNT5Y92YXY7SJ":{"id":"evt_XEJS2TMYF2F7HCNT5Y92YXY7SJ","kind":"event","bakedName":"NPM_NEXT_VERSION","curName":"NPM_NEXT_VERSION","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_Y8C0ZGB2B0H5GDMBYPGQ955A7N":{"id":"evt_Y8C0ZGB2B0H5GDMBYPGQ955A7N","kind":"event","bakedName":"NPM_WAIT_DONE","curName":"NPM_WAIT_DONE","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"evt_Z140QTG6J0390CRXWYD5FFZXWY":{"id":"evt_Z140QTG6J0390CRXWYD5FFZXWY","kind":"event","bakedName":"NPM_WAIT_GAVE_UP","curName":"NPM_WAIT_GAVE_UP","renames":[],"owner":"workspace","parent":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7"},"orb_NRAEX18SN2CTHFG0X3C2VR4S0V":{"id":"orb_NRAEX18SN2CTHFG0X3C2VR4S0V","kind":"orbital","bakedName":"NpmRegistryOrbital","curName":"NpmRegistryOrbital","renames":[],"owner":"workspace"},"pag_1P3AYQR35G1JR9CRCF61S7AM6K":{"id":"pag_1P3AYQR35G1JR9CRCF61S7AM6K","kind":"page","bakedName":"NpmRegistryPage","curName":"NpmRegistryPage","renames":[],"owner":"workspace"},"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7":{"id":"trt_0NGFFE8K5F9JQMQDZYR3ZTBDZ7","kind":"trait","bakedName":"NpmRegistry","curName":"NpmRegistry","renames":[],"owner":"workspace"},"trt_PAKX2PB2C0H60538Y7Z9XG0RH5":{"id":"trt_PAKX2PB2C0H60538Y7Z9XG0RH5","kind":"trait","bakedName":"RegHttp","curName":"RegHttp","renames":[],"owner":"workspace"},"trt_RRVEPXKTVDXDPT5NAPE12CH5X1":{"id":"trt_RRVEPXKTVDXDPT5NAPE12CH5X1","kind":"trait","bakedName":"WaitRetry","curName":"WaitRetry","renames":[],"owner":"workspace"},"trt_WBF13N630V1GDP1ACD75Q01AF5":{"id":"trt_WBF13N630V1GDP1ACD75Q01AF5","kind":"trait","bakedName":"PackumentLookup","curName":"PackumentLookup","renames":[],"owner":"workspace"},"trt_WPYZ0RXKA4SN255AZPPJV7W38J":{"id":"trt_WPYZ0RXKA4SN255AZPPJV7W38J","kind":"trait","bakedName":"RegTimeout","curName":"RegTimeout","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"typeContractVersion":1,"name":"lint-all-spec","version":"1.0.0","orbitals":[{"name":"LintAllSpec","id":"orb_1K5XXDNHR8RW49T0J2YJS5WF39","expects":[{"kind":"page","protocol":"boot","traits":["OrbLintAll"],"strict":true},{"kind":"state","traitName":"OrbLintAll","state":"ready","strict":true},{"kind":"event","traitName":"OrbLintAll","event":"LINT_RUN","payload":[{"nullable":false,"name":"file","type":"string","required":true}],"strict":true},{"kind":"event","traitName":"OrbLintAll","event":"LINT_ANSWERED","payload":[{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"body","type":"string","required":true}],"strict":true}],"spec":true,"entity":{"name":"LintAllSpec","id":"ent_B8RWE4P3031G1J7QDM6XHTCCF6","fields":[]},"traits":[]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_B8RWE4P3031G1J7QDM6XHTCCF6":{"id":"ent_B8RWE4P3031G1J7QDM6XHTCCF6","kind":"entity","bakedName":"LintAllSpec","curName":"LintAllSpec","renames":[],"owner":"workspace"},"orb_1K5XXDNHR8RW49T0J2YJS5WF39":{"id":"orb_1K5XXDNHR8RW49T0J2YJS5WF39","kind":"orbital","bakedName":"LintAllSpec","curName":"LintAllSpec","renames":[],"owner":"workspace"}}}}
1
+ {"typeContractVersion":1,"name":"lint-all-spec","version":"1.0.0","description":"Spec for the orb lint-all command: an expected page and trait that emits LINT_RUN for a file and LINT_ANSWERED with a status and body.","orbitals":[{"name":"LintAllSpec","id":"orb_1K5XXDNHR8RW49T0J2YJS5WF39","expects":[{"kind":"page","protocol":"boot","traits":["OrbLintAll"],"strict":true},{"kind":"state","traitName":"OrbLintAll","state":"ready","strict":true},{"kind":"event","traitName":"OrbLintAll","event":"LINT_RUN","payload":[{"nullable":false,"name":"file","type":"string","required":true}],"strict":true},{"kind":"event","traitName":"OrbLintAll","event":"LINT_ANSWERED","payload":[{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"body","type":"string","required":true}],"strict":true}],"spec":true,"entity":{"name":"LintAllSpec","id":"ent_B8RWE4P3031G1J7QDM6XHTCCF6","fields":[]},"traits":[]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_B8RWE4P3031G1J7QDM6XHTCCF6":{"id":"ent_B8RWE4P3031G1J7QDM6XHTCCF6","kind":"entity","bakedName":"LintAllSpec","curName":"LintAllSpec","renames":[],"owner":"workspace"},"orb_1K5XXDNHR8RW49T0J2YJS5WF39":{"id":"orb_1K5XXDNHR8RW49T0J2YJS5WF39","kind":"orbital","bakedName":"LintAllSpec","curName":"LintAllSpec","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"typeContractVersion":1,"types":{"BaselineEntry":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"registry","type":"string","required":true}],"EngineRow":[{"nullable":false,"name":"engine","type":"string","required":true},{"nullable":false,"name":"package","type":"string","required":true},{"nullable":true,"name":"version","type":"string"},{"nullable":true,"name":"entry","type":"string"},{"nullable":true,"name":"path","type":"string"},{"nullable":false,"name":"installed","type":"boolean","required":true},{"nullable":false,"name":"link","type":"boolean","required":true}],"LockEntry":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"url","type":"string","required":true},{"nullable":false,"name":"integrity","type":"string","required":true}],"PackageKind":[{"nullable":false,"name":"","type":"string","values":["language","behaviors","language pack","shell","desktop","orb"]}],"PackageRow":[{"nullable":false,"name":"package","type":"string","required":true},{"nullable":false,"name":"kinds","type":"[string]","values":["language","behaviors","language pack","shell","desktop","orb"],"required":true,"items":{"nullable":false,"name":"","type":"PackageKind","projectedFrom":{"type":"PackageKind"}}},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"link","type":"boolean","required":true},{"nullable":true,"name":"prefix","type":"string"},{"nullable":true,"name":"behaviors","type":"number"},{"nullable":true,"name":"problem","type":"string"}]},"name":"orb-packages-spec","version":"1.0.0","description":"Design contract for `orb add|update|remove|list [--global]` and `orb engines add|update|remove|list`, the client of the npm registry. Golden = orbital-cli packages.rs and engines_cmd.rs today; the change is that a package is installed at one exact version from its npm tarball and the lockfile {name, version, url, integrity} replaces bun (ranges are refused with ORB_PACKAGE_RANGE). Tarballs are valid sources only under the registry knob (default https://registry.npmjs.org; the origin the composed std-http-client trait is configured with, its host a net grant) or the sourceOrigin knob; any other host is refused ORB_PACKAGE_SOURCE. A name resolves through the registry knob: GET /<name> (the packument, slash encoded %2f) for update, GET /<name>/<version> for add. Integrity is dist.integrity, `sha512-` plus the base64 sha512 of the downloaded gzip tarball; a mismatch installs nothing. The tarball is gunzipped and read as ustar by the kernel (a codec refusal is ORB_PACKAGE_ARCHIVE (<code>)), every entry must sit under package/ (ORB_PACKAGE_LAYOUT), the files are written into node_modules/.orb-staging/<name>@<version>, the old package is removed, the staging directory is renamed into place and only then is the lock entry recorded and the lockfile written. A package kind is read from its package.json: orbLanguage = language, orb = behaviors, orbVocabulary = language pack, orbProgram.kind shell|desktop = shell|desktop; no kind is refused ORB_PACKAGE_NOT_ORB with `<name>: not an orb package (its package.json declares none of orbLanguage, orb, orbVocabulary, orbProgram)`. add: installs, then checks each named or newly appeared package; a clean one prints `added <name>@<version> (<kinds joined by , >)`; one that declares no kind or does not load is refused and, if this call added it, removed again; any refusal fails with `not added:` and one indented `<name>: <problem>` line per refusal; an install that yields no package fails `installed nothing for <specs>`. update: resolves every non-linked orb package and every missing baseline package (the `baseline` knob: {name, registry} entries; core, std, the language packs, the typescript shell) like an upgrade from nothing, moving each to the highest non-deprecated stable version by semver order that is language-compatible (core: its orbLanguage.version satisfies the range this orb reads; every other package: its language range, orb, orbLanguage, orbVocabulary or orbProgram .language, the first present in the packument, is satisfied by the target core language, the orbLanguage.version of the core version this update installs, else of the installed core; core resolves first); a missing baseline package with no compatible version fails the update (the range this orb reads is the R of the `orb X.Y.Z (language R)` answer of `orb --version`, any other answer refuses the update; checks use std-semver; a version whose manifest records no language is treated as incompatible, never guessed, and named on stderr as `<name>@<version>: ORB_PACKAGE_NO_LANGUAGE (...)`, an unsatisfied one as `ORB_PACKAGE_INCOMPATIBLE`, only for versions newer than the installed one), written exact into the lockfile (a workspace-linked package is never updated), prints the list rows and, after them, one `<severity> update: <name> <from> → <to>: <advisory>` line for every applied version whose registry manifest carries orbRelease severity security or critical, removes again what this call added and does not load, records the update check, and fails `these packages do not load for this orb:` with one indented `<name>: <problem>` line each. update --global also keeps this host's orb binary package installed (the orbPlatforms knob maps the os/uname sysname and machine to @almadar/orb-darwin-arm64, -darwin-x64, -linux-x64, -linux-arm64 or -windows-x64), resolved like a baseline package in the registry knob but on its own compatibility rule: an orb platform package has no language range, so its newest stable, non-deprecated version is taken whose package.json declares orbReads, a range of core languages the target core language satisfies (no orbReads: skipped ORB_PACKAGE_NO_LANGUAGE; its orb and orbProgram blocks are not read); a package declaring orbReads is listed with kind `orb`; a host with no matching entry or whose os/uname fails gets one ORB_PACKAGE_PLATFORM line on stderr and no orb package is considered (the Windows host does not implement os/uname today). update --urgent (update only; any other command is refused with the usage line): every version may carry a top-level orbRelease { severity security|critical|normal, advisory (one line), fixes (a semver range of earlier versions it fixes) } in its registry manifest (none, or an unknown severity word, is normal); a package is urgent when a stable, non-deprecated version newer than the installed one is security or critical, declares fixes, the installed version satisfies fixes (std-semver) and the version passes the language check above; only urgent packages are updated, to the newest such version, through the same integrity check, staging swap and lockfile write; a baseline package that is not installed is never urgent; stdout is only the applied `<severity> update:` lines; an urgent version that fails the language check (ORB_PACKAGE_INCOMPATIBLE or ORB_PACKAGE_NO_LANGUAGE), whose fixes range std-semver refuses (ORB_PACKAGE_RELEASE), or whose download, integrity or install fails is not applied: the installed version stays, the call answers 500 and stderr names each refusal and each confirmed-urgent advisory, the vulnerable version is never replaced by a half-written one. remove: a workspace-linked package is refused ORB_PACKAGE_LINKED and its link is never deleted; a behavior package whose prefix a .lolo or .orb file still imports (skipping node_modules, .git, dist, target) is refused `refusing to remove '<name>': N file(s) still import '<prefix>/':` plus the files, one per line; otherwise prints `removed <name>` per name. list: one row per installed orb package, sorted by name, columns package (34), version (12), kinds joined by `, ` (26), then `ok` or the problem, ` (linked)` for a workspace link, and ` [<prefix>/, N behaviors]` for a behavior package; --json prints the rows { package, kinds, version, path, link, prefix?, behaviors?, problem } as pretty JSON; with no rows the table is empty and stderr says `orb: nothing is installed in <dir> (no @almadar/core or @almadar/std); run `orb update --global` to set the language up`. Without --global the project directory is used, falling back to the user store when there is no project. Engines: `engines add|update` install the pinned runtime-verify/compiled engine packages at the exact pinned version (`installed <package>@<version> (entry <bin> → <path>)`; a wrong version fails `<package>: expected version <v>, got <w>`, a missing bin entry `<package>: installed package has no `<bin>` bin entry`, a package not found after install `<package>: install reported success but the package was not found`), update prints `updated <package>: <old> → <new>` or `<package>@<old> already up to date` or `installed <package>@<version>`, remove prints `removed <package>`, list prints rows engine (16), package (32), version (12), link (6), path, or `not installed — <hint>`, --json the rows { engine, package, version, entry, path, installed, link }.","orbitals":[{"name":"OrbPackagesSpec","id":"orb_1BQ97FT0NG0AR0CGQ9YC41QF5R","expects":[{"kind":"config","name":"registry","knob":{"nullable":false,"type":"string","default":"https://registry.npmjs.org"},"strict":true},{"kind":"config","name":"sourceOrigin","knob":{"nullable":false,"type":"string","default":"https://registry.npmjs.org"},"strict":true},{"kind":"config","name":"lockfile","knob":{"nullable":false,"type":"string","default":"orb.lock.json"},"strict":true},{"kind":"config","name":"baseline","knob":{"nullable":false,"type":"[BaselineEntry]","default":[{"name":["quote","\"\\u0040almadar/core\""],"registry":"https://registry.npmjs.org"},{"name":["quote","\"\\u0040almadar/std\""],"registry":"https://registry.npmjs.org"},{"name":["quote","\"\\u0040almadar/lolo-ar\""],"registry":"https://registry.npmjs.org"},{"name":["quote","\"\\u0040almadar/lolo-sl\""],"registry":"https://registry.npmjs.org"},{"name":["quote","\"\\u0040almadar/orb-shell-typescript\""],"registry":"https://registry.npmjs.org"}],"items":{"nullable":false,"type":"object","properties":{"name":{"nullable":false,"name":"name","type":"string","required":true},"registry":{"nullable":false,"name":"registry","type":"string","required":true}},"projectedFrom":{"type":"BaselineEntry"}}},"strict":true},{"kind":"entity","name":"PackageCall","shape":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"status","type":"number"},{"nullable":false,"name":"lock","type":"array","items":{"nullable":false,"type":"object","properties":{"name":{"nullable":false,"name":"name","type":"string","required":true},"version":{"nullable":false,"name":"version","type":"string","required":true},"url":{"nullable":false,"name":"url","type":"string","required":true},"integrity":{"nullable":false,"name":"integrity","type":"string","required":true}},"projectedFrom":{"type":"LockEntry"}}}],"persistence":"runtime","invariants":[[">=","@entity.status",0]],"strict":true},{"kind":"state","traitName":"OrbPackages","state":"ready","strict":true},{"kind":"state","traitName":"OrbPackages","state":"resolving","strict":true},{"kind":"state","traitName":"OrbPackages","state":"downloading","strict":true},{"kind":"state","traitName":"OrbPackages","state":"verifying","strict":true},{"kind":"state","traitName":"OrbPackages","state":"installing","strict":true},{"kind":"state","traitName":"OrbPackages","state":"listing","strict":true},{"kind":"state","traitName":"OrbPackages","state":"walking","strict":true},{"kind":"event","traitName":"OrbPackages","event":"PACKAGES_ANSWERED","payload":[{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"body","type":"string","required":true},{"nullable":false,"name":"stderr","type":"string"}],"strict":true},{"kind":"event","traitName":"OrbPackages","event":"PACKAGE_INSTALLED","payload":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"kinds","type":"[PackageKind]","values":["language","behaviors","language pack","shell","desktop","orb"],"required":true,"items":{"nullable":false,"name":"","type":"PackageKind","projectedFrom":{"type":"PackageKind"}}}],"strict":true},{"kind":"event","traitName":"OrbPackages","event":"PACKAGE_REFUSED","payload":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"problem","type":"string","required":true}],"strict":true},{"kind":"page","protocol":"boot","traits":["OrbPackages"],"strict":true}],"spec":true,"entity":{"name":"OrbPackagesSpec","id":"ent_6N079MAVECDQ68SRSRCTDXY4W2","fields":[]},"traits":[],"types":{"BaselineEntry":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"registry","type":"string","required":true}],"EngineRow":[{"nullable":false,"name":"engine","type":"string","required":true},{"nullable":false,"name":"package","type":"string","required":true},{"nullable":true,"name":"version","type":"string"},{"nullable":true,"name":"entry","type":"string"},{"nullable":true,"name":"path","type":"string"},{"nullable":false,"name":"installed","type":"boolean","required":true},{"nullable":false,"name":"link","type":"boolean","required":true}],"LockEntry":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"url","type":"string","required":true},{"nullable":false,"name":"integrity","type":"string","required":true}],"PackageKind":[{"nullable":false,"name":"","type":"string","values":["language","behaviors","language pack","shell","desktop","orb"]}],"PackageRow":[{"nullable":false,"name":"package","type":"string","required":true},{"nullable":false,"name":"kinds","type":"[string]","values":["language","behaviors","language pack","shell","desktop","orb"],"required":true,"items":{"nullable":false,"name":"","type":"PackageKind","projectedFrom":{"type":"PackageKind"}}},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"link","type":"boolean","required":true},{"nullable":true,"name":"prefix","type":"string"},{"nullable":true,"name":"behaviors","type":"number"},{"nullable":true,"name":"problem","type":"string"}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_6N079MAVECDQ68SRSRCTDXY4W2":{"id":"ent_6N079MAVECDQ68SRSRCTDXY4W2","kind":"entity","bakedName":"OrbPackagesSpec","curName":"OrbPackagesSpec","renames":[],"owner":"workspace"},"orb_1BQ97FT0NG0AR0CGQ9YC41QF5R":{"id":"orb_1BQ97FT0NG0AR0CGQ9YC41QF5R","kind":"orbital","bakedName":"OrbPackagesSpec","curName":"OrbPackagesSpec","renames":[],"owner":"workspace"}}}}
1
+ {"typeContractVersion":1,"types":{"BaselineEntry":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"registry","type":"string","required":true}],"EngineRow":[{"nullable":false,"name":"engine","type":"string","required":true},{"nullable":false,"name":"package","type":"string","required":true},{"nullable":true,"name":"version","type":"string"},{"nullable":true,"name":"entry","type":"string"},{"nullable":true,"name":"path","type":"string"},{"nullable":false,"name":"installed","type":"boolean","required":true},{"nullable":false,"name":"link","type":"boolean","required":true}],"LockEntry":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"url","type":"string","required":true},{"nullable":false,"name":"integrity","type":"string","required":true}],"PackageKind":[{"nullable":false,"name":"","type":"string","values":["language","behaviors","language pack","shell","desktop","orb"]}],"PackageRow":[{"nullable":false,"name":"package","type":"string","required":true},{"nullable":false,"name":"kinds","type":"[string]","values":["language","behaviors","language pack","shell","desktop","orb"],"required":true,"items":{"nullable":false,"name":"","type":"PackageKind","projectedFrom":{"type":"PackageKind"}}},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"link","type":"boolean","required":true},{"nullable":true,"name":"prefix","type":"string"},{"nullable":true,"name":"behaviors","type":"number"},{"nullable":true,"name":"problem","type":"string"}]},"name":"orb-packages-spec","version":"1.0.0","description":"Design contract for `orb add|update|remove|list [--global]` and `orb engines add|update|remove|list`, the client of the npm registry. Golden = orbital-cli packages.rs and engines_cmd.rs today; the change is that a package is installed at one exact version from its npm tarball and the lockfile {name, version, url, integrity} replaces bun (ranges are refused with ORB_PACKAGE_RANGE). Tarballs are valid sources only under the registry knob (default https://registry.npmjs.org; the origin the composed std-http-client trait is configured with, its host a net grant) or the sourceOrigin knob; any other host is refused ORB_PACKAGE_SOURCE. A name resolves through the registry knob: GET /<name> (the packument, slash encoded %2f) for update, GET /<name>/<version> for add. Integrity is dist.integrity, `sha512-` plus the base64 sha512 of the downloaded gzip tarball; a mismatch installs nothing. The tarball is gunzipped and read as ustar by the kernel (a codec refusal is ORB_PACKAGE_ARCHIVE (<code>)), every entry must sit under package/ (ORB_PACKAGE_LAYOUT), the files are written into node_modules/.orb-staging/<name>@<version>, the old package is removed, the staging directory is renamed into place and only then is the lock entry recorded and the lockfile written. A package kind is read from its package.json: orbLanguage = language, orb = behaviors, orbVocabulary = language pack, orbProgram.kind shell|desktop = shell|desktop; no kind is refused ORB_PACKAGE_NOT_ORB with `<name>: not an orb package (its package.json declares none of orbLanguage, orb, orbVocabulary, orbProgram)`. add: installs, then checks each named or newly appeared package; a clean one prints `added <name>@<version> (<kinds joined by , >)`; one that declares no kind or does not load is refused and, if this call added it, removed again; any refusal fails with `not added:` and one indented `<name>: <problem>` line per refusal; an install that yields no package fails `installed nothing for <specs>`. update: resolves every non-linked orb package and every missing baseline package (the `baseline` knob: {name, registry} entries; core, std, the language packs, the typescript shell) like an upgrade from nothing, moving each to the highest non-deprecated stable version by semver order that is language-compatible (core: its orbLanguage.version satisfies the range this orb reads; every other package: its language range, orb, orbLanguage, orbVocabulary or orbProgram .language, the first present in the packument, is satisfied by the target core language, the orbLanguage.version of the core version this update installs, else of the installed core; core resolves first); a missing baseline package with no compatible version fails the update (the range this orb reads is the R of the `orb X.Y.Z (language R)` answer of `orb --version`, any other answer refuses the update; checks use std-semver; a version whose manifest records no language is treated as incompatible, never guessed, and named on stderr as `<name>@<version>: ORB_PACKAGE_NO_LANGUAGE (...)`, an unsatisfied one as `ORB_PACKAGE_INCOMPATIBLE`, only for versions newer than the installed one), written exact into the lockfile (a workspace-linked package is never updated), prints the list rows and, after them, one `<severity> update: <name> <from> → <to>: <advisory>` line for every applied version whose registry manifest carries orbRelease severity security or critical, removes again what this call added and does not load, records the update check, and fails `these packages do not load for this orb:` with one indented `<name>: <problem>` line each. update --global also keeps this host's orb binary package installed (the orbPlatforms knob maps the os/uname sysname and machine to @almadar/orb-darwin-arm64, -darwin-x64, -linux-x64, -linux-arm64 or -windows-x64), resolved like a baseline package in the registry knob but on its own compatibility rule: an orb platform package has no language range, so its newest stable, non-deprecated version is taken whose package.json declares orbReads, a range of core languages the target core language satisfies (no orbReads: skipped ORB_PACKAGE_NO_LANGUAGE; its orb and orbProgram blocks are not read); a package declaring orbReads is listed with kind `orb`; a host with no matching entry or whose os/uname fails gets one ORB_PACKAGE_PLATFORM line on stderr and no orb package is considered (the Windows host does not implement os/uname today). A package whose package.json declares orbProgram also installs each of its optionalDependencies at its exact version whose registry manifest os and cpu include this host's (the os and cpu of the orbPlatforms entry os/uname matched, the npm platform rule; every add and update asks os/uname); a host os/uname cannot place installs none of them. Every file the package.json bin map names is written executable. update --urgent (update only; any other command is refused with the usage line): every version may carry a top-level orbRelease { severity security|critical|normal, advisory (one line), fixes (a semver range of earlier versions it fixes) } in its registry manifest (none, or an unknown severity word, is normal); a package is urgent when a stable, non-deprecated version newer than the installed one is security or critical, declares fixes, the installed version satisfies fixes (std-semver) and the version passes the language check above; only urgent packages are updated, to the newest such version, through the same integrity check, staging swap and lockfile write; a baseline package that is not installed is never urgent; stdout is only the applied `<severity> update:` lines; an urgent version that fails the language check (ORB_PACKAGE_INCOMPATIBLE or ORB_PACKAGE_NO_LANGUAGE), whose fixes range std-semver refuses (ORB_PACKAGE_RELEASE), or whose download, integrity or install fails is not applied: the installed version stays, the call answers 500 and stderr names each refusal and each confirmed-urgent advisory, the vulnerable version is never replaced by a half-written one. remove: a workspace-linked package is refused ORB_PACKAGE_LINKED and its link is never deleted; a behavior package whose prefix a .lolo or .orb file still imports (skipping node_modules, .git, dist, target) is refused `refusing to remove '<name>': N file(s) still import '<prefix>/':` plus the files, one per line; otherwise prints `removed <name>` per name. list: one row per installed orb package, sorted by name, columns package (34), version (12), kinds joined by `, ` (26), then `ok` or the problem, ` (linked)` for a workspace link, and ` [<prefix>/, N behaviors]` for a behavior package; --json prints the rows { package, kinds, version, path, link, prefix?, behaviors?, problem } as pretty JSON; with no rows the table is empty and stderr says `orb: nothing is installed in <dir> (no @almadar/core or @almadar/std); run `orb update --global` to set the language up`. Without --global the project directory is used, falling back to the user store when there is no project. Engines: `engines add|update` install the pinned runtime-verify/compiled engine packages at the exact pinned version (`installed <package>@<version> (entry <bin> → <path>)`; a wrong version fails `<package>: expected version <v>, got <w>`, a missing bin entry `<package>: installed package has no `<bin>` bin entry`, a package not found after install `<package>: install reported success but the package was not found`), update prints `updated <package>: <old> → <new>` or `<package>@<old> already up to date` or `installed <package>@<version>`, remove prints `removed <package>`, list prints rows engine (16), package (32), version (12), link (6), path, or `not installed — <hint>`, --json the rows { engine, package, version, entry, path, installed, link }.","orbitals":[{"name":"OrbPackagesSpec","id":"orb_1BQ97FT0NG0AR0CGQ9YC41QF5R","expects":[{"kind":"config","name":"registry","knob":{"nullable":false,"type":"string","default":"https://registry.npmjs.org"},"strict":true},{"kind":"config","name":"sourceOrigin","knob":{"nullable":false,"type":"string","default":"https://registry.npmjs.org"},"strict":true},{"kind":"config","name":"lockfile","knob":{"nullable":false,"type":"string","default":"orb.lock.json"},"strict":true},{"kind":"config","name":"baseline","knob":{"nullable":false,"type":"[BaselineEntry]","default":[{"name":["quote","\"\\u0040almadar/core\""],"registry":"https://registry.npmjs.org"},{"name":["quote","\"\\u0040almadar/std\""],"registry":"https://registry.npmjs.org"},{"name":["quote","\"\\u0040almadar/lolo-ar\""],"registry":"https://registry.npmjs.org"},{"name":["quote","\"\\u0040almadar/lolo-sl\""],"registry":"https://registry.npmjs.org"},{"name":["quote","\"\\u0040almadar/orb-shell-typescript\""],"registry":"https://registry.npmjs.org"}],"items":{"nullable":false,"type":"object","properties":{"name":{"nullable":false,"name":"name","type":"string","required":true},"registry":{"nullable":false,"name":"registry","type":"string","required":true}},"projectedFrom":{"type":"BaselineEntry"}}},"strict":true},{"kind":"entity","name":"PackageCall","shape":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"status","type":"number"},{"nullable":false,"name":"lock","type":"array","items":{"nullable":false,"type":"object","properties":{"name":{"nullable":false,"name":"name","type":"string","required":true},"version":{"nullable":false,"name":"version","type":"string","required":true},"url":{"nullable":false,"name":"url","type":"string","required":true},"integrity":{"nullable":false,"name":"integrity","type":"string","required":true}},"projectedFrom":{"type":"LockEntry"}}}],"persistence":"runtime","invariants":[[">=","@entity.status",0]],"strict":true},{"kind":"state","traitName":"OrbPackages","state":"ready","strict":true},{"kind":"state","traitName":"OrbPackages","state":"resolving","strict":true},{"kind":"state","traitName":"OrbPackages","state":"downloading","strict":true},{"kind":"state","traitName":"OrbPackages","state":"verifying","strict":true},{"kind":"state","traitName":"OrbPackages","state":"installing","strict":true},{"kind":"state","traitName":"OrbPackages","state":"listing","strict":true},{"kind":"state","traitName":"OrbPackages","state":"walking","strict":true},{"kind":"event","traitName":"OrbPackages","event":"PACKAGES_ANSWERED","payload":[{"nullable":false,"name":"status","type":"number","required":true},{"nullable":false,"name":"body","type":"string","required":true},{"nullable":false,"name":"stderr","type":"string"}],"strict":true},{"kind":"event","traitName":"OrbPackages","event":"PACKAGE_INSTALLED","payload":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"kinds","type":"[PackageKind]","values":["language","behaviors","language pack","shell","desktop","orb"],"required":true,"items":{"nullable":false,"name":"","type":"PackageKind","projectedFrom":{"type":"PackageKind"}}}],"strict":true},{"kind":"event","traitName":"OrbPackages","event":"PACKAGE_REFUSED","payload":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"problem","type":"string","required":true}],"strict":true},{"kind":"page","protocol":"boot","traits":["OrbPackages"],"strict":true}],"spec":true,"entity":{"name":"OrbPackagesSpec","id":"ent_6N079MAVECDQ68SRSRCTDXY4W2","fields":[]},"traits":[],"types":{"BaselineEntry":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"registry","type":"string","required":true}],"EngineRow":[{"nullable":false,"name":"engine","type":"string","required":true},{"nullable":false,"name":"package","type":"string","required":true},{"nullable":true,"name":"version","type":"string"},{"nullable":true,"name":"entry","type":"string"},{"nullable":true,"name":"path","type":"string"},{"nullable":false,"name":"installed","type":"boolean","required":true},{"nullable":false,"name":"link","type":"boolean","required":true}],"LockEntry":[{"nullable":false,"name":"name","type":"string","required":true},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"url","type":"string","required":true},{"nullable":false,"name":"integrity","type":"string","required":true}],"PackageKind":[{"nullable":false,"name":"","type":"string","values":["language","behaviors","language pack","shell","desktop","orb"]}],"PackageRow":[{"nullable":false,"name":"package","type":"string","required":true},{"nullable":false,"name":"kinds","type":"[string]","values":["language","behaviors","language pack","shell","desktop","orb"],"required":true,"items":{"nullable":false,"name":"","type":"PackageKind","projectedFrom":{"type":"PackageKind"}}},{"nullable":false,"name":"version","type":"string","required":true},{"nullable":false,"name":"path","type":"string","required":true},{"nullable":false,"name":"link","type":"boolean","required":true},{"nullable":true,"name":"prefix","type":"string"},{"nullable":true,"name":"behaviors","type":"number"},{"nullable":true,"name":"problem","type":"string"}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_6N079MAVECDQ68SRSRCTDXY4W2":{"id":"ent_6N079MAVECDQ68SRSRCTDXY4W2","kind":"entity","bakedName":"OrbPackagesSpec","curName":"OrbPackagesSpec","renames":[],"owner":"workspace"},"orb_1BQ97FT0NG0AR0CGQ9YC41QF5R":{"id":"orb_1BQ97FT0NG0AR0CGQ9YC41QF5R","kind":"orbital","bakedName":"OrbPackagesSpec","curName":"OrbPackagesSpec","renames":[],"owner":"workspace"}}}}
@@ -0,0 +1 @@
1
+ {"typeContractVersion":1,"name":"compose-pair","version":"1.0.0","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.","orbitals":[{"name":"ArenaOrbital","id":"orb_48AHC4TTS0DCGE4S60DP8DHGRP","uses":[{"from":"std/behaviors/std-score","as":"S"}],"entity":{"name":"Match","id":"ent_A0XE5P9CHTP8X6HSYSFRBSV05M","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"enemies","type":"number","default":3},{"nullable":false,"name":"score","type":"number","default":0},{"nullable":false,"name":"scoreBaseline","type":"number","default":0}]},"traits":[{"name":"Arena","id":"trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32","effectRow":[{"kind":"emit","resource":"WAVE"},{"kind":"set","resource":"@entity.enemies"}],"linkedEntity":"Match","linkedEntityId":"ent_A0XE5P9CHTP8X6HSYSFRBSV05M","entityRefIds":{"Match":"ent_A0XE5P9CHTP8X6HSYSFRBSV05M"},"emits":[{"event":"WAVE","eventId":"evt_3NP6BVGF3D7HPQRPEVB8X9BSNN","scope":"external","payloadSchema":[{"nullable":false,"name":"enemiesAlive","type":"number","required":true},{"nullable":false,"name":"playersAlive","type":"number","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_41EPVWQXNEYTQ93QHZNC3Q326R","name":"Initialize"},{"key":"HIT","id":"evt_WQ40AQKAANN5AYDAKKBKYJ6H92","name":"Hit","payloadSchema":[{"nullable":false,"name":"n","type":"number","required":true}],"listened":true},{"key":"WAVE","id":"evt_3NP6BVGF3D7HPQRPEVB8X9BSNN","name":"Wave","payloadSchema":[{"nullable":false,"name":"enemiesAlive","type":"number","required":true},{"nullable":false,"name":"playersAlive","type":"number","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_41EPVWQXNEYTQ93QHZNC3Q326R"},{"from":"idle","to":"idle","event":"HIT","eventId":"evt_WQ40AQKAANN5AYDAKKBKYJ6H92","effects":[["set","@entity.enemies",["-","@entity.enemies","@payload.n"]],["emit","WAVE",{"enemiesAlive":"@entity.enemies","playersAlive":1}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32","fingerprint":"b75413b5335211eac61f90cecf4397623c32881695fc7f1c932c89e3390dd018"}},{"ref":"S.traits.ScoreKeeper","id":"trt_2QW1DSA6KN39TJK5YP6GZ0W9TT","name":"Score","linkedEntity":"Match","linkedEntityId":"ent_A0XE5P9CHTP8X6HSYSFRBSV05M","config":{"running":{"type":"unknown","default":true,"wired":true},"pointsPerKill":{"type":"unknown","default":5,"wired":true},"startScore":{"type":"unknown","default":0,"wired":true},"initialEnemies":{"type":"unknown","default":3,"wired":true}},"listens":[{"event":"WAVE","triggers":"UNITS_CHANGED","source":{"kind":"trait","trait":"Arena"}}]}],"pages":[{"name":"ArenaStart","id":"pag_YDZTV6SAGKN89W9FQ08SHH0SZV","path":"","protocol":"boot","traits":[{"ref":"Arena","refId":"trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32"},{"ref":"Score","refId":"trt_2QW1DSA6KN39TJK5YP6GZ0W9TT"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_A0XE5P9CHTP8X6HSYSFRBSV05M":{"id":"ent_A0XE5P9CHTP8X6HSYSFRBSV05M","kind":"entity","bakedName":"Match","curName":"Match","renames":[],"owner":"workspace"},"evt_3NP6BVGF3D7HPQRPEVB8X9BSNN":{"id":"evt_3NP6BVGF3D7HPQRPEVB8X9BSNN","kind":"event","bakedName":"WAVE","curName":"WAVE","renames":[],"owner":"workspace","parent":"trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32"},"evt_41EPVWQXNEYTQ93QHZNC3Q326R":{"id":"evt_41EPVWQXNEYTQ93QHZNC3Q326R","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32"},"evt_WQ40AQKAANN5AYDAKKBKYJ6H92":{"id":"evt_WQ40AQKAANN5AYDAKKBKYJ6H92","kind":"event","bakedName":"HIT","curName":"HIT","renames":[],"owner":"workspace","parent":"trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32"},"orb_48AHC4TTS0DCGE4S60DP8DHGRP":{"id":"orb_48AHC4TTS0DCGE4S60DP8DHGRP","kind":"orbital","bakedName":"ArenaOrbital","curName":"ArenaOrbital","renames":[],"owner":"workspace"},"pag_YDZTV6SAGKN89W9FQ08SHH0SZV":{"id":"pag_YDZTV6SAGKN89W9FQ08SHH0SZV","kind":"page","bakedName":"ArenaStart","curName":"ArenaStart","renames":[],"owner":"workspace"},"trt_2QW1DSA6KN39TJK5YP6GZ0W9TT":{"id":"trt_2QW1DSA6KN39TJK5YP6GZ0W9TT","kind":"trait","bakedName":"Score","curName":"Score","renames":[],"owner":"workspace"},"trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32":{"id":"trt_FZPQNEKSNQWTVJ2ZETYZ0ACS32","kind":"trait","bakedName":"Arena","curName":"Arena","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"typeContractVersion":1,"name":"config-read","version":"1.0.0","orbitals":[{"name":"Fx","id":"orb_ZZSXC9SEZFQFQWTA830MQ6R0SJ","entity":{"name":"Rec","id":"ent_S71FCQBZP7ZV3N64N07A9BT85X","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"v","type":"number","default":0}]},"traits":[{"name":"T","id":"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK","effectRow":[{"kind":"emit","resource":"DONE"},{"kind":"set","resource":"@entity.v"}],"linkedEntity":"Rec","linkedEntityId":"ent_S71FCQBZP7ZV3N64N07A9BT85X","entityRefIds":{"Rec":"ent_S71FCQBZP7ZV3N64N07A9BT85X"},"emits":[{"event":"DONE","eventId":"evt_BZ2TNQ85PJ2V9527TC6DYN7CY3","scope":"external","payloadSchema":[{"nullable":false,"name":"v","type":"number","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_JTSWHVCFVC7XP1TQ7E53TW8VE0","name":"Initialize"},{"key":"GO","id":"evt_5YEJH4G7TD3X6K50239NQ2NPA6","name":"Go","payloadSchema":[{"nullable":false,"name":"a","type":"number","required":true}],"listened":true},{"key":"DONE","id":"evt_BZ2TNQ85PJ2V9527TC6DYN7CY3","name":"Done","payloadSchema":[{"nullable":false,"name":"v","type":"number","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_JTSWHVCFVC7XP1TQ7E53TW8VE0"},{"from":"idle","to":"idle","event":"GO","eventId":"evt_5YEJH4G7TD3X6K50239NQ2NPA6","guard":"@config.on","effects":[["set","@entity.v",["*","@payload.a","@config.factor"]],["emit","DONE",{"v":"@entity.v"}]]}]},"config":{"on":{"nullable":false,"type":"boolean","default":true},"factor":{"nullable":false,"type":"number","default":7}},"dispatch":"client","sourceDeclaration":{"traitId":"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK","fingerprint":"210ac8ab7752634cdb1e78c3bae7bc4c8c8e74263d89359d3eaeb8e942bb3cce"}}],"pages":[{"name":"FxStart","id":"pag_S1JAAMDFBKQNSSMWGTSCFTPRAF","path":"","protocol":"boot","traits":[{"ref":"T","refId":"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_S71FCQBZP7ZV3N64N07A9BT85X":{"id":"ent_S71FCQBZP7ZV3N64N07A9BT85X","kind":"entity","bakedName":"Rec","curName":"Rec","renames":[],"owner":"workspace"},"evt_5YEJH4G7TD3X6K50239NQ2NPA6":{"id":"evt_5YEJH4G7TD3X6K50239NQ2NPA6","kind":"event","bakedName":"GO","curName":"GO","renames":[],"owner":"workspace","parent":"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK"},"evt_BZ2TNQ85PJ2V9527TC6DYN7CY3":{"id":"evt_BZ2TNQ85PJ2V9527TC6DYN7CY3","kind":"event","bakedName":"DONE","curName":"DONE","renames":[],"owner":"workspace","parent":"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK"},"evt_JTSWHVCFVC7XP1TQ7E53TW8VE0":{"id":"evt_JTSWHVCFVC7XP1TQ7E53TW8VE0","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK"},"orb_ZZSXC9SEZFQFQWTA830MQ6R0SJ":{"id":"orb_ZZSXC9SEZFQFQWTA830MQ6R0SJ","kind":"orbital","bakedName":"Fx","curName":"Fx","renames":[],"owner":"workspace"},"pag_S1JAAMDFBKQNSSMWGTSCFTPRAF":{"id":"pag_S1JAAMDFBKQNSSMWGTSCFTPRAF","kind":"page","bakedName":"FxStart","curName":"FxStart","renames":[],"owner":"workspace"},"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK":{"id":"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK","kind":"trait","bakedName":"T","curName":"T","renames":[],"owner":"workspace"}}}}
1
+ {"typeContractVersion":1,"name":"config-read","version":"1.0.0","description":"Fixture for the native source renderers: a transition guarded by a boolean config knob that multiplies a payload number by a numeric config knob.","orbitals":[{"name":"Fx","id":"orb_ZZSXC9SEZFQFQWTA830MQ6R0SJ","entity":{"name":"Rec","id":"ent_S71FCQBZP7ZV3N64N07A9BT85X","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"v","type":"number","default":0}]},"traits":[{"name":"T","id":"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK","effectRow":[{"kind":"emit","resource":"DONE"},{"kind":"set","resource":"@entity.v"}],"linkedEntity":"Rec","linkedEntityId":"ent_S71FCQBZP7ZV3N64N07A9BT85X","entityRefIds":{"Rec":"ent_S71FCQBZP7ZV3N64N07A9BT85X"},"emits":[{"event":"DONE","eventId":"evt_BZ2TNQ85PJ2V9527TC6DYN7CY3","scope":"external","payloadSchema":[{"nullable":false,"name":"v","type":"number","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_JTSWHVCFVC7XP1TQ7E53TW8VE0","name":"Initialize"},{"key":"GO","id":"evt_5YEJH4G7TD3X6K50239NQ2NPA6","name":"Go","payloadSchema":[{"nullable":false,"name":"a","type":"number","required":true}],"listened":true},{"key":"DONE","id":"evt_BZ2TNQ85PJ2V9527TC6DYN7CY3","name":"Done","payloadSchema":[{"nullable":false,"name":"v","type":"number","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_JTSWHVCFVC7XP1TQ7E53TW8VE0"},{"from":"idle","to":"idle","event":"GO","eventId":"evt_5YEJH4G7TD3X6K50239NQ2NPA6","guard":"@config.on","effects":[["set","@entity.v",["*","@payload.a","@config.factor"]],["emit","DONE",{"v":"@entity.v"}]]}]},"config":{"on":{"nullable":false,"type":"boolean","default":true},"factor":{"nullable":false,"type":"number","default":7}},"dispatch":"client","sourceDeclaration":{"traitId":"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK","fingerprint":"210ac8ab7752634cdb1e78c3bae7bc4c8c8e74263d89359d3eaeb8e942bb3cce"}}],"pages":[{"name":"FxStart","id":"pag_S1JAAMDFBKQNSSMWGTSCFTPRAF","path":"","protocol":"boot","traits":[{"ref":"T","refId":"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_S71FCQBZP7ZV3N64N07A9BT85X":{"id":"ent_S71FCQBZP7ZV3N64N07A9BT85X","kind":"entity","bakedName":"Rec","curName":"Rec","renames":[],"owner":"workspace"},"evt_5YEJH4G7TD3X6K50239NQ2NPA6":{"id":"evt_5YEJH4G7TD3X6K50239NQ2NPA6","kind":"event","bakedName":"GO","curName":"GO","renames":[],"owner":"workspace","parent":"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK"},"evt_BZ2TNQ85PJ2V9527TC6DYN7CY3":{"id":"evt_BZ2TNQ85PJ2V9527TC6DYN7CY3","kind":"event","bakedName":"DONE","curName":"DONE","renames":[],"owner":"workspace","parent":"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK"},"evt_JTSWHVCFVC7XP1TQ7E53TW8VE0":{"id":"evt_JTSWHVCFVC7XP1TQ7E53TW8VE0","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK"},"orb_ZZSXC9SEZFQFQWTA830MQ6R0SJ":{"id":"orb_ZZSXC9SEZFQFQWTA830MQ6R0SJ","kind":"orbital","bakedName":"Fx","curName":"Fx","renames":[],"owner":"workspace"},"pag_S1JAAMDFBKQNSSMWGTSCFTPRAF":{"id":"pag_S1JAAMDFBKQNSSMWGTSCFTPRAF","kind":"page","bakedName":"FxStart","curName":"FxStart","renames":[],"owner":"workspace"},"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK":{"id":"trt_V5KRJSRVMKDT9GF7JNWMX3EPSK","kind":"trait","bakedName":"T","curName":"T","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"typeContractVersion":1,"name":"divide-default","version":"1.0.0","orbitals":[{"name":"Fx","id":"orb_B8DGPTSDXFPYQYGFYMS9AS30JZ","entity":{"name":"Rec","id":"ent_BW6SCNEE3G71R6SSAMTYTWFBR2","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"v","type":"number","default":0}]},"traits":[{"name":"T","id":"trt_0RV2Q41QK9VSMH32ACW79APD5Z","effectRow":[{"kind":"emit","resource":"DONE"},{"kind":"set","resource":"@entity.v"}],"linkedEntity":"Rec","linkedEntityId":"ent_BW6SCNEE3G71R6SSAMTYTWFBR2","entityRefIds":{"Rec":"ent_BW6SCNEE3G71R6SSAMTYTWFBR2"},"emits":[{"event":"DONE","eventId":"evt_RNV9A7MWQXEBYKDRPS8XPTME6V","scope":"external","payloadSchema":[{"nullable":false,"name":"v","type":"number","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_38F30C92QEHBQ42B9DFV0QGHM9","name":"Initialize"},{"key":"GO","id":"evt_7D4Y3JQ8R0MC03A57RSDEYSB2D","name":"Go","payloadSchema":[{"nullable":false,"name":"a","type":"number","required":true},{"nullable":false,"name":"b","type":"number","required":true}],"listened":true},{"key":"DONE","id":"evt_RNV9A7MWQXEBYKDRPS8XPTME6V","name":"Done","payloadSchema":[{"nullable":false,"name":"v","type":"number","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_38F30C92QEHBQ42B9DFV0QGHM9"},{"from":"idle","to":"idle","event":"GO","eventId":"evt_7D4Y3JQ8R0MC03A57RSDEYSB2D","effects":[["set","@entity.v",["default",["/","@payload.a","@payload.b"],0]],["emit","DONE",{"v":"@entity.v"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_0RV2Q41QK9VSMH32ACW79APD5Z","fingerprint":"13abaef6fa3be212982a414ba927d73c15bc497219358ff16eb359d0d76a52fa"}}],"pages":[{"name":"FxStart","id":"pag_9RMD3GD055G2JWWVPSXQ1SVY6P","path":"","protocol":"boot","traits":[{"ref":"T","refId":"trt_0RV2Q41QK9VSMH32ACW79APD5Z"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_BW6SCNEE3G71R6SSAMTYTWFBR2":{"id":"ent_BW6SCNEE3G71R6SSAMTYTWFBR2","kind":"entity","bakedName":"Rec","curName":"Rec","renames":[],"owner":"workspace"},"evt_38F30C92QEHBQ42B9DFV0QGHM9":{"id":"evt_38F30C92QEHBQ42B9DFV0QGHM9","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_0RV2Q41QK9VSMH32ACW79APD5Z"},"evt_7D4Y3JQ8R0MC03A57RSDEYSB2D":{"id":"evt_7D4Y3JQ8R0MC03A57RSDEYSB2D","kind":"event","bakedName":"GO","curName":"GO","renames":[],"owner":"workspace","parent":"trt_0RV2Q41QK9VSMH32ACW79APD5Z"},"evt_RNV9A7MWQXEBYKDRPS8XPTME6V":{"id":"evt_RNV9A7MWQXEBYKDRPS8XPTME6V","kind":"event","bakedName":"DONE","curName":"DONE","renames":[],"owner":"workspace","parent":"trt_0RV2Q41QK9VSMH32ACW79APD5Z"},"orb_B8DGPTSDXFPYQYGFYMS9AS30JZ":{"id":"orb_B8DGPTSDXFPYQYGFYMS9AS30JZ","kind":"orbital","bakedName":"Fx","curName":"Fx","renames":[],"owner":"workspace"},"pag_9RMD3GD055G2JWWVPSXQ1SVY6P":{"id":"pag_9RMD3GD055G2JWWVPSXQ1SVY6P","kind":"page","bakedName":"FxStart","curName":"FxStart","renames":[],"owner":"workspace"},"trt_0RV2Q41QK9VSMH32ACW79APD5Z":{"id":"trt_0RV2Q41QK9VSMH32ACW79APD5Z","kind":"trait","bakedName":"T","curName":"T","renames":[],"owner":"workspace"}}}}
1
+ {"typeContractVersion":1,"name":"divide-default","version":"1.0.0","description":"Fixture for the native source renderers: division of two payload numbers wrapped in default, so a divide by zero falls back to 0.","orbitals":[{"name":"Fx","id":"orb_B8DGPTSDXFPYQYGFYMS9AS30JZ","entity":{"name":"Rec","id":"ent_BW6SCNEE3G71R6SSAMTYTWFBR2","persistence":"runtime","fields":[{"nullable":false,"name":"id","type":"string","required":true},{"nullable":false,"name":"v","type":"number","default":0}]},"traits":[{"name":"T","id":"trt_0RV2Q41QK9VSMH32ACW79APD5Z","effectRow":[{"kind":"emit","resource":"DONE"},{"kind":"set","resource":"@entity.v"}],"linkedEntity":"Rec","linkedEntityId":"ent_BW6SCNEE3G71R6SSAMTYTWFBR2","entityRefIds":{"Rec":"ent_BW6SCNEE3G71R6SSAMTYTWFBR2"},"emits":[{"event":"DONE","eventId":"evt_RNV9A7MWQXEBYKDRPS8XPTME6V","scope":"external","payloadSchema":[{"nullable":false,"name":"v","type":"number","required":true}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_38F30C92QEHBQ42B9DFV0QGHM9","name":"Initialize"},{"key":"GO","id":"evt_7D4Y3JQ8R0MC03A57RSDEYSB2D","name":"Go","payloadSchema":[{"nullable":false,"name":"a","type":"number","required":true},{"nullable":false,"name":"b","type":"number","required":true}],"listened":true},{"key":"DONE","id":"evt_RNV9A7MWQXEBYKDRPS8XPTME6V","name":"Done","payloadSchema":[{"nullable":false,"name":"v","type":"number","required":true}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_38F30C92QEHBQ42B9DFV0QGHM9"},{"from":"idle","to":"idle","event":"GO","eventId":"evt_7D4Y3JQ8R0MC03A57RSDEYSB2D","effects":[["set","@entity.v",["default",["/","@payload.a","@payload.b"],0]],["emit","DONE",{"v":"@entity.v"}]]}]},"dispatch":"client","sourceDeclaration":{"traitId":"trt_0RV2Q41QK9VSMH32ACW79APD5Z","fingerprint":"13abaef6fa3be212982a414ba927d73c15bc497219358ff16eb359d0d76a52fa"}}],"pages":[{"name":"FxStart","id":"pag_9RMD3GD055G2JWWVPSXQ1SVY6P","path":"","protocol":"boot","traits":[{"ref":"T","refId":"trt_0RV2Q41QK9VSMH32ACW79APD5Z"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_BW6SCNEE3G71R6SSAMTYTWFBR2":{"id":"ent_BW6SCNEE3G71R6SSAMTYTWFBR2","kind":"entity","bakedName":"Rec","curName":"Rec","renames":[],"owner":"workspace"},"evt_38F30C92QEHBQ42B9DFV0QGHM9":{"id":"evt_38F30C92QEHBQ42B9DFV0QGHM9","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_0RV2Q41QK9VSMH32ACW79APD5Z"},"evt_7D4Y3JQ8R0MC03A57RSDEYSB2D":{"id":"evt_7D4Y3JQ8R0MC03A57RSDEYSB2D","kind":"event","bakedName":"GO","curName":"GO","renames":[],"owner":"workspace","parent":"trt_0RV2Q41QK9VSMH32ACW79APD5Z"},"evt_RNV9A7MWQXEBYKDRPS8XPTME6V":{"id":"evt_RNV9A7MWQXEBYKDRPS8XPTME6V","kind":"event","bakedName":"DONE","curName":"DONE","renames":[],"owner":"workspace","parent":"trt_0RV2Q41QK9VSMH32ACW79APD5Z"},"orb_B8DGPTSDXFPYQYGFYMS9AS30JZ":{"id":"orb_B8DGPTSDXFPYQYGFYMS9AS30JZ","kind":"orbital","bakedName":"Fx","curName":"Fx","renames":[],"owner":"workspace"},"pag_9RMD3GD055G2JWWVPSXQ1SVY6P":{"id":"pag_9RMD3GD055G2JWWVPSXQ1SVY6P","kind":"page","bakedName":"FxStart","curName":"FxStart","renames":[],"owner":"workspace"},"trt_0RV2Q41QK9VSMH32ACW79APD5Z":{"id":"trt_0RV2Q41QK9VSMH32ACW79APD5Z","kind":"trait","bakedName":"T","curName":"T","renames":[],"owner":"workspace"}}}}