@diffra-ai/chord 0.0.0-stage → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +237 -0
- package/README.md +227 -2
- package/dist/context/index.d.ts +43 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +112 -0
- package/dist/context/index.js.map +1 -0
- package/dist/contracts/accepts.d.ts +91 -0
- package/dist/contracts/accepts.d.ts.map +1 -0
- package/dist/contracts/accepts.js +145 -0
- package/dist/contracts/accepts.js.map +1 -0
- package/dist/contracts/contract.d.ts +238 -0
- package/dist/contracts/contract.d.ts.map +1 -0
- package/dist/contracts/contract.js +69 -0
- package/dist/contracts/contract.js.map +1 -0
- package/dist/contracts/declare.d.ts +144 -0
- package/dist/contracts/declare.d.ts.map +1 -0
- package/dist/contracts/declare.js +207 -0
- package/dist/contracts/declare.js.map +1 -0
- package/dist/contracts/evolve.d.ts +142 -0
- package/dist/contracts/evolve.d.ts.map +1 -0
- package/dist/contracts/evolve.js +216 -0
- package/dist/contracts/evolve.js.map +1 -0
- package/dist/contracts/fingerprint.d.ts +16 -0
- package/dist/contracts/fingerprint.d.ts.map +1 -0
- package/dist/contracts/fingerprint.js +61 -0
- package/dist/contracts/fingerprint.js.map +1 -0
- package/dist/contracts/history.d.ts +79 -0
- package/dist/contracts/history.d.ts.map +1 -0
- package/dist/contracts/history.js +3 -0
- package/dist/contracts/history.js.map +1 -0
- package/dist/contracts/host-kind.d.ts +58 -0
- package/dist/contracts/host-kind.d.ts.map +1 -0
- package/dist/contracts/host-kind.js +122 -0
- package/dist/contracts/host-kind.js.map +1 -0
- package/dist/contracts/index.d.ts +8 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +7 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/contracts/internal.d.ts +12 -0
- package/dist/contracts/internal.d.ts.map +1 -0
- package/dist/contracts/internal.js +11 -0
- package/dist/contracts/internal.js.map +1 -0
- package/dist/contracts/names.d.ts +3 -0
- package/dist/contracts/names.d.ts.map +1 -0
- package/dist/contracts/names.js +13 -0
- package/dist/contracts/names.js.map +1 -0
- package/dist/contracts/params.d.ts +28 -0
- package/dist/contracts/params.d.ts.map +1 -0
- package/dist/contracts/params.js +55 -0
- package/dist/contracts/params.js.map +1 -0
- package/dist/contracts/schema.d.ts +144 -0
- package/dist/contracts/schema.d.ts.map +1 -0
- package/dist/contracts/schema.js +144 -0
- package/dist/contracts/schema.js.map +1 -0
- package/dist/contracts/snapshot.d.ts +16 -0
- package/dist/contracts/snapshot.d.ts.map +1 -0
- package/dist/contracts/snapshot.js +167 -0
- package/dist/contracts/snapshot.js.map +1 -0
- package/dist/data/args.d.ts +50 -0
- package/dist/data/args.d.ts.map +1 -0
- package/dist/data/args.js +83 -0
- package/dist/data/args.js.map +1 -0
- package/dist/data/errors.d.ts +80 -0
- package/dist/data/errors.d.ts.map +1 -0
- package/dist/data/errors.js +116 -0
- package/dist/data/errors.js.map +1 -0
- package/dist/data/failure.d.ts +31 -0
- package/dist/data/failure.d.ts.map +1 -0
- package/dist/data/failure.js +78 -0
- package/dist/data/failure.js.map +1 -0
- package/dist/data/index.d.ts +4 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +5 -0
- package/dist/data/index.js.map +1 -0
- package/dist/data/internal.d.ts +7 -0
- package/dist/data/internal.d.ts.map +1 -0
- package/dist/data/internal.js +8 -0
- package/dist/data/internal.js.map +1 -0
- package/dist/data/params.d.ts +20 -0
- package/dist/data/params.d.ts.map +1 -0
- package/dist/data/params.js +31 -0
- package/dist/data/params.js.map +1 -0
- package/dist/data/principal.d.ts +28 -0
- package/dist/data/principal.d.ts.map +1 -0
- package/dist/data/principal.js +64 -0
- package/dist/data/principal.js.map +1 -0
- package/dist/data/validator.d.ts +12 -0
- package/dist/data/validator.d.ts.map +1 -0
- package/dist/data/validator.js +35 -0
- package/dist/data/validator.js.map +1 -0
- package/dist/delta/apply-immutable-trusted.d.ts +4 -0
- package/dist/delta/apply-immutable-trusted.d.ts.map +1 -0
- package/dist/delta/apply-immutable-trusted.js +126 -0
- package/dist/delta/apply-immutable-trusted.js.map +1 -0
- package/dist/delta/diff.d.ts +5 -0
- package/dist/delta/diff.d.ts.map +1 -0
- package/dist/delta/diff.js +435 -0
- package/dist/delta/diff.js.map +1 -0
- package/dist/delta/draft.d.ts +5 -0
- package/dist/delta/draft.d.ts.map +1 -0
- package/dist/delta/draft.js +2 -0
- package/dist/delta/draft.js.map +1 -0
- package/dist/delta/index.d.ts +120 -0
- package/dist/delta/index.d.ts.map +1 -0
- package/dist/delta/index.js +697 -0
- package/dist/delta/index.js.map +1 -0
- package/dist/delta/pending.d.ts +36 -0
- package/dist/delta/pending.d.ts.map +1 -0
- package/dist/delta/pending.js +143 -0
- package/dist/delta/pending.js.map +1 -0
- package/dist/delta/revision-validator.d.ts +7 -0
- package/dist/delta/revision-validator.d.ts.map +1 -0
- package/dist/delta/revision-validator.js +71 -0
- package/dist/delta/revision-validator.js.map +1 -0
- package/dist/delta/tracker.d.ts +38 -0
- package/dist/delta/tracker.d.ts.map +1 -0
- package/dist/delta/tracker.js +2175 -0
- package/dist/delta/tracker.js.map +1 -0
- package/dist/documents/address-source.d.ts +20 -0
- package/dist/documents/address-source.d.ts.map +1 -0
- package/dist/documents/address-source.js +44 -0
- package/dist/documents/address-source.js.map +1 -0
- package/dist/documents/definition.d.ts +92 -0
- package/dist/documents/definition.d.ts.map +1 -0
- package/dist/documents/definition.js +81 -0
- package/dist/documents/definition.js.map +1 -0
- package/dist/documents/documents.d.ts +129 -0
- package/dist/documents/documents.d.ts.map +1 -0
- package/dist/documents/documents.js +258 -0
- package/dist/documents/documents.js.map +1 -0
- package/dist/documents/fence.d.ts +9 -0
- package/dist/documents/fence.d.ts.map +1 -0
- package/dist/documents/fence.js +15 -0
- package/dist/documents/fence.js.map +1 -0
- package/dist/documents/handles.d.ts +81 -0
- package/dist/documents/handles.d.ts.map +1 -0
- package/dist/documents/handles.js +74 -0
- package/dist/documents/handles.js.map +1 -0
- package/dist/documents/index.d.ts +4 -0
- package/dist/documents/index.d.ts.map +1 -0
- package/dist/documents/index.js +3 -0
- package/dist/documents/index.js.map +1 -0
- package/dist/documents/internal.d.ts +9 -0
- package/dist/documents/internal.d.ts.map +1 -0
- package/dist/documents/internal.js +9 -0
- package/dist/documents/internal.js.map +1 -0
- package/dist/documents/keyed-slot.d.ts +139 -0
- package/dist/documents/keyed-slot.d.ts.map +1 -0
- package/dist/documents/keyed-slot.js +478 -0
- package/dist/documents/keyed-slot.js.map +1 -0
- package/dist/documents/line.d.ts +7 -0
- package/dist/documents/line.d.ts.map +1 -0
- package/dist/documents/line.js +14 -0
- package/dist/documents/line.js.map +1 -0
- package/dist/documents/persistence.d.ts +120 -0
- package/dist/documents/persistence.d.ts.map +1 -0
- package/dist/documents/persistence.js +156 -0
- package/dist/documents/persistence.js.map +1 -0
- package/dist/documents/residency.d.ts +31 -0
- package/dist/documents/residency.d.ts.map +1 -0
- package/dist/documents/residency.js +93 -0
- package/dist/documents/residency.js.map +1 -0
- package/dist/documents/slot.d.ts +112 -0
- package/dist/documents/slot.d.ts.map +1 -0
- package/dist/documents/slot.js +190 -0
- package/dist/documents/slot.js.map +1 -0
- package/dist/documents/transaction.d.ts +143 -0
- package/dist/documents/transaction.d.ts.map +1 -0
- package/dist/documents/transaction.js +445 -0
- package/dist/documents/transaction.js.map +1 -0
- package/dist/host/activity.d.ts +31 -0
- package/dist/host/activity.d.ts.map +1 -0
- package/dist/host/activity.js +40 -0
- package/dist/host/activity.js.map +1 -0
- package/dist/host/adapted.d.ts +63 -0
- package/dist/host/adapted.d.ts.map +1 -0
- package/dist/host/adapted.js +298 -0
- package/dist/host/adapted.js.map +1 -0
- package/dist/host/admission.d.ts +137 -0
- package/dist/host/admission.d.ts.map +1 -0
- package/dist/host/admission.js +290 -0
- package/dist/host/admission.js.map +1 -0
- package/dist/host/attempt.d.ts +417 -0
- package/dist/host/attempt.d.ts.map +1 -0
- package/dist/host/attempt.js +1490 -0
- package/dist/host/attempt.js.map +1 -0
- package/dist/host/backoff.d.ts +29 -0
- package/dist/host/backoff.d.ts.map +1 -0
- package/dist/host/backoff.js +69 -0
- package/dist/host/backoff.js.map +1 -0
- package/dist/host/ctx.d.ts +94 -0
- package/dist/host/ctx.d.ts.map +1 -0
- package/dist/host/ctx.js +200 -0
- package/dist/host/ctx.js.map +1 -0
- package/dist/host/deadline.d.ts +12 -0
- package/dist/host/deadline.d.ts.map +1 -0
- package/dist/host/deadline.js +40 -0
- package/dist/host/deadline.js.map +1 -0
- package/dist/host/dependencies.d.ts +97 -0
- package/dist/host/dependencies.d.ts.map +1 -0
- package/dist/host/dependencies.js +148 -0
- package/dist/host/dependencies.js.map +1 -0
- package/dist/host/destination.d.ts +48 -0
- package/dist/host/destination.d.ts.map +1 -0
- package/dist/host/destination.js +101 -0
- package/dist/host/destination.js.map +1 -0
- package/dist/host/events.d.ts +114 -0
- package/dist/host/events.d.ts.map +1 -0
- package/dist/host/events.js +191 -0
- package/dist/host/events.js.map +1 -0
- package/dist/host/facet.d.ts +106 -0
- package/dist/host/facet.d.ts.map +1 -0
- package/dist/host/facet.js +55 -0
- package/dist/host/facet.js.map +1 -0
- package/dist/host/follow.d.ts +52 -0
- package/dist/host/follow.d.ts.map +1 -0
- package/dist/host/follow.js +207 -0
- package/dist/host/follow.js.map +1 -0
- package/dist/host/host-data.d.ts +62 -0
- package/dist/host/host-data.d.ts.map +1 -0
- package/dist/host/host-data.js +229 -0
- package/dist/host/host-data.js.map +1 -0
- package/dist/host/host.d.ts +641 -0
- package/dist/host/host.d.ts.map +1 -0
- package/dist/host/host.js +1449 -0
- package/dist/host/host.js.map +1 -0
- package/dist/host/index.d.ts +20 -0
- package/dist/host/index.d.ts.map +1 -0
- package/dist/host/index.js +7 -0
- package/dist/host/index.js.map +1 -0
- package/dist/host/internal.d.ts +13 -0
- package/dist/host/internal.d.ts.map +1 -0
- package/dist/host/internal.js +11 -0
- package/dist/host/internal.js.map +1 -0
- package/dist/host/list.d.ts +52 -0
- package/dist/host/list.d.ts.map +1 -0
- package/dist/host/list.js +149 -0
- package/dist/host/list.js.map +1 -0
- package/dist/host/members.d.ts +58 -0
- package/dist/host/members.d.ts.map +1 -0
- package/dist/host/members.js +178 -0
- package/dist/host/members.js.map +1 -0
- package/dist/host/named-query.d.ts +67 -0
- package/dist/host/named-query.d.ts.map +1 -0
- package/dist/host/named-query.js +166 -0
- package/dist/host/named-query.js.map +1 -0
- package/dist/host/native.d.ts +64 -0
- package/dist/host/native.d.ts.map +1 -0
- package/dist/host/native.js +126 -0
- package/dist/host/native.js.map +1 -0
- package/dist/host/object.d.ts +388 -0
- package/dist/host/object.d.ts.map +1 -0
- package/dist/host/object.js +1527 -0
- package/dist/host/object.js.map +1 -0
- package/dist/host/old-work.d.ts +34 -0
- package/dist/host/old-work.d.ts.map +1 -0
- package/dist/host/old-work.js +52 -0
- package/dist/host/old-work.js.map +1 -0
- package/dist/host/parked.d.ts +23 -0
- package/dist/host/parked.d.ts.map +1 -0
- package/dist/host/parked.js +79 -0
- package/dist/host/parked.js.map +1 -0
- package/dist/host/presence.d.ts +34 -0
- package/dist/host/presence.d.ts.map +1 -0
- package/dist/host/presence.js +117 -0
- package/dist/host/presence.js.map +1 -0
- package/dist/host/query-reader.d.ts +80 -0
- package/dist/host/query-reader.d.ts.map +1 -0
- package/dist/host/query-reader.js +182 -0
- package/dist/host/query-reader.js.map +1 -0
- package/dist/host/read-declarations.d.ts +75 -0
- package/dist/host/read-declarations.d.ts.map +1 -0
- package/dist/host/read-declarations.js +152 -0
- package/dist/host/read-declarations.js.map +1 -0
- package/dist/host/readiness.d.ts +27 -0
- package/dist/host/readiness.d.ts.map +1 -0
- package/dist/host/readiness.js +134 -0
- package/dist/host/readiness.js.map +1 -0
- package/dist/host/ref-state.d.ts +53 -0
- package/dist/host/ref-state.d.ts.map +1 -0
- package/dist/host/ref-state.js +83 -0
- package/dist/host/ref-state.js.map +1 -0
- package/dist/host/reference-events.d.ts +51 -0
- package/dist/host/reference-events.d.ts.map +1 -0
- package/dist/host/reference-events.js +133 -0
- package/dist/host/reference-events.js.map +1 -0
- package/dist/host/reference-keys.d.ts +36 -0
- package/dist/host/reference-keys.d.ts.map +1 -0
- package/dist/host/reference-keys.js +168 -0
- package/dist/host/reference-keys.js.map +1 -0
- package/dist/host/reference-source.d.ts +77 -0
- package/dist/host/reference-source.d.ts.map +1 -0
- package/dist/host/reference-source.js +326 -0
- package/dist/host/reference-source.js.map +1 -0
- package/dist/host/reference.d.ts +377 -0
- package/dist/host/reference.d.ts.map +1 -0
- package/dist/host/reference.js +986 -0
- package/dist/host/reference.js.map +1 -0
- package/dist/host/reload-cycle.d.ts +16 -0
- package/dist/host/reload-cycle.d.ts.map +1 -0
- package/dist/host/reload-cycle.js +81 -0
- package/dist/host/reload-cycle.js.map +1 -0
- package/dist/host/retry-on.d.ts +28 -0
- package/dist/host/retry-on.d.ts.map +1 -0
- package/dist/host/retry-on.js +52 -0
- package/dist/host/retry-on.js.map +1 -0
- package/dist/host/revocation.d.ts +16 -0
- package/dist/host/revocation.d.ts.map +1 -0
- package/dist/host/revocation.js +27 -0
- package/dist/host/revocation.js.map +1 -0
- package/dist/host/root.d.ts +37 -0
- package/dist/host/root.d.ts.map +1 -0
- package/dist/host/root.js +68 -0
- package/dist/host/root.js.map +1 -0
- package/dist/host/route-admission.d.ts +24 -0
- package/dist/host/route-admission.d.ts.map +1 -0
- package/dist/host/route-admission.js +238 -0
- package/dist/host/route-admission.js.map +1 -0
- package/dist/host/route.d.ts +88 -0
- package/dist/host/route.d.ts.map +1 -0
- package/dist/host/route.js +247 -0
- package/dist/host/route.js.map +1 -0
- package/dist/host/routines.d.ts +78 -0
- package/dist/host/routines.d.ts.map +1 -0
- package/dist/host/routines.js +398 -0
- package/dist/host/routines.js.map +1 -0
- package/dist/host/sleep.d.ts +9 -0
- package/dist/host/sleep.d.ts.map +1 -0
- package/dist/host/sleep.js +40 -0
- package/dist/host/sleep.js.map +1 -0
- package/dist/host/staging.d.ts +100 -0
- package/dist/host/staging.d.ts.map +1 -0
- package/dist/host/staging.js +413 -0
- package/dist/host/staging.js.map +1 -0
- package/dist/host/tiling.d.ts +57 -0
- package/dist/host/tiling.d.ts.map +1 -0
- package/dist/host/tiling.js +269 -0
- package/dist/host/tiling.js.map +1 -0
- package/dist/host/unbound-clock.d.ts +23 -0
- package/dist/host/unbound-clock.d.ts.map +1 -0
- package/dist/host/unbound-clock.js +58 -0
- package/dist/host/unbound-clock.js.map +1 -0
- package/dist/host/unbound.d.ts +37 -0
- package/dist/host/unbound.d.ts.map +1 -0
- package/dist/host/unbound.js +88 -0
- package/dist/host/unbound.js.map +1 -0
- package/dist/host/uuid.d.ts +3 -0
- package/dist/host/uuid.d.ts.map +1 -0
- package/dist/host/uuid.js +38 -0
- package/dist/host/uuid.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/jobs/definition.d.ts +96 -0
- package/dist/jobs/definition.d.ts.map +1 -0
- package/dist/jobs/definition.js +83 -0
- package/dist/jobs/definition.js.map +1 -0
- package/dist/jobs/index.d.ts +5 -0
- package/dist/jobs/index.d.ts.map +1 -0
- package/dist/jobs/index.js +3 -0
- package/dist/jobs/index.js.map +1 -0
- package/dist/jobs/internal.d.ts +3 -0
- package/dist/jobs/internal.d.ts.map +1 -0
- package/dist/jobs/internal.js +4 -0
- package/dist/jobs/internal.js.map +1 -0
- package/dist/jobs/job.d.ts +149 -0
- package/dist/jobs/job.d.ts.map +1 -0
- package/dist/jobs/job.js +387 -0
- package/dist/jobs/job.js.map +1 -0
- package/dist/jobs/persisted.d.ts +38 -0
- package/dist/jobs/persisted.d.ts.map +1 -0
- package/dist/jobs/persisted.js +95 -0
- package/dist/jobs/persisted.js.map +1 -0
- package/dist/jobs/records.d.ts +231 -0
- package/dist/jobs/records.d.ts.map +1 -0
- package/dist/jobs/records.js +871 -0
- package/dist/jobs/records.js.map +1 -0
- package/dist/jobs/run-states.d.ts +69 -0
- package/dist/jobs/run-states.d.ts.map +1 -0
- package/dist/jobs/run-states.js +228 -0
- package/dist/jobs/run-states.js.map +1 -0
- package/dist/jobs/run.d.ts +117 -0
- package/dist/jobs/run.d.ts.map +1 -0
- package/dist/jobs/run.js +204 -0
- package/dist/jobs/run.js.map +1 -0
- package/dist/jobs/running.d.ts +44 -0
- package/dist/jobs/running.d.ts.map +1 -0
- package/dist/jobs/running.js +117 -0
- package/dist/jobs/running.js.map +1 -0
- package/dist/jobs/stored.d.ts +63 -0
- package/dist/jobs/stored.d.ts.map +1 -0
- package/dist/jobs/stored.js +55 -0
- package/dist/jobs/stored.js.map +1 -0
- package/dist/json.d.ts +18 -0
- package/dist/json.d.ts.map +1 -0
- package/dist/json.js +124 -0
- package/dist/json.js.map +1 -0
- package/dist/link/binary.d.ts +4 -0
- package/dist/link/binary.d.ts.map +1 -0
- package/dist/link/binary.js +574 -0
- package/dist/link/binary.js.map +1 -0
- package/dist/link/channel.d.ts +78 -0
- package/dist/link/channel.d.ts.map +1 -0
- package/dist/link/channel.js +252 -0
- package/dist/link/channel.js.map +1 -0
- package/dist/link/errors.d.ts +7 -0
- package/dist/link/errors.d.ts.map +1 -0
- package/dist/link/errors.js +21 -0
- package/dist/link/errors.js.map +1 -0
- package/dist/link/index.d.ts +8 -0
- package/dist/link/index.d.ts.map +1 -0
- package/dist/link/index.js +8 -0
- package/dist/link/index.js.map +1 -0
- package/dist/link/internal.d.ts +9 -0
- package/dist/link/internal.d.ts.map +1 -0
- package/dist/link/internal.js +10 -0
- package/dist/link/internal.js.map +1 -0
- package/dist/link/ipc.d.ts +22 -0
- package/dist/link/ipc.d.ts.map +1 -0
- package/dist/link/ipc.js +64 -0
- package/dist/link/ipc.js.map +1 -0
- package/dist/link/link.d.ts +34 -0
- package/dist/link/link.d.ts.map +1 -0
- package/dist/link/link.js +87 -0
- package/dist/link/link.js.map +1 -0
- package/dist/link/message.d.ts +278 -0
- package/dist/link/message.d.ts.map +1 -0
- package/dist/link/message.js +179 -0
- package/dist/link/message.js.map +1 -0
- package/dist/link/part.d.ts +80 -0
- package/dist/link/part.d.ts.map +1 -0
- package/dist/link/part.js +165 -0
- package/dist/link/part.js.map +1 -0
- package/dist/link/text.d.ts +6 -0
- package/dist/link/text.d.ts.map +1 -0
- package/dist/link/text.js +383 -0
- package/dist/link/text.js.map +1 -0
- package/dist/link/values.d.ts +40 -0
- package/dist/link/values.d.ts.map +1 -0
- package/dist/link/values.js +121 -0
- package/dist/link/values.js.map +1 -0
- package/dist/link/websocket.d.ts +26 -0
- package/dist/link/websocket.d.ts.map +1 -0
- package/dist/link/websocket.js +91 -0
- package/dist/link/websocket.js.map +1 -0
- package/dist/node/app/app.d.ts +283 -0
- package/dist/node/app/app.d.ts.map +1 -0
- package/dist/node/app/app.js +598 -0
- package/dist/node/app/app.js.map +1 -0
- package/dist/node/app/archive.d.ts +44 -0
- package/dist/node/app/archive.d.ts.map +1 -0
- package/dist/node/app/archive.js +212 -0
- package/dist/node/app/archive.js.map +1 -0
- package/dist/node/app/blobs.d.ts +23 -0
- package/dist/node/app/blobs.d.ts.map +1 -0
- package/dist/node/app/blobs.js +64 -0
- package/dist/node/app/blobs.js.map +1 -0
- package/dist/node/app/data.d.ts +40 -0
- package/dist/node/app/data.d.ts.map +1 -0
- package/dist/node/app/data.js +47 -0
- package/dist/node/app/data.js.map +1 -0
- package/dist/node/app/ephemeral-sign-ins.d.ts +20 -0
- package/dist/node/app/ephemeral-sign-ins.d.ts.map +1 -0
- package/dist/node/app/ephemeral-sign-ins.js +69 -0
- package/dist/node/app/ephemeral-sign-ins.js.map +1 -0
- package/dist/node/app/ephemeral.d.ts +11 -0
- package/dist/node/app/ephemeral.d.ts.map +1 -0
- package/dist/node/app/ephemeral.js +34 -0
- package/dist/node/app/ephemeral.js.map +1 -0
- package/dist/node/app/files-copy.d.ts +13 -0
- package/dist/node/app/files-copy.d.ts.map +1 -0
- package/dist/node/app/files-copy.js +86 -0
- package/dist/node/app/files-copy.js.map +1 -0
- package/dist/node/app/files-entry.d.ts +4 -0
- package/dist/node/app/files-entry.d.ts.map +1 -0
- package/dist/node/app/files-entry.js +7 -0
- package/dist/node/app/files-entry.js.map +1 -0
- package/dist/node/app/files-index.d.ts +180 -0
- package/dist/node/app/files-index.d.ts.map +1 -0
- package/dist/node/app/files-index.js +535 -0
- package/dist/node/app/files-index.js.map +1 -0
- package/dist/node/app/files.d.ts +388 -0
- package/dist/node/app/files.d.ts.map +1 -0
- package/dist/node/app/files.js +368 -0
- package/dist/node/app/files.js.map +1 -0
- package/dist/node/app/folder-views.d.ts +21 -0
- package/dist/node/app/folder-views.d.ts.map +1 -0
- package/dist/node/app/folder-views.js +55 -0
- package/dist/node/app/folder-views.js.map +1 -0
- package/dist/node/app/index.d.ts +12 -0
- package/dist/node/app/index.d.ts.map +1 -0
- package/dist/node/app/index.js +15 -0
- package/dist/node/app/index.js.map +1 -0
- package/dist/node/app/info.d.ts +70 -0
- package/dist/node/app/info.d.ts.map +1 -0
- package/dist/node/app/info.js +37 -0
- package/dist/node/app/info.js.map +1 -0
- package/dist/node/app/invite.d.ts +5 -0
- package/dist/node/app/invite.d.ts.map +1 -0
- package/dist/node/app/invite.js +64 -0
- package/dist/node/app/invite.js.map +1 -0
- package/dist/node/app/layout.d.ts +36 -0
- package/dist/node/app/layout.d.ts.map +1 -0
- package/dist/node/app/layout.js +87 -0
- package/dist/node/app/layout.js.map +1 -0
- package/dist/node/app/owner.d.ts +31 -0
- package/dist/node/app/owner.d.ts.map +1 -0
- package/dist/node/app/owner.js +104 -0
- package/dist/node/app/owner.js.map +1 -0
- package/dist/node/app/pairing.d.ts +55 -0
- package/dist/node/app/pairing.d.ts.map +1 -0
- package/dist/node/app/pairing.js +183 -0
- package/dist/node/app/pairing.js.map +1 -0
- package/dist/node/app/secrets.d.ts +16 -0
- package/dist/node/app/secrets.d.ts.map +1 -0
- package/dist/node/app/secrets.js +72 -0
- package/dist/node/app/secrets.js.map +1 -0
- package/dist/node/app/sign-ins.d.ts +74 -0
- package/dist/node/app/sign-ins.d.ts.map +1 -0
- package/dist/node/app/sign-ins.js +222 -0
- package/dist/node/app/sign-ins.js.map +1 -0
- package/dist/node/app/tar.d.ts +24 -0
- package/dist/node/app/tar.d.ts.map +1 -0
- package/dist/node/app/tar.js +167 -0
- package/dist/node/app/tar.js.map +1 -0
- package/dist/node/app/uploads.d.ts +37 -0
- package/dist/node/app/uploads.d.ts.map +1 -0
- package/dist/node/app/uploads.js +157 -0
- package/dist/node/app/uploads.js.map +1 -0
- package/dist/node/app/users.d.ts +39 -0
- package/dist/node/app/users.d.ts.map +1 -0
- package/dist/node/app/users.js +62 -0
- package/dist/node/app/users.js.map +1 -0
- package/dist/node/app/worker.d.ts +18 -0
- package/dist/node/app/worker.d.ts.map +1 -0
- package/dist/node/app/worker.js +84 -0
- package/dist/node/app/worker.js.map +1 -0
- package/dist/node/compression.d.ts +7 -0
- package/dist/node/compression.d.ts.map +1 -0
- package/dist/node/compression.js +25 -0
- package/dist/node/compression.js.map +1 -0
- package/dist/node/http/admission.d.ts +64 -0
- package/dist/node/http/admission.d.ts.map +1 -0
- package/dist/node/http/admission.js +137 -0
- package/dist/node/http/admission.js.map +1 -0
- package/dist/node/http/authenticate.d.ts +21 -0
- package/dist/node/http/authenticate.d.ts.map +1 -0
- package/dist/node/http/authenticate.js +34 -0
- package/dist/node/http/authenticate.js.map +1 -0
- package/dist/node/http/cookies.d.ts +32 -0
- package/dist/node/http/cookies.d.ts.map +1 -0
- package/dist/node/http/cookies.js +70 -0
- package/dist/node/http/cookies.js.map +1 -0
- package/dist/node/http/file.d.ts +23 -0
- package/dist/node/http/file.d.ts.map +1 -0
- package/dist/node/http/file.js +94 -0
- package/dist/node/http/file.js.map +1 -0
- package/dist/node/http/headers.d.ts +37 -0
- package/dist/node/http/headers.d.ts.map +1 -0
- package/dist/node/http/headers.js +136 -0
- package/dist/node/http/headers.js.map +1 -0
- package/dist/node/http/http.d.ts +114 -0
- package/dist/node/http/http.d.ts.map +1 -0
- package/dist/node/http/http.js +524 -0
- package/dist/node/http/http.js.map +1 -0
- package/dist/node/http/incoming.d.ts +19 -0
- package/dist/node/http/incoming.d.ts.map +1 -0
- package/dist/node/http/incoming.js +31 -0
- package/dist/node/http/incoming.js.map +1 -0
- package/dist/node/http/index.d.ts +11 -0
- package/dist/node/http/index.d.ts.map +1 -0
- package/dist/node/http/index.js +12 -0
- package/dist/node/http/index.js.map +1 -0
- package/dist/node/http/node.d.ts +78 -0
- package/dist/node/http/node.d.ts.map +1 -0
- package/dist/node/http/node.js +291 -0
- package/dist/node/http/node.js.map +1 -0
- package/dist/node/http/request.d.ts +60 -0
- package/dist/node/http/request.d.ts.map +1 -0
- package/dist/node/http/request.js +118 -0
- package/dist/node/http/request.js.map +1 -0
- package/dist/node/http/response.d.ts +63 -0
- package/dist/node/http/response.d.ts.map +1 -0
- package/dist/node/http/response.js +202 -0
- package/dist/node/http/response.js.map +1 -0
- package/dist/node/http/router.d.ts +132 -0
- package/dist/node/http/router.d.ts.map +1 -0
- package/dist/node/http/router.js +267 -0
- package/dist/node/http/router.js.map +1 -0
- package/dist/node/http/upgrades.d.ts +62 -0
- package/dist/node/http/upgrades.d.ts.map +1 -0
- package/dist/node/http/upgrades.js +194 -0
- package/dist/node/http/upgrades.js.map +1 -0
- package/dist/node/plugins/base-inputs.d.ts +14 -0
- package/dist/node/plugins/base-inputs.d.ts.map +1 -0
- package/dist/node/plugins/base-inputs.js +33 -0
- package/dist/node/plugins/base-inputs.js.map +1 -0
- package/dist/node/plugins/build.d.ts +77 -0
- package/dist/node/plugins/build.d.ts.map +1 -0
- package/dist/node/plugins/build.js +577 -0
- package/dist/node/plugins/build.js.map +1 -0
- package/dist/node/plugins/css-modules.d.ts +13 -0
- package/dist/node/plugins/css-modules.d.ts.map +1 -0
- package/dist/node/plugins/css-modules.js +58 -0
- package/dist/node/plugins/css-modules.js.map +1 -0
- package/dist/node/plugins/discover.d.ts +67 -0
- package/dist/node/plugins/discover.d.ts.map +1 -0
- package/dist/node/plugins/discover.js +369 -0
- package/dist/node/plugins/discover.js.map +1 -0
- package/dist/node/plugins/evaluate.d.ts +33 -0
- package/dist/node/plugins/evaluate.d.ts.map +1 -0
- package/dist/node/plugins/evaluate.js +121 -0
- package/dist/node/plugins/evaluate.js.map +1 -0
- package/dist/node/plugins/index.d.ts +11 -0
- package/dist/node/plugins/index.d.ts.map +1 -0
- package/dist/node/plugins/index.js +13 -0
- package/dist/node/plugins/index.js.map +1 -0
- package/dist/node/plugins/install.d.ts +40 -0
- package/dist/node/plugins/install.d.ts.map +1 -0
- package/dist/node/plugins/install.js +215 -0
- package/dist/node/plugins/install.js.map +1 -0
- package/dist/node/plugins/plugins.d.ts +165 -0
- package/dist/node/plugins/plugins.d.ts.map +1 -0
- package/dist/node/plugins/plugins.js +268 -0
- package/dist/node/plugins/plugins.js.map +1 -0
- package/dist/node/plugins/runtime.d.ts +57 -0
- package/dist/node/plugins/runtime.d.ts.map +1 -0
- package/dist/node/plugins/runtime.js +92 -0
- package/dist/node/plugins/runtime.js.map +1 -0
- package/dist/node/plugins/stack.d.ts +16 -0
- package/dist/node/plugins/stack.d.ts.map +1 -0
- package/dist/node/plugins/stack.js +70 -0
- package/dist/node/plugins/stack.js.map +1 -0
- package/dist/node/plugins/testing.d.ts +58 -0
- package/dist/node/plugins/testing.d.ts.map +1 -0
- package/dist/node/plugins/testing.js +210 -0
- package/dist/node/plugins/testing.js.map +1 -0
- package/dist/node/plugins/watcher.d.ts +69 -0
- package/dist/node/plugins/watcher.d.ts.map +1 -0
- package/dist/node/plugins/watcher.js +622 -0
- package/dist/node/plugins/watcher.js.map +1 -0
- package/dist/node/surfaces/bundle.d.ts +40 -0
- package/dist/node/surfaces/bundle.d.ts.map +1 -0
- package/dist/node/surfaces/bundle.js +121 -0
- package/dist/node/surfaces/bundle.js.map +1 -0
- package/dist/node/surfaces/current.d.ts +17 -0
- package/dist/node/surfaces/current.d.ts.map +1 -0
- package/dist/node/surfaces/current.js +54 -0
- package/dist/node/surfaces/current.js.map +1 -0
- package/dist/node/surfaces/index.d.ts +6 -0
- package/dist/node/surfaces/index.d.ts.map +1 -0
- package/dist/node/surfaces/index.js +6 -0
- package/dist/node/surfaces/index.js.map +1 -0
- package/dist/node/surfaces/published.d.ts +27 -0
- package/dist/node/surfaces/published.d.ts.map +1 -0
- package/dist/node/surfaces/published.js +142 -0
- package/dist/node/surfaces/published.js.map +1 -0
- package/dist/node/surfaces/served.d.ts +17 -0
- package/dist/node/surfaces/served.d.ts.map +1 -0
- package/dist/node/surfaces/served.js +44 -0
- package/dist/node/surfaces/served.js.map +1 -0
- package/dist/node/surfaces/surface-build.d.ts +53 -0
- package/dist/node/surfaces/surface-build.d.ts.map +1 -0
- package/dist/node/surfaces/surface-build.js +105 -0
- package/dist/node/surfaces/surface-build.js.map +1 -0
- package/dist/node/surfaces/tui.d.ts +42 -0
- package/dist/node/surfaces/tui.d.ts.map +1 -0
- package/dist/node/surfaces/tui.js +59 -0
- package/dist/node/surfaces/tui.js.map +1 -0
- package/dist/node/surfaces/web.d.ts +82 -0
- package/dist/node/surfaces/web.d.ts.map +1 -0
- package/dist/node/surfaces/web.js +122 -0
- package/dist/node/surfaces/web.js.map +1 -0
- package/dist/node/tui/actions.d.ts +49 -0
- package/dist/node/tui/actions.d.ts.map +1 -0
- package/dist/node/tui/actions.js +195 -0
- package/dist/node/tui/actions.js.map +1 -0
- package/dist/node/tui/credentials.d.ts +17 -0
- package/dist/node/tui/credentials.d.ts.map +1 -0
- package/dist/node/tui/credentials.js +54 -0
- package/dist/node/tui/credentials.js.map +1 -0
- package/dist/node/tui/filter.d.ts +5 -0
- package/dist/node/tui/filter.d.ts.map +1 -0
- package/dist/node/tui/filter.js +79 -0
- package/dist/node/tui/filter.js.map +1 -0
- package/dist/node/tui/index.d.ts +6 -0
- package/dist/node/tui/index.d.ts.map +1 -0
- package/dist/node/tui/index.js +6 -0
- package/dist/node/tui/index.js.map +1 -0
- package/dist/node/tui/launcher.d.ts +40 -0
- package/dist/node/tui/launcher.d.ts.map +1 -0
- package/dist/node/tui/launcher.js +439 -0
- package/dist/node/tui/launcher.js.map +1 -0
- package/dist/node/tui/pipe.d.ts +18 -0
- package/dist/node/tui/pipe.d.ts.map +1 -0
- package/dist/node/tui/pipe.js +134 -0
- package/dist/node/tui/pipe.js.map +1 -0
- package/dist/node/tui/sandbox.d.ts +54 -0
- package/dist/node/tui/sandbox.d.ts.map +1 -0
- package/dist/node/tui/sandbox.js +431 -0
- package/dist/node/tui/sandbox.js.map +1 -0
- package/dist/node/workers/base.d.ts +30 -0
- package/dist/node/workers/base.d.ts.map +1 -0
- package/dist/node/workers/base.js +260 -0
- package/dist/node/workers/base.js.map +1 -0
- package/dist/node/workers/child.d.ts +4 -0
- package/dist/node/workers/child.d.ts.map +1 -0
- package/dist/node/workers/child.js +6 -0
- package/dist/node/workers/child.js.map +1 -0
- package/dist/node/workers/control.d.ts +83 -0
- package/dist/node/workers/control.d.ts.map +1 -0
- package/dist/node/workers/control.js +77 -0
- package/dist/node/workers/control.js.map +1 -0
- package/dist/node/workers/index.d.ts +4 -0
- package/dist/node/workers/index.d.ts.map +1 -0
- package/dist/node/workers/index.js +7 -0
- package/dist/node/workers/index.js.map +1 -0
- package/dist/node/workers/lock.d.ts +30 -0
- package/dist/node/workers/lock.d.ts.map +1 -0
- package/dist/node/workers/lock.js +180 -0
- package/dist/node/workers/lock.js.map +1 -0
- package/dist/node/workers/main.d.ts +46 -0
- package/dist/node/workers/main.d.ts.map +1 -0
- package/dist/node/workers/main.js +230 -0
- package/dist/node/workers/main.js.map +1 -0
- package/dist/node/workers/process.d.ts +43 -0
- package/dist/node/workers/process.d.ts.map +1 -0
- package/dist/node/workers/process.js +137 -0
- package/dist/node/workers/process.js.map +1 -0
- package/dist/node/workers/workers.d.ts +144 -0
- package/dist/node/workers/workers.d.ts.map +1 -0
- package/dist/node/workers/workers.js +723 -0
- package/dist/node/workers/workers.js.map +1 -0
- package/dist/output.d.ts +91 -0
- package/dist/output.d.ts.map +1 -0
- package/dist/output.js +362 -0
- package/dist/output.js.map +1 -0
- package/dist/react/hooks.d.ts +61 -0
- package/dist/react/hooks.d.ts.map +1 -0
- package/dist/react/hooks.js +119 -0
- package/dist/react/hooks.js.map +1 -0
- package/dist/react/index.d.ts +4 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +4 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/stores.d.ts +9 -0
- package/dist/react/stores.d.ts.map +1 -0
- package/dist/react/stores.js +37 -0
- package/dist/react/stores.js.map +1 -0
- package/dist/registries/contribution.d.ts +50 -0
- package/dist/registries/contribution.d.ts.map +1 -0
- package/dist/registries/contribution.js +129 -0
- package/dist/registries/contribution.js.map +1 -0
- package/dist/registries/entries.d.ts +18 -0
- package/dist/registries/entries.d.ts.map +1 -0
- package/dist/registries/entries.js +42 -0
- package/dist/registries/entries.js.map +1 -0
- package/dist/registries/index.d.ts +3 -0
- package/dist/registries/index.d.ts.map +1 -0
- package/dist/registries/index.js +5 -0
- package/dist/registries/index.js.map +1 -0
- package/dist/registries/internal.d.ts +4 -0
- package/dist/registries/internal.d.ts.map +1 -0
- package/dist/registries/internal.js +5 -0
- package/dist/registries/internal.js.map +1 -0
- package/dist/registries/record.d.ts +115 -0
- package/dist/registries/record.d.ts.map +1 -0
- package/dist/registries/record.js +283 -0
- package/dist/registries/record.js.map +1 -0
- package/dist/registries/registry.d.ts +74 -0
- package/dist/registries/registry.d.ts.map +1 -0
- package/dist/registries/registry.js +14 -0
- package/dist/registries/registry.js.map +1 -0
- package/dist/registries/value.d.ts +48 -0
- package/dist/registries/value.d.ts.map +1 -0
- package/dist/registries/value.js +224 -0
- package/dist/registries/value.js.map +1 -0
- package/dist/remote/calls.d.ts +34 -0
- package/dist/remote/calls.d.ts.map +1 -0
- package/dist/remote/calls.js +75 -0
- package/dist/remote/calls.js.map +1 -0
- package/dist/remote/consumer.d.ts +59 -0
- package/dist/remote/consumer.d.ts.map +1 -0
- package/dist/remote/consumer.js +468 -0
- package/dist/remote/consumer.js.map +1 -0
- package/dist/remote/hold.d.ts +147 -0
- package/dist/remote/hold.d.ts.map +1 -0
- package/dist/remote/hold.js +653 -0
- package/dist/remote/hold.js.map +1 -0
- package/dist/remote/host-link.d.ts +81 -0
- package/dist/remote/host-link.d.ts.map +1 -0
- package/dist/remote/host-link.js +198 -0
- package/dist/remote/host-link.js.map +1 -0
- package/dist/remote/internal.d.ts +6 -0
- package/dist/remote/internal.d.ts.map +1 -0
- package/dist/remote/internal.js +6 -0
- package/dist/remote/internal.js.map +1 -0
- package/dist/remote/path.d.ts +105 -0
- package/dist/remote/path.d.ts.map +1 -0
- package/dist/remote/path.js +197 -0
- package/dist/remote/path.js.map +1 -0
- package/dist/remote/provider.d.ts +113 -0
- package/dist/remote/provider.d.ts.map +1 -0
- package/dist/remote/provider.js +787 -0
- package/dist/remote/provider.js.map +1 -0
- package/dist/remote/relay.d.ts +126 -0
- package/dist/remote/relay.d.ts.map +1 -0
- package/dist/remote/relay.js +334 -0
- package/dist/remote/relay.js.map +1 -0
- package/dist/remote/remote-object.d.ts +181 -0
- package/dist/remote/remote-object.d.ts.map +1 -0
- package/dist/remote/remote-object.js +683 -0
- package/dist/remote/remote-object.js.map +1 -0
- package/dist/remote/replica.d.ts +66 -0
- package/dist/remote/replica.d.ts.map +1 -0
- package/dist/remote/replica.js +148 -0
- package/dist/remote/replica.js.map +1 -0
- package/dist/sqlite/cloudflare.d.ts +54 -0
- package/dist/sqlite/cloudflare.d.ts.map +1 -0
- package/dist/sqlite/cloudflare.js +144 -0
- package/dist/sqlite/cloudflare.js.map +1 -0
- package/dist/sqlite/database.d.ts +40 -0
- package/dist/sqlite/database.d.ts.map +1 -0
- package/dist/sqlite/database.js +2 -0
- package/dist/sqlite/database.js.map +1 -0
- package/dist/sqlite/index.d.ts +4 -0
- package/dist/sqlite/index.d.ts.map +1 -0
- package/dist/sqlite/index.js +3 -0
- package/dist/sqlite/index.js.map +1 -0
- package/dist/sqlite/migrations.d.ts +10 -0
- package/dist/sqlite/migrations.d.ts.map +1 -0
- package/dist/sqlite/migrations.js +33 -0
- package/dist/sqlite/migrations.js.map +1 -0
- package/dist/sqlite/node.d.ts +49 -0
- package/dist/sqlite/node.d.ts.map +1 -0
- package/dist/sqlite/node.js +197 -0
- package/dist/sqlite/node.js.map +1 -0
- package/dist/sqlite/schema.d.ts +3 -0
- package/dist/sqlite/schema.d.ts.map +1 -0
- package/dist/sqlite/schema.js +10 -0
- package/dist/sqlite/schema.js.map +1 -0
- package/dist/state/batch.d.ts +64 -0
- package/dist/state/batch.d.ts.map +1 -0
- package/dist/state/batch.js +164 -0
- package/dist/state/batch.js.map +1 -0
- package/dist/state/derive.d.ts +56 -0
- package/dist/state/derive.d.ts.map +1 -0
- package/dist/state/derive.js +192 -0
- package/dist/state/derive.js.map +1 -0
- package/dist/state/framed.d.ts +43 -0
- package/dist/state/framed.d.ts.map +1 -0
- package/dist/state/framed.js +121 -0
- package/dist/state/framed.js.map +1 -0
- package/dist/state/index.d.ts +6 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/index.js +4 -0
- package/dist/state/index.js.map +1 -0
- package/dist/state/internal.d.ts +7 -0
- package/dist/state/internal.d.ts.map +1 -0
- package/dist/state/internal.js +9 -0
- package/dist/state/internal.js.map +1 -0
- package/dist/state/native-source.d.ts +106 -0
- package/dist/state/native-source.d.ts.map +1 -0
- package/dist/state/native-source.js +240 -0
- package/dist/state/native-source.js.map +1 -0
- package/dist/state/watchable.d.ts +114 -0
- package/dist/state/watchable.d.ts.map +1 -0
- package/dist/state/watchable.js +156 -0
- package/dist/state/watchable.js.map +1 -0
- package/dist/state/writable.d.ts +32 -0
- package/dist/state/writable.d.ts.map +1 -0
- package/dist/state/writable.js +49 -0
- package/dist/state/writable.js.map +1 -0
- package/dist/store/adapter.d.ts +67 -0
- package/dist/store/adapter.d.ts.map +1 -0
- package/dist/store/adapter.js +118 -0
- package/dist/store/adapter.js.map +1 -0
- package/dist/store/allocator.d.ts +17 -0
- package/dist/store/allocator.d.ts.map +1 -0
- package/dist/store/allocator.js +30 -0
- package/dist/store/allocator.js.map +1 -0
- package/dist/store/applier.d.ts +8 -0
- package/dist/store/applier.d.ts.map +1 -0
- package/dist/store/applier.js +390 -0
- package/dist/store/applier.js.map +1 -0
- package/dist/store/apply-batch.d.ts +12 -0
- package/dist/store/apply-batch.d.ts.map +1 -0
- package/dist/store/apply-batch.js +83 -0
- package/dist/store/apply-batch.js.map +1 -0
- package/dist/store/archive.d.ts +36 -0
- package/dist/store/archive.d.ts.map +1 -0
- package/dist/store/archive.js +140 -0
- package/dist/store/archive.js.map +1 -0
- package/dist/store/backend.d.ts +10 -0
- package/dist/store/backend.d.ts.map +1 -0
- package/dist/store/backend.js +15 -0
- package/dist/store/backend.js.map +1 -0
- package/dist/store/catalog.d.ts +24 -0
- package/dist/store/catalog.d.ts.map +1 -0
- package/dist/store/catalog.js +17 -0
- package/dist/store/catalog.js.map +1 -0
- package/dist/store/claims.d.ts +23 -0
- package/dist/store/claims.d.ts.map +1 -0
- package/dist/store/claims.js +65 -0
- package/dist/store/claims.js.map +1 -0
- package/dist/store/column-set.d.ts +64 -0
- package/dist/store/column-set.d.ts.map +1 -0
- package/dist/store/column-set.js +96 -0
- package/dist/store/column-set.js.map +1 -0
- package/dist/store/columns.d.ts +93 -0
- package/dist/store/columns.d.ts.map +1 -0
- package/dist/store/columns.js +87 -0
- package/dist/store/columns.js.map +1 -0
- package/dist/store/engine.d.ts +182 -0
- package/dist/store/engine.d.ts.map +1 -0
- package/dist/store/engine.js +290 -0
- package/dist/store/engine.js.map +1 -0
- package/dist/store/evaluate.d.ts +17 -0
- package/dist/store/evaluate.d.ts.map +1 -0
- package/dist/store/evaluate.js +131 -0
- package/dist/store/evaluate.js.map +1 -0
- package/dist/store/export.d.ts +30 -0
- package/dist/store/export.d.ts.map +1 -0
- package/dist/store/export.js +221 -0
- package/dist/store/export.js.map +1 -0
- package/dist/store/expression.d.ts +254 -0
- package/dist/store/expression.d.ts.map +1 -0
- package/dist/store/expression.js +577 -0
- package/dist/store/expression.js.map +1 -0
- package/dist/store/host-column.d.ts +22 -0
- package/dist/store/host-column.d.ts.map +1 -0
- package/dist/store/host-column.js +36 -0
- package/dist/store/host-column.js.map +1 -0
- package/dist/store/host-data.d.ts +100 -0
- package/dist/store/host-data.d.ts.map +1 -0
- package/dist/store/host-data.js +397 -0
- package/dist/store/host-data.js.map +1 -0
- package/dist/store/import-migration.d.ts +19 -0
- package/dist/store/import-migration.d.ts.map +1 -0
- package/dist/store/import-migration.js +124 -0
- package/dist/store/import-migration.js.map +1 -0
- package/dist/store/import.d.ts +12 -0
- package/dist/store/import.d.ts.map +1 -0
- package/dist/store/import.js +279 -0
- package/dist/store/import.js.map +1 -0
- package/dist/store/index.d.ts +19 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +16 -0
- package/dist/store/index.js.map +1 -0
- package/dist/store/json-column.d.ts +33 -0
- package/dist/store/json-column.d.ts.map +1 -0
- package/dist/store/json-column.js +62 -0
- package/dist/store/json-column.js.map +1 -0
- package/dist/store/jsonl.d.ts +9 -0
- package/dist/store/jsonl.d.ts.map +1 -0
- package/dist/store/jsonl.js +61 -0
- package/dist/store/jsonl.js.map +1 -0
- package/dist/store/live-query.d.ts +72 -0
- package/dist/store/live-query.d.ts.map +1 -0
- package/dist/store/live-query.js +162 -0
- package/dist/store/live-query.js.map +1 -0
- package/dist/store/open-query.d.ts +90 -0
- package/dist/store/open-query.d.ts.map +1 -0
- package/dist/store/open-query.js +201 -0
- package/dist/store/open-query.js.map +1 -0
- package/dist/store/outbox.d.ts +26 -0
- package/dist/store/outbox.d.ts.map +1 -0
- package/dist/store/outbox.js +80 -0
- package/dist/store/outbox.js.map +1 -0
- package/dist/store/page.d.ts +14 -0
- package/dist/store/page.d.ts.map +1 -0
- package/dist/store/page.js +26 -0
- package/dist/store/page.js.map +1 -0
- package/dist/store/query.d.ts +65 -0
- package/dist/store/query.d.ts.map +1 -0
- package/dist/store/query.js +193 -0
- package/dist/store/query.js.map +1 -0
- package/dist/store/read-plan.d.ts +74 -0
- package/dist/store/read-plan.d.ts.map +1 -0
- package/dist/store/read-plan.js +324 -0
- package/dist/store/read-plan.js.map +1 -0
- package/dist/store/read.d.ts +81 -0
- package/dist/store/read.d.ts.map +1 -0
- package/dist/store/read.js +113 -0
- package/dist/store/read.js.map +1 -0
- package/dist/store/reads.d.ts +79 -0
- package/dist/store/reads.d.ts.map +1 -0
- package/dist/store/reads.js +255 -0
- package/dist/store/reads.js.map +1 -0
- package/dist/store/refusal.d.ts +15 -0
- package/dist/store/refusal.d.ts.map +1 -0
- package/dist/store/refusal.js +36 -0
- package/dist/store/refusal.js.map +1 -0
- package/dist/store/rows.d.ts +96 -0
- package/dist/store/rows.d.ts.map +1 -0
- package/dist/store/rows.js +222 -0
- package/dist/store/rows.js.map +1 -0
- package/dist/store/schema.d.ts +25 -0
- package/dist/store/schema.d.ts.map +1 -0
- package/dist/store/schema.js +123 -0
- package/dist/store/schema.js.map +1 -0
- package/dist/store/skip.d.ts +26 -0
- package/dist/store/skip.d.ts.map +1 -0
- package/dist/store/skip.js +66 -0
- package/dist/store/skip.js.map +1 -0
- package/dist/store/sql.d.ts +78 -0
- package/dist/store/sql.d.ts.map +1 -0
- package/dist/store/sql.js +244 -0
- package/dist/store/sql.js.map +1 -0
- package/dist/store/step.d.ts +52 -0
- package/dist/store/step.d.ts.map +1 -0
- package/dist/store/step.js +59 -0
- package/dist/store/step.js.map +1 -0
- package/dist/store/store.d.ts +192 -0
- package/dist/store/store.d.ts.map +1 -0
- package/dist/store/store.js +863 -0
- package/dist/store/store.js.map +1 -0
- package/dist/store/table-changes.d.ts +35 -0
- package/dist/store/table-changes.d.ts.map +1 -0
- package/dist/store/table-changes.js +127 -0
- package/dist/store/table-changes.js.map +1 -0
- package/dist/store/table-evolve.d.ts +82 -0
- package/dist/store/table-evolve.d.ts.map +1 -0
- package/dist/store/table-evolve.js +208 -0
- package/dist/store/table-evolve.js.map +1 -0
- package/dist/store/table-handle.d.ts +69 -0
- package/dist/store/table-handle.d.ts.map +1 -0
- package/dist/store/table-handle.js +92 -0
- package/dist/store/table-handle.js.map +1 -0
- package/dist/store/table-history.d.ts +78 -0
- package/dist/store/table-history.d.ts.map +1 -0
- package/dist/store/table-history.js +43 -0
- package/dist/store/table-history.js.map +1 -0
- package/dist/store/table-migration.d.ts +28 -0
- package/dist/store/table-migration.d.ts.map +1 -0
- package/dist/store/table-migration.js +212 -0
- package/dist/store/table-migration.js.map +1 -0
- package/dist/store/table-writes.d.ts +125 -0
- package/dist/store/table-writes.d.ts.map +1 -0
- package/dist/store/table-writes.js +170 -0
- package/dist/store/table-writes.js.map +1 -0
- package/dist/store/table.d.ts +91 -0
- package/dist/store/table.d.ts.map +1 -0
- package/dist/store/table.js +133 -0
- package/dist/store/table.js.map +1 -0
- package/dist/store/text.d.ts +14 -0
- package/dist/store/text.d.ts.map +1 -0
- package/dist/store/text.js +51 -0
- package/dist/store/text.js.map +1 -0
- package/dist/store/writes.d.ts +5 -0
- package/dist/store/writes.d.ts.map +1 -0
- package/dist/store/writes.js +4 -0
- package/dist/store/writes.js.map +1 -0
- package/dist/surfaces/active-language.d.ts +20 -0
- package/dist/surfaces/active-language.d.ts.map +1 -0
- package/dist/surfaces/active-language.js +78 -0
- package/dist/surfaces/active-language.js.map +1 -0
- package/dist/surfaces/active-theme.d.ts +16 -0
- package/dist/surfaces/active-theme.d.ts.map +1 -0
- package/dist/surfaces/active-theme.js +47 -0
- package/dist/surfaces/active-theme.js.map +1 -0
- package/dist/surfaces/client.d.ts +106 -0
- package/dist/surfaces/client.d.ts.map +1 -0
- package/dist/surfaces/client.js +280 -0
- package/dist/surfaces/client.js.map +1 -0
- package/dist/surfaces/connection.d.ts +53 -0
- package/dist/surfaces/connection.d.ts.map +1 -0
- package/dist/surfaces/connection.js +161 -0
- package/dist/surfaces/connection.js.map +1 -0
- package/dist/surfaces/format.d.ts +5 -0
- package/dist/surfaces/format.d.ts.map +1 -0
- package/dist/surfaces/format.js +37 -0
- package/dist/surfaces/format.js.map +1 -0
- package/dist/surfaces/index.d.ts +15 -0
- package/dist/surfaces/index.d.ts.map +1 -0
- package/dist/surfaces/index.js +18 -0
- package/dist/surfaces/index.js.map +1 -0
- package/dist/surfaces/language.d.ts +53 -0
- package/dist/surfaces/language.d.ts.map +1 -0
- package/dist/surfaces/language.js +74 -0
- package/dist/surfaces/language.js.map +1 -0
- package/dist/surfaces/loaded.d.ts +42 -0
- package/dist/surfaces/loaded.d.ts.map +1 -0
- package/dist/surfaces/loaded.js +116 -0
- package/dist/surfaces/loaded.js.map +1 -0
- package/dist/surfaces/locale-choice.d.ts +26 -0
- package/dist/surfaces/locale-choice.d.ts.map +1 -0
- package/dist/surfaces/locale-choice.js +14 -0
- package/dist/surfaces/locale-choice.js.map +1 -0
- package/dist/surfaces/messages.d.ts +67 -0
- package/dist/surfaces/messages.d.ts.map +1 -0
- package/dist/surfaces/messages.js +112 -0
- package/dist/surfaces/messages.js.map +1 -0
- package/dist/surfaces/page-state.d.ts +14 -0
- package/dist/surfaces/page-state.d.ts.map +1 -0
- package/dist/surfaces/page-state.js +43 -0
- package/dist/surfaces/page-state.js.map +1 -0
- package/dist/surfaces/preference.d.ts +33 -0
- package/dist/surfaces/preference.d.ts.map +1 -0
- package/dist/surfaces/preference.js +72 -0
- package/dist/surfaces/preference.js.map +1 -0
- package/dist/surfaces/registered.d.ts +33 -0
- package/dist/surfaces/registered.d.ts.map +1 -0
- package/dist/surfaces/registered.js +51 -0
- package/dist/surfaces/registered.js.map +1 -0
- package/dist/surfaces/scripts.d.ts +86 -0
- package/dist/surfaces/scripts.d.ts.map +1 -0
- package/dist/surfaces/scripts.js +28 -0
- package/dist/surfaces/scripts.js.map +1 -0
- package/dist/surfaces/theme-choice.d.ts +32 -0
- package/dist/surfaces/theme-choice.d.ts.map +1 -0
- package/dist/surfaces/theme-choice.js +18 -0
- package/dist/surfaces/theme-choice.js.map +1 -0
- package/dist/surfaces/themes.d.ts +43 -0
- package/dist/surfaces/themes.d.ts.map +1 -0
- package/dist/surfaces/themes.js +110 -0
- package/dist/surfaces/themes.js.map +1 -0
- package/dist/surfaces/translations.d.ts +29 -0
- package/dist/surfaces/translations.d.ts.map +1 -0
- package/dist/surfaces/translations.js +57 -0
- package/dist/surfaces/translations.js.map +1 -0
- package/dist/surfaces/variant.d.ts +23 -0
- package/dist/surfaces/variant.d.ts.map +1 -0
- package/dist/surfaces/variant.js +18 -0
- package/dist/surfaces/variant.js.map +1 -0
- package/dist/sync/batch.d.ts +18 -0
- package/dist/sync/batch.d.ts.map +1 -0
- package/dist/sync/batch.js +125 -0
- package/dist/sync/batch.js.map +1 -0
- package/dist/sync/client.d.ts +169 -0
- package/dist/sync/client.d.ts.map +1 -0
- package/dist/sync/client.js +459 -0
- package/dist/sync/client.js.map +1 -0
- package/dist/sync/files.d.ts +46 -0
- package/dist/sync/files.d.ts.map +1 -0
- package/dist/sync/files.js +13 -0
- package/dist/sync/files.js.map +1 -0
- package/dist/sync/filesystem.d.ts +37 -0
- package/dist/sync/filesystem.d.ts.map +1 -0
- package/dist/sync/filesystem.js +205 -0
- package/dist/sync/filesystem.js.map +1 -0
- package/dist/sync/index.d.ts +8 -0
- package/dist/sync/index.d.ts.map +1 -0
- package/dist/sync/index.js +9 -0
- package/dist/sync/index.js.map +1 -0
- package/dist/sync/lines.d.ts +18 -0
- package/dist/sync/lines.d.ts.map +1 -0
- package/dist/sync/lines.js +46 -0
- package/dist/sync/lines.js.map +1 -0
- package/dist/sync/remote.d.ts +145 -0
- package/dist/sync/remote.d.ts.map +1 -0
- package/dist/sync/remote.js +59 -0
- package/dist/sync/remote.js.map +1 -0
- package/dist/sync/state.d.ts +17 -0
- package/dist/sync/state.d.ts.map +1 -0
- package/dist/sync/state.js +40 -0
- package/dist/sync/state.js.map +1 -0
- package/dist/telemetry-ingest/batch.d.ts +73 -0
- package/dist/telemetry-ingest/batch.d.ts.map +1 -0
- package/dist/telemetry-ingest/batch.js +110 -0
- package/dist/telemetry-ingest/batch.js.map +1 -0
- package/dist/telemetry-ingest/facet.d.ts +26 -0
- package/dist/telemetry-ingest/facet.d.ts.map +1 -0
- package/dist/telemetry-ingest/facet.js +100 -0
- package/dist/telemetry-ingest/facet.js.map +1 -0
- package/dist/telemetry-ingest/index.d.ts +5 -0
- package/dist/telemetry-ingest/index.d.ts.map +1 -0
- package/dist/telemetry-ingest/index.js +8 -0
- package/dist/telemetry-ingest/index.js.map +1 -0
- package/dist/telemetry-ingest/recorder.d.ts +50 -0
- package/dist/telemetry-ingest/recorder.d.ts.map +1 -0
- package/dist/telemetry-ingest/recorder.js +298 -0
- package/dist/telemetry-ingest/recorder.js.map +1 -0
- package/dist/telemetry-ingest/sender.d.ts +14 -0
- package/dist/telemetry-ingest/sender.d.ts.map +1 -0
- package/dist/telemetry-ingest/sender.js +64 -0
- package/dist/telemetry-ingest/sender.js.map +1 -0
- package/dist/telemetry-sqlite/index.d.ts +33 -0
- package/dist/telemetry-sqlite/index.d.ts.map +1 -0
- package/dist/telemetry-sqlite/index.js +113 -0
- package/dist/telemetry-sqlite/index.js.map +1 -0
- package/dist/telemetry-sqlite/node.d.ts +13 -0
- package/dist/telemetry-sqlite/node.d.ts.map +1 -0
- package/dist/telemetry-sqlite/node.js +27 -0
- package/dist/telemetry-sqlite/node.js.map +1 -0
- package/dist/telemetry-sqlite/schema.d.ts +9 -0
- package/dist/telemetry-sqlite/schema.d.ts.map +1 -0
- package/dist/telemetry-sqlite/schema.js +61 -0
- package/dist/telemetry-sqlite/schema.js.map +1 -0
- package/dist/telemetry-sqlite/store.d.ts +12 -0
- package/dist/telemetry-sqlite/store.d.ts.map +1 -0
- package/dist/telemetry-sqlite/store.js +121 -0
- package/dist/telemetry-sqlite/store.js.map +1 -0
- package/dist/telemetry.d.ts +1013 -0
- package/dist/telemetry.d.ts.map +1 -0
- package/dist/telemetry.js +518 -0
- package/dist/telemetry.js.map +1 -0
- package/dist/tui/bridge.d.ts +112 -0
- package/dist/tui/bridge.d.ts.map +1 -0
- package/dist/tui/bridge.js +9 -0
- package/dist/tui/bridge.js.map +1 -0
- package/dist/tui/channel.d.ts +44 -0
- package/dist/tui/channel.d.ts.map +1 -0
- package/dist/tui/channel.js +150 -0
- package/dist/tui/channel.js.map +1 -0
- package/dist/tui/frames.d.ts +5 -0
- package/dist/tui/frames.d.ts.map +1 -0
- package/dist/tui/frames.js +52 -0
- package/dist/tui/frames.js.map +1 -0
- package/dist/tui/index.d.ts +8 -0
- package/dist/tui/index.d.ts.map +1 -0
- package/dist/tui/index.js +8 -0
- package/dist/tui/index.js.map +1 -0
- package/dist/tui/runtime.d.ts +46 -0
- package/dist/tui/runtime.d.ts.map +1 -0
- package/dist/tui/runtime.js +101 -0
- package/dist/tui/runtime.js.map +1 -0
- package/dist/tui/scope.d.ts +62 -0
- package/dist/tui/scope.d.ts.map +1 -0
- package/dist/tui/scope.js +173 -0
- package/dist/tui/scope.js.map +1 -0
- package/dist/tui/terminal.d.ts +15 -0
- package/dist/tui/terminal.d.ts.map +1 -0
- package/dist/tui/terminal.js +37 -0
- package/dist/tui/terminal.js.map +1 -0
- package/dist/tui/theme.d.ts +17 -0
- package/dist/tui/theme.d.ts.map +1 -0
- package/dist/tui/theme.js +38 -0
- package/dist/tui/theme.js.map +1 -0
- package/dist/watch.d.ts +194 -0
- package/dist/watch.d.ts.map +1 -0
- package/dist/watch.js +383 -0
- package/dist/watch.js.map +1 -0
- package/dist/web/environment.d.ts +4 -0
- package/dist/web/environment.d.ts.map +1 -0
- package/dist/web/environment.js +37 -0
- package/dist/web/environment.js.map +1 -0
- package/dist/web/index.d.ts +5 -0
- package/dist/web/index.d.ts.map +1 -0
- package/dist/web/index.js +7 -0
- package/dist/web/index.js.map +1 -0
- package/dist/web/language.d.ts +7 -0
- package/dist/web/language.d.ts.map +1 -0
- package/dist/web/language.js +21 -0
- package/dist/web/language.js.map +1 -0
- package/dist/web/page.d.ts +42 -0
- package/dist/web/page.d.ts.map +1 -0
- package/dist/web/page.js +96 -0
- package/dist/web/page.js.map +1 -0
- package/dist/web/scripts.d.ts +23 -0
- package/dist/web/scripts.d.ts.map +1 -0
- package/dist/web/scripts.js +50 -0
- package/dist/web/scripts.js.map +1 -0
- package/dist/web/styles.d.ts +17 -0
- package/dist/web/styles.d.ts.map +1 -0
- package/dist/web/styles.js +218 -0
- package/dist/web/styles.js.map +1 -0
- package/dist/web/themes.d.ts +6 -0
- package/dist/web/themes.d.ts.map +1 -0
- package/dist/web/themes.js +31 -0
- package/dist/web/themes.js.map +1 -0
- package/docs/admission/design.md +178 -0
- package/docs/benchmarks.md +1182 -0
- package/docs/decisions.md +3760 -0
- package/docs/dependencies/book.md +1671 -0
- package/docs/dependencies/index.html +2641 -0
- package/docs/dependencies/model.md +330 -0
- package/docs/design.md +3691 -0
- package/docs/durable-observers/book.md +432 -0
- package/docs/durable-observers/index.html +517 -0
- package/docs/events/spec.md +438 -0
- package/docs/flow-control/book.md +333 -0
- package/docs/flow-control/fold/index.html +265 -0
- package/docs/flow-control/index.html +548 -0
- package/docs/flow-control/window/index.html +228 -0
- package/docs/guide-plugins-hosts/book.md +958 -0
- package/docs/guide-plugins-hosts/index.html +952 -0
- package/docs/host-keyed/spec.md +343 -0
- package/docs/http-workers/book.md +378 -0
- package/docs/http-workers/index.html +515 -0
- package/docs/i18n/book.md +217 -0
- package/docs/i18n/index.html +344 -0
- package/docs/layer-1.md +311 -0
- package/docs/layer-2.md +216 -0
- package/docs/p3-features/README.md +6 -0
- package/docs/p3-features/book.md +478 -0
- package/docs/plugin-authoring.md +389 -0
- package/docs/plugin-model/book.md +186 -0
- package/docs/plugin-model/index.html +310 -0
- package/docs/plugin-primer/book.md +273 -0
- package/docs/plugin-primer/index.html +430 -0
- package/docs/shared-holds/design.md +339 -0
- package/docs/slice-1.md +236 -0
- package/docs/slice-10.md +288 -0
- package/docs/slice-11.md +114 -0
- package/docs/slice-12.md +132 -0
- package/docs/slice-13.md +121 -0
- package/docs/slice-14-design.md +213 -0
- package/docs/slice-14.md +861 -0
- package/docs/slice-2.md +174 -0
- package/docs/slice-3a.md +296 -0
- package/docs/slice-3b.md +197 -0
- package/docs/slice-4.md +146 -0
- package/docs/slice-4a.md +418 -0
- package/docs/slice-4b.md +208 -0
- package/docs/slice-5.md +281 -0
- package/docs/slice-6a.md +676 -0
- package/docs/slice-6b.md +332 -0
- package/docs/slice-7a.md +130 -0
- package/docs/slice-7b/book.md +608 -0
- package/docs/slice-7b/index.html +842 -0
- package/docs/slice-7b.md +255 -0
- package/docs/slice-7c.md +165 -0
- package/docs/slice-8.md +194 -0
- package/docs/slice-9.md +110 -0
- package/docs/slices.md +380 -0
- package/docs/store/book.md +670 -0
- package/docs/store/index.html +861 -0
- package/docs/store/walkthrough.md +193 -0
- package/docs/theming/book.md +223 -0
- package/docs/theming/index.html +371 -0
- package/docs/tutorial/book.md +2170 -0
- package/docs/tutorial/index.html +2112 -0
- package/docs/tutorial/screens/click-after.png +0 -0
- package/docs/tutorial/screens/click-before.png +0 -0
- package/docs/tutorial/screens/edited.png +0 -0
- package/docs/tutorial/screens/french.png +0 -0
- package/docs/tutorial/screens/harbor.png +0 -0
- package/docs/tutorial/screens/page.png +0 -0
- package/docs/tutorial/screens/traces-ada.png +0 -0
- package/docs/tutorial/screens/traces.png +0 -0
- package/package.json +200 -5
- package/src/delta/README.md +262 -0
package/docs/slice-14.md
ADDED
|
@@ -0,0 +1,861 @@
|
|
|
1
|
+
# Slice 14: admission with a value, named live queries, lists, joins by key
|
|
2
|
+
|
|
3
|
+
Status: fifth version (2026-11-15), after review rounds 1 to 4 and the decisions taken on them. **Built in parts.**
|
|
4
|
+
Built (2026-11-15, committed `92e1db6ca`): parts B (named queries, `self.liveQuery`, `self.count`, the skip test and the
|
|
5
|
+
probe), C for one source (`self.list`), D (column sets, `exists`, the join) and E's conditions as data, with their
|
|
6
|
+
tests, examples 70, 71 and 72 and the bench; code review rounds 1 and 2 are fixed (2026-11-15). Built in a second
|
|
7
|
+
part (2026-11-15, not committed): A (admission, route admission) and `deleteHostData({ plugin })`, with their tests
|
|
8
|
+
and example 69. Not built yet: lists over several sources, examples 73 to 75; `slices.md`, "Carry-over", lists them
|
|
9
|
+
with what the built parts left.
|
|
10
|
+
p3 calls it "slice 0": the Chord changes it needs before its first slice is redone (`apps/p3/docs/decisions.md`,
|
|
11
|
+
"Slice 0 changes Chord first"). The changes to `design.md` are in `slice-14-design.md`.
|
|
12
|
+
|
|
13
|
+
**Read first, in full:** `design.md` (all), `admission/design.md`, `host-keyed/spec.md`, `slices.md`, the root
|
|
14
|
+
`AGENTS.md` section "Chord v2 Code Style"; the source: `src/store/{query,expression,evaluate,sql,live-query,table,
|
|
15
|
+
table-handle,table-changes,step,store,backend,host-data}.ts`, `src/documents/transaction.ts`, `src/host/{attempt,
|
|
16
|
+
object,dependencies,parked,staging,members,reference,reference-source,route,host-data,presence}.ts`,
|
|
17
|
+
`src/remote/{hold,provider,remote-object,relay,path}.ts`, `src/node/workers/workers.ts`, `src/link/{message,binary,
|
|
18
|
+
text}.ts`, `src/data/failure.ts`, `src/contracts/{declare,schema,evolve}.ts`, `src/watch.ts`.
|
|
19
|
+
|
|
20
|
+
**Done when** every test of §10 passes, the existing tests of `self.query` and p2's own check and suites pass
|
|
21
|
+
unchanged, and every item of the acceptance list (§9) runs as its example and meets its number. An item that misses
|
|
22
|
+
its number is not done.
|
|
23
|
+
|
|
24
|
+
## 1. What it builds
|
|
25
|
+
|
|
26
|
+
| Part | In one sentence |
|
|
27
|
+
| --- | --- |
|
|
28
|
+
| A. Admission | a remote type's provider reads data about the caller before the factory runs and hands the factory a typed value that selects its variant and members; a route asks before it starts or reaches a host |
|
|
29
|
+
| B. Named queries | a store names queries, their argument schemas in its contract; any object on the store's host reads one live with `self.liveQuery(namedQuery, args, { first })` or counts it with `self.count` (expensive); a commit that cannot affect a read skips it, by what it assigns or by one keyed probe |
|
|
30
|
+
| C. Lists | `self.list(name, sources, { first })`: a list a screen loads more of, over one named query or several of one order merged; pages between fixed bookmarks, tiled; only diffs cross a link |
|
|
31
|
+
| D. Column sets, `exists`, the one-to-one join | a contract declares the columns of a table others may use; a condition may test `exists` in another plugin's set, a query may join one row of it; tables are matched only by a key or a declared index |
|
|
32
|
+
| E. Conditions as data | `compile`, `whereNode` and `existsNode`; a host-data delete limited to one plugin's tables |
|
|
33
|
+
|
|
34
|
+
Across links nothing is added except the failure kind `denied`. Not in this slice: the app kit (copied into p3).
|
|
35
|
+
|
|
36
|
+
**Vocabulary** (design §2): *admission* (the decision before a factory, with its value); *named query* (a query a
|
|
37
|
+
store offers, with arguments); *live query* (rows kept current: the owner's own window with `self.query`, or a
|
|
38
|
+
named query read with `self.liveQuery`); *list* (named queries a screen loads more of); *probe* (one keyed statement that asks whether a written row can be
|
|
39
|
+
in a read); *bookmark* (a cursor a
|
|
40
|
+
page of a list is bounded by: order values and the key); *column set* (the columns of a table its contract declares
|
|
41
|
+
for other plugins).
|
|
42
|
+
|
|
43
|
+
## 2. A. Admission
|
|
44
|
+
|
|
45
|
+
### 2.1 API
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
export const Transcript = remote("transcript", { version: 1, params: { session: str(), conversation: int() },
|
|
49
|
+
hostAddress: ({ session }) => Session({ id: session }),
|
|
50
|
+
admission: obj({ mode: oneOf("read", "write", "owner", "server") }), // a JSON schema; not part of the wire fingerprint
|
|
51
|
+
variants: { viewer: { … }, participant: { … } } });
|
|
52
|
+
|
|
53
|
+
host.serve(Type, factory, { admit });
|
|
54
|
+
export type Admission<T> = { readonly kind: "allow"; readonly value: T } | { readonly kind: "deny"; readonly reason: string };
|
|
55
|
+
export const allow = <T extends JsonValue>(value: T): Admission<T> => ({ kind: "allow", value });
|
|
56
|
+
export const deny = (reason: string): Admission<never> => ({ kind: "deny", reason });
|
|
57
|
+
/** Runs first in every attempt. Declares only references (with keyed pins), registries, derives and live queries. */
|
|
58
|
+
type Admit<C, P> = (params: ParamsOf<C>, principal: P, self: AdmitSelf<P>) => Watchable<Admission<AdmittedOf<C>>>;
|
|
59
|
+
type AdmittedFactory<C, P> = (params: ParamsOf<C>, principal: P, admitted: AdmittedOf<C>, self: Self<P>) => Implementation<C>;
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
- **Remote types only.** A `local` object has no caller and gets none. `admission` without `admit`, the reverse,
|
|
63
|
+
or either on a `local` type is a declaration error.
|
|
64
|
+
- `AdmitSelf` has `get` (and `at(key)` on what it gets), `registry`, `derive`, `liveQuery`. Nothing else.
|
|
65
|
+
- **The value selects the variant and the members, nothing else.** It is small and changes rarely (a mode, a role).
|
|
66
|
+
What a list shows is not in it (§4).
|
|
67
|
+
- **No jobs in an admitted object** (`self.job` there is a declaration error, in staging too). Work for a person
|
|
68
|
+
lives in a `local` store, carries the person in its arguments, and asks the person's access again on every run.
|
|
69
|
+
- The value is plain JSON, never validated at runtime. `deny`'s reason reaches the denied caller: it is user-facing.
|
|
70
|
+
|
|
71
|
+
### 2.2 Semantics
|
|
72
|
+
|
|
73
|
+
1. **Admit.** An attempt of an admitted type runs `admit` before its factory and parks on its requests with the
|
|
74
|
+
existing parking (design §6). The admission phase does not wait for the previous attempt's teardown; only the
|
|
75
|
+
factory phase does. It starts one microtask after a seal.
|
|
76
|
+
2. **Decide.** With every request live and hydrated the decision is read: `deny` parks the attempt and the object
|
|
77
|
+
shows `failed { kind: "denied", error: forbidden(reason) }`; `allow(value)` runs the factory with `value`.
|
|
78
|
+
3. **Watch.** The attempt follows the decision and its sources through the host's publication, not through an
|
|
79
|
+
application watch. A change takes effect in the flush of the batch that changed it, before the object serves
|
|
80
|
+
another call or publishes: also while the attempt opens its natives, and on an old attempt that drains for a
|
|
81
|
+
reload. A commit admitted before the cut stays durable; the sealed attempt publishes nothing after it.
|
|
82
|
+
|
|
83
|
+
| What happens | The attempt | Calls running on it | Holders |
|
|
84
|
+
| --- | --- | --- | --- |
|
|
85
|
+
| an equal value (canonical JSON) | nothing | | |
|
|
86
|
+
| a source is loading: its provider restarts, a link is down | **keeps its last decision** | go on | unchanged |
|
|
87
|
+
| another allowed value | sealed, a new attempt admits | rejected `unavailable` | `loading`, then `bound` |
|
|
88
|
+
| `deny` | sealed, the new attempt parks denied | rejected `forbidden/revoked` | `failed { denied }` |
|
|
89
|
+
| a source failed or ended; reading the decision throws | sealed, the new attempt parks on the source | rejected `unavailable` | `failed { waiting }` |
|
|
90
|
+
|
|
91
|
+
No drain on a seal. A call that crossed a seal on the wire runs on the next attempt under its value.
|
|
92
|
+
|
|
93
|
+
Two limits, accepted. A source whose successor fails or parks after a reload seals every object that reads it
|
|
94
|
+
(a transient failure with its one-second backoff included). A source whose new contract the readers' version
|
|
95
|
+
does not fit (`contract_mismatch`) is failed, not loading: in a rollout, server first, every admitted object on
|
|
96
|
+
a worker is sealed until that worker's step. Keeping the decision there would leave a withdrawal undelivered
|
|
97
|
+
for the gap. **The guide requires admission sources to `accept` their previous version.**
|
|
98
|
+
4. **A rebuild keeps the admission's references** until the successor's own admission requests bound.
|
|
99
|
+
5. **What a denial removes.** The denied object's references and replicas hold no value: a read throws `forbidden`,
|
|
100
|
+
a watch gets one `failed` call, `ref.variant` is `undefined`, a derive over a member fails as a member until the
|
|
101
|
+
next allow. Over a link the consumer drops its replicas. **Data already delivered to application code is not
|
|
102
|
+
retracted** (a `WatchHandle`'s `value`, a rendered value, a method's answer). A UI hides what `ref.state` says is
|
|
103
|
+
denied.
|
|
104
|
+
6. **Dependents.** An attempt parked on a denied dependency shows `denied`, stays parked, and goes on when access
|
|
105
|
+
returns (`host/dependencies.ts`: `denied` is checked before `healsNever`'s `forbidden`). `parked_long` does not
|
|
106
|
+
report a denial. `ref.retry()` on a denied object only passes on to the admission's failed dependencies.
|
|
107
|
+
7. **Presence:** a holder is listed from its first allow until a denial or its end. **Linger:** a lingering object
|
|
108
|
+
without holders whose decision changes ends.
|
|
109
|
+
|
|
110
|
+
### 2.3 Routes ask before anything starts
|
|
111
|
+
|
|
112
|
+
```ts
|
|
113
|
+
host.route(Session, { authorize, resolve,
|
|
114
|
+
admit: (principal, address, self: AdmitSelf<P>) => Watchable<Admission<null>> }, context);
|
|
115
|
+
createWorkers(host, Session, { …, admit }); // passed through (src/node/workers/workers.ts:49, :144)
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
- Asked once per (principal key, address) with holds on the route, after `authorize`, shared by those holds,
|
|
119
|
+
released with the last. Before its first allow a hold is `loading` and **nothing is resolved or forwarded**. A
|
|
120
|
+
`resolve` already running for another principal finishes; nothing of a principal not yet allowed is forwarded.
|
|
121
|
+
- **Its `admit` reads only contracts the app's API owns.** A route is base code: it never reloads and keeps the
|
|
122
|
+
contract tokens it was built with, so a plugin's own contract, bumped without `accepts`, would fail every
|
|
123
|
+
decision until a restart. A plugin serves the contract. The admission's references act as the host. It may not hold a type placed behind its own
|
|
124
|
+
route (it would wait on itself): that hold fails `invalid/cycle`. A throwing `admit` fails the hold `broken`.
|
|
125
|
+
- **`deny`:** the principal's holds to that address show `failed { denied }`; the relay releases them upstream and
|
|
126
|
+
rejects their calls in flight and waiting `forbidden/revoked`. So does every denial (owner, 2026-11-15): a call
|
|
127
|
+
made before its caller learnt of it, waiting for a call-window slot or crossing the `failed` on the wire, is
|
|
128
|
+
answered `forbidden/revoked` as one in flight; a call first made after it gets the plain `forbidden`.
|
|
129
|
+
- **Deny, then allow: a fence, no new id.** The denial sent `release` upstream. On the next allow the relay sends
|
|
130
|
+
a `ping` and forwards the hold again, under its id, only after that ping's `pong`. A link is ordered and a peer
|
|
131
|
+
answers a `ping` after everything sent before it (`src/link/channel.ts:59-61`), so every reply of the released
|
|
132
|
+
hold has arrived, and was dropped (state messages still acknowledged), before the hold exists again. The channel
|
|
133
|
+
counts pings and pongs, so a liveness `pong` in transit does not end the fence. A denial before the `pong` ends
|
|
134
|
+
it; a lost link forwards under the current decision on the next one. Ids are not renumbered (design §3). **The
|
|
135
|
+
fence relies on `resolve` returning the link to the final provider that serves the address,** as the route
|
|
136
|
+
contract requires. A resolver that returns an intermediate relay voids it: that relay can answer the `ping`
|
|
137
|
+
before the final provider's old replies have drained.
|
|
138
|
+
- **A failed or ended source** fails new holds `failed { waiting }` and leaves bound ones alone. Loading keeps the
|
|
139
|
+
last decision (2.2). **A new link fails closed** (owner, 2026-11-15): the holds forwarded under the last allow
|
|
140
|
+
stay on the link they are bound on; once that link is gone they are forwarded on a new one only under an allow
|
|
141
|
+
that can be read, and wait `failed { waiting }` until the source recovers.
|
|
142
|
+
- **`RouteHandle.retry(address)`** (a rollout reaching workers calls it) resolves nothing while every hold of that
|
|
143
|
+
address is denied or undecided. A new link of the route forwards a hold again only under its current decision.
|
|
144
|
+
A reload of an object behind the route is an ordinary rebind on the open link: nothing is asked or resolved.
|
|
145
|
+
- A route's decision lives with its holds on the routing host. It takes no fate in a reload; its references follow
|
|
146
|
+
the reference rules (design §7).
|
|
147
|
+
|
|
148
|
+
### 2.4 Wire
|
|
149
|
+
|
|
150
|
+
`denied` is a new cause kind of `failed` (`data/failure.ts`; both codecs). `PROTOCOL_VERSION` stays 1 until p3
|
|
151
|
+
ships (design §22). Getters reject at once for it; a denied hold stays in the sharing table; the waiting index and
|
|
152
|
+
the backoff ignore it. Rapid changes need the binding fence per acknowledgement in `remote/hold.ts`: one `{ names,
|
|
153
|
+
until }` per unacknowledged `bound`.
|
|
154
|
+
|
|
155
|
+
### 2.5 Staging and reload
|
|
156
|
+
|
|
157
|
+
- Staging runs the new `admit` against the recording `self`. It rehearses the new factory with the object's current
|
|
158
|
+
value only when the old and new tokens' `admission` fingerprints are equal. `evolve` replaces the schema with
|
|
159
|
+
`admission(schema)`.
|
|
160
|
+
- **A limit, accepted:** a factory that is not rehearsed (another fingerprint; an object denied, parked or failed at
|
|
161
|
+
the reload) loses staging's checks. Its declaration errors, the refusal of `self.job` among them, appear at its
|
|
162
|
+
activation after the commit and are reported there; they do not keep the plugin on its old code. Its requests are
|
|
163
|
+
not recorded, so the closure rule cannot keep it old beside a provider that was kept old.
|
|
164
|
+
- The commit restarts the object as today; the successor runs the new `admit`, then the new factory. A decision
|
|
165
|
+
change during the old attempt's drain seals it at once.
|
|
166
|
+
|
|
167
|
+
## 3. B. Named queries
|
|
168
|
+
|
|
169
|
+
### 3.1 API
|
|
170
|
+
|
|
171
|
+
```ts
|
|
172
|
+
// contract (local): the queries others may read, each with its argument schema (part of the fingerprint)
|
|
173
|
+
sessions: queries(SessionRow, { visible: obj({ condition: unknown(), app: str() }), one: obj({ condition: unknown(), id: str() }) }),
|
|
174
|
+
|
|
175
|
+
// provider: the table's owner (StoreSelf) gives one builder per listed query; the handle implements the member
|
|
176
|
+
const sessions = self.queries(rows, { map: rowOf, reads: ["id", "title", "app", "state", "lastTouch"] }, {
|
|
177
|
+
visible: ({ condition, app }) => query(Rows).where((s) => eq(s.app, app)).whereNode(SessionColumns, condition)
|
|
178
|
+
.orderBy((s) => s.lastTouch, "desc").orderBy((s) => s.id, "desc"), // index byApp (app, lastTouch)
|
|
179
|
+
one: ({ condition, id }) => query(Rows).where((s) => eq(s.id, Session({ id }))).whereNode(SessionColumns, condition),
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
// reader: any factory or admission on the store's host
|
|
183
|
+
self.liveQuery(store.sessions.one, args, { first: 1 }) // Watchable<{ rows: readonly Item[]; more: boolean }>
|
|
184
|
+
self.count(store.sessions.visible, args) // Watchable<number>: expensive, see below
|
|
185
|
+
// `args` may be a watchable of the arguments. Anywhere, not live:
|
|
186
|
+
await store.sessions.visible.page(args, n, ctx, { after }); // { items, next? } as TableHandle.page (src/store/table-handle.ts:28)
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
- **Argument schemas are the contract's.** A reader's arguments are typed, a changed schema changes the fingerprint
|
|
190
|
+
(`contract_mismatch`, `accepts`, the closure rule, as for any member), and arguments are checked against it as
|
|
191
|
+
method arguments are. The provider gives a builder for every listed name and no other schema for it; a missing
|
|
192
|
+
or extra builder is a declaration error. A query the contract does not list is private to its owner and brings
|
|
193
|
+
its schema: `name: [argsSchema, builder]`.
|
|
194
|
+
- **Two forms, one mechanism.** `self.query(table, q, limit)` stays as the owner's private unnamed read: range
|
|
195
|
+
`{ first: limit }`, its value the rows as today. It is kept in the same index and maintained like any read, so it
|
|
196
|
+
refuses nothing (`exists` and `join` work in it). p2 and the examples use it unchanged, and its existing tests
|
|
197
|
+
(`test/store/live-query.test.ts`, the reload cases of `test/host/object.test.ts`) are its acceptance test. `self.liveQuery` reads a named query: another object's through its reference, or the
|
|
198
|
+
owner's own through the handle `self.queries` returned (a query not listed in the contract is private to its
|
|
199
|
+
owner). An owner's own reads, of either form, open in its activation after its tables are prepared, as today,
|
|
200
|
+
and are no dependency on itself. `self.query` given a named query, or `self.liveQuery` given a table, throws at
|
|
201
|
+
declaration naming the other. The guide: `self.query` for your own windows, `self.liveQuery` for other objects.
|
|
202
|
+
- **`map` gets only the declared columns:** the row projected to `reads` (and the partner to `partnerReads`, §5),
|
|
203
|
+
typed as such; a column not listed is absent, at once and visibly. All columns when omitted. An item object is
|
|
204
|
+
kept only when neither its row's nor its partner's projected values changed.
|
|
205
|
+
- A builder is a pure function of its arguments and returns a `Query` of its table. It runs when a read opens. A
|
|
206
|
+
`queries` member cannot be re-exposed.
|
|
207
|
+
- **`{ first: n }`** is the first `n` rows of the order; `more` says whether a further row exists (the read fetches
|
|
208
|
+
`n + 1`). It is the only range of `self.liveQuery`; pages between bookmarks belong to lists (§4).
|
|
209
|
+
- A read is shared per provider instance by (member or handle, query name, canonical JSON of the arguments, range),
|
|
210
|
+
counted by its readers.
|
|
211
|
+
- **`self.count` is exact and expensive: know what you are doing.** One run is a `count(*)` over the query's
|
|
212
|
+
condition and reads every matching row; nothing caps it. A count keeps no rows, so it re-runs on every write to its
|
|
213
|
+
tables except an `update` that assigns none of its condition's or match columns (3.3). The guide: count what a
|
|
214
|
+
key or an index bounds (a team's sessions), never behind a hot condition column; a number of loaded rows is
|
|
215
|
+
free (`rows.length`, with "+" while `more`).
|
|
216
|
+
|
|
217
|
+
### 3.2 How a live query runs
|
|
218
|
+
|
|
219
|
+
- **Open.** `self.liveQuery` on another object's query is a declared dependency of the reader's attempt, as a keyed
|
|
220
|
+
pin is (design §6). Derives that compute arguments are evaluated in the parked phase, once their references,
|
|
221
|
+
registries and earlier reads have values. The provider checks the arguments, calls the builder, validates and
|
|
222
|
+
compiles (§5, §6). The read is entered into the store's index **before** its first run.
|
|
223
|
+
- **The first run** adopts unless a commit overtook it (the adoption counter of `LiveQuery.load`,
|
|
224
|
+
`src/store/live-query.ts:212-222`). If it fails (a column set not served, a row the code cannot read), the reader
|
|
225
|
+
parks `failed { waiting }` on the read and goes on when a later run succeeds. Arguments the contract's schema or
|
|
226
|
+
the builder refuses fail the reader `broken` (its own code).
|
|
227
|
+
- **Re-run.** The store keeps the index from a table's SQL name to the reads over it (the owner's `self.query`
|
|
228
|
+
windows included; it moves from the table handle's owner, `src/store/table-handle.ts:41-49`). **A commit chooses
|
|
229
|
+
the reads it refreshes inside its commit step**, from the index at that moment, not when its transaction staged
|
|
230
|
+
(today `documents/transaction.ts:553-558`): a read opened while a commit waited in the queue is refreshed by it.
|
|
231
|
+
Re-runs happen after the commit's writes and adopt in its batch (design §11, W1).
|
|
232
|
+
- **Arguments that follow a value.** On a change (canonical JSON) the reader opens the read for the new arguments
|
|
233
|
+
and shows the old result until the new one's first run is adopted, then switches in one frame. A failed new read
|
|
234
|
+
makes the member failed, with its last rows as last value. A change while one loads keeps only the newest.
|
|
235
|
+
- **A provider's restart.** Its readers' factories do not re-run (design §21). While the old attempt drains, its
|
|
236
|
+
reads stay in the index and old work's commits reach the readers. **They leave the index only when every commit
|
|
237
|
+
admitted before the seal has settled** (a drain that timed out seals with a step still running; that step
|
|
238
|
+
refreshes them and its result is the outgoing instance's last publication, design §21), and before the successor
|
|
239
|
+
prepares its tables. A read member then keeps its last rows, and a `more` called now parks on the loading
|
|
240
|
+
reference. When the successor is live, each read rebinds to it by member and query name with its current
|
|
241
|
+
arguments, as references move, and gives one frame: a diff from its last rows, including whatever another owner
|
|
242
|
+
committed in the gap.
|
|
243
|
+
- **Staging has no effects:** `self.queries`, `self.liveQuery`, `self.list` and `self.table` hand out inert handles;
|
|
244
|
+
a recorded `exposes` makes or changes no binding, a recorded list reads and writes no bookmark.
|
|
245
|
+
- The store's backend interface gains nothing (`src/store/backend.ts`): no `RETURNING`, nothing SQL-specific. A
|
|
246
|
+
probe (3.3) is an ordinary compiled read.
|
|
247
|
+
|
|
248
|
+
### 3.3 The skip test
|
|
249
|
+
|
|
250
|
+
A read **depends on** these columns. Own table: its condition's, its order's, the ones `map` gets (`reads`), and
|
|
251
|
+
the ones a join or an `exists` matches by. An `exists` set's table: the matched columns and the inner condition's.
|
|
252
|
+
A joined set's table: its key and the partner columns of the read's condition, order and `partnerReads`. A count
|
|
253
|
+
depends on condition and match columns only.
|
|
254
|
+
|
|
255
|
+
A read keeps the keys of the rows it fetched, **the one past its bound included**, and for each of them the values
|
|
256
|
+
of the own columns it matches other tables by (for a join: the partner's key). Its **range** is its bookmarks, cut
|
|
257
|
+
at the position of the row past its bound when there is one. A row that is none of the fetched rows and pairs with
|
|
258
|
+
none of them did not decide the result.
|
|
259
|
+
|
|
260
|
+
**A skip proves the result unchanged by the row before the write and by the row after it.** Before: the kept keys
|
|
261
|
+
and matched values. After: **the probe**, R's own statement, its condition and its range, with one equality added
|
|
262
|
+
that limits its own table to the rows the written row pairs with, asking for one row. For a write to the own table
|
|
263
|
+
that is the own key; for a write to a joined or `exists` table, the own columns matched to it. No row: after the
|
|
264
|
+
write nothing the written row pairs with is in R. It is exact, because the database evaluates the real condition;
|
|
265
|
+
there is no second evaluator. It is used only where that equality is keyed: the matched columns, after the columns
|
|
266
|
+
R's own `where` terms fix with `eq` or `inArray`, are a leading prefix of the own table's key or of one of its
|
|
267
|
+
indexes (decided when the read is compiled; a read without it re-runs). It runs in the commit step after the
|
|
268
|
+
writes and counts as `chord.query.probes`. The team page: a touch of session S asks "is there a team row `(Y, S)`
|
|
269
|
+
whose session passes this page's condition?", one key lookup, instead of reading the team's 300 rows.
|
|
270
|
+
|
|
271
|
+
A single-key write of key K is **skipped** for read R when R has a result (a read loading or failed is never
|
|
272
|
+
skipped) and one of these holds, by the table's role in R:
|
|
273
|
+
|
|
274
|
+
| The table is R's | Skipped when |
|
|
275
|
+
| --- | --- |
|
|
276
|
+
| any | an `update` that assigns none of the columns R depends on in that table |
|
|
277
|
+
| own table | K is not among R's keys, and: an `update` that assigns none of R's condition, order or match columns (the row cannot enter); or the probe by K finds no row |
|
|
278
|
+
| `exists` set | **every matched set column is part of the set's key** (the row pairs with the same own rows before and after), none of R's fetched rows has those values, and the probe by them finds no row |
|
|
279
|
+
| joined set | K is no partner key of R's fetched rows, and: an `update` that assigns no partner column of R's condition or order; or the probe by K finds no row |
|
|
280
|
+
|
|
281
|
+
- **Where the value before is unknown and matters, R re-runs.** A matched set column outside the set's key may
|
|
282
|
+
have been re-pointed by an `update` or a replacing `put`: the rows it paired with before are unknown. Round 3's
|
|
283
|
+
case: a pin moved from S1 to S2 must re-run the read of S1.
|
|
284
|
+
- An `exists` matched on a joined partner's key pairs through that key; on another partner column, or inside
|
|
285
|
+
another `exists`, it is unknown: R re-runs.
|
|
286
|
+
- A table R uses more than once (two `exists`; own and `exists`) is skipped only when every use is.
|
|
287
|
+
- A count has no keys: only the row "any" skips it.
|
|
288
|
+
- R's keys are those of its latest result **in this commit group** (S18): a read re-run in an earlier step of the
|
|
289
|
+
group has that step's result; a rolled-back group discards them, the solo replays compute their own.
|
|
290
|
+
- `updateWhere`: skipped when it assigns none of the columns R depends on in that table. `deleteWhere`, a host data
|
|
291
|
+
import or delete: every read of the table re-runs.
|
|
292
|
+
- The guide: an `update` tells readers which columns changed; a `put` tells them nothing, so each read probes. A
|
|
293
|
+
touch is an `update` of the columns it changes.
|
|
294
|
+
|
|
295
|
+
A skipped read's rows and `more` are exact; test 13a checks every skip against a fresh run. Round 1's blocker as a
|
|
296
|
+
case: members joined with their project, mapped to its description; an update of the description alone re-runs (a
|
|
297
|
+
partner column `map` gets, the project a partner key of a row). Round 2's: re-pointing a member to another project
|
|
298
|
+
assigns a match column, so it re-runs.
|
|
299
|
+
|
|
300
|
+
## 4. C. Lists
|
|
301
|
+
|
|
302
|
+
**Problem.** "Load more" must send only the new rows, loaded rows must stay live, and a reorder (a list by last
|
|
303
|
+
touch) must leave no gap and no duplicate. A range by count or position cannot do that: when a row moves to the
|
|
304
|
+
top, "the first 50" loses its old last row to no page. And a person who sees few of many rows (a guest with two
|
|
305
|
+
shares, a member of one small team) must not pay for the many: a list filtered by `exists` walks the whole app on
|
|
306
|
+
every run.
|
|
307
|
+
|
|
308
|
+
**Solution.** Pages are bounded by fixed bookmarks and tile the order. A list reads one named query or several of
|
|
309
|
+
one order, each driven from what the person has, merged into one list.
|
|
310
|
+
|
|
311
|
+
```ts
|
|
312
|
+
// one remote object per screen: `view` is the screen's own id (a fresh id is a fresh list)
|
|
313
|
+
export const SessionsList = remote("sessions.list", { version: 1, params: { app: str(), view: str() }, hostAddress: () => Server(),
|
|
314
|
+
variants: { list: { state: { list: listOf(SessionRow) }, methods: { more: method() } } } });
|
|
315
|
+
host.serve(SessionsList, ({ app }, principal, _admitted, self) => {
|
|
316
|
+
const me = personOf(principal), access = self.get(PersonAccess, { person: me }); // §8
|
|
317
|
+
const list = self.list("sessions", [
|
|
318
|
+
// the member's rule in this app: dense, by the app's own index; `NOTHING` (an empty `or`) for a person who is no member
|
|
319
|
+
[self.get(SessionsStore, {}).sessions.visible, self.derive([access.rules], ([rules]) => ({ app, condition: rules[app] ?? NOTHING }))],
|
|
320
|
+
// the person's shares: few rows, joined with their sessions
|
|
321
|
+
[self.get(PeopleStore, {}).shares.sessionsOf, self.derive([access.condition], ([condition]) => ({ app, person: me, condition }))],
|
|
322
|
+
], { first: 50 });
|
|
323
|
+
return { variant: "list", members: { list: list.value, more: (ctx) => list.more(ctx) } };
|
|
324
|
+
}, { admit: signedIn, linger: 30_000 });
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
- **`list.value`** is `Watchable<{ rows, moreAfter }>`: the pages' rows joined, in order; an ordinary state member.
|
|
328
|
+
- **Sources** are `[namedQuery, args]` pairs of one item type; `args` may follow a value. With several, every
|
|
329
|
+
query's order has the same column types and directions and **ends in the key of one column set they share** (of
|
|
330
|
+
its own table when that exposes the set, of the set it joins otherwise). Rows equal in every order value are
|
|
331
|
+
then one row, wherever they come from (a session in two of the person's teams, or shared and also in a team);
|
|
332
|
+
the first source's item is kept. Checked when the list opens (`invalid/args`). One source needs no such order.
|
|
333
|
+
- **The driver finds, the condition decides.** Each source is driven from rows the person has (their teams, their
|
|
334
|
+
shares, what they created) and applies the person's whole condition to the session (§6). A stale row of a side
|
|
335
|
+
table grants nothing. The guide: an `exists` is never the selective part of a list.
|
|
336
|
+
- **Bookmarks** are values of the order (with the own key last for one source, as cursors today,
|
|
337
|
+
`src/store/query.ts:83-118`). The object keeps them by the list's name (unique per object) across its attempts,
|
|
338
|
+
so they survive a reload and an admission rebuild (built as the object's own memory, not as a document).
|
|
339
|
+
- **Pages.** Page 1 is `(start, b1]`, page 2 `(b1, b2]`, and so on; **the last page has no upper bookmark**. A page
|
|
340
|
+
is one live read per source between its bookmarks, registered with the store with them and shared by nobody
|
|
341
|
+
else; the reads' rows are merged in the adoption. `through` is the inclusive mirror of `after`
|
|
342
|
+
(`src/store/sql.ts:168-189`). One code path: one source, one page and an empty list are tiled like any.
|
|
343
|
+
- **The last page** reads `first + 1` rows per source after the last bookmark and shows the merge up to its
|
|
344
|
+
`first`-th row, never past the last row of a source its limit cut. An empty list and a short one are a last page
|
|
345
|
+
with no or few rows: a row that arrives behind them is in its range. When a run finds a row behind what the page
|
|
346
|
+
shows, its bound is fixed at its last shown row, `moreAfter` turns true, and the list ends in a bounded page
|
|
347
|
+
until `more` is called. **`moreAfter` true may be stale** (the row behind was deleted since): the `more` that
|
|
348
|
+
loads nothing turns it false and leaves an empty last page, open at its end.
|
|
349
|
+
- **`more()`** opens the next last page: one read of `first + 1` rows per source. Calls run one at a time per list;
|
|
350
|
+
while the last page is open there is nothing more to load.
|
|
351
|
+
- **A reorder.** A row touched in page 3 leaves page 3's range and enters page 1's; both re-run in that commit and
|
|
352
|
+
adopt in its batch; the joined value changes by one move.
|
|
353
|
+
- **Splits and merges happen in the adoption, from the rows just read, with no I/O,** so no frame loses a loaded
|
|
354
|
+
row. A bounded page with more than `2 × first` rows is cut into pages of `first` at its own rows. Neighbours
|
|
355
|
+
with at most `first` rows together become one, an open last page with its neighbour too.
|
|
356
|
+
- **A run belongs to the interval it read, not to a page.** Its adoption replaces that source's rows of that
|
|
357
|
+
interval in whatever pages cover it now, then pages split and merge. In a commit group every run is computed
|
|
358
|
+
before any adoption: when the first commit's adoption merges pages P and Q, the second commit's run for Q's old
|
|
359
|
+
interval replaces Q's part of the merged page and nothing else; after a split it is cut the same way.
|
|
360
|
+
- **Overflow.** A read returns at most `max = 4 × first` rows. A run that reaches it (a bulk write) is cut as above,
|
|
361
|
+
and the rest of its range becomes one further page that loads next. Until it has, **the list's value ends at the
|
|
362
|
+
cut and `moreAfter` is true**: a prefix, never a hole. Pages behind the cut stay open and return with it.
|
|
363
|
+
- **Arguments that follow a value, and a provider's restart:** that source's reads re-open with their bookmarks
|
|
364
|
+
kept, and the list switches in one frame once each has its first result; one failure fails the list's value,
|
|
365
|
+
with its last rows. When the new query's order is not the bookmarks' (the cursors are refused), the list starts
|
|
366
|
+
again with a first page.
|
|
367
|
+
- **Reload of the list's object.** A `more` running at the commit is old work: it finishes on the old attempt and
|
|
368
|
+
its bookmark is in the document before the seal; a page load still running at the seal is dropped. The successor
|
|
369
|
+
finds the document by name, checks the bookmarks against the queries' order, opens the pages and goes live once
|
|
370
|
+
each read has its first result: holders get one frame, never an empty list or a first page alone. The old
|
|
371
|
+
attempt's pages are released only after the successor's bound, so a provider held only by them does not end
|
|
372
|
+
(design §21), also when the provider reloads in the same commit. A plugin whose staging failed keeps its list
|
|
373
|
+
untouched.
|
|
374
|
+
- **A re-hold sends everything the list has loaded** (accepted). A screen that wants less takes a new `view` id.
|
|
375
|
+
- The sources are fixed in the factory; only their arguments follow values (R22).
|
|
376
|
+
|
|
377
|
+
## 5. D. Column sets, `exists`, the one-to-one join
|
|
378
|
+
|
|
379
|
+
**The bounding rule.** Two tables are matched only by equality to the other set's key, or to an index it declares
|
|
380
|
+
(a leading prefix of either for `exists`, the whole key for a join). No other condition between two tables.
|
|
381
|
+
|
|
382
|
+
```ts
|
|
383
|
+
// the owning plugin's contract file, once
|
|
384
|
+
export const SessionColumns = defineColumns("sessions.columns", {
|
|
385
|
+
columns: { id: host(Session), app: str(), title: str(), creator: str(), private: bool(), state: str(), lastTouch: int(), archivedAt: opt(int()) },
|
|
386
|
+
key: ["id"] });
|
|
387
|
+
export const TeamSessions = defineColumns("club.team-sessions", {
|
|
388
|
+
columns: { team: str(), session: host(Session) }, key: ["team", "session"], indexes: { ofSession: ["session"] } });
|
|
389
|
+
// its server file: the table spreads the public columns in and says so
|
|
390
|
+
const Rows = defineTable("sessions.rows", { version: 3, columns: { ...SessionColumns.columns, cwd: str() },
|
|
391
|
+
key: ["id"], indexes: { byApp: ["app", "lastTouch"] }, exposes: SessionColumns });
|
|
392
|
+
|
|
393
|
+
exists(TeamSessions, { session: s.id }, (t) => inArray(t.team, teams)) // matched by the declared index `ofSession`
|
|
394
|
+
existsNode(SessionColumns, { id: n.session }, node) // the inner condition as data (§6)
|
|
395
|
+
query(TeamRows).where((t) => eq(t.team, team)).join(SessionColumns, (t) => ({ id: t.session }))
|
|
396
|
+
.where((_t, session) => eq(session.app, "club")).orderBy((_t, session) => session.lastTouch, "desc")
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
- A column set names scalar columns, its **key** and the **indexes** others may match by. `defineTable` checks
|
|
400
|
+
`exposes` at declaration (columns with the same definition, the same key, each index a leading prefix of one of
|
|
401
|
+
the table's). **Two tables exposing one set name is a declaration error** naming both. No versions.
|
|
402
|
+
- **The binding** (set name to SQL table) follows the committed code: made when the owner first declares the
|
|
403
|
+
table, kept across its reloads, moved or dropped at a reload's commit when the new code exposes the set from
|
|
404
|
+
another table or not at all. A read over a set nobody serves fails `unavailable` and re-runs when one appears.
|
|
405
|
+
The closure rule does not cover sets: they are checked when a read opens. The binding holds a table's name and
|
|
406
|
+
definition, never an attempt's handle: nothing of a sealed attempt is reachable through it.
|
|
407
|
+
- **While a bound table is not ready**, reads of other owners over it are held: not run, their rows kept. Not
|
|
408
|
+
ready is: not created yet (the set moved to a table its successor has not prepared), or migrating (`evolveTable`,
|
|
409
|
+
design §10, by the catalog's durable `state: "migrating"`, `src/store/catalog.ts:15`, so a failed migration stays
|
|
410
|
+
held). A migration's chunks are not a transaction's writes, and a commit of another owner between two chunks
|
|
411
|
+
would read a half-migrated table. When the table is ready, every open read over it is revalidated (each
|
|
412
|
+
column it uses, by name and type; a mismatch fails it `invalid/args` naming the column), recompiled and run once. A compile
|
|
413
|
+
or validation error never reaches the backend. A migration that fails leaves its owner failed (design §9) and
|
|
414
|
+
those reads held, their rows kept, until a later reload makes the table ready (built so; showing them failed
|
|
415
|
+
`unavailable` is carry-over). A host data import or delete waits for the migration, as an activation's load
|
|
416
|
+
phase does.
|
|
417
|
+
- **`exists`** is true for a row when the set's table has a row equal in the matched columns that satisfies the
|
|
418
|
+
condition (optional). No duplicates; `not(exists(…))` is its negation; it may be nested (within `whereNode`'s
|
|
419
|
+
depth bound). Its match is a leading prefix of the set's key or of a declared index. A `NULL` in a matched
|
|
420
|
+
column (an `opt` column) matches nothing: the `exists` is false and a join drops the row.
|
|
421
|
+
- **`join`** pairs each row with the one row of that key: an inner join, driven from the query's own table (the SQL
|
|
422
|
+
is rendered so the planner cannot reorder it). The partner's columns may be compared, ordered by and handed to
|
|
423
|
+
`map` (`partnerReads`). The match covers the set's whole key; a set is joined at most once per query.
|
|
424
|
+
- In both, matched columns have the same type (host columns the same kind); anything else is `invalid/args` naming
|
|
425
|
+
the column and listing the set's key and indexes. Compiled form: `{ exists: [setName, [[setColumn, column], …],
|
|
426
|
+
WhereNode | null] }`; a partner's column is `setName:column` in conditions, orders and cursors.
|
|
427
|
+
`updateWhere`, `deleteWhere` and conditions inside a transaction take neither.
|
|
428
|
+
- A commit of any table a read reads may re-run it, in that owner's step. Host data import and delete re-run every
|
|
429
|
+
read over a table with a host column of the address's kind.
|
|
430
|
+
|
|
431
|
+
## 6. E. Conditions as data
|
|
432
|
+
|
|
433
|
+
```ts
|
|
434
|
+
compile(SessionColumns, condition): WhereNode // over compileWhere (src/store/expression.ts:218): plain JSON data
|
|
435
|
+
query(Table).whereNode(SessionColumns, node) // in a builder; `SessionColumns` is the query's own table's set or a joined one
|
|
436
|
+
existsNode(SessionColumns, match, node) // in a builder: `exists` with a node as its inner condition
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
- `whereNode` applies the node to whichever side of the query is that set. On a joined set its columns become the
|
|
440
|
+
partner's, and an `exists` inside it is matched on the partner's column.
|
|
441
|
+
- `existsNode` is for a row that may point at something the person must be able to see (a notification with an
|
|
442
|
+
optional session, §8).
|
|
443
|
+
- **A trust boundary.** `whereNode` and `existsNode` validate the whole node before anything is rendered: one known kind per node,
|
|
444
|
+
operand shapes and types, encoded host operands, every column in the set, every `exists` match rule, a depth
|
|
445
|
+
bound. A failure is `invalid/args`.
|
|
446
|
+
- **Conditions are built by server code only.** Clients send values (an app id, a team); the guide says so.
|
|
447
|
+
- **No substring filter.** The only text operator is `prefix`. Filtering as you type goes through the search
|
|
448
|
+
plugin's method, its hits read with a named query (§9); the guide says so, and says never to read everything and
|
|
449
|
+
filter in a derive.
|
|
450
|
+
- **A host-data delete limited to one plugin:** `host.deleteHostData(address, ctx, { plugin })` removes the
|
|
451
|
+
address's records and rows only in what that plugin's objects own, in one commit.
|
|
452
|
+
|
|
453
|
+
## 7. Cost and garbage
|
|
454
|
+
|
|
455
|
+
A bound limits the rows a run **returns**. What it **reads** depends on the index its order and condition can use,
|
|
456
|
+
and every run blocks its host: the store's backend is synchronous.
|
|
457
|
+
|
|
458
|
+
| Where | Work |
|
|
459
|
+
| --- | --- |
|
|
460
|
+
| a commit writing a table nothing reads live | one map lookup per written table (as today) |
|
|
461
|
+
| a commit writing a table with R reads | the skip test per read: a set lookup, then at most one keyed probe (about 2 µs in SQLite, measured); a run per read not skipped; `chord.query.runs`, `chord.query.probes`, `chord.query.skips`. Linear in the reads the assigned columns cannot rule out |
|
|
462
|
+
| a page of a list | one seek in the order's index, then every row of the table between its bookmarks the index cannot exclude |
|
|
463
|
+
| `exists` | one index probe per row tested, which may pass several rows of that prefix before its inner condition holds |
|
|
464
|
+
| a join | the own rows the own condition admits, one key lookup each, a sort when the order uses a partner column |
|
|
465
|
+
| a list | a read per page and source; a touch re-runs the page left and the first page |
|
|
466
|
+
| a count | every row matching its condition, on each re-run |
|
|
467
|
+
| an admitted object | its admission's references and derives; one more attempt per changed value |
|
|
468
|
+
| a route admission | one decision per (principal, address) with holds |
|
|
469
|
+
|
|
470
|
+
- **The index rule.** A named query names, in a comment, the index its order and its condition's selective part run
|
|
471
|
+
on. Whether a query scans is checked by plan tests against the SQLite backend and by §9's numbers; `chord.query.
|
|
472
|
+
rows` (rows returned to Chord) measures output only.
|
|
473
|
+
- **An `inArray` on one column with an order on another walks the order's index.** Measured: a sidebar's "working,
|
|
474
|
+
waiting or failed, by last touch" read 10,000 rows in 2.3 ms; ordered by state, then last touch, 0.07 ms. Every
|
|
475
|
+
named query of §8 has a plan test.
|
|
476
|
+
- A list ordered by a partner's column (the team page) reads and sorts all its driver's rows on each run. A write
|
|
477
|
+
of that column elsewhere in the partner's table costs it one probe, not a run. No value is copied into the
|
|
478
|
+
list's own row for this.
|
|
479
|
+
- GC tests: after the last reader ends, nothing of a read, a page, a list, a dropped binding or a route decision is
|
|
480
|
+
reachable.
|
|
481
|
+
|
|
482
|
+
## 8. Worked examples (p3's code, shown to test the design)
|
|
483
|
+
|
|
484
|
+
**Access: one rule per app, as a condition; no list of ids, no cap.**
|
|
485
|
+
|
|
486
|
+
```ts
|
|
487
|
+
export type AppEntry = { readonly id: string; readonly shares: boolean;
|
|
488
|
+
visible(member: Member, s: typeof SessionColumns.refs): Condition | undefined; // undefined: all of the app's sessions
|
|
489
|
+
mode(member: Member, session: PublicSession): "read" | "write" };
|
|
490
|
+
// family: private is private to its creator, parents included
|
|
491
|
+
self.contribute(Apps, { id: "family", shares: true, visible: (m, s) => or(eq(s.private, false), eq(s.creator, m.person)), mode: () => "write" });
|
|
492
|
+
// club: the sessions of the member's teams, and what the member created
|
|
493
|
+
self.contribute(Apps, { id: "club", shares: false,
|
|
494
|
+
visible: (m, s) => or(eq(s.creator, m.person), exists(TeamSessions, { session: s.id }, (t) => inArray(t.team, teamsOf(m)))), mode: (m) => (m.role === "coach" ? "write" : "read") });
|
|
495
|
+
|
|
496
|
+
host.serve(PersonAccess, ({ person }, self) => { // local, on the server
|
|
497
|
+
const members = self.liveQuery(self.get(PeopleStore, {}).members.ofPerson, { person }, { first: 100 }); // one row per app
|
|
498
|
+
const mine = self.derive([members], ([m]) => {
|
|
499
|
+
if (m.more) throw new Error("apps: more memberships than this reads"); // a source of access fails closed
|
|
500
|
+
return m.rows; });
|
|
501
|
+
const app = SessionColumns.refs.app, apps = self.registry(Apps);
|
|
502
|
+
return { members,
|
|
503
|
+
// app id -> the member's rule alone: what a list's dense source walks (§4)
|
|
504
|
+
rules: self.derive([mine, apps], ([rows, all]) => Object.fromEntries(rows.map((m) => [m.app, compile(SessionColumns, ruleOf(all, m))]))),
|
|
505
|
+
// everything the person may see: what every source and every single read is checked by
|
|
506
|
+
condition: self.derive([mine, apps], ([rows, all]) => compile(SessionColumns, or(
|
|
507
|
+
...rows.map((m) => and(eq(app, m.app), ruleOf(all, m))),
|
|
508
|
+
and(inArray(app, sharing(all)), exists(Shares, { session: SessionColumns.refs.id }, (x) => eq(x.person, person)))))) };
|
|
509
|
+
});
|
|
510
|
+
```
|
|
511
|
+
|
|
512
|
+
A new share changes no condition: the share row is written, and by §3.3's `exists` clause only that person's reads
|
|
513
|
+
re-run.
|
|
514
|
+
|
|
515
|
+
**One session's answer, the hop to its worker, the route.**
|
|
516
|
+
|
|
517
|
+
```ts
|
|
518
|
+
host.serve(SessionAnswer, ({ session, person }, self) => { // local, on the server
|
|
519
|
+
const access = self.get(PersonAccess, { person });
|
|
520
|
+
const people = self.get(PeopleStore, {});
|
|
521
|
+
const one = self.liveQuery(self.get(SessionsStore, {}).sessions.one,
|
|
522
|
+
self.derive([access.condition], ([condition]) => ({ condition, id: session })), { first: 1 });
|
|
523
|
+
const share = self.liveQuery(people.shares.one, { person, session }, { first: 1 });
|
|
524
|
+
return { admitted: self.derive([one, share, access.members, self.registry(Apps)], ([found, x, m, apps]) =>
|
|
525
|
+
found.rows.length === 0 ? deny("no access") : allow({ mode: modeOf(found.rows[0], m.rows, x.rows[0], apps) })) };
|
|
526
|
+
});
|
|
527
|
+
// the app's API owns the contracts the worker and the route read (`SessionAdmission`, `SessionRoute`); the sessions plugin serves them
|
|
528
|
+
host.serve(SessionAdmission, ({ session, person }, principal, self) => { // remote on the server
|
|
529
|
+
if (principal.kind !== "worker" || principal.session !== session) throw forbidden("the session's worker only");
|
|
530
|
+
return { variant: "worker", members: { admitted: self.get(SessionAnswer, { session, person }).admitted } };
|
|
531
|
+
});
|
|
532
|
+
host.serve(PersonHere, ({ session, person }, self) => ({ admitted: self.get(SessionAdmission, { session, person }).admitted })); // local, on the worker
|
|
533
|
+
const inSession = ({ session }, principal, self) =>
|
|
534
|
+
principal.kind === "owner" ? constant(allow({ mode: "owner" })) : principal.kind === "server" ? constant(allow({ mode: "server" }))
|
|
535
|
+
: principal.kind === "person" ? self.get(PersonHere, { session, person: principal.id }).admitted : constant(deny("no access"));
|
|
536
|
+
host.serve(Transcript, ({ conversation }, _principal, admitted, self) =>
|
|
537
|
+
admitted.mode === "read" ? { variant: "viewer", members: viewer(conversation, self) } : { variant: "participant", members: participant(conversation, self) },
|
|
538
|
+
{ admit: inSession });
|
|
539
|
+
// base code (the workers component's `admit`): nobody denied starts a worker; `SessionRoute` is local, on the server, over `SessionAnswer`
|
|
540
|
+
admit: (principal, address, self) => principal.kind === "person"
|
|
541
|
+
? self.derive([self.get(SessionRoute, { session: address.params.id, person: principal.id }).admitted], ([a]) => (a.kind === "allow" ? allow(null) : a))
|
|
542
|
+
: constant(allow(null)),
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
Max removed from the family: his member row goes, his condition changes, `one` re-opens and is empty, the answer is
|
|
546
|
+
`deny`: his transcript is sealed, its calls reject `forbidden/revoked`, the route unbinds his holds.
|
|
547
|
+
|
|
548
|
+
**The club: a member's list and the team page,** both driven from the club's side table, ordered by the sessions'
|
|
549
|
+
last touch, the session's current app checked. The team page's team comes from the admission.
|
|
550
|
+
|
|
551
|
+
```ts
|
|
552
|
+
const teamSessions = self.queries(teamRows, { map: (_row, session) => sessionItem(session), reads: [], partnerReads: ["id", "title", "state", "lastTouch"] }, {
|
|
553
|
+
ofTeams: ({ teams, condition }) => query(TeamRows).where((t) => inArray(t.team, teams)) // key (team, session): a probe by session is one lookup per team
|
|
554
|
+
.join(SessionColumns, (t) => ({ id: t.session }))
|
|
555
|
+
.where((_t, session) => and(eq(session.app, "club"), isNull(session.archivedAt))) // a session that moved to another app is gone at once
|
|
556
|
+
.whereNode(SessionColumns, condition) // the person's access, on the joined side
|
|
557
|
+
.orderBy((_t, session) => session.lastTouch, "desc").orderBy((_t, session) => session.id, "desc"),
|
|
558
|
+
});
|
|
559
|
+
host.serve(ClubSessions, (_params, principal, _admitted, self) => { // a member's sessions: their teams', and what they created
|
|
560
|
+
const me = personOf(principal), access = self.get(PersonAccess, { person: me });
|
|
561
|
+
const list = self.list("mine", [
|
|
562
|
+
[self.get(ClubStore, {}).teamSessions.ofTeams, self.derive([access.members, access.condition], ([m, condition]) => ({ teams: clubTeams(m.rows), condition }))],
|
|
563
|
+
[self.get(SessionsStore, {}).sessions.createdBy, self.derive([access.condition], ([condition]) => ({ app: "club", person: me, condition }))],
|
|
564
|
+
], { first: 50 }); // a session in two of the teams, or created and in a team, is one row
|
|
565
|
+
return { variant: "list", members: { list: list.value, more: (ctx) => list.more(ctx) } };
|
|
566
|
+
}, { admit: signedIn });
|
|
567
|
+
const inTeam = ({ team }, principal, self) => principal.kind === "owner" ? constant(allow({ team }))
|
|
568
|
+
: self.derive([self.get(PersonAccess, { person: principal.id }).members], ([m]) =>
|
|
569
|
+
clubTeams(m.rows).includes(team) ? allow({ team }) : deny("not your team"));
|
|
570
|
+
host.serve(TeamPage, (_params, principal, admitted, self) => {
|
|
571
|
+
const teams = self.get(ClubStore, {}).teamSessions.ofTeams;
|
|
572
|
+
const args = self.derive([conditionOf(self, principal)], ([condition]) => ({ teams: [admitted.team], condition }));
|
|
573
|
+
const list = self.list("team", [[teams, args]], { first: 50 });
|
|
574
|
+
return { variant: "list", members: { list: list.value, more: (ctx) => list.more(ctx),
|
|
575
|
+
count: self.count(teams, args) } }; // "u12 · 300 sessions": reads the team's rows on each re-run
|
|
576
|
+
}, { admit: inTeam });
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
Per run of one page, for a team of T sessions in a club of C (SQLite alone, in memory, on the development server;
|
|
580
|
+
Chord's decoding and diffing come on top):
|
|
581
|
+
|
|
582
|
+
| | Driven from the team's rows (above) | `exists`, walking the club by last touch |
|
|
583
|
+
| --- | --- | --- |
|
|
584
|
+
| reads | T rows, T lookups, a sort of T | about 50 × C / T rows, a probe each |
|
|
585
|
+
| T = 20, C = 3,000 | 0.02 ms | 1.1 ms |
|
|
586
|
+
| T = 300, C = 3,000 | 0.21 ms | 0.26 ms |
|
|
587
|
+
| a guest with 2 shares among 3,000, driven from the shares | 0.003 ms | 0.85 ms |
|
|
588
|
+
| a touch of a session elsewhere in the club | one probe (under 0.003 ms) | one probe |
|
|
589
|
+
| re-runs its first page on | a team row written; a session of the team touched | a visible session touched |
|
|
590
|
+
|
|
591
|
+
**The sidebar's working set:** four small lists merged in memory, not one `or` (which no index serves).
|
|
592
|
+
|
|
593
|
+
```ts
|
|
594
|
+
host.serve(Sidebar, (_params, principal, _admitted, self) => {
|
|
595
|
+
const hour = self.writable(hourNow());
|
|
596
|
+
self.onLive(async (ctx) => { for (;;) { await sleep(untilNextHour(), ctx); hour.set(hourNow()); } });
|
|
597
|
+
const condition = conditionOf(self, principal), sessions = self.get(SessionsStore, {}).sessions, me = personOf(principal);
|
|
598
|
+
const mine = self.derive([condition], ([c]) => ({ person: me, condition: c }));
|
|
599
|
+
const lists = {
|
|
600
|
+
active: self.list("active", [[sessions.inStates, self.derive([condition], ([c]) => ({ condition: c, states: ["working", "waiting", "failed"] }))]], { first: 50 }),
|
|
601
|
+
recent: self.list("recent", [[sessions.since, self.derive([condition, hour], ([c, h]) => ({ condition: c, since: h - WINDOW }))]], { first: 50 }),
|
|
602
|
+
pinned: self.list("pinned", [[self.get(Pins, {}).pins.ofPerson, mine]], { first: 50 }),
|
|
603
|
+
unread: self.list("unread", [[self.get(Reads, {}).marks.ofPerson, mine]], { first: 50 }) };
|
|
604
|
+
return { variant: "person", members: {
|
|
605
|
+
sections: self.derive([lists.active.value, lists.recent.value, lists.pinned.value, lists.unread.value, self.registry(Groupings)], sectionsOf),
|
|
606
|
+
more: (which, ctx) => lists[which].more(ctx) } };
|
|
607
|
+
}, { admit: signedIn });
|
|
608
|
+
// Pins (Reads alike): the person's own rows drive, the condition decides, the order is the row's own column
|
|
609
|
+
ofPerson: ({ person, condition }) => query(PinRows).where((p) => eq(p.person, person)) // key (person, session)
|
|
610
|
+
.join(SessionColumns, (p) => ({ id: p.session })).whereNode(SessionColumns, condition).orderBy((p) => p.pinnedAt, "desc"),
|
|
611
|
+
// sessions.inStates orders by state, then last touch: index (state, lastTouch); by last touch alone it walks every session (§7)
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
- Pins and marks are **the person's**: `person` is an argument the factory takes from the principal, never read out
|
|
615
|
+
of the condition. Another person's pin or mark is another key prefix and re-runs nothing here.
|
|
616
|
+
- The sidebar is a bounded summary. `sectionsOf` groups the merged rows and passes each list's `moreAfter` on; `more`
|
|
617
|
+
loads a list's next page. **The unread count per section is counted from the rows of `unread`**, and is a lower
|
|
618
|
+
bound ("3+") while that list has more.
|
|
619
|
+
- `active` and `recent` walk what is active now and what was touched in the window, for every person, a sparse one
|
|
620
|
+
included: that grows with activity, not with history (§9 measures the guest's). Driving them from a person's
|
|
621
|
+
teams and shares needs sources that follow a value (carry-over).
|
|
622
|
+
|
|
623
|
+
**A notification feed** hides items whose session the person can no longer see, and keeps those without one:
|
|
624
|
+
|
|
625
|
+
```ts
|
|
626
|
+
forPerson: ({ person, condition }) => query(Notes).where((n) => and(eq(n.person, person),
|
|
627
|
+
or(isNull(n.session), existsNode(SessionColumns, { id: n.session }, condition)))).orderBy((n) => n.at, "desc"),
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
**A session moves to another app:** the sessions plugin updates the row, then calls `deleteHostData(address, ctx,
|
|
631
|
+
{ plugin: oldApp })`. Between the two commits the club's lists already exclude it (`session.app = "club"`).
|
|
632
|
+
|
|
633
|
+
## 9. Acceptance: p3's ordinary screens
|
|
634
|
+
|
|
635
|
+
**Data.** 10,000 session rows: a club of 3,000 (ten teams of 300 and one of 20), a family of 3,000, 4,000 archived
|
|
636
|
+
elsewhere; 200 working, waiting or failed; 330 touched in the sidebar's window; one session with 5,000 subagents.
|
|
637
|
+
|
|
638
|
+
**Open at once (the mix),** all on the server:
|
|
639
|
+
- 10 family members: a sidebar (four lists) and the family's list (§4) each;
|
|
640
|
+
- 10 club members, each in two of the ten teams: a sidebar, the club's list and both team pages each, so **20 team
|
|
641
|
+
pages**, two per team;
|
|
642
|
+
- a guest with 2 shares in the family, and a member of the team of 20: a sidebar and a list each (and its team page);
|
|
643
|
+
- 20 workers, each following its session.
|
|
644
|
+
|
|
645
|
+
**The event** is a touch: `update(S, { lastTouch, state })` of a club session in one team of 300 (an `update`,
|
|
646
|
+
not a `put`), S on the first page of its team's pages and lists, pinned and unread by nobody.
|
|
647
|
+
|
|
648
|
+
| Reads over the session table | Open | The touch causes |
|
|
649
|
+
| --- | --- | --- |
|
|
650
|
+
| team pages, first page | 21 | 2 runs (S's team), 19 probes |
|
|
651
|
+
| team pages' counts | 21 | nothing (no condition column assigned) |
|
|
652
|
+
| club lists, source "teams" | 11 | 2 runs, 9 probes |
|
|
653
|
+
| club lists, source "created" | 11 | 11 probes |
|
|
654
|
+
| family lists, source "rule" | 11 | 11 probes |
|
|
655
|
+
| family lists, source "shares" | 11 | 11 probes |
|
|
656
|
+
| sidebars: active, recent | 44 | 4 runs, 40 probes |
|
|
657
|
+
| sidebars: pinned, unread | 44 | nothing (order and condition columns not assigned, S not among their rows) |
|
|
658
|
+
| workers | 20 | 1 run (the others: an `update` of no condition or order column of a row they do not show) |
|
|
659
|
+
| **all** | | **9 runs, 101 probes** |
|
|
660
|
+
|
|
661
|
+
**Budgets,** on the development server (`test/bench/slice-14.ts` fails when one is missed; a phone is taken as 5
|
|
662
|
+
times slower). Two kinds, so a miss says which went wrong:
|
|
663
|
+
- **per run:** the first load or a re-run of a page of 50 rows at most **2 ms**; of a page whose driver has at most
|
|
664
|
+
20 rows at most **0.2 ms**; a probe at most **0.02 ms**;
|
|
665
|
+
- **the number of runs and probes** an event causes: exactly the table's (`chord.query.runs`, `chord.query.probes`);
|
|
666
|
+
- and their sum: **an ordinary commit's step at the mix at most 5 ms.** The step at ten times the mix is reported
|
|
667
|
+
without a budget (probes are linear in the open reads).
|
|
668
|
+
|
|
669
|
+
**Measured** (2026-11-15, `benchmarks.md`, with each source of a list over several sources as a list of its own
|
|
670
|
+
until those are built): 9 runs, 101 probes, 3.5 ms for the touch; a probe 4 µs; every kind of read inside its
|
|
671
|
+
per-run budget; ten times the mix 31 ms; the subagents' list: first page 0.64 ms, a message 0.6 ms, 26 pages for
|
|
672
|
+
1,000 loaded rows after 10,000 touches. The estimate this was planned from: SQLite alone (node:sqlite in memory, this data, 2026-11-15) takes about 1.6 ms for the 9
|
|
673
|
+
runs (a team page 0.21 ms, a club list's teams source over 600 rows 0.40 ms, a sidebar list under 0.1 ms) and under
|
|
674
|
+
0.3 ms for the 101 probes (0.6 to 2.6 µs each). Chord's decoding, mapping and diffing are not measured. Without the
|
|
675
|
+
probe the same touch runs about 110 reads: 14 ms.
|
|
676
|
+
|
|
677
|
+
| # | Screen | Code | Example | Must hold |
|
|
678
|
+
| --- | --- | --- | --- | --- |
|
|
679
|
+
| 1 | sidebar: recent, sections, unread count per section | §8 `Sidebar` | `73-sidebar.ts` | first load within 4 × 2 ms, for the guest too; a touch of a session the person does not see: 0 runs; another person's pin or mark: 0 runs, one probe; with 120 marks over three sections the counts are lower bounds until `more` loaded them |
|
|
680
|
+
| 2 | a member's list in an app with a dense rule | §4 `SessionsList` | `71-lists.ts` | first page 2 ms; `more` sends only inserts; a session shared and visible by the rule is one row |
|
|
681
|
+
| 3 | **sparse persons:** a guest with 2 shares among 3,000; a member of one team of 20 in a club of 3,000 | §4, §8 `ClubSessions` | `71-lists.ts`, `72-exists-and-joins.ts` | first page 0.2 ms (walking the app takes 1 ms and fails it); a touch of a session they do not see: 0 runs |
|
|
682
|
+
| 4 | the team page, the session's app checked, with its count | §8 `TeamPage` | `72-exists-and-joins.ts` | first page 2 ms at T = 300; the table's numbers; a session moved to another app leaves in the frame of the move; the count re-runs on an archive, not on a touch |
|
|
683
|
+
| 5 | a worker following its session | `self.liveQuery(sessions.one, …, { first: 1 })` behind `SessionAdmission` | `69-admission.ts` | a write to any other session: 0 runs, 0 probes |
|
|
684
|
+
| 6 | a session's 5,000 subagents | a list over `children.ofSession` | `71-lists.ts` | first page 2 ms; a message (one child to the top) 5 ms with 20 pages loaded; the page count stays bounded over 10,000 touches |
|
|
685
|
+
| 7 | a share link revoked with lists open | `deleteWhere` on shares (§8) | `74-access.ts` | the commit within 10 ms, every read over the shares table re-run (reported); only the affected persons' values change; their open transcripts of that session are denied |
|
|
686
|
+
| 8 | reconnect after sleep | a re-hold of the list object | `71-lists.ts` | within `linger`: one `bound` with what was loaded; after it: a first page |
|
|
687
|
+
| 9 | reload of the store, of a column set's publisher (with a migration), and of the list's object, with lists open | §3.2, §5, §4 | `75-reload.ts` | one frame per holder each; no failed member; no row lost or doubled; a commit during the migration runs no read over that table |
|
|
688
|
+
| 10 | a session moving apps | §8 | `74-access.ts` | each commit within 10 ms; the old app's rows gone; the club's lists and the old app's lose it, the new app's gain it |
|
|
689
|
+
| 11 | a notification feed | §8 `forPerson` | `74-access.ts` | an item whose session the person lost leaves in that commit; one without a session stays; a touch: 0 runs, 0 probes (no inner-condition column assigned) |
|
|
690
|
+
|
|
691
|
+
Reported without a budget: a touch of a session every open list shows; an archive of a club session (the 21
|
|
692
|
+
counts re-run, 0.06 ms each in SQLite). If the first is ever judged too high, the carry-over's "maintain a page
|
|
693
|
+
from the written rows" is the answer.
|
|
694
|
+
|
|
695
|
+
Outside the list: the transcript (Durable's entries: the same tiling by entry id, old pages a method's answers,
|
|
696
|
+
only the tail live; it depends on Durable's windowed view, `slices.md` "Any slice"), and search and filtering as
|
|
697
|
+
you type (the search plugin's method, its hits filtered with `sessions.visibleAmong` read by `page`).
|
|
698
|
+
|
|
699
|
+
## 10. Tests (one file per source file, one `describe` per mechanism; cost guards through the in-memory telemetry adapter)
|
|
700
|
+
|
|
701
|
+
**`contracts`**: `queries(...)` in a remote contract refused, re-exposed refused; a contract without `queries`
|
|
702
|
+
keeps its fingerprint, a query's argument schema is in it, `admission` is not; a listed query without a builder, a
|
|
703
|
+
builder with a schema for a listed name, a private query without a schema: each refused; `evolve`'s `admission`; `defineColumns` (key and indexes name its
|
|
704
|
+
columns, `json` refused); `exposes`: a missing column, another type, another key, an index the table lacks, two
|
|
705
|
+
tables exposing one name: each refused at declaration.
|
|
706
|
+
|
|
707
|
+
**`store/expression`, `sql`, `evaluate`, `query`**: `exists` with and without an inner condition, nested, negated;
|
|
708
|
+
matched by the key, a prefix, a declared index, a `str` key, a composite key; **a match on a column that is none of
|
|
709
|
+
those refused, naming it**; other types or host kinds refused; `exists` and `join` refused in `updateWhere`,
|
|
710
|
+
`deleteWhere`, `tx.page`; `join`: a match short of the whole key refused, a set twice refused, a row without a
|
|
711
|
+
partner dropped, a partner column in `where` and `orderBy`, cursors of a joined order; the plan drives from the own
|
|
712
|
+
table (a plan test on the SQLite backend); `through` (inclusive, with `after`, descending, composite); the
|
|
713
|
+
full-row `matches` and `applySet` unchanged; `whereNode`: an
|
|
714
|
+
unknown kind, two kinds in a node, a wrong operand type, an unencoded host operand, a column outside the set, a
|
|
715
|
+
broken match rule, too deep: each `invalid/args`, none reaches the backend; `whereNode` on a joined set, with an
|
|
716
|
+
`exists` matched on the partner; `existsNode` validated as `whereNode`; a `NULL` in a matched column matches
|
|
717
|
+
nothing (`exists` false, the joined row dropped); the probe's statement is keyed (plan tests for an own key, a
|
|
718
|
+
join's match after an `eq` prefix, an `exists` match), and a read without a keyed probe is compiled without one.
|
|
719
|
+
|
|
720
|
+
**`store/live-query`**:
|
|
721
|
+
1. open: rows before the reader is live; `more`; **a read opened while a commit waits in the queue is refreshed by
|
|
722
|
+
it**; a commit between registration and adoption (the newer result stays); a first run that fails parks the
|
|
723
|
+
reader `failed { waiting }` and heals; refused arguments break it.
|
|
724
|
+
2. `self.query` (old form) and a named read over one table: each re-run once by a commit; the wrong form of each
|
|
725
|
+
call throws naming the other; an owner's private named query; an owner's own read opens in its activation.
|
|
726
|
+
3. shared: two readers, one read, the same rows object; the last release frees it (GC).
|
|
727
|
+
4. projection: `map` gets only `reads`; an unlisted column is absent; an update of an unlisted column is skipped for
|
|
728
|
+
a row in the read; of a listed one re-runs.
|
|
729
|
+
5. skip, own table: another key of a `one` read (one probe, no run); an update of a non-condition, non-order
|
|
730
|
+
column of a row not in the read (no probe); a put that cannot match and a put past the row beyond the bound (a
|
|
731
|
+
probe miss); a put inside re-runs; a delete of a key not among the keys (a probe miss); a delete of the row past
|
|
732
|
+
the bound re-runs; a loading and a failed read re-run.
|
|
733
|
+
6. skip, `exists`: **a pin moved from S1 to S2 by `update` and by a replacing `put` re-runs the reads of S1 and of
|
|
734
|
+
S2, also under `not(exists(…))`**; a share written (its matched column in the key) for a session of another
|
|
735
|
+
app: the probe skips that app's list; for a row in the read re-runs; an `update` of a set column outside match
|
|
736
|
+
and inner condition skipped without a probe; an `exists` matched on a partner's key probes through it, on
|
|
737
|
+
another partner column re-runs; a table used twice is skipped only when both uses are.
|
|
738
|
+
7. skip, joins: **an update of a partner column only `map` gets re-runs and that item alone is a new object**; a
|
|
739
|
+
partner update changing the order: **the team page of another team is skipped by one probe, the session's team
|
|
740
|
+
re-runs**; a partner column outside condition, order and `partnerReads` skipped; **re-pointing a row to another
|
|
741
|
+
partner (`reads: []`) re-runs**; a partner deleted drops the row; a read whose probe is not keyed re-runs.
|
|
742
|
+
8. `updateWhere` unrelated skipped, related re-run; `deleteWhere` and host data import and delete re-run all.
|
|
743
|
+
9. group commit: two owners' commits in one group, each order, for an `exists` read and a joined read (a row
|
|
744
|
+
re-pointed in the first, that partner updated in the second); a failed earlier run; rollback and solo replays.
|
|
745
|
+
10. arguments that follow a value: parked until the source has a value; the old result until the new is adopted; A,
|
|
746
|
+
B, C with B failing; a failed new read is a failed member; a first argument derive that throws.
|
|
747
|
+
11. column sets: not served, then served; a column of another type fails the read at open. (Reloads: 17, 18.)
|
|
748
|
+
13. two persons: one cannot get the other's rows by any params (the condition comes from the admission's sources);
|
|
749
|
+
with the same sessions and different pins and marks each sees only their own, and the other's write runs and
|
|
750
|
+
probes nothing.
|
|
751
|
+
13a. **the oracle, written before the skip code:** in a randomized run of writes (`put`, `update`, `delete`, group commits) over own, joined and
|
|
752
|
+
`exists` tables, with reads of every shape of §8, every skipped read equals a fresh run of its statement.
|
|
753
|
+
13b. `self.count`: exact; an `update` of no condition or match column is
|
|
754
|
+
skipped, every other write of its tables re-runs it; arguments that follow a value; no cap.
|
|
755
|
+
|
|
756
|
+
**`host/list`**: a first page from one read; `more` adds only inserts; two `more` calls run in turn; a row moving
|
|
757
|
+
between pages is one move; **after every published frame of a randomized run** (touches, inserts, deletes, bulk
|
|
758
|
+
writes of 20 × `first`, group commits, rollbacks, one and three sources) the value is a gapless, duplicate-free
|
|
759
|
+
prefix of the true order, and the whole order when `moreAfter` is false; a split at `2 × first` and a merge change
|
|
760
|
+
no row; overflow shows a prefix with `moreAfter`; the page count stays bounded.
|
|
761
|
+
- the last page: an empty list, a short one, exactly `first` rows (`moreAfter` false; a row appended behind each
|
|
762
|
+
appears, or bounds the page and turns `moreAfter` true); the row behind a bounded last page deleted: `moreAfter`
|
|
763
|
+
stays true, a `more` loads nothing and turns it false, a new row behind then appears.
|
|
764
|
+
- several sources: merged in order; a row of two sources, and a row twice in one source, appears once; a source
|
|
765
|
+
cut by its limit bounds the page before the others' later rows; more than `first + 1` rows of one source with
|
|
766
|
+
one session key, with and without a later session (progress, one row, `moreAfter`); a re-run of one source
|
|
767
|
+
changes only its rows;
|
|
768
|
+
orders of different columns or directions, or not ending in one shared set's key, refused when the list opens;
|
|
769
|
+
one source's arguments change (one frame).
|
|
770
|
+
- commit groups, deterministic: C1 leaves P with `[A]` and Q with `[B, C]`, C2 changes C; **C1's adoption merges P
|
|
771
|
+
and Q, C2's run for Q's old interval updates C and nothing else**; both orders; split, then a run for the old
|
|
772
|
+
page; a merge with the last page; rollback and solo replays; complete rows compared, not ids.
|
|
773
|
+
- arguments changing switch every page in one frame, one failing page fails the value; another order starts again;
|
|
774
|
+
everything released when the object ends (GC). (Reloads: 19.)
|
|
775
|
+
|
|
776
|
+
**`host/attempt`, `object`, `dependencies`, `staging`, `reference`, `route`; `remote/relay`; `node/workers`**:
|
|
777
|
+
14. admission: deny then allow through a direct hold and a dependent's `self.get` (it heals); each row of 2.2's
|
|
778
|
+
table; a source whose successor parks (readers sealed, then rebuilt); a source's contract bumped without
|
|
779
|
+
`accepts` in a server-first rollout seals its readers, with `accepts` seals nothing; an unrehearsed admitted
|
|
780
|
+
factory with a declaration error is reported at its activation; `denied` shown before the old teardown finished; what a denial removes, and that a `WatchHandle`'s value
|
|
781
|
+
stays; references kept until the successor bound; `self.job` refused; declaration errors; rehearsal by
|
|
782
|
+
fingerprint, none for a denied-only type; presence; linger; `parked_long` silent; `ref.retry()`.
|
|
783
|
+
15. route admission: no `resolve` and no forward before the first allow; a denied hold starts no host; allow later
|
|
784
|
+
binds; deny unbinds and rejects calls in flight `forbidden/revoked`; **allow, deny, allow with the old `bound`,
|
|
785
|
+
`state`, `event` and call replies in transit on the same link: all dropped before the `pong`, the hold forwarded
|
|
786
|
+
after it under its id, a second hold of any id undisturbed**; a liveness `pong` in transit does not end the
|
|
787
|
+
fence; a denial before the `pong`; the link lost before it; deny and allow three times in a row; two principals on one address; a failed source leaves
|
|
788
|
+
bound holds and fails new ones; `RouteHandle.retry` with
|
|
789
|
+
only denied holds starts no host; an admission holding a type behind its route fails `invalid/cycle`; `createWorkers` passes `admit`; one decision for several holds (GC).
|
|
790
|
+
16. host data: `deleteHostData` with `plugin` leaves other plugins' data, in one commit; reads over its tables
|
|
791
|
+
re-run.
|
|
792
|
+
|
|
793
|
+
**Reload** (`test/host/reload-reads.test.ts`; each case also in the page, server and worker reload suite of
|
|
794
|
+
design §21): no consumer factory runs again in any of them.
|
|
795
|
+
17. the store's plugin alone, under two unchanged readers sharing a read, a list of three pages and another owner's
|
|
796
|
+
joined read: one frame, none when equal; a write of old work during the drain is delivered; **a write admitted
|
|
797
|
+
before the seal and paused across it** still refreshes the outgoing reads, is published as the old instance's
|
|
798
|
+
last, and no old statement runs on the migrated table; a commit of an `exists` table's owner between the seal
|
|
799
|
+
and the successor's first run is in the reader's one frame; a late first run or teardown of the old attempt
|
|
800
|
+
does not replace or remove the successor's registration; the new builder is used; each later commit runs each
|
|
801
|
+
read once; equal results send nothing; a reorder across pages during the handover leaves no gap or duplicate; a
|
|
802
|
+
group commit crossing the restart; old handles and registrations collect. The same with a table migration.
|
|
803
|
+
18. a publisher's plugin alone, under an `exists` reader and a joined reader of another, unchanged provider: pure
|
|
804
|
+
code; an unused column added; a used column renamed, dropped, retyped (`invalid/args` before any SQL, the store
|
|
805
|
+
usable); an eager migration held between chunks with a third owner's commit (no read over the table runs, one
|
|
806
|
+
frame after `ready`); a migration that fails (`unavailable`, held after its announcement is gone, ready after
|
|
807
|
+
a fixing reload); a set moved to a table its successor has not created yet (held, then one frame); `exposes`
|
|
808
|
+
removed and restored; the type removed and served again; staging
|
|
809
|
+
failed (the old binding still serves); host data import and delete during the migration; no old attempt kept.
|
|
810
|
+
19. a list's plugin alone, its provider alone, and both in one reload, with three pages loaded, one split, its
|
|
811
|
+
boundary row deleted and a `more` begun: the bookmark document is the same, every range is registered exactly
|
|
812
|
+
once, the rows equal the true ranges after every frame, no first-page collapse; a write into each range gives
|
|
813
|
+
one update; a second list added by the reload; a `more` called in the gap or crossing a seal; staging failed (nothing changes); a group rolled back leaves no bookmark; another order starts the
|
|
814
|
+
list again; a re-hold within `linger` gets the restored pages; old pages and closures collect.
|
|
815
|
+
20. an admission source's plugin alone, with a method of the admitted object running: an equal decision (the method
|
|
816
|
+
completes, the factory and its natives are not rebuilt, the source never loses its last holder); a changed
|
|
817
|
+
value, a denial, a failed and a removed source, each also while the admitted object's own old attempt drains and
|
|
818
|
+
while it opens a native; a commit in flight at the cut stays durable and nothing is published after it; a
|
|
819
|
+
denial between staging and activation; staging: `admit` recorded without effects, rehearsal with an equal
|
|
820
|
+
fingerprint that passes and one that throws (the plugin stays old, the closure rule applies), none for another
|
|
821
|
+
fingerprint or no value, a dependency found only by the newly admitted branch parks after the commit.
|
|
822
|
+
21. a route admission across reloads, with a live worker link, two principals and shared holds: the source's
|
|
823
|
+
plugin reloaded to an equal allow (no `resolve`, no new upstream hold, calls complete); to a denial (only that
|
|
824
|
+
principal's holds); to a denial and back (the fence); failed; removed and restored; reloaded while a `resolve` is pending; an object behind the
|
|
825
|
+
route reloaded (no decision asked); a new link of the route asks the current decision; decisions released with
|
|
826
|
+
the last hold and old source attempts collect. A server restart with a new `admit` uses it (integration).
|
|
827
|
+
22. the old and the new form together: one owner with a `self.query` window and a named query read through
|
|
828
|
+
`self.liveQuery` and `self.list` by unchanged consumers; commits before, during and after the owner's reload;
|
|
829
|
+
each value keeps its shape, each read runs once per commit, old registrations collect; staging failures of each.
|
|
830
|
+
|
|
831
|
+
**`remote/hold`, `link/*`, `data/failure`**: `denied` in both codecs; A, B, C before acknowledgements with a call
|
|
832
|
+
between; a denied hold joined by a second reference; `host.revoke` of a denied principal.
|
|
833
|
+
|
|
834
|
+
**Examples:** `69-admission.ts`, `70-named-queries.ts`, `71-lists.ts`, `72-exists-and-joins.ts`, `73-sidebar.ts`,
|
|
835
|
+
`74-access.ts`, `75-reload.ts` (§9 says what each shows). **Benchmark:** `test/bench/slice-14.ts`, results in
|
|
836
|
+
`benchmarks.md`.
|
|
837
|
+
|
|
838
|
+
## 11. Where it touches the source
|
|
839
|
+
|
|
840
|
+
`contracts/schema.ts`, `declare.ts`, `evolve.ts`; a new `contracts/columns.ts`; `store/expression.ts`, `sql.ts`,
|
|
841
|
+
`evaluate.ts`, `query.ts`, `table.ts`; `store/live-query.ts` (named reads, counts, bounds, sharing), a new `store/skip.ts` (the skip test and the
|
|
842
|
+
probe), the index and the set bindings in `store/store.ts`; `documents/transaction.ts` (the refresh chosen in the step); a new
|
|
843
|
+
`host/list.ts`; `host/attempt.ts`, `object.ts`, `dependencies.ts`, `parked.ts`, `staging.ts`, `members.ts`,
|
|
844
|
+
`reference.ts`, `reference-source.ts`, `presence.ts`, `route.ts`, `host-data.ts`; `remote/hold.ts`,
|
|
845
|
+
`remote-object.ts`, `relay.ts`; `node/workers/workers.ts`; `link/message.ts`, `binary.ts`, `text.ts`, `channel.ts` (the fence);
|
|
846
|
+
`data/failure.ts`; `telemetry.ts`; `docs/plugin-authoring.md` and the host and store READMEs. Existing callers of
|
|
847
|
+
`self.query` do not change.
|
|
848
|
+
|
|
849
|
+
## 12. Carry-over entries this slice adds (`slices.md`), each with the case that brings it back
|
|
850
|
+
|
|
851
|
+
- Sources of a list that follow a value: a sidebar driven from a person's teams and shares, when the active set
|
|
852
|
+
outgrows a walk.
|
|
853
|
+
- A probe for counts (they re-run on every write of a condition column): the first count behind a hot column.
|
|
854
|
+
- A live `moreAfter` (a one-row read behind a bounded last page): a screen where a stale "more" is noticed.
|
|
855
|
+
- An in-memory evaluator before the probe: a commit step measured as dominated by probes.
|
|
856
|
+
- `{ offset, count }` ranges: a screen that must jump to a position.
|
|
857
|
+
- A list opened at a bookmark, `more` towards the start, `reset`: a screen that jumps to a row in a long list.
|
|
858
|
+
- `evolve` and `accepts` edits for named queries: the first released contract with a `queries` member that changes.
|
|
859
|
+
- Maintaining a page from the written rows instead of a re-run: §9's worst-case number, if judged too high.
|
|
860
|
+
- A left join; aggregates; `matches`: a screen that needs one.
|
|
861
|
+
- Bump `PROTOCOL_VERSION` for `denied` with p3's first release.
|