@superbee/core 0.2.0-pre.4 → 0.2.0-pre.41

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 (628) hide show
  1. package/README.md +1255 -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 +22 -2
  7. package/dist/backend.d.ts.map +1 -1
  8. package/dist/backend.js +153 -38
  9. package/dist/backend.js.map +1 -1
  10. package/dist/blob-contract.d.ts +82 -0
  11. package/dist/blob-contract.d.ts.map +1 -0
  12. package/dist/blob-contract.js +134 -0
  13. package/dist/blob-contract.js.map +1 -0
  14. package/dist/blob-journal.d.ts +303 -0
  15. package/dist/blob-journal.d.ts.map +1 -0
  16. package/dist/blob-journal.js +541 -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 +207 -0
  43. package/dist/bundle-health/report.d.ts.map +1 -0
  44. package/dist/bundle-health/report.js +454 -0
  45. package/dist/bundle-health/report.js.map +1 -0
  46. package/dist/bundle-ops.d.ts +3 -2
  47. package/dist/bundle-ops.d.ts.map +1 -1
  48. package/dist/bundle-ops.js +4 -4
  49. package/dist/bundle-ops.js.map +1 -1
  50. package/dist/bundle.d.ts +3 -4
  51. package/dist/bundle.d.ts.map +1 -1
  52. package/dist/bundle.js +5 -14
  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/code-unit-order.d.ts +15 -0
  59. package/dist/code-unit-order.d.ts.map +1 -0
  60. package/dist/code-unit-order.js +17 -0
  61. package/dist/code-unit-order.js.map +1 -0
  62. package/dist/connector-request.d.ts +112 -0
  63. package/dist/connector-request.d.ts.map +1 -0
  64. package/dist/connector-request.js +495 -0
  65. package/dist/connector-request.js.map +1 -0
  66. package/dist/connectors.d.ts +297 -0
  67. package/dist/connectors.d.ts.map +1 -0
  68. package/dist/connectors.js +1233 -0
  69. package/dist/connectors.js.map +1 -0
  70. package/dist/cross-bundle.d.ts +135 -0
  71. package/dist/cross-bundle.d.ts.map +1 -0
  72. package/dist/cross-bundle.js +191 -0
  73. package/dist/cross-bundle.js.map +1 -0
  74. package/dist/dependencies.d.ts +94 -0
  75. package/dist/dependencies.d.ts.map +1 -0
  76. package/dist/dependencies.js +180 -0
  77. package/dist/dependencies.js.map +1 -0
  78. package/dist/document-codec.d.ts +7 -2
  79. package/dist/document-codec.d.ts.map +1 -1
  80. package/dist/document-codec.js +8 -5
  81. package/dist/document-codec.js.map +1 -1
  82. package/dist/document-field-actions.d.ts +31 -1
  83. package/dist/document-field-actions.d.ts.map +1 -1
  84. package/dist/document-field-actions.js +137 -34
  85. package/dist/document-field-actions.js.map +1 -1
  86. package/dist/document-mutation.d.ts +37 -13
  87. package/dist/document-mutation.d.ts.map +1 -1
  88. package/dist/document-mutation.js +129 -60
  89. package/dist/document-mutation.js.map +1 -1
  90. package/dist/document-transfer.d.ts +208 -0
  91. package/dist/document-transfer.d.ts.map +1 -0
  92. package/dist/document-transfer.js +928 -0
  93. package/dist/document-transfer.js.map +1 -0
  94. package/dist/document-write-policy.d.ts.map +1 -1
  95. package/dist/document-write-policy.js +4 -2
  96. package/dist/document-write-policy.js.map +1 -1
  97. package/dist/domain-model.d.ts +73 -0
  98. package/dist/domain-model.d.ts.map +1 -0
  99. package/dist/domain-model.js +169 -0
  100. package/dist/domain-model.js.map +1 -0
  101. package/dist/engine.d.ts +21 -9
  102. package/dist/engine.d.ts.map +1 -1
  103. package/dist/engine.js +72 -14
  104. package/dist/engine.js.map +1 -1
  105. package/dist/file-journaled-backend-internal.d.ts +21 -0
  106. package/dist/file-journaled-backend-internal.d.ts.map +1 -0
  107. package/dist/file-journaled-backend-internal.js +12 -0
  108. package/dist/file-journaled-backend-internal.js.map +1 -0
  109. package/dist/file-journaled-backend.d.ts +160 -0
  110. package/dist/file-journaled-backend.d.ts.map +1 -0
  111. package/dist/file-journaled-backend.js +1345 -0
  112. package/dist/file-journaled-backend.js.map +1 -0
  113. package/dist/filesystem-host.d.ts +15 -0
  114. package/dist/filesystem-host.d.ts.map +1 -0
  115. package/dist/filesystem-host.js +20 -0
  116. package/dist/filesystem-host.js.map +1 -0
  117. package/dist/filesystem-identity.d.ts +97 -21
  118. package/dist/filesystem-identity.d.ts.map +1 -1
  119. package/dist/filesystem-identity.js +398 -119
  120. package/dist/filesystem-identity.js.map +1 -1
  121. package/dist/filesystem-lock.d.ts +16 -3
  122. package/dist/filesystem-lock.d.ts.map +1 -1
  123. package/dist/filesystem-lock.js +323 -77
  124. package/dist/filesystem-lock.js.map +1 -1
  125. package/dist/filesystem-push-role.d.ts +77 -0
  126. package/dist/filesystem-push-role.d.ts.map +1 -0
  127. package/dist/filesystem-push-role.js +165 -0
  128. package/dist/filesystem-push-role.js.map +1 -0
  129. package/dist/filesystem.d.ts +17 -0
  130. package/dist/filesystem.d.ts.map +1 -0
  131. package/dist/filesystem.js +18 -0
  132. package/dist/filesystem.js.map +1 -0
  133. package/dist/frontmatter.d.ts +8 -6
  134. package/dist/frontmatter.d.ts.map +1 -1
  135. package/dist/frontmatter.js +5 -4
  136. package/dist/frontmatter.js.map +1 -1
  137. package/dist/governed-body-write.d.ts +8 -1
  138. package/dist/governed-body-write.d.ts.map +1 -1
  139. package/dist/governed-body-write.js +9 -2
  140. package/dist/governed-body-write.js.map +1 -1
  141. package/dist/heads-digest.d.ts.map +1 -1
  142. package/dist/heads-digest.js +2 -1
  143. package/dist/heads-digest.js.map +1 -1
  144. package/dist/host-policy-snapshot.d.ts +9 -0
  145. package/dist/host-policy-snapshot.d.ts.map +1 -0
  146. package/dist/host-policy-snapshot.js +33 -0
  147. package/dist/host-policy-snapshot.js.map +1 -0
  148. package/dist/host-text.d.ts +31 -0
  149. package/dist/host-text.d.ts.map +1 -0
  150. package/dist/host-text.js +77 -0
  151. package/dist/host-text.js.map +1 -0
  152. package/dist/hosted-client/binding.d.ts +7 -0
  153. package/dist/hosted-client/binding.d.ts.map +1 -0
  154. package/dist/hosted-client/binding.js +10 -0
  155. package/dist/hosted-client/binding.js.map +1 -0
  156. package/dist/hosted-client/blob-delivery.d.ts +68 -0
  157. package/dist/hosted-client/blob-delivery.d.ts.map +1 -0
  158. package/dist/hosted-client/blob-delivery.js +170 -0
  159. package/dist/hosted-client/blob-delivery.js.map +1 -0
  160. package/dist/hosted-client/blob-write.d.ts +387 -0
  161. package/dist/hosted-client/blob-write.d.ts.map +1 -0
  162. package/dist/hosted-client/blob-write.js +770 -0
  163. package/dist/hosted-client/blob-write.js.map +1 -0
  164. package/dist/hosted-client/bundle-listing.d.ts +46 -0
  165. package/dist/hosted-client/bundle-listing.d.ts.map +1 -0
  166. package/dist/hosted-client/bundle-listing.js +36 -0
  167. package/dist/hosted-client/bundle-listing.js.map +1 -0
  168. package/dist/hosted-client/client.d.ts +219 -0
  169. package/dist/hosted-client/client.d.ts.map +1 -0
  170. package/dist/hosted-client/client.js +309 -0
  171. package/dist/hosted-client/client.js.map +1 -0
  172. package/dist/hosted-client/directory.d.ts +46 -0
  173. package/dist/hosted-client/directory.d.ts.map +1 -0
  174. package/dist/hosted-client/directory.js +74 -0
  175. package/dist/hosted-client/directory.js.map +1 -0
  176. package/dist/hosted-client/errors.d.ts +26 -0
  177. package/dist/hosted-client/errors.d.ts.map +1 -0
  178. package/dist/hosted-client/errors.js +35 -0
  179. package/dist/hosted-client/errors.js.map +1 -0
  180. package/dist/hosted-client/inbox.d.ts +320 -0
  181. package/dist/hosted-client/inbox.d.ts.map +1 -0
  182. package/dist/hosted-client/inbox.js +379 -0
  183. package/dist/hosted-client/inbox.js.map +1 -0
  184. package/dist/hosted-client/index.d.ts +30 -0
  185. package/dist/hosted-client/index.d.ts.map +1 -0
  186. package/dist/hosted-client/index.js +32 -0
  187. package/dist/hosted-client/index.js.map +1 -0
  188. package/dist/hosted-client/journal.d.ts +103 -0
  189. package/dist/hosted-client/journal.d.ts.map +1 -0
  190. package/dist/hosted-client/journal.js +464 -0
  191. package/dist/hosted-client/journal.js.map +1 -0
  192. package/dist/hosted-client/node.d.ts +74 -0
  193. package/dist/hosted-client/node.d.ts.map +1 -0
  194. package/dist/hosted-client/node.js +219 -0
  195. package/dist/hosted-client/node.js.map +1 -0
  196. package/dist/hosted-client/reference.d.ts +12 -0
  197. package/dist/hosted-client/reference.d.ts.map +1 -0
  198. package/dist/hosted-client/reference.js +29 -0
  199. package/dist/hosted-client/reference.js.map +1 -0
  200. package/dist/hosted-client/write.d.ts +217 -0
  201. package/dist/hosted-client/write.d.ts.map +1 -0
  202. package/dist/hosted-client/write.js +418 -0
  203. package/dist/hosted-client/write.js.map +1 -0
  204. package/dist/hosted-transport/answer-rows.d.ts +243 -0
  205. package/dist/hosted-transport/answer-rows.d.ts.map +1 -0
  206. package/dist/hosted-transport/answer-rows.js +457 -0
  207. package/dist/hosted-transport/answer-rows.js.map +1 -0
  208. package/dist/hosted-transport/blob-reads.d.ts +35 -0
  209. package/dist/hosted-transport/blob-reads.d.ts.map +1 -0
  210. package/dist/hosted-transport/blob-reads.js +179 -0
  211. package/dist/hosted-transport/blob-reads.js.map +1 -0
  212. package/dist/hosted-transport/blob-write.d.ts +34 -0
  213. package/dist/hosted-transport/blob-write.d.ts.map +1 -0
  214. package/dist/hosted-transport/blob-write.js +115 -0
  215. package/dist/hosted-transport/blob-write.js.map +1 -0
  216. package/dist/hosted-transport/carrier.d.ts +151 -0
  217. package/dist/hosted-transport/carrier.d.ts.map +1 -0
  218. package/dist/hosted-transport/carrier.js +260 -0
  219. package/dist/hosted-transport/carrier.js.map +1 -0
  220. package/dist/hosted-transport/document-backend.d.ts +74 -0
  221. package/dist/hosted-transport/document-backend.d.ts.map +1 -0
  222. package/dist/hosted-transport/document-backend.js +160 -0
  223. package/dist/hosted-transport/document-backend.js.map +1 -0
  224. package/dist/hosted-transport/history-pages.d.ts +55 -0
  225. package/dist/hosted-transport/history-pages.d.ts.map +1 -0
  226. package/dist/hosted-transport/history-pages.js +69 -0
  227. package/dist/hosted-transport/history-pages.js.map +1 -0
  228. package/dist/hosted-transport/index.d.ts +19 -0
  229. package/dist/hosted-transport/index.d.ts.map +1 -0
  230. package/dist/hosted-transport/index.js +19 -0
  231. package/dist/hosted-transport/index.js.map +1 -0
  232. package/dist/hosted-transport/operations.d.ts +85 -0
  233. package/dist/hosted-transport/operations.d.ts.map +1 -0
  234. package/dist/hosted-transport/operations.js +128 -0
  235. package/dist/hosted-transport/operations.js.map +1 -0
  236. package/dist/hosted-transport/paged-reads.d.ts +87 -0
  237. package/dist/hosted-transport/paged-reads.d.ts.map +1 -0
  238. package/dist/hosted-transport/paged-reads.js +238 -0
  239. package/dist/hosted-transport/paged-reads.js.map +1 -0
  240. package/dist/hosted-transport/read-adapter.d.ts +256 -0
  241. package/dist/hosted-transport/read-adapter.d.ts.map +1 -0
  242. package/dist/hosted-transport/read-adapter.js +568 -0
  243. package/dist/hosted-transport/read-adapter.js.map +1 -0
  244. package/dist/hosted-transport/root-write.d.ts +114 -0
  245. package/dist/hosted-transport/root-write.d.ts.map +1 -0
  246. package/dist/hosted-transport/root-write.js +171 -0
  247. package/dist/hosted-transport/root-write.js.map +1 -0
  248. package/dist/hosted-transport/whole-document-transport.d.ts +204 -0
  249. package/dist/hosted-transport/whole-document-transport.d.ts.map +1 -0
  250. package/dist/hosted-transport/whole-document-transport.js +447 -0
  251. package/dist/hosted-transport/whole-document-transport.js.map +1 -0
  252. package/dist/identity-fold.d.ts +18 -0
  253. package/dist/identity-fold.d.ts.map +1 -0
  254. package/dist/identity-fold.js +22 -0
  255. package/dist/identity-fold.js.map +1 -0
  256. package/dist/index.d.ts +41 -11
  257. package/dist/index.d.ts.map +1 -1
  258. package/dist/index.js +31 -9
  259. package/dist/index.js.map +1 -1
  260. package/dist/indexeddb-backend.d.ts +25 -33
  261. package/dist/indexeddb-backend.d.ts.map +1 -1
  262. package/dist/indexeddb-backend.js +264 -8
  263. package/dist/indexeddb-backend.js.map +1 -1
  264. package/dist/inventory-guard.d.ts +58 -0
  265. package/dist/inventory-guard.d.ts.map +1 -0
  266. package/dist/inventory-guard.js +169 -0
  267. package/dist/inventory-guard.js.map +1 -0
  268. package/dist/journaled-backend.d.ts +149 -9
  269. package/dist/journaled-backend.d.ts.map +1 -1
  270. package/dist/journaled-backend.js +64 -58
  271. package/dist/journaled-backend.js.map +1 -1
  272. package/dist/kind-authoring.d.ts +170 -0
  273. package/dist/kind-authoring.d.ts.map +1 -0
  274. package/dist/kind-authoring.js +452 -0
  275. package/dist/kind-authoring.js.map +1 -0
  276. package/dist/kind-changes.d.ts +45 -0
  277. package/dist/kind-changes.d.ts.map +1 -0
  278. package/dist/kind-changes.js +96 -0
  279. package/dist/kind-changes.js.map +1 -0
  280. package/dist/kind-conformance-error.d.ts +15 -0
  281. package/dist/kind-conformance-error.d.ts.map +1 -0
  282. package/dist/kind-conformance-error.js +20 -0
  283. package/dist/kind-conformance-error.js.map +1 -0
  284. package/dist/kind-coverage.d.ts +99 -0
  285. package/dist/kind-coverage.d.ts.map +1 -0
  286. package/dist/kind-coverage.js +186 -0
  287. package/dist/kind-coverage.js.map +1 -0
  288. package/dist/kind-deprecation.d.ts +32 -0
  289. package/dist/kind-deprecation.d.ts.map +1 -0
  290. package/dist/kind-deprecation.js +141 -0
  291. package/dist/kind-deprecation.js.map +1 -0
  292. package/dist/kind-field-mutation.d.ts +4 -0
  293. package/dist/kind-field-mutation.d.ts.map +1 -1
  294. package/dist/kind-field-mutation.js +28 -3
  295. package/dist/kind-field-mutation.js.map +1 -1
  296. package/dist/kinds-load.js +4 -4
  297. package/dist/kinds-load.js.map +1 -1
  298. package/dist/kinds.d.ts +111 -2
  299. package/dist/kinds.d.ts.map +1 -1
  300. package/dist/kinds.js +386 -20
  301. package/dist/kinds.js.map +1 -1
  302. package/dist/link-emit.d.ts +29 -0
  303. package/dist/link-emit.d.ts.map +1 -0
  304. package/dist/link-emit.js +39 -0
  305. package/dist/link-emit.js.map +1 -0
  306. package/dist/link-types.d.ts +27 -0
  307. package/dist/link-types.d.ts.map +1 -0
  308. package/dist/link-types.js +60 -0
  309. package/dist/link-types.js.map +1 -0
  310. package/dist/links.d.ts +52 -3
  311. package/dist/links.d.ts.map +1 -1
  312. package/dist/links.js +259 -18
  313. package/dist/links.js.map +1 -1
  314. package/dist/managed-document-metadata.d.ts +2 -0
  315. package/dist/managed-document-metadata.d.ts.map +1 -0
  316. package/dist/managed-document-metadata.js +9 -0
  317. package/dist/managed-document-metadata.js.map +1 -0
  318. package/dist/memory-backend.d.ts +3 -0
  319. package/dist/memory-backend.d.ts.map +1 -1
  320. package/dist/memory-backend.js +44 -2
  321. package/dist/memory-backend.js.map +1 -1
  322. package/dist/okf-actor.d.ts +1 -0
  323. package/dist/okf-actor.d.ts.map +1 -1
  324. package/dist/okf-actor.js +1 -0
  325. package/dist/okf-actor.js.map +1 -1
  326. package/dist/okf-authoring.d.ts +4 -0
  327. package/dist/okf-authoring.d.ts.map +1 -0
  328. package/dist/okf-authoring.js +12 -0
  329. package/dist/okf-authoring.js.map +1 -0
  330. package/dist/okf-standard-fields.d.ts +3 -0
  331. package/dist/okf-standard-fields.d.ts.map +1 -1
  332. package/dist/okf-standard-fields.js +3 -0
  333. package/dist/okf-standard-fields.js.map +1 -1
  334. package/dist/path-fold.d.ts +39 -0
  335. package/dist/path-fold.d.ts.map +1 -0
  336. package/dist/path-fold.js +41 -0
  337. package/dist/path-fold.js.map +1 -0
  338. package/dist/paths.d.ts +18 -0
  339. package/dist/paths.d.ts.map +1 -1
  340. package/dist/paths.js +32 -0
  341. package/dist/paths.js.map +1 -1
  342. package/dist/platform.d.ts +13 -2
  343. package/dist/platform.d.ts.map +1 -1
  344. package/dist/platform.js +16 -0
  345. package/dist/platform.js.map +1 -1
  346. package/dist/portable-export.d.ts +119 -0
  347. package/dist/portable-export.d.ts.map +1 -0
  348. package/dist/portable-export.js +501 -0
  349. package/dist/portable-export.js.map +1 -0
  350. package/dist/publication-filesystem.d.ts +1 -1
  351. package/dist/publication-filesystem.d.ts.map +1 -1
  352. package/dist/publication-filesystem.js +1 -1
  353. package/dist/publication-filesystem.js.map +1 -1
  354. package/dist/qualified-links.d.ts +67 -0
  355. package/dist/qualified-links.d.ts.map +1 -0
  356. package/dist/qualified-links.js +117 -0
  357. package/dist/qualified-links.js.map +1 -0
  358. package/dist/query-filter.d.ts +16 -2
  359. package/dist/query-filter.d.ts.map +1 -1
  360. package/dist/query-filter.js +40 -1
  361. package/dist/query-filter.js.map +1 -1
  362. package/dist/query-order.d.ts +22 -0
  363. package/dist/query-order.d.ts.map +1 -0
  364. package/dist/query-order.js +43 -0
  365. package/dist/query-order.js.map +1 -0
  366. package/dist/recipe-lifecycle/errors.d.ts +96 -0
  367. package/dist/recipe-lifecycle/errors.d.ts.map +1 -0
  368. package/dist/recipe-lifecycle/errors.js +122 -0
  369. package/dist/recipe-lifecycle/errors.js.map +1 -0
  370. package/dist/recipe-lifecycle/evolution.d.ts +124 -0
  371. package/dist/recipe-lifecycle/evolution.d.ts.map +1 -0
  372. package/dist/recipe-lifecycle/evolution.js +993 -0
  373. package/dist/recipe-lifecycle/evolution.js.map +1 -0
  374. package/dist/recipe-lifecycle/index.d.ts +34 -0
  375. package/dist/recipe-lifecycle/index.d.ts.map +1 -0
  376. package/dist/recipe-lifecycle/index.js +28 -0
  377. package/dist/recipe-lifecycle/index.js.map +1 -0
  378. package/dist/recipe-lifecycle/install.d.ts +155 -0
  379. package/dist/recipe-lifecycle/install.d.ts.map +1 -0
  380. package/dist/recipe-lifecycle/install.js +604 -0
  381. package/dist/recipe-lifecycle/install.js.map +1 -0
  382. package/dist/recipe-lifecycle/legacy-aliases.d.ts +16 -0
  383. package/dist/recipe-lifecycle/legacy-aliases.d.ts.map +1 -0
  384. package/dist/recipe-lifecycle/legacy-aliases.js +51 -0
  385. package/dist/recipe-lifecycle/legacy-aliases.js.map +1 -0
  386. package/dist/recipe-lifecycle/retirement-apply.d.ts +59 -0
  387. package/dist/recipe-lifecycle/retirement-apply.d.ts.map +1 -0
  388. package/dist/recipe-lifecycle/retirement-apply.js +165 -0
  389. package/dist/recipe-lifecycle/retirement-apply.js.map +1 -0
  390. package/dist/recipe-lifecycle/retirement.d.ts +89 -0
  391. package/dist/recipe-lifecycle/retirement.d.ts.map +1 -0
  392. package/dist/recipe-lifecycle/retirement.js +347 -0
  393. package/dist/recipe-lifecycle/retirement.js.map +1 -0
  394. package/dist/recipe-lifecycle/stamp.d.ts +151 -0
  395. package/dist/recipe-lifecycle/stamp.d.ts.map +1 -0
  396. package/dist/recipe-lifecycle/stamp.js +364 -0
  397. package/dist/recipe-lifecycle/stamp.js.map +1 -0
  398. package/dist/recipe-set-preflight.d.ts +139 -0
  399. package/dist/recipe-set-preflight.d.ts.map +1 -0
  400. package/dist/recipe-set-preflight.js +536 -0
  401. package/dist/recipe-set-preflight.js.map +1 -0
  402. package/dist/recipes.d.ts +29 -1
  403. package/dist/recipes.d.ts.map +1 -1
  404. package/dist/recipes.js +137 -1
  405. package/dist/recipes.js.map +1 -1
  406. package/dist/record-overlay/apply.d.ts +43 -0
  407. package/dist/record-overlay/apply.d.ts.map +1 -0
  408. package/dist/record-overlay/apply.js +527 -0
  409. package/dist/record-overlay/apply.js.map +1 -0
  410. package/dist/record-overlay/canonical.d.ts +22 -0
  411. package/dist/record-overlay/canonical.d.ts.map +1 -0
  412. package/dist/record-overlay/canonical.js +47 -0
  413. package/dist/record-overlay/canonical.js.map +1 -0
  414. package/dist/record-overlay/digest.d.ts +4 -0
  415. package/dist/record-overlay/digest.d.ts.map +1 -0
  416. package/dist/record-overlay/digest.js +11 -0
  417. package/dist/record-overlay/digest.js.map +1 -0
  418. package/dist/record-overlay/errors.d.ts +44 -0
  419. package/dist/record-overlay/errors.d.ts.map +1 -0
  420. package/dist/record-overlay/errors.js +55 -0
  421. package/dist/record-overlay/errors.js.map +1 -0
  422. package/dist/record-overlay/findings.d.ts +5 -0
  423. package/dist/record-overlay/findings.d.ts.map +1 -0
  424. package/dist/record-overlay/findings.js +83 -0
  425. package/dist/record-overlay/findings.js.map +1 -0
  426. package/dist/record-overlay/index.d.ts +23 -0
  427. package/dist/record-overlay/index.d.ts.map +1 -0
  428. package/dist/record-overlay/index.js +21 -0
  429. package/dist/record-overlay/index.js.map +1 -0
  430. package/dist/record-overlay/plan.d.ts +12 -0
  431. package/dist/record-overlay/plan.d.ts.map +1 -0
  432. package/dist/record-overlay/plan.js +285 -0
  433. package/dist/record-overlay/plan.js.map +1 -0
  434. package/dist/record-overlay/policy.d.ts +74 -0
  435. package/dist/record-overlay/policy.d.ts.map +1 -0
  436. package/dist/record-overlay/policy.js +235 -0
  437. package/dist/record-overlay/policy.js.map +1 -0
  438. package/dist/record-overlay/redact.d.ts +3 -0
  439. package/dist/record-overlay/redact.d.ts.map +1 -0
  440. package/dist/record-overlay/redact.js +27 -0
  441. package/dist/record-overlay/redact.js.map +1 -0
  442. package/dist/record-overlay/signal-kind.d.ts +30 -0
  443. package/dist/record-overlay/signal-kind.d.ts.map +1 -0
  444. package/dist/record-overlay/signal-kind.js +38 -0
  445. package/dist/record-overlay/signal-kind.js.map +1 -0
  446. package/dist/record-overlay/signal-text.d.ts +45 -0
  447. package/dist/record-overlay/signal-text.d.ts.map +1 -0
  448. package/dist/record-overlay/signal-text.js +116 -0
  449. package/dist/record-overlay/signal-text.js.map +1 -0
  450. package/dist/record-overlay/source-index.d.ts +19 -0
  451. package/dist/record-overlay/source-index.d.ts.map +1 -0
  452. package/dist/record-overlay/source-index.js +102 -0
  453. package/dist/record-overlay/source-index.js.map +1 -0
  454. package/dist/record-overlay/types.d.ts +291 -0
  455. package/dist/record-overlay/types.d.ts.map +1 -0
  456. package/dist/record-overlay/types.js +2 -0
  457. package/dist/record-overlay/types.js.map +1 -0
  458. package/dist/remote-backend.d.ts +58 -13
  459. package/dist/remote-backend.d.ts.map +1 -1
  460. package/dist/remote-backend.js +156 -36
  461. package/dist/remote-backend.js.map +1 -1
  462. package/dist/remote-document-codec.d.ts +2 -1
  463. package/dist/remote-document-codec.d.ts.map +1 -1
  464. package/dist/remote-document-codec.js +3 -2
  465. package/dist/remote-document-codec.js.map +1 -1
  466. package/dist/remote-error.d.ts +17 -1
  467. package/dist/remote-error.d.ts.map +1 -1
  468. package/dist/remote-error.js +32 -2
  469. package/dist/remote-error.js.map +1 -1
  470. package/dist/remote-operations.d.ts +0 -40
  471. package/dist/remote-operations.d.ts.map +1 -1
  472. package/dist/remote-operations.js +26 -6
  473. package/dist/remote-operations.js.map +1 -1
  474. package/dist/remote-parsers.d.ts +1 -1
  475. package/dist/remote-parsers.js +1 -1
  476. package/dist/search/backend-source.d.ts +6 -0
  477. package/dist/search/backend-source.d.ts.map +1 -0
  478. package/dist/search/backend-source.js +33 -0
  479. package/dist/search/backend-source.js.map +1 -0
  480. package/dist/search/contract.d.ts +151 -0
  481. package/dist/search/contract.d.ts.map +1 -0
  482. package/dist/search/contract.js +78 -0
  483. package/dist/search/contract.js.map +1 -0
  484. package/dist/search/errors.d.ts +30 -0
  485. package/dist/search/errors.d.ts.map +1 -0
  486. package/dist/search/errors.js +50 -0
  487. package/dist/search/errors.js.map +1 -0
  488. package/dist/search/identity.d.ts +12 -0
  489. package/dist/search/identity.d.ts.map +1 -0
  490. package/dist/search/identity.js +90 -0
  491. package/dist/search/identity.js.map +1 -0
  492. package/dist/search/index.d.ts +16 -0
  493. package/dist/search/index.d.ts.map +1 -0
  494. package/dist/search/index.js +15 -0
  495. package/dist/search/index.js.map +1 -0
  496. package/dist/search/memory-source.d.ts +36 -0
  497. package/dist/search/memory-source.d.ts.map +1 -0
  498. package/dist/search/memory-source.js +235 -0
  499. package/dist/search/memory-source.js.map +1 -0
  500. package/dist/search/rank.d.ts +34 -0
  501. package/dist/search/rank.d.ts.map +1 -0
  502. package/dist/search/rank.js +129 -0
  503. package/dist/search/rank.js.map +1 -0
  504. package/dist/search/row-text.d.ts +38 -0
  505. package/dist/search/row-text.d.ts.map +1 -0
  506. package/dist/search/row-text.js +88 -0
  507. package/dist/search/row-text.js.map +1 -0
  508. package/dist/search/search.d.ts +28 -0
  509. package/dist/search/search.d.ts.map +1 -0
  510. package/dist/search/search.js +257 -0
  511. package/dist/search/search.js.map +1 -0
  512. package/dist/search/source.d.ts +67 -0
  513. package/dist/search/source.d.ts.map +1 -0
  514. package/dist/search/source.js +2 -0
  515. package/dist/search/source.js.map +1 -0
  516. package/dist/search/text.d.ts +47 -0
  517. package/dist/search/text.d.ts.map +1 -0
  518. package/dist/search/text.js +150 -0
  519. package/dist/search/text.js.map +1 -0
  520. package/dist/site-capabilities.d.ts +345 -0
  521. package/dist/site-capabilities.d.ts.map +1 -0
  522. package/dist/site-capabilities.js +724 -0
  523. package/dist/site-capabilities.js.map +1 -0
  524. package/dist/source-engine/driver.d.ts +42 -0
  525. package/dist/source-engine/driver.d.ts.map +1 -0
  526. package/dist/source-engine/driver.js +529 -0
  527. package/dist/source-engine/driver.js.map +1 -0
  528. package/dist/source-engine/evidence.d.ts +39 -0
  529. package/dist/source-engine/evidence.d.ts.map +1 -0
  530. package/dist/source-engine/evidence.js +54 -0
  531. package/dist/source-engine/evidence.js.map +1 -0
  532. package/dist/source-engine/guard.d.ts +87 -0
  533. package/dist/source-engine/guard.d.ts.map +1 -0
  534. package/dist/source-engine/guard.js +427 -0
  535. package/dist/source-engine/guard.js.map +1 -0
  536. package/dist/source-engine/index.d.ts +35 -0
  537. package/dist/source-engine/index.d.ts.map +1 -0
  538. package/dist/source-engine/index.js +27 -0
  539. package/dist/source-engine/index.js.map +1 -0
  540. package/dist/source-engine/machine-state.d.ts +87 -0
  541. package/dist/source-engine/machine-state.d.ts.map +1 -0
  542. package/dist/source-engine/machine-state.js +94 -0
  543. package/dist/source-engine/machine-state.js.map +1 -0
  544. package/dist/source-engine/observe.d.ts +10 -0
  545. package/dist/source-engine/observe.d.ts.map +1 -0
  546. package/dist/source-engine/observe.js +276 -0
  547. package/dist/source-engine/observe.js.map +1 -0
  548. package/dist/source-engine/overlay.d.ts +50 -0
  549. package/dist/source-engine/overlay.d.ts.map +1 -0
  550. package/dist/source-engine/overlay.js +114 -0
  551. package/dist/source-engine/overlay.js.map +1 -0
  552. package/dist/source-engine/robots.d.ts +53 -0
  553. package/dist/source-engine/robots.d.ts.map +1 -0
  554. package/dist/source-engine/robots.js +158 -0
  555. package/dist/source-engine/robots.js.map +1 -0
  556. package/dist/source-engine/snapshot.d.ts +104 -0
  557. package/dist/source-engine/snapshot.d.ts.map +1 -0
  558. package/dist/source-engine/snapshot.js +240 -0
  559. package/dist/source-engine/snapshot.js.map +1 -0
  560. package/dist/source-engine/target-consumer.d.ts +12 -0
  561. package/dist/source-engine/target-consumer.d.ts.map +1 -0
  562. package/dist/source-engine/target-consumer.js +15 -0
  563. package/dist/source-engine/target-consumer.js.map +1 -0
  564. package/dist/source-engine/target-descriptor.d.ts +3 -0
  565. package/dist/source-engine/target-descriptor.d.ts.map +1 -0
  566. package/dist/source-engine/target-descriptor.js +26 -0
  567. package/dist/source-engine/target-descriptor.js.map +1 -0
  568. package/dist/source-engine/target.d.ts +82 -0
  569. package/dist/source-engine/target.d.ts.map +1 -0
  570. package/dist/source-engine/target.js +213 -0
  571. package/dist/source-engine/target.js.map +1 -0
  572. package/dist/source-engine/types.d.ts +296 -0
  573. package/dist/source-engine/types.d.ts.map +1 -0
  574. package/dist/source-engine/types.js +2 -0
  575. package/dist/source-engine/types.js.map +1 -0
  576. package/dist/source-harness/conformance.d.ts +16 -0
  577. package/dist/source-harness/conformance.d.ts.map +1 -0
  578. package/dist/source-harness/conformance.js +266 -0
  579. package/dist/source-harness/conformance.js.map +1 -0
  580. package/dist/source-harness/fixture.d.ts +97 -0
  581. package/dist/source-harness/fixture.d.ts.map +1 -0
  582. package/dist/source-harness/fixture.js +276 -0
  583. package/dist/source-harness/fixture.js.map +1 -0
  584. package/dist/source-harness/index.d.ts +22 -0
  585. package/dist/source-harness/index.d.ts.map +1 -0
  586. package/dist/source-harness/index.js +19 -0
  587. package/dist/source-harness/index.js.map +1 -0
  588. package/dist/source-harness/peer.d.ts +74 -0
  589. package/dist/source-harness/peer.d.ts.map +1 -0
  590. package/dist/source-harness/peer.js +106 -0
  591. package/dist/source-harness/peer.js.map +1 -0
  592. package/dist/source-profiles/index.d.ts +31 -0
  593. package/dist/source-profiles/index.d.ts.map +1 -0
  594. package/dist/source-profiles/index.js +206 -0
  595. package/dist/source-profiles/index.js.map +1 -0
  596. package/dist/source-profiles/link-header.d.ts +6 -0
  597. package/dist/source-profiles/link-header.d.ts.map +1 -0
  598. package/dist/source-profiles/link-header.js +131 -0
  599. package/dist/source-profiles/link-header.js.map +1 -0
  600. package/dist/storage.d.ts +9 -2
  601. package/dist/storage.d.ts.map +1 -1
  602. package/dist/storage.js +6 -1
  603. package/dist/storage.js.map +1 -1
  604. package/dist/string-identity-agreement.d.ts +35 -0
  605. package/dist/string-identity-agreement.d.ts.map +1 -0
  606. package/dist/string-identity-agreement.js +72 -0
  607. package/dist/string-identity-agreement.js.map +1 -0
  608. package/dist/types.d.ts +41 -6
  609. package/dist/types.d.ts.map +1 -1
  610. package/dist/types.js +0 -10
  611. package/dist/types.js.map +1 -1
  612. package/dist/uncertain-write.d.ts +157 -17
  613. package/dist/uncertain-write.d.ts.map +1 -1
  614. package/dist/uncertain-write.js +86 -30
  615. package/dist/uncertain-write.js.map +1 -1
  616. package/dist/versioning.d.ts +9 -4
  617. package/dist/versioning.d.ts.map +1 -1
  618. package/dist/versioning.js +9 -4
  619. package/dist/versioning.js.map +1 -1
  620. package/dist/view-launch-contract.d.ts +14 -0
  621. package/dist/view-launch-contract.d.ts.map +1 -0
  622. package/dist/view-launch-contract.js +23 -0
  623. package/dist/view-launch-contract.js.map +1 -0
  624. package/dist/write-identity.d.ts +5 -0
  625. package/dist/write-identity.d.ts.map +1 -0
  626. package/dist/write-identity.js +9 -0
  627. package/dist/write-identity.js.map +1 -0
  628. package/package.json +140 -3
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Agreement rows for the two string identity primitives core owns: {@link foldPath}
3
+ * (`path-fold.ts`) and {@link compareCodeUnits} (`code-unit-order.ts`). Every expected value was
4
+ * written from the definitions, not captured from running the code, so a host that imports or
5
+ * copies these rows checks its own implementation against the definition, not against core.
6
+ *
7
+ * Shipped as a data-only module (no imports) under `@superbee/core/string-identity-agreement`, so a
8
+ * host test can import the rows directly, and a host that cannot depend on core can copy the file
9
+ * and compare its bytes. Strings use `\u` escapes so no editor or checkout can renormalize them.
10
+ */
11
+ export const PATH_FOLD_ROWS = Object.freeze([
12
+ { note: "hyphen is not a letter", input: "a-b", fold: "a-b" },
13
+ { note: "dot is not a letter", input: "a.b", fold: "a.b" },
14
+ { note: "underscore is not a letter", input: "a_b", fold: "a_b" },
15
+ { note: "digit is not a letter", input: "a2", fold: "a2" },
16
+ { note: "plain lowercase is fixed", input: "ab", fold: "ab" },
17
+ { note: "ASCII uppercase", input: "REFERENCES", fold: "references" },
18
+ { note: "ASCII lowercase", input: "references", fold: "references" },
19
+ { note: "mixed case", input: "References", fold: "references" },
20
+ { note: "long s uppercases to S", input: "reference\u017F", fold: "references" },
21
+ { note: "long s inside a word", input: "re\u017Fource", fold: "resource" },
22
+ { note: "Kelvin sign meets K", input: "\u212A", fold: "k" },
23
+ { note: "ASCII K", input: "K", fold: "k" },
24
+ { note: "dotless i uppercases to I", input: "\u0131", fold: "i" },
25
+ { note: "ASCII I", input: "I", fold: "i" },
26
+ { note: "dotted capital I keeps its dot", input: "\u0130", fold: "i\u0307" },
27
+ { note: "NFD e acute composes", input: "e\u0301", fold: "\u00E9" },
28
+ { note: "NFC e acute", input: "\u00E9", fold: "\u00E9" },
29
+ { note: "NFC capital E acute", input: "\u00C9", fold: "\u00E9" },
30
+ { note: "NFD capital E acute", input: "E\u0301", fold: "\u00E9" },
31
+ { note: "capital sharp s", input: "\u1E9E", fold: "ss" },
32
+ { note: "sharp s", input: "\u00DF", fold: "ss" },
33
+ { note: "fullwidth r is not compatibility folded", input: "\uFF52", fold: "\uFF52" },
34
+ { note: "emoji has no case", input: "\u{1F41D}", fold: "\u{1F41D}" },
35
+ { note: "astral capital Deseret long I", input: "\u{10400}", fold: "\u{10428}" },
36
+ { note: "slash is untouched across segments", input: "Notes/Reference\u017F/A-B", fold: "notes/references/a-b" },
37
+ ]);
38
+ export const PATH_COLLISION_ROWS = Object.freeze([
39
+ { a: "REFERENCES", b: "references", collide: true },
40
+ { a: "reference\u017F", b: "references", collide: true },
41
+ { a: "\u212A", b: "k", collide: true },
42
+ { a: "\u0131", b: "i", collide: true },
43
+ { a: "e\u0301", b: "\u00E9", collide: true },
44
+ { a: "\u1E9E", b: "ss", collide: true },
45
+ { a: "\u0130", b: "i", collide: false },
46
+ { a: "a-b", b: "a_b", collide: false },
47
+ { a: "a.b", b: "ab", collide: false },
48
+ { a: "\uFF52", b: "r", collide: false },
49
+ ]);
50
+ /**
51
+ * Strings in UTF-16 code unit order. The emoji (lead surrogate U+D83D) sorts before U+E000, which
52
+ * code point order and `localeCompare` would both place differently.
53
+ */
54
+ export const CODE_UNIT_ORDER = Object.freeze([
55
+ "K",
56
+ "REFERENCES",
57
+ "a-b",
58
+ "a.b",
59
+ "a2",
60
+ "a_b",
61
+ "ab",
62
+ "e\u0301",
63
+ "i",
64
+ "references",
65
+ "referen\u017Fes",
66
+ "\u00E9",
67
+ "\u0131",
68
+ "\u212A",
69
+ "\u{1F41D}",
70
+ "\uE000",
71
+ ]);
72
+ //# sourceMappingURL=string-identity-agreement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string-identity-agreement.js","sourceRoot":"","sources":["../src/string-identity-agreement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAUH,MAAM,CAAC,MAAM,cAAc,GAA2B,MAAM,CAAC,MAAM,CAAC;IAClE,EAAE,IAAI,EAAE,wBAAwB,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE;IAC7D,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE;IAC1D,EAAE,IAAI,EAAE,4BAA4B,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE;IACjE,EAAE,IAAI,EAAE,uBAAuB,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;IAC1D,EAAE,IAAI,EAAE,0BAA0B,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;IAC7D,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK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AK,EAAE;IACtC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE;IACrC,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE;CACxC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAsB,MAAM,CAAC,MAAM,CAAC;IAC9D,GAAG;IACH,YAAY;IACZ,KAAK;IACL,KAAK;IACL,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,SAAS;IACT,GAAG;IACH,YAAY;IACZ,iBAAiB;IACjB,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,QAAQ;CACT,CAAC,CAAC"}
package/dist/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { BodyReplacePosture } from "./body-replace-guards.js";
1
2
  /**
2
3
  * Shared type shapes for the OKF store engine.
3
4
  *
@@ -5,7 +6,7 @@
5
6
  * here so the implementation modules can import them without a cycle, and are
6
7
  * re-exported verbatim from `index.ts` to keep the public contract stable.
7
8
  *
8
- * @see OKF spec — GoogleCloudPlatform/knowledge-catalog, `okf/SPEC.md`
9
+ * @see OKF spec — GoogleCloudPlatform/open-knowledge-format, `SPEC.md`
9
10
  * @packageDocumentation
10
11
  */
