@despia-native/kernel 0.0.0-coming-soon.0 → 0.3.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 (661) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +1414 -0
  3. package/README.md +16 -1
  4. package/dist/.dsx-build-stamp.json +7 -0
  5. package/dist/api-cohort.d.ts +27 -0
  6. package/dist/api-cohort.d.ts.map +1 -0
  7. package/dist/api-cohort.js +94 -0
  8. package/dist/api-cohort.js.map +1 -0
  9. package/dist/api.d.ts +454 -0
  10. package/dist/api.d.ts.map +1 -0
  11. package/dist/api.js +2442 -0
  12. package/dist/api.js.map +1 -0
  13. package/dist/app-consts.d.ts +10 -0
  14. package/dist/app-consts.d.ts.map +1 -0
  15. package/dist/app-consts.js +39 -0
  16. package/dist/app-consts.js.map +1 -0
  17. package/dist/app-update.d.ts +12 -0
  18. package/dist/app-update.d.ts.map +1 -0
  19. package/dist/app-update.js +32 -0
  20. package/dist/app-update.js.map +1 -0
  21. package/dist/aria.d.ts +152 -0
  22. package/dist/aria.d.ts.map +1 -0
  23. package/dist/aria.js +524 -0
  24. package/dist/aria.js.map +1 -0
  25. package/dist/audio-core.d.ts +260 -0
  26. package/dist/audio-core.d.ts.map +1 -0
  27. package/dist/audio-core.js +1440 -0
  28. package/dist/audio-core.js.map +1 -0
  29. package/dist/audio-edit.d.ts +100 -0
  30. package/dist/audio-edit.d.ts.map +1 -0
  31. package/dist/audio-edit.js +489 -0
  32. package/dist/audio-edit.js.map +1 -0
  33. package/dist/audio-mix.d.ts +84 -0
  34. package/dist/audio-mix.d.ts.map +1 -0
  35. package/dist/audio-mix.js +393 -0
  36. package/dist/audio-mix.js.map +1 -0
  37. package/dist/auth-proof.d.ts +145 -0
  38. package/dist/auth-proof.d.ts.map +1 -0
  39. package/dist/auth-proof.js +644 -0
  40. package/dist/auth-proof.js.map +1 -0
  41. package/dist/availability-explain.d.ts +3 -0
  42. package/dist/availability-explain.d.ts.map +1 -0
  43. package/dist/availability-explain.js +322 -0
  44. package/dist/availability-explain.js.map +1 -0
  45. package/dist/availability.d.ts +246 -0
  46. package/dist/availability.d.ts.map +1 -0
  47. package/dist/availability.js +615 -0
  48. package/dist/availability.js.map +1 -0
  49. package/dist/background.d.ts +116 -0
  50. package/dist/background.d.ts.map +1 -0
  51. package/dist/background.js +235 -0
  52. package/dist/background.js.map +1 -0
  53. package/dist/boot-tables-flag.d.ts +2 -0
  54. package/dist/boot-tables-flag.d.ts.map +1 -0
  55. package/dist/boot-tables-flag.js +16 -0
  56. package/dist/boot-tables-flag.js.map +1 -0
  57. package/dist/boot-tables.d.ts +40 -0
  58. package/dist/boot-tables.d.ts.map +1 -0
  59. package/dist/boot-tables.js +102 -0
  60. package/dist/boot-tables.js.map +1 -0
  61. package/dist/border-edges.d.ts +5 -0
  62. package/dist/border-edges.d.ts.map +1 -0
  63. package/dist/border-edges.js +47 -0
  64. package/dist/border-edges.js.map +1 -0
  65. package/dist/bus.d.ts +1203 -0
  66. package/dist/bus.d.ts.map +1 -0
  67. package/dist/bus.js +2647 -0
  68. package/dist/bus.js.map +1 -0
  69. package/dist/calendar-core.d.ts +143 -0
  70. package/dist/calendar-core.d.ts.map +1 -0
  71. package/dist/calendar-core.js +372 -0
  72. package/dist/calendar-core.js.map +1 -0
  73. package/dist/call-value.d.ts +16 -0
  74. package/dist/call-value.d.ts.map +1 -0
  75. package/dist/call-value.js +54 -0
  76. package/dist/call-value.js.map +1 -0
  77. package/dist/camera-core.d.ts +222 -0
  78. package/dist/camera-core.d.ts.map +1 -0
  79. package/dist/camera-core.js +980 -0
  80. package/dist/camera-core.js.map +1 -0
  81. package/dist/canvas-core.d.ts +404 -0
  82. package/dist/canvas-core.d.ts.map +1 -0
  83. package/dist/canvas-core.js +2186 -0
  84. package/dist/canvas-core.js.map +1 -0
  85. package/dist/capture-core.d.ts +74 -0
  86. package/dist/capture-core.d.ts.map +1 -0
  87. package/dist/capture-core.js +158 -0
  88. package/dist/capture-core.js.map +1 -0
  89. package/dist/compile/codegen.d.ts +146 -0
  90. package/dist/compile/codegen.d.ts.map +1 -0
  91. package/dist/compile/codegen.js +1949 -0
  92. package/dist/compile/codegen.js.map +1 -0
  93. package/dist/compile/jstier.d.ts +44 -0
  94. package/dist/compile/jstier.d.ts.map +1 -0
  95. package/dist/compile/jstier.js +181 -0
  96. package/dist/compile/jstier.js.map +1 -0
  97. package/dist/compile/tier-door.d.ts +41 -0
  98. package/dist/compile/tier-door.d.ts.map +1 -0
  99. package/dist/compile/tier-door.js +167 -0
  100. package/dist/compile/tier-door.js.map +1 -0
  101. package/dist/compile/tier-realm.d.ts +49 -0
  102. package/dist/compile/tier-realm.d.ts.map +1 -0
  103. package/dist/compile/tier-realm.js +368 -0
  104. package/dist/compile/tier-realm.js.map +1 -0
  105. package/dist/compile/tier.d.ts +23 -0
  106. package/dist/compile/tier.d.ts.map +1 -0
  107. package/dist/compile/tier.js +157 -0
  108. package/dist/compile/tier.js.map +1 -0
  109. package/dist/compose-core.d.ts +86 -0
  110. package/dist/compose-core.d.ts.map +1 -0
  111. package/dist/compose-core.js +112 -0
  112. package/dist/compose-core.js.map +1 -0
  113. package/dist/config-validate.d.ts +31 -0
  114. package/dist/config-validate.d.ts.map +1 -0
  115. package/dist/config-validate.js +147 -0
  116. package/dist/config-validate.js.map +1 -0
  117. package/dist/config-values.d.ts +106 -0
  118. package/dist/config-values.d.ts.map +1 -0
  119. package/dist/config-values.js +340 -0
  120. package/dist/config-values.js.map +1 -0
  121. package/dist/contacts-core.d.ts +127 -0
  122. package/dist/contacts-core.d.ts.map +1 -0
  123. package/dist/contacts-core.js +211 -0
  124. package/dist/contacts-core.js.map +1 -0
  125. package/dist/content-transition.d.ts +58 -0
  126. package/dist/content-transition.d.ts.map +1 -0
  127. package/dist/content-transition.js +94 -0
  128. package/dist/content-transition.js.map +1 -0
  129. package/dist/controls-core.d.ts +227 -0
  130. package/dist/controls-core.d.ts.map +1 -0
  131. package/dist/controls-core.js +652 -0
  132. package/dist/controls-core.js.map +1 -0
  133. package/dist/cookies.d.ts +78 -0
  134. package/dist/cookies.d.ts.map +1 -0
  135. package/dist/cookies.js +265 -0
  136. package/dist/cookies.js.map +1 -0
  137. package/dist/corner-shape-core.d.ts +69 -0
  138. package/dist/corner-shape-core.d.ts.map +1 -0
  139. package/dist/corner-shape-core.js +261 -0
  140. package/dist/corner-shape-core.js.map +1 -0
  141. package/dist/crypto-core.d.ts +57 -0
  142. package/dist/crypto-core.d.ts.map +1 -0
  143. package/dist/crypto-core.js +128 -0
  144. package/dist/crypto-core.js.map +1 -0
  145. package/dist/dataviz.d.ts +436 -0
  146. package/dist/dataviz.d.ts.map +1 -0
  147. package/dist/dataviz.js +956 -0
  148. package/dist/dataviz.js.map +1 -0
  149. package/dist/debug.d.ts +293 -0
  150. package/dist/debug.d.ts.map +1 -0
  151. package/dist/debug.js +767 -0
  152. package/dist/debug.js.map +1 -0
  153. package/dist/device-ownership.d.ts +50 -0
  154. package/dist/device-ownership.d.ts.map +1 -0
  155. package/dist/device-ownership.js +105 -0
  156. package/dist/device-ownership.js.map +1 -0
  157. package/dist/effects.d.ts +86 -0
  158. package/dist/effects.d.ts.map +1 -0
  159. package/dist/effects.js +98 -0
  160. package/dist/effects.js.map +1 -0
  161. package/dist/element.d.ts +108 -0
  162. package/dist/element.d.ts.map +1 -0
  163. package/dist/element.js +63 -0
  164. package/dist/element.js.map +1 -0
  165. package/dist/file-watch.d.ts +16 -0
  166. package/dist/file-watch.d.ts.map +1 -0
  167. package/dist/file-watch.js +49 -0
  168. package/dist/file-watch.js.map +1 -0
  169. package/dist/filepaths.d.ts +72 -0
  170. package/dist/filepaths.d.ts.map +1 -0
  171. package/dist/filepaths.js +271 -0
  172. package/dist/filepaths.js.map +1 -0
  173. package/dist/film.d.ts +264 -0
  174. package/dist/film.d.ts.map +1 -0
  175. package/dist/film.js +313 -0
  176. package/dist/film.js.map +1 -0
  177. package/dist/fonts.d.ts +66 -0
  178. package/dist/fonts.d.ts.map +1 -0
  179. package/dist/fonts.js +135 -0
  180. package/dist/fonts.js.map +1 -0
  181. package/dist/forms.d.ts +191 -0
  182. package/dist/forms.d.ts.map +1 -0
  183. package/dist/forms.js +663 -0
  184. package/dist/forms.js.map +1 -0
  185. package/dist/geo.d.ts +289 -0
  186. package/dist/geo.d.ts.map +1 -0
  187. package/dist/geo.js +460 -0
  188. package/dist/geo.js.map +1 -0
  189. package/dist/handler-announce.d.ts +46 -0
  190. package/dist/handler-announce.d.ts.map +1 -0
  191. package/dist/handler-announce.js +96 -0
  192. package/dist/handler-announce.js.map +1 -0
  193. package/dist/handoff.d.ts +71 -0
  194. package/dist/handoff.d.ts.map +1 -0
  195. package/dist/handoff.js +250 -0
  196. package/dist/handoff.js.map +1 -0
  197. package/dist/identity-durability.d.ts +76 -0
  198. package/dist/identity-durability.d.ts.map +1 -0
  199. package/dist/identity-durability.js +150 -0
  200. package/dist/identity-durability.js.map +1 -0
  201. package/dist/image-core.d.ts +240 -0
  202. package/dist/image-core.d.ts.map +1 -0
  203. package/dist/image-core.js +618 -0
  204. package/dist/image-core.js.map +1 -0
  205. package/dist/image-schemes.d.ts +10 -0
  206. package/dist/image-schemes.d.ts.map +1 -0
  207. package/dist/image-schemes.js +28 -0
  208. package/dist/image-schemes.js.map +1 -0
  209. package/dist/index.d.ts +143 -0
  210. package/dist/index.d.ts.map +1 -0
  211. package/dist/index.js +299 -0
  212. package/dist/index.js.map +1 -0
  213. package/dist/ink-core.d.ts +53 -0
  214. package/dist/ink-core.d.ts.map +1 -0
  215. package/dist/ink-core.js +119 -0
  216. package/dist/ink-core.js.map +1 -0
  217. package/dist/input.d.ts +148 -0
  218. package/dist/input.d.ts.map +1 -0
  219. package/dist/input.js +358 -0
  220. package/dist/input.js.map +1 -0
  221. package/dist/integrity.d.ts +63 -0
  222. package/dist/integrity.d.ts.map +1 -0
  223. package/dist/integrity.js +150 -0
  224. package/dist/integrity.js.map +1 -0
  225. package/dist/intents.d.ts +95 -0
  226. package/dist/intents.d.ts.map +1 -0
  227. package/dist/intents.js +282 -0
  228. package/dist/intents.js.map +1 -0
  229. package/dist/interpolate-core.d.ts +37 -0
  230. package/dist/interpolate-core.d.ts.map +1 -0
  231. package/dist/interpolate-core.js +443 -0
  232. package/dist/interpolate-core.js.map +1 -0
  233. package/dist/jse/color.d.ts +12 -0
  234. package/dist/jse/color.d.ts.map +1 -0
  235. package/dist/jse/color.js +196 -0
  236. package/dist/jse/color.js.map +1 -0
  237. package/dist/jse/core.d.ts +54 -0
  238. package/dist/jse/core.d.ts.map +1 -0
  239. package/dist/jse/core.js +1519 -0
  240. package/dist/jse/core.js.map +1 -0
  241. package/dist/jse/dispatch.d.ts +28 -0
  242. package/dist/jse/dispatch.d.ts.map +1 -0
  243. package/dist/jse/dispatch.js +116 -0
  244. package/dist/jse/dispatch.js.map +1 -0
  245. package/dist/jse/highlight-grammar.d.ts +15 -0
  246. package/dist/jse/highlight-grammar.d.ts.map +1 -0
  247. package/dist/jse/highlight-grammar.js +161 -0
  248. package/dist/jse/highlight-grammar.js.map +1 -0
  249. package/dist/jse/highlight-grammars.generated.d.ts +2 -0
  250. package/dist/jse/highlight-grammars.generated.d.ts.map +1 -0
  251. package/dist/jse/highlight-grammars.generated.js +4 -0
  252. package/dist/jse/highlight-grammars.generated.js.map +1 -0
  253. package/dist/jse/highlight.d.ts +37 -0
  254. package/dist/jse/highlight.d.ts.map +1 -0
  255. package/dist/jse/highlight.js +323 -0
  256. package/dist/jse/highlight.js.map +1 -0
  257. package/dist/jse/jse.d.ts +674 -0
  258. package/dist/jse/jse.d.ts.map +1 -0
  259. package/dist/jse/jse.js +5841 -0
  260. package/dist/jse/jse.js.map +1 -0
  261. package/dist/jse/pathmatch.d.ts +10 -0
  262. package/dist/jse/pathmatch.d.ts.map +1 -0
  263. package/dist/jse/pathmatch.js +73 -0
  264. package/dist/jse/pathmatch.js.map +1 -0
  265. package/dist/jse/regex.d.ts +33 -0
  266. package/dist/jse/regex.d.ts.map +1 -0
  267. package/dist/jse/regex.js +375 -0
  268. package/dist/jse/regex.js.map +1 -0
  269. package/dist/jse/stdlib.d.ts +8 -0
  270. package/dist/jse/stdlib.d.ts.map +1 -0
  271. package/dist/jse/stdlib.js +765 -0
  272. package/dist/jse/stdlib.js.map +1 -0
  273. package/dist/jse/tokens.d.ts +102 -0
  274. package/dist/jse/tokens.d.ts.map +1 -0
  275. package/dist/jse/tokens.js +982 -0
  276. package/dist/jse/tokens.js.map +1 -0
  277. package/dist/jse/values.d.ts +206 -0
  278. package/dist/jse/values.d.ts.map +1 -0
  279. package/dist/jse/values.js +846 -0
  280. package/dist/jse/values.js.map +1 -0
  281. package/dist/keyboard.d.ts +196 -0
  282. package/dist/keyboard.d.ts.map +1 -0
  283. package/dist/keyboard.js +186 -0
  284. package/dist/keyboard.js.map +1 -0
  285. package/dist/label-choices.d.ts +3 -0
  286. package/dist/label-choices.d.ts.map +1 -0
  287. package/dist/label-choices.js +168 -0
  288. package/dist/label-choices.js.map +1 -0
  289. package/dist/language.d.ts +33 -0
  290. package/dist/language.d.ts.map +1 -0
  291. package/dist/language.js +50 -0
  292. package/dist/language.js.map +1 -0
  293. package/dist/length-units.d.ts +30 -0
  294. package/dist/length-units.d.ts.map +1 -0
  295. package/dist/length-units.js +83 -0
  296. package/dist/length-units.js.map +1 -0
  297. package/dist/lightsensor.d.ts +48 -0
  298. package/dist/lightsensor.d.ts.map +1 -0
  299. package/dist/lightsensor.js +97 -0
  300. package/dist/lightsensor.js.map +1 -0
  301. package/dist/link-refresh.d.ts +27 -0
  302. package/dist/link-refresh.d.ts.map +1 -0
  303. package/dist/link-refresh.js +166 -0
  304. package/dist/link-refresh.js.map +1 -0
  305. package/dist/link.d.ts +57 -0
  306. package/dist/link.d.ts.map +1 -0
  307. package/dist/link.js +333 -0
  308. package/dist/link.js.map +1 -0
  309. package/dist/linkpreview.d.ts +114 -0
  310. package/dist/linkpreview.d.ts.map +1 -0
  311. package/dist/linkpreview.js +439 -0
  312. package/dist/linkpreview.js.map +1 -0
  313. package/dist/list-presence.d.ts +32 -0
  314. package/dist/list-presence.d.ts.map +1 -0
  315. package/dist/list-presence.js +48 -0
  316. package/dist/list-presence.js.map +1 -0
  317. package/dist/live-stream.d.ts +27 -0
  318. package/dist/live-stream.d.ts.map +1 -0
  319. package/dist/live-stream.js +274 -0
  320. package/dist/live-stream.js.map +1 -0
  321. package/dist/livelogs.d.ts +134 -0
  322. package/dist/livelogs.d.ts.map +1 -0
  323. package/dist/livelogs.js +409 -0
  324. package/dist/livelogs.js.map +1 -0
  325. package/dist/logs.d.ts +80 -0
  326. package/dist/logs.d.ts.map +1 -0
  327. package/dist/logs.js +206 -0
  328. package/dist/logs.js.map +1 -0
  329. package/dist/mcp/apps.d.ts +82 -0
  330. package/dist/mcp/apps.d.ts.map +1 -0
  331. package/dist/mcp/apps.js +219 -0
  332. package/dist/mcp/apps.js.map +1 -0
  333. package/dist/mcp/entities.d.ts +25 -0
  334. package/dist/mcp/entities.d.ts.map +1 -0
  335. package/dist/mcp/entities.js +71 -0
  336. package/dist/mcp/entities.js.map +1 -0
  337. package/dist/mcp/result.d.ts +73 -0
  338. package/dist/mcp/result.d.ts.map +1 -0
  339. package/dist/mcp/result.js +119 -0
  340. package/dist/mcp/result.js.map +1 -0
  341. package/dist/mcp/webmcp.d.ts +162 -0
  342. package/dist/mcp/webmcp.d.ts.map +1 -0
  343. package/dist/mcp/webmcp.js +214 -0
  344. package/dist/mcp/webmcp.js.map +1 -0
  345. package/dist/mcp.d.ts +5 -0
  346. package/dist/mcp.d.ts.map +1 -0
  347. package/dist/mcp.js +14 -0
  348. package/dist/mcp.js.map +1 -0
  349. package/dist/media-core.d.ts +191 -0
  350. package/dist/media-core.d.ts.map +1 -0
  351. package/dist/media-core.js +446 -0
  352. package/dist/media-core.js.map +1 -0
  353. package/dist/media-timeline-core.d.ts +94 -0
  354. package/dist/media-timeline-core.d.ts.map +1 -0
  355. package/dist/media-timeline-core.js +620 -0
  356. package/dist/media-timeline-core.js.map +1 -0
  357. package/dist/message.d.ts +42 -0
  358. package/dist/message.d.ts.map +1 -0
  359. package/dist/message.js +582 -0
  360. package/dist/message.js.map +1 -0
  361. package/dist/missing-element.d.ts +29 -0
  362. package/dist/missing-element.d.ts.map +1 -0
  363. package/dist/missing-element.js +76 -0
  364. package/dist/missing-element.js.map +1 -0
  365. package/dist/motion-core.d.ts +160 -0
  366. package/dist/motion-core.d.ts.map +1 -0
  367. package/dist/motion-core.js +752 -0
  368. package/dist/motion-core.js.map +1 -0
  369. package/dist/motion-pose.d.ts +65 -0
  370. package/dist/motion-pose.d.ts.map +1 -0
  371. package/dist/motion-pose.js +143 -0
  372. package/dist/motion-pose.js.map +1 -0
  373. package/dist/motion.d.ts +132 -0
  374. package/dist/motion.d.ts.map +1 -0
  375. package/dist/motion.js +260 -0
  376. package/dist/motion.js.map +1 -0
  377. package/dist/mount-core.d.ts +203 -0
  378. package/dist/mount-core.d.ts.map +1 -0
  379. package/dist/mount-core.js +437 -0
  380. package/dist/mount-core.js.map +1 -0
  381. package/dist/net-core.d.ts +110 -0
  382. package/dist/net-core.d.ts.map +1 -0
  383. package/dist/net-core.js +225 -0
  384. package/dist/net-core.js.map +1 -0
  385. package/dist/notify.d.ts +399 -0
  386. package/dist/notify.d.ts.map +1 -0
  387. package/dist/notify.js +964 -0
  388. package/dist/notify.js.map +1 -0
  389. package/dist/orientation-binding.d.ts +39 -0
  390. package/dist/orientation-binding.d.ts.map +1 -0
  391. package/dist/orientation-binding.js +64 -0
  392. package/dist/orientation-binding.js.map +1 -0
  393. package/dist/orientation.d.ts +55 -0
  394. package/dist/orientation.d.ts.map +1 -0
  395. package/dist/orientation.js +89 -0
  396. package/dist/orientation.js.map +1 -0
  397. package/dist/ota.d.ts +52 -0
  398. package/dist/ota.d.ts.map +1 -0
  399. package/dist/ota.js +122 -0
  400. package/dist/ota.js.map +1 -0
  401. package/dist/passkeys.d.ts +91 -0
  402. package/dist/passkeys.d.ts.map +1 -0
  403. package/dist/passkeys.js +307 -0
  404. package/dist/passkeys.js.map +1 -0
  405. package/dist/payment.d.ts +85 -0
  406. package/dist/payment.d.ts.map +1 -0
  407. package/dist/payment.js +270 -0
  408. package/dist/payment.js.map +1 -0
  409. package/dist/pending-presenter.d.ts +31 -0
  410. package/dist/pending-presenter.d.ts.map +1 -0
  411. package/dist/pending-presenter.js +119 -0
  412. package/dist/pending-presenter.js.map +1 -0
  413. package/dist/permission-core.d.ts +59 -0
  414. package/dist/permission-core.d.ts.map +1 -0
  415. package/dist/permission-core.js +102 -0
  416. package/dist/permission-core.js.map +1 -0
  417. package/dist/persist.d.ts +169 -0
  418. package/dist/persist.d.ts.map +1 -0
  419. package/dist/persist.js +361 -0
  420. package/dist/persist.js.map +1 -0
  421. package/dist/phase-plan.d.ts +114 -0
  422. package/dist/phase-plan.d.ts.map +1 -0
  423. package/dist/phase-plan.js +837 -0
  424. package/dist/phase-plan.js.map +1 -0
  425. package/dist/playback-core.d.ts +64 -0
  426. package/dist/playback-core.d.ts.map +1 -0
  427. package/dist/playback-core.js +176 -0
  428. package/dist/playback-core.js.map +1 -0
  429. package/dist/player-sources.d.ts +12 -0
  430. package/dist/player-sources.d.ts.map +1 -0
  431. package/dist/player-sources.js +44 -0
  432. package/dist/player-sources.js.map +1 -0
  433. package/dist/proxy-denylist.d.ts +11 -0
  434. package/dist/proxy-denylist.d.ts.map +1 -0
  435. package/dist/proxy-denylist.js +44 -0
  436. package/dist/proxy-denylist.js.map +1 -0
  437. package/dist/public-config.d.ts +20 -0
  438. package/dist/public-config.d.ts.map +1 -0
  439. package/dist/public-config.js +109 -0
  440. package/dist/public-config.js.map +1 -0
  441. package/dist/qoe-core.d.ts +72 -0
  442. package/dist/qoe-core.d.ts.map +1 -0
  443. package/dist/qoe-core.js +113 -0
  444. package/dist/qoe-core.js.map +1 -0
  445. package/dist/reactive-request.d.ts +80 -0
  446. package/dist/reactive-request.d.ts.map +1 -0
  447. package/dist/reactive-request.js +192 -0
  448. package/dist/reactive-request.js.map +1 -0
  449. package/dist/read-cache.d.ts +129 -0
  450. package/dist/read-cache.d.ts.map +1 -0
  451. package/dist/read-cache.js +566 -0
  452. package/dist/read-cache.js.map +1 -0
  453. package/dist/recorder-core.d.ts +57 -0
  454. package/dist/recorder-core.d.ts.map +1 -0
  455. package/dist/recorder-core.js +136 -0
  456. package/dist/recorder-core.js.map +1 -0
  457. package/dist/ref.d.ts +41 -0
  458. package/dist/ref.d.ts.map +1 -0
  459. package/dist/ref.js +98 -0
  460. package/dist/ref.js.map +1 -0
  461. package/dist/refusal.d.ts +82 -0
  462. package/dist/refusal.d.ts.map +1 -0
  463. package/dist/refusal.js +218 -0
  464. package/dist/refusal.js.map +1 -0
  465. package/dist/region-insets.d.ts +61 -0
  466. package/dist/region-insets.d.ts.map +1 -0
  467. package/dist/region-insets.js +67 -0
  468. package/dist/region-insets.js.map +1 -0
  469. package/dist/rive-core.d.ts +323 -0
  470. package/dist/rive-core.d.ts.map +1 -0
  471. package/dist/rive-core.js +677 -0
  472. package/dist/rive-core.js.map +1 -0
  473. package/dist/runner.d.ts +595 -0
  474. package/dist/runner.d.ts.map +1 -0
  475. package/dist/runner.js +4094 -0
  476. package/dist/runner.js.map +1 -0
  477. package/dist/scene/a11y.d.ts +11 -0
  478. package/dist/scene/a11y.d.ts.map +1 -0
  479. package/dist/scene/a11y.js +67 -0
  480. package/dist/scene/a11y.js.map +1 -0
  481. package/dist/scene/anim.d.ts +149 -0
  482. package/dist/scene/anim.d.ts.map +1 -0
  483. package/dist/scene/anim.js +396 -0
  484. package/dist/scene/anim.js.map +1 -0
  485. package/dist/scene/bind.d.ts +33 -0
  486. package/dist/scene/bind.d.ts.map +1 -0
  487. package/dist/scene/bind.js +66 -0
  488. package/dist/scene/bind.js.map +1 -0
  489. package/dist/scene/collide.d.ts +56 -0
  490. package/dist/scene/collide.d.ts.map +1 -0
  491. package/dist/scene/collide.js +146 -0
  492. package/dist/scene/collide.js.map +1 -0
  493. package/dist/scene/frame.d.ts +22 -0
  494. package/dist/scene/frame.d.ts.map +1 -0
  495. package/dist/scene/frame.js +57 -0
  496. package/dist/scene/frame.js.map +1 -0
  497. package/dist/scene/gltf.d.ts +79 -0
  498. package/dist/scene/gltf.d.ts.map +1 -0
  499. package/dist/scene/gltf.js +409 -0
  500. package/dist/scene/gltf.js.map +1 -0
  501. package/dist/scene/ir.d.ts +293 -0
  502. package/dist/scene/ir.d.ts.map +1 -0
  503. package/dist/scene/ir.js +692 -0
  504. package/dist/scene/ir.js.map +1 -0
  505. package/dist/scene/math.d.ts +50 -0
  506. package/dist/scene/math.d.ts.map +1 -0
  507. package/dist/scene/math.js +180 -0
  508. package/dist/scene/math.js.map +1 -0
  509. package/dist/scene/orbit.d.ts +19 -0
  510. package/dist/scene/orbit.d.ts.map +1 -0
  511. package/dist/scene/orbit.js +60 -0
  512. package/dist/scene/orbit.js.map +1 -0
  513. package/dist/scene/physics.d.ts +228 -0
  514. package/dist/scene/physics.d.ts.map +1 -0
  515. package/dist/scene/physics.js +1500 -0
  516. package/dist/scene/physics.js.map +1 -0
  517. package/dist/scene/registry.d.ts +85 -0
  518. package/dist/scene/registry.d.ts.map +1 -0
  519. package/dist/scene/registry.js +75 -0
  520. package/dist/scene/registry.js.map +1 -0
  521. package/dist/scene/skin.d.ts +82 -0
  522. package/dist/scene/skin.d.ts.map +1 -0
  523. package/dist/scene/skin.js +351 -0
  524. package/dist/scene/skin.js.map +1 -0
  525. package/dist/scene/sprite.d.ts +36 -0
  526. package/dist/scene/sprite.d.ts.map +1 -0
  527. package/dist/scene/sprite.js +107 -0
  528. package/dist/scene/sprite.js.map +1 -0
  529. package/dist/scene/viewer.d.ts +96 -0
  530. package/dist/scene/viewer.d.ts.map +1 -0
  531. package/dist/scene/viewer.js +235 -0
  532. package/dist/scene/viewer.js.map +1 -0
  533. package/dist/scoped-slots.d.ts +9 -0
  534. package/dist/scoped-slots.d.ts.map +1 -0
  535. package/dist/scoped-slots.js +42 -0
  536. package/dist/scoped-slots.js.map +1 -0
  537. package/dist/screen.d.ts +109 -0
  538. package/dist/screen.d.ts.map +1 -0
  539. package/dist/screen.js +309 -0
  540. package/dist/screen.js.map +1 -0
  541. package/dist/scroll.d.ts +525 -0
  542. package/dist/scroll.d.ts.map +1 -0
  543. package/dist/scroll.js +1226 -0
  544. package/dist/scroll.js.map +1 -0
  545. package/dist/settings-plane.d.ts +58 -0
  546. package/dist/settings-plane.d.ts.map +1 -0
  547. package/dist/settings-plane.js +86 -0
  548. package/dist/settings-plane.js.map +1 -0
  549. package/dist/share-inbox.d.ts +56 -0
  550. package/dist/share-inbox.d.ts.map +1 -0
  551. package/dist/share-inbox.js +114 -0
  552. package/dist/share-inbox.js.map +1 -0
  553. package/dist/shared-transition.d.ts +152 -0
  554. package/dist/shared-transition.d.ts.map +1 -0
  555. package/dist/shared-transition.js +257 -0
  556. package/dist/shared-transition.js.map +1 -0
  557. package/dist/sheet-content-padding.d.ts +24 -0
  558. package/dist/sheet-content-padding.d.ts.map +1 -0
  559. package/dist/sheet-content-padding.js +32 -0
  560. package/dist/sheet-content-padding.js.map +1 -0
  561. package/dist/shot-devices.d.ts +36 -0
  562. package/dist/shot-devices.d.ts.map +1 -0
  563. package/dist/shot-devices.js +90 -0
  564. package/dist/shot-devices.js.map +1 -0
  565. package/dist/shot-guards.d.ts +100 -0
  566. package/dist/shot-guards.d.ts.map +1 -0
  567. package/dist/shot-guards.js +260 -0
  568. package/dist/shot-guards.js.map +1 -0
  569. package/dist/shot-scope.d.ts +140 -0
  570. package/dist/shot-scope.d.ts.map +1 -0
  571. package/dist/shot-scope.js +302 -0
  572. package/dist/shot-scope.js.map +1 -0
  573. package/dist/slot-partition.d.ts +9 -0
  574. package/dist/slot-partition.d.ts.map +1 -0
  575. package/dist/slot-partition.js +38 -0
  576. package/dist/slot-partition.js.map +1 -0
  577. package/dist/snackbar.d.ts +165 -0
  578. package/dist/snackbar.d.ts.map +1 -0
  579. package/dist/snackbar.js +220 -0
  580. package/dist/snackbar.js.map +1 -0
  581. package/dist/socket.d.ts +96 -0
  582. package/dist/socket.d.ts.map +1 -0
  583. package/dist/socket.js +370 -0
  584. package/dist/socket.js.map +1 -0
  585. package/dist/spotlight.d.ts +77 -0
  586. package/dist/spotlight.d.ts.map +1 -0
  587. package/dist/spotlight.js +174 -0
  588. package/dist/spotlight.js.map +1 -0
  589. package/dist/state-primitive.d.ts +37 -0
  590. package/dist/state-primitive.d.ts.map +1 -0
  591. package/dist/state-primitive.js +91 -0
  592. package/dist/state-primitive.js.map +1 -0
  593. package/dist/store-query.d.ts +25 -0
  594. package/dist/store-query.d.ts.map +1 -0
  595. package/dist/store-query.js +88 -0
  596. package/dist/store-query.js.map +1 -0
  597. package/dist/store-value.d.ts +48 -0
  598. package/dist/store-value.d.ts.map +1 -0
  599. package/dist/store-value.js +264 -0
  600. package/dist/store-value.js.map +1 -0
  601. package/dist/store-versioning.d.ts +70 -0
  602. package/dist/store-versioning.d.ts.map +1 -0
  603. package/dist/store-versioning.js +188 -0
  604. package/dist/store-versioning.js.map +1 -0
  605. package/dist/store.d.ts +282 -0
  606. package/dist/store.d.ts.map +1 -0
  607. package/dist/store.js +1144 -0
  608. package/dist/store.js.map +1 -0
  609. package/dist/strings.d.ts +141 -0
  610. package/dist/strings.d.ts.map +1 -0
  611. package/dist/strings.js +581 -0
  612. package/dist/strings.js.map +1 -0
  613. package/dist/telemetry.d.ts +95 -0
  614. package/dist/telemetry.d.ts.map +1 -0
  615. package/dist/telemetry.js +255 -0
  616. package/dist/telemetry.js.map +1 -0
  617. package/dist/transform-core.d.ts +228 -0
  618. package/dist/transform-core.d.ts.map +1 -0
  619. package/dist/transform-core.js +921 -0
  620. package/dist/transform-core.js.map +1 -0
  621. package/dist/transition-core.d.ts +58 -0
  622. package/dist/transition-core.d.ts.map +1 -0
  623. package/dist/transition-core.js +352 -0
  624. package/dist/transition-core.js.map +1 -0
  625. package/dist/trim-trailing.d.ts +3 -0
  626. package/dist/trim-trailing.d.ts.map +1 -0
  627. package/dist/trim-trailing.js +14 -0
  628. package/dist/trim-trailing.js.map +1 -0
  629. package/dist/upload.d.ts +51 -0
  630. package/dist/upload.d.ts.map +1 -0
  631. package/dist/upload.js +68 -0
  632. package/dist/upload.js.map +1 -0
  633. package/dist/vendor-face.d.ts +44 -0
  634. package/dist/vendor-face.d.ts.map +1 -0
  635. package/dist/vendor-face.js +80 -0
  636. package/dist/vendor-face.js.map +1 -0
  637. package/dist/vendor-session.d.ts +166 -0
  638. package/dist/vendor-session.d.ts.map +1 -0
  639. package/dist/vendor-session.js +423 -0
  640. package/dist/vendor-session.js.map +1 -0
  641. package/dist/vendor-surface.d.ts +290 -0
  642. package/dist/vendor-surface.d.ts.map +1 -0
  643. package/dist/vendor-surface.js +439 -0
  644. package/dist/vendor-surface.js.map +1 -0
  645. package/dist/version-rules.generated.d.ts +17 -0
  646. package/dist/version-rules.generated.d.ts.map +1 -0
  647. package/dist/version-rules.generated.js +99 -0
  648. package/dist/version-rules.generated.js.map +1 -0
  649. package/dist/view-transition-core.d.ts +99 -0
  650. package/dist/view-transition-core.d.ts.map +1 -0
  651. package/dist/view-transition-core.js +127 -0
  652. package/dist/view-transition-core.js.map +1 -0
  653. package/dist/view-transition-door.d.ts +26 -0
  654. package/dist/view-transition-door.d.ts.map +1 -0
  655. package/dist/view-transition-door.js +88 -0
  656. package/dist/view-transition-door.js.map +1 -0
  657. package/dist/window-identity.d.ts +3 -0
  658. package/dist/window-identity.d.ts.map +1 -0
  659. package/dist/window-identity.js +27 -0
  660. package/dist/window-identity.js.map +1 -0
  661. package/package.json +141 -2
