@diffra-ai/chord 0.0.0-stage → 0.2.2
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 +235 -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":"expression.js","sourceRoot":"","sources":["../../src/store/expression.ts"],"names":[],"mappings":"AAAA,iHAAiH;AACjH,iHAAiH;AACjH,6GAA6G;AAG7G,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAKN,YAAY,GAEZ,M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AAQ,CAAC;AACjB,CAAC;AAED,2HAA2H;AAC3H,SAAS,OAAO,CAAC,KAAY,EAAE,QAAkB,EAAE,EAAU,EAAE,IAAY;IAC1E,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC;IAC5B,IAAI,MAAM,CAAC,IAAI,KAAK,KAAK,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QACxD,MAAM,OAAO,CACZ,MAAM,EACN,GAAG,KAAK,CAAC,IAAI,KAAK,IAAI,KAAK,EAAE,yBAAyB,MAAM,CAAC,IAAI,0BAA0B,CAC3F,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED;;;GAGG;AACH,SAAS,OAAO,CAAC,MAAc,EAAE,KAAc,EAAE,IAAY;IAC5D,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAC3C,MAAM,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,aAAa,MAAM,CAAC,IAAI,mBAAmB,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC3G,CAAC;IACD,uCAAuC;IACvC,OAAO,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,aAAa,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,MAAgB,CAAC;AACvF,CAAC","sourcesContent":["// The table expression language (slice 6a §6, §7; rules 10, 13, 14, 16; decision \"Nullable columns and the `set`\n// form\"): the builders plugins write `where` and `set` with, and their compilation at staging into one data-only\n// vocabulary (what the outbox and archives carry; `evaluate.ts` runs it in JavaScript, `sql.ts` renders it).\n\nimport type { Address, Optional } from \"../contracts/index.ts\";\nimport { invalid } from \"../data/internal.ts\";\nimport type { JsonValue } from \"../json.ts\";\nimport type { ColumnSet } from \"./column-set.ts\";\nimport {\n\ttype Column,\n\ttype Columns,\n\ttype ColumnType,\n\ttype ColumnTypeOf,\n\tcolumnRecord,\n\ttype ValueOf,\n} from \"./columns.ts\";\nimport type { HostColumn } from \"./host-column.ts\";\nimport { checkScalar, encodeCell, type Scalar } from \"./rows.ts\";\nimport type { TableDefinition } from \"./table.ts\";\n\n/**\n * A compiled condition: column comparisons with checked operands, combined by `and`, `or`, `not`. A query's\n * condition may also test `exists` (slice 14 §5): `[set, [[setColumn, column], …], inner]`, true for a row when the\n * set's table has a row equal in the matched columns that satisfies `inner`. Writes take no `exists`. Untagged on\n * purpose: each node is told apart by its one key (`\"and\" in node`), as the stored format (outbox, archives) holds it.\n */\nexport type WhereNode =\n\t| { readonly eq: readonly [string, Scalar] }\n\t| { readonly ne: readonly [string, Scalar] }\n\t| { readonly lt: readonly [string, Scalar] }\n\t| { readonly lte: readonly [string, Scalar] }\n\t| { readonly gt: readonly [string, Scalar] }\n\t| { readonly gte: readonly [string, Scalar] }\n\t| { readonly inArray: readonly [string, readonly Scalar[]] }\n\t| { readonly isNull: string }\n\t| { readonly prefix: readonly [string, string] }\n\t| { readonly and: readonly WhereNode[] }\n\t| { readonly or: readonly WhereNode[] }\n\t| { readonly not: WhereNode }\n\t| { readonly exists: ExistsNode };\n\n/** The data of an `exists`: the set's name, the matched pairs (set column, enclosing column), the inner condition. */\nexport type ExistsNode = readonly [string, readonly (readonly [string, string])[], WhereNode | null];\n\n/**\n * A compiled value expression: a literal (`null` clears), a column, a `json(...)` cell, or an operation. Untagged on\n * purpose, as `WhereNode`: the stored format.\n */\nexport type ExprNode =\n\t| Scalar\n\t| null\n\t| { readonly col: string }\n\t| { readonly json: JsonValue }\n\t| { readonly add: readonly [ExprNode, ExprNode] }\n\t| { readonly sub: readonly [ExprNode, ExprNode] }\n\t| { readonly max: readonly [ExprNode, ExprNode] }\n\t| { readonly min: readonly [ExprNode, ExprNode] }\n\t| { readonly concat: readonly [ExprNode, ExprNode] }\n\t| { readonly coalesce: readonly [ExprNode, ExprNode] }\n\t| { readonly replacePrefix: readonly [ExprNode, string, string] }\n\t| { readonly when: readonly [WhereNode, ExprNode, ExprNode] };\n\n/** A compiled `set`: the new value of each changed column, every right side evaluated against the row before. */\nexport type SetNode = { readonly [column: string]: ExprNode };\n\n/** The comparison operators of a `WhereNode`. */\nexport type Comparison = \"eq\" | \"ne\" | \"lt\" | \"lte\" | \"gt\" | \"gte\";\n\n/** The operations of an `ExprNode`. */\nexport type Operation = \"add\" | \"sub\" | \"max\" | \"min\" | \"concat\" | \"coalesce\" | \"replacePrefix\" | \"when\";\n\n/** A value expression as a plugin builds it: `T` is its value, `K` its column type. Compiled when staged. */\nexport class Expression<T = unknown, K extends ColumnType = ColumnType> {\n\treadonly op: Operation | \"col\";\n\treadonly args: readonly unknown[];\n\t/** Type only. */\n\tdeclare readonly \"~value\"?: T;\n\tdeclare readonly \"~type\"?: K;\n\n\tconstructor(op: Operation | \"col\", args: readonly unknown[]) {\n\t\tthis.op = op;\n\t\tthis.args = args;\n\t}\n}\n\n/**\n * A reference to a column of the row, as `(t) => …` callbacks get them. One of a column set (`Set.refs`) carries the\n * set's name: a condition names the side it means by it (a query's own table, a joined set, an `exists`).\n */\nexport class ColumnRef<T = unknown, K extends ColumnType = ColumnType> extends Expression<T, K> {\n\treadonly column: string;\n\treadonly set: string | undefined;\n\n\tconstructor(column: string, set?: string) {\n\t\tsuper(\"col\", [column]);\n\t\tthis.column = column;\n\t\tthis.set = set;\n\t}\n}\n\n/** A condition as a plugin builds it; compiled when staged or run. */\nexport class Condition {\n\treadonly op: Comparison | \"inArray\" | \"isNull\" | \"prefix\" | \"and\" | \"or\" | \"not\" | \"exists\" | \"existsNode\";\n\treadonly args: readonly unknown[];\n\n\tconstructor(op: Condition[\"op\"], args: readonly unknown[]) {\n\t\tthis.op = op;\n\t\tthis.args = args;\n\t}\n}\n\n/**\n * A `set` of a table with columns `C` and key `K`: new values of non-key columns, each a value or an expression of\n * the column's type; `undefined` clears an `opt(...)` column.\n */\nexport type SetOf<C extends Columns, K extends readonly string[]> = {\n\treadonly [P in Exclude<keyof C & string, K[number]>]?: C[P] extends Optional\n\t\t? ValueOf<C[P]> | Expression<ValueOf<C[P]>, ColumnTypeOf<C[P]>> | undefined\n\t\t: ValueOf<C[P]> | Expression<ValueOf<C[P]>, ColumnTypeOf<C[P]>>;\n};\n\n/** A scalar column type. */\ntype ScalarType = Exclude<ColumnType, \"json\">;\n\n/** An operand of type `T` and column type `K`: an expression or a plain value. */\ntype Operand<T, K extends ColumnType> = Expression<T, K> | T;\n\n/** A value `eq`, `ne` and `inArray` compare a column with: a scalar, or an address for a `host(...)` column. */\ntype Comparable = Scalar | Address;\n\n/** The column equals `value` (`NULL` never matches). */\nexport function eq<T extends Comparable>(column: ColumnRef<T, ScalarType>, value: T): Condition {\n\treturn new Condition(\"eq\", [column, value]);\n}\n\n/** The column differs from `value` (`NULL` never matches). */\nexport function ne<T extends Comparable>(column: ColumnRef<T, ScalarType>, value: T): Condition {\n\treturn new Condition(\"ne\", [column, value]);\n}\n\n/** The column is below `value`. */\nexport function lt<T extends Scalar>(column: ColumnRef<T, ScalarType>, value: T): Condition {\n\treturn new Condition(\"lt\", [column, value]);\n}\n\n/** The column is at most `value`. */\nexport function lte<T extends Scalar>(column: ColumnRef<T, ScalarType>, value: T): Condition {\n\treturn new Condition(\"lte\", [column, value]);\n}\n\n/** The column is above `value`. */\nexport function gt<T extends Scalar>(column: ColumnRef<T, ScalarType>, value: T): Condition {\n\treturn new Condition(\"gt\", [column, value]);\n}\n\n/** The column is at least `value`. */\nexport function gte<T extends Scalar>(column: ColumnRef<T, ScalarType>, value: T): Condition {\n\treturn new Condition(\"gte\", [column, value]);\n}\n\n/** The column equals one of `values` (`[]` matches nothing). */\nexport function inArray<T extends Comparable>(column: ColumnRef<T, ScalarType>, values: readonly T[]): Condition {\n\treturn new Condition(\"inArray\", [column, values]);\n}\n\n/** The column is `NULL` (an `opt(...)` column without a value). */\nexport function isNull(column: ColumnRef<unknown, ScalarType>): Condition {\n\treturn new Condition(\"isNull\", [column]);\n}\n\n/** The text column starts with `prefix`, compared by code point (`\"\"` matches every value). */\nexport function prefix(column: ColumnRef<string, \"str\">, prefix: string): Condition {\n\treturn new Condition(\"prefix\", [column, prefix]);\n}\n\n/** Every condition holds (`and()` always does). */\nexport function and(...conditions: Condition[]): Condition {\n\treturn new Condition(\"and\", conditions);\n}\n\n/** Some condition holds (`or()` never does). */\nexport function or(...conditions: Condition[]): Condition {\n\treturn new Condition(\"or\", conditions);\n}\n\n/** The condition does not hold (`NULL` stays `NULL`: it never matches). */\nexport function not(condition: Condition): Condition {\n\treturn new Condition(\"not\", [condition]);\n}\n\n/** The columns of a set matched to columns of the enclosing row: `{ setColumn: column }`. */\nexport type Match<C extends Columns> = {\n\treadonly [P in keyof C & string]?: ColumnRef<ValueOf<C[P]>, ColumnTypeOf<C[P]>>;\n};\n\n/**\n * `set`'s table has a row equal to the enclosing row in the matched columns (a leading prefix of the set's key or of\n * one of its declared indexes) that satisfies `inner`. In queries only.\n */\nexport function exists<C extends Columns>(\n\tset: ColumnSet<C>,\n\tmatch: Match<C>,\n\tinner?: (row: ColumnSet<C>[\"refs\"]) => Condition,\n): Condition {\n\treturn new Condition(\"exists\", [set, match, inner?.(set.refs)]);\n}\n\n/**\n * `exists` with its inner condition as data (`compile`'s result): for a condition handed over as an argument. A\n * trust boundary: `inner` is whatever arrived, and is checked whole before anything is rendered.\n */\nexport function existsNode<C extends Columns>(set: ColumnSet<C>, match: Match<C>, inner: unknown): Condition {\n\treturn new Condition(\"existsNode\", [set, match, inner]);\n}\n\n/** `a + b` over integers; a result outside ±(2^53 - 1) fails (rule 10). */\nexport function add(a: Operand<number, \"int\">, b: Operand<number, \"int\">): Expression<number, \"int\"> {\n\treturn new Expression(\"add\", [a, b]);\n}\n\n/** `a - b` over integers; a result outside ±(2^53 - 1) fails (rule 10). */\nexport function sub(a: Operand<number, \"int\">, b: Operand<number, \"int\">): Expression<number, \"int\"> {\n\treturn new Expression(\"sub\", [a, b]);\n}\n\n/** The larger of `a` and b` (`int` or `num`). */\nexport function max<K extends \"int\" | \"num\">(a: Operand<number, K>, b: Operand<number, K>): Expression<number, K> {\n\treturn new Expression(\"max\", [a, b]);\n}\n\n/** The smaller of `a` and `b` (`int` or `num`). */\nexport function min<K extends \"int\" | \"num\">(a: Operand<number, K>, b: Operand<number, K>): Expression<number, K> {\n\treturn new Expression(\"min\", [a, b]);\n}\n\n/** `a` followed by `b`. */\nexport function concat(a: Operand<string, \"str\">, b: Operand<string, \"str\">): Expression<string, \"str\"> {\n\treturn new Expression(\"concat\", [a, b]);\n}\n\n/** `value` with its prefix `from` replaced by `to`; a value without the prefix stays as it is. */\nexport function replacePrefix(value: Operand<string, \"str\">, from: string, to: string): Expression<string, \"str\"> {\n\treturn new Expression(\"replacePrefix\", [value, from, to]);\n}\n\n/** `a` unless it is `NULL`, else `b`. */\nexport function coalesce<T, K extends ScalarType>(a: Expression<T, K>, b: Operand<T, K>): Expression<T, K> {\n\treturn new Expression(\"coalesce\", [a, b]);\n}\n\n/** `a` where `condition` holds for the row, else `b`. */\nexport function when<T, K extends ScalarType>(\n\tcondition: Condition,\n\ta: Operand<T, K>,\n\tb: Operand<T, K>,\n): Expression<T, K> {\n\treturn new Expression(\"when\", [condition, a, b]);\n}\n\n/** One `ColumnRef` per column of `definition`, for its `(t) => …` callbacks. */\nexport function columnRefs(columns: readonly Column[]): { readonly [column: string]: ColumnRef } {\n\treturn Object.fromEntries(columns.map(({ name }) => [name, new ColumnRef(name)]));\n}\n\n/** Where a condition's columns are looked up: one side of a query, or two for a joined one. */\nexport type Scope = {\n\t/** Named in errors. */\n\treadonly name: string;\n\t/** The column `ref` names here and its name in compiled nodes; `undefined` when it is of no side of this scope. */\n\tresolve(ref: ColumnRef): Resolved | undefined;\n\t/** Whether a condition here may test `exists` (a query's may, a write's may not). */\n\treadonly exists: boolean;\n};\n\n/** A column as a scope resolved it. */\nexport type Resolved = { readonly column: Column; readonly name: string };\n\n/** The parts of a table or a column set a scope reads. */\ntype Side = { readonly name: string; readonly byName: ReadonlyMap<string, Column> };\n\n/** The scope of one table: its own references, and those of the set it exposes. */\nexport function tableScope(table: Side & { readonly exposes?: ColumnSet | undefined }, exists: boolean): Scope {\n\treturn {\n\t\tname: table.name,\n\t\texists,\n\t\tresolve: (ref) => {\n\t\t\tif (ref.set !== undefined && ref.set !== table.exposes?.name) return undefined;\n\t\t\tconst column = table.byName.get(ref.column);\n\t\t\treturn column === undefined ? undefined : { column, name: column.name };\n\t\t},\n\t};\n}\n\n/** The scope of a column set alone: its own references (`compile`, an `exists`' inner condition). */\nexport function setScope(set: Side): Scope {\n\treturn {\n\t\tname: set.name,\n\t\texists: true,\n\t\tresolve: (ref) => {\n\t\t\tconst column = ref.set === set.name ? set.byName.get(ref.column) : undefined;\n\t\t\treturn column === undefined ? undefined : { column, name: column.name };\n\t\t},\n\t};\n}\n\n/** The name of a joined set's column in compiled nodes, orders and cursors: `<set>:<column>`. */\nexport function partnerName(set: string, column: string): string {\n\treturn `${set}:${column}`;\n}\n\n/** The scope of a query of `own` joined with `set`: the partner's columns are named `<set>:<column>`. */\nexport function joinedScope(own: Scope, set: Side): Scope {\n\treturn {\n\t\tname: own.name,\n\t\texists: true,\n\t\tresolve: (ref) => {\n\t\t\tif (ref.set !== set.name) return own.resolve(ref);\n\t\t\tconst column = set.byName.get(ref.column);\n\t\t\treturn column === undefined ? undefined : { column, name: partnerName(set.name, column.name) };\n\t\t},\n\t};\n}\n\n/**\n * Compiles a plugin's condition over `table`'s columns for a write (a trust boundary: plugin values): known scalar\n * columns, operands of their type made storable (`invalid/args` otherwise, `undefined` included: ask with `isNull`,\n * rule 16). No `exists`.\n */\nexport function compileWhere(table: TableDefinition, condition: unknown, what: string): WhereNode {\n\treturn compileCondition(tableScope(table, false), condition, what);\n}\n\n/** A condition over `set`'s columns as plain data (slice 14 §6), for `whereNode` and `existsNode`. */\nexport function compile(set: ColumnSet, condition: Condition): WhereNode {\n\treturn compileCondition(setScope(set), condition, \"compile\");\n}\n\n/**\n * The columns of other plugins' sets a condition was written for, by set name: what `exists(Set, …)` matched and\n * compared, as the builder's `Set` declares them. A read checks them against the table bound to the set when it\n * opens (slice 14 §5: no versions, checked by name and type).\n */\nexport type Expected = Map<string, Map<string, Column>>;\n\n/**\n * Compiles a plugin's condition in `scope` (a trust boundary), as `compileWhere` does for one table. The set columns\n * its `exists` use are added to `expected`.\n */\nexport function compileCondition(\n\tscope: Scope,\n\tcondition: unknown,\n\twhat: string,\n\texpected: Expected = new Map(),\n): WhereNode {\n\tif (!(condition instanceof Condition)) throw invalid(\"args\", `${scope.name}: ${what}: expected a condition`);\n\tconst { op, args } = condition;\n\tswitch (op) {\n\t\tcase \"and\":\n\t\tcase \"or\": {\n\t\t\tconst nodes = args.map((each) => compileCondition(scope, each, what, expected));\n\t\t\treturn op === \"and\" ? { and: nodes } : { or: nodes };\n\t\t}\n\t\tcase \"not\":\n\t\t\treturn { not: compileCondition(scope, args[0], what, expected) };\n\t\tcase \"exists\":\n\t\tcase \"existsNode\":\n\t\t\treturn { exists: compileExists(scope, condition, what, expected) };\n\t\tcase \"isNull\":\n\t\t\treturn { isNull: ordered(scope, scalarColumn(scope, args[0], what), op, what).name };\n\t\tcase \"prefix\": {\n\t\t\tconst { column, name } = ordered(scope, scalarColumn(scope, args[0], what), op, what);\n\t\t\tif (column.type !== \"str\") throw invalid(\"args\", `${scope.name}: ${what}: prefix needs a str() column`);\n\t\t\treturn { prefix: [name, operand(column, args[1], what) as string] };\n\t\t}\n\t\tcase \"inArray\": {\n\t\t\tconst { column, name } = scalarColumn(scope, args[0], what);\n\t\t\tconst values = args[1];\n\t\t\tif (!Array.isArray(values)) throw invalid(\"args\", `${scope.name}: ${what}: inArray needs an array`);\n\t\t\treturn { inArray: [name, values.map((value) => operand(column, value, what))] };\n\t\t}\n\t\tdefault: {\n\t\t\tconst resolved = scalarColumn(scope, args[0], what);\n\t\t\tif (op !== \"eq\" && op !== \"ne\") ordered(scope, resolved, op, what);\n\t\t\t// One of the six comparisons: the node's shape is `{ [op]: [column, value] }`.\n\t\t\treturn { [op]: [resolved.name, operand(resolved.column, args[1], what)] as const } as WhereNode;\n\t\t}\n\t}\n}\n\n/** How deep a condition handed over as data may nest (`and`, `or`, `not`, `exists`). */\nexport const NODE_DEPTH = 16;\n\n/**\n * Compiles an `exists` of `scope`: the set's matched columns are a leading prefix of its key or of one of its\n * declared indexes, each of the type (and host kind) of the enclosing column it is matched to; the inner condition is\n * the callback's, compiled over the set, or a node, checked as `whereNode` checks one.\n */\nfunction compileExists(scope: Scope, condition: Condition, what: string, expected: Expected): ExistsNode {\n\t// The builders' arguments (`exists`, `existsNode`): plugin values, read as unknown data.\n\tconst [set, match, inner] = condition.args as [ColumnSet, { readonly [column: string]: unknown }, unknown];\n\tif (!scope.exists) throw invalid(\"args\", `${scope.name}: ${what}: exists is for queries, not for writes`);\n\tif (typeof match !== \"object\" || match === null)\n\t\tthrow invalid(\"args\", `${scope.name}: ${what}: exists needs a match`);\n\tconst pairs = Object.entries(match).map(([name, ref]) => {\n\t\tconst column = set.byName.get(name);\n\t\tconst outer = ref instanceof ColumnRef ? scope.resolve(ref) : undefined;\n\t\tif (column === undefined || outer === undefined) {\n\t\t\tthrow invalid(\"args\", `${scope.name}: ${what}: exists(${set.name}): \"${name}\" is matched to no column`);\n\t\t}\n\t\tcheckPair(set.name, column, outer.column, `${scope.name}: ${what}`);\n\t\treturn [name, outer.name] as const;\n\t});\n\tcheckMatch(\n\t\tset,\n\t\tpairs.map(([name]) => name),\n\t\t`${scope.name}: ${what}`,\n\t);\n\tlet node: WhereNode | null = null;\n\tif (condition.op === \"existsNode\") {\n\t\tcheckNode(inner, set, `${scope.name}: ${what}: existsNode(${set.name})`);\n\t\tnode = inner;\n\t} else if (inner !== undefined) node = compileCondition(setScope(set), inner, what, expected);\n\t// What this `exists` uses of the set, as its author's `Set` declares it.\n\tlet columns = expected.get(set.name);\n\tif (columns === undefined) {\n\t\tcolumns = new Map();\n\t\texpected.set(set.name, columns);\n\t}\n\tfor (const name of [...pairs.map(([each]) => each), ...(node === null ? [] : columnsOf(node))]) {\n\t\tcolumns.set(name, set.byName.get(name)!);\n\t}\n\treturn [set.name, pairs, node];\n}\n\n/**\n * The columns a condition uses of its own side: the ones it compares, and the ones its `exists` are matched to. An\n * `exists`' inner condition is another side's.\n */\nexport function columnsOf(node: WhereNode): string[] {\n\tif (\"and\" in node) return node.and.flatMap(columnsOf);\n\tif (\"or\" in node) return node.or.flatMap(columnsOf);\n\tif (\"not\" in node) return columnsOf(node.not);\n\tif (\"isNull\" in node) return [node.isNull];\n\tif (\"exists\" in node) return node.exists[1].map(([, enclosing]) => enclosing);\n\t// The remaining nodes are `{ [op]: [column, operand] }`.\n\treturn [(Object.values(node)[0] as readonly [string, unknown])[0]];\n}\n\n/** The `exists` a condition tests on its own side (not the ones nested inside them). */\nexport function existsIn(node: WhereNode): ExistsNode[] {\n\tif (\"and\" in node) return node.and.flatMap(existsIn);\n\tif (\"or\" in node) return node.or.flatMap(existsIn);\n\tif (\"not\" in node) return existsIn(node.not);\n\treturn \"exists\" in node ? [node.exists] : [];\n}\n\n/** Whether `key` is the canonical stored key of an address of `host`'s kind. */\nfunction isHostKey(host: HostColumn, key: string): boolean {\n\ttry {\n\t\treturn host.key(host.address(key), \"\") === key;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\n/** A set as a match is checked against it: its name, columns, key and declared indexes. */\nexport type MatchedSet = Side & {\n\treadonly key: readonly string[];\n\treadonly indexes: ReadonlyMap<string, readonly string[]>;\n};\n\n/**\n * Refuses a match that is no leading prefix of `set`'s key or of one of its declared indexes (`invalid/args`, listing\n * them): two tables are matched only by such an equality (the bounding rule, slice 14 §5).\n */\nexport function checkMatch(set: MatchedSet, matched: readonly string[], what: string): void {\n\tconst paths = [set.key, ...set.indexes.values()];\n\tconst fits = (path: readonly string[]): boolean =>\n\t\tmatched.length > 0 &&\n\t\tmatched.length <= path.length &&\n\t\tpath.slice(0, matched.length).every((column) => matched.includes(column));\n\tif (paths.some(fits)) return;\n\tconst listed = [\n\t\t`key (${set.key.join(\", \")})`,\n\t\t...[...set.indexes].map(([name, columns]) => `${name} (${columns.join(\", \")})`),\n\t];\n\tthrow invalid(\n\t\t\"args\",\n\t\t`${what}: ${set.name} is matched by (${matched.join(\", \")}), no leading prefix of its ${listed.join(\" or \")}`,\n\t);\n}\n\n/** Refuses a pair of matched columns of different types or host kinds (`invalid/args`, naming the set's column). */\nexport function checkPair(set: string, column: Column, outer: Column, what: string): void {\n\tconst [a, b] = [columnRecord(column), columnRecord(outer)];\n\tif (a.type === \"json\" || a.type !== b.type || a.host !== b.host) {\n\t\tthrow invalid(\"args\", `${what}: ${set} column \"${column.name}\" and the column it is matched to differ in type`);\n\t}\n}\n\n/**\n * Checks a condition handed over as data against `side`'s columns (a trust boundary, slice 14 §6): one known kind\n * per node, operand shapes and types (a `host(...)` column's operands are stored keys), every column in the side, a\n * depth bound. The inner condition of a nested `exists` is over another set: its structure is checked here, its\n * columns when the read opens and the set's table is known. `invalid/args` otherwise.\n */\nexport function checkNode(node: unknown, side: Side | undefined, what: string, depth = 0): asserts node is WhereNode {\n\tconst refuse = (message: string): never => {\n\t\tthrow invalid(\"args\", `${what}: ${message}`);\n\t};\n\tif (depth > NODE_DEPTH) refuse(`nested deeper than ${NODE_DEPTH}`);\n\tif (typeof node !== \"object\" || node === null || Array.isArray(node)) refuse(\"a condition node is an object\");\n\tconst entries = Object.entries(node as object);\n\tif (entries.length !== 1) refuse(\"a condition node has one kind\");\n\tconst [kind, value] = entries[0] as [string, unknown];\n\tconst column = (name: unknown): Column | undefined => {\n\t\tif (typeof name !== \"string\") return refuse(\"a column is named by a string\");\n\t\tconst found = side?.byName.get(name);\n\t\tif (side !== undefined && found === undefined) refuse(`no column \"${name}\" in ${side.name}`);\n\t\tif (found?.type === \"json\") refuse(`json(...) column \"${name}\" is not queryable`);\n\t\treturn found;\n\t};\n\tconst operand = (of: Column | undefined, each: unknown): void => {\n\t\tconst type = typeof each;\n\t\tif (type !== \"string\" && type !== \"boolean\" && !(type === \"number\" && Number.isFinite(each)))\n\t\t\trefuse(\"an operand is a string, a number or a boolean\");\n\t\tif (of === undefined) return;\n\t\tcheckScalar(of.type as Exclude<ColumnType, \"json\">, each, what);\n\t\t// A `host(...)` column holds canonical address keys: anything else would silently match nothing.\n\t\tif (of.type === \"str\" && of.host !== undefined && !isHostKey(of.host, each as string)) {\n\t\t\trefuse(`\"${String(each)}\" is no address key of ${of.host.kind.kind} (column \"${of.name}\")`);\n\t\t}\n\t};\n\t/** A `host(...)` column compares only with eq, ne and inArray, as `compile` has it. */\n\tconst ordered = (of: Column | undefined): void => {\n\t\tif (of?.type === \"str\" && of.host !== undefined) refuse(`${kind} on host(...) column \"${of.name}\"`);\n\t};\n\tconst pair = (): readonly [unknown, unknown] => {\n\t\tif (!Array.isArray(value) || value.length !== 2) return refuse(`${kind} takes [column, operand]`);\n\t\treturn value as unknown as readonly [unknown, unknown];\n\t};\n\tswitch (kind) {\n\t\tcase \"and\":\n\t\tcase \"or\":\n\t\t\tif (!Array.isArray(value)) return refuse(`${kind} takes an array`);\n\t\t\tfor (const each of value) checkNode(each, side, what, depth + 1);\n\t\t\treturn;\n\t\tcase \"not\":\n\t\t\treturn checkNode(value, side, what, depth + 1);\n\t\tcase \"isNull\":\n\t\t\tordered(column(value));\n\t\t\treturn;\n\t\tcase \"inArray\": {\n\t\t\tconst [name, values] = pair();\n\t\t\tconst of = column(name);\n\t\t\tif (!Array.isArray(values)) return refuse(\"inArray takes an array of operands\");\n\t\t\tfor (const each of values) operand(of, each);\n\t\t\treturn;\n\t\t}\n\t\tcase \"prefix\": {\n\t\t\tconst [name, text] = pair();\n\t\t\tconst of = column(name);\n\t\t\tordered(of);\n\t\t\tif (typeof text !== \"string\" || (of !== undefined && of.type !== \"str\"))\n\t\t\t\trefuse(\"prefix takes a str() column and a string\");\n\t\t\treturn;\n\t\t}\n\t\tcase \"eq\":\n\t\tcase \"ne\": {\n\t\t\tconst [name, each] = pair();\n\t\t\toperand(column(name), each);\n\t\t\treturn;\n\t\t}\n\t\tcase \"lt\":\n\t\tcase \"lte\":\n\t\tcase \"gt\":\n\t\tcase \"gte\": {\n\t\t\tconst [name, each] = pair();\n\t\t\tconst of = column(name);\n\t\t\tordered(of);\n\t\t\toperand(of, each);\n\t\t\treturn;\n\t\t}\n\t\tcase \"exists\": {\n\t\t\tif (!Array.isArray(value) || value.length !== 3) return refuse(\"exists takes [set, pairs, inner]\");\n\t\t\tconst [set, pairs, inner] = value as unknown as readonly [unknown, unknown, unknown];\n\t\t\tif (typeof set !== \"string\" || !Array.isArray(pairs) || pairs.length === 0)\n\t\t\t\treturn refuse(\"exists takes a set name and its matched pairs\");\n\t\t\tfor (const each of pairs) {\n\t\t\t\tif (!Array.isArray(each) || each.length !== 2 || typeof each[0] !== \"string\")\n\t\t\t\t\treturn refuse(\"an exists pair is [setColumn, column]\");\n\t\t\t\tcolumn(each[1]);\n\t\t\t}\n\t\t\tif (inner !== null) checkNode(inner, undefined, what, depth + 1);\n\t\t\treturn;\n\t\t}\n\t\tdefault:\n\t\t\treturn refuse(`unknown kind \"${kind}\"`);\n\t}\n}\n\n/**\n * Compiles a plugin's `set` (plain values or a callback's result) for `table` (a trust boundary): known non-key\n * columns (rule 13), at least one (rule 14), `undefined` clearing an `opt(...)` column as the explicit `null` (a\n * `null` value is a `json(...)` cell's JSON `null`, refused for other columns), an\n * expression whose result may be `NULL` only for an `opt(...)` column; integer arithmetic only on `int` columns.\n */\nexport function compileSet(table: TableDefinition, set: unknown, what: string): SetNode {\n\tif (typeof set !== \"object\" || set === null || Array.isArray(set)) {\n\t\tthrow invalid(\"args\", `${table.name}: ${what}: expected an object of column values`);\n\t}\n\tconst entries = Object.entries(set);\n\tif (entries.length === 0) throw invalid(\"args\", `${table.name}: ${what}: the set is empty`);\n\tconst node: { [column: string]: ExprNode } = {};\n\tfor (const [name, value] of entries) {\n\t\tconst column = table.byName.get(name);\n\t\tif (column === undefined) throw invalid(\"args\", `${table.name}: ${what}: no column \"${name}\"`);\n\t\tif (table.key.includes(name)) {\n\t\t\tthrow invalid(\"args\", `${table.name}: ${what}: key column \"${name}\" cannot change (delete and put)`);\n\t\t}\n\t\tconst where = `${what}: column \"${name}\"`;\n\t\tif (value === undefined) {\n\t\t\tif (!column.optional) throw invalid(\"args\", `${table.name}: ${where} is not opt(...) and cannot be cleared`);\n\t\t\tnode[name] = null;\n\t\t} else if (value === null && column.type !== \"json\") {\n\t\t\t// A row never holds an explicit `null` (decision \"Nullable columns and the set form\"); a JSON `null` is a value.\n\t\t\tthrow invalid(\"args\", `${table.name}: ${where}: null is no ${column.type} value (undefined clears)`);\n\t\t} else if (value instanceof Expression) {\n\t\t\tif (column.type === \"json\" || column.host !== undefined)\n\t\t\t\tthrow invalid(\n\t\t\t\t\t\"args\",\n\t\t\t\t\t`${table.name}: ${where}: ${column.type === \"json\" ? \"json\" : \"host\"}(...) columns take plain values`,\n\t\t\t\t);\n\t\t\tconst compiled = compileExpr(table, value, column.type, where);\n\t\t\tif (compiled.nullable && !column.optional) {\n\t\t\t\tthrow invalid(\"args\", `${table.name}: ${where}: the expression may be NULL; the column is not opt(...)`);\n\t\t\t}\n\t\t\tnode[name] = compiled.node;\n\t\t} else if (column.type === \"json\") {\n\t\t\tnode[name] = { json: encodeCell(column, value, `${table.name}: ${where}`).stored };\n\t\t} else node[name] = encodeCell(column, value, `${table.name}: ${where}`).stored as Scalar;\n\t}\n\treturn node;\n}\n\n/** A compiled expression and whether its result may be `NULL`. */\ntype Compiled = { readonly node: ExprNode; readonly nullable: boolean };\n\nfunction compileExpr(table: TableDefinition, value: unknown, type: ScalarType, what: string): Compiled {\n\tif (!(value instanceof Expression)) {\n\t\tif (value === undefined || value === null) return { node: null, nullable: true };\n\t\treturn { node: checkScalar(type, value, `${table.name}: ${what}`), nullable: false };\n\t}\n\tconst { op, args } = value;\n\tconst refuse = (message: string): never => {\n\t\tthrow invalid(\"args\", `${table.name}: ${what}: ${message}`);\n\t};\n\tswitch (op) {\n\t\tcase \"col\": {\n\t\t\tconst column = table.byName.get(args[0] as string) ?? refuse(`no column \"${String(args[0])}\"`);\n\t\t\tif (column.type !== type) refuse(`column \"${column.name}\" is ${column.type}, not ${type}`);\n\t\t\tif (column.type === \"str\" && column.host !== undefined)\n\t\t\t\trefuse(`host(...) column \"${column.name}\" holds addresses`);\n\t\t\treturn { node: { col: column.name }, nullable: column.optional };\n\t\t}\n\t\tcase \"add\":\n\t\tcase \"sub\":\n\t\tcase \"max\":\n\t\tcase \"min\":\n\t\tcase \"concat\": {\n\t\t\tconst types: readonly ScalarType[] =\n\t\t\t\top === \"concat\" ? [\"str\"] : op === \"add\" || op === \"sub\" ? [\"int\"] : [\"int\", \"num\"];\n\t\t\tif (!types.includes(type)) refuse(`${op} gives ${types.join(\" or \")}, the column is ${type}`);\n\t\t\tconst [a, b] = [compileExpr(table, args[0], type, what), compileExpr(table, args[1], type, what)];\n\t\t\t// The operation's shape is `{ [op]: [a, b] }`.\n\t\t\treturn { node: { [op]: [a.node, b.node] } as ExprNode, nullable: a.nullable || b.nullable };\n\t\t}\n\t\tcase \"coalesce\": {\n\t\t\tconst [a, b] = [compileExpr(table, args[0], type, what), compileExpr(table, args[1], type, what)];\n\t\t\treturn { node: { coalesce: [a.node, b.node] }, nullable: a.nullable && b.nullable };\n\t\t}\n\t\tcase \"replacePrefix\": {\n\t\t\tif (type !== \"str\") refuse(`replacePrefix gives str, the column is ${type}`);\n\t\t\tconst subject = compileExpr(table, args[0], type, what);\n\t\t\tconst [from, to] = [args[1], args[2]].map(\n\t\t\t\t(each) => checkScalar(\"str\", each, `${table.name}: ${what}`) as string,\n\t\t\t);\n\t\t\treturn { node: { replacePrefix: [subject.node, from!, to!] }, nullable: subject.nullable };\n\t\t}\n\t\tcase \"when\": {\n\t\t\tconst condition = compileWhere(table, args[0], what);\n\t\t\tconst [a, b] = [compileExpr(table, args[1], type, what), compileExpr(table, args[2], type, what)];\n\t\t\treturn { node: { when: [condition, a.node, b.node] }, nullable: a.nullable || b.nullable };\n\t\t}\n\t}\n}\n\n/** The column a condition compares: a reference to a known scalar column of `scope`. */\nfunction scalarColumn(scope: Scope, ref: unknown, what: string): Resolved {\n\tif (!(ref instanceof ColumnRef)) throw invalid(\"args\", `${scope.name}: ${what}: expected a column reference`);\n\tconst resolved = scope.resolve(ref);\n\tif (resolved === undefined) throw invalid(\"args\", `${scope.name}: ${what}: no column \"${ref.column}\"`);\n\tif (resolved.column.type === \"json\")\n\t\tthrow invalid(\"args\", `${scope.name}: ${what}: json(...) column \"${ref.column}\" is not queryable`);\n\treturn resolved;\n}\n\n/** `resolved` for a comparison by order, `isNull` or `prefix`: a `host(...)` column compares only with eq, ne, inArray. */\nfunction ordered(scope: Scope, resolved: Resolved, op: string, what: string): Resolved {\n\tconst { column } = resolved;\n\tif (column.type === \"str\" && column.host !== undefined) {\n\t\tthrow invalid(\n\t\t\t\"args\",\n\t\t\t`${scope.name}: ${what}: ${op} on host(...) column \"${column.name}\" (eq, ne, inArray only)`,\n\t\t);\n\t}\n\treturn resolved;\n}\n\n/**\n * An operand compared with `column`, made storable (an address as its key for a `host(...)` column); `undefined` and\n * `null` are refused (rule 16).\n */\nfunction operand(column: Column, value: unknown, what: string): Scalar {\n\tif (value === undefined || value === null) {\n\t\tthrow invalid(\"args\", `${what}: column \"${column.name}\" compared with ${String(value)}; ask with isNull`);\n\t}\n\t// `scalarColumn` refused json columns.\n\treturn encodeCell(column, value, `${what}: column \"${column.name}\"`).stored as Scalar;\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Address, HostKind, KindShape, Schema } from "../contracts/index.ts";
|
|
2
|
+
import { type Params } from "../contracts/internal.ts";
|
|
3
|
+
/** A `host(...)` column as `columns` takes it: a schema of the kind's addresses carrying the column. */
|
|
4
|
+
export interface HostColumnSchema<K extends KindShape> extends Schema<Address<K>> {
|
|
5
|
+
readonly host: HostColumn;
|
|
6
|
+
}
|
|
7
|
+
/** A column holding an address of host kind `kind` per row: the row belongs to that host. */
|
|
8
|
+
export declare function host<N extends string, P extends Params>(kind: HostKind<N, P>): HostColumnSchema<HostKind<N, P>>;
|
|
9
|
+
/** A `host(...)` column's definition: its kind, the stored key of an address and the address of a stored key. */
|
|
10
|
+
export declare class HostColumn {
|
|
11
|
+
readonly kind: KindShape;
|
|
12
|
+
constructor(kind: KindShape);
|
|
13
|
+
/**
|
|
14
|
+
* The canonical stored key of `value`, an address of the column's kind (a trust boundary): its key under the `str()`
|
|
15
|
+
* text rules (a lone surrogate replaced, NUL refused), as document keys and host data selections have it;
|
|
16
|
+
* `invalid/args` otherwise.
|
|
17
|
+
*/
|
|
18
|
+
key(value: unknown, what: string): string;
|
|
19
|
+
/** The address a stored key holds. */
|
|
20
|
+
address(key: string): Address;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=host-column.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-column.d.ts","sourceRoot":"","sources":["../../src/store/host-column.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAA0C,KAAK,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAI/F,wGAAwG;AACxG,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,SAAS,CAAE,SAAQ,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAChF,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;CAC1B;AAED,6FAA6F;AAC7F,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAG/G;AAED,iHAAiH;AACjH,qBAAa,UAAU;IACtB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAEzB,YAAY,IAAI,EAAE,SAAS,EAI1B;IAED;;;;OAIG;IACH,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAIxC;IAED,sCAAsC;IACtC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE5B;CACD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// `host(kind)` table columns (decision "Documents and table rows can belong to a host"): a column holding the address of
|
|
2
|
+
// a host of one kind, stored as the address key in a `TEXT` cell (a `str` column to the store), so the store finds the
|
|
3
|
+
// rows belonging to one host (`host-data.ts`: export, import, delete). At most one per table, never `opt(...)`, indexed.
|
|
4
|
+
import { addressOfKey, keyOfAddress, kindParams } from "../contracts/internal.js";
|
|
5
|
+
import { invalid } from "../data/internal.js";
|
|
6
|
+
import { storedText } from "./text.js";
|
|
7
|
+
/** A column holding an address of host kind `kind` per row: the row belongs to that host. */
|
|
8
|
+
export function host(kind) {
|
|
9
|
+
// Typed as the addresses' schema, so `Static` reads it; the table reads its `host` field.
|
|
10
|
+
return { host: new HostColumn(kind) };
|
|
11
|
+
}
|
|
12
|
+
/** A `host(...)` column's definition: its kind, the stored key of an address and the address of a stored key. */
|
|
13
|
+
export class HostColumn {
|
|
14
|
+
kind;
|
|
15
|
+
constructor(kind) {
|
|
16
|
+
// Declaration policy: only a declared kind decodes keys (throws otherwise).
|
|
17
|
+
kindParams(kind);
|
|
18
|
+
this.kind = kind;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The canonical stored key of `value`, an address of the column's kind (a trust boundary): its key under the `str()`
|
|
22
|
+
* text rules (a lone surrogate replaced, NUL refused), as document keys and host data selections have it;
|
|
23
|
+
* `invalid/args` otherwise.
|
|
24
|
+
*/
|
|
25
|
+
key(value, what) {
|
|
26
|
+
const key = keyOfAddress(this.kind, value);
|
|
27
|
+
if (key === undefined)
|
|
28
|
+
throw invalid("args", `${what}: expected an address of ${this.kind.kind}`);
|
|
29
|
+
return storedText(key, what);
|
|
30
|
+
}
|
|
31
|
+
/** The address a stored key holds. */
|
|
32
|
+
address(key) {
|
|
33
|
+
return addressOfKey(this.kind, key);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=host-column.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-column.js","sourceRoot":"","sources":["../../src/store/host-column.ts"],"names":[],"mappings":"AAAA,yHAAyH;AACzH,uHAAuH;AACvH,yHAAyH;AAGzH,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAe,MAAM,0BAA0B,CAAC;AAC/F,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAOvC,6FAA6F;AAC7F,MAAM,UAAU,IAAI,CAAqC,IAAoB;IAC5E,0FAA0F;IAC1F,OAAO,EAAE,IAAI,EAAE,IAAI,UAAU,CAAC,IAAI,CAAC,EAAsC,CAAC;AAC3E,CAAC;AAED,iHAAiH;AACjH,MAAM,OAAO,UAAU;IACb,IAAI,CAAY;IAEzB,YAAY,IAAe;QAC1B,4EAA4E;QAC5E,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,KAAc,EAAE,IAAY;QAC/B,MAAM,GAAG,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC3C,IAAI,GAAG,KAAK,SAAS;YAAE,MAAM,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,4BAA4B,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QAClG,OAAO,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,sCAAsC;IACtC,OAAO,CAAC,GAAW;QAClB,OAAO,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACrC,CAAC;CACD","sourcesContent":["// `host(kind)` table columns (decision \"Documents and table rows can belong to a host\"): a column holding the address of\n// a host of one kind, stored as the address key in a `TEXT` cell (a `str` column to the store), so the store finds the\n// rows belonging to one host (`host-data.ts`: export, import, delete). At most one per table, never `opt(...)`, indexed.\n\nimport type { Address, HostKind, KindShape, Schema } from \"../contracts/index.ts\";\nimport { addressOfKey, keyOfAddress, kindParams, type Params } from \"../contracts/internal.ts\";\nimport { invalid } from \"../data/internal.ts\";\nimport { storedText } from \"./text.ts\";\n\n/** A `host(...)` column as `columns` takes it: a schema of the kind's addresses carrying the column. */\nexport interface HostColumnSchema<K extends KindShape> extends Schema<Address<K>> {\n\treadonly host: HostColumn;\n}\n\n/** A column holding an address of host kind `kind` per row: the row belongs to that host. */\nexport function host<N extends string, P extends Params>(kind: HostKind<N, P>): HostColumnSchema<HostKind<N, P>> {\n\t// Typed as the addresses' schema, so `Static` reads it; the table reads its `host` field.\n\treturn { host: new HostColumn(kind) } as HostColumnSchema<HostKind<N, P>>;\n}\n\n/** A `host(...)` column's definition: its kind, the stored key of an address and the address of a stored key. */\nexport class HostColumn {\n\treadonly kind: KindShape;\n\n\tconstructor(kind: KindShape) {\n\t\t// Declaration policy: only a declared kind decodes keys (throws otherwise).\n\t\tkindParams(kind);\n\t\tthis.kind = kind;\n\t}\n\n\t/**\n\t * The canonical stored key of `value`, an address of the column's kind (a trust boundary): its key under the `str()`\n\t * text rules (a lone surrogate replaced, NUL refused), as document keys and host data selections have it;\n\t * `invalid/args` otherwise.\n\t */\n\tkey(value: unknown, what: string): string {\n\t\tconst key = keyOfAddress(this.kind, value);\n\t\tif (key === undefined) throw invalid(\"args\", `${what}: expected an address of ${this.kind.kind}`);\n\t\treturn storedText(key, what);\n\t}\n\n\t/** The address a stored key holds. */\n\taddress(key: string): Address {\n\t\treturn addressOfKey(this.kind, key);\n\t}\n}\n"]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { Context } from "../context/index.ts";
|
|
2
|
+
import type { Address } from "../contracts/index.ts";
|
|
3
|
+
import type { JsonValue } from "../json.ts";
|
|
4
|
+
import { type ArchivePart } from "./archive.ts";
|
|
5
|
+
import { type DocumentRecord } from "./engine.ts";
|
|
6
|
+
import type { StagedWrite } from "./step.ts";
|
|
7
|
+
import type { CommitFence, Store } from "./store.ts";
|
|
8
|
+
import type { TableDefinition } from "./table.ts";
|
|
9
|
+
import type { TableWrite } from "./table-writes.ts";
|
|
10
|
+
/** What the host's `importHostData` takes besides the kind, the archive and the context. */
|
|
11
|
+
export type HostImportOptions = {
|
|
12
|
+
/** The address the data is imported under: a copy when it is not the archive's; another kind is refused. */
|
|
13
|
+
readonly address?: Address;
|
|
14
|
+
/** What happens when the store has data of the address: refused (the default), or replaced in the same commit. */
|
|
15
|
+
readonly existing?: "refuse" | "replace";
|
|
16
|
+
};
|
|
17
|
+
/** What an import or a delete changed: the documents it created or retired, the rows it put or deleted. */
|
|
18
|
+
export type HostDataCounts = {
|
|
19
|
+
readonly documents: number;
|
|
20
|
+
readonly rows: number;
|
|
21
|
+
};
|
|
22
|
+
/** A host's data archive, read and checked (`readHostArchive`): one archive is one commit, so it is held in memory. */
|
|
23
|
+
export type HostArchive = {
|
|
24
|
+
/** The address key whose data it holds (its manifest's `host`). */
|
|
25
|
+
readonly host: string;
|
|
26
|
+
readonly tables: readonly HostTable[];
|
|
27
|
+
readonly documents: readonly HostDocument[];
|
|
28
|
+
};
|
|
29
|
+
/** One table of a host's data archive: its `table` write, its host column, the `put`s of the host's rows, its indexes. */
|
|
30
|
+
export type HostTable = {
|
|
31
|
+
readonly write: Extract<TableWrite, {
|
|
32
|
+
readonly kind: "table";
|
|
33
|
+
}>;
|
|
34
|
+
readonly column: string;
|
|
35
|
+
readonly puts: Extract<TableWrite, {
|
|
36
|
+
readonly kind: "put";
|
|
37
|
+
}>[];
|
|
38
|
+
readonly indexes: Extract<TableWrite, {
|
|
39
|
+
readonly kind: "index";
|
|
40
|
+
}>[];
|
|
41
|
+
};
|
|
42
|
+
/** One document of a host's data archive: its record and its value (its base with its deltas applied). */
|
|
43
|
+
type HostDocument = {
|
|
44
|
+
readonly record: DocumentRecord;
|
|
45
|
+
readonly value: JsonValue;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* The records and rows of `store` belonging to `address` as archive parts (manifest with `host`, the tables with a
|
|
49
|
+
* `host(...)` column of its kind and only its rows, its records), holding the commit queue as `store.export` does.
|
|
50
|
+
*/
|
|
51
|
+
export declare function exportHostData(store: Store, address: Address, context: Context): AsyncIterableIterator<ArchivePart>;
|
|
52
|
+
/**
|
|
53
|
+
* Reads and checks a host's data archive (a trust boundary): every part by the archive schema and in archive order;
|
|
54
|
+
* a manifest with `host` (well-formed text); tables with exactly one host column of that address's kind; every row's host cell and every
|
|
55
|
+
* record's `host` and key the manifest's `host`; live Chord records (history `none`) whose revisions start at a base,
|
|
56
|
+
* each delta at its base's version; `end` counting the parts between. `invalid/args` otherwise.
|
|
57
|
+
*/
|
|
58
|
+
export declare function readHostArchive(parts: AsyncIterable<unknown> | Iterable<unknown>, context: Context): Promise<HostArchive>;
|
|
59
|
+
/** How a host data operation commits: the host's fence and its reads in the step. */
|
|
60
|
+
export type HostCommit = {
|
|
61
|
+
/** Admits the commit (the caller's context, the host open) and adopts what `after` read, after `COMMIT`. */
|
|
62
|
+
readonly fence: CommitFence;
|
|
63
|
+
/** Staged after the operation's writes, in the same step: what the live owners hold, read again. */
|
|
64
|
+
readonly after: readonly StagedWrite[];
|
|
65
|
+
};
|
|
66
|
+
/** What `importHostData` does with an archive: under `target` (canonical), `existing`, with the tables' histories. */
|
|
67
|
+
export type HostImportPlan = {
|
|
68
|
+
readonly target: string;
|
|
69
|
+
readonly existing: "refuse" | "replace";
|
|
70
|
+
/** The newest definitions (from the owners' code) of the archive's tables whose rows must migrate, by SQL name. */
|
|
71
|
+
readonly histories: ReadonlyMap<string, TableDefinition>;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* The archive's tables whose rows must migrate before they can be merged into `store` (recorded at a newer version,
|
|
75
|
+
* or exported `migrating`): their owners must be live for their histories. By SQL name.
|
|
76
|
+
*/
|
|
77
|
+
export declare function tablesToMigrate(store: Store, archive: HostArchive): string[];
|
|
78
|
+
/**
|
|
79
|
+
* The owners (object types) whose data an operation on host `key` changes: of tables with a `host(...)` column of its
|
|
80
|
+
* kind (recorded, and the archive's), of records belonging to it, and of the archive's records.
|
|
81
|
+
*/
|
|
82
|
+
export declare function hostDataOwners(store: Store, key: string, archive: HostArchive | undefined, context: Context): Promise<Set<string>>;
|
|
83
|
+
/**
|
|
84
|
+
* Imports `archive` into `store` in one commit (spec §4) under `plan.target`: the store's data of it refused or, with
|
|
85
|
+
* `existing: "replace"`, retired and deleted first; tables the store does not record created from the archive,
|
|
86
|
+
* recorded ones checked against the archive's metadata (the recorded host column decides) or migrated through their
|
|
87
|
+
* histories; rows that would replace another row refused; records created with fresh ids at the commit's seq, their
|
|
88
|
+
* values as bases; `commit.after` staged after it. Internal: the host coordinates it.
|
|
89
|
+
*/
|
|
90
|
+
export declare function importHostData(store: Store, archive: HostArchive, plan: HostImportPlan, commit: HostCommit, context: Context): Promise<HostDataCounts>;
|
|
91
|
+
/**
|
|
92
|
+
* Deletes the data of host `key` (canonical) from `store` in one commit: every record whose `host` is the key retired,
|
|
93
|
+
* every row holding it in a `host(...)` column of its kind deleted (`deleteWhere`, counted); with `owners`, only the
|
|
94
|
+
* records and tables of those owners (object types). Internal, as import.
|
|
95
|
+
*/
|
|
96
|
+
export declare function deleteHostData(store: Store, key: string, commit: HostCommit, context: Context, owners?: ReadonlySet<string>): Promise<HostDataCounts>;
|
|
97
|
+
/** The owner (object type) of table `table`, from its SQL name `<owner>:<table>`. */
|
|
98
|
+
export declare function tableOwner(table: string): string;
|
|
99
|
+
export {};
|
|
100
|
+
//# sourceMappingURL=host-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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