@dialecte/core 0.6.4 → 0.8.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 (699) hide show
  1. package/dist/assets/hub.worker-B1HcVDhn.js +2 -0
  2. package/dist/diagnostics/diagnostics.d.ts +30 -0
  3. package/dist/diagnostics/diagnostics.d.ts.map +1 -0
  4. package/dist/diagnostics/index.d.ts +3 -0
  5. package/dist/diagnostics/index.d.ts.map +1 -0
  6. package/dist/diagnostics/types.d.ts +77 -0
  7. package/dist/diagnostics/types.d.ts.map +1 -0
  8. package/dist/dialecte/create-dialecte-project.d.ts +11 -0
  9. package/dist/dialecte/create-dialecte-project.d.ts.map +1 -0
  10. package/dist/dialecte/create-project-factory.d.ts +14 -0
  11. package/dist/dialecte/create-project-factory.d.ts.map +1 -0
  12. package/dist/dialecte/define-dialecte.d.ts +12 -0
  13. package/dist/dialecte/define-dialecte.d.ts.map +1 -0
  14. package/dist/dialecte/dialecte.constants.d.ts +4 -0
  15. package/dist/dialecte/dialecte.constants.d.ts.map +1 -0
  16. package/dist/dialecte/dialecte.types.d.ts +75 -0
  17. package/dist/dialecte/dialecte.types.d.ts.map +1 -0
  18. package/dist/dialecte/index.d.ts +4 -0
  19. package/dist/dialecte/index.d.ts.map +1 -0
  20. package/dist/{project-DGQAe9G9.js → dialecte-gIPrRzni.js} +7225 -7511
  21. package/dist/document/bind-extensions.d.ts +4 -1
  22. package/dist/document/bind-extensions.d.ts.map +1 -1
  23. package/dist/document/document.d.ts +58 -5
  24. package/dist/document/document.d.ts.map +1 -1
  25. package/dist/document/progress/progress.types.d.ts +21 -4
  26. package/dist/document/progress/progress.types.d.ts.map +1 -1
  27. package/dist/document/query/find/ancestor/find-ancestor.d.ts +2 -0
  28. package/dist/document/query/find/ancestor/find-ancestor.d.ts.map +1 -1
  29. package/dist/document/query/find/by-attribute/find-by-attributes.d.ts +4 -0
  30. package/dist/document/query/find/by-attribute/find-by-attributes.d.ts.map +1 -1
  31. package/dist/document/query/find/descendant/find-descendant.d.ts +2 -0
  32. package/dist/document/query/find/descendant/find-descendant.d.ts.map +1 -1
  33. package/dist/document/query/get/attribute/get-attribute.d.ts +4 -0
  34. package/dist/document/query/get/attribute/get-attribute.d.ts.map +1 -1
  35. package/dist/document/query/get/attribute/get-attributes.d.ts +4 -0
  36. package/dist/document/query/get/attribute/get-attributes.d.ts.map +1 -1
  37. package/dist/document/query/get/definition/get-definition.d.ts +2 -0
  38. package/dist/document/query/get/definition/get-definition.d.ts.map +1 -1
  39. package/dist/document/query/get/record/get-child.d.ts +2 -0
  40. package/dist/document/query/get/record/get-child.d.ts.map +1 -1
  41. package/dist/document/query/get/record/get-children.d.ts +2 -0
  42. package/dist/document/query/get/record/get-children.d.ts.map +1 -1
  43. package/dist/document/query/get/record/get-record.d.ts +2 -0
  44. package/dist/document/query/get/record/get-record.d.ts.map +1 -1
  45. package/dist/document/query/get/record/get-records-by-tagname.d.ts +2 -0
  46. package/dist/document/query/get/record/get-records-by-tagname.d.ts.map +1 -1
  47. package/dist/document/query/get/record/get-records.d.ts +2 -0
  48. package/dist/document/query/get/record/get-records.d.ts.map +1 -1
  49. package/dist/document/query/get/record/load-live-records.d.ts +2 -0
  50. package/dist/document/query/get/record/load-live-records.d.ts.map +1 -1
  51. package/dist/document/query/get/record/resolve-record.d.ts +2 -0
  52. package/dist/document/query/get/record/resolve-record.d.ts.map +1 -1
  53. package/dist/document/query/get/record/staged-lookup.d.ts +4 -0
  54. package/dist/document/query/get/record/staged-lookup.d.ts.map +1 -1
  55. package/dist/document/query/get/tree/get-tree.d.ts +6 -0
  56. package/dist/document/query/get/tree/get-tree.d.ts.map +1 -1
  57. package/dist/document/query/main.d.ts +50 -15
  58. package/dist/document/query/main.d.ts.map +1 -1
  59. package/dist/document/query/snapshot/collect-snapshot.d.ts +2 -0
  60. package/dist/document/query/snapshot/collect-snapshot.d.ts.map +1 -1
  61. package/dist/document/query/snapshot/get-snapshot.d.ts +2 -0
  62. package/dist/document/query/snapshot/get-snapshot.d.ts.map +1 -1
  63. package/dist/document/query/snapshot/records-to-tree.d.ts +2 -0
  64. package/dist/document/query/snapshot/records-to-tree.d.ts.map +1 -1
  65. package/dist/document/query/tree-filter/omit.d.ts +8 -0
  66. package/dist/document/query/tree-filter/omit.d.ts.map +1 -1
  67. package/dist/document/query/tree-filter/order.d.ts +5 -2
  68. package/dist/document/query/tree-filter/order.d.ts.map +1 -1
  69. package/dist/document/query/tree-filter/unwrap.d.ts +2 -0
  70. package/dist/document/query/tree-filter/unwrap.d.ts.map +1 -1
  71. package/dist/document/staged-operations.d.ts +5 -1
  72. package/dist/document/staged-operations.d.ts.map +1 -1
  73. package/dist/document/transaction/clone/clone.d.ts +2 -0
  74. package/dist/document/transaction/clone/clone.d.ts.map +1 -1
  75. package/dist/document/transaction/commit/commit.d.ts.map +1 -1
  76. package/dist/document/transaction/commit/merge-operations.d.ts +1 -1
  77. package/dist/document/transaction/commit/merge-operations.d.ts.map +1 -1
  78. package/dist/document/transaction/commit/summarize-operations.d.ts +16 -0
  79. package/dist/document/transaction/commit/summarize-operations.d.ts.map +1 -0
  80. package/dist/document/transaction/commit/summarize-operations.types.d.ts +17 -0
  81. package/dist/document/transaction/commit/summarize-operations.types.d.ts.map +1 -0
  82. package/dist/document/transaction/create/create.d.ts +2 -0
  83. package/dist/document/transaction/create/create.d.ts.map +1 -1
  84. package/dist/document/transaction/guard.d.ts +5 -0
  85. package/dist/document/transaction/guard.d.ts.map +1 -1
  86. package/dist/document/transaction/index.d.ts +2 -0
  87. package/dist/document/transaction/index.d.ts.map +1 -1
  88. package/dist/document/transaction/main.d.ts +46 -16
  89. package/dist/document/transaction/main.d.ts.map +1 -1
  90. package/dist/document/transaction/stage-operations.d.ts.map +1 -1
  91. package/dist/document/transaction/update/update.d.ts +2 -0
  92. package/dist/document/transaction/update/update.d.ts.map +1 -1
  93. package/dist/document/types.d.ts +3 -5
  94. package/dist/document/types.d.ts.map +1 -1
  95. package/dist/engine-store-CIEqgPUb.js +348 -0
  96. package/dist/engine.constants-DBMjMmV9.js +98 -0
  97. package/dist/engine.d.ts +9 -0
  98. package/dist/engine.d.ts.map +1 -0
  99. package/dist/engine.js +15805 -0
  100. package/dist/errors/codes.d.ts +455 -0
  101. package/dist/errors/codes.d.ts.map +1 -1
  102. package/dist/errors/errors.constants.d.ts +3 -0
  103. package/dist/errors/errors.constants.d.ts.map +1 -0
  104. package/dist/errors/errors.d.ts +10 -0
  105. package/dist/errors/errors.d.ts.map +1 -1
  106. package/dist/errors/types.d.ts +14 -0
  107. package/dist/errors/types.d.ts.map +1 -1
  108. package/dist/helpers/assert-fixed.d.ts +3 -1
  109. package/dist/helpers/assert-fixed.d.ts.map +1 -1
  110. package/dist/helpers/assert-xml-characters.d.ts +35 -0
  111. package/dist/helpers/assert-xml-characters.d.ts.map +1 -0
  112. package/dist/helpers/assert-xml-characters.types.d.ts +26 -0
  113. package/dist/helpers/assert-xml-characters.types.d.ts.map +1 -0
  114. package/dist/helpers/assert-xsi-type.d.ts +4 -0
  115. package/dist/helpers/assert-xsi-type.d.ts.map +1 -1
  116. package/dist/helpers/converter.d.ts +21 -6
  117. package/dist/helpers/converter.d.ts.map +1 -1
  118. package/dist/helpers/evaluate-expectations.d.ts +21 -0
  119. package/dist/helpers/evaluate-expectations.d.ts.map +1 -0
  120. package/dist/helpers/evaluate-expectations.types.d.ts +31 -0
  121. package/dist/helpers/evaluate-expectations.types.d.ts.map +1 -0
  122. package/dist/helpers/guard.d.ts +24 -4
  123. package/dist/helpers/guard.d.ts.map +1 -1
  124. package/dist/helpers/index.d.ts +2 -0
  125. package/dist/helpers/index.d.ts.map +1 -1
  126. package/dist/helpers/merge-extensions.d.ts +2 -0
  127. package/dist/helpers/merge-extensions.d.ts.map +1 -1
  128. package/dist/helpers/read-attributes.d.ts +4 -0
  129. package/dist/helpers/read-attributes.d.ts.map +1 -1
  130. package/dist/helpers/standardizing.d.ts +10 -0
  131. package/dist/helpers/standardizing.d.ts.map +1 -1
  132. package/dist/helpers/strip-attributes.d.ts +2 -0
  133. package/dist/helpers/strip-attributes.d.ts.map +1 -1
  134. package/dist/helpers-DVShv41E.js +489 -0
  135. package/dist/helpers.js +3 -439
  136. package/dist/in-process-link-DBeAOZRp.js +2791 -0
  137. package/dist/index.d.ts +2 -0
  138. package/dist/index.d.ts.map +1 -1
  139. package/dist/index.js +23 -3
  140. package/dist/perf/create-perf.d.ts +8 -1
  141. package/dist/perf/create-perf.d.ts.map +1 -1
  142. package/dist/perf/index.d.ts +1 -1
  143. package/dist/perf/index.d.ts.map +1 -1
  144. package/dist/perf/noop-perf.d.ts.map +1 -1
  145. package/dist/perf/perf.types.d.ts +65 -6
  146. package/dist/perf/perf.types.d.ts.map +1 -1
  147. package/dist/project/index.d.ts +7 -4
  148. package/dist/project/index.d.ts.map +1 -1
  149. package/dist/project/io/export-blob.d.ts +5 -2
  150. package/dist/project/io/export-blob.d.ts.map +1 -1
  151. package/dist/project/io/export-document.d.ts +5 -4
  152. package/dist/project/io/export-document.d.ts.map +1 -1
  153. package/dist/project/io/index.d.ts +1 -1
  154. package/dist/project/io/index.d.ts.map +1 -1
  155. package/dist/project/io/init-empty-document.d.ts +2 -0
  156. package/dist/project/io/init-empty-document.d.ts.map +1 -1
  157. package/dist/project/io/resolve-config.d.ts +4 -0
  158. package/dist/project/io/resolve-config.d.ts.map +1 -0
  159. package/dist/project/io/run-export.d.ts +19 -0
  160. package/dist/project/io/run-export.d.ts.map +1 -0
  161. package/dist/project/io/run-export.types.d.ts +45 -0
  162. package/dist/project/io/run-export.types.d.ts.map +1 -0
  163. package/dist/project/io/run-import.d.ts +15 -0
  164. package/dist/project/io/run-import.d.ts.map +1 -0
  165. package/dist/project/io/run-import.types.d.ts +19 -0
  166. package/dist/project/io/run-import.types.d.ts.map +1 -0
  167. package/dist/project/io/store-runtime.constants.d.ts +6 -0
  168. package/dist/project/io/store-runtime.constants.d.ts.map +1 -0
  169. package/dist/project/io/store-runtime.d.ts +12 -0
  170. package/dist/project/io/store-runtime.d.ts.map +1 -0
  171. package/dist/project/io/store-runtime.types.d.ts +18 -0
  172. package/dist/project/io/store-runtime.types.d.ts.map +1 -0
  173. package/dist/project/project-channel.d.ts +11 -0
  174. package/dist/project/project-channel.d.ts.map +1 -0
  175. package/dist/project/project.constants.d.ts +12 -0
  176. package/dist/project/project.constants.d.ts.map +1 -0
  177. package/dist/project/project.d.ts +339 -25
  178. package/dist/project/project.d.ts.map +1 -1
  179. package/dist/project/state/document-lifecycle.d.ts +6 -0
  180. package/dist/project/state/document-lifecycle.d.ts.map +1 -0
  181. package/dist/project/state/document-state.d.ts +4 -0
  182. package/dist/project/state/document-state.d.ts.map +1 -1
  183. package/dist/project/types.d.ts +158 -48
  184. package/dist/project/types.d.ts.map +1 -1
  185. package/dist/project-key-Ch34EtFa.js +1435 -0
  186. package/dist/rolldown-runtime-CYdcPHCu.js +12 -0
  187. package/dist/running-operations-vnijBvn7.js +76 -0
  188. package/dist/same-json-value-C6kUaoyt.js +1603 -0
  189. package/dist/sqlite.d.ts +5 -0
  190. package/dist/sqlite.d.ts.map +1 -0
  191. package/dist/sqlite.js +2671 -0
  192. package/dist/sqlite3.wasm +0 -0
  193. package/dist/store/apply-record-patch.d.ts +13 -0
  194. package/dist/store/apply-record-patch.d.ts.map +1 -0
  195. package/dist/store/closing-connections.d.ts +7 -0
  196. package/dist/store/closing-connections.d.ts.map +1 -0
  197. package/dist/store/closing-connections.types.d.ts +13 -0
  198. package/dist/store/closing-connections.types.d.ts.map +1 -0
  199. package/dist/store/commit-progress.d.ts +10 -0
  200. package/dist/store/commit-progress.d.ts.map +1 -0
  201. package/dist/store/compare-by-id.d.ts +10 -0
  202. package/dist/store/compare-by-id.d.ts.map +1 -0
  203. package/dist/store/document-path.constants.d.ts +20 -0
  204. package/dist/store/document-path.constants.d.ts.map +1 -0
  205. package/dist/store/document-path.d.ts +75 -0
  206. package/dist/store/document-path.d.ts.map +1 -0
  207. package/dist/store/document-path.types.d.ts +11 -0
  208. package/dist/store/document-path.types.d.ts.map +1 -0
  209. package/dist/store/engine/client/check-engine-wire.d.ts +8 -0
  210. package/dist/store/engine/client/check-engine-wire.d.ts.map +1 -0
  211. package/dist/store/engine/client/client.constants.d.ts +30 -0
  212. package/dist/store/engine/client/client.constants.d.ts.map +1 -0
  213. package/dist/store/engine/client/client.types.d.ts +200 -0
  214. package/dist/store/engine/client/client.types.d.ts.map +1 -0
  215. package/dist/store/engine/client/engine-client.d.ts +15 -0
  216. package/dist/store/engine/client/engine-client.d.ts.map +1 -0
  217. package/dist/store/engine/client/engine-control.d.ts +16 -0
  218. package/dist/store/engine/client/engine-control.d.ts.map +1 -0
  219. package/dist/store/engine/client/heartbeat-watch.d.ts +17 -0
  220. package/dist/store/engine/client/heartbeat-watch.d.ts.map +1 -0
  221. package/dist/store/engine/client/hub-connector.d.ts +11 -0
  222. package/dist/store/engine/client/hub-connector.d.ts.map +1 -0
  223. package/dist/store/engine/client/hub-connector.types.d.ts +25 -0
  224. package/dist/store/engine/client/hub-connector.types.d.ts.map +1 -0
  225. package/dist/store/engine/client/worker-connector.d.ts +32 -0
  226. package/dist/store/engine/client/worker-connector.d.ts.map +1 -0
  227. package/dist/store/engine/creation-refusal.d.ts +10 -0
  228. package/dist/store/engine/creation-refusal.d.ts.map +1 -0
  229. package/dist/store/engine/dialecte-refusal.d.ts +18 -0
  230. package/dist/store/engine/dialecte-refusal.d.ts.map +1 -0
  231. package/dist/store/engine/engine-store.d.ts +163 -0
  232. package/dist/store/engine/engine-store.d.ts.map +1 -0
  233. package/dist/store/engine/engine-store.types.d.ts +53 -0
  234. package/dist/store/engine/engine-store.types.d.ts.map +1 -0
  235. package/dist/store/engine/engine.constants.d.ts +14 -0
  236. package/dist/store/engine/engine.constants.d.ts.map +1 -0
  237. package/dist/store/engine/engine.types.d.ts +165 -0
  238. package/dist/store/engine/engine.types.d.ts.map +1 -0
  239. package/dist/store/engine/host/engine-wire.d.ts +19 -0
  240. package/dist/store/engine/host/engine-wire.d.ts.map +1 -0
  241. package/dist/store/engine/host/heartbeat.d.ts +33 -0
  242. package/dist/store/engine/host/heartbeat.d.ts.map +1 -0
  243. package/dist/store/engine/host/host.constants.d.ts +13 -0
  244. package/dist/store/engine/host/host.constants.d.ts.map +1 -0
  245. package/dist/store/engine/host/host.types.d.ts +65 -0
  246. package/dist/store/engine/host/host.types.d.ts.map +1 -0
  247. package/dist/store/engine/host/store-events.d.ts +14 -0
  248. package/dist/store/engine/host/store-events.d.ts.map +1 -0
  249. package/dist/store/engine/hub/hub-client.constants.d.ts +27 -0
  250. package/dist/store/engine/hub/hub-client.constants.d.ts.map +1 -0
  251. package/dist/store/engine/hub/hub-client.d.ts +46 -0
  252. package/dist/store/engine/hub/hub-client.d.ts.map +1 -0
  253. package/dist/store/engine/hub/hub-client.types.d.ts +208 -0
  254. package/dist/store/engine/hub/hub-client.types.d.ts.map +1 -0
  255. package/dist/store/engine/hub/hub-protocol.types.d.ts +193 -0
  256. package/dist/store/engine/hub/hub-protocol.types.d.ts.map +1 -0
  257. package/dist/store/engine/hub/hub-router.d.ts +9 -0
  258. package/dist/store/engine/hub/hub-router.d.ts.map +1 -0
  259. package/dist/store/engine/hub/hub-shell.d.ts +13 -0
  260. package/dist/store/engine/hub/hub-shell.d.ts.map +1 -0
  261. package/dist/store/engine/hub/hub-shell.types.d.ts +64 -0
  262. package/dist/store/engine/hub/hub-shell.types.d.ts.map +1 -0
  263. package/dist/store/engine/hub/hub.constants.d.ts +33 -0
  264. package/dist/store/engine/hub/hub.constants.d.ts.map +1 -0
  265. package/dist/store/engine/hub/hub.types.d.ts +305 -0
  266. package/dist/store/engine/hub/hub.types.d.ts.map +1 -0
  267. package/dist/store/engine/hub/hub.worker.d.ts +2 -0
  268. package/dist/store/engine/hub/hub.worker.d.ts.map +1 -0
  269. package/dist/store/engine/hub/realm-host.d.ts +10 -0
  270. package/dist/store/engine/hub/realm-host.d.ts.map +1 -0
  271. package/dist/store/engine/hub/realm-host.types.d.ts +78 -0
  272. package/dist/store/engine/hub/realm-host.types.d.ts.map +1 -0
  273. package/dist/store/engine/project-key.d.ts +15 -0
  274. package/dist/store/engine/project-key.d.ts.map +1 -0
  275. package/dist/store/engine/wire/error-envelope.d.ts +25 -0
  276. package/dist/store/engine/wire/error-envelope.d.ts.map +1 -0
  277. package/dist/store/engine/wire/wire-values.d.ts +33 -0
  278. package/dist/store/engine/wire/wire-values.d.ts.map +1 -0
  279. package/dist/store/engine/wire/wire.constants.d.ts +116 -0
  280. package/dist/store/engine/wire/wire.constants.d.ts.map +1 -0
  281. package/dist/store/engine/wire/wire.types.d.ts +119 -0
  282. package/dist/store/engine/wire/wire.types.d.ts.map +1 -0
  283. package/dist/store/hub-public.d.ts +33 -0
  284. package/dist/store/hub-public.d.ts.map +1 -0
  285. package/dist/store/ignore-destroy-outcome.d.ts +6 -0
  286. package/dist/store/ignore-destroy-outcome.d.ts.map +1 -0
  287. package/dist/store/in-memory/in-memory-state.d.ts +46 -0
  288. package/dist/store/in-memory/in-memory-state.d.ts.map +1 -0
  289. package/dist/store/in-memory/in-memory-store.constants.d.ts +7 -0
  290. package/dist/store/in-memory/in-memory-store.constants.d.ts.map +1 -0
  291. package/dist/store/in-memory/in-memory-store.d.ts +105 -17
  292. package/dist/store/in-memory/in-memory-store.d.ts.map +1 -1
  293. package/dist/store/in-memory/types.d.ts +55 -1
  294. package/dist/store/in-memory/types.d.ts.map +1 -1
  295. package/dist/store/index.d.ts +8 -2
  296. package/dist/store/index.d.ts.map +1 -1
  297. package/dist/store/json-values.constants.d.ts +18 -0
  298. package/dist/store/json-values.constants.d.ts.map +1 -0
  299. package/dist/store/json-values.d.ts +40 -0
  300. package/dist/store/json-values.d.ts.map +1 -0
  301. package/dist/store/json-values.types.d.ts +18 -0
  302. package/dist/store/json-values.types.d.ts.map +1 -0
  303. package/dist/store/local/dexie-store.constants.d.ts +20 -0
  304. package/dist/store/local/dexie-store.constants.d.ts.map +1 -0
  305. package/dist/store/local/dexie-store.d.ts +134 -5
  306. package/dist/store/local/dexie-store.d.ts.map +1 -1
  307. package/dist/store/local/types.d.ts +9 -0
  308. package/dist/store/local/types.d.ts.map +1 -1
  309. package/dist/store/lost-write.d.ts +32 -0
  310. package/dist/store/lost-write.d.ts.map +1 -0
  311. package/dist/store/lost-write.types.d.ts +4 -0
  312. package/dist/store/lost-write.types.d.ts.map +1 -0
  313. package/dist/store/open-connections.d.ts +4 -0
  314. package/dist/store/open-connections.d.ts.map +1 -0
  315. package/dist/store/open-connections.types.d.ts +17 -0
  316. package/dist/store/open-connections.types.d.ts.map +1 -0
  317. package/dist/store/own-import.d.ts +10 -0
  318. package/dist/store/own-import.d.ts.map +1 -0
  319. package/dist/store/project-name.d.ts +10 -0
  320. package/dist/store/project-name.d.ts.map +1 -0
  321. package/dist/store/resolve-store.d.ts +28 -4
  322. package/dist/store/resolve-store.d.ts.map +1 -1
  323. package/dist/store/running-operations.d.ts +7 -0
  324. package/dist/store/running-operations.d.ts.map +1 -0
  325. package/dist/store/running-operations.types.d.ts +10 -0
  326. package/dist/store/running-operations.types.d.ts.map +1 -0
  327. package/dist/store/same-json-value.d.ts +9 -0
  328. package/dist/store/same-json-value.d.ts.map +1 -0
  329. package/dist/store/sqlite/adapter/in-process-link.d.ts +20 -0
  330. package/dist/store/sqlite/adapter/in-process-link.d.ts.map +1 -0
  331. package/dist/store/sqlite/adapter/in-process-link.types.d.ts +21 -0
  332. package/dist/store/sqlite/adapter/in-process-link.types.d.ts.map +1 -0
  333. package/dist/store/sqlite/adapter/realm-storage.d.ts +10 -0
  334. package/dist/store/sqlite/adapter/realm-storage.d.ts.map +1 -0
  335. package/dist/store/sqlite/adapter/sqlite-connector.d.ts +14 -0
  336. package/dist/store/sqlite/adapter/sqlite-connector.d.ts.map +1 -0
  337. package/dist/store/sqlite/adapter/sqlite-engine-settings.d.ts +4 -0
  338. package/dist/store/sqlite/adapter/sqlite-engine-settings.d.ts.map +1 -0
  339. package/dist/store/sqlite/adapter/sqlite-hub-spawner.d.ts +8 -0
  340. package/dist/store/sqlite/adapter/sqlite-hub-spawner.d.ts.map +1 -0
  341. package/dist/store/sqlite/adapter/sqlite-hub-spawner.types.d.ts +5 -0
  342. package/dist/store/sqlite/adapter/sqlite-hub-spawner.types.d.ts.map +1 -0
  343. package/dist/store/sqlite/adapter/sqlite-worker-connector.d.ts +8 -0
  344. package/dist/store/sqlite/adapter/sqlite-worker-connector.d.ts.map +1 -0
  345. package/dist/store/sqlite/adapter/sqlite-worker-connector.types.d.ts +5 -0
  346. package/dist/store/sqlite/adapter/sqlite-worker-connector.types.d.ts.map +1 -0
  347. package/dist/store/sqlite/engine/blobs.d.ts +55 -0
  348. package/dist/store/sqlite/engine/blobs.d.ts.map +1 -0
  349. package/dist/store/sqlite/engine/bulk-insert.d.ts +31 -0
  350. package/dist/store/sqlite/engine/bulk-insert.d.ts.map +1 -0
  351. package/dist/store/sqlite/engine/commit.d.ts +20 -0
  352. package/dist/store/sqlite/engine/commit.d.ts.map +1 -0
  353. package/dist/store/sqlite/engine/device-cache.d.ts +13 -0
  354. package/dist/store/sqlite/engine/device-cache.d.ts.map +1 -0
  355. package/dist/store/sqlite/engine/engine-errors.d.ts +26 -0
  356. package/dist/store/sqlite/engine/engine-errors.d.ts.map +1 -0
  357. package/dist/store/sqlite/engine/engine.constants.d.ts +144 -0
  358. package/dist/store/sqlite/engine/engine.constants.d.ts.map +1 -0
  359. package/dist/store/sqlite/engine/engine.types.d.ts +361 -0
  360. package/dist/store/sqlite/engine/engine.types.d.ts.map +1 -0
  361. package/dist/store/sqlite/engine/history.d.ts +114 -0
  362. package/dist/store/sqlite/engine/history.d.ts.map +1 -0
  363. package/dist/store/sqlite/engine/import-queue.d.ts +7 -0
  364. package/dist/store/sqlite/engine/import-queue.d.ts.map +1 -0
  365. package/dist/store/sqlite/engine/import-target.d.ts +23 -0
  366. package/dist/store/sqlite/engine/import-target.d.ts.map +1 -0
  367. package/dist/store/sqlite/engine/import-window.d.ts +23 -0
  368. package/dist/store/sqlite/engine/import-window.d.ts.map +1 -0
  369. package/dist/store/sqlite/engine/reclaim.d.ts +13 -0
  370. package/dist/store/sqlite/engine/reclaim.d.ts.map +1 -0
  371. package/dist/store/sqlite/engine/records.d.ts +117 -0
  372. package/dist/store/sqlite/engine/records.d.ts.map +1 -0
  373. package/dist/store/sqlite/engine/registry.d.ts +76 -0
  374. package/dist/store/sqlite/engine/registry.d.ts.map +1 -0
  375. package/dist/store/sqlite/engine/schema.d.ts +57 -0
  376. package/dist/store/sqlite/engine/schema.d.ts.map +1 -0
  377. package/dist/store/sqlite/engine/sqlite-engine.d.ts +14 -0
  378. package/dist/store/sqlite/engine/sqlite-engine.d.ts.map +1 -0
  379. package/dist/store/sqlite/engine/transaction.d.ts +12 -0
  380. package/dist/store/sqlite/engine/transaction.d.ts.map +1 -0
  381. package/dist/store/sqlite/list-projects.constants.d.ts +12 -0
  382. package/dist/store/sqlite/list-projects.constants.d.ts.map +1 -0
  383. package/dist/store/sqlite/list-projects.d.ts +22 -0
  384. package/dist/store/sqlite/list-projects.d.ts.map +1 -0
  385. package/dist/store/sqlite/list-projects.types.d.ts +28 -0
  386. package/dist/store/sqlite/list-projects.types.d.ts.map +1 -0
  387. package/dist/store/sqlite/load-sqlite.d.ts +11 -0
  388. package/dist/store/sqlite/load-sqlite.d.ts.map +1 -0
  389. package/dist/store/sqlite/runtime/close-engine.d.ts +18 -0
  390. package/dist/store/sqlite/runtime/close-engine.d.ts.map +1 -0
  391. package/dist/store/sqlite/runtime/install-pool.d.ts +94 -0
  392. package/dist/store/sqlite/runtime/install-pool.d.ts.map +1 -0
  393. package/dist/store/sqlite/runtime/pool-header.d.ts +13 -0
  394. package/dist/store/sqlite/runtime/pool-header.d.ts.map +1 -0
  395. package/dist/store/sqlite/runtime/progress-beat.d.ts +13 -0
  396. package/dist/store/sqlite/runtime/progress-beat.d.ts.map +1 -0
  397. package/dist/store/sqlite/runtime/runtime.constants.d.ts +57 -0
  398. package/dist/store/sqlite/runtime/runtime.constants.d.ts.map +1 -0
  399. package/dist/store/sqlite/runtime/runtime.types.d.ts +56 -0
  400. package/dist/store/sqlite/runtime/runtime.types.d.ts.map +1 -0
  401. package/dist/store/sqlite/runtime/serve-dialecte-engine.d.ts +16 -0
  402. package/dist/store/sqlite/runtime/serve-dialecte-engine.d.ts.map +1 -0
  403. package/dist/store/sqlite/sqlite-store-of.d.ts +7 -0
  404. package/dist/store/sqlite/sqlite-store-of.d.ts.map +1 -0
  405. package/dist/store/sqlite/sqlite-text.d.ts +20 -0
  406. package/dist/store/sqlite/sqlite-text.d.ts.map +1 -0
  407. package/dist/store/sqlite/sqlite-wasm-url.d.ts +9 -0
  408. package/dist/store/sqlite/sqlite-wasm-url.d.ts.map +1 -0
  409. package/dist/store/sqlite/sqlite.constants.d.ts +15 -0
  410. package/dist/store/sqlite/sqlite.constants.d.ts.map +1 -0
  411. package/dist/store/sqlite/sqlite.types.d.ts +36 -0
  412. package/dist/store/sqlite/sqlite.types.d.ts.map +1 -0
  413. package/dist/store/sqlite-storage.constants.d.ts +14 -0
  414. package/dist/store/sqlite-storage.constants.d.ts.map +1 -0
  415. package/dist/store/sqlite-storage.d.ts +22 -0
  416. package/dist/store/sqlite-storage.d.ts.map +1 -0
  417. package/dist/store/sqlite-storage.types.d.ts +24 -0
  418. package/dist/store/sqlite-storage.types.d.ts.map +1 -0
  419. package/dist/store/store-errors.d.ts +51 -0
  420. package/dist/store/store-errors.d.ts.map +1 -0
  421. package/dist/store/store.constants.d.ts +15 -3
  422. package/dist/store/store.constants.d.ts.map +1 -1
  423. package/dist/store/store.types.d.ts +280 -16
  424. package/dist/store/store.types.d.ts.map +1 -1
  425. package/dist/store/stored-record.d.ts +16 -0
  426. package/dist/store/stored-record.d.ts.map +1 -0
  427. package/dist/store/unfinished-imports.d.ts +15 -0
  428. package/dist/store/unfinished-imports.d.ts.map +1 -0
  429. package/dist/store/write-outcome.d.ts +34 -0
  430. package/dist/store/write-outcome.d.ts.map +1 -0
  431. package/dist/test/assert-valid-xml/assert-valid-xml.constants.d.ts +7 -0
  432. package/dist/test/assert-valid-xml/assert-valid-xml.constants.d.ts.map +1 -0
  433. package/dist/test/assert-valid-xml/assert-valid-xml.d.ts +19 -18
  434. package/dist/test/assert-valid-xml/assert-valid-xml.d.ts.map +1 -1
  435. package/dist/test/assert-valid-xml/assert-valid-xml.types.d.ts +8 -4
  436. package/dist/test/assert-valid-xml/assert-valid-xml.types.d.ts.map +1 -1
  437. package/dist/test/assert-xml/assert-xml.constants.d.ts +25 -0
  438. package/dist/test/assert-xml/assert-xml.constants.d.ts.map +1 -0
  439. package/dist/test/assert-xml/assert-xml.d.ts +23 -34
  440. package/dist/test/assert-xml/assert-xml.d.ts.map +1 -1
  441. package/dist/test/assert-xml/assert-xml.types.d.ts +48 -0
  442. package/dist/test/assert-xml/assert-xml.types.d.ts.map +1 -0
  443. package/dist/test/assert-xml/describe-nearby.d.ts +16 -0
  444. package/dist/test/assert-xml/describe-nearby.d.ts.map +1 -0
  445. package/dist/test/assert-xml/describe-node-place.d.ts +15 -0
  446. package/dist/test/assert-xml/describe-node-place.d.ts.map +1 -0
  447. package/dist/test/assert-xml/index.d.ts +1 -1
  448. package/dist/test/assert-xml/index.d.ts.map +1 -1
  449. package/dist/test/assert-xml/query-failure-message.d.ts +24 -0
  450. package/dist/test/assert-xml/query-failure-message.d.ts.map +1 -0
  451. package/dist/test/assert-xml/read-xpath-step.d.ts +8 -0
  452. package/dist/test/assert-xml/read-xpath-step.d.ts.map +1 -0
  453. package/dist/test/assert-xml/xpath-parser.d.ts +2 -1
  454. package/dist/test/assert-xml/xpath-parser.d.ts.map +1 -1
  455. package/dist/test/config.d.ts +5 -0
  456. package/dist/test/config.d.ts.map +1 -1
  457. package/dist/test/constant.d.ts +2 -0
  458. package/dist/test/constant.d.ts.map +1 -1
  459. package/dist/test/create-test-dialecte.d.ts +32 -37
  460. package/dist/test/create-test-dialecte.d.ts.map +1 -1
  461. package/dist/test/create-test-dialecte.types.d.ts +99 -0
  462. package/dist/test/create-test-dialecte.types.d.ts.map +1 -0
  463. package/dist/test/create-test-helpers-internal.types.d.ts +19 -0
  464. package/dist/test/create-test-helpers-internal.types.d.ts.map +1 -0
  465. package/dist/test/create-test-helpers.d.ts +13 -0
  466. package/dist/test/create-test-helpers.d.ts.map +1 -0
  467. package/dist/test/create-test-helpers.types.d.ts +50 -0
  468. package/dist/test/create-test-helpers.types.d.ts.map +1 -0
  469. package/dist/test/fixtures/test-entry-scan-constraint.d.ts +3 -0
  470. package/dist/test/fixtures/test-entry-scan-constraint.d.ts.map +1 -0
  471. package/dist/test/fixtures/test-entry-scan-edges.types.d.ts +10 -0
  472. package/dist/test/fixtures/test-entry-scan-edges.types.d.ts.map +1 -0
  473. package/dist/test/fixtures/test-entry-scan-recursive.d.ts +4 -0
  474. package/dist/test/fixtures/test-entry-scan-recursive.d.ts.map +1 -0
  475. package/dist/test/fixtures/test-entry-scan-recursive.types.d.ts +15 -0
  476. package/dist/test/fixtures/test-entry-scan-recursive.types.d.ts.map +1 -0
  477. package/dist/test/fixtures/test-entry-scan-shapes.d.ts +14 -0
  478. package/dist/test/fixtures/test-entry-scan-shapes.d.ts.map +1 -0
  479. package/dist/test/fixtures/test-entry-scan-shapes.types.d.ts +14 -0
  480. package/dist/test/fixtures/test-entry-scan-shapes.types.d.ts.map +1 -0
  481. package/dist/test/fixtures/test-entry-scan-tree.d.ts +3 -0
  482. package/dist/test/fixtures/test-entry-scan-tree.d.ts.map +1 -0
  483. package/dist/test/fixtures/test-entry-scan.d.ts +5 -0
  484. package/dist/test/fixtures/test-entry-scan.d.ts.map +1 -0
  485. package/dist/test/fixtures/test-entry-scan.types.d.ts +5 -0
  486. package/dist/test/fixtures/test-entry-scan.types.d.ts.map +1 -0
  487. package/dist/test/generated/definition.generated.d.ts +5 -0
  488. package/dist/test/generated/definition.generated.d.ts.map +1 -1
  489. package/dist/test/in-memory-storage.setup.d.ts +2 -0
  490. package/dist/test/in-memory-storage.setup.d.ts.map +1 -0
  491. package/dist/test/index.d.ts +6 -0
  492. package/dist/test/index.d.ts.map +1 -1
  493. package/dist/test/normalize-uuids.constants.d.ts +3 -0
  494. package/dist/test/normalize-uuids.constants.d.ts.map +1 -0
  495. package/dist/test/normalize-uuids.d.ts +12 -0
  496. package/dist/test/normalize-uuids.d.ts.map +1 -1
  497. package/dist/test/run-test-cases.d.ts +30 -11
  498. package/dist/test/run-test-cases.d.ts.map +1 -1
  499. package/dist/test/run-test-cases.type.d.ts +16 -0
  500. package/dist/test/run-test-cases.type.d.ts.map +1 -1
  501. package/dist/test/sqlite-storage.setup.d.ts +1 -0
  502. package/dist/test/sqlite-storage.setup.d.ts.map +1 -0
  503. package/dist/test/test-dialecte-setup.d.ts +31 -0
  504. package/dist/test/test-dialecte-setup.d.ts.map +1 -0
  505. package/dist/test/test-dialecte-setup.types.d.ts +29 -0
  506. package/dist/test/test-dialecte-setup.types.d.ts.map +1 -0
  507. package/dist/test/test-dialecte.d.ts +2722 -0
  508. package/dist/test/test-dialecte.d.ts.map +1 -0
  509. package/dist/test/test-dialecte.types.d.ts +3 -0
  510. package/dist/test/test-dialecte.types.d.ts.map +1 -0
  511. package/dist/test/test-dialecte.worker.d.ts +2 -0
  512. package/dist/test/test-dialecte.worker.d.ts.map +1 -0
  513. package/dist/test/test-entry-environment.constants.d.ts +27 -0
  514. package/dist/test/test-entry-environment.constants.d.ts.map +1 -0
  515. package/dist/test/test-record.d.ts +49 -1
  516. package/dist/test/test-record.d.ts.map +1 -1
  517. package/dist/test/test-storage/index.d.ts +5 -0
  518. package/dist/test/test-storage/index.d.ts.map +1 -0
  519. package/dist/test/test-storage/read-test-storage.d.ts +4 -0
  520. package/dist/test/test-storage/read-test-storage.d.ts.map +1 -0
  521. package/dist/test/test-storage/resolve-test-storage.d.ts +9 -0
  522. package/dist/test/test-storage/resolve-test-storage.d.ts.map +1 -0
  523. package/dist/test/test-storage/test-storage.constants.d.ts +9 -0
  524. package/dist/test/test-storage/test-storage.constants.d.ts.map +1 -0
  525. package/dist/test/test-storage/test-storage.types.d.ts +15 -0
  526. package/dist/test/test-storage/test-storage.types.d.ts.map +1 -0
  527. package/dist/test/test-storage/test-store-for.d.ts +19 -0
  528. package/dist/test/test-storage/test-store-for.d.ts.map +1 -0
  529. package/dist/test/test-storage/use-test-storage.d.ts +14 -0
  530. package/dist/test/test-storage/use-test-storage.d.ts.map +1 -0
  531. package/dist/test/test-timing.constants.d.ts +15 -0
  532. package/dist/test/test-timing.constants.d.ts.map +1 -0
  533. package/dist/test/xml/engine-console.d.ts +6 -0
  534. package/dist/test/xml/engine-console.d.ts.map +1 -0
  535. package/dist/test/xml/engine.d.ts +3 -0
  536. package/dist/test/xml/engine.d.ts.map +1 -0
  537. package/dist/test/xml/index.d.ts +8 -0
  538. package/dist/test/xml/index.d.ts.map +1 -0
  539. package/dist/test/xml/malformed-xml-error.d.ts +5 -0
  540. package/dist/test/xml/malformed-xml-error.d.ts.map +1 -0
  541. package/dist/test/xml/print-node.d.ts +7 -0
  542. package/dist/test/xml/print-node.d.ts.map +1 -0
  543. package/dist/test/xml/select-nodes.d.ts +14 -0
  544. package/dist/test/xml/select-nodes.d.ts.map +1 -0
  545. package/dist/test/xml/with-xml-document.constants.d.ts +7 -0
  546. package/dist/test/xml/with-xml-document.constants.d.ts.map +1 -0
  547. package/dist/test/xml/with-xml-document.d.ts +14 -0
  548. package/dist/test/xml/with-xml-document.d.ts.map +1 -0
  549. package/dist/test/xml/xml-query-refused-error.d.ts +13 -0
  550. package/dist/test/xml/xml-query-refused-error.d.ts.map +1 -0
  551. package/dist/test/xml/xml.constants.d.ts +16 -0
  552. package/dist/test/xml/xml.constants.d.ts.map +1 -0
  553. package/dist/test/xml/xml.types.d.ts +31 -0
  554. package/dist/test/xml/xml.types.d.ts.map +1 -0
  555. package/dist/test/xsd/test-ext.xsd +226 -0
  556. package/dist/test/xsd/test.xsd +528 -0
  557. package/dist/test.js +3427 -406
  558. package/dist/types/dialecte-config.d.ts +6 -0
  559. package/dist/types/dialecte-config.d.ts.map +1 -1
  560. package/dist/types/io.d.ts +33 -25
  561. package/dist/types/io.d.ts.map +1 -1
  562. package/dist/utils/attribute-rules.d.ts +16 -1
  563. package/dist/utils/attribute-rules.d.ts.map +1 -1
  564. package/dist/utils/child-occurrences.constants.d.ts +4 -0
  565. package/dist/utils/child-occurrences.constants.d.ts.map +1 -0
  566. package/dist/utils/child-occurrences.d.ts +17 -0
  567. package/dist/utils/child-occurrences.d.ts.map +1 -0
  568. package/dist/utils/child-occurrences.types.d.ts +6 -0
  569. package/dist/utils/child-occurrences.types.d.ts.map +1 -0
  570. package/dist/utils/datatype.d.ts +4 -0
  571. package/dist/utils/datatype.d.ts.map +1 -1
  572. package/dist/utils/format-xml.d.ts +4 -0
  573. package/dist/utils/format-xml.d.ts.map +1 -1
  574. package/dist/utils/index.d.ts +5 -1
  575. package/dist/utils/index.d.ts.map +1 -1
  576. package/dist/utils/invariant.d.ts +2 -0
  577. package/dist/utils/invariant.d.ts.map +1 -1
  578. package/dist/utils/namespaces.d.ts +15 -1
  579. package/dist/utils/namespaces.d.ts.map +1 -1
  580. package/dist/utils/order-children.d.ts +14 -3
  581. package/dist/utils/order-children.d.ts.map +1 -1
  582. package/dist/utils/order-children.types.d.ts +10 -0
  583. package/dist/utils/order-children.types.d.ts.map +1 -0
  584. package/dist/utils/particle-occurrences.d.ts +4 -0
  585. package/dist/utils/particle-occurrences.d.ts.map +1 -0
  586. package/dist/utils/required-choices.d.ts +17 -0
  587. package/dist/utils/required-choices.d.ts.map +1 -0
  588. package/dist/utils/required-choices.types.d.ts +15 -0
  589. package/dist/utils/required-choices.types.d.ts.map +1 -0
  590. package/dist/utils/resolve-definition.d.ts +4 -0
  591. package/dist/utils/resolve-definition.d.ts.map +1 -1
  592. package/dist/utils/save-to-disk.constants.d.ts +3 -0
  593. package/dist/utils/save-to-disk.constants.d.ts.map +1 -0
  594. package/dist/utils/save-to-disk.d.ts +17 -5
  595. package/dist/utils/save-to-disk.d.ts.map +1 -1
  596. package/dist/utils/save-to-disk.types.d.ts +17 -0
  597. package/dist/utils/save-to-disk.types.d.ts.map +1 -0
  598. package/dist/utils/seeded-uuid.constants.d.ts +5 -0
  599. package/dist/utils/seeded-uuid.constants.d.ts.map +1 -0
  600. package/dist/utils/seeded-uuid.d.ts +15 -0
  601. package/dist/utils/seeded-uuid.d.ts.map +1 -0
  602. package/dist/utils/seeded-uuid.types.d.ts +8 -0
  603. package/dist/utils/seeded-uuid.types.d.ts.map +1 -0
  604. package/dist/utils/tell-listener.constants.d.ts +9 -0
  605. package/dist/utils/tell-listener.constants.d.ts.map +1 -0
  606. package/dist/utils/tell-listener.d.ts +24 -0
  607. package/dist/utils/tell-listener.d.ts.map +1 -0
  608. package/dist/utils/xml-characters.constants.d.ts +9 -0
  609. package/dist/utils/xml-characters.constants.d.ts.map +1 -0
  610. package/dist/utils/xml-characters.d.ts +8 -0
  611. package/dist/utils/xml-characters.d.ts.map +1 -0
  612. package/dist/utils/xml-whitespace.constants.d.ts +8 -0
  613. package/dist/utils/xml-whitespace.constants.d.ts.map +1 -0
  614. package/dist/utils/xml-whitespace.d.ts +19 -0
  615. package/dist/utils/xml-whitespace.d.ts.map +1 -0
  616. package/dist/utils/xsi-type.d.ts +4 -0
  617. package/dist/utils/xsi-type.d.ts.map +1 -1
  618. package/dist/utils/yield-to-queue.d.ts +6 -0
  619. package/dist/utils/yield-to-queue.d.ts.map +1 -0
  620. package/dist/utils-USNkj4sT.js +1275 -0
  621. package/dist/utils.js +1 -2
  622. package/dist/xml/build/document-root.d.ts +7 -0
  623. package/dist/xml/build/document-root.d.ts.map +1 -0
  624. package/dist/xml/build/index.d.ts +0 -5
  625. package/dist/xml/build/index.d.ts.map +1 -1
  626. package/dist/xml/build/record-element.d.ts +15 -0
  627. package/dist/xml/build/record-element.d.ts.map +1 -0
  628. package/dist/xml/build/record-element.types.d.ts +12 -0
  629. package/dist/xml/build/record-element.types.d.ts.map +1 -0
  630. package/dist/xml/build/write-xml-records.d.ts +7 -0
  631. package/dist/xml/build/write-xml-records.d.ts.map +1 -0
  632. package/dist/xml/build/write-xml-records.types.d.ts +11 -0
  633. package/dist/xml/build/write-xml-records.types.d.ts.map +1 -0
  634. package/dist/xml/build/xml-element.d.ts +79 -0
  635. package/dist/xml/build/xml-element.d.ts.map +1 -0
  636. package/dist/xml/build/xml-element.types.d.ts +34 -0
  637. package/dist/xml/build/xml-element.types.d.ts.map +1 -0
  638. package/dist/xml/build/xml-writer.constants.d.ts +24 -0
  639. package/dist/xml/build/xml-writer.constants.d.ts.map +1 -0
  640. package/dist/xml/build/xml-writer.d.ts +40 -0
  641. package/dist/xml/build/xml-writer.d.ts.map +1 -0
  642. package/dist/xml/build/xml-writer.types.d.ts +34 -0
  643. package/dist/xml/build/xml-writer.types.d.ts.map +1 -0
  644. package/dist/xml/dom/index.d.ts +3 -0
  645. package/dist/xml/dom/index.d.ts.map +1 -0
  646. package/dist/xml/dom/xml-document-from-file.d.ts +10 -0
  647. package/dist/xml/dom/xml-document-from-file.d.ts.map +1 -0
  648. package/dist/xml/dom/xml-document-from-file.types.d.ts +5 -0
  649. package/dist/xml/dom/xml-document-from-file.types.d.ts.map +1 -0
  650. package/dist/xml/index.d.ts +1 -0
  651. package/dist/xml/index.d.ts.map +1 -1
  652. package/dist/xml/inspect-xml.d.ts +2 -0
  653. package/dist/xml/inspect-xml.d.ts.map +1 -1
  654. package/dist/xml/parse/index.d.ts +1 -1
  655. package/dist/xml/parse/index.d.ts.map +1 -1
  656. package/dist/xml/parse/parse-xml-document.constants.d.ts +5 -0
  657. package/dist/xml/parse/parse-xml-document.constants.d.ts.map +1 -0
  658. package/dist/xml/parse/parse-xml-document.d.ts +13 -2
  659. package/dist/xml/parse/parse-xml-document.d.ts.map +1 -1
  660. package/dist/xml/parse/parse-xml-document.types.d.ts +12 -2
  661. package/dist/xml/parse/parse-xml-document.types.d.ts.map +1 -1
  662. package/dist/xml/parse/parser.constants.d.ts +7 -0
  663. package/dist/xml/parse/parser.constants.d.ts.map +1 -0
  664. package/dist/xml/parse/parser.d.ts +4 -2
  665. package/dist/xml/parse/parser.d.ts.map +1 -1
  666. package/dist/xml/parse/types.d.ts +2 -0
  667. package/dist/xml/parse/types.d.ts.map +1 -1
  668. package/package.json +88 -8
  669. package/skills/dialecte/SKILL.md +276 -0
  670. package/skills/dialecte/references/api.json +1830 -0
  671. package/skills/dialecte/references/api.md +557 -0
  672. package/skills/dialecte/references/core-api.md +204 -0
  673. package/skills/dialecte/references/testing.md +116 -0
  674. package/skills/dialecte-contributing/SKILL.md +328 -0
  675. package/skills/dialecte-contributing/references/code-rules.md +108 -0
  676. package/skills/dialecte-contributing/references/landing-changes.md +83 -0
  677. package/skills/dialecte-contributing/references/perf.md +39 -0
  678. package/skills/dialecte-contributing/references/traps.md +89 -0
  679. package/skills/dialecte-lot/SKILL.md +471 -0
  680. package/skills/dialecte-lot/references/briefs.md +152 -0
  681. package/skills/dialecte-lot/references/model-tiers.md +52 -0
  682. package/skills/dialecte-lot/references/retro.md +51 -0
  683. package/dist/project/io/import-document.d.ts +0 -7
  684. package/dist/project/io/import-document.d.ts.map +0 -1
  685. package/dist/test/assert-xml/types.d.ts +0 -2
  686. package/dist/test/assert-xml/types.d.ts.map +0 -1
  687. package/dist/utils-CTBHUFs9.js +0 -620
  688. package/dist/xml/build/build-xml-document.d.ts +0 -10
  689. package/dist/xml/build/build-xml-document.d.ts.map +0 -1
  690. package/dist/xml/build/build-xml-document.types.d.ts +0 -22
  691. package/dist/xml/build/build-xml-document.types.d.ts.map +0 -1
  692. package/dist/xml/build/download-file.d.ts +0 -7
  693. package/dist/xml/build/download-file.d.ts.map +0 -1
  694. package/dist/xml/build/formatter.d.ts +0 -2
  695. package/dist/xml/build/formatter.d.ts.map +0 -1
  696. package/dist/xml/build/serialize.d.ts +0 -11
  697. package/dist/xml/build/serialize.d.ts.map +0 -1
  698. package/dist/xml/build/serialize.types.d.ts +0 -12
  699. package/dist/xml/build/serialize.types.d.ts.map +0 -1
