@diffra-ai/chord 0.0.0-stage → 0.2.3
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 +237 -0
- package/README.md +227 -2
- package/dist/context/index.d.ts +43 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +112 -0
- package/dist/context/index.js.map +1 -0
- package/dist/contracts/accepts.d.ts +91 -0
- package/dist/contracts/accepts.d.ts.map +1 -0
- package/dist/contracts/accepts.js +145 -0
- package/dist/contracts/accepts.js.map +1 -0
- package/dist/contracts/contract.d.ts +238 -0
- package/dist/contracts/contract.d.ts.map +1 -0
- package/dist/contracts/contract.js +69 -0
- package/dist/contracts/contract.js.map +1 -0
- package/dist/contracts/declare.d.ts +144 -0
- package/dist/contracts/declare.d.ts.map +1 -0
- package/dist/contracts/declare.js +207 -0
- package/dist/contracts/declare.js.map +1 -0
- package/dist/contracts/evolve.d.ts +142 -0
- package/dist/contracts/evolve.d.ts.map +1 -0
- package/dist/contracts/evolve.js +216 -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 +61 -0
- package/dist/contracts/fingerprint.js.map +1 -0
- package/dist/contracts/history.d.ts +79 -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 +58 -0
- package/dist/contracts/host-kind.d.ts.map +1 -0
- package/dist/contracts/host-kind.js +122 -0
- package/dist/contracts/host-kind.js.map +1 -0
- package/dist/contracts/index.d.ts +8 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +7 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/contracts/internal.d.ts +12 -0
- package/dist/contracts/internal.d.ts.map +1 -0
- package/dist/contracts/internal.js +11 -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 +55 -0
- package/dist/contracts/params.js.map +1 -0
- package/dist/contracts/schema.d.ts +144 -0
- package/dist/contracts/schema.d.ts.map +1 -0
- package/dist/contracts/schema.js +144 -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 +31 -0
- package/dist/data/failure.d.ts.map +1 -0
- package/dist/data/failure.js +78 -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 +28 -0
- package/dist/data/principal.d.ts.map +1 -0
- package/dist/data/principal.js +64 -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.d.ts +4 -0
- package/dist/delta/apply-immutable-trusted.d.ts.map +1 -0
- package/dist/delta/apply-immutable-trusted.js +126 -0
- package/dist/delta/apply-immutable-trusted.js.map +1 -0
- package/dist/delta/diff.d.ts +5 -0
- package/dist/delta/diff.d.ts.map +1 -0
- package/dist/delta/diff.js +435 -0
- package/dist/delta/diff.js.map +1 -0
- package/dist/delta/draft.d.ts +5 -0
- package/dist/delta/draft.d.ts.map +1 -0
- package/dist/delta/draft.js +2 -0
- package/dist/delta/draft.js.map +1 -0
- package/dist/delta/index.d.ts +120 -0
- package/dist/delta/index.d.ts.map +1 -0
- package/dist/delta/index.js +697 -0
- package/dist/delta/index.js.map +1 -0
- 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/revision-validator.d.ts +7 -0
- package/dist/delta/revision-validator.d.ts.map +1 -0
- package/dist/delta/revision-validator.js +71 -0
- package/dist/delta/revision-validator.js.map +1 -0
- package/dist/delta/tracker.d.ts +38 -0
- package/dist/delta/tracker.d.ts.map +1 -0
- package/dist/delta/tracker.js +2175 -0
- package/dist/delta/tracker.js.map +1 -0
- 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 +92 -0
- package/dist/documents/definition.d.ts.map +1 -0
- package/dist/documents/definition.js +81 -0
- package/dist/documents/definition.js.map +1 -0
- package/dist/documents/documents.d.ts +129 -0
- package/dist/documents/documents.d.ts.map +1 -0
- package/dist/documents/documents.js +258 -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 +81 -0
- package/dist/documents/handles.d.ts.map +1 -0
- package/dist/documents/handles.js +74 -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 +139 -0
- package/dist/documents/keyed-slot.d.ts.map +1 -0
- package/dist/documents/keyed-slot.js +478 -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 +120 -0
- package/dist/documents/persistence.d.ts.map +1 -0
- package/dist/documents/persistence.js +156 -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 +112 -0
- package/dist/documents/slot.d.ts.map +1 -0
- package/dist/documents/slot.js +190 -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 +445 -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 +63 -0
- package/dist/host/adapted.d.ts.map +1 -0
- package/dist/host/adapted.js +298 -0
- package/dist/host/adapted.js.map +1 -0
- package/dist/host/admission.d.ts +137 -0
- package/dist/host/admission.d.ts.map +1 -0
- package/dist/host/admission.js +290 -0
- package/dist/host/admission.js.map +1 -0
- package/dist/host/attempt.d.ts +417 -0
- package/dist/host/attempt.d.ts.map +1 -0
- package/dist/host/attempt.js +1490 -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 +97 -0
- package/dist/host/dependencies.d.ts.map +1 -0
- package/dist/host/dependencies.js +148 -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/events.d.ts +114 -0
- package/dist/host/events.d.ts.map +1 -0
- package/dist/host/events.js +191 -0
- package/dist/host/events.js.map +1 -0
- package/dist/host/facet.d.ts +106 -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-data.d.ts +62 -0
- package/dist/host/host-data.d.ts.map +1 -0
- package/dist/host/host-data.js +229 -0
- package/dist/host/host-data.js.map +1 -0
- package/dist/host/host.d.ts +641 -0
- package/dist/host/host.d.ts.map +1 -0
- package/dist/host/host.js +1449 -0
- package/dist/host/host.js.map +1 -0
- package/dist/host/index.d.ts +20 -0
- package/dist/host/index.d.ts.map +1 -0
- package/dist/host/index.js +7 -0
- package/dist/host/index.js.map +1 -0
- package/dist/host/internal.d.ts +13 -0
- package/dist/host/internal.d.ts.map +1 -0
- package/dist/host/internal.js +11 -0
- package/dist/host/internal.js.map +1 -0
- package/dist/host/list.d.ts +52 -0
- package/dist/host/list.d.ts.map +1 -0
- package/dist/host/list.js +149 -0
- package/dist/host/list.js.map +1 -0
- package/dist/host/members.d.ts +58 -0
- package/dist/host/members.d.ts.map +1 -0
- package/dist/host/members.js +178 -0
- package/dist/host/members.js.map +1 -0
- package/dist/host/named-query.d.ts +67 -0
- package/dist/host/named-query.d.ts.map +1 -0
- package/dist/host/named-query.js +166 -0
- package/dist/host/named-query.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 +388 -0
- package/dist/host/object.d.ts.map +1 -0
- package/dist/host/object.js +1527 -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/query-reader.d.ts +80 -0
- package/dist/host/query-reader.d.ts.map +1 -0
- package/dist/host/query-reader.js +182 -0
- package/dist/host/query-reader.js.map +1 -0
- package/dist/host/read-declarations.d.ts +75 -0
- package/dist/host/read-declarations.d.ts.map +1 -0
- package/dist/host/read-declarations.js +152 -0
- package/dist/host/read-declarations.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-events.d.ts +51 -0
- package/dist/host/reference-events.d.ts.map +1 -0
- package/dist/host/reference-events.js +133 -0
- package/dist/host/reference-events.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 +77 -0
- package/dist/host/reference-source.d.ts.map +1 -0
- package/dist/host/reference-source.js +326 -0
- package/dist/host/reference-source.js.map +1 -0
- package/dist/host/reference.d.ts +377 -0
- package/dist/host/reference.d.ts.map +1 -0
- package/dist/host/reference.js +986 -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-admission.d.ts +24 -0
- package/dist/host/route-admission.d.ts.map +1 -0
- package/dist/host/route-admission.js +238 -0
- package/dist/host/route-admission.js.map +1 -0
- package/dist/host/route.d.ts +88 -0
- package/dist/host/route.d.ts.map +1 -0
- package/dist/host/route.js +247 -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 +100 -0
- package/dist/host/staging.d.ts.map +1 -0
- package/dist/host/staging.js +413 -0
- package/dist/host/staging.js.map +1 -0
- package/dist/host/tiling.d.ts +57 -0
- package/dist/host/tiling.d.ts.map +1 -0
- package/dist/host/tiling.js +269 -0
- package/dist/host/tiling.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 +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- 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/json.d.ts +18 -0
- package/dist/json.d.ts.map +1 -0
- package/dist/json.js +124 -0
- package/dist/json.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 +574 -0
- package/dist/link/binary.js.map +1 -0
- package/dist/link/channel.d.ts +78 -0
- package/dist/link/channel.d.ts.map +1 -0
- package/dist/link/channel.js +252 -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 +278 -0
- package/dist/link/message.d.ts.map +1 -0
- package/dist/link/message.js +179 -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 +383 -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 +283 -0
- package/dist/node/app/app.d.ts.map +1 -0
- package/dist/node/app/app.js +598 -0
- package/dist/node/app/app.js.map +1 -0
- package/dist/node/app/archive.d.ts +44 -0
- package/dist/node/app/archive.d.ts.map +1 -0
- package/dist/node/app/archive.js +212 -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 +40 -0
- package/dist/node/app/data.d.ts.map +1 -0
- package/dist/node/app/data.js +47 -0
- package/dist/node/app/data.js.map +1 -0
- package/dist/node/app/ephemeral-sign-ins.d.ts +20 -0
- package/dist/node/app/ephemeral-sign-ins.d.ts.map +1 -0
- package/dist/node/app/ephemeral-sign-ins.js +69 -0
- package/dist/node/app/ephemeral-sign-ins.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 +388 -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 +70 -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/sign-ins.d.ts +74 -0
- package/dist/node/app/sign-ins.d.ts.map +1 -0
- package/dist/node/app/sign-ins.js +222 -0
- package/dist/node/app/sign-ins.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 +39 -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 +64 -0
- package/dist/node/http/admission.d.ts.map +1 -0
- package/dist/node/http/admission.js +137 -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 +114 -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 +62 -0
- package/dist/node/http/upgrades.d.ts.map +1 -0
- package/dist/node/http/upgrades.js +194 -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 +577 -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 +40 -0
- package/dist/node/plugins/install.d.ts.map +1 -0
- package/dist/node/plugins/install.js +215 -0
- package/dist/node/plugins/install.js.map +1 -0
- package/dist/node/plugins/plugins.d.ts +165 -0
- package/dist/node/plugins/plugins.d.ts.map +1 -0
- package/dist/node/plugins/plugins.js +268 -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 +70 -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 +40 -0
- package/dist/node/surfaces/bundle.d.ts.map +1 -0
- package/dist/node/surfaces/bundle.js +121 -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 +17 -0
- package/dist/node/surfaces/served.d.ts.map +1 -0
- package/dist/node/surfaces/served.js +44 -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 +42 -0
- package/dist/node/surfaces/tui.d.ts.map +1 -0
- package/dist/node/surfaces/tui.js +59 -0
- package/dist/node/surfaces/tui.js.map +1 -0
- package/dist/node/surfaces/web.d.ts +82 -0
- package/dist/node/surfaces/web.d.ts.map +1 -0
- package/dist/node/surfaces/web.js +122 -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 +260 -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 +43 -0
- package/dist/node/workers/process.d.ts.map +1 -0
- package/dist/node/workers/process.js +137 -0
- package/dist/node/workers/process.js.map +1 -0
- package/dist/node/workers/workers.d.ts +144 -0
- package/dist/node/workers/workers.d.ts.map +1 -0
- package/dist/node/workers/workers.js +723 -0
- package/dist/node/workers/workers.js.map +1 -0
- package/dist/output.d.ts +91 -0
- package/dist/output.d.ts.map +1 -0
- package/dist/output.js +362 -0
- package/dist/output.js.map +1 -0
- package/dist/react/hooks.d.ts +61 -0
- package/dist/react/hooks.d.ts.map +1 -0
- package/dist/react/hooks.js +119 -0
- package/dist/react/hooks.js.map +1 -0
- package/dist/react/index.d.ts +4 -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 +34 -0
- package/dist/remote/calls.d.ts.map +1 -0
- package/dist/remote/calls.js +75 -0
- package/dist/remote/calls.js.map +1 -0
- package/dist/remote/consumer.d.ts +59 -0
- package/dist/remote/consumer.d.ts.map +1 -0
- package/dist/remote/consumer.js +468 -0
- package/dist/remote/consumer.js.map +1 -0
- package/dist/remote/hold.d.ts +147 -0
- package/dist/remote/hold.d.ts.map +1 -0
- package/dist/remote/hold.js +653 -0
- package/dist/remote/hold.js.map +1 -0
- package/dist/remote/host-link.d.ts +81 -0
- package/dist/remote/host-link.d.ts.map +1 -0
- package/dist/remote/host-link.js +198 -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 +105 -0
- package/dist/remote/path.d.ts.map +1 -0
- package/dist/remote/path.js +197 -0
- package/dist/remote/path.js.map +1 -0
- package/dist/remote/provider.d.ts +113 -0
- package/dist/remote/provider.d.ts.map +1 -0
- package/dist/remote/provider.js +787 -0
- package/dist/remote/provider.js.map +1 -0
- package/dist/remote/relay.d.ts +126 -0
- package/dist/remote/relay.d.ts.map +1 -0
- package/dist/remote/relay.js +334 -0
- package/dist/remote/relay.js.map +1 -0
- package/dist/remote/remote-object.d.ts +181 -0
- package/dist/remote/remote-object.d.ts.map +1 -0
- package/dist/remote/remote-object.js +683 -0
- package/dist/remote/remote-object.js.map +1 -0
- package/dist/remote/replica.d.ts +66 -0
- package/dist/remote/replica.d.ts.map +1 -0
- package/dist/remote/replica.js +148 -0
- package/dist/remote/replica.js.map +1 -0
- package/dist/sqlite/cloudflare.d.ts +54 -0
- package/dist/sqlite/cloudflare.d.ts.map +1 -0
- package/dist/sqlite/cloudflare.js +144 -0
- package/dist/sqlite/cloudflare.js.map +1 -0
- package/dist/sqlite/database.d.ts +40 -0
- package/dist/sqlite/database.d.ts.map +1 -0
- package/dist/sqlite/database.js +2 -0
- package/dist/sqlite/database.js.map +1 -0
- package/dist/sqlite/index.d.ts +4 -0
- package/dist/sqlite/index.d.ts.map +1 -0
- package/dist/sqlite/index.js +3 -0
- package/dist/sqlite/index.js.map +1 -0
- package/dist/sqlite/migrations.d.ts +10 -0
- package/dist/sqlite/migrations.d.ts.map +1 -0
- package/dist/sqlite/migrations.js +33 -0
- package/dist/sqlite/migrations.js.map +1 -0
- package/dist/sqlite/node.d.ts +49 -0
- package/dist/sqlite/node.d.ts.map +1 -0
- package/dist/sqlite/node.js +197 -0
- package/dist/sqlite/node.js.map +1 -0
- package/dist/sqlite/schema.d.ts +3 -0
- package/dist/sqlite/schema.d.ts.map +1 -0
- package/dist/sqlite/schema.js +10 -0
- package/dist/sqlite/schema.js.map +1 -0
- 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 +56 -0
- package/dist/state/derive.d.ts.map +1 -0
- package/dist/state/derive.js +192 -0
- package/dist/state/derive.js.map +1 -0
- package/dist/state/framed.d.ts +43 -0
- package/dist/state/framed.d.ts.map +1 -0
- package/dist/state/framed.js +121 -0
- package/dist/state/framed.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 +7 -0
- package/dist/state/internal.d.ts.map +1 -0
- package/dist/state/internal.js +9 -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 +390 -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 +36 -0
- package/dist/store/archive.d.ts.map +1 -0
- package/dist/store/archive.js +140 -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/column-set.d.ts +64 -0
- package/dist/store/column-set.d.ts.map +1 -0
- package/dist/store/column-set.js +96 -0
- package/dist/store/column-set.js.map +1 -0
- package/dist/store/columns.d.ts +93 -0
- package/dist/store/columns.d.ts.map +1 -0
- package/dist/store/columns.js +87 -0
- package/dist/store/columns.js.map +1 -0
- package/dist/store/engine.d.ts +182 -0
- package/dist/store/engine.d.ts.map +1 -0
- package/dist/store/engine.js +290 -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 +131 -0
- package/dist/store/evaluate.js.map +1 -0
- package/dist/store/export.d.ts +30 -0
- package/dist/store/export.d.ts.map +1 -0
- package/dist/store/export.js +221 -0
- package/dist/store/export.js.map +1 -0
- package/dist/store/expression.d.ts +254 -0
- package/dist/store/expression.d.ts.map +1 -0
- package/dist/store/expression.js +577 -0
- package/dist/store/expression.js.map +1 -0
- package/dist/store/host-column.d.ts +22 -0
- package/dist/store/host-column.d.ts.map +1 -0
- package/dist/store/host-column.js +36 -0
- package/dist/store/host-column.js.map +1 -0
- package/dist/store/host-data.d.ts +100 -0
- package/dist/store/host-data.d.ts.map +1 -0
- package/dist/store/host-data.js +397 -0
- package/dist/store/host-data.js.map +1 -0
- package/dist/store/import-migration.d.ts +19 -0
- package/dist/store/import-migration.d.ts.map +1 -0
- package/dist/store/import-migration.js +124 -0
- package/dist/store/import-migration.js.map +1 -0
- package/dist/store/import.d.ts +12 -0
- package/dist/store/import.d.ts.map +1 -0
- package/dist/store/import.js +279 -0
- package/dist/store/import.js.map +1 -0
- package/dist/store/index.d.ts +19 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +16 -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 +72 -0
- package/dist/store/live-query.d.ts.map +1 -0
- package/dist/store/live-query.js +162 -0
- package/dist/store/live-query.js.map +1 -0
- package/dist/store/open-query.d.ts +90 -0
- package/dist/store/open-query.d.ts.map +1 -0
- package/dist/store/open-query.js +201 -0
- package/dist/store/open-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/page.d.ts +14 -0
- package/dist/store/page.d.ts.map +1 -0
- package/dist/store/page.js +26 -0
- package/dist/store/page.js.map +1 -0
- package/dist/store/query.d.ts +65 -0
- package/dist/store/query.d.ts.map +1 -0
- package/dist/store/query.js +193 -0
- package/dist/store/query.js.map +1 -0
- package/dist/store/read-plan.d.ts +74 -0
- package/dist/store/read-plan.d.ts.map +1 -0
- package/dist/store/read-plan.js +324 -0
- package/dist/store/read-plan.js.map +1 -0
- package/dist/store/read.d.ts +81 -0
- package/dist/store/read.d.ts.map +1 -0
- package/dist/store/read.js +113 -0
- package/dist/store/read.js.map +1 -0
- package/dist/store/reads.d.ts +79 -0
- package/dist/store/reads.d.ts.map +1 -0
- package/dist/store/reads.js +255 -0
- package/dist/store/reads.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 +96 -0
- package/dist/store/rows.d.ts.map +1 -0
- package/dist/store/rows.js +222 -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 +123 -0
- package/dist/store/schema.js.map +1 -0
- package/dist/store/skip.d.ts +26 -0
- package/dist/store/skip.d.ts.map +1 -0
- package/dist/store/skip.js +66 -0
- package/dist/store/skip.js.map +1 -0
- package/dist/store/sql.d.ts +78 -0
- package/dist/store/sql.d.ts.map +1 -0
- package/dist/store/sql.js +244 -0
- package/dist/store/sql.js.map +1 -0
- package/dist/store/step.d.ts +52 -0
- package/dist/store/step.d.ts.map +1 -0
- package/dist/store/step.js +59 -0
- package/dist/store/step.js.map +1 -0
- package/dist/store/store.d.ts +192 -0
- package/dist/store/store.d.ts.map +1 -0
- package/dist/store/store.js +863 -0
- package/dist/store/store.js.map +1 -0
- package/dist/store/table-changes.d.ts +35 -0
- package/dist/store/table-changes.d.ts.map +1 -0
- package/dist/store/table-changes.js +127 -0
- package/dist/store/table-changes.js.map +1 -0
- package/dist/store/table-evolve.d.ts +82 -0
- package/dist/store/table-evolve.d.ts.map +1 -0
- package/dist/store/table-evolve.js +208 -0
- package/dist/store/table-evolve.js.map +1 -0
- package/dist/store/table-handle.d.ts +69 -0
- package/dist/store/table-handle.d.ts.map +1 -0
- package/dist/store/table-handle.js +92 -0
- package/dist/store/table-handle.js.map +1 -0
- package/dist/store/table-history.d.ts +78 -0
- package/dist/store/table-history.d.ts.map +1 -0
- package/dist/store/table-history.js +43 -0
- package/dist/store/table-history.js.map +1 -0
- package/dist/store/table-migration.d.ts +28 -0
- package/dist/store/table-migration.d.ts.map +1 -0
- package/dist/store/table-migration.js +212 -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 +91 -0
- package/dist/store/table.d.ts.map +1 -0
- package/dist/store/table.js +133 -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 +106 -0
- package/dist/surfaces/client.d.ts.map +1 -0
- package/dist/surfaces/client.js +280 -0
- package/dist/surfaces/client.js.map +1 -0
- package/dist/surfaces/connection.d.ts +53 -0
- package/dist/surfaces/connection.d.ts.map +1 -0
- package/dist/surfaces/connection.js +161 -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 +26 -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 +33 -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 +86 -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 +32 -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/surfaces/variant.d.ts +23 -0
- package/dist/surfaces/variant.d.ts.map +1 -0
- package/dist/surfaces/variant.js +18 -0
- package/dist/surfaces/variant.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 +169 -0
- package/dist/sync/client.d.ts.map +1 -0
- package/dist/sync/client.js +459 -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 +205 -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 +145 -0
- package/dist/sync/remote.d.ts.map +1 -0
- package/dist/sync/remote.js +59 -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 +73 -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 +26 -0
- package/dist/telemetry-ingest/facet.d.ts.map +1 -0
- package/dist/telemetry-ingest/facet.js +100 -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 +33 -0
- package/dist/telemetry-sqlite/index.d.ts.map +1 -0
- package/dist/telemetry-sqlite/index.js +113 -0
- package/dist/telemetry-sqlite/index.js.map +1 -0
- 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 +12 -0
- package/dist/telemetry-sqlite/store.d.ts.map +1 -0
- package/dist/telemetry-sqlite/store.js +121 -0
- package/dist/telemetry-sqlite/store.js.map +1 -0
- package/dist/telemetry.d.ts +1013 -0
- package/dist/telemetry.d.ts.map +1 -0
- package/dist/telemetry.js +518 -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 +8 -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 +62 -0
- package/dist/tui/scope.d.ts.map +1 -0
- package/dist/tui/scope.js +173 -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 +42 -0
- package/dist/web/page.d.ts.map +1 -0
- package/dist/web/page.js +96 -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/admission/design.md +178 -0
- package/docs/benchmarks.md +1182 -0
- package/docs/decisions.md +3760 -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 +3691 -0
- package/docs/durable-observers/book.md +432 -0
- package/docs/durable-observers/index.html +517 -0
- package/docs/events/spec.md +438 -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 +958 -0
- package/docs/guide-plugins-hosts/index.html +952 -0
- package/docs/host-keyed/spec.md +343 -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 +389 -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/shared-holds/design.md +339 -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-14-design.md +213 -0
- package/docs/slice-14.md +861 -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 +380 -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 +2170 -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 +200 -5
- package/src/delta/README.md +262 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relay.js","sourceRoot":"","sources":["../../src/remote/relay.ts"],"names":[],"mappings":"AAAA,sHAAsH;AACtH,oHAAoH;AACpH,+GAA+G;AAC/G,oHAAoH;AACpH,sBAAsB;AAGtB,OAAO,EAAE,UAAU,EAAqB,MAAM,kBAAkB,CAAC;A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I,KAAK,QAAQ;YACxB,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC;IAC7E,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IACrC,IAAI,CAAC,GAAG,EAAE,CAAC;AACZ,CAAC;AAED,gHAAgH;AAChH,SAAS,QAAQ,CAAC,OAAoB;IACrC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;IACvC,OAAO,IAAI,CAAC;AACb,CAAC","sourcesContent":["// Relayed holds (§4, §22, R1; decision \"Relay flow control per origin\"): a hold that arrived on one link (downstream)\n// and that this host neither serves nor parses, held again on its path's link (upstream) with the same id under its\n// downstream origin's number there; messages are forwarded between the two with the origin rewritten and parts\n// untouched. Forwarding a hold or a call is a `chord.relay` span under the arriving carrier, whose own carrier goes\n// upstream (slice 9).\n\nimport type { TelemetryCarrier, TelemetrySpan } from \"@diffra-ai/telemetry\";\nimport { ChordError, type FailureCause } from \"../data/index.ts\";\nimport { type Caller, revoked } from \"../host/internal.ts\";\nimport { errorFromWire, type Message, type OriginMessage, wireError } from \"../link/internal.ts\";\nimport { capped, carrierOf, ended, OpenSpan, parentOf, spanFailed, untraced } from \"../telemetry.ts\";\nimport type { CallWindow } from \"./calls.ts\";\nimport { actingFor, type HoldRequest } from \"./hold.ts\";\nimport type { HostLink } from \"./host-link.ts\";\nimport type { Path } from \"./path.ts\";\nimport type { ProviderSide } from \"./provider.ts\";\n\n/** A `call` message. */\ntype CallMessage = Extract<Message, { readonly kind: \"call\" }>;\n\n/**\n * Where a relayed call stands: registered (`new`, answered at once when its hold has no upstream link), waiting in its\n * upstream link's window for its origin (`queued`), forwarded upstream (`forwarded`, its `chord.relay` span when this\n * host records), or `ended` (answered, aborted, its hold or origin gone).\n */\ntype RelayedCallState =\n\t| { readonly kind: \"new\" }\n\t| { readonly kind: \"queued\"; readonly window: CallWindow<RelayedCall> }\n\t| {\n\t\t\treadonly kind: \"forwarded\";\n\t\t\treadonly window: CallWindow<RelayedCall>;\n\t\t\treadonly span: OpenSpan<\"chord.relay\"> | undefined;\n\t }\n\t| { readonly kind: \"ended\" };\n\nconst NEW: RelayedCallState = { kind: \"new\" };\n\nconst ENDED: RelayedCallState = { kind: \"ended\" };\n\n/**\n * A downstream call on a relayed hold, as its downstream origin keeps it (decision \"Call windows only for untrusted\n * links\": a relay honours each upstream window): queued in its upstream link's window for the origin until a slot\n * forwards it (`send`), then in flight until its reply, its abort, its hold's end or the upstream's drop.\n */\nexport class RelayedCall {\n\treadonly kind = \"relayed\";\n\treadonly hold: RelayedHold;\n\treadonly message: CallMessage;\n\t#state: RelayedCallState = NEW;\n\n\tconstructor(hold: RelayedHold, message: CallMessage) {\n\t\tthis.hold = hold;\n\t\tthis.message = message;\n\t}\n\n\t/** Whether it was forwarded upstream and is not answered yet. */\n\tget forwarded(): boolean {\n\t\treturn this.#state.kind === \"forwarded\";\n\t}\n\n\t/** Waits in `window` (its hold's upstream link's, for its origin), forwarded at once when a slot is free. */\n\tqueue(window: CallWindow<RelayedCall>): void {\n\t\tthis.#state = { kind: \"queued\", window };\n\t\twindow.submit(this);\n\t}\n\n\t/** Its window has a slot for it: forwarded upstream. */\n\tsend(): void {\n\t\t// A window sends only the calls queued in it.\n\t\tconst { window } = this.#state as Extract<RelayedCallState, { readonly kind: \"queued\" }>;\n\t\tthis.#state = { kind: \"forwarded\", window, span: this.hold.call(this.message) };\n\t}\n\n\t/** Takes it out of its window when it still waits there (ended unsent); whether it did. */\n\tunqueue(): boolean {\n\t\tconst state = this.#state;\n\t\tif (state.kind !== \"queued\") return false;\n\t\tthis.#state = ENDED;\n\t\tstate.window.remove(this);\n\t\treturn true;\n\t}\n\n\t/**\n\t * Ends it: a waiting one leaves its window, a forwarded one frees its slot (which may forward the next waiting call)\n\t * and its span ends with `reply` (none: `aborted`).\n\t */\n\tend(reply?: Extract<OriginMessage, { readonly kind: \"result\" | \"error\" }>): void {\n\t\tconst state = this.#state;\n\t\tthis.#state = ENDED;\n\t\tif (state.kind === \"queued\") state.window.remove(this);\n\t\tif (state.kind !== \"forwarded\") return;\n\t\tif (state.span !== undefined) relayEnded(state.span, reply);\n\t\tstate.window.freed();\n\t}\n}\n\n/**\n * Ends `calls` (of one hold or origin): the waiting ones leave their windows first, so a slot a forwarded one frees\n * never forwards one of them.\n */\nexport function endAll(calls: readonly RelayedCall[]): void {\n\tfor (const call of calls) call.unqueue();\n\tfor (const call of calls) call.end();\n}\n\n/**\n * One relayed hold: `id` on its downstream origin, and the same id upstream on its path's current link (none while\n * the path has no link). It keeps its `hold` message to hold again on the next link. Calls, `abort`, `retry` and\n * `release` go upstream at once; what comes back is forwarded by its downstream origin (`ProviderSide.forward`). Two\n * downstream holds are two upstream holds, each with its own encoders (R1).\n */\nexport class RelayedHold {\n\treadonly kind = \"relayed\";\n\treadonly id: number;\n\treadonly #downstream: ProviderSide;\n\t/**\n\t * What the upstream hold asks for, with the chain and decoded limit this host honoured; its params owned, not a view\n\t * of the message they came in.\n\t */\n\treadonly #request: HoldRequest;\n\t/** Whom the hold acts for, sent on route links. */\n\treadonly caller: Caller;\n\treadonly #path: Path;\n\t/** The upstream link while the path has one, and the downstream origin's number on it. */\n\t#upstream: { readonly link: HostLink; readonly origin: number } | undefined;\n\t/** Its `chord.relay` span until it is first held upstream (or dropped); none when this host records nothing. */\n\t#relaying: OpenSpan<\"chord.relay\"> | undefined;\n\t/**\n\t * The carrier of its first upstream hold: the relay span's, or the arriving one as it came when this host records\n\t * nothing; a re-hold's span links to it.\n\t */\n\treadonly #trace: TelemetryCarrier | undefined;\n\t/** How many times it was held upstream. */\n\t#holds = 0;\n\t/** What its downstream was told holds it back (`withheld`), until it is told that it is admitted again. */\n\t#heldBack: FailureCause | undefined;\n\n\tconstructor(id: number, downstream: ProviderSide, request: HoldRequest, caller: Caller, path: Path) {\n\t\tthis.id = id;\n\t\tthis.#downstream = downstream;\n\t\tconst { params, trace, ...fields } = request;\n\t\t// Params are never deflated: the provider side refused deflated ones.\n\t\tconst owned = typeof params === \"string\" ? params : (params as Uint8Array).slice();\n\t\tthis.#request = { ...fields, params: owned };\n\t\tthis.#trace = trace;\n\t\tconst adapter = downstream.link.host.telemetry;\n\t\tif (!untraced(adapter)) {\n\t\t\tthis.#relaying = new OpenSpan(parentOf(trace, adapter), \"chord.relay\", this.#attributes(\"hold\"));\n\t\t\t// Upstream the hold carries the relay's span (a relay that records nothing passes the carrier on as it came).\n\t\t\tthis.#trace = carrierOf(this.#relaying.span) ?? trace;\n\t\t}\n\t\tthis.caller = caller;\n\t\tthis.#path = path;\n\t}\n\n\t/** Its `chord.relay` span until it is held upstream (a route's resolve links to it); none when not recorded. */\n\tget span(): TelemetrySpan | undefined {\n\t\treturn this.#relaying?.span;\n\t}\n\n\t/** Takes the pending hold's place downstream and holds upstream (now, or when the path has a link). */\n\tstart(): void {\n\t\tthis.#downstream.relayed(this);\n\t\tthis.#path.attach(this);\n\t}\n\n\t/** Whether it is held on `link` now: only that link answers for it. */\n\theldOn(link: HostLink): boolean {\n\t\treturn this.#upstream?.link === link;\n\t}\n\n\t/** Holds on `link`, the path's link now: its kept `hold` message, with whom it acts for on a route link. */\n\tattach(link: HostLink): void {\n\t\tconst origin = this.#downstream.relayTo(link);\n\t\tthis.#upstream = { link, origin };\n\t\tconst trace = this.#holdTrace(link);\n\t\tlink.send({\n\t\t\tkind: \"hold\",\n\t\t\torigin,\n\t\t\thold: this.id,\n\t\t\t...this.#request,\n\t\t\t...(trace === undefined ? {} : { trace }),\n\t\t\t...actingFor(link, this.caller),\n\t\t});\n\t\tthis.#relayed(\"ok\");\n\t}\n\n\t/**\n\t * The carrier of this upstream hold: the first one's; a re-hold after an upstream drop is a fresh `chord.relay` root\n\t * linked to the first (none when this host records nothing), never the first's again (review L1).\n\t */\n\t#holdTrace(link: HostLink): TelemetryCarrier | undefined {\n\t\tif (this.#holds++ === 0) return this.#trace;\n\t\tconst adapter = link.host.telemetry;\n\t\tif (this.#trace === undefined || untraced(adapter)) return undefined;\n\t\tconst again = new OpenSpan(adapter, \"chord.relay\", this.#attributes(\"hold\"));\n\t\tagain.span.addLink({ context: parentOf(this.#trace, adapter) });\n\t\tconst carrier = carrierOf(again.span);\n\t\tagain.span.setAttributes({ outcome: \"ok\" });\n\t\tagain.end();\n\t\treturn carrier;\n\t}\n\n\t/**\n\t * A relay span's attributes: its host's `chord.host` (the downstream link's host), and names from the wire, bounded\n\t * by the message schema (untrusted links) and capped here.\n\t */\n\t#attributes(member: string): { \"chord.host\": string; type: string; member: string; \"upstream.kind\": string } {\n\t\tconst { type, address } = this.#request;\n\t\treturn {\n\t\t\t\"chord.host\": this.#downstream.link.host.spanHost,\n\t\t\ttype: capped(type),\n\t\t\tmember,\n\t\t\t\"upstream.kind\": capped(address.kind),\n\t\t};\n\t}\n\n\t/** The upstream link dropped: downstream its calls fail and the hold goes loading until the path's next link. */\n\tdropped(error: ChordError): void {\n\t\tconst upstream = this.#upstream;\n\t\tthis.#upstream = undefined;\n\t\tif (upstream !== undefined) this.#downstream.upstreamDropped(this, error);\n\t}\n\n\t/** Its path's address cannot be reached for now: downstream it fails `waiting` with `error` until the next link. */\n\tunreachable(error: ChordError): void {\n\t\tthis.#relayed(\"error\", error);\n\t\tthis.#downstream.send({ kind: \"failed\", hold: this.id, cause: { kind: \"waiting\", error: wireError(error) } });\n\t}\n\n\t/**\n\t * Its route's admission holds it back with `cause` (slice 14 §2.3): released upstream when it is held there (what\n\t * still arrives for it from that link is dropped: a link answers only for what is relayed over it); downstream its\n\t * calls, in flight and waiting, are rejected and it is told `failed` with the cause. It stays on its path: an allow\n\t * holds it again, under its id.\n\t */\n\twithheld(cause: FailureCause): void {\n\t\tconst upstream = this.#upstream;\n\t\tthis.#upstream = undefined;\n\t\tupstream?.link.send({ kind: \"release\", origin: upstream.origin, hold: this.id });\n\t\tthis.#relayed(\"error\", cause.error);\n\t\tthis.#heldBack = cause;\n\t\tthis.#downstream.withheld(this, cause);\n\t}\n\n\t/**\n\t * Its route's admission allows it: a hold that was told what held it back is `loading` downstream from here on,\n\t * through the fence and its host's start, until its next `bound` (the caller has access again: it is not shown\n\t * \"no access\" meanwhile). A hold never told anything is loading already.\n\t */\n\tadmitted(): void {\n\t\tif (this.#heldBack === undefined) return;\n\t\tthis.#heldBack = undefined;\n\t\tthis.#downstream.send({ kind: \"loading\", hold: this.id });\n\t}\n\n\t/**\n\t * Whether it waits for its path's link (a route still resolving, or a dropped link's next): a revocation ends it then,\n\t * since the link it is held on next gets no past `revoke` (§4).\n\t */\n\tget waiting(): boolean {\n\t\treturn this.#upstream === undefined;\n\t}\n\n\t/** Revoked while it waited for its path's link: forgotten, and `gone` with `error` downstream. */\n\trevoked(error: ChordError): void {\n\t\tthis.drop();\n\t\tthis.#downstream.forget(this);\n\t\tthis.#downstream.send({ kind: \"gone\", hold: this.id, error: wireError(error) });\n\t}\n\n\t/** `gone` from upstream: the hold is forgotten (the downstream origin forwards the message). */\n\tlost(): void {\n\t\tthis.drop();\n\t\tthis.#downstream.forget(this);\n\t}\n\n\t/**\n\t * A call from downstream (registered there under its id): it waits in its upstream link's window for this origin\n\t * and is forwarded (`call`) as a slot frees, at once when one is free and nothing waits (a trusted upstream announced\n\t * no window); its reply comes back by the origin. Without an upstream link it is answered at once: `unavailable`\n\t * (it crossed the `loading` notice), or, held back by its route's admission, what held it back (it crossed that\n\t * `failed`: `forbidden/revoked` for a denial, access withdrawn under a call already made).\n\t */\n\tsubmit(call: RelayedCall): void {\n\t\tconst upstream = this.#upstream;\n\t\tif (upstream === undefined) {\n\t\t\tconst error = this.#unreached();\n\t\t\tthis.#downstream.reply(call.message.call, { kind: \"error\", call: call.message.call, error: wireError(error) });\n\t\t\treturn;\n\t\t}\n\t\tcall.queue(upstream.link.consumer.relayWindow(upstream.origin));\n\t}\n\n\t/** What a call that finds it on no upstream link is answered. */\n\t#unreached(): ChordError {\n\t\tconst cause = this.#heldBack;\n\t\tconst label = `hold ${this.id}`;\n\t\tif (cause === undefined)\n\t\t\treturn new ChordError({ code: \"unavailable\", message: `${label}: its upstream link is down` });\n\t\treturn cause.kind === \"denied\" ? revoked(label, cause.error) : cause.error;\n\t}\n\n\t/**\n\t * Forwards a submitted call upstream, now that its window has a slot; returns its `chord.relay` span when this host\n\t * records.\n\t */\n\tcall(message: CallMessage): OpenSpan<\"chord.relay\"> | undefined {\n\t\t// A call waits only in its hold's current upstream window: the drop answers it first (`upstreamDropped`), a\n\t\t// release forgets it.\n\t\tconst upstream = this.#upstream!;\n\t\t// A downstream link that is not trusted (a page) cannot claim old work: its flag is dropped here.\n\t\tconst forwarded = message.old === true && !this.#downstream.link.trusted ? unmarked(message) : message;\n\t\tconst adapter = upstream.link.host.telemetry;\n\t\tif (untraced(adapter)) {\n\t\t\tupstream.link.send({ ...forwarded, origin: upstream.origin });\n\t\t\treturn undefined;\n\t\t}\n\t\tconst span = new OpenSpan(\n\t\t\tparentOf(message.trace, adapter),\n\t\t\t\"chord.relay\",\n\t\t\tthis.#attributes(`#${message.method}`),\n\t\t);\n\t\tconst trace = carrierOf(span.span) ?? message.trace;\n\t\tupstream.link.send({ ...forwarded, origin: upstream.origin, ...(trace === undefined ? {} : { trace }) });\n\t\treturn span;\n\t}\n\n\t/** A downstream `abort` of call `id`, forwarded. */\n\tabort(id: number): void {\n\t\tconst upstream = this.#upstream;\n\t\tupstream?.link.send({ kind: \"abort\", origin: upstream.origin, call: id });\n\t}\n\n\t/** A downstream `retry`, forwarded with its hop budget as it is (a relay visits no object). */\n\tretry(message: Extract<Message, { readonly kind: \"retry\" }>): void {\n\t\tconst upstream = this.#upstream;\n\t\tupstream?.link.send({ ...message, origin: upstream.origin });\n\t}\n\n\t/** Released downstream: released upstream (its calls with it) and no later link holds it. */\n\trelease(): void {\n\t\tconst upstream = this.#upstream;\n\t\tthis.drop();\n\t\tupstream?.link.send({ kind: \"release\", origin: upstream.origin, hold: this.id });\n\t}\n\n\t/** No later link holds it (gone, or its downstream origin closed, which `closed` tells the upstream links). */\n\tdrop(): void {\n\t\tthis.#relayed(\"aborted\");\n\t\tthis.#upstream = undefined;\n\t\tthis.#path.detach(this);\n\t}\n\n\t/** It was held upstream, failed or dropped first: its `chord.relay` span ends with `outcome`. */\n\t#relayed(outcome: \"ok\" | \"error\" | \"aborted\", error?: ChordError): void {\n\t\tconst relaying = this.#relaying;\n\t\tif (relaying === undefined) return;\n\t\tthis.#relaying = undefined;\n\t\tif (error !== undefined) spanFailed(relaying.span, \"relay_failed\", error);\n\t\trelaying.span.setAttributes({ outcome });\n\t\trelaying.end();\n\t}\n}\n\n/**\n * A relayed call's `chord.relay` span ends with its `reply` forwarded downstream (`ok`, or the error's: `aborted` for\n * a cancel), or `aborted` without one (an abort, a release, a closed link).\n */\nexport function relayEnded(\n\tspan: OpenSpan<\"chord.relay\">,\n\treply: Extract<OriginMessage, { readonly kind: \"result\" | \"error\" }> | undefined,\n): void {\n\tconst outcome =\n\t\treply === undefined\n\t\t\t? \"aborted\"\n\t\t\t: reply.kind === \"result\"\n\t\t\t\t? \"ok\"\n\t\t\t\t: ended(span.span, \"relay_failed\", errorFromWire(reply.error), undefined);\n\tspan.span.setAttributes({ outcome });\n\tspan.end();\n}\n\n/** `message` without its old-work flag (`call.old`), as a relay forwards it from a link that is not trusted. */\nfunction unmarked(message: CallMessage): CallMessage {\n\tconst { old: _old, ...rest } = message;\n\treturn rest;\n}\n"]}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { TelemetryContext, TelemetrySpan } from "@diffra-ai/telemetry";
|
|
2
|
+
import { type Context } from "../context/index.ts";
|
|
3
|
+
import type { Contract } from "../contracts/index.ts";
|
|
4
|
+
import { ChordError, type FailureCause } from "../data/index.ts";
|
|
5
|
+
import { type AnyHost, type Attachable, type Binding, type Caller, type CheckedParams, type ChordObject, EventNode, type Followed, type PinnedKey, type RefState, type RetryWalk, type Target } from "../host/internal.ts";
|
|
6
|
+
import { type BoundEntry, type Message, type Part, type StateEntry, type WireAddress } from "../link/internal.ts";
|
|
7
|
+
import type { DeriveSource } from "../state/internal.ts";
|
|
8
|
+
import type { HoldRequest } from "./hold.ts";
|
|
9
|
+
import type { HostLink } from "./host-link.ts";
|
|
10
|
+
import type { Path } from "./path.ts";
|
|
11
|
+
/**
|
|
12
|
+
* The object of the remote references with one sharing key, owned by its host across the links of its path (one held
|
|
13
|
+
* by a `self.get` reference or a private retry is its reference's alone). It is `loading` until a link's hold of it is
|
|
14
|
+
* bound, and again whenever that link drops or its relay's upstream starts over; each link holds it once, with its own
|
|
15
|
+
* id, each member with its own Delta decoder. It tells every binding of each change; the hold ends with the last.
|
|
16
|
+
*/
|
|
17
|
+
export declare class RemoteObject implements Target {
|
|
18
|
+
#private;
|
|
19
|
+
readonly kind = "remote";
|
|
20
|
+
/** The object in errors: its type, and its params key when it has params. */
|
|
21
|
+
readonly label: string;
|
|
22
|
+
readonly contract: Contract;
|
|
23
|
+
/** What its holds ask for: the params as a part (checked by L1 when the reference was made), the address. */
|
|
24
|
+
readonly request: HoldRequest;
|
|
25
|
+
/** Whom its reference acts for: named on route links (`actingFor`). */
|
|
26
|
+
readonly caller: Caller;
|
|
27
|
+
/**
|
|
28
|
+
* Made for its first reference (its getter's `trigger`), on `path`; `unindex` takes it out of its path's sharing
|
|
29
|
+
* table (none: a private object, never shared).
|
|
30
|
+
*/
|
|
31
|
+
constructor(host: AnyHost, contract: Contract, params: CheckedParams, address: WireAddress, caller: Caller, path: Path, dependent: ChordObject | undefined, trigger: TelemetryContext, unindex?: () => void);
|
|
32
|
+
get state(): RefState;
|
|
33
|
+
/** Over a link the provider decides what each version sees: its state as it is. */
|
|
34
|
+
stateFor(): RefState;
|
|
35
|
+
/** Its `chord.hold` span until its first `bound` or failure (a route's resolve links to it); none when not recorded. */
|
|
36
|
+
get span(): TelemetrySpan | undefined;
|
|
37
|
+
/** An object over a link is no blocker of this host's first pass. */
|
|
38
|
+
get blocksFirstPass(): false;
|
|
39
|
+
/** The error of the last `failed`, until `bound`. */
|
|
40
|
+
get lastFailure(): ChordError | undefined;
|
|
41
|
+
/** The variant last bound; `undefined` before the first binding. */
|
|
42
|
+
get variant(): string | undefined;
|
|
43
|
+
/** Whether its state members have values: bound once. */
|
|
44
|
+
get hydrated(): boolean;
|
|
45
|
+
/** Whether its path is the host's unplaced one: a part past the limits failed it, so it holds nothing anywhere. */
|
|
46
|
+
get unplaced(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Counts `binding` as one of its references. One joining it after it was bound (decision "References share one wire
|
|
49
|
+
* hold") has not seen what it finds: every member when it is not live, else the members failed or missing from the
|
|
50
|
+
* bound variant; each counts as seen once its replica takes a value after the join. `Binding.bind` retargets and
|
|
51
|
+
* tells it.
|
|
52
|
+
*/
|
|
53
|
+
hold(binding: Binding): void;
|
|
54
|
+
/** How many values the replica of `member` took; `undefined` without one. */
|
|
55
|
+
generationOf(member: string): number | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* `binding` was released. While others remain nothing is sent but the cancellation of its own calls (queued ones
|
|
58
|
+
* leave unsent, sent ones are aborted); with the last the hold is released and the object ends (no linger, D8).
|
|
59
|
+
*/
|
|
60
|
+
unhold(binding: Binding): void;
|
|
61
|
+
/**
|
|
62
|
+
* Holds on `link`, the path's link now (a first hold, or a re-hold on a new link), with the activation chain of its
|
|
63
|
+
* dependent while that activates (Q5).
|
|
64
|
+
*/
|
|
65
|
+
attach(link: HostLink): void;
|
|
66
|
+
/**
|
|
67
|
+
* Its path's address cannot be reached for now (a route's `resolve` failed, a suspension): `failed { waiting }` with
|
|
68
|
+
* `error`, still on the path, bound by its next link.
|
|
69
|
+
*/
|
|
70
|
+
unreachable(error: ChordError): void;
|
|
71
|
+
/**
|
|
72
|
+
* Its route's admission holds it back with `cause` (slice 14 §2.3): released at its provider when it is held there
|
|
73
|
+
* (its calls reject, `forbidden/revoked` for a denial), and `failed` with the cause; a denial drops its replicas.
|
|
74
|
+
* It stays on its path: an allow holds it again.
|
|
75
|
+
*/
|
|
76
|
+
withheld(cause: FailureCause): void;
|
|
77
|
+
/** Its route's admission allows it: loading (again, after what held it back) until its next binding. */
|
|
78
|
+
admitted(): void;
|
|
79
|
+
/** The link dropped: loading until a new link's hold is bound (`#startOver`). */
|
|
80
|
+
dropped(_error: ChordError): void;
|
|
81
|
+
/**
|
|
82
|
+
* Calls a method of the bound variant over the link; one outside it fails `invalid/member`. Only a live object is
|
|
83
|
+
* called: bound on an open link.
|
|
84
|
+
*/
|
|
85
|
+
call(method: string, args: unknown, binding: Binding, context: Context): Promise<unknown>;
|
|
86
|
+
/**
|
|
87
|
+
* The replica of `member`; `not_ready` before the first binding, `invalid/member` for a member no binding had (one
|
|
88
|
+
* a later variant lacks reads its `invalid/member` failure).
|
|
89
|
+
*/
|
|
90
|
+
member(member: string): DeriveSource;
|
|
91
|
+
/**
|
|
92
|
+
* What its reference follows of `member` (a consumer over a link binds at its own version, mapped at the provider):
|
|
93
|
+
* the replica while live, a member the bound variant lacks (`invalid/member`); while loading or failed nothing, the
|
|
94
|
+
* replica (kept until the next binding) giving its last value (rule 5).
|
|
95
|
+
*/
|
|
96
|
+
followed(member: string, _version: number): Followed;
|
|
97
|
+
/** Its binding while live (its replicas change); `undefined` while loading or failed. */
|
|
98
|
+
get attachable(): Attachable | undefined;
|
|
99
|
+
/** Keyed members are only in local contracts: no instance to pin a key on. */
|
|
100
|
+
get instance(): undefined;
|
|
101
|
+
/** Keyed members are only in local contracts (`keyedMember`). */
|
|
102
|
+
keyedMapping(member: string): never;
|
|
103
|
+
/** Keyed members are only in local contracts (`keyedMember`). */
|
|
104
|
+
pinKey(member: string): Promise<PinnedKey>;
|
|
105
|
+
/** `queries` members are only in local contracts, as keyed ones (slice 14 §3.1). */
|
|
106
|
+
queryMember(member: string): never;
|
|
107
|
+
/** Keyed members are only in local contracts, whose objects are never held over a link (slice 6a §12). */
|
|
108
|
+
keyedMember(member: string): never;
|
|
109
|
+
/** An object over a link activates on another host: it is in no chain here (Q5). */
|
|
110
|
+
get activationId(): undefined;
|
|
111
|
+
/** An object over a link waits for nothing on this host: no chain of waits (its holds carry the chain, Q5). */
|
|
112
|
+
pathTo(): undefined;
|
|
113
|
+
/**
|
|
114
|
+
* `ref.retry()` from `binding`, as a step of `walk`: a failed object's provider is asked for an attempt with the
|
|
115
|
+
* walk's hop budget, none left: nothing is sent (a hold it refused is started there again, for every reference
|
|
116
|
+
* sharing it; a parked object there passes it on with one hop less). After a part past the link's limits `binding`
|
|
117
|
+
* alone moves to a private object of its own, placed anew and held with a new id (`#retryAlone`).
|
|
118
|
+
*/
|
|
119
|
+
retry(walk: RetryWalk, binding: Binding): void;
|
|
120
|
+
/**
|
|
121
|
+
* A part of its snapshot or of a state change was past the link's limits (`too_large/part`): the hold is released
|
|
122
|
+
* at the provider, it leaves the sharing table, and every binding fails broken with `error` (they share the part),
|
|
123
|
+
* final: no link holds it again (a reconnect included); each binding's `retry` moves it alone (`#retryAlone`).
|
|
124
|
+
*/
|
|
125
|
+
tooLarge(error: ChordError): void;
|
|
126
|
+
/**
|
|
127
|
+
* Prepares one entry of a `bound` message (a first binding, a re-hold; a live hold is bound again): the
|
|
128
|
+
* variant and every state member once, as a value or as failed. Returns what applies it inside the batch of the
|
|
129
|
+
* whole message: a member it had gets the snapshot as one frame `[["r", value]]` and a fresh decoder, a member
|
|
130
|
+
* outside the new variant fails (its replica stays, for a later binding that has it again), a new one gets its first
|
|
131
|
+
* value. Throws on a snapshot that
|
|
132
|
+
* does not fit (a protocol error), and `too_large/part` for a value past the link's limits, before anything changed.
|
|
133
|
+
* `wentLive` follows the batch.
|
|
134
|
+
*/
|
|
135
|
+
prepareBound(entry: BoundEntry, link: HostLink): () => void;
|
|
136
|
+
/** After a `bound` message's batch: the reference goes live (its parked calls are sent, a parked dependent goes on). */
|
|
137
|
+
wentLive(): void;
|
|
138
|
+
/**
|
|
139
|
+
* `failed`: the provider's object failed and no attempt runs (`retryIn`: the rest of its backoff window), or the hold
|
|
140
|
+
* is unbound there or its object parked on a failed dependency (`waiting`), each new cause a new message. On a bound
|
|
141
|
+
* hold it unbinds it (slice 7b, model §5): the members keep their last values until the next `bound`. `denied` (an
|
|
142
|
+
* admission refused this hold's caller, slice 14 §2.2) drops its replicas: no value of it stays readable here.
|
|
143
|
+
*/
|
|
144
|
+
failed(message: Extract<Message, {
|
|
145
|
+
readonly kind: "failed";
|
|
146
|
+
}>): void;
|
|
147
|
+
/**
|
|
148
|
+
* `loading`: the provider's object started a new attempt after a failure, or its relay's upstream link dropped
|
|
149
|
+
* (`#startOver`).
|
|
150
|
+
*/
|
|
151
|
+
loading(): void;
|
|
152
|
+
/**
|
|
153
|
+
* Decodes and applies one entry of a state message (its members by index, each with its ops), without changing
|
|
154
|
+
* anything yet: returns what adopts it into the replicas, run inside the batch that applies the whole message.
|
|
155
|
+
* Throws on an entry that does not fit (a protocol error), and `too_large/part` for ops past the link's limits.
|
|
156
|
+
*/
|
|
157
|
+
prepare({ hold: id, members, failed, retired }: StateEntry, link: HostLink): () => void;
|
|
158
|
+
/**
|
|
159
|
+
* Where an event of member `member` (an index into the bound version's event members) of its hold goes: its live
|
|
160
|
+
* binding's node for it, when something taps it; `undefined` when the value is to be dropped unopened (not live, no
|
|
161
|
+
* listener). Throws on an index outside the bound version (a protocol error).
|
|
162
|
+
*/
|
|
163
|
+
eventNode(member: number): EventNode | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* One entry of an `event` message for its hold: the value of event member `member` stamped `at`, taking this host's
|
|
166
|
+
* next counter value, at the node its reference's subscriptions tap (`eventNode`: dropped unopened when it is not
|
|
167
|
+
* live or nothing listens); dropped past the link's limits (`too_large`, counted; the hold stays bound).
|
|
168
|
+
*/
|
|
169
|
+
event(member: number, at: number, value: Part, link: HostLink): void;
|
|
170
|
+
/**
|
|
171
|
+
* Its principal was revoked on this host (`host.revoke`): released at its provider if it is held there, then ended
|
|
172
|
+
* with `error` as `lost` does; no later link holds it.
|
|
173
|
+
*/
|
|
174
|
+
revoke(error: ChordError): void;
|
|
175
|
+
/**
|
|
176
|
+
* `gone`, or the host closes: every reference ends, their calls reject with `error`. The bindings are taken and the
|
|
177
|
+
* object ends first, so each ends exactly once whatever ending one does.
|
|
178
|
+
*/
|
|
179
|
+
lost(error: ChordError): void;
|
|
180
|
+
}
|
|
181
|
+
//# sourceMappingURL=remote-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-object.d.ts","sourceRoot":"","sources":["../../src/remote/remote-object.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAoB,gBAAgB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC9F,OAAO,EAAsB,KAAK,OAAO,EAAiB,MAAM,qBAAqB,CAAC;AACtF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAQtD,OAAO,EAAE,UAAU,EAAE,KAAK,YAAY,EAAgB,MAAM,kBAAkB,CAAC;AAE/E,OAAO,EACN,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,SAAS,EACT,KAAK,QAAQ,EAGb,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,SAAS,EAEd,KAAK,MAAM,EACX,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACN,KAAK,UAAU,EAGf,KAAK,OAAO,EACZ,KAAK,IAAI,EAET,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,K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