@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,266 @@
1
+ /**
2
+ * The transport conformance suite. The engine's guard cannot see headers a transport adds after
3
+ * it, so every transport proves against a scripted peer that it sends the credential only when the
4
+ * engine's `credentialHost` and its own exact host match agree (lookalike hosts included), returns
5
+ * redirects unfollowed and refuses a body over the bound, and, behind the engine, that a
6
+ * cross-host or private-address redirect reaches nothing. It returns rows rather than asserting,
7
+ * so it runs under any test runner.
8
+ */
9
+ import { bindSourceFeed, credentialHosts, parseConnectorDoc } from "../connectors.js";
10
+ import { buildKindRegistry } from "../kinds.js";
11
+ import { MemoryMachineState } from "../source-engine/machine-state.js";
12
+ import { observeSource } from "../source-engine/observe.js";
13
+ import { fetchIdentity } from "../source-engine/robots.js";
14
+ import { ScriptedPeer } from "./peer.js";
15
+ export const CONFORMANCE_SCENARIOS = Object.freeze([
16
+ "credential-reaches-its-host",
17
+ "credential-stays-on-its-host",
18
+ "redirect-returned-unfollowed",
19
+ "cross-host-redirect-refused",
20
+ "body-over-bound-refused",
21
+ "private-redirect-refused",
22
+ ]);
23
+ const CREDENTIAL_HOST = "api.github.com";
24
+ const KEYLESS_HOST = "feeds.example.org";
25
+ const OUTSIDE_HOST = "collector.example.net";
26
+ const PROBE = "conformance-probe";
27
+ const IDENTITY = fetchIdentity("SuperbeeConformance/1 (+https://superbee.example.org/conformance)");
28
+ const PRIVATE_TARGETS = Object.freeze([
29
+ "https://127.0.0.1/latest",
30
+ "https://10.0.0.5/internal",
31
+ "https://[::1]/x",
32
+ "https://[::ffff:127.0.0.1]/x",
33
+ "https://169.254.169.254/latest/meta-data/",
34
+ "https://metadata.google.internal/computeMetadata/v1/",
35
+ "https://localhost/x",
36
+ "https://api.github.com:8443/x",
37
+ "http://api.github.com/x",
38
+ ]);
39
+ /**
40
+ * Requests that must never carry the credential: hosts that only look like the credential host,
41
+ * whatever the engine says, and the credential host itself when the engine says it is not one.
42
+ */
43
+ const CREDENTIAL_PROBES = Object.freeze([
44
+ { name: "a declared keyless host", url: `https://${KEYLESS_HOST}/feed.json`, credentialHost: true },
45
+ { name: "an undeclared host", url: `https://${OUTSIDE_HOST}/collect`, credentialHost: true },
46
+ { name: "the credential host over http", url: `http://${CREDENTIAL_HOST}/repos/octo/probe/issues`, credentialHost: true },
47
+ { name: "a host starting with the credential host", url: `https://${CREDENTIAL_HOST}.${OUTSIDE_HOST}/x`, credentialHost: true },
48
+ { name: "a host ending with the credential host without a dot", url: `https://evil${CREDENTIAL_HOST}/repos/octo/probe/issues`, credentialHost: true },
49
+ { name: "the credential host with a trailing dot", url: `https://${CREDENTIAL_HOST}./x`, credentialHost: true },
50
+ { name: "the credential host as userinfo", url: `https://${CREDENTIAL_HOST}@${OUTSIDE_HOST}/x`, credentialHost: true },
51
+ { name: "the credential host on another port", url: `https://${CREDENTIAL_HOST}:8443/x`, credentialHost: true },
52
+ { name: "the credential host when the engine says otherwise", url: `https://${CREDENTIAL_HOST}/repos/octo/probe/issues`, credentialHost: false },
53
+ ]);
54
+ const record = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
55
+ /** Requests the probe profile makes: one GET of `spec.url`, its host and `spec.also` declared. */
56
+ const probe = {
57
+ id: PROBE,
58
+ version: 1,
59
+ kind: "generic",
60
+ validateSpec(spec) {
61
+ if (!record(spec) || typeof spec.url !== "string")
62
+ return { ok: false, errors: [{ path: "/url", message: "is a URL" }] };
63
+ const also = Array.isArray(spec.also) ? spec.also.filter((host) => typeof host === "string") : [];
64
+ return { ok: true, spec: { url: spec.url, also } };
65
+ },
66
+ hostsFor: (spec) => [new URL(spec.url).hostname, ...spec.also],
67
+ async observe({ spec, transport }) {
68
+ await transport.request({ url: spec.url, headers: { accept: "application/json" } });
69
+ return { records: [], nextCursor: null, more: false, complete: false };
70
+ },
71
+ };
72
+ let world;
73
+ function probeWorld() {
74
+ if (world)
75
+ return world;
76
+ const registry = buildKindRegistry([{ id: "conventions/probe", body: "", frontmatter: { type: "Convention", title: "Probe", governs: "Probe", fields: { required: ["title"] } } }], [], { okfVersion: "0.2" });
77
+ const parsed = parseConnectorDoc({ id: "connectors/conformance", body: "", frontmatter: {
78
+ type: "Connector", title: "Transport conformance probe", auth: { kind: "token", provider: "github" }, domains: [KEYLESS_HOST],
79
+ record_sources: [{ name: "probe", profile: PROBE, request: { host: CREDENTIAL_HOST, method: "GET", path: "/repos/{owner}/{repo}/issues", items: "" }, target_kind: "Probe", identity: { resource: `https://${CREDENTIAL_HOST}/repos/{owner}/{repo}`, id: "{id}" }, fields: { title: "title" }, completeness: "complete" }],
80
+ } }, { kinds: registry });
81
+ if (!parsed.ok)
82
+ throw new Error(`conformance connector refused: ${parsed.errors.map((e) => e.code).join(", ")}`);
83
+ const bound = bindSourceFeed(parsed.connector, { id: "source-feeds/conformance", frontmatter: {
84
+ type: "Source Feed", connector: parsed.connector.id, source: "probe", url: `https://${CREDENTIAL_HOST}/repos/octo/probe`, owned_fields: ["title"],
85
+ } }, registry, { okfVersion: "0.2" });
86
+ return (world = { connector: parsed.connector, bound });
87
+ }
88
+ const CREDENTIALS = () => [
89
+ { hosts: credentialHosts({ kind: "token", provider: "github" }), header: "authorization", value: "Bearer conformance-secret-1" },
90
+ // A provider's own header (Vagaro's `accessToken`), so a check on `authorization` alone cannot pass.
91
+ { hosts: credentialHosts({ kind: "token", provider: "github" }), header: "accessToken", value: "conformance-secret-2" },
92
+ ];
93
+ /**
94
+ * Whether a request carries the credential anywhere: a header, the URL (decoded, so an encoded
95
+ * copy counts) or the body. The secret is the value's last word, so `Bearer x` is found as `x`.
96
+ */
97
+ function carries(request, credential) {
98
+ const secret = credential.value.split(/\s+/).at(-1);
99
+ let url = request.url;
100
+ try {
101
+ url = decodeURIComponent(request.url.replaceAll("+", " "));
102
+ }
103
+ catch { /* keep the raw URL */ }
104
+ return [...Object.values(request.headers), url, request.url, request.body ?? ""].some((text) => text.includes(secret));
105
+ }
106
+ /** Every request that carried the credential's value toward a host it does not belong to. */
107
+ function leaks(peer, credential) {
108
+ return peer.received.filter((request) => {
109
+ const url = new URL(request.url);
110
+ const allowed = url.protocol === "https:" && credential.hosts.includes(url.hostname);
111
+ return !allowed && carries(request, credential);
112
+ }).map((request) => `${request.method} ${request.url}`);
113
+ }
114
+ const answer = (routes) => (request) => {
115
+ const url = new URL(request.url);
116
+ if (url.pathname === "/robots.txt")
117
+ return { status: 404, body: "" };
118
+ return routes[`${url.origin}${url.pathname}`] ?? { status: 404, body: "" };
119
+ };
120
+ async function throughEngine(target, credential, routes, spec, maxBytes) {
121
+ const { connector, bound } = probeWorld();
122
+ const scopedBound = { ...bound, source: { ...bound.source, request: { ...bound.source.request, host: new URL(spec.url).hostname } } };
123
+ const peer = new ScriptedPeer(answer(routes));
124
+ const receipt = await observeSource({
125
+ connector, bound: scopedBound, profile: probe, spec, transport: target.create(peer, credential), state: new MemoryMachineState(), identity: IDENTITY,
126
+ mode: "complete", budget: { requests: 20, ...(maxBytes !== undefined ? { maxBytes } : {}) }, commit: async () => { },
127
+ });
128
+ return { receipt, peer };
129
+ }
130
+ async function direct(transport, url, options = {}) {
131
+ try {
132
+ return await transport.request({ url, method: "GET", headers: { accept: "application/json" }, maxBytes: options.maxBytes ?? 4096, credentialHost: options.credentialHost ?? false });
133
+ }
134
+ catch (error) {
135
+ return error instanceof Error ? error : new Error(String(error));
136
+ }
137
+ }
138
+ const CHECKS = {
139
+ async "credential-reaches-its-host"(target) {
140
+ const problems = [];
141
+ for (const credential of CREDENTIALS()) {
142
+ const peer = new ScriptedPeer(() => ({ status: 200, body: "[]" }));
143
+ await direct(target.create(peer, credential), `https://${CREDENTIAL_HOST}/repos/octo/probe/issues`, { credentialHost: true });
144
+ const sent = peer.received[0]?.headers[credential.header.toLowerCase()];
145
+ if (sent !== credential.value)
146
+ problems.push(`the ${credential.header} credential did not reach ${CREDENTIAL_HOST}`);
147
+ const { peer: engine } = await throughEngine(target, credential, { [`https://${CREDENTIAL_HOST}/repos/octo/probe/issues`]: { status: 200, body: "{}" } }, { url: `https://${CREDENTIAL_HOST}/repos/octo/probe/issues` });
148
+ if (engine.received[0]?.headers[credential.header.toLowerCase()] !== credential.value)
149
+ problems.push(`behind the engine the ${credential.header} credential did not reach ${CREDENTIAL_HOST}`);
150
+ }
151
+ return problems;
152
+ },
153
+ async "credential-stays-on-its-host"(target) {
154
+ const problems = [];
155
+ for (const credential of CREDENTIALS()) {
156
+ const peer = new ScriptedPeer(() => ({ status: 200, body: "[]" }));
157
+ const transport = target.create(peer, credential);
158
+ for (const probe of CREDENTIAL_PROBES) {
159
+ const before = peer.received.length;
160
+ await direct(transport, probe.url, { credentialHost: probe.credentialHost });
161
+ const carried = peer.received.slice(before).filter((request) => carries(request, credential));
162
+ if (carried.length)
163
+ problems.push(`${credential.header} sent toward ${probe.name}`);
164
+ }
165
+ }
166
+ return problems;
167
+ },
168
+ async "redirect-returned-unfollowed"(target) {
169
+ const [credential] = CREDENTIALS();
170
+ const peer = new ScriptedPeer(answer({
171
+ [`https://${CREDENTIAL_HOST}/a`]: { status: 302, headers: { Location: `https://${CREDENTIAL_HOST}/b` }, body: "" },
172
+ [`https://${CREDENTIAL_HOST}/b`]: { status: 200, body: "{}" },
173
+ }));
174
+ const result = await direct(target.create(peer, credential), `https://${CREDENTIAL_HOST}/a`, { credentialHost: true });
175
+ const problems = [];
176
+ if (result instanceof Error || !result.ok || result.status !== 302)
177
+ problems.push("the 302 was not returned as the answer");
178
+ else if (result.headers.location !== `https://${CREDENTIAL_HOST}/b`)
179
+ problems.push("the 302's location header was not returned under a lowercase name");
180
+ if (peer.received.length !== 1)
181
+ problems.push(`the transport sent ${peer.received.length} requests for one call`);
182
+ return problems;
183
+ },
184
+ async "cross-host-redirect-refused"(target) {
185
+ const problems = [];
186
+ const cases = [
187
+ { name: "credential host to an undeclared host", from: `https://${CREDENTIAL_HOST}/repos/octo/probe/issues`, to: `https://${OUTSIDE_HOST}/steal` },
188
+ { name: "keyless host to an undeclared host", from: `https://${KEYLESS_HOST}/repos/octo/probe/issues`, to: `https://${OUTSIDE_HOST}/steal` },
189
+ { name: "credential host to a declared keyless host", from: `https://${CREDENTIAL_HOST}/repos/octo/probe/issues`, to: `https://${KEYLESS_HOST}/repos/octo/probe/issues`, also: [KEYLESS_HOST] },
190
+ { name: "declared keyless host to the credential host", from: `https://${KEYLESS_HOST}/repos/octo/probe/issues`, to: `https://${CREDENTIAL_HOST}/y`, also: [CREDENTIAL_HOST] },
191
+ ];
192
+ for (const credential of CREDENTIALS()) {
193
+ for (const c of cases) {
194
+ const toHost = new URL(c.to).hostname;
195
+ const { receipt, peer } = await throughEngine(target, credential, {
196
+ [c.from]: { status: 302, headers: { location: c.to }, body: "" },
197
+ [c.to]: { status: 200, body: "{}" },
198
+ }, { url: c.from, ...(c.also ? { also: c.also } : {}) });
199
+ const reached = peer.received.filter((request) => request.url.startsWith(c.to)).length;
200
+ if (receipt.outcome !== "refused")
201
+ problems.push(`${c.name}: the run ended ${receipt.outcome}, not refused`);
202
+ if (reached)
203
+ problems.push(`${c.name}: ${reached} request(s) reached ${toHost}`);
204
+ for (const leak of leaks(peer, credential))
205
+ problems.push(`${c.name}: ${credential.header} sent with ${leak}`);
206
+ }
207
+ }
208
+ return problems;
209
+ },
210
+ async "body-over-bound-refused"(target) {
211
+ const [credential] = CREDENTIALS();
212
+ const problems = [];
213
+ // 600 characters, 1200 bytes: a bound read in characters would pass it.
214
+ const over = "é".repeat(600);
215
+ const exact = "a".repeat(1000);
216
+ const peer = new ScriptedPeer(answer({
217
+ [`https://${CREDENTIAL_HOST}/repos/octo/probe/issues`]: { status: 200, body: over },
218
+ [`https://${CREDENTIAL_HOST}/exact`]: { status: 200, body: exact },
219
+ }));
220
+ const transport = target.create(peer, credential);
221
+ const refused = await direct(transport, `https://${CREDENTIAL_HOST}/repos/octo/probe/issues`, { maxBytes: 1000, credentialHost: true });
222
+ if (refused instanceof Error || refused.ok || refused.refused !== "too_large")
223
+ problems.push("a 1200-byte body under a 1000-byte bound was not refused as too_large");
224
+ const admitted = await direct(transport, `https://${CREDENTIAL_HOST}/exact`, { maxBytes: 1000, credentialHost: true });
225
+ if (admitted instanceof Error || !admitted.ok || admitted.body !== exact || admitted.bytes !== 1000)
226
+ problems.push("a body exactly at the bound was not returned whole");
227
+ const { receipt } = await throughEngine(target, credential, { [`https://${CREDENTIAL_HOST}/repos/octo/probe/issues`]: { status: 200, body: over } }, { url: `https://${CREDENTIAL_HOST}/repos/octo/probe/issues` }, 1000);
228
+ if (receipt.outcome !== "too_large")
229
+ problems.push(`behind the engine the run ended ${receipt.outcome}, not too_large`);
230
+ return problems;
231
+ },
232
+ async "private-redirect-refused"(target) {
233
+ const [credential] = CREDENTIALS();
234
+ const problems = [];
235
+ for (const from of [`https://${CREDENTIAL_HOST}/repos/octo/probe/issues`, `https://${KEYLESS_HOST}/repos/octo/probe/issues`]) {
236
+ for (const to of PRIVATE_TARGETS) {
237
+ const { receipt, peer } = await throughEngine(target, credential, { [from]: { status: 302, headers: { location: to }, body: "" } }, { url: from });
238
+ const toUrl = new URL(to);
239
+ const reached = peer.received.filter((request) => {
240
+ const url = new URL(request.url);
241
+ return url.hostname === toUrl.hostname && url.port === toUrl.port && url.protocol === toUrl.protocol;
242
+ }).length;
243
+ if (receipt.outcome !== "refused")
244
+ problems.push(`${from} to ${to}: the run ended ${receipt.outcome}, not refused`);
245
+ if (reached)
246
+ problems.push(`${from} to ${to}: ${reached} request(s) reached it`);
247
+ }
248
+ }
249
+ return problems;
250
+ },
251
+ };
252
+ /** Run every conformance scenario against one transport. */
253
+ export async function runTransportConformance(target) {
254
+ const rows = [];
255
+ for (const scenario of CONFORMANCE_SCENARIOS) {
256
+ try {
257
+ const problems = await CHECKS[scenario](target);
258
+ rows.push(problems.length ? { scenario, ok: false, detail: problems.join("; ") } : { scenario, ok: true });
259
+ }
260
+ catch (error) {
261
+ rows.push({ scenario, ok: false, detail: `threw: ${error instanceof Error ? error.message : String(error)}` });
262
+ }
263
+ }
264
+ return rows;
265
+ }
266
+ //# sourceMappingURL=conformance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conformance.js","sourceRoot":"","sources":["../../src/source-harness/conformance.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,iBAAiB,EAAkC,MAAM,kBAAkB,CAAC;AACtH,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAsB,MAAM,4BAA4B,CAAC;AAE/E,OAAO,EAAE,YAAY,EAAiE,MAAM,WAAW,CAAC;AAcxG,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC;IACjD,6BAA6B;IAC7B,8BAA8B;IAC9B,8BAA8B;IAC9B,6BAA6B;IAC7B,yBAAyB;IACzB,0BAA0B;CAClB,CAAC,CAAC;AAEZ,MAAM,eAAe,GAAG,gBAAgB,CAAC;AACzC,MAAM,YAAY,GAAG,mBAAmB,CAAC;AACzC,MAAM,YAAY,GAAG,uBAAuB,CAAC;AAC7C,MAAM,KAAK,GAAG,mBAAmB,CAAC;AAClC,MAAM,QAAQ,GAAG,aAAa,CAAC,mEAAmE,CAAkB,CAAC;AACrH,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC;IACpC,0BAA0B;IAC1B,2BAA2B;IAC3B,iBAA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Q,CAAC,IAAI,CAAC,GAAG,IAAI,OAAO,EAAE,KAAK,OAAO,wBAAwB,CAAC,CAAC;YACnF,CAAC;QACH,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAC;AAEF,4DAA4D;AAC5D,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,MAAkC;IAC9E,MAAM,IAAI,GAAqB,EAAE,CAAC;IAClC,KAAK,MAAM,QAAQ,IAAI,qBAAqB,EAAE,CAAC;QAC7C,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;YAChD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QAC7G,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;QACjH,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,97 @@
1
+ /**
2
+ * The fixture harness: replay a profile's scripted provider answers through the engine, map and
3
+ * write each committed page through record-overlay over a MemoryBackend bundle, and check each
4
+ * required scenario's outcome rule. The rules are profile-independent, so one list holds every
5
+ * profile, generic or extension, to the same behaviour.
6
+ */
7
+ import { type Connector } from "../connectors.js";
8
+ import type { OverlayReceipt, RecordChange } from "../record-overlay/types.js";
9
+ import { type SourceState } from "../source-engine/machine-state.js";
10
+ import { type FetchIdentity } from "../source-engine/robots.js";
11
+ import type { ObserveSourceOptions, SourceBudget, SourceProfile, SourceRunReceipt } from "../source-engine/types.js";
12
+ import type { ConceptId, Frontmatter, OkfDocument } from "../types.js";
13
+ import { type PeerRequest, type ScriptedExchange, type TransportCredential } from "./peer.js";
14
+ /** Every profile's fixture includes these; a name may add a variant after a dot (`cursor.resume.page-number`). */
15
+ export declare const REQUIRED_SCENARIOS: readonly ["errors.auth", "errors.rate-limit", "errors.server", "errors.malformed", "page.incomplete", "cursor.resume", "cursor.hostile", "complete.disappear", "fields.owned-conflict", "fields.unmapped", "fields.null", "identity.missing", "hosts.redirect", "hosts.undeclared"];
16
+ export type RequiredScenario = (typeof REQUIRED_SCENARIOS)[number];
17
+ /** The required scenario a name counts toward, or undefined. */
18
+ export declare function scenarioBase(name: string): RequiredScenario | undefined;
19
+ /** Required scenarios no name covers. */
20
+ export declare function missingScenarios(names: Iterable<string>): RequiredScenario[];
21
+ export interface SourceFixture {
22
+ connector: Connector;
23
+ profile: SourceProfile<any, any>;
24
+ spec: unknown;
25
+ /**
26
+ * The bundle's starting documents: Conventions for the target Kind, `Signal` and `Source Feed`,
27
+ * the Source Feed, and any overlay documents.
28
+ */
29
+ documents: readonly OkfDocument[];
30
+ feed: ConceptId;
31
+ identity?: FetchIdentity;
32
+ credential?: TransportCredential;
33
+ /** Explicit fixture-only host assertion; never inferred from a declaration or used for live consent. */
34
+ readPolicyApproval?: ObserveSourceOptions["readPolicyApproval"];
35
+ }
36
+ export interface SourceRunScript {
37
+ mode?: "incremental" | "complete";
38
+ /** The run's observation time; runs default to one hour apart. */
39
+ at?: string;
40
+ exchanges: readonly ScriptedExchange[];
41
+ /** Editor edits applied before the run. */
42
+ edits?: ReadonlyArray<{
43
+ id: ConceptId;
44
+ set: Record<string, unknown>;
45
+ }>;
46
+ budget?: Partial<SourceBudget>;
47
+ }
48
+ export interface SourceScenario {
49
+ name: string;
50
+ /** Replaces the fixture's spec for this scenario. */
51
+ spec?: unknown;
52
+ runs: readonly SourceRunScript[];
53
+ }
54
+ export interface ScenarioRun {
55
+ receipt: SourceRunReceipt;
56
+ /** Every change a commit carried, replays of pending changes included. */
57
+ changes: RecordChange[];
58
+ /** One record-overlay receipt per committed page. */
59
+ overlay: OverlayReceipt[];
60
+ /** The run's findings, written. */
61
+ findings: OverlayReceipt;
62
+ /** Requests that reached the provider. */
63
+ received: PeerRequest[];
64
+ unscripted: string[];
65
+ unused: ScriptedExchange[];
66
+ stateBefore: SourceState | null;
67
+ state: SourceState | null;
68
+ /** Every document's frontmatter after the run. */
69
+ documents: Record<string, Frontmatter>;
70
+ }
71
+ export interface ScenarioResult {
72
+ name: string;
73
+ base: RequiredScenario | undefined;
74
+ /** The declared hosts the scenario's spec may reach. */
75
+ hosts: string[];
76
+ threshold: number;
77
+ edits: Array<{
78
+ run: number;
79
+ id: ConceptId;
80
+ set: Record<string, unknown>;
81
+ }>;
82
+ runs: ScenarioRun[];
83
+ }
84
+ /** Run one scenario's runs in order over one fresh bundle and one machine state. */
85
+ export declare function runSourceScenario(fixture: SourceFixture, scenario: SourceScenario): Promise<ScenarioResult>;
86
+ /**
87
+ * The problems with one scenario's result: its required outcome rule, plus for every scenario no
88
+ * request to a host outside the declared set and no request the fixture did not script.
89
+ */
90
+ export declare function checkScenario(result: ScenarioResult): string[];
91
+ /** Run every scenario of a fixture, check each, and list the required scenarios it lacks. */
92
+ export declare function runSourceFixture(fixture: SourceFixture, scenarios: readonly SourceScenario[]): Promise<{
93
+ results: ScenarioResult[];
94
+ problems: Record<string, string[]>;
95
+ missing: RequiredScenario[];
96
+ }>;
97
+ //# sourceMappingURL=fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fixture.d.ts","sourceRoot":"","sources":["../../src/source-harness/fixture.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAmD,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAMnG,OAAO,KAAK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