@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,595 @@
1
+ import { type Item } from "./jse/jse.ts";
2
+ import { tokenize } from "./jse/tokens.ts";
3
+ import { type Dict } from "./jse/values.ts";
4
+ import { ReactiveStore } from "./store.ts";
5
+ import { type SocketPort, type CallValue } from "./bus.ts";
6
+ /** The /web/15 escalation seam. Wired by `installJsTier()` (compile/jstier.ts) rather
7
+ * than imported here: the runner ships in EVERY bundle (self-contained embeds included)
8
+ * and the classifier+executor would otherwise ride along, the byte-scarcity lesson the
9
+ * screen seam above already encodes. Only a full surface (the dom boot/adopt hosts)
10
+ * installs it; an embed keeps the pre-W9 interpreter path for every body.
11
+ *
12
+ * ONE DOOR, ONE INSTALL. `route` is the WHOLE JS tier door and lives in compile/jstier.ts:
13
+ * the classifier, the two refusals (compile/tier-door.ts: provenance and the ambient fence)
14
+ * and the executor env, in that order, answering true when the body was handled (executed,
15
+ * or refused TOTALLY) and false when it belongs to the interpreter. All of it arrives with
16
+ * one line, because all of it is consulted on one path and nowhere else. That is what makes
17
+ * the fence undroppable: a bundler cannot keep the tier and drop the door, and a bundle with
18
+ * no door does not escalate at all, which is the fail closed direction. It replaces a fence
19
+ * that sat in runner.ts and shipped into every embed, where no `js` verdict can ever exist.
20
+ *
21
+ * `run` is the executor the door calls, a seam of its own only so a test can observe that a
22
+ * refused body never reaches an engine. */
23
+ export declare const RunnerJsTierSeam: {
24
+ route: ((runner: ActionRunner, body: string, scope: Dict) => Promise<boolean>) | null;
25
+ run: ((runner: ActionRunner, body: string, scope: Dict) => Promise<void>) | null;
26
+ };
27
+ /**
28
+ * ONE STATEMENT IS ABOUT TO RUN, and this is everything a debugger may know about it.
29
+ *
30
+ * The frame a paused run reports (`OpenSource/Conformance/debug/frames.json`) is assembled
31
+ * from these members and from the store the env already carries. Nothing here is a second
32
+ * opinion about anything: `locals` is a read of the one `JSE_SCOPE_LOCALS` ledger (jse.ts), `actionDepth`
33
+ * is the env's own counter against the cap of 32, and `chain` is the action names already
34
+ * kept for stamping a raised event.
35
+ */
36
+ export type DebugStop = {
37
+ /** the body being executed, exactly as the author wrote it */
38
+ body: string;
39
+ /** index into this body's token stream of the statement about to run */
40
+ token: number;
41
+ /** how many statements of THIS body have already been offered, zero for the first */
42
+ ordinal: number;
43
+ /** block nesting inside this body; zero is the body's own top level */
44
+ depth: number;
45
+ /** the live scope the statement will run in, which an evaluation reads */
46
+ scope: Dict;
47
+ /** the authored locals at this instant, snapshotted because the scope keeps moving */
48
+ locals: Dict;
49
+ /** action frames below this body, against the cap of 32 */
50
+ actionDepth: number;
51
+ /** the action names between the entry and this body, outermost first */
52
+ chain: readonly string[];
53
+ };
54
+ /**
55
+ * THE DEBUG CHOKE POINT, AND IT IS ABSENT UNLESS SOMETHING INSTALLS IT.
56
+ *
57
+ * `runStatements` offers every statement to `onStatement` and awaits what it answers, so a
58
+ * debugger holds a run simply by not resolving. Nothing else in the runner knows a debugger
59
+ * exists.
60
+ *
61
+ * WHY A SEAM RATHER THAN A FLAG. The debugger design calls this the
62
+ * load bearing half of the security rule: a rule enforced only by a credential check is one
63
+ * misconfiguration away from being off, so "a production build does not include the debug
64
+ * choke point at all". The development and Sandbox hosts install this; nothing else does, and
65
+ * a bundle where it is null has no code for a debug door to attach to. That is the refusal by
66
+ * absence `OpenSource/Conformance/debug/protocol.json` asserts in its production case, and it
67
+ * is the only enforcement that survives a bad day.
68
+ */
69
+ export declare const RunnerDebugSeam: {
70
+ onStatement: ((stop: DebugStop) => Promise<void> | void) | null;
71
+ /** THE ACTION LOG (the live inspector, day-one Q79): every handler entry and every declared
72
+ * action as it starts and as it ends, with its duration and the throw that ended it. A
73
+ * development host installs a listener; with none this costs one null test, and a production
74
+ * embed folds the call sites away with the rest of this plane (`__DSX_OPTIONAL_DEBUG__`). */
75
+ onAction: ((event: {
76
+ kind: "handler" | "action";
77
+ name: string;
78
+ phase: "start" | "end";
79
+ ms?: number;
80
+ error?: string;
81
+ args?: Dict;
82
+ store?: unknown;
83
+ }) => void) | null;
84
+ };
85
+ /**
86
+ * AND IN A PRODUCTION BUILD IT IS NOT COMPILED IN AT ALL.
87
+ *
88
+ * A null seam is absence at run time; this is absence at BUILD time, and section 5.3 of the
89
+ * debugger plan asks for the second one: "a production build does not include the debug choke
90
+ * point at all", because a rule enforced only by a field somebody could set is one assignment
91
+ * away from being off. An embed build pins `__DSX_OPTIONAL_DEBUG__` false
92
+ * (compiler/bin/embed-entry.ts, beside the link, adopt and JS tier folds) and the bundler folds
93
+ * this constant, the offer below, the stop it builds and the ledgers it keeps out of the graph.
94
+ *
95
+ * The G10 byte law is what made this urgent rather than merely correct: the choke point landed
96
+ * in every bundle including a self-contained widget, which has no debugger, no session and no
97
+ * door, and it put the demo embed over its gzip ceiling. A plane a widget can never reach is
98
+ * dead weight in a widget, which is the same argument the folds beside it already make.
99
+ */
100
+ /** THE DEFINE IS READ AT EVERY SITE AND NEVER THROUGH A CONST. The embed slicing suite already
101
+ * learned this one the hard way and wrote it down: the long-press recognizer came back into
102
+ * every widget when its define moved from the `if` into a const read one statement earlier, so
103
+ * the rule is that a fold's define must be an OPERAND of the `if` it guards. This helper is
104
+ * inlined by hand at each of its four sites for that reason, and this comment is here so the
105
+ * next reader does not tidy them into one. */
106
+ /**
107
+ * The screen-readiness face of the runner — a SEAM, not an import, exactly like
108
+ * `RunnerFetchSeam` below. `runner.ts` ships in EVERY bundle, including a self-contained
109
+ * embed; a static `import { ScreenReadiness } from "./screen.ts"` therefore dragged the whole
110
+ * per-frame readiness machine into every embed, which has no router and no frame lifecycle at
111
+ * all — that cost ~230B gzip and left 3B of headroom under the hard 50176B media qualification.
112
+ * The dom/router host wires this in `installScreenPhase()`; an embed never calls it, so the
113
+ * machine stays out of its graph and `dsx.screen.settled()` is the documented silent no-op
114
+ * there (Article 7, fail-open).
115
+ */
116
+ /** THE OTA ESCALATION DECISION (/web/15 law 3), as a pure function so one corpus can judge
117
+ * three renderers: OpenSource/Conformance/tier/ota-gate.json. May a body with this verdict,
118
+ * on a surface with this markup provenance, reach the JS tier? A jse-tier body is never the
119
+ * engine's business, so only the `js` verdict is gated. Twins: JsTierGate.admits in
120
+ * Engine/Swift/Tier.swift and Engine/Kotlin core Tier.kt, spelled the same way.
121
+ *
122
+ * It lives HERE, one line and no import, beside the doors table below, which is where the
123
+ * corpus points and which has a live producer in every bundle (dom mount.ts resolves a
124
+ * host's named door through it). The REFUSAL this decision feeds does not live here: it is
125
+ * compile/tier-door.ts, installed with the executor it guards. */
126
+ export declare function jsTierAdmits(tier: "jse" | "js", markupOverTheAir: boolean): boolean;
127
+ /** The door inventory, for the corpus and for a host enumerating what it may pass. */
128
+ export declare function markupDoors(): ReadonlyMap<string, boolean>;
129
+ /** Did markup admitted through this door arrive over the air? Unknown door: yes. */
130
+ export declare function markupDoorIsOverTheAir(door: string): boolean;
131
+ export declare const RunnerScreenSeam: {
132
+ settled: ((frameId: number) => void) | null;
133
+ };
134
+ export { RunnerTransitionSeam, type TransitionStart } from "./view-transition-door.ts";
135
+ export type ComponentVerb = "push" | "present" | "update" | "dismiss";
136
+ export type RunEnv = {
137
+ store: ReactiveStore;
138
+ /** row scope / payload (dsx.this) */
139
+ item: Item;
140
+ /** declared `<action>` table of this component: name → { body, inputs } */
141
+ actions: Map<string, {
142
+ body: string;
143
+ inputs: Dict;
144
+ }>;
145
+ /** declared `<api>` handles of this component: as → refresh/send/cancel */
146
+ /** Declared `<api as>` handles. TWO WORDS, both faces: `dsx.api.<as>(args?)` runs the
147
+ * request the declaration describes with its own method, and `dsx.api.<as>.cancel()` is
148
+ * the one lifecycle verb. `refresh`/`send` are retired, not aliased. */
149
+ /** `request()` is the MATERIALIZED request, and it is OPTIONAL here on purpose: only a real
150
+ * `<api>` block can answer it (ApiBlock.request — one materialization, never a second), and
151
+ * a host that stands a handle up by hand to satisfy this map should not be forced to invent
152
+ * one. Every caller of it is a READER (the devtools state door's api plane), and a reader
153
+ * with no request to show says so rather than guessing. */
154
+ apis: Map<string, {
155
+ call(args?: Dict, listener?: (name: string, payload: Dict) => Promise<void> | void): Promise<unknown>;
156
+ cancel(): void;
157
+ request?(): Dict;
158
+ }>;
159
+ /** Declared `<socket as>` handles (proposals/realtime.md R2): `dsx.socket.<as>.send(value)`,
160
+ * `.close()` and `.open()`. Optional so a host that declares no socket stands nothing up. */
161
+ sockets?: Map<string, {
162
+ send(value: unknown): Dict;
163
+ close(): void;
164
+ open(): void;
165
+ port?(): SocketPort;
166
+ }>;
167
+ /** Consumer event wiring: dsx.event('x') → the mounting side's on:x.
168
+ *
169
+ * THE RELAY PAYLOAD LAW, one law on four lanes (corpus
170
+ * OpenSource/Conformance/actions/bare-event-relay.json). `item` is the RAISING SCOPE, the row
171
+ * the event was raised from, and the consumer's `on:x` runs with that row merged UNDER the
172
+ * payload: every field of the row reads by name, and an explicit payload key of the same name
173
+ * wins. A bare `dsx.event('x')` from inside a bound row is the whole point: without the row the
174
+ * consumer is handed an empty scope and has nothing to act on.
175
+ *
176
+ * The third argument is REQUIRED, with no two-argument form kept. It used to be absent here and
177
+ * present on both native twins (Stack.swift emitEventUp, JseRunner.kt emitEventUp), so one
178
+ * markup read the row on iOS and Android and an empty payload on web: the platform parity
179
+ * register's bus/bare-event-relay-item-merge, carried ungated for a year because an optional
180
+ * argument is exactly what a caller forgets. `null` is the honest answer for a raise with no
181
+ * row, never an omission.
182
+ *
183
+ * The RELAY is the only carrier. The app-wide bus broadcast (`DSXEvents.publish`, native
184
+ * `publishNative`) stays payload only: a bus subscriber is not in the raiser's document, so a
185
+ * row is not addressed to it. */
186
+ emitEvent: (name: string, payload: Dict, item: Item, owner?: string) => void;
187
+ /** router seam: dsx.component.* */
188
+ component: (verb: ComponentVerb, name: string, opts: Dict) => void;
189
+ /** keyed timers (surface-scoped; cleared on unmount) */
190
+ timers: Map<string, {
191
+ id: ReturnType<typeof setTimeout>;
192
+ interval: boolean;
193
+ }>;
194
+ /** cookie write seam */
195
+ cookieSet?: (name: string, value: unknown) => void;
196
+ /** THE RESOLVED CONTEXT ACTIONS of this document (PROPOSED, proposals/context.md), keyed
197
+ * by the spelling that follows `dsx.context.` - `"addToCart"` flat, `"board.pick"` when
198
+ * the consumer's row carries `as="board"`. The value is the PROVIDER's runner and the
199
+ * action's name there; the renderer fills it in the head fold after walking the mount
200
+ * chain, and it is absent on every document that declares no context. Kept beside
201
+ * `actions` rather than as a third field on its value type, because `{ body, inputs }` is
202
+ * load-bearing everywhere and a third field would be paid for by every action in the
203
+ * language (the `sheets?` byte argument, applied to the runner). */
204
+ contexts?: Map<string, {
205
+ runner: ActionRunner;
206
+ name: string;
207
+ }>;
208
+ /** action recursion guard */
209
+ actionDepth: number;
210
+ /** shared loop budget per entry event */
211
+ loopWork: {
212
+ count: number;
213
+ };
214
+ /** The kernel navigation frame this surface belongs to. Every module call is stamped
215
+ * with this opaque `__frame` key, matching StackStore.frameId on Swift/Kotlin, so
216
+ * frame-scoped verbs (notably route.chrome) target the CALLING screen instead of
217
+ * whichever screen happens to be top when an async/on:appear call is delivered. */
218
+ frameId?: number;
219
+ /**
220
+ * WHERE THIS SURFACE'S MARKUP CAME FROM (/web/15 law 3). false or unset = markup that
221
+ * shipped with the binary (bundled first-party), which escalates to the JS tier freely.
222
+ * true = markup DELIVERED OVER THE AIR, which executes JSE tier only: a body classified
223
+ * `js` is REFUSED here and never reaches `RunnerJsTierSeam.run`.
224
+ *
225
+ * A boolean on the env rather than a global policy flag, because provenance is a fact
226
+ * about ONE document and a process may hold both kinds at once. The host that admits the
227
+ * markup is the only thing that knows, so it is the only thing that sets it: on web that
228
+ * is the scoping host threading `ScopedEnv` (mount.ts), on the native lanes the same word
229
+ * on StackStore. Unset is the safe default only because unset means "the binary's own
230
+ * markup"; anything a host fetched must say so.
231
+ */
232
+ markupOverTheAir?: boolean;
233
+ /** the surface's owning package scheme — the SOURCE an ambient `dsx.error(...)` records
234
+ * (error-system.md §3.4; portable components never hard-code their own scheme).
235
+ * Unset = app-level markup, recorded as "app". */
236
+ ownerScheme?: string;
237
+ /**
238
+ * THE MODULE FUNNEL, OVERRIDABLE (backend-authoring.md D6). A surface's module calls go to
239
+ * the process-global `ModuleRegistry`, which is exactly right for a surface: one app, one
240
+ * registry, one set of modules for the process lifetime. A SERVER is the other case — the
241
+ * modules a body may reach are request-scoped, because the repository they front carries
242
+ * the CALLER's verified identity, and a global registry cannot hold a per-caller table
243
+ * without two concurrent requests overwriting each other's.
244
+ *
245
+ * Unset (every surface) = the global registry, byte-identical to before. Set (the server
246
+ * host) = this function receives the SAME dotted remainder the registry would have folded,
247
+ * and owns resolution. This is the only kernel change the server-authoring program needs.
248
+ */
249
+ callModule?: (chain: string, args: Dict, events?: (name: string, value: unknown) => void) => Promise<unknown>;
250
+ /**
251
+ * BOUNDED EXECUTION for a host that runs bodies it did not write (the server). All three are
252
+ * unset on a surface, where the defaults below apply and nothing changes.
253
+ *
254
+ * `loopCap` — overrides LOOP_CAP for this entry (a request is not a UI event; a tighter
255
+ * ceiling is appropriate when thousands of tenants share a deployment).
256
+ * `deadlineAt` — wall-clock epoch ms after which the loop budget reports exceeded. A
257
+ * deadline that only lives outside the runner cannot stop the loop it is
258
+ * waiting on; checked at the same choke point the loop budget uses.
259
+ * `callBudget` — how many module calls one entry may make. A body that cannot loop forever
260
+ * can still call forever, and a call is the expensive verb here (it reaches
261
+ * a database).
262
+ */
263
+ loopCap?: number;
264
+ deadlineAt?: number;
265
+ callBudget?: {
266
+ count: number;
267
+ cap: number;
268
+ };
269
+ /**
270
+ * EGRESS GATE. Unset (every surface) = the platform's own network reachability decides,
271
+ * which is correct in a browser or an app where the sandbox is the OS's. On a server the
272
+ * process can reach the cloud metadata endpoint and the whole private subnet, so a host
273
+ * running third-party bodies decides per URL. A refused request never leaves the process;
274
+ * it answers the invalid-request shape (status -2) — see `fetchFunnel`.
275
+ */
276
+ egress?: (url: string) => boolean;
277
+ /** Host-owned request transport, scoped to this execution and selected after request guards. */
278
+ fetchTransport?: (url: string, opts: Dict) => Promise<Dict>;
279
+ };
280
+ export declare function makeRunEnv(store: ReactiveStore, partial?: Partial<RunEnv>): RunEnv;
281
+ /** THE LAW OF THE TWO WORDS, invoke face (constitution Article 3; master plan P1 46 -
282
+ * `dsx.` is mandatory). A declared `<api as="orders">` is reached exactly two ways from a
283
+ * body: `dsx.api.orders(args?)` RUNS the request the declaration describes, with the
284
+ * method the declaration already states (a GET called is the re-read, a non-GET called is
285
+ * the submit and `args` is the optional body override), and `dsx.api.orders.cancel()` is
286
+ * the one lifecycle verb a running request needs. `refresh` and `send` were two names for
287
+ * one idea whose difference `method=` already carried, so they are RETIRED - not aliased,
288
+ * per the constitution's experimental-release compatibility policy - and neither they nor
289
+ * the bare `orders.refresh()` spelling resolves here to anything at all. The linter names
290
+ * `dsx.api.<as>()` for every one of them. Twins: Stack.swift `apiCallTarget`,
291
+ * JseRunner.kt `apiCallTarget`. */
292
+ export type ApiCallTarget = {
293
+ handle: NonNullable<ReturnType<RunEnv["apis"]["get"]>>;
294
+ cancel: boolean;
295
+ };
296
+ export declare function apiCallTarget(callee: string, apis: RunEnv["apis"]): ApiCallTarget | null;
297
+ /** proposals/realtime.md R2: the three socket verbs, `dsx.socket.<as>.send(v)`, `.close()` and
298
+ * `.open()`. Nothing else on `dsx.socket.` is callable; reads fold to the envelope (jse.ts). */
299
+ export type SocketCallTarget = {
300
+ handle: NonNullable<ReturnType<NonNullable<RunEnv["sockets"]>["get"]>>;
301
+ verb: "send" | "close" | "open";
302
+ };
303
+ export declare function socketCallTarget(callee: string, sockets: RunEnv["sockets"]): SocketCallTarget | null;
304
+ /** THE EFFECT VERB ROSTER, exported because a second reader needs the SAME list.
305
+ * `effectVerb` below is the only thing that runs these, but the bare-reach analyser has to
306
+ * know a `<word>:` statement is a statement before it can judge the names inside one: it
307
+ * read `fetch: feed = GET https://…` as an expression and called `GET` and `https` bare
308
+ * reaches, suggesting `dsx.attribute.GET`. A roster copied into the compiler would go stale
309
+ * the first time a verb is added here, so the compiler imports this one. */
310
+ export declare const EFFECT_VERBS: ReadonlySet<string>;
311
+ /** AUTHORED locals in a scope (const/let declarations, for…of loop vars, catch vars) —
312
+ * the ONLY names an assignment may write in-scope. Every other write routes to the
313
+ * owning store (the reference store-always contract, actions corpus), so an entry-
314
+ * payload key riding dsx.this can never shadow a store write the way a plain
315
+ * hasOwnProperty check let it. Non-enumerable, so scope spreads don't carry it. */
316
+ /**
317
+ * THE LEDGER, READ FROM OUTSIDE. The authored local names in a scope, sorted.
318
+ *
319
+ * The ledger's WRITER stays with the binders and must: a writer handed out here would let something
320
+ * other than the runner decide what an assignment may write in-scope, which is the one thing
321
+ * the ledger exists to decide. A READER is a different fact, and a debugger needs it:
322
+ * `OpenSource/Conformance/debug/frames.json` reports "the locals as their own member",
323
+ * separate from the store, and its `_locals_are_not_store` note gives the reason - a bare name
324
+ * could be either, and reporting them in one bag teaches the confusion the ledger removes.
325
+ */
326
+ export declare function scopeLocalNames(scope: Dict): string[];
327
+ /** The same ledger with each name's current value. A name declared but not yet assigned is a
328
+ * name with no value rather than a missing name, so the caller can tell the two apart. */
329
+ export declare function scopeLocals(scope: Dict): Dict;
330
+ /** Route a write to its owning store (the reference `write`). Bare single-segment
331
+ * names that are AUTHORED locals in `scope` write the scope (loop counters, awaited
332
+ * consts); names that merely EXIST in scope (item fields, the entry payload) write
333
+ * the store — the store-always reference behavior. */
334
+ export declare function writePath(env: RunEnv, scope: Dict, rawPath: string, value: unknown): void;
335
+ /** The row writer a surface hands a handler run inside a bound row (dom mount.ts runHandler):
336
+ * `(fieldPath, value) => written`. A registered symbol, so it survives the scope's spreads. */
337
+ export declare const ROW_WRITER: unique symbol;
338
+ export declare function readPath(env: RunEnv, scope: Dict, rawPath: string): unknown;
339
+ /** Stamp the emitter's identity onto an event payload as `__from = { type, name }`, so a
340
+ * consumer's `from:<type>` / `from:<type>.<name>` filter can say WHICH source it accepts.
341
+ * The reference is Stack.swift's `stampFrom` and JseRunner.kt's twin, byte for byte in
342
+ * behaviour: nothing is stamped without a name, and a `__from` the author wrote at the call
343
+ * site is never overwritten, so an unfiltered `dsx.event('x')` is unchanged. */
344
+ export declare function stampFrom(payload: Dict, type: string, name: string | undefined): Dict;
345
+ /** Whether a consumer's `from:<event>` filter accepts `payload` (reference/events.md, "Filtering by emitter"). The
346
+ * reference is Stack.swift's `OnHandler.accepts` and JseRunner.kt's twin: no filter accepts everything; a set filter
347
+ * rejects a payload with no `__from`; `action=` / `component=` match the stamp's type and name, a bare value its name. */
348
+ export declare function acceptsFrom(filter: string | undefined, payload: Dict): boolean;
349
+ /**
350
+ * How an action was reached. There are exactly two kinds of call and only one of them has a
351
+ * caller: a SURFACE call comes from another action or an `on:*` handler, which has a scope; an
352
+ * ENTRY call comes from a host — an HTTP request, a CLI invocation, a queue message — which has
353
+ * a payload and no scope at all. `callAction` needs to be told which, because a declared input
354
+ * means a different (both correct) thing in each. See the note inside `callAction`.
355
+ */
356
+ export interface CallActionOptions {
357
+ /** true when a HOST is invoking this action from outside the document. */
358
+ entry?: boolean;
359
+ }
360
+ /** THE TIMERS OF A PAGE OUT OF VIEW. A page the router has taken out of the document (a parked tab page, a covered
361
+ * page of the back stack) keeps its state but does no timer work: while its frame is held, every `setTimeout` /
362
+ * `setInterval` tick of an instance mounted in that frame is kept (one per timer) instead of run, and the kept
363
+ * ticks run once, in order, when the frame is released. The router holds and releases; DOM-free like the rest. */
364
+ export declare const FrameTimers: {
365
+ held: Map<number, Map<string, () => void>>;
366
+ hold(frame: number): void;
367
+ /** Keep `tick` for later when `frame` is held; false when the frame is live and the tick should run now. */
368
+ defer(frame: number, id: string, tick: () => void): boolean;
369
+ release(frame: number): void;
370
+ /** The frame left for good: drop its kept ticks without running them. */
371
+ drop(frame: number): void;
372
+ };
373
+ export declare class ActionRunner {
374
+ #private;
375
+ readonly env: RunEnv;
376
+ constructor(env: RunEnv);
377
+ /** Entry: run an `on:*` handler string or an `<action>` body. A fresh entry event
378
+ * (depth 0) resets the bounded-execution ledgers and any stray flow signal; the
379
+ * 32-frame recursion cap is owned by callAction (the action-call frame), matching
380
+ * the JseRunner contract exactly. */
381
+ run(action: string, item?: Item, args?: Dict): Promise<void>;
382
+ /** ONE PIECE OF A LOAD THE SERVER PHASE SPLIT (phase-plan.ts): `locals` are the top-level locals the earlier piece
383
+ * declared, declared again before `body` runs; the answer says how the piece ended and the top-level locals it holds
384
+ * now, so the next piece (on the server, or the client's remainder) reads the same values. */
385
+ runPhase(body: string, item: Item, args: Dict, locals?: Dict): Promise<{
386
+ ended: "done" | "return" | "throw";
387
+ locals: Dict;
388
+ }>;
389
+ /**
390
+ * Read and CLEAR a pending throw — the server's half of an action call
391
+ * (backend-authoring.md; `@despia-native/server` shapes the outcome, this only hands over the signal).
392
+ *
393
+ * A surface entry is fire-and-forget: a tap has no caller waiting, so `run()` reports an
394
+ * uncaught throw to the ledger and swallows it. A request has a caller, and the throw IS the
395
+ * answer — a deliberate `throw { code: 'invalid_request' }` is a 400, not a server fault, and must
396
+ * not be filed as an unobserved runtime error. Kept to four lines on purpose: this method
397
+ * ships in every bundle including a self-contained embed, so the outcome shaping lives in the
398
+ * server package where no embed can pay for it.
399
+ */
400
+ /** Record a value thrown out of the JS TIER executor as this runner's flow signal, so a
401
+ * caller's try/catch and the uncaught fan-out behave identically across tiers. The
402
+ * executor's env is built in compile/jstier.ts, which ships only where the tier does. */
403
+ recordThrow(e: unknown): void;
404
+ takeThrow(): {
405
+ value: unknown;
406
+ } | null;
407
+ /** How long a NEW entry waits for the in-flight one before proceeding anyway (ms).
408
+ * The exclusivity below exists to protect the per-entry ledgers while a body is
409
+ * suspended at an `await` — but an entry whose awaited module call NEVER settles
410
+ * (a clipboard read hanging on permission, an interactive paywall held open) must
411
+ * not freeze every later tap on the surface forever: bounded execution is the JSE
412
+ * law, and the iOS runner (the reference) interleaves entries freely at suspension
413
+ * points. Interleaving is ledger-safe there by construction — at any suspension
414
+ * point the flow signal is null (signals unwind synchronously) and a reset loop
415
+ * budget only ever REFRESHES the suspended entry's allowance — so proceeding after
416
+ * a bounded wait trades a theoretical budget refresh for never bricking the page. */
417
+ private static readonly ENTRY_LOCK_BOUND_MS;
418
+ static readonly WAIT_BOUND_MS = 30000;
419
+ /** Invoke a declared `<action as=…>` — declared inputs evaluated in CALLER scope,
420
+ * first-arg object merges into the action scope, payload rides dsx.this. Actions
421
+ * ARE workflows: they call each other (`dsx.action.x()` / bare `x()`), chain, and
422
+ * pass args — depth-capped at 32 so a recursive workflow is bounded, never a hang
423
+ * (the JseRunner contract). Each call runs with its OWN flow signal, so a nested
424
+ * action's `return`/`break` can't abort the caller.
425
+ *
426
+ * RETURNING ACTIONS (actions corpus): resolves to the callee's OWN `return <expr>`
427
+ * value — captured from its flow signal {kind:"return", value} BEFORE the caller's
428
+ * flow is swapped back, so a nested call's leftover can never masquerade as this
429
+ * callee's return. Null when the body never returned (or returned bare). Only an
430
+ * AWAITING `dsx.action` caller consumes it; every other call site ignores it.
431
+ *
432
+ * THE HOST RULE (jse.md): a HOST entry (`options.entry`, the CLI node, a server request, a
433
+ * context provider's call) is an entry of its own, so calls its body makes without `await`
434
+ * start and the body goes on, as on a surface; the host's answer still waits for every one of
435
+ * them to finish (Workers' waitUntil), so a request never ends with its side effects cut off. */
436
+ callAction(name: string, callArgs: Dict, item?: Item, payload?: Dict, options?: CallActionOptions): Promise<unknown>;
437
+ private callActionFrame;
438
+ /** the current flow signal is a `throw` (a real exception to propagate) */
439
+ private threw;
440
+ /** `dsx.action.x()` WITHOUT `await` follows JavaScript (Conformance/actions `unawaited-*`): the
441
+ * callee runs as its own strand up to its first real suspension, then the caller goes on; the
442
+ * callee's rest runs when the caller waits or ends (the baton). Its throw, early or late, is
443
+ * reported like an unhandled rejection and never stops the caller. */
444
+ private startUnawaited;
445
+ /** Await something that really suspends, with the store let go for the wait: what the action
446
+ * wrote so far paints ("Saving..."), and a write that lands from elsewhere during the wait is
447
+ * not held back by this action. Another entry may run meanwhile (the baton) and resets the
448
+ * per-entry ledgers when it starts, so this entry's own are put back before it resumes, with
449
+ * the baton and the hold taken again. */
450
+ private suspend;
451
+ private flow;
452
+ /** > 0 while a `try` BODY runs. THE UNIVERSAL FEATURE DETECTION LAW (jse.md, "try/catch
453
+ * is universal feature-detection"): inside a try, a call to a module that is not in this
454
+ * build, or to an action no `<action>` declares, throws `{ code: "not_loaded", call }` so
455
+ * the catch runs the fallback; outside a try the same call stays a silent no-op, because
456
+ * a missing OPTIONAL module must never crash a surface.
457
+ *
458
+ * Both natives have carried this counter since the law was written (Stack.swift
459
+ * `store.tryDepth`, JseRunner.kt the same). This runner never had it, so the documented
460
+ * catch NEVER RAN on the web: a fire and forget module call swallowed its rejection, an
461
+ * awaited one bound the `{ ok: false }` envelope and kept going, and an unknown action
462
+ * warned to the console and answered null. Every capability fallback an author wrote in
463
+ * the documented shape therefore did nothing here and worked on a phone, which is the
464
+ * worst possible split for a feature detection idiom (Appendix E item 2). */
465
+ private tryDepth;
466
+ /** the action whose body wrote each callback handed to an action call (`dsx.action.x(args, { … })`) */
467
+ private readonly lambdaOwners;
468
+ /** Record the caller as the writer of each callback in a call's callback map. */
469
+ private ownCallbacks;
470
+ /** the entry whose strand is executing (the baton's unit); null for a body run outside an entry */
471
+ private entry;
472
+ private runStatements;
473
+ /** Block nesting of the statements currently being offered to the debug seam, and the stack
474
+ * the nesting is restored from. Both are written only behind the fold. */
475
+ private debugDepth;
476
+ private readonly debugOuter;
477
+ /** Statements offered to the debug seam in the body now running. Saved and restored around
478
+ * an action call for the same reason `entryBody` is: the callee's count is its own. */
479
+ private debugStops;
480
+ private statement;
481
+ private declStmt;
482
+ /** One leaf statement (assignment / call / mutation) — the runJSStatement table. */
483
+ private leafStatement;
484
+ /** THE SETTLE OF A CALL STATEMENT, shared by `dsx.module.*` and `dsx.stop`: awaited it binds the
485
+ * envelope and never throws; unawaited outside a `try` the handler goes on and a failure reports like
486
+ * an unhandled rejection; otherwise it waits and a failure throws `{ code, call, message? }`. An
487
+ * unawaited statement answers `answer()` (the held call's value, or null). */
488
+ private settleCall;
489
+ /** `dsx.transition(update, options?)` and `dsx.transition.skip()`, THE JSE DOOR ONTO VIEW
490
+ * TRANSITIONS. The door itself is view-transition-door.ts; this is the runner's side of it
491
+ * (the lambda run with its throw captured, the frame id) and the EMBED FOLD: a self-contained
492
+ * widget whose markup never spells `dsx.transition` ships neither the door nor the pure folds
493
+ * behind it (embed-entry.ts `viewTransitions`), and the call still runs the update and answers
494
+ * the unsupported lane, so the law holds with the plane folded out. */
495
+ private transitionStatement;
496
+ /** Run an update lambda and CONSUME a throw into a message: the transition owns the throw,
497
+ * the calling action goes on (the browser skips the transition and rejects `finished`). */
498
+ private runCapturingThrow;
499
+ private transitionDoorHost;
500
+ /** Timer/handler lambdas run as ACTION bodies (statements, store writes allowed) — a fresh
501
+ * top-level entry, so it takes the same exclusive lock as run() (a timer must never fire
502
+ * into the middle of a suspended handler's ledger). */
503
+ private invokeLambdaAsAction;
504
+ /** Run an action-event CALLBACK lambda inline within the CURRENT entry — it fires from
505
+ * inside a running action (dsx.event), so it must NOT take the entry lock (that would
506
+ * deadlock on the very entry it runs under); it nests under the shared 32-frame action
507
+ * depth instead, like the native emitEventUp. The payload rides dsx.this. */
508
+ /** THE CALL'S OWN HANDLERS (reference/jse.md): `dsx.api.<as>(args, { success,
509
+ * error, message, progress })`, the action call's callback dict on the api call. Each callback
510
+ * runs with the event's payload in `dsx.this`, additive to the tag's `on:*`. */
511
+ /** A MODULE CALL'S OWN CALLBACKS (Conformance/actions
512
+ * `module-late-event-*`): `dsx.module.x.y(args, { name: (e) => … })` runs `name` for every event
513
+ * the handler raises for this call, before or after it settled, awaited or not, while the
514
+ * calling component is mounted. A callback's throw is reported like an uncaught one. */
515
+ private moduleCallListener;
516
+ private apiCallListener;
517
+ private runLambdaInline;
518
+ /**
519
+ * THE ACTION BODY'S ARRAY LAW (reference/jse.md). The one hook every
520
+ * evaluation this runner performs installs, and the statement arm consults: a mutator on a
521
+ * dotted path whose value is an array (or nothing, read as `[]`) mutates through `writePath`
522
+ * and answers JavaScript's value. The router verb, module methods and a declared action named
523
+ * like a verb stay calls, and any other value keeps its pure reading. Twins: Stack.swift
524
+ * `arrayHook`, JseRunner.kt `arrayHook`.
525
+ */
526
+ private readonly arrayHook;
527
+ private mutateArray;
528
+ /** AN EXPRESSION-POSITION INCREMENT IN AN ACTION BODY (JSE-VS-JS item 11):
529
+ * `dsx.variable.m = dsx.variable.n++` writes n as the statement `dsx.variable.n++` would
530
+ * (writePath: an authored local stays local, a `dsx.` path is the store) and answers the old
531
+ * value; `++` in front answers the new one. A `[expr]` link evaluates once, to the same
532
+ * dotted segment the indexed assignment writes. */
533
+ private bumpPath;
534
+ private evalSync;
535
+ /** Evaluate statement-position expressions: strips a leading `await`, routes
536
+ * `fetch(…)` / `dsx.module…` / `dsx.event…` to their async implementations, and
537
+ * awaits any Promise the expression yields. */
538
+ private evalMaybeAsync;
539
+ /** THE ONE network funnel. A surface reaches the platform fetch through every guard
540
+ * `runnerFetch` already applies. A host that runs bodies it did not write binds
541
+ * `env.egress`, and a refused URL answers the invalid-request shape (status -2) WITHOUT
542
+ * the request ever leaving the process — which is the property that matters. The refusal
543
+ * stays distinguishable from an unreachable host (status 0) on purpose: the allowlist is
544
+ * the author's own declaration, so hiding it from them buys nothing and costs every
545
+ * debugging session. */
546
+ private fetchFunnel;
547
+ /** THE ONE module funnel: the env's override when a host bound one (the server's
548
+ * request-scoped table), the global registry otherwise. Both tiers charge the same
549
+ * call budget, so an escalated body cannot buy calls the interpreter would refuse. */
550
+ /** The ONE module funnel. Reachable from compile/jstier.ts, which builds the JS tier
551
+ * executor's env out of this runner's routing rather than making every bundle carry it. */
552
+ callModuleFunnel(chain: string, args: Dict, events?: (name: string, value: unknown) => void, held?: (call: CallValue) => void): Promise<unknown>;
553
+ }
554
+ /** THE ATTRIBUTES THAT ASK YES OR NO and may read a variable that holds a running call:
555
+ * the seams that refuse a held call on an element's attribute skip them, and the element reads the value as it did
556
+ * before that rule. How a call reads as yes or no is not decided here. `visible-if`, the other such attribute, is
557
+ * consumed by the mount and never reaches the seam. Twins: JseRunner.kt and Stack.swift `HELD_CALL_YES_NO`. */
558
+ export declare const HELD_CALL_YES_NO: ReadonlySet<string>;
559
+ /** Whether `tag`'s `name` is a yes/no attribute the element reads with a held call in it (`HELD_CALL_YES_NO`): only on
560
+ * a tag that is neither dotted nor capitalised. Any other tag (a child document, a native component `<scheme.Name>`,
561
+ * a lower-case tag written with its scheme) refuses every held call, as dev's rule had it before the ruling.
562
+ * Twins: JseRunner.kt and Stack.swift `heldCallYesNoRead`. */
563
+ export declare function heldCallYesNoRead(tag: string, name: string): boolean;
564
+ /** A CHILD COMPONENT'S ATTRIBUTE THAT WOULD CARRY A RUNNING CALL (constitution Article 14.2: a running call is
565
+ * never passed to another document). The renderer has bound `name` to `value` in the consumer's `store`; when the
566
+ * value carries a call at any depth the binding is refused: the answer is true, the renderer leaves the attribute
567
+ * out so the child sees it absent, and the refusal is reported as a failed call outside a `try` is (Article 28.13):
568
+ * one `invalid_param` entry in the error log (origin `uncaught`) naming the attribute, once per call and attribute
569
+ * in that store, however often the binding renders. Twins: JseRunner.kt and Stack.swift `refusesHeldAttribute`. */
570
+ export declare function refusesHeldAttribute(store: object, scheme: string, name: string, value: unknown): boolean;
571
+ /** Two-way `bind=` writes from input elements — the SAME routing as action
572
+ * assignments (global./route./cookie./surface), exported for @despia-native/dom. */
573
+ export declare function writeBound(env: RunEnv, path: string, value: unknown): void;
574
+ /** A ROW'S OWN FIELD written into the bound array (`bind="dsx.this.name"` in a row, the row
575
+ * write dom/src/mount.ts makes for a collection over a plain path). `arrayPath` is the
576
+ * collection's bind, already normalized. A path-shaped computed collection still has no
577
+ * storage of its own: its handler writes the stored owner, just like writeBound. */
578
+ export declare function writeRow(env: RunEnv, arrayPath: string, index: number, field: string, value: unknown): void;
579
+ /** THE WHOLE BOUND ARRAY replaced, the write a reorder drop makes (List.swift's `setBound`). */
580
+ export declare function writeRows(env: RunEnv, arrayPath: string, rows: unknown): void;
581
+ /** A REORDER DROP THAT DECLARES ITS MOVE (context.md 9.9; composition/context.json `writeBack`).
582
+ * A collection bound to `dsx.context.*` with a non-empty `on:move` moves the provider's rows
583
+ * through the consumer's own code (the provider's action), so the bind's write-back is the
584
+ * declared path's to skip: nothing is written and nothing is said, and `on:move` fires. The
585
+ * linter allows exactly this form (89008e4b7); without `on:move` the drop is still refused by
586
+ * `writeRows`. Kotlin `contextDeclaredDrop`, Swift `StackContextFold.declaredDrop`. */
587
+ export declare function declaredDrop(arrayPath: string, onMove: string | undefined): boolean;
588
+ /** wired by the host for tests / SSR proxying; defaults to the platform fetch. */
589
+ export declare const RunnerFetchSeam: {
590
+ impl: ((url: string, init: Dict) => Promise<Dict>) | null;
591
+ };
592
+ /** Shared bounded wire transport for runner hosts. It does not invoke RunnerFetchSeam. */
593
+ export declare function runnerFetchTransport(url: string, opts: Dict, timeoutMs?: number): Promise<Dict>;
594
+ export { tokenize };
595
+ //# sourceMappingURL=runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAqY,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AAC5a,OAAO,EAAgB,QAAQ,EAAc,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAA6D,KAAK,IAAI,EAAoB,MAAM,iBAAiB,CAAC;AACzH,OAAO,EAAE,aAAa,EAAuE,MAAM,YAAY,CAAC;AAChH,OAAO,EAAgE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAMzH;;;;;;;;;;;;;;;;4CAgB4C;AAC5C,eAAO,MAAM,gBAAgB;WACZ,CAAC,CAAC,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI;SAChF,CAAC,CAAC,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI;CACzF,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,qFAAqF;IACrF,OAAO,EAAE,MAAM,CA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