@@ -0,0 +1,117 @@
1
+ import { RecordReadsById } from './engine.types';
2
+ import { AnyRawRecord, RecordPatch } from '../../../types';
3
+ import { Database, Sqlite3Static, SqlValue } from '@sqlite.org/sqlite-wasm';
4
+ export declare function readRecord(params: {
5
+ db: Database;
6
+ table: string;
7
+ id: string;
8
+ }): AnyRawRecord | undefined;
9
+ /**
10
+ * Every record of the table, in id order: read in table order (a plain scan), sorted here - SQLite
11
+ * compares by code point, the port by UTF-16 code unit.
12
+ */
13
+ export declare function readAllRecords(params: {
14
+ db: Database;
15
+ table: string;
16
+ }): AnyRawRecord[];
17
+ export declare function readRecordsByTag(params: {
18
+ db: Database;
19
+ table: string;
20
+ tagName: string;
21
+ }): AnyRawRecord[];
22
+ /** The records of these ids the table holds, by id: one statement for all of them. */
23
+ export declare function readRecordsById(params: {
24
+ db: Database;
25
+ table: string;
26
+ ids: readonly string[];
27
+ }): Map<string, AnyRawRecord>;
28
+ /**
29
+ * Reads by id on one table through one prepared statement, for a caller that reads many times (an
30
+ * export): `read` answers the records of the ids the table holds, `finalize` releases the statement.
31
+ */
32
+ export declare function prepareReadsById(params: {
33
+ db: Database;
34
+ table: string;
35
+ }): RecordReadsById;
36
+ /** The ids among these the table holds: one statement, no record read. */
37
+ export declare function readHeldIds(params: {
38
+ db: Database;
39
+ table: string;
40
+ ids: readonly string[];
41
+ }): Set<string>;
42
+ export declare function countRecords(params: {
43
+ db: Database;
44
+ table: string;
45
+ }): number;
46
+ /**
47
+ * A create of an id the table holds, or that the write gives twice, refuses the write
48
+ * (`STORE_DUPLICATE_ID`): the held ids are looked up in one statement.
49
+ */
50
+ export declare function refuseTakenIds(params: {
51
+ db: Database;
52
+ table: string;
53
+ documentId: string;
54
+ creates: AnyRawRecord[];
55
+ }): void;
56
+ /**
57
+ * Ids to create refused (`STORE_DUPLICATE_ID`) when one is held already or given twice among them;
58
+ * answers the set of the ids given.
59
+ */
60
+ export declare function refuseDuplicateIds(params: {
61
+ documentId: string;
62
+ ids: readonly string[];
63
+ heldIds: ReadonlySet<string>;
64
+ }): Set<string>;
65
+ /**
66
+ * A unique id index that could not be built for ids the table holds twice: refused
67
+ * `STORE_DUPLICATE_ID`, naming them (up to `DUPLICATE_IDS_REPORTED`, read on this failure only).
68
+ * Any other failure is left as it is.
69
+ */
70
+ export declare function refuseRepeatedIds(params: {
71
+ sqlite3: Sqlite3Static;
72
+ db: Database;
73
+ table: string;
74
+ documentId: string;
75
+ thrown: unknown;
76
+ }): void;
77
+ /**
78
+ * The patches of a write that apply - those of the records the table holds (one statement per batch
79
+ * of ids) - checked as one list, as every store checks them: a value that is not JSON refuses the
80
+ * write with `STORE_VALUE_NOT_JSON`, its place counted among them. A patch of a record the table does
81
+ * not hold is not checked: it is skipped.
82
+ */
83
+ export declare function checkApplyingPatches(params: {
84
+ db: Database;
85
+ table: string;
86
+ patches: readonly RecordPatch[];
87
+ }): void;
88
+ /**
89
+ * The patches of the records `held` checked as one list: a value that is not JSON refuses, its place
90
+ * counted among them. Answers them: the write applies those and no other, as one write would.
91
+ */
92
+ export declare function checkHeldPatches(params: {
93
+ patches: readonly RecordPatch[];
94
+ held: ReadonlySet<string>;
95
+ }): RecordPatch[];
96
+ /**
97
+ * Apply bulk-write patches already checked (`checkApplyingPatches`), in the caller's transaction, in
98
+ * the order given: per batch of ids the records are read in one statement, the patches of the records
99
+ * held applied (`applyRecordPatch`, a record patched twice in turn), encoded and written back in one
100
+ * statement, one row per record. A patch of a record the table does not hold is skipped.
101
+ */
102
+ export declare function patchRecords(params: {
103
+ db: Database;
104
+ table: string;
105
+ patches: RecordPatch[];
106
+ }): void;
107
+ /** Delete the records of these ids, in the caller's transaction; answers how many were held. */
108
+ export declare function deleteRecords(params: {
109
+ db: Database;
110
+ table: string;
111
+ ids: readonly string[];
112
+ }): number;
113
+ /** A record from its row, the columns in the order of `RECORD_COLUMNS`. */
114
+ export declare function recordOf(params: {
115
+ row: SqlValue[];
116
+ }): AnyRawRecord;
117
+ //# sourceMappingURL=records.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/engine/records.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAmB,WAAW,EAAE,MAAM,SAAS,CAAA;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAEhF,wBAAgB,UAAU,CAAC,MAAM,EAAE;IAClC,EAAE,EAAE,QAAQ,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;CACV,GAAG,YAAY,GAAG,SAAS,CAI3B;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,EAAE,CAMtF;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IACxC,EAAE,EAAE,QAAQ,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CACf,GAAG,YAAY,EAAE,CAMjB;AAED,sFAAsF;AACtF,wBAAgB,eAAe,CAAC,MAAM,EAAE;IACvC,EAAE,EAAE,QAAQ,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,SAAS,MAAM,EAAE,CAAA;CACtB,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAO5B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,eAAe,CAuBzF;AAED,0EAA0E;AAC1E,wBAAgB,WAAW,CAAC,MAAM,EAAE;IACnC,EAAE,EAAE,QAAQ,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,SAAS,MAAM,EAAE,CAAA;CACtB,GAAG,GAAG,CAAC,MAAM,CAAC,CASd;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAE5E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACtC,EAAE,EAAE,QAAQ,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,YAAY,EAAE,CAAA;CACvB,GAAG,IAAI,CAKP;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IAC1C,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,SAAS,MAAM,EAAE,CAAA;IACtB,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAC5B,GAAG,GAAG,CAAC,MAAM,CAAC,CAad;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IACzC,OAAO,EAAE,aAAa,CAAA;IACtB,EAAE,EAAE,QAAQ,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;CACf,GAAG,IAAI,CAeP;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAC5C,EAAE,EAAE,QAAQ,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,SAAS,WAAW,EAAE,CAAA;CAC/B,GAAG,IAAI,CASP;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IACxC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAA;IAC/B,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACzB,GAAG,WAAW,EAAE,CAKhB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE;IACpC,EAAE,EAAE,QAAQ,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,WAAW,EAAE,CAAA;CACtB,GAAG,IAAI,CAsBP;AAED,gGAAgG;AAChG,wBAAgB,aAAa,CAAC,MAAM,EAAE;IACrC,EAAE,EAAE,QAAQ,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,SAAS,MAAM,EAAE,CAAA;CACtB,GAAG,MAAM,CAQT;AAED,2EAA2E;AAC3E,wBAAgB,QAAQ,CAAC,MAAM,EAAE;IAAE,GAAG,EAAE,QAAQ,EAAE,CAAA;CAAE,GAAG,YAAY,CAYlE"}
@@ -0,0 +1,76 @@
1
+ import { DocumentTable, DocumentTables, RegistryRowState } from './engine.types';
2
+ import { DocumentRecord, DocumentUpdates } from '../../../project/types';
3
+ import { Database } from '@sqlite.org/sqlite-wasm';
4
+ /**
5
+ * Register a document and create its record table without indexes and its history-rows table, in the
6
+ * caller's transaction; answers the row's number and the record table. An id already registered is refused with
7
+ * `STORE_DUPLICATE_ID`, the registered one left as it was, then a value that is not JSON with
8
+ * `STORE_VALUE_NOT_JSON`, then a path that is not valid or not the document's with `DOCUMENT_PATH_INVALID`, then a
9
+ * place another document holds with `DOCUMENT_PATH_TAKEN`.
10
+ */
11
+ export declare function insertDocument(params: {
12
+ db: Database;
13
+ document: DocumentRecord;
14
+ }): DocumentTable;
15
+ /** A document's row number, status, write and creation time, read by its id; none when it is not registered. */
16
+ export declare function readDocumentState(params: {
17
+ db: Database;
18
+ documentId: string;
19
+ }): RegistryRowState | undefined;
20
+ /**
21
+ * Mark an imported document ready, in the caller's transaction; answers whether it was there, still
22
+ * `importing` - a document removed meanwhile is never marked.
23
+ */
24
+ export declare function markImportReady(params: {
25
+ db: Database;
26
+ documentId: string;
27
+ }): boolean;
28
+ export declare function readDocument(params: {
29
+ db: Database;
30
+ documentId: string;
31
+ }): DocumentRecord | undefined;
32
+ /** Every registered document, in id order. */
33
+ export declare function readDocuments(params: {
34
+ db: Database;
35
+ }): DocumentRecord[];
36
+ /**
37
+ * The name, path and metadata of a registered document, in the caller's transaction: a value that
38
+ * is not JSON is refused with `STORE_VALUE_NOT_JSON` first; an unknown document is then left alone; then the
39
+ * path rules (`DOCUMENT_PATH_INVALID`, `DOCUMENT_PATH_TAKEN`), as every store applies them.
40
+ */
41
+ export declare function updateDocumentRow(params: {
42
+ db: Database;
43
+ documentId: string;
44
+ updates: DocumentUpdates;
45
+ }): boolean;
46
+ /**
47
+ * A document gone, in the caller's transaction: its record table, its history (its history-rows table
48
+ * and its entries), the blobs it owns, its registry row. An unknown one is ignored; whether it was there.
49
+ */
50
+ export declare function deleteDocument(params: {
51
+ db: Database;
52
+ documentId: string;
53
+ }): boolean;
54
+ /** The record table of a registered document; none for a document that is not registered. */
55
+ export declare function recordTableOf(params: {
56
+ db: Database;
57
+ documentId: string;
58
+ }): string | undefined;
59
+ /** The record and history-rows tables of a registered document; none for a document that is not registered. */
60
+ export declare function documentTablesOf(params: {
61
+ db: Database;
62
+ documentId: string;
63
+ }): DocumentTables | undefined;
64
+ /**
65
+ * Every document left `importing` gone with all it has, in the caller's transaction: no import
66
+ * outlives its engine, so at an engine start such a document is a leftover (a closed tab, a crash).
67
+ */
68
+ export declare function deleteUnfinishedImports(params: {
69
+ db: Database;
70
+ }): void;
71
+ /** The documents written by the write of that id (one at most). */
72
+ export declare function readDocumentsByWriteId(params: {
73
+ db: Database;
74
+ writeId: string;
75
+ }): DocumentRecord[];
76
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/engine/registry.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACrF,OAAO,KAAK,EAAE,cAAc,EAAkB,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtF,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,yBAAyB,CAAA;AAEjE;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,cAAc,CAAA;CAAE,GAAG,aAAa,CAqBhG;AAED,gHAAgH;AAChH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IACzC,EAAE,EAAE,QAAQ,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CAClB,GAAG,gBAAgB,GAAG,SAAS,CAc/B;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,QAAQ,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAOrF;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE;IACpC,EAAE,EAAE,QAAQ,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CAClB,GAAG,cAAc,GAAG,SAAS,CAO7B;AAED,8CAA8C;AAC9C,wBAAgB,aAAa,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,QAAQ,CAAA;CAAE,GAAG,cAAc,EAAE,CAIxE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IACzC,EAAE,EAAE,QAAQ,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,eAAe,CAAA;CACxB,GAAG,OAAO,CAeV;AAYD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,QAAQ,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAMpF;AAED,6FAA6F;AAC7F,wBAAgB,aAAa,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,QAAQ,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,GAAG,SAAS,CAG9F;AAED,+GAA+G;AAC/G,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IACxC,EAAE,EAAE,QAAQ,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CAClB,GAAG,cAAc,GAAG,SAAS,CAK7B;AA8ED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,QAAQ,CAAA;CAAE,GAAG,IAAI,CAQtE;AAED,mEAAmE;AACnE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE;IAC9C,EAAE,EAAE,QAAQ,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CACf,GAAG,cAAc,EAAE,CAOnB"}
@@ -0,0 +1,57 @@
1
+ import { RecordIndex } from './engine.types';
2
+ import { Database, Sqlite3Static } from '@sqlite.org/sqlite-wasm';
3
+ /**
4
+ * The dialecte's mark in a project file's header (`PRAGMA application_id`, a signed 32-bit integer): the
5
+ * FNV-1a digest of its id, read with the layout version without opening the file. A hint only - two ids may
6
+ * share a digest; the file's directory and its `_meta` table say the dialecte.
7
+ */
8
+ export declare function dialecteApplicationId(params: {
9
+ dialecteId: string;
10
+ }): number;
11
+ /**
12
+ * Lay out a new file, or check one: the layout version is read from the header, which every layout keeps,
13
+ * before anything else of the file. A file at another layout - or holding tables with none - is refused with
14
+ * `PROJECT_LAYOUT_OUTDATED`, one of another dialecte with `PROJECT_DIALECTE_MISMATCH`: nothing of it written.
15
+ * Answers the file's creation id.
16
+ */
17
+ export declare function prepareFile(params: {
18
+ sqlite3: Sqlite3Static;
19
+ db: Database;
20
+ /** The project's name, said in a refusal. */
21
+ project: string;
22
+ dialecteId: string;
23
+ /** The creation id the opener knows (a view coming back): a new file or one of another id is refused. */
24
+ expectedCreationId?: string;
25
+ steadyCacheMiB: number;
26
+ }): {
27
+ creationId: string;
28
+ };
29
+ /** A document's record table, without its indexes: a rowid table holding one row per record (its children listed on it). */
30
+ export declare function createRecordTable(params: {
31
+ db: Database;
32
+ table: string;
33
+ }): void;
34
+ /**
35
+ * A document's history-rows table: one row per record of a part of an entry (`HISTORY_PART`), the
36
+ * record whole in the record table's columns, numbered in the order written; read by entry and part.
37
+ */
38
+ export declare function createHistoryRowsTable(params: {
39
+ db: Database;
40
+ table: string;
41
+ }): void;
42
+ /** One index of a record table, named after the table and the index. */
43
+ export declare function createRecordIndex(params: {
44
+ db: Database;
45
+ table: string;
46
+ index: RecordIndex;
47
+ }): void;
48
+ /** Every index of a record table: the ones a registered document has from the start. */
49
+ export declare function createRecordIndexes(params: {
50
+ db: Database;
51
+ table: string;
52
+ }): void;
53
+ /** Columns with their SQL types as the body of a `CREATE TABLE`, in the order given. */
54
+ export declare function columnDefinitions(params: {
55
+ columns: Record<string, string>;
56
+ }): string;
57
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/engine/schema.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAW,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAwDtE;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAQ5E;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE;IACnC,OAAO,EAAE,aAAa,CAAA;IACtB,EAAE,EAAE,QAAQ,CAAA;IACZ,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,yGAAyG;IACzG,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,cAAc,EAAE,MAAM,CAAA;CACtB,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAwBzB;AA8BD,4HAA4H;AAC5H,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAG/E;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAOpF;AAED,wEAAwE;AACxE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IACzC,EAAE,EAAE,QAAQ,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,WAAW,CAAA;CAClB,GAAG,IAAI,CAIP;AAED,wFAAwF;AACxF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAIjF;AAED,wFAAwF;AACxF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,MAAM,CAIrF"}
@@ -0,0 +1,14 @@
1
+ import { OpenSqliteEngineParams, SqliteEngine } from './engine.types';
2
+ /**
3
+ * Start the engine of a project on its database: a new file is laid out, a file of another layout
4
+ * refused (`PROJECT_LAYOUT_OUTDATED`), every document an import left `importing` removed - its free
5
+ * pages given back in steps while the engine already serves. The engine owns the database from then
6
+ * on: a start that fails closes it, so the file stays free.
7
+ *
8
+ * Its methods run synchronously on the one connection and never await while a transaction is open,
9
+ * so no call runs inside another's transaction. A failure of SQLite is thrown as the operation's
10
+ * store error (`STORE_READ_FAILED`, `STORE_COMMIT_FAILED`, ...), the failure as its cause; a refusal
11
+ * passes as it is.
12
+ */
13
+ export declare function openSqliteEngine(params: OpenSqliteEngineParams): SqliteEngine;
14
+ //# sourceMappingURL=sqlite-engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqlite-engine.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/engine/sqlite-engine.ts"],"names":[],"mappings":"AAsEA,OAAO,KAAK,EAIX,sBAAsB,EAItB,YAAY,EAGZ,MAAM,gBAAgB,CAAA;AAWvB;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,YAAY,CAs0B7E"}
@@ -0,0 +1,12 @@
1
+ import { Database, Sqlite3Static } from '@sqlite.org/sqlite-wasm';
2
+ /**
3
+ * Run `work` in one write transaction: committed when it returns, rolled back when it throws - unless
4
+ * SQLite has already rolled it back (an I/O, full or out-of-memory error does), so the error thrown
5
+ * is always the one that failed the work.
6
+ */
7
+ export declare function inWriteTransaction<GenericResult>(params: {
8
+ sqlite3: Sqlite3Static;
9
+ db: Database;
10
+ work: () => GenericResult;
11
+ }): GenericResult;
12
+ //# sourceMappingURL=transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/engine/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAEtE;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE;IACzD,OAAO,EAAE,aAAa,CAAA;IACtB,EAAE,EAAE,QAAQ,CAAA;IACZ,IAAI,EAAE,MAAM,aAAa,CAAA;CACzB,GAAG,aAAa,CAWhB"}
@@ -0,0 +1,12 @@
1
+ /** What a SQLite database file starts with: its magic string, and where its header keeps the layout version. */
2
+ export declare const SQLITE_FILE_HEADER: {
3
+ readonly magic: "SQLite format 3\0";
4
+ /** `PRAGMA user_version`: 4 bytes, big-endian. */
5
+ readonly userVersionOffset: 60;
6
+ readonly bytes: 100;
7
+ };
8
+ /** How often a pool file the browser refuses to read (its engine writing) is read again before it is listed `unknown`. */
9
+ export declare const LISTING_READ_ATTEMPTS = 3;
10
+ /** The wait between two reads of a pool file the browser refused. */
11
+ export declare const LISTING_READ_RETRY_MS = 50;
12
+ //# sourceMappingURL=list-projects.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-projects.constants.d.ts","sourceRoot":"","sources":["../../../src/store/sqlite/list-projects.constants.ts"],"names":[],"mappings":"AAAA,gHAAgH;AAChH,eAAO,MAAM,kBAAkB;;IAE9B,kDAAkD;;;CAGzC,CAAA;AAEV,0HAA0H;AAC1H,eAAO,MAAM,qBAAqB,IAAI,CAAA;AAEtC,qEAAqE;AACrE,eAAO,MAAM,qBAAqB,KAAK,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { ProjectListing } from './list-projects.types';
2
+ /**
3
+ * The projects on SQLite storage of this origin - every dialecte's, or `dialecteId`'s - read from the origin's
4
+ * private file system alone (no engine started, no wasm loaded; a project whose engine runs is read too), sorted by
5
+ * dialecte and name: each one's state (`current`, `outdated`, `lost`, `new`, `unknown`), the bytes it takes and when
6
+ * it was last written. Where the browser gives no private file system (Node, a private window) it refuses
7
+ * `STORE_UNAVAILABLE`.
8
+ *
9
+ * @intent list the projects stored in the browser on SQLite storage, find outdated or lost projects on SQLite storage, show how much space each project takes, check whether a project exists on SQLite storage without opening it
10
+ */
11
+ export declare function listProjects(params?: {
12
+ dialecteId?: string;
13
+ }): Promise<ProjectListing[]>;
14
+ /**
15
+ * The projects of the pool directory under `root`, as `listProjects` lists them. A directory removed while the walk
16
+ * reads it (a project destroyed in another tab) is passed by; a pool whose files the browser refuses is `unknown`.
17
+ */
18
+ export declare function listProjectsIn(params: {
19
+ root: FileSystemDirectoryHandle;
20
+ dialecteId?: string;
21
+ }): Promise<ProjectListing[]>;
22
+ //# sourceMappingURL=list-projects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-projects.d.ts","sourceRoot":"","sources":["../../../src/store/sqlite/list-projects.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAGX,cAAc,EAEd,MAAM,uBAAuB,CAAA;AAE9B;;;;;;;;GAQG;AACH,wBAAsB,YAAY,CACjC,MAAM,GAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAO,GAClC,OAAO,CAAC,cAAc,EAAE,CAAC,CAG3B;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE;IAC5C,IAAI,EAAE,yBAAyB,CAAA;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAyB5B"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * What a project on SQLite storage is to its app, from its files alone: `current` (opened by this version), `outdated`
3
+ * (stored by another version of the library: destroy it, import its files again), `lost` (its files hold data but its
4
+ * database is gone: destroy it), `new` (made, never written), `unknown` (its files could not be read now - its engine
5
+ * writing: list again).
6
+ */
7
+ export type ProjectListingState = 'current' | 'outdated' | 'lost' | 'new' | 'unknown';
8
+ /** A project on SQLite storage, as `listProjects` lists it. */
9
+ export type ProjectListing = {
10
+ name: string;
11
+ /** The dialecte whose project it is: two dialectes' projects of one name are two projects. */
12
+ dialecteId: string;
13
+ state: ProjectListingState;
14
+ /** The bytes its files take. */
15
+ bytes: number;
16
+ /** When its files were last written (ms since the epoch). */
17
+ lastModified: number;
18
+ };
19
+ /** A pool file as listing reads it: its size, when written, its pool header, the start of its data. */
20
+ export type ListedPoolFile = {
21
+ size: number;
22
+ lastModified: number;
23
+ header: Uint8Array;
24
+ data: Uint8Array;
25
+ };
26
+ /** An entry of a directory listing reads: a directory or a file. */
27
+ export type PoolEntry = FileSystemDirectoryHandle | FileSystemFileHandle;
28
+ //# sourceMappingURL=list-projects.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-projects.types.d.ts","sourceRoot":"","sources":["../../../src/store/sqlite/list-projects.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAAA;AAErF,+DAA+D;AAC/D,MAAM,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,8FAA8F;IAC9F,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,mBAAmB,CAAA;IAC1B,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,uGAAuG;AACvG,MAAM,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,UAAU,CAAA;CAChB,CAAA;AAED,oEAAoE;AACpE,MAAM,MAAM,SAAS,GAAG,yBAAyB,GAAG,oBAAoB,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { Sqlite3Static } from '@sqlite.org/sqlite-wasm';
2
+ /**
3
+ * The SQLite module of this realm, loaded once: its wasm fetched from `wasmUrl` when given (a page or
4
+ * an engine worker: the consumer's one wasm file), else found by the package itself (node, and core's
5
+ * own tests). A later call naming another wasm file is refused (`ASSERTION_FAILED`). The VFSes the
6
+ * engine never uses are not installed; its text codec is made lossless (`installLosslessText`).
7
+ */
8
+ export declare function loadSqlite(params?: {
9
+ wasmUrl?: string;
10
+ }): Promise<Sqlite3Static>;
11
+ //# sourceMappingURL=load-sqlite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-sqlite.d.ts","sourceRoot":"","sources":["../../../src/store/sqlite/load-sqlite.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAS5D;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,MAAM,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,OAAO,CAAC,aAAa,CAAC,CAuBpF"}
@@ -0,0 +1,18 @@
1
+ import { EngineRuntimeState } from './runtime.types';
2
+ /** Every import and export aborted, the database closed, the pool paused (its files kept), the lock released. */
3
+ export declare function closeEngine(params: {
4
+ state: EngineRuntimeState;
5
+ }): Promise<void>;
6
+ /**
7
+ * The engine closed (every import and export aborted), then each client port closed once the calls it
8
+ * was asked have answered (an aborted import answers `IMPORT_ABORTED`), within `CLIENT_DRAIN_BUDGET_MS`.
9
+ * The engine and its clients are let go whatever its close does: the worker may open the project again.
10
+ */
11
+ export declare function endEngineAndClients(params: {
12
+ state: EngineRuntimeState;
13
+ }): Promise<void>;
14
+ /** The pool paused and the lock released whatever the pause does: the files stay, another engine may open them. */
15
+ export declare function releasePool(params: {
16
+ state: EngineRuntimeState;
17
+ }): void;
18
+ //# sourceMappingURL=close-engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"close-engine.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/runtime/close-engine.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,iHAAiH;AACjH,wBAAsB,WAAW,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,kBAAkB,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAQtF;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,kBAAkB,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAW9F;AA4BD,mHAAmH;AACnH,wBAAgB,WAAW,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,kBAAkB,CAAA;CAAE,GAAG,IAAI,CAWvE"}
@@ -0,0 +1,94 @@
1
+ import { EngineLockMode } from '../../engine/engine.types';
2
+ import { HeldEngineLock } from './runtime.types';
3
+ import { SAHPoolUtil, Sqlite3Static } from '@sqlite.org/sqlite-wasm';
4
+ /**
5
+ * The project's pool, opened for this engine within `budgetMs`: first the loaded sqlite-wasm checked to
6
+ * keep a pool whose install fails (`refuseUnsafeSqlite`), then the origin's private files checked,
7
+ * the engine lock taken, then - inside one try that releases the lock on any failure - every file of
8
+ * an existing pool probed (opened and closed again; one another engine still holds is waited for, then
9
+ * refused PROJECT_ENGINE_BUSY) and refused PROJECT_DATABASE_LOST when it holds data but no database
10
+ * (`refuseLostDatabase`), then, for a pool that never held pages (none yet, or blank files), the space
11
+ * a new pool needs checked, and only then the pool
12
+ * installed - one whose install fails anyway keeps its files (`preserveOnInitFailure`: by default
13
+ * sqlite-wasm removes the whole pool directory on a failed install), and a later open in this worker
14
+ * installs it again (`forceReinitIfPreviouslyFailed`: by default the failure is kept and answered again).
15
+ */
16
+ export declare function openPool(params: {
17
+ sqlite3: Sqlite3Static;
18
+ dialecteId: string;
19
+ project: string;
20
+ lock: EngineLockMode;
21
+ budgetMs: number;
22
+ /** The creation id a view coming back knows: a pool holding no database then means the project was destroyed. */
23
+ expectedCreationId?: string;
24
+ }): Promise<{
25
+ pool: SAHPoolUtil;
26
+ lock: HeldEngineLock;
27
+ }>;
28
+ /**
29
+ * The pool this worker paused (a close), checked again before it is taken back, the engine lock held:
30
+ * its files probed and the open refused `PROJECT_DATABASE_LOST` when they hold data but no database
31
+ * any more - sqlite-wasm reads the headers again as it unpauses and would drop a damaged one.
32
+ */
33
+ export declare function probePausedPool(params: {
34
+ dialecteId: string;
35
+ project: string;
36
+ /** The open's own deadline, set before it waited for the lock: one budget covers both. */
37
+ deadline: number;
38
+ /** The creation id a view coming back knows: a pool holding no database then means the project was destroyed. */
39
+ expectedCreationId?: string;
40
+ }): Promise<void>;
41
+ /**
42
+ * The project's pool gone with its directory, the engine lock held meanwhile: removed by sqlite-wasm
43
+ * when this engine has it installed (`removeVfs`), else straight from the directory; then checked
44
+ * gone, `PROJECT_DESTROY_FAILED` if not (a file another worker holds stays).
45
+ */
46
+ export declare function destroyPool(params: {
47
+ dialecteId: string;
48
+ project: string;
49
+ pool: SAHPoolUtil | undefined;
50
+ /** Until when a file still held (a worker that just ended lets its handles go a little later) is waited for. */
51
+ deadline: number;
52
+ }): Promise<void>;
53
+ /**
54
+ * The project's pool directory under the origin's private file system: one directory per dialecte, one per
55
+ * project in it (`projectKeyOf`). A name or a dialecte id no directory can be named after - empty, `.`, `..` -
56
+ * is refused `PROJECT_NAME_INVALID`, before any file is touched (every store refuses it as it is built: a guard).
57
+ */
58
+ export declare function poolDirectoryOf(params: {
59
+ dialecteId: string;
60
+ project: string;
61
+ }): string;
62
+ /**
63
+ * The project's engine lock, held until released: free at once or refused `PROJECT_OPEN_ELSEWHERE`
64
+ * (`if-available`), or waited for until `deadline` - what the work before the lock spent is not given again;
65
+ * a deadline passed takes only a lock free at once - else `PROJECT_ENGINE_BUSY` (`wait`).
66
+ */
67
+ export declare function takeEngineLock(params: {
68
+ dialecteId: string;
69
+ project: string;
70
+ mode: EngineLockMode;
71
+ /** `performance.now()` time the wait ends (`wait` only). */
72
+ deadline: number;
73
+ }): Promise<HeldEngineLock>;
74
+ /**
75
+ * `STORE_QUOTA_EXCEEDED` when the origin has fewer than `bytes` left (a new pool's files, an import's
76
+ * rows): refused before anything is written. A browser that tells no quota, or refuses to estimate it, is
77
+ * trusted.
78
+ */
79
+ export declare function refuseShortSpace(params: {
80
+ project: string;
81
+ bytes: number;
82
+ }): Promise<void>;
83
+ /**
84
+ * A write SQLite reports as an I/O error, explained by the file system: the origin has (nearly) no
85
+ * storage left → `STORE_QUOTA_EXCEEDED`; anything else is no shortage (none returned). The pool keeps
86
+ * the file system's own error (`QuotaExceededError`) to itself - SQLite sees an I/O error only - so the
87
+ * shortage is inferred from the estimate: an I/O error of another cause on a nearly full origin is
88
+ * answered as a shortage too.
89
+ */
90
+ export declare function explainOutOfSpace(params: {
91
+ project: string;
92
+ thrown: unknown;
93
+ }): Promise<Error | undefined>;
94
+ //# sourceMappingURL=install-pool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install-pool.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/runtime/install-pool.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EACX,cAAc,EAKd,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAEzE;;;;;;;;;;;GAWG;AACH,wBAAsB,QAAQ,CAAC,MAAM,EAAE;IACtC,OAAO,EAAE,aAAa,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,cAAc,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,iHAAiH;IACjH,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC3B,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC,CA8BvD;AAiBD;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE;IAC7C,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,0FAA0F;IAC1F,QAAQ,EAAE,MAAM,CAAA;IAChB,iHAAiH;IACjH,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC3B,GAAG,OAAO,CAAC,IAAI,CAAC,CAQhB;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE;IACzC,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,WAAW,GAAG,SAAS,CAAA;IAC7B,gHAAgH;IAChH,QAAQ,EAAE,MAAM,CAAA;CAChB,GAAG,OAAO,CAAC,IAAI,CAAC,CAYhB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAGvF;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACtC,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,cAAc,CAAA;IACpB,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAA;CAChB,GAAG,OAAO,CAAC,cAAc,CAAC,CAiC1B;AAoID;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAahG;AAED;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,EAAE;IAC/C,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;CACf,GAAG,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAe7B"}
@@ -0,0 +1,13 @@
1
+ import { PoolContents, PoolFileHead } from './runtime.types';
2
+ /**
3
+ * What an existing pool holds, from each file's size and header, read before sqlite-wasm installs it: `database` when
4
+ * a header sqlite-wasm keeps names the project's database; else `blank` when no file holds more than its header (the
5
+ * pool never held pages: an install or a creation that ended early); else `lost` - a file holds data and none is the
6
+ * database: sqlite-wasm would drop the damaged header with the pages behind it, and SQLite make a new empty database.
7
+ */
8
+ export declare function classifyPool(params: {
9
+ files: PoolFileHead[];
10
+ }): PoolContents;
11
+ /** Whether the pool file's header names the project's database (as sqlite-wasm reads it at install). */
12
+ export declare function namesDatabase(file: PoolFileHead): boolean;
13
+ //# sourceMappingURL=pool-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pool-header.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/runtime/pool-header.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEjE;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,YAAY,EAAE,CAAA;CAAE,GAAG,YAAY,CAK5E;AAED,wGAAwG;AACxG,wBAAgB,aAAa,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAEzD"}
@@ -0,0 +1,13 @@
1
+ import { Heartbeat } from '../../engine/host/host.types';
2
+ import { Database, Sqlite3Static } from '@sqlite.org/sqlite-wasm';
3
+ /**
4
+ * Beat from inside SQLite: its progress handler runs every `ops` virtual-machine steps of any
5
+ * statement (an index build, a long read, a vacuum step), so one long statement keeps its callers.
6
+ */
7
+ export declare function installProgressBeat(params: {
8
+ sqlite3: Sqlite3Static;
9
+ db: Database;
10
+ heartbeat: Heartbeat;
11
+ ops: number;
12
+ }): void;
13
+ //# sourceMappingURL=progress-beat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-beat.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/runtime/progress-beat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAEtE;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAC3C,OAAO,EAAE,aAAa,CAAA;IACtB,EAAE,EAAE,QAAQ,CAAA;IACZ,SAAS,EAAE,SAAS,CAAA;IACpB,GAAG,EAAE,MAAM,CAAA;CACX,GAAG,IAAI,CAYP"}
@@ -0,0 +1,57 @@
1
+ /** The OPFS directory holding every project's pool: a directory per dialecte, one per project in it. */
2
+ export declare const POOL_ROOT_DIRECTORY = "dialecte-projects";
3
+ /** The name the pool's VFS is registered under in its worker (one project per engine worker). */
4
+ export declare const POOL_VFS_NAME = "dialecte-pool";
5
+ /** The project's database inside its pool. */
6
+ export declare const POOL_FILE = "/project.sqlite3";
7
+ /** The files a new pool is given: the database, its journal and the temporary files SQLite opens. */
8
+ export declare const POOL_CAPACITY = 6;
9
+ /**
10
+ * The oldest SQLite (`sqlite3.version.libVersionNumber`) whose sqlite-wasm keeps a pool's files when its install
11
+ * fails (`preserveOnInitFailure`, 3.54.1-build1): an older one ignores the option and removes the whole pool.
12
+ */
13
+ export declare const SAFE_POOL_SQLITE_VERSION = 3054001;
14
+ /**
15
+ * sqlite-wasm's pool file header (opfs-sahpool; frozen there: a change orphans every pool): the file's path (512
16
+ * bytes, NUL-ended), its SQLite open flags (4, big-endian, at `flagsOffset`) and their digest (two native 32-bit
17
+ * words), the file's data from `bytes` on. `headBytes` is what the probe reads of each file: up to the digest's end.
18
+ */
19
+ export declare const POOL_FILE_HEADER: {
20
+ readonly bytes: 4096;
21
+ readonly flagsOffset: 512;
22
+ readonly digestOffset: 516;
23
+ readonly digestBytes: 8;
24
+ readonly headBytes: number;
25
+ };
26
+ /** The SQLite open flags (sqlite3.h) sqlite-wasm's header check reads; `digestV2` marks a header with a digest. */
27
+ export declare const POOL_HEADER_FLAGS: {
28
+ readonly deleteOnClose: 8;
29
+ readonly digestV2: 128;
30
+ /** main database, main journal, super-journal, WAL: the files sqlite-wasm keeps */
31
+ readonly persistentTypes: number;
32
+ };
33
+ /** The seeds and multipliers of sqlite-wasm's header digest (two 32-bit multiplicative hashes). */
34
+ export declare const POOL_HEADER_DIGEST: {
35
+ readonly seeds: readonly [3735928559, 1103547991];
36
+ readonly multipliers: readonly [2654435761, 104729];
37
+ };
38
+ /** The subdirectory where sqlite-wasm keeps a pool's files. */
39
+ export declare const OPAQUE_DIRECTORY = ".opaque";
40
+ /** Waits between two probes of a pool file still held by an engine that ended (the last one repeats). */
41
+ export declare const PROBE_BACKOFF_MS: readonly [25, 50, 100, 200, 400];
42
+ /** The space a new pool needs free: its files' headers and the database's first pages, with room to spare. */
43
+ export declare const NEW_POOL_FREE_BYTES: number;
44
+ /**
45
+ * SQLite's progress handler runs every this many virtual-machine steps of a statement - its count
46
+ * starts again with each statement, so it must be small enough that the engine's chunked work (1,000
47
+ * ids or rows a statement: an import's after-writes, a commit, a large delete) beats too, not only one
48
+ * long statement; the handler only reads the clock until a beat is due.
49
+ */
50
+ export declare const PROGRESS_BEAT_OPS = 10000;
51
+ /**
52
+ * A write the file system failed while the origin has less than this left failed for want of space:
53
+ * the quota refuses a write larger than what is left - the engine's own writes are pages and windows of
54
+ * a few MiB, but a file's capacity may grow by a larger step - so the bound leaves room to spare.
55
+ */
56
+ export declare const OUT_OF_SPACE_BYTES: number;
57
+ //# sourceMappingURL=runtime.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.constants.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/runtime/runtime.constants.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,eAAO,MAAM,mBAAmB,sBAAsB,CAAA;AAEtD,iGAAiG;AACjG,eAAO,MAAM,aAAa,kBAAkB,CAAA;AAE5C,8CAA8C;AAC9C,eAAO,MAAM,SAAS,qBAAqB,CAAA;AAE3C,qGAAqG;AACrG,eAAO,MAAM,aAAa,IAAI,CAAA;AAE9B;;;GAGG;AACH,eAAO,MAAM,wBAAwB,UAAY,CAAA;AAOjD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAA;AAEV,mHAAmH;AACnH,eAAO,MAAM,iBAAiB;;;IAG7B,mFAAmF;;CAE1E,CAAA;AAEV,mGAAmG;AACnG,eAAO,MAAM,kBAAkB;;;CAGrB,CAAA;AAEV,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB,YAAY,CAAA;AAEzC,yGAAyG;AACzG,eAAO,MAAM,gBAAgB,kCAAmC,CAAA;AAEhE,8GAA8G;AAC9G,eAAO,MAAM,mBAAmB,QAAc,CAAA;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,QAAS,CAAA;AAEvC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,QAAmB,CAAA"}