@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,79 @@
1
+ import type { Context } from "../context/index.ts";
2
+ import type { Query } from "./query.ts";
3
+ import type { Read } from "./read.ts";
4
+ import type { Bindings, Bound } from "./read-plan.ts";
5
+ import { type Change } from "./skip.ts";
6
+ import type { StagedWrite } from "./step.ts";
7
+ /** An open query as the index retires it: who offers it, and its close. */
8
+ type Retirable = {
9
+ readonly spec: {
10
+ readonly owner: object;
11
+ };
12
+ close(): void;
13
+ };
14
+ /**
15
+ * The index from a table's SQL name to the reads over it, the bindings of column sets, and the tables that are not
16
+ * ready (reads over them are held: not run, their rows kept). One per store.
17
+ */
18
+ export declare class Reads implements Bindings {
19
+ #private;
20
+ /** Enters `read` under every table it uses: every commit writing one of them tests it from now on. */
21
+ add(read: Read): void;
22
+ /** Removes `read`: no commit runs it again. */
23
+ delete(read: Read): void;
24
+ /** `query` is open: it closes when its owner retires. */
25
+ opened(query: Retirable): void;
26
+ /** `query` was closed. */
27
+ closed(query: Retirable): void;
28
+ /**
29
+ * `owner` offers its queries no more (a provider's attempt ended; slice 14 §3.2): their reads leave the index, so
30
+ * no commit runs a statement compiled for its tables as they were. Their readers keep their last values and read
31
+ * the successor's queries when it is live.
32
+ */
33
+ retire(owner: object): void;
34
+ /** The reads over `table`, if any. */
35
+ on(table: string): ReadonlySet<Read> | undefined;
36
+ /** The reads over a table with a `host(...)` column of host kind `kind`: what a host data change runs again. */
37
+ onHostKind(kind: string): Read[];
38
+ get(set: string): Bound | undefined;
39
+ /**
40
+ * Binds `set` to `bound` for `owner` (its table declares `exposes`). A set bound by another owner to another table
41
+ * is refused (declaration policy: two tables exposing one name), naming both.
42
+ */
43
+ bind(set: string, bound: Bound, owner: object): void;
44
+ /** Drops `owner`'s binding of `set` (its new code exposes it no more, or it ended). */
45
+ unbind(set: string, owner: object): void;
46
+ /** The sets `owner` has bound. */
47
+ boundBy(owner: object): string[];
48
+ /** Marks `table` not ready (its owner's successor creates or migrates it): reads over it are held. */
49
+ hold(table: string): void;
50
+ /** `table` is ready again: the reads over the sets bound to it compile and run once. */
51
+ ready(table: string): void;
52
+ /** Whether a read over `table` must wait. */
53
+ isHeld(table: string): boolean;
54
+ /** Calls `changed` whenever `set`'s binding or its table's readiness changes, until the returned release. */
55
+ watch(set: string, changed: () => void): () => void;
56
+ }
57
+ /** The names of the column sets `query` reads besides its own table: the joined one and every `exists`'. */
58
+ export declare function setsOf(query: Query): ReadonlySet<string>;
59
+ /**
60
+ * The refresh of a transaction's reads: `write` runs in the commit step after the commit's own writes (the last
61
+ * write of the last phase) and chooses the reads there, from the index at that moment; `adopt` hands each run to its
62
+ * read, inside the commit's batch. A refused step adopts nothing. A transaction stages it as its own change.
63
+ */
64
+ export declare class ReadRefresh {
65
+ #private;
66
+ /** The staged write that reads; it writes nothing and records nothing in the outbox. */
67
+ readonly write: StagedWrite;
68
+ /**
69
+ * `tables` are the SQL names of the tables the transaction wrote; `changes` gives its writes, and is asked only
70
+ * when a read over one of them exists in the step.
71
+ */
72
+ constructor(reads: Reads, tables: readonly string[], changes: () => readonly Change[], context: Context);
73
+ /** Hands each run to its read, inside the commit's batch. */
74
+ adopt(): void;
75
+ committed(): void;
76
+ discarded(): void;
77
+ }
78
+ export {};
79
+ //# sourceMappingURL=reads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reads.d.ts","sourceRoot":"","sources":["../../src/store/reads.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAGnD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,KAAK,MAAM,EAAS,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAQ,MAAM,WAAW,CAAC;AAGnD,2EAA2E;AAC3E,KAAK,SAAS,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,KAAK,IAAI,IAAI,CAAA;CAAE,CAAC;AAK9E;;;GAGG;AACH,qBAAa,KAAM,YAAW,QAAQ;;IAYrC,sGAAsG;IACtG,GAAG,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CASpB;IAED,+CAA+C;IAC/C,MAAM,CAA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IACxF,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAE5B;;;OAGG;IACH,YAAY,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE,OAAO,EAMtG;IAwBD,6DAA6D;IAC7D,KAAK,IAAI,IAAI,CAEZ;IAED,SAAS,IAAI,IAAI,CAAG;IAEpB,SAAS,IAAI,IAAI,CAAG;CACpB"}
@@ -0,0 +1,255 @@
1
+ // The store's reads (slice 14 §3.2, §5): which reads read which table, whoever owns them, and which table each
2
+ // column set is bound to. A transaction that wrote tables stages `ReadRefresh`: inside its commit step, after its
3
+ // writes, it takes the reads over those tables from the index as it is then, runs the skip test, runs the others again
4
+ // and adopts their results in the commit's batch.
5
+ import { chordMetrics } from "../telemetry.js";
6
+ import { existsIn } from "./expression.js";
7
+ import { skips } from "./skip.js";
8
+ /**
9
+ * The index from a table's SQL name to the reads over it, the bindings of column sets, and the tables that are not
10
+ * ready (reads over them are held: not run, their rows kept). One per store.
11
+ */
12
+ export class Reads {
13
+ #byTable = new Map();
14
+ #sets = new Map();
15
+ /** The names each owner has bound: an activation asks for its own without walking every binding. */
16
+ #bound = new Map();
17
+ /** The tables being migrated or not created yet; reads over them wait for `ready`. */
18
+ #held = new Set();
19
+ /** Who is told when a set's binding or its table's readiness changes, by set name. */
20
+ #watchers = new Map();
21
+ /** The open queries by who offers them (`QuerySpec.owner`): closed when that one retires. */
22
+ #offered = new Map();
23
+ /** Enters `read` under every table it uses: every commit writing one of them tests it from now on. */
24
+ add(read) {
25
+ for (const { table } of read.plan.uses) {
26
+ let reads = this.#byTable.get(table);
27
+ if (reads === undefined) {
28
+ reads = new Set();
29
+ this.#byTable.set(table, reads);
30
+ }
31
+ reads.add(read);
32
+ }
33
+ }
34
+ /** Removes `read`: no commit runs it again. */
35
+ delete(read) {
36
+ for (const { table } of read.plan.uses) {
37
+ const reads = this.#byTable.get(table);
38
+ if (reads === undefined)
39
+ continue;
40
+ reads.delete(read);
41
+ if (reads.size === 0)
42
+ this.#byTable.delete(table);
43
+ }
44
+ }
45
+ /** `query` is open: it closes when its owner retires. */
46
+ opened(query) {
47
+ const { owner } = query.spec;
48
+ let queries = this.#offered.get(owner);
49
+ if (queries === undefined) {
50
+ queries = new Set();
51
+ this.#offered.set(owner, queries);
52
+ }
53
+ queries.add(query);
54
+ }
55
+ /** `query` was closed. */
56
+ closed(query) {
57
+ const queries = this.#offered.get(query.spec.owner);
58
+ if (queries === undefined)
59
+ return;
60
+ queries.delete(query);
61
+ if (queries.size === 0)
62
+ this.#offered.delete(query.spec.owner);
63
+ }
64
+ /**
65
+ * `owner` offers its queries no more (a provider's attempt ended; slice 14 §3.2): their reads leave the index, so
66
+ * no commit runs a statement compiled for its tables as they were. Their readers keep their last values and read
67
+ * the successor's queries when it is live.
68
+ */
69
+ retire(owner) {
70
+ for (const query of [...(this.#offered.get(owner) ?? [])])
71
+ query.close();
72
+ }
73
+ /** The reads over `table`, if any. */
74
+ on(table) {
75
+ return this.#byTable.get(table);
76
+ }
77
+ /** The reads over a table with a `host(...)` column of host kind `kind`: what a host data change runs again. */
78
+ onHostKind(kind) {
79
+ const found = new Set();
80
+ for (const reads of this.#byTable.values()) {
81
+ for (const read of reads)
82
+ if (usesHostKind(read, kind, this))
83
+ found.add(read);
84
+ }
85
+ return [...found];
86
+ }
87
+ get(set) {
88
+ return this.#sets.get(set);
89
+ }
90
+ /**
91
+ * Binds `set` to `bound` for `owner` (its table declares `exposes`). A set bound by another owner to another table
92
+ * is refused (declaration policy: two tables exposing one name), naming both.
93
+ */
94
+ bind(set, bound, owner) {
95
+ const current = this.#sets.get(set);
96
+ if (current !== undefined && current.owner !== owner && current.table !== bound.table) {
97
+ throw new Error(`column set "${set}" is exposed by tables "${current.table}" and "${bound.table}"`);
98
+ }
99
+ if (current?.table === bound.table && current.definition === bound.definition && current.owner === owner)
100
+ return;
101
+ if (current !== undefined)
102
+ this.#bound.get(current.owner)?.delete(set);
103
+ this.#sets.set(set, { ...bound, owner });
104
+ let sets = this.#bound.get(owner);
105
+ if (sets === undefined) {
106
+ sets = new Set();
107
+ this.#bound.set(owner, sets);
108
+ }
109
+ sets.add(set);
110
+ this.#changed(set);
111
+ }
112
+ /** Drops `owner`'s binding of `set` (its new code exposes it no more, or it ended). */
113
+ unbind(set, owner) {
114
+ if (this.#sets.get(set)?.owner !== owner)
115
+ return;
116
+ this.#sets.delete(set);
117
+ const sets = this.#bound.get(owner);
118
+ sets?.delete(set);
119
+ if (sets?.size === 0)
120
+ this.#bound.delete(owner);
121
+ this.#changed(set);
122
+ }
123
+ /** The sets `owner` has bound. */
124
+ boundBy(owner) {
125
+ return [...(this.#bound.get(owner) ?? [])];
126
+ }
127
+ /** Marks `table` not ready (its owner's successor creates or migrates it): reads over it are held. */
128
+ hold(table) {
129
+ this.#held.add(table);
130
+ }
131
+ /** `table` is ready again: the reads over the sets bound to it compile and run once. */
132
+ ready(table) {
133
+ if (!this.#held.delete(table))
134
+ return;
135
+ for (const [set, binding] of this.#sets)
136
+ if (binding.table === table)
137
+ this.#changed(set);
138
+ }
139
+ /** Whether a read over `table` must wait. */
140
+ isHeld(table) {
141
+ return this.#held.has(table);
142
+ }
143
+ /** Calls `changed` whenever `set`'s binding or its table's readiness changes, until the returned release. */
144
+ watch(set, changed) {
145
+ let watchers = this.#watchers.get(set);
146
+ if (watchers === undefined) {
147
+ watchers = new Set();
148
+ this.#watchers.set(set, watchers);
149
+ }
150
+ watchers.add(changed);
151
+ return () => {
152
+ const current = this.#watchers.get(set);
153
+ if (current === undefined)
154
+ return;
155
+ current.delete(changed);
156
+ if (current.size === 0)
157
+ this.#watchers.delete(set);
158
+ };
159
+ }
160
+ #changed(set) {
161
+ for (const changed of [...(this.#watchers.get(set) ?? [])])
162
+ changed();
163
+ }
164
+ }
165
+ function usesHostKind(read, kind, reads) {
166
+ const { query } = read.plan;
167
+ if (query.table.hostColumn?.host.kind.kind === kind)
168
+ return true;
169
+ // A joined or `exists` table with a host column of the kind: found through the bindings of the sets it names.
170
+ return read.plan.uses.some((use) => {
171
+ if (use.role === "own")
172
+ return false;
173
+ for (const set of setsOf(query)) {
174
+ const bound = reads.get(set);
175
+ if (bound?.table === use.table && bound.definition.hostColumn?.host.kind.kind === kind)
176
+ return true;
177
+ }
178
+ return false;
179
+ });
180
+ }
181
+ /** The names of the column sets `query` reads besides its own table: the joined one and every `exists`'. */
182
+ export function setsOf(query) {
183
+ const sets = new Set();
184
+ if (query.joined !== undefined)
185
+ sets.add(query.joined.set.name);
186
+ const collect = (condition) => {
187
+ for (const [set, , inner] of existsIn(condition)) {
188
+ sets.add(set);
189
+ if (inner !== null)
190
+ collect(inner);
191
+ }
192
+ };
193
+ if (query.condition !== undefined)
194
+ collect(query.condition);
195
+ return sets;
196
+ }
197
+ const NO_WRITES = [];
198
+ /**
199
+ * The refresh of a transaction's reads: `write` runs in the commit step after the commit's own writes (the last
200
+ * write of the last phase) and chooses the reads there, from the index at that moment; `adopt` hands each run to its
201
+ * read, inside the commit's batch. A refused step adopts nothing. A transaction stages it as its own change.
202
+ */
203
+ export class ReadRefresh {
204
+ #reads;
205
+ #tables;
206
+ #changes;
207
+ #context;
208
+ #runs = [];
209
+ /** The staged write that reads; it writes nothing and records nothing in the outbox. */
210
+ write;
211
+ /**
212
+ * `tables` are the SQL names of the tables the transaction wrote; `changes` gives its writes, and is asked only
213
+ * when a read over one of them exists in the step.
214
+ */
215
+ constructor(reads, tables, changes, context) {
216
+ this.#reads = reads;
217
+ this.#tables = tables;
218
+ this.#changes = changes;
219
+ this.#context = context;
220
+ this.write = { order: "write", apply: (step) => this.#refresh(step) };
221
+ }
222
+ async #refresh(step) {
223
+ // A grouped commit that rolled back applies again alone (store.ts): only the last application's runs count.
224
+ this.#runs.length = 0;
225
+ const chosen = new Set();
226
+ for (const table of this.#tables)
227
+ for (const read of this.#reads.on(table) ?? [])
228
+ chosen.add(read);
229
+ if (chosen.size === 0)
230
+ return NO_WRITES;
231
+ const changes = this.#changes();
232
+ const metrics = chordMetrics(this.#context.telemetry.metrics);
233
+ for (const read of chosen) {
234
+ // Held: a table it reads is being created or migrated; it runs once when the table is ready.
235
+ if (read.plan.uses.some((use) => this.#reads.isHeld(use.table)))
236
+ continue;
237
+ if (await skips(read, changes, step, this.#context)) {
238
+ metrics.counter("chord.query.skips").add(1);
239
+ continue;
240
+ }
241
+ const run = await read.run(step, this.#context);
242
+ read.ran(step.executor, run);
243
+ this.#runs.push({ read, run });
244
+ }
245
+ return NO_WRITES;
246
+ }
247
+ /** Hands each run to its read, inside the commit's batch. */
248
+ adopt() {
249
+ for (const { read, run } of this.#runs)
250
+ read.adopt(run);
251
+ }
252
+ committed() { }
253
+ discarded() { }
254
+ }
255
+ //# sourceMappingURL=reads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reads.js","sourceRoot":"","sources":["../../src/store/reads.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAC/G,kHAAkH;AAClH,uHAAuH;AACvH,kDAAkD;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAkB,MAAM,iBAAiB,CAAC;AAI3D,OAAO,EAAe,KAAK,EAAE,MAAM,WAAW,CAAC;AAU/C;;;GAGG;AACH,MAAM,OAAO,KAAK;IACR,QAAQ,GAAG,IAAI,GAAG,EAAqB,CAAC;IACxC,KAAK,GAAG,IAAI,GAAG,EAAmB,CAAC;IAC5C,oGAAoG;IAC3F,MAAM,GAAG,IAAI,GAAG,EAAuB,CAAC;IACjD,sFAAsF;IAC7E,KAAK,GAAG,IAAI,GAAG,EAAU,CAAC;IACnC,sFAAsF;IAC7E,SAAS,GAAG,IAAI,GAAG,EAA2B,CAAC;IACxD,6FAA6F;IACpF,QAAQ,GAAG,IAAI,GAAG,EAA0B,CAAC;IAEtD,sGAAsG;IACtG,GAAG,CAAC,IAAU;QACb,KAAK,MAAM,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G,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;YAChD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;QAChC,CAAC;QACD,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,6DAA6D;IAC7D,KAAK;QACJ,KAAK,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,IAAI,CAAC,KAAK;YAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzD,CAAC;IAED,SAAS,KAAU,CAAC;IAEpB,SAAS,KAAU,CAAC;CACpB","sourcesContent":["// The store's reads (slice 14 §3.2, §5): which reads read which table, whoever owns them, and which table each\n// column set is bound to. A transaction that wrote tables stages `ReadRefresh`: inside its commit step, after its\n// writes, it takes the reads over those tables from the index as it is then, runs the skip test, runs the others again\n// and adopts their results in the commit's batch.\n\nimport type { Context } from \"../context/index.ts\";\nimport { chordMetrics } from \"../telemetry.ts\";\nimport { existsIn, type WhereNode } from \"./expression.ts\";\nimport type { Query } from \"./query.ts\";\nimport type { Read, ReadRun } from \"./read.ts\";\nimport type { Bindings, Bound } from \"./read-plan.ts\";\nimport { type Change, skips } from \"./skip.ts\";\nimport type { StagedWrite, Step } from \"./step.ts\";\nimport type { StoreWrite } from \"./writes.ts\";\n\n/** An open query as the index retires it: who offers it, and its close. */\ntype Retirable = { readonly spec: { readonly owner: object }; close(): void };\n\n/** A binding as the store keeps it: the table, and the object that owns it (which alone moves or drops it). */\ntype Binding = Bound & { readonly owner: object };\n\n/**\n * The index from a table's SQL name to the reads over it, the bindings of column sets, and the tables that are not\n * ready (reads over them are held: not run, their rows kept). One per store.\n */\nexport class Reads implements Bindings {\n\treadonly #byTable = new Map<string, Set<Read>>();\n\treadonly #sets = new Map<string, Binding>();\n\t/** The names each owner has bound: an activation asks for its own without walking every binding. */\n\treadonly #bound = new Map<object, Set<string>>();\n\t/** The tables being migrated or not created yet; reads over them wait for `ready`. */\n\treadonly #held = new Set<string>();\n\t/** Who is told when a set's binding or its table's readiness changes, by set name. */\n\treadonly #watchers = new Map<string, Set<() => void>>();\n\t/** The open queries by who offers them (`QuerySpec.owner`): closed when that one retires. */\n\treadonly #offered = new Map<object, Set<Retirable>>();\n\n\t/** Enters `read` under every table it uses: every commit writing one of them tests it from now on. */\n\tadd(read: Read): void {\n\t\tfor (const { table } of read.plan.uses) {\n\t\t\tlet reads = this.#byTable.get(table);\n\t\t\tif (reads === undefined) {\n\t\t\t\treads = new Set();\n\t\t\t\tthis.#byTable.set(table, reads);\n\t\t\t}\n\t\t\treads.add(read);\n\t\t}\n\t}\n\n\t/** Removes `read`: no commit runs it again. */\n\tdelete(read: Read): void {\n\t\tfor (const { table } of read.plan.uses) {\n\t\t\tconst reads = this.#byTable.get(table);\n\t\t\tif (reads === undefined) continue;\n\t\t\treads.delete(read);\n\t\t\tif (reads.size === 0) this.#byTable.delete(table);\n\t\t}\n\t}\n\n\t/** `query` is open: it closes when its owner retires. */\n\topened(query: Retirable): void {\n\t\tconst { owner } = query.spec;\n\t\tlet queries = this.#offered.get(owner);\n\t\tif (queries === undefined) {\n\t\t\tqueries = new Set();\n\t\t\tthis.#offered.set(owner, queries);\n\t\t}\n\t\tqueries.add(query);\n\t}\n\n\t/** `query` was closed. */\n\tclosed(query: Retirable): void {\n\t\tconst queries = this.#offered.get(query.spec.owner);\n\t\tif (queries === undefined) return;\n\t\tqueries.delete(query);\n\t\tif (queries.size === 0) this.#offered.delete(query.spec.owner);\n\t}\n\n\t/**\n\t * `owner` offers its queries no more (a provider's attempt ended; slice 14 §3.2): their reads leave the index, so\n\t * no commit runs a statement compiled for its tables as they were. Their readers keep their last values and read\n\t * the successor's queries when it is live.\n\t */\n\tretire(owner: object): void {\n\t\tfor (const query of [...(this.#offered.get(owner) ?? [])]) query.close();\n\t}\n\n\t/** The reads over `table`, if any. */\n\ton(table: string): ReadonlySet<Read> | undefined {\n\t\treturn this.#byTable.get(table);\n\t}\n\n\t/** The reads over a table with a `host(...)` column of host kind `kind`: what a host data change runs again. */\n\tonHostKind(kind: string): Read[] {\n\t\tconst found = new Set<Read>();\n\t\tfor (const reads of this.#byTable.values()) {\n\t\t\tfor (const read of reads) if (usesHostKind(read, kind, this)) found.add(read);\n\t\t}\n\t\treturn [...found];\n\t}\n\n\tget(set: string): Bound | undefined {\n\t\treturn this.#sets.get(set);\n\t}\n\n\t/**\n\t * Binds `set` to `bound` for `owner` (its table declares `exposes`). A set bound by another owner to another table\n\t * is refused (declaration policy: two tables exposing one name), naming both.\n\t */\n\tbind(set: string, bound: Bound, owner: object): void {\n\t\tconst current = this.#sets.get(set);\n\t\tif (current !== undefined && current.owner !== owner && current.table !== bound.table) {\n\t\t\tthrow new Error(`column set \"${set}\" is exposed by tables \"${current.table}\" and \"${bound.table}\"`);\n\t\t}\n\t\tif (current?.table === bound.table && current.definition === bound.definition && current.owner === owner) return;\n\t\tif (current !== undefined) this.#bound.get(current.owner)?.delete(set);\n\t\tthis.#sets.set(set, { ...bound, owner });\n\t\tlet sets = this.#bound.get(owner);\n\t\tif (sets === undefined) {\n\t\t\tsets = new Set();\n\t\t\tthis.#bound.set(owner, sets);\n\t\t}\n\t\tsets.add(set);\n\t\tthis.#changed(set);\n\t}\n\n\t/** Drops `owner`'s binding of `set` (its new code exposes it no more, or it ended). */\n\tunbind(set: string, owner: object): void {\n\t\tif (this.#sets.get(set)?.owner !== owner) return;\n\t\tthis.#sets.delete(set);\n\t\tconst sets = this.#bound.get(owner);\n\t\tsets?.delete(set);\n\t\tif (sets?.size === 0) this.#bound.delete(owner);\n\t\tthis.#changed(set);\n\t}\n\n\t/** The sets `owner` has bound. */\n\tboundBy(owner: object): string[] {\n\t\treturn [...(this.#bound.get(owner) ?? [])];\n\t}\n\n\t/** Marks `table` not ready (its owner's successor creates or migrates it): reads over it are held. */\n\thold(table: string): void {\n\t\tthis.#held.add(table);\n\t}\n\n\t/** `table` is ready again: the reads over the sets bound to it compile and run once. */\n\tready(table: string): void {\n\t\tif (!this.#held.delete(table)) return;\n\t\tfor (const [set, binding] of this.#sets) if (binding.table === table) this.#changed(set);\n\t}\n\n\t/** Whether a read over `table` must wait. */\n\tisHeld(table: string): boolean {\n\t\treturn this.#held.has(table);\n\t}\n\n\t/** Calls `changed` whenever `set`'s binding or its table's readiness changes, until the returned release. */\n\twatch(set: string, changed: () => void): () => void {\n\t\tlet watchers = this.#watchers.get(set);\n\t\tif (watchers === undefined) {\n\t\t\twatchers = new Set();\n\t\t\tthis.#watchers.set(set, watchers);\n\t\t}\n\t\twatchers.add(changed);\n\t\treturn () => {\n\t\t\tconst current = this.#watchers.get(set);\n\t\t\tif (current === undefined) return;\n\t\t\tcurrent.delete(changed);\n\t\t\tif (current.size === 0) this.#watchers.delete(set);\n\t\t};\n\t}\n\n\t#changed(set: string): void {\n\t\tfor (const changed of [...(this.#watchers.get(set) ?? [])]) changed();\n\t}\n}\n\nfunction usesHostKind(read: Read, kind: string, reads: Reads): boolean {\n\tconst { query } = read.plan;\n\tif (query.table.hostColumn?.host.kind.kind === kind) return true;\n\t// A joined or `exists` table with a host column of the kind: found through the bindings of the sets it names.\n\treturn read.plan.uses.some((use) => {\n\t\tif (use.role === \"own\") return false;\n\t\tfor (const set of setsOf(query)) {\n\t\t\tconst bound = reads.get(set);\n\t\t\tif (bound?.table === use.table && bound.definition.hostColumn?.host.kind.kind === kind) return true;\n\t\t}\n\t\treturn false;\n\t});\n}\n\n/** The names of the column sets `query` reads besides its own table: the joined one and every `exists`'. */\nexport function setsOf(query: Query): ReadonlySet<string> {\n\tconst sets = new Set<string>();\n\tif (query.joined !== undefined) sets.add(query.joined.set.name);\n\tconst collect = (condition: WhereNode): void => {\n\t\tfor (const [set, , inner] of existsIn(condition)) {\n\t\t\tsets.add(set);\n\t\t\tif (inner !== null) collect(inner);\n\t\t}\n\t};\n\tif (query.condition !== undefined) collect(query.condition);\n\treturn sets;\n}\n\nconst NO_WRITES: readonly StoreWrite[] = [];\n\n/**\n * The refresh of a transaction's reads: `write` runs in the commit step after the commit's own writes (the last\n * write of the last phase) and chooses the reads there, from the index at that moment; `adopt` hands each run to its\n * read, inside the commit's batch. A refused step adopts nothing. A transaction stages it as its own change.\n */\nexport class ReadRefresh {\n\treadonly #reads: Reads;\n\treadonly #tables: readonly string[];\n\treadonly #changes: () => readonly Change[];\n\treadonly #context: Context;\n\treadonly #runs: { readonly read: Read; readonly run: ReadRun }[] = [];\n\t/** The staged write that reads; it writes nothing and records nothing in the outbox. */\n\treadonly write: StagedWrite;\n\n\t/**\n\t * `tables` are the SQL names of the tables the transaction wrote; `changes` gives its writes, and is asked only\n\t * when a read over one of them exists in the step.\n\t */\n\tconstructor(reads: Reads, tables: readonly string[], changes: () => readonly Change[], context: Context) {\n\t\tthis.#reads = reads;\n\t\tthis.#tables = tables;\n\t\tthis.#changes = changes;\n\t\tthis.#context = context;\n\t\tthis.write = { order: \"write\", apply: (step) => this.#refresh(step) };\n\t}\n\n\tasync #refresh(step: Step): Promise<readonly StoreWrite[]> {\n\t\t// A grouped commit that rolled back applies again alone (store.ts): only the last application's runs count.\n\t\tthis.#runs.length = 0;\n\t\tconst chosen = new Set<Read>();\n\t\tfor (const table of this.#tables) for (const read of this.#reads.on(table) ?? []) chosen.add(read);\n\t\tif (chosen.size === 0) return NO_WRITES;\n\t\tconst changes = this.#changes();\n\t\tconst metrics = chordMetrics(this.#context.telemetry.metrics);\n\t\tfor (const read of chosen) {\n\t\t\t// Held: a table it reads is being created or migrated; it runs once when the table is ready.\n\t\t\tif (read.plan.uses.some((use) => this.#reads.isHeld(use.table))) continue;\n\t\t\tif (await skips(read, changes, step, this.#context)) {\n\t\t\t\tmetrics.counter(\"chord.query.skips\").add(1);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst run = await read.run(step, this.#context);\n\t\t\tread.ran(step.executor, run);\n\t\t\tthis.#runs.push({ read, run });\n\t\t}\n\t\treturn NO_WRITES;\n\t}\n\n\t/** Hands each run to its read, inside the commit's batch. */\n\tadopt(): void {\n\t\tfor (const { read, run } of this.#runs) read.adopt(run);\n\t}\n\n\tcommitted(): void {}\n\n\tdiscarded(): void {}\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import { ChordError } from "../data/index.ts";
2
+ /** How a Chord commit ended that the store rejected: `check` fails the transaction only, `broken` its object too. */
3
+ export type Refusal = {
4
+ readonly kind: "check";
5
+ readonly error: ChordError;
6
+ } | {
7
+ readonly kind: "broken";
8
+ readonly error: ChordError;
9
+ };
10
+ /**
11
+ * The refusal behind `error`, a store commit's rejection; `undefined` when it is the store's own (`released` at
12
+ * admission or after close, `unavailable/storage_failed` once stopped), which the owner rethrows as it is.
13
+ */
14
+ export declare function refusalOf(error: unknown, label: string): Refusal | undefined;
15
+ //# sourceMappingURL=refusal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refusal.d.ts","sourceRoot":"","sources":["../../src/store/refusal.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAgB,MAAM,kBAAkB,CAAC;AAE5D,qHAAqH;AACrH,MAAM,MAAM,OAAO,GAChB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;CAAE,GACtD;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;CAAE,CAAC;AAK3D;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAc5E"}
@@ -0,0 +1,36 @@
1
+ // A refused commit as Chord's owners take it (slice 6b D4, §1.4): the store rejects a step it rolled back with the
2
+ // step's own error, unchanged (Durable's Storage semantics); Chord classifies it: an `int` column's `CHECK` (a
3
+ // plugin's value out of range) fails only its transaction, any other refusal means memory and disk disagree.
4
+ import { ChordError, isChordError } from "../data/index.js";
5
+ /** SQLite's extended result code `SQLITE_CONSTRAINT_CHECK`, which Node's binding reports as `errcode`. */
6
+ const SQLITE_CONSTRAINT_CHECK = 275;
7
+ /**
8
+ * The refusal behind `error`, a store commit's rejection; `undefined` when it is the store's own (`released` at
9
+ * admission or after close, `unavailable/storage_failed` once stopped), which the owner rethrows as it is.
10
+ */
11
+ export function refusalOf(error, label) {
12
+ if (isChordError(error, "released") || (isChordError(error, "unavailable") && error.reason === "storage_failed")) {
13
+ return undefined;
14
+ }
15
+ const message = error instanceof Error ? error.message : String(error);
16
+ if (isCheck(error, message)) {
17
+ const refused = `${label}: a value is out of its column's range (${message})`;
18
+ return {
19
+ kind: "check",
20
+ error: new ChordError({ code: "invalid", reason: "args", message: refused }, { cause: error }),
21
+ };
22
+ }
23
+ const refused = `${label}: the store refused the commit (${message})`;
24
+ return { kind: "broken", error: new ChordError({ code: "unavailable", message: refused }, { cause: error }) };
25
+ }
26
+ /**
27
+ * Whether a refusal is a `CHECK` failure: SQLite's extended code where the binding has one (Node), the message
28
+ * otherwise (the Durable Object facade has no extended codes).
29
+ */
30
+ function isCheck(error, message) {
31
+ const code = error?.errcode;
32
+ if (typeof code === "number")
33
+ return code === SQLITE_CONSTRAINT_CHECK;
34
+ return message.includes("CHECK constraint failed");
35
+ }
36
+ //# sourceMappingURL=refusal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refusal.js","sourceRoot":"","sources":["../../src/store/refusal.ts"],"names":[],"mappings":"AAAA,mHAAmH;AACnH,+GAA+G;AAC/G,6GAA6G;AAE7G,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAO5D,0GAA0G;AAC1G,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAEpC;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,KAAc,EAAE,KAAa;IACtD,IAAI,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,aAAa,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,gBAAgB,CAAC,EAAE,CAAC;QAClH,OAAO,SAAS,CAAC;IAClB,CAAC;IACD,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvE,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC;QAC7B,MAAM,OAAO,GAAG,GAAG,KAAK,2CAA2C,OAAO,GAAG,CAAC;QAC9E,OAAO;YACN,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;SAC9F,CAAC;IACH,CAAC;IACD,MAAM,OAAO,GAAG,GAAG,KAAK,mCAAmC,OAAO,GAAG,CAAC;IACtE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAC/G,CAAC;AAED;;;GAGG;AACH,SAAS,OAAO,CAAC,KAAc,EAAE,OAAe;IAC/C,MAAM,IAAI,GAAI,KAAoD,EAAE,OAAO,CAAC;IAC5E,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,KAAK,uBAAuB,CAAC;IACtE,OAAO,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;AACpD,CAAC","sourcesContent":["// A refused commit as Chord's owners take it (slice 6b D4, §1.4): the store rejects a step it rolled back with the\n// step's own error, unchanged (Durable's Storage semantics); Chord classifies it: an `int` column's `CHECK` (a\n// plugin's value out of range) fails only its transaction, any other refusal means memory and disk disagree.\n\nimport { ChordError, isChordError } from \"../data/index.ts\";\n\n/** How a Chord commit ended that the store rejected: `check` fails the transaction only, `broken` its object too. */\nexport type Refusal =\n\t| { readonly kind: \"check\"; readonly error: ChordError }\n\t| { readonly kind: \"broken\"; readonly error: ChordError };\n\n/** SQLite's extended result code `SQLITE_CONSTRAINT_CHECK`, which Node's binding reports as `errcode`. */\nconst SQLITE_CONSTRAINT_CHECK = 275;\n\n/**\n * The refusal behind `error`, a store commit's rejection; `undefined` when it is the store's own (`released` at\n * admission or after close, `unavailable/storage_failed` once stopped), which the owner rethrows as it is.\n */\nexport function refusalOf(error: unknown, label: string): Refusal | undefined {\n\tif (isChordError(error, \"released\") || (isChordError(error, \"unavailable\") && error.reason === \"storage_failed\")) {\n\t\treturn undefined;\n\t}\n\tconst message = error instanceof Error ? error.message : String(error);\n\tif (isCheck(error, message)) {\n\t\tconst refused = `${label}: a value is out of its column's range (${message})`;\n\t\treturn {\n\t\t\tkind: \"check\",\n\t\t\terror: new ChordError({ code: \"invalid\", reason: \"args\", message: refused }, { cause: error }),\n\t\t};\n\t}\n\tconst refused = `${label}: the store refused the commit (${message})`;\n\treturn { kind: \"broken\", error: new ChordError({ code: \"unavailable\", message: refused }, { cause: error }) };\n}\n\n/**\n * Whether a refusal is a `CHECK` failure: SQLite's extended code where the binding has one (Node), the message\n * otherwise (the Durable Object facade has no extended codes).\n */\nfunction isCheck(error: unknown, message: string): boolean {\n\tconst code = (error as { readonly errcode?: unknown } | undefined)?.errcode;\n\tif (typeof code === \"number\") return code === SQLITE_CONSTRAINT_CHECK;\n\treturn message.includes(\"CHECK constraint failed\");\n}\n"]}
@@ -0,0 +1,96 @@
1
+ import type { Context } from "../context/index.ts";
2
+ import type { JsonValue } from "../json.ts";
3
+ import type { SqliteValue } from "../sqlite/index.ts";
4
+ import type { Column, ColumnType, ScalarColumn } from "./columns.ts";
5
+ /** A scalar cell as the store keeps it in rows, writes and operands: a well-formed string, a number or a boolean. */
6
+ export type Scalar = string | number | boolean;
7
+ /** A row as the outbox records it: the stored values, `opt(...)` columns absent when `NULL`. */
8
+ export type StoredRow = {
9
+ readonly [column: string]: Scalar | JsonValue;
10
+ };
11
+ /** A `put` ready for the step: its parameters in `physical` order and its record. */
12
+ export type EncodedRow = {
13
+ readonly params: readonly SqliteValue[];
14
+ readonly row: StoredRow;
15
+ /** Each written `json(...)` column's version. */
16
+ readonly columns: {
17
+ readonly [column: string]: number;
18
+ };
19
+ /** The row's key identity, as `EncodedKey.id`. */
20
+ readonly id: string;
21
+ };
22
+ /** A key ready for the store: its parameters in key order, its record and its identity within one table. */
23
+ export type EncodedKey = {
24
+ readonly params: readonly SqliteValue[];
25
+ readonly key: {
26
+ readonly [column: string]: Scalar;
27
+ };
28
+ /** `JSON.stringify` of the parameters: equal keys, equal ids. */
29
+ readonly id: string;
30
+ };
31
+ /** The physical name of a `json(...)` column's version column, and of the row's eager-step version. */
32
+ export declare function versionColumn(column: string): string;
33
+ /** The row's eager-step version column (W11): set by `put` and eager migration steps only. */
34
+ export declare const ROW_VERSION = "$v";
35
+ /** The physical column order of a stored row: the declared columns, each `json(...)` column's version, then `$v`. */
36
+ export declare function physicalColumns(columns: readonly {
37
+ readonly name: string;
38
+ readonly type: ColumnType;
39
+ }[]): string[];
40
+ /** A scalar as SQLite binds it: booleans as 0 and 1. */
41
+ export declare function toSqlite(scalar: Scalar): string | number;
42
+ /**
43
+ * A table version's codec: `put` rows and keys checked and encoded, stored rows decoded. `physical` is the column
44
+ * order of an encoded row (`physicalColumns`).
45
+ */
46
+ export declare class RowCodec {
47
+ #private;
48
+ readonly physical: readonly string[];
49
+ constructor(columns: readonly Column[], key: readonly string[], table: string);
50
+ /**
51
+ * Checks and encodes a `put` row of table version `version` (a trust boundary): a plain object with every
52
+ * non-`opt` column (a defaulted one filled in) and no other field; `invalid/args` otherwise.
53
+ */
54
+ put(row: unknown, version: number): EncodedRow;
55
+ /** Checks and encodes a key (a trust boundary): an object with exactly the key columns; `invalid/args` otherwise. */
56
+ key(key: unknown, what: string): EncodedKey;
57
+ /**
58
+ * A stored row as reads return it: booleans from 0 and 1, `opt(...)` columns absent when `NULL`, `json(...)` cells
59
+ * parsed and migrated on access (a cell the code cannot read throws, see `JsonColumn.read`).
60
+ */
61
+ decode(stored: {
62
+ readonly [column: string]: SqliteValue;
63
+ }, context: Context): {
64
+ [column: string]: unknown;
65
+ };
66
+ /**
67
+ * A row as reads return it with its `host(...)` cell as stored (the address's key), for the evaluator, which
68
+ * compares stored values; the row itself without a host column.
69
+ */
70
+ stored<R extends {
71
+ readonly [column: string]: unknown;
72
+ }>(row: R): R;
73
+ /** A row with its `host(...)` cell as stored (a key) turned into the address reads return; `stored`'s inverse. */
74
+ addressed<R extends {
75
+ readonly [column: string]: unknown;
76
+ }>(row: R): R;
77
+ }
78
+ /** A stored scalar cell (not `NULL`) as reads return it: a boolean from 0 and 1, an address from a `host(...)` key. */
79
+ export declare function decodeScalar(column: ScalarColumn, value: SqliteValue): unknown;
80
+ /** A checked cell: what is bound and what is recorded. */
81
+ type Cell = {
82
+ readonly param: SqliteValue;
83
+ readonly stored: Scalar | JsonValue;
84
+ };
85
+ /**
86
+ * Checks and encodes a value of `column`; a `json(...)` value is serialized, not walked (R9); a `host(...)` one is an
87
+ * address of its kind, stored as its key.
88
+ */
89
+ export declare function encodeCell(column: Column, value: unknown, what: string): Cell;
90
+ /**
91
+ * A value of a scalar column type as the store keeps it (a trust boundary): `str` well-formed without NUL, `int` a
92
+ * safe integer, `num` finite, `bool` a boolean; `invalid/args` otherwise.
93
+ */
94
+ export declare function checkScalar(type: "str" | "int" | "num" | "bool", value: unknown, what: string): Scalar;
95
+ export {};
96
+ //# sourceMappingURL=rows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rows.d.ts","sourceRoot":"","sources":["../../src/store/rows.ts"],"names":[],"mappings":"AAIA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