@@ -0,0 +1,70 @@
1
+ /** WHERE THE VERSION LIVES. The keyed store namespaces its keys under `dsx.storage.`; the stamp
2
+ * sits beside that namespace rather than inside it, so listing, counting and clearing the keyed
3
+ * store never touch it. It is written WITH the data, in the same store, because a version kept
4
+ * somewhere else can be lost or restored separately from the values it describes. */
5
+ export declare const STORE_VERSION_KEY = "dsx.store.version";
6
+ /** THE STORE KEY the app's own declaration is published under, the web twin of the native
7
+ * AppManifest.storage. The browser has no compiled-in manifest to read, so the generated
8
+ * bootloader hands dsx.json's `storage` block to bootDsx and bootDsx seeds it here; the
9
+ * ValueStore web facet reads it back and opens the browser's store against it. */
10
+ export declare const STORE_DECLARATION_KEY = "storageDeclaration";
11
+ /** One operation on a string-to-string store. Exactly one verb per step: a step that renamed AND
12
+ * removed would have no defined order between its own two effects. */
13
+ export type StoreStep = {
14
+ kind: "rename";
15
+ from: string;
16
+ to: string;
17
+ } | {
18
+ kind: "remove";
19
+ key: string;
20
+ } | {
21
+ kind: "default";
22
+ key: string;
23
+ value: string;
24
+ };
25
+ export interface StoreMigration {
26
+ /** the version this migration ARRIVES at; 2 is the earliest meaningful value */
27
+ to: number;
28
+ steps: StoreStep[];
29
+ }
30
+ export interface StoreDeclaration {
31
+ valid: boolean;
32
+ /** "" when valid; otherwise "version", "migrations" or "steps", naming which part did not parse */
33
+ reason: string;
34
+ version: number;
35
+ /** sorted by `to` ascending: application order is a property of the numbers, never of the
36
+ * order somebody typed the table in */
37
+ migrations: StoreMigration[];
38
+ }
39
+ export interface StoreOpen {
40
+ /** "" when the store opened; otherwise one of the four refusals */
41
+ refusal: string;
42
+ /** the version now stamped on the store; 0 on a refusal */
43
+ version: number;
44
+ /** the version found: 0 for a genuinely fresh store, 1 for values with no stamp */
45
+ from: number;
46
+ migrated: number;
47
+ /** EMPTY on a refusal. Refusing means nothing was read, so there is nothing to hand back. */
48
+ values: Record<string, string>;
49
+ }
50
+ /** Parse an app manifest's `storage` block. A manifest with no block is version 1 with no
51
+ * migrations, which is what every app shipped before this law declares, and the reading that makes a
52
+ * first declaration an upgrade instead of a reset. */
53
+ /** WHAT `dsx.global.storageDeclaration` PUBLISHES: the app's `storage` block as its manifest
54
+ * states it, null when it states none (corpus store/versioning.json `plane`). bootDsx seeds it;
55
+ * both natives seed the same value from their manifest. */
56
+ export declare function storeDeclarationPlane(storage: unknown): unknown;
57
+ export declare function storeDeclaration(manifest: unknown): StoreDeclaration;
58
+ /**
59
+ * Open a persisted store against an app's declaration.
60
+ *
61
+ * `stamp` is the raw string read from VERSION_KEY (null when the key is absent), and `values`
62
+ * is the keyed store as it stands. The outcome is one of: a fresh store stamped with the
63
+ * declared version, a store already current, a store migrated forward, or a typed refusal.
64
+ *
65
+ * VALUES PRESENT WITH NO STAMP ARE VERSION 1. Calling that fresh would skip every migration and
66
+ * leave the old shape in place under the new version, which is exactly the silent corruption
67
+ * this fold exists to end.
68
+ */
69
+ export declare function openStore(declaration: StoreDeclaration, stamp: string | null | undefined, values: Record<string, string>): StoreOpen;
70
+ //# sourceMappingURL=store-versioning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-versioning.d.ts","sourceRoot":"","sources":["../src/store-versioning.ts"],"names":[],"mappings":"AAqBA;;;sFAGsF;AACtF,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD;;;mFAGmF;AACnF,eAAO,MAAM,qBAAqB,uBAAuB,CAAC;AAE1D;uEACuE;AACvE,MAAM,MAAM,SAAS,GACjB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpD,MAAM,WAAW,cAAc;IAC7B,gFAAgF;IAChF,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,mGAAmG;IACnG,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB;4CACwC;IACxC,UAAU,EAAE,cAAc,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,SAAS;IACxB,mEAAmE;IACnE,OAAO,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,OAAO,EAAE,MAAM,CAAC;IAChB,mFAAmF;IACnF,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,6FAA6F;IAC7F,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AA8CD;;uDAEuD;AACvD;;4DAE4D;AAC5D,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAE/D;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,OAAO,GAAG,gBAAgB,CAkCpE;AA+BD;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CACvB,WAAW,EAAE,gBAAgB,EAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B,SAAS,CAgBX"}
@@ -0,0 +1,188 @@
1
+ //
2
+ // store-versioning.ts: the PERSISTED STORE's own version, and the fold that opens one.
3
+ //
4
+ // A DSX app keeps things: a theme, a locale, a session. Until this file that store carried
5
+ // untyped strings and nothing beside them, so an app whose stored shape changed between two
6
+ // releases read the old shape as if it were the new one. Rename one key and the old value
7
+ // stays on the device forever while the new read answers found:false; nothing refuses, nothing
8
+ // migrates, nothing notices.
9
+ //
10
+ // The law, identical on four renderers and pinned by OpenSource/Conformance/store/versioning.json:
11
+ // a store carries the version it was written under (VERSION_KEY, beside the keyed namespace so
12
+ // `keys`/`count`/`clear` never see it), an app DECLARES its current version and the migrations
13
+ // that reach it, and `openStore` either brings the store forward or refuses TYPED.
14
+ //
15
+ // Pure over already-parsed values (no storage, no filesystem, no DOM), which is what lets the
16
+ // Swift twin (OpenSource/Engine/Swift/StoreVersioning.swift) compile as an Apple-free closed set
17
+ // and the Kotlin twin (Engine/Kotlin/core StoreVersioning.kt) run under plain JUnit.
18
+ //
19
+ import { storeEncode } from "./store-value.js";
20
+ /** WHERE THE VERSION LIVES. The keyed store namespaces its keys under `dsx.storage.`; the stamp
21
+ * sits beside that namespace rather than inside it, so listing, counting and clearing the keyed
22
+ * store never touch it. It is written WITH the data, in the same store, because a version kept
23
+ * somewhere else can be lost or restored separately from the values it describes. */
24
+ export const STORE_VERSION_KEY = "dsx.store.version";
25
+ /** THE STORE KEY the app's own declaration is published under, the web twin of the native
26
+ * AppManifest.storage. The browser has no compiled-in manifest to read, so the generated
27
+ * bootloader hands dsx.json's `storage` block to bootDsx and bootDsx seeds it here; the
28
+ * ValueStore web facet reads it back and opens the browser's store against it. */
29
+ export const STORE_DECLARATION_KEY = "storageDeclaration";
30
+ const MAX_VERSION = 2147483647;
31
+ function isInt(value) {
32
+ return typeof value === "number" && Number.isInteger(value);
33
+ }
34
+ function isObject(value) {
35
+ return value !== null && typeof value === "object" && !Array.isArray(value);
36
+ }
37
+ function invalid(reason) {
38
+ return { valid: false, reason, version: 0, migrations: [] };
39
+ }
40
+ function parseStep(raw) {
41
+ if (!isObject(raw))
42
+ return null;
43
+ const verbs = Object.keys(raw).filter((k) => !k.startsWith("_"));
44
+ if (verbs.length !== 1)
45
+ return null;
46
+ const verb = verbs[0];
47
+ const body = raw[verb];
48
+ if (verb === "remove") {
49
+ return typeof body === "string" && body !== "" ? { kind: "remove", key: body } : null;
50
+ }
51
+ if (verb === "rename") {
52
+ if (!isObject(body))
53
+ return null;
54
+ const from = body["from"];
55
+ const to = body["to"];
56
+ if (typeof from !== "string" || from === "" || typeof to !== "string" || to === "")
57
+ return null;
58
+ return { kind: "rename", from, to };
59
+ }
60
+ if (verb === "default") {
61
+ if (!isObject(body))
62
+ return null;
63
+ const key = body["key"];
64
+ if (typeof key !== "string" || key === "" || !Object.prototype.hasOwnProperty.call(body, "value"))
65
+ return null;
66
+ // A default is TYPED, like every value the keyed store keeps (store-value.ts `storeEncode`,
67
+ // corpus store/typed.json): a string stays verbatim and anything else becomes the tagged JSON
68
+ // text `set` would have written, so a migrated default reads back with the type it declared.
69
+ const kept = storeEncode(body["value"]);
70
+ if (kept.refusal !== "")
71
+ return null;
72
+ return { kind: "default", key, value: kept.text };
73
+ }
74
+ return null;
75
+ }
76
+ /** Parse an app manifest's `storage` block. A manifest with no block is version 1 with no
77
+ * migrations, which is what every app shipped before this law declares, and the reading that makes a
78
+ * first declaration an upgrade instead of a reset. */
79
+ /** WHAT `dsx.global.storageDeclaration` PUBLISHES: the app's `storage` block as its manifest
80
+ * states it, null when it states none (corpus store/versioning.json `plane`). bootDsx seeds it;
81
+ * both natives seed the same value from their manifest. */
82
+ export function storeDeclarationPlane(storage) {
83
+ return storage === undefined ? null : storage;
84
+ }
85
+ export function storeDeclaration(manifest) {
86
+ const block = isObject(manifest) ? manifest["storage"] : undefined;
87
+ if (block === undefined || block === null)
88
+ return { valid: true, reason: "", version: 1, migrations: [] };
89
+ if (!isObject(block))
90
+ return invalid("version");
91
+ const rawVersion = block["version"];
92
+ const version = rawVersion === undefined ? 1 : rawVersion;
93
+ if (!isInt(version) || version < 1 || version > MAX_VERSION)
94
+ return invalid("version");
95
+ const rawMigrations = block["migrations"];
96
+ if (rawMigrations === undefined || rawMigrations === null) {
97
+ return { valid: true, reason: "", version, migrations: [] };
98
+ }
99
+ if (!Array.isArray(rawMigrations))
100
+ return invalid("migrations");
101
+ const migrations = [];
102
+ const seen = new Set();
103
+ for (const entry of rawMigrations) {
104
+ if (!isObject(entry))
105
+ return invalid("migrations");
106
+ const to = entry["to"];
107
+ if (!isInt(to) || to < 2 || to > version || seen.has(to))
108
+ return invalid("migrations");
109
+ seen.add(to);
110
+ const rawSteps = entry["steps"];
111
+ if (rawSteps !== undefined && !Array.isArray(rawSteps))
112
+ return invalid("steps");
113
+ const steps = [];
114
+ for (const rawStep of (rawSteps ?? [])) {
115
+ const step = parseStep(rawStep);
116
+ if (step === null)
117
+ return invalid("steps");
118
+ steps.push(step);
119
+ }
120
+ migrations.push({ to, steps });
121
+ }
122
+ migrations.sort((a, b) => a.to - b.to);
123
+ return { valid: true, reason: "", version, migrations };
124
+ }
125
+ /** The stamp as four runtimes must all read it: plain ASCII digits, no sign, no space, no
126
+ * leading zero, 1 through int32. Anything else is unreadable rather than a guess, because four
127
+ * string-to-integer parsers accept four different things. Returns -1 for unreadable. */
128
+ function parseStamp(raw) {
129
+ if (raw === null || raw === undefined || raw === "")
130
+ return 0;
131
+ if (!/^[1-9][0-9]*$/.test(raw))
132
+ return -1;
133
+ const value = Number(raw);
134
+ return value > MAX_VERSION ? -1 : value;
135
+ }
136
+ function applyStep(values, step) {
137
+ if (step.kind === "remove") {
138
+ delete values[step.key];
139
+ return;
140
+ }
141
+ if (step.kind === "rename") {
142
+ if (step.from === step.to)
143
+ return;
144
+ if (!Object.prototype.hasOwnProperty.call(values, step.from))
145
+ return;
146
+ values[step.to] = values[step.from];
147
+ delete values[step.from];
148
+ return;
149
+ }
150
+ if (!Object.prototype.hasOwnProperty.call(values, step.key))
151
+ values[step.key] = step.value;
152
+ }
153
+ function refuse(reason) {
154
+ return { refusal: reason, version: 0, from: 0, migrated: 0, values: {} };
155
+ }
156
+ /**
157
+ * Open a persisted store against an app's declaration.
158
+ *
159
+ * `stamp` is the raw string read from VERSION_KEY (null when the key is absent), and `values`
160
+ * is the keyed store as it stands. The outcome is one of: a fresh store stamped with the
161
+ * declared version, a store already current, a store migrated forward, or a typed refusal.
162
+ *
163
+ * VALUES PRESENT WITH NO STAMP ARE VERSION 1. Calling that fresh would skip every migration and
164
+ * leave the old shape in place under the new version, which is exactly the silent corruption
165
+ * this fold exists to end.
166
+ */
167
+ export function openStore(declaration, stamp, values) {
168
+ if (!declaration.valid)
169
+ return refuse("store_declaration_invalid");
170
+ const found = parseStamp(stamp);
171
+ if (found < 0)
172
+ return refuse("store_unreadable");
173
+ const from = found === 0 ? (Object.keys(values).length === 0 ? 0 : 1) : found;
174
+ if (from > declaration.version)
175
+ return refuse("store_ahead");
176
+ const out = { ...values };
177
+ if (from === 0 || from === declaration.version) {
178
+ return { refusal: "", version: declaration.version, from, migrated: 0, values: out };
179
+ }
180
+ const due = declaration.migrations.filter((m) => m.to > from && m.to <= declaration.version);
181
+ if (due.length !== declaration.version - from)
182
+ return refuse("store_migration_missing");
183
+ for (const migration of due)
184
+ for (const step of migration.steps)
185
+ applyStep(out, step);
186
+ return { refusal: "", version: declaration.version, from, migrated: due.length, values: out };
187
+ }
188
+ //# sourceMappingURL=store-versioning.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-versioning.js","sourceRoot":"","sources":["../src/store-versioning.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,wFAAwF;AACxF,EAAE;AACF,4FAA4F;AAC5F,6FAA6F;AAC7F,2FAA2F;AAC3F,gGAAgG;AAChG,8BAA8B;AAC9B,EAAE;AACF,oGAAoG;AACpG,gGAAgG;AAChG,gGAAgG;AAChG,oFAAoF;AACpF,EAAE;AACF,+FAA+F;AAC/F,kGAAkG;AAClG,sFAAsF;AACtF,EAAE;AAEF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;sFAGsF;AACtF,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAErD;;;mFAGmF;AACnF,MAAM,CAAC,MAAM,qBAAqB,GAAG,oBAAoB,CAAC;AAqC1D,MAAM,WAAW,GAAG,UAAU,CAAC;AAE/B,SAAS,KAAK,CAAC,KAAc;IAC3B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,OAAO,CAAC,MAAc;IAC7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AC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC9E,IAAI,IAAI,GAAG,WAAW,CAAC,OAAO;QAAE,OAAO,MAAM,CAAC,aAAa,CAAC,CAAC;IAE7D,MAAM,GAAG,GAA2B,EAAE,GAAG,MAAM,EAAE,CAAC;IAClD,IAAI,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,WAAW,CAAC,OAAO,EAAE,CAAC;QAC/C,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;IACvF,CAAC;IAED,MAAM,GAAG,GAAG,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,IAAI,CAAC,CAAC,EAAE,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC;IAC7F,IAAI,GAAG,CAAC,MAAM,KAAK,WAAW,CAAC,OAAO,GAAG,IAAI;QAAE,OAAO,MAAM,CAAC,yBAAyB,CAAC,CAAC;IACxF,KAAK,MAAM,SAAS,IAAI,GAAG;QAAE,KAAK,MAAM,IAAI,IAAI,SAAS,CAAC,KAAK;YAAE,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACtF,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAChG,CAAC"}
@@ -0,0 +1,282 @@
1
+ import { StackStore, JSESeams, type Item } from "./jse/jse.ts";
2
+ import { NSNull, type Dict } from "./jse/values.ts";
3
+ import { type PersistOrigin } from "./persist.ts";
4
+ /** Name what the host is about to evaluate, for the budget diagnostic and for nothing else.
5
+ * Answers the subject that was in force, which the caller puts back when its door closes. */
6
+ export declare function setEvaluationSubject(next: string): string;
7
+ export declare function trackReads<T>(run: () => T, owner?: ReactiveStore | null): {
8
+ value: T;
9
+ surface: Set<string>;
10
+ global: Set<string>;
11
+ foreign: Map<ReactiveStore, Set<string>> | null;
12
+ };
13
+ export declare function noteSurfaceRead(key: string, owner?: ReactiveStore): void;
14
+ export declare function noteGlobalRead(key: string): void;
15
+ /** Identity partition for implicit browser/native cookies. API materialization reads
16
+ * this under dependency tracking so an explicit cookie change refetches live GETs. */
17
+ export declare function readCookiePartition(): Dict;
18
+ /** One bounded dot-path contract shared with the native engines. Authored/remote
19
+ * paths fail closed before copy-on-write allocates any containers. */
20
+ export declare const STATE_PATH_LIMITS: Readonly<{
21
+ maxPathBytes: 4096;
22
+ maxSegments: 64;
23
+ maxSegmentBytes: 256;
24
+ maxArrayIndex: 9999;
25
+ maxArrayGrowth: 1024;
26
+ maxContainerEntries: 10000;
27
+ maxIdentifierBytes: 128;
28
+ }>;
29
+ export declare function statePathParts(path: string, allowEmpty?: boolean): string[] | null;
30
+ /** `<api as>` owns one top-level store identifier, never an arbitrary dot path. */
31
+ export declare function isStateIdentifier(value: string): boolean;
32
+ export type StatePathWrite = {
33
+ accepted: boolean;
34
+ value: unknown;
35
+ };
36
+ /** Rebuild a validated path without mutating the input. A rejected result means
37
+ * the write exceeded a container/growth budget and state must remain unchanged. */
38
+ export declare function rebuildStatePath(container: unknown, parts: string[], value: unknown): StatePathWrite;
39
+ /** The unlink twin of `rebuildStatePath`: the container without the leaf `parts` names, rebuilt
40
+ * without mutating the input. `removed` is false when nothing was there to unlink. */
41
+ export declare function unlinkStatePath(container: unknown, parts: readonly string[]): {
42
+ removed: boolean;
43
+ value: unknown;
44
+ };
45
+ export declare function getPath(vars: Map<string, unknown>, path: string): unknown;
46
+ /** `foreign` is PROPOSED (proposals/context.md): the keys this binding read on ANOTHER
47
+ * store, per store, so a provider write wakes only the consumers that read that key. It is
48
+ * absent on every binding that reads no context, which is all of them until a document
49
+ * declares one. */
50
+ export type Subscriber = {
51
+ keys: Set<string>;
52
+ globalKeys: Set<string>;
53
+ run: () => void;
54
+ disposed?: boolean;
55
+ foreign?: Map<ReactiveStore, Set<string>>;
56
+ /** WHAT WOKE THIS BINDING (the live inspector, SPEC item 7): the names the writes that
57
+ * scheduled it touched, and through which door they arrived. Recorded ONLY while a listener
58
+ * is installed on `StoreDebugSeam.onRerender`, read and cleared by the re-run. */
59
+ why?: {
60
+ names: Set<string>;
61
+ via: RerenderVia;
62
+ };
63
+ };
64
+ /** Through which door a write reached a binding: its own store's variable (`write`), the
65
+ * app-wide store (`global`), or another instance's provider (`context`). */
66
+ export type RerenderVia = "write" | "global" | "context";
67
+ /** One binding re-run, as the live inspector asks for it ("why did this last re-render"). */
68
+ export type RerenderEvent = {
69
+ store: ReactiveStore;
70
+ /** the binding's own sentence (`the bound value of <text>`), as `effect` was given it */
71
+ subject: string;
72
+ /** the element address the binding belongs to (`Component#nid`), "" when the caller gave none */
73
+ address: string;
74
+ /** the names whose write invalidated it, as the store keys them */
75
+ names: string[];
76
+ via: RerenderVia;
77
+ /** the names this run actually read, which is the binding's read set NOW */
78
+ reads: string[];
79
+ /** whether any invalidating name is among them: false is a re-render of a node that no longer
80
+ * reads what changed, which is the renderer-dependency-invalidation defect, made visible */
81
+ readsName: boolean;
82
+ /** whether the run drew a new value (a re-run that fingerprints equal draws nothing) */
83
+ changed: boolean;
84
+ };
85
+ /** THE RE-RENDER LOG (the live inspector, backlog inspect-live-tree-state, SPEC item 7). A
86
+ * development host installs a listener; with none this costs one null test per notify and one
87
+ * per re-run, and an embed folds the sites with the rest of the debug plane. */
88
+ export declare const StoreDebugSeam: {
89
+ onRerender: ((event: RerenderEvent) => void) | null;
90
+ };
91
+ /** Drain all pending binding re-runs NOW (tests, SSR, imperative flush points).
92
+ * Effects that write the store re-schedule; the drain budget contains cycles. */
93
+ export declare function flushEffects(): void;
94
+ export declare function holdStore(store: ReactiveStore): void;
95
+ export declare function releaseStore(store: ReactiveStore): void;
96
+ /** A FRAGMENT SHARES ITS CONSUMER'S STATE FOR WHAT IT EXPECTS (dsx-anatomy.md `<expects>`,
97
+ * corpus composition/fragment-expects.json; Swift StackStore.shareExpected). Each name the
98
+ * fragment expects that `consumer` holds, and that the fragment does not declare as its own
99
+ * `<variable>`, is read at birth, written back to the consumer, and follows its writes.
100
+ * Module level (it was a ReactiveStore method): esbuild never drops a class
101
+ * method, and a sliced embed with no `<expects>` (dom mount.ts, __DSX_OPTIONAL_EXPECTS__) never
102
+ * calls this, so the plane leaves the widget with it. */
103
+ export declare function shareExpected(consumer: ReactiveStore, fragment: ReactiveStore, expected: readonly string[]): void;
104
+ /** A whole-snapshot listener; `keys` names what was written (absent on the subscribe-fire). */
105
+ export type StoreSink = (vars: Map<string, unknown>, keys?: ReadonlySet<string>) => void;
106
+ export declare class ReactiveStore {
107
+ #private;
108
+ readonly jse: StackStore;
109
+ disposePresentation: (() => void) | null;
110
+ private subscribers;
111
+ private sinks;
112
+ /** batch depth — writes inside an action coalesce notifications per key set */
113
+ private pending;
114
+ /** Bindings on OTHER stores that read a key of this one through `dsx.context`
115
+ * (proposals/context.md). Never through DSXState, whose notify walks every attached
116
+ * store in the process. */
117
+ private foreignSubscribers;
118
+ constructor();
119
+ private adoptForeign;
120
+ private dropForeign;
121
+ /** true once the surface unmounted; a late callback addressed to it is dropped */
122
+ isDisposed: boolean;
123
+ /** The bound shared with the page bridge (runtime.js `MAX_PENDING`): at most this many live calls one
124
+ * surface holds; past it a new held call is refused `pending_limit_exceeded`. */
125
+ static readonly HELD_CALL_BOUND = 2000;
126
+ /** @internal drop the held calls whose stream has ended; they stay remembered weakly */
127
+ private forgetEndedCalls;
128
+ /** @internal can this surface hold one more live call (the bound counts live calls only) */
129
+ canHoldCall(): boolean;
130
+ /** @internal the runner, when one of this surface's calls hands back its value */
131
+ holdCall(call: object): void;
132
+ /** @internal did this surface start and hold that call (a value it started, not one passed to it) */
133
+ holdsCall(value: unknown): boolean;
134
+ /** @internal has this surface ever held a call: until it has, no binding of its documents can carry one, so the
135
+ * renderers skip the refusal of a running call bound to an attribute (constitution Article 14.2) */
136
+ startedAnyCall(): boolean;
137
+ /** @internal the number of live calls this surface holds (a test seam for the bound) */
138
+ liveHeldCalls(): number;
139
+ /** unmount: detach from the global store (bindings die with their subscribers) */
140
+ dispose(): void;
141
+ /** FOR THE LIFETIME ROWS AND THE RENDERER'S PROOFS: how many bindings on other stores are
142
+ * currently registered against this one. A count, not the set: the subscribers are private
143
+ * and stay private, and what the corpus asks is "is it zero". */
144
+ get foreignSubscriberCount(): number;
145
+ get vars(): Map<string, unknown>;
146
+ /** whole-snapshot sink (the `$vars.sink` twin: fires once on subscribe without keys, then per write with the keys written) */
147
+ sink(fn: StoreSink): () => void;
148
+ /** one write — deep-equal writes are elided (the reference behavior). `origin` is where the
149
+ * write came from (proposals/cloud-state.md section 7): an assignment is `local`, and
150
+ * `dsx.module.global.apply` or a scope provider says otherwise. */
151
+ set(key: string, value: unknown, origin?: PersistOrigin): void;
152
+ /** @internal the fragment `<expects>` plane (module-level shareExpected / mirrorExpected below):
153
+ * the consumer a fragment writes through, the fragments that follow this store, and the names
154
+ * shared. Fields rather than methods, so a sliced embed with no `<expects>` sheds the plane. */
155
+ expectsHost: ReactiveStore | null;
156
+ /** @internal */
157
+ expectsMirrors: Set<ReactiveStore> | null;
158
+ /** @internal stops for the consumer's derived names this fragment follows (shareExpected) */
159
+ expectsFollow: Array<() => void> | null;
160
+ /** @internal */
161
+ sharedExpected: ReadonlySet<string>;
162
+ /** @internal one write with no fragment routing: `set` minus the `<expects>` plane. */
163
+ commit(key: string, value: unknown, origin: PersistOrigin): void;
164
+ /** `as` → the slot it occupies, for the variables this surface declared `persist` on. Empty on
165
+ * every surface that declares none, which is the byte budget: the map is allocated lazily and
166
+ * a `keep` over an empty map is one `size` check. */
167
+ private persisted;
168
+ /** Register one persisted variable (the head fold's seed step calls this, once, at mount).
169
+ * `scope` is its word: a string is a literal word, and a function is a word with a hole
170
+ * (ADR 0017), read at every write, answering a word, or "" for off. The store holds no word of
171
+ * its own (RULING-PERSIST-WORD-1122 M1): the words are the build's `persist` facet rows. */
172
+ markPersisted(as: string, slot: string, scope: string | (() => string), merge?: string, transitions?: {
173
+ login?: string;
174
+ logout?: string;
175
+ }, fallback?: () => unknown): void;
176
+ /** `as` -> its scope word, or its hole (read at every write; an off word forgets the slot).
177
+ * Null on every surface that persists nothing. */
178
+ private persistGates;
179
+ /** `as` -> the word its last write went to, so switching a hole off forgets the right slot. */
180
+ private persistLast;
181
+ /** The word one persisted variable resolves to NOW ("" when a hole switched it off). */
182
+ persistedWord(as: string): string;
183
+ /** The slot this variable occupies, or "" when it is an ordinary in-memory variable. */
184
+ persistedSlot(as: string): string;
185
+ /** Write one committed value through to its slot, if it has one. Total by construction.
186
+ *
187
+ * A SLICEABLE FEATURE, and the guard is the FIRST line rather than a condition further down.
188
+ * `this.persisted` is null in every document that declares no `persist=`, so the runtime cost
189
+ * was already zero - but the BYTES were not: the reference to `persistWrite` below holds
190
+ * `kernel/persist.js` and, through it, `kernel/store-value.js`, and a bundler cannot shake
191
+ * what a live reference names. For example:
192
+ * `persist.js` 761 bytes and `store-value.js` 2100 bytes in a widget that persists nothing.
193
+ * With `__DSX_OPTIONAL_PERSIST__` folded false the whole body below is dead and both modules
194
+ * leave the slice; with it on, nothing about the behaviour changes. */
195
+ private keep;
196
+ /** `dsx.module.global.apply` (proposals/cloud-state.md section 6): write one declared variable
197
+ * of this surface with a non-local origin. Answers the refusal code, or "" when applied. */
198
+ apply(as: string, value: unknown, origin: unknown): "" | "invalid_origin" | "unknown_variable";
199
+ /** `<watch detail="true">`: like `watch`, and the change arrives as its descriptor. `keys` are
200
+ * the variables the value expression names (`watchVariableKeys`), which the origin law reads.
201
+ * `immediate` fires once now with `previous` null and origin `restore`. */
202
+ watchDetail(read: () => unknown, keys: readonly string[], onChange: (value: unknown, previous: unknown, origin: PersistOrigin) => void, immediate?: boolean, subject?: string): () => void;
203
+ /** dotted-path write — single segment routes to set(); deeper paths rebuild COW. */
204
+ setPath(path: string, value: unknown, origin?: PersistOrigin): void;
205
+ getPath(path: string): unknown;
206
+ /** run writes batched: notifications coalesce and fire once at the end. */
207
+ batch(run: () => void): void;
208
+ actionEntry(name: string, delta: number): void;
209
+ presentationChanged(key: string): void;
210
+ private changed;
211
+ private notify;
212
+ /** DSXState pokes surface subscribers whose GLOBAL read-set intersects. */
213
+ notifyGlobal(keys: Set<string>): void;
214
+ /** A binding: evaluate `read` with dependency tracking; re-run `onChange` when any
215
+ * read key changes AND the computed value meaningfully changed (watchKey dedup).
216
+ * Returns a disposer. Fires `onChange` once immediately with the initial value.
217
+ *
218
+ * `subject` NAMES THIS BINDING for the budget diagnostic and for nothing else - it is
219
+ * never read by the evaluator and changes no result. It is a string the CALLER already
220
+ * built (once, when the binding was created), because this function runs on every render
221
+ * of every bound attribute in the document. "" means the caller did not name it, and the
222
+ * diagnostic then says "an expression" rather than inventing a name. */
223
+ effect<T>(read: () => T, onChange: (value: T) => void, subject?: string, address?: string): () => void;
224
+ /** A TRACKED BINDING THAT DOES NOT FINGERPRINT ITS VALUE: `onChange` runs on the first
225
+ * evaluation and on every re-run a tracked read schedules, and the caller decides what
226
+ * "changed" means. It exists for the bound collections (dom mount.ts
227
+ * `collectionContextEffect`), which compare the evaluated array by REFERENCE because
228
+ * fingerprinting a 100k-row or cyclic host array on every write would defeat their work
229
+ * caps, and which used to follow the surface's own snapshot `sink` instead of a read set.
230
+ * A sink fires only for a write to ITS OWN store, so a collection whose rows came through
231
+ * `dsx.context` (a read registered on the PROVIDER's store, `foreign` below), or through a
232
+ * consumer formula over one, drew once and never again while a text binding beside it
233
+ * redrew (composition/context.json `redraw`). Tracking the reads is what subscribes the
234
+ * collection to the plane, one subscription per used declaration, like every other binding. */
235
+ observe<T>(read: () => T, onChange: (value: T) => void, subject?: string, address?: string): () => void;
236
+ /** The one read-tracking subscription `effect` and `observe` share; `deliver` receives the
237
+ * value and whether this is the first (synchronous) evaluation. */
238
+ private tracked;
239
+ /** `<watch value= on:change=>` — like effect, but NEVER fires on subscribe. */
240
+ watch(read: () => unknown, onChange: (value: unknown) => void, subject?: string): () => void;
241
+ eval(expr: string, item?: Item): unknown;
242
+ evalBlock(body: string, item?: Item): unknown;
243
+ interpolate(s: string, item?: Item): string;
244
+ }
245
+ declare class DSXStateStore {
246
+ vars: Dict;
247
+ private sinks;
248
+ private surfaces;
249
+ private pending;
250
+ attach(surface: ReactiveStore): void;
251
+ detach(surface: ReactiveStore): void;
252
+ sink(fn: (vars: Dict) => void): () => void;
253
+ /** A server render's own values for this request (a package's server context), read ahead of the shared plane. The
254
+ * server installs it over its per-request scope, so two readers an isolate serves at once never see each other's. */
255
+ overlay: ((path: string) => {
256
+ value: unknown;
257
+ } | null) | null;
258
+ get(path: string): unknown;
259
+ set(path: string, value: unknown): void;
260
+ /** Unlink the value at a dot-path: a top-level key leaves the store, an object key leaves its
261
+ * object, an array index leaves its array (the elements after it move down). A path that holds
262
+ * nothing changes nothing and notifies nobody. Twins: DSXState.swift `StackStore.removePath`,
263
+ * State.kt `StackStore.removePath`; Mandatory/State's `remove` is its module face. */
264
+ remove(path: string): void;
265
+ batch(run: () => void): void;
266
+ private changed;
267
+ private notify;
268
+ /** Notify tracked external state (cookies, reachability, host-owned signals)
269
+ * without exposing a synthetic value through `global.*`. */
270
+ invalidate(key: string): void;
271
+ }
272
+ /** the ONE app-wide store */
273
+ export declare const DSXState: DSXStateStore;
274
+ /** Call after a cookie write or a mutation that may rotate an HttpOnly session.
275
+ * GET `<api>` blocks include the revision in their materialized identity, so
276
+ * this forces a safe refetch even when JavaScript cannot read the cookie value. */
277
+ export declare function invalidateCookies(): void;
278
+ export { NSNull, JSESeams };
279
+ /** Register one typed variable of a store (the head fold's seed step calls this, once, at
280
+ * mount, in dev). */
281
+ export declare function declareShape(store: ReactiveStore, as: string, subject: string, type: string, moves: string | undefined): void;
282
+ //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