@earendil-works/chord 1.4.0 → 1.5.0
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/CHANGELOG.md +41 -0
- package/README.md +79 -14
- package/dist/cell.d.ts +7 -7
- package/dist/cell.d.ts.map +1 -1
- package/dist/cell.js.map +1 -1
- package/dist/context/index.d.ts +1 -1
- package/dist/context/index.d.ts.map +1 -1
- package/dist/context/index.js +1 -1
- package/dist/context/index.js.map +1 -1
- package/dist/contract.d.ts +51 -52
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +19 -24
- package/dist/contract.js.map +1 -1
- package/dist/delta/apply-immutable-trusted.js +3 -4
- package/dist/delta/apply-immutable-trusted.js.map +1 -1
- package/dist/delta/diff.d.ts.map +1 -1
- package/dist/delta/diff.js +5 -3
- package/dist/delta/diff.js.map +1 -1
- package/dist/delta/index.d.ts +9 -1
- package/dist/delta/index.d.ts.map +1 -1
- package/dist/delta/index.js +15 -11
- package/dist/delta/index.js.map +1 -1
- package/dist/delta/pending.d.ts +36 -0
- package/dist/delta/pending.d.ts.map +1 -0
- package/dist/delta/pending.js +143 -0
- package/dist/delta/pending.js.map +1 -0
- package/dist/delta/tracker.d.ts +12 -0
- package/dist/delta/tracker.d.ts.map +1 -1
- package/dist/delta/tracker.js +109 -39
- package/dist/delta/tracker.js.map +1 -1
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +9 -7
- package/dist/host.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/next/contracts/accepts.d.ts +81 -0
- package/dist/next/contracts/accepts.d.ts.map +1 -0
- package/dist/next/contracts/accepts.js +123 -0
- package/dist/next/contracts/accepts.js.map +1 -0
- package/dist/next/contracts/contract.d.ts +121 -0
- package/dist/next/contracts/contract.d.ts.map +1 -0
- package/dist/next/contracts/contract.js +50 -0
- package/dist/next/contracts/contract.js.map +1 -0
- package/dist/next/contracts/declare.d.ts +107 -0
- package/dist/next/contracts/declare.d.ts.map +1 -0
- package/dist/next/contracts/declare.js +136 -0
- package/dist/next/contracts/declare.js.map +1 -0
- package/dist/next/contracts/evolve.d.ts +92 -0
- package/dist/next/contracts/evolve.d.ts.map +1 -0
- package/dist/next/contracts/evolve.js +179 -0
- package/dist/next/contracts/evolve.js.map +1 -0
- package/dist/next/contracts/fingerprint.d.ts +16 -0
- package/dist/next/contracts/fingerprint.d.ts.map +1 -0
- package/dist/next/contracts/fingerprint.js +50 -0
- package/dist/next/contracts/fingerprint.js.map +1 -0
- package/dist/next/contracts/history.d.ts +71 -0
- package/dist/next/contracts/history.d.ts.map +1 -0
- package/dist/next/contracts/history.js +3 -0
- package/dist/next/contracts/history.js.map +1 -0
- package/dist/next/contracts/host-kind.d.ts +40 -0
- package/dist/next/contracts/host-kind.d.ts.map +1 -0
- package/dist/next/contracts/host-kind.js +37 -0
- package/dist/next/contracts/host-kind.js.map +1 -0
- package/dist/next/contracts/index.d.ts +7 -0
- package/dist/next/contracts/index.d.ts.map +1 -0
- package/dist/next/contracts/index.js +6 -0
- package/dist/next/contracts/index.js.map +1 -0
- package/dist/next/contracts/internal.d.ts +10 -0
- package/dist/next/contracts/internal.d.ts.map +1 -0
- package/dist/next/contracts/internal.js +9 -0
- package/dist/next/contracts/internal.js.map +1 -0
- package/dist/next/contracts/names.d.ts +3 -0
- package/dist/next/contracts/names.d.ts.map +1 -0
- package/dist/next/contracts/names.js +13 -0
- package/dist/next/contracts/names.js.map +1 -0
- package/dist/next/contracts/params.d.ts +28 -0
- package/dist/next/contracts/params.d.ts.map +1 -0
- package/dist/next/contracts/params.js +50 -0
- package/dist/next/contracts/params.js.map +1 -0
- package/dist/next/contracts/schema.d.ts +102 -0
- package/dist/next/contracts/schema.d.ts.map +1 -0
- package/dist/next/contracts/schema.js +103 -0
- package/dist/next/contracts/schema.js.map +1 -0
- package/dist/next/contracts/snapshot.d.ts +16 -0
- package/dist/next/contracts/snapshot.d.ts.map +1 -0
- package/dist/next/contracts/snapshot.js +167 -0
- package/dist/next/contracts/snapshot.js.map +1 -0
- package/dist/next/data/args.d.ts +50 -0
- package/dist/next/data/args.d.ts.map +1 -0
- package/dist/next/data/args.js +83 -0
- package/dist/next/data/args.js.map +1 -0
- package/dist/next/data/errors.d.ts +73 -0
- package/dist/next/data/errors.d.ts.map +1 -0
- package/dist/next/data/errors.js +107 -0
- package/dist/next/data/errors.js.map +1 -0
- package/dist/next/data/failure.d.ts +26 -0
- package/dist/next/data/failure.d.ts.map +1 -0
- package/dist/next/data/failure.js +72 -0
- package/dist/next/data/failure.js.map +1 -0
- package/dist/next/data/index.d.ts +4 -0
- package/dist/next/data/index.d.ts.map +1 -0
- package/dist/next/data/index.js +4 -0
- package/dist/next/data/index.js.map +1 -0
- package/dist/next/data/internal.d.ts +7 -0
- package/dist/next/data/internal.d.ts.map +1 -0
- package/dist/next/data/internal.js +8 -0
- package/dist/next/data/internal.js.map +1 -0
- package/dist/next/data/params.d.ts +20 -0
- package/dist/next/data/params.d.ts.map +1 -0
- package/dist/next/data/params.js +31 -0
- package/dist/next/data/params.js.map +1 -0
- package/dist/next/data/principal.d.ts +17 -0
- package/dist/next/data/principal.d.ts.map +1 -0
- package/dist/next/data/principal.js +41 -0
- package/dist/next/data/principal.js.map +1 -0
- package/dist/next/data/validator.d.ts +12 -0
- package/dist/next/data/validator.d.ts.map +1 -0
- package/dist/next/data/validator.js +34 -0
- package/dist/next/data/validator.js.map +1 -0
- package/dist/next/documents/address-source.d.ts +20 -0
- package/dist/next/documents/address-source.d.ts.map +1 -0
- package/dist/next/documents/address-source.js +44 -0
- package/dist/next/documents/address-source.js.map +1 -0
- package/dist/next/documents/definition.d.ts +84 -0
- package/dist/next/documents/definition.d.ts.map +1 -0
- package/dist/next/documents/definition.js +73 -0
- package/dist/next/documents/definition.js.map +1 -0
- package/dist/next/documents/documents.d.ts +106 -0
- package/dist/next/documents/documents.d.ts.map +1 -0
- package/dist/next/documents/documents.js +224 -0
- package/dist/next/documents/documents.js.map +1 -0
- package/dist/next/documents/fence.d.ts +9 -0
- package/dist/next/documents/fence.d.ts.map +1 -0
- package/dist/next/documents/fence.js +15 -0
- package/dist/next/documents/fence.js.map +1 -0
- package/dist/next/documents/handles.d.ts +76 -0
- package/dist/next/documents/handles.d.ts.map +1 -0
- package/dist/next/documents/handles.js +66 -0
- package/dist/next/documents/handles.js.map +1 -0
- package/dist/next/documents/index.d.ts +4 -0
- package/dist/next/documents/index.d.ts.map +1 -0
- package/dist/next/documents/index.js +3 -0
- package/dist/next/documents/index.js.map +1 -0
- package/dist/next/documents/internal.d.ts +9 -0
- package/dist/next/documents/internal.d.ts.map +1 -0
- package/dist/next/documents/internal.js +9 -0
- package/dist/next/documents/internal.js.map +1 -0
- package/dist/next/documents/keyed-slot.d.ts +103 -0
- package/dist/next/documents/keyed-slot.d.ts.map +1 -0
- package/dist/next/documents/keyed-slot.js +395 -0
- package/dist/next/documents/keyed-slot.js.map +1 -0
- package/dist/next/documents/line.d.ts +7 -0
- package/dist/next/documents/line.d.ts.map +1 -0
- package/dist/next/documents/line.js +14 -0
- package/dist/next/documents/line.js.map +1 -0
- package/dist/next/documents/persistence.d.ts +104 -0
- package/dist/next/documents/persistence.d.ts.map +1 -0
- package/dist/next/documents/persistence.js +128 -0
- package/dist/next/documents/persistence.js.map +1 -0
- package/dist/next/documents/residency.d.ts +31 -0
- package/dist/next/documents/residency.d.ts.map +1 -0
- package/dist/next/documents/residency.js +93 -0
- package/dist/next/documents/residency.js.map +1 -0
- package/dist/next/documents/slot.d.ts +109 -0
- package/dist/next/documents/slot.d.ts.map +1 -0
- package/dist/next/documents/slot.js +181 -0
- package/dist/next/documents/slot.js.map +1 -0
- package/dist/next/documents/transaction.d.ts +133 -0
- package/dist/next/documents/transaction.d.ts.map +1 -0
- package/dist/next/documents/transaction.js +409 -0
- package/dist/next/documents/transaction.js.map +1 -0
- package/dist/next/host/activity.d.ts +31 -0
- package/dist/next/host/activity.d.ts.map +1 -0
- package/dist/next/host/activity.js +40 -0
- package/dist/next/host/activity.js.map +1 -0
- package/dist/next/host/adapted.d.ts +49 -0
- package/dist/next/host/adapted.d.ts.map +1 -0
- package/dist/next/host/adapted.js +214 -0
- package/dist/next/host/adapted.js.map +1 -0
- package/dist/next/host/attempt.d.ts +278 -0
- package/dist/next/host/attempt.d.ts.map +1 -0
- package/dist/next/host/attempt.js +1072 -0
- package/dist/next/host/attempt.js.map +1 -0
- package/dist/next/host/backoff.d.ts +29 -0
- package/dist/next/host/backoff.d.ts.map +1 -0
- package/dist/next/host/backoff.js +69 -0
- package/dist/next/host/backoff.js.map +1 -0
- package/dist/next/host/ctx.d.ts +47 -0
- package/dist/next/host/ctx.d.ts.map +1 -0
- package/dist/next/host/ctx.js +108 -0
- package/dist/next/host/ctx.js.map +1 -0
- package/dist/next/host/deadline.d.ts +12 -0
- package/dist/next/host/deadline.d.ts.map +1 -0
- package/dist/next/host/deadline.js +40 -0
- package/dist/next/host/deadline.js.map +1 -0
- package/dist/next/host/dependencies.d.ts +65 -0
- package/dist/next/host/dependencies.d.ts.map +1 -0
- package/dist/next/host/dependencies.js +115 -0
- package/dist/next/host/dependencies.js.map +1 -0
- package/dist/next/host/destination.d.ts +48 -0
- package/dist/next/host/destination.d.ts.map +1 -0
- package/dist/next/host/destination.js +101 -0
- package/dist/next/host/destination.js.map +1 -0
- package/dist/next/host/facet.d.ts +79 -0
- package/dist/next/host/facet.d.ts.map +1 -0
- package/dist/next/host/facet.js +55 -0
- package/dist/next/host/facet.js.map +1 -0
- package/dist/next/host/follow.d.ts +52 -0
- package/dist/next/host/follow.d.ts.map +1 -0
- package/dist/next/host/follow.js +207 -0
- package/dist/next/host/follow.js.map +1 -0
- package/dist/next/host/host.d.ts +495 -0
- package/dist/next/host/host.d.ts.map +1 -0
- package/dist/next/host/host.js +1075 -0
- package/dist/next/host/host.js.map +1 -0
- package/dist/next/host/index.d.ts +17 -0
- package/dist/next/host/index.d.ts.map +1 -0
- package/dist/next/host/index.js +6 -0
- package/dist/next/host/index.js.map +1 -0
- package/dist/next/host/internal.d.ts +10 -0
- package/dist/next/host/internal.d.ts.map +1 -0
- package/dist/next/host/internal.js +8 -0
- package/dist/next/host/internal.js.map +1 -0
- package/dist/next/host/members.d.ts +50 -0
- package/dist/next/host/members.d.ts.map +1 -0
- package/dist/next/host/members.js +107 -0
- package/dist/next/host/members.js.map +1 -0
- package/dist/next/host/native.d.ts +55 -0
- package/dist/next/host/native.d.ts.map +1 -0
- package/dist/next/host/native.js +92 -0
- package/dist/next/host/native.js.map +1 -0
- package/dist/next/host/object.d.ts +290 -0
- package/dist/next/host/object.d.ts.map +1 -0
- package/dist/next/host/object.js +1127 -0
- package/dist/next/host/object.js.map +1 -0
- package/dist/next/host/parked.d.ts +23 -0
- package/dist/next/host/parked.d.ts.map +1 -0
- package/dist/next/host/parked.js +79 -0
- package/dist/next/host/parked.js.map +1 -0
- package/dist/next/host/presence.d.ts +34 -0
- package/dist/next/host/presence.d.ts.map +1 -0
- package/dist/next/host/presence.js +117 -0
- package/dist/next/host/presence.js.map +1 -0
- package/dist/next/host/ref-state.d.ts +53 -0
- package/dist/next/host/ref-state.d.ts.map +1 -0
- package/dist/next/host/ref-state.js +83 -0
- package/dist/next/host/ref-state.js.map +1 -0
- package/dist/next/host/reference-keys.d.ts +36 -0
- package/dist/next/host/reference-keys.d.ts.map +1 -0
- package/dist/next/host/reference-keys.js +168 -0
- package/dist/next/host/reference-keys.js.map +1 -0
- package/dist/next/host/reference-source.d.ts +65 -0
- package/dist/next/host/reference-source.d.ts.map +1 -0
- package/dist/next/host/reference-source.js +285 -0
- package/dist/next/host/reference-source.js.map +1 -0
- package/dist/next/host/reference.d.ts +308 -0
- package/dist/next/host/reference.d.ts.map +1 -0
- package/dist/next/host/reference.js +775 -0
- package/dist/next/host/reference.js.map +1 -0
- package/dist/next/host/retry-on.d.ts +28 -0
- package/dist/next/host/retry-on.d.ts.map +1 -0
- package/dist/next/host/retry-on.js +52 -0
- package/dist/next/host/retry-on.js.map +1 -0
- package/dist/next/host/revocation.d.ts +16 -0
- package/dist/next/host/revocation.d.ts.map +1 -0
- package/dist/next/host/revocation.js +27 -0
- package/dist/next/host/revocation.js.map +1 -0
- package/dist/next/host/root.d.ts +27 -0
- package/dist/next/host/root.d.ts.map +1 -0
- package/dist/next/host/root.js +68 -0
- package/dist/next/host/root.js.map +1 -0
- package/dist/next/host/route.d.ts +64 -0
- package/dist/next/host/route.d.ts.map +1 -0
- package/dist/next/host/route.js +190 -0
- package/dist/next/host/route.js.map +1 -0
- package/dist/next/host/routines.d.ts +76 -0
- package/dist/next/host/routines.d.ts.map +1 -0
- package/dist/next/host/routines.js +350 -0
- package/dist/next/host/routines.js.map +1 -0
- package/dist/next/host/sleep.d.ts +9 -0
- package/dist/next/host/sleep.d.ts.map +1 -0
- package/dist/next/host/sleep.js +40 -0
- package/dist/next/host/sleep.js.map +1 -0
- package/dist/next/host/staging.d.ts +94 -0
- package/dist/next/host/staging.d.ts.map +1 -0
- package/dist/next/host/staging.js +302 -0
- package/dist/next/host/staging.js.map +1 -0
- package/dist/next/host/unbound.d.ts +30 -0
- package/dist/next/host/unbound.d.ts.map +1 -0
- package/dist/next/host/unbound.js +67 -0
- package/dist/next/host/unbound.js.map +1 -0
- package/dist/next/host/uuid.d.ts +3 -0
- package/dist/next/host/uuid.d.ts.map +1 -0
- package/dist/next/host/uuid.js +38 -0
- package/dist/next/host/uuid.js.map +1 -0
- package/dist/next/index.d.ts +28 -0
- package/dist/next/index.d.ts.map +1 -0
- package/dist/next/index.js +18 -0
- package/dist/next/index.js.map +1 -0
- package/dist/next/jobs/definition.d.ts +96 -0
- package/dist/next/jobs/definition.d.ts.map +1 -0
- package/dist/next/jobs/definition.js +83 -0
- package/dist/next/jobs/definition.js.map +1 -0
- package/dist/next/jobs/index.d.ts +5 -0
- package/dist/next/jobs/index.d.ts.map +1 -0
- package/dist/next/jobs/index.js +3 -0
- package/dist/next/jobs/index.js.map +1 -0
- package/dist/next/jobs/internal.d.ts +3 -0
- package/dist/next/jobs/internal.d.ts.map +1 -0
- package/dist/next/jobs/internal.js +4 -0
- package/dist/next/jobs/internal.js.map +1 -0
- package/dist/next/jobs/job.d.ts +152 -0
- package/dist/next/jobs/job.d.ts.map +1 -0
- package/dist/next/jobs/job.js +320 -0
- package/dist/next/jobs/job.js.map +1 -0
- package/dist/next/jobs/persisted.d.ts +38 -0
- package/dist/next/jobs/persisted.d.ts.map +1 -0
- package/dist/next/jobs/persisted.js +95 -0
- package/dist/next/jobs/persisted.js.map +1 -0
- package/dist/next/jobs/records.d.ts +231 -0
- package/dist/next/jobs/records.d.ts.map +1 -0
- package/dist/next/jobs/records.js +869 -0
- package/dist/next/jobs/records.js.map +1 -0
- package/dist/next/jobs/run-states.d.ts +69 -0
- package/dist/next/jobs/run-states.d.ts.map +1 -0
- package/dist/next/jobs/run-states.js +228 -0
- package/dist/next/jobs/run-states.js.map +1 -0
- package/dist/next/jobs/run.d.ts +113 -0
- package/dist/next/jobs/run.d.ts.map +1 -0
- package/dist/next/jobs/run.js +200 -0
- package/dist/next/jobs/run.js.map +1 -0
- package/dist/next/jobs/running.d.ts +44 -0
- package/dist/next/jobs/running.d.ts.map +1 -0
- package/dist/next/jobs/running.js +117 -0
- package/dist/next/jobs/running.js.map +1 -0
- package/dist/next/jobs/stored.d.ts +63 -0
- package/dist/next/jobs/stored.d.ts.map +1 -0
- package/dist/next/jobs/stored.js +55 -0
- package/dist/next/jobs/stored.js.map +1 -0
- package/dist/next/link/binary.d.ts +4 -0
- package/dist/next/link/binary.d.ts.map +1 -0
- package/dist/next/link/binary.js +534 -0
- package/dist/next/link/binary.js.map +1 -0
- package/dist/next/link/channel.d.ts +63 -0
- package/dist/next/link/channel.d.ts.map +1 -0
- package/dist/next/link/channel.js +202 -0
- package/dist/next/link/channel.js.map +1 -0
- package/dist/next/link/errors.d.ts +7 -0
- package/dist/next/link/errors.d.ts.map +1 -0
- package/dist/next/link/errors.js +21 -0
- package/dist/next/link/errors.js.map +1 -0
- package/dist/next/link/index.d.ts +8 -0
- package/dist/next/link/index.d.ts.map +1 -0
- package/dist/next/link/index.js +8 -0
- package/dist/next/link/index.js.map +1 -0
- package/dist/next/link/internal.d.ts +9 -0
- package/dist/next/link/internal.d.ts.map +1 -0
- package/dist/next/link/internal.js +10 -0
- package/dist/next/link/internal.js.map +1 -0
- package/dist/next/link/ipc.d.ts +22 -0
- package/dist/next/link/ipc.d.ts.map +1 -0
- package/dist/next/link/ipc.js +64 -0
- package/dist/next/link/ipc.js.map +1 -0
- package/dist/next/link/link.d.ts +34 -0
- package/dist/next/link/link.d.ts.map +1 -0
- package/dist/next/link/link.js +87 -0
- package/dist/next/link/link.js.map +1 -0
- package/dist/next/link/message.d.ts +249 -0
- package/dist/next/link/message.d.ts.map +1 -0
- package/dist/next/link/message.js +123 -0
- package/dist/next/link/message.js.map +1 -0
- package/dist/next/link/part.d.ts +80 -0
- package/dist/next/link/part.d.ts.map +1 -0
- package/dist/next/link/part.js +164 -0
- package/dist/next/link/part.js.map +1 -0
- package/dist/next/link/text.d.ts +6 -0
- package/dist/next/link/text.d.ts.map +1 -0
- package/dist/next/link/text.js +335 -0
- package/dist/next/link/text.js.map +1 -0
- package/dist/next/link/values.d.ts +40 -0
- package/dist/next/link/values.d.ts.map +1 -0
- package/dist/next/link/values.js +117 -0
- package/dist/next/link/values.js.map +1 -0
- package/dist/next/link/websocket.d.ts +26 -0
- package/dist/next/link/websocket.d.ts.map +1 -0
- package/dist/next/link/websocket.js +91 -0
- package/dist/next/link/websocket.js.map +1 -0
- package/dist/next/registries/contribution.d.ts +50 -0
- package/dist/next/registries/contribution.d.ts.map +1 -0
- package/dist/next/registries/contribution.js +129 -0
- package/dist/next/registries/contribution.js.map +1 -0
- package/dist/next/registries/entries.d.ts +18 -0
- package/dist/next/registries/entries.d.ts.map +1 -0
- package/dist/next/registries/entries.js +42 -0
- package/dist/next/registries/entries.js.map +1 -0
- package/dist/next/registries/index.d.ts +3 -0
- package/dist/next/registries/index.d.ts.map +1 -0
- package/dist/next/registries/index.js +5 -0
- package/dist/next/registries/index.js.map +1 -0
- package/dist/next/registries/internal.d.ts +4 -0
- package/dist/next/registries/internal.d.ts.map +1 -0
- package/dist/next/registries/internal.js +5 -0
- package/dist/next/registries/internal.js.map +1 -0
- package/dist/next/registries/record.d.ts +94 -0
- package/dist/next/registries/record.d.ts.map +1 -0
- package/dist/next/registries/record.js +253 -0
- package/dist/next/registries/record.js.map +1 -0
- package/dist/next/registries/registry.d.ts +74 -0
- package/dist/next/registries/registry.d.ts.map +1 -0
- package/dist/next/registries/registry.js +14 -0
- package/dist/next/registries/registry.js.map +1 -0
- package/dist/next/registries/value.d.ts +48 -0
- package/dist/next/registries/value.d.ts.map +1 -0
- package/dist/next/registries/value.js +199 -0
- package/dist/next/registries/value.js.map +1 -0
- package/dist/next/remote/calls.d.ts +25 -0
- package/dist/next/remote/calls.d.ts.map +1 -0
- package/dist/next/remote/calls.js +62 -0
- package/dist/next/remote/calls.js.map +1 -0
- package/dist/next/remote/consumer.d.ts +42 -0
- package/dist/next/remote/consumer.d.ts.map +1 -0
- package/dist/next/remote/consumer.js +343 -0
- package/dist/next/remote/consumer.js.map +1 -0
- package/dist/next/remote/hold.d.ts +130 -0
- package/dist/next/remote/hold.d.ts.map +1 -0
- package/dist/next/remote/hold.js +537 -0
- package/dist/next/remote/hold.js.map +1 -0
- package/dist/next/remote/host-link.d.ts +77 -0
- package/dist/next/remote/host-link.d.ts.map +1 -0
- package/dist/next/remote/host-link.js +182 -0
- package/dist/next/remote/host-link.js.map +1 -0
- package/dist/next/remote/internal.d.ts +6 -0
- package/dist/next/remote/internal.d.ts.map +1 -0
- package/dist/next/remote/internal.js +6 -0
- package/dist/next/remote/internal.js.map +1 -0
- package/dist/next/remote/path.d.ts +46 -0
- package/dist/next/remote/path.d.ts.map +1 -0
- package/dist/next/remote/path.js +73 -0
- package/dist/next/remote/path.js.map +1 -0
- package/dist/next/remote/provider.d.ts +76 -0
- package/dist/next/remote/provider.d.ts.map +1 -0
- package/dist/next/remote/provider.js +506 -0
- package/dist/next/remote/provider.js.map +1 -0
- package/dist/next/remote/relay.d.ts +58 -0
- package/dist/next/remote/relay.d.ts.map +1 -0
- package/dist/next/remote/relay.js +117 -0
- package/dist/next/remote/relay.js.map +1 -0
- package/dist/next/remote/remote-object.d.ts +133 -0
- package/dist/next/remote/remote-object.d.ts.map +1 -0
- package/dist/next/remote/remote-object.js +411 -0
- package/dist/next/remote/remote-object.js.map +1 -0
- package/dist/next/remote/replica.d.ts +59 -0
- package/dist/next/remote/replica.d.ts.map +1 -0
- package/dist/next/remote/replica.js +125 -0
- package/dist/next/remote/replica.js.map +1 -0
- package/dist/next/state/batch.d.ts +64 -0
- package/dist/next/state/batch.d.ts.map +1 -0
- package/dist/next/state/batch.js +163 -0
- package/dist/next/state/batch.js.map +1 -0
- package/dist/next/state/derive.d.ts +52 -0
- package/dist/next/state/derive.d.ts.map +1 -0
- package/dist/next/state/derive.js +182 -0
- package/dist/next/state/derive.js.map +1 -0
- package/dist/next/state/index.d.ts +6 -0
- package/dist/next/state/index.d.ts.map +1 -0
- package/dist/next/state/index.js +4 -0
- package/dist/next/state/index.js.map +1 -0
- package/dist/next/state/internal.d.ts +6 -0
- package/dist/next/state/internal.d.ts.map +1 -0
- package/dist/next/state/internal.js +8 -0
- package/dist/next/state/internal.js.map +1 -0
- package/dist/next/state/native-source.d.ts +106 -0
- package/dist/next/state/native-source.d.ts.map +1 -0
- package/dist/next/state/native-source.js +240 -0
- package/dist/next/state/native-source.js.map +1 -0
- package/dist/next/state/watchable.d.ts +114 -0
- package/dist/next/state/watchable.d.ts.map +1 -0
- package/dist/next/state/watchable.js +156 -0
- package/dist/next/state/watchable.js.map +1 -0
- package/dist/next/state/writable.d.ts +32 -0
- package/dist/next/state/writable.d.ts.map +1 -0
- package/dist/next/state/writable.js +49 -0
- package/dist/next/state/writable.js.map +1 -0
- package/dist/next/store/adapter.d.ts +67 -0
- package/dist/next/store/adapter.d.ts.map +1 -0
- package/dist/next/store/adapter.js +118 -0
- package/dist/next/store/adapter.js.map +1 -0
- package/dist/next/store/allocator.d.ts +17 -0
- package/dist/next/store/allocator.d.ts.map +1 -0
- package/dist/next/store/allocator.js +30 -0
- package/dist/next/store/allocator.js.map +1 -0
- package/dist/next/store/applier.d.ts +8 -0
- package/dist/next/store/applier.d.ts.map +1 -0
- package/dist/next/store/applier.js +375 -0
- package/dist/next/store/applier.js.map +1 -0
- package/dist/next/store/apply-batch.d.ts +12 -0
- package/dist/next/store/apply-batch.d.ts.map +1 -0
- package/dist/next/store/apply-batch.js +83 -0
- package/dist/next/store/apply-batch.js.map +1 -0
- package/dist/next/store/archive.d.ts +32 -0
- package/dist/next/store/archive.d.ts.map +1 -0
- package/dist/next/store/archive.js +129 -0
- package/dist/next/store/archive.js.map +1 -0
- package/dist/next/store/backend.d.ts +10 -0
- package/dist/next/store/backend.d.ts.map +1 -0
- package/dist/next/store/backend.js +15 -0
- package/dist/next/store/backend.js.map +1 -0
- package/dist/next/store/catalog.d.ts +24 -0
- package/dist/next/store/catalog.d.ts.map +1 -0
- package/dist/next/store/catalog.js +17 -0
- package/dist/next/store/catalog.js.map +1 -0
- package/dist/next/store/claims.d.ts +23 -0
- package/dist/next/store/claims.d.ts.map +1 -0
- package/dist/next/store/claims.js +65 -0
- package/dist/next/store/claims.js.map +1 -0
- package/dist/next/store/columns.d.ts +77 -0
- package/dist/next/store/columns.d.ts.map +1 -0
- package/dist/next/store/columns.js +77 -0
- package/dist/next/store/columns.js.map +1 -0
- package/dist/next/store/engine.d.ts +176 -0
- package/dist/next/store/engine.d.ts.map +1 -0
- package/dist/next/store/engine.js +283 -0
- package/dist/next/store/engine.js.map +1 -0
- package/dist/next/store/evaluate.d.ts +17 -0
- package/dist/next/store/evaluate.d.ts.map +1 -0
- package/dist/next/store/evaluate.js +128 -0
- package/dist/next/store/evaluate.js.map +1 -0
- package/dist/next/store/export.d.ts +17 -0
- package/dist/next/store/export.d.ts.map +1 -0
- package/dist/next/store/export.js +200 -0
- package/dist/next/store/export.js.map +1 -0
- package/dist/next/store/expression.d.ts +150 -0
- package/dist/next/store/expression.d.ts.map +1 -0
- package/dist/next/store/expression.js +268 -0
- package/dist/next/store/expression.js.map +1 -0
- package/dist/next/store/import.d.ts +10 -0
- package/dist/next/store/import.d.ts.map +1 -0
- package/dist/next/store/import.js +276 -0
- package/dist/next/store/import.js.map +1 -0
- package/dist/next/store/index.d.ts +16 -0
- package/dist/next/store/index.d.ts.map +1 -0
- package/dist/next/store/index.js +13 -0
- package/dist/next/store/index.js.map +1 -0
- package/dist/next/store/json-column.d.ts +33 -0
- package/dist/next/store/json-column.d.ts.map +1 -0
- package/dist/next/store/json-column.js +61 -0
- package/dist/next/store/json-column.js.map +1 -0
- package/dist/next/store/jsonl.d.ts +9 -0
- package/dist/next/store/jsonl.d.ts.map +1 -0
- package/dist/next/store/jsonl.js +61 -0
- package/dist/next/store/jsonl.js.map +1 -0
- package/dist/next/store/outbox.d.ts +26 -0
- package/dist/next/store/outbox.d.ts.map +1 -0
- package/dist/next/store/outbox.js +80 -0
- package/dist/next/store/outbox.js.map +1 -0
- package/dist/next/store/query.d.ts +39 -0
- package/dist/next/store/query.d.ts.map +1 -0
- package/dist/next/store/query.js +97 -0
- package/dist/next/store/query.js.map +1 -0
- package/dist/next/store/refusal.d.ts +15 -0
- package/dist/next/store/refusal.d.ts.map +1 -0
- package/dist/next/store/refusal.js +36 -0
- package/dist/next/store/refusal.js.map +1 -0
- package/dist/next/store/rows.d.ts +80 -0
- package/dist/next/store/rows.d.ts.map +1 -0
- package/dist/next/store/rows.js +183 -0
- package/dist/next/store/rows.js.map +1 -0
- package/dist/next/store/schema.d.ts +25 -0
- package/dist/next/store/schema.d.ts.map +1 -0
- package/dist/next/store/schema.js +115 -0
- package/dist/next/store/schema.js.map +1 -0
- package/dist/next/store/sql.d.ts +73 -0
- package/dist/next/store/sql.d.ts.map +1 -0
- package/dist/next/store/sql.js +234 -0
- package/dist/next/store/sql.js.map +1 -0
- package/dist/next/store/step.d.ts +48 -0
- package/dist/next/store/step.d.ts.map +1 -0
- package/dist/next/store/step.js +50 -0
- package/dist/next/store/step.js.map +1 -0
- package/dist/next/store/store.d.ts +161 -0
- package/dist/next/store/store.d.ts.map +1 -0
- package/dist/next/store/store.js +627 -0
- package/dist/next/store/store.js.map +1 -0
- package/dist/next/store/table-changes.d.ts +29 -0
- package/dist/next/store/table-changes.d.ts.map +1 -0
- package/dist/next/store/table-changes.js +102 -0
- package/dist/next/store/table-changes.js.map +1 -0
- package/dist/next/store/table-evolve.d.ts +74 -0
- package/dist/next/store/table-evolve.d.ts.map +1 -0
- package/dist/next/store/table-evolve.js +201 -0
- package/dist/next/store/table-evolve.js.map +1 -0
- package/dist/next/store/table-handle.d.ts +67 -0
- package/dist/next/store/table-handle.d.ts.map +1 -0
- package/dist/next/store/table-handle.js +101 -0
- package/dist/next/store/table-handle.js.map +1 -0
- package/dist/next/store/table-history.d.ts +75 -0
- package/dist/next/store/table-history.d.ts.map +1 -0
- package/dist/next/store/table-history.js +42 -0
- package/dist/next/store/table-history.js.map +1 -0
- package/dist/next/store/table-migration.d.ts +16 -0
- package/dist/next/store/table-migration.d.ts.map +1 -0
- package/dist/next/store/table-migration.js +202 -0
- package/dist/next/store/table-migration.js.map +1 -0
- package/dist/next/store/table-writes.d.ts +125 -0
- package/dist/next/store/table-writes.d.ts.map +1 -0
- package/dist/next/store/table-writes.js +165 -0
- package/dist/next/store/table-writes.js.map +1 -0
- package/dist/next/store/table.d.ts +80 -0
- package/dist/next/store/table.d.ts.map +1 -0
- package/dist/next/store/table.js +103 -0
- package/dist/next/store/table.js.map +1 -0
- package/dist/next/store/text.d.ts +14 -0
- package/dist/next/store/text.d.ts.map +1 -0
- package/dist/next/store/text.js +51 -0
- package/dist/next/store/text.js.map +1 -0
- package/dist/next/store/writes.d.ts +5 -0
- package/dist/next/store/writes.d.ts.map +1 -0
- package/dist/next/store/writes.js +4 -0
- package/dist/next/store/writes.js.map +1 -0
- package/dist/next-node/compression.d.ts +7 -0
- package/dist/next-node/compression.d.ts.map +1 -0
- package/dist/next-node/compression.js +24 -0
- package/dist/next-node/compression.js.map +1 -0
- package/dist/next-node/http/admission.d.ts +63 -0
- package/dist/next-node/http/admission.d.ts.map +1 -0
- package/dist/next-node/http/admission.js +134 -0
- package/dist/next-node/http/admission.js.map +1 -0
- package/dist/next-node/http/authenticate.d.ts +21 -0
- package/dist/next-node/http/authenticate.d.ts.map +1 -0
- package/dist/next-node/http/authenticate.js +34 -0
- package/dist/next-node/http/authenticate.js.map +1 -0
- package/dist/next-node/http/cookies.d.ts +24 -0
- package/dist/next-node/http/cookies.d.ts.map +1 -0
- package/dist/next-node/http/cookies.js +62 -0
- package/dist/next-node/http/cookies.js.map +1 -0
- package/dist/next-node/http/file.d.ts +23 -0
- package/dist/next-node/http/file.d.ts.map +1 -0
- package/dist/next-node/http/file.js +94 -0
- package/dist/next-node/http/file.js.map +1 -0
- package/dist/next-node/http/headers.d.ts +37 -0
- package/dist/next-node/http/headers.d.ts.map +1 -0
- package/dist/next-node/http/headers.js +129 -0
- package/dist/next-node/http/headers.js.map +1 -0
- package/dist/next-node/http/http.d.ts +100 -0
- package/dist/next-node/http/http.d.ts.map +1 -0
- package/dist/next-node/http/http.js +462 -0
- package/dist/next-node/http/http.js.map +1 -0
- package/dist/next-node/http/incoming.d.ts +19 -0
- package/dist/next-node/http/incoming.d.ts.map +1 -0
- package/dist/next-node/http/incoming.js +31 -0
- package/dist/next-node/http/incoming.js.map +1 -0
- package/dist/next-node/http/index.d.ts +11 -0
- package/dist/next-node/http/index.d.ts.map +1 -0
- package/dist/next-node/http/index.js +12 -0
- package/dist/next-node/http/index.js.map +1 -0
- package/dist/next-node/http/node.d.ts +78 -0
- package/dist/next-node/http/node.d.ts.map +1 -0
- package/dist/next-node/http/node.js +291 -0
- package/dist/next-node/http/node.js.map +1 -0
- package/dist/next-node/http/request.d.ts +54 -0
- package/dist/next-node/http/request.d.ts.map +1 -0
- package/dist/next-node/http/request.js +116 -0
- package/dist/next-node/http/request.js.map +1 -0
- package/dist/next-node/http/response.d.ts +63 -0
- package/dist/next-node/http/response.d.ts.map +1 -0
- package/dist/next-node/http/response.js +202 -0
- package/dist/next-node/http/response.js.map +1 -0
- package/dist/next-node/http/router.d.ts +114 -0
- package/dist/next-node/http/router.d.ts.map +1 -0
- package/dist/next-node/http/router.js +261 -0
- package/dist/next-node/http/router.js.map +1 -0
- package/dist/next-node/http/upgrades.d.ts +58 -0
- package/dist/next-node/http/upgrades.d.ts.map +1 -0
- package/dist/next-node/http/upgrades.js +184 -0
- package/dist/next-node/http/upgrades.js.map +1 -0
- package/dist/next-node/plugins/build.d.ts +57 -0
- package/dist/next-node/plugins/build.d.ts.map +1 -0
- package/dist/next-node/plugins/build.js +334 -0
- package/dist/next-node/plugins/build.js.map +1 -0
- package/dist/next-node/plugins/discover.d.ts +36 -0
- package/dist/next-node/plugins/discover.d.ts.map +1 -0
- package/dist/next-node/plugins/discover.js +91 -0
- package/dist/next-node/plugins/discover.js.map +1 -0
- package/dist/next-node/plugins/evaluate.d.ts +33 -0
- package/dist/next-node/plugins/evaluate.d.ts.map +1 -0
- package/dist/next-node/plugins/evaluate.js +98 -0
- package/dist/next-node/plugins/evaluate.js.map +1 -0
- package/dist/next-node/plugins/index.d.ts +9 -0
- package/dist/next-node/plugins/index.d.ts.map +1 -0
- package/dist/next-node/plugins/index.js +11 -0
- package/dist/next-node/plugins/index.js.map +1 -0
- package/dist/next-node/plugins/install.d.ts +13 -0
- package/dist/next-node/plugins/install.d.ts.map +1 -0
- package/dist/next-node/plugins/install.js +37 -0
- package/dist/next-node/plugins/install.js.map +1 -0
- package/dist/next-node/plugins/plugins.d.ts +135 -0
- package/dist/next-node/plugins/plugins.d.ts.map +1 -0
- package/dist/next-node/plugins/plugins.js +206 -0
- package/dist/next-node/plugins/plugins.js.map +1 -0
- package/dist/next-node/plugins/runtime.d.ts +41 -0
- package/dist/next-node/plugins/runtime.d.ts.map +1 -0
- package/dist/next-node/plugins/runtime.js +136 -0
- package/dist/next-node/plugins/runtime.js.map +1 -0
- package/dist/next-node/plugins/stack.d.ts +16 -0
- package/dist/next-node/plugins/stack.d.ts.map +1 -0
- package/dist/next-node/plugins/stack.js +61 -0
- package/dist/next-node/plugins/stack.js.map +1 -0
- package/dist/next-node/plugins/watcher.d.ts +58 -0
- package/dist/next-node/plugins/watcher.d.ts.map +1 -0
- package/dist/next-node/plugins/watcher.js +281 -0
- package/dist/next-node/plugins/watcher.js.map +1 -0
- package/dist/next-node/workers/control.d.ts +83 -0
- package/dist/next-node/workers/control.d.ts.map +1 -0
- package/dist/next-node/workers/control.js +77 -0
- package/dist/next-node/workers/control.js.map +1 -0
- package/dist/next-node/workers/index.d.ts +5 -0
- package/dist/next-node/workers/index.d.ts.map +1 -0
- package/dist/next-node/workers/index.js +7 -0
- package/dist/next-node/workers/index.js.map +1 -0
- package/dist/next-node/workers/lock.d.ts +21 -0
- package/dist/next-node/workers/lock.d.ts.map +1 -0
- package/dist/next-node/workers/lock.js +137 -0
- package/dist/next-node/workers/lock.js.map +1 -0
- package/dist/next-node/workers/main.d.ts +46 -0
- package/dist/next-node/workers/main.d.ts.map +1 -0
- package/dist/next-node/workers/main.js +230 -0
- package/dist/next-node/workers/main.js.map +1 -0
- package/dist/next-node/workers/process.d.ts +42 -0
- package/dist/next-node/workers/process.d.ts.map +1 -0
- package/dist/next-node/workers/process.js +125 -0
- package/dist/next-node/workers/process.js.map +1 -0
- package/dist/next-node/workers/workers.d.ts +80 -0
- package/dist/next-node/workers/workers.d.ts.map +1 -0
- package/dist/next-node/workers/workers.js +572 -0
- package/dist/next-node/workers/workers.js.map +1 -0
- package/dist/object.d.ts +4 -4
- package/dist/object.d.ts.map +1 -1
- package/dist/object.js +3 -4
- package/dist/object.js.map +1 -1
- package/dist/output.d.ts +1 -1
- package/dist/output.d.ts.map +1 -1
- package/dist/output.js +4 -2
- package/dist/output.js.map +1 -1
- package/dist/remote.d.ts.map +1 -1
- package/dist/remote.js +2 -2
- package/dist/remote.js.map +1 -1
- package/dist/schema.d.ts +8 -4
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +180 -5
- package/dist/schema.js.map +1 -1
- package/dist/sqlite/cloudflare.d.ts +2 -0
- package/dist/sqlite/cloudflare.d.ts.map +1 -1
- package/dist/sqlite/cloudflare.js +10 -0
- package/dist/sqlite/cloudflare.js.map +1 -1
- package/dist/sqlite/database.d.ts +5 -2
- package/dist/sqlite/database.d.ts.map +1 -1
- package/dist/sqlite/database.js.map +1 -1
- package/dist/sqlite/node.d.ts +4 -1
- package/dist/sqlite/node.d.ts.map +1 -1
- package/dist/sqlite/node.js +22 -5
- package/dist/sqlite/node.js.map +1 -1
- package/dist/watch.d.ts +194 -0
- package/dist/watch.d.ts.map +1 -0
- package/dist/watch.js +383 -0
- package/dist/watch.js.map +1 -0
- package/dist/wire.d.ts +174 -193
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +81 -80
- package/dist/wire.js.map +1 -1
- package/docs/guide.md +15 -15
- package/docs/next/benchmarks.md +959 -0
- package/docs/next/decisions.md +2957 -0
- package/docs/next/dependencies/book.md +1671 -0
- package/docs/next/dependencies/index.html +2641 -0
- package/docs/next/dependencies/model.md +330 -0
- package/docs/next/design.md +2554 -0
- package/docs/next/durable-observers/book.md +432 -0
- package/docs/next/durable-observers/index.html +517 -0
- package/docs/next/flow-control/book.md +333 -0
- package/docs/next/flow-control/fold/index.html +265 -0
- package/docs/next/flow-control/index.html +548 -0
- package/docs/next/flow-control/window/index.html +228 -0
- package/docs/next/guide-plugins-hosts/book.md +607 -0
- package/docs/next/guide-plugins-hosts/index.html +652 -0
- package/docs/next/http-workers/book.md +378 -0
- package/docs/next/http-workers/index.html +515 -0
- package/docs/next/layer-1.md +311 -0
- package/docs/next/layer-2.md +216 -0
- package/docs/next/plugin-model/book.md +186 -0
- package/docs/next/plugin-model/index.html +310 -0
- package/docs/next/plugin-primer/book.md +273 -0
- package/docs/next/plugin-primer/index.html +430 -0
- package/docs/next/slice-1.md +236 -0
- package/docs/next/slice-10.md +285 -0
- package/docs/next/slice-11.md +93 -0
- package/docs/next/slice-2.md +174 -0
- package/docs/next/slice-3a.md +296 -0
- package/docs/next/slice-3b.md +197 -0
- package/docs/next/slice-4.md +146 -0
- package/docs/next/slice-4a.md +418 -0
- package/docs/next/slice-4b.md +208 -0
- package/docs/next/slice-5.md +281 -0
- package/docs/next/slice-6a.md +676 -0
- package/docs/next/slice-6b.md +332 -0
- package/docs/next/slice-7a.md +130 -0
- package/docs/next/slice-7b/book.md +608 -0
- package/docs/next/slice-7b/index.html +842 -0
- package/docs/next/slice-7b.md +255 -0
- package/docs/next/slice-7c.md +165 -0
- package/docs/next/slice-8.md +194 -0
- package/docs/next/slices.md +230 -0
- package/docs/next/store/book.md +665 -0
- package/docs/next/store/index.html +861 -0
- package/docs/next/store/walkthrough.md +193 -0
- package/docs/spec.md +9 -9
- package/docs/tutorial.md +26 -25
- package/package.json +22 -6
- package/src/delta/README.md +69 -0
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
import type { TelemetryContext } from "@earendil-works/pi-telemetry";
|
|
2
|
+
import { type Context } from "../../context/index.ts";
|
|
3
|
+
import type { JsonValue } from "../../json.ts";
|
|
4
|
+
import type { Watchable } from "../../watch.ts";
|
|
5
|
+
import type { Address, Contract, HostKind, ParamsOf } from "../contracts/index.ts";
|
|
6
|
+
import { type Params } from "../contracts/internal.ts";
|
|
7
|
+
import { ChordError, type FailureCause, type Principal, type PrincipalKeyFunction } from "../data/index.ts";
|
|
8
|
+
import { type Codec, type Compression, type Link, type PartLimits } from "../link/index.ts";
|
|
9
|
+
import type { Registry, RegistryValue } from "../registries/index.ts";
|
|
10
|
+
import { type RegistryError, RegistryRecord } from "../registries/internal.ts";
|
|
11
|
+
import { type HoldRequest, HostLink, Path, type ProviderSide } from "../remote/internal.ts";
|
|
12
|
+
import { Batch, type BatchError } from "../state/internal.ts";
|
|
13
|
+
import type { ChordStore, Store } from "../store/store.ts";
|
|
14
|
+
import { type ActivityCounts } from "./activity.ts";
|
|
15
|
+
import { Backoff } from "./backoff.ts";
|
|
16
|
+
import { type Caller, type Ctx } from "./ctx.ts";
|
|
17
|
+
import { type Placed } from "./destination.ts";
|
|
18
|
+
import { ChordObject, type Holder } from "./object.ts";
|
|
19
|
+
import { type Presence } from "./presence.ts";
|
|
20
|
+
import { Binding, type CheckedParams, type Held, type Reference, type Target } from "./reference.ts";
|
|
21
|
+
import { type RevokedBy } from "./revocation.ts";
|
|
22
|
+
import { type RootOptions } from "./root.ts";
|
|
23
|
+
import { type RouteHandle, type RouteOptions } from "./route.ts";
|
|
24
|
+
import { type PluginFacet } from "./staging.ts";
|
|
25
|
+
import { type UnboundRequest } from "./unbound.ts";
|
|
26
|
+
/** What `createHost` takes; `R` is the app's revocation type (JSON). */
|
|
27
|
+
export type HostOptions<P extends Principal = Principal, R extends JsonValue = JsonValue> = {
|
|
28
|
+
/** This host's address (`Session({ id })`): it serves only objects placed there. Without one, a client. */
|
|
29
|
+
readonly address?: Address;
|
|
30
|
+
/** Who this host acts as for its own requests; a host without one (a client) has none. */
|
|
31
|
+
readonly principal?: P;
|
|
32
|
+
/** The key of a principal in identities; L1's canonical JSON by default. The same function on every host. */
|
|
33
|
+
readonly principalKey?: PrincipalKeyFunction<P>;
|
|
34
|
+
/** The telemetry adapter; NOOP by default. */
|
|
35
|
+
readonly telemetry?: TelemetryContext;
|
|
36
|
+
/** Everything that fails in the background; every app handles it. */
|
|
37
|
+
readonly onError: (error: HostError) => void;
|
|
38
|
+
/** How long a native's close, and an ending object's running calls, are waited for; 30 s by default. */
|
|
39
|
+
readonly closeTimeout?: number;
|
|
40
|
+
/** How long an activation attempt, and a `get`, may take until the object is live; 60 s by default. */
|
|
41
|
+
readonly readyTimeout?: number;
|
|
42
|
+
/**
|
|
43
|
+
* The heartbeat of every link: a link silent for `ping` ms (15 s by default) sends a `ping`; one silent for `close`
|
|
44
|
+
* ms (30 s by default), its handshake included, is closed.
|
|
45
|
+
*/
|
|
46
|
+
readonly heartbeat?: {
|
|
47
|
+
readonly ping?: number;
|
|
48
|
+
readonly close?: number;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* What revokes a principal (§4): `host.revoke(r)` ends the objects and closes the child links of every principal
|
|
52
|
+
* `p` whose `revokedBy(p)` holds `r` (compared as canonical JSON). The same function on every host.
|
|
53
|
+
*/
|
|
54
|
+
readonly revokedBy?: RevokedBy<P, R>;
|
|
55
|
+
/**
|
|
56
|
+
* A synchronous compressor (`nodeCompression` for Node): JSON parts above 16 KiB this host originates are deflated
|
|
57
|
+
* once, and deflated parts it owns inflated in place. Without one (a browser), nothing is compressed and deflated
|
|
58
|
+
* parts are inflated asynchronously, later messages of their link waiting in order.
|
|
59
|
+
*/
|
|
60
|
+
readonly compression?: Compression;
|
|
61
|
+
/**
|
|
62
|
+
* The store persisted documents and tables live in (`openStore`); the app owns it and closes it after the host.
|
|
63
|
+
* One open host per store. A `storage_failed` of the store is reported once and closes the host.
|
|
64
|
+
*/
|
|
65
|
+
readonly store?: Store;
|
|
66
|
+
};
|
|
67
|
+
/** Where a reported part sits on its object: a routine (`on`, `onLive`) or a native, by kind, from 1 in declaration order. */
|
|
68
|
+
export type Position = {
|
|
69
|
+
readonly kind: "on" | "onLive" | "native";
|
|
70
|
+
readonly position: number;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* What `onError` gets, by kind. `object` is the object's type, with its params key when it has params; `failure` is a
|
|
74
|
+
* `FailureCause`, `error` the plain error.
|
|
75
|
+
*/
|
|
76
|
+
export type HostError = BatchError | RegistryError | {
|
|
77
|
+
readonly kind: "activation_failed";
|
|
78
|
+
readonly object: string;
|
|
79
|
+
readonly failure: FailureCause;
|
|
80
|
+
}
|
|
81
|
+
/** A live object failed at runtime (a `migrate` failing on access, a stored version newer than the code). */
|
|
82
|
+
| {
|
|
83
|
+
readonly kind: "object_failed";
|
|
84
|
+
readonly object: string;
|
|
85
|
+
readonly failure: FailureCause;
|
|
86
|
+
}
|
|
87
|
+
/** The host's store stopped after a backend error: the host closes itself (once). */
|
|
88
|
+
| {
|
|
89
|
+
readonly kind: "storage_failed";
|
|
90
|
+
readonly error: unknown;
|
|
91
|
+
} | {
|
|
92
|
+
readonly kind: "close_failed";
|
|
93
|
+
readonly object: string;
|
|
94
|
+
readonly native: Position;
|
|
95
|
+
readonly error: unknown;
|
|
96
|
+
} | {
|
|
97
|
+
readonly kind: "close_timeout";
|
|
98
|
+
readonly object: string;
|
|
99
|
+
readonly native: Position;
|
|
100
|
+
} | {
|
|
101
|
+
readonly kind: "drain_timeout";
|
|
102
|
+
readonly object: string;
|
|
103
|
+
} | {
|
|
104
|
+
readonly kind: "protocol_error";
|
|
105
|
+
readonly error: unknown;
|
|
106
|
+
} | {
|
|
107
|
+
readonly kind: "resolve_failed";
|
|
108
|
+
readonly address: string;
|
|
109
|
+
readonly error: unknown;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* A derive's compute threw (its owner's, once per failure episode: the first failure after a value or after its
|
|
113
|
+
* creation; a value ends the episode); `member` when it is an exposed state member.
|
|
114
|
+
*/
|
|
115
|
+
| {
|
|
116
|
+
readonly kind: "derive_failed";
|
|
117
|
+
readonly object: string;
|
|
118
|
+
readonly member?: string;
|
|
119
|
+
readonly error: unknown;
|
|
120
|
+
}
|
|
121
|
+
/** A routine's call threw, or its source failed for good; `routine` is its kind and position. */
|
|
122
|
+
| {
|
|
123
|
+
readonly kind: "routine_failed";
|
|
124
|
+
readonly object: string;
|
|
125
|
+
readonly routine: Position;
|
|
126
|
+
readonly error: unknown;
|
|
127
|
+
}
|
|
128
|
+
/** A job's `run` threw (not after an abort): its outcome is `failed { threw }`. */
|
|
129
|
+
| {
|
|
130
|
+
readonly kind: "job_failed";
|
|
131
|
+
readonly object: string;
|
|
132
|
+
readonly job: string;
|
|
133
|
+
readonly id: string;
|
|
134
|
+
readonly error: unknown;
|
|
135
|
+
}
|
|
136
|
+
/** A job's `finish` threw: retried with backoff, blocked after five failures in a row. */
|
|
137
|
+
| {
|
|
138
|
+
readonly kind: "job_finish_failed";
|
|
139
|
+
readonly object: string;
|
|
140
|
+
readonly job: string;
|
|
141
|
+
readonly id: string;
|
|
142
|
+
readonly error: unknown;
|
|
143
|
+
}
|
|
144
|
+
/** A persisted run was cut off five times in a row by crashes (D6): it ends `failed { restart_limit }`, `finish` runs. */
|
|
145
|
+
| {
|
|
146
|
+
readonly kind: "job_interrupted";
|
|
147
|
+
readonly object: string;
|
|
148
|
+
readonly job: string;
|
|
149
|
+
readonly id: string;
|
|
150
|
+
readonly restarts: number;
|
|
151
|
+
}
|
|
152
|
+
/** A blocked run was dropped without `finish`: aborted, or its object ended. */
|
|
153
|
+
| {
|
|
154
|
+
readonly kind: "job_dropped";
|
|
155
|
+
readonly object: string;
|
|
156
|
+
readonly job: string;
|
|
157
|
+
readonly id: string;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* An attempt parked longer than `readyTimeout` (since `since`, `Date.now()` time), whatever its blocker: once per
|
|
161
|
+
* parking episode, naming the first blocker in declaration order (`waitingFor`, a reference's label or `registry
|
|
162
|
+
* <name>`) and its `state`; a diagnostic of a ring across hosts started at the same moment or a long wait (nothing
|
|
163
|
+
* fails).
|
|
164
|
+
*/
|
|
165
|
+
| {
|
|
166
|
+
readonly kind: "parked_long";
|
|
167
|
+
readonly object: string;
|
|
168
|
+
readonly waitingFor: string;
|
|
169
|
+
readonly state: "loading" | "failed";
|
|
170
|
+
readonly since: number;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* What `accept` and `connect` take: the principal of the host at the other end, as this host stamps it; `trusted` skips
|
|
174
|
+
* the message check on the link (IPC to the host's own processes; never grants the principal fields); the codec both
|
|
175
|
+
* ends of the link use (`binaryCodec` by default); and the limits per part of what arrives on it (Q2: none on a
|
|
176
|
+
* trusted link, 16 MiB on the wire and 64 MiB decoded otherwise, unless set).
|
|
177
|
+
*/
|
|
178
|
+
export type LinkOptions<P extends Principal = Principal> = {
|
|
179
|
+
readonly principal: P;
|
|
180
|
+
readonly trusted?: boolean;
|
|
181
|
+
readonly codec?: Codec;
|
|
182
|
+
readonly limits?: PartLimits;
|
|
183
|
+
};
|
|
184
|
+
/** What `host.get` and `host.hold` take besides the type, the params and the context. */
|
|
185
|
+
export type GetOptions = {
|
|
186
|
+
/**
|
|
187
|
+
* A getter's deadline for its whole wait, and how long a call made while the reference is loading waits (the park
|
|
188
|
+
* deadline); the host's `readyTimeout` by default.
|
|
189
|
+
*/
|
|
190
|
+
readonly readyTimeout?: number;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* A host whatever its principal type, as Chord's own parts use it: `ChordHost<P>` is invariant in `P` (`load` takes
|
|
194
|
+
* facets typed for exactly `P`).
|
|
195
|
+
*/
|
|
196
|
+
export type AnyHost = Omit<ChordHost, "load" | "reload" | "accept" | "connect" | "route" | "references" | "root">;
|
|
197
|
+
/** A host. `P` is the app's principal type, `R` its revocation type. */
|
|
198
|
+
export interface Host<P extends Principal = Principal, R extends JsonValue = JsonValue> {
|
|
199
|
+
/**
|
|
200
|
+
* Runs every facet's setup and publishes what they declared in one batch (the types and registries served, the
|
|
201
|
+
* registries composed once, the contributions); requests that waited for the publication are placed after that
|
|
202
|
+
* batch. Then activates every served type with empty params and resolves when each has had its first outcome (the
|
|
203
|
+
* start barrier, decision (a)): live, failed by its own cause, parked with no blocker here still without its first
|
|
204
|
+
* outcome, or ended (failures go to `onError`). A plugin whose setup throws or is refused at declaration (its name,
|
|
205
|
+
* a type or registry another plugin serves, a remote type here without principal or address, `checkAccepts`) is
|
|
206
|
+
* left out and reported (`failed`); it never closes the host. Runs once.
|
|
207
|
+
*/
|
|
208
|
+
load(facets: readonly PluginFacet<P>[], context: Context): Promise<LoadReport>;
|
|
209
|
+
/**
|
|
210
|
+
* Reloads this host's plugins (slice 7b): `facets` is its complete new plugin set; a plugin in it and not loaded
|
|
211
|
+
* is added, one loaded with another facet value is changed (the same facet object is unchanged: untouched), one
|
|
212
|
+
* loaded and not in it is removed. Staging runs every new setup and every affected object's new factory against a
|
|
213
|
+
* recording `self`, per plugin: a plugin whose new code fails there keeps its old code (an added one is left out),
|
|
214
|
+
* and so does a changed plugin whose recorded requests would not bind because of it (the closure rule); both are
|
|
215
|
+
* reported (`failed`); `options.failed` names plugins the caller passes as their loaded facet because their new
|
|
216
|
+
* code failed before (a build, an evaluation): the same for the closure rule and the report. Then it commits in one
|
|
217
|
+
* batch (types, registries,
|
|
218
|
+
* contributions; a publication waking the requests for the names it serves) and every object of a changed or
|
|
219
|
+
* removed plugin takes its fate: swapped in place, restarted after its drain, retried, or ended (its type
|
|
220
|
+
* removed). Resolves with the report once every fate started (swaps and retries checked their dependencies; it
|
|
221
|
+
* does not wait for objects to go live). Reloads run one after another. Throws before `load` resolved; rejects
|
|
222
|
+
* `released/closed` after `close`; `context`'s abort before the commit rejects `aborted` and changes nothing, after
|
|
223
|
+
* it only ends the wait (`aborted`, its `details.committed` naming what the commit applied: `CommittedReload`).
|
|
224
|
+
*/
|
|
225
|
+
reload(facets: readonly PluginFacet<P>[], context: Context, options?: ReloadOptions): Promise<ReloadReport>;
|
|
226
|
+
/**
|
|
227
|
+
* A reference once its object is live (and hydrated). It acts as the host's principal and goes where its type's host
|
|
228
|
+
* address puts it: here, over a route, or over the parent link (`Destination`). It waits while the reference is
|
|
229
|
+
* `loading` (before the host's publication too), `failed { transient }` or `failed { waiting }` until its
|
|
230
|
+
* `readyTimeout`, then rejects with the last cause and releases the reference; a broken failure rejects at once.
|
|
231
|
+
*/
|
|
232
|
+
get<C extends Contract>(Type: C, params: ParamsOf<C>, context: Context, options?: GetOptions): Promise<Reference<C>>;
|
|
233
|
+
/**
|
|
234
|
+
* A reference at once, following its object until released: loading, live, failed (retried as its object is) and
|
|
235
|
+
* loading again while its link is down; it never rejects. Throws at once only for invalid params (also before
|
|
236
|
+
* `load`). A type not served where it goes is `loading` before the host's publication and `failed { waiting }` after
|
|
237
|
+
* it (bound when a publication serves it); a `hostAddress` or route that refuses fails it broken. Its `variant` is
|
|
238
|
+
* `undefined` until its first binding.
|
|
239
|
+
*/
|
|
240
|
+
hold<C extends Contract>(Type: C, params: ParamsOf<C>, context: Context, options?: GetOptions): Held<C>;
|
|
241
|
+
/**
|
|
242
|
+
* A link from a child: this host serves its remote types over it, every hold and call arriving on it acting as
|
|
243
|
+
* `principal`. `context` is the parent of the work arriving on it (its cancellation is dropped).
|
|
244
|
+
*/
|
|
245
|
+
accept(link: Link, options: LinkOptions<P>, context: Context): void;
|
|
246
|
+
/**
|
|
247
|
+
* This host's parent link: remote types not served here and not routed are held over it, every such reference held
|
|
248
|
+
* again on a new one; holds arriving on it may name whom they act for. Throws while the previous one is open; once
|
|
249
|
+
* it closed (a drop), `connect` takes the next. `principal` is who the parent is.
|
|
250
|
+
*/
|
|
251
|
+
connect(link: Link, options: LinkOptions<P>, context: Context): void;
|
|
252
|
+
/**
|
|
253
|
+
* How this host reaches hosts of `Kind` (called before `load`, once per kind): `authorize` admits every hold routed
|
|
254
|
+
* over it, `resolve` makes the link of an address, for a new hold, on `retry`, or once after a link that completed
|
|
255
|
+
* its handshake dropped while held (no timer). A rejected `resolve`, or a link closed before its handshake, fails the
|
|
256
|
+
* address's holders `failed { waiting }` (they stay on its path). `context` is the parent of the route's work (its
|
|
257
|
+
* `resolve`s, the holds and calls on its links), aborted for it when this host closes. Returns the address controls.
|
|
258
|
+
*/
|
|
259
|
+
route<N extends string, Q extends Params>(Kind: HostKind<N, Q>, options: RouteOptions<P, HostKind<N, Q>>, context: Context): RouteHandle<HostKind<N, Q>>;
|
|
260
|
+
/**
|
|
261
|
+
* Revokes `revocation` (§4, R10, R11), synchronously: every remote object whose principal it revokes (`revokedBy`)
|
|
262
|
+
* ends at once, whatever references remain (holders get `forbidden`, running calls are aborted, an activation is
|
|
263
|
+
* abandoned); every child link whose principal it revokes closes (never the parent, never this host's own
|
|
264
|
+
* principal); and every route link is sent `revoke`, which the host there applies with its own `revokedBy`. Nothing
|
|
265
|
+
* is replayed to links made later.
|
|
266
|
+
*/
|
|
267
|
+
revoke(revocation: R, context: Context): void;
|
|
268
|
+
/**
|
|
269
|
+
* The references to objects of `Type` on this host (§19), one entry per reference: the object's params, the
|
|
270
|
+
* principal it acts as (remote types) and its origin, the incarnation of the host it was made for (two tabs are two
|
|
271
|
+
* origins). Changes in the batch where a reference binds or ends; a link drop is a departure.
|
|
272
|
+
*/
|
|
273
|
+
references<C extends Contract>(Type: C): Watchable<readonly Presence<C, P>[]>;
|
|
274
|
+
/**
|
|
275
|
+
* The work keeping this host busy, for the app's supervisor: holds arriving over links and served here, method
|
|
276
|
+
* calls running, running jobs and lingering objects; published at most once per microtask turn with changes.
|
|
277
|
+
*/
|
|
278
|
+
readonly activity: Watchable<ActivityCounts>;
|
|
279
|
+
/**
|
|
280
|
+
* Registry `R`'s composed value as `R`'s version sees it, for code outside objects, once it is usable: waits for the
|
|
281
|
+
* host's publication, then while it has no value (`unavailable/undeclared` without a provider, a first `compose`
|
|
282
|
+
* that threw, a version not served here: `contract_mismatch`) until its `readyTimeout`, then rejects with the last
|
|
283
|
+
* error.
|
|
284
|
+
*/
|
|
285
|
+
registry<C, V>(R: Registry<C, V>, context: Context, options?: GetOptions): Promise<RegistryValue<V>>;
|
|
286
|
+
/**
|
|
287
|
+
* Runs `fn` with a call context for code outside objects (a Durable tool, a CLI): the host's principal (or
|
|
288
|
+
* `options.principal`; an explicit `undefined` runs anonymous), this host's incarnation, `context`'s telemetry and signal, `ctx.get`. When `fn` settles or
|
|
289
|
+
* `context` aborts, the context is sealed: its signal aborted, `ctx.get` refused `released`, every reference it took
|
|
290
|
+
* released; an abort rejects at once. `host.close` seals the open ones; after it, `root` rejects `released`.
|
|
291
|
+
*/
|
|
292
|
+
root<T>(fn: (ctx: Ctx<P>) => Promise<T>, context: Context, options?: RootOptions<P>): Promise<T>;
|
|
293
|
+
/**
|
|
294
|
+
* Closes its links, seals its root scopes, then ends every object at once, then drains and closes them one by one,
|
|
295
|
+
* the last to go live first (reason `close`). Rejects with an `AggregateError` of the closes that threw.
|
|
296
|
+
*/
|
|
297
|
+
close(context: Context): Promise<void>;
|
|
298
|
+
}
|
|
299
|
+
/** A plugin left out at `load`, or whose new code failed at a reload (it kept its old code, if it had any), and why. */
|
|
300
|
+
export type PluginFailure = {
|
|
301
|
+
readonly plugin: string;
|
|
302
|
+
readonly error: unknown;
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* What a reload's commit applied, by plugin name: the `details.committed` of the `aborted` error of a reload whose
|
|
306
|
+
* context aborted after its commit (the commit stands; only the wait for the report ended).
|
|
307
|
+
*/
|
|
308
|
+
export type CommittedReload = {
|
|
309
|
+
readonly added: readonly string[];
|
|
310
|
+
readonly changed: readonly string[];
|
|
311
|
+
readonly removed: readonly string[];
|
|
312
|
+
/** The plugins whose new code failed: they kept their old code (an added one was left out). */
|
|
313
|
+
readonly failed: readonly string[];
|
|
314
|
+
};
|
|
315
|
+
/** What `host.reload` takes besides the plugin set: the plugins whose new code failed before it (a build, an evaluation). */
|
|
316
|
+
export type ReloadOptions = {
|
|
317
|
+
readonly failed?: readonly PluginFailure[];
|
|
318
|
+
};
|
|
319
|
+
/** What `load` did (decision "Per plugin at startup and reload"): the plugins it left out. */
|
|
320
|
+
export type LoadReport = {
|
|
321
|
+
readonly failed: readonly PluginFailure[];
|
|
322
|
+
};
|
|
323
|
+
/**
|
|
324
|
+
* What a reload did (slice 7b §1): its plugins by change (those applied), the plugins whose new code failed, and what
|
|
325
|
+
* every affected object did.
|
|
326
|
+
*/
|
|
327
|
+
export type ReloadReport = {
|
|
328
|
+
readonly plugins: {
|
|
329
|
+
readonly added: readonly string[];
|
|
330
|
+
readonly changed: readonly string[];
|
|
331
|
+
readonly removed: readonly string[];
|
|
332
|
+
};
|
|
333
|
+
readonly failed: readonly PluginFailure[];
|
|
334
|
+
/** Every live, activating, parked or failed object of a changed or removed plugin, by its label. */
|
|
335
|
+
readonly objects: readonly ReloadedObject[];
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* One object's fate in a reload: `swapped` (pure, in place), `restarted` (natives: drained, closed with reason
|
|
339
|
+
* `reload`, activated again), `ended` (its type is gone), `parked` (its new code waits for a dependency, `cause`), or
|
|
340
|
+
* `retried` (it was failed, parked or activating: a new attempt runs on the new code).
|
|
341
|
+
*/
|
|
342
|
+
export type ReloadedObject = {
|
|
343
|
+
readonly object: string;
|
|
344
|
+
} & ({
|
|
345
|
+
readonly kind: "swapped";
|
|
346
|
+
} | {
|
|
347
|
+
readonly kind: "restarted";
|
|
348
|
+
} | {
|
|
349
|
+
readonly kind: "ended";
|
|
350
|
+
} | {
|
|
351
|
+
readonly kind: "parked";
|
|
352
|
+
readonly cause: FailureCause;
|
|
353
|
+
} | {
|
|
354
|
+
readonly kind: "retried";
|
|
355
|
+
});
|
|
356
|
+
/**
|
|
357
|
+
* What a hold placed here binds to (`serving`): its object, or why it waits unbound (`failed { waiting }`: not served,
|
|
358
|
+
* another version, or placed elsewhere by the provider's code).
|
|
359
|
+
*/
|
|
360
|
+
export type Serving = {
|
|
361
|
+
readonly kind: "object";
|
|
362
|
+
readonly object: ChordObject;
|
|
363
|
+
} | {
|
|
364
|
+
readonly kind: "waiting";
|
|
365
|
+
readonly cause: FailureCause;
|
|
366
|
+
};
|
|
367
|
+
/** Creates a host. */
|
|
368
|
+
export declare function createHost<P extends Principal = Principal, R extends JsonValue = JsonValue>(options: HostOptions<P, R>): Host<P, R>;
|
|
369
|
+
/** The host: its served types, its objects by identity, its batch, backoff and endings. */
|
|
370
|
+
export declare class ChordHost<P extends Principal = Principal, R extends JsonValue = JsonValue> implements Host<P, R> {
|
|
371
|
+
#private;
|
|
372
|
+
readonly batch: Batch;
|
|
373
|
+
readonly timeouts: {
|
|
374
|
+
readonly close: number;
|
|
375
|
+
readonly ready: number;
|
|
376
|
+
};
|
|
377
|
+
readonly backoff: Backoff;
|
|
378
|
+
readonly address: Address | undefined;
|
|
379
|
+
readonly principal: P | undefined;
|
|
380
|
+
/** This run of the host, sent in every handshake (R20). */
|
|
381
|
+
readonly incarnation: string;
|
|
382
|
+
readonly compression: Compression | undefined;
|
|
383
|
+
/** The host's store, if it has one. */
|
|
384
|
+
readonly store: ChordStore | undefined;
|
|
385
|
+
/**
|
|
386
|
+
* Remote references failed for a part past a link's limits: on no link's path (no reconnect holds them, no route
|
|
387
|
+
* resolves for them) until `ref.retry()` places them anew; ended at `close` like the others.
|
|
388
|
+
*/
|
|
389
|
+
readonly unplaced: Path;
|
|
390
|
+
/** The downstream origins this host relays holds for, by their number on upstream links (never reused). */
|
|
391
|
+
readonly relays: Map<number, ProviderSide>;
|
|
392
|
+
constructor(options: HostOptions<P>);
|
|
393
|
+
load(facets: readonly PluginFacet<P>[], context: Context): Promise<LoadReport>;
|
|
394
|
+
reload(facets: readonly PluginFacet<P>[], context: Context, options?: ReloadOptions): Promise<ReloadReport>;
|
|
395
|
+
get<C extends Contract>(Type: C, params: ParamsOf<C>, context: Context, options?: GetOptions): Promise<Reference<C>>;
|
|
396
|
+
hold<C extends Contract>(Type: C, params: ParamsOf<C>, context: Context, options?: GetOptions): Held<C>;
|
|
397
|
+
accept(link: Link, options: LinkOptions<P>, context: Context): void;
|
|
398
|
+
connect(link: Link, options: LinkOptions<P>, context: Context): void;
|
|
399
|
+
route<N extends string, Q extends Params>(Kind: HostKind<N, Q>, options: RouteOptions<P, HostKind<N, Q>>, context: Context): RouteHandle<HostKind<N, Q>>;
|
|
400
|
+
revoke(revocation: R, context: Context): void;
|
|
401
|
+
get activity(): Watchable<ActivityCounts>;
|
|
402
|
+
references<C extends Contract>(Type: C): Watchable<readonly Presence<C, P>[]>;
|
|
403
|
+
registry<C, V>(R: Registry<C, V>, context: Context, options?: GetOptions): Promise<RegistryValue<V>>;
|
|
404
|
+
root<T>(fn: (ctx: Ctx<P>) => Promise<T>, context: Context, options?: RootOptions<P>): Promise<T>;
|
|
405
|
+
/** The record of registry `name` on this host, made by its first use. */
|
|
406
|
+
registryRecord(name: string): RegistryRecord;
|
|
407
|
+
close(_context: Context): Promise<void>;
|
|
408
|
+
/**
|
|
409
|
+
* Whether the host published its setups (`load`'s batch): until then requests made here and holds arriving wait in
|
|
410
|
+
* the unbound index, placed by the publication.
|
|
411
|
+
*/
|
|
412
|
+
get published(): boolean;
|
|
413
|
+
/** `request` cannot bind yet: indexed under `name` (the type or registry it waits for) until woken or ended. */
|
|
414
|
+
index(name: string, request: UnboundRequest): void;
|
|
415
|
+
/**
|
|
416
|
+
* `binding`, whose object left it (its type removed, its version no longer bound: slice 7b §6), waits unbound with
|
|
417
|
+
* `cause` under its type's name; a publication places it again (`params` checked as it was, under `context`).
|
|
418
|
+
*/
|
|
419
|
+
rewait(binding: Binding, Type: Contract, params: CheckedParams, cause: FailureCause, context: Context): void;
|
|
420
|
+
/** `request` left the unbound index's wait for `name` (it ended, or a retry checks it again). */
|
|
421
|
+
unindex(name: string, request: UnboundRequest): void;
|
|
422
|
+
/** Whether the host closes: its objects end through `close`, not through its links. */
|
|
423
|
+
get closing(): boolean;
|
|
424
|
+
/**
|
|
425
|
+
* A reference to `Type` made by `caller` (its principal, its origin's incarnation), once it is live (`host.get`,
|
|
426
|
+
* `ctx.get`): a hold, waited for up to the getter's one deadline, across reconnects and through `loading`,
|
|
427
|
+
* `failed { transient }` and `failed { waiting }`; a broken failure rejects at once, the deadline with the last
|
|
428
|
+
* failure's error. A getter that gives up releases its reference.
|
|
429
|
+
*/
|
|
430
|
+
acquire(Type: Contract, params: unknown, caller: Caller, context: Context, options: GetOptions): Promise<Binding>;
|
|
431
|
+
/** Adds `delta` to the keep-alive count of `kind` (`host.activity`), where the work happens. */
|
|
432
|
+
count(kind: keyof ActivityCounts, delta: number): void;
|
|
433
|
+
/** `holder` references `object`: listed in its type's presence, if someone asked for it. */
|
|
434
|
+
referenced(object: ChordObject, holder: Holder, context: Context): void;
|
|
435
|
+
/** `holders` of `object` ended: gone from its type's presence. */
|
|
436
|
+
unreferenced(object: ChordObject, holders: Iterable<Holder>, context: Context): void;
|
|
437
|
+
/** Reports a background failure to `onError`; a throwing `onError` has nowhere left to report to. */
|
|
438
|
+
report(error: HostError): void;
|
|
439
|
+
/**
|
|
440
|
+
* An unbound reference to an object of `Type` made by `caller`, declared by `dependent` (`undefined` for
|
|
441
|
+
* `host.get`, `host.hold` and `ctx.get`).
|
|
442
|
+
*/
|
|
443
|
+
reference(Type: Contract, dependent: ChordObject | undefined, caller: Caller, options: GetOptions): Binding;
|
|
444
|
+
/**
|
|
445
|
+
* Binds `binding` to the object for (Type, params) as its principal where its host address puts it (`Destination`):
|
|
446
|
+
* the object here, created with its first attempt if there is none, or a remote object held over its path. Placed
|
|
447
|
+
* here, the check is only against the type served here: not served (or of the other kind) or not at the caller's
|
|
448
|
+
* version and fingerprint, the reference waits unbound, `failed { waiting }`, indexed under the type's name. Returns
|
|
449
|
+
* the object it bound to; throws as `Destination.reference` does (a broken refusal).
|
|
450
|
+
*/
|
|
451
|
+
bind(binding: Binding, Type: Contract, params: CheckedParams, context: Context): Target | undefined;
|
|
452
|
+
/** Where a hold arriving on `link` goes (`Destination.hold`: by the address it names); `released` once the host closed. */
|
|
453
|
+
place(request: HoldRequest, link: HostLink, caller: Caller, context: Context): Placed;
|
|
454
|
+
/**
|
|
455
|
+
* What a hold placed here binds to, acting as `principal`: the object, or why it waits unbound (`failed
|
|
456
|
+
* { waiting }`): a remote type not served here (`not_served`), not at the hold's version and fingerprint, or whose
|
|
457
|
+
* params put it on another host (code skew: `version`). Throws for a broken refusal: invalid params, an activation
|
|
458
|
+
* the hold's chain waits for (`invalid/cycle`, Q5). A new object keeps the hold's chain.
|
|
459
|
+
*/
|
|
460
|
+
serving(request: HoldRequest, params: unknown, principal: Principal, context: Context): Serving;
|
|
461
|
+
/**
|
|
462
|
+
* The path a remote reference of `Type` with `params` acting as `principal` goes over now: `ref.retry()` places a
|
|
463
|
+
* reference failed for a part past the limits anew (a route may have forgotten its old path). Throws as
|
|
464
|
+
* `Destination.reference` does, and `unavailable` for a type placed here now.
|
|
465
|
+
*/
|
|
466
|
+
pathOf(Type: Contract, params: ParamsOf<Contract>, principal: Principal | undefined): Path;
|
|
467
|
+
/**
|
|
468
|
+
* The `invalid/cycle` error of a cycle through `chain` (Q5): its entries from the activation `id` on, by label
|
|
469
|
+
* where the object is on this host ("…" for other hosts'), then `closing`.
|
|
470
|
+
*/
|
|
471
|
+
cycle(chain: readonly string[], id: string, closing: readonly string[]): ChordError;
|
|
472
|
+
/** A new origin number for `side`, which relays holds upstream; registered in `relays` until it closes. */
|
|
473
|
+
relayOrigin(side: ProviderSide): number;
|
|
474
|
+
/**
|
|
475
|
+
* A route's link, its work under the route's `context`: registered with the host and its heartbeat; one closed
|
|
476
|
+
* already is returned closed.
|
|
477
|
+
*/
|
|
478
|
+
routeLink(link: Link, options: LinkOptions<Principal>, context: Context): HostLink;
|
|
479
|
+
/** A link completed its handshake: a route's address resolves again once if it drops. */
|
|
480
|
+
linkOpened(link: HostLink): void;
|
|
481
|
+
/**
|
|
482
|
+
* Forgets a link once it closed: the origins relaying to it, then the parent's path or its route's address are
|
|
483
|
+
* told; the heartbeat may stop.
|
|
484
|
+
*/
|
|
485
|
+
unlink(link: HostLink): void;
|
|
486
|
+
/** Moves `object` behind every object that went live before it (close ends in reverse); its backoff is over. */
|
|
487
|
+
wentLive(object: ChordObject): void;
|
|
488
|
+
/** Drops an ended object (once, before a next instance of its identity exists). */
|
|
489
|
+
forget(object: ChordObject): void;
|
|
490
|
+
/** Records a teardown for `identity`: its next attempt waits for it and for every earlier one still running. */
|
|
491
|
+
ending(identity: string, teardown: Promise<void>): void;
|
|
492
|
+
/** What the next attempt for `identity` waits for: its previous instances' teardowns, if any still run. */
|
|
493
|
+
endingOf(identity: string): Promise<void> | undefined;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