@dialecte/core 0.8.1 → 0.10.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 (304) hide show
  1. package/dist/assets/hub.worker-35vzG0HK.js +2 -0
  2. package/dist/dialecte/create-dialecte-project.d.ts +1 -2
  3. package/dist/dialecte/create-dialecte-project.d.ts.map +1 -1
  4. package/dist/dialecte/create-project-factory.d.ts +5 -5
  5. package/dist/dialecte/create-project-factory.d.ts.map +1 -1
  6. package/dist/dialecte/define-dialecte.d.ts +2 -2
  7. package/dist/dialecte/dialecte.types.d.ts +11 -23
  8. package/dist/dialecte/dialecte.types.d.ts.map +1 -1
  9. package/dist/{dialecte-gIPrRzni.js → dialecte-CVLWSkgW.js} +1726 -1673
  10. package/dist/document/document.d.ts +1 -1
  11. package/dist/document/query/get/record/get-record.d.ts +14 -1
  12. package/dist/document/query/get/record/get-record.d.ts.map +1 -1
  13. package/dist/document/query/get/record/get-records.d.ts +12 -2
  14. package/dist/document/query/get/record/get-records.d.ts.map +1 -1
  15. package/dist/{engine-store-CIEqgPUb.js → engine-store-Deo9XNhr.js} +21 -21
  16. package/dist/engine.constants-Bi4gw6BR.js +205 -0
  17. package/dist/errors/{codes.d.ts → codes.constants.d.ts} +33 -105
  18. package/dist/errors/{codes.d.ts.map → codes.constants.d.ts.map} +1 -1
  19. package/dist/errors/core-codes.constants.d.ts +3 -0
  20. package/dist/errors/core-codes.constants.d.ts.map +1 -0
  21. package/dist/errors/errors.constants.d.ts +5 -0
  22. package/dist/errors/errors.constants.d.ts.map +1 -1
  23. package/dist/errors/errors.d.ts.map +1 -1
  24. package/dist/errors/index.d.ts +1 -1
  25. package/dist/errors/index.d.ts.map +1 -1
  26. package/dist/errors/types.d.ts +1 -1
  27. package/dist/errors/types.d.ts.map +1 -1
  28. package/dist/{helpers-DVShv41E.js → helpers-D8p0KiJu.js} +1 -1
  29. package/dist/helpers.js +2 -2
  30. package/dist/{in-process-link-DBeAOZRp.js → in-process-link-B-TCHrlb.js} +996 -993
  31. package/dist/index.js +8 -7
  32. package/dist/project/index.d.ts +1 -1
  33. package/dist/project/index.d.ts.map +1 -1
  34. package/dist/project/io/store-runtime.types.d.ts +1 -3
  35. package/dist/project/io/store-runtime.types.d.ts.map +1 -1
  36. package/dist/project/project.d.ts +13 -15
  37. package/dist/project/project.d.ts.map +1 -1
  38. package/dist/project/types.d.ts +24 -19
  39. package/dist/project/types.d.ts.map +1 -1
  40. package/dist/{project-key-Ch34EtFa.js → project-key-2ccZ-0gu.js} +195 -205
  41. package/dist/running-operations-DCKvzlU7.js +107 -0
  42. package/dist/{same-json-value-C6kUaoyt.js → same-json-value-_AChwM_n.js} +41 -41
  43. package/dist/sqlite-engine.d.ts +7 -0
  44. package/dist/sqlite-engine.d.ts.map +1 -0
  45. package/dist/{engine.js → sqlite-engine.js} +4144 -4079
  46. package/dist/sqlite.d.ts +27 -2
  47. package/dist/sqlite.d.ts.map +1 -1
  48. package/dist/sqlite.js +1118 -917
  49. package/dist/store/in-memory/in-memory-state.constants.d.ts +14 -0
  50. package/dist/store/in-memory/in-memory-state.constants.d.ts.map +1 -0
  51. package/dist/store/in-memory/in-memory-state.d.ts +0 -4
  52. package/dist/store/in-memory/in-memory-state.d.ts.map +1 -1
  53. package/dist/store/in-memory/in-memory-store.d.ts.map +1 -1
  54. package/dist/store/in-memory/types.d.ts +1 -2
  55. package/dist/store/in-memory/types.d.ts.map +1 -1
  56. package/dist/store/index.d.ts +2 -1
  57. package/dist/store/index.d.ts.map +1 -1
  58. package/dist/store/lost-write.d.ts +8 -8
  59. package/dist/store/lost-write.d.ts.map +1 -1
  60. package/dist/store/lost-write.types.d.ts +1 -1
  61. package/dist/store/lost-write.types.d.ts.map +1 -1
  62. package/dist/store/{engine/project-key.d.ts → project-key.d.ts} +0 -5
  63. package/dist/store/project-key.d.ts.map +1 -0
  64. package/dist/store/resolve-store.d.ts +6 -18
  65. package/dist/store/resolve-store.d.ts.map +1 -1
  66. package/dist/store/sqlite/adapter/in-process-link.constants.d.ts +12 -0
  67. package/dist/store/sqlite/adapter/in-process-link.constants.d.ts.map +1 -0
  68. package/dist/store/sqlite/adapter/in-process-link.d.ts +1 -1
  69. package/dist/store/sqlite/adapter/in-process-link.d.ts.map +1 -1
  70. package/dist/store/sqlite/adapter/sqlite-connector.d.ts +12 -11
  71. package/dist/store/sqlite/adapter/sqlite-connector.d.ts.map +1 -1
  72. package/dist/store/sqlite/adapter/sqlite-connector.types.d.ts +7 -0
  73. package/dist/store/sqlite/adapter/sqlite-connector.types.d.ts.map +1 -0
  74. package/dist/store/sqlite/adapter/sqlite-hub-spawner.d.ts +8 -3
  75. package/dist/store/sqlite/adapter/sqlite-hub-spawner.d.ts.map +1 -1
  76. package/dist/store/sqlite/adapter/sqlite-hub-spawner.types.d.ts +12 -1
  77. package/dist/store/sqlite/adapter/sqlite-hub-spawner.types.d.ts.map +1 -1
  78. package/dist/store/sqlite/adapter/sqlite-worker-connector.d.ts +2 -2
  79. package/dist/store/sqlite/adapter/sqlite-worker-connector.d.ts.map +1 -1
  80. package/dist/store/sqlite/adapter/sqlite-worker-connector.types.d.ts +1 -1
  81. package/dist/store/sqlite/adapter/sqlite-worker-connector.types.d.ts.map +1 -1
  82. package/dist/store/sqlite/engine/engine.types.d.ts +2 -2
  83. package/dist/store/sqlite/engine/engine.types.d.ts.map +1 -1
  84. package/dist/store/sqlite/engine/schema.d.ts.map +1 -1
  85. package/dist/store/sqlite/engine/sqlite-engine.d.ts.map +1 -1
  86. package/dist/store/{hub-public.d.ts → sqlite/hub-public.d.ts} +9 -9
  87. package/dist/store/sqlite/hub-public.d.ts.map +1 -0
  88. package/dist/store/sqlite/packaging/engine-packaging.constants.d.ts +15 -0
  89. package/dist/store/sqlite/packaging/engine-packaging.constants.d.ts.map +1 -0
  90. package/dist/store/sqlite/runtime/close-engine.d.ts +5 -2
  91. package/dist/store/sqlite/runtime/close-engine.d.ts.map +1 -1
  92. package/dist/store/sqlite/runtime/engine-control-loop.d.ts +11 -0
  93. package/dist/store/sqlite/runtime/engine-control-loop.d.ts.map +1 -0
  94. package/dist/store/sqlite/runtime/install-pool.d.ts +1 -1
  95. package/dist/store/sqlite/runtime/install-pool.d.ts.map +1 -1
  96. package/dist/store/sqlite/runtime/progress-beat.d.ts +1 -1
  97. package/dist/store/sqlite/runtime/progress-beat.d.ts.map +1 -1
  98. package/dist/store/sqlite/runtime/runtime.types.d.ts +7 -4
  99. package/dist/store/sqlite/runtime/runtime.types.d.ts.map +1 -1
  100. package/dist/store/sqlite/runtime/serve-sqlite-engine.d.ts +9 -0
  101. package/dist/store/sqlite/runtime/serve-sqlite-engine.d.ts.map +1 -0
  102. package/dist/store/sqlite/runtime/serve-sqlite-engine.types.d.ts +27 -0
  103. package/dist/store/sqlite/runtime/serve-sqlite-engine.types.d.ts.map +1 -0
  104. package/dist/store/sqlite/served/client/check-engine-wire.d.ts.map +1 -0
  105. package/dist/store/{engine → sqlite/served}/client/client.constants.d.ts +3 -3
  106. package/dist/store/sqlite/served/client/client.constants.d.ts.map +1 -0
  107. package/dist/store/{engine → sqlite/served}/client/client.types.d.ts +13 -8
  108. package/dist/store/sqlite/served/client/client.types.d.ts.map +1 -0
  109. package/dist/store/{engine → sqlite/served}/client/engine-client.d.ts +1 -1
  110. package/dist/store/sqlite/served/client/engine-client.d.ts.map +1 -0
  111. package/dist/store/sqlite/served/client/engine-control.d.ts.map +1 -0
  112. package/dist/store/sqlite/served/client/heartbeat-watch.d.ts.map +1 -0
  113. package/dist/store/{engine → sqlite/served}/client/hub-connector.d.ts +1 -1
  114. package/dist/store/sqlite/served/client/hub-connector.d.ts.map +1 -0
  115. package/dist/store/{engine → sqlite/served}/client/hub-connector.types.d.ts +6 -7
  116. package/dist/store/sqlite/served/client/hub-connector.types.d.ts.map +1 -0
  117. package/dist/store/sqlite/served/client/worker-connector.d.ts.map +1 -0
  118. package/dist/store/sqlite/served/creation-refusal.d.ts.map +1 -0
  119. package/dist/store/sqlite/served/dialecte-refusal.d.ts +19 -0
  120. package/dist/store/sqlite/served/dialecte-refusal.d.ts.map +1 -0
  121. package/dist/store/sqlite/served/engine-lock.d.ts +6 -0
  122. package/dist/store/sqlite/served/engine-lock.d.ts.map +1 -0
  123. package/dist/store/sqlite/served/engine-store.constants.d.ts +3 -0
  124. package/dist/store/sqlite/served/engine-store.constants.d.ts.map +1 -0
  125. package/dist/store/{engine → sqlite/served}/engine-store.d.ts +6 -6
  126. package/dist/store/sqlite/served/engine-store.d.ts.map +1 -0
  127. package/dist/store/sqlite/served/engine-store.types.d.ts.map +1 -0
  128. package/dist/store/sqlite/served/engine.constants.d.ts.map +1 -0
  129. package/dist/store/{engine → sqlite/served}/engine.types.d.ts +2 -4
  130. package/dist/store/sqlite/served/engine.types.d.ts.map +1 -0
  131. package/dist/store/sqlite/served/host/changed.d.ts +5 -0
  132. package/dist/store/sqlite/served/host/changed.d.ts.map +1 -0
  133. package/dist/store/sqlite/served/host/engine-wire.d.ts.map +1 -0
  134. package/dist/store/{engine → sqlite/served}/host/heartbeat.d.ts +1 -1
  135. package/dist/store/sqlite/served/host/heartbeat.d.ts.map +1 -0
  136. package/dist/store/sqlite/served/host/host.constants.d.ts.map +1 -0
  137. package/dist/store/{engine → sqlite/served}/host/host.types.d.ts +4 -3
  138. package/dist/store/sqlite/served/host/host.types.d.ts.map +1 -0
  139. package/dist/store/sqlite/served/host/store-events.constants.d.ts +9 -0
  140. package/dist/store/sqlite/served/host/store-events.constants.d.ts.map +1 -0
  141. package/dist/store/sqlite/served/host/store-events.d.ts.map +1 -0
  142. package/dist/store/sqlite/served/hub/hub-client.constants.d.ts.map +1 -0
  143. package/dist/store/sqlite/served/hub/hub-client.d.ts.map +1 -0
  144. package/dist/store/{engine → sqlite/served}/hub/hub-client.types.d.ts +2 -9
  145. package/dist/store/sqlite/served/hub/hub-client.types.d.ts.map +1 -0
  146. package/dist/store/sqlite/served/hub/hub-protocol.types.d.ts.map +1 -0
  147. package/dist/store/sqlite/served/hub/hub-router.d.ts.map +1 -0
  148. package/dist/store/sqlite/served/hub/hub-shell.d.ts.map +1 -0
  149. package/dist/store/sqlite/served/hub/hub-shell.types.d.ts.map +1 -0
  150. package/dist/store/{engine → sqlite/served}/hub/hub.constants.d.ts +3 -3
  151. package/dist/store/sqlite/served/hub/hub.constants.d.ts.map +1 -0
  152. package/dist/store/{engine → sqlite/served}/hub/hub.types.d.ts +2 -2
  153. package/dist/store/sqlite/served/hub/hub.types.d.ts.map +1 -0
  154. package/dist/store/sqlite/served/hub/hub.worker.d.ts.map +1 -0
  155. package/dist/store/sqlite/served/hub/realm-host.d.ts.map +1 -0
  156. package/dist/store/{engine → sqlite/served}/hub/realm-host.types.d.ts +3 -3
  157. package/dist/store/sqlite/served/hub/realm-host.types.d.ts.map +1 -0
  158. package/dist/store/sqlite/served/wire/error-envelope.d.ts.map +1 -0
  159. package/dist/store/sqlite/served/wire/wire-values.d.ts.map +1 -0
  160. package/dist/store/sqlite/served/wire/wire.constants.d.ts.map +1 -0
  161. package/dist/store/{engine → sqlite/served}/wire/wire.types.d.ts +1 -1
  162. package/dist/store/sqlite/served/wire/wire.types.d.ts.map +1 -0
  163. package/dist/store/sqlite/sqlite-connector-params.d.ts +13 -0
  164. package/dist/store/sqlite/sqlite-connector-params.d.ts.map +1 -0
  165. package/dist/store/sqlite/sqlite-engine-registration.d.ts +30 -0
  166. package/dist/store/sqlite/sqlite-engine-registration.d.ts.map +1 -0
  167. package/dist/store/sqlite/sqlite-error-entry.d.ts +10 -0
  168. package/dist/store/sqlite/sqlite-error-entry.d.ts.map +1 -0
  169. package/dist/store/sqlite/sqlite-errors.constants.d.ts +110 -0
  170. package/dist/store/sqlite/sqlite-errors.constants.d.ts.map +1 -0
  171. package/dist/store/sqlite/sqlite-errors.types.d.ts +7 -0
  172. package/dist/store/sqlite/sqlite-errors.types.d.ts.map +1 -0
  173. package/dist/store/sqlite/sqlite-storage-kind.constants.d.ts +10 -0
  174. package/dist/store/sqlite/sqlite-storage-kind.constants.d.ts.map +1 -0
  175. package/dist/store/sqlite/sqlite-storage-kind.d.ts +3 -0
  176. package/dist/store/sqlite/sqlite-storage-kind.d.ts.map +1 -0
  177. package/dist/store/sqlite/sqlite-storage.constants.d.ts +24 -0
  178. package/dist/store/sqlite/sqlite-storage.constants.d.ts.map +1 -0
  179. package/dist/store/sqlite/sqlite-storage.types.d.ts +27 -0
  180. package/dist/store/sqlite/sqlite-storage.types.d.ts.map +1 -0
  181. package/dist/store/sqlite/sqlite-store-of.d.ts +8 -3
  182. package/dist/store/sqlite/sqlite-store-of.d.ts.map +1 -1
  183. package/dist/store/storage-kinds.constants.d.ts +16 -0
  184. package/dist/store/storage-kinds.constants.d.ts.map +1 -0
  185. package/dist/store/storage-kinds.d.ts +43 -0
  186. package/dist/store/storage-kinds.d.ts.map +1 -0
  187. package/dist/store/storage-kinds.types.d.ts +46 -0
  188. package/dist/store/storage-kinds.types.d.ts.map +1 -0
  189. package/dist/store/store.types.d.ts +6 -4
  190. package/dist/store/store.types.d.ts.map +1 -1
  191. package/dist/test/assert-xml/assert-xml.d.ts +4 -2
  192. package/dist/test/assert-xml/assert-xml.d.ts.map +1 -1
  193. package/dist/test/assert-xml/index.d.ts +1 -0
  194. package/dist/test/assert-xml/index.d.ts.map +1 -1
  195. package/dist/test/assert-xml/xml-assertion-error.d.ts +8 -0
  196. package/dist/test/assert-xml/xml-assertion-error.d.ts.map +1 -0
  197. package/dist/test/create-test-dialecte.constants.d.ts +4 -0
  198. package/dist/test/create-test-dialecte.constants.d.ts.map +1 -0
  199. package/dist/test/create-test-dialecte.d.ts.map +1 -1
  200. package/dist/test/indexeddb-storage.setup.d.ts +1 -0
  201. package/dist/test/indexeddb-storage.setup.d.ts.map +1 -0
  202. package/dist/test/test-storage/index.d.ts +1 -1
  203. package/dist/test/test-storage/index.d.ts.map +1 -1
  204. package/dist/test/test-storage/sqlite-test-store.d.ts +15 -0
  205. package/dist/test/test-storage/sqlite-test-store.d.ts.map +1 -0
  206. package/dist/test/test-storage/test-storage.types.d.ts +12 -0
  207. package/dist/test/test-storage/test-storage.types.d.ts.map +1 -1
  208. package/dist/test/test-storage/test-store-for.d.ts +18 -6
  209. package/dist/test/test-storage/test-store-for.d.ts.map +1 -1
  210. package/dist/test/test-storage/test-store-providers.constants.d.ts +8 -0
  211. package/dist/test/test-storage/test-store-providers.constants.d.ts.map +1 -0
  212. package/dist/test/test-storage/test-store-providers.d.ts +11 -0
  213. package/dist/test/test-storage/test-store-providers.d.ts.map +1 -0
  214. package/dist/test.js +805 -765
  215. package/dist/{utils-USNkj4sT.js → utils-Cv4oHia0.js} +63 -137
  216. package/dist/utils.js +1 -1
  217. package/package.json +40 -8
  218. package/skills/dialecte/SKILL.md +8 -6
  219. package/skills/dialecte/references/api.json +93 -66
  220. package/skills/dialecte/references/api.md +463 -461
  221. package/skills/dialecte/references/core-api.md +42 -15
  222. package/skills/dialecte/references/testing.md +167 -11
  223. package/skills/dialecte-contributing/SKILL.md +1 -1
  224. package/skills/dialecte-contributing/references/code-rules.md +7 -0
  225. package/skills/dialecte-contributing/references/landing-changes.md +4 -4
  226. package/skills/dialecte-lot/SKILL.md +67 -28
  227. package/skills/dialecte-lot/references/briefs.md +30 -6
  228. package/skills/dialecte-lot/references/standard-check.md +2 -2
  229. package/skills/dialecte-lot/references/stations.md +5 -3
  230. package/dist/assets/hub.worker-B1HcVDhn.js +0 -2
  231. package/dist/engine.constants-DBMjMmV9.js +0 -98
  232. package/dist/engine.d.ts +0 -9
  233. package/dist/engine.d.ts.map +0 -1
  234. package/dist/running-operations-vnijBvn7.js +0 -76
  235. package/dist/store/engine/client/check-engine-wire.d.ts.map +0 -1
  236. package/dist/store/engine/client/client.constants.d.ts.map +0 -1
  237. package/dist/store/engine/client/client.types.d.ts.map +0 -1
  238. package/dist/store/engine/client/engine-client.d.ts.map +0 -1
  239. package/dist/store/engine/client/engine-control.d.ts.map +0 -1
  240. package/dist/store/engine/client/heartbeat-watch.d.ts.map +0 -1
  241. package/dist/store/engine/client/hub-connector.d.ts.map +0 -1
  242. package/dist/store/engine/client/hub-connector.types.d.ts.map +0 -1
  243. package/dist/store/engine/client/worker-connector.d.ts.map +0 -1
  244. package/dist/store/engine/creation-refusal.d.ts.map +0 -1
  245. package/dist/store/engine/dialecte-refusal.d.ts +0 -18
  246. package/dist/store/engine/dialecte-refusal.d.ts.map +0 -1
  247. package/dist/store/engine/engine-store.d.ts.map +0 -1
  248. package/dist/store/engine/engine-store.types.d.ts.map +0 -1
  249. package/dist/store/engine/engine.constants.d.ts.map +0 -1
  250. package/dist/store/engine/engine.types.d.ts.map +0 -1
  251. package/dist/store/engine/host/engine-wire.d.ts.map +0 -1
  252. package/dist/store/engine/host/heartbeat.d.ts.map +0 -1
  253. package/dist/store/engine/host/host.constants.d.ts.map +0 -1
  254. package/dist/store/engine/host/host.types.d.ts.map +0 -1
  255. package/dist/store/engine/host/store-events.d.ts.map +0 -1
  256. package/dist/store/engine/hub/hub-client.constants.d.ts.map +0 -1
  257. package/dist/store/engine/hub/hub-client.d.ts.map +0 -1
  258. package/dist/store/engine/hub/hub-client.types.d.ts.map +0 -1
  259. package/dist/store/engine/hub/hub-protocol.types.d.ts.map +0 -1
  260. package/dist/store/engine/hub/hub-router.d.ts.map +0 -1
  261. package/dist/store/engine/hub/hub-shell.d.ts.map +0 -1
  262. package/dist/store/engine/hub/hub-shell.types.d.ts.map +0 -1
  263. package/dist/store/engine/hub/hub.constants.d.ts.map +0 -1
  264. package/dist/store/engine/hub/hub.types.d.ts.map +0 -1
  265. package/dist/store/engine/hub/hub.worker.d.ts.map +0 -1
  266. package/dist/store/engine/hub/realm-host.d.ts.map +0 -1
  267. package/dist/store/engine/hub/realm-host.types.d.ts.map +0 -1
  268. package/dist/store/engine/project-key.d.ts.map +0 -1
  269. package/dist/store/engine/wire/error-envelope.d.ts.map +0 -1
  270. package/dist/store/engine/wire/wire-values.d.ts.map +0 -1
  271. package/dist/store/engine/wire/wire.constants.d.ts.map +0 -1
  272. package/dist/store/engine/wire/wire.types.d.ts.map +0 -1
  273. package/dist/store/hub-public.d.ts.map +0 -1
  274. package/dist/store/sqlite/runtime/serve-dialecte-engine.d.ts +0 -16
  275. package/dist/store/sqlite/runtime/serve-dialecte-engine.d.ts.map +0 -1
  276. package/dist/store/sqlite-storage.constants.d.ts +0 -14
  277. package/dist/store/sqlite-storage.constants.d.ts.map +0 -1
  278. package/dist/store/sqlite-storage.d.ts +0 -22
  279. package/dist/store/sqlite-storage.d.ts.map +0 -1
  280. package/dist/store/sqlite-storage.types.d.ts +0 -24
  281. package/dist/store/sqlite-storage.types.d.ts.map +0 -1
  282. package/dist/test/test-dialecte.worker.d.ts +0 -2
  283. package/dist/test/test-dialecte.worker.d.ts.map +0 -1
  284. /package/dist/store/{engine → sqlite/served}/client/check-engine-wire.d.ts +0 -0
  285. /package/dist/store/{engine → sqlite/served}/client/engine-control.d.ts +0 -0
  286. /package/dist/store/{engine → sqlite/served}/client/heartbeat-watch.d.ts +0 -0
  287. /package/dist/store/{engine → sqlite/served}/client/worker-connector.d.ts +0 -0
  288. /package/dist/store/{engine → sqlite/served}/creation-refusal.d.ts +0 -0
  289. /package/dist/store/{engine → sqlite/served}/engine-store.types.d.ts +0 -0
  290. /package/dist/store/{engine → sqlite/served}/engine.constants.d.ts +0 -0
  291. /package/dist/store/{engine → sqlite/served}/host/engine-wire.d.ts +0 -0
  292. /package/dist/store/{engine → sqlite/served}/host/host.constants.d.ts +0 -0
  293. /package/dist/store/{engine → sqlite/served}/host/store-events.d.ts +0 -0
  294. /package/dist/store/{engine → sqlite/served}/hub/hub-client.constants.d.ts +0 -0
  295. /package/dist/store/{engine → sqlite/served}/hub/hub-client.d.ts +0 -0
  296. /package/dist/store/{engine → sqlite/served}/hub/hub-protocol.types.d.ts +0 -0
  297. /package/dist/store/{engine → sqlite/served}/hub/hub-router.d.ts +0 -0
  298. /package/dist/store/{engine → sqlite/served}/hub/hub-shell.d.ts +0 -0
  299. /package/dist/store/{engine → sqlite/served}/hub/hub-shell.types.d.ts +0 -0
  300. /package/dist/store/{engine → sqlite/served}/hub/hub.worker.d.ts +0 -0
  301. /package/dist/store/{engine → sqlite/served}/hub/realm-host.d.ts +0 -0
  302. /package/dist/store/{engine → sqlite/served}/wire/error-envelope.d.ts +0 -0
  303. /package/dist/store/{engine → sqlite/served}/wire/wire-values.d.ts +0 -0
  304. /package/dist/store/{engine → sqlite/served}/wire/wire.constants.d.ts +0 -0
