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