@superbee/core 0.2.0-pre.6 → 0.2.0-pre.60

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 (820) hide show
  1. package/README.md +1425 -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 +50 -2
  7. package/dist/backend.d.ts.map +1 -1
  8. package/dist/backend.js +311 -33
  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-pages.d.ts +20 -0
  19. package/dist/body-pages.d.ts.map +1 -0
  20. package/dist/body-pages.js +56 -0
  21. package/dist/body-pages.js.map +1 -0
  22. package/dist/body-replace-guards.d.ts +81 -0
  23. package/dist/body-replace-guards.d.ts.map +1 -0
  24. package/dist/body-replace-guards.js +271 -0
  25. package/dist/body-replace-guards.js.map +1 -0
  26. package/dist/bounded-yaml.d.ts +28 -0
  27. package/dist/bounded-yaml.d.ts.map +1 -0
  28. package/dist/bounded-yaml.js +182 -0
  29. package/dist/bounded-yaml.js.map +1 -0
  30. package/dist/builtin-recipes/content.d.ts +93 -0
  31. package/dist/builtin-recipes/content.d.ts.map +1 -0
  32. package/dist/builtin-recipes/content.js +288 -0
  33. package/dist/builtin-recipes/content.js.map +1 -0
  34. package/dist/builtin-recipes/site.d.ts +5 -0
  35. package/dist/builtin-recipes/site.d.ts.map +1 -0
  36. package/dist/builtin-recipes/site.js +83 -0
  37. package/dist/builtin-recipes/site.js.map +1 -0
  38. package/dist/builtin-recipes.d.ts +13 -0
  39. package/dist/builtin-recipes.d.ts.map +1 -0
  40. package/dist/builtin-recipes.js +123 -0
  41. package/dist/builtin-recipes.js.map +1 -0
  42. package/dist/bundle-health/index.d.ts +14 -0
  43. package/dist/bundle-health/index.d.ts.map +1 -0
  44. package/dist/bundle-health/index.js +12 -0
  45. package/dist/bundle-health/index.js.map +1 -0
  46. package/dist/bundle-health/kind-findings.d.ts +45 -0
  47. package/dist/bundle-health/kind-findings.d.ts.map +1 -0
  48. package/dist/bundle-health/kind-findings.js +67 -0
  49. package/dist/bundle-health/kind-findings.js.map +1 -0
  50. package/dist/bundle-health/legacy-page.d.ts +21 -0
  51. package/dist/bundle-health/legacy-page.d.ts.map +1 -0
  52. package/dist/bundle-health/legacy-page.js +25 -0
  53. package/dist/bundle-health/legacy-page.js.map +1 -0
  54. package/dist/bundle-health/report.d.ts +191 -0
  55. package/dist/bundle-health/report.d.ts.map +1 -0
  56. package/dist/bundle-health/report.js +419 -0
  57. package/dist/bundle-health/report.js.map +1 -0
  58. package/dist/bundle-ops.d.ts +11 -5
  59. package/dist/bundle-ops.d.ts.map +1 -1
  60. package/dist/bundle-ops.js +17 -10
  61. package/dist/bundle-ops.js.map +1 -1
  62. package/dist/bundle.d.ts +2 -4
  63. package/dist/bundle.d.ts.map +1 -1
  64. package/dist/bundle.js +3 -12
  65. package/dist/bundle.js.map +1 -1
  66. package/dist/code-point-order.d.ts +8 -0
  67. package/dist/code-point-order.d.ts.map +1 -0
  68. package/dist/code-point-order.js +20 -0
  69. package/dist/code-point-order.js.map +1 -0
  70. package/dist/code-unit-order.d.ts +15 -0
  71. package/dist/code-unit-order.d.ts.map +1 -0
  72. package/dist/code-unit-order.js +17 -0
  73. package/dist/code-unit-order.js.map +1 -0
  74. package/dist/connector-request.d.ts +112 -0
  75. package/dist/connector-request.d.ts.map +1 -0
  76. package/dist/connector-request.js +495 -0
  77. package/dist/connector-request.js.map +1 -0
  78. package/dist/connectors.d.ts +297 -0
  79. package/dist/connectors.d.ts.map +1 -0
  80. package/dist/connectors.js +1233 -0
  81. package/dist/connectors.js.map +1 -0
  82. package/dist/convention-record.d.ts +9 -0
  83. package/dist/convention-record.d.ts.map +1 -0
  84. package/dist/convention-record.js +13 -0
  85. package/dist/convention-record.js.map +1 -0
  86. package/dist/cross-bundle.d.ts +135 -0
  87. package/dist/cross-bundle.d.ts.map +1 -0
  88. package/dist/cross-bundle.js +191 -0
  89. package/dist/cross-bundle.js.map +1 -0
  90. package/dist/dependencies.d.ts +208 -0
  91. package/dist/dependencies.d.ts.map +1 -0
  92. package/dist/dependencies.js +367 -0
  93. package/dist/dependencies.js.map +1 -0
  94. package/dist/document-codec.d.ts +4 -1
  95. package/dist/document-codec.d.ts.map +1 -1
  96. package/dist/document-codec.js +3 -1
  97. package/dist/document-codec.js.map +1 -1
  98. package/dist/document-field-actions.d.ts +34 -3
  99. package/dist/document-field-actions.d.ts.map +1 -1
  100. package/dist/document-field-actions.js +149 -43
  101. package/dist/document-field-actions.js.map +1 -1
  102. package/dist/document-mutation.d.ts +55 -18
  103. package/dist/document-mutation.d.ts.map +1 -1
  104. package/dist/document-mutation.js +210 -86
  105. package/dist/document-mutation.js.map +1 -1
  106. package/dist/document-persistence.d.ts +12 -0
  107. package/dist/document-persistence.d.ts.map +1 -0
  108. package/dist/document-persistence.js +44 -0
  109. package/dist/document-persistence.js.map +1 -0
  110. package/dist/document-replace-rules.d.ts +44 -0
  111. package/dist/document-replace-rules.d.ts.map +1 -0
  112. package/dist/document-replace-rules.js +41 -0
  113. package/dist/document-replace-rules.js.map +1 -0
  114. package/dist/document-scan.d.ts +26 -0
  115. package/dist/document-scan.d.ts.map +1 -0
  116. package/dist/document-scan.js +70 -0
  117. package/dist/document-scan.js.map +1 -0
  118. package/dist/document-transfer.d.ts +312 -0
  119. package/dist/document-transfer.d.ts.map +1 -0
  120. package/dist/document-transfer.js +1400 -0
  121. package/dist/document-transfer.js.map +1 -0
  122. package/dist/document-write-policy.d.ts +15 -4
  123. package/dist/document-write-policy.d.ts.map +1 -1
  124. package/dist/document-write-policy.js +41 -27
  125. package/dist/document-write-policy.js.map +1 -1
  126. package/dist/domain-model.d.ts +73 -0
  127. package/dist/domain-model.d.ts.map +1 -0
  128. package/dist/domain-model.js +169 -0
  129. package/dist/domain-model.js.map +1 -0
  130. package/dist/edge-harness/corpus.d.ts +9 -0
  131. package/dist/edge-harness/corpus.d.ts.map +1 -0
  132. package/dist/edge-harness/corpus.js +57 -0
  133. package/dist/edge-harness/corpus.js.map +1 -0
  134. package/dist/edge-harness/index.d.ts +21 -0
  135. package/dist/edge-harness/index.d.ts.map +1 -0
  136. package/dist/edge-harness/index.js +537 -0
  137. package/dist/edge-harness/index.js.map +1 -0
  138. package/dist/edges/find.d.ts +14 -0
  139. package/dist/edges/find.d.ts.map +1 -0
  140. package/dist/edges/find.js +46 -0
  141. package/dist/edges/find.js.map +1 -0
  142. package/dist/edges/index.d.ts +13 -0
  143. package/dist/edges/index.d.ts.map +1 -0
  144. package/dist/edges/index.js +5 -0
  145. package/dist/edges/index.js.map +1 -0
  146. package/dist/edges/memory-source.d.ts +8 -0
  147. package/dist/edges/memory-source.d.ts.map +1 -0
  148. package/dist/edges/memory-source.js +164 -0
  149. package/dist/edges/memory-source.js.map +1 -0
  150. package/dist/edges/read-bounds.d.ts +6 -0
  151. package/dist/edges/read-bounds.d.ts.map +1 -0
  152. package/dist/edges/read-bounds.js +13 -0
  153. package/dist/edges/read-bounds.js.map +1 -0
  154. package/dist/edges/source.d.ts +123 -0
  155. package/dist/edges/source.d.ts.map +1 -0
  156. package/dist/edges/source.js +2 -0
  157. package/dist/edges/source.js.map +1 -0
  158. package/dist/edges/walk.d.ts +7 -0
  159. package/dist/edges/walk.d.ts.map +1 -0
  160. package/dist/edges/walk.js +14 -0
  161. package/dist/edges/walk.js.map +1 -0
  162. package/dist/engine.d.ts +55 -19
  163. package/dist/engine.d.ts.map +1 -1
  164. package/dist/engine.js +141 -111
  165. package/dist/engine.js.map +1 -1
  166. package/dist/errors.d.ts +37 -1
  167. package/dist/errors.d.ts.map +1 -1
  168. package/dist/errors.js +75 -3
  169. package/dist/errors.js.map +1 -1
  170. package/dist/file-journaled-backend-internal.d.ts +21 -0
  171. package/dist/file-journaled-backend-internal.d.ts.map +1 -0
  172. package/dist/file-journaled-backend-internal.js +12 -0
  173. package/dist/file-journaled-backend-internal.js.map +1 -0
  174. package/dist/file-journaled-backend.d.ts +160 -0
  175. package/dist/file-journaled-backend.d.ts.map +1 -0
  176. package/dist/file-journaled-backend.js +1345 -0
  177. package/dist/file-journaled-backend.js.map +1 -0
  178. package/dist/filesystem-identity.d.ts +116 -17
  179. package/dist/filesystem-identity.d.ts.map +1 -1
  180. package/dist/filesystem-identity.js +532 -51
  181. package/dist/filesystem-identity.js.map +1 -1
  182. package/dist/filesystem-lock.d.ts +19 -2
  183. package/dist/filesystem-lock.d.ts.map +1 -1
  184. package/dist/filesystem-lock.js +259 -17
  185. package/dist/filesystem-lock.js.map +1 -1
  186. package/dist/filesystem-push-role.d.ts +77 -0
  187. package/dist/filesystem-push-role.d.ts.map +1 -0
  188. package/dist/filesystem-push-role.js +165 -0
  189. package/dist/filesystem-push-role.js.map +1 -0
  190. package/dist/filesystem-temp-name.d.ts +9 -0
  191. package/dist/filesystem-temp-name.d.ts.map +1 -0
  192. package/dist/filesystem-temp-name.js +20 -0
  193. package/dist/filesystem-temp-name.js.map +1 -0
  194. package/dist/filesystem.d.ts +6 -0
  195. package/dist/filesystem.d.ts.map +1 -1
  196. package/dist/filesystem.js +2 -1
  197. package/dist/filesystem.js.map +1 -1
  198. package/dist/freshness.d.ts +16 -1
  199. package/dist/freshness.d.ts.map +1 -1
  200. package/dist/freshness.js +47 -17
  201. package/dist/freshness.js.map +1 -1
  202. package/dist/frontmatter-contract.d.ts +14 -0
  203. package/dist/frontmatter-contract.d.ts.map +1 -1
  204. package/dist/frontmatter-contract.js +22 -0
  205. package/dist/frontmatter-contract.js.map +1 -1
  206. package/dist/frontmatter-splitter.d.ts +6 -0
  207. package/dist/frontmatter-splitter.d.ts.map +1 -1
  208. package/dist/frontmatter-splitter.js +8 -0
  209. package/dist/frontmatter-splitter.js.map +1 -1
  210. package/dist/frontmatter.d.ts +17 -7
  211. package/dist/frontmatter.d.ts.map +1 -1
  212. package/dist/frontmatter.js +52 -11
  213. package/dist/frontmatter.js.map +1 -1
  214. package/dist/governed-body-write.d.ts +8 -1
  215. package/dist/governed-body-write.d.ts.map +1 -1
  216. package/dist/governed-body-write.js +22 -8
  217. package/dist/governed-body-write.js.map +1 -1
  218. package/dist/heads-digest.d.ts.map +1 -1
  219. package/dist/heads-digest.js +2 -1
  220. package/dist/heads-digest.js.map +1 -1
  221. package/dist/host-text.d.ts +31 -0
  222. package/dist/host-text.d.ts.map +1 -0
  223. package/dist/host-text.js +77 -0
  224. package/dist/host-text.js.map +1 -0
  225. package/dist/hosted-client/binding.d.ts +7 -0
  226. package/dist/hosted-client/binding.d.ts.map +1 -0
  227. package/dist/hosted-client/binding.js +10 -0
  228. package/dist/hosted-client/binding.js.map +1 -0
  229. package/dist/hosted-client/blob-delivery.d.ts +68 -0
  230. package/dist/hosted-client/blob-delivery.d.ts.map +1 -0
  231. package/dist/hosted-client/blob-delivery.js +170 -0
  232. package/dist/hosted-client/blob-delivery.js.map +1 -0
  233. package/dist/hosted-client/blob-write.d.ts +387 -0
  234. package/dist/hosted-client/blob-write.d.ts.map +1 -0
  235. package/dist/hosted-client/blob-write.js +770 -0
  236. package/dist/hosted-client/blob-write.js.map +1 -0
  237. package/dist/hosted-client/bundle-listing.d.ts +46 -0
  238. package/dist/hosted-client/bundle-listing.d.ts.map +1 -0
  239. package/dist/hosted-client/bundle-listing.js +36 -0
  240. package/dist/hosted-client/bundle-listing.js.map +1 -0
  241. package/dist/hosted-client/client.d.ts +249 -0
  242. package/dist/hosted-client/client.d.ts.map +1 -0
  243. package/dist/hosted-client/client.js +381 -0
  244. package/dist/hosted-client/client.js.map +1 -0
  245. package/dist/hosted-client/directory.d.ts +46 -0
  246. package/dist/hosted-client/directory.d.ts.map +1 -0
  247. package/dist/hosted-client/directory.js +74 -0
  248. package/dist/hosted-client/directory.js.map +1 -0
  249. package/dist/hosted-client/errors.d.ts +26 -0
  250. package/dist/hosted-client/errors.d.ts.map +1 -0
  251. package/dist/hosted-client/errors.js +35 -0
  252. package/dist/hosted-client/errors.js.map +1 -0
  253. package/dist/hosted-client/inbox.d.ts +320 -0
  254. package/dist/hosted-client/inbox.d.ts.map +1 -0
  255. package/dist/hosted-client/inbox.js +379 -0
  256. package/dist/hosted-client/inbox.js.map +1 -0
  257. package/dist/hosted-client/index.d.ts +31 -0
  258. package/dist/hosted-client/index.d.ts.map +1 -0
  259. package/dist/hosted-client/index.js +33 -0
  260. package/dist/hosted-client/index.js.map +1 -0
  261. package/dist/hosted-client/journal.d.ts +103 -0
  262. package/dist/hosted-client/journal.d.ts.map +1 -0
  263. package/dist/hosted-client/journal.js +464 -0
  264. package/dist/hosted-client/journal.js.map +1 -0
  265. package/dist/hosted-client/node.d.ts +74 -0
  266. package/dist/hosted-client/node.d.ts.map +1 -0
  267. package/dist/hosted-client/node.js +219 -0
  268. package/dist/hosted-client/node.js.map +1 -0
  269. package/dist/hosted-client/reference.d.ts +12 -0
  270. package/dist/hosted-client/reference.d.ts.map +1 -0
  271. package/dist/hosted-client/reference.js +29 -0
  272. package/dist/hosted-client/reference.js.map +1 -0
  273. package/dist/hosted-client/view-content.d.ts +184 -0
  274. package/dist/hosted-client/view-content.d.ts.map +1 -0
  275. package/dist/hosted-client/view-content.js +268 -0
  276. package/dist/hosted-client/view-content.js.map +1 -0
  277. package/dist/hosted-client/write.d.ts +219 -0
  278. package/dist/hosted-client/write.d.ts.map +1 -0
  279. package/dist/hosted-client/write.js +419 -0
  280. package/dist/hosted-client/write.js.map +1 -0
  281. package/dist/hosted-transport/answer-rows.d.ts +344 -0
  282. package/dist/hosted-transport/answer-rows.d.ts.map +1 -0
  283. package/dist/hosted-transport/answer-rows.js +596 -0
  284. package/dist/hosted-transport/answer-rows.js.map +1 -0
  285. package/dist/hosted-transport/attribution.d.ts +32 -0
  286. package/dist/hosted-transport/attribution.d.ts.map +1 -0
  287. package/dist/hosted-transport/attribution.js +38 -0
  288. package/dist/hosted-transport/attribution.js.map +1 -0
  289. package/dist/hosted-transport/blob-reads.d.ts +35 -0
  290. package/dist/hosted-transport/blob-reads.d.ts.map +1 -0
  291. package/dist/hosted-transport/blob-reads.js +179 -0
  292. package/dist/hosted-transport/blob-reads.js.map +1 -0
  293. package/dist/hosted-transport/blob-write.d.ts +34 -0
  294. package/dist/hosted-transport/blob-write.d.ts.map +1 -0
  295. package/dist/hosted-transport/blob-write.js +115 -0
  296. package/dist/hosted-transport/blob-write.js.map +1 -0
  297. package/dist/hosted-transport/carrier.d.ts +166 -0
  298. package/dist/hosted-transport/carrier.d.ts.map +1 -0
  299. package/dist/hosted-transport/carrier.js +285 -0
  300. package/dist/hosted-transport/carrier.js.map +1 -0
  301. package/dist/hosted-transport/document-backend.d.ts +74 -0
  302. package/dist/hosted-transport/document-backend.d.ts.map +1 -0
  303. package/dist/hosted-transport/document-backend.js +160 -0
  304. package/dist/hosted-transport/document-backend.js.map +1 -0
  305. package/dist/hosted-transport/history-pages.d.ts +55 -0
  306. package/dist/hosted-transport/history-pages.d.ts.map +1 -0
  307. package/dist/hosted-transport/history-pages.js +69 -0
  308. package/dist/hosted-transport/history-pages.js.map +1 -0
  309. package/dist/hosted-transport/index.d.ts +21 -0
  310. package/dist/hosted-transport/index.d.ts.map +1 -0
  311. package/dist/hosted-transport/index.js +21 -0
  312. package/dist/hosted-transport/index.js.map +1 -0
  313. package/dist/hosted-transport/operations.d.ts +91 -0
  314. package/dist/hosted-transport/operations.d.ts.map +1 -0
  315. package/dist/hosted-transport/operations.js +129 -0
  316. package/dist/hosted-transport/operations.js.map +1 -0
  317. package/dist/hosted-transport/paged-reads.d.ts +87 -0
  318. package/dist/hosted-transport/paged-reads.d.ts.map +1 -0
  319. package/dist/hosted-transport/paged-reads.js +238 -0
  320. package/dist/hosted-transport/paged-reads.js.map +1 -0
  321. package/dist/hosted-transport/port-run.d.ts +41 -0
  322. package/dist/hosted-transport/port-run.d.ts.map +1 -0
  323. package/dist/hosted-transport/port-run.js +92 -0
  324. package/dist/hosted-transport/port-run.js.map +1 -0
  325. package/dist/hosted-transport/read-adapter.d.ts +266 -0
  326. package/dist/hosted-transport/read-adapter.d.ts.map +1 -0
  327. package/dist/hosted-transport/read-adapter.js +570 -0
  328. package/dist/hosted-transport/read-adapter.js.map +1 -0
  329. package/dist/hosted-transport/root-write.d.ts +114 -0
  330. package/dist/hosted-transport/root-write.d.ts.map +1 -0
  331. package/dist/hosted-transport/root-write.js +174 -0
  332. package/dist/hosted-transport/root-write.js.map +1 -0
  333. package/dist/hosted-transport/whole-document-transport.d.ts +223 -0
  334. package/dist/hosted-transport/whole-document-transport.d.ts.map +1 -0
  335. package/dist/hosted-transport/whole-document-transport.js +500 -0
  336. package/dist/hosted-transport/whole-document-transport.js.map +1 -0
  337. package/dist/identity-fold.d.ts +16 -0
  338. package/dist/identity-fold.d.ts.map +1 -0
  339. package/dist/identity-fold.js +24 -0
  340. package/dist/identity-fold.js.map +1 -0
  341. package/dist/index-projection.d.ts +2 -1
  342. package/dist/index-projection.d.ts.map +1 -1
  343. package/dist/index-projection.js +38 -28
  344. package/dist/index-projection.js.map +1 -1
  345. package/dist/index.d.ts +65 -20
  346. package/dist/index.d.ts.map +1 -1
  347. package/dist/index.js +54 -22
  348. package/dist/index.js.map +1 -1
  349. package/dist/indexeddb-backend.d.ts +6 -32
  350. package/dist/indexeddb-backend.d.ts.map +1 -1
  351. package/dist/indexeddb-backend.js +82 -8
  352. package/dist/indexeddb-backend.js.map +1 -1
  353. package/dist/inventory-guard.d.ts +58 -0
  354. package/dist/inventory-guard.d.ts.map +1 -0
  355. package/dist/inventory-guard.js +169 -0
  356. package/dist/inventory-guard.js.map +1 -0
  357. package/dist/journaled-backend.d.ts +86 -8
  358. package/dist/journaled-backend.d.ts.map +1 -1
  359. package/dist/journaled-backend.js +64 -69
  360. package/dist/journaled-backend.js.map +1 -1
  361. package/dist/json-data.d.ts +3 -0
  362. package/dist/json-data.d.ts.map +1 -0
  363. package/dist/json-data.js +19 -0
  364. package/dist/json-data.js.map +1 -0
  365. package/dist/kind-authoring.d.ts +200 -0
  366. package/dist/kind-authoring.d.ts.map +1 -0
  367. package/dist/kind-authoring.js +539 -0
  368. package/dist/kind-authoring.js.map +1 -0
  369. package/dist/kind-changes.d.ts +45 -0
  370. package/dist/kind-changes.d.ts.map +1 -0
  371. package/dist/kind-changes.js +96 -0
  372. package/dist/kind-changes.js.map +1 -0
  373. package/dist/kind-conformance-error.d.ts +16 -0
  374. package/dist/kind-conformance-error.d.ts.map +1 -0
  375. package/dist/kind-conformance-error.js +20 -0
  376. package/dist/kind-conformance-error.js.map +1 -0
  377. package/dist/kind-coverage.d.ts +100 -0
  378. package/dist/kind-coverage.d.ts.map +1 -0
  379. package/dist/kind-coverage.js +185 -0
  380. package/dist/kind-coverage.js.map +1 -0
  381. package/dist/kind-deprecation.d.ts +32 -0
  382. package/dist/kind-deprecation.d.ts.map +1 -0
  383. package/dist/kind-deprecation.js +141 -0
  384. package/dist/kind-deprecation.js.map +1 -0
  385. package/dist/kind-field-mutation.d.ts +7 -2
  386. package/dist/kind-field-mutation.d.ts.map +1 -1
  387. package/dist/kind-field-mutation.js +28 -3
  388. package/dist/kind-field-mutation.js.map +1 -1
  389. package/dist/kind-undeclared-fields.d.ts +72 -0
  390. package/dist/kind-undeclared-fields.d.ts.map +1 -0
  391. package/dist/kind-undeclared-fields.js +124 -0
  392. package/dist/kind-undeclared-fields.js.map +1 -0
  393. package/dist/kinds-load.d.ts.map +1 -1
  394. package/dist/kinds-load.js +8 -5
  395. package/dist/kinds-load.js.map +1 -1
  396. package/dist/kinds.d.ts +117 -6
  397. package/dist/kinds.d.ts.map +1 -1
  398. package/dist/kinds.js +416 -29
  399. package/dist/kinds.js.map +1 -1
  400. package/dist/link-add.d.ts +81 -0
  401. package/dist/link-add.d.ts.map +1 -0
  402. package/dist/link-add.js +94 -0
  403. package/dist/link-add.js.map +1 -0
  404. package/dist/link-emit.d.ts +29 -0
  405. package/dist/link-emit.d.ts.map +1 -0
  406. package/dist/link-emit.js +39 -0
  407. package/dist/link-emit.js.map +1 -0
  408. package/dist/link-findings.d.ts +132 -0
  409. package/dist/link-findings.d.ts.map +1 -0
  410. package/dist/link-findings.js +263 -0
  411. package/dist/link-findings.js.map +1 -0
  412. package/dist/link-types.d.ts +34 -0
  413. package/dist/link-types.d.ts.map +1 -0
  414. package/dist/link-types.js +79 -0
  415. package/dist/link-types.js.map +1 -0
  416. package/dist/links.d.ts +68 -9
  417. package/dist/links.d.ts.map +1 -1
  418. package/dist/links.js +373 -65
  419. package/dist/links.js.map +1 -1
  420. package/dist/local-search-index.d.ts +86 -0
  421. package/dist/local-search-index.d.ts.map +1 -0
  422. package/dist/local-search-index.js +1055 -0
  423. package/dist/local-search-index.js.map +1 -0
  424. package/dist/managed-document-metadata.d.ts +5 -0
  425. package/dist/managed-document-metadata.d.ts.map +1 -0
  426. package/dist/managed-document-metadata.js +10 -0
  427. package/dist/managed-document-metadata.js.map +1 -0
  428. package/dist/markdown-syntax.d.ts +39 -0
  429. package/dist/markdown-syntax.d.ts.map +1 -0
  430. package/dist/markdown-syntax.js +10170 -0
  431. package/dist/markdown-syntax.js.map +1 -0
  432. package/dist/memory-backend.d.ts +3 -0
  433. package/dist/memory-backend.d.ts.map +1 -1
  434. package/dist/memory-backend.js +40 -2
  435. package/dist/memory-backend.js.map +1 -1
  436. package/dist/mutation-attribution.d.ts +2 -1
  437. package/dist/mutation-attribution.d.ts.map +1 -1
  438. package/dist/mutation-attribution.js.map +1 -1
  439. package/dist/okf-actor.d.ts +14 -3
  440. package/dist/okf-actor.d.ts.map +1 -1
  441. package/dist/okf-actor.js +25 -4
  442. package/dist/okf-actor.js.map +1 -1
  443. package/dist/okf-authored-values.d.ts +2 -0
  444. package/dist/okf-authored-values.d.ts.map +1 -1
  445. package/dist/okf-authored-values.js +4 -0
  446. package/dist/okf-authored-values.js.map +1 -1
  447. package/dist/okf-authoring.d.ts +7 -0
  448. package/dist/okf-authoring.d.ts.map +1 -0
  449. package/dist/okf-authoring.js +30 -0
  450. package/dist/okf-authoring.js.map +1 -0
  451. package/dist/okf-standard-fields.d.ts +4 -0
  452. package/dist/okf-standard-fields.d.ts.map +1 -1
  453. package/dist/okf-standard-fields.js +24 -14
  454. package/dist/okf-standard-fields.js.map +1 -1
  455. package/dist/okf-timestamps.d.ts +2 -2
  456. package/dist/okf-timestamps.d.ts.map +1 -1
  457. package/dist/okf-timestamps.js +25 -15
  458. package/dist/okf-timestamps.js.map +1 -1
  459. package/dist/page.d.ts +3 -7
  460. package/dist/page.d.ts.map +1 -1
  461. package/dist/page.js +3 -7
  462. package/dist/page.js.map +1 -1
  463. package/dist/path-fold.d.ts +67 -0
  464. package/dist/path-fold.d.ts.map +1 -0
  465. package/dist/path-fold.js +107 -0
  466. package/dist/path-fold.js.map +1 -0
  467. package/dist/paths.d.ts +46 -0
  468. package/dist/paths.d.ts.map +1 -1
  469. package/dist/paths.js +114 -1
  470. package/dist/paths.js.map +1 -1
  471. package/dist/platform.d.ts +22 -2
  472. package/dist/platform.d.ts.map +1 -1
  473. package/dist/platform.js +16 -0
  474. package/dist/platform.js.map +1 -1
  475. package/dist/portable-export-contract.d.ts +17 -0
  476. package/dist/portable-export-contract.d.ts.map +1 -0
  477. package/dist/portable-export-contract.js +59 -0
  478. package/dist/portable-export-contract.js.map +1 -0
  479. package/dist/portable-export.d.ts +111 -0
  480. package/dist/portable-export.d.ts.map +1 -0
  481. package/dist/portable-export.js +448 -0
  482. package/dist/portable-export.js.map +1 -0
  483. package/dist/portable-frontmatter.d.ts +17 -0
  484. package/dist/portable-frontmatter.d.ts.map +1 -1
  485. package/dist/portable-frontmatter.js +42 -5
  486. package/dist/portable-frontmatter.js.map +1 -1
  487. package/dist/publication-filesystem.d.ts +1 -1
  488. package/dist/publication-filesystem.d.ts.map +1 -1
  489. package/dist/publication-filesystem.js +1 -1
  490. package/dist/publication-filesystem.js.map +1 -1
  491. package/dist/qualified-links.d.ts +67 -0
  492. package/dist/qualified-links.d.ts.map +1 -0
  493. package/dist/qualified-links.js +121 -0
  494. package/dist/qualified-links.js.map +1 -0
  495. package/dist/query-filter.d.ts +16 -4
  496. package/dist/query-filter.d.ts.map +1 -1
  497. package/dist/query-filter.js +44 -2
  498. package/dist/query-filter.js.map +1 -1
  499. package/dist/query-order.d.ts +22 -0
  500. package/dist/query-order.d.ts.map +1 -0
  501. package/dist/query-order.js +43 -0
  502. package/dist/query-order.js.map +1 -0
  503. package/dist/recipe-lifecycle/errors.d.ts +96 -0
  504. package/dist/recipe-lifecycle/errors.d.ts.map +1 -0
  505. package/dist/recipe-lifecycle/errors.js +122 -0
  506. package/dist/recipe-lifecycle/errors.js.map +1 -0
  507. package/dist/recipe-lifecycle/evolution.d.ts +134 -0
  508. package/dist/recipe-lifecycle/evolution.d.ts.map +1 -0
  509. package/dist/recipe-lifecycle/evolution.js +1047 -0
  510. package/dist/recipe-lifecycle/evolution.js.map +1 -0
  511. package/dist/recipe-lifecycle/index.d.ts +38 -0
  512. package/dist/recipe-lifecycle/index.d.ts.map +1 -0
  513. package/dist/recipe-lifecycle/index.js +31 -0
  514. package/dist/recipe-lifecycle/index.js.map +1 -0
  515. package/dist/recipe-lifecycle/install.d.ts +172 -0
  516. package/dist/recipe-lifecycle/install.d.ts.map +1 -0
  517. package/dist/recipe-lifecycle/install.js +652 -0
  518. package/dist/recipe-lifecycle/install.js.map +1 -0
  519. package/dist/recipe-lifecycle/legacy-aliases.d.ts +4 -0
  520. package/dist/recipe-lifecycle/legacy-aliases.d.ts.map +1 -0
  521. package/dist/recipe-lifecycle/legacy-aliases.js +22 -0
  522. package/dist/recipe-lifecycle/legacy-aliases.js.map +1 -0
  523. package/dist/recipe-lifecycle/retirement-apply.d.ts +59 -0
  524. package/dist/recipe-lifecycle/retirement-apply.d.ts.map +1 -0
  525. package/dist/recipe-lifecycle/retirement-apply.js +165 -0
  526. package/dist/recipe-lifecycle/retirement-apply.js.map +1 -0
  527. package/dist/recipe-lifecycle/retirement.d.ts +89 -0
  528. package/dist/recipe-lifecycle/retirement.d.ts.map +1 -0
  529. package/dist/recipe-lifecycle/retirement.js +347 -0
  530. package/dist/recipe-lifecycle/retirement.js.map +1 -0
  531. package/dist/recipe-lifecycle/set-commit.d.ts +31 -0
  532. package/dist/recipe-lifecycle/set-commit.d.ts.map +1 -0
  533. package/dist/recipe-lifecycle/set-commit.js +37 -0
  534. package/dist/recipe-lifecycle/set-commit.js.map +1 -0
  535. package/dist/recipe-lifecycle/stamp.d.ts +146 -0
  536. package/dist/recipe-lifecycle/stamp.d.ts.map +1 -0
  537. package/dist/recipe-lifecycle/stamp.js +361 -0
  538. package/dist/recipe-lifecycle/stamp.js.map +1 -0
  539. package/dist/recipe-qualify.d.ts +80 -0
  540. package/dist/recipe-qualify.d.ts.map +1 -0
  541. package/dist/recipe-qualify.js +352 -0
  542. package/dist/recipe-qualify.js.map +1 -0
  543. package/dist/recipe-set-preflight.d.ts +139 -0
  544. package/dist/recipe-set-preflight.d.ts.map +1 -0
  545. package/dist/recipe-set-preflight.js +536 -0
  546. package/dist/recipe-set-preflight.js.map +1 -0
  547. package/dist/recipe-sources.d.ts +209 -0
  548. package/dist/recipe-sources.d.ts.map +1 -0
  549. package/dist/recipe-sources.js +607 -0
  550. package/dist/recipe-sources.js.map +1 -0
  551. package/dist/recipes.d.ts +45 -1
  552. package/dist/recipes.d.ts.map +1 -1
  553. package/dist/recipes.js +138 -1
  554. package/dist/recipes.js.map +1 -1
  555. package/dist/record-overlay/apply.d.ts +43 -0
  556. package/dist/record-overlay/apply.d.ts.map +1 -0
  557. package/dist/record-overlay/apply.js +523 -0
  558. package/dist/record-overlay/apply.js.map +1 -0
  559. package/dist/record-overlay/canonical.d.ts +22 -0
  560. package/dist/record-overlay/canonical.d.ts.map +1 -0
  561. package/dist/record-overlay/canonical.js +47 -0
  562. package/dist/record-overlay/canonical.js.map +1 -0
  563. package/dist/record-overlay/digest.d.ts +4 -0
  564. package/dist/record-overlay/digest.d.ts.map +1 -0
  565. package/dist/record-overlay/digest.js +11 -0
  566. package/dist/record-overlay/digest.js.map +1 -0
  567. package/dist/record-overlay/errors.d.ts +44 -0
  568. package/dist/record-overlay/errors.d.ts.map +1 -0
  569. package/dist/record-overlay/errors.js +55 -0
  570. package/dist/record-overlay/errors.js.map +1 -0
  571. package/dist/record-overlay/findings.d.ts +5 -0
  572. package/dist/record-overlay/findings.d.ts.map +1 -0
  573. package/dist/record-overlay/findings.js +86 -0
  574. package/dist/record-overlay/findings.js.map +1 -0
  575. package/dist/record-overlay/index.d.ts +23 -0
  576. package/dist/record-overlay/index.d.ts.map +1 -0
  577. package/dist/record-overlay/index.js +21 -0
  578. package/dist/record-overlay/index.js.map +1 -0
  579. package/dist/record-overlay/plan.d.ts +12 -0
  580. package/dist/record-overlay/plan.d.ts.map +1 -0
  581. package/dist/record-overlay/plan.js +285 -0
  582. package/dist/record-overlay/plan.js.map +1 -0
  583. package/dist/record-overlay/policy.d.ts +74 -0
  584. package/dist/record-overlay/policy.d.ts.map +1 -0
  585. package/dist/record-overlay/policy.js +235 -0
  586. package/dist/record-overlay/policy.js.map +1 -0
  587. package/dist/record-overlay/redact.d.ts +3 -0
  588. package/dist/record-overlay/redact.d.ts.map +1 -0
  589. package/dist/record-overlay/redact.js +27 -0
  590. package/dist/record-overlay/redact.js.map +1 -0
  591. package/dist/record-overlay/signal-kind.d.ts +30 -0
  592. package/dist/record-overlay/signal-kind.d.ts.map +1 -0
  593. package/dist/record-overlay/signal-kind.js +38 -0
  594. package/dist/record-overlay/signal-kind.js.map +1 -0
  595. package/dist/record-overlay/signal-text.d.ts +52 -0
  596. package/dist/record-overlay/signal-text.d.ts.map +1 -0
  597. package/dist/record-overlay/signal-text.js +126 -0
  598. package/dist/record-overlay/signal-text.js.map +1 -0
  599. package/dist/record-overlay/source-index.d.ts +19 -0
  600. package/dist/record-overlay/source-index.d.ts.map +1 -0
  601. package/dist/record-overlay/source-index.js +102 -0
  602. package/dist/record-overlay/source-index.js.map +1 -0
  603. package/dist/record-overlay/types.d.ts +291 -0
  604. package/dist/record-overlay/types.d.ts.map +1 -0
  605. package/dist/record-overlay/types.js +2 -0
  606. package/dist/record-overlay/types.js.map +1 -0
  607. package/dist/relationships.d.ts +71 -0
  608. package/dist/relationships.d.ts.map +1 -0
  609. package/dist/relationships.js +87 -0
  610. package/dist/relationships.js.map +1 -0
  611. package/dist/remote-backend.d.ts +67 -32
  612. package/dist/remote-backend.d.ts.map +1 -1
  613. package/dist/remote-backend.js +171 -39
  614. package/dist/remote-backend.js.map +1 -1
  615. package/dist/remote-document-codec.d.ts +2 -1
  616. package/dist/remote-document-codec.d.ts.map +1 -1
  617. package/dist/remote-document-codec.js +3 -2
  618. package/dist/remote-document-codec.js.map +1 -1
  619. package/dist/remote-error.d.ts +17 -1
  620. package/dist/remote-error.d.ts.map +1 -1
  621. package/dist/remote-error.js +32 -2
  622. package/dist/remote-error.js.map +1 -1
  623. package/dist/remote-operations.d.ts +0 -40
  624. package/dist/remote-operations.d.ts.map +1 -1
  625. package/dist/remote-operations.js +28 -6
  626. package/dist/remote-operations.js.map +1 -1
  627. package/dist/remote-parsers.d.ts +20 -1
  628. package/dist/remote-parsers.d.ts.map +1 -1
  629. package/dist/remote-parsers.js +1 -1
  630. package/dist/remote-parsers.js.map +1 -1
  631. package/dist/remote.d.ts +2 -4
  632. package/dist/remote.d.ts.map +1 -1
  633. package/dist/remote.js +2 -3
  634. package/dist/remote.js.map +1 -1
  635. package/dist/reserved-write.d.ts +9 -0
  636. package/dist/reserved-write.d.ts.map +1 -0
  637. package/dist/reserved-write.js +15 -0
  638. package/dist/reserved-write.js.map +1 -0
  639. package/dist/search/backend-source.d.ts +6 -0
  640. package/dist/search/backend-source.d.ts.map +1 -0
  641. package/dist/search/backend-source.js +57 -0
  642. package/dist/search/backend-source.js.map +1 -0
  643. package/dist/search/contract.d.ts +162 -0
  644. package/dist/search/contract.d.ts.map +1 -0
  645. package/dist/search/contract.js +82 -0
  646. package/dist/search/contract.js.map +1 -0
  647. package/dist/search/errors.d.ts +30 -0
  648. package/dist/search/errors.d.ts.map +1 -0
  649. package/dist/search/errors.js +50 -0
  650. package/dist/search/errors.js.map +1 -0
  651. package/dist/search/identity.d.ts +12 -0
  652. package/dist/search/identity.d.ts.map +1 -0
  653. package/dist/search/identity.js +90 -0
  654. package/dist/search/identity.js.map +1 -0
  655. package/dist/search/index.d.ts +16 -0
  656. package/dist/search/index.d.ts.map +1 -0
  657. package/dist/search/index.js +15 -0
  658. package/dist/search/index.js.map +1 -0
  659. package/dist/search/memory-source.d.ts +36 -0
  660. package/dist/search/memory-source.d.ts.map +1 -0
  661. package/dist/search/memory-source.js +238 -0
  662. package/dist/search/memory-source.js.map +1 -0
  663. package/dist/search/rank.d.ts +29 -0
  664. package/dist/search/rank.d.ts.map +1 -0
  665. package/dist/search/rank.js +132 -0
  666. package/dist/search/rank.js.map +1 -0
  667. package/dist/search/row-text.d.ts +38 -0
  668. package/dist/search/row-text.d.ts.map +1 -0
  669. package/dist/search/row-text.js +88 -0
  670. package/dist/search/row-text.js.map +1 -0
  671. package/dist/search/search.d.ts +28 -0
  672. package/dist/search/search.d.ts.map +1 -0
  673. package/dist/search/search.js +265 -0
  674. package/dist/search/search.js.map +1 -0
  675. package/dist/search/source.d.ts +70 -0
  676. package/dist/search/source.d.ts.map +1 -0
  677. package/dist/search/source.js +2 -0
  678. package/dist/search/source.js.map +1 -0
  679. package/dist/search/text.d.ts +49 -0
  680. package/dist/search/text.d.ts.map +1 -0
  681. package/dist/search/text.js +165 -0
  682. package/dist/search/text.js.map +1 -0
  683. package/dist/search-index.d.ts +9 -0
  684. package/dist/search-index.d.ts.map +1 -0
  685. package/dist/search-index.js +9 -0
  686. package/dist/search-index.js.map +1 -0
  687. package/dist/sha256.d.ts.map +1 -1
  688. package/dist/sha256.js +3 -2
  689. package/dist/sha256.js.map +1 -1
  690. package/dist/site-capabilities.d.ts +345 -0
  691. package/dist/site-capabilities.d.ts.map +1 -0
  692. package/dist/site-capabilities.js +724 -0
  693. package/dist/site-capabilities.js.map +1 -0
  694. package/dist/site-manifest.d.ts +51 -0
  695. package/dist/site-manifest.d.ts.map +1 -0
  696. package/dist/site-manifest.js +115 -0
  697. package/dist/site-manifest.js.map +1 -0
  698. package/dist/skip-reasons.d.ts +12 -0
  699. package/dist/skip-reasons.d.ts.map +1 -0
  700. package/dist/skip-reasons.js +15 -0
  701. package/dist/skip-reasons.js.map +1 -0
  702. package/dist/source-engine/driver.d.ts +40 -0
  703. package/dist/source-engine/driver.d.ts.map +1 -0
  704. package/dist/source-engine/driver.js +513 -0
  705. package/dist/source-engine/driver.js.map +1 -0
  706. package/dist/source-engine/evidence.d.ts +39 -0
  707. package/dist/source-engine/evidence.d.ts.map +1 -0
  708. package/dist/source-engine/evidence.js +54 -0
  709. package/dist/source-engine/evidence.js.map +1 -0
  710. package/dist/source-engine/guard.d.ts +87 -0
  711. package/dist/source-engine/guard.d.ts.map +1 -0
  712. package/dist/source-engine/guard.js +427 -0
  713. package/dist/source-engine/guard.js.map +1 -0
  714. package/dist/source-engine/index.d.ts +35 -0
  715. package/dist/source-engine/index.d.ts.map +1 -0
  716. package/dist/source-engine/index.js +27 -0
  717. package/dist/source-engine/index.js.map +1 -0
  718. package/dist/source-engine/machine-state.d.ts +87 -0
  719. package/dist/source-engine/machine-state.d.ts.map +1 -0
  720. package/dist/source-engine/machine-state.js +94 -0
  721. package/dist/source-engine/machine-state.js.map +1 -0
  722. package/dist/source-engine/observe.d.ts +10 -0
  723. package/dist/source-engine/observe.d.ts.map +1 -0
  724. package/dist/source-engine/observe.js +276 -0
  725. package/dist/source-engine/observe.js.map +1 -0
  726. package/dist/source-engine/overlay.d.ts +50 -0
  727. package/dist/source-engine/overlay.d.ts.map +1 -0
  728. package/dist/source-engine/overlay.js +114 -0
  729. package/dist/source-engine/overlay.js.map +1 -0
  730. package/dist/source-engine/robots.d.ts +53 -0
  731. package/dist/source-engine/robots.d.ts.map +1 -0
  732. package/dist/source-engine/robots.js +158 -0
  733. package/dist/source-engine/robots.js.map +1 -0
  734. package/dist/source-engine/snapshot.d.ts +104 -0
  735. package/dist/source-engine/snapshot.d.ts.map +1 -0
  736. package/dist/source-engine/snapshot.js +240 -0
  737. package/dist/source-engine/snapshot.js.map +1 -0
  738. package/dist/source-engine/target-consumer.d.ts +12 -0
  739. package/dist/source-engine/target-consumer.d.ts.map +1 -0
  740. package/dist/source-engine/target-consumer.js +15 -0
  741. package/dist/source-engine/target-consumer.js.map +1 -0
  742. package/dist/source-engine/target-descriptor.d.ts +3 -0
  743. package/dist/source-engine/target-descriptor.d.ts.map +1 -0
  744. package/dist/source-engine/target-descriptor.js +26 -0
  745. package/dist/source-engine/target-descriptor.js.map +1 -0
  746. package/dist/source-engine/target.d.ts +82 -0
  747. package/dist/source-engine/target.d.ts.map +1 -0
  748. package/dist/source-engine/target.js +213 -0
  749. package/dist/source-engine/target.js.map +1 -0
  750. package/dist/source-engine/types.d.ts +296 -0
  751. package/dist/source-engine/types.d.ts.map +1 -0
  752. package/dist/source-engine/types.js +2 -0
  753. package/dist/source-engine/types.js.map +1 -0
  754. package/dist/source-harness/conformance.d.ts +16 -0
  755. package/dist/source-harness/conformance.d.ts.map +1 -0
  756. package/dist/source-harness/conformance.js +266 -0
  757. package/dist/source-harness/conformance.js.map +1 -0
  758. package/dist/source-harness/fixture.d.ts +97 -0
  759. package/dist/source-harness/fixture.d.ts.map +1 -0
  760. package/dist/source-harness/fixture.js +276 -0
  761. package/dist/source-harness/fixture.js.map +1 -0
  762. package/dist/source-harness/index.d.ts +22 -0
  763. package/dist/source-harness/index.d.ts.map +1 -0
  764. package/dist/source-harness/index.js +19 -0
  765. package/dist/source-harness/index.js.map +1 -0
  766. package/dist/source-harness/peer.d.ts +74 -0
  767. package/dist/source-harness/peer.d.ts.map +1 -0
  768. package/dist/source-harness/peer.js +106 -0
  769. package/dist/source-harness/peer.js.map +1 -0
  770. package/dist/source-profiles/index.d.ts +31 -0
  771. package/dist/source-profiles/index.d.ts.map +1 -0
  772. package/dist/source-profiles/index.js +206 -0
  773. package/dist/source-profiles/index.js.map +1 -0
  774. package/dist/source-profiles/link-header.d.ts +6 -0
  775. package/dist/source-profiles/link-header.d.ts.map +1 -0
  776. package/dist/source-profiles/link-header.js +131 -0
  777. package/dist/source-profiles/link-header.js.map +1 -0
  778. package/dist/storage-harness/contract.d.ts +109 -0
  779. package/dist/storage-harness/contract.d.ts.map +1 -0
  780. package/dist/storage-harness/contract.js +853 -0
  781. package/dist/storage-harness/contract.js.map +1 -0
  782. package/dist/storage-harness/index.d.ts +39 -0
  783. package/dist/storage-harness/index.d.ts.map +1 -0
  784. package/dist/storage-harness/index.js +55 -0
  785. package/dist/storage-harness/index.js.map +1 -0
  786. package/dist/storage.d.ts +10 -2
  787. package/dist/storage.d.ts.map +1 -1
  788. package/dist/storage.js +10 -2
  789. package/dist/storage.js.map +1 -1
  790. package/dist/string-identity-agreement.d.ts +35 -0
  791. package/dist/string-identity-agreement.d.ts.map +1 -0
  792. package/dist/string-identity-agreement.js +78 -0
  793. package/dist/string-identity-agreement.js.map +1 -0
  794. package/dist/system-documents.d.ts +82 -0
  795. package/dist/system-documents.d.ts.map +1 -0
  796. package/dist/system-documents.js +127 -0
  797. package/dist/system-documents.js.map +1 -0
  798. package/dist/types.d.ts +54 -8
  799. package/dist/types.d.ts.map +1 -1
  800. package/dist/types.js +0 -10
  801. package/dist/types.js.map +1 -1
  802. package/dist/uncertain-write.d.ts +164 -17
  803. package/dist/uncertain-write.d.ts.map +1 -1
  804. package/dist/uncertain-write.js +86 -30
  805. package/dist/uncertain-write.js.map +1 -1
  806. package/dist/validation.d.ts +5 -0
  807. package/dist/validation.d.ts.map +1 -1
  808. package/dist/verification.d.ts +22 -10
  809. package/dist/verification.d.ts.map +1 -1
  810. package/dist/verification.js +87 -39
  811. package/dist/verification.js.map +1 -1
  812. package/dist/view-launch-contract.d.ts +14 -0
  813. package/dist/view-launch-contract.d.ts.map +1 -0
  814. package/dist/view-launch-contract.js +23 -0
  815. package/dist/view-launch-contract.js.map +1 -0
  816. package/dist/write-identity.d.ts +5 -0
  817. package/dist/write-identity.d.ts.map +1 -0
  818. package/dist/write-identity.js +9 -0
  819. package/dist/write-identity.js.map +1 -0
  820. package/package.json +202 -8
