@superbee/core 0.2.0-pre.4 → 0.2.0-pre.40
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.
- package/README.md +1209 -0
- package/dist/artifact-contract.d.ts +90 -0
- package/dist/artifact-contract.d.ts.map +1 -0
- package/dist/artifact-contract.js +205 -0
- package/dist/artifact-contract.js.map +1 -0
- package/dist/backend.d.ts +22 -2
- package/dist/backend.d.ts.map +1 -1
- package/dist/backend.js +153 -38
- package/dist/backend.js.map +1 -1
- package/dist/blob-contract.d.ts +82 -0
- package/dist/blob-contract.d.ts.map +1 -0
- package/dist/blob-contract.js +134 -0
- package/dist/blob-contract.js.map +1 -0
- package/dist/blob-journal.d.ts +303 -0
- package/dist/blob-journal.d.ts.map +1 -0
- package/dist/blob-journal.js +541 -0
- package/dist/blob-journal.js.map +1 -0
- package/dist/body-replace-guards.d.ts +52 -0
- package/dist/body-replace-guards.d.ts.map +1 -0
- package/dist/body-replace-guards.js +176 -0
- package/dist/body-replace-guards.js.map +1 -0
- package/dist/builtin-recipes/content.d.ts +93 -0
- package/dist/builtin-recipes/content.d.ts.map +1 -0
- package/dist/builtin-recipes/content.js +288 -0
- package/dist/builtin-recipes/content.js.map +1 -0
- package/dist/builtin-recipes.d.ts +10 -0
- package/dist/builtin-recipes.d.ts.map +1 -0
- package/dist/builtin-recipes.js +97 -0
- package/dist/builtin-recipes.js.map +1 -0
- package/dist/bundle-health/index.d.ts +14 -0
- package/dist/bundle-health/index.d.ts.map +1 -0
- package/dist/bundle-health/index.js +12 -0
- package/dist/bundle-health/index.js.map +1 -0
- package/dist/bundle-health/kind-findings.d.ts +44 -0
- package/dist/bundle-health/kind-findings.d.ts.map +1 -0
- package/dist/bundle-health/kind-findings.js +68 -0
- package/dist/bundle-health/kind-findings.js.map +1 -0
- package/dist/bundle-health/legacy-page.d.ts +39 -0
- package/dist/bundle-health/legacy-page.d.ts.map +1 -0
- package/dist/bundle-health/legacy-page.js +50 -0
- package/dist/bundle-health/legacy-page.js.map +1 -0
- package/dist/bundle-health/report.d.ts +207 -0
- package/dist/bundle-health/report.d.ts.map +1 -0
- package/dist/bundle-health/report.js +454 -0
- package/dist/bundle-health/report.js.map +1 -0
- package/dist/bundle-ops.d.ts +3 -2
- package/dist/bundle-ops.d.ts.map +1 -1
- package/dist/bundle-ops.js +4 -4
- package/dist/bundle-ops.js.map +1 -1
- package/dist/bundle.d.ts +3 -4
- package/dist/bundle.d.ts.map +1 -1
- package/dist/bundle.js +5 -14
- package/dist/bundle.js.map +1 -1
- package/dist/code-point-order.d.ts +8 -0
- package/dist/code-point-order.d.ts.map +1 -0
- package/dist/code-point-order.js +20 -0
- package/dist/code-point-order.js.map +1 -0
- package/dist/code-unit-order.d.ts +15 -0
- package/dist/code-unit-order.d.ts.map +1 -0
- package/dist/code-unit-order.js +17 -0
- package/dist/code-unit-order.js.map +1 -0
- package/dist/connector-request.d.ts +112 -0
- package/dist/connector-request.d.ts.map +1 -0
- package/dist/connector-request.js +495 -0
- package/dist/connector-request.js.map +1 -0
- package/dist/connectors.d.ts +297 -0
- package/dist/connectors.d.ts.map +1 -0
- package/dist/connectors.js +1233 -0
- package/dist/connectors.js.map +1 -0
- package/dist/cross-bundle.d.ts +135 -0
- package/dist/cross-bundle.d.ts.map +1 -0
- package/dist/cross-bundle.js +191 -0
- package/dist/cross-bundle.js.map +1 -0
- package/dist/dependencies.d.ts +94 -0
- package/dist/dependencies.d.ts.map +1 -0
- package/dist/dependencies.js +180 -0
- package/dist/dependencies.js.map +1 -0
- package/dist/document-codec.d.ts +7 -2
- package/dist/document-codec.d.ts.map +1 -1
- package/dist/document-codec.js +8 -5
- package/dist/document-codec.js.map +1 -1
- package/dist/document-field-actions.d.ts +31 -1
- package/dist/document-field-actions.d.ts.map +1 -1
- package/dist/document-field-actions.js +137 -34
- package/dist/document-field-actions.js.map +1 -1
- package/dist/document-mutation.d.ts +35 -13
- package/dist/document-mutation.d.ts.map +1 -1
- package/dist/document-mutation.js +124 -60
- package/dist/document-mutation.js.map +1 -1
- package/dist/document-transfer.d.ts +208 -0
- package/dist/document-transfer.d.ts.map +1 -0
- package/dist/document-transfer.js +928 -0
- package/dist/document-transfer.js.map +1 -0
- package/dist/document-write-policy.d.ts.map +1 -1
- package/dist/document-write-policy.js +4 -2
- package/dist/document-write-policy.js.map +1 -1
- package/dist/domain-model.d.ts +73 -0
- package/dist/domain-model.d.ts.map +1 -0
- package/dist/domain-model.js +169 -0
- package/dist/domain-model.js.map +1 -0
- package/dist/engine.d.ts +21 -9
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +72 -14
- package/dist/engine.js.map +1 -1
- package/dist/file-journaled-backend-internal.d.ts +21 -0
- package/dist/file-journaled-backend-internal.d.ts.map +1 -0
- package/dist/file-journaled-backend-internal.js +12 -0
- package/dist/file-journaled-backend-internal.js.map +1 -0
- package/dist/file-journaled-backend.d.ts +160 -0
- package/dist/file-journaled-backend.d.ts.map +1 -0
- package/dist/file-journaled-backend.js +1345 -0
- package/dist/file-journaled-backend.js.map +1 -0
- package/dist/filesystem-host.d.ts +15 -0
- package/dist/filesystem-host.d.ts.map +1 -0
- package/dist/filesystem-host.js +20 -0
- package/dist/filesystem-host.js.map +1 -0
- package/dist/filesystem-identity.d.ts +97 -21
- package/dist/filesystem-identity.d.ts.map +1 -1
- package/dist/filesystem-identity.js +398 -119
- package/dist/filesystem-identity.js.map +1 -1
- package/dist/filesystem-lock.d.ts +16 -3
- package/dist/filesystem-lock.d.ts.map +1 -1
- package/dist/filesystem-lock.js +323 -77
- package/dist/filesystem-lock.js.map +1 -1
- package/dist/filesystem-push-role.d.ts +77 -0
- package/dist/filesystem-push-role.d.ts.map +1 -0
- package/dist/filesystem-push-role.js +165 -0
- package/dist/filesystem-push-role.js.map +1 -0
- package/dist/filesystem.d.ts +17 -0
- package/dist/filesystem.d.ts.map +1 -0
- package/dist/filesystem.js +18 -0
- package/dist/filesystem.js.map +1 -0
- package/dist/frontmatter.d.ts +8 -6
- package/dist/frontmatter.d.ts.map +1 -1
- package/dist/frontmatter.js +5 -4
- package/dist/frontmatter.js.map +1 -1
- package/dist/governed-body-write.d.ts +8 -1
- package/dist/governed-body-write.d.ts.map +1 -1
- package/dist/governed-body-write.js +9 -2
- package/dist/governed-body-write.js.map +1 -1
- package/dist/heads-digest.d.ts.map +1 -1
- package/dist/heads-digest.js +2 -1
- package/dist/heads-digest.js.map +1 -1
- package/dist/host-policy-snapshot.d.ts +9 -0
- package/dist/host-policy-snapshot.d.ts.map +1 -0
- package/dist/host-policy-snapshot.js +33 -0
- package/dist/host-policy-snapshot.js.map +1 -0
- package/dist/host-text.d.ts +31 -0
- package/dist/host-text.d.ts.map +1 -0
- package/dist/host-text.js +77 -0
- package/dist/host-text.js.map +1 -0
- package/dist/hosted-client/binding.d.ts +7 -0
- package/dist/hosted-client/binding.d.ts.map +1 -0
- package/dist/hosted-client/binding.js +10 -0
- package/dist/hosted-client/binding.js.map +1 -0
- package/dist/hosted-client/blob-delivery.d.ts +68 -0
- package/dist/hosted-client/blob-delivery.d.ts.map +1 -0
- package/dist/hosted-client/blob-delivery.js +170 -0
- package/dist/hosted-client/blob-delivery.js.map +1 -0
- package/dist/hosted-client/blob-write.d.ts +387 -0
- package/dist/hosted-client/blob-write.d.ts.map +1 -0
- package/dist/hosted-client/blob-write.js +770 -0
- package/dist/hosted-client/blob-write.js.map +1 -0
- package/dist/hosted-client/bundle-listing.d.ts +46 -0
- package/dist/hosted-client/bundle-listing.d.ts.map +1 -0
- package/dist/hosted-client/bundle-listing.js +36 -0
- package/dist/hosted-client/bundle-listing.js.map +1 -0
- package/dist/hosted-client/client.d.ts +219 -0
- package/dist/hosted-client/client.d.ts.map +1 -0
- package/dist/hosted-client/client.js +309 -0
- package/dist/hosted-client/client.js.map +1 -0
- package/dist/hosted-client/directory.d.ts +46 -0
- package/dist/hosted-client/directory.d.ts.map +1 -0
- package/dist/hosted-client/directory.js +74 -0
- package/dist/hosted-client/directory.js.map +1 -0
- package/dist/hosted-client/errors.d.ts +26 -0
- package/dist/hosted-client/errors.d.ts.map +1 -0
- package/dist/hosted-client/errors.js +35 -0
- package/dist/hosted-client/errors.js.map +1 -0
- package/dist/hosted-client/inbox.d.ts +320 -0
- package/dist/hosted-client/inbox.d.ts.map +1 -0
- package/dist/hosted-client/inbox.js +379 -0
- package/dist/hosted-client/inbox.js.map +1 -0
- package/dist/hosted-client/index.d.ts +30 -0
- package/dist/hosted-client/index.d.ts.map +1 -0
- package/dist/hosted-client/index.js +32 -0
- package/dist/hosted-client/index.js.map +1 -0
- package/dist/hosted-client/journal.d.ts +103 -0
- package/dist/hosted-client/journal.d.ts.map +1 -0
- package/dist/hosted-client/journal.js +464 -0
- package/dist/hosted-client/journal.js.map +1 -0
- package/dist/hosted-client/node.d.ts +74 -0
- package/dist/hosted-client/node.d.ts.map +1 -0
- package/dist/hosted-client/node.js +219 -0
- package/dist/hosted-client/node.js.map +1 -0
- package/dist/hosted-client/reference.d.ts +12 -0
- package/dist/hosted-client/reference.d.ts.map +1 -0
- package/dist/hosted-client/reference.js +29 -0
- package/dist/hosted-client/reference.js.map +1 -0
- package/dist/hosted-client/write.d.ts +217 -0
- package/dist/hosted-client/write.d.ts.map +1 -0
- package/dist/hosted-client/write.js +418 -0
- package/dist/hosted-client/write.js.map +1 -0
- package/dist/hosted-transport/answer-rows.d.ts +243 -0
- package/dist/hosted-transport/answer-rows.d.ts.map +1 -0
- package/dist/hosted-transport/answer-rows.js +457 -0
- package/dist/hosted-transport/answer-rows.js.map +1 -0
- package/dist/hosted-transport/blob-reads.d.ts +35 -0
- package/dist/hosted-transport/blob-reads.d.ts.map +1 -0
- package/dist/hosted-transport/blob-reads.js +179 -0
- package/dist/hosted-transport/blob-reads.js.map +1 -0
- package/dist/hosted-transport/blob-write.d.ts +34 -0
- package/dist/hosted-transport/blob-write.d.ts.map +1 -0
- package/dist/hosted-transport/blob-write.js +115 -0
- package/dist/hosted-transport/blob-write.js.map +1 -0
- package/dist/hosted-transport/carrier.d.ts +151 -0
- package/dist/hosted-transport/carrier.d.ts.map +1 -0
- package/dist/hosted-transport/carrier.js +260 -0
- package/dist/hosted-transport/carrier.js.map +1 -0
- package/dist/hosted-transport/history-pages.d.ts +55 -0
- package/dist/hosted-transport/history-pages.d.ts.map +1 -0
- package/dist/hosted-transport/history-pages.js +69 -0
- package/dist/hosted-transport/history-pages.js.map +1 -0
- package/dist/hosted-transport/index.d.ts +18 -0
- package/dist/hosted-transport/index.d.ts.map +1 -0
- package/dist/hosted-transport/index.js +18 -0
- package/dist/hosted-transport/index.js.map +1 -0
- package/dist/hosted-transport/operations.d.ts +85 -0
- package/dist/hosted-transport/operations.d.ts.map +1 -0
- package/dist/hosted-transport/operations.js +128 -0
- package/dist/hosted-transport/operations.js.map +1 -0
- package/dist/hosted-transport/paged-reads.d.ts +87 -0
- package/dist/hosted-transport/paged-reads.d.ts.map +1 -0
- package/dist/hosted-transport/paged-reads.js +238 -0
- package/dist/hosted-transport/paged-reads.js.map +1 -0
- package/dist/hosted-transport/read-adapter.d.ts +256 -0
- package/dist/hosted-transport/read-adapter.d.ts.map +1 -0
- package/dist/hosted-transport/read-adapter.js +568 -0
- package/dist/hosted-transport/read-adapter.js.map +1 -0
- package/dist/hosted-transport/root-write.d.ts +114 -0
- package/dist/hosted-transport/root-write.d.ts.map +1 -0
- package/dist/hosted-transport/root-write.js +171 -0
- package/dist/hosted-transport/root-write.js.map +1 -0
- package/dist/hosted-transport/whole-document-transport.d.ts +204 -0
- package/dist/hosted-transport/whole-document-transport.d.ts.map +1 -0
- package/dist/hosted-transport/whole-document-transport.js +447 -0
- package/dist/hosted-transport/whole-document-transport.js.map +1 -0
- package/dist/identity-fold.d.ts +18 -0
- package/dist/identity-fold.d.ts.map +1 -0
- package/dist/identity-fold.js +22 -0
- package/dist/identity-fold.js.map +1 -0
- package/dist/index.d.ts +41 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -9
- package/dist/index.js.map +1 -1
- package/dist/indexeddb-backend.d.ts +25 -33
- package/dist/indexeddb-backend.d.ts.map +1 -1
- package/dist/indexeddb-backend.js +264 -8
- package/dist/indexeddb-backend.js.map +1 -1
- package/dist/inventory-guard.d.ts +58 -0
- package/dist/inventory-guard.d.ts.map +1 -0
- package/dist/inventory-guard.js +169 -0
- package/dist/inventory-guard.js.map +1 -0
- package/dist/journaled-backend.d.ts +149 -9
- package/dist/journaled-backend.d.ts.map +1 -1
- package/dist/journaled-backend.js +64 -58
- package/dist/journaled-backend.js.map +1 -1
- package/dist/kind-authoring.d.ts +170 -0
- package/dist/kind-authoring.d.ts.map +1 -0
- package/dist/kind-authoring.js +452 -0
- package/dist/kind-authoring.js.map +1 -0
- package/dist/kind-changes.d.ts +45 -0
- package/dist/kind-changes.d.ts.map +1 -0
- package/dist/kind-changes.js +96 -0
- package/dist/kind-changes.js.map +1 -0
- package/dist/kind-conformance-error.d.ts +15 -0
- package/dist/kind-conformance-error.d.ts.map +1 -0
- package/dist/kind-conformance-error.js +20 -0
- package/dist/kind-conformance-error.js.map +1 -0
- package/dist/kind-coverage.d.ts +99 -0
- package/dist/kind-coverage.d.ts.map +1 -0
- package/dist/kind-coverage.js +186 -0
- package/dist/kind-coverage.js.map +1 -0
- package/dist/kind-deprecation.d.ts +32 -0
- package/dist/kind-deprecation.d.ts.map +1 -0
- package/dist/kind-deprecation.js +141 -0
- package/dist/kind-deprecation.js.map +1 -0
- package/dist/kind-field-mutation.d.ts +4 -0
- package/dist/kind-field-mutation.d.ts.map +1 -1
- package/dist/kind-field-mutation.js +28 -3
- package/dist/kind-field-mutation.js.map +1 -1
- package/dist/kinds-load.js +4 -4
- package/dist/kinds-load.js.map +1 -1
- package/dist/kinds.d.ts +111 -2
- package/dist/kinds.d.ts.map +1 -1
- package/dist/kinds.js +386 -20
- package/dist/kinds.js.map +1 -1
- package/dist/link-emit.d.ts +29 -0
- package/dist/link-emit.d.ts.map +1 -0
- package/dist/link-emit.js +39 -0
- package/dist/link-emit.js.map +1 -0
- package/dist/link-types.d.ts +27 -0
- package/dist/link-types.d.ts.map +1 -0
- package/dist/link-types.js +60 -0
- package/dist/link-types.js.map +1 -0
- package/dist/links.d.ts +52 -3
- package/dist/links.d.ts.map +1 -1
- package/dist/links.js +259 -18
- package/dist/links.js.map +1 -1
- package/dist/managed-document-metadata.d.ts +2 -0
- package/dist/managed-document-metadata.d.ts.map +1 -0
- package/dist/managed-document-metadata.js +9 -0
- package/dist/managed-document-metadata.js.map +1 -0
- package/dist/memory-backend.d.ts +3 -0
- package/dist/memory-backend.d.ts.map +1 -1
- package/dist/memory-backend.js +44 -2
- package/dist/memory-backend.js.map +1 -1
- package/dist/okf-actor.d.ts +1 -0
- package/dist/okf-actor.d.ts.map +1 -1
- package/dist/okf-actor.js +1 -0
- package/dist/okf-actor.js.map +1 -1
- package/dist/okf-authoring.d.ts +4 -0
- package/dist/okf-authoring.d.ts.map +1 -0
- package/dist/okf-authoring.js +12 -0
- package/dist/okf-authoring.js.map +1 -0
- package/dist/okf-standard-fields.d.ts +3 -0
- package/dist/okf-standard-fields.d.ts.map +1 -1
- package/dist/okf-standard-fields.js +3 -0
- package/dist/okf-standard-fields.js.map +1 -1
- package/dist/path-fold.d.ts +39 -0
- package/dist/path-fold.d.ts.map +1 -0
- package/dist/path-fold.js +41 -0
- package/dist/path-fold.js.map +1 -0
- package/dist/paths.d.ts +18 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +32 -0
- package/dist/paths.js.map +1 -1
- package/dist/platform.d.ts +13 -2
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +16 -0
- package/dist/platform.js.map +1 -1
- package/dist/portable-export.d.ts +119 -0
- package/dist/portable-export.d.ts.map +1 -0
- package/dist/portable-export.js +501 -0
- package/dist/portable-export.js.map +1 -0
- package/dist/publication-filesystem.d.ts +1 -1
- package/dist/publication-filesystem.d.ts.map +1 -1
- package/dist/publication-filesystem.js +1 -1
- package/dist/publication-filesystem.js.map +1 -1
- package/dist/qualified-links.d.ts +67 -0
- package/dist/qualified-links.d.ts.map +1 -0
- package/dist/qualified-links.js +117 -0
- package/dist/qualified-links.js.map +1 -0
- package/dist/query-filter.d.ts +16 -2
- package/dist/query-filter.d.ts.map +1 -1
- package/dist/query-filter.js +40 -1
- package/dist/query-filter.js.map +1 -1
- package/dist/query-order.d.ts +22 -0
- package/dist/query-order.d.ts.map +1 -0
- package/dist/query-order.js +43 -0
- package/dist/query-order.js.map +1 -0
- package/dist/recipe-lifecycle/errors.d.ts +96 -0
- package/dist/recipe-lifecycle/errors.d.ts.map +1 -0
- package/dist/recipe-lifecycle/errors.js +122 -0
- package/dist/recipe-lifecycle/errors.js.map +1 -0
- package/dist/recipe-lifecycle/evolution.d.ts +124 -0
- package/dist/recipe-lifecycle/evolution.d.ts.map +1 -0
- package/dist/recipe-lifecycle/evolution.js +993 -0
- package/dist/recipe-lifecycle/evolution.js.map +1 -0
- package/dist/recipe-lifecycle/index.d.ts +34 -0
- package/dist/recipe-lifecycle/index.d.ts.map +1 -0
- package/dist/recipe-lifecycle/index.js +28 -0
- package/dist/recipe-lifecycle/index.js.map +1 -0
- package/dist/recipe-lifecycle/install.d.ts +155 -0
- package/dist/recipe-lifecycle/install.d.ts.map +1 -0
- package/dist/recipe-lifecycle/install.js +604 -0
- package/dist/recipe-lifecycle/install.js.map +1 -0
- package/dist/recipe-lifecycle/legacy-aliases.d.ts +16 -0
- package/dist/recipe-lifecycle/legacy-aliases.d.ts.map +1 -0
- package/dist/recipe-lifecycle/legacy-aliases.js +51 -0
- package/dist/recipe-lifecycle/legacy-aliases.js.map +1 -0
- package/dist/recipe-lifecycle/retirement-apply.d.ts +59 -0
- package/dist/recipe-lifecycle/retirement-apply.d.ts.map +1 -0
- package/dist/recipe-lifecycle/retirement-apply.js +165 -0
- package/dist/recipe-lifecycle/retirement-apply.js.map +1 -0
- package/dist/recipe-lifecycle/retirement.d.ts +89 -0
- package/dist/recipe-lifecycle/retirement.d.ts.map +1 -0
- package/dist/recipe-lifecycle/retirement.js +347 -0
- package/dist/recipe-lifecycle/retirement.js.map +1 -0
- package/dist/recipe-lifecycle/stamp.d.ts +151 -0
- package/dist/recipe-lifecycle/stamp.d.ts.map +1 -0
- package/dist/recipe-lifecycle/stamp.js +364 -0
- package/dist/recipe-lifecycle/stamp.js.map +1 -0
- package/dist/recipe-set-preflight.d.ts +139 -0
- package/dist/recipe-set-preflight.d.ts.map +1 -0
- package/dist/recipe-set-preflight.js +536 -0
- package/dist/recipe-set-preflight.js.map +1 -0
- package/dist/recipes.d.ts +29 -1
- package/dist/recipes.d.ts.map +1 -1
- package/dist/recipes.js +137 -1
- package/dist/recipes.js.map +1 -1
- package/dist/record-overlay/apply.d.ts +43 -0
- package/dist/record-overlay/apply.d.ts.map +1 -0
- package/dist/record-overlay/apply.js +527 -0
- package/dist/record-overlay/apply.js.map +1 -0
- package/dist/record-overlay/canonical.d.ts +22 -0
- package/dist/record-overlay/canonical.d.ts.map +1 -0
- package/dist/record-overlay/canonical.js +47 -0
- package/dist/record-overlay/canonical.js.map +1 -0
- package/dist/record-overlay/digest.d.ts +4 -0
- package/dist/record-overlay/digest.d.ts.map +1 -0
- package/dist/record-overlay/digest.js +11 -0
- package/dist/record-overlay/digest.js.map +1 -0
- package/dist/record-overlay/errors.d.ts +44 -0
- package/dist/record-overlay/errors.d.ts.map +1 -0
- package/dist/record-overlay/errors.js +55 -0
- package/dist/record-overlay/errors.js.map +1 -0
- package/dist/record-overlay/findings.d.ts +5 -0
- package/dist/record-overlay/findings.d.ts.map +1 -0
- package/dist/record-overlay/findings.js +83 -0
- package/dist/record-overlay/findings.js.map +1 -0
- package/dist/record-overlay/index.d.ts +23 -0
- package/dist/record-overlay/index.d.ts.map +1 -0
- package/dist/record-overlay/index.js +21 -0
- package/dist/record-overlay/index.js.map +1 -0
- package/dist/record-overlay/plan.d.ts +12 -0
- package/dist/record-overlay/plan.d.ts.map +1 -0
- package/dist/record-overlay/plan.js +285 -0
- package/dist/record-overlay/plan.js.map +1 -0
- package/dist/record-overlay/policy.d.ts +74 -0
- package/dist/record-overlay/policy.d.ts.map +1 -0
- package/dist/record-overlay/policy.js +235 -0
- package/dist/record-overlay/policy.js.map +1 -0
- package/dist/record-overlay/redact.d.ts +3 -0
- package/dist/record-overlay/redact.d.ts.map +1 -0
- package/dist/record-overlay/redact.js +27 -0
- package/dist/record-overlay/redact.js.map +1 -0
- package/dist/record-overlay/signal-kind.d.ts +30 -0
- package/dist/record-overlay/signal-kind.d.ts.map +1 -0
- package/dist/record-overlay/signal-kind.js +38 -0
- package/dist/record-overlay/signal-kind.js.map +1 -0
- package/dist/record-overlay/signal-text.d.ts +45 -0
- package/dist/record-overlay/signal-text.d.ts.map +1 -0
- package/dist/record-overlay/signal-text.js +116 -0
- package/dist/record-overlay/signal-text.js.map +1 -0
- package/dist/record-overlay/source-index.d.ts +19 -0
- package/dist/record-overlay/source-index.d.ts.map +1 -0
- package/dist/record-overlay/source-index.js +102 -0
- package/dist/record-overlay/source-index.js.map +1 -0
- package/dist/record-overlay/types.d.ts +291 -0
- package/dist/record-overlay/types.d.ts.map +1 -0
- package/dist/record-overlay/types.js +2 -0
- package/dist/record-overlay/types.js.map +1 -0
- package/dist/remote-backend.d.ts +58 -13
- package/dist/remote-backend.d.ts.map +1 -1
- package/dist/remote-backend.js +156 -36
- package/dist/remote-backend.js.map +1 -1
- package/dist/remote-document-codec.d.ts +2 -1
- package/dist/remote-document-codec.d.ts.map +1 -1
- package/dist/remote-document-codec.js +3 -2
- package/dist/remote-document-codec.js.map +1 -1
- package/dist/remote-error.d.ts +17 -1
- package/dist/remote-error.d.ts.map +1 -1
- package/dist/remote-error.js +32 -2
- package/dist/remote-error.js.map +1 -1
- package/dist/remote-operations.d.ts +0 -40
- package/dist/remote-operations.d.ts.map +1 -1
- package/dist/remote-operations.js +26 -6
- package/dist/remote-operations.js.map +1 -1
- package/dist/remote-parsers.d.ts +1 -1
- package/dist/remote-parsers.js +1 -1
- package/dist/search/backend-source.d.ts +6 -0
- package/dist/search/backend-source.d.ts.map +1 -0
- package/dist/search/backend-source.js +33 -0
- package/dist/search/backend-source.js.map +1 -0
- package/dist/search/contract.d.ts +151 -0
- package/dist/search/contract.d.ts.map +1 -0
- package/dist/search/contract.js +78 -0
- package/dist/search/contract.js.map +1 -0
- package/dist/search/errors.d.ts +30 -0
- package/dist/search/errors.d.ts.map +1 -0
- package/dist/search/errors.js +50 -0
- package/dist/search/errors.js.map +1 -0
- package/dist/search/identity.d.ts +12 -0
- package/dist/search/identity.d.ts.map +1 -0
- package/dist/search/identity.js +90 -0
- package/dist/search/identity.js.map +1 -0
- package/dist/search/index.d.ts +16 -0
- package/dist/search/index.d.ts.map +1 -0
- package/dist/search/index.js +15 -0
- package/dist/search/index.js.map +1 -0
- package/dist/search/memory-source.d.ts +36 -0
- package/dist/search/memory-source.d.ts.map +1 -0
- package/dist/search/memory-source.js +235 -0
- package/dist/search/memory-source.js.map +1 -0
- package/dist/search/rank.d.ts +34 -0
- package/dist/search/rank.d.ts.map +1 -0
- package/dist/search/rank.js +129 -0
- package/dist/search/rank.js.map +1 -0
- package/dist/search/row-text.d.ts +38 -0
- package/dist/search/row-text.d.ts.map +1 -0
- package/dist/search/row-text.js +88 -0
- package/dist/search/row-text.js.map +1 -0
- package/dist/search/search.d.ts +28 -0
- package/dist/search/search.d.ts.map +1 -0
- package/dist/search/search.js +257 -0
- package/dist/search/search.js.map +1 -0
- package/dist/search/source.d.ts +67 -0
- package/dist/search/source.d.ts.map +1 -0
- package/dist/search/source.js +2 -0
- package/dist/search/source.js.map +1 -0
- package/dist/search/text.d.ts +47 -0
- package/dist/search/text.d.ts.map +1 -0
- package/dist/search/text.js +150 -0
- package/dist/search/text.js.map +1 -0
- package/dist/site-capabilities.d.ts +345 -0
- package/dist/site-capabilities.d.ts.map +1 -0
- package/dist/site-capabilities.js +724 -0
- package/dist/site-capabilities.js.map +1 -0
- package/dist/source-engine/driver.d.ts +40 -0
- package/dist/source-engine/driver.d.ts.map +1 -0
- package/dist/source-engine/driver.js +392 -0
- package/dist/source-engine/driver.js.map +1 -0
- package/dist/source-engine/evidence.d.ts +39 -0
- package/dist/source-engine/evidence.d.ts.map +1 -0
- package/dist/source-engine/evidence.js +54 -0
- package/dist/source-engine/evidence.js.map +1 -0
- package/dist/source-engine/guard.d.ts +87 -0
- package/dist/source-engine/guard.d.ts.map +1 -0
- package/dist/source-engine/guard.js +427 -0
- package/dist/source-engine/guard.js.map +1 -0
- package/dist/source-engine/index.d.ts +33 -0
- package/dist/source-engine/index.d.ts.map +1 -0
- package/dist/source-engine/index.js +26 -0
- package/dist/source-engine/index.js.map +1 -0
- package/dist/source-engine/machine-state.d.ts +74 -0
- package/dist/source-engine/machine-state.d.ts.map +1 -0
- package/dist/source-engine/machine-state.js +48 -0
- package/dist/source-engine/machine-state.js.map +1 -0
- package/dist/source-engine/observe.d.ts +10 -0
- package/dist/source-engine/observe.d.ts.map +1 -0
- package/dist/source-engine/observe.js +270 -0
- package/dist/source-engine/observe.js.map +1 -0
- package/dist/source-engine/overlay.d.ts +50 -0
- package/dist/source-engine/overlay.d.ts.map +1 -0
- package/dist/source-engine/overlay.js +114 -0
- package/dist/source-engine/overlay.js.map +1 -0
- package/dist/source-engine/robots.d.ts +53 -0
- package/dist/source-engine/robots.d.ts.map +1 -0
- package/dist/source-engine/robots.js +158 -0
- package/dist/source-engine/robots.js.map +1 -0
- package/dist/source-engine/snapshot.d.ts +104 -0
- package/dist/source-engine/snapshot.d.ts.map +1 -0
- package/dist/source-engine/snapshot.js +240 -0
- package/dist/source-engine/snapshot.js.map +1 -0
- package/dist/source-engine/types.d.ts +292 -0
- package/dist/source-engine/types.d.ts.map +1 -0
- package/dist/source-engine/types.js +2 -0
- package/dist/source-engine/types.js.map +1 -0
- package/dist/source-harness/conformance.d.ts +16 -0
- package/dist/source-harness/conformance.d.ts.map +1 -0
- package/dist/source-harness/conformance.js +266 -0
- package/dist/source-harness/conformance.js.map +1 -0
- package/dist/source-harness/fixture.d.ts +97 -0
- package/dist/source-harness/fixture.d.ts.map +1 -0
- package/dist/source-harness/fixture.js +276 -0
- package/dist/source-harness/fixture.js.map +1 -0
- package/dist/source-harness/index.d.ts +22 -0
- package/dist/source-harness/index.d.ts.map +1 -0
- package/dist/source-harness/index.js +19 -0
- package/dist/source-harness/index.js.map +1 -0
- package/dist/source-harness/peer.d.ts +74 -0
- package/dist/source-harness/peer.d.ts.map +1 -0
- package/dist/source-harness/peer.js +106 -0
- package/dist/source-harness/peer.js.map +1 -0
- package/dist/source-profiles/index.d.ts +31 -0
- package/dist/source-profiles/index.d.ts.map +1 -0
- package/dist/source-profiles/index.js +206 -0
- package/dist/source-profiles/index.js.map +1 -0
- package/dist/source-profiles/link-header.d.ts +6 -0
- package/dist/source-profiles/link-header.d.ts.map +1 -0
- package/dist/source-profiles/link-header.js +131 -0
- package/dist/source-profiles/link-header.js.map +1 -0
- package/dist/storage.d.ts +9 -2
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +6 -1
- package/dist/storage.js.map +1 -1
- package/dist/string-identity-agreement.d.ts +35 -0
- package/dist/string-identity-agreement.d.ts.map +1 -0
- package/dist/string-identity-agreement.js +72 -0
- package/dist/string-identity-agreement.js.map +1 -0
- package/dist/types.d.ts +41 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +0 -10
- package/dist/types.js.map +1 -1
- package/dist/uncertain-write.d.ts +157 -17
- package/dist/uncertain-write.d.ts.map +1 -1
- package/dist/uncertain-write.js +86 -30
- package/dist/uncertain-write.js.map +1 -1
- package/dist/versioning.d.ts +9 -4
- package/dist/versioning.d.ts.map +1 -1
- package/dist/versioning.js +9 -4
- package/dist/versioning.js.map +1 -1
- package/dist/view-launch-contract.d.ts +14 -0
- package/dist/view-launch-contract.d.ts.map +1 -0
- package/dist/view-launch-contract.js +23 -0
- package/dist/view-launch-contract.js.map +1 -0
- package/dist/write-identity.d.ts +5 -0
- package/dist/write-identity.d.ts.map +1 -0
- package/dist/write-identity.js +9 -0
- package/dist/write-identity.js.map +1 -0
- package/package.json +140 -3
package/dist/uncertain-write.js
CHANGED
|
@@ -15,12 +15,36 @@
|
|
|
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
|
-
/**
|
|
19
|
-
export const
|
|
18
|
+
/** The one {@link LookupPending} answer. */
|
|
19
|
+
export const LOOKUP_PENDING = Object.freeze({ kind: "pending" });
|
|
20
|
+
/**
|
|
21
|
+
* Refusal codes that pause shared operations rather than say the content is wrong: the caller's
|
|
22
|
+
* authorization is gone, or a hosted sync quota (`REQUEST_CAPACITY_*`, one per scope the host
|
|
23
|
+
* names) is spent. Nothing is lost; the refused intents are requeued when the store resumes.
|
|
24
|
+
*/
|
|
25
|
+
export const AUTHORIZATION_REFUSAL_CODES = new Set([
|
|
26
|
+
"AUTH_REQUIRED",
|
|
27
|
+
"FORBIDDEN",
|
|
28
|
+
"UNAUTHORIZED",
|
|
29
|
+
"PERMISSION_DENIED",
|
|
30
|
+
"REQUEST_CAPACITY_PRINCIPAL",
|
|
31
|
+
"REQUEST_CAPACITY_BUNDLE",
|
|
32
|
+
]);
|
|
20
33
|
/** True when a refusal reports lost permission, which pauses further shared operations. */
|
|
21
34
|
export function isAuthorizationRefusal(outcome) {
|
|
22
35
|
return outcome.kind === "refused" && AUTHORIZATION_REFUSAL_CODES.has(outcome.code);
|
|
23
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* True when a resend's refusal cannot settle an identity whose earlier delivery is unclear. An
|
|
39
|
+
* authorization refusal never can: access lost now says nothing about a delivery authorized
|
|
40
|
+
* earlier. Once a lookup answered {@link LookupPending}, an earlier delivery is known to be held,
|
|
41
|
+
* so no refusal the transport marks as attempt-only (`executed`) can either. Without that
|
|
42
|
+
* answer, a marked refusal of the same bytes (a schema `400`, the mass-delete hold) settles, as
|
|
43
|
+
* it would refuse a delayed first delivery too.
|
|
44
|
+
*/
|
|
45
|
+
function refusalLeavesUnknown(outcome, held) {
|
|
46
|
+
return outcome.kind === "refused" && (isAuthorizationRefusal(outcome) || (held && outcome.executed !== undefined));
|
|
47
|
+
}
|
|
24
48
|
/** The journal state an outcome settles an intent into. */
|
|
25
49
|
export function stateForOutcome(outcome) {
|
|
26
50
|
switch (outcome.kind) {
|
|
@@ -30,6 +54,8 @@ export function stateForOutcome(outcome) {
|
|
|
30
54
|
return "conflict";
|
|
31
55
|
case "refused":
|
|
32
56
|
return "refused";
|
|
57
|
+
case "not-executed":
|
|
58
|
+
return "pending";
|
|
33
59
|
case "unknown":
|
|
34
60
|
return "unknown";
|
|
35
61
|
}
|
|
@@ -77,10 +103,12 @@ const UNKNOWN = { kind: "unknown" };
|
|
|
77
103
|
* at that version. This is the wire's post-expiry compare-and-swap property: a committed write
|
|
78
104
|
* whose acknowledgement was lost and whose recorded outcome expired from the authority's
|
|
79
105
|
* retention window is resubmitted with its original `base`, which no longer matches, and the
|
|
80
|
-
* authority answers a conflict against the version the client itself committed.
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
106
|
+
* authority answers a conflict against the version the client itself committed. If the head
|
|
107
|
+
* has meanwhile returned to `base` exactly, the premise matches and the resubmission is applied
|
|
108
|
+
* again instead (see {@link performUncertainWrite}). The mapping depends only on the outcome and
|
|
109
|
+
* the intent, so the primitive owns it and every consumer settles such a write as acknowledged
|
|
110
|
+
* rather than presenting it as a concurrent edit. Every other conflict, including one against
|
|
111
|
+
* an absent head (`actual: null`), is returned unchanged.
|
|
84
112
|
*/
|
|
85
113
|
export function settleAgainstIntent(outcome, intent) {
|
|
86
114
|
if (outcome.kind === "conflict" && outcome.actual !== null && outcome.actual === intent.local) {
|
|
@@ -107,56 +135,76 @@ async function submitOnce(transport, intent, deadlineMs, sleep) {
|
|
|
107
135
|
controller.abort();
|
|
108
136
|
return UNKNOWN;
|
|
109
137
|
}
|
|
110
|
-
/**
|
|
111
|
-
* Deliver `intent` and settle it against the authority's recorded outcome.
|
|
112
|
-
*
|
|
113
|
-
* Flow: when the intent has never been submitted, submit it; when it has (`attempts > 0`), or
|
|
114
|
-
* when a submission's outcome is unknown, look the request identity up. A positive lookup
|
|
115
|
-
* settles the intent. A `null` lookup proves the authority never recorded the request, so a
|
|
116
|
-
* resubmission with the same `requestId` is the first delivery and is allowed, up to
|
|
117
|
-
* `maxSubmissions`. A lookup that fails leaves the outcome unknown and the intent for a later
|
|
118
|
-
* call.
|
|
119
|
-
*
|
|
120
|
-
* No resubmission happens without a `null` lookup because a blind retry after an unknown
|
|
121
|
-
* outcome is unsound: on an authority without request identity the retry applies the write
|
|
122
|
-
* twice, and even on one with it the retry can only ever learn what the lookup already knew.
|
|
123
|
-
* The lookup is what turns "unknown" into a fact before any second delivery.
|
|
124
|
-
*
|
|
125
|
-
* By default every outcome passes through {@link settleAgainstIntent}, so a conflict naming the
|
|
126
|
-
* intent's own version is committed. `recorded-only` preserves the recorded outcome instead.
|
|
127
|
-
*/
|
|
128
138
|
export async function performUncertainWrite(transport, intent, options = {}) {
|
|
139
|
+
const explicitStart = "start" in options;
|
|
140
|
+
if (explicitStart) {
|
|
141
|
+
if (options.settlement !== "recorded-only" || (options.start !== "submit-claimed" && options.start !== "lookup") ||
|
|
142
|
+
!Number.isSafeInteger(intent.attempts) || intent.attempts < 0 ||
|
|
143
|
+
!["pending", "in_flight", "acknowledged", "conflict", "refused", "unknown"].includes(intent.state) ||
|
|
144
|
+
(options.start === "submit-claimed" && (intent.state !== "in_flight" || intent.attempts < 1)))
|
|
145
|
+
throw new Error("Invalid recorded-only delivery start or durable claim.");
|
|
146
|
+
if (intent.notAppliedThrough !== undefined && (!Number.isSafeInteger(intent.notAppliedThrough) || intent.notAppliedThrough < 0 || intent.notAppliedThrough > intent.attempts || options.start === "submit-claimed" && intent.notAppliedThrough !== intent.attempts - 1))
|
|
147
|
+
throw new Error("Invalid recorded-only non-execution prefix or durable claim.");
|
|
148
|
+
// Capture the descriptor before the first asynchronous boundary. Additional prepared data
|
|
149
|
+
// belongs to the typed caller; the primitive neither fabricates nor interprets its fields.
|
|
150
|
+
intent = { ...intent };
|
|
151
|
+
options = { ...options };
|
|
152
|
+
}
|
|
129
153
|
if (options.settlement !== undefined && options.settlement !== "exact-content" && options.settlement !== "recorded-only") {
|
|
130
154
|
throw new Error("Unknown uncertain-write settlement mode.");
|
|
131
155
|
}
|
|
132
156
|
const sleep = options.sleep ?? defaultSleep;
|
|
133
157
|
const maxLookups = Math.max(1, options.maxLookups ?? 3);
|
|
134
|
-
const maxSubmissions = Math.max(1, options.maxSubmissions ?? 2);
|
|
158
|
+
const maxSubmissions = explicitStart ? 1 : Math.max(1, options.maxSubmissions ?? 2);
|
|
135
159
|
const lookupDelayMs = options.lookupDelayMs ?? 250;
|
|
160
|
+
const { signal } = options;
|
|
161
|
+
// Whether a submission of this identity may still be held by the authority unanswered.
|
|
162
|
+
let unclear = options.earlierDeliveryUnclear === true && intent.attempts > 0;
|
|
163
|
+
// Whether any lookup in this call answered pending: a delivery of this identity was held, so
|
|
164
|
+
// a later absent answer in the same call does not undo it.
|
|
165
|
+
let held = false;
|
|
136
166
|
let attempts = intent.attempts;
|
|
137
167
|
let submissions = 0;
|
|
138
168
|
let lookups = 0;
|
|
139
169
|
const finish = (raw) => {
|
|
170
|
+
// Only the compatibility overload admits exact-content settlement and it requires the
|
|
171
|
+
// original full OperationIntent/Outcome contract. Explicit starts never use those fields.
|
|
140
172
|
const outcome = options.settlement === "recorded-only" ? raw : settleAgainstIntent(raw, intent);
|
|
141
173
|
return { intent: { ...intent, attempts, state: stateForOutcome(outcome) }, outcome, lookups };
|
|
142
174
|
};
|
|
143
175
|
// A previously submitted intent starts at the lookup, never at a submission.
|
|
144
|
-
let needSubmission = attempts === 0;
|
|
176
|
+
let needSubmission = explicitStart ? options.start === "submit-claimed" : attempts === 0;
|
|
145
177
|
for (;;) {
|
|
146
178
|
if (needSubmission) {
|
|
147
|
-
if (submissions >= maxSubmissions)
|
|
179
|
+
if (submissions >= maxSubmissions || ((explicitStart || submissions > 0) && signal?.aborted))
|
|
148
180
|
return finish(UNKNOWN);
|
|
149
181
|
submissions += 1;
|
|
150
|
-
|
|
182
|
+
if (!explicitStart)
|
|
183
|
+
attempts += 1;
|
|
151
184
|
const outcome = await submitOnce(transport, { ...intent, attempts, state: "in_flight" }, options.deadlineMs, sleep);
|
|
185
|
+
if (outcome.kind === "not-executed") {
|
|
186
|
+
if (!explicitStart || intent.notAppliedThrough === undefined || intent.notAppliedThrough !== attempts - 1 || outcome.attempts !== attempts || signal?.aborted)
|
|
187
|
+
return finish(UNKNOWN);
|
|
188
|
+
return finish(outcome);
|
|
189
|
+
}
|
|
190
|
+
// A resend refused before it reached execution (no credential, access withdrawn, a spent
|
|
191
|
+
// quota, a gateway's schema check) is evidence about that resend only: an earlier, unclear delivery may still be held
|
|
192
|
+
// by the authority and commit, so the identity stays unknown and the intent is kept.
|
|
193
|
+
if (unclear && refusalLeavesUnknown(outcome, held))
|
|
194
|
+
return finish(explicitStart ? UNKNOWN : { kind: "unknown", refusal: { code: outcome.code, message: outcome.message } });
|
|
152
195
|
if (outcome.kind !== "unknown")
|
|
153
196
|
return finish(outcome);
|
|
197
|
+
unclear = true;
|
|
154
198
|
}
|
|
155
199
|
needSubmission = false;
|
|
156
200
|
let recorded;
|
|
157
201
|
for (let round = 0; round < maxLookups; round++) {
|
|
202
|
+
if (signal?.aborted)
|
|
203
|
+
break;
|
|
158
204
|
if (round > 0)
|
|
159
|
-
await sleep(lookupDelayMs);
|
|
205
|
+
await sleep(lookupDelayMs, signal);
|
|
206
|
+
if (signal?.aborted)
|
|
207
|
+
break;
|
|
160
208
|
lookups += 1;
|
|
161
209
|
try {
|
|
162
210
|
recorded = await transport.lookup(intent.requestId);
|
|
@@ -169,8 +217,16 @@ export async function performUncertainWrite(transport, intent, options = {}) {
|
|
|
169
217
|
}
|
|
170
218
|
if (recorded === undefined)
|
|
171
219
|
return finish(UNKNOWN);
|
|
220
|
+
if (recorded !== null && recorded.kind === "pending") {
|
|
221
|
+
// Held unanswered: a delivery of this identity was admitted and may still commit.
|
|
222
|
+
unclear = true;
|
|
223
|
+
held = true;
|
|
224
|
+
recorded = null;
|
|
225
|
+
}
|
|
172
226
|
if (recorded !== null)
|
|
173
|
-
return finish(recorded);
|
|
227
|
+
return finish(recorded.kind === "not-executed" ? UNKNOWN : recorded);
|
|
228
|
+
if (explicitStart)
|
|
229
|
+
return finish(UNKNOWN);
|
|
174
230
|
needSubmission = true;
|
|
175
231
|
}
|
|
176
232
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uncertain-write.js","sourceRoot":"","sources":["../src/uncertain-write.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"uncertain-write.js","sourceRoot":"","sources":["../src/uncertain-write.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAsFH,4CAA4C;AAC5C,MAAM,CAAC,MAAM,cAAc,GAAkB,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;AAwFhF;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAwB,IAAI,GAAG,CAAC;IACtE,eAAe;IACf,WAAW;IACX,cAAc;IACd,mBAAmB;IACnB,4BAA4B;IAC5B,yBAAyB;CAC1B,CAAC,CAAC;AAEH,2FAA2F;AAC3F,MAAM,UAAU,sBAAsB,CAAC,OAAuC;IAC5E,OAAO,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,2BAA2B,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACrF,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,oBAAoB,CAAC,OAA6B,EAAE,IAAa;IACxE,OAAO,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAK,OA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gBACP,QAAQ,GAAG,SAAS,CAAC;gBACrB,SAAS;YACX,CAAC;YACD,MAAM;QACR,CAAC;QACD,IAAI,QAAQ,KAAK,SAAS;YAAE,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;QACnD,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YACrD,kFAAkF;YAClF,OAAO,GAAG,IAAI,CAAC;YACf,IAAI,GAAG,IAAI,CAAC;YACZ,QAAQ,GAAG,IAAI,CAAC;QAClB,CAAC;QACD,IAAI,QAAQ,KAAK,IAAI;YAAE,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC5F,IAAI,aAAa;YAAE,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;QAC1C,cAAc,GAAG,IAAI,CAAC;IACxB,CAAC;AACH,CAAC"}
|
package/dist/versioning.d.ts
CHANGED
|
@@ -4,10 +4,15 @@
|
|
|
4
4
|
* These make the seam's "hardest case" (content-addressed versions, compare-and-swap
|
|
5
5
|
* writes, actor attribution) implementable uniformly across adapters:
|
|
6
6
|
* - {@link contentVersion} defines the opaque {@link Version} token as a SHA-256 over
|
|
7
|
-
* the canonically serialized document
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* the canonically serialized document. A version token is a property of a backend,
|
|
8
|
+
* not of the content: the filesystem adapter hashes the on-disk bytes exactly as
|
|
9
|
+
* written, so a hand-authored file keeps its bytes and its token; the in-memory and
|
|
10
|
+
* wire adapters hash a re-serialization, which folds long strings, expands flow
|
|
11
|
+
* sequences and normalizes timestamps, so content Superbee did not author may carry a
|
|
12
|
+
* different token there. An engine-written document carries the same token in either
|
|
13
|
+
* store, because the engine wrote the canonical bytes. Bytes are the promise that
|
|
14
|
+
* travels between backends (decision of 2026-09-17, "bytes win"); no promise rests on
|
|
15
|
+
* cross-backend token equality.
|
|
11
16
|
* - {@link blobVersion} is the SAME idea for opaque blob bytes, but hashes the raw
|
|
12
17
|
* `Uint8Array` directly with no string/UTF-8 step — a doc-shaped hash would corrupt
|
|
13
18
|
* binary content, so blobs get their own primitive rather than reusing `contentVersion`
|
package/dist/versioning.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versioning.d.ts","sourceRoot":"","sources":["../src/versioning.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"versioning.d.ts","sourceRoot":"","sources":["../src/versioning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE7F,sFAAsF;AACtF,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAExD;AAED,gGAAgG;AAChG,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAEtD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAGrC"}
|
package/dist/versioning.js
CHANGED
|
@@ -4,10 +4,15 @@
|
|
|
4
4
|
* These make the seam's "hardest case" (content-addressed versions, compare-and-swap
|
|
5
5
|
* writes, actor attribution) implementable uniformly across adapters:
|
|
6
6
|
* - {@link contentVersion} defines the opaque {@link Version} token as a SHA-256 over
|
|
7
|
-
* the canonically serialized document
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* the canonically serialized document. A version token is a property of a backend,
|
|
8
|
+
* not of the content: the filesystem adapter hashes the on-disk bytes exactly as
|
|
9
|
+
* written, so a hand-authored file keeps its bytes and its token; the in-memory and
|
|
10
|
+
* wire adapters hash a re-serialization, which folds long strings, expands flow
|
|
11
|
+
* sequences and normalizes timestamps, so content Superbee did not author may carry a
|
|
12
|
+
* different token there. An engine-written document carries the same token in either
|
|
13
|
+
* store, because the engine wrote the canonical bytes. Bytes are the promise that
|
|
14
|
+
* travels between backends (decision of 2026-09-17, "bytes win"); no promise rests on
|
|
15
|
+
* cross-backend token equality.
|
|
11
16
|
* - {@link blobVersion} is the SAME idea for opaque blob bytes, but hashes the raw
|
|
12
17
|
* `Uint8Array` directly with no string/UTF-8 step — a doc-shaped hash would corrupt
|
|
13
18
|
* binary content, so blobs get their own primitive rather than reusing `contentVersion`
|
package/dist/versioning.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versioning.js","sourceRoot":"","sources":["../src/versioning.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"versioning.js","sourceRoot":"","sources":["../src/versioning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGhE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE7F,sFAAsF;AACtF,MAAM,UAAU,SAAS,CAAC,KAAa;IACrC,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;AAChC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,GAAgB;IAC7C,OAAO,UAAU,SAAS,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;AAC9E,CAAC;AAED,gGAAgG;AAChG,MAAM,UAAU,cAAc,CAAC,GAAW;IACxC,OAAO,UAAU,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;AACpC,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,WAAW,CAAC,KAAiB;IAC3C,OAAO,UAAU,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;AAC7C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,GAAG,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;IACrE,OAAO,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,OAAO,CAAC;AACvF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** In-process continuity only: an attempt grants no View, session or execution authority. */
|
|
2
|
+
export interface ViewLaunchAttempt {
|
|
3
|
+
readonly generation: number;
|
|
4
|
+
readonly selectionKey: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ViewLaunchFence {
|
|
7
|
+
begin(selectionKey: string): ViewLaunchAttempt;
|
|
8
|
+
current(): ViewLaunchAttempt | null;
|
|
9
|
+
isCurrent(attempt: ViewLaunchAttempt): boolean;
|
|
10
|
+
retire(attempt: ViewLaunchAttempt): boolean;
|
|
11
|
+
}
|
|
12
|
+
export type ViewLaunchFailureReason = "context-required" | "expired" | "changed" | "denied" | "unavailable" | "delivery-failed";
|
|
13
|
+
export declare function createViewLaunchFence(): ViewLaunchFence;
|
|
14
|
+
//# sourceMappingURL=view-launch-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-launch-contract.d.ts","sourceRoot":"","sources":["../src/view-launch-contract.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,YAAY,EAAE,MAAM,GAAG,iBAAiB,CAAC;IAC/C,OAAO,IAAI,iBAAiB,GAAG,IAAI,CAAC;IACpC,SAAS,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC;IAC/C,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC;CAC7C;AAED,MAAM,MAAM,uBAAuB,GAC/B,kBAAkB,GAAG,SAAS,GAAG,SAAS,GAC1C,QAAQ,GAAG,aAAa,GAAG,iBAAiB,CAAC;AAEjD,wBAAgB,qBAAqB,IAAI,eAAe,CAmBvD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export function createViewLaunchFence() {
|
|
2
|
+
let generation = 0;
|
|
3
|
+
let current = null;
|
|
4
|
+
return {
|
|
5
|
+
begin(selectionKey) {
|
|
6
|
+
// Exhaustion invalidates the old attempt rather than reusing an imprecise generation.
|
|
7
|
+
current = null;
|
|
8
|
+
if (generation === Number.MAX_SAFE_INTEGER)
|
|
9
|
+
throw new RangeError("View launch generation exhausted");
|
|
10
|
+
current = Object.freeze({ generation: ++generation, selectionKey });
|
|
11
|
+
return current;
|
|
12
|
+
},
|
|
13
|
+
current: () => current,
|
|
14
|
+
isCurrent: attempt => current !== null && current === attempt,
|
|
15
|
+
retire(attempt) {
|
|
16
|
+
if (current === null || current !== attempt)
|
|
17
|
+
return false;
|
|
18
|
+
current = null;
|
|
19
|
+
return true;
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=view-launch-contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-launch-contract.js","sourceRoot":"","sources":["../src/view-launch-contract.ts"],"names":[],"mappings":"AAiBA,MAAM,UAAU,qBAAqB;IACnC,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,OAAO,GAA6B,IAAI,CAAC;IAC7C,OAAO;QACL,KAAK,CAAC,YAAY;YAChB,sFAAsF;YACtF,OAAO,GAAG,IAAI,CAAC;YACf,IAAI,UAAU,KAAK,MAAM,CAAC,gBAAgB;gBAAE,MAAM,IAAI,UAAU,CAAC,kCAAkC,CAAC,CAAC;YACrG,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,CAAC;YACpE,OAAO,OAAO,CAAC;QACjB,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO;QACtB,SAAS,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,OAAO;QAC7D,MAAM,CAAC,OAAO;YACZ,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,OAAO;gBAAE,OAAO,KAAK,CAAC;YAC1D,OAAO,GAAG,IAAI,CAAC;YACf,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Lexical write identity rules, independent of transport and payload families. */
|
|
2
|
+
export declare function isWriteRequestId(value: string): boolean;
|
|
3
|
+
export declare function isWriteBinding(value: string): boolean;
|
|
4
|
+
export declare function isAgentLabelVia(value: unknown): value is string;
|
|
5
|
+
//# sourceMappingURL=write-identity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-identity.d.ts","sourceRoot":"","sources":["../src/write-identity.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEvD;AACD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAgD;AACtG,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAE/D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Lexical write identity rules, independent of transport and payload families. */
|
|
2
|
+
export function isWriteRequestId(value) {
|
|
3
|
+
return /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(value);
|
|
4
|
+
}
|
|
5
|
+
export function isWriteBinding(value) { return /^sha256:[a-f0-9]{64}$/.test(value); }
|
|
6
|
+
export function isAgentLabelVia(value) {
|
|
7
|
+
return typeof value === "string" && /^[a-z0-9._-]{1,32}$/.test(value) && !value.startsWith("superbee");
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=write-identity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-identity.js","sourceRoot":"","sources":["../src/write-identity.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC5C,OAAO,uEAAuE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC7F,CAAC;AACD,MAAM,UAAU,cAAc,CAAC,KAAa,IAAa,OAAO,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACtG,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AACzG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superbee/core",
|
|
3
|
-
"version": "0.2.0-pre.
|
|
3
|
+
"version": "0.2.0-pre.40",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "OKF store engine
|
|
5
|
+
"description": "OKF store engine \u2014 bundle I/O, cross-links, derived backlinks, freshness, and versioned writes.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -27,6 +27,22 @@
|
|
|
27
27
|
"types": "./dist/index.d.ts",
|
|
28
28
|
"default": "./dist/index.js"
|
|
29
29
|
},
|
|
30
|
+
"./kinds-load": {
|
|
31
|
+
"types": "./dist/kinds-load.d.ts",
|
|
32
|
+
"default": "./dist/kinds-load.js"
|
|
33
|
+
},
|
|
34
|
+
"./document-field-actions": {
|
|
35
|
+
"types": "./dist/document-field-actions.d.ts",
|
|
36
|
+
"default": "./dist/document-field-actions.js"
|
|
37
|
+
},
|
|
38
|
+
"./okf-actor": {
|
|
39
|
+
"types": "./dist/okf-actor.d.ts",
|
|
40
|
+
"default": "./dist/okf-actor.js"
|
|
41
|
+
},
|
|
42
|
+
"./okf-authoring": {
|
|
43
|
+
"types": "./dist/okf-authoring.d.ts",
|
|
44
|
+
"default": "./dist/okf-authoring.js"
|
|
45
|
+
},
|
|
30
46
|
"./bundle-ops": {
|
|
31
47
|
"types": "./dist/bundle-ops.d.ts",
|
|
32
48
|
"default": "./dist/bundle-ops.js"
|
|
@@ -47,6 +63,30 @@
|
|
|
47
63
|
"types": "./dist/recipes.d.ts",
|
|
48
64
|
"default": "./dist/recipes.js"
|
|
49
65
|
},
|
|
66
|
+
"./connectors": {
|
|
67
|
+
"types": "./dist/connectors.d.ts",
|
|
68
|
+
"default": "./dist/connectors.js"
|
|
69
|
+
},
|
|
70
|
+
"./source-engine": {
|
|
71
|
+
"types": "./dist/source-engine/index.d.ts",
|
|
72
|
+
"default": "./dist/source-engine/index.js"
|
|
73
|
+
},
|
|
74
|
+
"./source-harness": {
|
|
75
|
+
"types": "./dist/source-harness/index.d.ts",
|
|
76
|
+
"default": "./dist/source-harness/index.js"
|
|
77
|
+
},
|
|
78
|
+
"./recipe-lifecycle": {
|
|
79
|
+
"types": "./dist/recipe-lifecycle/index.d.ts",
|
|
80
|
+
"default": "./dist/recipe-lifecycle/index.js"
|
|
81
|
+
},
|
|
82
|
+
"./record-overlay": {
|
|
83
|
+
"types": "./dist/record-overlay/index.d.ts",
|
|
84
|
+
"default": "./dist/record-overlay/index.js"
|
|
85
|
+
},
|
|
86
|
+
"./bundle-health": {
|
|
87
|
+
"types": "./dist/bundle-health/index.d.ts",
|
|
88
|
+
"default": "./dist/bundle-health/index.js"
|
|
89
|
+
},
|
|
50
90
|
"./kinds": {
|
|
51
91
|
"types": "./dist/kinds.d.ts",
|
|
52
92
|
"default": "./dist/kinds.js"
|
|
@@ -55,6 +95,18 @@
|
|
|
55
95
|
"types": "./dist/links.d.ts",
|
|
56
96
|
"default": "./dist/links.js"
|
|
57
97
|
},
|
|
98
|
+
"./qualified-links": {
|
|
99
|
+
"types": "./dist/qualified-links.d.ts",
|
|
100
|
+
"default": "./dist/qualified-links.js"
|
|
101
|
+
},
|
|
102
|
+
"./dependencies": {
|
|
103
|
+
"types": "./dist/dependencies.d.ts",
|
|
104
|
+
"default": "./dist/dependencies.js"
|
|
105
|
+
},
|
|
106
|
+
"./cross-bundle": {
|
|
107
|
+
"types": "./dist/cross-bundle.d.ts",
|
|
108
|
+
"default": "./dist/cross-bundle.js"
|
|
109
|
+
},
|
|
58
110
|
"./meaningful-change-time": {
|
|
59
111
|
"types": "./dist/meaningful-change-time.d.ts",
|
|
60
112
|
"default": "./dist/meaningful-change-time.js"
|
|
@@ -75,6 +127,22 @@
|
|
|
75
127
|
"types": "./dist/publication-filesystem.d.ts",
|
|
76
128
|
"default": "./dist/publication-filesystem.js"
|
|
77
129
|
},
|
|
130
|
+
"./query-order": {
|
|
131
|
+
"types": "./dist/query-order.d.ts",
|
|
132
|
+
"default": "./dist/query-order.js"
|
|
133
|
+
},
|
|
134
|
+
"./path-fold": {
|
|
135
|
+
"types": "./dist/path-fold.d.ts",
|
|
136
|
+
"default": "./dist/path-fold.js"
|
|
137
|
+
},
|
|
138
|
+
"./code-unit-order": {
|
|
139
|
+
"types": "./dist/code-unit-order.d.ts",
|
|
140
|
+
"default": "./dist/code-unit-order.js"
|
|
141
|
+
},
|
|
142
|
+
"./string-identity-agreement": {
|
|
143
|
+
"types": "./dist/string-identity-agreement.d.ts",
|
|
144
|
+
"default": "./dist/string-identity-agreement.js"
|
|
145
|
+
},
|
|
78
146
|
"./query-filter": {
|
|
79
147
|
"types": "./dist/query-filter.d.ts",
|
|
80
148
|
"default": "./dist/query-filter.js"
|
|
@@ -91,6 +159,18 @@
|
|
|
91
159
|
"types": "./dist/remote-operations.d.ts",
|
|
92
160
|
"default": "./dist/remote-operations.js"
|
|
93
161
|
},
|
|
162
|
+
"./hosted-transport": {
|
|
163
|
+
"types": "./dist/hosted-transport/index.d.ts",
|
|
164
|
+
"default": "./dist/hosted-transport/index.js"
|
|
165
|
+
},
|
|
166
|
+
"./hosted-client": {
|
|
167
|
+
"types": "./dist/hosted-client/index.d.ts",
|
|
168
|
+
"default": "./dist/hosted-client/index.js"
|
|
169
|
+
},
|
|
170
|
+
"./hosted-client/node": {
|
|
171
|
+
"types": "./dist/hosted-client/node.d.ts",
|
|
172
|
+
"default": "./dist/hosted-client/node.js"
|
|
173
|
+
},
|
|
94
174
|
"./storage": {
|
|
95
175
|
"types": "./dist/storage.d.ts",
|
|
96
176
|
"default": "./dist/storage.js"
|
|
@@ -111,6 +191,10 @@
|
|
|
111
191
|
"types": "./dist/journaled-backend.d.ts",
|
|
112
192
|
"default": "./dist/journaled-backend.js"
|
|
113
193
|
},
|
|
194
|
+
"./file-journaled-backend": {
|
|
195
|
+
"types": "./dist/file-journaled-backend.d.ts",
|
|
196
|
+
"default": "./dist/file-journaled-backend.js"
|
|
197
|
+
},
|
|
114
198
|
"./uncertain-write": {
|
|
115
199
|
"types": "./dist/uncertain-write.d.ts",
|
|
116
200
|
"default": "./dist/uncertain-write.js"
|
|
@@ -118,6 +202,58 @@
|
|
|
118
202
|
"./platform": {
|
|
119
203
|
"types": "./dist/platform.d.ts",
|
|
120
204
|
"default": "./dist/platform.js"
|
|
205
|
+
},
|
|
206
|
+
"./filesystem": {
|
|
207
|
+
"types": "./dist/filesystem.d.ts",
|
|
208
|
+
"default": "./dist/filesystem.js"
|
|
209
|
+
},
|
|
210
|
+
"./filesystem-push-role": {
|
|
211
|
+
"types": "./dist/filesystem-push-role.d.ts",
|
|
212
|
+
"default": "./dist/filesystem-push-role.js"
|
|
213
|
+
},
|
|
214
|
+
"./view-launch-contract": {
|
|
215
|
+
"types": "./dist/view-launch-contract.d.ts",
|
|
216
|
+
"default": "./dist/view-launch-contract.js"
|
|
217
|
+
},
|
|
218
|
+
"./artifact-contract": {
|
|
219
|
+
"types": "./dist/artifact-contract.d.ts",
|
|
220
|
+
"default": "./dist/artifact-contract.js"
|
|
221
|
+
},
|
|
222
|
+
"./site-capabilities": {
|
|
223
|
+
"types": "./dist/site-capabilities.d.ts",
|
|
224
|
+
"default": "./dist/site-capabilities.js"
|
|
225
|
+
},
|
|
226
|
+
"./portable-export": {
|
|
227
|
+
"types": "./dist/portable-export.d.ts",
|
|
228
|
+
"default": "./dist/portable-export.js"
|
|
229
|
+
},
|
|
230
|
+
"./search": {
|
|
231
|
+
"types": "./dist/search/index.d.ts",
|
|
232
|
+
"default": "./dist/search/index.js"
|
|
233
|
+
},
|
|
234
|
+
"./builtin-recipes": {
|
|
235
|
+
"types": "./dist/builtin-recipes.d.ts",
|
|
236
|
+
"default": "./dist/builtin-recipes.js"
|
|
237
|
+
},
|
|
238
|
+
"./kind-authoring": {
|
|
239
|
+
"types": "./dist/kind-authoring.d.ts",
|
|
240
|
+
"default": "./dist/kind-authoring.js"
|
|
241
|
+
},
|
|
242
|
+
"./source-profiles": {
|
|
243
|
+
"types": "./dist/source-profiles/index.d.ts",
|
|
244
|
+
"default": "./dist/source-profiles/index.js"
|
|
245
|
+
},
|
|
246
|
+
"./domain-model": {
|
|
247
|
+
"types": "./dist/domain-model.d.ts",
|
|
248
|
+
"default": "./dist/domain-model.js"
|
|
249
|
+
},
|
|
250
|
+
"./recipe-set-preflight": {
|
|
251
|
+
"types": "./dist/recipe-set-preflight.d.ts",
|
|
252
|
+
"default": "./dist/recipe-set-preflight.js"
|
|
253
|
+
},
|
|
254
|
+
"./kind-changes": {
|
|
255
|
+
"types": "./dist/kind-changes.d.ts",
|
|
256
|
+
"default": "./dist/kind-changes.js"
|
|
121
257
|
}
|
|
122
258
|
},
|
|
123
259
|
"files": [
|
|
@@ -131,10 +267,11 @@
|
|
|
131
267
|
"build": "tsc",
|
|
132
268
|
"typecheck": "tsc --noEmit",
|
|
133
269
|
"test": "node --test --import ./test/ts-loader.mjs ./test/*.test.ts",
|
|
134
|
-
"mutation": "stryker run",
|
|
270
|
+
"mutation": "node --test --import ./test/ts-loader.mjs ./test/source-egress.test.ts && stryker run",
|
|
135
271
|
"prepublishOnly": "node -e \"console.error('@superbee/core is released by .github/workflows/release-libraries.yml; do not run npm publish here'); process.exit(1)\""
|
|
136
272
|
},
|
|
137
273
|
"dependencies": {
|
|
274
|
+
"graphql": "17.0.2",
|
|
138
275
|
"gray-matter": "^4.0.3",
|
|
139
276
|
"js-yaml": "^3.15.2"
|
|
140
277
|
},
|