@@ -12,7 +12,7 @@ export declare const ERROR_CATALOG: {
12
12
  readonly code: "D0002";
13
13
  readonly message: "Assertion failed";
14
14
  readonly explanation: {
15
- readonly when: "An `invariant` without its own key failed, or core met a state it never expects (a catalogue built wrong, an inconsistent export, an engine running an sqlite-wasm older than 3.54.1, which removes a project on a failed install).";
15
+ readonly when: "An `invariant` without its own key failed, or core met a state it never expects (a catalogue built wrong, an inconsistent export, a store running on a dependency older than the one it supports).";
16
16
  readonly fix: "Read `detail`: it names the condition. Give `invariant` a key of its own when the failure is one a caller should handle.";
17
17
  readonly docs: "https://dialecte.github.io/core/guide/development/state-and-errors#error-catalog";
18
18
  };
@@ -21,8 +21,8 @@ export declare const ERROR_CATALOG: {
21
21
  readonly code: "D1001";
22
22
  readonly message: "Failed to open database";
23
23
  readonly explanation: {
24
- readonly when: "The project's database could not be opened (the SQLite file or its worker did not start), or the origin's hub could not be joined: its SharedWorker failed to start or was blocked, or a child's port went unanswered past the welcome budget (its page unbound it).";
25
- readonly fix: "Check the browser supports the store (OPFS, workers, SharedWorker for the hub) and that no other tab holds the project; reload, or open the project with another storage. A child view refused so is bound again by its page (`createHubPort`, then `adoptHubPort`).";
24
+ readonly when: "The store could not open the project's data, or could not reach what serves it (its database, a worker, a server): it failed to start, was blocked, or went unanswered; the failure is the `cause` when there is one.";
25
+ readonly fix: "Check the browser supports what the store needs and that no other tab holds the project; reload, or open the project with another storage. The store's own docs name what it needs.";
26
26
  readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
27
27
  };
28
28
  };
@@ -111,38 +111,11 @@ export declare const ERROR_CATALOG: {
111
111
  readonly code: "D1011";
112
112
  readonly message: "Failed to read from database";
113
113
  readonly explanation: {
114
- readonly when: "The SQLite store's database failed under a read; the failure is the `cause`.";
114
+ readonly when: "The store's database failed under a read; the failure is the `cause`.";
115
115
  readonly fix: "Read `cause`; reopen the project. A lasting failure means the file is damaged: import its documents again.";
116
116
  readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
117
117
  };
118
118
  };
119
- readonly STORE_PROTOCOL_MISMATCH: {
120
- readonly code: "D1012";
121
- readonly message: "Another version of the library holds the shared store connection";
122
- readonly explanation: {
123
- readonly when: "Another version of the library already holds the shared store connection (another tab runs an older or newer build).";
124
- readonly fix: "Close the other tabs of the app, or reload them all on the same version.";
125
- readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
126
- };
127
- };
128
- readonly STORE_REALM_ID_TAKEN: {
129
- readonly code: "D1013";
130
- readonly message: "A view with this id is already connected to the shared store";
131
- readonly explanation: {
132
- readonly when: "A view joined the shared store with an id another connected view already uses.";
133
- readonly fix: "Give each view its own id; reload the page that reused one.";
134
- readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
135
- };
136
- };
137
- readonly STORE_REALM_UNKNOWN: {
138
- readonly code: "D1014";
139
- readonly message: "The shared store does not know this view";
140
- readonly explanation: {
141
- readonly when: "A view spoke to the shared store without having joined it, or after it left.";
142
- readonly fix: "Join (open the project) before reading or writing; reload a view that was disconnected.";
143
- readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
144
- };
145
- };
146
119
  readonly STORE_VALUE_NOT_JSON: {
147
120
  readonly code: "D1015";
148
121
  readonly message: "A value handed to the store is not JSON";
@@ -156,8 +129,8 @@ export declare const ERROR_CATALOG: {
156
129
  readonly code: "D1016";
157
130
  readonly message: "This browser gives the page no storage for a project";
158
131
  readonly explanation: {
159
- readonly when: "The browser gives the page no private file system (a private window), or a worker no synchronous file access, so the SQLite project store cannot create, open or destroy the project; nothing is changed.";
160
- readonly fix: "Open the app in a normal (not private) window of a browser that supports the origin private file system.";
132
+ readonly when: "The browser gives the page none of the storage the store needs (a private window, an API the browser lacks), so it cannot create, open or destroy the project; nothing is changed.";
133
+ readonly fix: "Open the app in a normal (not private) window of a browser that supports what the project's store needs, or open the project with another storage.";
161
134
  readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
162
135
  };
163
136
  };
@@ -165,27 +138,27 @@ export declare const ERROR_CATALOG: {
165
138
  readonly code: "D1017";
166
139
  readonly message: "Not enough storage left for the project";
167
140
  readonly explanation: {
168
- readonly when: "The origin has too little storage left: for a new project's files, for an import (eight times the file's size and at least 1 MiB, less the project's free pages), or the file system refused a write for want of space; nothing of the call applied. The SQLite project store answers it; the local (IndexedDB) store answers the failing write's own error (`STORE_COMMIT_FAILED`, `STORE_BULK_ADD_FAILED`, `STORE_BULK_UPDATE_FAILED`; an import `IMPORT_FAILED`) until it moves to SQLite; the in-memory store has no limit.";
141
+ readonly when: "The origin has too little storage left for what the call needs (a new project's files, an import's room ahead of it), or the store's storage refused a write for want of space; nothing of the call applied. A store that checks the room it needs answers it; the local (IndexedDB) store answers the failing write's own error (`STORE_COMMIT_FAILED`, `STORE_BULK_ADD_FAILED`, `STORE_BULK_UPDATE_FAILED`; an import `IMPORT_FAILED`); the in-memory store has no limit.";
169
142
  readonly fix: "Free storage for the origin (delete projects no longer needed) or import a smaller file, then try again; `meta.needed` and `meta.available` give the sizes when known.";
170
143
  readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
171
144
  };
172
145
  };
173
- readonly STORE_ENGINE_LOST: {
146
+ readonly STORE_CONNECTION_LOST: {
174
147
  readonly code: "D1018";
175
- readonly message: "The project engine stopped answering";
148
+ readonly message: "The store lost its connection";
176
149
  readonly explanation: {
177
- readonly when: "A call to a project engine served from a worker lost that engine: it ended with what hosted it or gave no answer within its budget (`meta.reason` `'host-gone'`), it sent nothing for too long while the call waited (`'no-heartbeat'`, it may still finish), or the hub dropped this view with the page that bound it - frozen, gone, or unbinding it (`'realm-dropped'`: every call, `getWriteOutcome` too, is refused so until the view is bound again).";
178
- readonly fix: "A Document's commit and a Project's import ask the outcome themselves, once: a commit that landed resolves; otherwise the refusal says `meta.outcome` - `not-applied` (make it again if wanted), `running` (a silent engine may still apply it: tell the user, read again later), `unknown` (it could not be asked), or `applied` for an import (its document is in the project; its diagnostics were lost). Elsewhere ask `getWriteOutcome({ writeId })` with `meta.writeId` before writing again; never retry a write blindly. For `'realm-dropped'`, every call is refused until the page binds the view again once it is back (`onRejoined`, then `createHubPort`, its port handed to the view's `adoptHubPort`).";
179
- readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
150
+ readonly when: "A call to a store whose project is served elsewhere (a worker, another realm, a server) lost its connection to what serves it: that went away or gave no answer within its budget, sent nothing for too long while the call waited (the call may still finish), or dropped this view. `meta.reason` is the store's own word for why, listed in its docs; a write's refusal carries `meta.writeId`.";
151
+ readonly fix: "A Document's commit and a Project's import ask the outcome themselves, once: a commit that landed resolves; otherwise the refusal says `meta.outcome` - `not-applied` (make it again if wanted), `running` (what serves the store may still apply it: tell the user, read again later), `unknown` (it could not be asked), or `applied` for an import (its document is in the project; its diagnostics were lost). Elsewhere ask `getWriteOutcome({ writeId })` with `meta.writeId` before writing again; never retry a write blindly. The store's docs say what each `meta.reason` asks of the app.";
152
+ readonly docs: "https://dialecte.github.io/core/api/project#a-lost-connection";
180
153
  };
181
154
  };
182
- readonly STORE_HUB_SPAWNERS_FIXED: {
183
- readonly code: "D1019";
184
- readonly message: "The page's hub connection runs another version of this dialecte's engine";
155
+ readonly STORE_KIND_TAKEN: {
156
+ readonly code: "D1021";
157
+ readonly message: "This storage type is registered already by another kind";
185
158
  readonly explanation: {
186
- readonly when: "`connectHub({ spawners })` named a dialecte whose engine the page's connection already runs at another version, or a project was opened (or destroyed by name) on `sqlite` from a factory of such a version (the project offers its engine to the hub as it opens): a page runs one version of each dialecte's engine (two would split a project's views between two engines). A later call adds the engines of dialectes the page does not run yet. `meta.spawners` names the dialectes (id and version) refused; nothing of the call was added, nothing opened.";
187
- readonly fix: "Ship one version of each dialecte in the app: register each dialecte's `factory.spawner` from the copy the app opens its projects with.";
188
- readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
159
+ readonly when: "`registerStorageKind({ type, kind })` named a type a kind of another `id` holds already: the first registration in the realm is kept, nothing replaced (the same `id` again does nothing: a module evaluated twice, or another copy of the package). `meta`: `type`, `registered` (the id kept), `asked` (the id refused).";
160
+ readonly fix: "Register each storage type once, from one package: import the entry that registers it from a single copy, or give the other kind a type of its own.";
161
+ readonly docs: "https://dialecte.github.io/core/guide/development/implementing-a-store#register-a-storage-kind";
189
162
  };
190
163
  };
191
164
  readonly ELEMENT_NOT_FOUND: {
@@ -476,47 +449,20 @@ export declare const ERROR_CATALOG: {
476
449
  readonly docs: "https://dialecte.github.io/core/api/project#blobs";
477
450
  };
478
451
  };
479
- readonly PROJECT_LAYOUT_OUTDATED: {
480
- readonly code: "D7005";
481
- readonly message: "Project stored by another version of the library";
482
- readonly explanation: {
483
- readonly when: "The project file was stored by another version of the library (another layout); nothing was written to it.";
484
- readonly fix: "Delete the project and import its files again with this version.";
485
- readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
486
- };
487
- };
488
- readonly PROJECT_ENGINE_UNAVAILABLE: {
489
- readonly code: "D7006";
490
- readonly message: "No view can start the project engine";
491
- readonly explanation: {
492
- readonly when: "The project's engine could not be started or reached: its worker failed to load or never answered its open within the open budget; through the origin's hub, no open view offers an engine for the project's dialecte, or the engine never said it opened; a destroy still running past the open budget, or one asked by a page suspended before the hub granted it.";
493
- readonly fix: "Keep one tab of the app open and reload; check the dialecte's `engineUrl` points at its worker and that it loads (the console names a script that fails); a destroy refused so is asked again once the project is closed elsewhere.";
494
- readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
495
- };
496
- };
497
- readonly PROJECT_ENGINE_BUSY: {
498
- readonly code: "D7007";
499
- readonly message: "The project is still held by another engine";
500
- readonly explanation: {
501
- readonly when: "Another engine still holds the project (another tab or a worker that did not stop).";
502
- readonly fix: "Close the other tabs of the app, then open the project again.";
503
- readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
504
- };
505
- };
506
452
  readonly PROJECT_DIALECTE_MISMATCH: {
507
453
  readonly code: "D7008";
508
- readonly message: "The project's engine or file is of another dialecte";
454
+ readonly message: "The project's data is of another dialecte";
509
455
  readonly explanation: {
510
- readonly when: "A project file stored by another dialecte was opened (nothing of it written); or an engine was asked for a project of another dialecte than its own - the dialecte's `engineUrl` (its project factory's, or a hub spawner's) pointing at another dialecte's worker. Two dialectes' projects of one name are two projects: opening one never meets the other. `meta`: `project`, `projectDialecteId` (the engine's or the file's), `realmDialecteId` (the one asked).";
511
- readonly fix: "Open the project with the dialecte it was created with; point the dialecte's `engineUrl` at its own worker.";
456
+ readonly when: "A project stored by another dialecte was opened (nothing of it written), or what serves the store (a worker, a server) was asked for a project of a dialecte it does not serve. Two dialectes' projects of one name are two projects: opening one never meets the other. `meta`: `project`, `realmDialecteId` (the one asked), and `projectDialecteId` (the project's), or the dialectes served, as the store's docs name them.";
457
+ readonly fix: "Open the project with the dialecte it was created with; serve every dialecte the app opens projects of, as the store's docs say.";
512
458
  readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
513
459
  };
514
460
  };
515
461
  readonly PROJECT_DIALECTE_VERSION_MISMATCH: {
516
462
  readonly code: "D7009";
517
- readonly message: "The project engine runs another version of the dialecte";
463
+ readonly message: "The project's store runs another version of the dialecte";
518
464
  readonly explanation: {
519
- readonly when: "The project's engine runs another version of the dialecte than this view.";
465
+ readonly when: "What serves the project's store (a worker, a server) runs another version of the dialecte than this view: another tab's, or one this page runs already for the project (a page runs one version of each dialecte).";
520
466
  readonly fix: "Reload every tab of the app so they run the same version.";
521
467
  readonly docs: "https://dialecte.github.io/core/api/project#store-errors";
522
468
  };
@@ -525,7 +471,7 @@ export declare const ERROR_CATALOG: {
525
471
  readonly code: "D7010";
526
472
  readonly message: "The project could not be deleted";
527
473
  readonly explanation: {
528
- readonly when: "Destroying a project left its files in place: another tab or worker still holds one.";
474
+ readonly when: "Destroying a project left its data in place: another tab, window or connection still holds it.";
529
475
  readonly fix: "Close the other tabs or windows of the app that have the project open, then destroy it again.";
530
476
  readonly docs: "https://dialecte.github.io/core/api/project#lifecycle";
531
477
  };
@@ -539,20 +485,11 @@ export declare const ERROR_CATALOG: {
539
485
  readonly docs: "https://dialecte.github.io/core/api/project#lifecycle";
540
486
  };
541
487
  };
542
- readonly PROJECT_DATABASE_LOST: {
543
- readonly code: "D7012";
544
- readonly message: "The project's database is gone";
545
- readonly explanation: {
546
- readonly when: "The project's files hold data but none of them is its database any more: the database file's header was damaged (by the disk, another program, or site data changed outside the app). Nothing is opened or changed: no empty database is made in its place. `meta.project` names the project.";
547
- readonly fix: "The project's data cannot be read back. Offer the user a reset, never automatically: `destroy()` on the same Project instance whose `open` was refused (keep it: `const project = new Project(params)`, then `await project.open(name)`) removes what the refused store holds, without opening it; `open(name)` then makes it again, empty, and its documents can be imported again.";
548
- readonly docs: "https://dialecte.github.io/core/api/project#lifecycle";
549
- };
550
- };
551
488
  readonly PROJECT_DESTROYED_WHILE_AWAY: {
552
489
  readonly code: "D7013";
553
490
  readonly message: "The project was deleted while this view was away";
554
491
  readonly explanation: {
555
- readonly when: "A view's connection to a project came back - the page back from a freeze or the back/forward cache, its engine started again - and the project it had open was destroyed meanwhile by another tab (and maybe made again under its name): nothing is opened in its place and nothing of it is read. `meta.project` names the project.";
492
+ readonly when: "A view's connection to a project came back - the page back from a freeze or the back/forward cache, what serves its store started again - and the project it had open was destroyed meanwhile by another tab (and maybe made again under its name): nothing is opened in its place and nothing of it is read. `meta.project` names the project.";
556
493
  readonly fix: "Tell the user the project was deleted elsewhere; close it in this view (`project.close()`), then open it again by its name for what is there now, or choose another.";
557
494
  readonly docs: "https://dialecte.github.io/core/api/project#lifecycle";
558
495
  };
@@ -561,27 +498,18 @@ export declare const ERROR_CATALOG: {
561
498
  readonly code: "D7014";
562
499
  readonly message: "The project's name cannot name its files";
563
500
  readonly explanation: {
564
- readonly when: "A project's name or its dialecte's id is empty, `.` or `..`: every store refuses it before it is built (a SQLite project's files sit in a directory named after both, which no directory can be); nothing was opened or written. `meta.project` and `meta.dialecteId` say which.";
501
+ readonly when: "A project's name or its dialecte's id is empty, `.` or `..`: every store refuses it before it is built (a store may name its files after both, which no file can be); nothing was opened or written. `meta.project` and `meta.dialecteId` say which.";
565
502
  readonly fix: "Give the project a name of its own (and the dialecte an id) other than an empty one, `.` or `..`.";
566
503
  readonly docs: "https://dialecte.github.io/core/api/project#lifecycle";
567
504
  };
568
505
  };
569
- readonly PROJECT_ENGINE_NOT_DECLARED: {
570
- readonly code: "D7015";
571
- readonly message: "This project has no engine to open it on SQLite";
572
- readonly explanation: {
573
- readonly when: "A project was opened on `storage: { type: 'sqlite' }` but made by no dialecte's project factory: its engine (the dialecte's id, its version and its engine worker's URL) is known to no one, so nothing can start it. Nothing was opened.";
574
- readonly fix: "Make the project with the dialecte's project factory (`createProjectFactory({ dialecte, engineUrl })`, as a dialecte package exports it), or open it on another storage.";
575
- readonly docs: "https://dialecte.github.io/core/api/project#sqlite-storage";
576
- };
577
- };
578
- readonly PROJECT_SQLITE_NOT_IMPORTED: {
579
- readonly code: "D7016";
580
- readonly message: "SQLite storage needs `import '@dialecte/core/sqlite'`";
506
+ readonly PROJECT_STORAGE_NOT_REGISTERED: {
507
+ readonly code: "D7018";
508
+ readonly message: "The project's storage type is not registered";
581
509
  readonly explanation: {
582
- readonly when: "A project was opened (or destroyed by name) on `storage: { type: 'sqlite' }`, or a test asked for the `sqlite` test store, but the app never imported `@dialecte/core/sqlite`: the SQLite storage kind lives behind that entry, so an app that never imports it neither emits nor downloads the SQLite engine, its wasm or the hub. Nothing was opened.";
583
- readonly fix: "Add `import '@dialecte/core/sqlite'` once to the app's entry (for tests, to the test runner's setup file), before the first project is opened on SQLite; or open the project on another storage. Imported already? The import registers the kind for every copy of @dialecte/core of the same SQLite storage version in the realm: a copy of another one (a dialecte bringing its own core) does not see it - align the core versions.";
584
- readonly docs: "https://dialecte.github.io/core/api/project#sqlite-storage";
510
+ readonly when: "A project was opened (or destroyed by name), or a test asked for a test store, on a `storage.type` no kind is registered for in this realm: core serves `local`, `inMemory` and `custom` itself, every other type comes from the entry that registers it (`registerStorageKind`). Nothing was opened. `meta`: `project`, `type`.";
511
+ readonly fix: "Import the entry that registers the type once in the app's entry (for tests, in the test runner's setup file), before the first project opens on it; or open the project on another storage. Imported already? A kind is shared by every copy of @dialecte/core of the same storage version in the realm: one registered by a copy of another version (a package bringing its own core) is not seen - align the core versions.";
512
+ readonly docs: "https://dialecte.github.io/core/guide/development/implementing-a-store#register-a-storage-kind";
585
513
  };
586
514
  };
587
515
  readonly DOCUMENT_PATH_INVALID: {
@@ -603,4 +531,4 @@ export declare const ERROR_CATALOG: {
603
531
  };
604
532
  };
605
533
  };
606
- //# sourceMappingURL=codes.d.ts.map
534
+ //# sourceMappingURL=codes.constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/errors/codes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8mBhB,CAAA"}
1
+ {"version":3,"file":"codes.constants.d.ts","sourceRoot":"","sources":["../../src/errors/codes.constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsiBhB,CAAA"}
@@ -0,0 +1,3 @@
1
+ /** The codes of core's own catalogue: a dialecte's entry may not reuse one. */
2
+ export declare const CORE_CODES: Set<string>;
3
+ //# sourceMappingURL=core-codes.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-codes.constants.d.ts","sourceRoot":"","sources":["../../src/errors/core-codes.constants.ts"],"names":[],"mappings":"AAEA,+EAA+E;AAC/E,eAAO,MAAM,UAAU,aAA2E,CAAA"}
@@ -1,3 +1,8 @@
1
1
  /** Where core's published docs live: an explanation's `docs` page is under it. */
2
2
  export declare const CORE_DOCS_URL = "https://dialecte.github.io/core";
3
+ /**
4
+ * The functions that only raise or report an error: the method is the first frame that is none of
5
+ * them. Matched on the function name only — a frame's file path may well contain one of these words.
6
+ */
7
+ export declare const RAISING_FUNCTIONS: Set<string>;
3
8
  //# sourceMappingURL=errors.constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.constants.d.ts","sourceRoot":"","sources":["../../src/errors/errors.constants.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,eAAO,MAAM,aAAa,oCAAoC,CAAA"}
1
+ {"version":3,"file":"errors.constants.d.ts","sourceRoot":"","sources":["../../src/errors/errors.constants.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,eAAO,MAAM,aAAa,oCAAoC,CAAA;AAE9D;;;GAGG;AACH,eAAO,MAAM,iBAAiB,aAK5B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors/errors.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,uBAAuB,EACvB,aAAa,EACb,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,MAAM,SAAS,CAAA;AAEhB;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CACjC,GAAG,EAAE,gBAAgB,GAAG,uBAAuB,EAC/C,MAAM,EAAE,wBAAwB,GAC9B,KAAK,CAEP;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAClC,GAAG,EAAE,gBAAgB,GAAG,uBAAuB,EAC/C,MAAM,EAAE,wBAAwB,GAC9B,KAAK,CAeP;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,KAAK,CAAC,cAAc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AED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,CAAC,iBAAiB,SAAS,SAAS,wBAAwB,CAAC,yBAAyB,CAAC,EAAE,EAE9F,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE;IAAE,UAAU,EAAE,iBAAiB,CAAA;CAAE,GACvC,KAAK,IAAI,aAAa,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,CAAC,CAKlE"}
@@ -1,4 +1,4 @@
1
- export * from './codes';
1
+ export * from './codes.constants';
2
2
  export * from './errors';
3
3
  export type * from './types';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,mBAAmB,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,UAAU,CAAA;AACxB,mBAAmB,SAAS,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ERROR_CATALOG } from './codes';
1
+ import { ERROR_CATALOG } from './codes.constants';
2
2
  export type DialecteErrorKey = keyof typeof ERROR_CATALOG;
3
3
  export type DialecteErrorCode = (typeof ERROR_CATALOG)[DialecteErrorKey]['code'];
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/errors/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,aAAa,CAAA;AACzD,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEhF;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAClC,+DA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AAM,GAAG,EAAE,CAAC,CAAA;IACvC;;;OAGG;IACH,GAAG,EAAE,UAAU,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;IACrC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAA;CACb,CAAA;AAED,oEAAoE;AACpE,MAAM,MAAM,wBAAwB,GAAG;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACtC,qDAAqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAA;CACb,CAAA;AAED,6FAA6F;AAC7F,MAAM,MAAM,qBAAqB,CAChC,iBAAiB,SAAS,SAAS,wBAAwB,CAAC,yBAAyB,CAAC,EAAE,IACrF,gBAAgB,GAAG,eAAe,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAA;AAEjE,KAAK,eAAe,CAAC,gBAAgB,IAAI,gBAAgB,SAAS,OAAO,GACtE,MAAM,gBAAgB,GAAG,MAAM,GAC/B,KAAK,CAAA"}
@@ -1,4 +1,4 @@
1
- import { C as e, D as t, E as n, O as r, S as i, W as a, b as o, c as s, d as c, f as l, k as u, l as d, s as f, u as p, w as m, y as h } from "./utils-USNkj4sT.js";
1
+ import { C as e, D as t, E as n, O as r, S as i, W as a, b as o, c as s, d as c, f as l, k as u, l as d, s as f, u as p, w as m, y as h } from "./utils-Cv4oHia0.js";
2
2
  // src/helpers/guard.ts
3
3
  var g = [
4
4
  "id",
package/dist/helpers.js CHANGED
@@ -1,3 +1,3 @@
1
- import { F as e, I as t, L as n, M as r, N as i, P as a, R as o, j as s } from "./utils-USNkj4sT.js";
2
- import { C as c, S as l, _ as u, a as d, b as f, c as p, d as m, f as h, g, h as _, i as v, l as y, m as b, n as x, o as S, p as C, r as w, s as T, t as E, u as D, v as O, w as k, x as A, y as j } from "./helpers-DVShv41E.js";
1
+ import { F as e, I as t, L as n, M as r, N as i, P as a, R as o, j as s } from "./utils-Cv4oHia0.js";
2
+ import { C as c, S as l, _ as u, a as d, b as f, c as p, d as m, f as h, g, h as _, i as v, l as y, m as b, n as x, o as S, p as C, r as w, s as T, t as E, u as D, v as O, w as k, x as A, y as j } from "./helpers-D8p0KiJu.js";
3
3
  export { s as CUSTOM_RECORD_ID_ATTRIBUTE, r as CUSTOM_RECORD_ID_ATTRIBUTE_NAME, i as DIALECTE_DEV_NAMESPACE, a as DIALECTE_NAMESPACES, e as XMLNS_NAMESPACE_URI, t as XMLNS_XSI_NAMESPACE, n as XSD_NAMESPACE_URI, o as XSI_NAMESPACE, p as assertNoFixedViolation, S as assertXsiTypeAdmitted, T as assertXsiTypeChangeLeavesNothing, E as evaluateExpectations, g as isAttributeOf, u as isChildOf, O as isElementOf, j as isFullAttributeArray, f as isParentOf, A as isRawRecord, l as isRecordOf, c as isTrackedRecord, k as isTreeRecord, d as mergeExtensions, x as readAttribute, w as readAttributes, y as standardizeRecord, v as stripAttributes, D as toFullAttributeArray, m as toRawRecord, h as toRef, C as toTrackedRecord, b as toTreeRecord, _ as widen };