@dialecte/core 0.7.0 → 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 (692) hide show
  1. package/dist/assets/hub.worker-B1HcVDhn.js +2 -0
  2. package/dist/diagnostics/diagnostics.d.ts +4 -0
  3. package/dist/diagnostics/diagnostics.d.ts.map +1 -1
  4. package/dist/diagnostics/types.d.ts +6 -1
  5. package/dist/diagnostics/types.d.ts.map +1 -1
  6. package/dist/dialecte/create-dialecte-project.d.ts +11 -0
  7. package/dist/dialecte/create-dialecte-project.d.ts.map +1 -0
  8. package/dist/dialecte/create-project-factory.d.ts +14 -0
  9. package/dist/dialecte/create-project-factory.d.ts.map +1 -0
  10. package/dist/dialecte/define-dialecte.d.ts +12 -0
  11. package/dist/dialecte/define-dialecte.d.ts.map +1 -0
  12. package/dist/dialecte/dialecte.constants.d.ts +4 -0
  13. package/dist/dialecte/dialecte.constants.d.ts.map +1 -0
  14. package/dist/dialecte/dialecte.types.d.ts +75 -0
  15. package/dist/dialecte/dialecte.types.d.ts.map +1 -0
  16. package/dist/dialecte/index.d.ts +4 -0
  17. package/dist/dialecte/index.d.ts.map +1 -0
  18. package/dist/{project-DIKdMMHx.js → dialecte-gIPrRzni.js} +8031 -8457
  19. package/dist/document/bind-extensions.d.ts +4 -1
  20. package/dist/document/bind-extensions.d.ts.map +1 -1
  21. package/dist/document/document.d.ts +58 -5
  22. package/dist/document/document.d.ts.map +1 -1
  23. package/dist/document/progress/progress.types.d.ts +21 -4
  24. package/dist/document/progress/progress.types.d.ts.map +1 -1
  25. package/dist/document/query/find/ancestor/find-ancestor.d.ts +2 -0
  26. package/dist/document/query/find/ancestor/find-ancestor.d.ts.map +1 -1
  27. package/dist/document/query/find/by-attribute/find-by-attributes.d.ts +4 -0
  28. package/dist/document/query/find/by-attribute/find-by-attributes.d.ts.map +1 -1
  29. package/dist/document/query/find/descendant/find-descendant.d.ts +2 -0
  30. package/dist/document/query/find/descendant/find-descendant.d.ts.map +1 -1
  31. package/dist/document/query/get/attribute/get-attribute.d.ts +4 -0
  32. package/dist/document/query/get/attribute/get-attribute.d.ts.map +1 -1
  33. package/dist/document/query/get/attribute/get-attributes.d.ts +4 -0
  34. package/dist/document/query/get/attribute/get-attributes.d.ts.map +1 -1
  35. package/dist/document/query/get/definition/get-definition.d.ts +2 -0
  36. package/dist/document/query/get/definition/get-definition.d.ts.map +1 -1
  37. package/dist/document/query/get/record/get-child.d.ts +2 -0
  38. package/dist/document/query/get/record/get-child.d.ts.map +1 -1
  39. package/dist/document/query/get/record/get-children.d.ts +2 -0
  40. package/dist/document/query/get/record/get-children.d.ts.map +1 -1
  41. package/dist/document/query/get/record/get-record.d.ts +2 -0
  42. package/dist/document/query/get/record/get-record.d.ts.map +1 -1
  43. package/dist/document/query/get/record/get-records-by-tagname.d.ts +2 -0
  44. package/dist/document/query/get/record/get-records-by-tagname.d.ts.map +1 -1
  45. package/dist/document/query/get/record/get-records.d.ts +2 -0
  46. package/dist/document/query/get/record/get-records.d.ts.map +1 -1
  47. package/dist/document/query/get/record/load-live-records.d.ts +2 -0
  48. package/dist/document/query/get/record/load-live-records.d.ts.map +1 -1
  49. package/dist/document/query/get/record/resolve-record.d.ts +2 -0
  50. package/dist/document/query/get/record/resolve-record.d.ts.map +1 -1
  51. package/dist/document/query/get/record/staged-lookup.d.ts +4 -0
  52. package/dist/document/query/get/record/staged-lookup.d.ts.map +1 -1
  53. package/dist/document/query/get/tree/get-tree.d.ts +6 -0
  54. package/dist/document/query/get/tree/get-tree.d.ts.map +1 -1
  55. package/dist/document/query/main.d.ts +50 -15
  56. package/dist/document/query/main.d.ts.map +1 -1
  57. package/dist/document/query/snapshot/collect-snapshot.d.ts +2 -0
  58. package/dist/document/query/snapshot/collect-snapshot.d.ts.map +1 -1
  59. package/dist/document/query/snapshot/get-snapshot.d.ts +2 -0
  60. package/dist/document/query/snapshot/get-snapshot.d.ts.map +1 -1
  61. package/dist/document/query/snapshot/records-to-tree.d.ts +2 -0
  62. package/dist/document/query/snapshot/records-to-tree.d.ts.map +1 -1
  63. package/dist/document/query/tree-filter/omit.d.ts +8 -0
  64. package/dist/document/query/tree-filter/omit.d.ts.map +1 -1
  65. package/dist/document/query/tree-filter/order.d.ts +5 -2
  66. package/dist/document/query/tree-filter/order.d.ts.map +1 -1
  67. package/dist/document/query/tree-filter/unwrap.d.ts +2 -0
  68. package/dist/document/query/tree-filter/unwrap.d.ts.map +1 -1
  69. package/dist/document/staged-operations.d.ts +5 -1
  70. package/dist/document/staged-operations.d.ts.map +1 -1
  71. package/dist/document/transaction/clone/clone.d.ts +2 -0
  72. package/dist/document/transaction/clone/clone.d.ts.map +1 -1
  73. package/dist/document/transaction/commit/commit.d.ts.map +1 -1
  74. package/dist/document/transaction/commit/merge-operations.d.ts +1 -1
  75. package/dist/document/transaction/commit/merge-operations.d.ts.map +1 -1
  76. package/dist/document/transaction/commit/summarize-operations.d.ts +16 -0
  77. package/dist/document/transaction/commit/summarize-operations.d.ts.map +1 -0
  78. package/dist/document/transaction/commit/summarize-operations.types.d.ts +17 -0
  79. package/dist/document/transaction/commit/summarize-operations.types.d.ts.map +1 -0
  80. package/dist/document/transaction/create/create.d.ts +2 -0
  81. package/dist/document/transaction/create/create.d.ts.map +1 -1
  82. package/dist/document/transaction/guard.d.ts +5 -0
  83. package/dist/document/transaction/guard.d.ts.map +1 -1
  84. package/dist/document/transaction/index.d.ts +2 -0
  85. package/dist/document/transaction/index.d.ts.map +1 -1
  86. package/dist/document/transaction/main.d.ts +46 -16
  87. package/dist/document/transaction/main.d.ts.map +1 -1
  88. package/dist/document/transaction/stage-operations.d.ts.map +1 -1
  89. package/dist/document/transaction/update/update.d.ts +2 -0
  90. package/dist/document/transaction/update/update.d.ts.map +1 -1
  91. package/dist/document/types.d.ts +3 -5
  92. package/dist/document/types.d.ts.map +1 -1
  93. package/dist/engine-store-CIEqgPUb.js +348 -0
  94. package/dist/engine.constants-DBMjMmV9.js +98 -0
  95. package/dist/engine.d.ts +9 -0
  96. package/dist/engine.d.ts.map +1 -0
  97. package/dist/engine.js +15805 -0
  98. package/dist/errors/codes.d.ts +451 -0
  99. package/dist/errors/codes.d.ts.map +1 -1
  100. package/dist/errors/errors.constants.d.ts +3 -0
  101. package/dist/errors/errors.constants.d.ts.map +1 -0
  102. package/dist/errors/errors.d.ts +10 -0
  103. package/dist/errors/errors.d.ts.map +1 -1
  104. package/dist/errors/types.d.ts +14 -0
  105. package/dist/errors/types.d.ts.map +1 -1
  106. package/dist/helpers/assert-fixed.d.ts +3 -1
  107. package/dist/helpers/assert-fixed.d.ts.map +1 -1
  108. package/dist/helpers/assert-xml-characters.d.ts +35 -0
  109. package/dist/helpers/assert-xml-characters.d.ts.map +1 -0
  110. package/dist/helpers/assert-xml-characters.types.d.ts +26 -0
  111. package/dist/helpers/assert-xml-characters.types.d.ts.map +1 -0
  112. package/dist/helpers/assert-xsi-type.d.ts +4 -0
  113. package/dist/helpers/assert-xsi-type.d.ts.map +1 -1
  114. package/dist/helpers/converter.d.ts +21 -6
  115. package/dist/helpers/converter.d.ts.map +1 -1
  116. package/dist/helpers/evaluate-expectations.d.ts +21 -0
  117. package/dist/helpers/evaluate-expectations.d.ts.map +1 -0
  118. package/dist/helpers/evaluate-expectations.types.d.ts +31 -0
  119. package/dist/helpers/evaluate-expectations.types.d.ts.map +1 -0
  120. package/dist/helpers/guard.d.ts +24 -4
  121. package/dist/helpers/guard.d.ts.map +1 -1
  122. package/dist/helpers/index.d.ts +2 -0
  123. package/dist/helpers/index.d.ts.map +1 -1
  124. package/dist/helpers/merge-extensions.d.ts +2 -0
  125. package/dist/helpers/merge-extensions.d.ts.map +1 -1
  126. package/dist/helpers/read-attributes.d.ts +4 -0
  127. package/dist/helpers/read-attributes.d.ts.map +1 -1
  128. package/dist/helpers/standardizing.d.ts +10 -0
  129. package/dist/helpers/standardizing.d.ts.map +1 -1
  130. package/dist/helpers/strip-attributes.d.ts +2 -0
  131. package/dist/helpers/strip-attributes.d.ts.map +1 -1
  132. package/dist/helpers-DVShv41E.js +489 -0
  133. package/dist/helpers.js +3 -439
  134. package/dist/in-process-link-DBeAOZRp.js +2791 -0
  135. package/dist/index.d.ts +1 -0
  136. package/dist/index.d.ts.map +1 -1
  137. package/dist/index.js +13 -12
  138. package/dist/perf/create-perf.d.ts +8 -1
  139. package/dist/perf/create-perf.d.ts.map +1 -1
  140. package/dist/perf/index.d.ts +1 -1
  141. package/dist/perf/index.d.ts.map +1 -1
  142. package/dist/perf/noop-perf.d.ts.map +1 -1
  143. package/dist/perf/perf.types.d.ts +65 -6
  144. package/dist/perf/perf.types.d.ts.map +1 -1
  145. package/dist/project/index.d.ts +7 -5
  146. package/dist/project/index.d.ts.map +1 -1
  147. package/dist/project/io/export-blob.d.ts +5 -2
  148. package/dist/project/io/export-blob.d.ts.map +1 -1
  149. package/dist/project/io/export-document.d.ts +5 -4
  150. package/dist/project/io/export-document.d.ts.map +1 -1
  151. package/dist/project/io/index.d.ts +1 -1
  152. package/dist/project/io/index.d.ts.map +1 -1
  153. package/dist/project/io/init-empty-document.d.ts +2 -0
  154. package/dist/project/io/init-empty-document.d.ts.map +1 -1
  155. package/dist/project/io/run-export.d.ts +19 -0
  156. package/dist/project/io/run-export.d.ts.map +1 -0
  157. package/dist/project/io/run-export.types.d.ts +45 -0
  158. package/dist/project/io/run-export.types.d.ts.map +1 -0
  159. package/dist/project/io/run-import.d.ts +15 -0
  160. package/dist/project/io/run-import.d.ts.map +1 -0
  161. package/dist/project/io/run-import.types.d.ts +19 -0
  162. package/dist/project/io/run-import.types.d.ts.map +1 -0
  163. package/dist/project/io/store-runtime.constants.d.ts +6 -0
  164. package/dist/project/io/store-runtime.constants.d.ts.map +1 -0
  165. package/dist/project/io/store-runtime.d.ts +12 -0
  166. package/dist/project/io/store-runtime.d.ts.map +1 -0
  167. package/dist/project/io/store-runtime.types.d.ts +18 -0
  168. package/dist/project/io/store-runtime.types.d.ts.map +1 -0
  169. package/dist/project/project-channel.d.ts +11 -0
  170. package/dist/project/project-channel.d.ts.map +1 -0
  171. package/dist/project/project.constants.d.ts +12 -0
  172. package/dist/project/project.constants.d.ts.map +1 -0
  173. package/dist/project/project.d.ts +315 -31
  174. package/dist/project/project.d.ts.map +1 -1
  175. package/dist/project/state/document-lifecycle.d.ts +0 -12
  176. package/dist/project/state/document-lifecycle.d.ts.map +1 -1
  177. package/dist/project/state/document-state.d.ts +4 -0
  178. package/dist/project/state/document-state.d.ts.map +1 -1
  179. package/dist/project/types.d.ts +126 -60
  180. package/dist/project/types.d.ts.map +1 -1
  181. package/dist/project-key-Ch34EtFa.js +1435 -0
  182. package/dist/rolldown-runtime-CYdcPHCu.js +12 -0
  183. package/dist/running-operations-vnijBvn7.js +76 -0
  184. package/dist/same-json-value-C6kUaoyt.js +1603 -0
  185. package/dist/sqlite.d.ts +5 -0
  186. package/dist/sqlite.d.ts.map +1 -0
  187. package/dist/sqlite.js +2671 -0
  188. package/dist/sqlite3.wasm +0 -0
  189. package/dist/store/apply-record-patch.d.ts +13 -0
  190. package/dist/store/apply-record-patch.d.ts.map +1 -0
  191. package/dist/store/closing-connections.d.ts +7 -0
  192. package/dist/store/closing-connections.d.ts.map +1 -0
  193. package/dist/store/closing-connections.types.d.ts +13 -0
  194. package/dist/store/closing-connections.types.d.ts.map +1 -0
  195. package/dist/store/commit-progress.d.ts +10 -0
  196. package/dist/store/commit-progress.d.ts.map +1 -0
  197. package/dist/store/compare-by-id.d.ts +10 -0
  198. package/dist/store/compare-by-id.d.ts.map +1 -0
  199. package/dist/store/document-path.constants.d.ts +20 -0
  200. package/dist/store/document-path.constants.d.ts.map +1 -0
  201. package/dist/store/document-path.d.ts +75 -0
  202. package/dist/store/document-path.d.ts.map +1 -0
  203. package/dist/store/document-path.types.d.ts +11 -0
  204. package/dist/store/document-path.types.d.ts.map +1 -0
  205. package/dist/store/engine/client/check-engine-wire.d.ts +8 -0
  206. package/dist/store/engine/client/check-engine-wire.d.ts.map +1 -0
  207. package/dist/store/engine/client/client.constants.d.ts +30 -0
  208. package/dist/store/engine/client/client.constants.d.ts.map +1 -0
  209. package/dist/store/engine/client/client.types.d.ts +200 -0
  210. package/dist/store/engine/client/client.types.d.ts.map +1 -0
  211. package/dist/store/engine/client/engine-client.d.ts +15 -0
  212. package/dist/store/engine/client/engine-client.d.ts.map +1 -0
  213. package/dist/store/engine/client/engine-control.d.ts +16 -0
  214. package/dist/store/engine/client/engine-control.d.ts.map +1 -0
  215. package/dist/store/engine/client/heartbeat-watch.d.ts +17 -0
  216. package/dist/store/engine/client/heartbeat-watch.d.ts.map +1 -0
  217. package/dist/store/engine/client/hub-connector.d.ts +11 -0
  218. package/dist/store/engine/client/hub-connector.d.ts.map +1 -0
  219. package/dist/store/engine/client/hub-connector.types.d.ts +25 -0
  220. package/dist/store/engine/client/hub-connector.types.d.ts.map +1 -0
  221. package/dist/store/engine/client/worker-connector.d.ts +32 -0
  222. package/dist/store/engine/client/worker-connector.d.ts.map +1 -0
  223. package/dist/store/engine/creation-refusal.d.ts +10 -0
  224. package/dist/store/engine/creation-refusal.d.ts.map +1 -0
  225. package/dist/store/engine/dialecte-refusal.d.ts +18 -0
  226. package/dist/store/engine/dialecte-refusal.d.ts.map +1 -0
  227. package/dist/store/engine/engine-store.d.ts +163 -0
  228. package/dist/store/engine/engine-store.d.ts.map +1 -0
  229. package/dist/store/engine/engine-store.types.d.ts +53 -0
  230. package/dist/store/engine/engine-store.types.d.ts.map +1 -0
  231. package/dist/store/engine/engine.constants.d.ts +14 -0
  232. package/dist/store/engine/engine.constants.d.ts.map +1 -0
  233. package/dist/store/engine/engine.types.d.ts +165 -0
  234. package/dist/store/engine/engine.types.d.ts.map +1 -0
  235. package/dist/store/engine/host/engine-wire.d.ts +19 -0
  236. package/dist/store/engine/host/engine-wire.d.ts.map +1 -0
  237. package/dist/store/engine/host/heartbeat.d.ts +33 -0
  238. package/dist/store/engine/host/heartbeat.d.ts.map +1 -0
  239. package/dist/store/engine/host/host.constants.d.ts +13 -0
  240. package/dist/store/engine/host/host.constants.d.ts.map +1 -0
  241. package/dist/store/engine/host/host.types.d.ts +65 -0
  242. package/dist/store/engine/host/host.types.d.ts.map +1 -0
  243. package/dist/store/engine/host/store-events.d.ts +14 -0
  244. package/dist/store/engine/host/store-events.d.ts.map +1 -0
  245. package/dist/store/engine/hub/hub-client.constants.d.ts +27 -0
  246. package/dist/store/engine/hub/hub-client.constants.d.ts.map +1 -0
  247. package/dist/store/engine/hub/hub-client.d.ts +46 -0
  248. package/dist/store/engine/hub/hub-client.d.ts.map +1 -0
  249. package/dist/store/engine/hub/hub-client.types.d.ts +208 -0
  250. package/dist/store/engine/hub/hub-client.types.d.ts.map +1 -0
  251. package/dist/store/engine/hub/hub-protocol.types.d.ts +193 -0
  252. package/dist/store/engine/hub/hub-protocol.types.d.ts.map +1 -0
  253. package/dist/store/engine/hub/hub-router.d.ts +9 -0
  254. package/dist/store/engine/hub/hub-router.d.ts.map +1 -0
  255. package/dist/store/engine/hub/hub-shell.d.ts +13 -0
  256. package/dist/store/engine/hub/hub-shell.d.ts.map +1 -0
  257. package/dist/store/engine/hub/hub-shell.types.d.ts +64 -0
  258. package/dist/store/engine/hub/hub-shell.types.d.ts.map +1 -0
  259. package/dist/store/engine/hub/hub.constants.d.ts +33 -0
  260. package/dist/store/engine/hub/hub.constants.d.ts.map +1 -0
  261. package/dist/store/engine/hub/hub.types.d.ts +305 -0
  262. package/dist/store/engine/hub/hub.types.d.ts.map +1 -0
  263. package/dist/store/engine/hub/hub.worker.d.ts +2 -0
  264. package/dist/store/engine/hub/hub.worker.d.ts.map +1 -0
  265. package/dist/store/engine/hub/realm-host.d.ts +10 -0
  266. package/dist/store/engine/hub/realm-host.d.ts.map +1 -0
  267. package/dist/store/engine/hub/realm-host.types.d.ts +78 -0
  268. package/dist/store/engine/hub/realm-host.types.d.ts.map +1 -0
  269. package/dist/store/engine/project-key.d.ts +15 -0
  270. package/dist/store/engine/project-key.d.ts.map +1 -0
  271. package/dist/store/engine/wire/error-envelope.d.ts +25 -0
  272. package/dist/store/engine/wire/error-envelope.d.ts.map +1 -0
  273. package/dist/store/engine/wire/wire-values.d.ts +33 -0
  274. package/dist/store/engine/wire/wire-values.d.ts.map +1 -0
  275. package/dist/store/engine/wire/wire.constants.d.ts +116 -0
  276. package/dist/store/engine/wire/wire.constants.d.ts.map +1 -0
  277. package/dist/store/engine/wire/wire.types.d.ts +119 -0
  278. package/dist/store/engine/wire/wire.types.d.ts.map +1 -0
  279. package/dist/store/hub-public.d.ts +33 -0
  280. package/dist/store/hub-public.d.ts.map +1 -0
  281. package/dist/store/ignore-destroy-outcome.d.ts +6 -0
  282. package/dist/store/ignore-destroy-outcome.d.ts.map +1 -0
  283. package/dist/store/in-memory/in-memory-state.d.ts +46 -0
  284. package/dist/store/in-memory/in-memory-state.d.ts.map +1 -0
  285. package/dist/store/in-memory/in-memory-store.constants.d.ts +7 -0
  286. package/dist/store/in-memory/in-memory-store.constants.d.ts.map +1 -0
  287. package/dist/store/in-memory/in-memory-store.d.ts +105 -17
  288. package/dist/store/in-memory/in-memory-store.d.ts.map +1 -1
  289. package/dist/store/in-memory/types.d.ts +55 -1
  290. package/dist/store/in-memory/types.d.ts.map +1 -1
  291. package/dist/store/index.d.ts +8 -2
  292. package/dist/store/index.d.ts.map +1 -1
  293. package/dist/store/json-values.constants.d.ts +18 -0
  294. package/dist/store/json-values.constants.d.ts.map +1 -0
  295. package/dist/store/json-values.d.ts +40 -0
  296. package/dist/store/json-values.d.ts.map +1 -0
  297. package/dist/store/json-values.types.d.ts +18 -0
  298. package/dist/store/json-values.types.d.ts.map +1 -0
  299. package/dist/store/local/dexie-store.constants.d.ts +20 -0
  300. package/dist/store/local/dexie-store.constants.d.ts.map +1 -0
  301. package/dist/store/local/dexie-store.d.ts +134 -5
  302. package/dist/store/local/dexie-store.d.ts.map +1 -1
  303. package/dist/store/local/types.d.ts +6 -0
  304. package/dist/store/local/types.d.ts.map +1 -1
  305. package/dist/store/lost-write.d.ts +32 -0
  306. package/dist/store/lost-write.d.ts.map +1 -0
  307. package/dist/store/lost-write.types.d.ts +4 -0
  308. package/dist/store/lost-write.types.d.ts.map +1 -0
  309. package/dist/store/open-connections.d.ts +4 -0
  310. package/dist/store/open-connections.d.ts.map +1 -0
  311. package/dist/store/open-connections.types.d.ts +17 -0
  312. package/dist/store/open-connections.types.d.ts.map +1 -0
  313. package/dist/store/own-import.d.ts +10 -0
  314. package/dist/store/own-import.d.ts.map +1 -0
  315. package/dist/store/project-name.d.ts +10 -0
  316. package/dist/store/project-name.d.ts.map +1 -0
  317. package/dist/store/resolve-store.d.ts +28 -4
  318. package/dist/store/resolve-store.d.ts.map +1 -1
  319. package/dist/store/running-operations.d.ts +7 -0
  320. package/dist/store/running-operations.d.ts.map +1 -0
  321. package/dist/store/running-operations.types.d.ts +10 -0
  322. package/dist/store/running-operations.types.d.ts.map +1 -0
  323. package/dist/store/same-json-value.d.ts +9 -0
  324. package/dist/store/same-json-value.d.ts.map +1 -0
  325. package/dist/store/sqlite/adapter/in-process-link.d.ts +20 -0
  326. package/dist/store/sqlite/adapter/in-process-link.d.ts.map +1 -0
  327. package/dist/store/sqlite/adapter/in-process-link.types.d.ts +21 -0
  328. package/dist/store/sqlite/adapter/in-process-link.types.d.ts.map +1 -0
  329. package/dist/store/sqlite/adapter/realm-storage.d.ts +10 -0
  330. package/dist/store/sqlite/adapter/realm-storage.d.ts.map +1 -0
  331. package/dist/store/sqlite/adapter/sqlite-connector.d.ts +14 -0
  332. package/dist/store/sqlite/adapter/sqlite-connector.d.ts.map +1 -0
  333. package/dist/store/sqlite/adapter/sqlite-engine-settings.d.ts +4 -0
  334. package/dist/store/sqlite/adapter/sqlite-engine-settings.d.ts.map +1 -0
  335. package/dist/store/sqlite/adapter/sqlite-hub-spawner.d.ts +8 -0
  336. package/dist/store/sqlite/adapter/sqlite-hub-spawner.d.ts.map +1 -0
  337. package/dist/store/sqlite/adapter/sqlite-hub-spawner.types.d.ts +5 -0
  338. package/dist/store/sqlite/adapter/sqlite-hub-spawner.types.d.ts.map +1 -0
  339. package/dist/store/sqlite/adapter/sqlite-worker-connector.d.ts +8 -0
  340. package/dist/store/sqlite/adapter/sqlite-worker-connector.d.ts.map +1 -0
  341. package/dist/store/sqlite/adapter/sqlite-worker-connector.types.d.ts +5 -0
  342. package/dist/store/sqlite/adapter/sqlite-worker-connector.types.d.ts.map +1 -0
  343. package/dist/store/sqlite/engine/blobs.d.ts +55 -0
  344. package/dist/store/sqlite/engine/blobs.d.ts.map +1 -0
  345. package/dist/store/sqlite/engine/bulk-insert.d.ts +31 -0
  346. package/dist/store/sqlite/engine/bulk-insert.d.ts.map +1 -0
  347. package/dist/store/sqlite/engine/commit.d.ts +20 -0
  348. package/dist/store/sqlite/engine/commit.d.ts.map +1 -0
  349. package/dist/store/sqlite/engine/device-cache.d.ts +13 -0
  350. package/dist/store/sqlite/engine/device-cache.d.ts.map +1 -0
  351. package/dist/store/sqlite/engine/engine-errors.d.ts +26 -0
  352. package/dist/store/sqlite/engine/engine-errors.d.ts.map +1 -0
  353. package/dist/store/sqlite/engine/engine.constants.d.ts +144 -0
  354. package/dist/store/sqlite/engine/engine.constants.d.ts.map +1 -0
  355. package/dist/store/sqlite/engine/engine.types.d.ts +361 -0
  356. package/dist/store/sqlite/engine/engine.types.d.ts.map +1 -0
  357. package/dist/store/sqlite/engine/history.d.ts +114 -0
  358. package/dist/store/sqlite/engine/history.d.ts.map +1 -0
  359. package/dist/store/sqlite/engine/import-queue.d.ts +7 -0
  360. package/dist/store/sqlite/engine/import-queue.d.ts.map +1 -0
  361. package/dist/store/sqlite/engine/import-target.d.ts +23 -0
  362. package/dist/store/sqlite/engine/import-target.d.ts.map +1 -0
  363. package/dist/store/sqlite/engine/import-window.d.ts +23 -0
  364. package/dist/store/sqlite/engine/import-window.d.ts.map +1 -0
  365. package/dist/store/sqlite/engine/reclaim.d.ts +13 -0
  366. package/dist/store/sqlite/engine/reclaim.d.ts.map +1 -0
  367. package/dist/store/sqlite/engine/records.d.ts +117 -0
  368. package/dist/store/sqlite/engine/records.d.ts.map +1 -0
  369. package/dist/store/sqlite/engine/registry.d.ts +76 -0
  370. package/dist/store/sqlite/engine/registry.d.ts.map +1 -0
  371. package/dist/store/sqlite/engine/schema.d.ts +57 -0
  372. package/dist/store/sqlite/engine/schema.d.ts.map +1 -0
  373. package/dist/store/sqlite/engine/sqlite-engine.d.ts +14 -0
  374. package/dist/store/sqlite/engine/sqlite-engine.d.ts.map +1 -0
  375. package/dist/store/sqlite/engine/transaction.d.ts +12 -0
  376. package/dist/store/sqlite/engine/transaction.d.ts.map +1 -0
  377. package/dist/store/sqlite/list-projects.constants.d.ts +12 -0
  378. package/dist/store/sqlite/list-projects.constants.d.ts.map +1 -0
  379. package/dist/store/sqlite/list-projects.d.ts +22 -0
  380. package/dist/store/sqlite/list-projects.d.ts.map +1 -0
  381. package/dist/store/sqlite/list-projects.types.d.ts +28 -0
  382. package/dist/store/sqlite/list-projects.types.d.ts.map +1 -0
  383. package/dist/store/sqlite/load-sqlite.d.ts +11 -0
  384. package/dist/store/sqlite/load-sqlite.d.ts.map +1 -0
  385. package/dist/store/sqlite/runtime/close-engine.d.ts +18 -0
  386. package/dist/store/sqlite/runtime/close-engine.d.ts.map +1 -0
  387. package/dist/store/sqlite/runtime/install-pool.d.ts +94 -0
  388. package/dist/store/sqlite/runtime/install-pool.d.ts.map +1 -0
  389. package/dist/store/sqlite/runtime/pool-header.d.ts +13 -0
  390. package/dist/store/sqlite/runtime/pool-header.d.ts.map +1 -0
  391. package/dist/store/sqlite/runtime/progress-beat.d.ts +13 -0
  392. package/dist/store/sqlite/runtime/progress-beat.d.ts.map +1 -0
  393. package/dist/store/sqlite/runtime/runtime.constants.d.ts +57 -0
  394. package/dist/store/sqlite/runtime/runtime.constants.d.ts.map +1 -0
  395. package/dist/store/sqlite/runtime/runtime.types.d.ts +56 -0
  396. package/dist/store/sqlite/runtime/runtime.types.d.ts.map +1 -0
  397. package/dist/store/sqlite/runtime/serve-dialecte-engine.d.ts +16 -0
  398. package/dist/store/sqlite/runtime/serve-dialecte-engine.d.ts.map +1 -0
  399. package/dist/store/sqlite/sqlite-store-of.d.ts +7 -0
  400. package/dist/store/sqlite/sqlite-store-of.d.ts.map +1 -0
  401. package/dist/store/sqlite/sqlite-text.d.ts +20 -0
  402. package/dist/store/sqlite/sqlite-text.d.ts.map +1 -0
  403. package/dist/store/sqlite/sqlite-wasm-url.d.ts +9 -0
  404. package/dist/store/sqlite/sqlite-wasm-url.d.ts.map +1 -0
  405. package/dist/store/sqlite/sqlite.constants.d.ts +15 -0
  406. package/dist/store/sqlite/sqlite.constants.d.ts.map +1 -0
  407. package/dist/store/sqlite/sqlite.types.d.ts +36 -0
  408. package/dist/store/sqlite/sqlite.types.d.ts.map +1 -0
  409. package/dist/store/sqlite-storage.constants.d.ts +14 -0
  410. package/dist/store/sqlite-storage.constants.d.ts.map +1 -0
  411. package/dist/store/sqlite-storage.d.ts +22 -0
  412. package/dist/store/sqlite-storage.d.ts.map +1 -0
  413. package/dist/store/sqlite-storage.types.d.ts +24 -0
  414. package/dist/store/sqlite-storage.types.d.ts.map +1 -0
  415. package/dist/store/store-errors.d.ts +51 -0
  416. package/dist/store/store-errors.d.ts.map +1 -0
  417. package/dist/store/store.constants.d.ts +15 -3
  418. package/dist/store/store.constants.d.ts.map +1 -1
  419. package/dist/store/store.types.d.ts +280 -16
  420. package/dist/store/store.types.d.ts.map +1 -1
  421. package/dist/store/stored-record.d.ts +16 -0
  422. package/dist/store/stored-record.d.ts.map +1 -0
  423. package/dist/store/unfinished-imports.d.ts +15 -0
  424. package/dist/store/unfinished-imports.d.ts.map +1 -0
  425. package/dist/store/write-outcome.d.ts +34 -0
  426. package/dist/store/write-outcome.d.ts.map +1 -0
  427. package/dist/test/assert-valid-xml/assert-valid-xml.constants.d.ts +7 -0
  428. package/dist/test/assert-valid-xml/assert-valid-xml.constants.d.ts.map +1 -0
  429. package/dist/test/assert-valid-xml/assert-valid-xml.d.ts +19 -18
  430. package/dist/test/assert-valid-xml/assert-valid-xml.d.ts.map +1 -1
  431. package/dist/test/assert-valid-xml/assert-valid-xml.types.d.ts +8 -4
  432. package/dist/test/assert-valid-xml/assert-valid-xml.types.d.ts.map +1 -1
  433. package/dist/test/assert-xml/assert-xml.constants.d.ts +25 -0
  434. package/dist/test/assert-xml/assert-xml.constants.d.ts.map +1 -0
  435. package/dist/test/assert-xml/assert-xml.d.ts +23 -34
  436. package/dist/test/assert-xml/assert-xml.d.ts.map +1 -1
  437. package/dist/test/assert-xml/assert-xml.types.d.ts +48 -0
  438. package/dist/test/assert-xml/assert-xml.types.d.ts.map +1 -0
  439. package/dist/test/assert-xml/describe-nearby.d.ts +16 -0
  440. package/dist/test/assert-xml/describe-nearby.d.ts.map +1 -0
  441. package/dist/test/assert-xml/describe-node-place.d.ts +15 -0
  442. package/dist/test/assert-xml/describe-node-place.d.ts.map +1 -0
  443. package/dist/test/assert-xml/index.d.ts +1 -1
  444. package/dist/test/assert-xml/index.d.ts.map +1 -1
  445. package/dist/test/assert-xml/query-failure-message.d.ts +24 -0
  446. package/dist/test/assert-xml/query-failure-message.d.ts.map +1 -0
  447. package/dist/test/assert-xml/read-xpath-step.d.ts +8 -0
  448. package/dist/test/assert-xml/read-xpath-step.d.ts.map +1 -0
  449. package/dist/test/assert-xml/xpath-parser.d.ts +2 -1
  450. package/dist/test/assert-xml/xpath-parser.d.ts.map +1 -1
  451. package/dist/test/config.d.ts +5 -0
  452. package/dist/test/config.d.ts.map +1 -1
  453. package/dist/test/constant.d.ts +2 -0
  454. package/dist/test/constant.d.ts.map +1 -1
  455. package/dist/test/create-test-dialecte.d.ts +32 -37
  456. package/dist/test/create-test-dialecte.d.ts.map +1 -1
  457. package/dist/test/create-test-dialecte.types.d.ts +99 -0
  458. package/dist/test/create-test-dialecte.types.d.ts.map +1 -0
  459. package/dist/test/create-test-helpers-internal.types.d.ts +19 -0
  460. package/dist/test/create-test-helpers-internal.types.d.ts.map +1 -0
  461. package/dist/test/create-test-helpers.d.ts +13 -0
  462. package/dist/test/create-test-helpers.d.ts.map +1 -0
  463. package/dist/test/create-test-helpers.types.d.ts +50 -0
  464. package/dist/test/create-test-helpers.types.d.ts.map +1 -0
  465. package/dist/test/fixtures/test-entry-scan-constraint.d.ts +3 -0
  466. package/dist/test/fixtures/test-entry-scan-constraint.d.ts.map +1 -0
  467. package/dist/test/fixtures/test-entry-scan-edges.types.d.ts +10 -0
  468. package/dist/test/fixtures/test-entry-scan-edges.types.d.ts.map +1 -0
  469. package/dist/test/fixtures/test-entry-scan-recursive.d.ts +4 -0
  470. package/dist/test/fixtures/test-entry-scan-recursive.d.ts.map +1 -0
  471. package/dist/test/fixtures/test-entry-scan-recursive.types.d.ts +15 -0
  472. package/dist/test/fixtures/test-entry-scan-recursive.types.d.ts.map +1 -0
  473. package/dist/test/fixtures/test-entry-scan-shapes.d.ts +14 -0
  474. package/dist/test/fixtures/test-entry-scan-shapes.d.ts.map +1 -0
  475. package/dist/test/fixtures/test-entry-scan-shapes.types.d.ts +14 -0
  476. package/dist/test/fixtures/test-entry-scan-shapes.types.d.ts.map +1 -0
  477. package/dist/test/fixtures/test-entry-scan-tree.d.ts +3 -0
  478. package/dist/test/fixtures/test-entry-scan-tree.d.ts.map +1 -0
  479. package/dist/test/fixtures/test-entry-scan.d.ts +5 -0
  480. package/dist/test/fixtures/test-entry-scan.d.ts.map +1 -0
  481. package/dist/test/fixtures/test-entry-scan.types.d.ts +5 -0
  482. package/dist/test/fixtures/test-entry-scan.types.d.ts.map +1 -0
  483. package/dist/test/generated/definition.generated.d.ts +5 -0
  484. package/dist/test/generated/definition.generated.d.ts.map +1 -1
  485. package/dist/test/in-memory-storage.setup.d.ts +2 -0
  486. package/dist/test/in-memory-storage.setup.d.ts.map +1 -0
  487. package/dist/test/index.d.ts +6 -0
  488. package/dist/test/index.d.ts.map +1 -1
  489. package/dist/test/normalize-uuids.constants.d.ts +3 -0
  490. package/dist/test/normalize-uuids.constants.d.ts.map +1 -0
  491. package/dist/test/normalize-uuids.d.ts +12 -0
  492. package/dist/test/normalize-uuids.d.ts.map +1 -1
  493. package/dist/test/run-test-cases.d.ts +30 -11
  494. package/dist/test/run-test-cases.d.ts.map +1 -1
  495. package/dist/test/run-test-cases.type.d.ts +16 -0
  496. package/dist/test/run-test-cases.type.d.ts.map +1 -1
  497. package/dist/test/sqlite-storage.setup.d.ts +1 -0
  498. package/dist/test/sqlite-storage.setup.d.ts.map +1 -0
  499. package/dist/test/test-dialecte-setup.d.ts +31 -0
  500. package/dist/test/test-dialecte-setup.d.ts.map +1 -0
  501. package/dist/test/test-dialecte-setup.types.d.ts +29 -0
  502. package/dist/test/test-dialecte-setup.types.d.ts.map +1 -0
  503. package/dist/test/test-dialecte.d.ts +2722 -0
  504. package/dist/test/test-dialecte.d.ts.map +1 -0
  505. package/dist/test/test-dialecte.types.d.ts +3 -0
  506. package/dist/test/test-dialecte.types.d.ts.map +1 -0
  507. package/dist/test/test-dialecte.worker.d.ts +2 -0
  508. package/dist/test/test-dialecte.worker.d.ts.map +1 -0
  509. package/dist/test/test-entry-environment.constants.d.ts +27 -0
  510. package/dist/test/test-entry-environment.constants.d.ts.map +1 -0
  511. package/dist/test/test-record.d.ts +49 -1
  512. package/dist/test/test-record.d.ts.map +1 -1
  513. package/dist/test/test-storage/index.d.ts +5 -0
  514. package/dist/test/test-storage/index.d.ts.map +1 -0
  515. package/dist/test/test-storage/read-test-storage.d.ts +4 -0
  516. package/dist/test/test-storage/read-test-storage.d.ts.map +1 -0
  517. package/dist/test/test-storage/resolve-test-storage.d.ts +9 -0
  518. package/dist/test/test-storage/resolve-test-storage.d.ts.map +1 -0
  519. package/dist/test/test-storage/test-storage.constants.d.ts +9 -0
  520. package/dist/test/test-storage/test-storage.constants.d.ts.map +1 -0
  521. package/dist/test/test-storage/test-storage.types.d.ts +15 -0
  522. package/dist/test/test-storage/test-storage.types.d.ts.map +1 -0
  523. package/dist/test/test-storage/test-store-for.d.ts +19 -0
  524. package/dist/test/test-storage/test-store-for.d.ts.map +1 -0
  525. package/dist/test/test-storage/use-test-storage.d.ts +14 -0
  526. package/dist/test/test-storage/use-test-storage.d.ts.map +1 -0
  527. package/dist/test/test-timing.constants.d.ts +15 -0
  528. package/dist/test/test-timing.constants.d.ts.map +1 -0
  529. package/dist/test/xml/engine-console.d.ts +6 -0
  530. package/dist/test/xml/engine-console.d.ts.map +1 -0
  531. package/dist/test/xml/engine.d.ts +3 -0
  532. package/dist/test/xml/engine.d.ts.map +1 -0
  533. package/dist/test/xml/index.d.ts +8 -0
  534. package/dist/test/xml/index.d.ts.map +1 -0
  535. package/dist/test/xml/malformed-xml-error.d.ts +5 -0
  536. package/dist/test/xml/malformed-xml-error.d.ts.map +1 -0
  537. package/dist/test/xml/print-node.d.ts +7 -0
  538. package/dist/test/xml/print-node.d.ts.map +1 -0
  539. package/dist/test/xml/select-nodes.d.ts +14 -0
  540. package/dist/test/xml/select-nodes.d.ts.map +1 -0
  541. package/dist/test/xml/with-xml-document.constants.d.ts +7 -0
  542. package/dist/test/xml/with-xml-document.constants.d.ts.map +1 -0
  543. package/dist/test/xml/with-xml-document.d.ts +14 -0
  544. package/dist/test/xml/with-xml-document.d.ts.map +1 -0
  545. package/dist/test/xml/xml-query-refused-error.d.ts +13 -0
  546. package/dist/test/xml/xml-query-refused-error.d.ts.map +1 -0
  547. package/dist/test/xml/xml.constants.d.ts +16 -0
  548. package/dist/test/xml/xml.constants.d.ts.map +1 -0
  549. package/dist/test/xml/xml.types.d.ts +31 -0
  550. package/dist/test/xml/xml.types.d.ts.map +1 -0
  551. package/dist/test/xsd/test-ext.xsd +226 -0
  552. package/dist/test/xsd/test.xsd +528 -0
  553. package/dist/test.js +3427 -406
  554. package/dist/types/dialecte-config.d.ts +6 -0
  555. package/dist/types/dialecte-config.d.ts.map +1 -1
  556. package/dist/types/io.d.ts +5 -0
  557. package/dist/types/io.d.ts.map +1 -1
  558. package/dist/utils/attribute-rules.d.ts +16 -1
  559. package/dist/utils/attribute-rules.d.ts.map +1 -1
  560. package/dist/utils/child-occurrences.constants.d.ts +4 -0
  561. package/dist/utils/child-occurrences.constants.d.ts.map +1 -0
  562. package/dist/utils/child-occurrences.d.ts +17 -0
  563. package/dist/utils/child-occurrences.d.ts.map +1 -0
  564. package/dist/utils/child-occurrences.types.d.ts +6 -0
  565. package/dist/utils/child-occurrences.types.d.ts.map +1 -0
  566. package/dist/utils/datatype.d.ts +4 -0
  567. package/dist/utils/datatype.d.ts.map +1 -1
  568. package/dist/utils/format-xml.d.ts +4 -0
  569. package/dist/utils/format-xml.d.ts.map +1 -1
  570. package/dist/utils/index.d.ts +5 -1
  571. package/dist/utils/index.d.ts.map +1 -1
  572. package/dist/utils/invariant.d.ts +2 -0
  573. package/dist/utils/invariant.d.ts.map +1 -1
  574. package/dist/utils/namespaces.d.ts +15 -1
  575. package/dist/utils/namespaces.d.ts.map +1 -1
  576. package/dist/utils/order-children.d.ts +14 -3
  577. package/dist/utils/order-children.d.ts.map +1 -1
  578. package/dist/utils/order-children.types.d.ts +10 -0
  579. package/dist/utils/order-children.types.d.ts.map +1 -0
  580. package/dist/utils/particle-occurrences.d.ts +4 -0
  581. package/dist/utils/particle-occurrences.d.ts.map +1 -0
  582. package/dist/utils/required-choices.d.ts +17 -0
  583. package/dist/utils/required-choices.d.ts.map +1 -0
  584. package/dist/utils/required-choices.types.d.ts +15 -0
  585. package/dist/utils/required-choices.types.d.ts.map +1 -0
  586. package/dist/utils/resolve-definition.d.ts +4 -0
  587. package/dist/utils/resolve-definition.d.ts.map +1 -1
  588. package/dist/utils/save-to-disk.constants.d.ts +3 -0
  589. package/dist/utils/save-to-disk.constants.d.ts.map +1 -0
  590. package/dist/utils/save-to-disk.d.ts +17 -5
  591. package/dist/utils/save-to-disk.d.ts.map +1 -1
  592. package/dist/utils/save-to-disk.types.d.ts +17 -0
  593. package/dist/utils/save-to-disk.types.d.ts.map +1 -0
  594. package/dist/utils/seeded-uuid.constants.d.ts +5 -0
  595. package/dist/utils/seeded-uuid.constants.d.ts.map +1 -0
  596. package/dist/utils/seeded-uuid.d.ts +15 -0
  597. package/dist/utils/seeded-uuid.d.ts.map +1 -0
  598. package/dist/utils/seeded-uuid.types.d.ts +8 -0
  599. package/dist/utils/seeded-uuid.types.d.ts.map +1 -0
  600. package/dist/utils/tell-listener.constants.d.ts +9 -0
  601. package/dist/utils/tell-listener.constants.d.ts.map +1 -0
  602. package/dist/utils/tell-listener.d.ts +24 -0
  603. package/dist/utils/tell-listener.d.ts.map +1 -0
  604. package/dist/utils/xml-characters.constants.d.ts +9 -0
  605. package/dist/utils/xml-characters.constants.d.ts.map +1 -0
  606. package/dist/utils/xml-characters.d.ts +8 -0
  607. package/dist/utils/xml-characters.d.ts.map +1 -0
  608. package/dist/utils/xml-whitespace.constants.d.ts +8 -0
  609. package/dist/utils/xml-whitespace.constants.d.ts.map +1 -0
  610. package/dist/utils/xml-whitespace.d.ts +19 -0
  611. package/dist/utils/xml-whitespace.d.ts.map +1 -0
  612. package/dist/utils/xsi-type.d.ts +4 -0
  613. package/dist/utils/xsi-type.d.ts.map +1 -1
  614. package/dist/utils/yield-to-queue.d.ts +6 -0
  615. package/dist/utils/yield-to-queue.d.ts.map +1 -0
  616. package/dist/utils-USNkj4sT.js +1275 -0
  617. package/dist/utils.js +1 -2
  618. package/dist/xml/build/document-root.d.ts +7 -0
  619. package/dist/xml/build/document-root.d.ts.map +1 -0
  620. package/dist/xml/build/index.d.ts +0 -5
  621. package/dist/xml/build/index.d.ts.map +1 -1
  622. package/dist/xml/build/record-element.d.ts +15 -0
  623. package/dist/xml/build/record-element.d.ts.map +1 -0
  624. package/dist/xml/build/record-element.types.d.ts +12 -0
  625. package/dist/xml/build/record-element.types.d.ts.map +1 -0
  626. package/dist/xml/build/write-xml-records.d.ts +7 -0
  627. package/dist/xml/build/write-xml-records.d.ts.map +1 -0
  628. package/dist/xml/build/write-xml-records.types.d.ts +11 -0
  629. package/dist/xml/build/write-xml-records.types.d.ts.map +1 -0
  630. package/dist/xml/build/xml-element.d.ts +79 -0
  631. package/dist/xml/build/xml-element.d.ts.map +1 -0
  632. package/dist/xml/build/xml-element.types.d.ts +34 -0
  633. package/dist/xml/build/xml-element.types.d.ts.map +1 -0
  634. package/dist/xml/build/xml-writer.constants.d.ts +24 -0
  635. package/dist/xml/build/xml-writer.constants.d.ts.map +1 -0
  636. package/dist/xml/build/xml-writer.d.ts +40 -0
  637. package/dist/xml/build/xml-writer.d.ts.map +1 -0
  638. package/dist/xml/build/xml-writer.types.d.ts +34 -0
  639. package/dist/xml/build/xml-writer.types.d.ts.map +1 -0
  640. package/dist/xml/dom/index.d.ts +3 -0
  641. package/dist/xml/dom/index.d.ts.map +1 -0
  642. package/dist/xml/dom/xml-document-from-file.d.ts +10 -0
  643. package/dist/xml/dom/xml-document-from-file.d.ts.map +1 -0
  644. package/dist/xml/dom/xml-document-from-file.types.d.ts +5 -0
  645. package/dist/xml/dom/xml-document-from-file.types.d.ts.map +1 -0
  646. package/dist/xml/index.d.ts +1 -0
  647. package/dist/xml/index.d.ts.map +1 -1
  648. package/dist/xml/inspect-xml.d.ts +2 -0
  649. package/dist/xml/inspect-xml.d.ts.map +1 -1
  650. package/dist/xml/parse/index.d.ts +1 -1
  651. package/dist/xml/parse/index.d.ts.map +1 -1
  652. package/dist/xml/parse/parse-xml-document.constants.d.ts +5 -0
  653. package/dist/xml/parse/parse-xml-document.constants.d.ts.map +1 -0
  654. package/dist/xml/parse/parse-xml-document.d.ts +13 -2
  655. package/dist/xml/parse/parse-xml-document.d.ts.map +1 -1
  656. package/dist/xml/parse/parse-xml-document.types.d.ts +7 -2
  657. package/dist/xml/parse/parse-xml-document.types.d.ts.map +1 -1
  658. package/dist/xml/parse/parser.constants.d.ts +7 -0
  659. package/dist/xml/parse/parser.constants.d.ts.map +1 -0
  660. package/dist/xml/parse/parser.d.ts.map +1 -1
  661. package/package.json +88 -8
  662. package/skills/dialecte/SKILL.md +276 -0
  663. package/skills/dialecte/references/api.json +1830 -0
  664. package/skills/dialecte/references/api.md +557 -0
  665. package/skills/dialecte/references/core-api.md +204 -0
  666. package/skills/dialecte/references/testing.md +116 -0
  667. package/skills/dialecte-contributing/SKILL.md +328 -0
  668. package/skills/dialecte-contributing/references/code-rules.md +108 -0
  669. package/skills/dialecte-contributing/references/landing-changes.md +83 -0
  670. package/skills/dialecte-contributing/references/perf.md +39 -0
  671. package/skills/dialecte-contributing/references/traps.md +89 -0
  672. package/skills/dialecte-lot/SKILL.md +471 -0
  673. package/skills/dialecte-lot/references/briefs.md +152 -0
  674. package/skills/dialecte-lot/references/model-tiers.md +52 -0
  675. package/skills/dialecte-lot/references/retro.md +51 -0
  676. package/dist/project/io/import-document.d.ts +0 -7
  677. package/dist/project/io/import-document.d.ts.map +0 -1
  678. package/dist/test/assert-xml/types.d.ts +0 -2
  679. package/dist/test/assert-xml/types.d.ts.map +0 -1
  680. package/dist/utils-DJN0Md0v.js +0 -624
  681. package/dist/xml/build/build-xml-document.d.ts +0 -10
  682. package/dist/xml/build/build-xml-document.d.ts.map +0 -1
  683. package/dist/xml/build/build-xml-document.types.d.ts +0 -22
  684. package/dist/xml/build/build-xml-document.types.d.ts.map +0 -1
  685. package/dist/xml/build/download-file.d.ts +0 -7
  686. package/dist/xml/build/download-file.d.ts.map +0 -1
  687. package/dist/xml/build/formatter.d.ts +0 -2
  688. package/dist/xml/build/formatter.d.ts.map +0 -1
  689. package/dist/xml/build/serialize.d.ts +0 -11
  690. package/dist/xml/build/serialize.d.ts.map +0 -1
  691. package/dist/xml/build/serialize.types.d.ts +0 -12
  692. package/dist/xml/build/serialize.types.d.ts.map +0 -1
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The Web Lock every open connection to a local store holds shared, `<prefix><store name>`: a destroy
3
+ * asks for it alone, so it is refused while another connection - of any tab - is open. A connection
4
+ * closed with operations running holds it until they end.
5
+ */
6
+ export declare const OPEN_LOCK_PREFIX = "dialecte:local-open:";
7
+ /**
8
+ * How long a destroy waits for the open lock alone: a connection closed just before lets it go
9
+ * asynchronously. Still held after that, the destroy is refused.
10
+ */
11
+ export declare const DESTROY_LOCK_WAIT_MS = 500;
12
+ /** Between two asks for the open lock alone while a destroy waits. */
13
+ export declare const DESTROY_LOCK_ASK_INTERVAL_MS = 50;
14
+ /** The Web Lock a local-store import holds while it runs: `<prefix><store name>:<writeId>`. */
15
+ export declare const IMPORT_LOCK_PREFIX = "dialecte:local-import:";
16
+ /** The `_meta` key prefix of a document's version row: `<prefix><documentId>`. */
17
+ export declare const VERSION_KEY_PREFIX = "writes:";
18
+ /** The sequence number of a changelog entry a commit discarded (undone, then a commit came): it only keeps its write id. */
19
+ export declare const DISCARDED_SEQUENCE = -1;
20
+ //# sourceMappingURL=dexie-store.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dexie-store.constants.d.ts","sourceRoot":"","sources":["../../../src/store/local/dexie-store.constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,yBAAyB,CAAA;AAEtD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,MAAM,CAAA;AAEvC,sEAAsE;AACtE,eAAO,MAAM,4BAA4B,KAAK,CAAA;AAE9C,+FAA+F;AAC/F,eAAO,MAAM,kBAAkB,2BAA2B,CAAA;AAE1D,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,YAAY,CAAA;AAE3C,4HAA4H;AAC5H,eAAO,MAAM,kBAAkB,KAAK,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { default as Dexie } from 'dexie';
2
- import { Store, ChangeLogEntry, RecordSchema } from '../store.types';
2
+ import { Store, ChangeLogEntry, ExportFileParams, ExportFileResult, ImportFileParams, ImportFileResult, RecordSchema, WriteOutcome } from '../store.types';
3
3
  import { DexieStoreOptions } from './types';