@@ -0,0 +1,127 @@
1
+ /**
2
+ * The one answer to "which data in a bundle is Superbee's own?". A bundle holds people's documents
3
+ * and Superbee's own records side by side; {@link OWNED_LOCATIONS} is the only list of the latter.
4
+ * Every document belongs to exactly one {@link BundleSection}, answered by {@link sectionOf}.
5
+ *
6
+ * Each entry names where a kind of record lives (an exact id or a folder prefix) and its marker
7
+ * type. A record is Superbee's when it sits at its location AND carries its marker, so a person's
8
+ * `docs/bundle` of another type, or a non-Convention under `conventions/`, stays a document. Only
9
+ * a View (or retired Page) type claims its section wherever it appears: a misplaced View is a
10
+ * broken registration, not a person's document. Anything no entry claims is a document: a miss may
11
+ * show something, but it never hides a person's content.
12
+ *
13
+ * Two older questions read the same entries:
14
+ *
15
+ * - {@link isGraphDefinitionDocument}: a missing inbound link is intended, so `status` never
16
+ * calls the document an orphan.
17
+ * - {@link isSystemDocument}: no bundle Kind governs the document, so writing one never suggests
18
+ * a missing or misspelled Kind.
19
+ *
20
+ * Where a question reaches past an entry's location, the entry says so in `typeReach`.
21
+ *
22
+ * The format rule: existing locations are grandfathered; any NEW kind of Superbee-owned data lives
23
+ * under {@link SUPERBEE_RESERVED_ROOT_PREFIX}, which one entry already covers. A test walks core's
24
+ * exported location and marker constants and fails on any that no entry covers.
25
+ *
26
+ * This module stays small and browser-safe: entries are plain, serializable data, so another
27
+ * runtime (a database filter, for one) can render the same rule and test that it agrees. Large
28
+ * owners (connectors, document transfer) take their constants from here and re-export them; small
29
+ * owners are imported. The Site entry spells `site-manifest`'s constants as literals, pinned by a
30
+ * test: that module's typings ship alone in the publication package, and it builds a TextEncoder
31
+ * when loaded, which the global-free recipe bundles must not pull in.
32
+ */
33
+ import { LEGACY_PAGE_TYPE_NAME } from "./bundle-health/legacy-page.js";
34
+ import { CONVENTION_TYPE, CONVENTIONS_PREFIX } from "./convention-record.js";
35
+ import { BUNDLE_NAME_DOC_ID, BUNDLE_NAME_DOC_TYPE, DEPENDENCIES_DOC_ID, DEPENDENCIES_DOC_TYPE } from "./dependencies.js";
36
+ import { PAGE_ENTRY_PREFIX, PAGE_REGISTRY_PREFIX, PAGE_TYPE_NAMES, VIEW_ENTRY_PREFIX, VIEW_REGISTRY_PREFIX } from "./page.js";
37
+ /** The marker type of a Connector declaration; re-exported by `connectors`. */
38
+ export const CONNECTOR_TYPE = "Connector";
39
+ /** Where Connector declarations live; re-exported by `connectors`. */
40
+ export const CONNECTORS_PREFIX = "connectors/";
41
+ /** The `type` of the record each document transfer writes; re-exported by `document-transfer`. */
42
+ export const PROMOTION_TYPE = "Promotion";
43
+ /** Where document transfer writes its records; re-exported by `document-transfer`. */
44
+ export const PROMOTIONS_PREFIX = "promotions/";
45
+ /** The marker type of an authoring reference a recipe installs. */
46
+ export const REFERENCE_TYPE = "Reference";
47
+ /** Where recipes install authoring references. */
48
+ export const REFERENCES_PREFIX = "references/";
49
+ /** Recipe sources, in a bundle that publishes recipes. */
50
+ export const RECIPES_PREFIX = "recipes/";
51
+ /**
52
+ * The reserved root for every NEW kind of Superbee-owned data. Nothing lives here yet. A leading
53
+ * underscore keeps it apart from folders people name (`superbee/` is a plausible folder of notes
54
+ * about Superbee); a leading dot would hide it from the filesystem walk, so it could hold no
55
+ * documents.
56
+ */
57
+ export const SUPERBEE_RESERVED_ROOT_PREFIX = "_superbee/";
58
+ /** An OKF standard type. It is a person's document; no bundle Kind governs it. */
59
+ const ATTESTED_COMPUTATION_TYPE = "Attested Computation";
60
+ /** Every section, in display order. */
61
+ export const BUNDLE_SECTIONS = Object.freeze(["documents", "conventions", "views", "superbee"]);
62
+ const REACH_ORDER = ["kinds", "links", "section"];
63
+ const entry = (value) => Object.freeze(value);
64
+ /**
65
+ * Superbee's own records, first match wins. The only list: every surface that separates people's
66
+ * documents from Superbee's own reads this, or a rendering of it checked to agree.
67
+ */
68
+ export const OWNED_LOCATIONS = Object.freeze([
69
+ entry({ name: "convention", section: "conventions", prefix: CONVENTIONS_PREFIX, type: CONVENTION_TYPE, typeReach: "links" }),
70
+ entry({ name: "view", section: "views", prefix: VIEW_REGISTRY_PREFIX, type: PAGE_TYPE_NAMES[0], blobPrefix: VIEW_ENTRY_PREFIX, typeReach: "section" }),
71
+ entry({ name: "legacy-view-location", section: "views", prefix: PAGE_REGISTRY_PREFIX, type: PAGE_TYPE_NAMES[0], blobPrefix: PAGE_ENTRY_PREFIX }),
72
+ entry({ name: "legacy-page", section: "views", prefix: PAGE_REGISTRY_PREFIX, type: LEGACY_PAGE_TYPE_NAME, typeReach: "section" }),
73
+ entry({ name: "connector", section: "superbee", prefix: CONNECTORS_PREFIX, type: CONNECTOR_TYPE, typeReach: "kinds" }),
74
+ entry({ name: "site", section: "superbee", prefix: "sites/", type: "Site", typeReach: "kinds" }),
75
+ entry({ name: "promotion", section: "superbee", prefix: PROMOTIONS_PREFIX, type: PROMOTION_TYPE, typeReach: "kinds" }),
76
+ // A recipe's authoring guides sit with its definitions; a Reference anywhere else is a person's document.
77
+ entry({ name: "reference", section: "conventions", prefix: REFERENCES_PREFIX, type: REFERENCE_TYPE }),
78
+ entry({ name: "recipe-source", section: "superbee", prefix: RECIPES_PREFIX }),
79
+ entry({ name: "bundle-name", section: "superbee", id: BUNDLE_NAME_DOC_ID, type: BUNDLE_NAME_DOC_TYPE }),
80
+ entry({ name: "bundle-dependencies", section: "superbee", id: DEPENDENCIES_DOC_ID, type: DEPENDENCIES_DOC_TYPE }),
81
+ entry({ name: "reserved-root", section: "superbee", prefix: SUPERBEE_RESERVED_ROOT_PREFIX }),
82
+ // Not Superbee's data: listed only because no bundle Kind governs this OKF standard type.
83
+ entry({ name: "attested-computation", section: "documents", type: ATTESTED_COMPUTATION_TYPE, typeReach: "kinds" }),
84
+ ]);
85
+ /**
86
+ * The top-level folders that hold only Superbee's own files, so an ordinary blob write never
87
+ * changes them: the first segment of every entry's folder and blob folder. An entry at an exact id
88
+ * (`docs/bundle`) claims no folder.
89
+ */
90
+ export const OWNED_BLOB_ROOTS = Object.freeze([...new Set(OWNED_LOCATIONS.flatMap((owned) => [owned.prefix, owned.blobPrefix].flatMap((prefix) => prefix === undefined ? [] : [prefix.split("/")[0]])))]);
91
+ function typeOf(doc) {
92
+ return typeof doc.frontmatter.type === "string" ? doc.frontmatter.type : undefined;
93
+ }
94
+ /** True when the document sits at the entry's location and carries its marker. Type-only entries have no location. */
95
+ function atLocation(owned, doc) {
96
+ const placed = owned.id !== undefined ? doc.id === owned.id : owned.prefix !== undefined && doc.id.startsWith(owned.prefix);
97
+ return placed && (owned.type === undefined || typeOf(doc) === owned.type);
98
+ }
99
+ /** True when the entry's marker type reaches the document wherever it lives, at least as far as `reach`. */
100
+ function reaches(owned, doc, reach) {
101
+ return owned.typeReach !== undefined && owned.type === typeOf(doc) &&
102
+ REACH_ORDER.indexOf(owned.typeReach) >= REACH_ORDER.indexOf(reach);
103
+ }
104
+ function claimedAs(doc, reach) {
105
+ return OWNED_LOCATIONS.find((owned) => atLocation(owned, doc) || reaches(owned, doc, reach));
106
+ }
107
+ /**
108
+ * The entry that places a document in its section, or undefined for a person's document. Its
109
+ * `name` tells kinds apart inside one section (a Convention from a Reference, say).
110
+ */
111
+ export function ownedLocationOf(doc) {
112
+ const owned = claimedAs(doc, "section");
113
+ return owned?.section === "documents" ? undefined : owned;
114
+ }
115
+ /** The one section a document belongs to; anything no entry claims is `documents`. */
116
+ export function sectionOf(doc) {
117
+ return ownedLocationOf(doc)?.section ?? "documents";
118
+ }
119
+ /** A document whose missing inbound link is intended: any owned record at its location, or a type that reaches links. */
120
+ export function isGraphDefinitionDocument(doc) {
121
+ return claimedAs(doc, "links") !== undefined;
122
+ }
123
+ /** A document no bundle Kind governs: a graph definition, or a type reserved from Kinds. */
124
+ export function isSystemDocument(doc) {
125
+ return claimedAs(doc, "kinds") !== undefined;
126
+ }
127
+ //# sourceMappingURL=system-documents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-documents.js","sourceRoot":"","sources":["../src/system-documents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACzH,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,eAAe,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAG9H,+EAA+E;AAC/E,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC;AAC1C,sEAAsE;AACtE,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAC/C,kGAAkG;AAClG,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC;AAC1C,sFAAsF;AACtF,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAC/C,mEAAmE;AACnE,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC;AAC1C,kDAAkD;AAClD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAC/C,0DAA0D;AAC1D,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;AACzC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,YAAY,CAAC;AAE1D,kFAAkF;AAClF,MAAM,yBAAyB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AqB,EAAE,KAAgB;IACxD,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;AAC/F,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,GAAqB;IACnD,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IACxC,OAAO,KAAK,EAAE,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;AAC5D,CAAC;AAED,sFAAsF;AACtF,MAAM,UAAU,SAAS,CAAC,GAAqB;IAC7C,OAAO,eAAe,CAAC,GAAG,CAAC,EAAE,OAAO,IAAI,WAAW,CAAC;AACtD,CAAC;AAED,yHAAyH;AACzH,MAAM,UAAU,yBAAyB,CAAC,GAAqB;IAC7D,OAAO,SAAS,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,SAAS,CAAC;AAC/C,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,gBAAgB,CAAC,GAAqB;IACpD,OAAO,SAAS,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,SAAS,CAAC;AAC/C,CAAC"}
package/dist/types.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import type { BodyReplacePosture } from "./body-replace-guards.js";
2
+ import type { WalkPathClass } from "./paths.js";
1
3
  /**
2
4
  * Shared type shapes for the OKF store engine.
3
5
  *
@@ -5,7 +7,7 @@
5
7
  * here so the implementation modules can import them without a cycle, and are
6
8
  * re-exported verbatim from `index.ts` to keep the public contract stable.
7
9
  *
8
- * @see OKF spec — GoogleCloudPlatform/knowledge-catalog, `okf/SPEC.md`
10
+ * @see OKF spec — GoogleCloudPlatform/open-knowledge-format, `SPEC.md`
9
11
  * @packageDocumentation
10
12
  */
