@superbee/core 0.2.0-pre.3 → 0.2.0-pre.31

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 (538) hide show
  1. package/README.md +1084 -0
  2. package/dist/artifact-contract.d.ts +90 -0
  3. package/dist/artifact-contract.d.ts.map +1 -0
  4. package/dist/artifact-contract.js +205 -0
  5. package/dist/artifact-contract.js.map +1 -0
  6. package/dist/backend.d.ts +19 -1
  7. package/dist/backend.d.ts.map +1 -1
  8. package/dist/backend.js +83 -36
  9. package/dist/backend.js.map +1 -1
  10. package/dist/blob-contract.d.ts +80 -0
  11. package/dist/blob-contract.d.ts.map +1 -0
  12. package/dist/blob-contract.js +131 -0
  13. package/dist/blob-contract.js.map +1 -0
  14. package/dist/blob-journal.d.ts +302 -0
  15. package/dist/blob-journal.d.ts.map +1 -0
  16. package/dist/blob-journal.js +540 -0
  17. package/dist/blob-journal.js.map +1 -0
  18. package/dist/body-replace-guards.d.ts +52 -0
  19. package/dist/body-replace-guards.d.ts.map +1 -0
  20. package/dist/body-replace-guards.js +176 -0
  21. package/dist/body-replace-guards.js.map +1 -0
  22. package/dist/builtin-recipes/content.d.ts +93 -0
  23. package/dist/builtin-recipes/content.d.ts.map +1 -0
  24. package/dist/builtin-recipes/content.js +288 -0
  25. package/dist/builtin-recipes/content.js.map +1 -0
  26. package/dist/builtin-recipes.d.ts +10 -0
  27. package/dist/builtin-recipes.d.ts.map +1 -0
  28. package/dist/builtin-recipes.js +97 -0
  29. package/dist/builtin-recipes.js.map +1 -0
  30. package/dist/bundle-health/index.d.ts +14 -0
  31. package/dist/bundle-health/index.d.ts.map +1 -0
  32. package/dist/bundle-health/index.js +12 -0
  33. package/dist/bundle-health/index.js.map +1 -0
  34. package/dist/bundle-health/kind-findings.d.ts +44 -0
  35. package/dist/bundle-health/kind-findings.d.ts.map +1 -0
  36. package/dist/bundle-health/kind-findings.js +68 -0
  37. package/dist/bundle-health/kind-findings.js.map +1 -0
  38. package/dist/bundle-health/legacy-page.d.ts +39 -0
  39. package/dist/bundle-health/legacy-page.d.ts.map +1 -0
  40. package/dist/bundle-health/legacy-page.js +50 -0
  41. package/dist/bundle-health/legacy-page.js.map +1 -0
  42. package/dist/bundle-health/report.d.ts +202 -0
  43. package/dist/bundle-health/report.d.ts.map +1 -0
  44. package/dist/bundle-health/report.js +438 -0
  45. package/dist/bundle-health/report.js.map +1 -0
  46. package/dist/bundle-ops.d.ts +1 -1
  47. package/dist/bundle-ops.d.ts.map +1 -1
  48. package/dist/bundle-ops.js +2 -2
  49. package/dist/bundle-ops.js.map +1 -1
  50. package/dist/bundle.d.ts +2 -1
  51. package/dist/bundle.d.ts.map +1 -1
  52. package/dist/bundle.js +3 -3
  53. package/dist/bundle.js.map +1 -1
  54. package/dist/code-point-order.d.ts +8 -0
  55. package/dist/code-point-order.d.ts.map +1 -0
  56. package/dist/code-point-order.js +20 -0
  57. package/dist/code-point-order.js.map +1 -0
  58. package/dist/connector-request.d.ts +87 -0
  59. package/dist/connector-request.d.ts.map +1 -0
  60. package/dist/connector-request.js +370 -0
  61. package/dist/connector-request.js.map +1 -0
  62. package/dist/connectors.d.ts +262 -0
  63. package/dist/connectors.d.ts.map +1 -0
  64. package/dist/connectors.js +1179 -0
  65. package/dist/connectors.js.map +1 -0
  66. package/dist/cross-bundle.d.ts +135 -0
  67. package/dist/cross-bundle.d.ts.map +1 -0
  68. package/dist/cross-bundle.js +186 -0
  69. package/dist/cross-bundle.js.map +1 -0
  70. package/dist/dependencies.d.ts +94 -0
  71. package/dist/dependencies.d.ts.map +1 -0
  72. package/dist/dependencies.js +180 -0
  73. package/dist/dependencies.js.map +1 -0
  74. package/dist/document-codec.d.ts +5 -1
  75. package/dist/document-codec.d.ts.map +1 -1
  76. package/dist/document-codec.js +7 -4
  77. package/dist/document-codec.js.map +1 -1
  78. package/dist/document-field-actions.d.ts +31 -1
  79. package/dist/document-field-actions.d.ts.map +1 -1
  80. package/dist/document-field-actions.js +137 -34
  81. package/dist/document-field-actions.js.map +1 -1
  82. package/dist/document-mutation.d.ts +22 -10
  83. package/dist/document-mutation.d.ts.map +1 -1
  84. package/dist/document-mutation.js +61 -27
  85. package/dist/document-mutation.js.map +1 -1
  86. package/dist/document-write-policy.d.ts.map +1 -1
  87. package/dist/document-write-policy.js +4 -2
  88. package/dist/document-write-policy.js.map +1 -1
  89. package/dist/domain-model.d.ts +73 -0
  90. package/dist/domain-model.d.ts.map +1 -0
  91. package/dist/domain-model.js +169 -0
  92. package/dist/domain-model.js.map +1 -0
  93. package/dist/engine.d.ts +16 -8
  94. package/dist/engine.d.ts.map +1 -1
  95. package/dist/engine.js +42 -4
  96. package/dist/engine.js.map +1 -1
  97. package/dist/file-journaled-backend-internal.d.ts +21 -0
  98. package/dist/file-journaled-backend-internal.d.ts.map +1 -0
  99. package/dist/file-journaled-backend-internal.js +12 -0
  100. package/dist/file-journaled-backend-internal.js.map +1 -0
  101. package/dist/file-journaled-backend.d.ts +160 -0
  102. package/dist/file-journaled-backend.d.ts.map +1 -0
  103. package/dist/file-journaled-backend.js +1345 -0
  104. package/dist/file-journaled-backend.js.map +1 -0
  105. package/dist/filesystem-host.d.ts +15 -0
  106. package/dist/filesystem-host.d.ts.map +1 -0
  107. package/dist/filesystem-host.js +20 -0
  108. package/dist/filesystem-host.js.map +1 -0
  109. package/dist/filesystem-identity.d.ts +86 -4
  110. package/dist/filesystem-identity.d.ts.map +1 -1
  111. package/dist/filesystem-identity.js +338 -102
  112. package/dist/filesystem-identity.js.map +1 -1
  113. package/dist/filesystem-lock.d.ts +16 -3
  114. package/dist/filesystem-lock.d.ts.map +1 -1
  115. package/dist/filesystem-lock.js +323 -77
  116. package/dist/filesystem-lock.js.map +1 -1
  117. package/dist/filesystem-push-role.d.ts +77 -0
  118. package/dist/filesystem-push-role.d.ts.map +1 -0
  119. package/dist/filesystem-push-role.js +165 -0
  120. package/dist/filesystem-push-role.js.map +1 -0
  121. package/dist/filesystem.d.ts +17 -0
  122. package/dist/filesystem.d.ts.map +1 -0
  123. package/dist/filesystem.js +18 -0
  124. package/dist/filesystem.js.map +1 -0
  125. package/dist/governed-body-write.d.ts +106 -0
  126. package/dist/governed-body-write.d.ts.map +1 -0
  127. package/dist/governed-body-write.js +251 -0
  128. package/dist/governed-body-write.js.map +1 -0
  129. package/dist/host-policy-snapshot.d.ts +9 -0
  130. package/dist/host-policy-snapshot.d.ts.map +1 -0
  131. package/dist/host-policy-snapshot.js +33 -0
  132. package/dist/host-policy-snapshot.js.map +1 -0
  133. package/dist/host-text.d.ts +31 -0
  134. package/dist/host-text.d.ts.map +1 -0
  135. package/dist/host-text.js +77 -0
  136. package/dist/host-text.js.map +1 -0
  137. package/dist/hosted-client/binding.d.ts +7 -0
  138. package/dist/hosted-client/binding.d.ts.map +1 -0
  139. package/dist/hosted-client/binding.js +10 -0
  140. package/dist/hosted-client/binding.js.map +1 -0
  141. package/dist/hosted-client/blob-delivery.d.ts +67 -0
  142. package/dist/hosted-client/blob-delivery.d.ts.map +1 -0
  143. package/dist/hosted-client/blob-delivery.js +169 -0
  144. package/dist/hosted-client/blob-delivery.js.map +1 -0
  145. package/dist/hosted-client/blob-write.d.ts +386 -0
  146. package/dist/hosted-client/blob-write.d.ts.map +1 -0
  147. package/dist/hosted-client/blob-write.js +770 -0
  148. package/dist/hosted-client/blob-write.js.map +1 -0
  149. package/dist/hosted-client/bundle-listing.d.ts +46 -0
  150. package/dist/hosted-client/bundle-listing.d.ts.map +1 -0
  151. package/dist/hosted-client/bundle-listing.js +36 -0
  152. package/dist/hosted-client/bundle-listing.js.map +1 -0
  153. package/dist/hosted-client/client.d.ts +219 -0
  154. package/dist/hosted-client/client.d.ts.map +1 -0
  155. package/dist/hosted-client/client.js +309 -0
  156. package/dist/hosted-client/client.js.map +1 -0
  157. package/dist/hosted-client/directory.d.ts +46 -0
  158. package/dist/hosted-client/directory.d.ts.map +1 -0
  159. package/dist/hosted-client/directory.js +74 -0
  160. package/dist/hosted-client/directory.js.map +1 -0
  161. package/dist/hosted-client/errors.d.ts +26 -0
  162. package/dist/hosted-client/errors.d.ts.map +1 -0
  163. package/dist/hosted-client/errors.js +35 -0
  164. package/dist/hosted-client/errors.js.map +1 -0
  165. package/dist/hosted-client/inbox.d.ts +320 -0
  166. package/dist/hosted-client/inbox.d.ts.map +1 -0
  167. package/dist/hosted-client/inbox.js +379 -0
  168. package/dist/hosted-client/inbox.js.map +1 -0
  169. package/dist/hosted-client/index.d.ts +30 -0
  170. package/dist/hosted-client/index.d.ts.map +1 -0
  171. package/dist/hosted-client/index.js +32 -0
  172. package/dist/hosted-client/index.js.map +1 -0
  173. package/dist/hosted-client/journal.d.ts +103 -0
  174. package/dist/hosted-client/journal.d.ts.map +1 -0
  175. package/dist/hosted-client/journal.js +464 -0
  176. package/dist/hosted-client/journal.js.map +1 -0
  177. package/dist/hosted-client/node.d.ts +74 -0
  178. package/dist/hosted-client/node.d.ts.map +1 -0
  179. package/dist/hosted-client/node.js +219 -0
  180. package/dist/hosted-client/node.js.map +1 -0
  181. package/dist/hosted-client/reference.d.ts +12 -0
  182. package/dist/hosted-client/reference.d.ts.map +1 -0
  183. package/dist/hosted-client/reference.js +29 -0
  184. package/dist/hosted-client/reference.js.map +1 -0
  185. package/dist/hosted-client/write.d.ts +217 -0
  186. package/dist/hosted-client/write.d.ts.map +1 -0
  187. package/dist/hosted-client/write.js +418 -0
  188. package/dist/hosted-client/write.js.map +1 -0
  189. package/dist/hosted-transport/answer-rows.d.ts +243 -0
  190. package/dist/hosted-transport/answer-rows.d.ts.map +1 -0
  191. package/dist/hosted-transport/answer-rows.js +454 -0
  192. package/dist/hosted-transport/answer-rows.js.map +1 -0
  193. package/dist/hosted-transport/blob-reads.d.ts +35 -0
  194. package/dist/hosted-transport/blob-reads.d.ts.map +1 -0
  195. package/dist/hosted-transport/blob-reads.js +179 -0
  196. package/dist/hosted-transport/blob-reads.js.map +1 -0
  197. package/dist/hosted-transport/blob-write.d.ts +34 -0
  198. package/dist/hosted-transport/blob-write.d.ts.map +1 -0
  199. package/dist/hosted-transport/blob-write.js +115 -0
  200. package/dist/hosted-transport/blob-write.js.map +1 -0
  201. package/dist/hosted-transport/carrier.d.ts +151 -0
  202. package/dist/hosted-transport/carrier.d.ts.map +1 -0
  203. package/dist/hosted-transport/carrier.js +260 -0
  204. package/dist/hosted-transport/carrier.js.map +1 -0
  205. package/dist/hosted-transport/history-pages.d.ts +55 -0
  206. package/dist/hosted-transport/history-pages.d.ts.map +1 -0
  207. package/dist/hosted-transport/history-pages.js +69 -0
  208. package/dist/hosted-transport/history-pages.js.map +1 -0
  209. package/dist/hosted-transport/index.d.ts +18 -0
  210. package/dist/hosted-transport/index.d.ts.map +1 -0
  211. package/dist/hosted-transport/index.js +18 -0
  212. package/dist/hosted-transport/index.js.map +1 -0
  213. package/dist/hosted-transport/operations.d.ts +85 -0
  214. package/dist/hosted-transport/operations.d.ts.map +1 -0
  215. package/dist/hosted-transport/operations.js +128 -0
  216. package/dist/hosted-transport/operations.js.map +1 -0
  217. package/dist/hosted-transport/paged-reads.d.ts +87 -0
  218. package/dist/hosted-transport/paged-reads.d.ts.map +1 -0
  219. package/dist/hosted-transport/paged-reads.js +238 -0
  220. package/dist/hosted-transport/paged-reads.js.map +1 -0
  221. package/dist/hosted-transport/read-adapter.d.ts +256 -0
  222. package/dist/hosted-transport/read-adapter.d.ts.map +1 -0
  223. package/dist/hosted-transport/read-adapter.js +568 -0
  224. package/dist/hosted-transport/read-adapter.js.map +1 -0
  225. package/dist/hosted-transport/root-write.d.ts +114 -0
  226. package/dist/hosted-transport/root-write.d.ts.map +1 -0
  227. package/dist/hosted-transport/root-write.js +171 -0
  228. package/dist/hosted-transport/root-write.js.map +1 -0
  229. package/dist/hosted-transport/whole-document-transport.d.ts +204 -0
  230. package/dist/hosted-transport/whole-document-transport.d.ts.map +1 -0
  231. package/dist/hosted-transport/whole-document-transport.js +447 -0
  232. package/dist/hosted-transport/whole-document-transport.js.map +1 -0
  233. package/dist/index.d.ts +34 -10
  234. package/dist/index.d.ts.map +1 -1
  235. package/dist/index.js +26 -8
  236. package/dist/index.js.map +1 -1
  237. package/dist/indexeddb-backend.d.ts +28 -37
  238. package/dist/indexeddb-backend.d.ts.map +1 -1
  239. package/dist/indexeddb-backend.js +467 -113
  240. package/dist/indexeddb-backend.js.map +1 -1
  241. package/dist/journaled-backend.d.ts +232 -15
  242. package/dist/journaled-backend.d.ts.map +1 -1
  243. package/dist/journaled-backend.js +254 -55
  244. package/dist/journaled-backend.js.map +1 -1
  245. package/dist/kind-authoring.d.ts +170 -0
  246. package/dist/kind-authoring.d.ts.map +1 -0
  247. package/dist/kind-authoring.js +451 -0
  248. package/dist/kind-authoring.js.map +1 -0
  249. package/dist/kind-conformance-error.d.ts +15 -0
  250. package/dist/kind-conformance-error.d.ts.map +1 -0
  251. package/dist/kind-conformance-error.js +20 -0
  252. package/dist/kind-conformance-error.js.map +1 -0
  253. package/dist/kind-coverage.d.ts +99 -0
  254. package/dist/kind-coverage.d.ts.map +1 -0
  255. package/dist/kind-coverage.js +186 -0
  256. package/dist/kind-coverage.js.map +1 -0
  257. package/dist/kind-field-mutation.d.ts +4 -0
  258. package/dist/kind-field-mutation.d.ts.map +1 -1
  259. package/dist/kind-field-mutation.js +28 -3
  260. package/dist/kind-field-mutation.js.map +1 -1
  261. package/dist/kinds-load.js +4 -4
  262. package/dist/kinds-load.js.map +1 -1
  263. package/dist/kinds.d.ts +65 -2
  264. package/dist/kinds.d.ts.map +1 -1
  265. package/dist/kinds.js +341 -21
  266. package/dist/kinds.js.map +1 -1
  267. package/dist/link-types.d.ts +26 -0
  268. package/dist/link-types.d.ts.map +1 -0
  269. package/dist/link-types.js +57 -0
  270. package/dist/link-types.js.map +1 -0
  271. package/dist/links.d.ts +21 -3
  272. package/dist/links.d.ts.map +1 -1
  273. package/dist/links.js +213 -14
  274. package/dist/links.js.map +1 -1
  275. package/dist/managed-document-metadata.d.ts +2 -0
  276. package/dist/managed-document-metadata.d.ts.map +1 -0
  277. package/dist/managed-document-metadata.js +9 -0
  278. package/dist/managed-document-metadata.js.map +1 -0
  279. package/dist/memory-backend.d.ts.map +1 -1
  280. package/dist/memory-backend.js +6 -2
  281. package/dist/memory-backend.js.map +1 -1
  282. package/dist/paths.d.ts +16 -0
  283. package/dist/paths.d.ts.map +1 -1
  284. package/dist/paths.js +25 -0
  285. package/dist/paths.js.map +1 -1
  286. package/dist/platform.d.ts +13 -2
  287. package/dist/platform.d.ts.map +1 -1
  288. package/dist/platform.js +16 -0
  289. package/dist/platform.js.map +1 -1
  290. package/dist/portable-export.d.ts +119 -0
  291. package/dist/portable-export.d.ts.map +1 -0
  292. package/dist/portable-export.js +501 -0
  293. package/dist/portable-export.js.map +1 -0
  294. package/dist/publication-filesystem.d.ts +1 -1
  295. package/dist/publication-filesystem.d.ts.map +1 -1
  296. package/dist/publication-filesystem.js +1 -1
  297. package/dist/publication-filesystem.js.map +1 -1
  298. package/dist/qualified-links.d.ts +67 -0
  299. package/dist/qualified-links.d.ts.map +1 -0
  300. package/dist/qualified-links.js +117 -0
  301. package/dist/qualified-links.js.map +1 -0
  302. package/dist/query-filter.d.ts +16 -2
  303. package/dist/query-filter.d.ts.map +1 -1
  304. package/dist/query-filter.js +40 -1
  305. package/dist/query-filter.js.map +1 -1
  306. package/dist/query-order.d.ts +22 -0
  307. package/dist/query-order.d.ts.map +1 -0
  308. package/dist/query-order.js +42 -0
  309. package/dist/query-order.js.map +1 -0
  310. package/dist/recipe-lifecycle/errors.d.ts +96 -0
  311. package/dist/recipe-lifecycle/errors.d.ts.map +1 -0
  312. package/dist/recipe-lifecycle/errors.js +122 -0
  313. package/dist/recipe-lifecycle/errors.js.map +1 -0
  314. package/dist/recipe-lifecycle/evolution.d.ts +112 -0
  315. package/dist/recipe-lifecycle/evolution.d.ts.map +1 -0
  316. package/dist/recipe-lifecycle/evolution.js +941 -0
  317. package/dist/recipe-lifecycle/evolution.js.map +1 -0
  318. package/dist/recipe-lifecycle/index.d.ts +30 -0
  319. package/dist/recipe-lifecycle/index.d.ts.map +1 -0
  320. package/dist/recipe-lifecycle/index.js +26 -0
  321. package/dist/recipe-lifecycle/index.js.map +1 -0
  322. package/dist/recipe-lifecycle/install.d.ts +155 -0
  323. package/dist/recipe-lifecycle/install.d.ts.map +1 -0
  324. package/dist/recipe-lifecycle/install.js +594 -0
  325. package/dist/recipe-lifecycle/install.js.map +1 -0
  326. package/dist/recipe-lifecycle/legacy-aliases.d.ts +16 -0
  327. package/dist/recipe-lifecycle/legacy-aliases.d.ts.map +1 -0
  328. package/dist/recipe-lifecycle/legacy-aliases.js +51 -0
  329. package/dist/recipe-lifecycle/legacy-aliases.js.map +1 -0
  330. package/dist/recipe-lifecycle/stamp.d.ts +151 -0
  331. package/dist/recipe-lifecycle/stamp.d.ts.map +1 -0
  332. package/dist/recipe-lifecycle/stamp.js +364 -0
  333. package/dist/recipe-lifecycle/stamp.js.map +1 -0
  334. package/dist/recipe-set-preflight.d.ts +139 -0
  335. package/dist/recipe-set-preflight.d.ts.map +1 -0
  336. package/dist/recipe-set-preflight.js +536 -0
  337. package/dist/recipe-set-preflight.js.map +1 -0
  338. package/dist/recipes.d.ts +29 -1
  339. package/dist/recipes.d.ts.map +1 -1
  340. package/dist/recipes.js +137 -1
  341. package/dist/recipes.js.map +1 -1
  342. package/dist/record-overlay/apply.d.ts +43 -0
  343. package/dist/record-overlay/apply.d.ts.map +1 -0
  344. package/dist/record-overlay/apply.js +527 -0
  345. package/dist/record-overlay/apply.js.map +1 -0
  346. package/dist/record-overlay/canonical.d.ts +22 -0
  347. package/dist/record-overlay/canonical.d.ts.map +1 -0
  348. package/dist/record-overlay/canonical.js +47 -0
  349. package/dist/record-overlay/canonical.js.map +1 -0
  350. package/dist/record-overlay/digest.d.ts +4 -0
  351. package/dist/record-overlay/digest.d.ts.map +1 -0
  352. package/dist/record-overlay/digest.js +11 -0
  353. package/dist/record-overlay/digest.js.map +1 -0
  354. package/dist/record-overlay/errors.d.ts +44 -0
  355. package/dist/record-overlay/errors.d.ts.map +1 -0
  356. package/dist/record-overlay/errors.js +55 -0
  357. package/dist/record-overlay/errors.js.map +1 -0
  358. package/dist/record-overlay/findings.d.ts +5 -0
  359. package/dist/record-overlay/findings.d.ts.map +1 -0
  360. package/dist/record-overlay/findings.js +83 -0
  361. package/dist/record-overlay/findings.js.map +1 -0
  362. package/dist/record-overlay/index.d.ts +23 -0
  363. package/dist/record-overlay/index.d.ts.map +1 -0
  364. package/dist/record-overlay/index.js +21 -0
  365. package/dist/record-overlay/index.js.map +1 -0
  366. package/dist/record-overlay/plan.d.ts +12 -0
  367. package/dist/record-overlay/plan.d.ts.map +1 -0
  368. package/dist/record-overlay/plan.js +285 -0
  369. package/dist/record-overlay/plan.js.map +1 -0
  370. package/dist/record-overlay/policy.d.ts +69 -0
  371. package/dist/record-overlay/policy.d.ts.map +1 -0
  372. package/dist/record-overlay/policy.js +228 -0
  373. package/dist/record-overlay/policy.js.map +1 -0
  374. package/dist/record-overlay/redact.d.ts +3 -0
  375. package/dist/record-overlay/redact.d.ts.map +1 -0
  376. package/dist/record-overlay/redact.js +27 -0
  377. package/dist/record-overlay/redact.js.map +1 -0
  378. package/dist/record-overlay/signal-kind.d.ts +30 -0
  379. package/dist/record-overlay/signal-kind.d.ts.map +1 -0
  380. package/dist/record-overlay/signal-kind.js +38 -0
  381. package/dist/record-overlay/signal-kind.js.map +1 -0
  382. package/dist/record-overlay/signal-text.d.ts +45 -0
  383. package/dist/record-overlay/signal-text.d.ts.map +1 -0
  384. package/dist/record-overlay/signal-text.js +116 -0
  385. package/dist/record-overlay/signal-text.js.map +1 -0
  386. package/dist/record-overlay/source-index.d.ts +19 -0
  387. package/dist/record-overlay/source-index.d.ts.map +1 -0
  388. package/dist/record-overlay/source-index.js +102 -0
  389. package/dist/record-overlay/source-index.js.map +1 -0
  390. package/dist/record-overlay/types.d.ts +291 -0
  391. package/dist/record-overlay/types.d.ts.map +1 -0
  392. package/dist/record-overlay/types.js +2 -0
  393. package/dist/record-overlay/types.js.map +1 -0
  394. package/dist/remote-backend.d.ts +67 -67
  395. package/dist/remote-backend.d.ts.map +1 -1
  396. package/dist/remote-backend.js +168 -201
  397. package/dist/remote-backend.js.map +1 -1
  398. package/dist/remote-document-codec.d.ts +2 -1
  399. package/dist/remote-document-codec.d.ts.map +1 -1
  400. package/dist/remote-document-codec.js +3 -2
  401. package/dist/remote-document-codec.js.map +1 -1
  402. package/dist/remote-error.d.ts +38 -0
  403. package/dist/remote-error.d.ts.map +1 -0
  404. package/dist/remote-error.js +59 -0
  405. package/dist/remote-error.js.map +1 -0
  406. package/dist/remote-operations.d.ts +0 -40
  407. package/dist/remote-operations.d.ts.map +1 -1
  408. package/dist/remote-operations.js +26 -6
  409. package/dist/remote-operations.js.map +1 -1
  410. package/dist/remote-parsers.d.ts +86 -0
  411. package/dist/remote-parsers.d.ts.map +1 -0
  412. package/dist/remote-parsers.js +181 -0
  413. package/dist/remote-parsers.js.map +1 -0
  414. package/dist/remote.d.ts +5 -2
  415. package/dist/remote.d.ts.map +1 -1
  416. package/dist/remote.js +5 -1
  417. package/dist/remote.js.map +1 -1
  418. package/dist/search/backend-source.d.ts +6 -0
  419. package/dist/search/backend-source.d.ts.map +1 -0
  420. package/dist/search/backend-source.js +33 -0
  421. package/dist/search/backend-source.js.map +1 -0
  422. package/dist/search/contract.d.ts +151 -0
  423. package/dist/search/contract.d.ts.map +1 -0
  424. package/dist/search/contract.js +78 -0
  425. package/dist/search/contract.js.map +1 -0
  426. package/dist/search/errors.d.ts +30 -0
  427. package/dist/search/errors.d.ts.map +1 -0
  428. package/dist/search/errors.js +50 -0
  429. package/dist/search/errors.js.map +1 -0
  430. package/dist/search/identity.d.ts +12 -0
  431. package/dist/search/identity.d.ts.map +1 -0
  432. package/dist/search/identity.js +90 -0
  433. package/dist/search/identity.js.map +1 -0
  434. package/dist/search/index.d.ts +16 -0
  435. package/dist/search/index.d.ts.map +1 -0
  436. package/dist/search/index.js +15 -0
  437. package/dist/search/index.js.map +1 -0
  438. package/dist/search/memory-source.d.ts +36 -0
  439. package/dist/search/memory-source.d.ts.map +1 -0
  440. package/dist/search/memory-source.js +235 -0
  441. package/dist/search/memory-source.js.map +1 -0
  442. package/dist/search/rank.d.ts +34 -0
  443. package/dist/search/rank.d.ts.map +1 -0
  444. package/dist/search/rank.js +129 -0
  445. package/dist/search/rank.js.map +1 -0
  446. package/dist/search/row-text.d.ts +38 -0
  447. package/dist/search/row-text.d.ts.map +1 -0
  448. package/dist/search/row-text.js +88 -0
  449. package/dist/search/row-text.js.map +1 -0
  450. package/dist/search/search.d.ts +28 -0
  451. package/dist/search/search.d.ts.map +1 -0
  452. package/dist/search/search.js +257 -0
  453. package/dist/search/search.js.map +1 -0
  454. package/dist/search/source.d.ts +67 -0
  455. package/dist/search/source.d.ts.map +1 -0
  456. package/dist/search/source.js +2 -0
  457. package/dist/search/source.js.map +1 -0
  458. package/dist/search/text.d.ts +47 -0
  459. package/dist/search/text.d.ts.map +1 -0
  460. package/dist/search/text.js +150 -0
  461. package/dist/search/text.js.map +1 -0
  462. package/dist/site-capabilities.d.ts +345 -0
  463. package/dist/site-capabilities.d.ts.map +1 -0
  464. package/dist/site-capabilities.js +724 -0
  465. package/dist/site-capabilities.js.map +1 -0
  466. package/dist/source-engine/guard.d.ts +78 -0
  467. package/dist/source-engine/guard.d.ts.map +1 -0
  468. package/dist/source-engine/guard.js +423 -0
  469. package/dist/source-engine/guard.js.map +1 -0
  470. package/dist/source-engine/index.d.ts +26 -0
  471. package/dist/source-engine/index.d.ts.map +1 -0
  472. package/dist/source-engine/index.js +21 -0
  473. package/dist/source-engine/index.js.map +1 -0
  474. package/dist/source-engine/machine-state.d.ts +74 -0
  475. package/dist/source-engine/machine-state.d.ts.map +1 -0
  476. package/dist/source-engine/machine-state.js +48 -0
  477. package/dist/source-engine/machine-state.js.map +1 -0
  478. package/dist/source-engine/observe.d.ts +18 -0
  479. package/dist/source-engine/observe.d.ts.map +1 -0
  480. package/dist/source-engine/observe.js +620 -0
  481. package/dist/source-engine/observe.js.map +1 -0
  482. package/dist/source-engine/overlay.d.ts +49 -0
  483. package/dist/source-engine/overlay.d.ts.map +1 -0
  484. package/dist/source-engine/overlay.js +114 -0
  485. package/dist/source-engine/overlay.js.map +1 -0
  486. package/dist/source-engine/robots.d.ts +53 -0
  487. package/dist/source-engine/robots.d.ts.map +1 -0
  488. package/dist/source-engine/robots.js +158 -0
  489. package/dist/source-engine/robots.js.map +1 -0
  490. package/dist/source-engine/types.d.ts +287 -0
  491. package/dist/source-engine/types.d.ts.map +1 -0
  492. package/dist/source-engine/types.js +2 -0
  493. package/dist/source-engine/types.js.map +1 -0
  494. package/dist/source-harness/conformance.d.ts +16 -0
  495. package/dist/source-harness/conformance.d.ts.map +1 -0
  496. package/dist/source-harness/conformance.js +266 -0
  497. package/dist/source-harness/conformance.js.map +1 -0
  498. package/dist/source-harness/fixture.d.ts +95 -0
  499. package/dist/source-harness/fixture.d.ts.map +1 -0
  500. package/dist/source-harness/fixture.js +273 -0
  501. package/dist/source-harness/fixture.js.map +1 -0
  502. package/dist/source-harness/index.d.ts +22 -0
  503. package/dist/source-harness/index.d.ts.map +1 -0
  504. package/dist/source-harness/index.js +19 -0
  505. package/dist/source-harness/index.js.map +1 -0
  506. package/dist/source-harness/peer.d.ts +74 -0
  507. package/dist/source-harness/peer.d.ts.map +1 -0
  508. package/dist/source-harness/peer.js +106 -0
  509. package/dist/source-harness/peer.js.map +1 -0
  510. package/dist/source-profiles/index.d.ts +31 -0
  511. package/dist/source-profiles/index.d.ts.map +1 -0
  512. package/dist/source-profiles/index.js +206 -0
  513. package/dist/source-profiles/index.js.map +1 -0
  514. package/dist/source-profiles/link-header.d.ts +6 -0
  515. package/dist/source-profiles/link-header.d.ts.map +1 -0
  516. package/dist/source-profiles/link-header.js +131 -0
  517. package/dist/source-profiles/link-header.js.map +1 -0
  518. package/dist/storage.d.ts +6 -2
  519. package/dist/storage.d.ts.map +1 -1
  520. package/dist/storage.js +4 -1
  521. package/dist/storage.js.map +1 -1
  522. package/dist/types.d.ts +38 -5
  523. package/dist/types.d.ts.map +1 -1
  524. package/dist/types.js +0 -10
  525. package/dist/types.js.map +1 -1
  526. package/dist/uncertain-write.d.ts +161 -19
  527. package/dist/uncertain-write.d.ts.map +1 -1
  528. package/dist/uncertain-write.js +90 -31
  529. package/dist/uncertain-write.js.map +1 -1
  530. package/dist/versioning.d.ts +9 -4
  531. package/dist/versioning.d.ts.map +1 -1
  532. package/dist/versioning.js +9 -4
  533. package/dist/versioning.js.map +1 -1
  534. package/dist/write-identity.d.ts +5 -0
  535. package/dist/write-identity.d.ts.map +1 -0
  536. package/dist/write-identity.js +9 -0
  537. package/dist/write-identity.js.map +1 -0
  538. package/package.json +107 -2
