@elaraai/e3-web 0.0.0-stage → 1.0.85

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 (303) hide show
  1. package/LICENSE.md +54 -0
  2. package/README.md +395 -2
  3. package/dist/src/app.d.ts +91 -0
  4. package/dist/src/app.d.ts.map +1 -0
  5. package/dist/src/app.js +112 -0
  6. package/dist/src/app.js.map +1 -0
  7. package/dist/src/bridge/bridge.spec.d.ts +6 -0
  8. package/dist/src/bridge/bridge.spec.d.ts.map +1 -0
  9. package/dist/src/bridge/bridge.spec.js +56 -0
  10. package/dist/src/bridge/bridge.spec.js.map +1 -0
  11. package/dist/src/bridge/page.d.ts +149 -0
  12. package/dist/src/bridge/page.d.ts.map +1 -0
  13. package/dist/src/bridge/page.js +328 -0
  14. package/dist/src/bridge/page.js.map +1 -0
  15. package/dist/src/bridge/protocol.d.ts +181 -0
  16. package/dist/src/bridge/protocol.d.ts.map +1 -0
  17. package/dist/src/bridge/protocol.js +113 -0
  18. package/dist/src/bridge/protocol.js.map +1 -0
  19. package/dist/src/bridge/worker.d.ts +124 -0
  20. package/dist/src/bridge/worker.d.ts.map +1 -0
  21. package/dist/src/bridge/worker.js +185 -0
  22. package/dist/src/bridge/worker.js.map +1 -0
  23. package/dist/src/browser/bridge.page.d.ts +12 -0
  24. package/dist/src/browser/bridge.page.d.ts.map +1 -0
  25. package/dist/src/browser/bridge.page.js +79 -0
  26. package/dist/src/browser/bridge.page.js.map +1 -0
  27. package/dist/src/browser/bridge.spec.d.ts +6 -0
  28. package/dist/src/browser/bridge.spec.d.ts.map +1 -0
  29. package/dist/src/browser/bridge.spec.js +105 -0
  30. package/dist/src/browser/bridge.spec.js.map +1 -0
  31. package/dist/src/browser/bridge.worker.d.ts +6 -0
  32. package/dist/src/browser/bridge.worker.d.ts.map +1 -0
  33. package/dist/src/browser/bridge.worker.js +35 -0
  34. package/dist/src/browser/bridge.worker.js.map +1 -0
  35. package/dist/src/browser/compliance.d.ts +68 -0
  36. package/dist/src/browser/compliance.d.ts.map +1 -0
  37. package/dist/src/browser/compliance.js +30 -0
  38. package/dist/src/browser/compliance.js.map +1 -0
  39. package/dist/src/browser/compliance.page.d.ts +6 -0
  40. package/dist/src/browser/compliance.page.d.ts.map +1 -0
  41. package/dist/src/browser/compliance.page.js +204 -0
  42. package/dist/src/browser/compliance.page.js.map +1 -0
  43. package/dist/src/browser/compliance.spec.d.ts +6 -0
  44. package/dist/src/browser/compliance.spec.d.ts.map +1 -0
  45. package/dist/src/browser/compliance.spec.js +147 -0
  46. package/dist/src/browser/compliance.spec.js.map +1 -0
  47. package/dist/src/browser/e3-api-1.spec.d.ts +6 -0
  48. package/dist/src/browser/e3-api-1.spec.d.ts.map +1 -0
  49. package/dist/src/browser/e3-api-1.spec.js +12 -0
  50. package/dist/src/browser/e3-api-1.spec.js.map +1 -0
  51. package/dist/src/browser/e3-api-2.spec.d.ts +6 -0
  52. package/dist/src/browser/e3-api-2.spec.d.ts.map +1 -0
  53. package/dist/src/browser/e3-api-2.spec.js +12 -0
  54. package/dist/src/browser/e3-api-2.spec.js.map +1 -0
  55. package/dist/src/browser/e3-api-3.spec.d.ts +6 -0
  56. package/dist/src/browser/e3-api-3.spec.d.ts.map +1 -0
  57. package/dist/src/browser/e3-api-3.spec.js +12 -0
  58. package/dist/src/browser/e3-api-3.spec.js.map +1 -0
  59. package/dist/src/browser/e3-api-parts.spec.d.ts +6 -0
  60. package/dist/src/browser/e3-api-parts.spec.d.ts.map +1 -0
  61. package/dist/src/browser/e3-api-parts.spec.js +45 -0
  62. package/dist/src/browser/e3-api-parts.spec.js.map +1 -0
  63. package/dist/src/browser/e3-api.d.ts +28 -0
  64. package/dist/src/browser/e3-api.d.ts.map +1 -0
  65. package/dist/src/browser/e3-api.js +144 -0
  66. package/dist/src/browser/e3-api.js.map +1 -0
  67. package/dist/src/browser/e3-client.worker.d.ts +6 -0
  68. package/dist/src/browser/e3-client.worker.d.ts.map +1 -0
  69. package/dist/src/browser/e3-client.worker.js +19 -0
  70. package/dist/src/browser/e3-client.worker.js.map +1 -0
  71. package/dist/src/browser/e3-forward.d.ts +27 -0
  72. package/dist/src/browser/e3-forward.d.ts.map +1 -0
  73. package/dist/src/browser/e3-forward.js +81 -0
  74. package/dist/src/browser/e3-forward.js.map +1 -0
  75. package/dist/src/browser/e3-forward.spec.d.ts +6 -0
  76. package/dist/src/browser/e3-forward.spec.d.ts.map +1 -0
  77. package/dist/src/browser/e3-forward.spec.js +84 -0
  78. package/dist/src/browser/e3-forward.spec.js.map +1 -0
  79. package/dist/src/browser/e3-port.worker.d.ts +6 -0
  80. package/dist/src/browser/e3-port.worker.d.ts.map +1 -0
  81. package/dist/src/browser/e3-port.worker.js +21 -0
  82. package/dist/src/browser/e3-port.worker.js.map +1 -0
  83. package/dist/src/browser/e3-unit.worker.d.ts +6 -0
  84. package/dist/src/browser/e3-unit.worker.d.ts.map +1 -0
  85. package/dist/src/browser/e3-unit.worker.js +18 -0
  86. package/dist/src/browser/e3-unit.worker.js.map +1 -0
  87. package/dist/src/browser/e3-wire.d.ts +43 -0
  88. package/dist/src/browser/e3-wire.d.ts.map +1 -0
  89. package/dist/src/browser/e3-wire.js +32 -0
  90. package/dist/src/browser/e3-wire.js.map +1 -0
  91. package/dist/src/browser/e3.page.d.ts +21 -0
  92. package/dist/src/browser/e3.page.d.ts.map +1 -0
  93. package/dist/src/browser/e3.page.js +119 -0
  94. package/dist/src/browser/e3.page.js.map +1 -0
  95. package/dist/src/browser/e3.spec.d.ts +6 -0
  96. package/dist/src/browser/e3.spec.d.ts.map +1 -0
  97. package/dist/src/browser/e3.spec.js +358 -0
  98. package/dist/src/browser/e3.spec.js.map +1 -0
  99. package/dist/src/browser/e3.worker.d.ts +6 -0
  100. package/dist/src/browser/e3.worker.d.ts.map +1 -0
  101. package/dist/src/browser/e3.worker.js +38 -0
  102. package/dist/src/browser/e3.worker.js.map +1 -0
  103. package/dist/src/browser/harness.d.ts +175 -0
  104. package/dist/src/browser/harness.d.ts.map +1 -0
  105. package/dist/src/browser/harness.js +375 -0
  106. package/dist/src/browser/harness.js.map +1 -0
  107. package/dist/src/browser/page.d.ts +47 -0
  108. package/dist/src/browser/page.d.ts.map +1 -0
  109. package/dist/src/browser/page.js +47 -0
  110. package/dist/src/browser/page.js.map +1 -0
  111. package/dist/src/browser/repository.page.d.ts +85 -0
  112. package/dist/src/browser/repository.page.d.ts.map +1 -0
  113. package/dist/src/browser/repository.page.js +271 -0
  114. package/dist/src/browser/repository.page.js.map +1 -0
  115. package/dist/src/browser/runner.page.d.ts +6 -0
  116. package/dist/src/browser/runner.page.d.ts.map +1 -0
  117. package/dist/src/browser/runner.page.js +62 -0
  118. package/dist/src/browser/runner.page.js.map +1 -0
  119. package/dist/src/browser/runner.spec.d.ts +6 -0
  120. package/dist/src/browser/runner.spec.d.ts.map +1 -0
  121. package/dist/src/browser/runner.spec.js +46 -0
  122. package/dist/src/browser/runner.spec.js.map +1 -0
  123. package/dist/src/browser/storage.page.d.ts +6 -0
  124. package/dist/src/browser/storage.page.d.ts.map +1 -0
  125. package/dist/src/browser/storage.page.js +289 -0
  126. package/dist/src/browser/storage.page.js.map +1 -0
  127. package/dist/src/browser/storage.spec.d.ts +6 -0
  128. package/dist/src/browser/storage.spec.d.ts.map +1 -0
  129. package/dist/src/browser/storage.spec.js +211 -0
  130. package/dist/src/browser/storage.spec.js.map +1 -0
  131. package/dist/src/browser/unit.worker.d.ts +6 -0
  132. package/dist/src/browser/unit.worker.d.ts.map +1 -0
  133. package/dist/src/browser/unit.worker.js +17 -0
  134. package/dist/src/browser/unit.worker.js.map +1 -0
  135. package/dist/src/execution/WebTaskRunner.d.ts +159 -0
  136. package/dist/src/execution/WebTaskRunner.d.ts.map +1 -0
  137. package/dist/src/execution/WebTaskRunner.js +581 -0
  138. package/dist/src/execution/WebTaskRunner.js.map +1 -0
  139. package/dist/src/execution/WebTaskRunner.spec.d.ts +6 -0
  140. package/dist/src/execution/WebTaskRunner.spec.d.ts.map +1 -0
  141. package/dist/src/execution/WebTaskRunner.spec.js +91 -0
  142. package/dist/src/execution/WebTaskRunner.spec.js.map +1 -0
  143. package/dist/src/execution/e3-platform.d.ts +41 -0
  144. package/dist/src/execution/e3-platform.d.ts.map +1 -0
  145. package/dist/src/execution/e3-platform.js +52 -0
  146. package/dist/src/execution/e3-platform.js.map +1 -0
  147. package/dist/src/execution/in-process.d.ts +32 -0
  148. package/dist/src/execution/in-process.d.ts.map +1 -0
  149. package/dist/src/execution/in-process.js +89 -0
  150. package/dist/src/execution/in-process.js.map +1 -0
  151. package/dist/src/execution/pool.d.ts +172 -0
  152. package/dist/src/execution/pool.d.ts.map +1 -0
  153. package/dist/src/execution/pool.js +352 -0
  154. package/dist/src/execution/pool.js.map +1 -0
  155. package/dist/src/execution/pool.spec.d.ts +6 -0
  156. package/dist/src/execution/pool.spec.d.ts.map +1 -0
  157. package/dist/src/execution/pool.spec.js +252 -0
  158. package/dist/src/execution/pool.spec.js.map +1 -0
  159. package/dist/src/execution/protocol.d.ts +108 -0
  160. package/dist/src/execution/protocol.d.ts.map +1 -0
  161. package/dist/src/execution/protocol.js +27 -0
  162. package/dist/src/execution/protocol.js.map +1 -0
  163. package/dist/src/execution/unit-server.d.ts +131 -0
  164. package/dist/src/execution/unit-server.d.ts.map +1 -0
  165. package/dist/src/execution/unit-server.js +142 -0
  166. package/dist/src/execution/unit-server.js.map +1 -0
  167. package/dist/src/index.d.ts +39 -0
  168. package/dist/src/index.d.ts.map +1 -0
  169. package/dist/src/index.js +37 -0
  170. package/dist/src/index.js.map +1 -0
  171. package/dist/src/index.spec.d.ts +6 -0
  172. package/dist/src/index.spec.d.ts.map +1 -0
  173. package/dist/src/index.spec.js +212 -0
  174. package/dist/src/index.spec.js.map +1 -0
  175. package/dist/src/node.d.ts +12 -0
  176. package/dist/src/node.d.ts.map +1 -0
  177. package/dist/src/node.js +12 -0
  178. package/dist/src/node.js.map +1 -0
  179. package/dist/src/storage/WebStateStore.d.ts +64 -0
  180. package/dist/src/storage/WebStateStore.d.ts.map +1 -0
  181. package/dist/src/storage/WebStateStore.js +237 -0
  182. package/dist/src/storage/WebStateStore.js.map +1 -0
  183. package/dist/src/storage/WebStorage.d.ts +225 -0
  184. package/dist/src/storage/WebStorage.d.ts.map +1 -0
  185. package/dist/src/storage/WebStorage.js +1462 -0
  186. package/dist/src/storage/WebStorage.js.map +1 -0
  187. package/dist/src/storage/adapters.d.ts +610 -0
  188. package/dist/src/storage/adapters.d.ts.map +1 -0
  189. package/dist/src/storage/adapters.js +246 -0
  190. package/dist/src/storage/adapters.js.map +1 -0
  191. package/dist/src/storage/indexeddb.d.ts +93 -0
  192. package/dist/src/storage/indexeddb.d.ts.map +1 -0
  193. package/dist/src/storage/indexeddb.js +384 -0
  194. package/dist/src/storage/indexeddb.js.map +1 -0
  195. package/dist/src/storage/indexeddb.spec.d.ts +6 -0
  196. package/dist/src/storage/indexeddb.spec.d.ts.map +1 -0
  197. package/dist/src/storage/indexeddb.spec.js +77 -0
  198. package/dist/src/storage/indexeddb.spec.js.map +1 -0
  199. package/dist/src/storage/memory.d.ts +275 -0
  200. package/dist/src/storage/memory.d.ts.map +1 -0
  201. package/dist/src/storage/memory.js +724 -0
  202. package/dist/src/storage/memory.js.map +1 -0
  203. package/dist/src/storage/memory.spec.d.ts +6 -0
  204. package/dist/src/storage/memory.spec.d.ts.map +1 -0
  205. package/dist/src/storage/memory.spec.js +71 -0
  206. package/dist/src/storage/memory.spec.js.map +1 -0
  207. package/dist/src/storage/node-files.d.ts +38 -0
  208. package/dist/src/storage/node-files.d.ts.map +1 -0
  209. package/dist/src/storage/node-files.js +148 -0
  210. package/dist/src/storage/node-files.js.map +1 -0
  211. package/dist/src/storage/node-files.spec.d.ts +6 -0
  212. package/dist/src/storage/node-files.spec.d.ts.map +1 -0
  213. package/dist/src/storage/node-files.spec.js +40 -0
  214. package/dist/src/storage/node-files.spec.js.map +1 -0
  215. package/dist/src/storage/opfs.d.ts +145 -0
  216. package/dist/src/storage/opfs.d.ts.map +1 -0
  217. package/dist/src/storage/opfs.js +514 -0
  218. package/dist/src/storage/opfs.js.map +1 -0
  219. package/dist/src/storage/opfs.spec.d.ts +6 -0
  220. package/dist/src/storage/opfs.spec.d.ts.map +1 -0
  221. package/dist/src/storage/opfs.spec.js +51 -0
  222. package/dist/src/storage/opfs.spec.js.map +1 -0
  223. package/dist/src/storage/record-keys.d.ts +78 -0
  224. package/dist/src/storage/record-keys.d.ts.map +1 -0
  225. package/dist/src/storage/record-keys.js +71 -0
  226. package/dist/src/storage/record-keys.js.map +1 -0
  227. package/dist/src/storage/stores.spec.d.ts +6 -0
  228. package/dist/src/storage/stores.spec.d.ts.map +1 -0
  229. package/dist/src/storage/stores.spec.js +326 -0
  230. package/dist/src/storage/stores.spec.js.map +1 -0
  231. package/dist/src/storage/web-locks.d.ts +103 -0
  232. package/dist/src/storage/web-locks.d.ts.map +1 -0
  233. package/dist/src/storage/web-locks.js +228 -0
  234. package/dist/src/storage/web-locks.js.map +1 -0
  235. package/dist/src/testing/adapter-contract.d.ts +116 -0
  236. package/dist/src/testing/adapter-contract.d.ts.map +1 -0
  237. package/dist/src/testing/adapter-contract.js +769 -0
  238. package/dist/src/testing/adapter-contract.js.map +1 -0
  239. package/dist/src/testing/assert.d.ts +75 -0
  240. package/dist/src/testing/assert.d.ts.map +1 -0
  241. package/dist/src/testing/assert.js +146 -0
  242. package/dist/src/testing/assert.js.map +1 -0
  243. package/dist/src/testing/assert.spec.d.ts +6 -0
  244. package/dist/src/testing/assert.spec.d.ts.map +1 -0
  245. package/dist/src/testing/assert.spec.js +62 -0
  246. package/dist/src/testing/assert.spec.js.map +1 -0
  247. package/dist/src/testing/bridge-contract.d.ts +55 -0
  248. package/dist/src/testing/bridge-contract.d.ts.map +1 -0
  249. package/dist/src/testing/bridge-contract.js +376 -0
  250. package/dist/src/testing/bridge-contract.js.map +1 -0
  251. package/dist/src/testing/bridge-handler.d.ts +35 -0
  252. package/dist/src/testing/bridge-handler.d.ts.map +1 -0
  253. package/dist/src/testing/bridge-handler.js +108 -0
  254. package/dist/src/testing/bridge-handler.js.map +1 -0
  255. package/dist/src/testing/callers.d.ts +29 -0
  256. package/dist/src/testing/callers.d.ts.map +1 -0
  257. package/dist/src/testing/callers.js +24 -0
  258. package/dist/src/testing/callers.js.map +1 -0
  259. package/dist/src/testing/e3-fixtures.d.ts +38 -0
  260. package/dist/src/testing/e3-fixtures.d.ts.map +1 -0
  261. package/dist/src/testing/e3-fixtures.js +126 -0
  262. package/dist/src/testing/e3-fixtures.js.map +1 -0
  263. package/dist/src/testing/hold-platform.d.ts +33 -0
  264. package/dist/src/testing/hold-platform.d.ts.map +1 -0
  265. package/dist/src/testing/hold-platform.js +41 -0
  266. package/dist/src/testing/hold-platform.js.map +1 -0
  267. package/dist/src/testing/runner-cases.d.ts +112 -0
  268. package/dist/src/testing/runner-cases.d.ts.map +1 -0
  269. package/dist/src/testing/runner-cases.js +959 -0
  270. package/dist/src/testing/runner-cases.js.map +1 -0
  271. package/dist/src/testing/runner-fixtures.d.ts +13 -0
  272. package/dist/src/testing/runner-fixtures.d.ts.map +1 -0
  273. package/dist/src/testing/runner-fixtures.js +173 -0
  274. package/dist/src/testing/runner-fixtures.js.map +1 -0
  275. package/dist/src/testing/test-platform.d.ts +73 -0
  276. package/dist/src/testing/test-platform.d.ts.map +1 -0
  277. package/dist/src/testing/test-platform.js +143 -0
  278. package/dist/src/testing/test-platform.js.map +1 -0
  279. package/dist/src/transfer/WebTransferBackend.d.ts +780 -0
  280. package/dist/src/transfer/WebTransferBackend.d.ts.map +1 -0
  281. package/dist/src/transfer/WebTransferBackend.js +1140 -0
  282. package/dist/src/transfer/WebTransferBackend.js.map +1 -0
  283. package/dist/src/transfer/WebTransferBackend.spec.d.ts +6 -0
  284. package/dist/src/transfer/WebTransferBackend.spec.d.ts.map +1 -0
  285. package/dist/src/transfer/WebTransferBackend.spec.js +582 -0
  286. package/dist/src/transfer/WebTransferBackend.spec.js.map +1 -0
  287. package/dist/src/transfer/endpoints.d.ts +46 -0
  288. package/dist/src/transfer/endpoints.d.ts.map +1 -0
  289. package/dist/src/transfer/endpoints.js +157 -0
  290. package/dist/src/transfer/endpoints.js.map +1 -0
  291. package/dist/src/units.d.ts +51 -0
  292. package/dist/src/units.d.ts.map +1 -0
  293. package/dist/src/units.js +74 -0
  294. package/dist/src/units.js.map +1 -0
  295. package/dist/src/worker.d.ts +126 -0
  296. package/dist/src/worker.d.ts.map +1 -0
  297. package/dist/src/worker.js +186 -0
  298. package/dist/src/worker.js.map +1 -0
  299. package/dist/src/worker.spec.d.ts +6 -0
  300. package/dist/src/worker.spec.d.ts.map +1 -0
  301. package/dist/src/worker.spec.js +195 -0
  302. package/dist/src/worker.spec.js.map +1 -0
  303. package/package.json +76 -3
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Licensed under BSL 1.1. See LICENSE for details.
4
+ */
5
+ import { DictType, IntegerType, SortedMap } from '@elaraai/east';
6
+ /** The package whose task lists the e3's workspaces. */
7
+ export declare const PLATFORM_PACKAGE = "e3-web-platform";
8
+ /** The package whose split task holds its last piece. */
9
+ export declare const HELD_PACKAGE = "e3-web-held";
10
+ /** Both packages' version. */
11
+ export declare const FIXTURE_VERSION = "1.0.0";
12
+ /** The held task's input: amounts by key. */
13
+ export declare const RowsType: DictType<IntegerType, IntegerType>;
14
+ /** How many rows the held task's input has: enough for the store to cut it
15
+ * into several segments, and so the task into several pieces. */
16
+ export declare const HELD_ROWS = 8000;
17
+ /**
18
+ * The held task's input: each key `i`, from 0, with amount `i % 97`.
19
+ *
20
+ * @returns The rows
21
+ */
22
+ export declare function heldRows(): SortedMap<bigint, bigint>;
23
+ /**
24
+ * The held task's output for {@link heldRows}: each amount doubled.
25
+ *
26
+ * @returns The output
27
+ */
28
+ export declare function heldOutput(): SortedMap<bigint, bigint>;
29
+ /**
30
+ * The packages' zips.
31
+ *
32
+ * @returns Each package's zip, by its name
33
+ */
34
+ export declare function buildE3Fixtures(): Promise<{
35
+ readonly platform: Uint8Array;
36
+ readonly held: Uint8Array;
37
+ }>;
38
+ //# sourceMappingURL=e3-fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"e3-fixtures.d.ts","sourceRoot":"","sources":["../../../src/testing/e3-fixtures.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqBH,OAAO,EAAa,QAAQ,EAAQ,WAAW,EAAE,SAAS,EAA0B,MAAM,eAAe,CAAC;AAQ1G,wDAAwD;AACxD,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAClD,yDAAyD;AACzD,eAAO,MAAM,YAAY,gBAAgB,CAAC;AAC1C,8BAA8B;AAC9B,eAAO,MAAM,eAAe,UAAU,CAAC;AAEvC,6CAA6C;AAC7C,eAAO,MAAM,QAAQ,oCAAqC,CAAC;AAE3D;kEACkE;AAClE,eAAO,MAAM,SAAS,OAAQ,CAAC;AAE/B;;;;GAIG;AACH,wBAAgB,QAAQ,IAAI,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAEpD;AAED;;;;GAIG;AACH,wBAAgB,UAAU,IAAI,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAEtD;AAgED;;;;GAIG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC;IAAE,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAK7G"}
@@ -0,0 +1,126 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Licensed under BSL 1.1. See LICENSE for details.
4
+ */
5
+ /**
6
+ * The packages e3-web's specs of the whole e3 import, authored with the e3
7
+ * SDK and exported as `e3.export` writes them: Node only.
8
+ *
9
+ * - `e3-web-platform`: a task that calls e3's own platform functions from its
10
+ * unit, listing the workspaces of the e3 it runs in.
11
+ * - `e3-web-held`: a task split over the pieces of its input, whose last
12
+ * piece holds its unit worker in a page that holds (`test_hold`), so the
13
+ * page closes with the task's other pieces finished and that one running.
14
+ *
15
+ * The specs import each zip through e3's API, as an app imports the zip its
16
+ * build exported.
17
+ *
18
+ * @packageDocumentation
19
+ */
20
+ import { mkdtempSync, readFileSync, rmSync } from 'node:fs';
21
+ import { tmpdir } from 'node:os';
22
+ import { join } from 'node:path';
23
+ import { ArrayType, DictType, East, IntegerType, SortedMap, StringType, compareFor } from '@elaraai/east';
24
+ import e3 from '@elaraai/e3';
25
+ import { Platform } from '@elaraai/e3-api-client';
26
+ import { WEB_E3_ORIGIN } from '../bridge/protocol.js';
27
+ import { E3_PLATFORM } from '../execution/e3-platform.js';
28
+ import { ADMIN_TOKEN } from './callers.js';
29
+ import { HOLD_PLATFORM, test_hold } from './hold-platform.js';
30
+ /** The package whose task lists the e3's workspaces. */
31
+ export const PLATFORM_PACKAGE = 'e3-web-platform';
32
+ /** The package whose split task holds its last piece. */
33
+ export const HELD_PACKAGE = 'e3-web-held';
34
+ /** Both packages' version. */
35
+ export const FIXTURE_VERSION = '1.0.0';
36
+ /** The held task's input: amounts by key. */
37
+ export const RowsType = DictType(IntegerType, IntegerType);
38
+ /** How many rows the held task's input has: enough for the store to cut it
39
+ * into several segments, and so the task into several pieces. */
40
+ export const HELD_ROWS = 8_000;
41
+ /**
42
+ * The held task's input: each key `i`, from 0, with amount `i % 97`.
43
+ *
44
+ * @returns The rows
45
+ */
46
+ export function heldRows() {
47
+ return new SortedMap(Array.from({ length: HELD_ROWS }, (_, i) => [BigInt(i), BigInt(i % 97)]), compareFor(IntegerType));
48
+ }
49
+ /**
50
+ * The held task's output for {@link heldRows}: each amount doubled.
51
+ *
52
+ * @returns The output
53
+ */
54
+ export function heldOutput() {
55
+ return new SortedMap(Array.from({ length: HELD_ROWS }, (_, i) => [BigInt(i), BigInt(2 * (i % 97))]), compareFor(IntegerType));
56
+ }
57
+ /** east-node, with e3's own platform functions beside east-node-std's. */
58
+ const WITH_E3 = { runtime: 'east-node', platforms: ['@elaraai/east-node-std', { custom: E3_PLATFORM }] };
59
+ /** east-node, with the hold beside east-node-std's. */
60
+ const WITH_HOLD = { runtime: 'east-node', platforms: ['@elaraai/east-node-std', { custom: HOLD_PLATFORM }] };
61
+ /**
62
+ * The package whose task lists the e3's workspaces: `workspaces`, over the
63
+ * repository its input names, calls `Platform.workspaceList` from its unit
64
+ * with the in-page e3's URL and the admin's token, and answers their names.
65
+ *
66
+ * @returns The package
67
+ */
68
+ function platformPackage() {
69
+ const repo = e3.input('repo', StringType);
70
+ const workspaces = e3.task('workspaces', [repo], East.asyncFunction([StringType], ArrayType(StringType), ($, name) => {
71
+ const found = $.let(Platform.workspaceList(WEB_E3_ORIGIN, name, ADMIN_TOKEN));
72
+ return found.map(($, workspace) => workspace.name);
73
+ }), { runner: WITH_E3 });
74
+ return e3.package(PLATFORM_PACKAGE, FIXTURE_VERSION, workspaces);
75
+ }
76
+ /**
77
+ * The package whose split task holds its last piece: `held` doubles each
78
+ * amount of its input, split over its pieces, and the piece holding the
79
+ * input's last key calls `test_hold()` first.
80
+ *
81
+ * @returns The package
82
+ */
83
+ function heldPackage() {
84
+ const rows = e3.input('rows', RowsType);
85
+ const held = e3.streamTask('held', {
86
+ inputs: [e3.partition(rows)],
87
+ output: e3.output.dict(IntegerType, IntegerType),
88
+ runner: WITH_HOLD,
89
+ }, ($, rows, emit) => {
90
+ $.for(rows, ($, amount, key) => {
91
+ $.if(East.equal(key, BigInt(HELD_ROWS - 1)), ($) => {
92
+ $(test_hold());
93
+ });
94
+ $(emit(key, amount.multiply(2n)));
95
+ });
96
+ });
97
+ return e3.package(HELD_PACKAGE, FIXTURE_VERSION, held);
98
+ }
99
+ /**
100
+ * Exports a package as `e3.export` writes it.
101
+ *
102
+ * @returns The zip's bytes
103
+ */
104
+ async function exported(pkg, name) {
105
+ const dir = mkdtempSync(join(tmpdir(), 'e3-web-fixtures-'));
106
+ try {
107
+ const zip = join(dir, `${name}.zip`);
108
+ await e3.export(pkg, zip);
109
+ return new Uint8Array(readFileSync(zip));
110
+ }
111
+ finally {
112
+ rmSync(dir, { recursive: true, force: true });
113
+ }
114
+ }
115
+ /**
116
+ * The packages' zips.
117
+ *
118
+ * @returns Each package's zip, by its name
119
+ */
120
+ export async function buildE3Fixtures() {
121
+ return {
122
+ platform: await exported(platformPackage(), PLATFORM_PACKAGE),
123
+ held: await exported(heldPackage(), HELD_PACKAGE),
124
+ };
125
+ }
126
+ //# sourceMappingURL=e3-fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"e3-fixtures.js","sourceRoot":"","sources":["../../../src/testing/e3-fixtures.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC1G,OAAO,EAAmB,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE9D,wDAAwD;AACxD,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAClD,yDAAyD;AACzD,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC;AAC1C,8BAA8B;AAC9B,MAAM,CAAC,MAAM,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BACjD,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC;YACjB,CAAC,CAAC,CAAC;YACH,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,eAAe,EAAE,IAAI,CAAC,CAAC;AACzD,CAAC;AAED;;;;GAIG;AACH,KAAK,UAAU,QAAQ,CAAC,GAAkC,EAAE,IAAY;IACtE,MAAM,GAAG,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAC5D,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,MAAM,CAAC,CAAC;QACrC,MAAM,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC1B,OAAO,IAAI,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3C,CAAC;YAAS,CAAC;QACT,MAAM,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAChD,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe;IACnC,OAAO;QACL,QAAQ,EAAE,MAAM,QAAQ,CAAC,eAAe,EAAE,EAAE,gBAAgB,CAAC;QAC7D,IAAI,EAAE,MAAM,QAAQ,CAAC,WAAW,EAAE,EAAE,YAAY,CAAC;KAClD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Licensed under BSL 1.1. See LICENSE for details.
4
+ */
5
+ /**
6
+ * The platform package e3-web's interrupted-run spec serves its unit workers:
7
+ * `test_hold()`, which a unit calls to stay running until its page closes.
8
+ *
9
+ * A unit worker of a page that holds never returns from it: the call keeps
10
+ * the worker's thread, as a long unit does, until the page closes and its
11
+ * workers stop with it. A unit worker of any other page returns at once.
12
+ * Portable: a page's unit worker bundles it, and the fixture package names
13
+ * it in Node.
14
+ *
15
+ * @packageDocumentation
16
+ */
17
+ import { NullType } from '@elaraai/east';
18
+ import type { PlatformFunction } from '@elaraai/east/internal';
19
+ /** The name a task lists the package under, as a runner's `{ custom }`
20
+ * platform. */
21
+ export declare const HOLD_PLATFORM = "e3-web-hold";
22
+ /** `test_hold()`: returns at once, or, in a page that holds, never. A stream
23
+ * task's body is synchronous, so it is too. */
24
+ export declare const test_hold: import("@elaraai/east").PlatformDefinition<[], NullType>;
25
+ /**
26
+ * The package, for a unit worker.
27
+ *
28
+ * @param held - Whether the unit worker's page holds: its units never return
29
+ * from `test_hold`
30
+ * @returns The package's platform functions
31
+ */
32
+ export declare function holdPlatform(held: boolean): PlatformFunction[];
33
+ //# sourceMappingURL=hold-platform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hold-platform.d.ts","sourceRoot":"","sources":["../../../src/testing/hold-platform.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;GAWG;AAEH,OAAO,EAAQ,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D;gBACgB;AAChB,eAAO,MAAM,aAAa,gBAAgB,CAAC;AAE3C;gDACgD;AAChD,eAAO,MAAM,SAAS,0DAA2C,CAAC;AAElE;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,gBAAgB,EAAE,CAS9D"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Licensed under BSL 1.1. See LICENSE for details.
4
+ */
5
+ /**
6
+ * The platform package e3-web's interrupted-run spec serves its unit workers:
7
+ * `test_hold()`, which a unit calls to stay running until its page closes.
8
+ *
9
+ * A unit worker of a page that holds never returns from it: the call keeps
10
+ * the worker's thread, as a long unit does, until the page closes and its
11
+ * workers stop with it. A unit worker of any other page returns at once.
12
+ * Portable: a page's unit worker bundles it, and the fixture package names
13
+ * it in Node.
14
+ *
15
+ * @packageDocumentation
16
+ */
17
+ import { East, NullType } from '@elaraai/east';
18
+ /** The name a task lists the package under, as a runner's `{ custom }`
19
+ * platform. */
20
+ export const HOLD_PLATFORM = 'e3-web-hold';
21
+ /** `test_hold()`: returns at once, or, in a page that holds, never. A stream
22
+ * task's body is synchronous, so it is too. */
23
+ export const test_hold = East.platform('test_hold', [], NullType);
24
+ /**
25
+ * The package, for a unit worker.
26
+ *
27
+ * @param held - Whether the unit worker's page holds: its units never return
28
+ * from `test_hold`
29
+ * @returns The package's platform functions
30
+ */
31
+ export function holdPlatform(held) {
32
+ return [
33
+ test_hold.implement(() => {
34
+ // The unit keeps its worker's thread, as a unit computing for long
35
+ // does, until the page that started the worker closes.
36
+ while (held) { /* held */ }
37
+ return null;
38
+ }),
39
+ ];
40
+ }
41
+ //# sourceMappingURL=hold-platform.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hold-platform.js","sourceRoot":"","sources":["../../../src/testing/hold-platform.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG/C;gBACgB;AAChB,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC;AAE3C;gDACgD;AAChD,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAC;AAElE;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,IAAa;IACxC,OAAO;QACL,SAAS,CAAC,SAAS,CAAC,GAAG,EAAE;YACvB,mEAAmE;YACnE,uDAAuD;YACvD,OAAO,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;YAC3B,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;KACH,CAAC;AACJ,CAAC"}
@@ -0,0 +1,112 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Licensed under BSL 1.1. See LICENSE for details.
4
+ */
5
+ import { WebTaskRunner, type WebTaskRunnerOptions } from '../execution/WebTaskRunner.js';
6
+ import { UnitPool } from '../execution/pool.js';
7
+ import type { UnitWorker } from '../execution/protocol.js';
8
+ import type { LocksAdapter } from '../storage/adapters.js';
9
+ import type { WebStorage } from '../storage/WebStorage.js';
10
+ import type { AdapterCase, AdapterSetup } from './adapter-contract.js';
11
+ import { type TestHost } from './test-platform.js';
12
+ /** The fixture package's name and version. */
13
+ export declare const FIXTURE_PACKAGE = "web_runner";
14
+ export declare const FIXTURE_VERSION = "1.0.0";
15
+ /**
16
+ * The fixture package as data: every object `e3.export` wrote for it, by its
17
+ * hash, and the package object's hash its ref names.
18
+ */
19
+ export interface RunnerFixtures {
20
+ readonly objects: ReadonlyArray<readonly [hash: string, bytes: Uint8Array]>;
21
+ readonly packageHash: string;
22
+ }
23
+ /**
24
+ * The fixtures as a page is handed them: each object's bytes as base64, which
25
+ * a call into a page carries.
26
+ */
27
+ export interface RunnerFixturesWire {
28
+ readonly objects: ReadonlyArray<readonly [hash: string, base64: string]>;
29
+ readonly packageHash: string;
30
+ }
31
+ /**
32
+ * The fixtures as a page is handed them.
33
+ *
34
+ * @param fixtures - The fixtures
35
+ * @returns Their wire form
36
+ */
37
+ export declare function fixturesToWire(fixtures: RunnerFixtures): RunnerFixturesWire;
38
+ /**
39
+ * The fixtures a page was handed.
40
+ *
41
+ * @param wire - Their wire form
42
+ * @returns The fixtures
43
+ */
44
+ export declare function fixturesFromWire(wire: RunnerFixturesWire): RunnerFixtures;
45
+ /**
46
+ * What a runner case runs over: a repository with the fixture package
47
+ * installed, and the workers a runner's pool starts.
48
+ */
49
+ export interface RunnerSetup {
50
+ /** The storage, a tab's */
51
+ readonly storage: WebStorage;
52
+ /** The repository, with the fixture package installed */
53
+ readonly repo: string;
54
+ /** The host the setup's pools hand each worker's port to, which answers a
55
+ * unit's echo and holds its wait until released */
56
+ readonly host: TestHost;
57
+ /**
58
+ * A pool of the setup's workers — in process in Node, Web Workers in a page
59
+ * — handed the host's ports, terminated once the case ends.
60
+ *
61
+ * @param options - Its width, four unless given, and what wraps each worker
62
+ * the setup starts
63
+ */
64
+ pool(options?: {
65
+ width?: number;
66
+ units?: (start: () => UnitWorker) => UnitWorker;
67
+ }): UnitPool;
68
+ /** A runner over a pool, owned by the tab's session */
69
+ runner(pool: UnitPool, options?: Partial<WebTaskRunnerOptions>): WebTaskRunner;
70
+ /** Opens another tab's session over the storage's origin, closed once the
71
+ * case ends */
72
+ openSession(): Promise<LocksAdapter>;
73
+ /** Sets the piece size planning reads, as `E3_TEST_PIECE_BYTES` does, until
74
+ * the case ends */
75
+ pieceBytes(bytes: number): void;
76
+ }
77
+ /**
78
+ * What a setup is made of where it runs: the storage of a tab, and its
79
+ * workers.
80
+ */
81
+ export interface RunnerEnvironment {
82
+ /** Opens a tab's storage, fresh, registering what removes it */
83
+ openStorage(cleanup: (undo: () => Promise<void> | void) => void): Promise<{
84
+ storage: WebStorage;
85
+ openSession: () => Promise<LocksAdapter>;
86
+ }>;
87
+ /** Starts a unit worker that serves the specs' platform package beside the
88
+ * standard one */
89
+ readonly units: () => UnitWorker;
90
+ /** The fixture package */
91
+ readonly fixtures: RunnerFixtures;
92
+ }
93
+ /**
94
+ * Makes the setup a runner case runs over, from what a setup is made of where
95
+ * it runs.
96
+ *
97
+ * @param environment - The tab's storage, its workers, and the fixtures
98
+ * @returns The setup
99
+ */
100
+ export declare function runnerSetup(environment: RunnerEnvironment): AdapterSetup<RunnerSetup>;
101
+ /**
102
+ * The runner's cases.
103
+ */
104
+ export declare const runnerCases: readonly AdapterCase<RunnerSetup>[];
105
+ /**
106
+ * The cases only workers on threads of their own pass — Web Workers, not the
107
+ * in-process host, whose units share the thread of the test that runs them: a
108
+ * unit that never yields that thread is ended only by terminating it, and only
109
+ * a Web Worker closes itself.
110
+ */
111
+ export declare const threadCases: readonly AdapterCase<RunnerSetup>[];
112
+ //# sourceMappingURL=runner-cases.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runner-cases.d.ts","sourceRoot":"","sources":["../../../src/testing/runner-cases.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuFH,OAAO,EAIL,aAAa,EACb,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,EAAiE,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAMlH,8CAA8C;AAC9C,eAAO,MAAM,eAAe,eAAe,CAAC;AAC5C,eAAO,MAAM,eAAe,UAAU,CAAC;AAEvC;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;IAC5E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACzE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC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