@despia-native/kernel 0.0.0-stage → 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 +17 -2
  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 +139 -4
@@ -0,0 +1,99 @@
1
+ import { type SharedElement, type SharedPair } from "./shared-transition.ts";
2
+ /** The browser's user agent defaults for a view transition, pinned so the DSX frame loop and
3
+ * both native lanes agree with a browser that animates the same document. */
4
+ export declare const VIEW_TRANSITION_DEFAULTS: {
5
+ readonly durationMs: 250;
6
+ readonly easing: "ease";
7
+ };
8
+ /** The interactive dismissal constants. `travel` is the fraction of the viewport height a pull
9
+ * covers to reach progress 1; `commitProgress` and `commitVelocity` (px per second, downward)
10
+ * are the two release thresholds; `minScale` is the cover's pose at progress 1. */
11
+ export declare const INTERACTIVE_DISMISS: {
12
+ readonly travel: 0.5;
13
+ readonly commitProgress: 0.3;
14
+ readonly commitVelocity: 1000;
15
+ readonly minScale: 0.7;
16
+ readonly slopPx: 8;
17
+ };
18
+ export type TransitionReason = "reduced_motion" | "unsupported" | "superseded" | "skipped" | "joined";
19
+ export type TransitionBackend = "browser" | "participants" | "native" | "none";
20
+ /** What a lane established about one call, in the order the fold reads them. */
21
+ export interface TransitionFacts {
22
+ /** the lane can animate a transition at all (a document, a host, a compositor) */
23
+ supported: boolean;
24
+ backend: TransitionBackend;
25
+ reducedMotion: boolean;
26
+ /** the call arrived inside a running update and its update ran as part of that transition */
27
+ joined: boolean;
28
+ /** a later call (or a navigation the lane animates itself) took the document over */
29
+ superseded: boolean;
30
+ /** `dsx.transition.skip()` was called while this transition was animating */
31
+ skipped: boolean;
32
+ /** the update callback threw; the message it threw with */
33
+ updateFailed: string | null;
34
+ }
35
+ export type TransitionEnvelope = {
36
+ ok: true;
37
+ data: {
38
+ skipped: boolean;
39
+ backend: TransitionBackend;
40
+ reason?: TransitionReason;
41
+ };
42
+ } | {
43
+ ok: false;
44
+ error: "update_failed";
45
+ data: {
46
+ message: string;
47
+ backend: TransitionBackend;
48
+ };
49
+ };
50
+ /** The author's `types`: a string or a list of strings; trimmed, custom identifiers only, first
51
+ * occurrence kept. Anything else is dropped rather than refused, because a wrong type selects
52
+ * no rule, which is what it does in the browser too. */
53
+ export declare function normalizeTransitionTypes(raw: unknown): string[];
54
+ /** THE ENVELOPE FOLD. A failed update is the only failure; every other situation is a success
55
+ * whose animation may have been skipped, and `reason` says why. The precedence is the order a
56
+ * lane learns the facts: a join is decided before support is asked, support before motion
57
+ * preference, and a supersede or a skip can only happen to a transition that was running. */
58
+ export declare function transitionEnvelope(facts: TransitionFacts): TransitionEnvelope;
59
+ export interface TransitionParticipants {
60
+ /** names present before and after: they fly, U03 style */
61
+ pairs: SharedPair[];
62
+ /** names only present after the update: they fade in at their own geometry */
63
+ entering: SharedElement[];
64
+ /** names only present before the update: they fade out at their old geometry */
65
+ exiting: SharedElement[];
66
+ duplicates: string[];
67
+ }
68
+ /** Which named participants of one surface pair, enter or leave across an update. The matching
69
+ * IS `matchSharedElements` (first occurrence wins, the destination declares, reduced motion
70
+ * downgrades `move`), so a name inside a screen and a name across two screens obey one rule.
71
+ * An unrealised after node (not laid out yet) is a deferred pair, exactly as on a push. */
72
+ export declare function diffTransitionParticipants(before: readonly SharedElement[], after: readonly SharedElement[], options?: {
73
+ reducedMotion?: boolean;
74
+ }): TransitionParticipants;
75
+ /** An entering participant fades in, an exiting one fades out, both linearly over the whole
76
+ * transition at their own geometry: the browser's default for a name with one side only. */
77
+ export declare function sampleSoloParticipant(kind: "entering" | "exiting", progress: number): {
78
+ opacity: number;
79
+ };
80
+ /** The root cross fade: the old capture fades out as the new state fades in. */
81
+ export declare function sampleRootCrossfade(progress: number): {
82
+ oldOpacity: number;
83
+ newOpacity: number;
84
+ };
85
+ /** How far a pull has dismissed the cover: 0 at rest, 1 once the finger has travelled half the
86
+ * viewport height. Upward movement and a degenerate height are 0. */
87
+ export declare function dismissProgress(dy: number, height: number): number;
88
+ /** The cover's pose at a dismissal progress: it shrinks toward `minScale` and its chrome dims
89
+ * to nothing, while the paired photo follows the finger through the shared flight. */
90
+ export declare function coverPose(progress: number): {
91
+ scale: number;
92
+ dim: number;
93
+ };
94
+ /** Does a release commit the dismissal? Past the progress threshold, or a downward flick. */
95
+ export declare function dismissCommits(progress: number, velocity: number): boolean;
96
+ /** Does a pointer movement arm the pull? Past the slop, mostly vertical, downward, and only
97
+ * when the cover's content is scrolled to its top, so a scroll never becomes a dismissal. */
98
+ export declare function dragArms(dx: number, dy: number, scrollTop: number): boolean;
99
+ //# sourceMappingURL=view-transition-core.d.ts.map
@@ -0,0 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EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAE3E"}
@@ -0,0 +1,127 @@
1
+ //
2
+ // view-transition-core.ts - the PURE half of `dsx.transition(...)`, the JSE door onto view
3
+ // transitions, and of the interactive cover dismissal that rides the same flights. The law is
4
+ // OpenSource/Conformance/router/transition.json; the Kotlin twin is :core ViewTransitionCore.kt
5
+ // and the Swift twin is Engine/Swift/ViewTransitionCore.swift.
6
+ //
7
+ // WHAT IT DECIDES, and nothing else:
8
+ // • what the author's `types` argument normalizes to;
9
+ // • the ENVELOPE a call answers, folded from the facts a lane established (support, reduced
10
+ // motion, a join, a supersede, a skip, a failed update), so every lane answers the same
11
+ // words for the same situation;
12
+ // • which named participants of ONE surface pair, enter and leave across an update, reusing
13
+ // the U03 matching so a name pairs the same way inside a screen as it does across two;
14
+ // • the schedule of the parts the pairs do not cover: the entering and exiting participants
15
+ // and the root cross fade;
16
+ // • the interactive dismissal fold for a cover presented with `interactive: "drag"`: how far a
17
+ // pull has travelled, the pose the cover takes at that progress, whether a release commits.
18
+ //
19
+ // Everything platform shaped lives OUTSIDE this file: the browser's own View Transitions API,
20
+ // the DSX frame loop over clones, the UIKit snapshot layers, the Compose graphics layers.
21
+ //
22
+ import { matchSharedElements } from "./shared-transition.js";
23
+ /** The browser's user agent defaults for a view transition, pinned so the DSX frame loop and
24
+ * both native lanes agree with a browser that animates the same document. */
25
+ export const VIEW_TRANSITION_DEFAULTS = { durationMs: 250, easing: "ease" };
26
+ /** The interactive dismissal constants. `travel` is the fraction of the viewport height a pull
27
+ * covers to reach progress 1; `commitProgress` and `commitVelocity` (px per second, downward)
28
+ * are the two release thresholds; `minScale` is the cover's pose at progress 1. */
29
+ export const INTERACTIVE_DISMISS = {
30
+ travel: 0.5, commitProgress: 0.3, commitVelocity: 1000, minScale: 0.7, slopPx: 8,
31
+ };
32
+ /** CSS custom identifiers, the only spelling `:active-view-transition-type()` can match. */
33
+ const IDENT = /^-?[A-Za-z_][A-Za-z0-9_-]*$/;
34
+ /** The author's `types`: a string or a list of strings; trimmed, custom identifiers only, first
35
+ * occurrence kept. Anything else is dropped rather than refused, because a wrong type selects
36
+ * no rule, which is what it does in the browser too. */
37
+ export function normalizeTransitionTypes(raw) {
38
+ const list = Array.isArray(raw) ? raw : raw === undefined || raw === null ? [] : [raw];
39
+ const out = [];
40
+ for (const entry of list) {
41
+ if (typeof entry !== "string")
42
+ continue;
43
+ const word = entry.trim();
44
+ if (!IDENT.test(word) || out.includes(word))
45
+ continue;
46
+ out.push(word);
47
+ }
48
+ return out;
49
+ }
50
+ /** THE ENVELOPE FOLD. A failed update is the only failure; every other situation is a success
51
+ * whose animation may have been skipped, and `reason` says why. The precedence is the order a
52
+ * lane learns the facts: a join is decided before support is asked, support before motion
53
+ * preference, and a supersede or a skip can only happen to a transition that was running. */
54
+ export function transitionEnvelope(facts) {
55
+ const backend = facts.supported ? facts.backend : "none";
56
+ if (facts.updateFailed !== null) {
57
+ return { ok: false, error: "update_failed", data: { message: facts.updateFailed, backend } };
58
+ }
59
+ const skipped = (reason) => ({ ok: true, data: { skipped: true, backend, reason } });
60
+ if (facts.joined)
61
+ return skipped("joined");
62
+ if (!facts.supported)
63
+ return skipped("unsupported");
64
+ if (facts.reducedMotion)
65
+ return skipped("reduced_motion");
66
+ if (facts.superseded)
67
+ return skipped("superseded");
68
+ if (facts.skipped)
69
+ return skipped("skipped");
70
+ return { ok: true, data: { skipped: false, backend } };
71
+ }
72
+ /** Which named participants of one surface pair, enter or leave across an update. The matching
73
+ * IS `matchSharedElements` (first occurrence wins, the destination declares, reduced motion
74
+ * downgrades `move`), so a name inside a screen and a name across two screens obey one rule.
75
+ * An unrealised after node (not laid out yet) is a deferred pair, exactly as on a push. */
76
+ export function diffTransitionParticipants(before, after, options = {}) {
77
+ const match = matchSharedElements(before, after, options.reducedMotion === undefined ? {} : { reducedMotion: options.reducedMotion });
78
+ const firstOf = (elements, ids) => ids.map(id => elements.find(element => element.id === id)).filter((e) => e !== undefined);
79
+ return {
80
+ pairs: match.pairs,
81
+ entering: firstOf(after, match.unmatchedDestination),
82
+ exiting: firstOf(before, match.unmatchedSource),
83
+ duplicates: match.duplicates,
84
+ };
85
+ }
86
+ function clamp01(value) {
87
+ if (!(value > 0))
88
+ return 0;
89
+ return value > 1 ? 1 : value;
90
+ }
91
+ function round6(value) {
92
+ return Math.round(value * 1e6) / 1e6 + 0;
93
+ }
94
+ /** An entering participant fades in, an exiting one fades out, both linearly over the whole
95
+ * transition at their own geometry: the browser's default for a name with one side only. */
96
+ export function sampleSoloParticipant(kind, progress) {
97
+ const p = clamp01(progress);
98
+ return { opacity: round6(kind === "entering" ? p : 1 - p) };
99
+ }
100
+ /** The root cross fade: the old capture fades out as the new state fades in. */
101
+ export function sampleRootCrossfade(progress) {
102
+ const p = clamp01(progress);
103
+ return { oldOpacity: round6(1 - p), newOpacity: round6(p) };
104
+ }
105
+ /** How far a pull has dismissed the cover: 0 at rest, 1 once the finger has travelled half the
106
+ * viewport height. Upward movement and a degenerate height are 0. */
107
+ export function dismissProgress(dy, height) {
108
+ if (!(dy > 0) || !(height > 0))
109
+ return 0;
110
+ return round6(clamp01(dy / (height * INTERACTIVE_DISMISS.travel)));
111
+ }
112
+ /** The cover's pose at a dismissal progress: it shrinks toward `minScale` and its chrome dims
113
+ * to nothing, while the paired photo follows the finger through the shared flight. */
114
+ export function coverPose(progress) {
115
+ const p = clamp01(progress);
116
+ return { scale: round6(1 - (1 - INTERACTIVE_DISMISS.minScale) * p), dim: round6(1 - p) };
117
+ }
118
+ /** Does a release commit the dismissal? Past the progress threshold, or a downward flick. */
119
+ export function dismissCommits(progress, velocity) {
120
+ return clamp01(progress) >= INTERACTIVE_DISMISS.commitProgress || velocity >= INTERACTIVE_DISMISS.commitVelocity;
121
+ }
122
+ /** Does a pointer movement arm the pull? Past the slop, mostly vertical, downward, and only
123
+ * when the cover's content is scrolled to its top, so a scroll never becomes a dismissal. */
124
+ export function dragArms(dx, dy, scrollTop) {
125
+ return dy >= INTERACTIVE_DISMISS.slopPx && dy > Math.abs(dx) && !(scrollTop > 0);
126
+ }
127
+ //# sourceMappingURL=view-transition-core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-transition-core.js","sourceRoot":"","sources":["../src/view-transition-core.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,4FAA4F;AAC5F,+FAA+F;AAC/F,iGAAiG;AACjG,gEAAgE;AAChE,EAAE;AACF,sCAAsC;AACtC,yDAAyD;AACzD,+FAA+F;AAC/F,6FAA6F;AAC7F,qCAAqC;AACrC,+FAA+F;AAC/F,4FAA4F;AAC5F,+FAA+F;AAC/F,gCAAgC;AAChC,kGAAkG;AAClG,iGAAiG;AACjG,EAAE;AACF,+FAA+F;AAC/F,2FAA2F;AAC3F,EAAE;AAEF,OAAO,EAAE,mBAAmB,EAAuC,MAAM,wBAAwB,CAAC;AAElG;8EAC8E;AAC9E,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAW,CAAC;AAErF;;oFAEoF;AACpF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;CACxE,CAAC;AAyBX,4FAA4F;AAC5F,MAAM,KAAK,GAAG,6BAA6B,CAAC;AAE5C;;yDAEyD;AACzD,MAAM,UAAU,wBAAwB,CAAC,GAAY;IACnD,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACvF,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,KAAK,MA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c,CAAC,QAAgB,EAAE,QAAgB;IAC/D,OAAO,OAAO,CAAC,QAAQ,CAAC,IAAI,mBAAmB,CAAC,cAAc,IAAI,QAAQ,IAAI,mBAAmB,CAAC,cAAc,CAAC;AACnH,CAAC;AAED;8FAC8F;AAC9F,MAAM,UAAU,QAAQ,CAAC,EAAU,EAAE,EAAU,EAAE,SAAiB;IAChE,OAAO,EAAE,IAAI,mBAAmB,CAAC,MAAM,IAAI,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;AACnF,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { type Dict, type StackLambda } from "./jse/values.ts";
2
+ /** One `dsx.transition(...)` call, as the runner hands it to the lane that animates. `update`
3
+ * runs the author's callback and rejects when it threw; the lane decides support, motion
4
+ * preference, joins and supersedes, and answers the corpus envelope
5
+ * (view-transition-core.ts transitionEnvelope). */
6
+ export interface TransitionStart {
7
+ types: string[];
8
+ frameId: number | undefined;
9
+ update: () => Promise<void>;
10
+ }
11
+ /** THE VIEW TRANSITION SEAM. A kernel that ships in every bundle cannot name a document, a
12
+ * router host or a compositor, so the lane that owns one installs itself here (the web
13
+ * renderer's view-transition.ts at boot). An uninstalled seam is the UNSUPPORTED lane, and an
14
+ * unsupported lane still runs the update: state never depends on animation support. */
15
+ export declare const RunnerTransitionSeam: {
16
+ start: ((start: TransitionStart) => Promise<Dict>) | null;
17
+ skip: (() => void) | null;
18
+ };
19
+ /** What the door needs from the runner: the frame the surface belongs to, and a way to run the
20
+ * update lambda with its throw captured into a message (null when it returned). */
21
+ export interface TransitionDoorHost {
22
+ frameId: number | undefined;
23
+ runUpdate: (fn: StackLambda | null) => Promise<string | null>;
24
+ }
25
+ export declare function transitionDoor(host: TransitionDoorHost, callee: string, args: unknown[], awaited: boolean): Promise<unknown>;
26
+ //# sourceMappingURL=view-transition-door.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-transition-door.d.ts","sourceRoot":"","sources":["../src/view-transition-door.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAoB,KAAK,IAAI,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGhF;;;oDAGoD;AACpD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B;AAED;;;wFAGwF;AACxF,eAAO,MAAM,oBAAoB;WAChB,CAAC,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI;UACnD,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;CAClC,CAAC;AAEF;oFACoF;AACpF,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,SAAS,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC/D;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAoClI"}
@@ -0,0 +1,88 @@
1
+ //
2
+ // view-transition-door.ts - `dsx.transition(update, options?)` and `dsx.transition.skip()`, THE
3
+ // JSE DOOR ONTO VIEW TRANSITIONS (DSX-TRANSITION-ACCEPTANCE; corpus router/transition.json). The
4
+ // browser's own spelling is `document.startViewTransition(update | { update, types })`, and this
5
+ // is that call with the markup contract on it: `update` is an arrow function (or the object
6
+ // form), `types` ride either the object or `options`, the call never throws, and an AWAITED call
7
+ // binds the envelope `{ ok: true, data: { skipped, backend, reason? } }` or
8
+ // `{ ok: false, error: "update_failed", data: { message, backend } }`.
9
+ //
10
+ // THE UPDATE ALWAYS RUNS. A lane with no seam installed (a satellite, a server render, a test
11
+ // with nothing bound) runs it inline and answers `unsupported`; a lane that refuses for reduced
12
+ // motion runs it and says so. An author's state therefore never depends on whether an animation
13
+ // played, which is the one property that makes the call safe to write once for four renderers.
14
+ // A throw inside the update is CONSUMED into the envelope (the browser skips the transition and
15
+ // rejects `finished`; the action that called does not unwind), the same rule an awaited module
16
+ // call already follows. Twins: Stack.swift's `dsx.transition` arm and JseRunner.kt's, both over
17
+ // the same seam shape.
18
+ //
19
+ // ITS OWN MODULE, so the embed slicer can fold the whole plane: runner.ts reaches it through one
20
+ // guarded call, and a widget whose markup never spells `dsx.transition` ships none of this and
21
+ // none of view-transition-core.ts (embed-entry.ts `viewTransitions`).
22
+ //
23
+ import { isDict, isLambda } from "./jse/values.js";
24
+ import { normalizeTransitionTypes, transitionEnvelope } from "./view-transition-core.js";
25
+ /** THE VIEW TRANSITION SEAM. A kernel that ships in every bundle cannot name a document, a
26
+ * router host or a compositor, so the lane that owns one installs itself here (the web
27
+ * renderer's view-transition.ts at boot). An uninstalled seam is the UNSUPPORTED lane, and an
28
+ * unsupported lane still runs the update: state never depends on animation support. */
29
+ export const RunnerTransitionSeam = {
30
+ start: null,
31
+ skip: null,
32
+ };
33
+ export async function transitionDoor(host, callee, args, awaited) {
34
+ if (callee === "dsx.transition.skip") {
35
+ RunnerTransitionSeam.skip?.();
36
+ return null;
37
+ }
38
+ const first = args[0];
39
+ let fn = null;
40
+ let types = undefined;
41
+ if (isLambda(first))
42
+ fn = first;
43
+ else if (isDict(first)) {
44
+ const inner = first["update"];
45
+ if (isLambda(inner))
46
+ fn = inner;
47
+ types = first["types"];
48
+ }
49
+ const options = isDict(args[1]) ? args[1] : {};
50
+ if (options["types"] !== undefined)
51
+ types = options["types"];
52
+ const update = async () => {
53
+ const failed = await host.runUpdate(fn);
54
+ if (failed !== null)
55
+ throw new Error(failed);
56
+ };
57
+ const start = { types: normalizeTransitionTypes(types), frameId: host.frameId, update };
58
+ const unsupported = (updateFailed) => transitionEnvelope({
59
+ supported: false, backend: "none", reducedMotion: false, joined: false, superseded: false, skipped: false, updateFailed,
60
+ });
61
+ let promise;
62
+ if (RunnerTransitionSeam.start === null) {
63
+ promise = (async () => {
64
+ let updateFailed = null;
65
+ try {
66
+ await update();
67
+ }
68
+ catch (e) {
69
+ updateFailed = e instanceof Error ? e.message : String(e);
70
+ }
71
+ return unsupported(updateFailed);
72
+ })();
73
+ }
74
+ else {
75
+ promise = RunnerTransitionSeam.start(start);
76
+ }
77
+ if (awaited) {
78
+ try {
79
+ return await promise;
80
+ }
81
+ catch (e) {
82
+ return unsupported(e instanceof Error ? e.message : String(e));
83
+ }
84
+ }
85
+ promise.catch(() => { }); // fire and forget: the browser's own call answers nobody either
86
+ return null;
87
+ }
88
+ //# sourceMappingURL=view-transition-door.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-transition-door.js","sourceRoot":"","sources":["../src/view-transition-door.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,iGAAiG;AACjG,kGAAkG;AAClG,kGAAkG;AAClG,6FAA6F;AAC7F,kGAAkG;AAClG,6EAA6E;AAC7E,wEAAwE;AACxE,EAAE;AACF,+FAA+F;AAC/F,iGAAiG;AACjG,iGAAiG;AACjG,gGAAgG;AAChG,iGAAiG;AACjG,gGAAgG;AAChG,iGAAiG;AACjG,wBAAwB;AACxB,EAAE;AACF,kGAAkG;AAClG,gGAAgG;AAChG,uEAAuE;AACvE,EAAE;AAEF,OAAO,EAAE,MAAM,EAAE,QAAQ,EAA+B,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAYzF;;;wFAGwF;AACxF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,KAAK,EAAE,IAA0D;IACjE,IAAI,EAAE,IAA2B;CAClC,CAAC;AASF,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,IAAwB,EAAE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C;QAC5E,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY;KACxH,CAAoB,CAAC;IACtB,IAAI,OAAsB,CAAC;IAC3B,IAAI,oBAAoB,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;QACxC,OAAO,GAAG,CAAC,KAAK,IAAmB,EAAE;YACnC,IAAI,YAAY,GAAkB,IAAI,CAAC;YACvC,IAAI,CAAC;gBAAC,MAAM,MAAM,EAAE,CAAC;YAAC,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBAAC,YAAY,GAAG,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAAC,CAAC;YAChG,OAAO,WAAW,CAAC,YAAY,CAAC,CAAC;QACnC,CAAC,CAAC,EAAE,CAAC;IACP,CAAC;SAAM,CAAC;QACN,OAAO,GAAG,oBAAoB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC9C,CAAC;IACD,IAAI,OAAO,EAAE,CAAC;QACZ,IAAI,CAAC;YAAC,OAAO,MAAM,OAAO,CAAC;QAAC,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YAAC,OAAO,WAAW,CAAC,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,CAAC;IAC7G,CAAC;IACD,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC,CAAG,gEAAgE;IAC3F,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** The window the app's documents are drawn in: this document's identity, made once per load. */
2
+ export declare function documentWindow(): string;
3
+ //# sourceMappingURL=window-identity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"window-identity.d.ts","sourceRoot":"","sources":["../src/window-identity.ts"],"names":[],"mappings":"AAoBA,iGAAiG;AACjG,wBAAgB,cAAc,IAAI,MAAM,CAGvC"}
@@ -0,0 +1,27 @@
1
+ // The identity of an app window on the web, as one opaque string the bus carries (Article 8: no platform
2
+ // object in a contract). Authors compare it and never spell it. A page's window is its document: loading a
3
+ // document creates "a new Document" (https://html.spec.whatwg.org/multipage/document-lifecycle.html), and this module is evaluated once in it, so the value is made once per document load and is
4
+ // a different value in another tab or another load. It is random, never a count, so two documents never
5
+ // share one (https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID).
6
+ //
7
+ // The one engine source of the value, which every package reads; a multi-window model builds on it. Compare it
8
+ // within one load and never store it.
9
+ let documentWindowId = null;
10
+ function randomId() {
11
+ const c = globalThis.crypto;
12
+ if (typeof c?.randomUUID === "function")
13
+ return c.randomUUID();
14
+ const bytes = new Uint8Array(16);
15
+ if (typeof c?.getRandomValues === "function")
16
+ c.getRandomValues(bytes);
17
+ else
18
+ for (let i = 0; i < bytes.length; i++)
19
+ bytes[i] = Math.floor(Math.random() * 256);
20
+ return Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("");
21
+ }
22
+ /** The window the app's documents are drawn in: this document's identity, made once per load. */
23
+ export function documentWindow() {
24
+ documentWindowId ??= randomId();
25
+ return documentWindowId;
26
+ }
27
+ //# sourceMappingURL=window-identity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"window-identity.js","sourceRoot":"","sources":["../src/window-identity.ts"],"names":[],"mappings":"AAAA,yGAAyG;AACzG,2GAA2G;AAC3G,kMAAkM;AAClM,wGAAwG;AACxG,kFAAkF;AAClF,EAAE;AACF,+GAA+G;AAC/G,sCAAsC;AAEtC,IAAI,gBAAgB,GAAkB,IAAI,CAAC;AAE3C,SAAS,QAAQ;IACf,MAAM,CAAC,GAAI,UAA0G,CAAC,MAAM,CAAC;IAC7H,IAAI,OAAO,CAAC,EAAE,UAAU,KAAK,UAAU;QAAE,OAAO,CAAC,CAAC,UAAU,EAAE,CAAC;IAC/D,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;IACjC,IAAI,OAAO,CAAC,EAAE,eAAe,KAAK,UAAU;QAAE,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;;QAClE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE;YAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACvF,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5E,CAAC;AAED,iGAAiG;AACjG,MAAM,UAAU,cAAc;IAC5B,gBAAgB,KAAK,QAAQ,EAAE,CAAC;IAChC,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,141 @@
1
1
  {
2
2
  "name": "@despia-native/kernel",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.3.0",
4
+ "license": "Apache-2.0",
5
+ "author": "Despia LLC-FZ",
6
+ "type": "module",
7
+ "description": "DSX web kernel - path-keyed signal store, JSE (interpreter + compiled helpers), action runner, module bus. TypeScript twin of OpenSource/Engine/.",
8
+ "keywords": [
9
+ "despia",
10
+ "dsx",
11
+ "native",
12
+ "ios",
13
+ "android",
14
+ "runtime",
15
+ "signals",
16
+ "state",
17
+ "reactivity"
18
+ ],
19
+ "main": "./dist/index.js",
20
+ "types": "./dist/index.d.ts",
21
+ "dsx": {
22
+ "internalEntrypoints": {
23
+ "./jse": "internal, not published. JSE (the interpreter and its compiled helpers) is reached through the package root \".\" and through the kernel's own modules; src/jse/ is implementation, so there is no \"@despia-native/kernel/jse\" subpath to import and the public API contract records the decision rather than leaving it to a reader of the exports map."
24
+ }
25
+ },
26
+ "exports": {
27
+ ".": {
28
+ "types": "./dist/index.d.ts",
29
+ "import": "./dist/index.js",
30
+ "default": "./dist/index.js"
31
+ },
32
+ "./config-validate": {
33
+ "types": "./dist/config-validate.d.ts",
34
+ "import": "./dist/config-validate.js",
35
+ "default": "./dist/config-validate.js"
36
+ },
37
+ "./boot-tables": {
38
+ "types": "./dist/boot-tables.d.ts",
39
+ "import": "./dist/boot-tables.js",
40
+ "default": "./dist/boot-tables.js"
41
+ },
42
+ "./film": {
43
+ "types": "./dist/film.d.ts",
44
+ "import": "./dist/film.js",
45
+ "default": "./dist/film.js"
46
+ },
47
+ "./mcp": {
48
+ "types": "./dist/mcp.d.ts",
49
+ "import": "./dist/mcp.js",
50
+ "default": "./dist/mcp.js"
51
+ },
52
+ "./keyboard": {
53
+ "types": "./dist/keyboard.d.ts",
54
+ "import": "./dist/keyboard.js",
55
+ "default": "./dist/keyboard.js"
56
+ },
57
+ "./region-insets": {
58
+ "types": "./dist/region-insets.d.ts",
59
+ "import": "./dist/region-insets.js",
60
+ "default": "./dist/region-insets.js"
61
+ },
62
+ "./sheet-content-padding": {
63
+ "types": "./dist/sheet-content-padding.d.ts",
64
+ "import": "./dist/sheet-content-padding.js",
65
+ "default": "./dist/sheet-content-padding.js"
66
+ },
67
+ "./missing-element": {
68
+ "types": "./dist/missing-element.d.ts",
69
+ "import": "./dist/missing-element.js",
70
+ "default": "./dist/missing-element.js"
71
+ },
72
+ "./refusal": {
73
+ "types": "./dist/refusal.d.ts",
74
+ "import": "./dist/refusal.js",
75
+ "default": "./dist/refusal.js"
76
+ },
77
+ "./aria": {
78
+ "types": "./dist/aria.d.ts",
79
+ "import": "./dist/aria.js",
80
+ "default": "./dist/aria.js"
81
+ },
82
+ "./window-identity": {
83
+ "types": "./dist/window-identity.d.ts",
84
+ "import": "./dist/window-identity.js",
85
+ "default": "./dist/window-identity.js"
86
+ },
87
+ "./audio-core": {
88
+ "types": "./dist/audio-core.d.ts",
89
+ "import": "./dist/audio-core.js",
90
+ "default": "./dist/audio-core.js"
91
+ },
92
+ "./audio-edit": {
93
+ "types": "./dist/audio-edit.d.ts",
94
+ "import": "./dist/audio-edit.js",
95
+ "default": "./dist/audio-edit.js"
96
+ },
97
+ "./audio-mix": {
98
+ "types": "./dist/audio-mix.d.ts",
99
+ "import": "./dist/audio-mix.js",
100
+ "default": "./dist/audio-mix.js"
101
+ },
102
+ "./camera-core": {
103
+ "types": "./dist/camera-core.d.ts",
104
+ "import": "./dist/camera-core.js",
105
+ "default": "./dist/camera-core.js"
106
+ },
107
+ "./media-timeline-core": {
108
+ "types": "./dist/media-timeline-core.d.ts",
109
+ "import": "./dist/media-timeline-core.js",
110
+ "default": "./dist/media-timeline-core.js"
111
+ }
112
+ },
113
+ "files": [
114
+ "dist",
115
+ "README.md",
116
+ "LICENSE",
117
+ "NOTICE"
118
+ ],
119
+ "sideEffects": false,
120
+ "engines": {
121
+ "node": ">=22.18"
122
+ },
123
+ "repository": {
124
+ "type": "git",
125
+ "url": "git+https://github.com/despia-native/despia.git",
126
+ "directory": "Engine/TypeScript/packages/kernel"
127
+ },
128
+ "homepage": "https://github.com/despia-native/despia/tree/main/Engine/TypeScript/packages/kernel",
129
+ "bugs": {
130
+ "url": "https://github.com/despia-native/despia/issues"
131
+ },
132
+ "publishConfig": {
133
+ "access": "public",
134
+ "provenance": true
135
+ },
136
+ "scripts": {
137
+ "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true,maxRetries:5,retryDelay:50})\"",
138
+ "build": "node ../../scripts/atomic-dist.ts \"tsc -p tsconfig.build.json --outDir {out}\"",
139
+ "prepack": "node -e \"const f=require('node:fs');if(f.existsSync('src'))require('node:child_process').execFileSync(process.execPath,['../../scripts/build-stamp.ts','--ensure','--only','kernel','--label','prepack'],{stdio:'inherit'})\""
140
+ }
141
+ }