@@ -0,0 +1,302 @@
1
+ /** File-journal optional ordinary-file admission. Frozen payloads are data, never authority:
2
+ * a dispatcher must compare their scope with its current trusted context before delivery. */
3
+ import { type BlobWriteExpected, type BlobWriteResult, type BlobHead } from "./blob-contract.js";
4
+ import { JournalGuardConflict, type MetaExpectation, type MetaRecord } from "./journaled-backend.js";
5
+ import type { OperationState } from "./uncertain-write.js";
6
+ export { isWriteRequestId } from "./write-identity.js";
7
+ export declare const BLOB_JOURNAL_BOUNDS: Readonly<{
8
+ rawBytes: number;
9
+ preparedBytes: number;
10
+ /** The file codec checks the actual tagged encoding, not an estimate of JSON text. */
11
+ terminalReceiptBytes: number;
12
+ settlementStructureBytes: number;
13
+ /** Aggregate encoded metadata growth ordinarily needed for the settled byte+MIME baseline. */
14
+ baselineBytes: number;
15
+ }>;
16
+ export interface BlobTargetScope {
17
+ origin: string;
18
+ prefix: string;
19
+ bundleId: string;
20
+ workspaceSlug: string | null;
21
+ }
22
+ export interface BlobPreparedInput {
23
+ scope: BlobTargetScope;
24
+ intent: BlobWriteExpected;
25
+ identity: {
26
+ requestId: string;
27
+ binding: string;
28
+ via?: string;
29
+ };
30
+ createdAt: string;
31
+ }
32
+ export interface PreparedBlobIntent extends BlobPreparedInput {
33
+ schemaVersion: 1;
34
+ bytesBase64?: string;
35
+ }
36
+ export type BlobReceipt = {
37
+ scope: BlobTargetScope;
38
+ result: Extract<BlobWriteResult, {
39
+ ok: true;
40
+ }>;
41
+ head: BlobHead | null;
42
+ removed?: BlobHead;
43
+ } | {
44
+ scope: BlobTargetScope;
45
+ result: Extract<BlobWriteResult, {
46
+ ok: false;
47
+ }>;
48
+ };
49
+ export interface BlobDeletionHold {
50
+ deletions: number;
51
+ baseline: number;
52
+ }
53
+ /** Bounded diagnostics, never acceptance or a terminal receipt. */
54
+ export declare function captureBlobDeletionHold(value: BlobDeletionHold): BlobDeletionHold;
55
+ /**
56
+ * Why a claimed attempt is proven never to have left the process. Only for this invocation's own
57
+ * claim, made through the same open journal, and only for a failure before the carrier is invoked
58
+ * (credentials, an already-aborted signal, a malformed identity, a local precondition) or the
59
+ * carrier's own `denied`, which by its contract means nothing left. Any other carrier or transport
60
+ * failure, and any claim found at open, may have been sent: that is `unknown`.
61
+ */
62
+ export declare const BLOB_NOT_DISPATCHED_CODES: readonly ["credentials_unavailable", "credentials_denied", "aborted", "invalid_identity", "precondition_failed"];
63
+ export type BlobNotDispatchedCode = (typeof BLOB_NOT_DISPATCHED_CODES)[number];
64
+ export interface BlobNotDispatched {
65
+ code: BlobNotDispatchedCode;
66
+ }
67
+ export declare function captureBlobNotDispatched(value: BlobNotDispatched): BlobNotDispatched;
68
+ /** Typed proof that the latest claimed attempt was not applied. A deletion hold is the host's
69
+ * `428 deletions_held`; not-dispatched is a local failure before any request left. */
70
+ export type BlobNonExecution = ({
71
+ kind: "deletion_hold";
72
+ } & BlobDeletionHold) | ({
73
+ kind: "not_dispatched";
74
+ } & BlobNotDispatched);
75
+ export interface BlobIntentRecord {
76
+ recordFamily: "blob";
77
+ requestId: string;
78
+ target: string;
79
+ /** The ONE canonical frozen payload, including raw bytes when this is a create/replace. */
80
+ prepared: string;
81
+ sequence: number;
82
+ attempts: number;
83
+ state: OperationState;
84
+ updatedAt: string;
85
+ receipt?: BlobReceipt;
86
+ /** Proven non-execution for every attempt through this count; omitted means zero. */
87
+ notAppliedThrough?: number;
88
+ deletionHold?: BlobDeletionHold;
89
+ /** The latest not-dispatched evidence inside the prefix; absent in records written before it existed. */
90
+ notDispatched?: BlobNotDispatched;
91
+ }
92
+ export interface BlobJournalGuard {
93
+ key: string;
94
+ intents: BlobIntentRecord[];
95
+ meta: {
96
+ key: string;
97
+ expected: MetaExpectation;
98
+ }[];
99
+ }
100
+ export interface BlobJournalRead {
101
+ key: string;
102
+ intents: BlobIntentRecord[];
103
+ meta: Map<string, unknown>;
104
+ guard: BlobJournalGuard;
105
+ }
106
+ export interface BlobJournalMutationOptions {
107
+ guard: BlobJournalGuard;
108
+ meta?: MetaRecord[];
109
+ removeMeta?: string[];
110
+ }
111
+ export interface BlobIntentPatch {
112
+ state?: OperationState;
113
+ attempts?: number;
114
+ receipt?: BlobReceipt;
115
+ notAppliedThrough?: number;
116
+ deletionHold?: BlobDeletionHold;
117
+ notDispatched?: BlobNotDispatched;
118
+ }
119
+ /** Admission options. `unsettled` names, exactly, the receipt-less intents on the same bundle and
120
+ * key that this admission knowingly stands beside; without it such an intent refuses admission. */
121
+ export interface BlobAdmitOptions extends BlobJournalMutationOptions {
122
+ unsettled?: readonly BlobIntentRecord[];
123
+ }
124
+ export interface BlobJournaledBackend {
125
+ /** Optional file-only atomic metadata mutation under the complete same-key/named-meta guard. */
126
+ writeBlobMeta?(key: string, changes: Pick<BlobJournalMutationOptions, "meta" | "removeMeta">, options: {
127
+ guard: BlobJournalGuard;
128
+ }): Promise<void>;
129
+ readBlobWithJournal(key: string, options?: {
130
+ meta?: readonly string[];
131
+ }): Promise<BlobJournalRead>;
132
+ admitPreparedBlob(prepared: string, options: BlobAdmitOptions): Promise<BlobIntentRecord>;
133
+ listBlobIntents(state?: OperationState | readonly OperationState[]): Promise<BlobIntentRecord[]>;
134
+ readBlobIntent(requestId: string): Promise<BlobIntentRecord | undefined>;
135
+ updateBlobIntent(requestId: string, expectedState: OperationState, patch: BlobIntentPatch, options: BlobJournalMutationOptions): Promise<BlobIntentRecord>;
136
+ retireBlobIntents(key: string, requestIds: readonly string[], options: BlobJournalMutationOptions): Promise<void>;
137
+ /**
138
+ * Remove one receipt-less `unknown` intent on the guard's key, on the caller's own evidence that
139
+ * its identity is absent on the host. Not a receipt: an earlier delivery may still commit, and
140
+ * the host's compare-and-swap is what keeps that from losing an update. Optional, so a journal
141
+ * written before it existed still satisfies the interface.
142
+ */
143
+ forgetBlobIntent?(requestId: string, options: BlobJournalMutationOptions): Promise<void>;
144
+ }
145
+ export declare function prepareBlobIntent(input: BlobPreparedInput, bytes?: Uint8Array): string;
146
+ export declare function decodePreparedBlobIntent(payload: string): PreparedBlobIntent;
147
+ export declare function blobReceipt(prepared: string, raw: unknown): BlobReceipt;
148
+ export declare function captureBlobIntentRecord(value: BlobIntentRecord): BlobIntentRecord;
149
+ export declare function captureBlobJournalGuard(value: BlobJournalGuard): BlobJournalGuard;
150
+ export declare function assertBlobJournalGuard(expected: BlobJournalGuard, actual: BlobJournalGuard): void;
151
+ export declare function captureBlobMutationOptions(options: BlobJournalMutationOptions): BlobJournalMutationOptions;
152
+ /** Admission refused: an unsettled intent on the same bundle and key was not named as a premise. */
153
+ export declare class BlobAdmissionConflict extends JournalGuardConflict {
154
+ readonly unsettled: readonly string[];
155
+ constructor(key: string, unsettled: readonly string[]);
156
+ }
157
+ /** The committed state a decision reads. A backend answers from one consistent snapshot. */
158
+ export interface BlobJournalView {
159
+ /** Every blob intent whose target is `key`, any bundle. */
160
+ blobIntentsFor(key: string): readonly BlobIntentRecord[];
161
+ /** The blob intent with this id, or undefined (also when another record family holds the id). */
162
+ blobIntent(requestId: string): BlobIntentRecord | undefined;
163
+ /** The state of whatever intent, of any family, holds this id; null when none does. */
164
+ intentState(requestId: string): OperationState | null;
165
+ meta(key: string): MetaExpectation;
166
+ readonly sequence: number;
167
+ /** Whether this open journal handle itself made the claim that brought `requestId` to exactly
168
+ * `attempts`. A claim found at open belongs to a process that may have sent it. */
169
+ claimedInThisSession(requestId: string, attempts: number): boolean;
170
+ }
171
+ /** What a backend persists atomically for one decided verb. */
172
+ export interface BlobJournalDecision<T> {
173
+ result: T;
174
+ /** Intent puts (value) and removals (null), keyed by request id. */
175
+ intents: {
176
+ requestId: string;
177
+ value: BlobIntentRecord | null;
178
+ }[];
179
+ sequence?: number;
180
+ meta: MetaRecord[];
181
+ removeMeta: string[];
182
+ /** After the decision commits: record this handle's claim at `claimed` attempts, or clear it (null). */
183
+ session?: {
184
+ requestId: string;
185
+ claimed: number | null;
186
+ };
187
+ }
188
+ export interface CapturedBlobAdmission {
189
+ prepared: string;
190
+ decoded: PreparedBlobIntent;
191
+ options: BlobJournalMutationOptions;
192
+ unsettled?: BlobIntentRecord[];
193
+ }
194
+ export interface CapturedBlobUpdate {
195
+ requestId: string;
196
+ expectedState: OperationState;
197
+ patch: BlobIntentPatch;
198
+ options: BlobJournalMutationOptions;
199
+ }
200
+ export interface CapturedBlobRetirement {
201
+ key: string;
202
+ requestIds: string[];
203
+ options: BlobJournalMutationOptions;
204
+ }
205
+ export interface CapturedBlobMetaWrite {
206
+ key: string;
207
+ options: BlobJournalMutationOptions;
208
+ }
209
+ /** The guard must equal the complete same-key intent set and every named meta premise. */
210
+ export declare function assertBlobGuardMatches(view: BlobJournalView, guard: BlobJournalGuard): void;
211
+ /**
212
+ * Whether `key` names an ordinary file a blob write may change: a safe blob key that is not a
213
+ * reserved file and does not sit under one of Superbee's own record folders (compared
214
+ * case-insensitively, under compatibility folding, as a case-insensitive file system would).
215
+ * The one key policy for every blob writer: the hosted client and the CLI's checkout sync.
216
+ */
217
+ export declare function isOrdinaryBlobKey(key: unknown): key is string;
218
+ /** Pre-admit checks a caller runs before durably admitting, against the bound the host advertised.
219
+ * Failing any of these after a claim would strand an attempt that never left. */
220
+ export type BlobAdmissionCheck = {
221
+ ok: true;
222
+ } | {
223
+ ok: false;
224
+ code: "invalid_input";
225
+ reason: "unsafe_key" | "protected_key" | "invalid_content_type" | "invalid_expected_content_type" | "bytes_with_delete" | "missing_bytes" | "too_large" | "invalid_bound";
226
+ message: string;
227
+ };
228
+ export declare function checkBlobAdmission(input: {
229
+ operation: "create" | "replace" | "delete";
230
+ key: unknown;
231
+ contentType?: unknown;
232
+ expectedContentType?: unknown;
233
+ byteLength?: number;
234
+ maximumBytes?: number | null;
235
+ }): BlobAdmissionCheck;
236
+ /** One unsettled intent per (bundle, key): every receipt-less same-bundle intent on the key must be
237
+ * named, exactly, in `unsettled`. Other bundles on the same key never block. */
238
+ export declare function assertBlobSameKeyAdmission(existing: readonly BlobIntentRecord[], prepared: PreparedBlobIntent, unsettled?: readonly BlobIntentRecord[]): void;
239
+ export declare function captureBlobAdmission(prepared: string, options: BlobAdmitOptions): CapturedBlobAdmission;
240
+ export declare function decideBlobAdmission(view: BlobJournalView, admission: CapturedBlobAdmission, now: string): BlobJournalDecision<BlobIntentRecord>;
241
+ export declare function captureBlobUpdate(requestId: string, expectedState: OperationState, patch: BlobIntentPatch, options: BlobJournalMutationOptions): CapturedBlobUpdate;
242
+ /**
243
+ * The single claim/settle/non-execution rule. A claim consumes exactly one eligibility (`pending` or
244
+ * `unknown`, every earlier attempt proven not applied) before any wire operation. Proof of
245
+ * non-execution extends the prefix by exactly the claimed attempt and returns the record to
246
+ * `pending`: a deletion hold from `in_flight` or `unknown`, not-dispatched only from an `in_flight`
247
+ * claim this journal handle made at exactly the current attempt (`claimedHere`).
248
+ * A receipt freezes the record. Anything else may not touch the counters or the evidence.
249
+ */
250
+ export declare function nextBlobIntentRecord(current: BlobIntentRecord | undefined, update: Pick<CapturedBlobUpdate, "requestId" | "expectedState" | "patch">, guardKey: string, now: string, options?: {
251
+ checkRecord?: (next: BlobIntentRecord) => void;
252
+ claimedHere?: boolean;
253
+ }): BlobIntentRecord;
254
+ export declare function decideBlobUpdate(view: BlobJournalView, update: CapturedBlobUpdate, now: string, checkRecord?: (next: BlobIntentRecord) => void): BlobJournalDecision<BlobIntentRecord>;
255
+ /** The patch that records typed non-execution of the latest claimed attempt. `not_dispatched` is
256
+ * only for this invocation's own claim, before the carrier is invoked or refused by it as `denied`;
257
+ * the journal refuses it for a claim it did not make in this session. Any other carrier or
258
+ * transport failure is `unknown`, never this. */
259
+ export declare function blobNonExecutionPatch(current: BlobIntentRecord, reason: BlobNonExecution): BlobIntentPatch;
260
+ /** Fresh submission is allowed only while every earlier attempt is proven not applied. */
261
+ export declare function blobIntentResendable(row: BlobIntentRecord): boolean;
262
+ export declare function captureBlobRetirement(key: string, requestIds: readonly string[], options: BlobJournalMutationOptions): CapturedBlobRetirement;
263
+ /** Only terminal records with their receipt retire, and only together with their key's guard. */
264
+ export declare function decideBlobRetirement(view: BlobJournalView, retirement: CapturedBlobRetirement): BlobJournalDecision<void>;
265
+ export interface CapturedBlobForget {
266
+ requestId: string;
267
+ options: BlobJournalMutationOptions;
268
+ }
269
+ export declare function captureBlobForget(requestId: string, options: BlobJournalMutationOptions): CapturedBlobForget;
270
+ /** Only an `unknown`, receipt-less intent whose latest attempt is not proven unapplied may be forgotten. */
271
+ export declare function decideBlobForget(view: BlobJournalView, forget: CapturedBlobForget): BlobJournalDecision<void>;
272
+ export declare function captureBlobMetaWrite(key: string, changes: Pick<BlobJournalMutationOptions, "meta" | "removeMeta">, options: {
273
+ guard: BlobJournalGuard;
274
+ }): CapturedBlobMetaWrite;
275
+ export declare function decideBlobMetaWrite(view: BlobJournalView, write: CapturedBlobMetaWrite): BlobJournalDecision<void>;
276
+ /** A same-key read and the complete guard a later mutation must present. Values are copies. */
277
+ export declare function readBlobJournal(view: BlobJournalView, key: string, options?: {
278
+ meta?: readonly string[];
279
+ }): BlobJournalRead;
280
+ export interface MemoryBlobJournal extends BlobJournaledBackend {
281
+ forgetBlobIntent(requestId: string, options: BlobJournalMutationOptions): Promise<void>;
282
+ writeBlobMeta(key: string, changes: Pick<BlobJournalMutationOptions, "meta" | "removeMeta">, options: {
283
+ guard: BlobJournalGuard;
284
+ }): Promise<void>;
285
+ readMeta<T = unknown>(key: string): Promise<T | undefined>;
286
+ /** A copy of the committed rows, for a caller that persists them; session claims are not state. */
287
+ exportState(): MemoryBlobJournalState;
288
+ }
289
+ export interface MemoryBlobJournalState {
290
+ intents: BlobIntentRecord[];
291
+ meta: [string, unknown][];
292
+ sequence: number;
293
+ }
294
+ /**
295
+ * A {@link BlobJournaledBackend} held in memory, for a browser or a test: the same pure transition
296
+ * functions as the file journal, nothing durable. Each verb decides and applies with no await in
297
+ * between, so verbs never interleave. A terminal receipt is bounded by its JSON size here, where
298
+ * the file journal measures its own tagged encoding. `state` restores exported rows as a new
299
+ * handle would find them: an `in_flight` claim among them is not this handle's.
300
+ */
301
+ export declare function createMemoryBlobJournal(state?: MemoryBlobJournalState): MemoryBlobJournal;
302
+ //# sourceMappingURL=blob-journal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blob-journal.d.ts","sourceRoot":"","sources":["../src/blob-journal.ts"],"names":[],"mappings":"AAAA;6FAC6F;AAC7F,OAAO,EAAoG,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAInM,OAAO,EAAsF,oBAAoB,EAA2B,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAClN,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAI3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,mBAAmB;;;IAC9B,sFAAsF;;;IAGtF,8FAA8F;;EAE9F,CAAC;AACH,MAAM,WAAW,eAAe;IAAG,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE;AACnH,MAAM,WAAW,iBAAiB;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