@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.
Files changed (1334) hide show
  1. package/CHANGELOG.md +237 -0
  2. package/README.md +227 -2
  3. package/dist/context/index.d.ts +43 -0
  4. package/dist/context/index.d.ts.map +1 -0
  5. package/dist/context/index.js +112 -0
  6. package/dist/context/index.js.map +1 -0
  7. package/dist/contracts/accepts.d.ts +91 -0
  8. package/dist/contracts/accepts.d.ts.map +1 -0
  9. package/dist/contracts/accepts.js +145 -0
  10. package/dist/contracts/accepts.js.map +1 -0
  11. package/dist/contracts/contract.d.ts +238 -0
  12. package/dist/contracts/contract.d.ts.map +1 -0
  13. package/dist/contracts/contract.js +69 -0
  14. package/dist/contracts/contract.js.map +1 -0
  15. package/dist/contracts/declare.d.ts +144 -0
  16. package/dist/contracts/declare.d.ts.map +1 -0
  17. package/dist/contracts/declare.js +207 -0
  18. package/dist/contracts/declare.js.map +1 -0
  19. package/dist/contracts/evolve.d.ts +142 -0
  20. package/dist/contracts/evolve.d.ts.map +1 -0
  21. package/dist/contracts/evolve.js +216 -0
  22. package/dist/contracts/evolve.js.map +1 -0
  23. package/dist/contracts/fingerprint.d.ts +16 -0
  24. package/dist/contracts/fingerprint.d.ts.map +1 -0
  25. package/dist/contracts/fingerprint.js +61 -0
  26. package/dist/contracts/fingerprint.js.map +1 -0
  27. package/dist/contracts/history.d.ts +79 -0
  28. package/dist/contracts/history.d.ts.map +1 -0
  29. package/dist/contracts/history.js +3 -0
  30. package/dist/contracts/history.js.map +1 -0
  31. package/dist/contracts/host-kind.d.ts +58 -0
  32. package/dist/contracts/host-kind.d.ts.map +1 -0
  33. package/dist/contracts/host-kind.js +122 -0
  34. package/dist/contracts/host-kind.js.map +1 -0
  35. package/dist/contracts/index.d.ts +8 -0
  36. package/dist/contracts/index.d.ts.map +1 -0
  37. package/dist/contracts/index.js +7 -0
  38. package/dist/contracts/index.js.map +1 -0
  39. package/dist/contracts/internal.d.ts +12 -0
  40. package/dist/contracts/internal.d.ts.map +1 -0
  41. package/dist/contracts/internal.js +11 -0
  42. package/dist/contracts/internal.js.map +1 -0
  43. package/dist/contracts/names.d.ts +3 -0
  44. package/dist/contracts/names.d.ts.map +1 -0
  45. package/dist/contracts/names.js +13 -0
  46. package/dist/contracts/names.js.map +1 -0
  47. package/dist/contracts/params.d.ts +28 -0
  48. package/dist/contracts/params.d.ts.map +1 -0
  49. package/dist/contracts/params.js +55 -0
  50. package/dist/contracts/params.js.map +1 -0
  51. package/dist/contracts/schema.d.ts +144 -0
  52. package/dist/contracts/schema.d.ts.map +1 -0
  53. package/dist/contracts/schema.js +144 -0
  54. package/dist/contracts/schema.js.map +1 -0
  55. package/dist/contracts/snapshot.d.ts +16 -0
  56. package/dist/contracts/snapshot.d.ts.map +1 -0
  57. package/dist/contracts/snapshot.js +167 -0
  58. package/dist/contracts/snapshot.js.map +1 -0
  59. package/dist/data/args.d.ts +50 -0
  60. package/dist/data/args.d.ts.map +1 -0
  61. package/dist/data/args.js +83 -0
  62. package/dist/data/args.js.map +1 -0
  63. package/dist/data/errors.d.ts +80 -0
  64. package/dist/data/errors.d.ts.map +1 -0
  65. package/dist/data/errors.js +116 -0
  66. package/dist/data/errors.js.map +1 -0
  67. package/dist/data/failure.d.ts +31 -0
  68. package/dist/data/failure.d.ts.map +1 -0
  69. package/dist/data/failure.js +78 -0
  70. package/dist/data/failure.js.map +1 -0
  71. package/dist/data/index.d.ts +4 -0
  72. package/dist/data/index.d.ts.map +1 -0
  73. package/dist/data/index.js +5 -0
  74. package/dist/data/index.js.map +1 -0
  75. package/dist/data/internal.d.ts +7 -0
  76. package/dist/data/internal.d.ts.map +1 -0
  77. package/dist/data/internal.js +8 -0
  78. package/dist/data/internal.js.map +1 -0
  79. package/dist/data/params.d.ts +20 -0
  80. package/dist/data/params.d.ts.map +1 -0
  81. package/dist/data/params.js +31 -0
  82. package/dist/data/params.js.map +1 -0
  83. package/dist/data/principal.d.ts +28 -0
  84. package/dist/data/principal.d.ts.map +1 -0
  85. package/dist/data/principal.js +64 -0
  86. package/dist/data/principal.js.map +1 -0
  87. package/dist/data/validator.d.ts +12 -0
  88. package/dist/data/validator.d.ts.map +1 -0
  89. package/dist/data/validator.js +35 -0
  90. package/dist/data/validator.js.map +1 -0
  91. package/dist/delta/apply-immutable-trusted.d.ts +4 -0
  92. package/dist/delta/apply-immutable-trusted.d.ts.map +1 -0
  93. package/dist/delta/apply-immutable-trusted.js +126 -0
  94. package/dist/delta/apply-immutable-trusted.js.map +1 -0
  95. package/dist/delta/diff.d.ts +5 -0
  96. package/dist/delta/diff.d.ts.map +1 -0
  97. package/dist/delta/diff.js +435 -0
  98. package/dist/delta/diff.js.map +1 -0
  99. package/dist/delta/draft.d.ts +5 -0
  100. package/dist/delta/draft.d.ts.map +1 -0
  101. package/dist/delta/draft.js +2 -0
  102. package/dist/delta/draft.js.map +1 -0
  103. package/dist/delta/index.d.ts +120 -0
  104. package/dist/delta/index.d.ts.map +1 -0
  105. package/dist/delta/index.js +697 -0
  106. package/dist/delta/index.js.map +1 -0
  107. package/dist/delta/pending.d.ts +36 -0
  108. package/dist/delta/pending.d.ts.map +1 -0
  109. package/dist/delta/pending.js +143 -0
  110. package/dist/delta/pending.js.map +1 -0
  111. package/dist/delta/revision-validator.d.ts +7 -0
  112. package/dist/delta/revision-validator.d.ts.map +1 -0
  113. package/dist/delta/revision-validator.js +71 -0
  114. package/dist/delta/revision-validator.js.map +1 -0
  115. package/dist/delta/tracker.d.ts +38 -0
  116. package/dist/delta/tracker.d.ts.map +1 -0
  117. package/dist/delta/tracker.js +2175 -0
  118. package/dist/delta/tracker.js.map +1 -0
  119. package/dist/documents/address-source.d.ts +20 -0
  120. package/dist/documents/address-source.d.ts.map +1 -0
  121. package/dist/documents/address-source.js +44 -0
  122. package/dist/documents/address-source.js.map +1 -0
  123. package/dist/documents/definition.d.ts +92 -0
  124. package/dist/documents/definition.d.ts.map +1 -0
  125. package/dist/documents/definition.js +81 -0
  126. package/dist/documents/definition.js.map +1 -0
  127. package/dist/documents/documents.d.ts +129 -0
  128. package/dist/documents/documents.d.ts.map +1 -0
  129. package/dist/documents/documents.js +258 -0
  130. package/dist/documents/documents.js.map +1 -0
  131. package/dist/documents/fence.d.ts +9 -0
  132. package/dist/documents/fence.d.ts.map +1 -0
  133. package/dist/documents/fence.js +15 -0
  134. package/dist/documents/fence.js.map +1 -0
  135. package/dist/documents/handles.d.ts +81 -0
  136. package/dist/documents/handles.d.ts.map +1 -0
  137. package/dist/documents/handles.js +74 -0
  138. package/dist/documents/handles.js.map +1 -0
  139. package/dist/documents/index.d.ts +4 -0
  140. package/dist/documents/index.d.ts.map +1 -0
  141. package/dist/documents/index.js +3 -0
  142. package/dist/documents/index.js.map +1 -0
  143. package/dist/documents/internal.d.ts +9 -0
  144. package/dist/documents/internal.d.ts.map +1 -0
  145. package/dist/documents/internal.js +9 -0
  146. package/dist/documents/internal.js.map +1 -0
  147. package/dist/documents/keyed-slot.d.ts +139 -0
  148. package/dist/documents/keyed-slot.d.ts.map +1 -0
  149. package/dist/documents/keyed-slot.js +478 -0
  150. package/dist/documents/keyed-slot.js.map +1 -0
  151. package/dist/documents/line.d.ts +7 -0
  152. package/dist/documents/line.d.ts.map +1 -0
  153. package/dist/documents/line.js +14 -0
  154. package/dist/documents/line.js.map +1 -0
  155. package/dist/documents/persistence.d.ts +120 -0
  156. package/dist/documents/persistence.d.ts.map +1 -0
  157. package/dist/documents/persistence.js +156 -0
  158. package/dist/documents/persistence.js.map +1 -0
  159. package/dist/documents/residency.d.ts +31 -0
  160. package/dist/documents/residency.d.ts.map +1 -0
  161. package/dist/documents/residency.js +93 -0
  162. package/dist/documents/residency.js.map +1 -0
  163. package/dist/documents/slot.d.ts +112 -0
  164. package/dist/documents/slot.d.ts.map +1 -0
  165. package/dist/documents/slot.js +190 -0
  166. package/dist/documents/slot.js.map +1 -0
  167. package/dist/documents/transaction.d.ts +143 -0
  168. package/dist/documents/transaction.d.ts.map +1 -0
  169. package/dist/documents/transaction.js +445 -0
  170. package/dist/documents/transaction.js.map +1 -0
  171. package/dist/host/activity.d.ts +31 -0
  172. package/dist/host/activity.d.ts.map +1 -0
  173. package/dist/host/activity.js +40 -0
  174. package/dist/host/activity.js.map +1 -0
  175. package/dist/host/adapted.d.ts +63 -0
  176. package/dist/host/adapted.d.ts.map +1 -0
  177. package/dist/host/adapted.js +298 -0
  178. package/dist/host/adapted.js.map +1 -0
  179. package/dist/host/admission.d.ts +137 -0
  180. package/dist/host/admission.d.ts.map +1 -0
  181. package/dist/host/admission.js +290 -0
  182. package/dist/host/admission.js.map +1 -0
  183. package/dist/host/attempt.d.ts +417 -0
  184. package/dist/host/attempt.d.ts.map +1 -0
  185. package/dist/host/attempt.js +1490 -0
  186. package/dist/host/attempt.js.map +1 -0
  187. package/dist/host/backoff.d.ts +29 -0
  188. package/dist/host/backoff.d.ts.map +1 -0
  189. package/dist/host/backoff.js +69 -0
  190. package/dist/host/backoff.js.map +1 -0
  191. package/dist/host/ctx.d.ts +94 -0
  192. package/dist/host/ctx.d.ts.map +1 -0
  193. package/dist/host/ctx.js +200 -0
  194. package/dist/host/ctx.js.map +1 -0
  195. package/dist/host/deadline.d.ts +12 -0
  196. package/dist/host/deadline.d.ts.map +1 -0
  197. package/dist/host/deadline.js +40 -0
  198. package/dist/host/deadline.js.map +1 -0
  199. package/dist/host/dependencies.d.ts +97 -0
  200. package/dist/host/dependencies.d.ts.map +1 -0
  201. package/dist/host/dependencies.js +148 -0
  202. package/dist/host/dependencies.js.map +1 -0
  203. package/dist/host/destination.d.ts +48 -0
  204. package/dist/host/destination.d.ts.map +1 -0
  205. package/dist/host/destination.js +101 -0
  206. package/dist/host/destination.js.map +1 -0
  207. package/dist/host/events.d.ts +114 -0
  208. package/dist/host/events.d.ts.map +1 -0
  209. package/dist/host/events.js +191 -0
  210. package/dist/host/events.js.map +1 -0
  211. package/dist/host/facet.d.ts +106 -0
  212. package/dist/host/facet.d.ts.map +1 -0
  213. package/dist/host/facet.js +55 -0
  214. package/dist/host/facet.js.map +1 -0
  215. package/dist/host/follow.d.ts +52 -0
  216. package/dist/host/follow.d.ts.map +1 -0
  217. package/dist/host/follow.js +207 -0
  218. package/dist/host/follow.js.map +1 -0
  219. package/dist/host/host-data.d.ts +62 -0
  220. package/dist/host/host-data.d.ts.map +1 -0
  221. package/dist/host/host-data.js +229 -0
  222. package/dist/host/host-data.js.map +1 -0
  223. package/dist/host/host.d.ts +641 -0
  224. package/dist/host/host.d.ts.map +1 -0
  225. package/dist/host/host.js +1449 -0
  226. package/dist/host/host.js.map +1 -0
  227. package/dist/host/index.d.ts +20 -0
  228. package/dist/host/index.d.ts.map +1 -0
  229. package/dist/host/index.js +7 -0
  230. package/dist/host/index.js.map +1 -0
  231. package/dist/host/internal.d.ts +13 -0
  232. package/dist/host/internal.d.ts.map +1 -0
  233. package/dist/host/internal.js +11 -0
  234. package/dist/host/internal.js.map +1 -0
  235. package/dist/host/list.d.ts +52 -0
  236. package/dist/host/list.d.ts.map +1 -0
  237. package/dist/host/list.js +149 -0
  238. package/dist/host/list.js.map +1 -0
  239. package/dist/host/members.d.ts +58 -0
  240. package/dist/host/members.d.ts.map +1 -0
  241. package/dist/host/members.js +178 -0
  242. package/dist/host/members.js.map +1 -0
  243. package/dist/host/named-query.d.ts +67 -0
  244. package/dist/host/named-query.d.ts.map +1 -0
  245. package/dist/host/named-query.js +166 -0
  246. package/dist/host/named-query.js.map +1 -0
  247. package/dist/host/native.d.ts +64 -0
  248. package/dist/host/native.d.ts.map +1 -0
  249. package/dist/host/native.js +126 -0
  250. package/dist/host/native.js.map +1 -0
  251. package/dist/host/object.d.ts +388 -0
  252. package/dist/host/object.d.ts.map +1 -0
  253. package/dist/host/object.js +1527 -0
  254. package/dist/host/object.js.map +1 -0
  255. package/dist/host/old-work.d.ts +34 -0
  256. package/dist/host/old-work.d.ts.map +1 -0
  257. package/dist/host/old-work.js +52 -0
  258. package/dist/host/old-work.js.map +1 -0
  259. package/dist/host/parked.d.ts +23 -0
  260. package/dist/host/parked.d.ts.map +1 -0
  261. package/dist/host/parked.js +79 -0
  262. package/dist/host/parked.js.map +1 -0
  263. package/dist/host/presence.d.ts +34 -0
  264. package/dist/host/presence.d.ts.map +1 -0
  265. package/dist/host/presence.js +117 -0
  266. package/dist/host/presence.js.map +1 -0
  267. package/dist/host/query-reader.d.ts +80 -0
  268. package/dist/host/query-reader.d.ts.map +1 -0
  269. package/dist/host/query-reader.js +182 -0
  270. package/dist/host/query-reader.js.map +1 -0
  271. package/dist/host/read-declarations.d.ts +75 -0
  272. package/dist/host/read-declarations.d.ts.map +1 -0
  273. package/dist/host/read-declarations.js +152 -0
  274. package/dist/host/read-declarations.js.map +1 -0
  275. package/dist/host/readiness.d.ts +27 -0
  276. package/dist/host/readiness.d.ts.map +1 -0
  277. package/dist/host/readiness.js +134 -0
  278. package/dist/host/readiness.js.map +1 -0
  279. package/dist/host/ref-state.d.ts +53 -0
  280. package/dist/host/ref-state.d.ts.map +1 -0
  281. package/dist/host/ref-state.js +83 -0
  282. package/dist/host/ref-state.js.map +1 -0
  283. package/dist/host/reference-events.d.ts +51 -0
  284. package/dist/host/reference-events.d.ts.map +1 -0
  285. package/dist/host/reference-events.js +133 -0
  286. package/dist/host/reference-events.js.map +1 -0
  287. package/dist/host/reference-keys.d.ts +36 -0
  288. package/dist/host/reference-keys.d.ts.map +1 -0
  289. package/dist/host/reference-keys.js +168 -0
  290. package/dist/host/reference-keys.js.map +1 -0
  291. package/dist/host/reference-source.d.ts +77 -0
  292. package/dist/host/reference-source.d.ts.map +1 -0
  293. package/dist/host/reference-source.js +326 -0
  294. package/dist/host/reference-source.js.map +1 -0
  295. package/dist/host/reference.d.ts +377 -0
  296. package/dist/host/reference.d.ts.map +1 -0
  297. package/dist/host/reference.js +986 -0
  298. package/dist/host/reference.js.map +1 -0
  299. package/dist/host/reload-cycle.d.ts +16 -0
  300. package/dist/host/reload-cycle.d.ts.map +1 -0
  301. package/dist/host/reload-cycle.js +81 -0
  302. package/dist/host/reload-cycle.js.map +1 -0
  303. package/dist/host/retry-on.d.ts +28 -0
  304. package/dist/host/retry-on.d.ts.map +1 -0
  305. package/dist/host/retry-on.js +52 -0
  306. package/dist/host/retry-on.js.map +1 -0
  307. package/dist/host/revocation.d.ts +16 -0
  308. package/dist/host/revocation.d.ts.map +1 -0
  309. package/dist/host/revocation.js +27 -0
  310. package/dist/host/revocation.js.map +1 -0
  311. package/dist/host/root.d.ts +37 -0
  312. package/dist/host/root.d.ts.map +1 -0
  313. package/dist/host/root.js +68 -0
  314. package/dist/host/root.js.map +1 -0
  315. package/dist/host/route-admission.d.ts +24 -0
  316. package/dist/host/route-admission.d.ts.map +1 -0
  317. package/dist/host/route-admission.js +238 -0
  318. package/dist/host/route-admission.js.map +1 -0
  319. package/dist/host/route.d.ts +88 -0
  320. package/dist/host/route.d.ts.map +1 -0
  321. package/dist/host/route.js +247 -0
  322. package/dist/host/route.js.map +1 -0
  323. package/dist/host/routines.d.ts +78 -0
  324. package/dist/host/routines.d.ts.map +1 -0
  325. package/dist/host/routines.js +398 -0
  326. package/dist/host/routines.js.map +1 -0
  327. package/dist/host/sleep.d.ts +9 -0
  328. package/dist/host/sleep.d.ts.map +1 -0
  329. package/dist/host/sleep.js +40 -0
  330. package/dist/host/sleep.js.map +1 -0
  331. package/dist/host/staging.d.ts +100 -0
  332. package/dist/host/staging.d.ts.map +1 -0
  333. package/dist/host/staging.js +413 -0
  334. package/dist/host/staging.js.map +1 -0
  335. package/dist/host/tiling.d.ts +57 -0
  336. package/dist/host/tiling.d.ts.map +1 -0
  337. package/dist/host/tiling.js +269 -0
  338. package/dist/host/tiling.js.map +1 -0
  339. package/dist/host/unbound-clock.d.ts +23 -0
  340. package/dist/host/unbound-clock.d.ts.map +1 -0
  341. package/dist/host/unbound-clock.js +58 -0
  342. package/dist/host/unbound-clock.js.map +1 -0
  343. package/dist/host/unbound.d.ts +37 -0
  344. package/dist/host/unbound.d.ts.map +1 -0
  345. package/dist/host/unbound.js +88 -0
  346. package/dist/host/unbound.js.map +1 -0
  347. package/dist/host/uuid.d.ts +3 -0
  348. package/dist/host/uuid.d.ts.map +1 -0
  349. package/dist/host/uuid.js +38 -0
  350. package/dist/host/uuid.js.map +1 -0
  351. package/dist/index.d.ts +28 -0
  352. package/dist/index.d.ts.map +1 -0
  353. package/dist/index.js +21 -0
  354. package/dist/index.js.map +1 -0
  355. package/dist/jobs/definition.d.ts +96 -0
  356. package/dist/jobs/definition.d.ts.map +1 -0
  357. package/dist/jobs/definition.js +83 -0
  358. package/dist/jobs/definition.js.map +1 -0
  359. package/dist/jobs/index.d.ts +5 -0
  360. package/dist/jobs/index.d.ts.map +1 -0
  361. package/dist/jobs/index.js +3 -0
  362. package/dist/jobs/index.js.map +1 -0
  363. package/dist/jobs/internal.d.ts +3 -0
  364. package/dist/jobs/internal.d.ts.map +1 -0
  365. package/dist/jobs/internal.js +4 -0
  366. package/dist/jobs/internal.js.map +1 -0
  367. package/dist/jobs/job.d.ts +149 -0
  368. package/dist/jobs/job.d.ts.map +1 -0
  369. package/dist/jobs/job.js +387 -0
  370. package/dist/jobs/job.js.map +1 -0
  371. package/dist/jobs/persisted.d.ts +38 -0
  372. package/dist/jobs/persisted.d.ts.map +1 -0
  373. package/dist/jobs/persisted.js +95 -0
  374. package/dist/jobs/persisted.js.map +1 -0
  375. package/dist/jobs/records.d.ts +231 -0
  376. package/dist/jobs/records.d.ts.map +1 -0
  377. package/dist/jobs/records.js +871 -0
  378. package/dist/jobs/records.js.map +1 -0
  379. package/dist/jobs/run-states.d.ts +69 -0
  380. package/dist/jobs/run-states.d.ts.map +1 -0
  381. package/dist/jobs/run-states.js +228 -0
  382. package/dist/jobs/run-states.js.map +1 -0
  383. package/dist/jobs/run.d.ts +117 -0
  384. package/dist/jobs/run.d.ts.map +1 -0
  385. package/dist/jobs/run.js +204 -0
  386. package/dist/jobs/run.js.map +1 -0
  387. package/dist/jobs/running.d.ts +44 -0
  388. package/dist/jobs/running.d.ts.map +1 -0
  389. package/dist/jobs/running.js +117 -0
  390. package/dist/jobs/running.js.map +1 -0
  391. package/dist/jobs/stored.d.ts +63 -0
  392. package/dist/jobs/stored.d.ts.map +1 -0
  393. package/dist/jobs/stored.js +55 -0
  394. package/dist/jobs/stored.js.map +1 -0
  395. package/dist/json.d.ts +18 -0
  396. package/dist/json.d.ts.map +1 -0
  397. package/dist/json.js +124 -0
  398. package/dist/json.js.map +1 -0
  399. package/dist/link/binary.d.ts +4 -0
  400. package/dist/link/binary.d.ts.map +1 -0
  401. package/dist/link/binary.js +574 -0
  402. package/dist/link/binary.js.map +1 -0
  403. package/dist/link/channel.d.ts +78 -0
  404. package/dist/link/channel.d.ts.map +1 -0
  405. package/dist/link/channel.js +252 -0
  406. package/dist/link/channel.js.map +1 -0
  407. package/dist/link/errors.d.ts +7 -0
  408. package/dist/link/errors.d.ts.map +1 -0
  409. package/dist/link/errors.js +21 -0
  410. package/dist/link/errors.js.map +1 -0
  411. package/dist/link/index.d.ts +8 -0
  412. package/dist/link/index.d.ts.map +1 -0
  413. package/dist/link/index.js +8 -0
  414. package/dist/link/index.js.map +1 -0
  415. package/dist/link/internal.d.ts +9 -0
  416. package/dist/link/internal.d.ts.map +1 -0
  417. package/dist/link/internal.js +10 -0
  418. package/dist/link/internal.js.map +1 -0
  419. package/dist/link/ipc.d.ts +22 -0
  420. package/dist/link/ipc.d.ts.map +1 -0
  421. package/dist/link/ipc.js +64 -0
  422. package/dist/link/ipc.js.map +1 -0
  423. package/dist/link/link.d.ts +34 -0
  424. package/dist/link/link.d.ts.map +1 -0
  425. package/dist/link/link.js +87 -0
  426. package/dist/link/link.js.map +1 -0
  427. package/dist/link/message.d.ts +278 -0
  428. package/dist/link/message.d.ts.map +1 -0
  429. package/dist/link/message.js +179 -0
  430. package/dist/link/message.js.map +1 -0
  431. package/dist/link/part.d.ts +80 -0
  432. package/dist/link/part.d.ts.map +1 -0
  433. package/dist/link/part.js +165 -0
  434. package/dist/link/part.js.map +1 -0
  435. package/dist/link/text.d.ts +6 -0
  436. package/dist/link/text.d.ts.map +1 -0
  437. package/dist/link/text.js +383 -0
  438. package/dist/link/text.js.map +1 -0
  439. package/dist/link/values.d.ts +40 -0
  440. package/dist/link/values.d.ts.map +1 -0
  441. package/dist/link/values.js +121 -0
  442. package/dist/link/values.js.map +1 -0
  443. package/dist/link/websocket.d.ts +26 -0
  444. package/dist/link/websocket.d.ts.map +1 -0
  445. package/dist/link/websocket.js +91 -0
  446. package/dist/link/websocket.js.map +1 -0
  447. package/dist/node/app/app.d.ts +283 -0
  448. package/dist/node/app/app.d.ts.map +1 -0
  449. package/dist/node/app/app.js +598 -0
  450. package/dist/node/app/app.js.map +1 -0
  451. package/dist/node/app/archive.d.ts +44 -0
  452. package/dist/node/app/archive.d.ts.map +1 -0
  453. package/dist/node/app/archive.js +212 -0
  454. package/dist/node/app/archive.js.map +1 -0
  455. package/dist/node/app/blobs.d.ts +23 -0
  456. package/dist/node/app/blobs.d.ts.map +1 -0
  457. package/dist/node/app/blobs.js +64 -0
  458. package/dist/node/app/blobs.js.map +1 -0
  459. package/dist/node/app/data.d.ts +40 -0
  460. package/dist/node/app/data.d.ts.map +1 -0
  461. package/dist/node/app/data.js +47 -0
  462. package/dist/node/app/data.js.map +1 -0
  463. package/dist/node/app/ephemeral-sign-ins.d.ts +20 -0
  464. package/dist/node/app/ephemeral-sign-ins.d.ts.map +1 -0
  465. package/dist/node/app/ephemeral-sign-ins.js +69 -0
  466. package/dist/node/app/ephemeral-sign-ins.js.map +1 -0
  467. package/dist/node/app/ephemeral.d.ts +11 -0
  468. package/dist/node/app/ephemeral.d.ts.map +1 -0
  469. package/dist/node/app/ephemeral.js +34 -0
  470. package/dist/node/app/ephemeral.js.map +1 -0
  471. package/dist/node/app/files-copy.d.ts +13 -0
  472. package/dist/node/app/files-copy.d.ts.map +1 -0
  473. package/dist/node/app/files-copy.js +86 -0
  474. package/dist/node/app/files-copy.js.map +1 -0
  475. package/dist/node/app/files-entry.d.ts +4 -0
  476. package/dist/node/app/files-entry.d.ts.map +1 -0
  477. package/dist/node/app/files-entry.js +7 -0
  478. package/dist/node/app/files-entry.js.map +1 -0
  479. package/dist/node/app/files-index.d.ts +180 -0
  480. package/dist/node/app/files-index.d.ts.map +1 -0
  481. package/dist/node/app/files-index.js +535 -0
  482. package/dist/node/app/files-index.js.map +1 -0
  483. package/dist/node/app/files.d.ts +388 -0
  484. package/dist/node/app/files.d.ts.map +1 -0
  485. package/dist/node/app/files.js +368 -0
  486. package/dist/node/app/files.js.map +1 -0
  487. package/dist/node/app/folder-views.d.ts +21 -0
  488. package/dist/node/app/folder-views.d.ts.map +1 -0
  489. package/dist/node/app/folder-views.js +55 -0
  490. package/dist/node/app/folder-views.js.map +1 -0
  491. package/dist/node/app/index.d.ts +12 -0
  492. package/dist/node/app/index.d.ts.map +1 -0
  493. package/dist/node/app/index.js +15 -0
  494. package/dist/node/app/index.js.map +1 -0
  495. package/dist/node/app/info.d.ts +70 -0
  496. package/dist/node/app/info.d.ts.map +1 -0
  497. package/dist/node/app/info.js +37 -0
  498. package/dist/node/app/info.js.map +1 -0
  499. package/dist/node/app/invite.d.ts +5 -0
  500. package/dist/node/app/invite.d.ts.map +1 -0
  501. package/dist/node/app/invite.js +64 -0
  502. package/dist/node/app/invite.js.map +1 -0
  503. package/dist/node/app/layout.d.ts +36 -0
  504. package/dist/node/app/layout.d.ts.map +1 -0
  505. package/dist/node/app/layout.js +87 -0
  506. package/dist/node/app/layout.js.map +1 -0
  507. package/dist/node/app/owner.d.ts +31 -0
  508. package/dist/node/app/owner.d.ts.map +1 -0
  509. package/dist/node/app/owner.js +104 -0
  510. package/dist/node/app/owner.js.map +1 -0
  511. package/dist/node/app/pairing.d.ts +55 -0
  512. package/dist/node/app/pairing.d.ts.map +1 -0
  513. package/dist/node/app/pairing.js +183 -0
  514. package/dist/node/app/pairing.js.map +1 -0
  515. package/dist/node/app/secrets.d.ts +16 -0
  516. package/dist/node/app/secrets.d.ts.map +1 -0
  517. package/dist/node/app/secrets.js +72 -0
  518. package/dist/node/app/secrets.js.map +1 -0
  519. package/dist/node/app/sign-ins.d.ts +74 -0
  520. package/dist/node/app/sign-ins.d.ts.map +1 -0
  521. package/dist/node/app/sign-ins.js +222 -0
  522. package/dist/node/app/sign-ins.js.map +1 -0
  523. package/dist/node/app/tar.d.ts +24 -0
  524. package/dist/node/app/tar.d.ts.map +1 -0
  525. package/dist/node/app/tar.js +167 -0
  526. package/dist/node/app/tar.js.map +1 -0
  527. package/dist/node/app/uploads.d.ts +37 -0
  528. package/dist/node/app/uploads.d.ts.map +1 -0
  529. package/dist/node/app/uploads.js +157 -0
  530. package/dist/node/app/uploads.js.map +1 -0
  531. package/dist/node/app/users.d.ts +39 -0
  532. package/dist/node/app/users.d.ts.map +1 -0
  533. package/dist/node/app/users.js +62 -0
  534. package/dist/node/app/users.js.map +1 -0
  535. package/dist/node/app/worker.d.ts +18 -0
  536. package/dist/node/app/worker.d.ts.map +1 -0
  537. package/dist/node/app/worker.js +84 -0
  538. package/dist/node/app/worker.js.map +1 -0
  539. package/dist/node/compression.d.ts +7 -0
  540. package/dist/node/compression.d.ts.map +1 -0
  541. package/dist/node/compression.js +25 -0
  542. package/dist/node/compression.js.map +1 -0
  543. package/dist/node/http/admission.d.ts +64 -0
  544. package/dist/node/http/admission.d.ts.map +1 -0
  545. package/dist/node/http/admission.js +137 -0
  546. package/dist/node/http/admission.js.map +1 -0
  547. package/dist/node/http/authenticate.d.ts +21 -0
  548. package/dist/node/http/authenticate.d.ts.map +1 -0
  549. package/dist/node/http/authenticate.js +34 -0
  550. package/dist/node/http/authenticate.js.map +1 -0
  551. package/dist/node/http/cookies.d.ts +32 -0
  552. package/dist/node/http/cookies.d.ts.map +1 -0
  553. package/dist/node/http/cookies.js +70 -0
  554. package/dist/node/http/cookies.js.map +1 -0
  555. package/dist/node/http/file.d.ts +23 -0
  556. package/dist/node/http/file.d.ts.map +1 -0
  557. package/dist/node/http/file.js +94 -0
  558. package/dist/node/http/file.js.map +1 -0
  559. package/dist/node/http/headers.d.ts +37 -0
  560. package/dist/node/http/headers.d.ts.map +1 -0
  561. package/dist/node/http/headers.js +136 -0
  562. package/dist/node/http/headers.js.map +1 -0
  563. package/dist/node/http/http.d.ts +114 -0
  564. package/dist/node/http/http.d.ts.map +1 -0
  565. package/dist/node/http/http.js +524 -0
  566. package/dist/node/http/http.js.map +1 -0
  567. package/dist/node/http/incoming.d.ts +19 -0
  568. package/dist/node/http/incoming.d.ts.map +1 -0
  569. package/dist/node/http/incoming.js +31 -0
  570. package/dist/node/http/incoming.js.map +1 -0
  571. package/dist/node/http/index.d.ts +11 -0
  572. package/dist/node/http/index.d.ts.map +1 -0
  573. package/dist/node/http/index.js +12 -0
  574. package/dist/node/http/index.js.map +1 -0
  575. package/dist/node/http/node.d.ts +78 -0
  576. package/dist/node/http/node.d.ts.map +1 -0
  577. package/dist/node/http/node.js +291 -0
  578. package/dist/node/http/node.js.map +1 -0
  579. package/dist/node/http/request.d.ts +60 -0
  580. package/dist/node/http/request.d.ts.map +1 -0
  581. package/dist/node/http/request.js +118 -0
  582. package/dist/node/http/request.js.map +1 -0
  583. package/dist/node/http/response.d.ts +63 -0
  584. package/dist/node/http/response.d.ts.map +1 -0
  585. package/dist/node/http/response.js +202 -0
  586. package/dist/node/http/response.js.map +1 -0
  587. package/dist/node/http/router.d.ts +132 -0
  588. package/dist/node/http/router.d.ts.map +1 -0
  589. package/dist/node/http/router.js +267 -0
  590. package/dist/node/http/router.js.map +1 -0
  591. package/dist/node/http/upgrades.d.ts +62 -0
  592. package/dist/node/http/upgrades.d.ts.map +1 -0
  593. package/dist/node/http/upgrades.js +194 -0
  594. package/dist/node/http/upgrades.js.map +1 -0
  595. package/dist/node/plugins/base-inputs.d.ts +14 -0
  596. package/dist/node/plugins/base-inputs.d.ts.map +1 -0
  597. package/dist/node/plugins/base-inputs.js +33 -0
  598. package/dist/node/plugins/base-inputs.js.map +1 -0
  599. package/dist/node/plugins/build.d.ts +77 -0
  600. package/dist/node/plugins/build.d.ts.map +1 -0
  601. package/dist/node/plugins/build.js +577 -0
  602. package/dist/node/plugins/build.js.map +1 -0
  603. package/dist/node/plugins/css-modules.d.ts +13 -0
  604. package/dist/node/plugins/css-modules.d.ts.map +1 -0
  605. package/dist/node/plugins/css-modules.js +58 -0
  606. package/dist/node/plugins/css-modules.js.map +1 -0
  607. package/dist/node/plugins/discover.d.ts +67 -0
  608. package/dist/node/plugins/discover.d.ts.map +1 -0
  609. package/dist/node/plugins/discover.js +369 -0
  610. package/dist/node/plugins/discover.js.map +1 -0
  611. package/dist/node/plugins/evaluate.d.ts +33 -0
  612. package/dist/node/plugins/evaluate.d.ts.map +1 -0
  613. package/dist/node/plugins/evaluate.js +121 -0
  614. package/dist/node/plugins/evaluate.js.map +1 -0
  615. package/dist/node/plugins/index.d.ts +11 -0
  616. package/dist/node/plugins/index.d.ts.map +1 -0
  617. package/dist/node/plugins/index.js +13 -0
  618. package/dist/node/plugins/index.js.map +1 -0
  619. package/dist/node/plugins/install.d.ts +40 -0
  620. package/dist/node/plugins/install.d.ts.map +1 -0
  621. package/dist/node/plugins/install.js +215 -0
  622. package/dist/node/plugins/install.js.map +1 -0
  623. package/dist/node/plugins/plugins.d.ts +165 -0
  624. package/dist/node/plugins/plugins.d.ts.map +1 -0
  625. package/dist/node/plugins/plugins.js +268 -0
  626. package/dist/node/plugins/plugins.js.map +1 -0
  627. package/dist/node/plugins/runtime.d.ts +57 -0
  628. package/dist/node/plugins/runtime.d.ts.map +1 -0
  629. package/dist/node/plugins/runtime.js +92 -0
  630. package/dist/node/plugins/runtime.js.map +1 -0
  631. package/dist/node/plugins/stack.d.ts +16 -0
  632. package/dist/node/plugins/stack.d.ts.map +1 -0
  633. package/dist/node/plugins/stack.js +70 -0
  634. package/dist/node/plugins/stack.js.map +1 -0
  635. package/dist/node/plugins/testing.d.ts +58 -0
  636. package/dist/node/plugins/testing.d.ts.map +1 -0
  637. package/dist/node/plugins/testing.js +210 -0
  638. package/dist/node/plugins/testing.js.map +1 -0
  639. package/dist/node/plugins/watcher.d.ts +69 -0
  640. package/dist/node/plugins/watcher.d.ts.map +1 -0
  641. package/dist/node/plugins/watcher.js +622 -0
  642. package/dist/node/plugins/watcher.js.map +1 -0
  643. package/dist/node/surfaces/bundle.d.ts +40 -0
  644. package/dist/node/surfaces/bundle.d.ts.map +1 -0
  645. package/dist/node/surfaces/bundle.js +121 -0
  646. package/dist/node/surfaces/bundle.js.map +1 -0
  647. package/dist/node/surfaces/current.d.ts +17 -0
  648. package/dist/node/surfaces/current.d.ts.map +1 -0
  649. package/dist/node/surfaces/current.js +54 -0
  650. package/dist/node/surfaces/current.js.map +1 -0
  651. package/dist/node/surfaces/index.d.ts +6 -0
  652. package/dist/node/surfaces/index.d.ts.map +1 -0
  653. package/dist/node/surfaces/index.js +6 -0
  654. package/dist/node/surfaces/index.js.map +1 -0
  655. package/dist/node/surfaces/published.d.ts +27 -0
  656. package/dist/node/surfaces/published.d.ts.map +1 -0
  657. package/dist/node/surfaces/published.js +142 -0
  658. package/dist/node/surfaces/published.js.map +1 -0
  659. package/dist/node/surfaces/served.d.ts +17 -0
  660. package/dist/node/surfaces/served.d.ts.map +1 -0
  661. package/dist/node/surfaces/served.js +44 -0
  662. package/dist/node/surfaces/served.js.map +1 -0
  663. package/dist/node/surfaces/surface-build.d.ts +53 -0
  664. package/dist/node/surfaces/surface-build.d.ts.map +1 -0
  665. package/dist/node/surfaces/surface-build.js +105 -0
  666. package/dist/node/surfaces/surface-build.js.map +1 -0
  667. package/dist/node/surfaces/tui.d.ts +42 -0
  668. package/dist/node/surfaces/tui.d.ts.map +1 -0
  669. package/dist/node/surfaces/tui.js +59 -0
  670. package/dist/node/surfaces/tui.js.map +1 -0
  671. package/dist/node/surfaces/web.d.ts +82 -0
  672. package/dist/node/surfaces/web.d.ts.map +1 -0
  673. package/dist/node/surfaces/web.js +122 -0
  674. package/dist/node/surfaces/web.js.map +1 -0
  675. package/dist/node/tui/actions.d.ts +49 -0
  676. package/dist/node/tui/actions.d.ts.map +1 -0
  677. package/dist/node/tui/actions.js +195 -0
  678. package/dist/node/tui/actions.js.map +1 -0
  679. package/dist/node/tui/credentials.d.ts +17 -0
  680. package/dist/node/tui/credentials.d.ts.map +1 -0
  681. package/dist/node/tui/credentials.js +54 -0
  682. package/dist/node/tui/credentials.js.map +1 -0
  683. package/dist/node/tui/filter.d.ts +5 -0
  684. package/dist/node/tui/filter.d.ts.map +1 -0
  685. package/dist/node/tui/filter.js +79 -0
  686. package/dist/node/tui/filter.js.map +1 -0
  687. package/dist/node/tui/index.d.ts +6 -0
  688. package/dist/node/tui/index.d.ts.map +1 -0
  689. package/dist/node/tui/index.js +6 -0
  690. package/dist/node/tui/index.js.map +1 -0
  691. package/dist/node/tui/launcher.d.ts +40 -0
  692. package/dist/node/tui/launcher.d.ts.map +1 -0
  693. package/dist/node/tui/launcher.js +439 -0
  694. package/dist/node/tui/launcher.js.map +1 -0
  695. package/dist/node/tui/pipe.d.ts +18 -0
  696. package/dist/node/tui/pipe.d.ts.map +1 -0
  697. package/dist/node/tui/pipe.js +134 -0
  698. package/dist/node/tui/pipe.js.map +1 -0
  699. package/dist/node/tui/sandbox.d.ts +54 -0
  700. package/dist/node/tui/sandbox.d.ts.map +1 -0
  701. package/dist/node/tui/sandbox.js +431 -0
  702. package/dist/node/tui/sandbox.js.map +1 -0
  703. package/dist/node/workers/base.d.ts +30 -0
  704. package/dist/node/workers/base.d.ts.map +1 -0
  705. package/dist/node/workers/base.js +260 -0
  706. package/dist/node/workers/base.js.map +1 -0
  707. package/dist/node/workers/child.d.ts +4 -0
  708. package/dist/node/workers/child.d.ts.map +1 -0
  709. package/dist/node/workers/child.js +6 -0
  710. package/dist/node/workers/child.js.map +1 -0
  711. package/dist/node/workers/control.d.ts +83 -0
  712. package/dist/node/workers/control.d.ts.map +1 -0
  713. package/dist/node/workers/control.js +77 -0
  714. package/dist/node/workers/control.js.map +1 -0
  715. package/dist/node/workers/index.d.ts +4 -0
  716. package/dist/node/workers/index.d.ts.map +1 -0
  717. package/dist/node/workers/index.js +7 -0
  718. package/dist/node/workers/index.js.map +1 -0
  719. package/dist/node/workers/lock.d.ts +30 -0
  720. package/dist/node/workers/lock.d.ts.map +1 -0
  721. package/dist/node/workers/lock.js +180 -0
  722. package/dist/node/workers/lock.js.map +1 -0
  723. package/dist/node/workers/main.d.ts +46 -0
  724. package/dist/node/workers/main.d.ts.map +1 -0
  725. package/dist/node/workers/main.js +230 -0
  726. package/dist/node/workers/main.js.map +1 -0
  727. package/dist/node/workers/process.d.ts +43 -0
  728. package/dist/node/workers/process.d.ts.map +1 -0
  729. package/dist/node/workers/process.js +137 -0
  730. package/dist/node/workers/process.js.map +1 -0
  731. package/dist/node/workers/workers.d.ts +144 -0
  732. package/dist/node/workers/workers.d.ts.map +1 -0
  733. package/dist/node/workers/workers.js +723 -0
  734. package/dist/node/workers/workers.js.map +1 -0
  735. package/dist/output.d.ts +91 -0
  736. package/dist/output.d.ts.map +1 -0
  737. package/dist/output.js +362 -0
  738. package/dist/output.js.map +1 -0
  739. package/dist/react/hooks.d.ts +61 -0
  740. package/dist/react/hooks.d.ts.map +1 -0
  741. package/dist/react/hooks.js +119 -0
  742. package/dist/react/hooks.js.map +1 -0
  743. package/dist/react/index.d.ts +4 -0
  744. package/dist/react/index.d.ts.map +1 -0
  745. package/dist/react/index.js +4 -0
  746. package/dist/react/index.js.map +1 -0
  747. package/dist/react/stores.d.ts +9 -0
  748. package/dist/react/stores.d.ts.map +1 -0
  749. package/dist/react/stores.js +37 -0
  750. package/dist/react/stores.js.map +1 -0
  751. package/dist/registries/contribution.d.ts +50 -0
  752. package/dist/registries/contribution.d.ts.map +1 -0
  753. package/dist/registries/contribution.js +129 -0
  754. package/dist/registries/contribution.js.map +1 -0
  755. package/dist/registries/entries.d.ts +18 -0
  756. package/dist/registries/entries.d.ts.map +1 -0
  757. package/dist/registries/entries.js +42 -0
  758. package/dist/registries/entries.js.map +1 -0
  759. package/dist/registries/index.d.ts +3 -0
  760. package/dist/registries/index.d.ts.map +1 -0
  761. package/dist/registries/index.js +5 -0
  762. package/dist/registries/index.js.map +1 -0
  763. package/dist/registries/internal.d.ts +4 -0
  764. package/dist/registries/internal.d.ts.map +1 -0
  765. package/dist/registries/internal.js +5 -0
  766. package/dist/registries/internal.js.map +1 -0
  767. package/dist/registries/record.d.ts +115 -0
  768. package/dist/registries/record.d.ts.map +1 -0
  769. package/dist/registries/record.js +283 -0
  770. package/dist/registries/record.js.map +1 -0
  771. package/dist/registries/registry.d.ts +74 -0
  772. package/dist/registries/registry.d.ts.map +1 -0
  773. package/dist/registries/registry.js +14 -0
  774. package/dist/registries/registry.js.map +1 -0
  775. package/dist/registries/value.d.ts +48 -0
  776. package/dist/registries/value.d.ts.map +1 -0
  777. package/dist/registries/value.js +224 -0
  778. package/dist/registries/value.js.map +1 -0
  779. package/dist/remote/calls.d.ts +34 -0
  780. package/dist/remote/calls.d.ts.map +1 -0
  781. package/dist/remote/calls.js +75 -0
  782. package/dist/remote/calls.js.map +1 -0
  783. package/dist/remote/consumer.d.ts +59 -0
  784. package/dist/remote/consumer.d.ts.map +1 -0
  785. package/dist/remote/consumer.js +468 -0
  786. package/dist/remote/consumer.js.map +1 -0
  787. package/dist/remote/hold.d.ts +147 -0
  788. package/dist/remote/hold.d.ts.map +1 -0
  789. package/dist/remote/hold.js +653 -0
  790. package/dist/remote/hold.js.map +1 -0
  791. package/dist/remote/host-link.d.ts +81 -0
  792. package/dist/remote/host-link.d.ts.map +1 -0
  793. package/dist/remote/host-link.js +198 -0
  794. package/dist/remote/host-link.js.map +1 -0
  795. package/dist/remote/internal.d.ts +6 -0
  796. package/dist/remote/internal.d.ts.map +1 -0
  797. package/dist/remote/internal.js +6 -0
  798. package/dist/remote/internal.js.map +1 -0
  799. package/dist/remote/path.d.ts +105 -0
  800. package/dist/remote/path.d.ts.map +1 -0
  801. package/dist/remote/path.js +197 -0
  802. package/dist/remote/path.js.map +1 -0
  803. package/dist/remote/provider.d.ts +113 -0
  804. package/dist/remote/provider.d.ts.map +1 -0
  805. package/dist/remote/provider.js +787 -0
  806. package/dist/remote/provider.js.map +1 -0
  807. package/dist/remote/relay.d.ts +126 -0
  808. package/dist/remote/relay.d.ts.map +1 -0
  809. package/dist/remote/relay.js +334 -0
  810. package/dist/remote/relay.js.map +1 -0
  811. package/dist/remote/remote-object.d.ts +181 -0
  812. package/dist/remote/remote-object.d.ts.map +1 -0
  813. package/dist/remote/remote-object.js +683 -0
  814. package/dist/remote/remote-object.js.map +1 -0
  815. package/dist/remote/replica.d.ts +66 -0
  816. package/dist/remote/replica.d.ts.map +1 -0
  817. package/dist/remote/replica.js +148 -0
  818. package/dist/remote/replica.js.map +1 -0
  819. package/dist/sqlite/cloudflare.d.ts +54 -0
  820. package/dist/sqlite/cloudflare.d.ts.map +1 -0
  821. package/dist/sqlite/cloudflare.js +144 -0
  822. package/dist/sqlite/cloudflare.js.map +1 -0
  823. package/dist/sqlite/database.d.ts +40 -0
  824. package/dist/sqlite/database.d.ts.map +1 -0
  825. package/dist/sqlite/database.js +2 -0
  826. package/dist/sqlite/database.js.map +1 -0
  827. package/dist/sqlite/index.d.ts +4 -0
  828. package/dist/sqlite/index.d.ts.map +1 -0
  829. package/dist/sqlite/index.js +3 -0
  830. package/dist/sqlite/index.js.map +1 -0
  831. package/dist/sqlite/migrations.d.ts +10 -0
  832. package/dist/sqlite/migrations.d.ts.map +1 -0
  833. package/dist/sqlite/migrations.js +33 -0
  834. package/dist/sqlite/migrations.js.map +1 -0
  835. package/dist/sqlite/node.d.ts +49 -0
  836. package/dist/sqlite/node.d.ts.map +1 -0
  837. package/dist/sqlite/node.js +197 -0
  838. package/dist/sqlite/node.js.map +1 -0
  839. package/dist/sqlite/schema.d.ts +3 -0
  840. package/dist/sqlite/schema.d.ts.map +1 -0
  841. package/dist/sqlite/schema.js +10 -0
  842. package/dist/sqlite/schema.js.map +1 -0
  843. package/dist/state/batch.d.ts +64 -0
  844. package/dist/state/batch.d.ts.map +1 -0
  845. package/dist/state/batch.js +164 -0
  846. package/dist/state/batch.js.map +1 -0
  847. package/dist/state/derive.d.ts +56 -0
  848. package/dist/state/derive.d.ts.map +1 -0
  849. package/dist/state/derive.js +192 -0
  850. package/dist/state/derive.js.map +1 -0
  851. package/dist/state/framed.d.ts +43 -0
  852. package/dist/state/framed.d.ts.map +1 -0
  853. package/dist/state/framed.js +121 -0
  854. package/dist/state/framed.js.map +1 -0
  855. package/dist/state/index.d.ts +6 -0
  856. package/dist/state/index.d.ts.map +1 -0
  857. package/dist/state/index.js +4 -0
  858. package/dist/state/index.js.map +1 -0
  859. package/dist/state/internal.d.ts +7 -0
  860. package/dist/state/internal.d.ts.map +1 -0
  861. package/dist/state/internal.js +9 -0
  862. package/dist/state/internal.js.map +1 -0
  863. package/dist/state/native-source.d.ts +106 -0
  864. package/dist/state/native-source.d.ts.map +1 -0
  865. package/dist/state/native-source.js +240 -0
  866. package/dist/state/native-source.js.map +1 -0
  867. package/dist/state/watchable.d.ts +114 -0
  868. package/dist/state/watchable.d.ts.map +1 -0
  869. package/dist/state/watchable.js +156 -0
  870. package/dist/state/watchable.js.map +1 -0
  871. package/dist/state/writable.d.ts +32 -0
  872. package/dist/state/writable.d.ts.map +1 -0
  873. package/dist/state/writable.js +49 -0
  874. package/dist/state/writable.js.map +1 -0
  875. package/dist/store/adapter.d.ts +67 -0
  876. package/dist/store/adapter.d.ts.map +1 -0
  877. package/dist/store/adapter.js +118 -0
  878. package/dist/store/adapter.js.map +1 -0
  879. package/dist/store/allocator.d.ts +17 -0
  880. package/dist/store/allocator.d.ts.map +1 -0
  881. package/dist/store/allocator.js +30 -0
  882. package/dist/store/allocator.js.map +1 -0
  883. package/dist/store/applier.d.ts +8 -0
  884. package/dist/store/applier.d.ts.map +1 -0
  885. package/dist/store/applier.js +390 -0
  886. package/dist/store/applier.js.map +1 -0
  887. package/dist/store/apply-batch.d.ts +12 -0
  888. package/dist/store/apply-batch.d.ts.map +1 -0
  889. package/dist/store/apply-batch.js +83 -0
  890. package/dist/store/apply-batch.js.map +1 -0
  891. package/dist/store/archive.d.ts +36 -0
  892. package/dist/store/archive.d.ts.map +1 -0
  893. package/dist/store/archive.js +140 -0
  894. package/dist/store/archive.js.map +1 -0
  895. package/dist/store/backend.d.ts +10 -0
  896. package/dist/store/backend.d.ts.map +1 -0
  897. package/dist/store/backend.js +15 -0
  898. package/dist/store/backend.js.map +1 -0
  899. package/dist/store/catalog.d.ts +24 -0
  900. package/dist/store/catalog.d.ts.map +1 -0
  901. package/dist/store/catalog.js +17 -0
  902. package/dist/store/catalog.js.map +1 -0
  903. package/dist/store/claims.d.ts +23 -0
  904. package/dist/store/claims.d.ts.map +1 -0
  905. package/dist/store/claims.js +65 -0
  906. package/dist/store/claims.js.map +1 -0
  907. package/dist/store/column-set.d.ts +64 -0
  908. package/dist/store/column-set.d.ts.map +1 -0
  909. package/dist/store/column-set.js +96 -0
  910. package/dist/store/column-set.js.map +1 -0
  911. package/dist/store/columns.d.ts +93 -0
  912. package/dist/store/columns.d.ts.map +1 -0
  913. package/dist/store/columns.js +87 -0
  914. package/dist/store/columns.js.map +1 -0
  915. package/dist/store/engine.d.ts +182 -0
  916. package/dist/store/engine.d.ts.map +1 -0
  917. package/dist/store/engine.js +290 -0
  918. package/dist/store/engine.js.map +1 -0
  919. package/dist/store/evaluate.d.ts +17 -0
  920. package/dist/store/evaluate.d.ts.map +1 -0
  921. package/dist/store/evaluate.js +131 -0
  922. package/dist/store/evaluate.js.map +1 -0
  923. package/dist/store/export.d.ts +30 -0
  924. package/dist/store/export.d.ts.map +1 -0
  925. package/dist/store/export.js +221 -0
  926. package/dist/store/export.js.map +1 -0
  927. package/dist/store/expression.d.ts +254 -0
  928. package/dist/store/expression.d.ts.map +1 -0
  929. package/dist/store/expression.js +577 -0
  930. package/dist/store/expression.js.map +1 -0
  931. package/dist/store/host-column.d.ts +22 -0
  932. package/dist/store/host-column.d.ts.map +1 -0
  933. package/dist/store/host-column.js +36 -0
  934. package/dist/store/host-column.js.map +1 -0
  935. package/dist/store/host-data.d.ts +100 -0
  936. package/dist/store/host-data.d.ts.map +1 -0
  937. package/dist/store/host-data.js +397 -0
  938. package/dist/store/host-data.js.map +1 -0
  939. package/dist/store/import-migration.d.ts +19 -0
  940. package/dist/store/import-migration.d.ts.map +1 -0
  941. package/dist/store/import-migration.js +124 -0
  942. package/dist/store/import-migration.js.map +1 -0
  943. package/dist/store/import.d.ts +12 -0
  944. package/dist/store/import.d.ts.map +1 -0
  945. package/dist/store/import.js +279 -0
  946. package/dist/store/import.js.map +1 -0
  947. package/dist/store/index.d.ts +19 -0
  948. package/dist/store/index.d.ts.map +1 -0
  949. package/dist/store/index.js +16 -0
  950. package/dist/store/index.js.map +1 -0
  951. package/dist/store/json-column.d.ts +33 -0
  952. package/dist/store/json-column.d.ts.map +1 -0
  953. package/dist/store/json-column.js +62 -0
  954. package/dist/store/json-column.js.map +1 -0
  955. package/dist/store/jsonl.d.ts +9 -0
  956. package/dist/store/jsonl.d.ts.map +1 -0
  957. package/dist/store/jsonl.js +61 -0
  958. package/dist/store/jsonl.js.map +1 -0
  959. package/dist/store/live-query.d.ts +72 -0
  960. package/dist/store/live-query.d.ts.map +1 -0
  961. package/dist/store/live-query.js +162 -0
  962. package/dist/store/live-query.js.map +1 -0
  963. package/dist/store/open-query.d.ts +90 -0
  964. package/dist/store/open-query.d.ts.map +1 -0
  965. package/dist/store/open-query.js +201 -0
  966. package/dist/store/open-query.js.map +1 -0
  967. package/dist/store/outbox.d.ts +26 -0
  968. package/dist/store/outbox.d.ts.map +1 -0
  969. package/dist/store/outbox.js +80 -0
  970. package/dist/store/outbox.js.map +1 -0
  971. package/dist/store/page.d.ts +14 -0
  972. package/dist/store/page.d.ts.map +1 -0
  973. package/dist/store/page.js +26 -0
  974. package/dist/store/page.js.map +1 -0
  975. package/dist/store/query.d.ts +65 -0
  976. package/dist/store/query.d.ts.map +1 -0
  977. package/dist/store/query.js +193 -0
  978. package/dist/store/query.js.map +1 -0
  979. package/dist/store/read-plan.d.ts +74 -0
  980. package/dist/store/read-plan.d.ts.map +1 -0
  981. package/dist/store/read-plan.js +324 -0
  982. package/dist/store/read-plan.js.map +1 -0
  983. package/dist/store/read.d.ts +81 -0
  984. package/dist/store/read.d.ts.map +1 -0
  985. package/dist/store/read.js +113 -0
  986. package/dist/store/read.js.map +1 -0
  987. package/dist/store/reads.d.ts +79 -0
  988. package/dist/store/reads.d.ts.map +1 -0
  989. package/dist/store/reads.js +255 -0
  990. package/dist/store/reads.js.map +1 -0
  991. package/dist/store/refusal.d.ts +15 -0
  992. package/dist/store/refusal.d.ts.map +1 -0
  993. package/dist/store/refusal.js +36 -0
  994. package/dist/store/refusal.js.map +1 -0
  995. package/dist/store/rows.d.ts +96 -0
  996. package/dist/store/rows.d.ts.map +1 -0
  997. package/dist/store/rows.js +222 -0
  998. package/dist/store/rows.js.map +1 -0
  999. package/dist/store/schema.d.ts +25 -0
  1000. package/dist/store/schema.d.ts.map +1 -0
  1001. package/dist/store/schema.js +123 -0
  1002. package/dist/store/schema.js.map +1 -0
  1003. package/dist/store/skip.d.ts +26 -0
  1004. package/dist/store/skip.d.ts.map +1 -0
  1005. package/dist/store/skip.js +66 -0
  1006. package/dist/store/skip.js.map +1 -0
  1007. package/dist/store/sql.d.ts +78 -0
  1008. package/dist/store/sql.d.ts.map +1 -0
  1009. package/dist/store/sql.js +244 -0
  1010. package/dist/store/sql.js.map +1 -0
  1011. package/dist/store/step.d.ts +52 -0
  1012. package/dist/store/step.d.ts.map +1 -0
  1013. package/dist/store/step.js +59 -0
  1014. package/dist/store/step.js.map +1 -0
  1015. package/dist/store/store.d.ts +192 -0
  1016. package/dist/store/store.d.ts.map +1 -0
  1017. package/dist/store/store.js +863 -0
  1018. package/dist/store/store.js.map +1 -0
  1019. package/dist/store/table-changes.d.ts +35 -0
  1020. package/dist/store/table-changes.d.ts.map +1 -0
  1021. package/dist/store/table-changes.js +127 -0
  1022. package/dist/store/table-changes.js.map +1 -0
  1023. package/dist/store/table-evolve.d.ts +82 -0
  1024. package/dist/store/table-evolve.d.ts.map +1 -0
  1025. package/dist/store/table-evolve.js +208 -0
  1026. package/dist/store/table-evolve.js.map +1 -0
  1027. package/dist/store/table-handle.d.ts +69 -0
  1028. package/dist/store/table-handle.d.ts.map +1 -0
  1029. package/dist/store/table-handle.js +92 -0
  1030. package/dist/store/table-handle.js.map +1 -0
  1031. package/dist/store/table-history.d.ts +78 -0
  1032. package/dist/store/table-history.d.ts.map +1 -0
  1033. package/dist/store/table-history.js +43 -0
  1034. package/dist/store/table-history.js.map +1 -0
  1035. package/dist/store/table-migration.d.ts +28 -0
  1036. package/dist/store/table-migration.d.ts.map +1 -0
  1037. package/dist/store/table-migration.js +212 -0
  1038. package/dist/store/table-migration.js.map +1 -0
  1039. package/dist/store/table-writes.d.ts +125 -0
  1040. package/dist/store/table-writes.d.ts.map +1 -0
  1041. package/dist/store/table-writes.js +170 -0
  1042. package/dist/store/table-writes.js.map +1 -0
  1043. package/dist/store/table.d.ts +91 -0
  1044. package/dist/store/table.d.ts.map +1 -0
  1045. package/dist/store/table.js +133 -0
  1046. package/dist/store/table.js.map +1 -0
  1047. package/dist/store/text.d.ts +14 -0
  1048. package/dist/store/text.d.ts.map +1 -0
  1049. package/dist/store/text.js +51 -0
  1050. package/dist/store/text.js.map +1 -0
  1051. package/dist/store/writes.d.ts +5 -0
  1052. package/dist/store/writes.d.ts.map +1 -0
  1053. package/dist/store/writes.js +4 -0
  1054. package/dist/store/writes.js.map +1 -0
  1055. package/dist/surfaces/active-language.d.ts +20 -0
  1056. package/dist/surfaces/active-language.d.ts.map +1 -0
  1057. package/dist/surfaces/active-language.js +78 -0
  1058. package/dist/surfaces/active-language.js.map +1 -0
  1059. package/dist/surfaces/active-theme.d.ts +16 -0
  1060. package/dist/surfaces/active-theme.d.ts.map +1 -0
  1061. package/dist/surfaces/active-theme.js +47 -0
  1062. package/dist/surfaces/active-theme.js.map +1 -0
  1063. package/dist/surfaces/client.d.ts +106 -0
  1064. package/dist/surfaces/client.d.ts.map +1 -0
  1065. package/dist/surfaces/client.js +280 -0
  1066. package/dist/surfaces/client.js.map +1 -0
  1067. package/dist/surfaces/connection.d.ts +53 -0
  1068. package/dist/surfaces/connection.d.ts.map +1 -0
  1069. package/dist/surfaces/connection.js +161 -0
  1070. package/dist/surfaces/connection.js.map +1 -0
  1071. package/dist/surfaces/format.d.ts +5 -0
  1072. package/dist/surfaces/format.d.ts.map +1 -0
  1073. package/dist/surfaces/format.js +37 -0
  1074. package/dist/surfaces/format.js.map +1 -0
  1075. package/dist/surfaces/index.d.ts +15 -0
  1076. package/dist/surfaces/index.d.ts.map +1 -0
  1077. package/dist/surfaces/index.js +18 -0
  1078. package/dist/surfaces/index.js.map +1 -0
  1079. package/dist/surfaces/language.d.ts +53 -0
  1080. package/dist/surfaces/language.d.ts.map +1 -0
  1081. package/dist/surfaces/language.js +74 -0
  1082. package/dist/surfaces/language.js.map +1 -0
  1083. package/dist/surfaces/loaded.d.ts +42 -0
  1084. package/dist/surfaces/loaded.d.ts.map +1 -0
  1085. package/dist/surfaces/loaded.js +116 -0
  1086. package/dist/surfaces/loaded.js.map +1 -0
  1087. package/dist/surfaces/locale-choice.d.ts +26 -0
  1088. package/dist/surfaces/locale-choice.d.ts.map +1 -0
  1089. package/dist/surfaces/locale-choice.js +14 -0
  1090. package/dist/surfaces/locale-choice.js.map +1 -0
  1091. package/dist/surfaces/messages.d.ts +67 -0
  1092. package/dist/surfaces/messages.d.ts.map +1 -0
  1093. package/dist/surfaces/messages.js +112 -0
  1094. package/dist/surfaces/messages.js.map +1 -0
  1095. package/dist/surfaces/page-state.d.ts +14 -0
  1096. package/dist/surfaces/page-state.d.ts.map +1 -0
  1097. package/dist/surfaces/page-state.js +43 -0
  1098. package/dist/surfaces/page-state.js.map +1 -0
  1099. package/dist/surfaces/preference.d.ts +33 -0
  1100. package/dist/surfaces/preference.d.ts.map +1 -0
  1101. package/dist/surfaces/preference.js +72 -0
  1102. package/dist/surfaces/preference.js.map +1 -0
  1103. package/dist/surfaces/registered.d.ts +33 -0
  1104. package/dist/surfaces/registered.d.ts.map +1 -0
  1105. package/dist/surfaces/registered.js +51 -0
  1106. package/dist/surfaces/registered.js.map +1 -0
  1107. package/dist/surfaces/scripts.d.ts +86 -0
  1108. package/dist/surfaces/scripts.d.ts.map +1 -0
  1109. package/dist/surfaces/scripts.js +28 -0
  1110. package/dist/surfaces/scripts.js.map +1 -0
  1111. package/dist/surfaces/theme-choice.d.ts +32 -0
  1112. package/dist/surfaces/theme-choice.d.ts.map +1 -0
  1113. package/dist/surfaces/theme-choice.js +18 -0
  1114. package/dist/surfaces/theme-choice.js.map +1 -0
  1115. package/dist/surfaces/themes.d.ts +43 -0
  1116. package/dist/surfaces/themes.d.ts.map +1 -0
  1117. package/dist/surfaces/themes.js +110 -0
  1118. package/dist/surfaces/themes.js.map +1 -0
  1119. package/dist/surfaces/translations.d.ts +29 -0
  1120. package/dist/surfaces/translations.d.ts.map +1 -0
  1121. package/dist/surfaces/translations.js +57 -0
  1122. package/dist/surfaces/translations.js.map +1 -0
  1123. package/dist/surfaces/variant.d.ts +23 -0
  1124. package/dist/surfaces/variant.d.ts.map +1 -0
  1125. package/dist/surfaces/variant.js +18 -0
  1126. package/dist/surfaces/variant.js.map +1 -0
  1127. package/dist/sync/batch.d.ts +18 -0
  1128. package/dist/sync/batch.d.ts.map +1 -0
  1129. package/dist/sync/batch.js +125 -0
  1130. package/dist/sync/batch.js.map +1 -0
  1131. package/dist/sync/client.d.ts +169 -0
  1132. package/dist/sync/client.d.ts.map +1 -0
  1133. package/dist/sync/client.js +459 -0
  1134. package/dist/sync/client.js.map +1 -0
  1135. package/dist/sync/files.d.ts +46 -0
  1136. package/dist/sync/files.d.ts.map +1 -0
  1137. package/dist/sync/files.js +13 -0
  1138. package/dist/sync/files.js.map +1 -0
  1139. package/dist/sync/filesystem.d.ts +37 -0
  1140. package/dist/sync/filesystem.d.ts.map +1 -0
  1141. package/dist/sync/filesystem.js +205 -0
  1142. package/dist/sync/filesystem.js.map +1 -0
  1143. package/dist/sync/index.d.ts +8 -0
  1144. package/dist/sync/index.d.ts.map +1 -0
  1145. package/dist/sync/index.js +9 -0
  1146. package/dist/sync/index.js.map +1 -0
  1147. package/dist/sync/lines.d.ts +18 -0
  1148. package/dist/sync/lines.d.ts.map +1 -0
  1149. package/dist/sync/lines.js +46 -0
  1150. package/dist/sync/lines.js.map +1 -0
  1151. package/dist/sync/remote.d.ts +145 -0
  1152. package/dist/sync/remote.d.ts.map +1 -0
  1153. package/dist/sync/remote.js +59 -0
  1154. package/dist/sync/remote.js.map +1 -0
  1155. package/dist/sync/state.d.ts +17 -0
  1156. package/dist/sync/state.d.ts.map +1 -0
  1157. package/dist/sync/state.js +40 -0
  1158. package/dist/sync/state.js.map +1 -0
  1159. package/dist/telemetry-ingest/batch.d.ts +73 -0
  1160. package/dist/telemetry-ingest/batch.d.ts.map +1 -0
  1161. package/dist/telemetry-ingest/batch.js +110 -0
  1162. package/dist/telemetry-ingest/batch.js.map +1 -0
  1163. package/dist/telemetry-ingest/facet.d.ts +26 -0
  1164. package/dist/telemetry-ingest/facet.d.ts.map +1 -0
  1165. package/dist/telemetry-ingest/facet.js +100 -0
  1166. package/dist/telemetry-ingest/facet.js.map +1 -0
  1167. package/dist/telemetry-ingest/index.d.ts +5 -0
  1168. package/dist/telemetry-ingest/index.d.ts.map +1 -0
  1169. package/dist/telemetry-ingest/index.js +8 -0
  1170. package/dist/telemetry-ingest/index.js.map +1 -0
  1171. package/dist/telemetry-ingest/recorder.d.ts +50 -0
  1172. package/dist/telemetry-ingest/recorder.d.ts.map +1 -0
  1173. package/dist/telemetry-ingest/recorder.js +298 -0
  1174. package/dist/telemetry-ingest/recorder.js.map +1 -0
  1175. package/dist/telemetry-ingest/sender.d.ts +14 -0
  1176. package/dist/telemetry-ingest/sender.d.ts.map +1 -0
  1177. package/dist/telemetry-ingest/sender.js +64 -0
  1178. package/dist/telemetry-ingest/sender.js.map +1 -0
  1179. package/dist/telemetry-sqlite/index.d.ts +33 -0
  1180. package/dist/telemetry-sqlite/index.d.ts.map +1 -0
  1181. package/dist/telemetry-sqlite/index.js +113 -0
  1182. package/dist/telemetry-sqlite/index.js.map +1 -0
  1183. package/dist/telemetry-sqlite/node.d.ts +13 -0
  1184. package/dist/telemetry-sqlite/node.d.ts.map +1 -0
  1185. package/dist/telemetry-sqlite/node.js +27 -0
  1186. package/dist/telemetry-sqlite/node.js.map +1 -0
  1187. package/dist/telemetry-sqlite/schema.d.ts +9 -0
  1188. package/dist/telemetry-sqlite/schema.d.ts.map +1 -0
  1189. package/dist/telemetry-sqlite/schema.js +61 -0
  1190. package/dist/telemetry-sqlite/schema.js.map +1 -0
  1191. package/dist/telemetry-sqlite/store.d.ts +12 -0
  1192. package/dist/telemetry-sqlite/store.d.ts.map +1 -0
  1193. package/dist/telemetry-sqlite/store.js +121 -0
  1194. package/dist/telemetry-sqlite/store.js.map +1 -0
  1195. package/dist/telemetry.d.ts +1013 -0
  1196. package/dist/telemetry.d.ts.map +1 -0
  1197. package/dist/telemetry.js +518 -0
  1198. package/dist/telemetry.js.map +1 -0
  1199. package/dist/tui/bridge.d.ts +112 -0
  1200. package/dist/tui/bridge.d.ts.map +1 -0
  1201. package/dist/tui/bridge.js +9 -0
  1202. package/dist/tui/bridge.js.map +1 -0
  1203. package/dist/tui/channel.d.ts +44 -0
  1204. package/dist/tui/channel.d.ts.map +1 -0
  1205. package/dist/tui/channel.js +150 -0
  1206. package/dist/tui/channel.js.map +1 -0
  1207. package/dist/tui/frames.d.ts +5 -0
  1208. package/dist/tui/frames.d.ts.map +1 -0
  1209. package/dist/tui/frames.js +52 -0
  1210. package/dist/tui/frames.js.map +1 -0
  1211. package/dist/tui/index.d.ts +8 -0
  1212. package/dist/tui/index.d.ts.map +1 -0
  1213. package/dist/tui/index.js +8 -0
  1214. package/dist/tui/index.js.map +1 -0
  1215. package/dist/tui/runtime.d.ts +46 -0
  1216. package/dist/tui/runtime.d.ts.map +1 -0
  1217. package/dist/tui/runtime.js +101 -0
  1218. package/dist/tui/runtime.js.map +1 -0
  1219. package/dist/tui/scope.d.ts +62 -0
  1220. package/dist/tui/scope.d.ts.map +1 -0
  1221. package/dist/tui/scope.js +173 -0
  1222. package/dist/tui/scope.js.map +1 -0
  1223. package/dist/tui/terminal.d.ts +15 -0
  1224. package/dist/tui/terminal.d.ts.map +1 -0
  1225. package/dist/tui/terminal.js +37 -0
  1226. package/dist/tui/terminal.js.map +1 -0
  1227. package/dist/tui/theme.d.ts +17 -0
  1228. package/dist/tui/theme.d.ts.map +1 -0
  1229. package/dist/tui/theme.js +38 -0
  1230. package/dist/tui/theme.js.map +1 -0
  1231. package/dist/watch.d.ts +194 -0
  1232. package/dist/watch.d.ts.map +1 -0
  1233. package/dist/watch.js +383 -0
  1234. package/dist/watch.js.map +1 -0
  1235. package/dist/web/environment.d.ts +4 -0
  1236. package/dist/web/environment.d.ts.map +1 -0
  1237. package/dist/web/environment.js +37 -0
  1238. package/dist/web/environment.js.map +1 -0
  1239. package/dist/web/index.d.ts +5 -0
  1240. package/dist/web/index.d.ts.map +1 -0
  1241. package/dist/web/index.js +7 -0
  1242. package/dist/web/index.js.map +1 -0
  1243. package/dist/web/language.d.ts +7 -0
  1244. package/dist/web/language.d.ts.map +1 -0
  1245. package/dist/web/language.js +21 -0
  1246. package/dist/web/language.js.map +1 -0
  1247. package/dist/web/page.d.ts +42 -0
  1248. package/dist/web/page.d.ts.map +1 -0
  1249. package/dist/web/page.js +96 -0
  1250. package/dist/web/page.js.map +1 -0
  1251. package/dist/web/scripts.d.ts +23 -0
  1252. package/dist/web/scripts.d.ts.map +1 -0
  1253. package/dist/web/scripts.js +50 -0
  1254. package/dist/web/scripts.js.map +1 -0
  1255. package/dist/web/styles.d.ts +17 -0
  1256. package/dist/web/styles.d.ts.map +1 -0
  1257. package/dist/web/styles.js +218 -0
  1258. package/dist/web/styles.js.map +1 -0
  1259. package/dist/web/themes.d.ts +6 -0
  1260. package/dist/web/themes.d.ts.map +1 -0
  1261. package/dist/web/themes.js +31 -0
  1262. package/dist/web/themes.js.map +1 -0
  1263. package/docs/admission/design.md +178 -0
  1264. package/docs/benchmarks.md +1182 -0
  1265. package/docs/decisions.md +3760 -0
  1266. package/docs/dependencies/book.md +1671 -0
  1267. package/docs/dependencies/index.html +2641 -0
  1268. package/docs/dependencies/model.md +330 -0
  1269. package/docs/design.md +3691 -0
  1270. package/docs/durable-observers/book.md +432 -0
  1271. package/docs/durable-observers/index.html +517 -0
  1272. package/docs/events/spec.md +438 -0
  1273. package/docs/flow-control/book.md +333 -0
  1274. package/docs/flow-control/fold/index.html +265 -0
  1275. package/docs/flow-control/index.html +548 -0
  1276. package/docs/flow-control/window/index.html +228 -0
  1277. package/docs/guide-plugins-hosts/book.md +958 -0
  1278. package/docs/guide-plugins-hosts/index.html +952 -0
  1279. package/docs/host-keyed/spec.md +343 -0
  1280. package/docs/http-workers/book.md +378 -0
  1281. package/docs/http-workers/index.html +515 -0
  1282. package/docs/i18n/book.md +217 -0
  1283. package/docs/i18n/index.html +344 -0
  1284. package/docs/layer-1.md +311 -0
  1285. package/docs/layer-2.md +216 -0
  1286. package/docs/p3-features/README.md +6 -0
  1287. package/docs/p3-features/book.md +478 -0
  1288. package/docs/plugin-authoring.md +389 -0
  1289. package/docs/plugin-model/book.md +186 -0
  1290. package/docs/plugin-model/index.html +310 -0
  1291. package/docs/plugin-primer/book.md +273 -0
  1292. package/docs/plugin-primer/index.html +430 -0
  1293. package/docs/shared-holds/design.md +339 -0
  1294. package/docs/slice-1.md +236 -0
  1295. package/docs/slice-10.md +288 -0
  1296. package/docs/slice-11.md +114 -0
  1297. package/docs/slice-12.md +132 -0
  1298. package/docs/slice-13.md +121 -0
  1299. package/docs/slice-14-design.md +213 -0
  1300. package/docs/slice-14.md +861 -0
  1301. package/docs/slice-2.md +174 -0
  1302. package/docs/slice-3a.md +296 -0
  1303. package/docs/slice-3b.md +197 -0
  1304. package/docs/slice-4.md +146 -0
  1305. package/docs/slice-4a.md +418 -0
  1306. package/docs/slice-4b.md +208 -0
  1307. package/docs/slice-5.md +281 -0
  1308. package/docs/slice-6a.md +676 -0
  1309. package/docs/slice-6b.md +332 -0
  1310. package/docs/slice-7a.md +130 -0
  1311. package/docs/slice-7b/book.md +608 -0
  1312. package/docs/slice-7b/index.html +842 -0
  1313. package/docs/slice-7b.md +255 -0
  1314. package/docs/slice-7c.md +165 -0
  1315. package/docs/slice-8.md +194 -0
  1316. package/docs/slice-9.md +110 -0
  1317. package/docs/slices.md +380 -0
  1318. package/docs/store/book.md +670 -0
  1319. package/docs/store/index.html +861 -0
  1320. package/docs/store/walkthrough.md +193 -0
  1321. package/docs/theming/book.md +223 -0
  1322. package/docs/theming/index.html +371 -0
  1323. package/docs/tutorial/book.md +2170 -0
  1324. package/docs/tutorial/index.html +2112 -0
  1325. package/docs/tutorial/screens/click-after.png +0 -0
  1326. package/docs/tutorial/screens/click-before.png +0 -0
  1327. package/docs/tutorial/screens/edited.png +0 -0
  1328. package/docs/tutorial/screens/french.png +0 -0
  1329. package/docs/tutorial/screens/harbor.png +0 -0
  1330. package/docs/tutorial/screens/page.png +0 -0
  1331. package/docs/tutorial/screens/traces-ada.png +0 -0
  1332. package/docs/tutorial/screens/traces.png +0 -0
  1333. package/package.json +200 -5
  1334. package/src/delta/README.md +262 -0
@@ -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.