4
- import { DocumentRecord } from '../../project';
4
+ import { DocumentRecord, DocumentUpdates } from '../../project';
5
5
  import { AnyRawRecord, BlobAttachment, BlobRecord, RecordPatch } from '../../types';
6
6
  /**
7
7
  * Translate a backend-agnostic RecordSchema into Dexie's schema DSL string.
@@ -24,6 +24,8 @@ export declare class DexieStore implements Store {
24
24
  private readonly dexieRecordSchema;
25
25
  /** Dev-only perf helper from the owning Project (no-op unless dev.perf is on). */
26
26
  private readonly perf;
27
+ /** The dialecte `importFile` imports with; its imports run in this realm, through `runImport`. */
28
+ private readonly runtime?;
27
29
  /** In-memory file registry - avoids bootstrap connections during close/reopen */
28
30
  private knownDocuments;
29
31
  /** Serialization lock for schema-changing operations */
@@ -39,10 +41,68 @@ export declare class DexieStore implements Store {
39
41
  * makes to the document (IndexedDB counts by iterating: about 50 ms for 90,000 records).
40
42
  */
41
43
  private readonly recordCounts;
44
+ /** Set by `close()`, cleared by `open()`: a closed store refuses every operation started after it. */
45
+ private closed;
46
+ /** How many times `close()` was called: an `open()` refuses when one came after it was called. */
47
+ private closings;
48
+ /** The operations running: `close()` closes the connection, `open()` and `destroy()` go on, once none is left. */
49
+ private readonly operations;
50
+ /**
51
+ * This connection's shared hold of the open lock, from its ask until let go: its release once
52
+ * granted (none while this connection holds none).
53
+ */
54
+ private openHold;
55
+ /** This store's own destroy while it runs: an operation started meanwhile goes on once it has ended. */
56
+ private destroying;
57
+ /** Settles once this connection's last hold of the open lock is let go for good. */
58
+ private openHoldEnded;
42
59
  constructor(projectName: string, options?: DexieStoreOptions);
60
+ /**
61
+ * Open: an import found unfinished is removed - unless a connection still runs it (its Web Lock
62
+ * is held). Where Web Locks are missing, every unfinished import is removed.
63
+ */
43
64
  open(): Promise<void>;
44
- close(): void;
65
+ /**
66
+ * Refuse every operation started from now on until opened again; the connection itself closes once
67
+ * the operations running complete, and the close is settled once its hold on the open lock is let
68
+ * go (a destroy of another tab is not refused for it). The database stays.
69
+ */
70
+ close(): Promise<void>;
71
+ /**
72
+ * Closed with operations running: its hold of the open lock is let go once they end - a destroy of
73
+ * another tab is refused until then, as a SQLite store of another tab counts - and a destroy of the
74
+ * name in this realm lets them complete first.
75
+ */
76
+ private holdUntilIdle;
77
+ /**
78
+ * Delete the database, once the operations running complete; refused `PROJECT_OPEN_ELSEWHERE` while
79
+ * another connection - of this tab or another - is open, nothing removed.
80
+ */
45
81
  destroy(): Promise<void>;
82
+ private destroyOnceIdle;
83
+ private destroyIfAlone;
84
+ /**
85
+ * The database deleted under the open lock had alone - waited for a moment, as a connection closed
86
+ * just before lets it go asynchronously; `false` when another connection still holds it.
87
+ */
88
+ private deleteWhenAlone;
89
+ /** The database deleted when the open lock is had alone; nothing done when another connection holds it. */
90
+ private deleteIfAlone;
91
+ /** With no Web Locks: the database deleted when no other connection of the realm is open, as above. */
92
+ private deleteWhenAloneInRealm;
93
+ /** The database deleted, its connection closed first; what this connection knew of it forgotten. */
94
+ private deleteDatabase;
95
+ /**
96
+ * This connection counted open: the open lock held shared (seen by every tab), or, with no Web Locks,
97
+ * counted in the realm. Waits while a destroy holds the lock alone; an open at once shares the hold.
98
+ */
99
+ private holdOpen;
100
+ /** The open lock asked for shared, its release once granted; with no Web Locks, counted in the realm. */
101
+ private askOpenHold;
102
+ /** This connection counted open in the realm no more (where there are no Web Locks). */
103
+ private countClosed;
104
+ /** The hold let go: at once when granted, else once it is (a close while the open waits for it). */
105
+ private letOpenHoldGo;
46
106
  /**
47
107
  * Bring this connection in sync with the shared persisted state (document
48
108
  * registry + schema). Used by the owning Project when a cross-realm import /
@@ -58,13 +118,20 @@ export declare class DexieStore implements Store {
58
118
  registerDocument(file: DocumentRecord): Promise<void>;
59
119
  getDocument(documentId: string): Promise<DocumentRecord | undefined>;
60
120
  getDocuments(): Promise<DocumentRecord[]>;
61
- updateDocument(documentId: string, updates: Partial<Pick<DocumentRecord, 'name' | 'metadata' | 'status' | 'importingAt'>>): Promise<void>;
121
+ updateDocument(documentId: string, updates: DocumentUpdates): Promise<void>;
62
122
  removeDocument(documentId: string): Promise<void>;
63
- get(id: string, documentId?: string): Promise<AnyRawRecord | undefined>;
123
+ get(id: string, documentId: string): Promise<AnyRawRecord | undefined>;
64
124
  getByDocumentId(documentId: string): Promise<AnyRawRecord[]>;
65
125
  count(documentId: string): Promise<number>;
66
126
  getByTagNameInDocument(tagName: string, documentId: string): Promise<AnyRawRecord[]>;
67
127
  getMany(ids: string[], documentId: string): Promise<(AnyRawRecord | undefined)[]>;
128
+ /** Runs in this realm, holding a Web Lock for the import so another connection's `open` keeps it. */
129
+ importFile(params: ImportFileParams): Promise<ImportFileResult>;
130
+ exportFile(params: ExportFileParams): Promise<ExportFileResult>;
131
+ /** The registry first, then the changelog: no index carries the id there, so it is scanned (a rare call). */
132
+ getWriteOutcome(params: {
133
+ writeId: string;
134
+ }): Promise<WriteOutcome>;
68
135
  bulkWrite(documentId: string, ops: {
69
136
  creates?: AnyRawRecord[];
70
137
  updates?: RecordPatch[];
@@ -72,6 +139,7 @@ export declare class DexieStore implements Store {
72
139
  }): Promise<void>;
73
140
  commit(params: {
74
141
  documentId: string;
142
+ writeId?: string;
75
143
  creates: AnyRawRecord[];
76
144
  updates: AnyRawRecord[];
77
145
  deletes: string[];
@@ -103,8 +171,61 @@ export declare class DexieStore implements Store {
103
171
  * Useful for legacy compatibility layers and advanced testing.
104
172
  */
105
173
  getDatabaseInstance(): Dexie;
174
+ /**
175
+ * One operation of the port: refused once the store is closed; counted while it runs, so a
176
+ * `close()` meanwhile lets it complete and closes the connection after it.
177
+ */
178
+ private operation;
179
+ /** Counted while it runs; the last one to end on a closed store closes the connection. */
180
+ private tracked;
181
+ /**
182
+ * The target the store's own import writes through: the import is one operation, so a `close()`
183
+ * after it started does not refuse the calls it makes (each still counted while it runs).
184
+ */
185
+ private ownImportTarget;
186
+ /**
187
+ * The store the open's sweep of unfinished imports goes through: the open is one operation, so a
188
+ * destroy of this store meanwhile, which waits for it, does not hold the sweep back.
189
+ */
190
+ private ownSweepTarget;
191
+ /**
192
+ * The source the store's own export reads through: the export is one operation, so a `close()` after it
193
+ * started does not refuse the reads it makes (each still counted while it runs).
194
+ */
195
+ private ownExportSource;
196
+ private registerDocumentUnguarded;
197
+ /**
198
+ * The document's path valid and its place free among the registered documents, read in the caller's transaction
199
+ * when there is one.
200
+ */
201
+ private assertPlaceFree;
202
+ private getDocumentsUnguarded;
203
+ private getDocumentUnguarded;
204
+ private updateDocumentUnguarded;
205
+ /** An imported document ready: refused `DOCUMENT_NOT_REGISTERED` once it is no longer the import's own, `importing`. */
206
+ private markReadyUnguarded;
207
+ /**
208
+ * An import's records, into its own document only: refused `DOCUMENT_NOT_REGISTERED` once it is not (read just
209
+ * before the write, as for its removal).
210
+ */
211
+ private bulkWriteOwnImport;
212
+ /**
213
+ * What a failed import leaves goes: its own document only, never one registered since under its id (read just
214
+ * before: a tab registering one in between is the local store's to live with until it moves to SQLite).
215
+ */
216
+ private removeOwnImport;
217
+ private removeDocumentUnguarded;
218
+ private bulkWriteUnguarded;
106
219
  private getHead;
107
220
  private setHead;
221
+ /** A write landed on the document: its version moves on, inside the write's transaction. */
222
+ private bumpVersion;
223
+ /** How many writes a `ready` document has taken, read with its registry row in one transaction. */
224
+ private getExportVersion;
225
+ private countUnguarded;
226
+ private countStored;
227
+ private getByTagNameInDocumentUnguarded;
228
+ private getManyUnguarded;
108
229
  /** Build Dexie stores object from current knownDocuments */
109
230
  private buildStores;
110
231
  /** Close DB, bump version, reopen with updated schema */
@@ -135,5 +256,13 @@ export declare class DexieStore implements Store {
135
256
  * Resolve the Dexie table name for a documentId.
136
257
  */
137
258
  private resolveTableName;
259
+ /** The record table of a document to write; a document that is not registered takes no write. */
260
+ private writeTable;
261
+ /**
262
+ * The record table of a document, once this connection is current - or nothing when the
263
+ * document is not in the store (never registered, or removed here or in another realm): a read
264
+ * of it answers empty, it is not a backend error.
265
+ */
266
+ private recordTable;
138
267
  }
139
268
  //# sourceMappingURL=dexie-store.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dexie-store.d.ts","sourceRoot":"","sources":["../../../src/store/local/dexie-store.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,MA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IAoB9D,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAczF,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAa/C;;;OAGG;IACH,mBAAmB,IAAI,KAAK;IAI5B;;;OAGG;YACW,SAAS;IAmBvB,0FAA0F;YAC5E,OAAO;IAWrB;;;OAGG;IACH,OAAO,CAAC,eAAe;IAqBvB;;;OAGG;IACH,OAAO,CAAC,cAAc;IAQtB;;;OAGG;IACH,OAAO,CAAC,eAAe;YAYT,yBAAyB;IAuCvC;;;OAGG;YACW,eAAe;YASf,qBAAqB;YAMrB,oBAAoB;YAMpB,uBAAuB;IAuBrC,wHAAwH;YAC1G,kBAAkB;IAmBhC;;;OAGG;YACW,kBAAkB;IAchC;;;OAGG;YACW,eAAe;YAWf,uBAAuB;YAiCvB,kBAAkB;YAyDlB,OAAO;YAKP,OAAO;IAIrB,4FAA4F;YAC9E,WAAW;IAMzB,mGAAmG;YACrF,gBAAgB;YAYhB,cAAc;YAYd,WAAW;YAKX,+BAA+B;YAQ/B,gBAAgB;IAQ9B,4DAA4D;IAC5D,OAAO,CAAC,WAAW;IAoBnB,yDAAyD;YAC3C,mBAAmB;IAkBjC;;;;;OAKG;YACW,mBAAmB;IAwCjC;;;;;OAKG;IACH,OAAO,CAAC,0BAA0B;IAOlC;;;;OAIG;YACW,mBAAmB;IAOjC,2CAA2C;IAC3C,OAAO,CAAC,cAAc;IAKtB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAIxB,iGAAiG;YACnF,UAAU;IAMxB;;;;OAIG;YACW,WAAW;CAMzB"}
@@ -1,11 +1,17 @@
1
1
  import { RecordSchema } from '../store.types';
2
2
  import { Perf } from '../../perf';
3
+ import { StoreRuntime } from '../../project/io/store-runtime.types';
3
4
  import { DocumentRecord } from '../../project/types';
4
5
  export type DexieStoreOptions = {
5
6
  /** Backend-agnostic record schema. Comes from dialecteConfig.recordSchema */
6
7
  recordSchema?: RecordSchema;
7
8
  /** Dev-only perf helper (from the owning Project). Defaults to a no-op. */
8
9
  perf?: Perf;
10
+ /**
11
+ * The dialecte the store imports and exports files with; without it, `importFile` throws `IMPORT_FAILED`
12
+ * and `exportFile` `ASSERTION_FAILED`
13
+ */
14
+ runtime?: StoreRuntime;
9
15
  };
10
16
  /** A `_documents` row as stored: one written before 0.7 has no `status`. */
11
17
  export type StoredDocumentRow = Omit<DocumentRecord, 'status'> & Partial<Pick<DocumentRecord, 'status'>>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/store/local/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,MAAM,MAAM,iBAAiB,GAAG;IAC/B,6EAA6E;IAC7E,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,2EAA2E;IAC3E,IAAI,CAAC,EAAE,IAAI,CAAA;CACX,CAAA;AAED,4EAA4E;AAC5E,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,GAC7D,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/store/local/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,MAAM,MAAM,iBAAiB,GAAG;IAC/B,6EAA6E;IAC7E,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,2EAA2E;IAC3E,IAAI,CAAC,EAAE,IAAI,CAAA;IACX;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,4EAA4E;AAC5E,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,GAC7D,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,32 @@
1
+ import { LostWriteOutcome } from './lost-write.types';
2
+ import { Store } from './store.types';
3
+ /** Whether a call was refused because its engine was lost (`STORE_ENGINE_LOST`): what became of it is not known. */
4
+ export declare function isEngineLost(params: {
5
+ thrown: unknown;
6
+ }): boolean;
7
+ /** Whether a write was refused with its engine lost and is known not to have landed (`meta.outcome` `not-applied`). */
8
+ export declare function wasNotApplied(params: {
9
+ thrown: unknown;
10
+ }): boolean;
11
+ /** A read after a lost write that fails too (the engine still out of reach): the refusal already says what happened. */
12
+ export declare function ignoreReadFailure(): void;
13
+ /**
14
+ * What became of a write refused `STORE_ENGINE_LOST`, asked once by its id (on the store's next engine, or its own
15
+ * once it answers): `applied`, `not-applied`, `running` (its silent engine may still apply it), or `unknown` when
16
+ * the ask itself fails. The write is never made again here.
17
+ */
18
+ export declare function outcomeAfterLoss(params: {
19
+ store: Store;
20
+ writeId: string;
21
+ }): Promise<LostWriteOutcome>;
22
+ /**
23
+ * The refusal of a lost write, told what became of it: `STORE_ENGINE_LOST` again, its meta with the write's id and
24
+ * `outcome` (and what else the caller adds), the refusal it came from as its cause.
25
+ */
26
+ export declare function lostWriteError(params: {
27
+ thrown: unknown;
28
+ writeId: string;
29
+ outcome: LostWriteOutcome;
30
+ meta?: Record<string, unknown>;
31
+ }): Error;
32
+ //# sourceMappingURL=lost-write.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lost-write.d.ts","sourceRoot":"","sources":["../../src/store/lost-write.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAE1C,oHAAoH;AACpH,wBAAgB,YAAY,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAEjE;AAED,uHAAuH;AACvH,wBAAgB,aAAa,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAGlE;AAED,wHAAwH;AACxH,wBAAgB,iBAAiB,IAAI,IAAI,CAAG;AAE5C;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,EAAE;IAC9C,KAAK,EAAE,KAAK,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CACf,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAO5B;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACtC,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,gBAAgB,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC9B,GAAG,KAAK,CAQR"}
@@ -0,0 +1,4 @@
1
+ import { WriteOutcome } from './store.types';
2
+ /** What became of a write whose engine was lost: its outcome, or `unknown` when it could not be asked. */
3
+ export type LostWriteOutcome = WriteOutcome | 'unknown';
4
+ //# sourceMappingURL=lost-write.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lost-write.types.d.ts","sourceRoot":"","sources":["../../src/store/lost-write.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,0GAA0G;AAC1G,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { OpenConnections } from './open-connections.types';
2
+ /** A count of the open connections of each name, in this realm: a store's destroy is refused while another is open. */
3
+ export declare function createOpenConnections(): OpenConnections;
4
+ //# sourceMappingURL=open-connections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-connections.d.ts","sourceRoot":"","sources":["../../src/store/open-connections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE/D,uHAAuH;AACvH,wBAAgB,qBAAqB,IAAI,eAAe,CAmBvD"}
@@ -0,0 +1,17 @@
1
+ /** The connections of each project name opened and not closed since, in this realm. */
2
+ export type OpenConnections = {
3
+ markOpen: (params: {
4
+ name: string;
5
+ connection: object;
6
+ }) => void;
7
+ markClosed: (params: {
8
+ name: string;
9
+ connection: object;
10
+ }) => void;
11
+ /** How many connections of the name besides `connection` (every one when none is given) are open. */
12
+ others: (params: {
13
+ name: string;
14
+ connection?: object;
15
+ }) => number;
16
+ };
17
+ //# sourceMappingURL=open-connections.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-connections.types.d.ts","sourceRoot":"","sources":["../../src/store/open-connections.types.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,MAAM,MAAM,eAAe,GAAG;IAC7B,QAAQ,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IAChE,UAAU,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IAClE,qGAAqG;IACrG,MAAM,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAA;CACjE,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { DocumentRecord } from '../project/types';
2
+ /**
3
+ * Whether the document held is the one an import registered, still `importing`: the same id, write and
4
+ * creation time. One removed meanwhile and registered again under its id by another connection is not.
5
+ */
6
+ export declare function isOwnImporting(params: {
7
+ held: DocumentRecord | undefined;
8
+ registered: DocumentRecord | undefined;
9
+ }): boolean;
10
+ //# sourceMappingURL=own-import.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"own-import.d.ts","sourceRoot":"","sources":["../../src/store/own-import.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACtC,IAAI,EAAE,cAAc,GAAG,SAAS,CAAA;IAChC,UAAU,EAAE,cAAc,GAAG,SAAS,CAAA;CACtC,GAAG,OAAO,CAQV"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * A project's name and its dialecte's id name what holds it on every store - a directory of the origin's private
3
+ * files, a database, a file: one that is empty, `.` or `..` is refused `PROJECT_NAME_INVALID` before any store of
4
+ * it is built, on every store alike.
5
+ */
6
+ export declare function refuseUnnamableProject(params: {
7
+ project: string;
8
+ dialecteId?: string;
9
+ }): void;
10
+ //# sourceMappingURL=project-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-name.d.ts","sourceRoot":"","sources":["../../src/store/project-name.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAU7F"}
@@ -1,11 +1,35 @@
1
1
  import { StorageParam } from '../project/types';
2
+ import { SqliteConnectorParams } from './sqlite-storage.types';
2
3
  import { Perf } from '../perf';
4
+ import { StoreRuntime } from '../project/io/store-runtime.types';
3
5
  import { Store } from '.';
4
- import { AnyDialecteConfig } from '../types';
5
6
  /**
6
7
  * Resolve the Store instance from open params.
7
- * 'local' creates a DexieStore; 'inMemory' creates an InMemoryStore;
8
- * 'custom' passes through the user-provided store.
8
+ * 'local' creates a DexieStore; 'inMemory' creates an InMemoryStore - both import and export with `runtime`;
9
+ * 'sqlite' the store of the kind `@dialecte/core/sqlite` registers - an EngineStore on the dialecte's SQLite engine,
10
+ * which imports and exports with its own (`PROJECT_SQLITE_NOT_IMPORTED` when the app never imported that entry; a
11
+ * project made by no dialecte's factory is refused `PROJECT_ENGINE_NOT_DECLARED`);
12
+ * 'custom' passes through the user-provided store, which imports and exports with its own.
13
+ *
14
+ * @internal store selection when a project opens; callers pass `storage` to the project factory
9
15
  */
10
- export declare function resolveStore<GenericConfig extends AnyDialecteConfig>(name: string, storage: StorageParam, config: GenericConfig, perf?: Perf): Store;
16
+ export declare function resolveStore(params: {
17
+ name: string;
18
+ storage: StorageParam;
19
+ /** The dialecte the store imports and exports with; its default config gives the local store's record schema */
20
+ runtime: StoreRuntime;
21
+ perf?: Perf;
22
+ /** The project's dialecte: with the name, which project the in-memory and SQLite stores hold. */
23
+ dialecteId?: string;
24
+ }): Store;
25
+ /**
26
+ * What a project on SQLite storage connects with: its name, its dialecte, and the engine its factory gives - a name
27
+ * or dialecte id no store can hold refused `PROJECT_NAME_INVALID`, a project made by no factory
28
+ * `PROJECT_ENGINE_NOT_DECLARED`.
29
+ */
30
+ export declare function sqliteConnectorParamsOf(params: {
31
+ name: string;
32
+ runtime: StoreRuntime;
33
+ dialecteId: string | undefined;
34
+ }): SqliteConnectorParams;
11
35
  //# sourceMappingURL=resolve-store.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-store.d.ts","sourceRoot":"","sources":["../../src/store/resolve-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,aAAa,SAAS,iBAAiB,EACnE,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,YAAY,EACrB,MAAM,EAAE,aAAa,EACrB,IAAI,CAAC,EAAE,IAAI,GACT,KAAK,CASP"}
1
+ {"version":3,"file":"resolve-store.d.ts","sourceRoot":"","sources":["../../src/store/resolve-store.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AACnE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEpC;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,YAAY,CAAA;IACrB,gHAAgH;IAChH,OAAO,EAAE,YAAY,CAAA;IACrB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,iGAAiG;IACjG,UAAU,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,KAAK,CAkBR;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE;IAC/C,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,YAAY,CAAA;IACrB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;CAC9B,GAAG,qBAAqB,CAWxB"}
@@ -0,0 +1,7 @@
1
+ import { RunningOperations } from './running-operations.types';
2
+ /**
3
+ * A count of the operations a store runs, so that `open()` and `destroy()` wait for the ones running:
4
+ * an operation already started completes.
5
+ */
6
+ export declare function createRunningOperations(): RunningOperations;
7
+ //# sourceMappingURL=running-operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"running-operations.d.ts","sourceRoot":"","sources":["../../src/store/running-operations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAEnE;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,iBAAiB,CAwB3D"}
@@ -0,0 +1,10 @@
1
+ /** The operations a store is running: counted, and waited for by what must not cut them short. */
2
+ export type RunningOperations = {
3
+ /** How many are running. */
4
+ readonly count: number;
5
+ start: () => void;
6
+ end: () => void;
7
+ /** Resolves once none is running (at once when none is). */
8
+ whenIdle: () => Promise<void>;
9
+ };
10
+ //# sourceMappingURL=running-operations.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"running-operations.types.d.ts","sourceRoot":"","sources":["../../src/store/running-operations.types.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,MAAM,MAAM,iBAAiB,GAAG;IAC/B,4BAA4B;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,GAAG,EAAE,MAAM,IAAI,CAAA;IACf,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC7B,CAAA"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Whether two JSON values hold the same (objects compared by their keys whatever their order, arrays in order): an
3
+ * update that writes back what a document holds changes nothing.
4
+ */
5
+ export declare function sameJsonValue(params: {
6
+ first: unknown;
7
+ second: unknown;
8
+ }): boolean;
9
+ //# sourceMappingURL=same-json-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"same-json-value.d.ts","sourceRoot":"","sources":["../../src/store/same-json-value.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAElF"}
@@ -0,0 +1,20 @@
1
+ import { EngineConnector } from '../../engine/engine-store.types';
2
+ import { InProcessConnectorParams } from './in-process-link.types';
3
+ /**
4
+ * The engine of a project run in the calling realm, on an in-memory file of its own (`memdb`): a
5
+ * direct link, no worker. One engine per name, started by the first connection, closed with the last;
6
+ * the file stays until the name is destroyed, so the next engine starts on what was written - its
7
+ * start (layout check, unfinished imports removed) runs as after a reload.
8
+ */
9
+ export declare function createInProcessConnector(params: InProcessConnectorParams): EngineConnector;
10
+ /**
11
+ * The project's in-memory file can grow no more: its size limit set through a connection of its own (the
12
+ * limit belongs to the file, every connection meets it; a limit below the file's size becomes its size,
13
+ * so 0 caps it where it is, with no read of a file its engine holds). A test tool: what an origin out of
14
+ * storage is to the engine.
15
+ */
16
+ export declare function fillInProcessFile(params: {
17
+ name: string;
18
+ dialecteId: string;
19
+ }): Promise<void>;
20
+ //# sourceMappingURL=in-process-link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"in-process-link.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/adapter/in-process-link.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAA0B,MAAM,iCAAiC,CAAA;AAI9F,OAAO,KAAK,EAAE,wBAAwB,EAAiB,MAAM,yBAAyB,CAAA;AAYtF;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,wBAAwB,GAAG,eAAe,CAgB1F;AA4JD;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,EAAE;IAC/C,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CAClB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBhB"}
@@ -0,0 +1,21 @@
1
+ import { SqliteEngine, SqliteEngineOptions } from '../engine/engine.types';
2
+ import { StoreRuntime } from '../../../project/io/store-runtime.types';
3
+ import { Database } from '@sqlite.org/sqlite-wasm';
4
+ export type InProcessConnectorParams = {
5
+ /** The project's name: one in-memory file per dialecte and name in the realm. */
6
+ name: string;
7
+ /** The project's dialecte: kept in a new file, and with the name, which file is the project's. */
8
+ dialecteId: string;
9
+ /** What the name's engine imports with, when this connection starts it. */
10
+ runtime?: StoreRuntime;
11
+ options?: Partial<SqliteEngineOptions>;
12
+ };
13
+ /**
14
+ * The in-memory file of a name and its engine: a connection keeps the file while no engine runs on it,
15
+ * as the file system keeps a project's file between two engines.
16
+ */
17
+ export type InProcessFile = {
18
+ keeper: Database;
19
+ engine?: SqliteEngine;
20
+ };
21
+ //# sourceMappingURL=in-process-link.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"in-process-link.types.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/adapter/in-process-link.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAEvD,MAAM,MAAM,wBAAwB,GAAG;IACtC,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAA;IACZ,kGAAkG;IAClG,UAAU,EAAE,MAAM,CAAA;IAClB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;CACtC,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,MAAM,EAAE,QAAQ,CAAA;IAChB,MAAM,CAAC,EAAE,YAAY,CAAA;CACrB,CAAA"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Whether this realm can run an engine: a worker, and an origin private file system the browser hands it (a private
3
+ * Firefox window, a sandboxed or storage-blocked frame answer `getDirectory` with a refusal).
4
+ */
5
+ export declare function storesHere(): Promise<boolean>;
6
+ /** `STORE_UNAVAILABLE` for `name`: the realm can run no engine (no worker, or no private file system). */
7
+ export declare function refuseWithoutStorage(params: {
8
+ name: string;
9
+ }): never;
10
+ //# sourceMappingURL=realm-storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"realm-storage.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/adapter/realm-storage.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC,CAEnD;AAED,0GAA0G;AAC1G,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAMpE"}
@@ -0,0 +1,14 @@
1
+ import { EngineConnector } from '../../engine/engine-store.types';
2
+ import { SqliteConnectorParams } from '../../sqlite-storage.types';
3
+ /**
4
+ * A project on `sqlite` storage: its engine reached through the origin's hub when the page has one (the store's own
5
+ * engine offered to it as it connects, so a page that never called `connectHub` still hosts), else run by this page
6
+ * (direct mode). Chosen per connection - a project the page runs directly already is joined there, whatever the hub
7
+ * says by then - and a page the hub never welcomed asks it again at its next connection. A destroy goes the way a
8
+ * connection would, and runs a worker of its own in this realm. Where the realm can run no engine (no worker, no
9
+ * private file system: Node, a private window, a sandboxed or storage-blocked frame) it refuses `STORE_UNAVAILABLE`,
10
+ * nothing started - but a child its page bound through `adoptHubPort` connects through the page's engine, and its
11
+ * destroys are deleted by a view of the origin that can store.
12
+ */
13
+ export declare function createSqliteConnector(params: SqliteConnectorParams): EngineConnector;
14
+ //# sourceMappingURL=sqlite-connector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqlite-connector.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/adapter/sqlite-connector.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAEtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEvE;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,qBAAqB,GAAG,eAAe,CA8CpF"}
@@ -0,0 +1,4 @@
1
+ import { SqliteEngineSettings } from '../runtime/runtime.types';
2
+ /** What a SQLite engine opens with by default: the consumer's one wasm file, fetched by the engine at its open. */
3
+ export declare function sqliteEngineSettings(params?: Omit<SqliteEngineSettings, 'wasmUrl'>): SqliteEngineSettings;
4
+ //# sourceMappingURL=sqlite-engine-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqlite-engine-settings.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/adapter/sqlite-engine-settings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAEpE,mHAAmH;AACnH,wBAAgB,oBAAoB,CACnC,MAAM,GAAE,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAM,GAChD,oBAAoB,CAEtB"}
@@ -0,0 +1,8 @@
1
+ import { SqliteHubSpawnerParams } from './sqlite-hub-spawner.types';
2
+ import { RealmEngineSpawner } from '../../engine/hub/realm-host.types';
3
+ /**
4
+ * A dialecte's SQLite engine as a page offers to start it for the hub: its engine worker
5
+ * (`serveDialecteEngine`), opened on the consumer's one SQLite wasm file.
6
+ */
7
+ export declare function sqliteHubSpawner(params: SqliteHubSpawnerParams): RealmEngineSpawner;
8
+ //# sourceMappingURL=sqlite-hub-spawner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqlite-hub-spawner.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/adapter/sqlite-hub-spawner.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAE7E;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,kBAAkB,CAWnF"}
@@ -0,0 +1,5 @@
1
+ import { SqliteEngineSettings } from '../runtime/runtime.types';
2
+ import { RealmEngineSpawner } from '../../engine/hub/realm-host.types';
3
+ /** A SQLite engine a page can start for the hub: the spawner's own fields, the engine's options beside. */
4
+ export type SqliteHubSpawnerParams = Omit<RealmEngineSpawner, 'settings'> & Omit<SqliteEngineSettings, 'wasmUrl'>;
5
+ //# sourceMappingURL=sqlite-hub-spawner.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqlite-hub-spawner.types.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/adapter/sqlite-hub-spawner.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAE7E,2GAA2G;AAC3G,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,GACxE,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { SqliteWorkerConnectorParams } from './sqlite-worker-connector.types';
2
+ import { EngineConnector } from '../../engine/engine-store.types';
3
+ /**
4
+ * Direct mode on SQLite: the project's engine in the dialecte's engine worker (`serveDialecteEngine`),
5
+ * opened on the consumer's one SQLite wasm file.
6
+ */
7
+ export declare function createSqliteWorkerConnector(params: SqliteWorkerConnectorParams): EngineConnector;
8
+ //# sourceMappingURL=sqlite-worker-connector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqlite-worker-connector.d.ts","sourceRoot":"","sources":["../../../../src/store/sqlite/adapter/sqlite-worker-connector.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AAExE;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,2BAA2B,GAAG,eAAe,CAMhG"}
@@ -0,0 +1,5 @@
1
+ import { SqliteEngineSettings } from '../runtime/runtime.types';
2
+ import { WorkerConnectorParams } from '../../engine/client/client.types';
3
+ /** A worker connector to a SQLite engine: the engine's options and progress beat beside the connector's own. */
4
+ export type SqliteWorkerConnectorParams = Omit<WorkerConnectorParams<SqliteEngineSettings>, 'settings'> & Omit<SqliteEngineSettings, 'wasmUrl'>;
5
+ //# sourceMappingURL=sqlite-worker-connector.types.d.ts.map