11
12
  /**
@@ -140,7 +141,8 @@ export interface ReadBlobResult {
140
141
  export interface VersionInfo {
141
142
  /** Opaque content-addressed version token for this revision. */
142
143
  version: Version;
143
- /** Who wrote this revision. Defaults to a local identity when the write was unattributed. */
144
+ /** Who wrote this revision. History-keeping backends default at write time to a local identity.
145
+ * FilesystemBackend reports `unattributed` when document bytes carry no mutation attribution. */
144
146
  actor: string;
145
147
  /** ISO-8601 instant this revision was recorded. */
146
148
  timestamp: string;
@@ -155,6 +157,10 @@ export interface VersionInfo {
155
157
  }
156
158
  /** Options controlling a conditional / attributed {@link StorageBackend.write}. */
157
159
  export interface WriteOptions {
160
+ /** Explicit per-document replacement intent carried by RemoteBackend to the wire authority.
161
+ * Raw storage adapters ignore it; it grants no metadata/Kind policy bypass.
162
+ */
163
+ bodyReplace?: BodyReplacePosture;
158
164
  /**
159
165
  * Compare-and-swap guard. When set to a {@link Version} token, the write succeeds
160
166
  * ONLY if the backend's current version for `id` equals that token; otherwise it
@@ -247,6 +253,8 @@ export interface StorageCapabilities {
247
253
  * identity of the returned document even when the input document carries a different `id`.
248
254
  */
249
255
  export interface StorageBackend {
256
+ /** Optional exact-store cooperating-writer inventory comparison plus one concept write. */
257
+ readonly inventoryGuard?: import("./inventory-guard.js").InventoryGuard;
250
258
  /** Read + parse the concept document at `id`, with its version token. Rejects (ENOENT-shaped) if absent. */
251
259
  read(id: ConceptId): Promise<ReadResult>;
252
260
  /**
@@ -349,11 +357,16 @@ export interface StorageBackend {
349
357
  * a facet it chooses to honor. A backend that does not implement this method
350
358
  * (FilesystemBackend / MemoryBackend — both local to their data, where a head projection
351
359
  * saves nothing) is served by the engine's fallback (`list` +
352
- * `readMany`, bodies read then dropped), which additionally honors the scan's
353
- * malformed-doc resilience (`QueryOptions.onSkip`); the push-down path does not — a
354
- * malformed doc fails the server-side scan, exactly as the wire `list` always has.
360
+ * `readMany`, bodies read then dropped). Both paths honor the scan's malformed-doc
361
+ * resilience: given `onSkip`, a backend reports each document it could not parse there and
362
+ * leaves it out; without it, a malformed document fails the scan.
355
363
  */
356
- queryHeads?(filter?: QueryFilter): Promise<HeadResult[]>;
364
+ queryHeads?(filter?: QueryFilter, options?: {
365
+ onSkip?: (skip: {
366
+ id: ConceptId;
367
+ reason: string;
368
+ }) => void;
369
+ }): Promise<HeadResult[]>;
357
370
  /**
358
371
  * OPTIONAL capabilities self-declaration. `StorageBackend` carries
359
372
  * no capabilities descriptor by default, so a wire router that wants to report an adapter's
@@ -395,6 +408,23 @@ export interface QueryFilter {
395
408
  * (e.g. `tags: [a,b]`) matches on membership. A field the doc lacks never matches (empty set).
396
409
  */
397
410
  fields?: Record<string, string>;
411
+ /**
412
+ * Restrict to concepts whose `sources` list holds at least one entry carrying this identity
413
+ * (see {@link SourceIdentity}). A selector naming neither key imposes no constraint, like an
414
+ * empty `tags` list.
415
+ */
416
+ sources?: SourceIdentity;
417
+ }
418
+ /**
419
+ * An OKF `sources[]` identity: `resource` names the provider namespace and `id` the record within
420
+ * it. Each supplied key must equal the entry's own property of the same name by exact,
421
+ * case-sensitive string comparison: no trimming, URL normalization, or `String()` coercion. An
422
+ * entry that is not a mapping, or whose property is absent or not a string, never matches, and
423
+ * neither does a `sources` value that is not a list.
424
+ */
425
+ export interface SourceIdentity {
426
+ resource?: string;
427
+ id?: string;
398
428
  }
399
429
  /** A single resolved outbound cross-link (a standard markdown link, never a wikilink). */
400
430
  export interface Link {
@@ -406,6 +436,11 @@ export interface Link {
406
436
  text: string;
407
437
  /** The raw target as written in the markdown, before resolution (e.g. `/a/b.md`, `./x.md`). */
408
438
  href: string;
439
+ /**
440
+ * Set only on a cross-bundle edge (`okf://<alias>/<path>.md`): the declared alias of the bundle
441
+ * `to` lives in. Absent on every local link, so local edge output is unchanged.
442
+ */
443
+ bundle?: string;
409
444
  }
410
445
  /**
411
446
  * Filter for {@link queryEdges} — the whole-bundle derived edge list, filtered. `from`/`to` each
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B;;;;;;;GAOG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAE7B;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B,uJAAuJ;IACvJ,IAAI,EAAE,MAAM,CAAC;IACb,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,M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ACb;AAED,0FAA0F;AAC1F,MAAM,WAAW,IAAI;IACnB,4DAA4D;IAC5D,IAAI,EAAE,SAAS,CAAC;IAChB,uGAAuG;IACvG,EAAE,EAAE,SAAS,CAAC;IACd,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,+FAA+F;IAC/F,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,UAAU;IACzB,wFAAwF;IACxF,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,iGAAiG;IACjG,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACvB,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,iGAAiG;AACjG,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAE3D,+CAA+C;AAC/C,MAAM,WAAW,gBAAgB;IAC/B,qDAAqD;IACrD,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,iFAAiF;IACjF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iGAAiG;IACjG,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,mDAAmD;AACnD,MAAM,WAAW,eAAe;IAC9B,uFAAuF;IACvF,OAAO,EAAE,gBAAgB,CAAC;IAC1B,yGAAyG;IACzG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
package/dist/types.js CHANGED
@@ -1,12 +1,2 @@
1
- /**
2
- * Shared type shapes for the OKF store engine.
3
- *
4
- * These are the contract types originally sketched in `index.ts`; they are kept
5
- * here so the implementation modules can import them without a cycle, and are
6
- * re-exported verbatim from `index.ts` to keep the public contract stable.
7
- *
8
- * @see OKF spec — GoogleCloudPlatform/knowledge-catalog, `okf/SPEC.md`
9
- * @packageDocumentation
10
- */
11
1
  export {};
12
2
  //# sourceMappingURL=types.js.map
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
@@ -15,9 +15,13 @@
15
15
  * `sleep` used for the submission deadline and the delay between lookups; there is no
16
16
  * injectable clock, and a transport's own latency is real.
17
17
  */
18
+ import type { BodyReplacePosture } from "./body-replace-guards.js";
18
19
  import type { Version } from "./types.js";
19
- /** The operation an intent performs. Only document writes exist today; the union is open. */
20
- export type OperationKind = "document.write" | (string & {});
20
+ /**
21
+ * The operation an intent performs: a whole-document write, or `document.delete` (the document
22
+ * leaves at exactly the intent's base). The union is open.
23
+ */
24
+ export type OperationKind = "document.write" | "document.delete" | (string & {});
21
25
  /**
22
26
  * The journal states of an intent. `unknown` is the primitive's own classification of an
23
27
  * exhausted attempt: the authority may or may not hold the write, and a later attempt begins
@@ -29,8 +33,21 @@ export interface OperationIntent {
29
33
  /** Durable request identity: minted once at record time, reused verbatim on every retry. */
30
34
  requestId: string;
31
35
  kind: OperationKind;
36
+ /** Explicit whole-document edit intent, captured durably with this request identity.
37
+ * Absent on legacy/automatic writes, which retain body-replacement protection.
38
+ */
39
+ readonly bodyReplace?: Readonly<BodyReplacePosture>;
32
40
  /** The target the operation applies to; a concept id for `document.write`. */
33
41
  target: string;
42
+ /**
43
+ * The tombstone a create acknowledges it re-creates: the id's latest deletion, as the
44
+ * authority named it. Set only by an explicit decision to re-create a deleted document (the
45
+ * caller's own observed delete, or `keep` on a "deleted remotely" conflict), and only on a
46
+ * create recorded after that decision; never inferred by a transport. An authority whose latest
47
+ * deletion of the id is another one refuses the create, and the refusal comes back as a
48
+ * conflict.
49
+ */
50
+ recreates?: Version;
34
51
  /** The shared version the local edit was made against, or `null` for a create. */
35
52
  base: Version | null;
36
53
  /** The content-addressed version of `content`. */
@@ -50,24 +67,109 @@ export interface OperationIntent {
50
67
  export type Outcome = {
51
68
  kind: "committed";
52
69
  version: Version;
53
- } | {
70
+ }
71
+ /**
72
+ * The shared head moved. `actual` is the version the authority serves now, or `null` when it
73
+ * serves none ("deleted remotely"). With `actual: null`, `tombstone` names the deletion the
74
+ * authority reported, when it reported one: the acknowledgement a deliberate re-create sends.
75
+ * It is never a version any read serves, so it is never a base or a remote version.
76
+ */
77
+ | {
54
78
  kind: "conflict";
55
79
  actual: Version | null;
56
- } | {
80
+ tombstone?: Version;
81
+ }
82
+ /**
83
+ * `executed` is present only on a refusal that is not the identity's recorded answer: `false`
84
+ * when this attempt was refused before it could execute (nothing was sent, or the authority
85
+ * refused it before dispatch), `"unknown"` when the authority's answer does not say. Such a
86
+ * refusal is evidence about this attempt only, never about an earlier delivery of the identity.
87
+ */
88
+ | {
57
89
  kind: "refused";
58
90
  code: string;
59
91
  message: string;
60
- } | {
92
+ executed?: false | "unknown";
93
+ }
94
+ /**
95
+ * `refusal` names the attempt-only refusal that ended the call, when one did: a resend refused
96
+ * before execution while an earlier delivery may still be held. The identity stays unknown;
97
+ * the refusal says why it could not be settled now (for example, access withdrawn).
98
+ */
99
+ | {
61
100
  kind: "unknown";
101
+ refusal?: {
102
+ code: string;
103
+ message: string;
104
+ };
62
105
  };
106
+ /**
107
+ * A lookup's answer that the authority holds the identity without a result yet: a delivery of
108
+ * it was admitted and may still commit. Distinct from `null`, which says it was never admitted.
109
+ */
110
+ export interface LookupPending {
111
+ kind: "pending";
112
+ }
113
+ /** The one {@link LookupPending} answer. */
114
+ export declare const LOOKUP_PENDING: LookupPending;
63
115
  /** A transport to a shared authority that records outcomes by request identity. */
64
116
  export interface OperationTransport {
65
117
  /** Deliver the intent once; a repeated `requestId` must return the recorded outcome unchanged. */
66
118
  submit(intent: OperationIntent, options?: {
67
119
  signal?: AbortSignal;
68
120
  }): Promise<Outcome>;
69
- /** The recorded outcome for `requestId`, or `null` when the authority never recorded it. */
70
- lookup(requestId: string): Promise<Outcome | null>;
121
+ /**
122
+ * The recorded outcome for `requestId`; {@link LookupPending} when the authority holds it
123
+ * unanswered; or `null` when the authority never recorded it. A transport that cannot tell
124
+ * pending from absent answers `null` for both.
125
+ */
126
+ lookup(requestId: string): Promise<Outcome | LookupPending | null>;
127
+ }
128
+ /** Minimal classification for recorded-only delivery. A commit need not invent a new-head
129
+ * version (for example, an identified blob delete can carry its complete absence receipt). */
130
+ export interface NonExecutedAttempt {
131
+ kind: "not-executed";
132
+ attempts: number;
133
+ details: unknown;
134
+ }
135
+ export type RecordedWriteOutcome = NonExecutedAttempt | {
136
+ kind: "committed";
137
+ } | {
138
+ kind: "conflict";
139
+ } | {
140
+ kind: "refused";
141
+ code: string;
142
+ message: string;
143
+ } | {
144
+ kind: "unknown";
145
+ };
146
+ export type RecordedWriteIntent = Pick<OperationIntent, "requestId" | "kind" | "target" | "createdAt" | "attempts" | "state"> & {
147
+ /** Opt-in qualification; old no-prefix explicit callers retain their contract. */
148
+ notAppliedThrough?: number;
149
+ };
150
+ export interface RecordedWriteTransport<I extends RecordedWriteIntent, O extends RecordedWriteOutcome> {
151
+ submit(intent: I, options?: {
152
+ signal?: AbortSignal;
153
+ }): Promise<O>;
154
+ /** Null/absence is inconclusive and NEVER grants this path permission to submit. */
155
+ lookup(requestId: string): Promise<O | null>;
156
+ }
157
+ /** Explicit starts are for callers that own persistence, not proof minted by this primitive.
158
+ * submit-claimed requires a freshly successful durable in_flight CAS, held under the checkout
159
+ * lock, immediately before this call; its counted attempt is sent at most once. After reopening,
160
+ * or when that freshness cannot be established, use lookup. Replaying a stored claim is NOT a
161
+ * fresh CAS. Nor does a new CAS prove an earlier unclear delivery cannot still commit: those
162
+ * identities must use lookup. This function creates no ticket or journal persistence itself. */
163
+ export type RecordedWriteOptions = Omit<UncertainWriteOptions, "settlement" | "maxSubmissions" | "earlierDeliveryUnclear"> & {
164
+ settlement: "recorded-only";
165
+ start: "submit-claimed" | "lookup";
166
+ };
167
+ export interface RecordedWriteResult<I extends RecordedWriteIntent, O extends RecordedWriteOutcome> {
168
+ intent: Omit<I, "attempts" | "state"> & Pick<RecordedWriteIntent, "attempts" | "state">;
169
+ outcome: O | {
170
+ kind: "unknown";
171
+ };
172
+ lookups: number;
71
173
  }
72
174
  /** Wait `ms`, resolving early and harmlessly when `signal` aborts. Injected by tests. */
73
175
  export type Sleep = (ms: number, signal?: AbortSignal) => Promise<void>;
@@ -84,6 +186,20 @@ export interface UncertainWriteOptions {
84
186
  maxSubmissions?: number;
85
187
  /** Timer; defaults to a `setTimeout` sleep. */
86
188
  sleep?: Sleep;
189
+ /**
190
+ * Ends the call early once aborted: no further lookup or resubmission starts, the wait between
191
+ * lookups is cut short, and the outcome is `unknown` unless one was already known. Absent, the
192
+ * call runs every lookup and submission it is permitted.
193
+ */
194
+ signal?: AbortSignal;
195
+ /**
196
+ * The intent's earlier submission, made by an earlier call, ended without a definitive answer
197
+ * (its outcome was unknown, or the call stopped while it was in flight). A resubmission refused
198
+ * before execution is then `unknown`, as one after an unclear submission in this call is.
199
+ * Default false: an earlier submission answered with such a refusal (a paused intent requeued)
200
+ * may be resent and refused again definitively.
201
+ */
202
+ earlierDeliveryUnclear?: boolean;
87
203
  }
88
204
  export interface UncertainWriteResult {
89
205
  /** The intent with `attempts` and `state` advanced to reflect this call. */
@@ -92,12 +208,16 @@ export interface UncertainWriteResult {
92
208
  /** How many times `lookup` was called in this call. */
93
209
  lookups: number;
94
210
  }
95
- /** Refusal codes that mean the caller's authorization is gone rather than the content wrong. */
211
+ /**
212
+ * Refusal codes that pause shared operations rather than say the content is wrong: the caller's
213
+ * authorization is gone, or a hosted sync quota (`REQUEST_CAPACITY_*`, one per scope the host
214
+ * names) is spent. Nothing is lost; the refused intents are requeued when the store resumes.
215
+ */
96
216
  export declare const AUTHORIZATION_REFUSAL_CODES: ReadonlySet<string>;
97
217
  /** True when a refusal reports lost permission, which pauses further shared operations. */
98
- export declare function isAuthorizationRefusal(outcome: Outcome): boolean;
218
+ export declare function isAuthorizationRefusal(outcome: Outcome | RecordedWriteOutcome): boolean;
99
219
  /** The journal state an outcome settles an intent into. */
100
- export declare function stateForOutcome(outcome: Outcome): OperationState;
220
+ export declare function stateForOutcome(outcome: Outcome | RecordedWriteOutcome): OperationState;
101
221
  /** The longest request identity the wire accepts as `Idempotency-Key`. */
102
222
  export declare const REQUEST_ID_MAX_LENGTH = 128;
103
223
  /**
@@ -116,10 +236,12 @@ export declare function mintRequestId(): string;
116
236
  * at that version. This is the wire's post-expiry compare-and-swap property: a committed write
117
237
  * whose acknowledgement was lost and whose recorded outcome expired from the authority's
118
238
  * retention window is resubmitted with its original `base`, which no longer matches, and the
119
- * authority answers a conflict against the version the client itself committed. The mapping
120
- * depends only on the outcome and the intent, so the primitive owns it and every consumer
121
- * settles such a write as acknowledged rather than presenting it as a concurrent edit. Every
122
- * other conflict, including one against an absent head (`actual: null`), is returned unchanged.
239
+ * authority answers a conflict against the version the client itself committed. If the head
240
+ * has meanwhile returned to `base` exactly, the premise matches and the resubmission is applied
241
+ * again instead (see {@link performUncertainWrite}). The mapping depends only on the outcome and
242
+ * the intent, so the primitive owns it and every consumer settles such a write as acknowledged
243
+ * rather than presenting it as a concurrent edit. Every other conflict, including one against
244
+ * an absent head (`actual: null`), is returned unchanged.
123
245
  */
124
246
  export declare function settleAgainstIntent(outcome: Outcome, intent: OperationIntent): Outcome;
125
247
  /**
@@ -127,9 +249,9 @@ export declare function settleAgainstIntent(outcome: Outcome, intent: OperationI
127
249
  *
128
250
  * Flow: when the intent has never been submitted, submit it; when it has (`attempts > 0`), or
129
251
  * when a submission's outcome is unknown, look the request identity up. A positive lookup
130
- * settles the intent. A `null` lookup proves the authority never recorded the request, so a
131
- * resubmission with the same `requestId` is the first delivery and is allowed, up to
132
- * `maxSubmissions`. A lookup that fails leaves the outcome unknown and the intent for a later
252
+ * settles the intent. A `null` lookup is taken as proof that the authority never recorded the
253
+ * request, so a resubmission with the same `requestId` is the first delivery and is allowed, up
254
+ * to `maxSubmissions`. A lookup that fails leaves the outcome unknown and the intent for a later
133
255
  * call.
134
256
  *
135
257
  * No resubmission happens without a `null` lookup because a blind retry after an unknown
@@ -137,8 +259,26 @@ export declare function settleAgainstIntent(outcome: Outcome, intent: OperationI
137
259
  * twice, and even on one with it the retry can only ever learn what the lookup already knew.
138
260
  * The lookup is what turns "unknown" into a fact before any second delivery.
139
261
  *
262
+ * That fact is only as good as the transport's `null`. An authority that has expired or lost a
263
+ * record answers as if it never recorded it, and the reference wire transport returns `null`
264
+ * then. The resubmission is guarded only by its `base`, and versions are content hashes: if the
265
+ * write had landed and a third party has since restored `base` exactly, the premise matches, the
266
+ * write is applied a second time over that revert, and the outcome is `committed`. The hosted
267
+ * transport never answers `null` for an absent record once the intent is older than the host's
268
+ * stated retention window, less a skew margin, so it does not resubmit there.
269
+ *
270
+ * A refusal before execution ({@link isAuthorizationRefusal}) of a resubmission that follows an
271
+ * unclear submission (in this call, or an earlier one per `earlierDeliveryUnclear`) is `unknown`,
272
+ * carrying that refusal, not settled: a `null` lookup cannot prove an earlier delivery will not
273
+ * still arrive, and the delivery can still commit. After a {@link LookupPending} answer, which
274
+ * says a delivery is held, the same holds for every refusal the transport marks `executed`
275
+ * (a gateway's `400` included). A pending lookup still permits the resubmission.
276
+ *
140
277
  * By default every outcome passes through {@link settleAgainstIntent}, so a conflict naming the
141
278
  * intent's own version is committed. `recorded-only` preserves the recorded outcome instead.
142
279
  */
280
+ export declare function performUncertainWrite<I extends RecordedWriteIntent, O extends RecordedWriteOutcome>(transport: RecordedWriteTransport<I, O>, intent: I, options: RecordedWriteOptions): Promise<RecordedWriteResult<I, O>>;
281
+ /** Compatibility path: a complete document intent, with the existing counters/resubmission
282
+ * defaults. Body delivery's recorded-only call without start remains on this path. */
143
283
  export declare function performUncertainWrite(transport: OperationTransport, intent: OperationIntent, options?: UncertainWriteOptions): Promise<UncertainWriteResult>;
144
284
  //# sourceMappingURL=uncertain-write.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"uncertain-write.d.ts","sourceRoot":"","sources":["../src/uncertain-write.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,6FAA6F;AAC7F,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAE7D;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAE3G,wDAAwD;AACxD,MAAM,WAAW,eAAe;IAC9B,4FAA4F;IAC5F,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,aAAa,CAAC;IACpB,8EAA8E;IAC9E,MAAM,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IACrB,kDAAkD;IAClD,KAAK,EAAE,OAAO,CAAC;IACf,kFAAkF;IAClF,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,cAAc,CAAC;CACvB;AAED,uDAAuD;AACvD,MAAM,MAAM,OAAO,GACf;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAExB,mFAA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