11
13
  /**
@@ -140,7 +142,8 @@ export interface ReadBlobResult {
140
142
  export interface VersionInfo {
141
143
  /** Opaque content-addressed version token for this revision. */
142
144
  version: Version;
143
- /** Who wrote this revision. Defaults to a local identity when the write was unattributed. */
145
+ /** Who wrote this revision. History-keeping backends default at write time to a local identity.
146
+ * FilesystemBackend reports `unattributed` when document bytes carry no mutation attribution. */
144
147
  actor: string;
145
148
  /** ISO-8601 instant this revision was recorded. */
146
149
  timestamp: string;
@@ -155,6 +158,10 @@ export interface VersionInfo {
155
158
  }
156
159
  /** Options controlling a conditional / attributed {@link StorageBackend.write}. */
157
160
  export interface WriteOptions {
161
+ /** Explicit per-document replacement intent carried by RemoteBackend to the wire authority.
162
+ * Raw storage adapters ignore it; it grants no metadata/Kind policy bypass.
163
+ */
164
+ bodyReplace?: BodyReplacePosture;
158
165
  /**
159
166
  * Compare-and-swap guard. When set to a {@link Version} token, the write succeeds
160
167
  * ONLY if the backend's current version for `id` equals that token; otherwise it
@@ -247,6 +254,8 @@ export interface StorageCapabilities {
247
254
  * identity of the returned document even when the input document carries a different `id`.
248
255
  */
249
256
  export interface StorageBackend {
257
+ /** Optional exact-store cooperating-writer inventory comparison plus one concept write. */
258
+ readonly inventoryGuard?: import("./inventory-guard.js").InventoryGuard;
250
259
  /** Read + parse the concept document at `id`, with its version token. Rejects (ENOENT-shaped) if absent. */
251
260
  read(id: ConceptId): Promise<ReadResult>;
252
261
  /**
@@ -329,6 +338,12 @@ export interface StorageBackend {
329
338
  existsBlob(key: BlobKey): Promise<boolean>;
330
339
  /** Blob keys, optionally restricted to a bundle-relative `prefix`, sorted. Never includes concept documents or reserved files. */
331
340
  listBlobs(prefix?: string): Promise<BlobKey[]>;
341
+ /**
342
+ * Optional: where a root-relative path reported by a native directory watcher sits relative to
343
+ * what this backend reads. A backend with no walkable file layout omits it, and a watcher then
344
+ * treats every notification as relevant.
345
+ */
346
+ classifyChangedPath?(relPath: string): WalkPathClass;
332
347
  /**
333
348
  * Hard-delete the blob at `key` (no tombstone, no history to purge — blobs never
334
349
  * carried one). Returns `true` when a blob existed and was removed, `false` when it
@@ -349,11 +364,16 @@ export interface StorageBackend {
349
364
  * a facet it chooses to honor. A backend that does not implement this method
350
365
  * (FilesystemBackend / MemoryBackend — both local to their data, where a head projection
351
366
  * 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.
367
+ * `readMany`, bodies read then dropped). Both paths honor the scan's malformed-doc
368
+ * resilience: given `onSkip`, a backend reports each document it could not parse there and
369
+ * leaves it out; without it, a malformed document fails the scan.
355
370
  */
356
- queryHeads?(filter?: QueryFilter): Promise<HeadResult[]>;
371
+ queryHeads?(filter?: QueryFilter, options?: {
372
+ onSkip?: (skip: {
373
+ id: ConceptId;
374
+ reason: string;
375
+ }) => void;
376
+ }): Promise<HeadResult[]>;
357
377
  /**
358
378
  * OPTIONAL capabilities self-declaration. `StorageBackend` carries
359
379
  * no capabilities descriptor by default, so a wire router that wants to report an adapter's
@@ -366,6 +386,8 @@ export interface StorageBackend {
366
386
  * cross-process CAS and retained history are now intentionally different capabilities.
367
387
  */
368
388
  capabilities?(): StorageCapabilities;
389
+ /** Derived authored links and endpoint titles at the filesystem scan's current observations. */
390
+ relationshipSources?(options?: import("./document-scan.js").QueryOptions): Promise<import("./relationships.js").RelationshipSource[] | undefined>;
369
391
  }
370
392
  /** Options for {@link initBundle}. */
371
393
  export interface InitBundleOptions {
@@ -380,6 +402,8 @@ export interface InitBundleOptions {
380
402
  }
381
403
  /** Filter for {@link query}. Provided facets are ANDed; reserved files are always excluded. */
382
404
  export interface QueryFilter {
405
+ /** Exclude records of type Convention under the canonical conventions/ prefix. */
406
+ excludeConventions?: boolean;
383
407
  /** Restrict to concepts whose frontmatter `type` equals this value. */
384
408
  type?: string;
385
409
  /** Restrict to concepts carrying ALL of these tags. */
@@ -395,6 +419,23 @@ export interface QueryFilter {
395
419
  * (e.g. `tags: [a,b]`) matches on membership. A field the doc lacks never matches (empty set).
396
420
  */
397
421
  fields?: Record<string, string>;
422
+ /**
423
+ * Restrict to concepts whose `sources` list holds at least one entry carrying this identity
424
+ * (see {@link SourceIdentity}). A selector naming neither key imposes no constraint, like an
425
+ * empty `tags` list.
426
+ */
427
+ sources?: SourceIdentity;
428
+ }
429
+ /**
430
+ * An OKF `sources[]` identity: `resource` names the provider namespace and `id` the record within
431
+ * it. Each supplied key must equal the entry's own property of the same name by exact,
432
+ * case-sensitive string comparison: no trimming, URL normalization, or `String()` coercion. An
433
+ * entry that is not a mapping, or whose property is absent or not a string, never matches, and
434
+ * neither does a `sources` value that is not a list.
435
+ */
436
+ export interface SourceIdentity {
437
+ resource?: string;
438
+ id?: string;
398
439
  }
399
440
  /** A single resolved outbound cross-link (a standard markdown link, never a wikilink). */
400
441
  export interface Link {
@@ -406,6 +447,11 @@ export interface Link {
406
447
  text: string;
407
448
  /** The raw target as written in the markdown, before resolution (e.g. `/a/b.md`, `./x.md`). */
408
449
  href: string;
450
+ /**
451
+ * Set only on a cross-bundle edge (`okf://<alias>/<path>.md`): the declared alias of the bundle
452
+ * `to` lives in. Absent on every local link, so local edge output is unchanged.
453
+ */
454
+ bundle?: string;
409
455
  }
410
456
  /**
411
457
  * Filter for {@link queryEdges} — the whole-bundle derived edge list, filtered. `from`/`to` each
@@ -431,7 +477,7 @@ export type FreshnessVerdict = "fresh" | "stale" | "empty";
431
477
  export interface FreshnessOptions {
432
478
  /** Instant to compare against; defaults to "now". */
433
479
  now?: Date;
434
- /** Bundle edition; v0.2 activates the standard `stale_after` lifecycle field. */
480
+ /** Bundle edition; v0.2 and v0.3 interpret the standard `stale_after` field. */
435
481
  okfVersion?: string;
436
482
  /** Maximum age before a concept is judged `stale`. */
437
483
  maxAgeMs?: number;
@@ -440,7 +486,7 @@ export interface FreshnessOptions {
440
486
  }
441
487
  /** The outcome of a {@link freshness} judgment. */
442
488
  export interface FreshnessResult {
443
- /** `fresh` / `stale` / `empty` (no usable clock and no elapsed v0.2 `stale_after`). */
489
+ /** `empty` means freshness is unknown because a usable clock is missing or an explicit deadline is invalid. */
444
490
  verdict: FreshnessVerdict;
445
491
  /** Age in milliseconds relative to the comparison instant, when a meaningful-change time was present. */
446
492
  ageMs?: number;
@@ -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,MAAM,CAAC;IAClB,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,kGAAkG;IAClG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iHAAiH;IACjH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iFAAiF;IACjF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,qFAAqF;AACrF,MAAM,WAAW,WAAW;IAC1B,qDAAqD;IACrD,EAAE,EAAE,SAAS,CAAC;IACd,+BAA+B;IAC/B,WAAW,EAAE,WAAW,CAAC;IACzB,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;CACd;AAED,+EAA+E;AAC/E,MAAM,WAAW,MAAM;IACrB,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,gGAAgG;AAChG,MAAM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G;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,gFAAgF;IAChF,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,+GAA+G;IAC/G,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,28 @@ 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;
51
+ /**
52
+ * The content producer a whole-document write names to the authority (a hosted push's
53
+ * `X-Superbee-Producer`): recorded with the intent when it is queued and sent as recorded on
54
+ * every submission and lookup, never recomputed from `content`, so a lookup names what its
55
+ * write named. Absent: the authority records its own producer.
56
+ */
57
+ producer?: string;
34
58
  /** The shared version the local edit was made against, or `null` for a create. */
35
59
  base: Version | null;
36
60
  /** The content-addressed version of `content`. */
@@ -50,24 +74,109 @@ export interface OperationIntent {
50
74
  export type Outcome = {
51
75
  kind: "committed";
52
76
  version: Version;
53
- } | {
77
+ }
78
+ /**
79
+ * The shared head moved. `actual` is the version the authority serves now, or `null` when it
80
+ * serves none ("deleted remotely"). With `actual: null`, `tombstone` names the deletion the
81
+ * authority reported, when it reported one: the acknowledgement a deliberate re-create sends.
82
+ * It is never a version any read serves, so it is never a base or a remote version.
83
+ */
84
+ | {
54
85
  kind: "conflict";
55
86
  actual: Version | null;
56
- } | {
87
+ tombstone?: Version;
88
+ }
89
+ /**
90
+ * `executed` is present only on a refusal that is not the identity's recorded answer: `false`
91
+ * when this attempt was refused before it could execute (nothing was sent, or the authority
92
+ * refused it before dispatch), `"unknown"` when the authority's answer does not say. Such a
93
+ * refusal is evidence about this attempt only, never about an earlier delivery of the identity.
94
+ */
95
+ | {
57
96
  kind: "refused";
58
97
  code: string;
59
98
  message: string;
60
- } | {
99
+ executed?: false | "unknown";
100
+ }
101
+ /**
102
+ * `refusal` names the attempt-only refusal that ended the call, when one did: a resend refused
103
+ * before execution while an earlier delivery may still be held. The identity stays unknown;
104
+ * the refusal says why it could not be settled now (for example, access withdrawn).
105
+ */
106
+ | {
61
107
  kind: "unknown";
108
+ refusal?: {
109
+ code: string;
110
+ message: string;
111
+ };
62
112
  };
113
+ /**
114
+ * A lookup's answer that the authority holds the identity without a result yet: a delivery of
115
+ * it was admitted and may still commit. Distinct from `null`, which says it was never admitted.
116
+ */
117
+ export interface LookupPending {
118
+ kind: "pending";
119
+ }
120
+ /** The one {@link LookupPending} answer. */
121
+ export declare const LOOKUP_PENDING: LookupPending;
63
122
  /** A transport to a shared authority that records outcomes by request identity. */
64
123
  export interface OperationTransport {
65
124
  /** Deliver the intent once; a repeated `requestId` must return the recorded outcome unchanged. */
66
125
  submit(intent: OperationIntent, options?: {
67
126
  signal?: AbortSignal;
68
127
  }): Promise<Outcome>;
69
- /** The recorded outcome for `requestId`, or `null` when the authority never recorded it. */
70
- lookup(requestId: string): Promise<Outcome | null>;
128
+ /**
129
+ * The recorded outcome for `requestId`; {@link LookupPending} when the authority holds it
130
+ * unanswered; or `null` when the authority never recorded it. A transport that cannot tell
131
+ * pending from absent answers `null` for both.
132
+ */
133
+ lookup(requestId: string): Promise<Outcome | LookupPending | null>;
134
+ }
135
+ /** Minimal classification for recorded-only delivery. A commit need not invent a new-head
136
+ * version (for example, an identified blob delete can carry its complete absence receipt). */
137
+ export interface NonExecutedAttempt {
138
+ kind: "not-executed";
139
+ attempts: number;
140
+ details: unknown;
141
+ }
142
+ export type RecordedWriteOutcome = NonExecutedAttempt | {
143
+ kind: "committed";
144
+ } | {
145
+ kind: "conflict";
146
+ } | {
147
+ kind: "refused";
148
+ code: string;
149
+ message: string;
150
+ } | {
151
+ kind: "unknown";
152
+ };
153
+ export type RecordedWriteIntent = Pick<OperationIntent, "requestId" | "kind" | "target" | "createdAt" | "attempts" | "state"> & {
154
+ /** Opt-in qualification; old no-prefix explicit callers retain their contract. */
155
+ notAppliedThrough?: number;
156
+ };
157
+ export interface RecordedWriteTransport<I extends RecordedWriteIntent, O extends RecordedWriteOutcome> {
158
+ submit(intent: I, options?: {
159
+ signal?: AbortSignal;
160
+ }): Promise<O>;
161
+ /** Null/absence is inconclusive and NEVER grants this path permission to submit. */
162
+ lookup(requestId: string): Promise<O | null>;
163
+ }
164
+ /** Explicit starts are for callers that own persistence, not proof minted by this primitive.
165
+ * submit-claimed requires a freshly successful durable in_flight CAS, held under the checkout
166
+ * lock, immediately before this call; its counted attempt is sent at most once. After reopening,
167
+ * or when that freshness cannot be established, use lookup. Replaying a stored claim is NOT a
168
+ * fresh CAS. Nor does a new CAS prove an earlier unclear delivery cannot still commit: those
169
+ * identities must use lookup. This function creates no ticket or journal persistence itself. */
170
+ export type RecordedWriteOptions = Omit<UncertainWriteOptions, "settlement" | "maxSubmissions" | "earlierDeliveryUnclear"> & {
171
+ settlement: "recorded-only";
172
+ start: "submit-claimed" | "lookup";
173
+ };
174
+ export interface RecordedWriteResult<I extends RecordedWriteIntent, O extends RecordedWriteOutcome> {
175
+ intent: Omit<I, "attempts" | "state"> & Pick<RecordedWriteIntent, "attempts" | "state">;
176
+ outcome: O | {
177
+ kind: "unknown";
178
+ };
179
+ lookups: number;
71
180
  }
72
181
  /** Wait `ms`, resolving early and harmlessly when `signal` aborts. Injected by tests. */
73
182
  export type Sleep = (ms: number, signal?: AbortSignal) => Promise<void>;
@@ -84,6 +193,20 @@ export interface UncertainWriteOptions {
84
193
  maxSubmissions?: number;
85
194
  /** Timer; defaults to a `setTimeout` sleep. */
86
195
  sleep?: Sleep;
196
+ /**
197
+ * Ends the call early once aborted: no further lookup or resubmission starts, the wait between
198
+ * lookups is cut short, and the outcome is `unknown` unless one was already known. Absent, the
199
+ * call runs every lookup and submission it is permitted.
200
+ */
201
+ signal?: AbortSignal;
202
+ /**
203
+ * The intent's earlier submission, made by an earlier call, ended without a definitive answer
204
+ * (its outcome was unknown, or the call stopped while it was in flight). A resubmission refused
205
+ * before execution is then `unknown`, as one after an unclear submission in this call is.
206
+ * Default false: an earlier submission answered with such a refusal (a paused intent requeued)
207
+ * may be resent and refused again definitively.
208
+ */
209
+ earlierDeliveryUnclear?: boolean;
87
210
  }
88
211
  export interface UncertainWriteResult {
89
212
  /** The intent with `attempts` and `state` advanced to reflect this call. */
@@ -92,12 +215,16 @@ export interface UncertainWriteResult {
92
215
  /** How many times `lookup` was called in this call. */
93
216
  lookups: number;
94
217
  }
95
- /** Refusal codes that mean the caller's authorization is gone rather than the content wrong. */
218
+ /**
219
+ * Refusal codes that pause shared operations rather than say the content is wrong: the caller's
220
+ * authorization is gone, or a hosted sync quota (`REQUEST_CAPACITY_*`, one per scope the host
221
+ * names) is spent. Nothing is lost; the refused intents are requeued when the store resumes.
222
+ */
96
223
  export declare const AUTHORIZATION_REFUSAL_CODES: ReadonlySet<string>;
97
224
  /** True when a refusal reports lost permission, which pauses further shared operations. */
98
- export declare function isAuthorizationRefusal(outcome: Outcome): boolean;
225
+ export declare function isAuthorizationRefusal(outcome: Outcome | RecordedWriteOutcome): boolean;
99
226
  /** The journal state an outcome settles an intent into. */
100
- export declare function stateForOutcome(outcome: Outcome): OperationState;
227
+ export declare function stateForOutcome(outcome: Outcome | RecordedWriteOutcome): OperationState;
101
228
  /** The longest request identity the wire accepts as `Idempotency-Key`. */
102
229
  export declare const REQUEST_ID_MAX_LENGTH = 128;
103
230
  /**
@@ -116,10 +243,12 @@ export declare function mintRequestId(): string;
116
243
  * at that version. This is the wire's post-expiry compare-and-swap property: a committed write
117
244
  * whose acknowledgement was lost and whose recorded outcome expired from the authority's
118
245
  * 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.
246
+ * authority answers a conflict against the version the client itself committed. If the head
247
+ * has meanwhile returned to `base` exactly, the premise matches and the resubmission is applied
248
+ * again instead (see {@link performUncertainWrite}). The mapping depends only on the outcome and
249
+ * the intent, so the primitive owns it and every consumer settles such a write as acknowledged
250
+ * rather than presenting it as a concurrent edit. Every other conflict, including one against
251
+ * an absent head (`actual: null`), is returned unchanged.
123
252
  */
124
253
  export declare function settleAgainstIntent(outcome: Outcome, intent: OperationIntent): Outcome;
125
254
  /**
@@ -127,9 +256,9 @@ export declare function settleAgainstIntent(outcome: Outcome, intent: OperationI
127
256
  *
128
257
  * Flow: when the intent has never been submitted, submit it; when it has (`attempts > 0`), or
129
258
  * 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
259
+ * settles the intent. A `null` lookup is taken as proof that the authority never recorded the
260
+ * request, so a resubmission with the same `requestId` is the first delivery and is allowed, up
261
+ * to `maxSubmissions`. A lookup that fails leaves the outcome unknown and the intent for a later
133
262
  * call.
134
263
  *
135
264
  * No resubmission happens without a `null` lookup because a blind retry after an unknown
@@ -137,8 +266,26 @@ export declare function settleAgainstIntent(outcome: Outcome, intent: OperationI
137
266
  * twice, and even on one with it the retry can only ever learn what the lookup already knew.
138
267
  * The lookup is what turns "unknown" into a fact before any second delivery.
139
268
  *
269
+ * That fact is only as good as the transport's `null`. An authority that has expired or lost a
270
+ * record answers as if it never recorded it, and the reference wire transport returns `null`
271
+ * then. The resubmission is guarded only by its `base`, and versions are content hashes: if the
272
+ * write had landed and a third party has since restored `base` exactly, the premise matches, the
273
+ * write is applied a second time over that revert, and the outcome is `committed`. The hosted
274
+ * transport never answers `null` for an absent record once the intent is older than the host's
275
+ * stated retention window, less a skew margin, so it does not resubmit there.
276
+ *
277
+ * A refusal before execution ({@link isAuthorizationRefusal}) of a resubmission that follows an
278
+ * unclear submission (in this call, or an earlier one per `earlierDeliveryUnclear`) is `unknown`,
279
+ * carrying that refusal, not settled: a `null` lookup cannot prove an earlier delivery will not
280
+ * still arrive, and the delivery can still commit. After a {@link LookupPending} answer, which
281
+ * says a delivery is held, the same holds for every refusal the transport marks `executed`
282
+ * (a gateway's `400` included). A pending lookup still permits the resubmission.
283
+ *
140
284
  * By default every outcome passes through {@link settleAgainstIntent}, so a conflict naming the
141
285
  * intent's own version is committed. `recorded-only` preserves the recorded outcome instead.
142
286
  */
287
+ export declare function performUncertainWrite<I extends RecordedWriteIntent, O extends RecordedWriteOutcome>(transport: RecordedWriteTransport<I, O>, intent: I, options: RecordedWriteOptions): Promise<RecordedWriteResult<I, O>>;
288
+ /** Compatibility path: a complete document intent, with the existing counters/resubmission
289
+ * defaults. Body delivery's recorded-only call without start remains on this path. */
143
290
  export declare function performUncertainWrite(transport: OperationTransport, intent: OperationIntent, options?: UncertainWriteOptions): Promise<UncertainWriteResult>;
144
291
  //# sourceMappingURL=uncertain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